.nav-group { min-width:0; }
.nav-group summary { display:flex; align-items:center; gap:10px; padding:10px; min-height:40px; cursor:pointer; list-style:none; }
.nav-group summary::-webkit-details-marker { display:none; }
.nav-group summary span { flex:1; }
.nav-group[open] summary .ui-icon:last-child { transform:rotate(90deg); }
.nav-group > div { display:grid; gap:4px; padding-inline-start:12px; }
.nav-group > div > button { width:100%; }
.desktop-account { align-items:center; gap:8px; }
.notification-button { position:relative; }
.notification-count { position:absolute; top:5px; right:5px; width:9px; height:9px; border:2px solid var(--panel,#fff); border-radius:50%; background:#22c55e; box-sizing:content-box; }
.notification-count[hidden] { display:none; }
.table .account-row-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.table .account-row-actions > button { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:38px; white-space:nowrap; }
.nav-group summary:focus-visible { outline:2px solid currentColor; outline-offset:-2px; }
.employee-delete-options { display:grid; gap:8px; }
.employee-delete-options label { display:flex; align-items:center; gap:10px; }
.modal .employee-delete-options label + label { margin-top:0; }
.employee-delete-options input[type="radio"] { width:18px; height:18px; flex:0 0 18px; margin:0; }
[data-confirm-removal][hidden] { display:none; }
.removal-backup-note { margin:10px 0; color:var(--muted); }
.modal .primary.danger-action { background:#b4232a; border-color:#b4232a; color:#fff; }
.pdf-preview { box-sizing:border-box; width:min(960px,calc(100% - 24px)); max-height:calc(100dvh - 24px); margin:auto; padding:16px; }
.pdf-preview::backdrop { background:rgba(7,21,44,.7); }
.pdf-preview .pdf-document { margin:12px 0 0; }
.pdf-preview iframe { display:block; width:100%; height:min(72dvh,820px); border:1px solid #dbe5ef; border-radius:8px; }
.pdf-preview .actions { margin-top:10px; }
.pdf-preview [hidden] { display:none; }
.side .official-brand {
  margin:-24px -16px 18px;
  padding:16px;
  background:#fff;
  border-bottom:1px solid #e0eaf7;
}
.mobile-header:has(.official-brand) { background:#fff; color:#091c38; }
.mobile-header:has(.official-brand) .icon-button { color:#091c38; }
.preview-evidence { display:block; max-width:100%; max-height:55vh; border-radius:10px; object-fit:contain; }
.preview-company-logo { display:block; max-width:min(180px,100%); max-height:100px; object-fit:contain; }
.preview-details { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.preview-details dt { color:var(--muted); }
.preview-details dd { margin:4px 0 0; overflow-wrap:anywhere; }
.preview-text { white-space:pre-wrap; overflow-wrap:anywhere; }
.holiday-preview-controls { display:flex; flex-wrap:wrap; align-items:end; gap:8px; margin-bottom:16px; }
.preview-calendar { width:100%; table-layout:fixed; border-collapse:separate; border-spacing:3px; text-align:center; }
.preview-calendar th,.preview-calendar td { padding:8px 0; }
.preview-calendar .calendar-holiday { border-radius:8px; background:#dbeafe; color:#173d78; font-weight:700; }
.preview-calendar .sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
@media (max-width:470px) { .preview-details { grid-template-columns:1fr; } }

.payroll-section{border:1px solid #dce5ef;border-radius:12px;padding:16px;background:var(--panel,#fff);min-width:0;display:grid;gap:12px}.payroll-section h3{margin:0;font-size:15px}.payroll-section-fields{margin:0;gap:12px}.payroll-section-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding-top:10px;border-top:1px solid #dce5ef}.payroll-section-footer div{font-size:13px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.payroll-section-footer strong{font-variant-numeric:tabular-nums}.payroll-section [data-component]{margin-top:8px}.payroll-section [data-components]:empty{display:none}@media(max-width:540px){.payroll-section{padding:12px}.payroll-section-fields{grid-template-columns:1fr}.payroll-section-footer{align-items:flex-start;flex-direction:column}}

/* Header, live clock, account profile and unified notices. */
.topbar{min-height:66px;align-items:center;margin-bottom:22px}.page-heading{min-width:0;flex:1}.page-heading h1{margin:0;line-height:1.2}.topbar .live-clock{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:7px 0 0;line-height:1.45}.live-clock time{color:inherit;font:inherit;white-space:nowrap}.clock-separator{color:#9aaabd}.desktop-account{flex-shrink:0}.notification-button .ui-icon{transform-origin:50% 15%}.notification-button.bell-ring .ui-icon{animation:absolBell 1.8s ease-in-out infinite}@keyframes absolBell{0%,54%,100%{transform:rotate(0)}8%,24%,40%{transform:rotate(15deg)}16%,32%,48%{transform:rotate(-15deg)}}@media(prefers-reduced-motion:reduce){.notification-button.bell-ring .ui-icon{animation:none}}
.profile-panel{width:min(440px,calc(100vw - 24px));box-sizing:border-box;padding:22px!important}.profile-summary{padding:20px 0!important;text-align:center;gap:5px!important}.profile-avatar-wrap{position:relative;display:inline-flex;margin-bottom:8px}.profile-avatar-wrap .avatar{margin:0!important;width:88px!important;height:88px!important;flex-basis:88px!important;overflow:hidden}.profile-avatar-wrap .avatar img{width:100%;height:100%;object-fit:cover}.profile-camera{position:absolute;right:-5px;bottom:-3px;display:grid;place-items:center;width:34px;height:34px;min-width:34px;padding:0!important;border:3px solid #fff!important;border-radius:50%!important;background:#2563eb!important;color:white!important}.profile-camera .ui-icon{width:17px;height:17px}.profile-upload{display:grid;gap:9px;padding:12px 0 16px;border-top:1px solid var(--line,#dce5ef)}.profile-upload input[hidden]{display:none}.profile-upload>button{width:100%}.profile-upload>small{font-size:12px;overflow-wrap:anywhere}.profile-upload>small:empty,.profile-upload>.error:empty{display:none}.profile-upload .actions{display:flex;justify-content:flex-end;gap:8px;margin:4px 0 0}.profile-upload .actions button{min-height:40px}.profile-account-actions{display:grid;gap:8px;border-top:1px solid var(--line,#dce5ef);padding-top:15px}.profile-account-actions button{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;text-align:left}.profile-account-actions button span{flex:1}.profile-account-actions .ui-icon{width:18px;height:18px;flex-shrink:0}
.notice-panel>.row{margin-bottom:16px;flex-wrap:wrap}.notice-feed{display:grid;gap:0}.notice-item{display:flex;align-items:flex-start;gap:12px;padding:15px 10px;border-bottom:1px solid var(--line,#dce5ef);min-width:0}.notice-item:last-child{border-bottom:0}.notice-item.unread{background:#f2f8f5;border-radius:10px}.notice-icon{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:10px;background:#e9f0fa;color:#244d8a}.notice-body{flex:1;min-width:0;overflow-wrap:anywhere}.notice-body b{display:block;line-height:1.4}.notice-body p{white-space:pre-wrap;margin:5px 0;line-height:1.55}.notice-body small{display:block;color:var(--muted);margin-top:5px}.notice-dot{width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#22c55e;margin:8px 2px 0}.notice-manage{margin-top:20px;border-top:1px solid var(--line,#dce5ef);padding-top:14px}.notice-manage summary{font-weight:600;cursor:pointer;padding:8px 0}.notice-manage-row{display:flex;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid var(--line,#dce5ef);flex-wrap:wrap}.notice-manage-row>div{flex:1;min-width:140px;overflow-wrap:anywhere}.notice-manage-row small{display:block;color:var(--muted);margin-top:3px}.slip-date-list{display:grid;gap:5px;margin:10px 0;font-size:12px}.slip-date-list div{display:flex;justify-content:space-between;gap:12px}.slip-date-list dt{color:var(--muted)}.slip-date-list dd{margin:0;text-align:right;font-weight:600}
@media(max-width:900px){.topbar{min-height:0;margin:0 0 18px}.topbar .live-clock{font-size:12px;gap:6px}.page-heading h1{font-size:25px}.profile-panel{padding:18px!important}}@media(max-width:360px){.live-clock .clock-separator{display:none}.live-clock time{flex-basis:100%}.notice-item{gap:8px;padding:12px 5px}.notice-icon{width:32px;height:32px;flex-basis:32px}}

/* Mobile logo keeps original asset, with available width and no clipping. */
@media(max-width:900px){.mobile-header{gap:8px;padding-inline:12px}.mobile-header .official-brand{flex:1 1 auto;min-width:0;max-width:220px;padding:0!important;margin:0!important;display:flex;align-items:center}.mobile-header .official-brand img{width:100%;max-width:180px;max-height:64px;height:auto;object-fit:contain;object-position:left center;border-radius:0}.header-tools{gap:5px}.header-tools .icon-button,.header-tools .avatar-button{min-width:38px;min-height:40px}.drawer-head .official-brand{flex:1;min-width:0}.drawer-head .official-brand img{max-width:min(190px,100%);height:auto}}@media(max-width:360px){.mobile-header{padding-inline:8px;gap:4px}.header-tools{gap:2px}.header-tools .icon-button,.header-tools .avatar-button{min-width:34px}.mobile-header .official-brand img{max-height:52px}}
.idle-warning{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);z-index:9999;width:min(480px,calc(100vw - 24px));box-sizing:border-box;background:var(--panel,#fff);border:1px solid var(--line,#dce5ef);box-shadow:0 6px 30px #0003;border-radius:12px;padding:14px;display:flex;align-items:center;gap:12px;font-size:13px}.idle-warning span{flex:1}.idle-warning button{flex-shrink:0}.notice-link{display:inline-flex;align-items:center;gap:4px;margin:7px 0 0;padding:5px 8px;font-size:12px}.notice-link .ui-icon{width:14px;height:14px}

/* Four grouped dashboard cards, without changing employee dashboard. */
.compact-dashboard-stats{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:14px}
.compact-stat{display:flex;flex-direction:column;min-width:0;padding:16px 18px}
.compact-stat .stat-head small{line-height:1.35;overflow-wrap:anywhere}
.compact-stat .compact-stat-value{margin-top:8px;margin-bottom:12px;font-size:32px}
.compact-stat-details{display:grid;gap:7px;border-top:1px solid var(--line,#dce5ef);padding-top:10px;margin:0;flex:1;align-content:start}
.compact-stat-details>div{display:flex;justify-content:space-between;align-items:baseline;gap:7px;min-width:0}
.compact-stat-details dt{font-size:12px;line-height:1.4;color:var(--muted);overflow-wrap:anywhere}
.compact-stat-details dd{margin:0;font-weight:700;font-size:13px;line-height:1.4;font-variant-numeric:tabular-nums;flex-shrink:0}
.compact-stat-details dd.stat-warning{color:#b76b18}
@media(prefers-color-scheme:dark){.compact-stat-details dd.stat-warning{color:#ffc479}}
@media(max-width:1150px) and (min-width:901px){.compact-dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.compact-dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.compact-stat{padding:12px}.compact-stat .compact-stat-value{font-size:28px;margin-bottom:10px}.compact-stat-details{gap:6px}.compact-stat-details dt{font-size:11px}.compact-stat-details dd{font-size:12px}}
@media(max-width:360px){.compact-stat{padding:10px}.compact-stat .stat-head{gap:4px}.compact-stat .stat-icon{width:27px;height:27px;flex-basis:27px}.compact-stat .stat-head small{font-size:11px}.compact-stat-details dt{font-size:10px}}
