:root{--bg:#f1f5f9;--text:#0f172a;--muted:#64748b;--card:#ffffff;--border:#e2e8f0;--primary:#3b82f6;--primary-dark:#2563eb;--primary-light:#eff6ff;--danger:#ef4444;--danger-light:#fef2f2;--success:#22c55e;--success-light:#f0fdf4;--warn:#f59e0b;--warn-light:#fffbeb;--shadow:0 4px 20px rgba(15,23,42,0.06);--shadow-lg:0 8px 30px rgba(15,23,42,0.12);--radius:12px;--radius-sm:8px}*{box-sizing:border-box;padding:0;margin:0}html{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}body,html{max-width:100vw;overflow-x:hidden}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:var(--bg);color:var(--text);line-height:1.5;min-height:100vh;min-height:100dvh;box-sizing:border-box}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.container{max-width:1200px;margin:0 auto;padding:24px}.page{min-height:100vh}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:24px;flex-wrap:wrap}.page-header h1{font-size:1.75rem;font-weight:700;margin:4px 0;background:linear-gradient(135deg,var(--primary),#8b5cf6);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.header-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.countdown-box{display:flex;flex-direction:column;align-items:flex-end;padding:8px 16px;background:linear-gradient(135deg,#1e293b,#334155);border-radius:var(--radius);color:white}.countdown-label{font-size:10px;text-transform:uppercase;letter-spacing:.5px;opacity:.8}.countdown-time{font-size:1.25rem;font-weight:700;font-family:JetBrains Mono,Fira Code,monospace}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow);margin-bottom:20px}.card-title{font-size:1rem;font-weight:600;margin-bottom:4px}.card-header{justify-content:space-between;gap:12px;margin-bottom:16px;flex-wrap:wrap}.card-actions,.card-header{display:flex;align-items:center}.card-actions{gap:8px}.quick-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin-bottom:24px}.quick-card{display:flex;align-items:center;gap:12px;padding:16px;background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.quick-icon{font-size:1.5rem}.quick-info{display:flex;flex-direction:column}.quick-value{font-size:1.5rem;font-weight:700;line-height:1.2}.quick-label{font-size:12px;color:var(--muted)}.grid-responsive-2{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}.grid-responsive-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 16px;border-radius:var(--radius-sm);border:1px solid transparent;background:var(--border);color:var(--text);cursor:pointer;transition:all .15s ease;font-weight:500;font-size:14px;white-space:nowrap}.btn:hover{background:#cbd5e1}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--primary);color:white}.btn-primary:hover{background:var(--primary-dark)}.btn-outline{background:white;border-color:var(--border)}.btn-outline:hover{background:var(--bg);border-color:var(--muted)}.btn-danger{color:var(--danger)}.btn-danger:hover{background:var(--danger-light)}.btn-ghost{background:transparent;border-color:transparent;color:var(--muted);padding:8px}.btn-ghost:hover{background:var(--bg);color:var(--text)}.btn-sm{padding:6px 12px;font-size:13px}.btn-block{width:100%}.badge{display:inline-block;padding:4px 10px;border-radius:999px;font-size:11px;font-weight:600;background:var(--bg);color:var(--muted);text-transform:uppercase;letter-spacing:.3px}.badge-primary{background:var(--primary-light);color:var(--primary-dark)}.badge-success{background:var(--success-light);color:#15803d}.badge-warn{background:var(--warn-light);color:#b45309}.muted{color:var(--muted);font-size:13px}.table-wrapper{overflow-x:auto;-webkit-overflow-scrolling:touch}.table{width:100%;border-collapse:collapse}.table td,.table th{padding:12px 16px;border-bottom:1px solid var(--border);text-align:left;font-size:14px}.table th{color:var(--muted);font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:.5px;background:var(--bg)}.table tbody tr:hover{background:#f8fafc}.table-actions{display:flex;gap:4px}.input,select,textarea{width:100%;padding:10px 14px;border-radius:var(--radius-sm);border:1px solid var(--border);background:white;color:var(--text);font-size:14px;transition:border-color .15s ease,box-shadow .15s ease}.input:focus,select:focus,textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light)}.form-row{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}.form-row>*{flex:1 1;min-width:120px}.form-label{display:block;font-size:13px;font-weight:500;color:var(--muted);margin-bottom:6px}.form-label-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.form-section{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-sm);padding:16px;margin-bottom:16px}.bulk-actions{display:flex;gap:8px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid var(--border);margin-bottom:0}.switch{position:relative;display:inline-block;width:40px;height:22px}.switch input{opacity:0;width:0;height:0}.slider{cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#cbd5e1;border-radius:22px}.slider,.slider:before{position:absolute;transition:.2s}.slider:before{content:"";height:16px;width:16px;left:3px;bottom:3px;background-color:white;border-radius:50%}input:checked+.slider{background-color:var(--success)}input:checked+.slider:before{transform:translateX(18px)}.pattern-form{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);padding:20px}.radio-group{display:flex;gap:10px;flex-wrap:wrap}.radio-card{display:flex;align-items:center;gap:8px;padding:12px 16px;background:white;border:2px solid var(--border);border-radius:var(--radius-sm);cursor:pointer;transition:all .15s ease;font-weight:500}.radio-card input{display:none}.radio-card.active{border-color:var(--primary);background:var(--primary-light);color:var(--primary-dark)}.radio-card:hover:not(.active){border-color:var(--muted)}.radio-card.small{padding:8px 14px;font-size:13px}.radio-icon{font-size:1.25rem}.checkbox-list{max-height:200px;overflow-y:auto;display:flex;flex-direction:column;gap:4px;padding:8px;background:white;border:1px solid var(--border);border-radius:var(--radius-sm)}.checkbox-item{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:6px;cursor:pointer;transition:background .1s ease;font-size:14px}.checkbox-item:hover{background:var(--bg)}.checkbox-item input[type=checkbox]{width:16px;height:16px;accent-color:var(--primary)}.day-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.day-chip{display:flex;align-items:center;justify-content:center;padding:10px 4px;background:white;border:2px solid var(--border);border-radius:var(--radius-sm);cursor:pointer;transition:all .15s ease;font-size:12px;font-weight:600}.day-chip input{display:none}.day-chip.active{background:var(--primary);color:white}.day-chip.active,.day-chip:hover:not(.active){border-color:var(--primary)}.pattern-badge{display:inline-block;padding:4px 10px;border-radius:6px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.3px}.pattern-badge.dayoff{background:#fef3c7;color:#92400e}.pattern-badge.fulltime{background:#dbeafe;color:#1e40af}.pattern-badge.locked{background:#fce7f3;color:#9f1239}.whatsapp-preview{margin-top:16px;padding:16px;color:#e2e8f0;font-family:JetBrains Mono,Fira Code,monospace;font-size:13px;line-height:1.6;white-space:pre-wrap;word-break:break-word}.toast,.whatsapp-preview{background:#1e293b;border-radius:var(--radius-sm)}.toast{position:fixed;bottom:24px;right:24px;padding:14px 20px;color:white;box-shadow:var(--shadow-lg);font-size:14px;cursor:pointer;z-index:1000;animation:slideIn .3s ease}@keyframes slideIn{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.auth-container{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:linear-gradient(135deg,#1e293b,#0f172a)}.auth-card{max-width:420px;width:100%;background:white;border-radius:var(--radius);padding:32px;box-shadow:var(--shadow-lg)}.auth-header{text-align:center;margin-bottom:32px}.auth-header h1{font-size:1.5rem;margin-bottom:8px}.auth-header p{color:var(--muted)}@media (max-width:900px){.grid-responsive-2,.grid-responsive-3{grid-template-columns:1fr}.day-grid{grid-template-columns:repeat(4,1fr)}}@media (max-width:768px){.container{padding:16px}.page-header{flex-direction:column;align-items:stretch}.header-actions{justify-content:space-between}.card{padding:16px}.quick-actions{grid-template-columns:repeat(2,1fr)}.form-row{flex-direction:column;align-items:stretch}.form-row>*{width:100%}.radio-group{flex-direction:column}.radio-card{width:100%;justify-content:center}.table td,.table th{padding:10px 12px}}@media (max-width:480px){.card,.container{padding:12px}.quick-actions{grid-template-columns:1fr}.day-grid{grid-template-columns:repeat(3,1fr)}.countdown-box{width:100%;align-items:center}.btn{padding:12px 16px;width:100%}.btn-sm{width:auto}.input,select,textarea{font-size:16px}.toast{left:12px;right:12px;bottom:12px}}@media (max-width:600px){.day-chip span{display:block}}@keyframes officer-profile-fade-in{0%{opacity:0}to{opacity:1}}@keyframes officer-profile-sheet-up{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}.officer-profile-portal{position:fixed!important;inset:0!important;z-index:2147483000!important;pointer-events:none}.officer-profile-backdrop{position:fixed!important;inset:0!important;background:rgba(15,39,64,.55)!important;pointer-events:auto;animation:officer-profile-fade-in .2s ease;z-index:2147483001!important}.officer-profile-menu{position:fixed!important;background:#fff!important;pointer-events:auto;box-shadow:0 24px 48px rgba(15,39,64,.32)!important;z-index:2147483002!important}.officer-profile-menu-handle{width:42px;height:5px;border-radius:999px;background:#cbd5e1;margin:10px auto 4px}.officer-profile-head{padding:14px 18px;background:linear-gradient(135deg,#eff6ff,#f5f3ff);border-bottom:1px solid #e0ebf8}.officer-profile-name{display:block;font-weight:800;color:#163252;font-size:16px}.officer-profile-role{display:block;margin-top:4px;font-size:13px;color:#597b9f}.officer-profile-item{display:block;width:100%;padding:16px 18px;background:#fff;border:none;border-bottom:1px solid #edf2f8;text-align:left;color:#1f3d5c;font-size:16px;font-weight:600;text-decoration:none;cursor:pointer}.officer-profile-item:active{background:#f0f6ff}.officer-profile-logout{color:#b91c1c}.officer-profile-cancel{display:block;width:calc(100% - 24px);margin:10px 12px calc(12px + env(safe-area-inset-bottom));padding:14px;border:1px solid #cddcf0;border-radius:12px;background:#f8fafc;color:#475569;font-size:15px;font-weight:700;cursor:pointer}.officer-profile-edit-portal{position:fixed!important;inset:0!important;z-index:2147483100!important}.officer-profile-edit-portal .officer-modal-overlay{position:fixed!important;inset:0!important;background:rgba(15,39,64,.5)!important;display:flex;align-items:center;justify-content:center;padding:14px;animation:officer-profile-fade-in .2s ease;z-index:2147483101!important}.officer-profile-edit-portal .officer-modal{width:100%;max-width:410px;border-radius:16px;overflow:hidden;background:#fff;border:1px solid #d6e5f8;box-shadow:0 18px 40px rgba(15,39,64,.28);max-height:90dvh;overflow-y:auto;z-index:2147483102!important;position:relative}.officer-profile-edit-portal .officer-modal-header{display:flex;justify-content:space-between;align-items:center;padding:14px;border-bottom:1px solid #e4eef9;background:#f6faff}.officer-profile-edit-portal .officer-modal-header h2{margin:0;font-size:1rem;color:#163252}.officer-profile-edit-portal .officer-modal-close{border:1px solid #d0e0f3;background:#fff;border-radius:10px;width:36px;height:36px;cursor:pointer}.officer-profile-edit-portal .officer-profile-card{display:flex;align-items:center;gap:12px;padding:16px 14px;background:#fff}.officer-profile-edit-portal .officer-profile-avatar-lg{width:52px;height:52px;border-radius:12px;background:#dbeafe;color:#1d4ed8;display:flex;align-items:center;justify-content:center;font-size:1.2rem;font-weight:800;flex-shrink:0}.officer-profile-edit-portal .officer-profile-info h3{margin:0 0 5px;color:#163252;font-size:1rem}.officer-profile-edit-portal .officer-role-badge{font-size:11px;border-radius:999px;padding:4px 10px;background:#eff6ff;color:#1d4ed8;font-weight:700}.officer-profile-edit-portal .officer-profile-form{padding:0 14px 14px;display:grid;gap:12px}.officer-profile-edit-portal .officer-field{display:flex;flex-direction:column;gap:7px}.officer-profile-edit-portal .officer-label{font-size:13px;color:#355879;font-weight:600}.officer-profile-edit-portal .officer-input{border:1px solid #cfe0f4;border-radius:12px;padding:12px 14px;font-size:16px;color:#133251;background:#fbfdff}.officer-profile-edit-portal .officer-input:focus{outline:none;border-color:#60a5fa;box-shadow:0 0 0 3px rgba(59,130,246,.15);background:#fff}.officer-profile-edit-portal .officer-profile-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.officer-profile-edit-portal .officer-btn-primary{border:none;border-radius:12px;padding:13px 16px;cursor:pointer;font-weight:700;color:#fff;background:linear-gradient(135deg,#f97316,#ec4899 55%,#8b5cf6)}.officer-profile-edit-portal .officer-btn-primary:disabled{opacity:.6;cursor:not-allowed}.officer-profile-edit-portal .officer-btn-secondary{border:1px solid #cddcf0;border-radius:12px;padding:13px 16px;cursor:pointer;font-weight:700;color:#274868;background:#fff}.officer-profile-edit-portal .officer-profile-details{padding:8px 14px 14px}.officer-profile-edit-portal .officer-detail-row{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #edf2f8;font-size:13px;color:#365778}.officer-profile-edit-portal .officer-detail-row:last-child{border-bottom:none}.officer-profile-edit-portal .officer-profile-readonly .officer-detail-row:last-of-type{border-bottom:1px solid #edf2f8}.officer-profile-edit-portal .officer-profile-hint{margin:12px 0 0;font-size:12px;line-height:1.45;color:#6b7f96}.officer-profile-edit-portal .officer-profile-account-actions{display:flex;flex-direction:column;gap:10px;padding:0 14px 18px}.officer-profile-edit-portal .officer-btn-block{width:100%;justify-content:center}.officer-profile-edit-portal .officer-btn-logout{color:#b42318;border-color:#fecdca}.officer-profile-edit-portal .officer-btn-ghost{background:transparent;border:none;color:#6b7f96;font-size:13px}.officer-profile-edit-portal .officer-status-active{color:#15803d;font-weight:700}@media (max-width:700px){.officer-profile-menu{left:0!important;right:0!important;bottom:0!important;top:auto!important;border-radius:24px 24px 0 0!important;animation:officer-profile-sheet-up .28s ease-out}.officer-profile-edit-portal .officer-modal-overlay{align-items:flex-end;padding:0}.officer-profile-edit-portal .officer-modal{max-width:none;width:100%;border-radius:24px 24px 0 0;max-height:88dvh;padding-bottom:env(safe-area-inset-bottom)}.officer-profile-edit-portal .officer-profile-actions{grid-template-columns:1fr}}@media (min-width:701px){.officer-profile-menu{top:72px!important;right:20px!important;left:auto!important;bottom:auto!important;width:280px;border-radius:16px;border:1px solid #d7e4f4;overflow:hidden;animation:officer-profile-fade-in .2s ease}.officer-profile-cancel,.officer-profile-menu-handle{display:none}.officer-profile-item{padding:12px 16px;font-size:14px}}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/f639721981034f88-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/9766a7e9e2e0ad5a-s.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/b66cf8e69499582a-s.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/aa016aab0e6d1295-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/22a5144ee8d83bca-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Geist Fallback;src:local("Arial");ascent-override:95.94%;descent-override:28.16%;line-gap-override:0.00%;size-adjust:104.76%}.__className_246ccd{font-family:Geist,Geist Fallback;font-style:normal}.__variable_246ccd{--font-geist-sans:"Geist","Geist Fallback"}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/d100b2a099e34044-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/2c34d62a75506231-s.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/0f1bdadaf30e2d5f-s.woff2) format("woff2");unicode-range:u+2000-2001,u+2004-2008,u+200a,u+23b8-23bd,u+2500-259f}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/a115172161b307bb-s.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/601f5c280d60caca-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/f5271587012faf78-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Geist Mono Fallback;src:local("Arial");ascent-override:74.67%;descent-override:21.92%;line-gap-override:0.00%;size-adjust:134.59%}.__className_4c40f6{font-family:Geist Mono,Geist Mono Fallback;font-style:normal}.__variable_4c40f6{--font-geist-mono:"Geist Mono","Geist Mono Fallback"}