/* Mulya CRM — layout and components from ASD Green CRM, re-themed to the Mulya Academy brand
   (Brand ID STEM & AI, Okt 2026): purple 8615BB, ink 201332, cyan 29C5D9, lime D6F36C, Manrope. */
:root {
  --brand: #8615bb;
  --brand-dark: #6a0f95;
  --brand-soft: #f3e8fb;
  --ink: #201332;
  --ink-2: #2e1d47;
  --cyan: #29c5d9;
  --cyan-soft: #e3f8fb;
  --lime: #d6f36c;
  --lime-soft: #f5fcdc;
  --good: #116a33;            /* 5.9:1 on --good-soft (WCAG AA) */
  --good-soft: #e5f5ea;
  --danger: #c62828;
  --danger-soft: #fdecea;
  --warn: #a35a00;
  --warn-soft: #fff4e0;
  --bg: #f5f3f8;
  --card: #ffffff;
  --text: #201332;
  --muted: #6b6478;
  --border: #e3dfea;
  --shadow: 0 1px 2px rgba(32, 19, 50, .05), 0 1px 3px rgba(32, 19, 50, .08);
  --radius: 12px;
  --sidebar-w: 248px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--text); background: var(--bg);
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: 12px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
table.t td.num { white-space: nowrap; }
.nowrap { white-space: nowrap; }
.strong { font-weight: 700; }

/* ---------- Layout ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 40; color: #fff;
  display: flex; flex-direction: column; transition: transform .2s;
  /* graph-paper grid over ink, a nod to the "Buku Makmal" website concept */
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(175deg, var(--ink) 0%, var(--ink-2) 60%, #3a1560 100%);
}
.sidebar .logo { display: flex; align-items: center; gap: 10px; padding: 18px 16px; border-bottom: 2px solid var(--lime); }
.sidebar .logo img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; }
.sidebar .logo b { display: block; font-size: 16px; font-weight: 800; letter-spacing: .2px; }
.sidebar .logo span { font-size: 11px; opacity: .75; }
.sidebar nav { flex: 1; overflow-y: auto; padding: 10px 8px 20px; }
.sidebar .grp { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px; opacity: .55; padding: 14px 10px 4px; font-weight: 700; }
.sidebar nav a {
  display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-radius: 8px; min-height: 44px;
  color: rgba(255,255,255,.86); font-weight: 600; text-decoration: none;
}
.sidebar nav a:hover { background: rgba(255,255,255,.08); }
.sidebar nav a.active { background: rgba(134, 21, 187, .55); color: #fff; box-shadow: inset 3px 0 0 var(--lime); }
.sidebar nav a.soon { opacity: .4; cursor: default; }
.sidebar nav a.soon:hover { background: none; }
.sidebar nav a .tag { margin-left: auto; font-size: 10px; background: rgba(255,255,255,.14); padding: 1px 6px; border-radius: 10px; }
.sidebar nav a .count { margin-left: auto; font-size: 11px; background: var(--lime); color: var(--ink); padding: 0 7px; border-radius: 10px; font-weight: 800; }
.sidebar .me { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; }
.sidebar .me b { display: block; font-size: 13px; }
.sidebar .me button { background: none; border: 0; color: #fff; opacity: .9; cursor: pointer; padding: 10px 0; min-height: 44px; margin-right: 14px; text-decoration: underline; }

.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; padding: 12px 24px; min-height: 58px;
}
.topbar h1 { font-size: 18px; font-weight: 800; }
.topbar .spacer { flex: 1; }
.menu-btn { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; }
.content { padding: 20px 24px 60px; flex: 1; }
.backdrop { display: none; }

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 35; }
  .main { margin-left: 0; }
  .menu-btn { display: block; }
  .topbar { padding: 10px 16px; }
  .content { padding: 16px 16px 60px; }
}

/* ---------- Components ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-h h3 { font-size: 14px; font-weight: 800; }
.card-h .btns { margin-left: auto; }
.card-b { padding: 16px; }
.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)); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .detail-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .g2, .g3 { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 16px; }

.kpi { padding: 14px 16px; position: relative; overflow: hidden; }
.kpi::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand); }
.kpi.cyan::after { background: var(--cyan); } .kpi.lime::after { background: var(--lime); } .kpi.alert::after { background: var(--danger); }
.kpi .l { font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi .v { font-size: 24px; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 12px; color: var(--muted); }
.kpi.alert .v { color: var(--danger); }
.kpi.good .v { color: var(--good); }
a.kpi { display: block; color: inherit; text-decoration: none; }
a.kpi:hover { border-color: var(--brand); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px;
  border-radius: 8px; border: 1px solid var(--border); background: #fff; cursor: pointer; font-weight: 700;
  white-space: nowrap; text-decoration: none !important; color: var(--text);
}
.btn:hover { background: #f7f5fa; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.wa { background: #11823f; border-color: #11823f; color: #fff; }   /* WhatsApp green, darkened to 4.9:1 */
.btn.danger { color: var(--danger); border-color: #f1c1bd; }
.btn.sm { padding: 5px 10px; font-size: 12.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.badge { display: inline-block; padding: 1px 8px; border-radius: 20px; font-size: 11.5px; font-weight: 700; background: #efedf3; color: #4d4560; white-space: nowrap; }
.b-active, .b-paid, .b-contributed, .b-valid { background: var(--good-soft); color: var(--good); }
.b-issued, .b-open { background: var(--cyan-soft); color: #0e7383; }
.b-partially_paid, .b-paused { background: var(--warn-soft); color: var(--warn); }
.b-overdue, .b-void, .b-left { background: var(--danger-soft); color: var(--danger); }
.b-no_contribution, .b-inactive { background: #efedf3; color: var(--muted); }
.b-meteor { background: var(--lime-soft); color: #4d6400; }
.b-pkg { background: var(--brand-soft); color: var(--brand-dark); }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input[type=search] { min-width: 220px; flex: 1; max-width: 360px; }
.toolbar .spacer { flex: 1; }
input[type=text], input[type=search], input[type=email], input[type=tel], input[type=number], input[type=date],
input[type=month], input[type=password], input[type=file], select, textarea {
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; background: #fff; width: 100%; min-width: 0;
}
.toolbar select, .toolbar input[type=month], .toolbar input[type=date] { width: auto; }
textarea { resize: vertical; min-height: 70px; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(134, 21, 187, .22); border-color: var(--brand); }
label.f { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.field { margin-bottom: 12px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.fgrid .full { grid-column: 1 / -1; }
.fgrid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 12px; }
@media (max-width: 600px) { .fgrid, .fgrid3 { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); }
fieldset.sec { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px 4px; margin-bottom: 14px; }
fieldset.sec legend { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); padding: 0 6px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* Segmented choice (pakej, cara bayaran) */
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: block; border: 1.5px solid var(--border); border-radius: 10px; padding: 9px 11px; cursor: pointer; background: #fff; height: 100%; }
.choice span b { display: block; font-size: 13.5px; }
.choice span i { display: block; font-style: normal; font-size: 12px; color: var(--muted); }
.choice span em { display: block; font-style: normal; font-weight: 800; color: var(--brand-dark); margin-top: 2px; }
.choice input:checked + span { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 2px rgba(134,21,187,.15); }
.choice input:focus-visible + span { outline: 2px solid var(--brand); }

.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--border); background: #faf9fc; white-space: nowrap; }
table.t td { padding: 10px 12px; border-bottom: 1px solid #f0edf4; vertical-align: top; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: #faf7fd; }
table.t tr.overdue td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
table.t tr.voided td { color: var(--muted); text-decoration: line-through; }
table.t tfoot td { font-weight: 800; border-top: 2px solid var(--border); }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); }

/* Mobile: tables become cards */
@media (max-width: 700px) {
  table.t.cards thead { display: none; }
  table.t.cards, table.t.cards tbody, table.t.cards tr, table.t.cards td { display: block; width: 100%; }
  table.t.cards tr { border-bottom: 1px solid var(--border); padding: 8px 4px; }
  table.t.cards td { border: 0; padding: 2px 10px; }
  table.t.cards td[data-l]::before { content: attr(data-l) ': '; color: var(--muted); font-size: 12px; }
  table.t.cards td.hide-m { display: none; }
  table.t.cards td.num { text-align: left; }
}

dl.info { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; }
dl.info dt { color: var(--muted); font-size: 12.5px; }
dl.info dd { font-weight: 600; word-break: break-word; }
@media (max-width: 500px) { dl.info { grid-template-columns: 1fr; } dl.info dd { margin-bottom: 6px; } }

/* Timeline */
.tl { list-style: none; }
.tl li { position: relative; padding: 0 0 14px 22px; }
.tl li::before { content: ''; position: absolute; left: 5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.tl li::after { content: ''; position: absolute; left: 9px; top: 18px; bottom: 0; width: 1px; background: var(--border); }
.tl li:last-child::after { display: none; }
.tl li.t-whatsapp::before { background: #1faa53; }
.tl li.t-call::before { background: var(--cyan); }
.tl li.t-system::before { background: #b3acc0; }
.tl .meta { font-size: 12px; color: var(--muted); }
.tl .body { white-space: pre-wrap; word-break: break-word; }

/* Student cards on the family page */
.kid { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; display: grid; gap: 6px; }
.kid + .kid { margin-top: 10px; }
.kid .top { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.kid .top b { font-size: 15px; }
.kid .pk { background: #faf9fc; border-radius: 8px; padding: 8px 10px; font-size: 13px; }

/* Bars (dashboard) */
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 60px; gap: 10px; align-items: center; font-size: 13px; }
.bar { height: 10px; background: #efedf3; border-radius: 6px; overflow: hidden; display: flex; }
.bar > span { display: block; height: 100%; background: var(--brand); }
.bar > span.c { background: var(--cyan); }
.bar > span.l { background: var(--lime); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 5px; vertical-align: -1px; }
.cols { display: flex; align-items: flex-end; gap: 14px; height: 150px; padding-top: 10px; }
.cols .c { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; font-size: 11.5px; color: var(--muted); }
.cols .stackbar { width: 100%; max-width: 46px; display: flex; flex-direction: column-reverse; border-radius: 6px 6px 0 0; overflow: hidden; }
.cols .stackbar span { display: block; }

.callout { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--radius);
  background: linear-gradient(100deg, var(--brand-soft), #fff); border: 1px solid #e5d3f2; margin-bottom: 16px; }
.callout b { color: var(--brand-dark); }
.callout .btns { margin-left: auto; }

/* Modal & toast */
.modal-bg { position: fixed; inset: 0; background: rgba(20, 10, 35, .45); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 5vh 12px; overflow-y: auto; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 640px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.modal.sm { max-width: 440px; }
.modal.lg { max-width: 860px; }
.modal-h { padding: 16px 18px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-h h3 { font-size: 16px; font-weight: 800; }
.modal-h button { background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--muted); line-height: 1; }
.modal-b { padding: 18px; }
.modal-f { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }
.err { background: var(--danger-soft); color: var(--danger); padding: 8px 12px; border-radius: 8px; margin-bottom: 12px; font-weight: 600; }
.note-box { background: var(--lime-soft); border: 1px solid #e3f0b4; padding: 10px 12px; border-radius: 8px; font-size: 13px; }
.warn-box { background: var(--warn-soft); border: 1px solid #f3d7a6; padding: 10px 12px; border-radius: 8px; font-size: 13px; }
.secret { font-family: ui-monospace, Consolas, monospace; font-size: 18px; background: #f5f3f8; padding: 10px 14px; border-radius: 8px; letter-spacing: 1px; user-select: all; }

#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; }
#toast div { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.2); font-weight: 600; }
#toast div.bad { background: var(--danger); }

.loading { padding: 40px; text-align: center; color: var(--muted); }
.page-h { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-h h2 { font-size: 20px; line-height: 1.25; font-weight: 800; }
.page-h .sub { color: var(--muted); font-size: 13px; }
.page-h .btns { margin-left: auto; }
.back { display: inline-block; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 14px; flex-wrap: wrap; }
.tabs a { padding: 8px 12px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; }
.tabs a.on { color: var(--brand); border-color: var(--brand); }
.tabs a .n { font-size: 11px; background: #efedf3; border-radius: 10px; padding: 0 6px; margin-left: 4px; }

/* ---------- Phones, tablets, touch ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: rgba(134, 21, 187, .12); }
a, button, select, label, tr.click, [data-go] { touch-action: manipulation; }
@media (max-width: 900px) {
  input[type=text], input[type=search], input[type=email], input[type=tel], input[type=number], input[type=date],
  input[type=month], input[type=password], select, textarea { font-size: 16px; }
  .topbar { padding-top: max(10px, env(safe-area-inset-top)); padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .content { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
}
@media (pointer: coarse) {
  .btn { min-height: 44px; }
  .btn.sm { min-height: 38px; padding: 6px 12px; }
  .check input { width: 20px; height: 20px; }
}
@media (max-width: 600px) {
  .modal-bg { padding: 0; align-items: flex-end; }
  .modal { border-radius: 16px 16px 0 0; max-height: 94vh; display: flex; flex-direction: column; }
  .modal-b { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .modal-f { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .modal-f .btn { flex: 1; }
  .page-h h2 { font-size: 18px; }
  .bar-row { grid-template-columns: 90px 1fr 44px; }
}

/* Login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
  background:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 26px 26px,
    radial-gradient(circle at 80% 10%, rgba(41,197,217,.35), transparent 40%),
    linear-gradient(160deg, var(--ink), #3a1560 60%, var(--brand)); }
.login { background: #fff; border-radius: 16px; width: 100%; max-width: 380px; padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.3); border-top: 4px solid var(--lime); }
.login img { width: 84px; display: block; margin: 0 auto 8px; }
.login h1 { text-align: center; font-size: 20px; font-weight: 800; }
.login p.sub { text-align: center; color: var(--muted); margin-bottom: 18px; font-size: 13px; }
.login .btn { width: 100%; padding: 10px; }

/* ---------- Bengkel & program ---------- */
.bk-link { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.bk-qr { width: 120px; height: 120px; padding: 4px; background: #fff; border: 1px solid var(--border); border-radius: 10px; flex: none; display: grid; place-items: center; font-size: 11px; color: var(--muted); }
.bk-qr img, .bk-qr canvas { width: 110px !important; height: 110px !important; }
.bk-bar { height: 8px; border-radius: 10px; background: #efedf3; overflow: hidden; margin-top: 8px; }
.bk-bar span { display: block; height: 100%; background: var(--brand); border-radius: 10px; }
.bk-q { border: 1px dashed var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: #fbfaff; }
.bk-receipt { max-height: 420px; max-width: 100%; border: 1px solid var(--border); border-radius: 10px; display: block; }
.bk-att { display: grid; gap: 8px; }
.bk-att-i { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; color: inherit; }
.bk-att-i:hover { border-color: var(--brand); }
.bk-att-i .tick { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; color: transparent; font-weight: 800; }
.bk-att-i .nm { flex: 1; display: flex; flex-direction: column; }
.bk-att-i .nm small { color: var(--muted); }
.bk-att-i.on { background: var(--good-soft); border-color: var(--good); }
.bk-att-i.on .tick { background: var(--good); border-color: var(--good); color: #fff; }

/* Visible keyboard focus everywhere (mouse clicks don't show it). */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sidebar :focus-visible { outline-color: var(--lime); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Links inside running text are underlined, so they don't rely on colour alone (WCAG 1.4.1). */
.muted a, .small a, p a, dd a, .hint a { text-decoration: underline; }

/* Show / hide password (assets/pw-toggle.js) */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 46px; }
.pw-eye { position: absolute; top: 0; right: 0; height: 100%; min-width: 44px; display: flex; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--muted); cursor: pointer; border-radius: 0 8px 8px 0; }
.pw-eye:hover { color: var(--brand); }
.pw-eye:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
input::-ms-reveal, input::-ms-clear { display: none; } /* Edge's own eye would double up */

/* Staff information form (maklumat-staf.html) */
.login.wide { max-width: 720px; text-align: left; }
.login.wide h1, .login.wide p.sub { text-align: center; }
.file-prev { display: flex; gap: 8px; align-items: center; margin-top: 6px; font-size: 12px; color: var(--muted); word-break: break-all; }
.file-prev img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.staff-photo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--brand-soft); flex: none; }
.staff-cell { display: flex; gap: 10px; align-items: center; }
.doc-list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.doc-item { border: 1px solid var(--border); border-radius: 10px; padding: 8px; display: grid; gap: 6px; text-decoration: none !important; color: var(--text); font-size: 12.5px; }
.doc-item img { width: 100%; height: 100px; object-fit: cover; border-radius: 6px; background: var(--bg); }
.doc-item .pdf { height: 100px; display: flex; align-items: center; justify-content: center; background: var(--danger-soft); color: var(--danger); font-weight: 800; border-radius: 6px; }
