/* ============================================================================
ATTENDLIVE v12 (ENTERPRISE MULTI-ORG SAAS) — COMPLETE RESPONSIVE STYLESHEET
FILE: public/style.css

Architecture:
- Tier 1 (< 768px): Mobile-First Compact Base (100% Crisp Mobile UX)
- Tier 2 (768px - 1199px): Tablet & Small Laptop Scaling
- Tier 3 (1200px - 1535px): Standard Laptop / PC Office Readability
- Tier 4 (1536px+): Large Desktop / 2K Monitor Executive Readability
- 3-Width PC System: 720px Forms | 1040px Calendar | 1520px Full Analytics
============================================================================ */

:root {
/* Palette & Design Tokens */
--bg: #F1F5F9;
--sur: #FFFFFF;
--sur2: #F8FAFC;
--bor: #E2E8F0;
--bor2: #CBD5E1;
--acc: #1D4ED8;
--acc2: #4F46E5;
--accl: #EFF6FF;
--accg: rgba(29, 78, 216, 0.16);
--ok: #059669;
--okl: #ECFDF5;
--wn: #D97706;
--wnl: #FFFBEB;
--rd: #DC2626;
--rdl: #FEF2F2;
--pu: #7C3AED;
--pul: #F5F3FF;
--tl: #0D9488;
--tll: #F0FDFA;
--today: #EA580C;
--todayl: #FFF7ED;
--todayg: rgba(234, 88, 12, 0.28);
--navy: #0F172A;
--tx: #0F172A;
--tx2: #475569;
--tx3: #64748B;
--sh: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 14px rgba(15, 23, 42, 0.04);
--sh2: 0 14px 36px rgba(15, 23, 42, 0.20);
--r: 14px;
--rs: 10px;

/* Tier 1: Mobile-First Typography Variables (Untouched Perfect Mobile Look) */
--fs-body: 14px;
--fs-nav: 12.5px;
--fs-subtab: 12px;
--fs-btn: 13px;
--fs-btn-sm: 12.2px;
--fs-btn-xs: 11.2px;
--fs-filter: 12.5px;
--fs-label: 10.8px;
--fs-th: 10.5px;
--fs-td: 12.2px;
--fs-kpi-lbl: 10px;
--fs-kpi-sub: 10.5px;
--fs-badge: 10.5px;
--fs-cal-day: 10px;
--fs-cal-tm: 8.4px;
--fs-cal-tag: 7.6px;
--fs-card-kv: 12.2px;
--pad-td: 8px 8px;
--pad-th: 9px 8px;
}

/* Tier 2: Tablet & Small Screen (768px - 1199px) */
@media (min-width: 768px) {
:root {
--fs-body: 14.5px;
--fs-subtab: 13px;
--fs-btn: 13.5px;
--fs-btn-sm: 13px;
--fs-filter: 13px;
--fs-label: 11.5px;
--fs-th: 11.2px;
--fs-td: 13px;
--fs-kpi-lbl: 11px;
--fs-kpi-sub: 11.5px;
--fs-badge: 11.2px;
--fs-cal-day: 12.5px;
--fs-cal-tm: 10.5px;
--fs-cal-tag: 9.8px;
--fs-card-kv: 13px;
--pad-td: 9px 9px;
--pad-th: 10px 9px;
}
}

/* Tier 3: Standard Laptop / PC (1200px - 1535px) */
@media (min-width: 1200px) {
:root {
--fs-body: 15px;
--fs-nav: 13.8px;
--fs-subtab: 13.5px;
--fs-btn: 14px;
--fs-btn-sm: 13.5px;
--fs-btn-xs: 12.2px;
--fs-filter: 13.8px;
--fs-label: 12px;
--fs-th: 12px;
--fs-td: 13.8px;
--fs-kpi-lbl: 11.8px;
--fs-kpi-sub: 12px;
--fs-badge: 11.8px;
--fs-cal-day: 14px;
--fs-cal-tm: 11.8px;
--fs-cal-tag: 10.8px;
--fs-card-kv: 13.6px;
--pad-td: 10px 10px;
--pad-th: 11px 10px;
}
}

/* Tier 4: Large Desktop / 2K Monitor (1536px+) */
@media (min-width: 1536px) {
:root {
--fs-body: 15.5px;
--fs-nav: 14.5px;
--fs-subtab: 14px;
--fs-btn: 14.5px;
--fs-btn-sm: 14px;
--fs-btn-xs: 12.8px;
--fs-filter: 14.2px;
--fs-label: 12.5px;
--fs-th: 12.6px;
--fs-td: 14.4px;
--fs-kpi-lbl: 12.4px;
--fs-kpi-sub: 12.6px;
--fs-badge: 12.2px;
--fs-cal-day: 15px;
--fs-cal-tm: 12.6px;
--fs-cal-tag: 11.5px;
--fs-card-kv: 14.2px;
--pad-td: 11px 11px;
--pad-th: 12px 11px;
}
}

/* ============================================================================
BASE & RESET
============================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
height: auto;
overflow-y: auto;
overflow-x: clip;
-webkit-overflow-scrolling: touch;
background: #0F172A;
}
body {
min-height: 100vh;
height: auto;
overflow-x: clip;
overflow-y: visible;
font-family: 'Inter', system-ui, -apple-system, sans-serif;
background: #0F172A;
color: var(--tx);
font-size: var(--fs-body);
line-height: 1.45;
-webkit-font-smoothing: antialiased;
}
html.app-ready, body.app-ready { background: var(--bg); }
button, input, select, textarea { font-family: inherit; font-size: var(--fs-body); }

/* Responsive Text Visibility Helpers */
.only-mob { display: none; }
@media (max-width: 640px) {
.only-pc { display: none !important; }
.only-mob { display: inline !important; }
}

/* Text Copy Protection (Per Organization or Demo) */
body.nocopy-active, body.nocopy-active *:not(input):not(textarea):not(select) {
-webkit-user-select: none !important;
-moz-user-select: none !important;
-ms-user-select: none !important;
user-select: none !important;
-webkit-touch-callout: none !important;
}

/* ============================================================================
DARK BOOT SPLASH (ZERO WHITE FLASH)
============================================================================ */
.boot-wrap {
position: fixed;
inset: 0;
z-index: 95;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 12px;
background: radial-gradient(circle at top, #1E293B 0%, #0F172A 72%);
color: #F8FAFC;
transition: opacity 0.2s ease;
}
.boot-wrap.hide { opacity: 0; pointer-events: none; }
.boot-ring {
width: 30px;
height: 30px;
border: 3px solid rgba(255, 255, 255, 0.16);
border-top-color: #60A5FA;
border-radius: 50%;
animation: spin 0.55s linear infinite;
}
.boot-title {
font-family: 'Plus Jakarta Sans', sans-serif;
font-size: 22px;
font-weight: 800;
letter-spacing: -0.3px;
color: #F8FAFC;
}
.boot-sub { font-size: 12.5px; color: #94A3B8; font-weight: 600; min-height: 16px; }

/* ============================================================================
LOGIN, MULTI-ORG SIGNUP & HIDDEN /ADMIN OTP PORTAL
============================================================================ */
.login-wrap {
min-height: 100dvh;
display: none;
align-items: center;
justify-content: center;
padding: 16px;
background: radial-gradient(circle at top right, #DBEAFE 0%, #F1F5F9 58%);
}
.login-wrap.admin-bg { background: radial-gradient(circle at top, #1E293B 0%, #0F172A 72%); }
.login-card {
background: var(--sur);
border: 1px solid var(--bor);
border-radius: 22px;
padding: 26px 22px;
width: 100%;
max-width: 460px;
box-shadow: var(--sh2);
}
.brand-badge {
width: 56px;
height: 56px;
border-radius: 15px;
background: linear-gradient(135deg, #2563EB, #4F46E5);
display: flex;
align-items: center;
justify-content: center;
color: #fff;
margin: 0 auto 11px;
box-shadow: 0 10px 26px rgba(37, 99, 235, 0.36);
overflow: hidden;
}
.brand-badge img, .h-logo-i img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.l-title {
font-family: 'Plus Jakarta Sans', sans-serif;
font-size: clamp(20px, 2.2vw, 24px);
font-weight: 800;
text-align: center;
letter-spacing: -0.3px;
}
.l-sub { font-size: 12.8px; color: var(--tx2); text-align: center; margin: 4px 0 16px; }
.l-err {
display: none;
background: var(--rdl);
color: var(--rd);
border: 1px solid #FECACA;
border-radius: var(--rs);
padding: 10px 12px;
font-size: 12.8px;
font-weight: 600;
margin-bottom: 13px;
line-height: 1.45;
}
.l-err.show { display: block; }
.l-info {
display: none;
background: var(--accl);
color: var(--acc);
border: 1px solid #BFDBFE;
border-radius: var(--rs);
padding: 10px 12px;
font-size: 12.8px;
font-weight: 600;
margin-bottom: 13px;
line-height: 1.45;
}
.l-info.show { display: block; }
.otp-inp {
letter-spacing: 8px;
font-size: 22px !important;
font-weight: 800;
text-align: center;
font-family: monospace;
padding: 12px !important;
}
.admin-badge {
display: inline-flex;
align-items: center;
gap: 5px;
background: #FEF2F2;
color: #B91C1C;
border: 1px solid #FECACA;
padding: 4px 10px;
border-radius: 20px;
font-size: 11.5px;
font-weight: 800;
margin: 0 auto 10px;
}
.auth-tabs {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 6px;
background: var(--sur2);
padding: 4px;
border-radius: 11px;
border: 1px solid var(--bor);
margin-bottom: 15px;
}
.auth-tab {
padding: 8.5px 10px;
border: none;
border-radius: 8px;
background: transparent;
color: var(--tx2);
font-weight: 700;
font-size: 13px;
cursor: pointer;
transition: all 0.14s;
}
.auth-tab.active { background: #fff; color: var(--acc); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08); }

/* ============================================================================
FORM CONTROLS & BUTTONS
============================================================================ */
.fld { display: flex; flex-direction: column; gap: 4px; margin-bottom: 11px; min-width: 0; }
.fld label {
font-size: var(--fs-label);
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.32px;
color: var(--tx2);
}
.inp, .sel, .ta {
width: 100%;
max-width: 100%;
background: var(--sur2);
border: 1.5px solid var(--bor);
border-radius: var(--rs);
padding: 8.5px 11px;
color: var(--tx);
outline: none;
transition: border-color 0.15s, box-shadow 0.15s;
}
.inp:focus, .sel:focus, .ta:focus {
border-color: var(--acc);
box-shadow: 0 0 0 3px var(--accg);
background: #fff;
}
.inp[readonly], .sel[disabled] {
background: #EEF2FF;
color: #1D4ED8;
font-weight: 700;
border-color: #BFDBFE;
cursor: not-allowed;
}
.ta { resize: vertical; min-height: 70px; }
.pwd-box { position: relative; display: flex; align-items: center; }
.pwd-box .inp { padding-right: 42px; }
.pwd-eye {
position: absolute;
right: 7px;
top: 50%;
transform: translateY(-50%);
background: none;
border: none;
cursor: pointer;
color: var(--tx3);
padding: 5px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 6px;
}
.pwd-eye:hover { color: var(--acc); background: var(--accl); }

.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 8.5px 14px;
border-radius: var(--rs);
font-size: var(--fs-btn);
font-weight: 700;
cursor: pointer;
border: none;
transition: all 0.15s;
position: relative;
white-space: nowrap;
user-select: none;
max-width: 100%;
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.52; cursor: not-allowed; }
.btn-p { background: linear-gradient(135deg, #2563EB, #4F46E5); color: #fff; box-shadow: 0 4px 12px var(--accg); }
.btn-p:hover:not(:disabled) { filter: brightness(1.06); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-ok:hover:not(:disabled) { filter: brightness(1.06); }
.btn-s { background: #FFFFFF; color: var(--tx); border: 1.5px solid var(--bor); }
.btn-s:hover:not(:disabled) { background: var(--sur2); border-color: var(--acc); color: var(--acc); }
.btn-wn { background: var(--wnl); color: var(--wn); border: 1px solid #FDE68A; }
.btn-wn:hover:not(:disabled) { background: var(--wn); color: #fff; }
.btn-d { background: var(--rdl); color: var(--rd); border: 1px solid #FECACA; }
.btn-d:hover:not(:disabled) { background: var(--rd); color: #fff; }
.btn-dark { background: #0F172A; color: #fff; }
.btn-dark:hover:not(:disabled) { background: #1E293B; }
.btn-tl { background: var(--tll); color: var(--tl); border: 1px solid #99F6E4; }
.btn-tl:hover:not(:disabled) { background: var(--tl); color: #fff; }
.btn-sm { padding: 7.5px 12px; font-size: var(--fs-btn-sm); }
.btn-xs { padding: 5px 8.5px; font-size: var(--fs-btn-xs); border-radius: 8px; }
.btn-loading { color: transparent !important; pointer-events: none; }
.btn-loading::after {
content: "";
position: absolute;
width: 16px;
height: 16px;
top: 50%;
left: 50%;
margin: -8px 0 0 -8px;
border: 2.2px solid rgba(255, 255, 255, 0.35);
border-top-color: #fff;
border-radius: 50%;
animation: spin 0.55s linear infinite;
}
.btn-s.btn-loading::after, .btn-wn.btn-loading::after, .btn-d.btn-loading::after, .btn-tl.btn-loading::after {
border-color: rgba(15, 23, 42, 0.2);
border-top-color: var(--acc);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Red Blinking Alerts */
.blink-red-alert {
background: #DC2626 !important;
color: #FFFFFF !important;
border-color: #991B1B !important;
animation: redAlertPulse 0.95s ease-in-out infinite !important;
}
@keyframes redAlertPulse {
0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.75); background: #DC2626; transform: scale(1); }
50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.18); background: #EF4444; transform: scale(1.06); }
}

/* ============================================================================
HEADER, NAVIGATION & MOBILE-SAFE SQUARE ADMIN TIMER
============================================================================ */
.app { display: none; flex-direction: column; min-height: 100vh; width: 100%; background: var(--bg); }
.hdr {
position: sticky;
top: 0;
z-index: 220;
background: rgba(255, 255, 255, 0.98);
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--bor);
}
.hdr-in {
max-width: 1520px;
margin: 0 auto;
padding: 8px 12px;
display: flex;
align-items: center;
gap: 8px;
}
.h-logo {
display: flex;
align-items: center;
gap: 8px;
font-family: 'Plus Jakarta Sans', sans-serif;
font-weight: 800;
font-size: clamp(14.5px, 1.3vw, 17px);
letter-spacing: -0.3px;
flex-shrink: 0;
cursor: pointer;
padding: 3px 6px 3px 3px;
border-radius: 10px;
border: none;
background: transparent;
color: var(--tx);
max-width: 210px;
}
.h-logo:hover { background: var(--accl); }
.h-logo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-logo-i {
width: 34px;
height: 34px;
border-radius: 9px;
background: linear-gradient(135deg, #2563EB, #4F46E5);
color: #fff;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
flex-shrink: 0;
font-weight: 800;
font-size: 13px;
}
.nav-pc { display: flex; gap: 3px; margin-left: 4px; flex: 1; overflow-x: auto; }
.nav-pc::-webkit-scrollbar { height: 0; }
.nav-btn {
padding: 7.5px 10.5px;
border-radius: 9px;
border: none;
background: transparent;
color: var(--tx2);
font-weight: 600;
font-size: var(--fs-nav);
cursor: pointer;
white-space: nowrap;
transition: all 0.14s;
}
.nav-btn:hover { background: var(--sur2); color: var(--tx); }
.nav-btn.active { background: var(--accl); color: var(--acc); font-weight: 800; }
.nav-btn.admin-nav-btn { color: #B91C1C; }
.nav-btn.admin-nav-btn.active { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }

.h-right { display: flex; align-items: center; gap: 5px; margin-left: auto; flex-shrink: 0; }
.role-pill {
font-size: 11px;
font-weight: 800;
padding: 3.5px 9px;
border-radius: 20px;
white-space: nowrap;
}
.role-Admin { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.role-DirectorCEO { background: #FCE7F3; color: #BE185D; }
.role-Finance { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.role-HRITAdmin { background: #DBEAFE; color: #1D4ED8; }
.role-SeniorManager { background: #F5F3FF; color: #6D28D9; }
.role-Manager { background: #FEF3C7; color: #B45309; }
.role-Employee { background: #F1F5F9; color: #334155; }
.role-Demo { background: #DBEAFE; color: #1D4ED8; }

/* Square Compact Admin 1-Hour Countdown (Never Pushes Sign Out Off-Screen on Mobile!) */
.admin-timer-pill {
display: none;
align-items: center;
justify-content: center;
flex-direction: column;
font-family: monospace;
font-size: 11px;
font-weight: 800;
padding: 3px 8px;
min-height: 33px;
border-radius: 9px;
background: #0F172A;
color: #FDE68A;
white-space: nowrap;
line-height: 1.05;
flex-shrink: 0;
}
@media (max-width: 560px) {
.hdr-in { padding: 7px 8px; gap: 5px; }
.h-logo { max-width: 138px; gap: 6px; padding: 2px; }
.h-logo-i { width: 30px; height: 30px; }
.h-right { gap: 4px; }
.hdr-icon-btn { width: 31px !important; height: 31px !important; font-size: 14px !important; }
.admin-timer-pill {
width: 34px;
height: 31px;
padding: 2px;
font-size: 9.5px;
border-radius: 8px;
text-align: center;
}
.btn-signout { padding: 5px 7px !important; font-size: 11px !important; }
}

.hdr-icon-btn {
position: relative;
width: 34px;
height: 34px;
border-radius: 9px;
border: 1.5px solid var(--bor);
background: #fff;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 15px;
color: var(--tx);
transition: all 0.14s;
flex-shrink: 0;
}
.hdr-icon-btn:hover { border-color: var(--acc); color: var(--acc); background: var(--accl); }
.bell-badge {
position: absolute;
top: -5px;
right: -5px;
min-width: 18px;
height: 18px;
padding: 0 4px;
border-radius: 10px;
background: #0F172A;
color: #fff;
font-size: 10px;
font-weight: 800;
display: none;
align-items: center;
justify-content: center;
border: 1.5px solid #fff;
}

.mob-nav-bar { display: none; padding: 0 10px 8px; max-width: 1520px; margin: 0 auto; }
.mob-nav-wrap { display: flex; flex-direction: column; gap: 4px; }
.mob-sel-box { position: relative; width: 100%; display: flex; align-items: center; }
.mob-nav-sel {
width: 100%;
appearance: none;
-webkit-appearance: none;
background: var(--accl);
color: var(--acc);
border: 2px solid #93C5FD;
border-radius: 11px;
padding: 8.5px 42px 8.5px 12px;
font-weight: 800;
font-size: 13.5px;
line-height: 1.25;
outline: none;
cursor: pointer;
}
.mob-nav-arrow {
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%);
pointer-events: none;
color: var(--acc);
font-weight: 900;
font-size: 14px;
}
.mob-nav-cue {
display: none;
font-size: 11px;
font-weight: 800;
color: #EA580C;
text-align: center;
}
.mob-nav-wrap.menu-blink .mob-nav-sel {
border-color: #EA580C;
background: #FFF7ED;
color: #C2410C;
animation: menuAttention 1.05s ease-in-out infinite;
}
.mob-nav-wrap.menu-blink .mob-nav-cue { display: block; }
@keyframes menuAttention {
0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45); }
50% { box-shadow: 0 0 0 5px rgba(234, 88, 12, 0.25); }
}
.nav-pc.menu-blink { animation: menuAttention 1.1s ease-in-out infinite; border-radius: 10px; }

@media (max-width: 1140px) {
.nav-pc { display: none !important; }
.mob-nav-bar { display: block; }
.role-pill { display: none; }
}

/* Trial / Subscription Top Banner */
.sub-banner {
display: none;
background: linear-gradient(90deg, #1E3A8A, #2563EB);
color: #fff;
padding: 7px 14px;
font-size: 12.5px;
font-weight: 600;
align-items: center;
justify-content: center;
gap: 10px;
flex-wrap: wrap;
text-align: center;
}
.sub-banner.show { display: flex; }
.sub-banner.expired { background: linear-gradient(90deg, #991B1B, #DC2626); }

/* ============================================================================
3-WIDTH WORKSPACE SYSTEM & UNIFORM TOP MENU ACTION CARD
============================================================================ */
.cnt {
flex: 1;
max-width: 1520px;
width: 100%;
margin: 0 auto;
padding: 12px 12px 44px;
}
@media (min-width: 1200px) {
.cnt { padding: 16px 20px 52px; }
}
.page { display: none; }
.page.active { display: block; animation: fade 0.14s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* 3-Tier PC Width Containers */
.form-center { width: 100%; max-width: 720px; margin-left: auto; margin-right: auto; }
.cal-center  { width: 100%; max-width: 1040px; margin-left: auto; margin-right: auto; }
.card {
background: var(--sur);
border: 1px solid var(--bor);
border-radius: var(--r);
padding: 14px;
box-shadow: var(--sh);
overflow: visible;
max-width: 100%;
}
@media (min-width: 1200px) {
.card { padding: 18px; }
}
.sec-lbl {
font-size: var(--fs-label);
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.4px;
display: flex;
align-items: center;
gap: 6px;
margin-bottom: 9px;
flex-wrap: wrap;
}

/* Alternate Section Colors (Settings & Admin Settings — PC & Mobile) */
.sec-card-blue  { background: #FFFFFF; border: 1.5px solid #BFDBFE; border-top: 4px solid #2563EB; border-radius: var(--r); padding: 15px; box-shadow: var(--sh); }
.sec-card-teal  { background: #F0FDFA; border: 1.5px solid #99F6E4; border-top: 4px solid #0D9488; border-radius: var(--r); padding: 15px; box-shadow: var(--sh); }
.sec-card-pu    { background: #FAF5FF; border: 1.5px solid #DDD6FE; border-top: 4px solid #7C3AED; border-radius: var(--r); padding: 15px; box-shadow: var(--sh); }
.sec-card-amber { background: #FFFBEB; border: 1.5px solid #FDE68A; border-top: 4px solid #D97706; border-radius: var(--r); padding: 15px; box-shadow: var(--sh); }
.sec-card-rose  { background: #FFF1F2; border: 1.5px solid #FECDD3; border-top: 4px solid #E11D48; border-radius: var(--r); padding: 15px; box-shadow: var(--sh); }

.split-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; margin-bottom: 14px; }
@media (max-width: 900px) { .split-2col { grid-template-columns: 1fr; } }

/* Uniform Top Action Card — Inactive White BG, Active Colored */
.page-top-card {
background: var(--sur);
border: 1px solid var(--bor);
border-radius: var(--r);
padding: 11px 14px;
margin-bottom: 12px;
box-shadow: var(--sh);
display: flex;
flex-direction: column;
gap: 9px;
}
.page-top-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
flex-wrap: wrap;
}
.page-top-title {
font-family: 'Plus Jakarta Sans', sans-serif;
font-size: clamp(15px, 1.45vw, 20px);
font-weight: 800;
color: var(--navy);
display: inline-flex;
align-items: center;
gap: 7px;
letter-spacing: -0.2px;
}
.page-top-sub { font-size: var(--fs-kpi-sub); color: var(--tx3); font-weight: 600; }

.subtab-bar { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.subtab-btn {
padding: 8px 14px;
border-radius: 10px;
border: 1.5px solid var(--bor2);
background: #FFFFFF;
color: var(--tx);
font-size: var(--fs-subtab);
font-weight: 700;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
transition: all 0.14s;
white-space: nowrap;
}
.subtab-btn:hover { border-color: var(--acc); color: var(--acc); background: var(--accl); }
.subtab-btn.active {
background: linear-gradient(135deg, #2563EB, #4F46E5);
color: #FFFFFF;
border-color: transparent;
box-shadow: 0 4px 12px var(--accg);
}
.subtab-btn.admin-tab { border-color: #FCA5A5; background: #FFFFFF; color: #B91C1C; }
.subtab-btn.admin-tab.active { background: linear-gradient(135deg, #DC2626, #991B1B); color: #fff; border-color: transparent; }
@media (max-width: 560px) {
.subtab-btn { flex: 1 1 auto; padding: 7.5px 9px; }
}

/* ============================================================================
ATTENDANCE HOME HERO & QUICK BUTTONS
============================================================================ /
.quick-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.emp-hero {
background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
color: #fff;
border-radius: 16px;
padding: 14px 16px;
margin-bottom: 12px;
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}
.eh-left { display: flex; align-items: center; gap: 11px; min-width: 0; flex: 1; }
.eh-avatar {
width: 46px;
height: 46px;
border-radius: 13px;
background: rgba(255, 255, 255, 0.15);
border: 2px solid rgba(147, 197, 253, 0.45);
display: flex;
align-items: center;
justify-content: center;
font-weight: 800;
font-size: 17px;
color: #fff;
overflow: hidden;
flex-shrink: 0;
}
.eh-avatar img { width: 100%; height: 100%; object-fit: cover; }
.eh-name {
font-family: 'Plus Jakarta Sans', sans-serif;
font-size: clamp(15px, 1.5vw, 19px);
font-weight: 800;
display: flex;
align-items: center;
gap: 6px;
flex-wrap: wrap;
}
.eh-code {
font-family: monospace;
font-size: 11px;
font-weight: 800;
background: rgba(96, 165, 250, 0.22);
color: #BFDBFE;
border: 1px solid rgba(147, 197, 253, 0.35);
padding: 2px 6px;
border-radius: 6px;
}
.eh-meta { font-size: clamp(11.5px, 1.1vw, 13.5px); color: #CBD5E1; margin-top: 2px; word-break: break-word; }
.eh-shift {
display: inline-flex;
align-items: center;
gap: 5px;
margin-top: 5px;
background: rgba(255, 255, 255, 0.14);
padding: 3px 9px;
border-radius: 20px;
font-size: clamp(10.5px, 1vw, 12px);
font-weight: 600;
color: #E0F2FE;
flex-wrap: wrap;
}
/ Mobile & PC Clean Right-Aligned Clock in Hero Card */
.eh-clock { text-align: right; flex-shrink: 0; }
.eh-time { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(15px, 1.8vw, 22px); font-weight: 800; white-space: nowrap; }
.eh-date { font-size: clamp(10.5px, 1vw, 12.5px); color: #93C5FD; font-weight: 600; white-space: nowrap; }
@media (max-width: 480px) {
.emp-hero { padding: 12px 13px; gap: 8px; }
.eh-avatar { width: 38px; height: 38px; font-size: 14px; }
}

.status-line {
background: var(--sur2);
border: 1px solid var(--bor);
border-radius: 10px;
padding: 9px 12px;
margin-bottom: 12px;
font-size: var(--fs-btn-sm);
font-weight: 700;
color: var(--ok);
}
.punch-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.punch-opt {
padding: 11px 8px;
border-radius: 11px;
border: 2px solid var(--bor);
background: #FFFFFF;
cursor: pointer;
text-align: center;
font-weight: 700;
color: var(--tx2);
transition: all 0.14s;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
}
.punch-opt.active-in { border-color: var(--ok); background: var(--okl); color: var(--ok); }
.punch-opt.active-out { border-color: var(--wn); background: var(--wnl); color: var(--wn); }
.capture-cta {
width: 100%;
padding: 13.5px 14px;
border-radius: 12px;
font-size: clamp(14px, 1.3vw, 16px);
font-weight: 800;
white-space: normal;
text-align: center;
line-height: 1.3;
}

.receipt {
display: none;
text-align: center;
padding: 16px 14px;
background: var(--okl);
border: 1.5px solid #A7F3D0;
border-radius: 16px;
margin-bottom: 12px;
}
.receipt.show { display: block; animation: fade 0.18s ease; }
.receipt-ico {
width: 44px;
height: 44px;
border-radius: 50%;
background: var(--ok);
color: #fff;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 7px;
font-size: 21px;
}
.receipt-img {
width: 100%;
max-height: 260px;
object-fit: contain;
border-radius: 10px;
background: #0F172A;
margin-bottom: 10px;
display: block;
}

/* Multi-File Uploader */
.upload-zone {
border: 1.5px dashed #93C5FD;
background: #F8FAFC;
border-radius: 11px;
padding: 12px;
text-align: center;
cursor: pointer;
transition: all 0.14s;
}
.upload-zone:hover { background: #EFF6FF; border-color: #2563EB; }
.file-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.file-chip {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 5px 9px;
background: #EFF6FF;
border: 1px solid #BFDBFE;
border-radius: 8px;
font-size: 11.8px;
font-weight: 700;
color: #1E3A8A;
max-width: 100%;
}
.file-chip-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.file-chip button { border: none; background: none; color: #DC2626; font-weight: 900; cursor: pointer; padding: 0 2px; font-size: 13px; }

/* ============================================================================
KPI GRIDS
============================================================================ */
.kpi-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
@media (max-width: 767px) { .kpi-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; } }
.kpi {
background: var(--sur);
border: 1px solid var(--bor);
border-radius: 12px;
padding: 11px 12px;
box-shadow: var(--sh);
position: relative;
overflow: hidden;
min-width: 0;
display: flex;
flex-direction: column;
justify-content: center;
}
.kpi::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--acc); }
.kpi.k-ok::before { background: var(--ok); }
.kpi.k-wn::before { background: var(--wn); }
.kpi.k-pu::before { background: var(--pu); }
.kpi.k-rd::before { background: var(--rd); }
.kpi.k-tl::before { background: var(--tl); }
.kpi-l {
font-size: var(--fs-kpi-lbl);
font-weight: 800;
text-transform: uppercase;
color: var(--tx3);
letter-spacing: 0.25px;
line-height: 1.25;
}
.kpi-v {
font-family: 'Plus Jakarta Sans', sans-serif;
font-size: clamp(16px, 2vw, 24px);
font-weight: 800;
margin-top: 3px;
line-height: 1.2;
}
.kpi-v.hms-v { font-family: monospace; font-size: clamp(13px, 1.6vw, 19px); }
.kpi-sub { font-size: var(--fs-kpi-sub); color: var(--tx2); margin-top: 2px; line-height: 1.3; }

/* ============================================================================
CALENDAR (1040px CENTERED PC + LARGE CRISP PC TEXT + SINGLE-ROW COMPACT TIMES)
============================================================================ */
.cal-today-sec { background: #EFF6FF; border: 1.5px solid #BFDBFE; border-radius: 15px; padding: 13px; margin-top: 12px; }
.cal-month-sec { background: #F0FDF4; border: 1.5px solid #BBF7D0; border-radius: 15px; padding: 12px; margin-bottom: 12px; }
.cal-bal-sec   { background: #F5F3FF; border: 1.5px solid #DDD6FE; border-radius: 15px; padding: 12px; margin-bottom: 12px; }

.cal-month-kpis { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
@media (max-width: 960px) { .cal-month-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cal-month-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cal-bal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
@media (max-width: 820px) { .cal-bal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bal-card {
background: #fff;
border: 1px solid #E9D5FF;
border-radius: 11px;
padding: 11px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.bal-num { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(18px, 2.2vw, 24px); font-weight: 800; color: var(--acc); flex-shrink: 0; }

.cal-picker-card {
display: none;
background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
border: 2px solid #6366F1;
border-radius: 12px;
padding: 9px 11px;
margin-bottom: 10px;
}
.cal-picker-card.show { display: block; }
.cal-picker-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.cal-picker-row .sel { padding: 8px 10px; background: #fff; border: 1.5px solid #818CF8; font-weight: 700; color: #1E1B4B; }

.cal-grid-wrap { background: #fff; border: 1.5px solid #A7F3D0; border-radius: 13px; padding: 10px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 8px; flex-wrap: nowrap; }
.cal-nav-btn {
background: linear-gradient(135deg, #1E40AF, #2563EB);
color: #fff;
border: none;
border-radius: 9px;
padding: 7.5px 12px;
font-size: var(--fs-btn-sm);
font-weight: 800;
cursor: pointer;
white-space: nowrap;
flex-shrink: 0;
}
.cal-nav-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.cal-nav-mid { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; flex: 1; }
.cal-month-lbl {
font-family: 'Plus Jakarta Sans', sans-serif;
font-size: clamp(14px, 1.8vw, 20px);
font-weight: 800;
color: #0F172A;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.cal-today-btn {
background: linear-gradient(135deg, #F97316, #EA580C);
color: #fff;
border: none;
border-radius: 8px;
padding: 6px 10px;
font-size: var(--fs-btn-xs);
font-weight: 800;
cursor: pointer;
white-space: nowrap;
}
.cal-dow {
display: grid;
grid-template-columns: repeat(7, minmax(0, 1fr));
gap: 5px;
margin-bottom: 5px;
text-align: center;
font-size: var(--fs-kpi-lbl);
font-weight: 800;
color: var(--tx2);
text-transform: uppercase;
}
.cal-cells { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.c-cell {
min-height: 82px;
border: 1.5px solid var(--bor);
border-radius: 10px;
padding: 6px;
background: var(--sur2);
cursor: pointer;
display: flex;
flex-direction: column;
gap: 2.5px;
transition: border-color 0.13s, transform 0.1s;
min-width: 0;
overflow: hidden;
}
.c-cell:hover { border-color: var(--acc); transform: translateY(-1px); }
.c-cell.empty { background: transparent; border-color: transparent; cursor: default; pointer-events: none; }
.c-cell.st-P { background: #F0FDF4; border-color: #86EFAC; }
.c-cell.st-HD { background: #FEFCE8; border-color: #FDE047; }
.c-cell.st-A { background: #FEF2F2; border-color: #FECACA; }
.c-cell.st-L { background: #F5F3FF; border-color: #DDD6FE; }
.c-cell.st-LP { background: #FFFBEB; border-color: #FDE68A; }
.c-cell.st-H { background: #F0FDFA; border-color: #99F6E4; }
.c-cell.st-WO { background: #F1F5F9; border-color: #CBD5E1; }
.c-cell.st-PREJOIN { background: #FAFAFA; border-color: #E2E8F0; opacity: 0.58; }
.c-cell.today { border: 2.5px solid var(--today) !important; box-shadow: 0 0 0 2px var(--todayg) !important; }
.c-cell.today .c-day { color: var(--today); font-weight: 900; }

.c-top { display: flex; align-items: center; justify-content: space-between; gap: 3px; }
.c-day { font-size: var(--fs-cal-day); font-weight: 800; color: var(--tx); line-height: 1.15; }
.c-pill { font-size: calc(var(--fs-cal-tag) - 0.5px); font-weight: 800; padding: 1.5px 5px; border-radius: 5px; line-height: 1.2; white-space: nowrap; }
.cp-P { background: #16A34A; color: #fff; }
.cp-HD { background: #CA8A04; color: #fff; }
.cp-A { background: #DC2626; color: #fff; }
.cp-L { background: #7C3AED; color: #fff; }
.cp-LP { background: #D97706; color: #fff; }
.cp-H { background: #0D9488; color: #fff; }
.cp-WO { background: #64748B; color: #fff; }

/* Single-Row Compact Format: In:09:05a / Out:05:30p */
.c-tm-line {
font-size: var(--fs-cal-tm);
font-weight: 700;
color: #1E293B;
line-height: 1.24;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.c-tag {
font-size: var(--fs-cal-tag);
font-weight: 800;
line-height: 1.2;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.ct-late { color: #DC2626; }
.ct-early { color: #059669; }
.ct-ontime { color: #2563EB; }
.ct-co { color: #0D9488; }

@media (min-width: 1024px) {
.c-cell { min-height: 92px; padding: 7px 8px; gap: 3px; }
}
@media (max-width: 680px) {
.cal-month-sec, .cal-bal-sec, .cal-today-sec { padding: 8px; }
.cal-grid-wrap { padding: 5px; }
.cal-cells { gap: 2px; }
.c-cell { min-height: 66px; padding: 3px 2px; border-radius: 7px; gap: 1.5px; }
.c-pill { font-size: 7.2px; padding: 1px 3px; }
.c-tm-line { font-size: 7.4px; letter-spacing: -0.25px; }
.c-tag { font-size: 7px; }
}

/* ============================================================================
UNIVERSAL FILTER BAR, VIEWPORT-SAFE EXPORT DROPDOWN & DATA TABLES
============================================================================ */
.bar {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
background: var(--sur);
border: 1px solid var(--bor);
border-radius: var(--r);
padding: 10px 12px;
margin-bottom: 11px;
box-shadow: var(--sh);
}
.bar .inp, .bar .sel {
width: auto;
padding: 7.5px 10px;
font-size: var(--fs-filter);
}
@media (max-width: 680px) {
.bar .inp, .bar .sel { flex: 1 1 132px; }
}

/* Viewport-Safe Export Menu (Never Hidden Left/Right on Mobile OR PC!) */
.exp-dd { position: relative; display: inline-flex; }
.exp-menu {
display: none;
position: fixed;
z-index: 900;
background: #FFFFFF;
border: 1.5px solid var(--bor2);
border-radius: 12px;
box-shadow: var(--sh2);
min-width: 175px;
max-width: calc(100vw - 20px);
padding: 6px;
flex-direction: column;
gap: 3px;
}
.exp-menu.open { display: flex; animation: fade 0.12s ease; }
.exp-menu button {
width: 100%;
text-align: left;
padding: 8px 11px;
border: none;
background: transparent;
border-radius: 8px;
font-size: var(--fs-btn-sm);
font-weight: 700;
color: var(--tx);
cursor: pointer;
display: flex;
align-items: center;
gap: 7px;
white-space: nowrap;
}
.exp-menu button:hover { background: var(--accl); color: var(--acc); }

.tbl-wrap {
background: var(--sur);
border: 1px solid var(--bor);
border-radius: var(--r);
overflow: hidden;
box-shadow: var(--sh);
}
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.dt { width: 100%; border-collapse: collapse; min-width: 860px; }
table.dt th {
background: #F8FAFC;
color: var(--tx2);
font-size: var(--fs-th);
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.3px;
text-align: left;
padding: var(--pad-th);
border-bottom: 1.5px solid var(--bor);
white-space: nowrap;
}
table.dt td {
padding: var(--pad-td);
border-bottom: 1px solid var(--bor);
font-size: var(--fs-td);
vertical-align: middle;
}
table.dt tbody tr:nth-child(even) td { background: #FAFBFD; }
table.dt tbody tr:hover td { background: #EFF6FF; }
.num-c { text-align: center !important; font-variant-numeric: tabular-nums; }
.hms-c { font-family: monospace; font-weight: 700; white-space: nowrap; text-align: center !important; }

.punch-badge {
display: inline-block;
padding: 3px 8.5px;
border-radius: 20px;
font-size: var(--fs-badge);
font-weight: 700;
white-space: nowrap;
}
.pb-in { background: var(--okl); color: var(--ok); }
.pb-out { background: var(--wnl); color: var(--wn); }
.pb-lv { background: var(--pul); color: var(--pu); }
.pb-rd { background: var(--rdl); color: var(--rd); }
.pb-tl { background: var(--tll); color: var(--tl); }
.pb-bl { background: var(--accl); color: var(--acc); }

/* No-Wrap Session & Code Tags (Always Full 2026-2027 on 1 Line!) */
.code-tag, .sess-tag {
display: inline-block;
font-family: monospace;
font-size: var(--fs-badge);
font-weight: 800;
background: #EEF2FF;
color: #1D4ED8;
border: 1px solid #C7D2FE;
padding: 2px 6px;
border-radius: 6px;
margin-right: 4px;
white-space: nowrap !important;
}
.addr-full { white-space: nowrap; font-size: var(--fs-td); color: var(--tx); }

/* ============================================================================
REPORTS: TRENDS CHART + EMPLOYEE CARDS (ALTERNATE ROWS)
============================================================================ */
.info-strip {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
flex-wrap: wrap;
padding: 4px 4px 10px;
font-size: var(--fs-btn-sm);
font-weight: 700;
color: var(--tx2);
}
.trends-wrap {
font-family: 'Poppins', 'Inter', sans-serif;
background: #F8FAFC;
border: 1px solid var(--bor);
border-radius: 16px;
padding: 15px;
box-shadow: var(--sh);
}
.trends-wrap.chart-fullpage {
position: fixed;
inset: 0;
z-index: 940;
border-radius: 0;
overflow: auto;
padding: 18px;
background: #F8FAFC;
}
.trends-hd {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
flex-wrap: wrap;
margin-bottom: 12px;
}
.trends-title { font-size: clamp(16px, 2vw, 24px); font-weight: 800; color: #0F172A; letter-spacing: -0.2px; }
.trends-sub { font-size: clamp(11.5px, 1.1vw, 13.5px); color: #475569; font-weight: 600; margin-top: 2px; }
.chart-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.trends-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-bottom: 14px; }
@media (max-width: 960px) { .trends-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .trends-kpis { grid-template-columns: 1fr; } }
.tkpi {
background: #fff;
border-radius: 13px;
padding: 13px 12px 13px 16px;
box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
border: 1px solid #E2E8F0;
position: relative;
overflow: hidden;
text-align: center;
}
.tkpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.tkpi.t-navy::before  { background: #0F172A; }
.tkpi.t-blue::before  { background: #2563EB; }
.tkpi.t-green::before { background: #10B981; }
.tkpi.t-red::before   { background: #F87171; }
.tkpi-lbl { font-size: var(--fs-kpi-lbl); font-weight: 700; text-transform: uppercase; color: #0F172A; margin-bottom: 3px; }
.tkpi-val { font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; line-height: 1.15; }
.tkpi.t-navy .tkpi-val  { color: #0F172A; }
.tkpi.t-blue .tkpi-val  { color: #2563EB; }
.tkpi.t-green .tkpi-val { color: #10B981; }
.tkpi.t-red .tkpi-val   { color: #EF4444; }
.tkpi-sub { font-size: var(--fs-kpi-sub); color: #475569; margin-top: 4px; }

.trends-chart-card {
background: #fff;
border: 1px solid #E2E8F0;
border-radius: 14px;
padding: 12px;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.trends-canvas-box { position: relative; width: 100%; height: 380px; min-width: 300px; transition: width 0.18s, height 0.18s; }
@media (min-width: 1440px) { .trends-canvas-box { height: 430px; } }
@media (max-width: 640px) { .trends-wrap { padding: 10px; } .trends-canvas-box { height: 275px; } }

/* Employee Report Cards & Payslip Cards */
.rep-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 13px; }
@media (max-width: 480px) { .rep-cards-grid { grid-template-columns: 1fr; } }
.rep-card {
background: #fff;
border: 1.5px solid var(--bor);
border-radius: 15px;
padding: 13px;
box-shadow: var(--sh);
display: flex;
flex-direction: column;
gap: 8px;
overflow: hidden;
}
.rc-r1 {
display: flex;
align-items: center;
justify-content: space-between;
gap: 6px;
padding-bottom: 8px;
border-bottom: 1.5px solid #F1F5F9;
flex-wrap: wrap;
}
.rc-id {
font-family: monospace;
font-size: var(--fs-btn-sm);
font-weight: 800;
color: #1D4ED8;
background: #EFF6FF;
border: 1px solid #BFDBFE;
padding: 3px 8px;
border-radius: 7px;
white-space: nowrap;
}
.rc-r2 {
background: linear-gradient(135deg, #0F172A, #1E3A8A);
color: #fff;
border-radius: 9px;
padding: 8px 11px;
font-size: var(--fs-btn-sm);
font-weight: 700;
display: flex;
align-items: center;
justify-content: space-between;
gap: 6px;
}
.rc-rows { display: flex; flex-direction: column; border-radius: 9px; overflow: hidden; border: 1px solid #E2E8F0; }
.rc-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
padding: 7px 10px;
font-size: var(--fs-card-kv);
}
.rc-row:nth-child(odd)  { background: #FFFFFF; }
.rc-row:nth-child(even) { background: #F1F5F9; }
.rc-k { color: var(--tx2); font-weight: 600; }
.rc-v { color: var(--tx); font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }

/* ============================================================================
COLOR SALARY SLIP & FIXED A4 OFF-SCREEN RENDERER (100% CRISP ON MOBILE!)
============================================================================ */
.a4-render-host {
position: fixed;
left: -99999px;
top: 0;
width: 794px;
background: #FFFFFF;
padding: 22px;
z-index: -1;
}
.ps-sheet {
background: #fff;
border: 1.5px solid #CBD5E1;
border-radius: 14px;
overflow: hidden;
color: #0F172A;
}
.ps-head {
background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 65%, #2563EB 100%);
color: #fff;
padding: 16px 18px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 14px;
}
.ps-brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.ps-logo {
width: 56px;
height: 56px;
border-radius: 12px;
background: #fff;
padding: 4px;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
flex-shrink: 0;
color: #1D4ED8;
font-weight: 900;
font-size: 18px;
}
.ps-logo img { width: 100%; height: 100%; object-fit: contain; }
.ps-photo {
width: 64px;
height: 64px;
border-radius: 12px;
border: 2.5px solid #93C5FD;
background: #1E293B;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
font-weight: 800;
font-size: 22px;
color: #fff;
flex-shrink: 0;
}
.ps-photo img { width: 100%; height: 100%; object-fit: cover; }
.ps-body { padding: 16px 18px; }
.ps-meta-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 6px 16px;
background: #F8FAFC;
border: 1px solid #E2E8F0;
border-radius: 10px;
padding: 10px 13px;
margin-bottom: 12px;
font-size: 12.2px;
}
.ps-kv { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed #E2E8F0; padding: 3.5px 0; }
.ps-tbl { width: 100%; border-collapse: collapse; margin-bottom: 12px; font-size: 12.5px; }
.ps-tbl th { background: #EFF6FF; color: #1E3A8A; padding: 7.5px 10px; border: 1px solid #BFDBFE; font-weight: 800; text-align: left; }
.ps-tbl td { padding: 7px 10px; border: 1px solid #E2E8F0; }
.ps-net {
background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
border: 1.5px solid #34D399;
border-radius: 11px;
padding: 13px 15px;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 8px;
}

/* ============================================================================
SETTINGS, INLINE CLICK-TO-EDIT LISTS, WEEKLY OFF & MULTI-PROJECT SPLIT
============================================================================ */
.set-panel { display: none; }
.set-panel.active { display: block; animation: fade 0.14s ease; }

.wo-grid {
display: flex;
flex-wrap: wrap;
gap: 6px;
padding: 8px;
background: var(--sur2);
border: 1.5px solid var(--bor);
border-radius: var(--rs);
}
.wo-chip {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 5.5px 10px;
border-radius: 8px;
border: 1.5px solid var(--bor);
background: #fff;
font-size: var(--fs-btn-xs);
font-weight: 700;
color: var(--tx2);
cursor: pointer;
user-select: none;
}
.wo-chip input { accent-color: var(--acc); width: 14px; height: 14px; }
.wo-chip.checked { background: #EFF6FF; border-color: #2563EB; color: #1D4ED8; }

.ml-list { display: flex; flex-direction: column; gap: 6px; max-height: 460px; overflow-y: auto; margin-top: 8px; }
.ml-item {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 8px 11px;
background: #FFFFFF;
border: 1px solid var(--bor);
border-radius: 10px;
font-size: var(--fs-td);
font-weight: 600;
}
.ml-item:nth-child(even) { background: #F8FAFC; }
.ml-inline-txt {
flex: 1;
min-width: 0;
cursor: text;
padding: 3px 6px;
border-radius: 6px;
border: 1px dashed transparent;
transition: all 0.12s;
}
.ml-inline-txt:hover { background: #EFF6FF; border-color: #93C5FD; color: var(--acc); }
.ml-inline-inp {
flex: 1;
min-width: 120px;
padding: 5px 8px;
border: 1.5px solid var(--acc);
border-radius: 7px;
background: #fff;
font-weight: 700;
outline: none;
}
.ml-acts { display: flex; gap: 4px; flex-shrink: 0; align-items: center; }
.ml-dirty-badge {
display: none;
background: var(--wnl);
color: var(--wn);
border: 1px solid #FDE68A;
padding: 4px 10px;
border-radius: 20px;
font-size: 11.5px;
font-weight: 800;
}
.ml-dirty-badge.show { display: inline-flex; align-items: center; gap: 4px; }

.split-row-item { display: grid; grid-template-columns: 1fr 90px 34px; gap: 7px; margin-bottom: 6px; align-items: center; }
.prefix-preview {
display: flex;
align-items: center;
justify-content: center;
background: #EEF2FF;
border: 1.5px dashed #6366F1;
border-radius: var(--rs);
padding: 8px 12px;
font-family: monospace;
font-size: 16px;
font-weight: 900;
color: #1D4ED8;
letter-spacing: 1px;
}
.star-row { display: inline-flex; gap: 5px; }
.star-btn { background: none; border: none; font-size: 24px; cursor: pointer; color: #CBD5E1; }
.star-btn.on { color: #F59E0B; }

/* ============================================================================
NATIVE FULL-SCREEN LIVE GPS CAMERA OVERLAY (PRO SVG CONTROLS)
============================================================================ */
.cam-ov { position: fixed; inset: 0; z-index: 960; display: none; flex-direction: column; background: #000; color: #F8FAFC; }
.cam-ov.open { display: flex; }
.cam-top {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
padding: 11px 15px;
background: rgba(15, 23, 42, 0.96);
backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.gps-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: #A7F3D0; margin-top: 2px; }
.gps-pill.waiting { color: #FF4D4F; font-size: 13px; font-weight: 800; }
.gps-dot { width: 10px; height: 10px; border-radius: 50%; background: #EF4444; box-shadow: 0 0 9px #EF4444; flex-shrink: 0; }
.gps-dot.ok { background: #10B981; box-shadow: 0 0 9px #10B981; }
.gps-dot.pulse { animation: pulseRed 1s ease-in-out infinite; }
@keyframes pulseRed { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.82); } }
.cam-close {
background: rgba(239, 68, 68, 0.2);
color: #FCA5A5;
border: 1px solid rgba(239, 68, 68, 0.45);
border-radius: 10px;
padding: 8px 14px;
font-size: 13px;
font-weight: 700;
cursor: pointer;
white-space: nowrap;
}
.cam-stage { position: relative; flex: 1; overflow: hidden; background: #000; display: flex; align-items: center; justify-content: center; }
#camVideo { width: 100%; height: 100%; object-fit: cover; }
.gps-alert {
display: none;
position: absolute;
top: 14px;
left: 12px;
right: 12px;
z-index: 15;
background: rgba(127, 29, 29, 0.96);
border: 1.5px solid rgba(248, 113, 113, 0.65);
border-radius: 14px;
padding: 13px 14px;
}
.gps-alert.show { display: block; }
.gps-alert-h { font-size: 14px; font-weight: 800; color: #fff; }
.gps-alert-p { font-size: 12.5px; color: #FECACA; line-height: 1.45; margin: 5px 0 10px; }
.gps-retry-btn { background: #fff; color: #991B1B; border: none; border-radius: 9px; padding: 8px 14px; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.cam-hud {
position: absolute;
left: 12px;
right: 12px;
bottom: 14px;
background: rgba(15, 23, 42, 0.88);
border: 1.5px solid rgba(255, 255, 255, 0.18);
border-radius: 14px;
padding: 11px 13px;
pointer-events: none;
}
.cam-hud.waiting { border-color: rgba(239, 68, 68, 0.78); }
.hud-meta { font-size: 12px; font-weight: 800; color: #93C5FD; margin-bottom: 4px; }
.hud-addr { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.38; }
.hud-addr.waiting { color: #FF3B30; font-size: 15.5px; font-weight: 900; }
.hud-coord { font-family: monospace; font-size: 11.5px; color: #CBD5E1; margin-top: 4px; }
.cam-bar {
background: #0F172A;
border-top: 1px solid rgba(255, 255, 255, 0.12);
padding: 13px 16px calc(15px + env(safe-area-inset-bottom));
display: flex;
flex-direction: column;
align-items: center;
gap: 9px;
}
.cam-err {
display: none;
width: 100%;
max-width: 420px;
text-align: center;
background: rgba(239, 68, 68, 0.22);
border: 1.5px solid rgba(239, 68, 68, 0.55);
color: #FCA5A5;
padding: 8px 12px;
border-radius: 10px;
font-size: 12.5px;
font-weight: 700;
}
.cam-err.show { display: block; }
.cam-controls { width: 100%; max-width: 420px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ctrl-btn {
width: 92px;
height: 58px;
border-radius: 15px;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
border: 1.5px solid rgba(148, 163, 184, 0.32);
color: #F8FAFC;
cursor: pointer;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 3px;
font-size: 11px;
font-weight: 700;
transition: all 0.15s;
}
.ctrl-btn:hover { background: rgba(59, 130, 246, 0.28); border-color: #60A5FA; }
.ctrl-btn:active { transform: scale(0.95); }
.shutter {
width: 108px;
height: 108px;
border-radius: 50%;
border: 4px solid #fff;
background: transparent;
padding: 4px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.shutter-in {
width: 100%;
height: 100%;
border-radius: 50%;
background: linear-gradient(135deg, #10B981, #059669);
box-shadow: 0 0 24px rgba(16, 185, 129, 0.58);
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: #fff;
font-size: 11px;
font-weight: 800;
line-height: 1.18;
padding: 6px;
}
.shutter.waiting { border-color: #FCA5A5; }
.shutter.waiting .shutter-in { background: linear-gradient(135deg, #EF4444, #B91C1C); box-shadow: 0 0 24px rgba(239, 68, 68, 0.65); }
.shutter.busy .shutter-in { background: linear-gradient(135deg, #F59E0B, #D97706); }

/* ============================================================================
MODALS, POPUPS, VIEWERS & GRIDS
============================================================================ */
.mbg {
display: none;
position: fixed;
inset: 0;
z-index: 820;
background: rgba(15, 23, 42, 0.56);
backdrop-filter: blur(4px);
align-items: center;
justify-content: center;
padding: 10px;
}
.mbg.open { display: flex; }
.modal {
background: #fff;
border-radius: 16px;
width: 100%;
max-width: 650px;
max-height: 92dvh;
display: flex;
flex-direction: column;
box-shadow: var(--sh2);
overflow: hidden;
}
.modal-lg { max-width: 900px; }
.mhd { padding: 13px 16px; border-bottom: 1px solid var(--bor); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mhd h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(15px, 1.3vw, 17.5px); font-weight: 800; }
.mcl { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--bor); background: var(--sur2); cursor: pointer; font-size: 14px; }
.mbd { padding: 15px 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.mft { padding: 11px 16px; border-top: 1px solid var(--bor); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
@media (max-width: 680px) { .grid2, .grid3, .grid4 { grid-template-columns: 1fr; } }

.sec-box { background: #F8FAFC; border: 1px solid var(--bor); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.sec-box-t {
font-size: var(--fs-label);
font-weight: 800;
color: var(--acc);
text-transform: uppercase;
letter-spacing: 0.35px;
margin-bottom: 9px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 6px;
flex-wrap: wrap;
}

.ok-pop-ov {
display: none;
position: fixed;
inset: 0;
z-index: 995;
background: rgba(15, 23, 42, 0.38);
backdrop-filter: blur(3px);
align-items: center;
justify-content: center;
padding: 18px;
pointer-events: none;
}
.ok-pop-ov.show { display: flex; animation: fade 0.15s ease; }
.ok-pop-card {
background: #fff;
border: 2px solid #A7F3D0;
border-radius: 20px;
padding: 22px 24px;
text-align: center;
max-width: 350px;
width: 100%;
box-shadow: 0 20px 50px rgba(15, 23, 42, 0.26);
}
.ok-pop-ico {
width: 52px;
height: 52px;
border-radius: 50%;
background: linear-gradient(135deg, #10B981, #059669);
color: #fff;
font-size: 26px;
font-weight: 900;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 9px;
}
.ok-pop-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 16.5px; font-weight: 800; color: #065F46; margin-bottom: 4px; }
.ok-pop-sub { font-size: 13px; color: var(--tx2); line-height: 1.4; }

.tw { position: fixed; bottom: 14px; right: 14px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; max-width: 350px; }
.toast { padding: 10px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; box-shadow: var(--sh2); animation: fade 0.15s ease; }
.t-ok { background: #065F46; color: #fff; }
.t-er { background: #B91C1C; color: #fff; }
.t-in { background: #1E293B; color: #fff; }

.pv-ov { display: none; position: fixed; inset: 0; z-index: 950; background: #020617; flex-direction: column; }
.pv-ov.open { display: flex; }
.pv-top {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 10px 14px;
background: #0F172A;
color: #fff;
border-bottom: 1px solid rgba(255, 255, 255, 0.12);
flex-shrink: 0;
}
.pv-stage {
position: relative;
flex: 1;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
touch-action: none;
cursor: grab;
padding: 8px;
}
.pv-img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; transform-origin: center center; will-change: transform; }
.pv-pdf { width: 100%; height: 100%; border: none; background: #fff; display: none; }

.busy-ov {
display: none;
position: fixed;
inset: 0;
z-index: 980;
background: rgba(15, 23, 42, 0.68);
backdrop-filter: blur(5px);
align-items: center;
justify-content: center;
padding: 16px;
}
.busy-ov.show { display: flex; }
.busy-card { background: #fff; border-radius: 18px; padding: 24px 26px; text-align: center; max-width: 330px; width: 100%; box-shadow: var(--sh2); }
.busy-ring {
width: 36px;
height: 36px;
border: 3.5px solid #E2E8F0;
border-top-color: var(--acc);
border-radius: 50%;
animation: spin 0.6s linear infinite;
margin: 0 auto 10px;
}