/* KHCA Student Portal v0.2.0
   Everything is scoped to .khca-sp-* so the theme / Elementor styles cannot leak in. */

body.khca-sp-focus { margin: 0; background: #f3f6f5; }

.khca-sp-wrap,
.khca-sp-login {
	--kh-primary: #0d9488;
	--kh-primary-dark: #0b7a70;
	--kh-deep: #0f3d36;
	--kh-ink: #14302b;
	--kh-text: #475a55;
	--kh-muted: #7b8c87;
	--kh-line: #e3ebe8;
	--kh-bg: #f3f6f5;
	--kh-card: #ffffff;
	--kh-top: 0px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: var(--kh-text);
	-webkit-font-smoothing: antialiased;
}
.admin-bar .khca-sp-wrap { --kh-top: 32px; }
@media (max-width: 782px) { .admin-bar .khca-sp-wrap { --kh-top: 46px; } }

.khca-sp-wrap *, .khca-sp-wrap *::before, .khca-sp-wrap *::after,
.khca-sp-login *, .khca-sp-login *::before, .khca-sp-login *::after { box-sizing: border-box; }

.khca-sp-wrap h1, .khca-sp-wrap h2, .khca-sp-wrap h3, .khca-sp-wrap p,
.khca-sp-wrap ul, .khca-sp-wrap dl, .khca-sp-wrap dd, .khca-sp-wrap figure { margin: 0; padding: 0; }
.khca-sp-wrap h1, .khca-sp-wrap h2, .khca-sp-wrap h3 { font-family: inherit; color: var(--kh-ink); letter-spacing: -0.01em; text-transform: none; }
.khca-sp-wrap a { text-decoration: none; box-shadow: none; }
.khca-sp-wrap a:focus-visible, .khca-sp-wrap label:focus-visible { outline: 2px solid var(--kh-primary); outline-offset: 2px; }
.khca-sp-icon { flex: 0 0 auto; display: block; }
.khca-sp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.khca-sp-wrap { display: grid; grid-template-columns: 268px minmax(0, 1fr); background: var(--kh-bg); }
.khca-sp-wrap.is-focus { min-height: calc(100vh - var(--kh-top)); }
.khca-sp-wrap.is-embedded { min-height: 680px; border: 1px solid var(--kh-line); border-radius: 16px; overflow: hidden; }
.khca-sp-nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.khca-sp-overlay { display: none; }

/* ---------- Sidebar ---------- */
.khca-sp-sidebar {
	background: var(--kh-deep);
	color: #cfe5df;
	display: flex; flex-direction: column;
	padding: 22px 14px;
}
.khca-sp-wrap.is-focus .khca-sp-sidebar { position: sticky; top: var(--kh-top); height: calc(100vh - var(--kh-top)); overflow-y: auto; }
.khca-sp-brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 22px; border-bottom: 1px solid rgba(255, 255, 255, .1); margin-bottom: 18px; }
.khca-sp-brand-mark { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, #14b8a6, #0d9488); color: #fff; display: grid; place-items: center; font-weight: 800; letter-spacing: .5px; flex: 0 0 auto; }
.khca-sp-brand strong { display: block; font-size: 18px; color: #fff; line-height: 1.1; }
.khca-sp-brand small { display: block; font-size: 11px; color: #8fb8ae; margin-top: 3px; }
.khca-sp-nav { display: flex; flex-direction: column; gap: 3px; }
.khca-sp-nav-label { font-size: 10px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #6f9b90; padding: 4px 12px 8px; }
.khca-sp-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #cfe5df; font-size: 13.5px; font-weight: 500; transition: background .15s, color .15s; }
.khca-sp-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.khca-sp-nav a.is-active { background: var(--kh-primary); color: #fff; font-weight: 600; box-shadow: 0 4px 14px rgba(13, 148, 136, .35); }
.khca-sp-sidebar-foot { margin-top: auto; padding-top: 18px; }
.khca-sp-sidebar-foot small { display: block; padding: 14px 12px 0; font-size: 10.5px; color: #6f9b90; }
.khca-sp-logout { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #f5b5b5 !important; font-size: 13.5px; font-weight: 500; border-top: 1px solid rgba(255, 255, 255, .1); border-radius: 0; padding-top: 16px; }
.khca-sp-logout:hover { color: #fff !important; }

/* ---------- Main / top bar ---------- */
.khca-sp-main { min-width: 0; display: flex; flex-direction: column; }
.khca-sp-topbar { display: flex; align-items: center; gap: 14px; padding: 18px 32px; background: #fff; border-bottom: 1px solid var(--kh-line); }
.khca-sp-wrap.is-focus .khca-sp-topbar { position: sticky; top: var(--kh-top); z-index: 5; }
.khca-sp-title { flex: 1; min-width: 0; }
.khca-sp-eyebrow { display: block; font-size: 10px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--kh-primary); }
.khca-sp-topbar h1 { font-size: 22px; font-weight: 700; margin-top: 3px !important; line-height: 1.2; }
.khca-sp-top-user { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--kh-ink); }
.khca-sp-top-user img, .khca-sp-profile img { border-radius: 50%; object-fit: cover; display: block; }
.khca-sp-burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--kh-line); align-items: center; justify-content: center; cursor: pointer; color: var(--kh-ink); }
.khca-sp-content { padding: 28px 32px; width: 100%; max-width: 1180px; flex: 1; }
.khca-sp-footer { padding: 18px 32px 24px; font-size: 11px; color: var(--kh-muted); border-top: 1px solid var(--kh-line); }

/* ---------- Hero ---------- */
.khca-sp-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 28px; border-radius: 18px; color: #fff; background: radial-gradient(circle at 90% 0%, rgba(45, 212, 191, .35), transparent 45%), linear-gradient(120deg, #0f3d36, #0d766b); margin-bottom: 20px; }
.khca-sp-hero .khca-sp-eyebrow { color: #a7f0e1; }
.khca-sp-hero h2 { color: #fff !important; font-size: 26px; font-weight: 700; margin: 8px 0 8px !important; line-height: 1.2; }
.khca-sp-hero p { color: #d4efe8; font-size: 14px; }
.khca-sp-resume { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; padding: 18px; backdrop-filter: blur(4px); }
.khca-sp-resume-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #a7f0e1; }
.khca-sp-resume strong { display: block; color: #fff; font-size: 16px; margin: 6px 0 12px; line-height: 1.35; }
.khca-sp-resume-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.khca-sp-resume-bar span { display: block; height: 100%; background: #5eead4; border-radius: 99px; }
.khca-sp-resume-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 12px; color: #d4efe8; }

/* ---------- Stats ---------- */
.khca-sp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.khca-sp-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.khca-sp-stat { display: flex; align-items: center; gap: 14px; background: var(--kh-card); border: 1px solid var(--kh-line); border-radius: 14px; padding: 16px 18px; }
.khca-sp-stat small { display: block; font-size: 12px; color: var(--kh-muted); font-weight: 500; }
.khca-sp-stat strong { display: block; font-size: 24px; line-height: 1.2; color: var(--kh-ink); margin-top: 2px; }
.khca-sp-stat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #e0f6f2; color: var(--kh-primary-dark); flex: 0 0 auto; }
.khca-sp-stat-icon.is-blue { background: #e3effd; color: #2463c4; }
.khca-sp-stat-icon.is-green { background: #e2f6ea; color: #17824a; }
.khca-sp-stat-icon.is-amber { background: #fdf0d9; color: #b06a0b; }

/* ---------- Sections / panels ---------- */
.khca-sp-split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.khca-sp-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.khca-sp-section h2 { font-size: 17px; font-weight: 700; }
.khca-sp-section-head a, .khca-sp-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--kh-primary-dark); }
.khca-sp-section-head a:hover, .khca-sp-link:hover { color: var(--kh-deep); }
.khca-sp-side { display: grid; gap: 16px; }
.khca-sp-panel { background: var(--kh-card); border: 1px solid var(--kh-line); border-radius: 14px; padding: 20px; }
.khca-sp-panel h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px !important; }
.khca-sp-panel-wide { max-width: 780px; }
.khca-sp-help { font-size: 12.5px; color: var(--kh-muted); line-height: 1.6; }
.khca-sp-ring-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; color: var(--kh-ink); }
.khca-sp-ring-row p { font-size: 12.5px; color: var(--kh-text); line-height: 1.55; }
.khca-sp-mini-list { list-style: none; margin: 0 0 12px !important; padding: 0 !important; }
.khca-sp-mini-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--kh-line); }
.khca-sp-mini-list li:last-child { border-bottom: 0; }
.khca-sp-mini-list strong { display: block; font-size: 13px; color: var(--kh-ink); }
.khca-sp-mini-list small { color: var(--kh-muted); font-size: 11.5px; }
.khca-sp-score { font-weight: 700; color: var(--kh-primary-dark); background: #e0f6f2; border-radius: 8px; padding: 3px 9px; font-size: 12.5px; }

/* ---------- Course cards ---------- */
.khca-sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.khca-sp-card { background: var(--kh-card); border: 1px solid var(--kh-line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.khca-sp-card:hover { box-shadow: 0 10px 28px rgba(15, 61, 54, .10); transform: translateY(-2px); }
.khca-sp-card-media { display: block; aspect-ratio: 2 / 1; background: #e7efec; overflow: hidden; }
.khca-sp-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.khca-sp-card-fallback { width: 100%; height: 100%; display: grid; place-items: center; font-size: 32px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #0f3d36, #14b8a6); letter-spacing: 1px; }
.khca-sp-card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; align-items: flex-start; }
.khca-sp-card-body > .khca-sp-progress { width: 100%; }
.khca-sp-card h3 { font-size: 15px; line-height: 1.35; font-weight: 700; margin: 0 !important; }
.khca-sp-card h3 a { color: var(--kh-ink); }
.khca-sp-card h3 a:hover { color: var(--kh-primary-dark); }
.khca-sp-meta-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; font-size: 12px; color: var(--kh-muted); }
.khca-sp-meta-row strong { color: var(--kh-primary-dark); font-size: 13px; }
.khca-sp-meta-row h3 { margin: 0 !important; }
.khca-sp-card .khca-sp-btn { margin-top: auto; }
.khca-sp-cert .khca-sp-cert-icon { padding: 26px; display: grid; place-items: center; color: #b06a0b; background: linear-gradient(135deg, #fdf3dc, #fbe7b8); }

/* ---------- Progress / badges / buttons ---------- */
.khca-sp-progress { height: 7px; border-radius: 99px; background: #e5eeeb; overflow: hidden; width: 100%; }
.khca-sp-progress span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #14b8a6, #0d9488); }
.khca-sp-badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.khca-sp-badge.is-success { background: #e2f6ea; color: #17824a; }
.khca-sp-badge.is-info { background: #e3effd; color: #2463c4; }
.khca-sp-badge.is-warn { background: #fdf0d9; color: #a15f09; }
.khca-sp-badge.is-danger { background: #fde6e6; color: #b42323; }
.khca-sp-badge.is-muted { background: #edf1f0; color: #62736e; }
.khca-sp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--kh-primary); color: #fff !important; border: 0; border-radius: 9px; padding: 9px 16px; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background .15s; }
.khca-sp-btn:hover { background: var(--kh-primary-dark); }
.khca-sp-btn-sm { padding: 6px 12px; font-size: 12px; }
.khca-sp-btn-light { background: #fff; color: var(--kh-deep) !important; }
.khca-sp-btn-light:hover { background: #e6fbf6; }

/* ---------- Tables ---------- */
.khca-sp-table-wrap { background: var(--kh-card); border: 1px solid var(--kh-line); border-radius: 14px; overflow-x: auto; }
.khca-sp-table { width: 100%; border-collapse: collapse; margin: 0; font-size: 13px; border: 0; }
.khca-sp-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--kh-muted); font-weight: 700; padding: 13px 16px; background: #f8fbfa; border: 0; border-bottom: 1px solid var(--kh-line); white-space: nowrap; }
.khca-sp-table td { padding: 14px 16px; border: 0; border-bottom: 1px solid var(--kh-line); vertical-align: middle; background: transparent; color: var(--kh-text); }
.khca-sp-table tr:last-child td { border-bottom: 0; }
.khca-sp-table tbody tr:hover td { background: #f8fbfa; }
.khca-sp-strong { font-weight: 600; color: var(--kh-ink); }
a.khca-sp-strong:hover { color: var(--kh-primary-dark); }
.khca-sp-col-progress { min-width: 180px; }
.khca-sp-inline-progress { display: flex; align-items: center; gap: 10px; }
.khca-sp-inline-progress b { font-size: 12px; color: var(--kh-primary-dark); min-width: 36px; text-align: right; }
.khca-sp-td-action { text-align: right; }

/* ---------- Profile ---------- */
.khca-sp-profile { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--kh-line); margin-bottom: 4px; }
.khca-sp-profile h3 { font-size: 19px !important; margin: 0 0 3px !important; }
.khca-sp-profile p { color: var(--kh-muted); font-size: 13px; margin-bottom: 8px; }
.khca-sp-details { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-bottom: 20px !important; }
.khca-sp-details > div { padding: 14px 0; border-bottom: 1px solid var(--kh-line); }
.khca-sp-details dt { font-size: 11.5px; color: var(--kh-muted); margin-bottom: 3px; }
.khca-sp-details dd { font-size: 14px; font-weight: 600; color: var(--kh-ink); overflow-wrap: anywhere; margin: 0; }
.khca-sp-checklist { list-style: none; margin: 18px 0 20px !important; padding: 0 !important; }
.khca-sp-checklist li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--kh-line); font-size: 14px; color: var(--kh-ink); }
.khca-sp-checklist li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: 0 0 auto; }
.khca-sp-checklist .is-done span { background: #e2f6ea; color: #17824a; }
.khca-sp-checklist .is-pending span { background: #fff; border: 2px dashed #e0b25a; }
.khca-sp-checklist em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--kh-muted); }
.khca-sp-checklist .is-pending em { color: #a15f09; }

/* ---------- Discussions ---------- */
.khca-sp-thread-list { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 12px; }
.khca-sp-thread-list li { background: var(--kh-card); border: 1px solid var(--kh-line); border-radius: 14px; padding: 16px 18px; }
.khca-sp-thread-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.khca-sp-thread-list p { font-size: 13.5px; line-height: 1.6; margin-bottom: 8px; }
.khca-sp-thread-list small { color: var(--kh-muted); font-size: 11.5px; }

/* ---------- Empty / login ---------- */
.khca-sp-empty { background: var(--kh-card); border: 1px dashed #cddbd6; border-radius: 16px; padding: 44px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.khca-sp-empty-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: #e0f6f2; color: var(--kh-primary-dark); margin-bottom: 8px; }
.khca-sp-empty strong { font-size: 16px; color: var(--kh-ink); }
.khca-sp-empty p { color: var(--kh-muted); font-size: 13px; max-width: 360px; }
.khca-sp-login { display: grid; place-items: center; padding: 40px 16px; }
.khca-sp-login.is-focus { min-height: 100vh; background: linear-gradient(135deg, #0f3d36, #0d766b); }
.khca-sp-login-card { background: #fff; border-radius: 18px; padding: 36px 32px; text-align: center; max-width: 380px; width: 100%; box-shadow: 0 20px 50px rgba(0, 0, 0, .18); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.khca-sp-login-card h2 { font-size: 21px; margin: 6px 0 0; color: var(--kh-ink); }
.khca-sp-login-card p { color: var(--kh-muted); margin: 0 0 8px; }
.khca-sp-login .khca-sp-brand-mark { width: 52px; height: 52px; font-size: 18px; }
.khca-sp-login a { text-decoration: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
	.khca-sp-split { grid-template-columns: 1fr; }
	.khca-sp-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.khca-sp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Mobile: sidebar becomes a drawer ---------- */
@media (max-width: 900px) {
	.khca-sp-wrap { grid-template-columns: minmax(0, 1fr); }
	.khca-sp-sidebar { position: fixed !important; top: var(--kh-top); left: 0; bottom: 0; height: auto !important; width: 280px; max-width: 86vw; z-index: 1001; transform: translateX(-102%); transition: transform .25s ease; overflow-y: auto; }
	.khca-sp-wrap.is-embedded .khca-sp-sidebar { position: absolute !important; top: 0; }
	.khca-sp-wrap.is-embedded { position: relative; }
	.khca-sp-nav-toggle:checked ~ .khca-sp-sidebar { transform: none; }
	.khca-sp-nav-toggle:checked ~ .khca-sp-overlay { display: block; position: fixed; inset: 0; background: rgba(8, 28, 24, .55); z-index: 1000; }
	.khca-sp-burger { display: inline-flex; }
	.khca-sp-topbar { padding: 12px 16px; }
	.khca-sp-topbar h1 { font-size: 18px; }
	.khca-sp-top-user span { display: none; }
	.khca-sp-content { padding: 18px 16px; }
	.khca-sp-footer { padding: 16px; }
	.khca-sp-hero { grid-template-columns: 1fr; padding: 22px; }
	.khca-sp-hero h2 { font-size: 22px; }
}

@media (max-width: 640px) {
	.khca-sp-stats, .khca-sp-stats-3 { grid-template-columns: 1fr 1fr; gap: 10px; }
	.khca-sp-stats-3 .khca-sp-stat:last-child { grid-column: 1 / -1; }
	.khca-sp-stat { padding: 13px; gap: 10px; }
	.khca-sp-stat-icon { width: 38px; height: 38px; }
	.khca-sp-stat strong { font-size: 20px; }
	.khca-sp-side { grid-template-columns: 1fr; }
	.khca-sp-grid { grid-template-columns: 1fr; }
	.khca-sp-details { grid-template-columns: 1fr; }

	/* Tables turn into stacked cards on phones */
	.khca-sp-table-wrap { background: transparent; border: 0; overflow: visible; }
	.khca-sp-table thead { display: none; }
	.khca-sp-table, .khca-sp-table tbody, .khca-sp-table tr, .khca-sp-table td { display: block; width: 100%; }
	.khca-sp-table tr { background: var(--kh-card); border: 1px solid var(--kh-line); border-radius: 14px; padding: 8px 14px; margin-bottom: 12px; }
	.khca-sp-table td { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--kh-line); text-align: right; }
	.khca-sp-table td::before { content: attr(data-label); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--kh-muted); text-align: left; flex: 0 0 auto; }
	.khca-sp-table td.khca-sp-td-action { justify-content: flex-end; border-bottom: 0; }
	.khca-sp-table td.khca-sp-td-action::before { display: none; }
	.khca-sp-table tbody tr:hover td { background: transparent; }
	.khca-sp-col-progress { min-width: 0; }
	.khca-sp-inline-progress { width: 60%; }
}

@media (prefers-reduced-motion: reduce) {
	.khca-sp-wrap * { transition: none !important; }
}

/* ---------- v0.3.0 additions ---------- */
.khca-sp-nav-explore { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
.khca-sp-hero-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.khca-sp-btn-outline { background: transparent; color: var(--kh-primary-dark) !important; border: 1.5px solid var(--kh-primary); }
.khca-sp-btn-outline:hover { background: #e0f6f2; color: var(--kh-deep) !important; }
.khca-sp-explore { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 20px 22px; border-radius: 14px; background: #fff; border: 1px solid var(--kh-line); border-left: 4px solid var(--kh-primary); }
.khca-sp-explore h3 { font-size: 16px; margin-bottom: 4px !important; }
.khca-sp-explore p { font-size: 13px; color: var(--kh-muted); }
.khca-sp-explore-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.khca-sp-report-head { max-width: none; display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.khca-sp-report-head h3 { margin-bottom: 6px !important; }
.khca-sp-report-text { flex: 1; min-width: 0; display: grid; gap: 10px; }
.khca-sp-report-text p { font-size: 13px; color: var(--kh-text); }
.khca-sp-table-wrap + .khca-sp-explore { margin-top: 22px; }
.khca-sp-wrap .khca-sp-empty .khca-sp-btn { margin-top: 12px; }
@media (max-width: 640px) {
	.khca-sp-report-head { flex-direction: column; align-items: flex-start; }
	.khca-sp-explore-actions .khca-sp-btn { flex: 1 1 100%; }
}
@media print {
	body.khca-sp-focus { background: #fff; }
	.khca-sp-sidebar, .khca-sp-topbar, .khca-sp-overlay, .khca-sp-burger, .khca-sp-noprint, .khca-sp-explore, .khca-sp-footer, #wpadminbar { display: none !important; }
	.khca-sp-wrap { display: block; }
	.khca-sp-content { max-width: none; padding: 0; }
	.khca-sp-card, .khca-sp-panel, .khca-sp-table-wrap { box-shadow: none; break-inside: avoid; }
}
