/* Komponen absensi mengikuti header biru-indigo dan kartu template SKL. */
.absensi-theme{color:#24334b;font-size:14px;line-height:1.65;max-width:1560px;margin:0 auto}
.absensi-theme .module-subtitle{margin:5px 0 0;color:#dbeafe;font-size:13px;font-weight:400}
.absensi-theme .module-toolbar{display:flex;align-items:flex-end;flex-wrap:wrap;gap:14px;margin-bottom:18px}
.absensi-theme .module-toolbar label{flex:1;min-width:180px;max-width:430px}
.absensi-theme .module-toolbar input{display:block;width:100%;margin-top:6px}
.absensi-theme .module-count{margin-left:auto;font-size:12px;color:#64748b;padding:10px 0}
.absensi-theme .module-note{display:flex;gap:10px;align-items:flex-start;padding:14px 18px;background:#eff6ff;border:1px solid #dbeafe;border-radius:12px;font-size:12px;color:#475569;margin-bottom:22px}
.absensi-theme .module-note i{margin-top:4px;color:#3b82f6}
.student-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.student-card{min-width:0;background:white;border:1px solid #e2e8f0;border-radius:16px;padding:22px;transition:border-color .15s,box-shadow .15s}
.student-card:hover{border-color:#bfdbfe;box-shadow:0 8px 24px #1e40af0a}
.student-card-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}
.student-avatar{display:grid;place-items:center;width:42px;height:42px;background:#eef2ff;color:#4f46e5;border-radius:13px;font-size:18px;font-weight:700}
.module-badge{background:#f1f5f9;border:1px solid #e2e8f0;color:#64748b;padding:4px 10px;border-radius:7px;font-size:11px;white-space:nowrap}
.student-card h2{font-size:15px;font-weight:650;overflow-wrap:anywhere;margin:0 0 8px;line-height:1.5}
.student-nis{font-size:11px;color:#94a3b8;margin:0 0 20px}.student-nis strong{font-weight:500;color:#64748b;margin-left:8px}
.absensi-theme .student-action{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;padding:10px;border:1px solid #dbeafe;background:#eff6ff;color:#2563eb;font-size:12px;border-radius:9px}
.absensi-theme .student-action:hover{background:#dbeafe}.student-action i:last-child{margin-left:auto;font-size:10px}
.module-empty{text-align:center;background:white;border:1px dashed #cbd5e1;border-radius:16px;padding:48px 24px;color:#64748b}.module-empty>i{font-size:32px;color:#94a3b8}.module-empty h2{font-size:18px;margin-top:16px;font-weight:600}.module-empty p{font-size:13px;margin-top:8px}
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start;margin-bottom:24px}
.settings-grid>form{margin-bottom:0!important;min-width:0}
.absensi-theme .settings-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:end;border:0;padding:0;min-width:0}
.absensi-theme .settings-fields label{margin:0}.absensi-theme .settings-fields input:not([type=checkbox]){display:block;width:100%;margin-top:6px}
.absensi-theme .whatsapp-templates .settings-fields{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.whatsapp-templates textarea{flex-basis:100%;resize:vertical}.whatsapp-templates label{margin-right:auto!important}
.absensi-theme .settings-grid input[type=time]{width:100%;margin-top:7px}.absensi-theme .settings-grid [role=group]{padding-top:16px;border-top:1px solid #eef2f7}
.absensi-theme form[method=get] label input,.absensi-theme form[method=get] label select{display:block;margin-top:6px}
.absensi-theme nav[aria-label=Pagination]{align-items:center;color:#64748b;font-size:12px;padding-top:16px;border-top:1px solid #eef2f7}
.absensi-theme nav[aria-label=Pagination] a{border:1px solid #e2e8f0;border-radius:8px;padding:7px 12px;background:white}
.absensi-theme table:not(.report-grid) tbody tr:nth-child(even){background:#fafbfd}
.absensi-theme table:not(.report-grid) td[colspan]{text-align:center;padding:36px 20px;color:#64748b}
.absensi-theme .bg-white h2{letter-spacing:-.3px;font-size:18px;line-height:1.5}
.absensi-theme .bg-white:not(.bg-opacity-20)>form[method=get]{border:0;box-shadow:none;padding:0 0 20px;border-bottom:1px solid #eef2f7;border-radius:0}
.absensi-theme form[method=get] label{min-width:150px}
.absensi-theme table:not(.report-grid) th{white-space:nowrap}
.absensi-theme form button+button{margin-left:6px}
.absensi-theme textarea{line-height:1.7}
.absensi-theme .settings-grid fieldset{min-width:0}
.absensi-theme>p{color:#64748b;font-size:13px}
@media(min-width:1600px){.student-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1200px){.student-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-grid{grid-template-columns:1fr}}
@media(max-width:600px){.student-grid{grid-template-columns:1fr}.absensi-theme .settings-fields{grid-template-columns:1fr}.absensi-theme .module-count{width:100%;margin:0}.student-card{padding:18px}}
.absensi-theme .absensi-heading {
  display:flex; align-items:center; gap:16px; padding:24px; margin-bottom:24px;
  color:#fff; border-radius:12px; background:linear-gradient(135deg,#2563eb,#4338ca);
  box-shadow:0 10px 24px rgba(37,99,235,.18);
  background-image:radial-gradient(circle at 50% 50%,rgba(255,255,255,.12) 1px,transparent 1px),linear-gradient(135deg,#2563eb,#4338ca);
  background-size:30px 30px,auto;
}
.absensi-theme .absensi-heading h1 {color:#fff;margin:0;font-size:28px;font-weight:700;line-height:1.3;}
.absensi-theme .absensi-heading-icon {display:flex;align-items:center;justify-content:center;width:52px;height:52px;flex-shrink:0;border-radius:10px;background:rgba(255,255,255,.2);font-size:24px;}
.absensi-theme .bg-white:not(button):not(input):not(select):not(textarea),
.absensi-theme .public-card,.absensi-theme .public-activity {
  border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 4px 15px rgba(15,23,42,.06);
}
.absensi-theme form[method="get"] {background:white;padding:20px;border:1px solid #e5e7eb;border-radius:12px;align-items:flex-end;box-shadow:0 4px 15px rgba(15,23,42,.04);}
.absensi-theme label {font-size:14px;font-weight:500;color:#374151;}
.absensi-theme input:not([type="checkbox"]):not([type="hidden"]):not([type="radio"]),.absensi-theme select,.absensi-theme textarea {
  background:#fff;border:1px solid #d1d5db;border-radius:8px;padding:10px 12px;min-height:42px;font-size:14px;max-width:100%;color:#111827;
}
.absensi-theme input:focus,.absensi-theme select:focus,.absensi-theme textarea:focus {outline:2px solid #93c5fd;outline-offset:1px;border-color:#2563eb;}
.absensi-theme input[type="checkbox"] {accent-color:#2563eb;}
.absensi-theme button,.absensi-theme a.bg-blue-600,.absensi-theme .public-button {border-radius:8px;font-size:14px;font-weight:600;min-height:40px;transition:background .15s,box-shadow .15s;}
.absensi-theme button.bg-blue-600,.absensi-theme a.bg-blue-600,.absensi-theme .public-button {background:#2563eb;box-shadow:0 3px 8px rgba(37,99,235,.15);}
.absensi-theme button.bg-blue-600:hover,.absensi-theme a.bg-blue-600:hover,.absensi-theme .public-button:hover {background:#1d4ed8;}
.absensi-theme button:focus-visible,.absensi-theme a:focus-visible {outline:2px solid #2563eb;outline-offset:3px;}
.absensi-theme button:disabled {opacity:.5;cursor:not-allowed;}
.absensi-theme table:not(.report-grid) {width:100%;border-collapse:collapse;font-size:14px;}
.absensi-theme table:not(.report-grid) th {background:#f9fafb;color:#4b5563;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.025em;padding:14px 16px;border-bottom:1px solid #e5e7eb;text-align:left;}
.absensi-theme table:not(.report-grid) td {padding:14px 16px;border-bottom:1px solid #f1f5f9;vertical-align:middle;}
.absensi-theme table:not(.report-grid) tbody tr:hover {background:#eff6ff;}
.absensi-theme [role="status"],.absensi-theme [role="alert"] {padding:16px;border-radius:10px;border:1px solid #bfdbfe;}
.absensi-theme.public-dashboard {background:transparent;}
.absensi-theme .public-heading .absensi-heading {flex:1;margin-bottom:0;}
.absensi-theme .public-table {font-size:20px;}
.absensi-theme .public-table th,.absensi-theme .public-table td {font-size:inherit;}
.absensi-theme .absensi-stats > div {border-top:3px solid #2563eb;}
.absensi-theme .absensi-stats > div:nth-child(2) {border-top-color:#10b981;}
.absensi-theme .absensi-stats > div:nth-child(3) {border-top-color:#f59e0b;}
@media(max-width:640px){
  .absensi-theme .absensi-heading {padding:18px;gap:12px;}
  .absensi-theme .absensi-heading h1 {font-size:21px;}
  .absensi-theme .absensi-heading-icon {width:42px;height:42px;font-size:20px;}
  .absensi-theme form[method="get"] {padding:16px;}
  .absensi-theme form[method="get"] label {width:100%;}
  .absensi-theme form[method="get"] input,.absensi-theme form[method="get"] select {width:100%;}
  .absensi-theme td,.absensi-theme table:not(.report-grid) th {padding:12px;}
}
/* Format cetak laporan/QR tidak menggunakan dekorasi tema layar. */
@media print {.absensi-theme .absensi-heading {background:none;color:#111;box-shadow:none;}.absensi-theme .absensi-heading h1 {color:#111;}.absensi-theme .absensi-heading-icon {display:none;}}
/* Navigasi admin: brand fleksibel, kolom ikon tetap, kelompok menu dan footer akun. */
#sidebar .sidebar-brand{padding:22px 18px;min-height:104px;justify-content:flex-start}
#sidebar .sidebar-brand>div{width:100%;gap:12px}
#sidebar .sidebar-brand .w-10{flex-shrink:0;width:40px;height:40px}
#sidebar .sidebar-brand h1{font-size:17px;line-height:1.4;letter-spacing:0;overflow-wrap:anywhere}
#sidebar .sidebar-brand p{font-size:11px;margin-top:4px}
#sidebar nav{min-height:0;padding:8px 0 16px}
#sidebar nav a,#sidebar nav button{min-height:43px;padding:11px 12px;font-size:13px;line-height:1.5}
#sidebar nav a>div,#sidebar nav button>div:first-child{min-width:0;gap:10px}
#sidebar nav i:first-child{width:20px;flex-shrink:0;text-align:center}
#sidebar nav span.font-medium{margin-left:0;white-space:normal}
#sidebar .sidebar-section-label{font-size:10px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:#94a3b8;padding:17px 12px 8px}
#sidebar .sidebar-account{background:#f8fafc;padding-top:0;padding-bottom:12px}
#sidebar .sidebar-account .space-y-1{display:flex;gap:6px}
#sidebar .sidebar-account a{flex:1;justify-content:center;font-size:12px}
#sidebar .sidebar-account i{margin-right:8px}
.absensi-theme .absensi-stats>div{position:relative;padding:24px;border-radius:16px}
.stat-symbol{float:right;background:#eff6ff;color:#2563eb;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;font-size:18px}
.absensi-stats>div:nth-child(2) .stat-symbol{background:#ecfdf5;color:#059669}.absensi-stats>div:nth-child(3) .stat-symbol{background:#fffbeb;color:#d97706}
.absensi-theme details{background:#f8fafc;padding:10px 12px;border:1px solid #e2e8f0;border-radius:10px;min-width:160px}.absensi-theme summary{cursor:pointer;color:#2563eb;font-weight:600;font-size:12px}.absensi-theme details form{padding-top:12px}.absensi-theme details label{display:block;margin-bottom:10px}
main.absensi-theme{max-width:1400px;padding:28px;margin:0 auto}
@media(max-width:640px){main.absensi-theme{padding:16px}.absensi-theme .absensi-stats{display:grid;grid-template-columns:1fr}}
.qr-selection-bar{display:flex;gap:16px;align-items:center;flex-wrap:wrap;padding:16px 20px;background:white;border:1px solid #e2e8f0;border-radius:12px;margin-bottom:20px}.qr-selection-bar button{margin-left:auto}.qr-selection-bar span{font-size:12px;color:#64748b}.student-select{display:flex;align-items:flex-start;gap:8px;font-size:11px!important;color:#64748b!important;margin-bottom:12px}.student-select input{margin-top:4px;flex-shrink:0}
