/* Mindoo — sistem reka bentuk */
:root {
  --purple: #7B3F91; --purple-d: #5B2A6E; --purple-dd: #3B1A4A; --purple-l: #F3ECF7; --purple-m: #E3D3EC;
  --orange: #E87E22; --orange-d: #C9650F; --orange-l: #FDF0E4;
  --yellow: #FFD21F;
  --ink: #241A2B; --ink-2: #5D5264; --ink-3: #8C8392;
  --line: #ECE6EF; --bg: #F8F6FA; --card: #FFFFFF;
  --good: #1E8E5A; --good-l: #E5F5EC; --warn: #B7791F; --warn-l: #FDF3DC;
  --bad: #C9372C; --bad-l: #FCE9E7; --info: #2F6FB0; --info-l: #E6EFF9;
  --radius: 14px; --shadow: 0 1px 2px rgba(59,26,74,.05), 0 4px 16px rgba(59,26,74,.05);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 24px; font-weight: 800; } h2 { font-size: 18px; font-weight: 700; } h3 { font-size: 15.5px; font-weight: 700; }
p { margin: 0 0 .8em; }
.ic { flex-shrink: 0; vertical-align: -3px; }
.muted { color: var(--ink-3); } .small { font-size: 12.5px; } .nowrap { white-space: nowrap; }
.right { text-align: right; } .center { text-align: center; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; } .mt0 { margin-top: 0; }

/* ---------- Kerangka ---------- */
.sidebar { position: fixed; inset: 0 auto 0 0; width: 252px; background: linear-gradient(180deg, var(--purple-d), var(--purple-dd)); color: #fff; overflow-y: auto; z-index: 40; padding: 18px 12px 28px; }
.brand { display: block; padding: 4px 10px 10px; } .brand img { width: 150px; display: block; }
.role-pill { display: inline-block; margin: 0 10px 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.12); color: var(--yellow); padding: 3px 10px; border-radius: 99px; }
.nav-group { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.45); margin: 16px 12px 6px; font-weight: 700; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 8.5px 12px; border-radius: 10px; color: rgba(255,255,255,.82); font-weight: 500; margin-bottom: 1px; position: relative; }
.nav-link:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.nav-link.active { background: #fff; color: var(--purple-d); font-weight: 700; }
.nav-link.active .ic { color: var(--orange); }
.nav-link .count { margin-left: auto; font-style: normal; background: var(--orange); color: #fff; font-size: 11px; border-radius: 99px; padding: 0 7px; font-weight: 700; }
.main { margin-left: 252px; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 28px; background: rgba(248,246,250,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-title { font-weight: 700; font-size: 16px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--ink-2); background: none; border: 0; cursor: pointer; }
.icon-btn:hover { background: var(--purple-l); color: var(--purple); text-decoration: none; }
.icon-btn .dot { position: absolute; top: 4px; right: 3px; background: var(--orange); color: #fff; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--bg); }
.usermenu { position: relative; } .usermenu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 99px; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover { background: var(--purple-l); }
.usermenu .menu { position: absolute; right: 0; top: 48px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(59,26,74,.15); min-width: 220px; padding: 6px; }
.usermenu .menu a, .usermenu .menu button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 9px 10px; border-radius: 8px; color: var(--ink); background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.usermenu .menu a:hover, .usermenu .menu button:hover { background: var(--purple-l); text-decoration: none; }
.uname { font-weight: 600; font-size: 13.5px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--purple); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: 12.5px; flex-shrink: 0; }
.avatar.lg { width: 56px; height: 56px; font-size: 19px; } .avatar.orange { background: var(--orange); }
.content { padding: 26px 28px 60px; max-width: 1320px; }
.only-mobile { display: none; }
.scrim { display: none; }

/* ---------- Kepala halaman ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; } .page-head p { margin: 4px 0 0; color: var(--ink-2); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumb { font-size: 13px; color: var(--ink-3); margin-bottom: 6px; } .crumb a { color: var(--ink-3); }

/* ---------- Kad & grid ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card + .card { margin-top: 16px; }
.grid > .card + .card, .grid > * + .card { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; }
.card.flush { padding: 0; } .card.flush .card-head { padding: 18px 20px 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.stack > * + * { margin-top: 16px; }

.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat .label { font-size: 12.5px; color: var(--ink-2); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.stat .label .ic { color: var(--purple); }
.stat .value { font-size: 26px; font-weight: 800; margin-top: 6px; letter-spacing: -.02em; }
.stat .sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.stat.accent { background: linear-gradient(135deg, var(--purple), var(--purple-d)); color: #fff; border: 0; }
.stat.accent .label, .stat.accent .sub { color: rgba(255,255,255,.78); } .stat.accent .label .ic { color: var(--yellow); }
.stat.warn .value { color: var(--bad); }

/* ---------- Jadual ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); padding: 10px 14px; border-bottom: 1px solid var(--line); background: #FCFBFD; white-space: nowrap; }
.t td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: #FCFAFD; }
.t .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t tfoot td { font-weight: 700; background: #FCFBFD; border-top: 1px solid var(--line); }
.card.flush .t th:first-child, .card.flush .t td:first-child { padding-left: 20px; }
.card.flush .t th:last-child, .card.flush .t td:last-child { padding-right: 20px; }
.person { display: flex; align-items: center; gap: 10px; } .person .avatar { width: 32px; height: 32px; font-size: 11.5px; }
.person b { display: block; font-weight: 600; } .person small { color: var(--ink-3); }
.empty { text-align: center; color: var(--ink-3); padding: 36px 16px; }
.empty .ic { color: var(--purple-m); display: block; margin: 0 auto 8px; }

/* ---------- Lencana ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.good { background: var(--good-l); color: var(--good); } .badge.warn { background: var(--warn-l); color: var(--warn); }
.badge.bad { background: var(--bad-l); color: var(--bad); } .badge.info { background: var(--info-l); color: var(--info); }
.badge.muted { background: #F0EEF2; color: var(--ink-3); }
.tag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--purple-l); color: var(--purple-d); }
.tag.orange { background: var(--orange-l); color: var(--orange-d); }

/* ---------- Butang & borang ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-weight: 600; font-size: 13.5px; padding: 9px 15px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; white-space: nowrap; line-height: 1.2; }
.btn:hover { border-color: var(--purple-m); background: var(--purple-l); text-decoration: none; }
.btn.primary { background: var(--purple); border-color: var(--purple); color: #fff; } .btn.primary:hover { background: var(--purple-d); }
.btn.orange { background: var(--orange); border-color: var(--orange); color: #fff; } .btn.orange:hover { background: var(--orange-d); }
.btn.danger { color: var(--bad); } .btn.danger:hover { background: var(--bad-l); border-color: #f3c7c2; }
.btn.good { background: var(--good); border-color: var(--good); color: #fff; }
.btn.sm { padding: 6px 10px; font-size: 12.5px; border-radius: 8px; } .btn.lg { padding: 12px 20px; font-size: 15px; }
.btn.block { width: 100%; justify-content: center; }
.btn.ghost { border-color: transparent; background: none; }
.inline { display: inline; }
label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 5px; color: var(--ink-2); }
.field { margin-bottom: 14px; }
.hint { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=month], input[type=tel], input[type=search], input[type=url], select, textarea {
  width: 100%; font: inherit; padding: 9px 12px; border: 1px solid #DDD5E2; border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(123,63,145,.15); }
textarea { min-height: 90px; resize: vertical; }
input[type=file] { font: inherit; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters input, .filters select { width: auto; min-width: 150px; }
.filters input[type=search] { min-width: 240px; }
.checkbox { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); }
.checkbox input { width: 16px; height: 16px; accent-color: var(--purple); }

/* ---------- Mesej flash ---------- */
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; border: 1px solid; }
.flash.ok { background: var(--good-l); color: var(--good); border-color: #bfe5cf; }
.flash.err { background: var(--bad-l); color: var(--bad); border-color: #f3c7c2; }
.flash.info { background: var(--info-l); color: var(--info); border-color: #c5daf0; }
.callout { background: var(--orange-l); border: 1px solid #f6d6b5; border-radius: 12px; padding: 14px 16px; color: #7a420c; }
.callout.purple { background: var(--purple-l); border-color: var(--purple-m); color: var(--purple-dd); }

/* ---------- Tab ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; font-weight: 600; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--purple); text-decoration: none; }
.tabs a.on { color: var(--purple); border-color: var(--orange); }

/* ---------- Senarai ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; } .list li:first-child { padding-top: 0; }
.list .grow { flex: 1; min-width: 0; }
.time-chip { flex-shrink: 0; background: var(--purple-l); color: var(--purple-d); border-radius: 10px; padding: 6px 10px; font-weight: 700; font-size: 12.5px; text-align: center; min-width: 64px; }
.time-chip small { display: block; font-weight: 500; color: var(--ink-3); font-size: 11px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; font-size: 14px; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; font-weight: 500; }

/* ---------- Profil ---------- */
.profile-head { display: flex; align-items: center; gap: 16px; }
.profile-head h1 { margin: 0; }

/* ---------- Bar kemajuan ---------- */
.meter { height: 8px; background: #EFEAF2; border-radius: 99px; overflow: hidden; min-width: 80px; }
.meter > span { display: block; height: 100%; background: var(--purple); border-radius: 99px; }
.meter.good > span { background: var(--good); } .meter.warn > span { background: var(--orange); } .meter.bad > span { background: var(--bad); }

/* ---------- Carta bar ---------- */
.bars { display: flex; align-items: flex-end; gap: 14px; height: 190px; padding: 8px 4px 0; border-bottom: 1px solid var(--line); position: relative; }
.bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.bars .bar { width: 100%; max-width: 38px; background: var(--purple); border-radius: 4px 4px 0 0; min-height: 2px; transition: background .15s; }
.bars .col:hover .bar { background: var(--purple-d); }
.bars .col.current .bar { background: var(--orange); }
.bars .val { font-size: 11.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; white-space: nowrap; }
.bars-x { display: flex; gap: 14px; padding: 6px 4px 0; } .bars-x span { flex: 1; text-align: center; font-size: 12px; color: var(--ink-3); }
.bars .col .tip { position: absolute; bottom: calc(100% + 4px); background: var(--ink); color: #fff; font-size: 12px; padding: 5px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 2; }
.bars .col:hover .tip { opacity: 1; }

/* ---------- Jadual mingguan ---------- */
.week { display: grid; grid-template-columns: repeat(7, minmax(140px, 1fr)); gap: 10px; overflow-x: auto; }
.week .day { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-height: 140px; }
.week .day h4 { font-size: 13px; margin: 0 0 8px; color: var(--ink-2); display: flex; justify-content: space-between; }
.week .day.today { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange-l); }
.week .day.today h4 { color: var(--orange-d); }
.slot { display: block; border-radius: 9px; padding: 8px 9px; margin-bottom: 7px; background: var(--purple-l); border-left: 3px solid var(--purple); color: var(--ink); font-size: 12.5px; }
.slot:hover { text-decoration: none; background: var(--purple-m); }
.slot b { display: block; font-size: 12.5px; } .slot small { color: var(--ink-2); display: block; }
.slot.c1 { background: var(--orange-l); border-color: var(--orange); }
.slot.c2 { background: #E8F3EE; border-color: #2F9467; }
.slot.c3 { background: #E7EFF8; border-color: #3C78B5; }

/* ---------- Kehadiran ---------- */
.att-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.att-row .person { flex: 1 1 170px; min-width: 0; }
.att-row input[type=text] { flex: 0 1 150px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg input { display: none; }
.seg label { margin: 0; padding: 7px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--ink-2); border-right: 1px solid var(--line); background: #fff; }
.seg label:last-of-type { border-right: 0; }
.seg input:checked + label.s-hadir { background: var(--good); color: #fff; }
.seg input:checked + label.s-lewat { background: var(--warn); color: #fff; }
.seg input:checked + label.s-tidak_hadir { background: var(--bad); color: #fff; }
.seg input:checked + label.s-cuti { background: var(--info); color: #fff; }

/* ---------- Mesej ---------- */
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; padding: 4px; }
.bubble { max-width: 75%; padding: 10px 14px; border-radius: 14px; background: #F2EEF5; align-self: flex-start; }
.bubble.me { background: var(--purple); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble:not(.me) { border-bottom-left-radius: 4px; }
.bubble small { display: block; font-size: 11px; opacity: .7; margin-top: 4px; }
.thread-item { display: flex; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); color: var(--ink); align-items: center; }
.thread-item:hover { background: #FCFAFD; text-decoration: none; }
.thread-item.unread b { color: var(--purple-d); } .thread-item.unread::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }

/* ---------- Pengumuman ---------- */
.announce { border-left: 3px solid var(--purple); padding: 2px 0 2px 14px; }
.announce.pinned { border-color: var(--orange); }
.announce + .announce { margin-top: 18px; }
.announce .meta { font-size: 12px; color: var(--ink-3); }
.announce .body { white-space: pre-line; }

/* ---------- Anak (ibu bapa) ---------- */
.child-card { display: flex; flex-direction: column; gap: 14px; }
.child-top { display: flex; gap: 14px; align-items: center; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-stats div { background: var(--bg); border-radius: 10px; padding: 10px; text-align: center; }
.mini-stats b { display: block; font-size: 18px; font-weight: 800; }
.mini-stats span { font-size: 11.5px; color: var(--ink-3); }

/* ---------- Log masuk / awam ---------- */
body.public { background: radial-gradient(1200px 600px at 10% -10%, #F3E7F9, transparent), radial-gradient(900px 500px at 110% 10%, #FFF0DE, transparent), var(--bg); }
.public-wrap { max-width: 760px; margin: 0 auto; padding: 40px 18px 60px; }
.public-logo { display: block; width: 210px; margin: 0 auto 26px; } .public-logo img { width: 100%; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.login-art { background: linear-gradient(150deg, var(--purple) 0%, var(--purple-dd) 100%); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art::after { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: var(--orange); opacity: .18; right: -140px; bottom: -140px; }
.login-art img { width: 210px; }
.login-art h2 { font-size: 34px; font-weight: 800; line-height: 1.15; margin-bottom: 14px; }
.login-art ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; position: relative; z-index: 1; }
.login-art li { display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,.9); }
.login-art li .ic { color: var(--yellow); }
.login-form { display: grid; place-items: center; padding: 40px 24px; background: #fff; }
.login-form .box { width: 100%; max-width: 380px; }
.demo { margin-top: 22px; background: var(--bg); border-radius: 12px; padding: 12px 14px; font-size: 12.5px; color: var(--ink-2); }
.demo b { color: var(--ink); }

/* ---------- Kiosk ---------- */
.kiosk { min-height: 100vh; background: linear-gradient(150deg, var(--purple), var(--purple-dd)); color: #fff; display: grid; place-items: center; padding: 24px; text-align: center; }
.kiosk .panel { width: 100%; max-width: 560px; }
.kiosk img { width: 220px; margin-bottom: 18px; }
.kiosk input { font-size: 28px; text-align: center; padding: 16px; border-radius: 16px; border: 0; letter-spacing: .08em; }
.kiosk .clock { font-size: 56px; font-weight: 800; letter-spacing: -.02em; }
.kiosk .result { margin-top: 22px; background: rgba(255,255,255,.12); border-radius: 16px; padding: 18px; font-size: 18px; }
.kiosk .result.ok { background: #1E8E5A; } .kiosk .result.err { background: #C9372C; }

/* ---------- Dokumen cetak (invois, resit, laporan, kad) ---------- */
.doc { background: #fff; max-width: 820px; margin: 0 auto; padding: 40px 44px; border: 1px solid var(--line); border-radius: 12px; }
.doc-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; border-bottom: 3px solid var(--purple); padding-bottom: 16px; margin-bottom: 20px; }
.doc-head img { width: 180px; }
.doc-head .co { text-align: right; font-size: 12.5px; color: var(--ink-2); }
.doc-title { font-size: 22px; font-weight: 800; color: var(--purple); letter-spacing: .04em; }
.stamp { display: inline-block; border: 3px solid var(--good); color: var(--good); font-weight: 800; padding: 6px 16px; border-radius: 8px; transform: rotate(-6deg); font-size: 18px; letter-spacing: .1em; }
.id-card { width: 340px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; display: inline-block; margin: 8px; vertical-align: top; }
.id-card .top { background: linear-gradient(135deg, var(--purple), var(--purple-d)); padding: 12px 16px; }
.id-card .top img { width: 120px; }
.id-card .bd { display: flex; gap: 14px; padding: 14px 16px; align-items: center; }
.id-card .bd img { width: 110px; height: 110px; }

@media print {
  .sidebar, .topbar, .no-print, .flash { display: none !important; }
  .main { margin: 0; } .content { padding: 0; max-width: none; }
  body { background: #fff; font-size: 12.5px; }
  .doc { border: 0; padding: 0; max-width: none; }
  .card { box-shadow: none; }
  a { color: inherit; }
}

/* ---------- Responsif ---------- */
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-main { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 35; }
  .main { margin-left: 0; } .only-mobile { display: inline-grid; } .hide-mobile { display: none; }
  .topbar { padding: 0 12px; } .content { padding: 18px 16px 50px; }
  .g2, .g3 { grid-template-columns: 1fr; } .form-grid { grid-template-columns: 1fr; }
  .login-shell { grid-template-columns: 1fr; } .login-art { display: none; }
  .filters input, .filters select, .filters input[type=search] { min-width: 0; flex: 1 1 140px; }
  .doc { padding: 22px 18px; }
  .kv { grid-template-columns: 110px 1fr; }
}
@media (max-width: 520px) { .g4 { grid-template-columns: 1fr 1fr; } .stat .value { font-size: 21px; } h1 { font-size: 21px; } }

/* Kotak butiran log masuk */
.creds-card { border: 2px solid var(--good); background: linear-gradient(0deg, #fff, var(--good-l)); margin-bottom: 18px; }
.creds-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.creds-grid > div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.creds-grid span { display: block; }
.creds-grid b { display: block; overflow-wrap: anywhere; }
.creds-pass { font-size: 20px; letter-spacing: .04em; color: var(--purple); font-family: ui-monospace, Menlo, monospace; }
@media (max-width: 860px) { .creds-grid { grid-template-columns: 1fr; } }

/* Butang WhatsApp terapung */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; font-family: var(--font); }
.wa-btn { width: 58px; height: 58px; border-radius: 50%; border: 0; background: #25D366; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.22); transition: transform .15s; position: relative; }
.wa-btn:hover { transform: scale(1.06); }
.wa-btn::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: waPulse 2.4s infinite; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.45); } 70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.wa-pop { position: absolute; right: 0; bottom: 72px; width: 310px; max-width: calc(100vw - 32px); background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 14px 40px rgba(0,0,0,.2); animation: waIn .18s ease-out; }
@keyframes waIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wa-pop-head { background: #075E54; color: #fff; display: flex; align-items: center; gap: 10px; padding: 14px; }
.wa-pop-head img { border-radius: 50%; background: var(--purple); padding: 4px; }
.wa-pop-head div { flex: 1; } .wa-pop-head b { display: block; font-size: 14.5px; } .wa-pop-head small { font-size: 12px; opacity: .85; }
.wa-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #25D366; margin-right: 3px; }
.wa-x { background: none; border: 0; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; opacity: .8; }
.wa-pop-body { background: #ECE5DD; padding: 16px 14px 14px; }
.wa-bubble { background: #fff; border-radius: 0 10px 10px 10px; padding: 10px 12px; font-size: 13.5px; line-height: 1.45; color: #303030; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.wa-hours { font-size: 11.5px; color: #555; margin: 8px 2px 0; }
.wa-start { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; background: #25D366; color: #fff; border-radius: 99px; padding: 11px; font-weight: 700; font-size: 14px; }
.wa-start:hover { background: #1EBE5A; text-decoration: none; }
@media print { .wa-float { display: none; } }
@media (max-width: 520px) { .wa-float { right: 14px; bottom: 14px; } .wa-btn { width: 52px; height: 52px; } }
