/* SIM Pesantren — lapisan tema Bootstrap 5 (tanpa build step) */
:root {
    --brand: #0B5D45;
    --brand-2: #0E9F6E;
    --gold: #C8A04A;
    --app-bg: #F4F7F5;
    --app-border: #E2E9E5;
    --app-muted: #64748B;
    --app-soft: #F1F5F9;
    --sidebar-w: 264px;
    --bs-body-font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-font-size: .9rem;
    --bs-body-color: #1E293B;
    --bs-border-color: var(--app-border);
    --bs-primary: var(--brand);
    --bs-link-color: var(--brand-2);
}
body { background: var(--app-bg); -webkit-font-smoothing: antialiased; }
h1, .h1 { font-size: 1.45rem; font-weight: 700; letter-spacing: -.01em; }
h2, .h2 { font-size: 1.15rem; font-weight: 700; }
h3, .h3, .card-title { font-size: 1rem; font-weight: 600; }
.text-muted, .muted { color: var(--app-muted) !important; }
.fs-xs { font-size: .75rem; } .fs-sm { font-size: .82rem; }
.fw-semibold { font-weight: 600; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: .85em; }

/* ---------- shell ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { background: var(--brand); color: #CFE5DC; }
@media (min-width: 992px) {
    .sidebar { width: var(--sidebar-w); flex-shrink: 0; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
    .sidebar .offcanvas-body { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
}
.sidebar.offcanvas-lg { --bs-offcanvas-width: 280px; --bs-offcanvas-bg: var(--brand); }
.sidebar .offcanvas-header { display: none; }
@media (max-width: 991.98px) { .sidebar .offcanvas-body { display: flex; flex-direction: column; padding: 0; } }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 12px; color: #fff; text-decoration: none; }
.brand-logo { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.14); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.brand b { display: block; font-size: .98rem; line-height: 1.15; }
.brand small { font-size: .72rem; color: #A7CFC0; }
.school-chip { margin: 0 14px 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.07); font-size: .78rem; }
.school-chip b { color: #fff; display: block; font-size: .82rem; }
.side-nav { flex: 1; overflow-y: auto; padding: 4px 10px 12px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.nav-gl { font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8DBFAB; padding: 12px 10px 4px; }
.nav-i { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; font-size: .86rem; color: #CFE5DC; text-decoration: none; transition: .15s; }
.nav-i i { font-size: 1rem; width: 18px; text-align: center; }
.nav-i:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-i.active { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.side-foot { padding: 12px 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: .75rem; display: flex; gap: 8px; align-items: center; }
.side-foot b { color: #fff; display: block; font-size: .82rem; }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 64px; background: #fff; border-bottom: 1px solid var(--app-border); display: flex; align-items: center; gap: 10px; padding: 0 22px; position: sticky; top: 0; z-index: 1020; }
.topbar .gsearch { flex: 1; max-width: 480px; position: relative; }
.topbar .gsearch input { background: var(--app-soft); border-color: transparent; padding-left: 36px; height: 40px; border-radius: 10px; }
.topbar .gsearch input:focus { background: #fff; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(14,159,110,.15); }
.topbar .gsearch i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--app-muted); }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; display: inline-grid; place-items: center; color: var(--app-muted); border: 0; background: transparent; position: relative; }
.icon-btn:hover { background: var(--app-soft); color: #1E293B; }
.dot-badge { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; border-radius: 9px; background: #DC2626; color: #fff; font-size: .62rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.content { padding: 20px 26px 28px; flex: 1; }
.page { max-width: 1440px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 767.98px) {
    .topbar { padding: 0 10px; gap: 6px; }
    .content { padding: 14px 12px 24px; }
    .topbar .gsearch { display: none; }
}

/* ---------- page header ---------- */
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-h p { margin: 4px 0 0; color: var(--app-muted); font-size: .88rem; }
.crumbs { font-size: .75rem; color: var(--app-muted); margin-bottom: 4px; }
.crumbs a { color: var(--app-muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-2); }

/* ---------- cards / kpi ---------- */
.card { border-color: var(--app-border); border-radius: 14px; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06); }
.card-header { background: transparent; border-bottom: 0; padding: 16px 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card-header h3 { margin: 0; }
.card-header p { margin: 2px 0 0; font-size: .78rem; color: var(--app-muted); }
.card-body { padding: 16px 18px; }
.kpi { background: #fff; border: 1px solid var(--app-border); border-radius: 14px; padding: 14px 16px; height: 100%; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.kpi-l { font-size: .78rem; color: var(--app-muted); font-weight: 500; }
.kpi-v { font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.kpi-s { font-size: .74rem; color: var(--app-muted); }
.kpi-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; font-size: 1rem; }
.t-blue { background: #EFF6FF; color: #2563EB; } .t-green { background: #ECFDF3; color: #15803D; } .t-amber { background: #FFFAEB; color: #B45309; }
.t-red { background: #FEF3F2; color: #B42318; } .t-violet { background: #F5F3FF; color: #6D28D9; } .t-teal { background: #F0FDFA; color: #0F766E; } .t-slate { background: #F1F5F9; color: #334155; }

/* soft badges */
.text-bg-success-soft { background: #ECFDF3 !important; color: #15803D !important; }
.text-bg-warning-soft { background: #FFFAEB !important; color: #B45309 !important; }
.text-bg-danger-soft { background: #FEF3F2 !important; color: #B42318 !important; }
.text-bg-info-soft { background: #EFF6FF !important; color: #1D4ED8 !important; }
.text-bg-primary-soft { background: #EFF6FF !important; color: #1D4ED8 !important; }
.text-bg-secondary-soft { background: #F1F5F9 !important; color: #475569 !important; }
.badge { font-weight: 600; font-size: .72rem; }
.chip { display: inline-flex; padding: 2px 8px; border-radius: 6px; font-size: .72rem; font-weight: 500; background: var(--app-soft); }
.sq { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex-shrink: 0; }

/* buttons */
.btn { border-radius: 9px; font-weight: 600; font-size: .85rem; }
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: color-mix(in srgb, var(--brand) 85%, #000); --bs-btn-hover-border-color: color-mix(in srgb, var(--brand) 85%, #000); --bs-btn-active-bg: color-mix(in srgb, var(--brand) 80%, #000); }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); }
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: var(--app-border); }
.btn-sm { font-size: .78rem; }
.form-control, .form-select { border-radius: 9px; border-color: var(--app-border); font-size: .88rem; }
.form-label { font-size: .8rem; font-weight: 600; color: #334155; margin-bottom: 4px; }
.form-sec { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--app-muted); margin: 6px 0 2px; }

/* avatar */
.avatar { border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 600; flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.cell2 { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.cell2 b { font-weight: 600; }
.cell2 small { color: var(--app-muted); font-size: .76rem; }

/* tables / datatables */
.table { --bs-table-hover-bg: #F8FAFC; font-size: .86rem; margin-bottom: 0; }
.table > thead th { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--app-muted); background: #F8FAFC !important; border-bottom-width: 1px; white-space: nowrap; }
.table td { vertical-align: middle; }
div.dt-container .dt-layout-row { padding: 0 2px; }
div.dt-container .dt-search input, div.dt-container .dt-length select { border-radius: 9px; }
div.dt-container .dt-paging .page-link { border-radius: 8px !important; margin: 0 2px; }
.card .dt-container { padding: 12px 0 14px; }
.card .dt-container > .dt-layout-table { margin: 0; }
.card .dt-container table.dataTable { border-top: 1px solid var(--app-border); border-bottom: 1px solid var(--app-border); }
table.dataTable > tbody > tr.dtr-expanded > td { background: #F8FAFC; }
tr[data-href] { cursor: pointer; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar .form-select, .toolbar .form-control { width: auto; min-width: 140px; }
@media (max-width: 575.98px) { .toolbar .form-select, .toolbar .form-control { flex: 1 1 140px; } }

/* tabs */
.nav-tabs-line { border-bottom: 1px solid var(--app-border); gap: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.nav-tabs-line .nav-link { border: 0; border-bottom: 2px solid transparent; color: var(--app-muted); font-weight: 600; font-size: .86rem; padding: 10px 12px; white-space: nowrap; border-radius: 0; }
.nav-tabs-line .nav-link.active { color: var(--brand); border-bottom-color: var(--brand); background: transparent; }
.nav-pills-sm .nav-link { padding: 5px 12px; font-size: .8rem; border-radius: 8px; color: var(--app-muted); font-weight: 600; }
.nav-pills-sm { background: var(--app-soft); border-radius: 10px; padding: 3px; display: inline-flex; flex-wrap: wrap; }
.nav-pills-sm .nav-link.active { background: #fff; color: #1E293B; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* progress */
.progress { height: 6px; border-radius: 99px; background: #EEF2F7; }
.progress-bar { border-radius: 99px; }

/* lists */
.list-clean { list-style: none; margin: 0; padding: 0; }
.list-row { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--app-border); }
.list-row:last-child { border-bottom: 0; }
.ev-date { width: 46px; height: 48px; border-radius: 10px; background: #ECFDF5; color: var(--brand); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; line-height: 1.05; }
.ev-date b { font-size: 1.05rem; } .ev-date small { font-size: .62rem; text-transform: uppercase; font-weight: 600; }
.empty { text-align: center; padding: 34px 16px; color: var(--app-muted); }
.empty i { font-size: 1.8rem; display: block; margin-bottom: 6px; color: #94A3B8; }

/* hero */
.hero { background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff; border-radius: 18px; padding: 22px 24px; }
.hero .text-muted { color: rgba(255,255,255,.75) !important; }

/* class / course / book cards */
.tile { background: #fff; border: 1px solid var(--app-border); border-radius: 14px; overflow: hidden; height: 100%; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: .15s; }
.tile:hover { border-color: #CBD5E1; box-shadow: 0 10px 24px -10px rgba(16,24,40,.2); transform: translateY(-1px); color: inherit; }
.tile-band { height: 84px; padding: 14px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; }

/* weekly timetable */
.wk { display: grid; grid-template-columns: 82px repeat(5, minmax(120px, 1fr)); gap: 6px; min-width: 760px; }
.wk-h { font-size: .78rem; font-weight: 600; text-align: center; padding: 8px; background: var(--app-soft); border-radius: 8px; }
.wk-t { font-size: .75rem; display: flex; flex-direction: column; justify-content: center; }
.wk-t span { color: var(--app-muted); font-size: .68rem; }
.wk-c { border-left: 3px solid; border-radius: 8px; padding: 6px 8px; font-size: .74rem; min-height: 56px; display: flex; flex-direction: column; gap: 1px; }
.wk-c b { font-size: .78rem; }
.wk-c.empty-slot { border: 1px dashed var(--app-border); background: transparent; color: #CBD5E1; align-items: center; justify-content: center; }
.wk-break { grid-column: 2 / span 5; font-size: .7rem; color: var(--app-muted); text-align: center; padding: 4px; background: repeating-linear-gradient(45deg, #F8FAFC, #F8FAFC 6px, #F1F5F9 6px, #F1F5F9 12px); border-radius: 6px; }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-h { font-size: .72rem; font-weight: 600; text-align: center; color: var(--app-muted); padding: 4px; }
.cal-d { min-height: 96px; border: 1px solid #EEF2F7; border-radius: 9px; padding: 5px; display: flex; flex-direction: column; gap: 3px; background: #fff; overflow: hidden; }
.cal-d.out { background: #FAFBFD; color: #CBD5E1; }
.cal-d.today { border-color: var(--brand-2); box-shadow: inset 0 0 0 1px var(--brand-2); }
.cal-d .n { font-size: .75rem; font-weight: 600; }
.cal-ev { font-size: .66rem; font-weight: 600; padding: 2px 5px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
@media (max-width: 767.98px) { .cal-d { min-height: 58px; } .cal-ev { font-size: 0; height: 6px; padding: 0; } }

/* attendance */
.att-seg .btn { padding: 4px 9px; font-size: .74rem; min-width: 34px; }
.att-dot { width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center; color: #fff; font-size: .66rem; font-weight: 700; }
.matrix td, .matrix th { padding: 4px 3px !important; text-align: center; font-size: .72rem; }
.matrix .sticky { position: sticky; left: 0; background: #fff; z-index: 1; text-align: left; min-width: 160px; }

/* gradebook */
.gin { width: 62px; text-align: center; padding: 3px 4px; }

/* kanban */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; }
.kb-col { background: #EEF2F7; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; }
.kb-card { background: #fff; border-radius: 10px; padding: 10px; border: 1px solid var(--app-border); font-size: .8rem; }

/* chat */
.chat { display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - 210px); min-height: 480px; overflow: hidden; }
.chat-list { border-right: 1px solid var(--app-border); overflow-y: auto; }
.chat-item { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #F1F5F9; text-decoration: none; color: inherit; }
.chat-item:hover { background: #F8FAFC; color: inherit; }
.chat-item.active { background: #ECFDF5; }
.chat-main { display: flex; flex-direction: column; min-width: 0; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #FAFBFD; }
.msg { max-width: 75%; padding: 9px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--app-border); font-size: .86rem; align-self: flex-start; }
.msg.me { align-self: flex-end; background: var(--brand); color: #fff; border-color: var(--brand); }
.msg small { display: block; font-size: .68rem; opacity: .7; margin-top: 3px; }
@media (max-width: 767.98px) {
    .chat { grid-template-columns: 1fr; height: auto; }
    .chat-list { max-height: 260px; border-right: 0; border-bottom: 1px solid var(--app-border); }
    .chat-msgs { max-height: 55vh; }
}

/* notifications */
.note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: inherit; }
.note:hover { background: #F8FAFC; color: inherit; }
.note.unread { background: #F5F9FF; }
.note-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: #EFF6FF; color: #2563EB; }
.dropdown-notes { width: min(380px, 92vw); max-height: 440px; overflow-y: auto; }

/* login */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-side { background: linear-gradient(140deg, var(--brand), var(--brand-2)); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.demo-acc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.demo-acc button { text-align: left; border: 1px solid var(--app-border); background: #fff; border-radius: 10px; padding: 8px 10px; font-size: .78rem; }
.demo-acc button:hover { border-color: var(--brand-2); background: #F8FAFF; }
@media (max-width: 991.98px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* toast */
.toast-container { z-index: 2000; }

/* charts */
.chart-box { position: relative; height: 260px; }
.chart-box.sm { height: 200px; } .chart-box.lg { height: 320px; }

@media print {
    .sidebar, .topbar, .no-print { display: none !important; }
    .content { padding: 0; }
    .card { box-shadow: none; }
}
.d-contents{display:contents}.min-w-0{min-width:0}

/* fixes */
.sidebar, .sidebar.offcanvas-lg { background-color: var(--brand) !important; }
.demo-acc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.demo-acc button { min-width: 0; overflow: hidden; }
table.dataTable td.dtr-control { white-space: nowrap; }
table.dataTable td.dtr-control > div { display: inline-flex !important; vertical-align: middle; }
table.dataTable td.dtr-control > b, table.dataTable td.dtr-control > a { vertical-align: middle; }
div.dt-container { max-width: 100%; }
div.dt-container .dt-layout-table { overflow-x: auto; }
div.dt-container .dt-layout-table > .dt-layout-cell { min-width: 0; }

/* ---------- pesantren ---------- */
.form-control:focus, .form-select:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(14,159,110,.15); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.list-group-item.active { background: var(--brand); border-color: var(--brand); }
.page-link { color: var(--brand); } .active > .page-link { background: var(--brand); border-color: var(--brand); }
.hijri { font-size: .78rem; color: var(--gold); font-weight: 600; }
.hero .hijri { color: #F6E7B8; }
.pattern { background-image: radial-gradient(circle at 25% 25%, rgba(255,255,255,.07) 2px, transparent 2.5px), radial-gradient(circle at 75% 75%, rgba(255,255,255,.07) 2px, transparent 2.5px); background-size: 28px 28px; }
.auth-side { background: linear-gradient(150deg, #073D2D, var(--brand) 55%, #0E7C5A); position: relative; }
.auth-side::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 25% 25%, rgba(255,255,255,.06) 2px, transparent 2.5px), radial-gradient(circle at 75% 75%, rgba(255,255,255,.06) 2px, transparent 2.5px); background-size: 30px 30px; pointer-events: none; }
.auth-side > * { position: relative; z-index: 1; }
.bismillah { font-family: "Amiri", "Scheherazade New", "Traditional Arabic", serif; font-size: 1.6rem; color: #F6E7B8; direction: rtl; }

/* peta hafalan 30 juz */
.juz-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.juz { border-radius: 8px; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; border: 1px solid var(--app-border); background: #fff; color: #94A3B8; position: relative; overflow: hidden; }
.juz small { font-size: .58rem; font-weight: 600; }
.juz .fill { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(14,159,110,.18); }
.juz.full { background: var(--brand); border-color: var(--brand); color: #fff; }
.juz.full .fill { display: none; }
.juz > span, .juz > small { position: relative; }
.juz.part { color: var(--brand); border-color: #A7E3CB; }
@media (max-width: 575.98px) { .juz-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* jadwal harian (timeline) */
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl li { display: flex; gap: 12px; padding: 7px 0; position: relative; }
.tl li::before { content: ""; position: absolute; left: 51px; top: 0; bottom: 0; width: 2px; background: #E7EFEA; }
.tl .jam { width: 44px; font-size: .74rem; font-weight: 700; color: var(--app-muted); flex-shrink: 0; padding-top: 2px; }
.tl .dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; position: relative; z-index: 1; box-shadow: 0 0 0 3px #fff; }
.tl .now { background: #ECFDF5; border-radius: 10px; margin: 0 -8px; padding: 7px 8px; }

/* ring progres */
.ring { --p: 0; --c: var(--brand-2); width: 96px; height: 96px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), #E7EFEA 0); display: grid; place-items: center; flex-shrink: 0; }
.ring > div { width: 76px; height: 76px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.ring b { font-size: 1.15rem; } .ring small { font-size: .65rem; color: var(--app-muted); }
.hero .ring > div { background: rgba(255,255,255,.95); color: #0F172A; }

/* tile kamar */
.kamar { border: 1px solid var(--app-border); border-radius: 12px; padding: 12px; background: #fff; height: 100%; }
.bed { display: inline-flex; width: 20px; height: 20px; border-radius: 5px; background: #E7EFEA; margin: 1px; }
.bed.on { background: var(--brand-2); }

/* dokumen cetak (rapor, surat izin, kwitansi) */
.doc { background: #fff; border: 1px solid var(--app-border); border-radius: 14px; padding: 28px 32px; max-width: 860px; margin: 0 auto; width: 100%; }
.doc-kop { display: flex; gap: 14px; align-items: center; border-bottom: 3px double #0F172A; padding-bottom: 12px; margin-bottom: 18px; }
.doc-kop img, .doc-kop .logo { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; }
.doc-kop .logo { background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.8rem; }
.doc table td, .doc table th { padding: 5px 8px; }
.ttd { display: flex; justify-content: space-between; gap: 24px; margin-top: 36px; text-align: center; font-size: .85rem; }
.ttd > div { min-width: 180px; }
.ttd .garis { margin-top: 64px; border-top: 1px solid #0F172A; padding-top: 4px; font-weight: 600; }
@media print {
    body { background: #fff; }
    .doc { border: 0; padding: 0; max-width: none; }
    .page { gap: 0; }
    a[href]::after { content: none; }
}
@media (max-width: 575.98px) { .doc { padding: 18px 16px; } .ttd { flex-direction: column; } }
