/* HRM Leave & Attendance page — page-specific widgets. After styles.css + marketing.css. LIGHT. */

/* ── Hero: attendance clock + who's-in ─────────────────────────── */
.att { display: grid; grid-template-columns: 1.1fr 1fr; }
.att__clock { padding: 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.att__state { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; color: var(--ink); }
.att__dot { width: 10px; height: 10px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,.15); }
.att__dot--break { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.15); animation: attpulse 1.6s ease-in-out infinite; }
@keyframes attpulse { 50% { box-shadow: 0 0 0 7px rgba(245,158,11,.08); } }
.att__timer { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 42px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.att__since { font-size: 12.5px; color: var(--muted); }
.att__btns { display: flex; gap: 10px; }
.att__btn { flex: 1; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 700; text-align: center; white-space: nowrap; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.att__btn--out { background: var(--ink); color: #fff; border-color: transparent; }
.att__btn--brk { border-color: rgba(245,158,11,.5); color: #b45309; background: rgba(245,158,11,.08); }
.att__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.att__chip { font-size: 11.5px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 10px; background: var(--surface-2); }
.att__who { padding: 18px 20px; background: var(--surface-2); }
.att__whohead { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.att__row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.att__row:last-child { border-bottom: 0; }
.att__av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--grad); flex: none; }
.att__name { flex: 1; color: var(--ink); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.att__st { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.att__st i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.att__st--in i { background: #10b981; }
.att__st--brk i { background: #f59e0b; }
.att__st--out i { background: #94a3b8; }

/* ── Leave balances visual ─────────────────────────────────────── */
.lvb { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.lvb__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lvb__card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 14px; }
.lvb__type { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.lvb__type i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.lvb__num { font-size: 24px; font-weight: 800; color: var(--ink); margin-top: 4px; }
.lvb__num span { font-size: 13px; font-weight: 500; color: var(--muted); }
.lvb__note { font-size: 11px; color: var(--muted); margin-top: 2px; }
.lvb__wait { display: grid; place-items: center; text-align: center; font-size: 12.5px; font-weight: 600; color: #b45309; }
.lvb__req { border: 1px solid rgba(20,184,166,.35); border-radius: 12px; background: rgba(20,184,166,.06); padding: 13px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.lvb__req b { color: var(--ink); }
.lvb__days { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; color: var(--muted); }
.lvb__submit { padding: 7px 14px; border-radius: 9px; background: var(--grad); color: #fff; font-weight: 700; font-size: 12.5px; white-space: nowrap; }

/* ── Approvals visual ──────────────────────────────────────────── */
.apr { padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.apr__row { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 12px 14px; font-size: 13px; }
.apr__who { flex: 1; min-width: 0; }
.apr__who b { display: block; color: var(--ink); }
.apr__who span { font-size: 11.5px; color: var(--muted); }
.apr__pill { font-size: 11px; font-weight: 700; color: #fff; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.apr__act { display: flex; gap: 6px; }
.apr__ok, .apr__no { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 14px; font-weight: 800; border: 1px solid var(--line); }
.apr__ok { color: #059669; background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.35); }
.apr__no { color: #e11d48; background: rgba(225,29,72,.07); border-color: rgba(225,29,72,.3); }
.apr__done { font-size: 11.5px; font-weight: 700; color: #059669; display: flex; align-items: center; gap: 5px; white-space: nowrap; }

/* ── Phone frame (erp-hrm mobile app) ──────────────────────────── */
.phwrap { display: flex; justify-content: center; }
.ph { width: 292px; border-radius: 42px; background: #0e1116; padding: 12px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.06) inset; }
.ph__screen { border-radius: 32px; background: var(--surface); overflow: hidden; display: flex; flex-direction: column; min-height: 520px; }
.ph__notch { height: 26px; display: grid; place-items: center; }
.ph__notch i { width: 86px; height: 20px; border-radius: 999px; background: #0e1116; display: block; }
.ph__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 10px; border-bottom: 1px solid var(--line-2); }
.ph__brand { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; color: var(--ink); }
.ph__logo { width: 22px; height: 22px; border-radius: 7px; background: var(--grad); display: grid; place-items: center; font-size: 11px; color: #fff; }
.ph__tenant { font-size: 10.5px; color: var(--muted); }
.ph__body { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--surface-2); }
.ph__card { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 14px; }
.ph__timer { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 30px; color: var(--ink); margin: 6px 0 2px; }
.ph__cta { margin-top: 10px; display: block; text-align: center; padding: 11px; border-radius: 11px; background: var(--grad); color: #fff; font-weight: 800; font-size: 13.5px; }
.ph__cta--ghost { background: var(--surface); color: #b45309; border: 1px solid rgba(245,158,11,.5); margin-top: 8px; font-weight: 700; }
.ph__tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); background: var(--surface); }
.ph__tab { padding: 10px 4px 12px; text-align: center; font-size: 10px; font-weight: 700; color: var(--muted); }
.ph__tab i { display: block; font-size: 17px; font-style: normal; margin-bottom: 2px; }
.ph__tab--on { color: var(--brand); }

/* ── Colors shared by pills/dots ───────────────────────────────── */
.c-emerald { background: #10b981; } .c-sky { background: #0ea5e9; } .c-amber { background: #f59e0b; } .c-rose { background: #f43f5e; }

@media (max-width: 760px) {
  .att { grid-template-columns: 1fr; }
  .att__clock { border-right: 0; border-bottom: 1px solid var(--line); }
  .lvb__cards { grid-template-columns: 1fr; }
}
