/* Azaddy ERP: satu stylesheet untuk semua halaman plugin. Semua aturan di bawah .azd. */
.azd {
	--azd-teal: #00aa88;
	--azd-teal-dark: #008a6e;
	--azd-teal-soft: #e6f7f3;
	--azd-coral: #f76c6c;
	--azd-coral-soft: #fdecec;
	--azd-purple: #966ae4;
	--azd-yellow: #fcd34d;
	--azd-text: #1a202c;
	--azd-muted: #64748b;
	--azd-border: #e2e8f0;
	--azd-bg: #f8fafc;
	--azd-card: #ffffff;
	--azd-radius: 14px;
	color-scheme: light;
	font-family: "Plus Jakarta Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--azd-text);
	font-size: 14px;
	line-height: 1.5;
	max-width: 1200px;
	margin: 0 auto;
	padding: 16px;
	box-sizing: border-box;
}
.azd *, .azd *::before, .azd *::after { box-sizing: border-box; }

.azd-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.azd-title { margin: 0; font-size: 22px; font-weight: 800; color: var(--azd-teal); letter-spacing: -0.3px; }
.azd-sub, .azd-muted { margin: 2px 0 0; color: var(--azd-muted); font-size: 13px; }

.azd-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; }
.azd-grid > * { min-width: 0; }
@media (max-width: 860px) { .azd-grid { grid-template-columns: 1fr; } }

.azd-card { background: var(--azd-card); border: 1px solid var(--azd-border); border-radius: var(--azd-radius); padding: 16px; box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04); }
.azd-alert { border-left: 4px solid var(--azd-coral); color: #991b1b; background: var(--azd-coral-soft); }
.azd-akses { max-width: 520px; margin: 40px auto; text-align: center; }
.azd-akses p { margin: 0 0 12px; font-weight: 600; }

.azd-label { display: block; font-size: 12px; font-weight: 700; color: #475569; margin-bottom: 4px; }
.azd-label .azd-input { margin-top: 4px; font-weight: 500; }
.azd-input { width: 100%; padding: 9px 11px; border: 1px solid #cbd5e1; border-radius: 9px; font: inherit; color: inherit; background: #fff; }
.azd-input:focus { outline: 2px solid var(--azd-teal); outline-offset: 0; border-color: var(--azd-teal); }
.azd-input.num, .azd-table .num { text-align: right; font-variant-numeric: tabular-nums; }

.azd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; border-radius: 9px; border: 1px solid transparent; font: inherit; font-weight: 700; cursor: pointer; }
.azd-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.azd-btn-primary { background: var(--azd-teal); color: #fff; }
.azd-btn-primary:hover:not(:disabled) { background: var(--azd-teal-dark); }
.azd-btn-ghost { background: #fff; border-color: var(--azd-border); color: var(--azd-text); }
.azd-btn-ghost:hover { border-color: var(--azd-teal); color: var(--azd-teal); }

.azd-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.azd-end { justify-content: flex-end; }

.azd-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 320px; overflow-y: auto; }
.azd-list li button { width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 8px 10px; font: inherit; cursor: pointer; color: inherit; }
.azd-list li button:hover, .azd-list li button:focus { background: var(--azd-teal-soft); outline: none; }
.azd-list small { color: var(--azd-muted); }

.azd-siswa { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--azd-border); }
.azd-siswa-nama { font-size: 16px; font-weight: 800; }
.azd-deposit { margin-top: 8px; padding: 8px 10px; background: var(--azd-teal-soft); border-radius: 9px; }

.azd-empty { padding: 32px 12px; text-align: center; color: var(--azd-muted); }

.azd-table-wrap { overflow-x: auto; }
.azd-table { width: 100%; border-collapse: collapse; }
.azd-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--azd-muted); padding: 8px; border-bottom: 2px solid var(--azd-border); white-space: nowrap; }
.azd-table td { padding: 8px; border-bottom: 1px solid var(--azd-border); vertical-align: middle; }
.azd-table td .azd-input { min-width: 110px; padding: 6px 8px; }
.azd-table tr.lewat td:nth-child(3) { color: #b91c1c; font-weight: 700; }
.azd-tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: #f1f5f9; color: var(--azd-muted); margin-left: 4px; }

.azd-pay { margin-top: 16px; display: grid; gap: 12px; }
.azd-metode { border: 0; padding: 0; margin: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.azd-metode label { font-weight: 600; cursor: pointer; }
.azd-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.azd-fields .azd-wide { grid-column: 1 / -1; }
@media (max-width: 520px) { .azd-fields { grid-template-columns: 1fr; } }
.azd-summary { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--azd-bg); }
.azd-summary strong { font-size: 18px; }
.azd-info { color: #0f766e; background: var(--azd-teal-soft); padding: 8px 10px; border-radius: 8px; }
.azd-error { color: #991b1b; background: var(--azd-coral-soft); padding: 8px 10px; border-radius: 8px; }

.azd-dialog { border: 0; border-radius: var(--azd-radius); padding: 20px; background: #fff; color: var(--azd-text); width: min(460px, calc(100vw - 32px)); box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25); }
.azd-dialog::backdrop { background: rgba(15, 23, 42, 0.45); }
.azd-dialog h3 { margin: 0 0 12px; color: var(--azd-teal); }
.azd-dialog form { display: grid; gap: 10px; }
.azd-kwitansi-dialog { width: min(560px, calc(100vw - 32px)); }

.azd-kwitansi { font-size: 13px; }
.azd-kw-head { display: flex; justify-content: space-between; gap: 8px; border-bottom: 3px solid var(--azd-teal); padding-bottom: 8px; margin-bottom: 10px; }
.azd-kw-head h4 { margin: 0; font-size: 18px; color: var(--azd-teal); }
.azd-kw-meta { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin-bottom: 10px; }
.azd-kw-total td { font-weight: 800; border-top: 2px solid var(--azd-text); }
.azd-kw-foot { display: flex; justify-content: space-between; margin-top: 28px; }

.azd-btn-danger { background: #dc2626; color: #fff; }
.azd-btn-danger:hover:not(:disabled) { background: #b91c1c; }
.azd-btn-danger-ghost { background: #fff; border-color: #fecaca; color: #b91c1c; }
.azd-btn-danger-ghost:hover { border-color: #dc2626; }
.azd-between { justify-content: space-between; align-items: center; margin-top: 0; }
.azd-h3 { margin: 0 0 12px; font-size: 16px; color: var(--azd-teal); }

.azd-tabs { display: inline-flex; background: #f1f5f9; border-radius: 10px; padding: 4px; gap: 2px; }
.azd-tab { border: 0; background: transparent; padding: 7px 12px; border-radius: 8px; font: inherit; font-weight: 700; color: var(--azd-muted); cursor: pointer; }
.azd-tab.is-active { background: #fff; color: var(--azd-teal); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1); }

.azd-cards { display: grid; gap: 12px; }
.azd-vcard { display: grid; gap: 10px; }
.azd-vcard-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.azd-vcard-nominal { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.azd-unik { background: var(--azd-yellow); color: var(--azd-text); padding: 0 3px; border-radius: 4px; }
.azd-items { list-style: none; margin: 0; padding: 0; border-top: 1px dashed var(--azd-border); }
.azd-items li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--azd-border); font-variant-numeric: tabular-nums; }

.azd-badge { font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 99px; }
.azd-badge-menunggu { background: #fef3c7; color: #92400e; }
.azd-badge-diterima { background: var(--azd-teal-soft); color: #0f766e; }
.azd-badge-ditolak { background: var(--azd-coral-soft); color: #991b1b; }

.azd-instruksi { background: var(--azd-bg); border: 1px solid var(--azd-border); border-radius: 12px; padding: 12px; display: grid; gap: 4px; }
.azd-bukti { display: grid; gap: 8px; }
.azd-grid-portal { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
@media (max-width: 860px) { .azd-grid-portal { grid-template-columns: 1fr; } }
.azd-anak { width: auto; min-width: 220px; }

.azd-filter { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; margin-bottom: 16px; }
.azd-filter-btn { margin-top: 0; }
.azd-report { display: grid; gap: 16px; }
.azd-report-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; flex-wrap: wrap; border-bottom: 3px solid var(--azd-teal); padding-bottom: 8px; }
.azd-report-head h3 { margin: 0; color: var(--azd-teal); font-size: 18px; }
.azd-h4 { margin: 4px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--azd-muted); }
.azd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.azd-stat { border: 1px solid var(--azd-border); border-radius: 12px; padding: 12px; background: #fff; }
.azd-stat-total { background: var(--azd-bg); }
.azd-stat-label { font-size: 12px; font-weight: 700; color: var(--azd-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.azd-stat-value { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; margin: 2px 0; }
.azd-stat-value.is-bad { color: #b91c1c; }
.azd-stat-ok { border-color: #99e0cf; }
.azd-stat-ok .azd-stat-value { color: #0f766e; }
.azd-stat-bad { border-color: #fca5a5; background: var(--azd-coral-soft); }
.azd-stat-bad .azd-stat-value { color: #b91c1c; }
#azd-tp [hidden], #azd-ts [hidden], #azd-ap [hidden] { display: none !important; }
#azd-tp-buku, #azd-ts-buku { display: grid; gap: 12px; }
.azd-ts-saldo { font-size: 32px; font-weight: 800; color: var(--azd-teal); font-variant-numeric: tabular-nums; margin: 2px 0; }
.azd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 760px) { .azd-cols { grid-template-columns: 1fr; } }
.azd-table-compact td, .azd-table-compact th { padding: 5px 8px; }

/* Tarif per siswa */
.azd.azd-wide-page { max-width: none; }
.azd-check { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.azd-legend { grid-column: 1 / -1; display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; }
.azd-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; margin-right: 4px; border: 1px solid #cbd5e1; }
.azd-dot-kosong { border-style: dashed; background: #fff; }
.azd-dot-nol { background: #e2e8f0; }
.azd-dot-beda { background: #efe7fc; border-color: var(--azd-purple); }
.azd-tarif-wrap { max-height: 70vh; overflow: auto; }
.azd-tarif th { position: sticky; top: 0; background: #fff; z-index: 2; }
.azd-tarif .azd-std td { position: sticky; top: 46px; background: var(--azd-teal-soft); z-index: 2; }
.azd-tarif .azd-sticky { position: sticky; left: 0; background: #fff; z-index: 3; min-width: 190px; }
.azd-tarif .azd-std .azd-sticky { background: var(--azd-teal-soft); z-index: 4; }
.azd-tarif td { padding: 4px 6px; }
.azd-cell { min-width: 105px; padding: 6px 8px; }
.azd-cell.is-kosong { border-style: dashed; }
.azd-cell.is-nol { background: #f1f5f9; color: var(--azd-muted); }
.azd-cell.is-beda { background: #f6f1fe; border-color: var(--azd-purple); }
.azd-cell.is-saving { opacity: 0.55; }
.azd-cell.is-ok { border-color: var(--azd-teal); box-shadow: 0 0 0 2px var(--azd-teal-soft); }
.azd-cell.is-err { border-color: #dc2626; box-shadow: 0 0 0 2px var(--azd-coral-soft); }
.azd-btn-xs { padding: 3px 8px; font-size: 11px; margin-top: 4px; width: 100%; }

/* Data siswa & formulir Dapodik */
.azd-fset { border: 1px solid var(--azd-border); margin: 0 0 14px; }
.azd-fset legend { padding: 0 6px; }
.azd-fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .azd-fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .azd-fgrid { grid-template-columns: 1fr; } }
.azd-span2 { grid-column: span 2; }
@media (max-width: 560px) { .azd-span2 { grid-column: auto; } }
.azd-field .azd-input { margin-top: 4px; }
.azd-field small { display: block; margin-top: 3px; }
.azd-req { color: #dc2626; }
.azd-dap { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 800; color: var(--azd-purple); border: 1px solid var(--azd-purple); border-radius: 4px; padding: 0 4px; }
.azd-input:invalid:focus { outline-color: #dc2626; }
.azd-sticky-bar { position: sticky; bottom: 8px; z-index: 5; box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08); }
.azd-bar { width: 120px; height: 7px; background: #f1f5f9; border-radius: 99px; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 6px; }
.azd-bar span { display: block; height: 100%; background: var(--azd-teal); }
.azd-bar span.is-mid { background: var(--azd-yellow); }
.azd-bar span.is-low { background: var(--azd-coral); }
.azd-btn-sm { padding: 5px 9px; font-size: 12px; }
.azd-nowrap { flex-wrap: nowrap; margin-top: 0; }
.azd-tag-warn { background: #fef3c7; color: #92400e; }
.azd-slip-val { font-size: 18px; font-weight: 800; letter-spacing: 1px; background: var(--azd-bg); padding: 2px 8px; border-radius: 6px; }

/* Proses gaji */
.azd-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.azd-gtool { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.azd-gtool-periode { flex: 1 1 260px; max-width: 360px; margin: 0; }
.azd-gtool-baru { flex: 0 1 auto; }
.azd-gtool-baru .azd-input { width: 190px; margin-top: 0; }
.azd-gbar { margin-bottom: 12px; display: grid; gap: 8px; }
.azd-gbar-judul { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.azd-gbar-meta { color: var(--azd-muted); font-size: 13px; }
.azd-gbar-aksi { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 8px; border-top: 1px dashed var(--azd-border); }
.azd-koreksi { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--azd-border); display: grid; gap: 10px; }
#azd-gaji .azd-stats { margin-bottom: 12px; }
.azd-ghint { margin: 8px 0 0; }
.azd-gaji-wrap { max-height: 72vh; overflow: auto; }
.azd-gaji th { position: sticky; top: 0; background: #fff; z-index: 2; white-space: normal; min-width: 72px; vertical-align: bottom; }
.azd-gaji td { padding: 5px 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.azd-gaji .azd-sticky { position: sticky; left: 0; background: #fff; z-index: 3; min-width: 200px; white-space: normal; }
.azd-gaji th.azd-sticky { z-index: 4; }
.azd-gaji tfoot td { position: sticky; bottom: 0; background: var(--azd-bg); z-index: 2; }
.azd-gaji tfoot td.azd-sticky { z-index: 3; }
.azd-gcell { width: 84px; min-width: 64px; padding: 4px 6px; background: #fffdf2; border-color: #fde68a; }
.azd-gaji td .azd-gcell { min-width: 0; width: 64px; }
.azd-gaji td.azd-rp .azd-gcell { width: 96px; }
.azd-gcell.is-beda { background: #f6f1fe; border-color: var(--azd-purple); }
.azd-gcell.is-saving { opacity: 0.55; }
.azd-gcell.is-ok { border-color: var(--azd-teal); box-shadow: 0 0 0 2px var(--azd-teal-soft); }
.azd-gcell.is-err { border-color: #dc2626; }
@media print { .azd-gaji-wrap { max-height: none; overflow: visible; } .azd-gaji { font-size: 9px; } .azd-gaji .azd-sticky, .azd-gaji th, .azd-gaji tfoot td { position: static; } }

/* Cetak: kasir mencetak kwitansi saja, laporan mencetak isi laporan saja. */
@media print {
	.azd-noprint { display: none !important; }
	body.azd-print-kw * , body.azd-print-lap * { visibility: hidden !important; }
	body.azd-print-kw #azd-kwitansi, body.azd-print-kw #azd-kwitansi * { visibility: visible !important; }
	body.azd-print-kw #azd-kwitansi { position: fixed; left: 0; top: 0; width: 100%; padding: 12mm; }
	body.azd-print-lap #azd-lap, body.azd-print-lap #azd-lap * { visibility: visible !important; }
	body.azd-print-lap #azd-lap { position: absolute; left: 0; top: 0; width: 100%; border: 0; box-shadow: none; }
	.azd-table tr.lewat td { color: #000 !important; }
}

/* Sarpras */
.azd-pgj-card { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.azd-pgj-card:hover { border-color: var(--azd-teal); }
.azd-pgi td .azd-input { min-width: 70px; }
.azd-pgi td:nth-child(2) .azd-input { min-width: 180px; }
.azd-porsi td .azd-input { width: 90px; min-width: 0; }
#azd-pk-tabs { margin-bottom: 12px; flex-wrap: wrap; }
.azd-label-sheet { display: none; }
.azd-label-item { display: flex; gap: 8px; align-items: center; border: 1px dashed #94a3b8; padding: 6px; break-inside: avoid; font-size: 10px; line-height: 1.3; }
.azd-label-item strong { font-size: 11px; }
.azd-label-item small { display: block; color: #475569; }
.azd-label-qr img { display: block; width: 96px; height: 96px; }
@media print {
	body.azd-print-label * { visibility: hidden !important; }
	body.azd-print-label .azd-label-sheet, body.azd-print-label .azd-label-sheet * { visibility: visible !important; }
	body.azd-print-label .azd-label-sheet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4mm; position: absolute; left: 0; top: 0; width: 100%; padding: 6mm; }
}

/* Transaksi kas, jurnal, RAPBS */
.azd-jlist td { vertical-align: top; }
.azd-jlist tr.azd-jfirst td { border-top: 2px solid var(--azd-border); }
.azd-jbatal td { color: var(--azd-muted); text-decoration: line-through; }
.azd-jbatal td .azd-tag, .azd-jbatal td .azd-btn { text-decoration: none; }
.azd-jbaris td .azd-input { min-width: 90px; }
.azd-jbaris td:first-child .azd-input { min-width: 260px; }
.azd-rtable td .azd-cell { width: 150px; }
.azd-r-lewat td { background: #fff7f7; }
.azd-bad { color: #b91c1c; font-weight: 700; }
.azd-tfmode { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.azd-tfmode label { display: block; padding: 8px 10px; border: 1px solid var(--azd-border); border-radius: 9px; cursor: pointer; font-weight: 500; }
.azd-tfmode label:has(input:checked) { border-color: var(--azd-teal); background: var(--azd-teal-soft); }

/* Alur penggajian & master gaji */
.azd-alur { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; }
.azd-alur-item { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--azd-border); background: #fff; color: var(--azd-text); font-weight: 700; font-size: 13px; text-decoration: none; }
.azd-alur-item:hover { border-color: var(--azd-teal); color: var(--azd-teal); }
.azd-alur-item.is-aktif { background: var(--azd-teal); border-color: var(--azd-teal); color: #fff; }
.azd-alur-no { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--azd-teal-soft); color: var(--azd-teal-dark); font-size: 11px; }
.azd-alur-item.is-aktif .azd-alur-no { background: #fff; }
.azd-alur-ket { color: var(--azd-muted); font-size: 12px; margin-left: 4px; }
.azd-alur-ket a { color: var(--azd-teal-dark); }
.azd-mg td .azd-gcell { width: 96px; }
.azd-mg td select.azd-gcell { width: 100px; }
.azd-gcell.is-nol { background: #f1f5f9; border-color: var(--azd-border); color: var(--azd-muted); }
.azd-mg tr.azd-mg-kosong td { background: #fffbeb; }

/* Dashboard eksekutif */
.azd-dash-kpi { margin-bottom: 16px; }
.azd-dash-kpi .azd-stat-value { font-size: 22px; }
.azd-stat.azd-dash-warn { border-color: #fecaca; background: #fff7f7; }
.azd-stat.azd-dash-warn .azd-stat-value { color: #b91c1c; }
.azd-dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: start; }
.azd-dash-card { display: grid; gap: 10px; min-width: 0; }
.azd-dash-card .azd-h3 { margin: 0; }
.azd-dash-card > .azd-btn { justify-self: start; }
.azd-dash-antre li a { color: var(--azd-teal-dark); font-weight: 600; text-decoration: none; }
.azd-dash-prog { display: grid; grid-template-columns: 90px 1fr; gap: 2px 8px; align-items: center; }
.azd-dash-prog .azd-bar { width: 100%; height: 10px; margin: 0; }
.azd-dash-prog small { grid-column: 2; color: var(--azd-muted); }
.azd-chart { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; height: 140px; align-items: end; padding: 4px 0; border-bottom: 1px solid var(--azd-border); }
.azd-chart-col { display: grid; grid-template-rows: 1fr auto; height: 100%; text-align: center; gap: 4px; }
.azd-chart-bars { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 100%; }
.azd-chart-bars span { width: 14px; min-height: 2px; border-radius: 4px 4px 0 0; }
.azd-chart-in, .azd-dot-in { background: var(--azd-teal); }
.azd-chart-out, .azd-dot-out { background: var(--azd-coral); }
.azd-chart-col small { color: var(--azd-muted); font-size: 11px; }
@media print { .azd-dash-grid { grid-template-columns: 1fr 1fr; } .azd-dash-card { break-inside: avoid; } }
.azd a.azd-btn { text-decoration: none; }

/* Tata usaha */
.azd-dispo { list-style: none; margin: 4px 0 0; padding-left: 0; display: grid; gap: 6px; }
.azd-dispo .azd-dispo { padding-left: 18px; border-left: 2px solid var(--azd-teal-soft); margin-top: 6px; }
.azd-dispo li { background: var(--azd-bg); border: 1px solid var(--azd-border); border-radius: 9px; padding: 8px 10px; }
.azd-penerima { max-height: 200px; overflow-y: auto; border: 1px solid var(--azd-border); border-radius: 9px; padding: 6px 10px; display: grid; gap: 4px; }
.azd-penerima .azd-check { font-weight: 500; }
.azd-surat-dlg .azd-koreksi { border: 1px solid var(--azd-border); border-radius: 12px; padding: 12px; background: #fff; }
.azd-sop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.azd-sop-item { display: grid; gap: 8px; align-content: start; }
.azd-sop-item .azd-h3 { margin: 0; color: var(--azd-text); }
.azd-sop-item.is-arsip { opacity: 0.7; }

/* Laporan perkembangan */
.azd-pk-grid { grid-template-columns: 300px minmax(0, 1fr); }
@media (max-width: 860px) { .azd-pk-grid { grid-template-columns: 1fr; } }
.azd-pk-siswa { max-height: 65vh; }
.azd-pk-siswa li button.is-aktif { background: var(--azd-teal-soft); }
.azd-pk-kepala { display: grid; gap: 10px; margin-bottom: 12px; }
.azd-pk-kepala .azd-tabs { flex-wrap: wrap; }
#azd-pk-panel { display: grid; gap: 12px; }
#azd-pk-panel > .azd-row { margin-top: 0; }
.azd-pk-form textarea.azd-input { resize: vertical; }
.azd-pk-ta { position: relative; }
.azd-pk-ta .azd-mic { position: absolute; right: 6px; bottom: 6px; width: auto; margin: 0; opacity: 0.85; }
.azd-mic.is-aktif { background: var(--azd-coral-soft); border-color: var(--azd-coral); color: #991b1b; }
.azd-pk-details { border: 1px solid var(--azd-border); border-radius: 10px; padding: 8px 12px; }
.azd-pk-details summary { cursor: pointer; font-weight: 700; color: var(--azd-teal-dark); }
.azd-pk-details[open] summary { margin-bottom: 8px; }
.azd-pk-lain { max-height: 160px; margin-top: 6px; }
.azd-pk-kartu { display: grid; gap: 8px; }
.azd-pk-isian { display: grid; gap: 6px; }
.azd-pk-isian .azd-h4 { margin: 0; }
.azd-pk-teks { margin: 0; white-space: pre-line; }
.azd-pk-foto { display: flex; flex-wrap: wrap; gap: 8px; }
.azd-pk-foto img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--azd-border); display: block; }
.azd-pk-foto > div { display: grid; gap: 4px; }
.azd-pk-ringkas .azd-pk-teks { color: var(--azd-text); font-size: 13px; }
.azd-webbing-row { display: grid; grid-template-columns: minmax(140px, 1.2fr) minmax(150px, 1fr) minmax(0, 2fr); gap: 8px; align-items: start; padding: 6px 0; border-bottom: 1px dashed var(--azd-border); }
@media (max-width: 640px) { .azd-webbing-row { grid-template-columns: 1fr; } }
.azd-webbing-ind { font-weight: 600; font-size: 13px; padding-top: 8px; }
.azd-webbing-chart { display: grid; gap: 6px; justify-items: center; }
.azd-webbing-svg { width: 100%; max-width: 380px; height: auto; }
.azd-webbing-asp { font-weight: 800; fill: #fff; text-anchor: middle; letter-spacing: 0.4px; pointer-events: none; }
.azd-webbing-nama { font-weight: 800; fill: var(--azd-teal-dark); text-anchor: middle; dominant-baseline: central; }
.azd-webbing-ind-teks { fill: #1e293b; text-anchor: middle; dominant-baseline: auto; pointer-events: none; }
.azd-webbing-grup { font-weight: 700; fill: #334155; text-anchor: middle; pointer-events: none; }
.azd-webbing-svg.is-klik .azd-webbing-g { cursor: pointer; transition: opacity .15s; }
.azd-webbing-svg.is-klik .azd-webbing-g:hover path, .azd-webbing-svg.is-klik .azd-webbing-g:focus-visible path { stroke: #0f172a; stroke-width: 1.4; }
.azd-webbing-g:focus { outline: none; }
.azd-webbing-g.is-redup { opacity: .28; }
/* Layar penuh webbing: satu layar penuh grafik; catatan aspek muncul sebagai panel saat aspek diklik. */
.azd-wf { position: fixed; inset: 0; z-index: 100000; background: #fff; max-width: none; margin: 0; padding: 14px 20px; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 8px; color-scheme: light; }
.azd-wf-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.azd-wf-head .azd-title { margin: 0; }
.azd-wf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.azd-chip { border: 1px solid var(--azd-border); background: #fff; border-radius: 99px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 700; color: var(--azd-text); cursor: pointer; }
.azd-chip:hover { border-color: var(--azd-teal); }
.azd-chip.is-aktif { background: var(--azd-teal); border-color: var(--azd-teal); color: #fff; }
.azd-wf-isi { position: relative; min-height: 0; display: grid; place-items: center; }
.azd-wf-isi > .azd-webbing-chart { height: 100%; min-height: 0; grid-template-rows: minmax(0, 1fr) auto; width: 100%; }
.azd-webbing-svg.is-besar { max-width: none; width: auto; height: 100%; max-height: 100%; aspect-ratio: 1; justify-self: center; }
.azd-wf-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 92%); overflow-y: auto; background: #fff; border: 1px solid var(--azd-border); border-radius: 14px; box-shadow: 0 10px 30px rgba(15, 23, 42, .18); padding: 14px 16px; }
.azd-wf-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; position: sticky; top: -14px; background: #fff; padding: 4px 0; }
.azd-wf-panel-head .azd-h3 { margin: 0; color: var(--azd-teal-dark); }
.azd-wf-hint { margin: 0; text-align: center; font-size: 12px; }
.azd-wf-semua { display: none; }
.azd-wf-catatan { display: grid; gap: 12px; font-size: 15px; }
.azd-wf-catatan .azd-items { display: grid; gap: 8px; }
.azd-wf-catatan .azd-items li { display: block; font-size: 15px; padding: 8px 0; border-bottom: 1px dashed var(--azd-border); }
@media (min-width: 701px) { .azd-wf-isi.is-panel { padding-right: min(456px, 46%); } }
.azd-wf-note { margin: 4px 0 0 18px; line-height: 1.5; white-space: pre-line; }
@media (max-width: 700px) { .azd-wf { overflow: auto; } .azd-wf-panel { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 60vh; border-radius: 14px 14px 0 0; } }
@media print {
	body.azd-print-wf * { visibility: hidden !important; }
	body.azd-print-wf .azd-wf, body.azd-print-wf .azd-wf * { visibility: visible !important; }
	body.azd-print-wf .azd-wf { position: absolute; display: block; overflow: visible; padding: 0; }
	body.azd-print-wf .azd-wf-panel { display: none; }
	body.azd-print-wf .azd-webbing-svg.is-besar { width: 100%; height: auto; max-height: 230mm; }
	body.azd-print-wf .azd-webbing-g.is-redup { opacity: 1; }
	body.azd-print-wf .azd-wf-semua { display: block; break-before: page; }
	body.azd-print-wf .azd-webbing-svg path { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.azd-pk-rw-isi { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px dashed var(--azd-border); }
.azd-pk-rw-judul { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 800; font-size: 13px; color: var(--azd-teal-dark); text-transform: uppercase; letter-spacing: 0.3px; }
.azd-pk-cap { display: inline-flex; gap: 4px; flex-wrap: wrap; text-transform: none; letter-spacing: 0; }
.azd-pk-cap label { cursor: pointer; }
.azd-pk-cap input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.azd-pk-cap span { display: inline-block; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--azd-border); font-size: 12px; font-weight: 700; color: var(--azd-muted); background: #fff; }
.azd-pk-cap input:focus-visible + span { outline: 2px solid var(--azd-teal); }
.azd-pk-cap-mandiri input:checked + span { background: #dcfce7; border-color: #16a34a; color: #166534; }
.azd-pk-cap-dibantu input:checked + span { background: #fef3c7; border-color: #d97706; color: #92400e; }
.azd-pk-cap-belum input:checked + span { background: #fee2e2; border-color: #dc2626; color: #991b1b; }
.azd-pk-rw { display: grid; gap: 2px; padding: 4px 0; border-bottom: 1px dashed var(--azd-border); }
.azd-pk-rw .azd-badge { font-size: 11px; }
.azd-pk-cap label { position: relative; }

/* Raport otomatis: editor */
.azd-rp-form { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 12px; }
.azd-rp-form[disabled] .azd-input { background: #f8fafc; }
.azd-rp-bagian { display: grid; gap: 10px; }
.azd-rp-bagian .azd-h3 { margin: 0; }
.azd-rp-bagian .azd-h4 { margin: 8px 0 0; }
.azd-rp-item { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid var(--azd-border); }
.azd-rp-list > .azd-rp-item:first-child { border-top: 0; }
.azd-rp-judul { font-weight: 700; flex: 1 1 220px; min-width: 0; }
.azd-rp-cap { width: auto; min-width: 150px; }
.azd-rp-hitung { font-size: 12px; }
.azd-rp-list { display: grid; }
.azd-rp-hapus-baris { display: flex; justify-content: flex-end; }
.azd-rp-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.azd-rp-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.azd-rp-4 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.azd-rp-foto-box summary { cursor: pointer; font-weight: 700; font-size: 13px; color: var(--azd-teal-dark); }
.azd-rp-foto-pilih { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 8px; }
.azd-rp-foto { position: relative; display: grid; gap: 2px; cursor: pointer; font-size: 11px; color: var(--azd-muted); }
.azd-rp-foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 2px solid transparent; }
.azd-rp-foto:has(input:checked) img { border-color: var(--azd-teal); }
.azd-rp-foto input { position: absolute; top: 6px; left: 6px; width: 18px; height: 18px; }
.azd-rp-web-kecil .azd-webbing-svg { max-width: 320px; }
.azd-rp-aksi { justify-content: flex-end; flex-wrap: wrap; }
.azd-rp-angka td { vertical-align: middle; }
.azd-rp-angka .azd-input { min-width: 0; }
.azd-rp-angka td:nth-child(2) .azd-input { min-width: 200px; }
.azd-rp-nilai { width: 80px; text-align: right; }
.azd-rp-kel { width: 120px; }
.azd-rp-pred { display: inline-block; min-width: 24px; font-weight: 800; text-align: center; }
.azd-rp-atur { width: min(1000px, calc(100vw - 24px)); max-height: calc(100vh - 32px); overflow-y: auto; }
.azd-rp-atur-isi { display: grid; gap: 10px; }
.azd-rp-fs { border: 1px solid var(--azd-border); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; min-width: 0; }
.azd-rp-fs legend { font-weight: 800; color: var(--azd-teal-dark); padding: 0 4px; }

/* Raport otomatis: pratinjau & cetak A4 (mengikuti raport manual sekolah) */
#azd-rp-prev { position: fixed; inset: 0; z-index: 100000; background: #e2e8f0; overflow: auto; max-width: none; margin: 0; padding: 0 0 40px; color-scheme: light; }
.azd-rp-prevbar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; background: #fff; border-bottom: 1px solid #cbd5e1; }
.azd-rp-doc { color: #111827; font-family: "Times New Roman", Georgia, serif; font-size: 12pt; line-height: 1.45; }
.azd-rp-hal { box-sizing: border-box; width: 210mm; max-width: calc(100% - 24px); min-height: 297mm; margin: 16px auto; padding: 18mm 16mm; background: #fff; box-shadow: 0 2px 10px rgba(15, 23, 42, .15); }
.azd-rp-hal p { margin: 0 0 6px; }
.azd-rp-hal h4 { margin: 12px 0 6px; font-size: 12pt; }
.azd-rp-sampul, .azd-rp-tengahv { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.azd-rp-sampul { border: 3px double #0f766e; }
.azd-rp-logo { width: 150px; height: auto; margin: 18px 0; }
.azd-rp-sjudul { font-size: 20pt; font-weight: 700; letter-spacing: .5px; }
.azd-rp-sjenis { font-size: 14pt; font-weight: 700; letter-spacing: 1px; }
.azd-rp-sjenjang { font-size: 12pt; letter-spacing: 1px; }
.azd-rp-sunit { font-size: 16pt; font-weight: 700; color: #0f766e; }
.azd-rp-sub { font-weight: 700; margin-bottom: 8px; }
.azd-rp-snama { display: grid; gap: 4px; min-width: 70%; margin: 6px 0; padding: 8px 30px; border: 1.5px solid #111827; border-radius: 8px; }
.azd-rp-snama small { font-size: 11pt; }
.azd-rp-snama strong { font-size: 15pt; }
.azd-rp-sfoot { display: grid; gap: 2px; margin-top: 30px; font-size: 12pt; }
.azd-rp-kop { display: flex; align-items: center; gap: 12px; padding-bottom: 8px; margin-bottom: 14px; border-bottom: 3px double #111827; }
.azd-rp-kop img { width: 64px; height: auto; }
.azd-rp-kop div { display: grid; }
.azd-rp-kop strong { font-size: 14pt; }
.azd-rp-dh { font-size: 12.5pt; font-weight: 700; margin: 16px 0 8px; break-after: avoid; }
.azd-rp-tengah { text-align: center; }
.azd-rp-id { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.azd-rp-id th { text-align: left; font-weight: 400; width: 40%; padding: 3px 0; vertical-align: top; }
.azd-rp-id td { padding: 3px 4px; vertical-align: top; }
.azd-rp-id td:nth-child(2) { width: 10px; }
.azd-rp-id-sekolah { width: 88%; margin-top: 30px; text-align: left; }
.azd-rp-muq { display: flex; flex-direction: column; justify-content: center; gap: 22px; text-align: justify; }
.azd-rp-bismillah, .azd-rp-arab { font-family: "Traditional Arabic", "Noto Naskh Arabic", "Scheherazade New", "Amiri", serif; }
.azd-rp-bismillah { text-align: center; font-size: 24pt; }
.azd-rp-arab { text-align: center; font-size: 19pt; line-height: 1.9; margin-bottom: 6px !important; }
.azd-rp-dalil p:last-child { font-style: italic; }
.azd-rp-judul-lap { text-align: center; font-weight: 700; font-size: 13pt; margin-bottom: 10px; }
.azd-rp-kepala { width: 100%; border-collapse: collapse; margin-bottom: 10px; font-size: 11.5pt; }
.azd-rp-kepala td { padding: 2px 4px; vertical-align: top; }
.azd-rp-kepala td:nth-child(1), .azd-rp-kepala td:nth-child(3) { white-space: nowrap; width: 1%; }
.azd-rp-blok { border: 1px solid #475569; margin: 0 0 10px; break-inside: avoid-page; }
.azd-rp-blok-h { background: #d9efe9; border-bottom: 1px solid #475569; text-align: center; font-weight: 700; padding: 4px 8px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.azd-rp-blok-b { padding: 6px 10px; text-align: justify; }
.azd-rp-lbl { font-weight: 700; margin-top: 4px; }
.azd-rp-sublbl { font-style: italic; }
.azd-rp-lbl2 { font-weight: 700; text-decoration: underline; margin-top: 6px; }
.azd-rp-poin { margin: 2px 0 6px; padding-left: 22px; list-style: disc; }
.azd-rp-poin li { margin: 1px 0; }
.azd-rp-tabel { width: 100%; border-collapse: collapse; font-size: 11pt; margin-bottom: 8px; }
.azd-rp-tabel th, .azd-rp-tabel td { border: 1px solid #475569; padding: 4px 6px; vertical-align: top; text-align: left; }
.azd-rp-tabel thead th { background: #d9efe9; text-align: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.azd-rp-tabel tr { break-inside: avoid; }
.azd-rp-abcd { width: 26px; text-align: center !important; font-weight: 700; }
.azd-rp-mapel { width: 24%; font-weight: 700; }
.azd-rp-num { text-align: right !important; width: 70px; }
.azd-rp-kel-baris td { font-weight: 700; background: #f1f5f9; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.azd-rp-nilai-tabel td:first-child { width: 34px; }
.azd-rp-hadir { width: auto; min-width: 50%; }
.azd-rp-hadir td:first-child { min-width: 160px; }
.azd-rp-domain { font-weight: 700; vertical-align: middle !important; width: 14%; }
.azd-rp-ck td:nth-child(3) { width: 38%; }
.azd-rp-sentra { margin-bottom: 10px; text-align: justify; break-inside: avoid-page; }
.azd-rp-dfoto { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; margin: 8px 0 12px; break-inside: avoid; }
.azd-rp-dfoto img { width: 100%; height: 48mm; object-fit: cover; border: 1px solid #cbd5e1; }
.azd-rp-webbing { break-inside: avoid; }
.azd-rp-webbing .azd-webbing-svg, .azd-rp-webbing .azd-webbing-svg.is-besar { width: 100%; height: auto; max-width: 150mm; max-height: none; }
.azd-rp-muted { color: #475569; font-size: 10.5pt; }
.azd-rp-kotak { border: 1px solid #475569; padding: 8px 10px; min-height: 22mm; text-align: justify; }
.azd-rp-tanggapan { min-height: 35mm; }
.azd-rp-keputusan { margin: 10px 0; padding: 6px 10px; border: 1.5px solid #111827; font-weight: 700; }
.azd-rp-tglkanan { text-align: right; margin-top: 16px; }
.azd-rp-ttd { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; text-align: center; break-inside: avoid; }
.azd-rp-ttd-3 { grid-template-columns: repeat(3, 1fr); }
.azd-rp-ttd-kanan { grid-template-columns: 1fr; justify-items: end; margin-top: 30px; }
.azd-rp-ttd-kanan > div { min-width: 45%; }
.azd-rp-ttd div { display: grid; gap: 2px; align-content: start; }
.azd-rp-ttd strong { margin-top: 22mm; text-decoration: underline; }
.azd-rp-ttd small { font-size: 10pt; }
@page azdrp { size: A4; margin: 14mm 14mm; }
@media print {
	body.azd-print-rp > *:not(#azd-rp-prev) { display: none !important; }
	body.azd-print-rp #azd-rp-prev { position: static; overflow: visible; background: #fff; padding: 0; }
	.azd-rp-hal { page: azdrp; width: auto; max-width: none; min-height: 0; margin: 0; padding: 0; box-shadow: none; break-after: page; }
	#azd-rp-prev > .azd-rp-doc:last-child > .azd-rp-hal:last-child { break-after: auto; }
	.azd-rp-sampul, .azd-rp-tengahv, .azd-rp-muq { min-height: 266mm; padding: 10mm; }
	.azd-rp-webbing svg path { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (max-width: 640px) { .azd-rp-2 { grid-template-columns: 1fr; } .azd-rp-hal { padding: 8mm 6mm; min-height: 0; } .azd-rp-ttd, .azd-rp-ttd-3 { grid-template-columns: 1fr; } }

/* Kelas & rombel */
.azd-kl-list .azd-kl-unit { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--azd-muted); padding: 8px 4px 2px; }
.azd-kl-aksi { align-self: end; }
.azd-kl-calon { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 12px; max-height: 320px; overflow-y: auto; border: 1px solid var(--azd-border); border-radius: 9px; padding: 8px 10px; }
.azd-kl-pindah { width: auto; min-width: 120px; padding-top: 4px; padding-bottom: 4px; }
.azd-kn-sudah td { background: #f8fafc; }

/* Presensi kelas (wali kelas, HP) */
#azd-pr [hidden] { display: none !important; }
.azd-pr-tgl { display: flex; gap: 4px; align-items: center; }
.azd-pr-tgl .azd-input { flex: 1; min-width: 0; }
.azd-pr-kepala { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.azd-pr-hitung { display: flex; flex-wrap: wrap; gap: 6px; }
.azd-pr-chip { padding: 4px 10px; border-radius: 99px; font-size: 12px; background: #f1f5f9; }
.azd-pr-chip.azd-pr-hadir { background: #dcfce7; color: #166534; }
.azd-pr-chip.azd-pr-sakit { background: #dbeafe; color: #1e40af; }
.azd-pr-chip.azd-pr-izin { background: #fef3c7; color: #92400e; }
.azd-pr-chip.azd-pr-alpa { background: #fee2e2; color: #991b1b; }
.azd-pr-filter { margin: 8px 0; flex-wrap: wrap; }
.azd-pr-list { list-style: none; margin: 0; padding: 0; }
.azd-pr-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--azd-border); }
.azd-pr-nama { display: grid; min-width: 0; }
.azd-pr-nama strong { overflow-wrap: anywhere; }
.azd-pr-status { display: inline-flex; gap: 4px; }
.azd-pr-btn { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--azd-border); background: #fff; font: inherit; font-weight: 800; cursor: pointer; color: var(--azd-muted); }
.azd-pr-btn.azd-pr-hadir.is-aktif { background: #16a34a; border-color: #16a34a; color: #fff; }
.azd-pr-btn.azd-pr-sakit.is-aktif { background: #2563eb; border-color: #2563eb; color: #fff; }
.azd-pr-btn.azd-pr-izin.is-aktif { background: #d97706; border-color: #d97706; color: #fff; }
.azd-pr-btn.azd-pr-alpa.is-aktif { background: #dc2626; border-color: #dc2626; color: #fff; }
.azd-pr-ket { grid-column: 1 / -1; }
.azd-pr-kosong { padding: 16px 0; text-align: center; }
.azd-pr-bawah { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.azd-pr-rekap { font-size: 12px; }
.azd-pr-rekap th, .azd-pr-rekap td { padding: 4px 5px; }
.azd-pr-hr { text-align: center; width: 22px; }
.azd-pr-jml { text-align: center; font-weight: 800; }
.azd-pr-nm { white-space: nowrap; }
td.azd-pr-hadir { color: #166534; }
td.azd-pr-sakit { background: #dbeafe; font-weight: 700; }
td.azd-pr-izin { background: #fef3c7; font-weight: 700; }
td.azd-pr-alpa { background: #fee2e2; color: #991b1b; font-weight: 800; }
@media print { td.azd-pr-sakit, td.azd-pr-izin, td.azd-pr-alpa { -webkit-print-color-adjust: exact; print-color-adjust: exact; } .azd-pr-rekap { font-size: 9px; } }

/* Kiosk scanner presensi siswa */
.azd-sc { max-width: none; background: #fff; color-scheme: light; padding: 12px; display: grid; gap: 12px; min-height: 100vh; box-sizing: border-box; align-content: start; }
.azd-sc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.azd-sc-head .azd-title { margin: 0; }
.azd-sc-isi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 800px) { .azd-sc-isi { grid-template-columns: 1fr; } }
.azd-sc-video { background: #0f172a; border-radius: 16px; overflow: hidden; min-height: 280px; display: grid; place-items: center; color: #fff; padding: 12px; text-align: center; overflow-wrap: anywhere; }
.azd-sc-video #azd-sc-reader { width: 100%; }
.azd-sc-hasil { border-radius: 16px; border: 3px solid var(--azd-border); display: grid; place-items: center; align-content: center; gap: 8px; padding: 24px; text-align: center; min-height: 280px; transition: background .2s; }
.azd-sc-ikon { font-size: 64px; line-height: 1; }
.azd-sc-nama { font-size: clamp(22px, 4vw, 40px); font-weight: 800; }
.azd-sc-ket { font-size: clamp(14px, 2vw, 20px); color: var(--azd-muted); }
.azd-sc-masuk { background: #dcfce7; border-color: #16a34a; }
.azd-sc-pulang { background: #dbeafe; border-color: #2563eb; }
.azd-sc-sudah { background: #fef3c7; border-color: #d97706; }
.azd-sc-gagal { background: #fee2e2; border-color: #dc2626; }
.azd-sc-manual { max-width: 420px; }
.azd-sc:fullscreen { overflow: auto; }

/* Kartu presensi siswa (ukuran KTP 85,6 x 54 mm, 10 per A4) */
#azd-kartu-prev { position: fixed; inset: 0; z-index: 100000; background: #e2e8f0; overflow: auto; max-width: none; margin: 0; padding: 0 0 40px; color-scheme: light; }
.azd-kartu-lembar { display: grid; grid-template-columns: repeat(2, 85.6mm); gap: 4mm; justify-content: center; padding: 10mm; background: #fff; width: 210mm; max-width: 100%; margin: 16px auto; box-sizing: border-box; }
.azd-kartu { box-sizing: border-box; width: 85.6mm; height: 54mm; border: 1px solid #94a3b8; border-radius: 3mm; padding: 3mm; display: grid; grid-template-columns: minmax(0, 1fr) 30mm; gap: 2mm; align-items: center; break-inside: avoid; background: linear-gradient(135deg, #e6f7f3 0%, #fff 55%); color: #0f172a; font-family: Arial, sans-serif; }
.azd-kartu-kiri { display: grid; gap: 1mm; min-width: 0; }
.azd-kartu-kop { display: flex; gap: 2mm; align-items: center; }
.azd-kartu-kop img { width: 9mm; height: auto; }
.azd-kartu-kop div { display: grid; line-height: 1.1; }
.azd-kartu-kop strong { font-size: 7.5pt; color: #0f766e; }
.azd-kartu-kop small { font-size: 6pt; }
.azd-kartu-nama { font-size: 10.5pt; font-weight: 800; line-height: 1.15; margin-top: 1mm; overflow-wrap: anywhere; }
.azd-kartu-data { font-size: 7.5pt; }
.azd-kartu-cat { font-size: 5.5pt; color: #475569; margin-top: 1mm; }
.azd-kartu-qr img, .azd-kartu-qr canvas { width: 29mm !important; height: 29mm !important; display: block; }
@page azdkartu { size: A4; margin: 8mm; }
@media print {
	body.azd-print-kartu > *:not(#azd-kartu-prev) { display: none !important; }
	body.azd-print-kartu #azd-kartu-prev { position: static; overflow: visible; background: #fff; padding: 0; }
	body.azd-print-kartu .azd-kartu-lembar { page: azdkartu; margin: 0; padding: 0; width: auto; }
	.azd-kartu { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Kiosk absensi pegawai & QR dinamis Dashboard Guru */
.azd-sg-mode { display: flex; flex-wrap: wrap; gap: 6px; }
.azd-sg-mode .azd-chip { font-size: 15px; padding: 8px 16px; }
.azd-sg-privasi { font-size: 12px; margin: 0; }
.azd-qrg { display: inline-block; line-height: 0; background: #fff; }
.azd-qrg img, .azd-qrg canvas { display: block; margin: 0 auto; }
.azd-qrg-info { font-size: 12px; color: #64748b; margin-top: 6px; font-weight: 600; }
.azd-kp-tabel td { vertical-align: top; }
.azd-kp-foto { display: flex; gap: 6px; flex-wrap: wrap; }
.azd-kp-foto a { display: grid; gap: 2px; text-decoration: none; color: var(--azd-muted); font-size: 11px; }
.azd-kp-foto img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--azd-border); }
.azd-kp-tanpa { display: grid; place-items: center; width: 64px; height: 48px; border-radius: 6px; border: 1px dashed var(--azd-border); font-size: 10px; }

/* Izin pegawai */
.azd-iz-aturan .azd-items li { display: flex; gap: 8px; align-items: center; justify-content: flex-start; text-align: left; padding: 3px 0; }
.azd-iz-aturan .azd-badge { white-space: nowrap; flex: 0 0 auto; }
.azd-iz-form { display: grid; gap: 10px; }
.azd-iz-jenis { display: flex; flex-wrap: wrap; gap: 8px; }
.azd-iz-opsi { cursor: pointer; }
.azd-iz-opsi input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.azd-iz-opsi span { display: inline-block; padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--azd-border); font-weight: 700; background: #fff; }
.azd-iz-opsi input:checked + span { border-color: var(--azd-teal); background: var(--azd-teal-soft); color: var(--azd-teal-dark); }
.azd-iz-opsi input:focus-visible + span { outline: 2px solid var(--azd-teal); }
.azd-iz-form [hidden] { display: none !important; }
.azd-iz-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.azd-iz-item { border: 1px solid var(--azd-border); border-radius: 12px; padding: 12px 14px; background: #fff; display: grid; gap: 6px; }
.azd-iz-judul { font-weight: 800; }
.azd-iz-ket { margin: 0; white-space: pre-line; }
.azd-iz-surat { font-weight: 700; font-size: 13px; }
.azd-iz-aksi { flex-wrap: wrap; align-items: center; }
.azd-iz-catatan { flex: 1 1 220px; min-width: 0; }

/* Data pegawai */
.azd-pg-non td { color: var(--azd-muted); }
.azd-pg-dlg { width: min(640px, calc(100vw - 32px)); }
.azd-pg-dlg [hidden] { display: none !important; }
.azd-pg-kred th { text-align: left; padding: 4px 12px 4px 0; color: var(--azd-muted); font-weight: 600; }
.azd-pg-kred code { font-size: 20px; font-weight: 800; letter-spacing: 1px; background: #f1f5f9; padding: 2px 8px; border-radius: 6px; }
@media print { body.azd-print-akun * { visibility: hidden !important; } body.azd-print-akun #azd-pg-akun, body.azd-print-akun #azd-pg-akun * { visibility: visible !important; } body.azd-print-akun #azd-pg-akun { position: fixed; inset: 0; box-shadow: none; } }

/* Dashboard guru & karyawan */
.azd-dg-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; padding: 26px 28px; border-radius: 18px; background: linear-gradient(135deg, #00aa88, #0f766e); color: #fff; margin-bottom: 12px; }
.azd-dg-salam { font-size: clamp(22px, 4vw, 30px); font-weight: 800; }
.azd-dg-sub { opacity: .9; margin-top: 4px; }
.azd-dg-jam { background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .3); border-radius: 99px; padding: 6px 14px; font-weight: 700; font-size: 13px; }
.azd-dg-kutip { font-style: italic; color: var(--azd-muted); border-left: 4px solid #966ae4; padding: 8px 14px; background: #fff; border-radius: 0 12px 12px 0; margin: 0 0 14px; }
.azd-dg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-bottom: 14px; }
.azd-dg-grid > * { min-width: 0; margin: 0; }
.azd-dg-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--azd-muted); margin-bottom: 8px; }
.azd-dg-qr { display: grid; justify-items: center; text-align: center; }
.azd-dg-qrbtn { border: 1px dashed var(--azd-border); background: #fff; border-radius: 12px; padding: 8px; cursor: zoom-in; }
.azd-dg-besar { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.azd-dg-ok { color: #16a34a; }
.azd-dg-baris { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--azd-border); font-size: 14px; }
.azd-dg-baris:last-child { border-bottom: 0; }
.azd-dg-aksi { margin-bottom: 16px; }
.azd-dg-penuh { position: fixed; inset: 0; z-index: 100000; background: rgba(15, 23, 42, .75); display: grid; place-items: center; }
.azd-dg-penuh[hidden] { display: none; }
.azd-dg-penuh-isi { background: #fff; border-radius: 20px; padding: 24px; display: grid; justify-items: center; gap: 10px; text-align: center; max-width: 92vw; }
#azd-dg [hidden] { display: none !important; }

/* Saklar sesi kiosk guru (pengganti tombol mode) */
.azd-saklar { display: flex; flex-wrap: wrap; gap: 12px; }
.azd-saklar-grup { display: grid; gap: 4px; flex: 1 1 260px; }
.azd-saklar-judul { font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--azd-muted); }
.azd-saklar-track { display: grid; grid-template-columns: 1fr 1fr; background: #e2e8f0; border-radius: 14px; padding: 4px; gap: 4px; }
.azd-saklar-track button { border: 0; border-radius: 10px; padding: 12px 10px; font: inherit; font-size: 16px; font-weight: 800; color: #475569; background: transparent; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.azd-saklar-track button:hover { color: #0f172a; }
.azd-saklar-track button.is-aktif { background: #fff; color: var(--azd-teal-dark); box-shadow: 0 2px 6px rgba(15, 23, 42, .15); }
.azd-saklar-track button[data-mode^="PULANG"].is-aktif { color: #1d4ed8; }
.azd-saklar-track button:focus-visible { outline: 2px solid var(--azd-teal); }
.azd-sg-siaga { background: #f8fafc; }
.azd-sg-mode-label { font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--azd-muted); }
.azd-sg-mode-besar { font-size: clamp(30px, 6vw, 52px); font-weight: 900; line-height: 1.1; }
.azd-sg-masuk_reguler .azd-sg-mode-besar, .azd-sg-masuk_extend .azd-sg-mode-besar { color: #0f766e; }
.azd-sg-pulang_reguler .azd-sg-mode-besar, .azd-sg-pulang_extend .azd-sg-mode-besar { color: #1d4ed8; }
.azd-sg-masuk_reguler, .azd-sg-masuk_extend { border-color: #99e6d3; }
.azd-sg-pulang_reguler, .azd-sg-pulang_extend { border-color: #bfdbfe; }
.azd-sc { width: 100%; max-width: 100%; overflow-x: hidden; }
.azd-sc *, .azd-sc *::before, .azd-sc *::after { box-sizing: border-box; }
.azd-sc-video video, .azd-sc-video canvas, #azd-sg-reader, #azd-sc-reader { max-width: 100% !important; }
.azd-sc-video video { width: 100% !important; height: auto !important; object-fit: cover; }
@media (max-width: 600px) { .azd-sc { padding: 10px 12px; } .azd-saklar-track button { font-size: 15px; padding: 12px 6px; } }
.azd-dg-aksi-judul { font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--azd-muted); margin: 4px 2px 8px; }
.azd-dg-aksi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.azd-dg-tile { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-radius: 14px; border: 1px solid #e5e7eb; background: #fff; color: #0f172a; text-decoration: none; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: border-color .15s, box-shadow .15s, transform .15s; }
.azd-dg-tile:hover { border-color: #cbd5e1; box-shadow: 0 6px 16px rgba(15, 23, 42, .08); transform: translateY(-1px); }
.azd-dg-tile:focus-visible { outline: 2px solid var(--azd-teal); outline-offset: 2px; }
.azd-dg-tile-ikon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.azd-dg-tile-ikon svg { width: 22px; height: 22px; }
.azd-dg-tile-teks { display: grid; gap: 2px; min-width: 0; }
.azd-dg-tile-atas { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.azd-dg-tile-teks strong { font-size: 15px; font-weight: 700; }
.azd-dg-tile-teks small { font-size: 12.5px; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.azd-dg-tile-badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; white-space: nowrap; }
.azd-dg-tile-panah { color: #94a3b8; display: grid; }
.azd-dg-tile-panah svg { width: 18px; height: 18px; }
.azd-dg-teal .azd-dg-tile-ikon { background: #e6f7f3; color: #0f766e; }
.azd-dg-violet .azd-dg-tile-ikon { background: #f3e8ff; color: #7e22ce; }
.azd-dg-amber .azd-dg-tile-ikon { background: #fef3c7; color: #b45309; }
.azd-dg-sky .azd-dg-tile-ikon { background: #e0f2fe; color: #0369a1; }
.azd-dg-green .azd-dg-tile-ikon { background: #dcfce7; color: #15803d; }
.azd-dg-indigo .azd-dg-tile-ikon { background: #e0e7ff; color: #4338ca; }
.azd-dg-rose .azd-dg-tile-ikon { background: #ffe4e6; color: #be123c; }
.azd-dg-slate .azd-dg-tile-ikon { background: #f1f5f9; color: #334155; }

/* Profil saya [azd_profil] */
.azd-pf { max-width: 920px; margin: 0 auto; }
.azd-pf [hidden] { display: none !important; }
.azd-ok { color: #166534; background: #dcfce7; padding: 8px 10px; border-radius: 8px; margin-bottom: 12px; }
.azd-pf .azd-error { margin-bottom: 12px; }
.azd-pf-kepala { display: flex; gap: 20px; align-items: center; margin-bottom: 14px; }
.azd-pf-foto { width: 104px; height: 104px; flex: 0 0 104px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #0f766e, #14b8a6); color: #fff; display: grid; place-items: center; font-size: 36px; font-weight: 800; box-shadow: 0 0 0 4px #fff, 0 0 0 5px #e2e8f0; }
.azd-pf-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.azd-pf-foto.is-memuat { opacity: .5; }
.azd-pf-identitas { display: grid; gap: 6px; min-width: 0; }
.azd-pf-nama { font-size: 22px; font-weight: 800; color: #0f172a; }
.azd-pf-aksi-foto label.azd-btn { cursor: pointer; }
.azd-pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.azd-pf-grid form { display: grid; gap: 10px; align-content: start; }
.azd-pf-grid form .azd-btn { justify-self: start; }
.azd-pf-ket { margin: 0; font-size: 12.5px; }
.azd-pf-lihat { font-size: 13px; color: #475569; display: flex; gap: 6px; align-items: center; }
@media (max-width: 700px) {
	.azd-pf-grid { grid-template-columns: 1fr; }
	.azd-pf-kepala { flex-direction: column; text-align: center; }
	.azd-pf-aksi-foto { justify-content: center; }
}

/* Dashboard eksekutif: panel keputusan */
.azd-dash-putus { margin-bottom: 16px; display: grid; gap: 14px; border-left: 4px solid var(--azd-teal); }
.azd-dash-putus.is-ada { border-left-color: #f59e0b; }
.azd-dash-putus [hidden] { display: none !important; }
.azd-dash-putus-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.azd-dash-putus-head .azd-h3 { margin: 0 0 2px; font-size: 18px; }
.azd-dash-putus-jumlah { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 99px; background: #f59e0b; color: #fff; font-weight: 800; font-size: 16px; display: grid; place-items: center; }
.azd-dash-putus-list { display: grid; gap: 10px; }
.azd-dash-putus-item { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; padding: 14px 16px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fffdf7; }
.azd-dash-putus-judul { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 15.5px; margin-bottom: 2px; }
.azd-dash-putus-barang { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 3px; font-size: 13px; }
.azd-dash-putus-barang li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed #e5e7eb; padding: 2px 0; }
.azd-dash-putus-aksi { display: grid; gap: 8px; align-content: start; justify-items: end; text-align: right; }
.azd-dash-putus-nominal { font-size: 22px; font-weight: 800; color: #0f172a; font-variant-numeric: tabular-nums; }
.azd-dash-putus-detail { font-size: 12.5px; color: var(--azd-teal-dark); }
.azd-dash-tolak { width: 100%; }
.azd-dash-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.azd-dash-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; border-radius: 99px; border: 1px solid #e2e8f0; background: #fff; color: #0f172a; text-decoration: none; font-size: 13px; }
.azd-dash-chip:hover { border-color: var(--azd-teal); }
.azd-dash-chip strong { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; background: #fef3c7; color: #92400e; display: grid; place-items: center; font-size: 12px; }
.azd-dash-beres li { align-items: center; }
@media (max-width: 700px) {
	.azd-dash-putus-item { grid-template-columns: 1fr; }
	.azd-dash-putus-aksi { justify-items: stretch; text-align: left; }
	.azd-dash-putus-aksi .azd-inline .azd-btn { flex: 1; }
}
.azd-pf-kolom { display: grid; gap: 14px; align-content: start; }
.azd-pf-kolom form { display: grid; gap: 10px; align-content: start; }
.azd-pf-kolom form .azd-btn { justify-self: start; }
/* Tema memberi latar abu-abu pada input password; samakan dengan input lain. */
.azd .azd-input[type=password], .azd .azd-input[type=email] { background: #fff; border: 1px solid #cbd5e1; border-radius: 9px; padding: 9px 11px; height: auto; box-shadow: none; }

/* Mode kiosk: kiosk menutupi header & menu samping tema (bisa dibuka lagi dengan "Tampilkan menu") */
html.azd-fokus, html.azd-fokus body { overflow: hidden !important; }
html.azd-fokus #wpadminbar { display: none !important; }
.azd-sc.is-fokus { position: fixed !important; inset: 0; z-index: 2147483000; margin: 0 !important; max-width: none !important; width: 100% !important; height: 100%; overflow-y: auto !important; -webkit-overflow-scrolling: touch; background: #fff; border-radius: 0; padding: max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
.azd-sc.is-fokus .azd-sc-head .azd-title { font-size: 20px; }
.azd-sc [aria-pressed=true] { background: #0f766e; color: #fff; border-color: #0f766e; }
.azd-dg-info { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 14px; padding: 14px 16px; }
.azd-dg-info p { margin: 0; flex: 1 1 320px; }

/* Penampil berkas di dalam ERP (assets/js/berkas.js) */
html.azd-bk-buka, html.azd-bk-buka body { overflow: hidden; }
.azd-bk { width: min(1060px, 96vw); height: 92vh; max-width: none; max-height: none; padding: 0; border: 0; border-radius: 14px; background: #e5e7eb; box-shadow: 0 24px 70px rgba(15, 23, 42, .35); overflow: hidden; }
.azd-bk[open] { display: flex; flex-direction: column; }
.azd-bk::backdrop { background: rgba(15, 23, 42, .6); }
.azd-bk-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 16px; background: #fff; border-bottom: 1px solid #e2e8f0; }
.azd-bk-judul { flex: 1; min-width: 0; font-size: 14.5px; color: #0f172a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.azd-bk-btn { font: inherit; font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 9px; border: 1px solid #cbd5e1; background: #fff; color: #334155; text-decoration: none; cursor: pointer; }
.azd-bk-tutup { font-size: 20px; line-height: 1; padding: 4px 11px; }
.azd-bk-isi { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; padding: 12px; }
.azd-bk-pesan { max-width: 520px; margin: 60px auto; text-align: center; color: #475569; background: #fff; padding: 20px; border-radius: 12px; }
.azd-bk-pesan.is-gagal { color: #991b1b; background: #fee2e2; }
.azd-bk-info { text-align: center; font-size: 12px; color: #64748b; margin-bottom: 8px; }
.azd-bk-pdf { display: grid; gap: 12px; justify-items: center; }
.azd-bk-hal { background: #fff; box-shadow: 0 2px 8px rgba(15, 23, 42, .15); max-width: 100%; height: auto; }
.azd-bk-img { display: block; max-width: 100%; margin: 0 auto; background: #fff; }
.azd-bk-docx .docx-wrapper { background: transparent !important; padding: 0 !important; }
.azd-bk-docx .docx-wrapper > section.docx { margin: 0 auto 12px !important; box-shadow: 0 2px 8px rgba(15, 23, 42, .15) !important; max-width: 100%; }
.azd-bk-tab { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.azd-bk-tab-btn { font: inherit; font-size: 12.5px; padding: 5px 10px; border-radius: 8px; border: 1px solid #cbd5e1; background: #fff; cursor: pointer; }
.azd-bk-tab-btn.is-aktif { background: #0f766e; color: #fff; border-color: #0f766e; }
.azd-bk-xlsx { overflow: auto; background: #fff; border-radius: 8px; }
.azd-bk-tabel { border-collapse: collapse; font-size: 12.5px; }
.azd-bk-tabel td { border: 1px solid #e2e8f0; padding: 4px 8px; white-space: nowrap; }
@media (max-width: 700px) {
	.azd-bk { width: 100vw; height: 100%; max-height: 100dvh; border-radius: 0; }
	.azd-bk-isi { padding: 6px; }
	.azd-bk-docx section.docx { padding: 16px !important; width: auto !important; min-height: 0 !important; }
}

/* Dashboard eksekutif di HP: ringkas, dua kolom KPI, tanpa geser samping */
@media (max-width: 700px) {
	#azd-dash .azd-head { flex-direction: column; align-items: stretch; gap: 8px; margin-bottom: 12px; }
	#azd-dash .azd-title { font-size: 22px; }
	#azd-dash-filter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; }
	#azd-dash-filter .azd-input { width: 100% !important; min-width: 0; padding: 8px; font-size: 13.5px; }
	.azd-dash-putus { padding: 14px; gap: 10px; }
	.azd-dash-putus-head .azd-h3 { font-size: 16px; }
	.azd-dash-putus-item { padding: 12px; gap: 10px; }
	.azd-dash-putus-nominal { font-size: 20px; }
	.azd-dash-chip { font-size: 12.5px; }
	.azd-dash-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
	.azd-dash-kpi .azd-stat { padding: 10px; border-radius: 10px; }
	.azd-dash-kpi .azd-stat-label { font-size: 10.5px; letter-spacing: .2px; line-height: 1.25; }
	.azd-dash-kpi .azd-stat-value { font-size: 19px; }
	.azd-dash-kpi .azd-muted { font-size: 11px; line-height: 1.3; }
	.azd-dash-grid { gap: 12px; }
	.azd-dash-card { padding: 14px; }
	.azd-dash-card .azd-table th, .azd-dash-card .azd-table td { padding: 6px 5px; font-size: 12.5px; }
	.azd-dash-card .azd-table .azd-bar { display: none; }
	.azd-dash-card .azd-items li { font-size: 13px; }
	.azd-dash-beres li { flex-wrap: nowrap; gap: 10px; font-size: 13px; }
	.azd-dash-beres li span { flex: 1; min-width: 0; }
	.azd-dash-beres .azd-btn { padding: 5px 10px; flex: none; }
	.azd-chart { height: 110px; gap: 4px; }
	.azd-chart-bars span { width: 10px; }
}
@media (max-width: 700px) {
	.azd-dash-card .azd-table th { white-space: normal; line-height: 1.2; font-size: 11px; }
	.azd-dash-card .azd-table td { white-space: nowrap; }
}
.azd-pg-keluar { border: 1px dashed #fecaca; border-radius: 10px; padding: 10px 12px; margin: 6px 0; display: grid; gap: 8px; }
.azd-pg-keluar legend { font-size: 12px; font-weight: 700; color: #b91c1c; padding: 0 4px; }
.azd-pg-keluar [hidden] { display: none !important; }
.azd-pg-keluar .azd-btn { justify-self: start; }
.azd-dash-catatan { margin-top: 16px; padding: 12px 16px; }
.azd-dash-catatan summary { cursor: pointer; font-size: 14px; }
.azd-dash-catatan .azd-items { margin-top: 10px; }

/* Laporan tim konten [azd_konten] */
#azd-kn [hidden] { display: none !important; }
#azd-kn .azd-tabs { margin: 4px 0 14px; }
.azd-kn-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-bottom: 14px; }
.azd-kn-kartu { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid #e5e7eb; border-left: 4px solid #cbd5e1; border-radius: 12px; background: #fff; }
.azd-kn-kartu > small:first-child { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #64748b; }
.azd-kn-kartu strong { font-size: 22px; color: #0f172a; }
.azd-kn-kartu.is-ok { border-left-color: #16a34a; }
.azd-kn-kartu.is-kurang { border-left-color: #f59e0b; }
.azd-kn-bar { display: block; height: 8px; border-radius: 99px; background: #f1f5f9; overflow: hidden; }
.azd-kn-bar > span { display: block; height: 100%; background: #0f766e; border-radius: 99px; }
.azd-kn-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 14px; margin-bottom: 14px; align-items: start; }
.azd-kn-form { display: grid; gap: 10px; }
.azd-kn-form .azd-btn { justify-self: start; }
.azd-kn-tgl { width: auto; }
.azd-kn-post { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.azd-kn-post li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid #eef2f7; border-radius: 10px; background: #fafafa; }
tr.azd-kn-kosong td { background: #fffbeb; }
@media (max-width: 760px) { .azd-kn-grid { grid-template-columns: 1fr; } .azd-kn-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); } .azd-kn-kartu strong { font-size: 19px; } }

/* Dashboard eksekutif: kartu media sosial */
.azd-dash-konten .azd-dash-status { font-size: 14.5px; line-height: 1.45; margin: 0; }
.azd-dash-konten .azd-dash-status strong.is-ok { color: #15803d; }
.azd-dash-konten .azd-dash-status strong.is-kurang { color: #b45309; }
.azd-dash-pekan { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; align-items: end; height: 70px; position: relative; padding-top: 4px; }
.azd-dash-pekan div { display: grid; grid-template-rows: 1fr auto; height: 100%; text-align: center; gap: 2px; }
.azd-dash-pekan span { align-self: end; justify-self: center; width: 60%; min-height: 3px; border-radius: 4px 4px 0 0; background: #f59e0b; }
.azd-dash-pekan span.is-ok { background: #16a34a; }
.azd-dash-pekan small { font-size: 10.5px; color: #64748b; }
.azd-dash-okr { display: grid; gap: 8px; }
.azd-dash-okr div { display: grid; gap: 3px; font-size: 13px; }
.azd-dash-okr .azd-kn-bar > span { background: #0f766e; }
.azd-dash-konten .azd-table td, .azd-dash-konten .azd-table th { white-space: nowrap; }
.azd-dash-konten .azd-table td:first-child { white-space: normal; }

/* Panduan [azd_panduan] */
.azd-pd { max-width: 860px; margin: 0 auto; }
.azd-pd [hidden] { display: none !important; }
.azd-pd-cari { margin: 4px 0 8px; font-size: 15px; padding: 11px 14px; }
.azd-pd-grup { margin: 22px 0 8px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: #64748b; }
.azd-pd-item { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; margin-bottom: 8px; padding: 0 16px; }
.azd-pd-item summary { cursor: pointer; padding: 13px 0; font-weight: 700; color: #0f172a; font-size: 15px; list-style-position: inside; }
.azd-pd-item[open] summary { color: #0f766e; border-bottom: 1px dashed #e5e7eb; margin-bottom: 8px; }
.azd-pd-item ol, .azd-pd-item p { margin: 0 0 12px; line-height: 1.6; font-size: 14px; color: #334155; }
.azd-pd-item ol { padding-left: 20px; }
.azd-pd-item li { margin-bottom: 4px; }
.azd-pd-tip { background: #f0fdfa; border-left: 3px solid #0f766e; padding: 8px 12px; border-radius: 0 8px 8px 0; font-size: 13px !important; }

/* Rekap kehadiran periode [azd_rekap_kehadiran] */
#azd-rk .azd-rk-stat { margin-bottom: 14px; }
#azd-rk .azd-rk-stat .azd-stat-value { font-size: 18px; }
.azd-rk-aturan { margin-bottom: 12px; padding: 10px 16px; }
.azd-rk-aturan summary { cursor: pointer; font-weight: 700; color: #0f766e; }
.azd-rk-aturan ul { margin: 8px 0 2px; padding-left: 18px; font-size: 13px; line-height: 1.6; color: #334155; }
.azd-rk-judul { margin-bottom: 8px; font-weight: 700; }
.azd-rk-tabel td { vertical-align: top; }
.azd-rk-cat { display: block; font-size: 11.5px; color: #64748b; }
.azd-rk-cat.azd-bad { color: #b91c1c; }
@media (max-width: 700px) { #azd-rk .azd-rk-stat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.azd-tag-ok { background: #dcfce7; color: #166534; }
.azd-pg-tu { align-items: flex-start; background: #f0fdfa; border: 1px solid #99e2d3; border-radius: 10px; padding: 10px 12px; font-weight: 500; font-size: 13px; }
.azd-pg-tu input { margin-top: 3px; }
#azd-pg [hidden] { display: none !important; }
#azd-rk [hidden] { display: none !important; }
#azd-rk .azd-rk-tabs { margin: 0 0 12px; }
#azd-rk .azd-rk-info { margin-bottom: 12px; font-size: 13px; }
#azd-rk .azd-rk-h3 { margin: 0 0 2px; font-size: 15px; }
#azd-rk-iz-tunggu { margin-top: 14px; }
.azd-rk-rinci td { background: #f8fafc; }
.azd-rk-rinci ul { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.6; }
@media print { #azd-rk .azd-rk-buka { display: none; } }

/* Penilaian kinerja guru [azd_kinerja] */
#azd-kn .azd-kn-stat { margin-bottom: 14px; }
#azd-kn .azd-kn-stat .azd-stat-value { font-size: 22px; }
#azd-kn .azd-kn-s-baik_sekali { border-left: 4px solid #16a34a; }
#azd-kn .azd-kn-s-baik { border-left: 4px solid #2563eb; }
#azd-kn .azd-kn-s-kurang { border-left: 4px solid #d97706; }
#azd-kn .azd-kn-s-tidak { border-left: 4px solid #dc2626; }
#azd-kn .azd-kn-s-belum { border-left: 4px solid #94a3b8; }
#azd-kn-status { margin-bottom: 12px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.azd-kn-judul { margin-bottom: 8px; font-weight: 700; }
.azd-kn-tabel td { vertical-align: top; }
.azd-kn-p { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.azd-kn-baik_sekali { background: #dcfce7; color: #166534; }
.azd-kn-baik { background: #dbeafe; color: #1e40af; }
.azd-kn-kurang { background: #fef3c7; color: #92400e; }
.azd-kn-tidak { background: #fee2e2; color: #991b1b; }
.azd-kn-belum { background: #f1f5f9; color: #475569; }
.azd-kn-tren { display: inline-block; margin: 0 3px 3px 0; padding: 1px 6px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.azd-kn-cat { display: block; font-size: 11.5px; color: #64748b; }
.azd-kn-cat.azd-bad { color: #b91c1c; }
.azd-kn-perhatian td:first-child { box-shadow: inset 3px 0 0 #dc2626; }
.azd-kn-rinci td { background: #f8fafc; }
.azd-kn-rinci ul { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.7; }
.azd-kn-catat { color: #b91c1c; }
.azd-kn-aturan { margin-top: 14px; padding: 10px 16px; }
.azd-kn-aturan summary { cursor: pointer; font-weight: 700; color: #0f766e; }
.azd-kn-aturan > ul { margin: 8px 0 2px; padding-left: 18px; font-size: 13px; line-height: 1.6; color: #334155; }
.azd-kn-af { margin-top: 12px; border-top: 1px solid #e2e8f0; padding-top: 10px; }
.azd-kn-af fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.azd-kn-af legend { font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.azd-kn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 12px; }
.azd-dg-kinerja .azd-kn-p { font-size: 13px; }
.azd-dg-kinerja ul { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; line-height: 1.6; }
@media (max-width: 700px) { #azd-kn .azd-kn-stat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media print { #azd-kn .azd-kn-aturan form { display: none; } }
/* Dashboard Eksekutif: kartu kinerja guru */
.azd-dash-kinerja .azd-dash-kj-sub { margin: -6px 0 0; font-size: 12.5px; }
.azd-dash-kinerja .azd-dash-status { font-size: 14.5px; line-height: 1.45; margin: 0; }
.azd-dash-kj-bar { display: flex; height: 26px; border-radius: 8px; overflow: hidden; }
.azd-dash-kj-bar span { display: flex; align-items: center; justify-content: center; min-width: 22px; font-size: 12px; font-weight: 700; }
.azd-dash-kj-leg { display: flex; flex-wrap: wrap; gap: 6px; }
.azd-dash-kj-list li { align-items: flex-start; gap: 10px; }
.azd-dash-kj-why { display: block; font-size: 12px; line-height: 1.4; }
/* Riwayat Gaji: rincian periode dikelompokkan per unit */
#azd-rgaji .azd-rg-unit { margin: 10px 0 12px; }
#azd-rgaji .azd-rg-unit .azd-stat-value { font-size: 18px; }
#azd-rgaji .azd-rg-grup th { background: #f0fdf4; color: #0f766e; text-align: left; font-size: 13px; padding-top: 10px; }
#azd-rgaji .azd-rg-subtotal td { background: #f8fafc; border-top: 1px solid #cbd5e1; }
#azd-rgaji .azd-rg-grandtotal td { background: #ecfeff; border-top: 2px solid #0f766e; font-size: 14px; }
#azd-rgaji .azd-rg-kop, #azd-rgaji .azd-rg-dicetak { display: none; }
@media print {
	#azd-rgaji .azd-rg-kop { display: block; margin: 0 0 4px; font-weight: 700; font-size: 13px; color: #0f766e; }
	#azd-rgaji .azd-rg-dicetak { display: block; margin-top: 10px; font-size: 10px; }
	#azd-rgaji .azd-rg-cetak .azd-table-wrap { overflow: visible; }
	#azd-rgaji .azd-rg-cetak table { font-size: 11px; }
	#azd-rgaji .azd-rg-cetak .azd-rg-unit { grid-template-columns: repeat(4, 1fr); }
	#azd-rgaji .azd-rg-cetak tr { break-inside: avoid; }
	#azd-rgaji .azd-rg-grup th, #azd-rgaji .azd-rg-subtotal td, #azd-rgaji .azd-rg-grandtotal td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* --- Calon siswa [azd_calon_siswa] --- */
.azd-badge-info { background: #ede7fb; color: #5b3aa8; }
#azd-cs .azd-cs-acara { margin-bottom: 12px; }
#azd-cs .azd-cs-atur .azd-cs-buka { display: flex; gap: 8px; align-items: center; margin: 8px 0 12px; }
#azd-cs .azd-cs-rinci { margin-top: 16px; }
#azd-cs .azd-cs-r-aksi { display: grid; gap: 12px; margin: 12px 0; padding: 12px; background: var(--azd-bg); border-radius: 10px; }
#azd-cs .azd-cs-form { align-items: flex-end; flex-wrap: wrap; gap: 8px; }
#azd-cs .azd-cs-form .azd-grow { flex: 1 1 260px; }
#azd-cs .azd-cs-pindah { border-top: 1px dashed var(--azd-border); padding-top: 10px; }
#azd-cs .azd-cs-h4 { margin: 18px 0 6px; font-size: 14px; color: var(--azd-teal-dark); text-transform: uppercase; letter-spacing: .03em; }
#azd-cs .azd-cs-dl { display: grid; grid-template-columns: minmax(140px, 260px) 1fr; gap: 4px 16px; margin: 0; }
#azd-cs .azd-cs-dl dt { color: var(--azd-muted); }
#azd-cs .azd-cs-dl dd { margin: 0; overflow-wrap: anywhere; }
#azd-cs .azd-cs-berkas { flex-wrap: wrap; gap: 6px; }
#azd-cs .azd-cs-riwayat { padding-left: 18px; }
@media (max-width: 600px) { #azd-cs .azd-cs-dl { grid-template-columns: 1fr; } #azd-cs .azd-cs-dl dt { margin-top: 6px; } }
#azd-cs .azd-cs-lkp { font-size: 12px; font-weight: 700; color: #b45309; background: #fef3c7; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
#azd-cs .azd-cs-lkp.ok { color: var(--azd-teal-dark); background: var(--azd-teal-soft); }
