/* =====================================================================
   SIHUBIN SMK - Stylesheet
   ===================================================================*/
:root {
    --primary: #0b5d3b;
    --primary-2: #2d9d6b;
    --primary-soft: #e9f5ee;
    --dark: #0f172a;
    --sidebar: #052e1f;
    --sidebar-2: #0a3d2a;
    --text: #1e293b;
    --muted: #64748b;
    --bg: #f4f6fb;
    --border: #e7eaf3;
    --radius: 16px;
    --sb-w: 268px;
    --bs-primary: #0b5d3b;
    --bs-primary-rgb: 11, 93, 59;
    --bs-body-font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

body { font-family: var(--bs-body-font-family); color: var(--text); background: var(--bg); font-size: .925rem; }
a { text-decoration: none; }
.btn { border-radius: 10px; font-weight: 600; }
.btn-primary { background: linear-gradient(135deg, var(--primary), #15784f); border: 0; box-shadow: 0 6px 16px -6px rgba(11, 93, 59, .6); }
.btn-primary:hover { background: linear-gradient(135deg, #084a2f, var(--primary)); }
.btn-icon { width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0; border-radius: 10px; }
.btn-soft { background: var(--primary-soft); color: var(--primary); border: 0; }
.btn-soft:hover { background: #d8f3dc; color: #063b26; }
.form-control, .form-select { border-radius: 10px; border-color: var(--border); padding: .6rem .85rem; }
.form-control:focus, .form-select:focus { border-color: #95d5b2; box-shadow: 0 0 0 .2rem rgba(21, 120, 79, .15); }
.form-label { font-weight: 600; font-size: .82rem; color: #334155; margin-bottom: .35rem; }
.text-primary { color: var(--primary) !important; }

/* ------------------------------ Sidebar ------------------------------ */
.sidebar {
    position: fixed; inset: 0 auto 0 0; width: var(--sb-w); z-index: 1040;
    background: linear-gradient(180deg, var(--sidebar), var(--sidebar-2));
    color: #cbd5e1; display: flex; flex-direction: column; transition: transform .25s ease;
}
.brand { display: flex; gap: 12px; align-items: center; padding: 22px 20px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 12px; background: #fff; padding: 4px; }
.brand-name { font-weight: 800; color: #fff; font-size: 1.1rem; letter-spacing: .5px; }
.brand-sub { font-size: .72rem; color: #94a3b8; line-height: 1.2; }
.menu { padding: 12px 12px 24px; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: #334155 transparent; }
.menu-label { font-size: .68rem; text-transform: uppercase; letter-spacing: 1.2px; color: #64748b; font-weight: 700; padding: 16px 12px 6px; }
.menu-link {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: #cbd5e1; border-radius: 10px;
    font-weight: 500; margin-bottom: 2px; transition: all .15s;
}
.menu-link i { font-size: 1.05rem; width: 20px; text-align: center; opacity: .85; }
.menu-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.menu-link.active { background: linear-gradient(135deg, var(--primary), #12704a); color: #fff; box-shadow: 0 8px 20px -8px rgba(21, 120, 79, .8); }
.sidebar-backdrop { display: none; }

/* ------------------------------ Main --------------------------------- */
.main { margin-left: var(--sb-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
    position: sticky; top: 0; z-index: 1030; display: flex; align-items: center; gap: 14px;
    padding: 14px 28px; background: rgba(244, 246, 251, .85); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.topbar-title h1 { font-size: 1.25rem; font-weight: 800; margin: 0; }
.user-chip { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 6px 12px 6px 6px; }
.user-chip b { display: block; font-size: .82rem; line-height: 1.1; }
.user-chip small { color: var(--muted); font-size: .72rem; }
.avatar {
    width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; font-weight: 700; font-size: .8rem; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.content { padding: 26px 28px; flex: 1; }
.app-footer { padding: 18px 28px; color: var(--muted); font-size: .78rem; border-top: 1px solid var(--border); }

/* ------------------------------ Cards -------------------------------- */
.card { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.card-header { background: transparent; border-bottom: 1px solid var(--border); padding: 16px 20px; font-weight: 700; }
.card-body { padding: 20px; }
.stat {
    position: relative; overflow: hidden; border-radius: var(--radius); padding: 20px; color: #fff; min-height: 128px;
    box-shadow: 0 12px 24px -12px rgba(15, 23, 42, .35);
}
.stat::after { content: ''; position: absolute; right: -30px; top: -30px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.stat .stat-icon { position: absolute; right: 18px; bottom: 14px; font-size: 2.6rem; opacity: .35; }
.stat .stat-value { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.stat .stat-label { font-size: .82rem; opacity: .9; font-weight: 500; }
.stat small { opacity: .85; font-size: .74rem; }
.g-indigo { background: linear-gradient(135deg, #0b5d3b, #12704a); }
.g-cyan { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.g-green { background: linear-gradient(135deg, #059669, #10b981); }
.g-orange { background: linear-gradient(135deg, #ea580c, #f59e0b); }
.g-pink { background: linear-gradient(135deg, #db2777, #f43f5e); }
.g-slate { background: linear-gradient(135deg, #334155, #475569); }

.page-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.page-head h2 { font-size: 1.35rem; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 10px; }
.page-head h2 .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 1.2rem; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: .85rem; }

/* ------------------------------ Table -------------------------------- */
.table { margin: 0; }
.table > :not(caption) > * > * { padding: .8rem 1rem; border-color: #eef1f6; vertical-align: middle; }
.table thead th { background: #f8fafc; color: #475569; font-size: .74rem; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; white-space: nowrap; }
.table-hover tbody tr:hover { background: #fafbff; }
.cell-avatar { display: flex; align-items: center; gap: 10px; }
.cell-avatar .avatar { width: 34px; height: 34px; font-size: .72rem; }
.badge { font-weight: 600; padding: .45em .75em; border-radius: 8px; }
.badge.bg-success { background: #dcfce7 !important; color: #15803d; }
.badge.bg-primary { background: #d8f3dc !important; color: #084a2f; }
.badge.bg-warning { background: #fef3c7 !important; color: #b45309; }
.badge.bg-danger { background: #fee2e2 !important; color: #b91c1c; }
.badge.bg-info { background: #cffafe !important; color: #0e7490; }
.badge.bg-secondary { background: #f1f5f9 !important; color: #475569; }
.act .btn { width: 32px; height: 32px; padding: 0; display: inline-grid; place-items: center; border-radius: 8px; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty i { font-size: 3rem; color: #b7e4c7; }
.pagination .page-link { border-radius: 8px !important; margin: 0 2px; border: 0; color: var(--text); font-weight: 600; }
.pagination .active .page-link { background: var(--primary); }
.thumb { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }

.confirm-icon { width: 64px; height: 64px; margin: auto; border-radius: 50%; display: grid; place-items: center; background: #fee2e2; color: #dc2626; font-size: 1.6rem; }
.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.list-clean li:last-child { border-bottom: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.detail-grid dt { color: var(--muted); font-weight: 600; font-size: .8rem; }
.detail-grid dd { font-weight: 500; margin-bottom: 14px; }
.welcome {
    border-radius: var(--radius); padding: 26px; color: #fff; position: relative; overflow: hidden;
    background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .18), transparent 40%), linear-gradient(135deg, #052e1f, #0b5d3b 55%, #2d9d6b);
}
.welcome h3 { font-weight: 800; }

/* ------------------------------ Login -------------------------------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-hero {
    position: relative; color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(45, 157, 107, .35), transparent 40%), radial-gradient(circle at 80% 80%, rgba(18, 112, 74, .45), transparent 45%), #052e1f;
}
.auth-hero h1 { font-size: 2.6rem; font-weight: 800; line-height: 1.15; }
.auth-hero .feat { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: #cbd5e1; }
.auth-hero .feat i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #95d5b2; flex-shrink: 0; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px; background: #fff; }
.auth-form .box { width: 100%; max-width: 400px; }
.demo-acc { font-size: .78rem; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 12px; padding: 12px 14px; }
.demo-acc code { color: var(--primary); }

/* ----------------------------- Responsive ---------------------------- */
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); }
    .sb-open .sidebar { transform: none; }
    .sb-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 1035; }
    .main { margin-left: 0; }
    .content, .topbar { padding-left: 16px; padding-right: 16px; }
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-hero { display: none; }
}

/* ------------------------------- Print ------------------------------- */
@media print {
    .sidebar, .topbar, .app-footer, .no-print { display: none !important; }
    .main { margin: 0; }
}

/* ------------------------------ Peta & Absensi ---------------------------- */
.map-box { height: 340px; border-radius: 14px; border: 1px solid var(--border); overflow: hidden; z-index: 1; }
.absen-hero { border-radius: var(--radius); padding: 22px; color: #fff; background: linear-gradient(135deg, #052e1f, #0b5d3b 60%, #2d9d6b); }
.clock { font-size: 2.8rem; font-weight: 800; letter-spacing: 1px; line-height: 1; font-variant-numeric: tabular-nums; }
.absen-btn { border-radius: 18px; padding: 18px; font-size: 1.05rem; font-weight: 700; width: 100%; border: 0; color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; }
.absen-btn:disabled { opacity: .45; }
.absen-in { background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 10px 24px -10px rgba(16, 185, 129, .8); }
.absen-out { background: linear-gradient(135deg, #ea580c, #f59e0b); box-shadow: 0 10px 24px -10px rgba(245, 158, 11, .8); }
.gps-state { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: #f8fafc; border: 1px solid var(--border); font-size: .85rem; }
.gps-state.ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.gps-state.bad { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.cam-wrap { position: relative; border-radius: 14px; overflow: hidden; background: #0f172a; aspect-ratio: 4/3; }
.cam-wrap video, .cam-wrap img, .cam-wrap canvas { width: 100%; height: 100%; object-fit: cover; }
.cam-wrap video { transform: scaleX(-1); }
.cam-wrap .cam-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #94a3b8; text-align: center; font-size: .85rem; }
.timeline-day { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.timeline-day:last-child { border: 0; }
.wa-bubble { background: #dcf8c6; border-radius: 12px 12px 12px 2px; padding: 10px 12px; white-space: pre-wrap; font-size: .85rem; max-width: 520px; }

/* ---------------- Tema hijau botol (deep green): override Bootstrap ---------------- */
:root {
    --bs-link-color: #0b5d3b; --bs-link-color-rgb: 11, 93, 59; --bs-link-hover-color: #084a2f; --bs-link-hover-color-rgb: 8, 74, 47;
    --bs-primary-text-emphasis: #084a2f; --bs-primary-bg-subtle: #e3f1e8; --bs-primary-border-subtle: #b7e4c7;
    --bs-focus-ring-color: rgba(11, 93, 59, .25);
}
.btn-primary { --bs-btn-bg: #0b5d3b; --bs-btn-border-color: #0b5d3b; --bs-btn-hover-bg: #084a2f; --bs-btn-hover-border-color: #084a2f;
    --bs-btn-active-bg: #063b26; --bs-btn-active-border-color: #063b26; --bs-btn-disabled-bg: #0b5d3b; --bs-btn-disabled-border-color: #0b5d3b; }
.btn-outline-primary, .btn-check + .btn-outline-primary { --bs-btn-color: #0b5d3b; --bs-btn-border-color: #0b5d3b; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #0b5d3b;
    --bs-btn-hover-border-color: #0b5d3b; --bs-btn-active-color: #fff; --bs-btn-active-bg: #084a2f; --bs-btn-active-border-color: #084a2f; }
.border-primary { border-color: #0b5d3b !important; }
.progress { --bs-progress-bar-bg: #0b5d3b; }
.form-check-input:checked { background-color: #0b5d3b; border-color: #0b5d3b; }
.form-check-input:focus { border-color: #95d5b2; box-shadow: 0 0 0 .2rem rgba(11, 93, 59, .15); }
.pagination { --bs-pagination-color: #0b5d3b; --bs-pagination-active-bg: #0b5d3b; --bs-pagination-active-border-color: #0b5d3b; --bs-pagination-hover-color: #084a2f; --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(11, 93, 59, .2); }
.nav-pills { --bs-nav-pills-link-active-bg: #0b5d3b; }
.nav { --bs-nav-link-color: #0b5d3b; --bs-nav-link-hover-color: #084a2f; }
.list-group { --bs-list-group-active-bg: #0b5d3b; --bs-list-group-active-border-color: #0b5d3b; }
.dropdown-menu { --bs-dropdown-link-active-bg: #0b5d3b; }
::selection { background: #b7e4c7; color: #052e1f; }

/* ---------------- v1.5.1: Sinkron Dapodik, Backup & Restore, Info Aplikasi ---------------- */
.sys-tabs { gap: 6px; flex-wrap: wrap; }
.sys-tabs .nav-link { border-radius: 10px; font-weight: 600; font-size: .88rem; color: #334155; background: #fff; border: 1px solid var(--border); padding: 8px 16px; }
.sys-tabs .nav-link:hover { color: var(--primary); border-color: #b7e4c7; }
.sys-tabs .nav-link.active { color: #fff; border-color: var(--primary); }
.ent-ic { width: 42px; height: 42px; min-width: 42px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 1.2rem; }
.ent-card { transition: transform .15s, box-shadow .15s; }
.ent-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(5, 46, 31, .45); }
.dpd-steps { padding-left: 1.2rem; }
.dpd-steps li { margin-bottom: .45rem; }
.dpd-steps li::marker { color: var(--primary); font-weight: 700; }
.dpd-json { background: #052e1f; color: #d8f3dc; border-radius: 12px; padding: 14px 16px; font-size: .76rem; max-height: 340px; overflow: auto; white-space: pre; }
.dpd-table td { vertical-align: top; }
.dpd-table s { text-decoration-color: rgba(220, 38, 38, .55); }
.mode-opt { display: block; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.mode-opt:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.bk-opt { border: 1px solid var(--border); border-radius: 14px; padding: 16px; background: #fff; }
.bk-opt:hover { border-color: #b7e4c7; }
.flash-ring { box-shadow: 0 0 0 4px rgba(212, 160, 23, .45) !important; transition: box-shadow .3s; }
.info-hero { position: relative; overflow: hidden; border-radius: var(--radius); padding: 28px 30px; color: #fff;
    background: radial-gradient(circle at 88% 15%, rgba(255, 255, 255, .16), transparent 38%), linear-gradient(135deg, #052e1f, #0b5d3b 60%, #2d9d6b); }
.info-hero::after { content: ''; position: absolute; right: -60px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .06); }
.info-logo { width: 84px; height: 84px; border-radius: 22px; background: #fff; padding: 10px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45); }
.info-ver { font-size: .95rem; vertical-align: middle; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); padding: 4px 12px; border-radius: 20px; font-weight: 700; }
.info-tbl th { width: 42%; font-weight: 600; color: var(--muted); font-size: .82rem; padding-left: 20px; }
.info-tbl td { font-size: .88rem; padding-right: 20px; }
.info-tbl tr:last-child th, .info-tbl tr:last-child td { border-bottom: 0; }
.tech-item { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--border); border-radius: 12px; padding: 12px; height: 100%; }
.db-box { border: 1px solid var(--border); border-radius: 12px; padding: 12px 8px; background: #f8fbf9; height: 100%; }
.changelog { list-style: none; padding: 0 0 0 18px; border-left: 2px solid #d8f3dc; }
.changelog li { position: relative; padding: 0 0 14px 14px; }
.changelog li::before { content: ''; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid #95d5b2; }
.changelog li.now::before { border-color: var(--primary); background: var(--primary); }
.changelog li:last-child { padding-bottom: 0; }

/* ---------- v1.5.2: sub menu sidebar dapat dibuka/ditutup ---------- */
.menu-tools { display: flex; align-items: center; gap: 4px; padding: 10px 24px 0; font-size: .66rem; text-transform: uppercase; letter-spacing: 1.2px; color: #6b8f7e; font-weight: 700; }
.menu-tools span { flex: 1; }
.mt-btn { border: 0; background: rgba(255, 255, 255, .05); color: #a7c4b5; width: 28px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: .85rem; transition: all .15s; }
.mt-btn:hover, .mt-btn:focus-visible { background: rgba(255, 255, 255, .12); color: #fff; outline: none; }
.menu-group { margin-top: 4px; }
.menu-toggle {
    width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; background: transparent;
    color: #b6d3c4; border-radius: 10px; font-size: .86rem; font-weight: 600; letter-spacing: .1px; line-height: 1.25; text-align: left; transition: all .15s;
}
.menu-toggle > i:first-child { font-size: 1rem; width: 20px; text-align: center; opacity: .9; }
.menu-toggle > span:not(.mg-count) { flex: 1; min-width: 0; }
.menu-toggle:hover, .menu-toggle:focus-visible { background: rgba(255, 255, 255, .06); color: #fff; outline: none; }
.mg-count { font-size: .64rem; font-weight: 700; letter-spacing: 0; background: rgba(255, 255, 255, .08); color: #a7c4b5; border-radius: 20px; padding: 1px 7px; }
.mg-chev { font-size: .75rem; transition: transform .25s ease; opacity: .8; }
.menu-group.open > .menu-toggle { color: #fff; }
.menu-group.open > .menu-toggle .mg-chev { transform: rotate(180deg); }
.menu-group.has-active > .menu-toggle { color: #fff; }
.menu-group.has-active:not(.open) > .menu-toggle { background: rgba(45, 157, 107, .18); }
.menu-group.has-active > .menu-toggle .mg-count { background: #2d9d6b; color: #fff; }
.menu-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.menu-group.open > .menu-sub { grid-template-rows: 1fr; }
.menu-sub-in { overflow: hidden; min-height: 0; margin-left: 21px; padding-left: 8px; border-left: 1px solid rgba(255, 255, 255, .08); visibility: hidden; transition: visibility 0s linear .25s; }
.menu-group.open > .menu-sub > .menu-sub-in { visibility: visible; transition-delay: 0s; padding-top: 2px; padding-bottom: 4px; }
.menu-sub-in .menu-link { padding: 8px 10px; font-size: .88rem; gap: 10px; }
.menu-sub-in .menu-link i { font-size: .95rem; }
@media (prefers-reduced-motion: reduce) { .menu-sub, .mg-chev, .menu-sub-in { transition: none; } }

/* ---------- v1.5.3: template sertifikat, import Excel, generate akun ---------- */
.sd-wrap { background: repeating-conic-gradient(#eef2ef 0 25%, #f8faf9 0 50%) 0 0 / 18px 18px; padding: 18px; }
.sd-canvas { position: relative; width: 100%; background: #fff; box-shadow: 0 8px 30px -10px rgba(5, 46, 31, .35); overflow: hidden; outline: none; user-select: none; touch-action: none; }
.sd-canvas:focus-visible { box-shadow: 0 0 0 3px rgba(45, 157, 107, .45), 0 8px 30px -10px rgba(5, 46, 31, .35); }
.sd-canvas.grid::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(11, 93, 59, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 93, 59, .07) 1px, transparent 1px); background-size: var(--g) var(--g); }
.sd-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sd-frame { position: absolute; pointer-events: none; }
.sd-el { position: absolute; cursor: move; line-height: 1.3; outline: 1px dashed transparent; outline-offset: 1px; }
.sd-el:hover { outline-color: rgba(45, 157, 107, .6); }
.sd-el.sel { outline: 2px solid #2d9d6b; background: rgba(45, 157, 107, .06); z-index: 5; }
.sd-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 6px; background: #fff; }
.sd-item-h { display: flex; align-items: center; gap: 6px; padding: 6px 8px; }
.sd-item-t { flex: 1; border: 0; background: none; text-align: left; font-weight: 600; font-size: .85rem; display: flex; gap: 6px; align-items: center; padding: 2px 0; color: inherit; min-width: 0; }
.sd-item-t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-item-t i { transition: transform .2s; font-size: .75rem; color: var(--muted); }
.sd-item.open { border-color: #95d5b2; box-shadow: 0 0 0 3px rgba(45, 157, 107, .12); }
.sd-item.open .sd-item-t i { transform: rotate(90deg); }
.sd-item-b { display: none; padding: 0 10px 10px; }
.sd-item.open .sd-item-b { display: block; }
.sd-l { font-size: .68rem; color: var(--muted); margin-bottom: 1px; display: block; }
#blockPanel { max-height: 62vh; overflow-y: auto; position: relative; }
.sert-thumb { display: block; position: relative; overflow: hidden; background: #eef2ef; border-bottom: 1px solid var(--border); aspect-ratio: 297 / 210; border-radius: 14px 14px 0 0; }
.sert-thumb.portrait { aspect-ratio: 297 / 210; }
.sert-scale { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; }
.sert-scale .sert-page { position: relative; overflow: hidden; background: #fff; margin: 0; }
.sert-scale .sert-bg { position: absolute; left: 0; top: 0; }
.sert-scale .sert-b { position: absolute; line-height: 1.3; }
.sert-card.is-active { border-color: #2d9d6b; box-shadow: 0 0 0 3px rgba(45, 157, 107, .15); }
.imp-steps { display: flex; gap: 10px; flex-wrap: wrap; counter-reset: st; }
.imp-steps li { list-style: none; flex: 1 1 180px; background: #f3f8f5; border: 1px solid #d9eadf; border-radius: 12px; padding: 10px 12px 10px 44px; position: relative; font-size: .84rem; }
.imp-steps li::before { counter-increment: st; content: counter(st); position: absolute; left: 12px; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: .75rem; display: grid; place-items: center; }
.imp-row-error { background: #fef2f2 !important; }
.imp-diff { font-size: .76rem; color: #475569; }
.imp-diff s { color: #b91c1c; }
.kred { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #f1f5f9; padding: 1px 6px; border-radius: 6px; }
