.att-spa-scope{--font-family:'Be Vietnam Pro',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-family:var(--font-family);--font-mono:'Be Vietnam Pro',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#0F172A;background:#F3F5F9;font-synthesis:none;--purple:#2563EB;--primary:#2563EB;--accent:#2563EB;--muted:#475569;--border:#DCE3EC}
.att-spa-scope, .att-spa-scope *{box-sizing:border-box}
.att-spa-scope{margin:0}
.att-spa-scope button, .att-spa-scope input, .att-spa-scope select, .att-spa-scope textarea{font:inherit}
.att-spa-scope button{cursor:pointer;border:0;border-radius:8px;padding:10px 16px;font-size:13px;font-weight:600;transition:.15s}
.att-spa-scope button:disabled{opacity:.45;cursor:not-allowed}
.att-spa-scope button:not(:disabled):hover{filter:brightness(.97);transform:translateY(-1px)}
.att-spa-scope button:not(:disabled):active{transform:scale(0.97)}
.att-spa-scope a{color:inherit;text-decoration:none}
.att-spa-scope .primary{background:var(--primary);color:#fff;box-shadow:0 1px 2px rgba(15,23,42,0.10),inset 0 1px 0 rgba(255,255,255,0.18)}
.att-spa-scope .outline{border:1px solid var(--border);background:#fff;color:#475569}
.att-spa-scope .small{padding:7px 11px;font-size:11px;border-radius:7px}
.att-spa-scope label{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:600}
.att-spa-scope input, .att-spa-scope select, .att-spa-scope textarea{border:1px solid #CBD5E1;border-radius:8px;background:#fff;padding:10px 12px;outline:none;color:#0F172A;min-width:0;font-size:12px}
.att-spa-scope input:focus, .att-spa-scope select:focus, .att-spa-scope textarea:focus{border-color:var(--purple);box-shadow:0 0 0 3px rgba(37,99,235,0.14)}
.att-spa-scope input[type=checkbox], .att-spa-scope input[type=radio]{accent-color:var(--purple);width:16px;height:16px}
.att-spa-scope h1, .att-spa-scope h2, .att-spa-scope h3, .att-spa-scope p{margin-top:0}
.att-spa-scope h1, .att-spa-scope h2, .att-spa-scope h3{letter-spacing:-0.02em}
.att-spa-scope h1{font-size:28px;margin-bottom:10px}
.att-spa-scope h2{font-size:17px;margin-bottom:0}
.att-spa-scope h3{font-size:14px}
.att-spa-scope .eyebrow{display:none}
.att-spa-scope .brand{display:flex;gap:11px;align-items:center;font-size:20px;font-weight:750;letter-spacing:-.5px}
.att-spa-scope .brand>span:first-child{color:var(--purple)}
.att-spa-scope .local{background:#EFF6FF;color:#1D4ED8;font-size:8px;font-weight:700;padding:5px 7px;border-radius:6px;letter-spacing:.6px}
.att-spa-scope .topbar{height:76px;border-bottom:1px solid var(--border);background:rgba(255,255,255,0.88);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);display:flex;justify-content:space-between;align-items:center;padding:0 4%;gap:15px}
.att-spa-scope .account{display:flex;gap:10px;align-items:center;font-size:12px;flex-wrap:wrap}
.att-spa-scope .account small{display:block;font-size:10px;color:var(--muted);margin-top:4px}
.att-spa-scope .avatar{width:36px;height:36px;background:#EFF6FF;border-radius:50%;display:grid;place-items:center;color:var(--purple);font-weight:700;font-size:14px}
.att-spa-scope main{max-width:1480px;padding:24px 4%;margin:auto}
.att-spa-scope .page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px;flex-wrap:wrap}
.att-spa-scope .page-heading p{color:var(--muted);font-size:13px;margin-bottom:0}
.att-spa-scope .page-heading .eyebrow{display:none}
.att-spa-scope .stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}
.att-spa-scope .stat, .att-spa-scope .panel, .att-spa-scope .employee-panel{border:1px solid var(--border);background:#fff;border-radius:12px;box-shadow:0 1px 2px rgba(15,23,42,0.04)}
.att-spa-scope .stat{padding:18px 20px;transition:transform .2s,border-color .2s,box-shadow .2s}
.att-spa-scope .stat:hover{transform:translateY(-2px);border-color:#93C5FD;box-shadow:0 6px 16px rgba(15,23,42,0.07)}
.att-spa-scope .stat>span{display:block;color:var(--muted);font-size:12px;margin-bottom:10px}
.att-spa-scope .stat strong{font-size:28px;letter-spacing:-0.02em;font-variant-numeric:tabular-nums}
.att-spa-scope .stat.warning strong{color:#F59E0B}
.att-spa-scope .stat.danger strong{color:#EF4444}
.att-spa-scope .panel{margin-bottom:20px}
.att-spa-scope .panel-heading{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:16px 20px;border-bottom:1px solid var(--border);flex-wrap:wrap}
.att-spa-scope .panel-heading>span{font-size:11px;color:var(--muted)}
.att-spa-scope .filter-bar{padding:16px 20px;border-bottom:1px solid var(--border)}
.att-spa-scope .tabs{display:flex;gap:6px;margin-bottom:16px;flex-wrap:wrap}
.att-spa-scope .tabs button{background:transparent;color:#64748B;padding:9px 14px;font-size:12px}
.att-spa-scope .tabs .selected{background:#EFF6FF;color:#2563EB}
.att-spa-scope .filters{display:flex;gap:15px;align-items:flex-end;flex-wrap:wrap}
.att-spa-scope .filters label{font-size:10px;color:#64748B}
.att-spa-scope .filters select{min-width:190px}
.att-spa-scope .check-label{flex-direction:row!important;align-items:center;align-self:center;margin:18px 0 0 5px;font-size:11px!important;cursor:pointer}
.att-spa-scope .table-scroll{overflow:auto}
.att-spa-scope table{width:100%;border-collapse:collapse;font-size:12px;min-width:860px}
.att-spa-scope th{background:#F8FAFC;font-size:10px;color:#64748B;text-align:left;font-weight:650;white-space:nowrap;padding:12px 16px}
.att-spa-scope td{padding:13px 16px;border-top:1px solid #F1F5F9;vertical-align:middle}
.att-spa-scope td small{display:block;font-size:10px;color:var(--muted);line-height:1.6;margin-top:4px;max-width:280px}
.att-spa-scope td b, .att-spa-scope td strong{font-size:12px}
.att-spa-scope .browser-code{font-variant-numeric:tabular-nums;font-size:12px;color:#475569;background:#F1F5F9;padding:3px 6px;border-radius:4px}
.att-spa-scope .primary-br-badge{background:#EFF6FF;color:#1D4ED8;font-weight:700;font-size:11px;padding:4px 8px;border:1px solid #BFDBFE;border-radius:6px}
.att-spa-scope .status{font-size:10px;font-weight:600;background:#eef1f6;color:#5c6b85;border-radius:6px;display:inline-flex;align-items:center;padding:5px 8px;white-space:nowrap;line-height:1.4}
.att-spa-scope .status.success{background:#e7faf3;color:#059669}
.att-spa-scope .status.warning{background:#fff5df;color:#b77909}
.att-spa-scope .status.danger{background:#fff0f4;color:#d92959}
.att-spa-scope .status.project-tag{background:#EFF6FF;color:#1D4ED8;border:1px solid #BFDBFE}
.att-spa-scope .status.overtime-tag{background:#eff6ff;color:#2563eb;border:1px solid #dbeafe}
.att-spa-scope .status.shift-tag{background:#ecfdf5;color:#047857;border:1px solid #a7f3d0}
.att-spa-scope .badges{display:flex;flex-wrap:wrap;gap:5px;max-width:260px}
.att-spa-scope .table-count{font-size:10px;color:var(--muted);padding:12px 18px;margin:0}
.att-spa-scope .empty{text-align:center;padding:50px 20px;font-size:13px;color:var(--muted)}
.att-spa-scope .evidence-note{margin-top:22px;border:1px solid #BFDBFE;background:#EFF6FF;border-radius:12px;padding:17px 20px;line-height:1.8;font-size:11px;color:#1E40AF}
.att-spa-scope .evidence-note strong{display:block;color:#1E3A8A;margin-bottom:3px}
.att-spa-scope .footer{font-size:10px;color:#98a1b3;text-align:center;padding:20px 15px 30px}
.att-spa-scope .error{font-size:12px;color:#e11d48;min-height:15px;margin:10px 0}
.att-spa-scope .loading{text-align:center;padding:100px 20px;color:#66738c}

/* Login (Compact, Mobile-First & Modern) */
.att-spa-scope .login-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:16px;background:radial-gradient(circle at top,#EFF6FF 0%,#F3F5F9 55%,#E2E8F0 100%)}
.att-spa-scope .login-card{width:100%;max-width:370px;padding:24px 22px;background:#fff;border:1px solid #E2E8F0;border-radius:12px;box-shadow:0 12px 36px rgba(15,23,42,0.08)}
.att-spa-scope .login-brand-head{display:flex;align-items:center;gap:12px;margin-bottom:20px;padding-bottom:14px;border-bottom:1px solid #f1f5f9}
.att-spa-scope .login-logo-icon{width:40px;height:40px;border-radius:11px;background:linear-gradient(135deg,#2563EB,#1D4ED8);color:#fff;display:grid;place-items:center;font-size:20px;font-weight:800;box-shadow:0 4px 12px rgba(37,99,235,0.28);flex-shrink:0}
.att-spa-scope .login-brand-head .brand{font-size:18px;gap:8px}
.att-spa-scope .login-sub{display:block;font-size:11.5px;color:#64748b;margin-top:2px;font-weight:500}
.att-spa-scope .login-card label{margin-bottom:13px;font-size:12px;gap:6px;color:#334155}
.att-spa-scope .login-card input{padding:10px 12px;font-size:13.5px;border-radius:8px}
.att-spa-scope .login-submit-btn{width:100%;padding:11px 16px;font-size:13.5px;border-radius:8px;margin-top:2px}
.att-spa-scope .quick-login-box{margin-top:16px;padding-top:14px;border-top:1px dashed #e2e8f0}
.att-spa-scope .quick-login-box>span{display:block;font-size:11px;font-weight:600;color:#64748b;margin-bottom:8px}
.att-spa-scope .quick-login-pills{display:flex;flex-wrap:wrap;gap:6px}
.att-spa-scope .quick-login-pills button{padding:6px 10px;font-size:11.5px;border-radius:8px;background:#f8fafc;border-color:#e2e8f0;color:#334155;flex:1 1 auto;text-align:center}
.att-spa-scope .quick-login-pills button:hover{background:#EFF6FF;border-color:#93C5FD;color:#1D4ED8}

/* Employee 4-button attendance panel */
.att-spa-scope .employee-panel{display:grid;grid-template-columns:300px 1fr;padding:30px;gap:32px;margin-bottom:25px;align-items:center}
.att-spa-scope .time-block{display:flex;justify-content:center;flex-direction:column;border-right:1px solid var(--border);padding-right:24px;height:100%}
.att-spa-scope .time-block>span{font-size:10px;letter-spacing:1px;font-weight:650;color:var(--muted)}
.att-spa-scope .time-block>strong{font-size:46px;font-weight:700;letter-spacing:-1.8px;margin:14px 0;color:#192339}
.att-spa-scope .time-block p{font-size:11px;color:var(--muted);margin:0;line-height:1.6}
.att-spa-scope .emp-browser-box{margin-top:18px;padding:11px 13px;background:#f8fafc;border:1px solid var(--border);border-radius:9px;font-size:11px;line-height:1.7;color:#475569}
.att-spa-scope .emp-browser-box.emp-browser-warn{background:#fffbeb;border-color:#fde68a}
.att-spa-scope .emp-browser-box small{display:block;margin-top:6px;color:#b45309;line-height:1.5}
.att-spa-scope .punch-column{display:flex;flex-direction:column;gap:16px}
.att-spa-scope .shift-choices, .att-spa-scope .project-choices{border:1px solid #DCE3EC;background:#F8FAFC;border-radius:12px;padding:14px 18px;margin:0;transition:.15s}
.att-spa-scope .shift-choices{border-color:#dbeafe;background:#f8fbff}
.att-spa-scope .shift-choices.box-error, .att-spa-scope .project-choices.box-error{border-color:#e11d48;background:#fff5f7;box-shadow:0 0 0 3px #e11d4818}
.att-spa-scope .shift-choices legend, .att-spa-scope .project-choices legend{font-size:11px;color:#3b4968;padding:0 8px;font-weight:600}
.att-spa-scope fieldset.project-choices > label{display:flex;flex-direction:column;gap:6px}
.att-spa-scope fieldset.project-choices > label + label{margin-top:12px}
.att-spa-scope .shift-radio-list, .att-spa-scope .project-checkbox-list{display:flex;flex-wrap:wrap;gap:10px;margin:6px 0 10px}
.att-spa-scope .shift-choice-item, .att-spa-scope .project-choice-item{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:8px;background:#fff;border:1px solid #CBD5E1;border-radius:8px;padding:9px 13px;font-size:12px;cursor:pointer;user-select:none;transition:.12s}
.att-spa-scope .shift-choice-item{border-color:#cbd5e1}
.att-spa-scope .shift-choice-item:hover, .att-spa-scope .project-choice-item:hover{border-color:var(--primary);background:#EFF6FF}
.att-spa-scope .shift-choice-item.shift-locked{opacity:.75;cursor:default}
.att-spa-scope .shift-choice-item input, .att-spa-scope .project-choice-item input{margin:0}
.att-spa-scope .project-hint{display:block;font-size:11px;color:#6c7890;line-height:1.6}
.att-spa-scope .punch-work-note-label{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:6px;margin:10px 0 0;font-size:11px;color:#3b4968;font-weight:600}
.att-spa-scope .punch-work-note-label span{font-weight:400;color:#7b86a3}
.att-spa-scope .punch-work-note-label textarea{width:100%;box-sizing:border-box;min-height:68px;resize:vertical;font-size:13px;line-height:1.45}
.att-spa-scope .mobile-record-work-note{margin:8px 0;padding:9px 11px;border-radius:9px;background:#f8f7fc;color:#46516d;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.att-spa-scope .punch-actions{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.att-spa-scope .punch-button{padding:20px;text-align:left;border:1px solid #BFDBFE;background:#EFF6FF;color:#1D4ED8;border-radius:12px}
.att-spa-scope .punch-button.overtime{background:#F0FDFA;border-color:#99F6E4;color:#0F766E}
.att-spa-scope .punch-icon{font-size:20px;display:block;margin-bottom:8px}
.att-spa-scope .punch-button strong{display:block;font-size:15px;margin-bottom:6px}
.att-spa-scope .punch-button small{color:#7c869b;font-size:11px;font-weight:400;display:block;line-height:1.4}

/* Approval & Feedback UI */
.att-spa-scope .alert-panel{border-color:#fda4af;background:#fffafb}
.att-spa-scope .waiting-list{padding:18px 23px;display:grid;gap:14px}
.att-spa-scope .waiting-card{border:1px solid #fecdd3;background:#fff;border-radius:11px;padding:16px 18px;display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}
.att-spa-scope .waiting-info{display:grid;gap:8px;font-size:12px}
.att-spa-scope .waiting-info>div:first-child{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.att-spa-scope .waiting-projects{font-size:11px;color:#1D4ED8;background:#EFF6FF;border:1px solid #BFDBFE;padding:3px 8px;border-radius:5px;font-weight:600}
.att-spa-scope .waiting-detail{color:#475569;line-height:1.7}
.att-spa-scope .highlight-text{color:#e11d48;font-weight:700}
.att-spa-scope .waiting-actions{display:flex;gap:10px;flex-wrap:wrap}
.att-spa-scope .approval-notes{margin-top:6px;display:grid;gap:3px;font-size:11px;color:#475569;line-height:1.5;max-width:330px}
.att-spa-scope .note-line.highlight{color:#be123c}
.att-spa-scope .note-line.emp-note{color:#1d4ed8;background:#eff6ff;padding:4px 7px;border-radius:5px}
.att-spa-scope .emp-counter-banner{background:#eff6ff;border:1px solid #bfdbfe;border-radius:9px;padding:12px 15px;margin-bottom:16px;font-size:12px;color:#1e3a8a}
.att-spa-scope .emp-counter-banner p{margin:5px 0 0}
.att-spa-scope .row-countered{background:#fffbeb}
.att-spa-scope .orig-time{color:#d97706!important;font-weight:600}
.att-spa-scope .row-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.att-spa-scope .approve-btn{background:#059669}
.att-spa-scope .warn-btn{border-color:#f59e0b;color:#b45309;background:#fffbeb}
.att-spa-scope .danger-btn{color:#e11d48;border-color:#fecdd3}
.att-spa-scope .danger-btn:hover{background:#fff1f2}
.att-spa-scope .muted-dash{color:#b0b8c9}

/* Role badges & Member management table */
.att-spa-scope .role-pill{display:inline-flex;align-items:center;gap:5px;padding:5px 10px;border-radius:999px;font-size:11px;font-weight:650;white-space:nowrap}
.att-spa-scope .role-admin{background:#ffe4e8;color:#be123c}
.att-spa-scope .role-manager{background:#fef3c7;color:#b45309}
.att-spa-scope .role-assistant{background:#e0f2fe;color:#0369a1}
.att-spa-scope .role-member{background:#F1F5F9;color:#334155}
.att-spa-scope .members-table th, .att-spa-scope .members-table td{padding:12px 11px;white-space:nowrap}
.att-spa-scope .member-name{display:block;font-size:13px;color:#1e293b}
.att-spa-scope .member-dept{display:block;font-size:11px;color:#64748b;margin-top:2px}
.att-spa-scope .member-email{color:#334155;font-size:12px}
.att-spa-scope .browser-allow-cell{display:inline-flex;align-items:center;gap:6px;flex-wrap:nowrap;white-space:nowrap}
.att-spa-scope .newer-br-hint{display:block;color:#d97706!important;font-size:10px;margin-top:3px}
.att-spa-scope .pwd-cell{display:inline-flex;align-items:center;gap:6px;flex-wrap:nowrap;white-space:nowrap}
.att-spa-scope .pwd-mask{font-variant-numeric:tabular-nums;font-size:12px;background:#f1f5f9;color:#1e293b;padding:4px 8px;border-radius:6px;min-width:72px;text-align:center;font-weight:600}
.att-spa-scope .members-table .row-actions{flex-wrap:nowrap;white-space:nowrap;gap:5px}
.att-spa-scope .members-table .small{padding:6px 9px;font-size:11px;white-space:nowrap}
.att-spa-scope .self-tag{font-size:11px;color:#94a3b8;padding:0 4px;white-space:nowrap}

/* Inline Add Bars for Projects & Members */
.att-spa-scope .inline-add-bar{display:grid;grid-template-columns:1.4fr 1fr auto auto;gap:14px;padding:18px 23px;background:#F8FAFC;border-bottom:1px solid var(--border);align-items:flex-end}
.att-spa-scope .inline-form-btns{display:flex;gap:8px;align-items:center}
.att-spa-scope .users-top-actions{display:flex;justify-content:flex-end;align-items:center;padding:16px 23px;background:#F8FAFC;border-bottom:1px solid var(--border)}
.att-spa-scope .user-modal-stack{display:flex;flex-direction:column;gap:16px}
.att-spa-scope .user-modal-stack label{margin:0!important;font-size:13px;font-weight:650;color:#334155}
.att-spa-scope .user-modal-stack input, .att-spa-scope .user-modal-stack select{margin-top:8px;padding:12px 14px;border-radius:11px;font-size:14px;border:1px solid #cbd5e1;color:#1e293b}
.att-spa-scope .dept-field-group{display:flex;flex-direction:column;gap:10px}
.att-spa-scope .dept-btn-row{display:flex;gap:8px}
.att-spa-scope .dept-add-trigger{flex:1;padding:10px 12px;border-radius:11px;font-size:13px;font-weight:650;color:#475569;border:1px solid #e2e8f0;background:#fff;text-align:center}
.att-spa-scope .dept-add-trigger:hover{background:#f8fafc;border-color:#cbd5e1}
.att-spa-scope .dept-del-trigger{padding:10px 13px;border-radius:11px;font-size:12.5px;font-weight:650;white-space:nowrap}
.att-spa-scope .new-dept-inline-box{display:flex;gap:8px;align-items:center}
.att-spa-scope .new-dept-inline-box input{margin:0!important;flex:1}
.att-spa-scope .admin-quick-grids{display:grid;gap:24px;margin-top:24px}

/* Dialog */
.att-spa-scope .overlay{position:fixed;inset:0;background:#18213c60;z-index:50;display:flex;align-items:center;justify-content:center;padding:22px}
.att-spa-scope .dialog{background:#fff;border-radius:12px;width:760px;max-width:100%;max-height:calc(100dvh - 32px);overflow:auto;box-shadow:0 20px 60px rgba(15,23,42,.22)}
.att-spa-scope .dialog>header{display:flex;justify-content:space-between;align-items:center;padding:22px 24px;border-bottom:1px solid var(--border);gap:14px}
.att-spa-scope .dialog h2{font-size:18px}
.att-spa-scope .dialog-body{padding:24px}
.att-spa-scope .dialog dl{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:16px 0 22px;background:#F8FAFC;padding:16px;border-radius:10px;border:1px solid var(--border)}
.att-spa-scope .dialog dt{font-size:10px;color:var(--muted);margin-bottom:5px}
.att-spa-scope .dialog dd{font-size:12px;margin:0;line-height:1.6}
.att-spa-scope .dialog details{font-size:11px;color:#7c879b;line-height:1.8;margin-bottom:20px}
.att-spa-scope .dialog summary{cursor:pointer}
.att-spa-scope .ua{word-break:break-all;font-size:10px}
.att-spa-scope .history{border:1px solid var(--border);border-radius:9px;max-height:220px;overflow:auto;margin-bottom:20px}
.att-spa-scope .history article{display:grid;grid-template-columns:1.1fr 1fr 1.4fr;gap:12px;font-size:11px;padding:12px 14px;border-bottom:1px solid #f1f3f9;line-height:1.5}
.att-spa-scope .history article:last-child{border:0}
.att-spa-scope .history article>span:first-child{color:var(--muted);font-size:10px}
.att-spa-scope .dialog form label{margin-top:14px}
.att-spa-scope .dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:18px;flex-wrap:wrap}
.att-spa-scope .project-group-dialog{border:1px solid var(--border);padding:0;width:min(440px,calc(100vw - 32px));margin:auto;color:inherit}
.att-spa-scope .project-group-dialog::backdrop{background:#18213c60}
.att-spa-scope .capture-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.att-spa-scope #toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%) translateY(15px);background:#222d45;color:#fff;border-radius:10px;padding:13px 22px;font-size:12px;opacity:0;pointer-events:none;transition:.2s;z-index:100;max-width:90%;text-align:center}
.att-spa-scope #toast.visible{opacity:1;transform:translateX(-50%) translateY(0)}

/* Web Left Sidebar (Admin, Manager, Assistant) */
.att-spa-scope .workspace-body{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:calc(100vh - 82px)}
.att-spa-scope .sidebar{background:#fff;border-right:1px solid var(--border);padding:22px 14px}
.att-spa-scope .side-nav{display:flex;flex-direction:column;gap:6px;position:sticky;top:22px}
.att-spa-scope .side-nav-item{display:flex;align-items:center;gap:13px;width:100%;padding:12px 15px;border-radius:11px;background:transparent;color:#5c6880;font-size:13.5px;font-weight:600;text-align:left}
.att-spa-scope .side-nav-item svg{color:#64748b;flex-shrink:0}
.att-spa-scope .side-nav-item:hover{background:#f8fafc;color:#1e293b}
.att-spa-scope .side-nav-item.active{background:#EFF6FF;color:var(--primary);font-weight:700}
.att-spa-scope .side-nav-item.active svg{color:var(--purple)}
.att-spa-scope .main-area{max-width:1380px;width:100%;padding:28px 34px;margin:0 auto}

/* Mobile Phone Shell (Employee Account) */
.att-spa-scope .mobile-viewport{min-height:100vh;background:#eef1f8;display:flex;justify-content:center;padding:0}
.att-spa-scope .mobile-shell{width:100%;max-width:460px;min-height:100vh;background:#f6f7fb;display:flex;flex-direction:column;box-shadow:0 0 40px #0f172a14;border-left:1px solid #e2e8f0;border-right:1px solid #e2e8f0}
.att-spa-scope .mobile-topbar{background:#fff;padding:12px 16px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;gap:10px;position:sticky;top:0;z-index:20}
.att-spa-scope .mobile-user{display:flex;align-items:center;gap:10px;min-width:0}
.att-spa-scope .mobile-user strong{display:block;font-size:13.5px;color:#1e293b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.att-spa-scope .mobile-user small{display:block;font-size:11px;color:#64748b;margin-top:2px}
.att-spa-scope .mobile-top-actions{display:flex;gap:6px;flex-shrink:0}
.att-spa-scope .mobile-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px 14px;background:#fff;border-bottom:1px solid var(--border);position:sticky;top:61px;z-index:19}
.att-spa-scope .mobile-tab-btn{display:flex;align-items:center;justify-content:center;gap:8px;padding:11px 12px;border-radius:10px;background:#f1f5f9;color:#475569;font-size:13px;font-weight:650}
.att-spa-scope .mobile-tab-btn.active{background:var(--primary);color:#fff;box-shadow:0 2px 6px rgba(29,78,216,0.22)}
.att-spa-scope .mobile-main{padding:14px;display:flex;flex-direction:column;gap:14px;flex:1}
.att-spa-scope .mobile-clock-card{background:linear-gradient(135deg,#FFFFFF 0%,#EFF6FF 100%);border:1px solid #BFDBFE;border-radius:14px;padding:16px;text-align:center}
.att-spa-scope .mobile-clock-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;font-size:10px;font-weight:700;color:#64748b}
.att-spa-scope .mobile-clock-card strong{display:block;font-size:38px;font-weight:800;letter-spacing:-1.5px;color:#192339;margin:4px 0}
.att-spa-scope .mobile-clock-card small{font-size:11px;color:#1D4ED8;font-weight:600}
.att-spa-scope .mobile-card{background:#fff;border:1px solid var(--border);border-radius:15px;padding:15px}
.att-spa-scope .mobile-card-title{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid #f1f5f9}
.att-spa-scope .mobile-card-title h2{font-size:14.5px;margin:0}
.att-spa-scope .mobile-card-title span{font-size:11px;color:var(--muted)}
.att-spa-scope .mobile-shift-grid{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important}
.att-spa-scope .mobile-shift-grid .shift-choice-item{width:100%;padding:10px 11px;font-size:11.5px}
.att-spa-scope .mobile-punch-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.att-spa-scope .mobile-punch-actions .punch-button{padding:15px 13px;border-radius:13px}
.att-spa-scope .mobile-punch-actions .punch-button strong{font-size:14px;margin-bottom:4px}
.att-spa-scope .mobile-record-list{display:flex;flex-direction:column;gap:10px;max-height:255px;overflow-y:auto;padding-right:4px;scroll-snap-type:y mandatory;-webkit-overflow-scrolling:touch}
.att-spa-scope .mobile-record-card{border:1px solid #eef2f7;background:#fafbfe;border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:8px;scroll-snap-align:start;flex-shrink:0}
.att-spa-scope .mobile-record-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.att-spa-scope .mobile-record-head strong{font-size:13.5px;color:#1e293b;margin-right:6px}
.att-spa-scope .mobile-record-time{text-align:right;line-height:1.3}
.att-spa-scope .mobile-record-time b{display:block;font-size:13px;color:#1e293b}
.att-spa-scope .mobile-record-time small{font-size:10.5px;color:#64748b}
.att-spa-scope .mobile-record-row{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11.5px;color:#475569;flex-wrap:wrap}
.att-spa-scope .mobile-record-notes{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:8px 10px}
.att-spa-scope .mobile-record-actions{display:flex;gap:8px;margin-top:4px}

@media(max-width:1100px){
  .att-spa-scope .workspace-body{grid-template-columns:1fr}
  .att-spa-scope .sidebar{border-right:0;border-bottom:1px solid var(--border);padding:10px 14px;position:sticky;top:0;z-index:20}
  .att-spa-scope .side-nav{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;position:static}
  .att-spa-scope .side-nav-item{justify-content:center;padding:10px 8px;font-size:12.5px;white-space:nowrap}
  .att-spa-scope .main-area{padding:20px 16px}
  .att-spa-scope .inline-add-bar{grid-template-columns:1fr 1fr}
}
@media(max-width:768px){
  .att-spa-scope .topbar{height:auto;padding:12px 14px;gap:10px}
  .att-spa-scope .brand{font-size:17px;gap:7px}
  .att-spa-scope .local{display:none}
  .att-spa-scope .account{gap:8px}
  .att-spa-scope .account button{padding:7px 11px;font-size:11.5px}
  .att-spa-scope .side-nav-item{flex-direction:column;gap:4px;padding:8px 4px;font-size:11px;text-align:center}
  .att-spa-scope .main-area{padding:14px 12px}
  .att-spa-scope .page-heading{margin-bottom:16px;gap:10px}
  .att-spa-scope .page-heading h1{font-size:21px;margin-bottom:4px}
  .att-spa-scope .page-heading p{font-size:12px}
  .att-spa-scope .stats{display:flex;overflow-x:auto;gap:10px;padding-bottom:6px;margin-bottom:16px;-webkit-overflow-scrolling:touch;scroll-snap-type:x mandatory}
  .att-spa-scope .stat{min-width:175px;flex:0 0 auto;scroll-snap-align:start;padding:14px 16px}
  .att-spa-scope .stat strong{font-size:24px}
  .att-spa-scope .filter-bar{padding:14px}
  .att-spa-scope .filters{flex-direction:column;align-items:stretch;gap:10px}
  .att-spa-scope .filters select, .att-spa-scope .filters input{width:100%}
  .att-spa-scope .check-label{margin:4px 0 0}
  .att-spa-scope .table-scroll{-webkit-overflow-scrolling:touch}
  .att-spa-scope .punch-actions, .att-spa-scope .inline-add-bar, .att-spa-scope .capture-grid, .att-spa-scope .dialog dl, .att-spa-scope .mobile-shift-grid{grid-template-columns:1fr!important}
  .att-spa-scope .overlay{padding:10px}
  .att-spa-scope .dialog{width:100%!important;max-height:94vh;border-radius:14px}
  .att-spa-scope .dialog>header, .att-spa-scope .dialog-body{padding:16px}
  .att-spa-scope .login-shell{padding:14px}
  .att-spa-scope .login-card{padding:20px 16px;border-radius:16px}
}

/* Combined Vào - Ra & OT badges */
.att-spa-scope .time-range-cell{display:flex;flex-direction:column;gap:3px;font-size:12.5px;margin-bottom:4px}
.att-spa-scope .br-pair-list{display:flex;flex-direction:column;gap:3px;margin-top:4px;font-size:11.5px}
.att-spa-scope .br-mismatch{background:#fef2f2!important;color:#dc2626!important;border:1px solid #fecaca!important;font-weight:700}
.att-spa-scope .time-tag-lbl{display:inline-block;min-width:30px;color:#64748b;font-weight:600;font-size:11.5px}
.att-spa-scope .time-pair-inline{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12px;color:#1e293b}
.att-spa-scope .arrow-sep{color:#94a3b8;font-weight:700}
.att-spa-scope .ot-badges-wrap{display:flex;flex-wrap:wrap;gap:5px;margin-top:5px}
.att-spa-scope .ot-day-pill{background:#fef3c7!important;color:#b45309!important;border:1px solid #fde68a;font-weight:600}
.att-spa-scope .ot-night-pill{background:#E0F2FE!important;color:#0369A1!important;border:1px solid #BAE6FD;font-weight:600}
.att-spa-scope .ot-preview-box{background:#f8fafc;border:1.5px solid #cbd5e1;border-radius:10px;padding:12px 14px;margin:6px 0 12px;display:flex;flex-direction:column;gap:8px}
.att-spa-scope .ot-preview-head{font-size:12px;font-weight:700;color:#334155}
.att-spa-scope .ot-preview-values{display:flex;flex-wrap:wrap;gap:8px}

/* Monthly Excel-style Tables (OT Ngày, OT Đêm, Bảng công dự án) */
.att-spa-scope .monthly-sheets-wrapper{padding:18px 20px;display:flex;flex-direction:column;gap:22px}
.att-spa-scope .sheet-filter-bar{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;flex-wrap:wrap;padding-bottom:14px;border-bottom:1px solid #e2e8f0}
.att-spa-scope .sheet-filter-group{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap}
.att-spa-scope .sheet-filter-group label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:600;color:#475569}
.att-spa-scope .sheet-filter-group input[type=month], .att-spa-scope .sheet-filter-group select{height:36px;padding:8px 11px;border:1px solid #cbd5e1;border-radius:8px;font-size:13px;background:#fff;color:#0f172a}
.att-spa-scope .sheet-subtabs{display:flex;gap:6px;flex-wrap:wrap}
.att-spa-scope .sheet-filter-group #sheet-employee-filter{min-width:190px;max-width:260px}
.att-spa-scope .sheet-export-button{height:36px;padding:8px 14px;white-space:nowrap;align-self:flex-end}
.att-spa-scope .sheet-subtabs button{height:36px}
.att-spa-scope .sheet-subtabs .active-subtab{background:#2563EB!important;color:#fff!important;border-color:#2563EB!important}
.att-spa-scope .sheet-block{display:flex;flex-direction:column;gap:10px}
.att-spa-scope .sheet-block-header{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.att-spa-scope .sheet-block-header h3{margin:0;font-size:15px;color:#0f172a}
.att-spa-scope .sheet-legend{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#475569;margin-top:4px}
.att-spa-scope .legend-box{display:inline-flex;align-items:center;justify-content:center;width:22px;height:18px;border:1px solid #64748b;font-weight:700;font-size:11px;border-radius:3px}
.att-spa-scope .legend-box.night-sample{background:#f8cbad;color:#1e293b}
.att-spa-scope .sheet-scroll{overflow-x:auto;border:1px solid #64748b;border-radius:6px;background:#fff}
.att-spa-scope .sheet-scroll .excel-sheet-table thead{position:sticky;top:0;z-index:4;background:#fff}
.att-spa-scope .excel-sheet-table{table-layout:fixed;border-collapse:collapse;font-size:12px;font-family:var(--font-family);font-variant-numeric:tabular-nums}
.att-spa-scope .excel-sheet-table th, .att-spa-scope .excel-sheet-table td{border:1px solid #64748b;padding:5px 6px;white-space:nowrap}
.att-spa-scope .sheet-th-green{background:#047857!important;color:#fff!important;font-weight:700;text-align:center;vertical-align:middle;font-size:12.5px}
.att-spa-scope .sheet-th-day{background:#fff!important;color:#0f172a!important;font-weight:700;text-align:center;min-width:34px;font-size:11.5px;padding:4px 3px!important}
.att-spa-scope .sheet-th-dow{background:#f8fafc!important;color:#0f172a!important;font-weight:700;text-align:center;font-size:11.5px;padding:4px 3px!important}
.att-spa-scope .sheet-th-dow.is-sun{background:#fef2f2!important;color:#b91c1c!important}
.att-spa-scope .sheet-th-total{background:#E2E8F0!important;color:#0f172a!important;font-weight:700;text-align:center;vertical-align:middle;font-size:12.5px}
.att-spa-scope .sheet-td-center{text-align:center;color:#0f172a;font-weight:500}
.att-spa-scope .sheet-td-code{text-align:center;color:#0f172a;font-weight:600}
.att-spa-scope .sheet-td-name{text-align:left;color:#0f172a;font-weight:500;padding-left:8px!important}
.att-spa-scope .sheet-cell{text-align:center;color:#0f172a;min-width:34px;padding:5px 3px!important}
.att-spa-scope .sheet-cell.has-val{font-weight:600}
.att-spa-scope .sheet-cell-night{background:#f8cbad!important;color:#0f172a!important;font-weight:700}
.att-spa-scope .sheet-td-total{text-align:center;font-weight:700;color:#0f172a;background:#F8FAFC}

/* Keep management approval table compact, crisp & uniformly typed without horizontal scroll on desktop. */
.att-spa-scope .workspace-body main, .att-spa-scope .workspace-main, .att-spa-scope .panel, .att-spa-scope #records-table{min-width:0;max-width:100%}
.att-spa-scope .attendance-scroll{max-width:100%;max-height:560px;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable;overscroll-behavior:contain}
.att-spa-scope .attendance-table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse;font-family:var(--font-family);font-size:13px;line-height:1.45;font-variant-numeric:tabular-nums;color:var(--text-primary,#0F172A)}
.att-spa-scope .attendance-table thead th{position:sticky;top:0;z-index:3;background:#F8FAFC;box-shadow:0 1px 0 var(--border);font-size:12px;font-weight:700;color:var(--text-secondary,#475569);line-height:1.35;white-space:normal;padding:11px 10px}
.att-spa-scope .attendance-table th, .att-spa-scope .attendance-table td{padding:11px 10px;vertical-align:top;min-width:0;overflow-wrap:anywhere;word-break:break-word}
.att-spa-scope .attendance-table td{font-size:13px;line-height:1.45;color:var(--text-primary,#0F172A)}
.att-spa-scope .attendance-table td b, .att-spa-scope .attendance-table td strong{font-size:13px;font-weight:600;color:var(--text-primary,#0F172A)}
.att-spa-scope .attendance-table td small{font-size:12px;font-weight:400;line-height:1.45;color:var(--text-secondary,#64748B);margin-top:3px;max-width:none}
.att-spa-scope .attendance-table td:first-child{white-space:nowrap}
.att-spa-scope .attendance-table .att-shift-line{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-bottom:2px}
.att-spa-scope .attendance-table .att-shift-line small{margin-top:0;font-family:var(--font-family);font-size:12.5px;font-weight:400;line-height:1.5;color:var(--text-secondary,#475569)}
.att-spa-scope .attendance-table .att-shift-line small b{font-family:var(--font-family);font-size:12.5px;font-weight:600;color:var(--text-primary,#0F172A);white-space:nowrap}
.att-spa-scope .att-shift-tags{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-bottom:6px}
.att-spa-scope .att-shift-tags .status{margin-bottom:0}
.att-spa-scope .attendance-table .ot-total{margin-top:3px;font-family:var(--font-family);font-size:12.5px;font-weight:400;line-height:1.5;color:var(--text-secondary,#475569)}
.att-spa-scope .attendance-table .ot-total b{font-family:var(--font-family);font-size:12.5px;font-weight:600;color:var(--text-primary,#0F172A)}
.att-spa-scope .attendance-table .row-actions{align-items:stretch;min-width:0;max-width:100%;flex-direction:column;gap:6px;margin-top:4px}
.att-spa-scope .attendance-table .row-actions button,
.att-spa-scope .attendance-table .approval-notes button,
.att-spa-scope .attendance-table [data-detail]{white-space:normal;text-align:center;line-height:1.3;padding:6px 10px;font-size:12px;font-weight:600;border-radius:7px;max-width:100%}
.att-spa-scope .attendance-table .approval-notes{display:flex;flex-direction:column;align-items:flex-start;gap:5px;margin-top:5px;font-size:12px;line-height:1.45}
.att-spa-scope .attendance-table .approval-notes small{margin-top:0;font-size:12px}
.att-spa-scope .attendance-table .browser-code{display:inline-block;white-space:nowrap;font-size:11.5px;font-weight:600;padding:2px 6px;max-width:100%}
.att-spa-scope .attendance-table .time-range-cell, .att-spa-scope .attendance-table .br-pair-list{white-space:normal;font-family:var(--font-family);font-size:12.5px;font-weight:400;line-height:1.5;color:var(--text-secondary,#475569)}
.att-spa-scope .attendance-table .time-range-cell b{font-family:var(--font-family);font-size:12.5px;font-weight:600;color:var(--text-primary,#0F172A)}
.att-spa-scope .attendance-table .time-tag-lbl{display:inline;min-width:0;font-family:var(--font-family);font-size:12.5px;font-weight:400;color:var(--text-secondary,#475569)}
.att-spa-scope .attendance-table .status,
.att-spa-scope .status.project-tag{white-space:normal;overflow-wrap:anywhere;word-break:break-word;text-align:left;max-width:100%;font-size:11.5px;font-weight:600;padding:3px 8px;border-radius:6px;line-height:1.35;height:auto}
.att-spa-scope .attendance-table .status{margin-bottom:4px}
.att-spa-scope .attendance-table .photo-pair{gap:6px}
.att-spa-scope .attendance-table .photo-thumb{width:46px;height:46px}
.att-spa-scope .attendance-table .punch-locations{font-size:11.5px;line-height:1.4;color:var(--text-secondary,#475569);overflow-wrap:anywhere}
.att-spa-scope .attendance-table .punch-locations small{font-size:11.5px;margin-top:2px}
.att-spa-scope .project-checkbox-list.project-other-list{max-height:none!important;overflow-y:visible!important;margin-top:6px!important}
@media (max-width: 1024px) {
  .att-spa-scope .attendance-scroll{overflow-x:auto}
  .att-spa-scope .attendance-table{min-width:900px}
}
.att-spa-scope .makeup-proj-box:has(.punch-proj-inline-panel:not([hidden])){max-height:none;overflow-y:visible}
.att-spa-scope .ot-badges-wrap{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-top:8px}
.att-spa-scope .ot-badges-wrap .status{gap:4px;margin:0}
.att-spa-scope .ot-total{display:block;margin-top:8px;font-size:12px;color:#43516b}
.att-spa-scope .test-record{background:#fff4df;color:#98620d;margin:4px 0}

/* One scale and spacing system for both employee tabs. */
.att-spa-scope .mobile-shell{font-size:14px;line-height:1.5;min-width:0}
.att-spa-scope .mobile-shell .mobile-main{padding:16px;gap:16px;min-width:0}
.att-spa-scope .mobile-shell .mobile-card, .att-spa-scope .mobile-shell .mobile-clock-card{padding:16px;border-radius:16px;min-width:0}
.att-spa-scope .mobile-shell .mobile-card-title h2{font-size:16px;line-height:1.4}
.att-spa-scope .mobile-shell .mobile-card-title>span{font-size:12px;white-space:nowrap}
.att-spa-scope .mobile-shell .mobile-record-card{padding:14px;gap:12px}
.att-spa-scope .mobile-shell .mobile-record-head strong{font-size:14px;line-height:1.5}
.att-spa-scope .mobile-shell .mobile-record-time small{font-size:12px;white-space:nowrap}
.att-spa-scope .mobile-shell .mobile-record-row{font-size:13px;line-height:1.6;min-width:0;gap:8px}
.att-spa-scope .mobile-shell .mobile-record-row:has(.ot-badges-wrap){display:block}
.att-spa-scope .mobile-shell .mobile-record-row>.time-pair-inline{white-space:nowrap;overflow-x:auto;max-width:100%;font-size:13px}
.att-spa-scope .mobile-shell .status{font-size:11px;line-height:1.5}
.att-spa-scope .mobile-shell .mobile-clock-top{gap:8px;align-items:flex-start}
.att-spa-scope .mobile-shell .mobile-clock-top>span:first-child{font-size:12px;white-space:nowrap}
.att-spa-scope .mobile-shell .mobile-clock-top>.status{white-space:normal;text-align:right}
.att-spa-scope .mobile-shell #live-clock{font-size:34px;line-height:1.15;font-variant-numeric:tabular-nums;margin:6px 0 2px}
.att-spa-scope .mobile-shell .mobile-clock-card>small{font-size:11.5px;display:block}
.att-spa-scope .mobile-shell .mobile-punch-actions, .att-spa-scope .mobile-shell .mobile-shift-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
.att-spa-scope .mobile-shell .mobile-shift-grid .shift-choice-item{font-size:12px;padding:9px 8px;min-height:42px;gap:6px}
.att-spa-scope .mobile-shell .mobile-punch-actions .punch-button{min-height:74px;padding:12px 14px;display:flex;align-items:center;gap:10px}
.att-spa-scope .mobile-shell .mobile-punch-actions .punch-button .punch-icon{margin:0;font-size:18px;width:34px;height:34px;border-radius:9px;background:#DBEAFE;color:#1D4ED8;display:grid;place-items:center;flex-shrink:0}
.att-spa-scope .mobile-shell .mobile-punch-actions .punch-button.overtime .punch-icon{background:#CCFBF1;color:#0F766E}
.att-spa-scope .mobile-shell .mobile-punch-actions .punch-button strong{font-size:14px;line-height:1.3;margin:0}
.att-spa-scope .mobile-shell .mobile-punch-actions .punch-button span{font-size:12px;line-height:1.5}
.att-spa-scope .mobile-shell .ot-total{font-size:13px;margin-top:10px}
.att-spa-scope .test-clock-badge{display:inline-block;padding:4px 9px;border-radius:6px;background:#edf1f7;color:#59677d;font-size:10px;font-weight:700;margin-bottom:8px}
.att-spa-scope .test-clock-badge.is-test{background:#fff0d0;color:#936000}
.att-spa-scope .test-clock-tools{border-top:1px solid #E2E8F0;margin-top:14px;padding-top:14px;text-align:left}
.att-spa-scope .test-clock-tools label{font-size:12px;color:#4e5871}
.att-spa-scope .test-clock-tools input{width:100%;min-height:44px;font-size:16px;font-variant-numeric:tabular-nums;padding:9px}
.att-spa-scope .test-clock-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.att-spa-scope .test-clock-buttons button{font-size:12px;min-height:42px;padding:8px}
.att-spa-scope .test-clock-tools p, .att-spa-scope .clock-help{font-size:12px;line-height:1.6;color:#69758b;margin:10px 0 0}
.att-spa-scope label[hidden]{display:none!important}
@media(max-width:360px){
  .att-spa-scope .mobile-shell .mobile-main{padding:10px;gap:12px}
  .att-spa-scope .mobile-shell .mobile-card, .att-spa-scope .mobile-shell .mobile-clock-card{padding:12px}
  .att-spa-scope .mobile-shell .mobile-shift-grid{grid-template-columns:1fr!important}
}
/* Alternating work calendar: scroll the grid, keep forms readable on phones. */
.att-spa-scope .roster-panel{ padding:20px; margin-bottom:20px; min-width:0; }
.att-spa-scope .header-nav{ display:flex; align-items:center; gap:8px; padding:10px 24px; background:#fff; border-bottom:1px solid var(--border); overflow-x:auto; }
.att-spa-scope .header-nav #switch-to-emp{ margin-left:auto; flex:0 0 auto; white-space:nowrap; }
.att-spa-scope .header-nav .side-nav-item{ flex:0 0 auto; width:auto; white-space:nowrap; padding:11px 18px; }
.att-spa-scope .workspace-body.workspace-header-layout{ display:block; width:100%; }
.att-spa-scope .workspace-header-layout .main-area{ width:100%; max-width:none; margin-left:0; min-width:0; box-sizing:border-box; }
@media(max-width:600px) { .att-spa-scope .header-nav{ padding:8px 12px; gap:6px; } .att-spa-scope .header-nav .side-nav-item{ padding:10px 12px; font-size:13px; } }
.att-spa-scope .roster-toolbar{ display:flex; gap:16px; align-items:flex-end; flex-wrap:wrap; }
.att-spa-scope .roster-toolbar label{ min-width:180px; }
.att-spa-scope .roster-hint{ color:#75809a; font-size:13px; margin:14px 0; line-height:1.6; }
.att-spa-scope .roster-scroll{ overflow:auto; max-height:65vh; border:1px solid #e2e5ef; border-radius:10px; }
.att-spa-scope .roster-table{ border-collapse:separate; border-spacing:0; width:max-content; min-width:100%; font-size:13px; }
.att-spa-scope .roster-table th, .att-spa-scope .roster-table td{ padding:7px; border-right:1px solid #e2e5ef; border-bottom:1px solid #e2e5ef; white-space:nowrap; }
.att-spa-scope .roster-table th{ background:#F8FAFC; text-align:center; }
.att-spa-scope .roster-table thead th{ position:sticky; top:0; z-index:2; }
.att-spa-scope .roster-table tr>th:first-child{ position:sticky; left:0; z-index:1; min-width:180px; text-align:left; }
.att-spa-scope .roster-table thead th:first-child{ z-index:3; }
.att-spa-scope .roster-table small, .att-spa-scope .roster-request small{ display:block; font-weight:400; font-size:12px; color:#75809a; margin-top:4px; }
.att-spa-scope .roster-day{ position:relative; display:inline-flex; align-items:center; justify-content:center; gap:2px; width:44px; min-height:36px; padding:4px; border:1px solid transparent; border-radius:6px; font-weight:700; font-size:12px; }
.att-spa-scope .roster-day.work{ background:#e7f8ef; color:#087b4f; }
.att-spa-scope .roster-day.rest{ background:#DBEAFE; color:#1E40AF; border-color:#93C5FD; }
.att-spa-scope .roster-day.unassigned{ background:#fff6da; color:#946000; }
.att-spa-scope .roster-day.is-fixed{ opacity:0.78; cursor:default; }
.att-spa-scope .roster-day.is-editable{ cursor:pointer; border-color:rgba(37,99,235,0.28); }
.att-spa-scope .roster-day.is-editable:hover{ border-color:#2563EB; transform:translateY(-1px); }
.att-spa-scope .roster-day.is-locked{ cursor:pointer; border-color:rgba(8,123,79,0.45); }
.att-spa-scope .roster-day.is-locked:hover{ border-color:#2563EB; transform:translateY(-1px); }
.att-spa-scope .roster-log-scroll{ overflow-x:auto; max-height:42vh; border:1px solid #e2e5ef; border-radius:10px; max-width:100%; }
.att-spa-scope .roster-log-table{ border-collapse:separate; border-spacing:0; width:100%; min-width:680px; font-size:12.5px; }
.att-spa-scope .roster-log-table th, .att-spa-scope .roster-log-table td{ padding:9px 10px; border-bottom:1px solid #eef0f6; text-align:left; vertical-align:middle; }
.att-spa-scope .roster-log-table thead th{ position:sticky; top:0; z-index:1; background:#F8FAFC; font-weight:700; color:#475569; border-bottom:1px solid #e2e5ef; white-space:nowrap; }
.att-spa-scope .roster-log-type{ display:inline-block; padding:3px 8px; border-radius:6px; font-size:11px; font-weight:700; background:#f1f5f9; color:#475569; white-space:nowrap; }
.att-spa-scope .roster-log-type.edit_locked{ background:#fef3c7; color:#b45309; border:1px solid #fcd34d; }
.att-spa-scope .roster-log-type.custom_schedule{ background:#EFF6FF; color:#1D4ED8; border:1px solid #BFDBFE; }
.att-spa-scope .roster-log-type.approve_request{ background:#dcfce7; color:#15803d; border:1px solid #86efac; }
.att-spa-scope .roster-day.is-staged{ border:2px dashed #2563EB!important; box-shadow:0 0 0 2px rgba(37,99,235,0.14); }
.att-spa-scope .roster-day.has-pending{ box-shadow:0 0 0 2px #f59e0b; }
.att-spa-scope .roster-day .lock-dot{ font-style:normal; font-size:9px; opacity:0.85; }
.att-spa-scope .roster-day .draft-dot{ font-style:normal; font-size:12px; font-weight:900; color:#2563EB; line-height:1; }
.att-spa-scope .roster-staged-banner{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:12px; padding:10px 14px; border-radius:10px; background:#EFF6FF; border:1.5px dashed #3B82F6; font-size:12.5px; color:#1E40AF; }
.att-spa-scope .roster-save-all-btn:not(:disabled){ background:#059669!important; box-shadow:0 4px 12px rgba(5,150,105,0.28)!important; }
.att-spa-scope .roster-dashboard{ display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; margin-bottom:16px; }
.att-spa-scope .roster-stat-card{ display:flex; flex-direction:column; gap:3px; padding:11px 12px; background:#fff; border:1px solid #e2e5ef; border-radius:12px; box-shadow:0 1px 2px rgba(27,24,61,0.04); }
.att-spa-scope .roster-stat-card .r-stat-title{ font-size:11.5px; font-weight:700; color:#555d75; }
.att-spa-scope .roster-stat-card .r-stat-val{ font-size:18px; font-weight:800; color:#1c1936; line-height:1.25; }
.att-spa-scope .roster-stat-card .r-stat-sub{ font-size:10.5px; color:#75809a; }
.att-spa-scope .roster-stat-card.stat-proj{ border-left:4px solid #059669; }
.att-spa-scope .roster-stat-card.stat-x15{ border-left:4px solid #0284c7; }
.att-spa-scope .roster-stat-card.stat-x175{ border-left:4px solid #0369A1; }
.att-spa-scope .roster-stat-card.stat-x2{ border-left:4px solid #2563EB; }
.att-spa-scope .roster-stat-card.stat-x3{ border-left:4px solid #d97706; }
.att-spa-scope .roster-stat-card.stat-x4{ border-left:4px solid #e11d48; }
.att-spa-scope .roster-holiday-banner{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:12px; padding:10px 12px; border-radius:10px; background:#fff7ed; border:1px solid #fdba74; font-size:12.5px; color:#9a3412; }
.att-spa-scope .hol-chip{ display:inline-flex; align-items:center; padding:3px 8px; border-radius:6px; background:#f97316; color:#fff; font-weight:700; font-size:11.5px; }
.att-spa-scope .hol-pill{ display:inline-block; margin-left:4px; padding:1px 5px; border-radius:4px; background:#f97316; color:#fff; font-size:9.5px; font-weight:800; vertical-align:middle; }
.att-spa-scope .roster-table th.th-weekend{ background:#F1F5F9; color:#334155; }
.att-spa-scope .roster-table td.td-weekend{ background:#F8FAFC; }
.att-spa-scope .roster-table th.th-holiday{ background:#ffedd5!important; color:#c2410c!important; border-bottom:2px solid #f97316!important; }
.att-spa-scope .roster-table td.td-holiday{ background:#fff7ed!important; }
.att-spa-scope .roster-day.is-holiday-cell{ background:#fed7aa!important; color:#9a3412!important; border:1.5px solid #f97316!important; opacity:1!important; }
.att-spa-scope .roster-day-badge.is-holiday-cell{ background:#fed7aa!important; color:#9a3412!important; border:1.5px solid #f97316!important; }
.att-spa-scope .th-hol-tag{ display:inline-block; margin-top:2px; padding:1px 4px; border-radius:4px; background:#f97316; color:#fff; font-size:9px; font-weight:800; }
.att-spa-scope .roster-day-badge{ display:inline-flex; align-items:center; justify-content:center; min-width:30px; height:24px; padding:0 6px; border-radius:6px; font-weight:800; font-size:11.5px; }
.att-spa-scope .roster-day-badge.work{ background:#e7f8ef; color:#087b4f; }
.att-spa-scope .roster-day-badge.rest{ background:#DBEAFE; color:#1E40AF; }
.att-spa-scope .roster-day-badge.unassigned{ background:#fff6da; color:#946000; }
.att-spa-scope .roster-vertical-scroll{ max-height:58vh; overflow-y:auto; overflow-x:hidden; border:1px solid #e2e5ef; border-radius:12px; background:#fff; -webkit-overflow-scrolling:touch; width:100%; max-width:100%; }
.att-spa-scope .roster-v-grid{ display:flex; flex-direction:column; width:100%; max-width:100%; }
.att-spa-scope .roster-v-head, .att-spa-scope .roster-v-item{ display:grid; grid-template-columns:1.25fr 0.75fr 0.85fr 0.85fr 0.85fr 1.35fr; align-items:center; gap:4px; padding:8px 8px; width:100%; box-sizing:border-box; }
.att-spa-scope .roster-v-head{ position:sticky; top:0; z-index:2; background:#F8FAFC; color:#475569; font-size:10.5px; font-weight:700; border-bottom:1px solid #e2e5ef; white-space:nowrap; }
.att-spa-scope .roster-v-item{ border-bottom:1px solid #eef0f6; font-size:11.5px; }
.att-spa-scope .roster-v-item:last-child{ border-bottom:none; }
.att-spa-scope .roster-v-item.is-weekend{ background:#F8FAFC; }
.att-spa-scope .roster-v-item.is-holiday{ background:#ffedd5!important; }
.att-spa-scope .rv-td-date{ min-width:0; }
.att-spa-scope .rv-td-center{ text-align:center; min-width:0; }
.att-spa-scope .rv-td-action{ text-align:right; min-width:0; }
.att-spa-scope .rv-val{ font-weight:700; color:#94a3b8; font-size:11.5px; }
.att-spa-scope .rv-val.has-work{ color:#059669; }
.att-spa-scope .rv-val.has-ot-day{ color:#0284c7; }
.att-spa-scope .rv-val.has-ot-night{ color:#0369A1; }
.att-spa-scope .roster-v-daynum{ font-weight:800; font-size:12px; color:#1c1936; line-height:1.2; white-space:nowrap; }
.att-spa-scope .roster-v-dow{ font-size:10.5px; color:#6e7791; font-weight:600; }
.att-spa-scope .roster-v-dow.dow-sat{ color:#1D4ED8; }
.att-spa-scope .roster-v-dow.dow-sun{ color:#dc2626; }
.att-spa-scope .roster-v-pending{ display:block; color:#b45309; font-size:9.5px; font-weight:700; margin-top:2px; }
.att-spa-scope .roster-v-btn{ padding:4px 7px; font-size:11px; white-space:nowrap; min-height:26px; }
.att-spa-scope .roster-fixed-tag{ display:inline-block; font-size:10px; color:#8891a8; font-weight:600; padding:3px 6px; background:#f3f4f8; border-radius:6px; white-space:nowrap; }
.att-spa-scope .holiday-picker-grid{ display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:8px; margin:8px 0; }
.att-spa-scope .holiday-day-btn{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; padding:8px 4px; border:1.5px solid #e2e5ef; border-radius:10px; background:#fff; color:#1c1936; cursor:pointer; font-size:12px; transition:background-color 160ms cubic-bezier(0.22,1,0.36,1),border-color 160ms cubic-bezier(0.22,1,0.36,1),color 160ms cubic-bezier(0.22,1,0.36,1),transform 160ms cubic-bezier(0.22,1,0.36,1),box-shadow 160ms cubic-bezier(0.22,1,0.36,1); }
.att-spa-scope .holiday-day-btn.is-wknd{ background:#F8FAFC; }
.att-spa-scope .holiday-day-btn .hol-btn-tag{ font-size:9.5px; font-weight:700; padding:1px 5px; border-radius:4px; background:#f1f5f9; color:#64748b; margin-top:2px; }
.att-spa-scope .holiday-day-btn.active{ background:#ffedd5!important; border:2px solid #f97316!important; color:#9a3412!important; font-weight:800!important; box-shadow:0 3px 10px rgba(249,115,22,0.28)!important; transform:translateY(-1px); }
.att-spa-scope .holiday-day-btn small{ font-size:10px; color:#6e7791; margin-top:1px; }
.att-spa-scope .holiday-day-btn.active small{ color:#c2410c!important; font-weight:700; }
.att-spa-scope .holiday-day-btn.active .hol-btn-tag{ background:#f97316!important; color:#fff!important; }
.att-spa-scope .roster-target-summary{ display:grid; gap:6px; padding:12px 14px; background:#F8FAFC; border:1px solid #DCE3EC; border-radius:10px; font-size:13px; }
.att-spa-scope .roster-choice-cards{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:6px 0 8px; }
.att-spa-scope .roster-choice-card{ display:flex; align-items:center; justify-content:center; gap:8px; padding:12px; border:2px solid #e2e5ef; border-radius:10px; background:#fff; cursor:pointer; font-weight:700; transition:background-color 160ms cubic-bezier(0.22,1,0.36,1),border-color 160ms cubic-bezier(0.22,1,0.36,1),color 160ms cubic-bezier(0.22,1,0.36,1),transform 160ms cubic-bezier(0.22,1,0.36,1),box-shadow 160ms cubic-bezier(0.22,1,0.36,1); }
.att-spa-scope .roster-choice-card.active{ border-color:#2563EB; background:#EFF6FF; box-shadow:0 0 0 3px rgba(37,99,235,0.12); }
.att-spa-scope .roster-choice-card .choice-code{ display:inline-flex; align-items:center; justify-content:center; width:34px; height:28px; border-radius:6px; font-weight:800; font-size:13px; }
.att-spa-scope .roster-choice-card .choice-code.work{ background:#e7f8ef; color:#087b4f; }
.att-spa-scope .roster-choice-card .choice-code.rest{ background:#DBEAFE; color:#1E40AF; }
.att-spa-scope .roster-lock-hint, .att-spa-scope .roster-locked-notice{ margin:0; padding:10px 12px; border-radius:8px; background:#fff8e6; border:1px solid #fde68a; color:#92400e; font-size:12.5px; line-height:1.5; }
.att-spa-scope .roster-requests{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:14px; }
.att-spa-scope .roster-request{ border:1px solid #e2e5ef; border-radius:12px; padding:16px; overflow-wrap:anywhere; }
.att-spa-scope .roster-request p{ margin:9px 0; font-size:14px; }
.att-spa-scope .panel.leave-panel{ padding:clamp(14px,4vw,22px); }
.att-spa-scope .leave-header, .att-spa-scope .leave-request-header{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 12px; }
.att-spa-scope .leave-header{ margin-bottom:14px; padding-bottom:12px; border-bottom:1px solid #ece9f3; }
.att-spa-scope .leave-header h2{ margin:0; }
.att-spa-scope .leave-header button, .att-spa-scope .leave-request-header .status{ flex-shrink:0; }
.att-spa-scope .leave-requests{ grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); }
.att-spa-scope .leave-request, .att-spa-scope .leave-empty{ background:#f8f7fb; }
.att-spa-scope .leave-request p{ margin:7px 0 0; }
.att-spa-scope .leave-dates, .att-spa-scope .leave-empty{ color:#626b86; }
.att-spa-scope .leave-empty{ margin:0; padding:16px 12px; border-radius:10px; text-align:center; font-size:14px; }
.att-spa-scope .roster-actions{ display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.att-spa-scope .roster-overlay{ position:fixed; inset:0; z-index:2000; display:flex; align-items:center; justify-content:center; padding:16px; background:rgba(15,23,42,0.50); }
.att-spa-scope .roster-dialog{ background:white; border-radius:18px; padding:24px; width:480px; max-width:100%; max-height:90vh; overflow:auto; }
.att-spa-scope .roster-dialog form{ display:grid; gap:16px; }
.att-spa-scope .roster-dialog h2{ margin:0 0 16px; }
.att-spa-scope .roster-form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.att-spa-scope .roster-dialog input, .att-spa-scope .roster-dialog select, .att-spa-scope .roster-dialog textarea{ width:100%; min-width:0; }
.att-spa-scope .mobile-tabs{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.att-spa-scope .mobile-shell{ max-width:460px!important; overflow-x:hidden; }
.att-spa-scope .mobile-shell .mobile-main{ width:100%!important; max-width:100%!important; margin:0!important; box-sizing:border-box; overflow-x:hidden; }
.att-spa-scope .mobile-shell .page-heading{ margin-bottom:10px; }
.att-spa-scope .mobile-shell .page-heading h1{ font-size:20px; margin-bottom:0; }
.att-spa-scope .mobile-shell .roster-panel{ padding:12px; margin-bottom:12px; width:100%; max-width:100%; box-sizing:border-box; }
.att-spa-scope .mobile-shell .roster-toolbar label{ min-width:0; width:100%; }
.att-spa-scope .mobile-shell .roster-dashboard{ grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:8px; margin-bottom:10px; width:100%; max-width:100%; }
.att-spa-scope .mobile-shell .roster-stat-card{ padding:9px 10px; min-width:0; }
.att-spa-scope .mobile-shell .roster-stat-card .r-stat-val{ font-size:16px; }
@media(max-width:768px) { .att-spa-scope .roster-dashboard{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; } }
@media(max-width:600px) { .att-spa-scope .roster-panel{ padding:10px; } .att-spa-scope .roster-form-grid{ grid-template-columns:1fr; } .att-spa-scope .roster-toolbar label{ min-width:0; width:100%; } .att-spa-scope .roster-dialog{ padding:18px; } .att-spa-scope .holiday-picker-grid{ gap:4px; } .att-spa-scope .holiday-day-btn{ min-width:0; padding:6px 0; font-size:11px; } .att-spa-scope .holiday-day-btn .hol-btn-tag{ padding-inline:1px; white-space:nowrap; } }
.att-spa-scope .camera-rule-note{ margin:0; padding:9px 12px; border-radius:8px; background:#EFF6FF; border:1px solid #BFDBFE; color:#1E40AF; font-size:12px; line-height:1.45; }
.att-spa-scope .camera-viewport{ position:relative; width:100%; aspect-ratio:4/3; background:#0f172a; border-radius:12px; overflow:hidden; display:flex; align-items:center; justify-content:center; border:2px solid #cbd5e1; }
.att-spa-scope .camera-viewport video, .att-spa-scope .camera-viewport canvas, .att-spa-scope .camera-viewport img{ width:100%; height:100%; object-fit:cover; display:block; }
.att-spa-scope .camera-viewport [hidden]{ display:none!important; }
.att-spa-scope .camera-badge-overlay{ position:absolute; top:10px; left:10px; padding:4px 9px; border-radius:999px; background:rgba(15,23,42,0.75); color:#34d399; font-size:10.5px; font-weight:800; letter-spacing:0.04em; backdrop-filter:blur(4px); }
.att-spa-scope .punch-photo-thumbs{ display:inline-flex; align-items:center; gap:6px; cursor:pointer; padding:3px; border-radius:8px; border:1px solid #e2e5ef; background:#f8fafc; transition:background-color 160ms cubic-bezier(0.22,1,0.36,1),border-color 160ms cubic-bezier(0.22,1,0.36,1),color 160ms cubic-bezier(0.22,1,0.36,1),transform 160ms cubic-bezier(0.22,1,0.36,1),box-shadow 160ms cubic-bezier(0.22,1,0.36,1); }
.att-spa-scope .punch-photo-thumbs:hover{ border-color:#2563EB; background:#EFF6FF; transform:translateY(-1px); }
.att-spa-scope .photo-thumb-item{ display:flex; flex-direction:column; align-items:center; gap:2px; width:48px; }
.att-spa-scope .photo-thumb-lbl{ font-size:9.5px; font-weight:700; color:#64748b; line-height:1; }
.att-spa-scope .photo-thumb-item img{ width:46px; height:36px; object-fit:cover; border-radius:5px; border:1px solid #cbd5e1; background:#0f172a; }
.att-spa-scope .photo-thumb-empty{ display:flex; align-items:center; justify-content:center; width:46px; height:36px; border-radius:5px; border:1px dashed #cbd5e1; color:#94a3b8; font-size:11px; background:#fff; }
.att-spa-scope .photo-cleaned-tag{ display:inline-flex; align-items:center; gap:4px; padding:4px 8px; border-radius:6px; background:#f1f5f9; color:#64748b; font-size:11px; font-weight:600; white-space:nowrap; }
.att-spa-scope .punch-photo-compare{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:8px 0; }
.att-spa-scope .photo-compare-card{ border:1px solid #e2e5ef; border-radius:10px; padding:8px; background:#f8fafc; display:flex; flex-direction:column; gap:6px; }
.att-spa-scope .photo-compare-head{ display:flex; justify-content:space-between; align-items:center; font-size:12px; color:#334155; }
.att-spa-scope .photo-compare-img{ width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:8px; border:1px solid #cbd5e1; background:#0f172a; }
.att-spa-scope .photo-compare-empty{ width:100%; aspect-ratio:4/3; display:flex; align-items:center; justify-content:center; border-radius:8px; border:1px dashed #cbd5e1; background:#fff; color:#94a3b8; font-size:12px; text-align:center; padding:8px; }
@media(max-width:520px) { .att-spa-scope .punch-photo-compare{ grid-template-columns:1fr; } }
.att-spa-scope .perf-kpi-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:20px; }
.att-spa-scope .perf-kpi-card{ display:flex; flex-direction:column; gap:5px; padding:16px 18px; background:#fff; border:1px solid #e2e5ef; border-radius:14px; box-shadow:0 2px 6px rgba(27,24,61,0.04); }
.att-spa-scope .perf-kpi-card .kpi-label{ font-size:12px; font-weight:700; color:#555d75; }
.att-spa-scope .perf-kpi-card .kpi-val{ font-size:24px; font-weight:800; color:#1c1936; line-height:1.2; }
.att-spa-scope .perf-kpi-card .kpi-sub{ font-size:11.5px; color:#6e7791; }
.att-spa-scope .perf-kpi-card.kpi-purple{ border-left:4px solid #2563EB; }
.att-spa-scope .perf-kpi-card.kpi-red{ border-left:4px solid #e11d48; }
.att-spa-scope .perf-kpi-card.kpi-amber{ border-left:4px solid #d97706; }
.att-spa-scope .perf-kpi-card.kpi-green{ border-left:4px solid #059669; }
.att-spa-scope .perf-top-boards{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; align-items:stretch; }
.att-spa-scope .perf-board-card{ padding:14px; margin-bottom:0; display:flex; flex-direction:column; gap:10px; min-width:0; }
.att-spa-scope .perf-board-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:6px; padding-bottom:8px; border-bottom:1px solid #eef0f6; min-height:54px; }
.att-spa-scope .perf-board-head h2{ font-size:14.5px; line-height:1.3; margin:0; }
.att-spa-scope .perf-board-head .status{ font-size:10.5px; padding:3px 7px; white-space:nowrap; flex-shrink:0; }
.att-spa-scope .perf-rank-list{ display:flex; flex-direction:column; gap:8px; flex:1; }
.att-spa-scope .perf-rank-item{ display:flex; align-items:center; gap:9px; padding:8px 10px; border:1px solid #e8ebf4; border-radius:10px; background:#fafbfe; cursor:pointer; transition:background-color 160ms cubic-bezier(0.22,1,0.36,1),border-color 160ms cubic-bezier(0.22,1,0.36,1),color 160ms cubic-bezier(0.22,1,0.36,1),transform 160ms cubic-bezier(0.22,1,0.36,1),box-shadow 160ms cubic-bezier(0.22,1,0.36,1); }
.att-spa-scope .perf-rank-item:hover{ border-color:#2563EB; background:#EFF6FF; transform:translateY(-1px); }
.att-spa-scope .rank-medal{ display:flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:8px; background:#eef1f6; color:#475569; font-weight:800; font-size:12.5px; flex-shrink:0; }
.att-spa-scope .rank-medal.top-1{ background:#fef3c7; color:#b45309; border:1px solid #fcd34d; font-size:15px; }
.att-spa-scope .rank-medal.top-2{ background:#f1f5f9; color:#334155; border:1px solid #cbd5e1; font-size:15px; }
.att-spa-scope .rank-medal.top-3{ background:#ffedd5; color:#9a3412; border:1px solid #fdba74; font-size:15px; }
.att-spa-scope .rank-medal.warn-1, .att-spa-scope .rank-medal.warn-2, .att-spa-scope .rank-medal.warn-3{ background:#ffe4e6; color:#be123c; border:1px solid #fda4af; }
.att-spa-scope .rank-main{ flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
.att-spa-scope .rank-row-top{ display:flex; justify-content:space-between; align-items:center; gap:4px; font-size:12px; }
.att-spa-scope .rank-row-top strong{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.att-spa-scope .rank-row-top strong small{ font-weight:500; color:#6e7791; }
.att-spa-scope .rank-highlight{ font-weight:800; font-size:11.5px; white-space:nowrap; }
.att-spa-scope .rank-highlight.purple{ color:#1D4ED8; }
.att-spa-scope .rank-highlight.red{ color:#e11d48; }
.att-spa-scope .rank-highlight.green{ color:#059669; }
.att-spa-scope .rank-bar-track{ width:100%; height:5px; border-radius:999px; background:#e2e8f0; overflow:hidden; }
.att-spa-scope .rank-bar-fill{ height:100%; border-radius:999px; transition:width .3s ease; }
.att-spa-scope .rank-bar-fill.fill-purple{ background:linear-gradient(90deg,#3B82F6,#1D4ED8); }
.att-spa-scope .rank-bar-fill.fill-red{ background:linear-gradient(90deg,#fb7185,#e11d48); }
.att-spa-scope .rank-bar-fill.fill-green{ background:linear-gradient(90deg,#34d399,#059669); }
.att-spa-scope .rank-sub-pills{ display:flex; flex-wrap:wrap; gap:4px 8px; font-size:10.5px; color:#64748b; line-height:1.3; }
.att-spa-scope [data-perf-scroll] table thead th{ position:sticky; top:0; z-index:2; background:#f8fafc; box-shadow:inset 0 -1px 0 #e2e8f0; }
.att-spa-scope .perf-grade-pill{ display:inline-flex; align-items:center; padding:3px 8px; border-radius:6px; font-size:11px; font-weight:800; white-space:nowrap; }
.att-spa-scope .perf-grade-pill.grade-aplus{ background:#dcfce7; color:#047857; border:1px solid #86efac; }
.att-spa-scope .perf-grade-pill.grade-a{ background:#dbeafe; color:#1d4ed8; border:1px solid #93c5fd; }
.att-spa-scope .perf-grade-pill.grade-b{ background:#fef3c7; color:#b45309; border:1px solid #fcd34d; }
.att-spa-scope .perf-grade-pill.grade-c{ background:#ffe4e6; color:#be123c; border:1px solid #fda4af; }
.att-spa-scope .perf-grade-pill.grade-none{ background:#f1f5f9; color:#64748b; }
.att-spa-scope .perf-modal-summary{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding:12px 14px; background:#f8fafc; border:1px solid #e2e5ef; border-radius:10px; font-size:12.5px; }
@media(max-width:1180px) { .att-spa-scope .perf-top-boards{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:1024px) { .att-spa-scope .perf-kpi-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } .att-spa-scope .perf-modal-summary{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:720px) { .att-spa-scope .perf-top-boards{ grid-template-columns:1fr; } }
@media(max-width:600px) { .att-spa-scope .perf-kpi-grid{ grid-template-columns:1fr; } .att-spa-scope .perf-modal-summary{ grid-template-columns:1fr; } }

/* --- Cài đặt hệ thống (Settings Tab) --- */
.att-spa-scope .settings-workspace{ display:grid; gap:18px; }
.att-spa-scope .settings-grid{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:18px; align-items:stretch; }
.att-spa-scope .settings-card{ padding:20px; display:flex; flex-direction:column; gap:14px; height:100%; box-sizing:border-box; }
.att-spa-scope .settings-card .perf-board-head{ min-height:34px; margin-bottom:0; padding-bottom:12px; border-bottom:1px solid #eef2f6; align-items:center; }
.att-spa-scope .settings-fields{ display:grid; gap:14px; align-content:start; }
.att-spa-scope .settings-fields label{ display:grid; gap:5px; font-weight:700; font-size:13px; color:#1f2937; }
.att-spa-scope .settings-fields label small{ font-weight:500; font-size:12px; color:#64748b; line-height:1.45; }
.att-spa-scope .settings-toggle-row{ display:flex !important; flex-direction:row !important; align-items:flex-start; gap:10px; padding:11px 13px; border:1px solid #e2e8f0; border-radius:10px; background:#f8fafc; cursor:pointer; }
.att-spa-scope .settings-toggle-row > div{ flex:1; min-width:0; }
.att-spa-scope .settings-toggle-row input[type="checkbox"]{ width:17px; height:17px; margin:2px 0 0; accent-color:var(--accent); flex-shrink:0; }
.att-spa-scope .settings-toggle-row strong{ display:block; font-size:13.5px; color:#0f172a; margin-bottom:2px; line-height:1.35; }
.att-spa-scope .settings-toggle-row small{ display:block; font-size:12px; color:#64748b; font-weight:500; line-height:1.45; }
.att-spa-scope .settings-inline-check{ display:flex !important; flex-direction:row !important; align-items:center; gap:8px; font-weight:600; font-size:12.5px; color:#475569; cursor:pointer; }
.att-spa-scope .settings-inline-check input[type="checkbox"]{ width:16px; height:16px; margin:0; accent-color:var(--accent); flex-shrink:0; }
.att-spa-scope .settings-actions-bar{ grid-column:1 / -1; padding:0; margin-bottom:-4px; display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; background:transparent; border:0; box-shadow:none; }
@media(max-width:1100px) { .att-spa-scope .settings-grid{ grid-template-columns:1fr; } }

/* --- Bộ lọc ngày lịch sử cho tài khoản nhân viên --- */
.att-spa-scope .emp-history-filter{ padding:12px 14px; border-bottom:1px solid #eef0f6; background:#f8fafc; display:grid; gap:10px; }
.att-spa-scope .emp-filter-row{ display:grid; grid-template-columns:repeat(auto-fit, minmax(135px, 1fr)); gap:8px; }
.att-spa-scope .emp-filter-row label{ font-size:11.5px; font-weight:700; color:#475569; gap:4px; }
.att-spa-scope .emp-filter-row select, .att-spa-scope .emp-filter-row input{ padding:7px 9px; font-size:12.5px; border-radius:8px; }
.att-spa-scope .emp-filter-quick{ display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.att-spa-scope .emp-filter-quick .active-chip{ background:#EFF6FF; border-color:#2563EB; color:#1D4ED8; font-weight:700; }

/* --- Sub-tabs & Bảng Phân quyền Vai trò hệ thống (Tab Tài khoản) --- */
.att-spa-scope .role-custom{ background:#E0F2FE; color:#0369A1; border:1px solid #BAE6FD; }
.att-spa-scope .users-subtabs-bar{ display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:16px; padding-bottom:12px; border-bottom:1px solid #eef0f6; }
.att-spa-scope .users-subtabs{ display:inline-flex; align-items:center; gap:6px; padding:4px; background:#f3f4f8; border-radius:12px; border:1px solid #e4e7f0; }
.att-spa-scope .users-subtab-btn{ border:0; background:transparent; color:#4b5563; font-weight:700; font-size:13px; padding:8px 16px; border-radius:9px; cursor:pointer; transition:background-color 160ms cubic-bezier(0.22,1,0.36,1),color 160ms cubic-bezier(0.22,1,0.36,1),box-shadow 160ms cubic-bezier(0.22,1,0.36,1); }
.att-spa-scope .users-subtab-btn:hover{ color:#1f2937; background:rgba(255,255,255,0.6); }
.att-spa-scope .users-subtab-btn.active{ background:#fff; color:#0F172A; box-shadow:0 1px 4px rgba(15,23,42,0.08); }

.att-spa-scope .role-perms-workspace{ display:grid; gap:14px; }
.att-spa-scope .role-perms-header{ display:flex; justify-content:space-between; align-items:flex-end; gap:16px; flex-wrap:wrap; }
.att-spa-scope .role-perms-desc{ margin:0; font-size:13px; color:#555d75; line-height:1.5; max-width:680px; }
.att-spa-scope .role-perms-toolbar{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.att-spa-scope .role-quick-add{ display:flex; align-items:center; gap:8px; }
.att-spa-scope .role-quick-add select{ min-width:250px; padding:8px 12px; font-size:13px; }

.att-spa-scope .perm-matrix-scroll{ border:1px solid #e4e7f0; border-radius:12px; overflow:auto; background:#fff; }
.att-spa-scope .perm-matrix-table{ width:100%; border-collapse:collapse; min-width:760px; }
.att-spa-scope .perm-matrix-table th, .att-spa-scope .perm-matrix-table td{ border-bottom:1px solid #eef0f6; border-right:1px solid #f1f3f9; padding:11px 14px; }
.att-spa-scope .perm-matrix-table th:last-child, .att-spa-scope .perm-matrix-table td:last-child{ border-right:0; }
.att-spa-scope .perm-matrix-table thead th{ background:#fafbfe; color:#1c1936; font-weight:800; font-size:12.5px; text-transform:none; letter-spacing:0; text-align:center; vertical-align:middle; }
.att-spa-scope .perm-matrix-table thead th.perm-col-sticky{ text-align:left; min-width:300px; }
.att-spa-scope .perm-role-head{ min-width:120px; }
.att-spa-scope .perm-role-head-inner{ display:inline-flex; align-items:center; justify-content:center; gap:6px; }
.att-spa-scope .perm-role-count{ display:block; font-size:10.5px; font-weight:600; color:#7c859e; margin-top:2px; }
.att-spa-scope .role-col-del-btn{ width:20px; height:20px; padding:0; border-radius:50%; border:1px solid #fecdd3; background:#fff1f2; color:#e11d48; font-size:13px; font-weight:800; line-height:1; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; }
.att-spa-scope .role-col-del-btn:hover{ background:#ffe4e6; border-color:#fda4af; }

.att-spa-scope .perm-group-row td{ background:#EFF6FF !important; color:#1D4ED8; font-weight:800; font-size:12.5px; padding:10px 14px !important; border-right:0 !important; }
.att-spa-scope .perm-item-row:hover td{ background:#F8FAFC; }
.att-spa-scope .perm-label-cell strong{ font-size:13px; color:#1f2937; font-weight:700; }
.att-spa-scope .perm-check-cell{ text-align:center; vertical-align:middle; }
.att-spa-scope .perm-checkbox{ width:18px; height:18px; accent-color:#2563EB; cursor:pointer; border-radius:4px; }
.att-spa-scope .perm-checkbox:disabled{ cursor:not-allowed; opacity:0.55; }



/* Leadership workspace: responsive layout without a device-mode switch. */
.att-spa-scope .leader-layout{max-width:1440px;margin:auto;padding:24px;color:#202442}
.att-spa-scope .leader-header, .att-spa-scope .leader-title, .att-spa-scope .leader-project{display:flex;align-items:center;justify-content:space-between;gap:16px}
.att-spa-scope .leader-header small, .att-spa-scope .leader-person small, .att-spa-scope .leader-project small, .att-spa-scope .leader-people article>small{display:block;color:#75809b;margin-top:5px}
.att-spa-scope .leader-tabs{display:flex;gap:12px;margin:20px 0}
.att-spa-scope .leader-tabs button{flex:1;padding:14px;border:1px solid #e2ddee;border-radius:12px;background:white;font-weight:600;color:#606782}
.att-spa-scope .leader-tabs button.active{background:#2563EB;color:white;border-color:#2563EB}
.att-spa-scope .leader-main{min-width:0}.att-spa-scope .leader-title h1{font-size:24px}.att-spa-scope .leader-filters{display:flex;gap:16px;margin:18px 0}.att-spa-scope .leader-filters label{flex:1}
.att-spa-scope .leader-approval-card{display:grid;grid-template-columns:1fr 1.3fr 1.3fr 1fr;gap:20px;align-items:center;background:white;border:1px solid #e3e2ee;border-radius:14px;padding:20px;margin:12px 0}
.att-spa-scope .leader-times{font-weight:600;margin-bottom:10px}.att-spa-scope .leader-actions{display:flex;flex-wrap:wrap;gap:8px}.att-spa-scope .leader-person b{display:block;margin-top:8px}
.att-spa-scope .leader-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:20px 0}.att-spa-scope .leader-stats article, .att-spa-scope .leader-people article, .att-spa-scope .leader-section{background:white;border:1px solid #e3e2ee;border-radius:14px;padding:20px}.att-spa-scope .leader-stats strong{display:block;font-size:28px;margin-top:10px}
.att-spa-scope .leader-note{color:#75809b;font-size:13px;line-height:1.6}.att-spa-scope .leader-section{margin-top:20px}.att-spa-scope .leader-section h2{font-size:19px}.att-spa-scope .leader-people{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.att-spa-scope .leader-people dl{display:grid;grid-template-columns:1fr 1fr;gap:12px}.att-spa-scope .leader-people dd{margin:3px 0;font-weight:700}.att-spa-scope .leader-people dt{font-size:13px;color:#75809b}.att-spa-scope .leader-project{padding:15px 0;border-bottom:1px solid #eee}
.att-spa-scope .leader-self{max-width:760px;margin:auto}.att-spa-scope .leader-self .employee-content{width:100%;max-width:none}
@media(max-width:700px){.att-spa-scope .leader-layout{padding:14px;font-size:14px}.att-spa-scope .leader-header strong{font-size:16px}.att-spa-scope .leader-tabs{gap:8px;margin:16px 0}.att-spa-scope .leader-tabs button{padding:12px 6px;font-size:14px}.att-spa-scope .leader-title h1{font-size:21px}.att-spa-scope .leader-approval-card{grid-template-columns:1fr;gap:14px;padding:16px}.att-spa-scope .leader-actions button{flex:1}.att-spa-scope .leader-stats{grid-template-columns:1fr 1fr;gap:10px}.att-spa-scope .leader-stats article{padding:15px}.att-spa-scope .leader-people{grid-template-columns:1fr}.att-spa-scope .leader-section{padding:15px}.att-spa-scope .leader-self{width:100%}.att-spa-scope .leader-filters{gap:10px}.att-spa-scope .leader-filters select{min-width:0;width:100%}}

.att-spa-scope .leader-display{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:14px}.att-spa-scope .leader-display select{width:130px}.att-spa-scope .leader-layout.preview-mobile{max-width:430px;padding:14px}.att-spa-scope .preview-mobile .leader-approval-card, .att-spa-scope .preview-mobile .leader-people{grid-template-columns:1fr}.att-spa-scope .preview-mobile .leader-stats{grid-template-columns:1fr 1fr}.att-spa-scope .leader-layout.preview-web{width:1200px;max-width:none}


.att-spa-scope .leader-layout.preview-mobile .leader-header strong{font-size:16px}.att-spa-scope .leader-layout.preview-mobile .leader-tabs{gap:8px;margin:16px 0}.att-spa-scope .leader-layout.preview-mobile .leader-tabs button{padding:12px 6px;font-size:14px}.att-spa-scope .leader-layout.preview-mobile .leader-approval-card{padding:16px;gap:14px}.att-spa-scope .leader-layout.preview-mobile .leader-actions button{flex:1}.att-spa-scope .leader-layout.preview-mobile .leader-title h1{font-size:21px}.att-spa-scope .leader-layout.preview-mobile .filters{flex-wrap:wrap}.att-spa-scope .leader-layout.preview-mobile .filters>div{max-width:100%}.att-spa-scope .leader-layout.preview-mobile select, .att-spa-scope .leader-layout.preview-mobile input{max-width:100%}.att-spa-scope .leader-layout.preview-mobile .perf-rankings-grid{grid-template-columns:1fr}

.att-spa-scope .leader-layout.preview-mobile .perf-top-boards, .att-spa-scope .leader-layout.preview-mobile .perf-kpi-grid{grid-template-columns:1fr}.att-spa-scope .leader-layout.preview-mobile{width:100%}

/* Each department performance section occupies a complete mobile row. */
.att-spa-scope .leader-performance-mobile .perf-kpi-grid, .att-spa-scope .leader-performance-mobile .perf-top-boards{display:flex;flex-direction:column;gap:16px;width:100%;}
.att-spa-scope .leader-performance-mobile .perf-kpi-card, .att-spa-scope .leader-performance-mobile .perf-board-card{width:100%;min-width:0;box-sizing:border-box;}
.att-spa-scope .leader-performance-mobile .perf-board-head{flex-wrap:wrap;}
.att-spa-scope .leader-performance-mobile .perf-rank-item{width:100%;box-sizing:border-box;}
.att-spa-scope .leader-performance-mobile .rank-main{overflow-wrap:break-word;}

/* Approval and feedback follow the fixed mobile leadership workspace. */
.att-spa-scope .leader-mobile-overlay{padding:12px;align-items:center;}
.att-spa-scope .leader-mobile-overlay .dialog{width:430px!important;max-width:100%;max-height:calc(100dvh - 24px);overflow:auto;border-radius:16px;}
.att-spa-scope .leader-mobile-overlay .dialog>header{padding:16px;align-items:flex-start;position:sticky;top:0;background:white;z-index:2;}
.att-spa-scope .leader-mobile-overlay .dialog>header>div{min-width:0;}
.att-spa-scope .leader-mobile-overlay .dialog h2{font-size:17px;line-height:1.45;overflow-wrap:break-word;}
.att-spa-scope .leader-mobile-overlay .dialog>header [data-close]{flex-shrink:0;min-width:44px;min-height:44px;}
.att-spa-scope .leader-mobile-overlay .dialog-body{padding:16px;}
.att-spa-scope .leader-mobile-overlay .dialog dl, .att-spa-scope .leader-mobile-overlay .capture-grid, .att-spa-scope .leader-mobile-overlay .punch-photo-compare{grid-template-columns:minmax(0,1fr)!important;gap:14px;}
.att-spa-scope .leader-mobile-overlay .dialog dt{font-size:12px;}
.att-spa-scope .leader-mobile-overlay .dialog dd{font-size:14px;overflow-wrap:anywhere;}
.att-spa-scope .leader-mobile-overlay .dialog input:not([type=checkbox]):not([type=radio]), .att-spa-scope .leader-mobile-overlay .dialog select, .att-spa-scope .leader-mobile-overlay .dialog textarea{width:100%;min-width:0;box-sizing:border-box;font-size:16px;min-height:44px;}
.att-spa-scope .leader-mobile-overlay .dialog-actions{display:flex;flex-direction:column;gap:10px;}
.att-spa-scope .leader-mobile-overlay .dialog-actions button{width:100%;min-height:46px;white-space:normal;line-height:1.4;}
.att-spa-scope .leader-mobile-overlay .photo-compare-img{width:100%;height:auto;max-height:340px;object-fit:contain;}
.att-spa-scope .leader-mobile-overlay .photo-compare-head{flex-wrap:wrap;gap:6px;}
.att-spa-scope .leader-mobile-overlay .dialog label{line-height:1.5;}

.att-spa-scope .leader-self .punch-actions:has([data-punch="daily"]){display:flex;justify-content:center}.att-spa-scope .leader-self [data-punch="daily"]{width:100%;max-width:260px;display:flex;align-items:center;justify-content:center;text-align:center;min-height:64px}

.att-spa-scope .roster-no-ot .roster-v-head, .att-spa-scope .roster-no-ot .roster-v-item{grid-template-columns:1fr .7fr .8fr 1fr!important}.att-spa-scope .roster-no-ot .roster-v-head>div:nth-child(4), .att-spa-scope .roster-no-ot .roster-v-head>div:nth-child(5), .att-spa-scope .roster-no-ot .roster-v-item>div:nth-child(4), .att-spa-scope .roster-no-ot .roster-v-item>div:nth-child(5){display:none}.att-spa-scope .preview-mobile .roster-dashboard{grid-template-columns:1fr}.att-spa-scope .preview-mobile .leader-tabs{flex-wrap:wrap}

.att-spa-scope .leader-layout .roster-vertical-scroll{height:58vh;max-height:580px;overflow-y:scroll;scrollbar-gutter:stable;scrollbar-width:auto;}
.att-spa-scope .leader-layout .roster-vertical-scroll::-webkit-scrollbar{width:10px;}
.att-spa-scope .leader-layout .roster-vertical-scroll::-webkit-scrollbar-track{background:#f1f0f6;border-radius:8px;}
.att-spa-scope .leader-layout .roster-vertical-scroll::-webkit-scrollbar-thumb{background:#9a95aa;border-radius:8px;border:2px solid #f1f0f6;}

/* Compact schedule-change form for employee and leadership mobile accounts. */
.att-spa-scope .roster-mobile-overlay{padding:12px;box-sizing:border-box;}
.att-spa-scope .roster-mobile-overlay .roster-dialog{width:430px;max-width:100%;max-height:calc(100dvh - 24px);padding:18px;box-sizing:border-box;overflow:auto;}
.att-spa-scope .roster-mobile-overlay .roster-dialog h2{font-size:20px;line-height:1.35;margin-bottom:14px;}
.att-spa-scope .roster-mobile-overlay .roster-dialog form{gap:14px;min-height:0;height:auto;}
.att-spa-scope .roster-mobile-overlay .roster-dialog label{font-size:14px;line-height:1.5;min-width:0;}
.att-spa-scope .roster-mobile-overlay .roster-dialog input, .att-spa-scope .roster-mobile-overlay .roster-dialog select, .att-spa-scope .roster-mobile-overlay .roster-dialog textarea{font-size:16px;box-sizing:border-box;max-width:100%;}
.att-spa-scope .roster-mobile-overlay .roster-dialog select{min-height:46px;}
.att-spa-scope .roster-mobile-overlay .roster-dialog textarea{min-height:90px;}
.att-spa-scope .roster-mobile-overlay .roster-choice-cards{gap:10px;}
.att-spa-scope .roster-mobile-overlay .roster-choice-card{padding:12px 6px;min-height:52px;}
.att-spa-scope .roster-mobile-overlay .dialog-actions{display:grid;grid-template-columns:1fr;gap:10px;margin-top:4px;}
.att-spa-scope .roster-mobile-overlay .dialog-actions button{width:100%;min-height:46px;white-space:normal;}
.att-spa-scope .roster-mobile-overlay .roster-target-summary{font-size:14px;line-height:1.6;}
@media(max-width:600px){.att-spa-scope .roster-overlay .roster-dialog{padding:18px;box-sizing:border-box;}.att-spa-scope .roster-overlay .dialog-actions{display:grid;grid-template-columns:1fr;gap:10px;}.att-spa-scope .roster-overlay .dialog-actions button{width:100%;min-height:46px;}}

.att-spa-scope .roster-mobile-overlay .roster-dialog{width:var(--roster-frame-width, min(406px,calc(100vw - 24px)))!important;max-width:var(--roster-frame-width,calc(100vw - 24px))!important;min-width:0;box-sizing:border-box;margin-inline:auto}.att-spa-scope .roster-mobile-overlay .roster-dialog form{padding:0;margin:0}.att-spa-scope .roster-mobile-overlay .roster-dialog .dialog-actions{margin-top:0}

.att-spa-scope .punch-receipt-status{padding:12px;margin:12px 0;border:1px solid #b8e8d2;border-radius:10px;background:#edfff5;color:#176344;font-size:14px;line-height:1.5}
.att-spa-scope .attendance-exchange-history{margin-top:10px}.att-spa-scope .attendance-exchange-history summary{cursor:pointer;color:var(--primary,#2563EB);font-weight:600}.att-spa-scope .attendance-exchange-history .history article{padding:10px;overflow-wrap:anywhere}.att-spa-scope .attendance-exchange-history .history strong{display:block}

@media(min-width:701px) and (pointer:fine){.att-spa-scope .overlay:not(.leader-mobile-overlay):not(.roster-mobile-overlay)>section{resize:both;overflow:auto;min-width:360px;min-height:220px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px)}.att-spa-scope .perf-detail-dialog table{min-width:1020px!important}.att-spa-scope .perf-detail-dialog td:last-child, .att-spa-scope .perf-detail-dialog th:last-child{min-width:180px}.att-spa-scope .perf-detail-dialog .table-scroll{overflow:auto}}

.att-spa-scope .attendance-export-actions{display:flex;align-items:center;gap:10px;margin-left:auto;align-self:flex-end;padding-bottom:0}.att-spa-scope .attendance-export-actions button{white-space:nowrap;min-height:42px}@media(max-width:700px){.att-spa-scope .attendance-export-actions{margin-left:0;flex-wrap:wrap;width:100%}.att-spa-scope .attendance-export-actions button{flex:1}}
.att-spa-scope .excel-sheet-table td[data-calendar="rest"]{background:#DBEAFE!important;color:#1E40AF}.att-spa-scope .excel-sheet-table td[data-calendar="holiday"]{background:#FEF3C7!important;color:#92400E}
[data-theme="dark"] .att-spa-scope .excel-sheet-table td[data-calendar="rest"], body.dark-theme .att-spa-scope .excel-sheet-table td[data-calendar="rest"]{background:rgba(59,130,246,.22)!important;color:#DBEAFE}[data-theme="dark"] .att-spa-scope .excel-sheet-table td[data-calendar="holiday"], body.dark-theme .att-spa-scope .excel-sheet-table td[data-calendar="holiday"]{background:rgba(245,158,11,.20)!important;color:#FDE68A}

.att-spa-scope .ot-rate-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.att-spa-scope .ot-rate-grid>div{min-width:0}.att-spa-scope .ot-rate-grid input{width:100%;box-sizing:border-box}@media(max-width:900px){.att-spa-scope .ot-rate-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.att-spa-scope .ot-rate-grid{grid-template-columns:1fr!important}}

/* Consistent spacing for overtime configuration. */
.att-spa-scope .ot-config-panel{padding:24px;box-sizing:border-box;}
.att-spa-scope .ot-config-panel>h2{margin:0 0 10px;font-size:19px;line-height:1.4;}
.att-spa-scope .ot-config-panel>p{margin:0 0 24px;color:#6e7791;line-height:1.6;}
.att-spa-scope .ot-config-panel .ot-time-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-bottom:30px;max-width:100%;}
.att-spa-scope .ot-config-panel .ot-rate-grid{gap:24px;align-items:start;}
.att-spa-scope .ot-config-panel .ot-rate-grid>div{padding:18px;background:#F8FAFC;border:1px solid #e5e2f0;border-radius:12px;}
.att-spa-scope .ot-config-panel .ot-rate-grid h3{margin:0 0 20px;font-size:15px;line-height:1.4;}
.att-spa-scope #system-settings-form .ot-config-panel label{display:flex;flex-direction:column;gap:9px;margin-top:0;line-height:1.5;}
.att-spa-scope #system-settings-form .ot-config-panel .ot-rate-grid label+label{margin-top:20px;}
.att-spa-scope .ot-config-panel input{min-height:42px;margin:0;}
@media(max-width:600px){.att-spa-scope .ot-config-panel{padding:18px;}.att-spa-scope .ot-config-panel .ot-time-grid{grid-template-columns:1fr;gap:18px;margin-bottom:24px;}.att-spa-scope .ot-config-panel .ot-rate-grid{gap:18px;}}

.att-spa-scope .account-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:16px;padding:20px 24px;border-bottom:1px solid #e7e5f0}.att-spa-scope .account-filters label{flex:1 1 180px;margin:0;min-width:0}.att-spa-scope .account-filters select{width:100%}.att-spa-scope .account-filters small{align-self:center;color:#7b819e}

.att-spa-scope .leader-tabs{display:flex;overflow-x:auto;gap:6px;scrollbar-width:thin}.att-spa-scope .leader-tabs button{flex:0 0 auto;white-space:nowrap;padding:10px 12px}

.att-spa-scope .leader-layout.preview-mobile .leader-tabs{flex-wrap:nowrap;gap:8px}.att-spa-scope .leader-layout.preview-mobile .leader-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:1 0 auto;min-height:48px;padding:12px 20px;border:0;border-radius:12px;font-size:15px;font-weight:700;background:#f0f3f8;color:#59647b}.att-spa-scope .leader-layout.preview-mobile .leader-tabs button.active{background:#a000f5;color:#fff;box-shadow:0 5px 12px #a000f526}.att-spa-scope .leader-tabs svg{flex-shrink:0}

/* Mobile navigation: equal buttons, at most three per row. */
.att-spa-scope .leader-layout.preview-mobile .leader-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;overflow:visible;scrollbar-width:none}
.att-spa-scope .leader-layout.preview-mobile .leader-tabs button{width:100%;min-width:0;min-height:52px;padding:10px 6px;white-space:normal;line-height:1.3;font-size:14px;box-sizing:border-box}
.att-spa-scope .leader-layout.preview-mobile .leader-tabs button:only-child{grid-column:1/-1}
.att-spa-scope .leader-layout.preview-mobile .leader-tabs:has(>button:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}

/* Keep mobile header, navigation and content on the same edges. */
.att-spa-scope .leader-layout.preview-mobile .leader-main{width:100%;max-width:none;margin:0;padding:0;box-sizing:border-box;display:flex;flex-direction:column;gap:14px}
.att-spa-scope .leader-layout.preview-mobile .leader-main>.mobile-clock-card, .att-spa-scope .leader-layout.preview-mobile .leader-main>.mobile-card, .att-spa-scope .leader-layout.preview-mobile .leader-main>.punch-grid{width:100%;max-width:none;margin:0;box-sizing:border-box;min-width:0}
.att-spa-scope .leader-layout.preview-mobile .leader-main>.mobile-clock-card, .att-spa-scope .leader-layout.preview-mobile .leader-main>.mobile-card{padding:16px}
.att-spa-scope .leader-layout.preview-mobile .leader-main>.punch-grid{padding:0}

.att-spa-scope .punch-locations{ margin-top: 10px; max-width: 360px; white-space: normal; overflow-wrap: anywhere; font-size: 12px; line-height: 1.5; }
.att-spa-scope .punch-locations > div{ padding: 6px 0; }
.att-spa-scope .punch-locations small{ display: block; color: #68718a; }
.att-spa-scope .dialog .punch-locations{ max-width: none; font-size: 14px; }

/* Company calendar and payroll comparison, local revision. */
.att-spa-scope .company-calendar-panel, .att-spa-scope .company-comparison{padding:24px;margin-bottom:20px;min-width:0}
.att-spa-scope .company-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin-top:20px}
.att-spa-scope .company-calendar-day{padding:12px;border:1px solid #DCE3EC;border-radius:12px;display:flex;flex-direction:column;gap:10px;min-width:0}
.att-spa-scope .company-calendar-day.rest{background:#DBEAFE;border-color:#93C5FD;color:#1E40AF}.att-spa-scope .company-calendar-day.holiday{background:#FEF3C7;border-color:#FCD34D;color:#92400E}
.att-spa-scope .company-calendar-day select{width:100%;min-width:0}.att-spa-scope .company-calendar-day.unassigned{background:#fffce6}
.att-spa-scope .company-table-scroll{overflow:auto;max-height:520px;margin-top:16px}
.att-spa-scope .company-comparison table{width:100%;min-width:840px;border-collapse:collapse}
.att-spa-scope .company-comparison th, .att-spa-scope .company-comparison td{padding:12px;text-align:left;border-bottom:1px solid #eeeaf4;white-space:nowrap}
.att-spa-scope .company-comparison thead{position:sticky;top:0;background:#F8FAFC}
.att-spa-scope .company-changed{background:#fff8d9}
@media(max-width:650px){.att-spa-scope .company-calendar-panel, .att-spa-scope .company-comparison{padding:16px}.att-spa-scope .company-calendar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.att-spa-scope .staff-leave-panel{padding:clamp(14px,2vw,24px)}
.att-spa-scope .staff-leave-header{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:16px 24px;margin-bottom:20px}
.att-spa-scope .staff-leave-header h2{margin:0 0 6px}
.att-spa-scope .staff-leave-header p{margin:0;color:var(--muted,#626784);font-size:.875rem}
.att-spa-scope #staff-leave-year{display:flex;align-items:flex-end;gap:8px;margin:0}
.att-spa-scope #staff-leave-year label{display:grid;gap:6px;width:112px}
.att-spa-scope .staff-leave-scroll{overflow:auto;border:1px solid var(--line,#dfdbea);border-radius:12px}
.att-spa-scope .staff-leave-scroll table{min-width:760px;width:100%}
.att-spa-scope .staff-leave-scroll th, .att-spa-scope .staff-leave-scroll td{padding:12px 16px;vertical-align:middle}
.att-spa-scope .staff-leave-scroll td:first-child{font-weight:600}
.att-spa-scope .staff-leave-scroll input{margin:0;max-width:148px}
.att-spa-scope .staff-leave-scroll input[type=number]{max-width:88px}
.att-spa-scope .staff-leave-scroll input:disabled{opacity:1;background:transparent;border-color:transparent;color:inherit}
.att-spa-scope .staff-leave-balance{display:inline-block;min-width:42px;padding:5px 10px;border-radius:8px;text-align:center;background:#EFF6FF;color:#1D4ED8;font-weight:700;font-variant-numeric:tabular-nums}
.att-spa-scope .staff-leave-panel button[hidden]{display:none}

.att-spa-scope .company-weekday, .att-spa-scope .company-day-code, .att-spa-scope .company-calendar-legend{display:none}
.att-spa-scope :is(.leader-layout,.mobile-shell) .company-calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-top:12px}
.att-spa-scope :is(.leader-layout,.mobile-shell) .company-weekday{display:block;text-align:center;color:#616981;font-size:11px;font-weight:700}
.att-spa-scope :is(.leader-layout,.mobile-shell) .company-calendar-day:first-of-type{grid-column-start:var(--first-day,1)}
.att-spa-scope :is(.leader-layout,.mobile-shell) .company-calendar-day{align-items:center;justify-content:center;gap:4px;min-height:52px;padding:4px 0;text-align:center;border-radius:8px}
.att-spa-scope :is(.leader-layout,.mobile-shell) .company-calendar-day :is(.company-date-dow,.company-day-status,small){display:none}
.att-spa-scope :is(.leader-layout,.mobile-shell) .company-day-code{display:block;font-size:10px;color:#555f77}
.att-spa-scope :is(.leader-layout,.mobile-shell) .company-calendar-day:has(select):not(.holiday) .company-day-code{display:none}
.att-spa-scope :is(.leader-layout,.mobile-shell) .company-calendar-day select{padding:2px 0;font-size:11px}
.att-spa-scope :is(.leader-layout,.mobile-shell) .company-calendar-legend{display:block;font-size:11px;color:#555f77;line-height:1.5}

/* Login reference: card, background, title, and input-box CSS transcribed from the video. */
.att-spa-scope .login-shell{
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #eef6ff, #f7f9ff, #e9f7f5);
  position: relative;
  padding: 12px;
  font-family: var(--font-family);
}
.att-spa-scope .login-shell::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(50, 100, 180, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(50, 100, 180, .12) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}
.att-spa-scope .login-blur{
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
}
.att-spa-scope .login-blur.one{ width: 300px; height: 300px; background: #b9d9ff; top: -100px; left: -80px; }
.att-spa-scope .login-blur.two{ width: 350px; height: 350px; background: #c9f3ef; right: -120px; bottom: -100px; }
.att-spa-scope .login-blur.three{ width: 250px; height: 250px; background: #dbeafe; left: 20%; bottom: -120px; }

.att-spa-scope .login-shell .login-card{
  width: 420px;
  height: 420px;
  max-width: 100%;
  flex: none;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(238, 245, 255, .48));
  border: 2px solid rgba(255, 255, 255, .85);
  box-shadow: 0 35px 80px rgba(70, 100, 150, .20),
    inset 0 2px 10px rgba(255, 255, 255, .8),
    inset 0 -20px 60px rgba(180, 210, 255, .18);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  animation: loginCardIn 1s ease;
}
.att-spa-scope .login-shell .login-card::before{
  content: "";
  position: absolute;
  width: 92%;
  height: 92%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .65);
  pointer-events: none;
}
.att-spa-scope .login-content{
  width: 268px;
  position: relative;
  z-index: 3;
}
.att-spa-scope .glass-login-heading{ text-align: center; margin-bottom: 18px; transform: translateY(-5px); }
.att-spa-scope .glass-login-mark{
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: linear-gradient(145deg, #3B82F6, #2563EB);
  color: #fff;
  box-shadow: 0 5px 12px rgba(37, 99, 235, 0.25);
}
.att-spa-scope .glass-login-clock{
  position: relative;
  width: 21px;
  height: 21px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.att-spa-scope .glass-login-clock::before{
  content: "";
  position: absolute;
  top: 3px;
  left: 7px;
  width: 5px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-bottom-left-radius: 2px;
}
.att-spa-scope .glass-login-heading h1{
  margin: 0;
  transform: translateY(-6px);
  font-size: 20px;
  color: #101827;
  font-weight: 700;
  letter-spacing: -1px;
}

.att-spa-scope .login-card .input-box{
  height: 42px;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 13px;
  border: 2px solid #1c2433;
  border-radius: 35px;
  background: rgba(255, 255, 255, .30);
  transition: .3s ease;
  margin-bottom: 10px;
  gap: 9px;
}
.att-spa-scope .login-card .input-box:focus-within{ border-color: #276dd0; box-shadow: 0 0 0 3px #276dd025; }
.att-spa-scope .login-card .input-box input{
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #101827;
  font-size: 13.5px;
}
/* Keep the glass background visible when the browser fills login fields. */
.att-spa-scope .login-card .input-box input:autofill{
  filter: none;
  transition: background-color 99999s step-end;
}
.att-spa-scope .login-card .input-box input:-webkit-autofill{
  -webkit-text-fill-color: #101827;
  caret-color: #101827;
  transition: background-color 99999s step-end;
}
.att-spa-scope .login-card .input-box input::placeholder{ color: #687287; opacity: 1; }
.att-spa-scope .login-symbol{ width: 16px; height: 16px; position: relative; flex: none; color: #687287; }
.att-spa-scope .login-user-symbol::before, .att-spa-scope .login-user-symbol::after, .att-spa-scope .login-lock-symbol::before, .att-spa-scope .login-lock-symbol::after{
  content: "";
  position: absolute;
  border: 1.5px solid currentColor;
}
.att-spa-scope .login-user-symbol::before{ width: 6px; height: 6px; border-radius: 50%; top: 0; left: 5px; }
.att-spa-scope .login-user-symbol::after{ width: 14px; height: 6px; border-radius: 7px 7px 0 0; border-bottom: 0; bottom: 0; left: 1px; }
.att-spa-scope .login-lock-symbol::before{ width: 8px; height: 8px; border-radius: 5px 5px 0 0; top: 0; left: 4px; }
.att-spa-scope .login-lock-symbol::after{ width: 14px; height: 9px; border-radius: 3px; bottom: 0; left: 1px; background: #f5f8fc; }
.att-spa-scope .login-card #toggle-login-password{
  display: grid;
  place-items: center;
  flex: none;
  min-width: 28px;
  min-height: 32px;
  padding: 0;
  margin-right: -6px;
  background: transparent;
  color: #687287;
}
.att-spa-scope .login-eye-symbol{ display: block; position: relative; width: 13px; height: 9px; border: 1.5px solid currentColor; border-radius: 75% 35%; transform: rotate(24deg); }
.att-spa-scope .login-eye-symbol::after{ content: ""; position: absolute; inset: 1px 3px; border: 1px solid currentColor; border-radius: 50%; }
.att-spa-scope #toggle-login-password[aria-pressed=true] .login-eye-symbol{ color: #1e64c3; }
.att-spa-scope .login-options{ display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.att-spa-scope .login-card .login-remember{ display: flex; flex-direction: row; align-items: center; margin: 0; font-size: 11px; color: #4b5667; gap: 8px; }
.att-spa-scope .login-card .login-remember input{
  appearance: none; width: 34px; height: 19px; padding: 2px; margin: 0; border: 0;
  border-radius: 20px; background: #778598; cursor: pointer;
}
.att-spa-scope .login-remember input::before{ content: ""; display: block; width: 15px; height: 15px; border-radius: 50%; background: white; transition: transform .2s ease; }
.att-spa-scope .login-card .login-remember input:checked{ background: #2878db; }
.att-spa-scope .login-remember input:checked::before{ transform: translateX(15px); }
.att-spa-scope .login-card #login-help{ background: transparent; color: #1d5eac; padding: 4px 0; font-size: 11px; }
.att-spa-scope .login-card #login-help-message, .att-spa-scope .login-card #login-error{ font-size: 13px; margin: 8px 0 0; }
.att-spa-scope .login-card #login-error:empty{ display: none; }
.att-spa-scope .login-card .login-submit-btn{
  width: 100%; min-height: 42px; margin-top: 15px; border-radius: 35px;
  background: linear-gradient(#3B82F6, #2563EB); box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
  color: white; font-size: 14px; font-weight: 600;
}
.att-spa-scope .login-card :focus-visible{ outline: 2px solid #245dba; outline-offset: 3px; }
.att-spa-scope .login-card .input-box input:focus-visible{ outline: none; }
@keyframes loginCardIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@media (max-width: 444px) {
  .att-spa-scope .login-shell .login-card{ width: 100%; height: auto; min-height: min(100vw - 24px, 420px); padding: 34px 0; }
  .att-spa-scope .login-content{ width: min(268px, 78%); }
  .att-spa-scope .glass-login-heading{ margin-bottom: 18px; }
  .att-spa-scope .login-card .login-submit-btn{ min-height: 44px; margin-top: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .att-spa-scope .login-shell .login-card{ animation: none; }
  .att-spa-scope .login-remember input::before{ transition: none; }
}

/* Mobile navigation chosen by account permissions */
.att-spa-scope .mobile-tab-nav{
  --tab-padding: 5px;
  --tab-accent: #1764d1;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--tab-count), minmax(0, 1fr));
  gap: 0;
  padding: var(--tab-padding);
  border: 1px solid #ebe7ed;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(50, 27, 40, .12);
  isolation: isolate;
}
.att-spa-scope .mobile-tab-nav .mobile-tab-item{
  --tab-icon-fill: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 48px;
  padding: 4px 2px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #4a5262;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  transition: color 160ms ease;
}
.att-spa-scope .mobile-tab-nav .mobile-tab-item:hover{ transform: none; }
.att-spa-scope .mobile-tab-item:focus-visible{ outline: 2px solid #252f45; outline-offset: -3px; }
.att-spa-scope .mobile-tab-item svg{ width: 19px; height: 19px; }
.att-spa-scope .mobile-tab-nav .mobile-tab-item[aria-current="page"]{
  --tab-icon-fill: var(--tab-accent);
  color: #fff;
}
.att-spa-scope .mobile-tab-marker{
  position: absolute;
  z-index: -1;
  inset: var(--tab-padding) auto var(--tab-padding) var(--tab-padding);
  width: calc((100% - 2 * var(--tab-padding)) / var(--tab-count));
  border-radius: 999px;
  background: var(--tab-accent);
  box-shadow: 0 4px 10px rgba(23, 100, 209, .28);
  transform: translateX(calc(var(--tab-current) * 100%));
  pointer-events: none;
}
.att-spa-scope .mobile-tab-marker.is-moving{ animation: mobile-tab-slide 260ms cubic-bezier(.22,.8,.3,1); }
@keyframes mobile-tab-slide {
  from { transform: translateX(calc(var(--tab-previous) * 100%)); }
}
@media (max-width: 380px) {
  .att-spa-scope .mobile-tab-nav .mobile-tab-item{ font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .att-spa-scope .mobile-tab-marker.is-moving{ animation: none; }
  .att-spa-scope .mobile-tab-nav .mobile-tab-item{ transition: none; }
}

.att-spa-scope .leader-layout.preview-mobile:has(.mobile-tab-nav){
  --mobile-tab-bottom: max(10px, env(safe-area-inset-bottom, 0px));
  padding-bottom: calc(78px + var(--mobile-tab-bottom));
}
.att-spa-scope .mobile-tab-nav{
  position: fixed;
  z-index: 20;
  bottom: max(6px, env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: min(402px, calc(100% - 28px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  margin: 0;
}

.att-spa-scope .mobile-settings-menu{ display: grid; gap: 12px; }
.att-spa-scope .mobile-settings-menu h1{ margin: 0 0 8px; font-size: 21px; }
.att-spa-scope .mobile-settings-menu > button, .att-spa-scope .mobile-settings-menu > details > summary{
  width: 100%; padding: 16px; border: 1px solid #e0e5ed; border-radius: 12px;
  background: white; color: #23304b; text-align: left; cursor: pointer;
}
.att-spa-scope .mobile-settings-menu > details > summary{ font-weight: 600; }
.att-spa-scope .mobile-settings-menu #mobile-default-options-body{ margin-top: 12px; }

.att-spa-scope #mobile-settings-popup{ position: fixed; inset: 0; z-index: 35; }
.att-spa-scope .mobile-settings-dismiss{ position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; background: transparent; padding: 0; }
.att-spa-scope #mobile-settings-popup .mobile-settings-dismiss:hover{ transform: none; }
.att-spa-scope #mobile-settings-popup .mobile-settings-menu{
  position: absolute;
  bottom: calc(80px + max(10px, env(safe-area-inset-bottom, 0px)));
  right: max(14px, calc((100vw - 402px) / 2));
  width: 205px;
  max-width: calc(100vw - 28px);
  margin: 0;
  padding: 6px;
  gap: 2px;
  border-radius: 17px;
  box-shadow: 0 8px 30px #17243b26;
}
.att-spa-scope #mobile-settings-popup .mobile-settings-menu > button{
  padding: 12px 14px;
  border: 0;
  border-radius: 11px;
  font-size: 13px;
}
.att-spa-scope #mobile-settings-popup .mobile-settings-menu > button:hover{ background: #eef4ff; transform: none; }

.att-spa-scope .mobile-account-overlay{ padding: 14px; }
.att-spa-scope .mobile-account-overlay > .dialog{
  display: flex;
  flex-direction: column;
  width: var(--mobile-dialog-width, min(402px, calc(100vw - 28px))) !important;
  max-width: min(100%, calc(100vw - 28px)) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-height: calc(100dvh - 28px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow: hidden !important;
  resize: none !important;
}
.att-spa-scope .mobile-account-overlay .dialog > header{
  flex: none;
  padding: 15px 16px;
}
.att-spa-scope .mobile-account-overlay .dialog h2{ font-size: 17px; margin: 0; }
.att-spa-scope .mobile-account-overlay .dialog > .dialog-body{
  min-height: 0;
  min-width: 0;
  padding: 16px;
  overflow: auto;
  overscroll-behavior: contain;
}
.att-spa-scope .mobile-account-overlay .dialog-body > .panel{
  min-width: 0; width: 100%; padding: 0; border: 0; box-shadow: none;
}
.att-spa-scope .mobile-account-overlay .dialog-body > .panel > h2{ display: none; }
.att-spa-scope .mobile-account-overlay :is(input, select, textarea){ max-width: 100%; min-width: 0; }
.att-spa-scope .mobile-account-overlay .capture-grid{ gap: 12px; }

.att-spa-scope .mobile-account-overlay .dialog{ font-size: 13px; }
.att-spa-scope .mobile-account-overlay .dialog > header h2{ font-size: 16px; }
.att-spa-scope .mobile-account-overlay .dialog :is(label, small, p, button){ font-size: 13px; }
.att-spa-scope .mobile-account-overlay .dialog :is(select, input:not([type=checkbox]):not([type=radio]), textarea){
  font-size: 14px; min-height: 40px; padding: 8px 10px;
}
.att-spa-scope .mobile-account-overlay #mobile-defaults-form .check-label{
  display: flex; flex-direction: row; align-items: center; justify-content: flex-start;
  align-self: stretch; margin: 6px 0 0; gap: 8px; font-size: 13px !important;
}
.att-spa-scope .mobile-account-overlay .dialog input:is([type=checkbox], [type=radio]){
  width: 16px; height: 16px; min-width: 16px; min-height: 16px;
  padding: 0; margin: 0; flex: 0 0 16px;
}
.att-spa-scope .mobile-account-overlay #mobile-defaults-form .capture-grid{
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 12px;
}
.att-spa-scope .mobile-account-overlay #mobile-defaults-form .capture-grid label{ min-width: 0; margin-top: 4px; }
.att-spa-scope .mobile-account-overlay .dialog button{ min-height: 38px; padding: 9px 12px; }

/* iOS must not zoom the viewport when a form control receives focus. */
@media (hover: none) and (pointer: coarse) {
  .att-spa-scope .leader-layout.preview-mobile :is(input:not([type=checkbox]):not([type=radio]), select, textarea), .att-spa-scope .mobile-account-overlay .dialog :is(input:not([type=checkbox]):not([type=radio]), select, textarea){
    font-size: 16px;
  }
}
.att-spa-scope .mobile-account-overlay > .dialog{
  width: min(360px, calc(100vw - 32px)) !important;
  max-width: min(360px, calc(100vw - 32px)) !important;
}
.att-spa-scope .mobile-account-overlay .dialog-body label{ margin-top: 10px; }
.att-spa-scope .mobile-account-overlay .dialog > .dialog-body{ padding: 14px; }
.att-spa-scope .leader-layout.preview-mobile{ overflow-x: clip; }
.att-spa-scope .mobile-tab-nav{ -webkit-transform: translateX(-50%) translateZ(0); transform: translateX(-50%) translateZ(0); }

.att-spa-scope .mobile-tab-marker{ transition: transform 220ms cubic-bezier(.22,.8,.3,1); }
.att-spa-scope .leader-main[aria-busy=true]{ opacity: .65; pointer-events: none; }
.att-spa-scope .mobile-account-overlay .dialog input[type=password]{ font-size: 16px !important; }
@media (prefers-reduced-motion: reduce) { .att-spa-scope .mobile-tab-marker{ transition: none; } }

.att-spa-scope{ -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.att-spa-scope .mobile-account-overlay > .dialog{
  width: var(--mobile-dialog-width, min(360px, calc(100vw - 32px))) !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

.att-spa-scope #punch-status-message[hidden]{ display: none; }
.att-spa-scope #punch-status-message.punch-reminder-danger{
  color: #b42332; background: #fff0f1; border-color: #f2bec4;
}

/* Compact rounded dock */
.att-spa-scope .mobile-tab-nav{
  --tab-padding: 4px;
  width: min(380px, calc(100% - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  padding: var(--tab-padding);
  border: 1px solid #ebe7ed;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 4px 14px #17243b1a;
}
.att-spa-scope .mobile-tab-nav .mobile-tab-item{
  min-height: 44px; padding: 3px 1px; gap: 3px; border-radius: 28px;
  font-size: 10px; line-height: 1.15;
}
.att-spa-scope .mobile-tab-item svg{ width: 18px; height: 18px; }
.att-spa-scope .mobile-tab-marker{ border-radius: 28px; }

/* Stable mobile sizing on login and all application forms. */
@media (hover: none) and (pointer: coarse) {
  .att-spa-scope, .att-spa-scope{
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  .att-spa-scope input:not([type=checkbox]):not([type=radio]), .att-spa-scope select, .att-spa-scope textarea, .att-spa-scope .login-card .input-box input{
    font-size: 16px !important;
  }
  .att-spa-scope .leader-layout.preview-mobile, .att-spa-scope .mobile-shell, .att-spa-scope .mobile-card, .att-spa-scope .leader-main, .att-spa-scope .login-content{ min-width: 0; }
  .att-spa-scope .leader-main > *, .att-spa-scope .mobile-shell > *{ max-width: 100%; }
}

/* Retire the previous reminder strip even when an older screen is restored. */
.att-spa-scope #mobile-punch-reminder{ display: none !important; }

/* Allow scrolling while disabling browser pinch and double-tap zoom on touch screens. */
@media (any-pointer: coarse) {
  .att-spa-scope, .att-spa-scope, .att-spa-scope #app, .att-spa-scope .overlay, .att-spa-scope .mobile-tab-nav{
    touch-action: pan-x pan-y;
  }
}
.att-spa-scope .login-card .input-box input, .att-spa-scope .mobile-account-overlay .dialog input:not([type=checkbox]):not([type=radio]){
  font-size: 16px !important;
}

.att-spa-scope .mobile-tab-item > svg{ display: block; flex-shrink: 0; align-self: center; }
.att-spa-scope .mobile-tab-item > span{ width: 100%; text-align: center; }

.att-spa-scope .mobile-tab-nav .mobile-tab-item{ display: grid; place-items: center; }
.att-spa-scope .mobile-tab-nav .mobile-tab-content{
  display: grid;
  grid-template-rows: 18px auto;
  justify-items: center;
  align-content: center;
  width: 100%;
  gap: 3px;
  pointer-events: none;
}
.att-spa-scope .mobile-tab-nav .mobile-tab-content > svg{
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 auto;
}
.att-spa-scope .mobile-tab-nav .mobile-tab-label{ display: block; width: 100%; text-align: center; }

/* The mobile calendar starts directly with the leave panel. */
.att-spa-scope .preview-mobile .roster-page-heading{ display: none; }

/* GPU dialog spring entrance (matches animate-ui snappy curve) */
@keyframes ccDialogIn {
  from { opacity: 0; transform: translate3d(0, 10px, 0) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.att-spa-scope .overlay > .dialog{ animation: ccDialogIn 280ms cubic-bezier(0.22, 1, 0.36, 1) backwards; }
@media (prefers-reduced-motion: reduce) {
  .att-spa-scope .overlay > .dialog, .att-spa-scope button, .att-spa-scope #toast{ animation: none !important; transition: none !important; }
}

/* Dark Mode toggle & surface overrides for /chamcong/ */
.att-spa-scope .att-theme-toggle{
  position: fixed;
  right: 14px;
  bottom: 76px;
  z-index: 950;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #CBD5E1;
  background: rgba(255, 255, 255, 0.92);
  color: #0F172A;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
}
[data-theme="dark"] .att-spa-scope .att-theme-toggle, body.dark-theme .att-spa-scope .att-theme-toggle{
  background: rgba(21, 30, 46, 0.92);
  border-color: #334155;
  color: #F1F5F9;
}
[data-theme="dark"] .att-spa-scope, body.dark-theme .att-spa-scope{
  --border: #263449;
  --muted: #94A3B8;
  --purple: #60A5FA;
  --primary: #3B82F6;
  color-scheme: dark;
}
[data-theme="dark"] .att-spa-scope, body.dark-theme .att-spa-scope, [data-theme="dark"] .att-spa-scope #app, body.dark-theme .att-spa-scope #app{
  background: #0B1120 !important;
  color: #F1F5F9 !important;
  color-scheme: dark;
}
[data-theme="dark"] .att-spa-scope .card, body.dark-theme .att-spa-scope .card, [data-theme="dark"] .att-spa-scope .panel, body.dark-theme .att-spa-scope .panel, [data-theme="dark"] .att-spa-scope .stat, body.dark-theme .att-spa-scope .stat, [data-theme="dark"] .att-spa-scope .employee-panel, body.dark-theme .att-spa-scope .employee-panel, [data-theme="dark"] .att-spa-scope .login-card, body.dark-theme .att-spa-scope .login-card, [data-theme="dark"] .att-spa-scope .dialog, body.dark-theme .att-spa-scope .dialog, [data-theme="dark"] .att-spa-scope .topbar, body.dark-theme .att-spa-scope .topbar, [data-theme="dark"] .att-spa-scope .header-nav, body.dark-theme .att-spa-scope .header-nav, [data-theme="dark"] .att-spa-scope .sidebar, body.dark-theme .att-spa-scope .sidebar, [data-theme="dark"] .att-spa-scope .mobile-topbar, body.dark-theme .att-spa-scope .mobile-topbar, [data-theme="dark"] .att-spa-scope .mobile-tabs, body.dark-theme .att-spa-scope .mobile-tabs, [data-theme="dark"] .att-spa-scope .mobile-tab-nav, body.dark-theme .att-spa-scope .mobile-tab-nav, [data-theme="dark"] .att-spa-scope .mobile-card, body.dark-theme .att-spa-scope .mobile-card, [data-theme="dark"] .att-spa-scope .mobile-record-card, body.dark-theme .att-spa-scope .mobile-record-card, [data-theme="dark"] .att-spa-scope .sheet-card, body.dark-theme .att-spa-scope .sheet-card, [data-theme="dark"] .att-spa-scope .sheet-scroll, body.dark-theme .att-spa-scope .sheet-scroll, [data-theme="dark"] .att-spa-scope .stat-box, body.dark-theme .att-spa-scope .stat-box, [data-theme="dark"] .att-spa-scope .roster-card, body.dark-theme .att-spa-scope .roster-card, [data-theme="dark"] .att-spa-scope .roster-stat-card, body.dark-theme .att-spa-scope .roster-stat-card, [data-theme="dark"] .att-spa-scope .waiting-card, body.dark-theme .att-spa-scope .waiting-card, [data-theme="dark"] .att-spa-scope .perf-kpi-card, body.dark-theme .att-spa-scope .perf-kpi-card, [data-theme="dark"] .att-spa-scope .perf-rank-item, body.dark-theme .att-spa-scope .perf-rank-item, [data-theme="dark"] .att-spa-scope .perf-modal-summary, body.dark-theme .att-spa-scope .perf-modal-summary, [data-theme="dark"] .att-spa-scope .leader-approval-card, body.dark-theme .att-spa-scope .leader-approval-card, [data-theme="dark"] .att-spa-scope .leader-mobile-overlay .dialog > header, body.dark-theme .att-spa-scope .leader-mobile-overlay .dialog > header, [data-theme="dark"] .att-spa-scope .inline-add-bar, body.dark-theme .att-spa-scope .inline-add-bar, [data-theme="dark"] .att-spa-scope .users-top-actions, body.dark-theme .att-spa-scope .users-top-actions, [data-theme="dark"] .att-spa-scope .emp-history-filter, body.dark-theme .att-spa-scope .emp-history-filter, [data-theme="dark"] .att-spa-scope .ot-preview-box, body.dark-theme .att-spa-scope .ot-preview-box, [data-theme="dark"] .att-spa-scope .photo-compare-card, body.dark-theme .att-spa-scope .photo-compare-card, [data-theme="dark"] .att-spa-scope .action-dialog, body.dark-theme .att-spa-scope .action-dialog{
  background: #151E2E !important;
  border-color: #263449 !important;
  color: #F1F5F9 !important;
}
[data-theme="dark"] .att-spa-scope .perf-kpi-card *, body.dark-theme .att-spa-scope .perf-kpi-card *, [data-theme="dark"] .att-spa-scope .perf-rank-item *, body.dark-theme .att-spa-scope .perf-rank-item *, [data-theme="dark"] .att-spa-scope .perf-modal-summary *, body.dark-theme .att-spa-scope .perf-modal-summary *, [data-theme="dark"] .att-spa-scope .header-nav button, body.dark-theme .att-spa-scope .header-nav button, [data-theme="dark"] .att-spa-scope .header-nav a, body.dark-theme .att-spa-scope .header-nav a, [data-theme="dark"] .att-spa-scope .side-nav-item, body.dark-theme .att-spa-scope .side-nav-item{
  color: #CBD5E1;
}
[data-theme="dark"] .att-spa-scope .perf-kpi-card strong, body.dark-theme .att-spa-scope .perf-kpi-card strong, [data-theme="dark"] .att-spa-scope .perf-kpi-card .kpi-val, body.dark-theme .att-spa-scope .perf-kpi-card .kpi-val, [data-theme="dark"] .att-spa-scope .perf-rank-item strong, body.dark-theme .att-spa-scope .perf-rank-item strong, [data-theme="dark"] .att-spa-scope .perf-rank-item b, body.dark-theme .att-spa-scope .perf-rank-item b, [data-theme="dark"] .att-spa-scope .perf-rank-name, body.dark-theme .att-spa-scope .perf-rank-name{
  color: #F1F5F9 !important;
}
[data-theme="dark"] .att-spa-scope .perf-rank-item:hover, body.dark-theme .att-spa-scope .perf-rank-item:hover, [data-theme="dark"] .att-spa-scope .side-nav-item:hover, body.dark-theme .att-spa-scope .side-nav-item:hover, [data-theme="dark"] .att-spa-scope .users-subtab-btn:hover, body.dark-theme .att-spa-scope .users-subtab-btn:hover, [data-theme="dark"] .att-spa-scope .perm-item-row:hover td, body.dark-theme .att-spa-scope .perm-item-row:hover td{
  background: #1B2538 !important;
  border-color: #3B82F6 !important;
  color: #F1F5F9 !important;
}
[data-theme="dark"] .att-spa-scope .header-nav .active, body.dark-theme .att-spa-scope .header-nav .active, [data-theme="dark"] .att-spa-scope .side-nav-item.active, body.dark-theme .att-spa-scope .side-nav-item.active, [data-theme="dark"] .att-spa-scope .users-subtab-btn.active, body.dark-theme .att-spa-scope .users-subtab-btn.active, [data-theme="dark"] .att-spa-scope .roster-choice-card.active, body.dark-theme .att-spa-scope .roster-choice-card.active{
  background: rgba(59, 130, 246, 0.22) !important;
  color: #93C5FD !important;
  border-color: rgba(96, 165, 250, 0.40) !important;
}
[data-theme="dark"] .att-spa-scope .users-subtabs, body.dark-theme .att-spa-scope .users-subtabs, [data-theme="dark"] .att-spa-scope .leader-tabs button, body.dark-theme .att-spa-scope .leader-tabs button, [data-theme="dark"] .att-spa-scope .roster-choice-card, body.dark-theme .att-spa-scope .roster-choice-card, [data-theme="dark"] .att-spa-scope .mobile-tab-btn, body.dark-theme .att-spa-scope .mobile-tab-btn, [data-theme="dark"] .att-spa-scope .outline, body.dark-theme .att-spa-scope .outline, [data-theme="dark"] .att-spa-scope .quick-login-pills button, body.dark-theme .att-spa-scope .quick-login-pills button, [data-theme="dark"] .att-spa-scope .shift-choice-item, body.dark-theme .att-spa-scope .shift-choice-item, [data-theme="dark"] .att-spa-scope .project-choice-item, body.dark-theme .att-spa-scope .project-choice-item, [data-theme="dark"] .att-spa-scope .emp-browser-box, body.dark-theme .att-spa-scope .emp-browser-box, [data-theme="dark"] .att-spa-scope .mobile-record-work-note, body.dark-theme .att-spa-scope .mobile-record-work-note, [data-theme="dark"] .att-spa-scope .browser-code, body.dark-theme .att-spa-scope .browser-code{
  background: #1B2538 !important;
  border-color: #334155 !important;
  color: #E2E8F0 !important;
}
[data-theme="dark"] .att-spa-scope .rank-medal.top-1, body.dark-theme .att-spa-scope .rank-medal.top-1, [data-theme="dark"] .att-spa-scope .perf-grade-pill.grade-b, body.dark-theme .att-spa-scope .perf-grade-pill.grade-b, [data-theme="dark"] .att-spa-scope .row-countered, body.dark-theme .att-spa-scope .row-countered{
  background: rgba(245, 158, 11, 0.20) !important;
  color: #FDE68A !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
}
[data-theme="dark"] .att-spa-scope .rank-medal.top-2, body.dark-theme .att-spa-scope .rank-medal.top-2, [data-theme="dark"] .att-spa-scope .perf-grade-pill.grade-none, body.dark-theme .att-spa-scope .perf-grade-pill.grade-none{
  background: #1E293B !important;
  color: #CBD5E1 !important;
  border-color: #334155 !important;
}
[data-theme="dark"] .att-spa-scope .rank-medal.top-3, body.dark-theme .att-spa-scope .rank-medal.top-3{
  background: rgba(249, 115, 22, 0.22) !important;
  color: #FDBA74 !important;
  border-color: rgba(249, 115, 22, 0.45) !important;
}
[data-theme="dark"] .att-spa-scope .rank-medal.warn-1, body.dark-theme .att-spa-scope .rank-medal.warn-1, [data-theme="dark"] .att-spa-scope .rank-medal.warn-2, body.dark-theme .att-spa-scope .rank-medal.warn-2, [data-theme="dark"] .att-spa-scope .rank-medal.warn-3, body.dark-theme .att-spa-scope .rank-medal.warn-3, [data-theme="dark"] .att-spa-scope .perf-grade-pill.grade-c, body.dark-theme .att-spa-scope .perf-grade-pill.grade-c{
  background: rgba(239, 68, 68, 0.20) !important;
  color: #FCA5A5 !important;
  border-color: rgba(239, 68, 68, 0.45) !important;
}
[data-theme="dark"] .att-spa-scope .sheet-th-day, body.dark-theme .att-spa-scope .sheet-th-day, [data-theme="dark"] .att-spa-scope .sheet-th-dow, body.dark-theme .att-spa-scope .sheet-th-dow, [data-theme="dark"] .att-spa-scope .sheet-td-total, body.dark-theme .att-spa-scope .sheet-td-total, [data-theme="dark"] .att-spa-scope .attendance-table thead th, body.dark-theme .att-spa-scope .attendance-table thead th, [data-theme="dark"] .att-spa-scope .roster-table th, body.dark-theme .att-spa-scope .roster-table th, [data-theme="dark"] .att-spa-scope .roster-log-table thead th, body.dark-theme .att-spa-scope .roster-log-table thead th, [data-theme="dark"] .att-spa-scope .perm-matrix-table thead th, body.dark-theme .att-spa-scope .perm-matrix-table thead th{
  background: #0F172A !important;
  color: #CBD5E1 !important;
  border-color: #263449 !important;
}
[data-theme="dark"] .att-spa-scope .sheet-th-dow.is-sun, body.dark-theme .att-spa-scope .sheet-th-dow.is-sun{
  background: rgba(239, 68, 68, 0.18) !important;
  color: #FCA5A5 !important;
}
[data-theme="dark"] .att-spa-scope .roster-table th.th-weekend, body.dark-theme .att-spa-scope .roster-table th.th-weekend, [data-theme="dark"] .att-spa-scope .roster-table td.td-weekend, body.dark-theme .att-spa-scope .roster-table td.td-weekend, [data-theme="dark"] .att-spa-scope .roster-v-item.is-weekend, body.dark-theme .att-spa-scope .roster-v-item.is-weekend{
  background: rgba(139, 92, 246, 0.14) !important;
  color: #DDD6FE !important;
}
[data-theme="dark"] .att-spa-scope .roster-table th.th-holiday, body.dark-theme .att-spa-scope .roster-table th.th-holiday, [data-theme="dark"] .att-spa-scope .roster-table td.td-holiday, body.dark-theme .att-spa-scope .roster-table td.td-holiday, [data-theme="dark"] .att-spa-scope .roster-v-item.is-holiday, body.dark-theme .att-spa-scope .roster-v-item.is-holiday, [data-theme="dark"] .att-spa-scope .excel-sheet-table td[data-calendar="holiday"], body.dark-theme .att-spa-scope .excel-sheet-table td[data-calendar="holiday"]{
  background: rgba(245, 158, 11, 0.20) !important;
  color: #FDE68A !important;
}
[data-theme="dark"] .att-spa-scope .perm-group-row td, body.dark-theme .att-spa-scope .perm-group-row td{
  background: rgba(99, 102, 241, 0.16) !important;
  color: #C7D2FE !important;
}
[data-theme="dark"] .att-spa-scope .shift-choices, body.dark-theme .att-spa-scope .shift-choices, [data-theme="dark"] .att-spa-scope .project-choices, body.dark-theme .att-spa-scope .project-choices, [data-theme="dark"] .att-spa-scope .punch-button, body.dark-theme .att-spa-scope .punch-button, [data-theme="dark"] .att-spa-scope .punch-button.overtime, body.dark-theme .att-spa-scope .punch-button.overtime, [data-theme="dark"] .att-spa-scope .evidence-note, body.dark-theme .att-spa-scope .evidence-note{
  background: rgba(59, 130, 246, 0.12) !important;
  border-color: rgba(96, 165, 250, 0.32) !important;
  color: #E2E8F0 !important;
}
[data-theme="dark"] .att-spa-scope .evidence-note strong, body.dark-theme .att-spa-scope .evidence-note strong, [data-theme="dark"] .att-spa-scope .tabs .selected, body.dark-theme .att-spa-scope .tabs .selected, [data-theme="dark"] .att-spa-scope .local, body.dark-theme .att-spa-scope .local, [data-theme="dark"] .att-spa-scope .primary-br-badge, body.dark-theme .att-spa-scope .primary-br-badge, [data-theme="dark"] .att-spa-scope .status.project-tag, body.dark-theme .att-spa-scope .status.project-tag, [data-theme="dark"] .att-spa-scope .status.overtime-tag, body.dark-theme .att-spa-scope .status.overtime-tag{
  background: rgba(59, 130, 246, 0.22) !important;
  border-color: rgba(96, 165, 250, 0.40) !important;
  color: #93C5FD !important;
}
[data-theme="dark"] .att-spa-scope .time-block > strong, body.dark-theme .att-spa-scope .time-block > strong, [data-theme="dark"] .att-spa-scope .login-card label, body.dark-theme .att-spa-scope .login-card label, [data-theme="dark"] .att-spa-scope .shift-choices legend, body.dark-theme .att-spa-scope .shift-choices legend, [data-theme="dark"] .att-spa-scope .project-choices legend, body.dark-theme .att-spa-scope .project-choices legend{
  color: #F1F5F9 !important;
}
[data-theme="dark"] .att-spa-scope .waiting-detail, body.dark-theme .att-spa-scope .waiting-detail, [data-theme="dark"] .att-spa-scope .approval-notes, body.dark-theme .att-spa-scope .approval-notes{
  color: #CBD5E1 !important;
}
[data-theme="dark"] .att-spa-scope .status, body.dark-theme .att-spa-scope .status{ background: #1E293B !important; color: #CBD5E1 !important; }
[data-theme="dark"] .att-spa-scope .status.success, body.dark-theme .att-spa-scope .status.success{ background: rgba(16, 185, 129, 0.18) !important; color: #6EE7B7 !important; }
[data-theme="dark"] .att-spa-scope .status.warning, body.dark-theme .att-spa-scope .status.warning, [data-theme="dark"] .att-spa-scope .emp-browser-box.emp-browser-warn, body.dark-theme .att-spa-scope .emp-browser-box.emp-browser-warn{ background: rgba(245, 158, 11, 0.18) !important; color: #FDE68A !important; border-color: rgba(245, 158, 11, 0.40) !important; }
[data-theme="dark"] .att-spa-scope .status.danger, body.dark-theme .att-spa-scope .status.danger, [data-theme="dark"] .att-spa-scope .alert-panel, body.dark-theme .att-spa-scope .alert-panel{ background: rgba(239, 68, 68, 0.16) !important; color: #FCA5A5 !important; border-color: rgba(239, 68, 68, 0.38) !important; }
[data-theme="dark"] .att-spa-scope .waiting-projects, body.dark-theme .att-spa-scope .waiting-projects{ background: rgba(139, 92, 246, 0.22) !important; color: #DDD6FE !important; }
[data-theme="dark"] .att-spa-scope input, body.dark-theme .att-spa-scope input, [data-theme="dark"] .att-spa-scope select, body.dark-theme .att-spa-scope select, [data-theme="dark"] .att-spa-scope textarea, body.dark-theme .att-spa-scope textarea{
  background: #0F172A !important;
  border-color: #263449 !important;
  color: #F1F5F9 !important;
}
[data-theme="dark"] .att-spa-scope table th, body.dark-theme .att-spa-scope table th{
  background: #0F172A !important;
  color: #94A3B8 !important;
  border-color: #263449 !important;
}
[data-theme="dark"] .att-spa-scope table td, body.dark-theme .att-spa-scope table td{
  border-color: #263449 !important;
  color: #F1F5F9 !important;
}

/* ==========================================================================
   Dark Mode Pass 4 — Exhaustive Zero-White Attendance Sweep
   ========================================================================== */

/* Mobile Viewport & Punch Shell */
[data-theme="dark"] .att-spa-scope .mobile-viewport, body.dark-theme .att-spa-scope .mobile-viewport, [data-theme="dark"] .att-spa-scope .mobile-shell, body.dark-theme .att-spa-scope .mobile-shell{
  background: #0B1120 !important;
  color: #F1F5F9 !important;
}
[data-theme="dark"] .att-spa-scope .mobile-user strong, body.dark-theme .att-spa-scope .mobile-user strong, [data-theme="dark"] .att-spa-scope .mobile-clock-card strong, body.dark-theme .att-spa-scope .mobile-clock-card strong, [data-theme="dark"] .att-spa-scope .mobile-record-head strong, body.dark-theme .att-spa-scope .mobile-record-head strong, [data-theme="dark"] .att-spa-scope .mobile-record-time b, body.dark-theme .att-spa-scope .mobile-record-time b{
  color: #F8FAFC !important;
}
[data-theme="dark"] .att-spa-scope .mobile-clock-card, body.dark-theme .att-spa-scope .mobile-clock-card, [data-theme="dark"] .att-spa-scope .mobile-record-row, body.dark-theme .att-spa-scope .mobile-record-row, [data-theme="dark"] .att-spa-scope .mobile-record-notes, body.dark-theme .att-spa-scope .mobile-record-notes{
  background: #131C31 !important;
  border-color: #263449 !important;
  color: #E2E8F0 !important;
}
[data-theme="dark"] .att-spa-scope .mobile-settings-menu > button, body.dark-theme .att-spa-scope .mobile-settings-menu > button, [data-theme="dark"] .att-spa-scope .mobile-settings-menu > details > summary, body.dark-theme .att-spa-scope .mobile-settings-menu > details > summary{
  background: #131C31 !important;
  border-color: #263449 !important;
  color: #E2E8F0 !important;
}
[data-theme="dark"] .att-spa-scope #mobile-settings-popup .mobile-settings-menu > button:hover, body.dark-theme .att-spa-scope #mobile-settings-popup .mobile-settings-menu > button:hover{
  background: #1E293B !important;
  color: #F8FAFC !important;
}
[data-theme="dark"] .att-spa-scope .mobile-shell .mobile-punch-actions .punch-button .punch-icon, body.dark-theme .att-spa-scope .mobile-shell .mobile-punch-actions .punch-button .punch-icon{
  background: rgba(59, 130, 246, 0.22) !important;
  color: #93C5FD !important;
}
[data-theme="dark"] .att-spa-scope .mobile-shell .mobile-punch-actions .punch-button.overtime .punch-icon, body.dark-theme .att-spa-scope .mobile-shell .mobile-punch-actions .punch-button.overtime .punch-icon{
  background: rgba(245, 158, 11, 0.22) !important;
  color: #FDE68A !important;
}

/* Timesheet & OT Summary */
[data-theme="dark"] .att-spa-scope .sheet-block-header h3, body.dark-theme .att-spa-scope .sheet-block-header h3, [data-theme="dark"] .att-spa-scope .sheet-td-name, body.dark-theme .att-spa-scope .sheet-td-name, [data-theme="dark"] .att-spa-scope .ot-total, body.dark-theme .att-spa-scope .ot-total, [data-theme="dark"] .att-spa-scope .ot-preview-head, body.dark-theme .att-spa-scope .ot-preview-head{
  color: #F1F5F9 !important;
}
[data-theme="dark"] .att-spa-scope .sheet-legend, body.dark-theme .att-spa-scope .sheet-legend, [data-theme="dark"] .att-spa-scope .sheet-filter-group label, body.dark-theme .att-spa-scope .sheet-filter-group label, [data-theme="dark"] .att-spa-scope .sheet-td-code, body.dark-theme .att-spa-scope .sheet-td-code{
  color: #94A3B8 !important;
}
[data-theme="dark"] .att-spa-scope .sheet-filter-group input[type=month], body.dark-theme .att-spa-scope .sheet-filter-group input[type=month], [data-theme="dark"] .att-spa-scope .sheet-filter-group select, body.dark-theme .att-spa-scope .sheet-filter-group select{
  background: #0F172A !important;
  border-color: #263449 !important;
  color: #F1F5F9 !important;
}
[data-theme="dark"] .att-spa-scope .sheet-th-total, body.dark-theme .att-spa-scope .sheet-th-total{
  background: #1E293B !important;
  color: #E2E8F0 !important;
}
[data-theme="dark"] .att-spa-scope .sheet-td-center, body.dark-theme .att-spa-scope .sheet-td-center, [data-theme="dark"] .att-spa-scope .sheet-cell, body.dark-theme .att-spa-scope .sheet-cell{
  background: #131C31 !important;
  color: #E2E8F0 !important;
  border-color: #263449 !important;
}
[data-theme="dark"] .att-spa-scope .sheet-cell-night, body.dark-theme .att-spa-scope .sheet-cell-night, [data-theme="dark"] .att-spa-scope .legend-box.night-sample, body.dark-theme .att-spa-scope .legend-box.night-sample, [data-theme="dark"] .att-spa-scope .ot-night-pill, body.dark-theme .att-spa-scope .ot-night-pill{
  background: rgba(139, 92, 246, 0.22) !important;
  color: #DDD6FE !important;
  border-color: rgba(139, 92, 246, 0.42) !important;
}
[data-theme="dark"] .att-spa-scope .ot-day-pill, body.dark-theme .att-spa-scope .ot-day-pill{
  background: rgba(59, 130, 246, 0.22) !important;
  color: #93C5FD !important;
  border-color: rgba(59, 130, 246, 0.42) !important;
}

/* Roster & Company Calendar */
[data-theme="dark"] .att-spa-scope .roster-vertical-scroll, body.dark-theme .att-spa-scope .roster-vertical-scroll, [data-theme="dark"] .att-spa-scope .perm-matrix-scroll, body.dark-theme .att-spa-scope .perm-matrix-scroll{
  background: #0F172A !important;
  border-color: #263449 !important;
}
[data-theme="dark"] .att-spa-scope .roster-v-head, body.dark-theme .att-spa-scope .roster-v-head, [data-theme="dark"] .att-spa-scope .company-comparison thead, body.dark-theme .att-spa-scope .company-comparison thead{
  background: #131C31 !important;
  color: #CBD5E1 !important;
  border-color: #263449 !important;
}
[data-theme="dark"] .att-spa-scope .roster-v-daynum, body.dark-theme .att-spa-scope .roster-v-daynum, [data-theme="dark"] .att-spa-scope .roster-stat-card .r-stat-val, body.dark-theme .att-spa-scope .roster-stat-card .r-stat-val, [data-theme="dark"] .att-spa-scope .company-day-code, body.dark-theme .att-spa-scope .company-day-code{
  color: #F8FAFC !important;
}
[data-theme="dark"] .att-spa-scope .roster-stat-card .r-stat-title, body.dark-theme .att-spa-scope .roster-stat-card .r-stat-title, [data-theme="dark"] .att-spa-scope .roster-lock-hint, body.dark-theme .att-spa-scope .roster-lock-hint, [data-theme="dark"] .att-spa-scope .company-calendar-legend, body.dark-theme .att-spa-scope .company-calendar-legend{
  color: #94A3B8 !important;
}
[data-theme="dark"] .att-spa-scope .roster-fixed-tag, body.dark-theme .att-spa-scope .roster-fixed-tag, [data-theme="dark"] .att-spa-scope .roster-target-summary, body.dark-theme .att-spa-scope .roster-target-summary, [data-theme="dark"] .att-spa-scope .staff-leave-balance, body.dark-theme .att-spa-scope .staff-leave-balance{
  background: #1E293B !important;
  border-color: #334155 !important;
  color: #E2E8F0 !important;
}
[data-theme="dark"] .att-spa-scope .roster-day.work, body.dark-theme .att-spa-scope .roster-day.work, [data-theme="dark"] .att-spa-scope .roster-day-badge.work, body.dark-theme .att-spa-scope .roster-day-badge.work, [data-theme="dark"] .att-spa-scope .roster-choice-card .choice-code.work, body.dark-theme .att-spa-scope .roster-choice-card .choice-code.work{
  background: rgba(16, 185, 129, 0.18) !important;
  color: #6EE7B7 !important;
  border-color: rgba(16, 185, 129, 0.38) !important;
}
[data-theme="dark"] .att-spa-scope .roster-day.rest, body.dark-theme .att-spa-scope .roster-day.rest, [data-theme="dark"] .att-spa-scope .roster-day-badge.rest, body.dark-theme .att-spa-scope .roster-day-badge.rest, [data-theme="dark"] .att-spa-scope .roster-choice-card .choice-code.rest, body.dark-theme .att-spa-scope .roster-choice-card .choice-code.rest, [data-theme="dark"] .att-spa-scope .company-calendar-day.rest, body.dark-theme .att-spa-scope .company-calendar-day.rest{
  background: rgba(59, 130, 246, 0.22) !important;
  color: #DBEAFE !important;
  border-color: rgba(96, 165, 250, 0.48) !important;
}
[data-theme="dark"] .att-spa-scope .roster-day.unassigned, body.dark-theme .att-spa-scope .roster-day.unassigned, [data-theme="dark"] .att-spa-scope .roster-day-badge.unassigned, body.dark-theme .att-spa-scope .roster-day-badge.unassigned, [data-theme="dark"] .att-spa-scope .company-calendar-day.unassigned, body.dark-theme .att-spa-scope .company-calendar-day.unassigned{
  background: #0F172A !important;
  color: #64748B !important;
  border-color: #263449 !important;
}
[data-theme="dark"] .att-spa-scope .roster-day.is-holiday-cell, body.dark-theme .att-spa-scope .roster-day.is-holiday-cell, [data-theme="dark"] .att-spa-scope .roster-day-badge.is-holiday-cell, body.dark-theme .att-spa-scope .roster-day-badge.is-holiday-cell, [data-theme="dark"] .att-spa-scope .company-calendar-day.holiday, body.dark-theme .att-spa-scope .company-calendar-day.holiday{
  background: rgba(245, 158, 11, 0.2) !important;
  color: #FDE68A !important;
  border-color: rgba(245, 158, 11, 0.42) !important;
}
[data-theme="dark"] .att-spa-scope .roster-log-type, body.dark-theme .att-spa-scope .roster-log-type{
  background: #1E293B !important;
  color: #CBD5E1 !important;
}
[data-theme="dark"] .att-spa-scope .roster-log-type.edit_locked, body.dark-theme .att-spa-scope .roster-log-type.edit_locked{
  background: rgba(239, 68, 68, 0.2) !important;
  color: #FCA5A5 !important;
}
[data-theme="dark"] .att-spa-scope .roster-log-type.custom_schedule, body.dark-theme .att-spa-scope .roster-log-type.custom_schedule{
  background: rgba(59, 130, 246, 0.2) !important;
  color: #93C5FD !important;
}
[data-theme="dark"] .att-spa-scope .roster-log-type.approve_request, body.dark-theme .att-spa-scope .roster-log-type.approve_request{
  background: rgba(16, 185, 129, 0.2) !important;
  color: #6EE7B7 !important;
}
[data-theme="dark"] .att-spa-scope .roster-staged-banner, body.dark-theme .att-spa-scope .roster-staged-banner{
  background: rgba(59, 130, 246, 0.16) !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
  color: #BFDBFE !important;
}
[data-theme="dark"] .att-spa-scope .roster-holiday-banner, body.dark-theme .att-spa-scope .roster-holiday-banner, [data-theme="dark"] .att-spa-scope .roster-locked-notice, body.dark-theme .att-spa-scope .roster-locked-notice{
  background: rgba(245, 158, 11, 0.16) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
  color: #FDE68A !important;
}
[data-theme="dark"] .att-spa-scope .holiday-day-btn, body.dark-theme .att-spa-scope .holiday-day-btn{
  background: #131C31 !important;
  border-color: #263449 !important;
  color: #E2E8F0 !important;
}
[data-theme="dark"] .att-spa-scope .holiday-day-btn.is-wknd, body.dark-theme .att-spa-scope .holiday-day-btn.is-wknd{
  background: #1E293B !important;
  color: #94A3B8 !important;
}
[data-theme="dark"] .att-spa-scope .holiday-day-btn.active, body.dark-theme .att-spa-scope .holiday-day-btn.active{
  background: rgba(245, 158, 11, 0.24) !important;
  border-color: #F59E0B !important;
  color: #FEF3C7 !important;
}
[data-theme="dark"] .att-spa-scope .holiday-day-btn .hol-btn-tag, body.dark-theme .att-spa-scope .holiday-day-btn .hol-btn-tag{
  background: rgba(245, 158, 11, 0.28) !important;
  color: #FDE68A !important;
}
[data-theme="dark"] .att-spa-scope .company-changed, body.dark-theme .att-spa-scope .company-changed{
  background: rgba(59, 130, 246, 0.18) !important;
  color: #BFDBFE !important;
}

/* Users, Permissions & Settings */
[data-theme="dark"] .att-spa-scope .perm-label-cell strong, body.dark-theme .att-spa-scope .perm-label-cell strong, [data-theme="dark"] .att-spa-scope .member-name, body.dark-theme .att-spa-scope .member-name, [data-theme="dark"] .att-spa-scope .settings-toggle-row strong, body.dark-theme .att-spa-scope .settings-toggle-row strong{
  color: #F8FAFC !important;
}
[data-theme="dark"] .att-spa-scope .role-perms-desc, body.dark-theme .att-spa-scope .role-perms-desc, [data-theme="dark"] .att-spa-scope .member-email, body.dark-theme .att-spa-scope .member-email, [data-theme="dark"] .att-spa-scope .user-modal-stack label, body.dark-theme .att-spa-scope .user-modal-stack label, [data-theme="dark"] .att-spa-scope .settings-fields label, body.dark-theme .att-spa-scope .settings-fields label, [data-theme="dark"] .att-spa-scope .emp-filter-row label, body.dark-theme .att-spa-scope .emp-filter-row label{
  color: #94A3B8 !important;
}
[data-theme="dark"] .att-spa-scope .role-admin, body.dark-theme .att-spa-scope .role-admin{
  background: rgba(239, 68, 68, 0.2) !important;
  color: #FCA5A5 !important;
}
[data-theme="dark"] .att-spa-scope .role-manager, body.dark-theme .att-spa-scope .role-manager{
  background: rgba(59, 130, 246, 0.22) !important;
  color: #93C5FD !important;
}
[data-theme="dark"] .att-spa-scope .role-assistant, body.dark-theme .att-spa-scope .role-assistant{
  background: rgba(139, 92, 246, 0.22) !important;
  color: #DDD6FE !important;
}
[data-theme="dark"] .att-spa-scope .role-member, body.dark-theme .att-spa-scope .role-member{
  background: rgba(16, 185, 129, 0.2) !important;
  color: #6EE7B7 !important;
}
[data-theme="dark"] .att-spa-scope .role-custom, body.dark-theme .att-spa-scope .role-custom{
  background: rgba(245, 158, 11, 0.2) !important;
  color: #FDE68A !important;
}
[data-theme="dark"] .att-spa-scope .role-col-del-btn, body.dark-theme .att-spa-scope .role-col-del-btn{
  background: #1E293B !important;
  border-color: #334155 !important;
  color: #CBD5E1 !important;
}
[data-theme="dark"] .att-spa-scope .role-col-del-btn:hover, body.dark-theme .att-spa-scope .role-col-del-btn:hover, [data-theme="dark"] .att-spa-scope .danger-btn:hover, body.dark-theme .att-spa-scope .danger-btn:hover{
  background: rgba(239, 68, 68, 0.24) !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
  color: #FCA5A5 !important;
}
[data-theme="dark"] .att-spa-scope .pwd-mask, body.dark-theme .att-spa-scope .pwd-mask, [data-theme="dark"] .att-spa-scope .user-modal-stack input, body.dark-theme .att-spa-scope .user-modal-stack input, [data-theme="dark"] .att-spa-scope .user-modal-stack select, body.dark-theme .att-spa-scope .user-modal-stack select, [data-theme="dark"] .att-spa-scope .settings-toggle-row, body.dark-theme .att-spa-scope .settings-toggle-row, [data-theme="dark"] .att-spa-scope .ot-config-panel .ot-rate-grid > div, body.dark-theme .att-spa-scope .ot-config-panel .ot-rate-grid > div{
  background: #131C31 !important;
  border-color: #263449 !important;
  color: #F1F5F9 !important;
}
[data-theme="dark"] .att-spa-scope .dept-add-trigger, body.dark-theme .att-spa-scope .dept-add-trigger{
  background: #131C31 !important;
  border-color: #334155 !important;
  color: #93C5FD !important;
}
[data-theme="dark"] .att-spa-scope .dept-add-trigger:hover, body.dark-theme .att-spa-scope .dept-add-trigger:hover{
  background: #1E293B !important;
  border-color: #3B82F6 !important;
  color: #BFDBFE !important;
}
[data-theme="dark"] .att-spa-scope .emp-filter-quick .active-chip, body.dark-theme .att-spa-scope .emp-filter-quick .active-chip{
  background: rgba(59, 130, 246, 0.24) !important;
  border-color: rgba(59, 130, 246, 0.5) !important;
  color: #93C5FD !important;
}

/* Login, Leader, Photos, Performance & Misc */
[data-theme="dark"] .att-spa-scope .login-shell, body.dark-theme .att-spa-scope .login-shell, [data-theme="dark"] .att-spa-scope .leader-layout, body.dark-theme .att-spa-scope .leader-layout{
  background: #0B1120 !important;
  color: #F1F5F9 !important;
}
[data-theme="dark"] .att-spa-scope .glass-login-heading h1, body.dark-theme .att-spa-scope .glass-login-heading h1{
  color: #F8FAFC !important;
}
[data-theme="dark"] .att-spa-scope .login-card .input-box, body.dark-theme .att-spa-scope .login-card .input-box{
  background: #0F172A !important;
  border-color: #263449 !important;
}
[data-theme="dark"] .att-spa-scope .login-card .input-box input, body.dark-theme .att-spa-scope .login-card .input-box input{
  background: transparent !important;
  color: #F1F5F9 !important;
}
[data-theme="dark"] .att-spa-scope .login-card .login-remember, body.dark-theme .att-spa-scope .login-card .login-remember, [data-theme="dark"] .att-spa-scope .login-card #login-help, body.dark-theme .att-spa-scope .login-card #login-help, [data-theme="dark"] .att-spa-scope .leave-empty, body.dark-theme .att-spa-scope .leave-empty, [data-theme="dark"] .att-spa-scope .photo-thumb-empty, body.dark-theme .att-spa-scope .photo-thumb-empty, [data-theme="dark"] .att-spa-scope .photo-compare-empty, body.dark-theme .att-spa-scope .photo-compare-empty, [data-theme="dark"] .att-spa-scope .test-clock-tools label, body.dark-theme .att-spa-scope .test-clock-tools label, [data-theme="dark"] .att-spa-scope .perf-kpi-card .kpi-label, body.dark-theme .att-spa-scope .perf-kpi-card .kpi-label{
  color: #94A3B8 !important;
}
[data-theme="dark"] .att-spa-scope .leader-layout.preview-mobile .leader-tabs button, body.dark-theme .att-spa-scope .leader-layout.preview-mobile .leader-tabs button{
  background: #131C31 !important;
  border-color: #263449 !important;
  color: #CBD5E1 !important;
}
[data-theme="dark"] .att-spa-scope .leave-request, body.dark-theme .att-spa-scope .leave-request, [data-theme="dark"] .att-spa-scope .camera-rule-note, body.dark-theme .att-spa-scope .camera-rule-note, [data-theme="dark"] .att-spa-scope .punch-photo-thumbs, body.dark-theme .att-spa-scope .punch-photo-thumbs, [data-theme="dark"] .att-spa-scope .photo-compare-head, body.dark-theme .att-spa-scope .photo-compare-head, [data-theme="dark"] .att-spa-scope .punch-receipt-status, body.dark-theme .att-spa-scope .punch-receipt-status, [data-theme="dark"] .att-spa-scope .note-line.emp-note, body.dark-theme .att-spa-scope .note-line.emp-note, [data-theme="dark"] .att-spa-scope .emp-counter-banner, body.dark-theme .att-spa-scope .emp-counter-banner, [data-theme="dark"] .att-spa-scope .time-pair-inline, body.dark-theme .att-spa-scope .time-pair-inline, [data-theme="dark"] .att-spa-scope .test-record, body.dark-theme .att-spa-scope .test-record, [data-theme="dark"] .att-spa-scope .test-clock-badge, body.dark-theme .att-spa-scope .test-clock-badge{
  background: #131C31 !important;
  border-color: #263449 !important;
  color: #E2E8F0 !important;
}
[data-theme="dark"] .att-spa-scope .punch-photo-thumbs:hover, body.dark-theme .att-spa-scope .punch-photo-thumbs:hover{
  background: #1E293B !important;
  border-color: #3B82F6 !important;
}
[data-theme="dark"] .att-spa-scope .photo-cleaned-tag, body.dark-theme .att-spa-scope .photo-cleaned-tag, [data-theme="dark"] .att-spa-scope .rank-bar-track, body.dark-theme .att-spa-scope .rank-bar-track{
  background: #1E293B !important;
  color: #94A3B8 !important;
}
[data-theme="dark"] .att-spa-scope #punch-status-message.punch-reminder-danger, body.dark-theme .att-spa-scope #punch-status-message.punch-reminder-danger, [data-theme="dark"] .att-spa-scope .br-mismatch, body.dark-theme .att-spa-scope .br-mismatch, [data-theme="dark"] .att-spa-scope .shift-choices.box-error, body.dark-theme .att-spa-scope .shift-choices.box-error, [data-theme="dark"] .att-spa-scope .project-choices.box-error, body.dark-theme .att-spa-scope .project-choices.box-error{
  background: rgba(239, 68, 68, 0.16) !important;
  border-color: rgba(239, 68, 68, 0.42) !important;
  color: #FCA5A5 !important;
}
[data-theme="dark"] .att-spa-scope .warn-btn, body.dark-theme .att-spa-scope .warn-btn, [data-theme="dark"] .att-spa-scope .test-clock-badge.is-test, body.dark-theme .att-spa-scope .test-clock-badge.is-test{
  background: rgba(245, 158, 11, 0.2) !important;
  border-color: rgba(245, 158, 11, 0.42) !important;
  color: #FDE68A !important;
}
[data-theme="dark"] .att-spa-scope .avatar, body.dark-theme .att-spa-scope .avatar{
  background: rgba(59, 130, 246, 0.22) !important;
  color: #93C5FD !important;
  border-color: rgba(59, 130, 246, 0.38) !important;
}
[data-theme="dark"] .att-spa-scope .perf-grade-pill.grade-aplus, body.dark-theme .att-spa-scope .perf-grade-pill.grade-aplus{
  background: rgba(16, 185, 129, 0.24) !important;
  color: #6EE7B7 !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
}
[data-theme="dark"] .att-spa-scope .perf-grade-pill.grade-a, body.dark-theme .att-spa-scope .perf-grade-pill.grade-a{
  background: rgba(59, 130, 246, 0.22) !important;
  color: #93C5FD !important;
  border-color: rgba(59, 130, 246, 0.42) !important;
}
/* === NATIVE V2 SPA INTEGRATION & PHONE-ONLY MODE === */
.att-spa-scope {
  background: transparent;
  min-height: 0;
  color: var(--text-primary, #0F172A);
  font-family: var(--font-family, 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
}
.att-spa-scope .workspace-body,
.att-spa-scope .workspace-header-layout {
  min-height: 0;
}
.att-spa-scope .header-nav {
  position: static;
  top: auto;
  border-radius: var(--radius-card, 12px);
  border: 1px solid var(--border-color, #DCE3EC);
  margin-bottom: 16px;
}
.att-spa-scope .main-area {
  padding: 0;
  max-width: none;
}
.att-spa-scope .footer {
  display: none;
}
.att-spa-scope .att-theme-toggle {
  display: none !important;
}
#att-spa-modals.att-spa-scope {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  min-height: 0 !important;
  z-index: 12000;
  overflow: visible;
}
[data-theme="dark"] .att-spa-scope,
body.dark-theme .att-spa-scope {
  background: transparent !important;
  color: var(--text-primary, #F1F5F9);
}
[data-theme="dark"] .att-spa-scope .header-nav,
body.dark-theme .att-spa-scope .header-nav {
  background: var(--bg-card, #151E2E) !important;
  border-color: var(--border-color, #263449) !important;
}

/* Phone-only login mode: hide V2 desktop sidebar/topbar completely, show mobile attendance shell only */
body.phone-only-mode .sidebar,
body.phone-only-mode .topbar,
body.phone-only-mode .sidebar-overlay,
body.phone-only-mode #sidebar-backdrop {
  display: none !important;
}
body.phone-only-mode .app-wrapper,
body.phone-only-mode .main-wrapper,
body.phone-only-mode .content-area,
body.phone-only-mode #page-container {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100dvh;
}
body.phone-only-mode .att-spa-scope:not(#att-spa-modals) {
  min-height: 100dvh;
}
.att-phone-bgd-card {
  max-width: 380px;
  margin: 24px auto;
  padding: 28px 22px;
  border-radius: 16px;
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--border-color, #DCE3EC);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.att-phone-bgd-card h2 {
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--text-primary, #0F172A);
}
.att-phone-bgd-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary, #475569);
  margin: 0 0 20px;
}

/* Warning boxes, missing-checkout employee banner, makeup project box & anomaly panel */
.att-warning-box {
  border-radius: 10px;
  padding: 12px 14px;
  margin: 10px 0 12px;
  border: 1.5px solid #f59e0b;
  background: #fffbeb;
  color: #78350f;
  font-size: 13px;
  line-height: 1.45;
}
.att-warning-box.severity-danger {
  border-color: #ef4444;
  background: #fef2f2;
  color: #7f1d1d;
}
.att-warning-title {
  font-weight: 700;
  margin-bottom: 6px;
}
.att-warning-box ul {
  margin: 4px 0 0;
  padding-left: 18px;
}
.att-warning-box li {
  margin: 3px 0;
}
.att-warning-confirm {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(185, 28, 28, 0.28);
  font-weight: 600;
  cursor: pointer;
}
.att-warning-confirm input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}
.emp-missing-checkout-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fffbeb;
  border: 1px solid #f59e0b;
  color: #92400e;
  font-size: 13px;
  font-weight: 600;
}
.makeup-proj-box {
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}
.att-spa-scope .rank-bar-fill.fill-amber {
  background: linear-gradient(90deg, #fbbf24, #d97706);
}
.att-spa-scope .perf-anomaly-panel {
  border-left: 4px solid #ef4444;
}

/* Mobile calendar tentative daily hours, birthday SN badge & day detail modal */
.att-spa-scope .company-calendar-day.cal-day-clickable {
  cursor: pointer;
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.att-spa-scope .company-calendar-day.cal-day-clickable:hover {
  border-color: #2563EB;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.14);
}
.att-spa-scope .company-calendar-day.is-birthday {
  border-color: #ec4899 !important;
  background: linear-gradient(180deg, #fdf2f8 0%, #fff 100%) !important;
}
.att-spa-scope .cal-birthday-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border-radius: 999px;
  background: #ec4899;
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.25;
  vertical-align: middle;
}
.att-spa-scope .cal-hours-pill {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 5px;
  border-radius: 999px;
  background: #dcfce7;
  color: #047857;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.att-spa-scope .cal-hours-pill.is-pending {
  background: #fef3c7;
  color: #b45309;
}
.att-spa-scope .cal-hours-pill.is-warn {
  background: #fee2e2;
  color: #b91c1c;
}
.att-spa-scope .cal-leave-pill {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 5px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}
.att-spa-scope .cal-tentative-note {
  margin: 8px 0 4px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  font-size: 12px;
  line-height: 1.45;
}
.cal-birthday-banner {
  margin-bottom: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #fdf2f8;
  border: 1px solid #f9a8d4;
  color: #9d174d;
  font-size: 13px;
}
.cal-leave-banner {
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: #1e40af;
  font-size: 13px;
}
.cal-detail-summary {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-bottom: 12px;
  font-size: 13.5px;
}
.cal-detail-sessions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 45vh;
  overflow-y: auto;
}
.cal-day-detail-card {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  flex-shrink: 0;
}
.cal-detail-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.cal-detail-card-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: #334155;
}
.cal-detail-card-note {
  color: #475569;
  font-size: 12px;
  border-top: 1px dashed #e2e8f0;
  padding-top: 4px;
}

/* ==========================================================================
   Mobile Attendance Layout & Form Polish (gemini-frontend-design + Automech Tokens)
   ========================================================================== */

/* 1. Mobile frame alignment: clean centered sheet on desktop preview, edge-to-edge on phone */
.att-spa-scope .leader-layout.preview-mobile {
  width: 100%;
  max-width: 440px;
  margin: 4px auto 24px;
  padding: 16px;
  border-radius: 20px;
  background: var(--bg-app, #F3F5F9);
  border: 1px solid var(--border-color, #DCE3EC);
  box-shadow: var(--shadow-md, 0 4px 12px rgba(15, 23, 42, 0.06));
  color: var(--text-primary, #0F172A);
  font-size: 14px;
  line-height: 1.5;
  box-sizing: border-box;
  overflow-x: clip;
}
body.phone-only-mode .att-spa-scope .leader-layout.preview-mobile {
  max-width: 100%;
  min-height: 100dvh;
  margin: 0;
  padding: 14px 14px calc(86px + env(safe-area-inset-bottom, 0px));
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
@media (max-width: 520px) {
  .att-spa-scope .leader-layout.preview-mobile {
    max-width: 100%;
    margin: 0;
    padding: 14px 14px calc(86px + env(safe-area-inset-bottom, 0px));
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

/* 2. Mobile Identity Header Bar */
.att-spa-scope .leader-layout.preview-mobile .mobile-identity-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--border-color, #DCE3EC);
  border-radius: var(--radius-card, 12px);
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(15, 23, 42, 0.04));
}
.att-spa-scope .mobile-identity-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.att-spa-scope .mobile-identity-main .avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--color-primary-50, #EFF6FF);
  color: var(--color-primary-600, #2563EB);
  border: 1px solid var(--color-primary-100, #DBEAFE);
  font-size: 14px;
  font-weight: 700;
}
.att-spa-scope .mobile-identity-text {
  min-width: 0;
}
.att-spa-scope .mobile-identity-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text-primary, #0F172A);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.att-spa-scope .mobile-identity-text small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--text-secondary, #475569);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.att-spa-scope .leader-web-btn {
  flex-shrink: 0;
  min-height: 36px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: var(--radius-control, 8px);
  color: var(--text-secondary, #475569);
  background: var(--surface-subtle, #F8FAFC);
  border: 1px solid var(--border-color, #DCE3EC);
  transition: background-color 160ms var(--ease-standard, ease-out), border-color 160ms var(--ease-standard, ease-out), color 160ms var(--ease-standard, ease-out);
}
.att-spa-scope .leader-web-btn:hover {
  background: var(--color-primary-50, #EFF6FF);
  border-color: var(--color-primary-200, #BFDBFE);
  color: var(--color-primary-700, #1D4ED8);
  transform: none;
}

/* 3. Bottom Navigation Dock aligned to mobile frame */
.att-spa-scope .mobile-tab-nav {
  --tab-padding: 5px;
  --tab-accent: var(--color-primary-600, #2563EB);
  position: fixed;
  z-index: 40;
  bottom: max(10px, env(safe-area-inset-bottom, 0px));
  left: var(--mobile-nav-left, 50%);
  width: var(--mobile-nav-width, min(408px, calc(100% - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))));
  transform: translateX(-50%) translateZ(0);
  padding: var(--tab-padding);
  border: 1px solid var(--border-color, #DCE3EC);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg, 0 10px 24px rgba(15, 23, 42, 0.12));
}
.att-spa-scope .mobile-tab-nav .mobile-tab-item {
  min-height: 48px;
  padding: 5px 2px;
  gap: 3px;
  border-radius: 999px;
  color: var(--text-secondary, #475569);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.15;
  transition: color 160ms var(--ease-standard, ease-out);
}
.att-spa-scope .mobile-tab-nav .mobile-tab-marker {
  border-radius: 999px;
  background: var(--tab-accent);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28);
  transition: transform 220ms var(--ease-standard, cubic-bezier(0.22, 1, 0.36, 1));
}

/* 4. Settings Popup Menu: safe action ordering */
.att-spa-scope .mobile-settings-divider {
  height: 1px;
  background: var(--border-subtle, #E8EEF5);
  margin: 4px 6px;
}
.att-spa-scope #mobile-settings-popup .mobile-settings-menu {
  width: 224px;
  padding: 8px;
  gap: 4px;
  border-radius: 14px;
  border: 1px solid var(--border-color, #DCE3EC);
  box-shadow: var(--shadow-xl, 0 16px 32px rgba(15, 23, 42, 0.14));
}
.att-spa-scope #mobile-settings-popup .mobile-settings-menu > button,
.att-spa-scope #mobile-settings-popup .mobile-settings-menu > details > summary {
  padding: 11px 12px;
  border: 0;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary, #0F172A);
  background: transparent;
  transition: background-color 150ms var(--ease-standard, ease-out);
}
.att-spa-scope #mobile-settings-popup .mobile-settings-menu > button:hover,
.att-spa-scope #mobile-settings-popup .mobile-settings-menu > details > summary:hover {
  background: var(--color-primary-50, #EFF6FF);
  color: var(--color-primary-700, #1D4ED8);
  transform: none;
}
.att-spa-scope #mobile-settings-popup .mobile-settings-menu .mobile-logout-btn {
  color: var(--color-danger-600, #DC2626);
}
.att-spa-scope #mobile-settings-popup .mobile-settings-menu .mobile-logout-btn:hover {
  background: var(--color-danger-50, #FEF2F2);
  color: var(--color-danger-600, #DC2626);
}

/* 5. Tab 1: Duyệt công (Filter Card, Empty State, 3-Tier Approval Card) */
.att-spa-scope .leader-filter-card {
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--border-color, #DCE3EC);
  border-radius: var(--radius-card, 12px);
  padding: 14px;
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(15, 23, 42, 0.04));
}
.att-spa-scope .leader-filter-card .leader-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.att-spa-scope .leader-title-text {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.att-spa-scope .leader-title-text h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary, #0F172A);
}
.att-spa-scope .leader-count {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary, #475569);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.att-spa-scope .leader-filter-card #leader-create-makeup {
  flex-shrink: 0;
  min-height: 36px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: var(--radius-control, 8px);
}
.att-spa-scope .leader-filter-card .leader-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.att-spa-scope .leader-filter-card .leader-filters label {
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary, #475569);
  min-width: 0;
}
.att-spa-scope .leader-filter-card .leader-filters select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  font-size: 13.5px;
  border-radius: var(--radius-control, 8px);
  border-color: var(--border-strong, #CBD5E1);
  background: var(--bg-input, #FFFFFF);
}
.att-spa-scope .leader-empty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 36px 20px;
  background: var(--surface, #FFFFFF);
  border: 1px dashed var(--border-strong, #CBD5E1);
  border-radius: var(--radius-card, 12px);
  color: var(--text-secondary, #475569);
  text-align: center;
}
.att-spa-scope .leader-empty-card svg {
  color: var(--text-muted, #64748B);
  opacity: 0.7;
}
.att-spa-scope .leader-empty-card p {
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
}
.att-spa-scope .leader-layout.preview-mobile .leader-approval-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.att-spa-scope .leader-layout.preview-mobile .leader-approval-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin: 0;
  padding: 14px;
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--border-color, #DCE3EC);
  border-radius: var(--radius-card, 12px);
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(15, 23, 42, 0.04));
}
.att-spa-scope .leader-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle, #E8EEF5);
}
.att-spa-scope .leader-card-head .leader-person strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary, #0F172A);
}
.att-spa-scope .leader-card-head .leader-person small {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--text-secondary, #475569);
}
.att-spa-scope .leader-card-date {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.att-spa-scope .leader-card-date b {
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary, #0F172A);
}
.att-spa-scope .leader-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.att-spa-scope .leader-layout.preview-mobile .leader-times {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary, #0F172A);
}
.att-spa-scope .leader-meta-line {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary, #475569);
}
.att-spa-scope .leader-warnings:empty {
  display: none;
}
.att-spa-scope .leader-layout.preview-mobile .leader-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 4px;
}
.att-spa-scope .leader-layout.preview-mobile .leader-actions:empty {
  display: none;
}
.att-spa-scope .leader-layout.preview-mobile .leader-actions button {
  min-height: 44px;
  font-size: 13.5px;
  font-weight: 600;
}
.att-spa-scope .leader-layout.preview-mobile .leader-actions button:only-child {
  grid-column: 1 / -1;
}

/* 6. Tab 2: Chấm công & Tăng ca — Zero nested card-in-card, single-axis scroll */
.att-spa-scope .leader-layout.preview-mobile .mobile-clock-card {
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--border-color, #DCE3EC);
  border-radius: var(--radius-card, 12px);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(15, 23, 42, 0.04));
}
.att-spa-scope .leader-layout.preview-mobile .mobile-clock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary, #475569);
}
.att-spa-scope .leader-layout.preview-mobile #live-clock {
  display: block;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary, #0F172A);
  margin: 4px 0 2px;
}
.att-spa-scope .leader-layout.preview-mobile .mobile-card {
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--border-color, #DCE3EC);
  border-radius: var(--radius-card, 12px);
  padding: 16px;
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(15, 23, 42, 0.04));
}
.att-spa-scope .leader-layout.preview-mobile .mobile-card fieldset.shift-choices,
.att-spa-scope .leader-layout.preview-mobile .mobile-card fieldset.project-choices {
  border: 0;
  border-bottom: 1px solid var(--border-subtle, #E8EEF5);
  border-radius: 0;
  background: transparent;
  padding: 0 0 14px;
  margin: 0 0 14px;
}
.att-spa-scope .leader-layout.preview-mobile .mobile-card fieldset legend {
  padding: 0;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary, #0F172A);
}
.att-spa-scope .leader-layout.preview-mobile .mobile-punch-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.att-spa-scope .leader-layout.preview-mobile .mobile-punch-actions .punch-button {
  height: 54px;
  min-height: 54px;
  padding: 0 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  transition: background-color 160ms var(--ease-standard, ease-out), border-color 160ms var(--ease-standard, ease-out), transform 140ms var(--ease-standard, ease-out);
}
.att-spa-scope .leader-layout.preview-mobile .mobile-punch-actions .punch-button strong {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.2;
  white-space: nowrap;
}
.att-spa-scope .leader-layout.preview-mobile .mobile-punch-actions .punch-button.overtime {
  padding: 0 8px;
  gap: 5px;
}
.att-spa-scope .leader-layout.preview-mobile .mobile-punch-actions .punch-button.overtime strong {
  font-size: 12.5px;
}
.att-spa-scope .leader-layout.preview-mobile .mobile-punch-actions .punch-button.overtime .punch-icon {
  width: 18px;
  height: 18px;
}
@media (max-width: 385px) {
  .att-spa-scope .leader-layout.preview-mobile .mobile-punch-actions .punch-button.overtime {
    padding: 0 6px;
    gap: 4px;
  }
  .att-spa-scope .leader-layout.preview-mobile .mobile-punch-actions .punch-button.overtime strong {
    font-size: 11.5px;
  }
}
.att-spa-scope .leader-layout.preview-mobile .mobile-punch-actions .punch-button:not(:disabled).punch-button--primary {
  background: var(--color-primary-600, #2563EB);
  border-color: var(--color-primary-700, #1D4ED8);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.24);
}
.att-spa-scope .leader-layout.preview-mobile .mobile-punch-actions .punch-button:not(:disabled).punch-button--out {
  background: var(--color-primary-50, #EFF6FF);
  border: 1px solid var(--color-primary-200, #BFDBFE);
  color: var(--color-primary-700, #1D4ED8);
}
.att-spa-scope .leader-layout.preview-mobile .mobile-punch-actions .punch-button.overtime:not(:disabled).punch-button--primary {
  background: #0F766E;
  border-color: #115E59;
  color: #FFFFFF;
}
.att-spa-scope .leader-layout.preview-mobile .mobile-punch-actions .punch-button .punch-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: transparent;
  color: currentColor;
}
.att-spa-scope .leader-layout.preview-mobile .mobile-record-list,
.att-spa-scope .mobile-shell .mobile-record-list {
  max-height: none;
  overflow-y: visible;
  padding-right: 0;
  scroll-snap-type: none;
}

/* Hide global V2 mobile bottom nav while attendance mobile dock is mounted */
body:has(.leader-layout.preview-mobile) .mobile-bottom-nav {
  display: none !important;
}
@media (max-width: 400px) {
  .att-spa-scope .mobile-tab-nav .mobile-tab-item {
    font-size: 10.5px;
    letter-spacing: -0.01em;
    padding: 5px 1px;
  }
}

/* 7. Tab 3: Hiệu suất — Compact 2x2 KPI grid, clean filter & rankings */
.att-spa-scope .leader-performance-mobile .panel {
  padding: 14px !important;
  margin-bottom: 12px !important;
  border-radius: var(--radius-card, 12px);
}
.att-spa-scope .leader-performance-mobile .filters > div {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px !important;
  width: 100%;
}
.att-spa-scope .leader-performance-mobile .filters > div > label {
  min-width: 0;
  font-size: 12.5px;
  color: var(--text-secondary, #475569);
}
.att-spa-scope .leader-performance-mobile .filters > div > label:nth-child(n+3) {
  grid-column: 1 / -1;
}
.att-spa-scope .leader-performance-mobile .filters select,
.att-spa-scope .leader-performance-mobile .filters input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  font-size: 13.5px;
}
.att-spa-scope .leader-layout.preview-mobile .leader-performance-mobile .perf-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.att-spa-scope .leader-performance-mobile .perf-kpi-card {
  padding: 13px 12px;
  border-radius: var(--radius-card, 12px);
}
.att-spa-scope .leader-performance-mobile .perf-kpi-card .kpi-label {
  font-size: 12px;
  line-height: 1.35;
}
.att-spa-scope .leader-performance-mobile .perf-kpi-card .kpi-val {
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}
.att-spa-scope .leader-performance-mobile .perf-kpi-card .kpi-sub {
  font-size: 11.5px;
  line-height: 1.4;
}
.att-spa-scope .leader-performance-mobile .perf-board-head .eyebrow,
.att-spa-scope .leader-performance-mobile .perf-board-head > .status {
  display: none;
}
.att-spa-scope .leader-performance-mobile .perf-rank-item {
  min-height: 48px;
}

/* 8. Tab 4: Lịch làm việc — Daily hours + rich Day Detail Modal */
.att-spa-scope :is(.leader-layout, .mobile-shell) .company-calendar-panel {
  padding: 14px;
}
.att-spa-scope :is(.leader-layout, .mobile-shell) .company-calendar-grid {
  gap: 4px;
}
.att-spa-scope :is(.leader-layout, .mobile-shell) .company-calendar-day {
  min-height: 58px;
  padding: 5px 2px;
  gap: 3px;
  font-variant-numeric: tabular-nums;
}
.att-spa-scope :is(.leader-layout, .mobile-shell) .company-calendar-day b {
  font-size: 12.5px;
  line-height: 1.2;
}
.att-spa-scope :is(.leader-layout, .mobile-shell) .cal-hours-pill,
.att-spa-scope :is(.leader-layout, .mobile-shell) .cal-leave-pill {
  font-size: 9.5px;
  padding: 1px 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.att-spa-scope .cal-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.att-spa-scope .cal-detail-header h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  color: var(--text-primary, #0F172A);
}
.att-spa-scope .cal-detail-subtitle {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--text-secondary, #475569);
}
.att-spa-scope .cal-detail-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 10px;
  background: var(--surface-subtle, #F8FAFC);
  border: 1px solid var(--border-color, #DCE3EC);
  margin-bottom: 12px;
}
.att-spa-scope .cal-detail-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary, #475569);
}
.att-spa-scope .cal-detail-summary-row strong {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary, #0F172A);
}
.att-spa-scope .cal-pending-tag {
  font-weight: 600;
  font-size: 11.5px;
  color: var(--color-warning-600, #D97706);
}
.att-spa-scope .cal-detail-summary-note {
  font-size: 12px;
  color: var(--text-muted, #64748B);
}
.att-spa-scope .cal-detail-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 6px 0 0;
}
.att-spa-scope .cal-detail-kv > div {
  min-width: 0;
}
.att-spa-scope .cal-detail-kv .cal-kv-full {
  grid-column: 1 / -1;
}
.att-spa-scope .cal-detail-kv dt {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted, #64748B);
  margin: 0 0 2px;
}
.att-spa-scope .cal-detail-kv dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #0F172A);
  overflow-wrap: anywhere;
}
.att-spa-scope .cal-detail-kv dd.cal-num {
  font-variant-numeric: tabular-nums;
}
.att-spa-scope .cal-detail-empty {
  margin: 14px 0;
  padding: 18px 14px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-secondary, #475569);
  background: var(--surface-subtle, #F8FAFC);
  border: 1px dashed var(--border-strong, #CBD5E1);
  border-radius: 10px;
}

/* 9. Mobile Form Pair & Sticky Modal Footer */
.att-spa-scope .leader-mobile-overlay .capture-grid.mobile-form-pair,
.att-spa-scope .roster-mobile-overlay .capture-grid.mobile-form-pair,
.att-spa-scope .mobile-account-overlay .capture-grid.mobile-form-pair {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 11px;
}
.att-spa-scope .mobile-form-hint {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary, #475569);
}

/* 10. Dark Mode overrides for new mobile classes */
[data-theme="dark"] .att-spa-scope .leader-layout.preview-mobile,
body.dark-theme .att-spa-scope .leader-layout.preview-mobile {
  background: #0B1120 !important;
  border-color: #263449 !important;
}
[data-theme="dark"] .att-spa-scope .mobile-identity-bar,
body.dark-theme .att-spa-scope .mobile-identity-bar,
[data-theme="dark"] .att-spa-scope .leader-filter-card,
body.dark-theme .att-spa-scope .leader-filter-card,
[data-theme="dark"] .att-spa-scope .leader-empty-card,
body.dark-theme .att-spa-scope .leader-empty-card,
[data-theme="dark"] .att-spa-scope .cal-detail-summary,
body.dark-theme .att-spa-scope .cal-detail-summary,
[data-theme="dark"] .att-spa-scope .cal-day-detail-card,
body.dark-theme .att-spa-scope .cal-day-detail-card,
[data-theme="dark"] .att-spa-scope .cal-detail-empty,
body.dark-theme .att-spa-scope .cal-detail-empty {
  background: #151E2E !important;
  border-color: #263449 !important;
  color: #F1F5F9 !important;
}
[data-theme="dark"] .att-spa-scope .mobile-identity-text strong,
body.dark-theme .att-spa-scope .mobile-identity-text strong,
[data-theme="dark"] .att-spa-scope .leader-title-text h2,
body.dark-theme .att-spa-scope .leader-title-text h2,
[data-theme="dark"] .att-spa-scope .leader-card-head .leader-person strong,
body.dark-theme .att-spa-scope .leader-card-head .leader-person strong,
[data-theme="dark"] .att-spa-scope .leader-card-date b,
body.dark-theme .att-spa-scope .leader-card-date b,
[data-theme="dark"] .att-spa-scope .leader-times,
body.dark-theme .att-spa-scope .leader-times,
[data-theme="dark"] .att-spa-scope .cal-detail-header h2,
body.dark-theme .att-spa-scope .cal-detail-header h2,
[data-theme="dark"] .att-spa-scope .cal-detail-summary-row strong,
body.dark-theme .att-spa-scope .cal-detail-summary-row strong,
[data-theme="dark"] .att-spa-scope .cal-detail-kv dd,
body.dark-theme .att-spa-scope .cal-detail-kv dd {
  color: #F8FAFC !important;
}
[data-theme="dark"] .att-spa-scope .mobile-identity-text small,
body.dark-theme .att-spa-scope .mobile-identity-text small,
[data-theme="dark"] .att-spa-scope .leader-count,
body.dark-theme .att-spa-scope .leader-count,
[data-theme="dark"] .att-spa-scope .leader-meta-line,
body.dark-theme .att-spa-scope .leader-meta-line,
[data-theme="dark"] .att-spa-scope .cal-detail-subtitle,
body.dark-theme .att-spa-scope .cal-detail-subtitle,
[data-theme="dark"] .att-spa-scope .cal-detail-summary-row,
body.dark-theme .att-spa-scope .cal-detail-summary-row,
[data-theme="dark"] .att-spa-scope .cal-detail-kv dt,
body.dark-theme .att-spa-scope .cal-detail-kv dt {
  color: #94A3B8 !important;
}
[data-theme="dark"] .att-spa-scope .leader-card-head,
body.dark-theme .att-spa-scope .leader-card-head,
[data-theme="dark"] .att-spa-scope .mobile-settings-divider,
body.dark-theme .att-spa-scope .mobile-settings-divider {
  border-color: #263449 !important;
  background: transparent;
}
[data-theme="dark"] .att-spa-scope .mobile-settings-divider,
body.dark-theme .att-spa-scope .mobile-settings-divider {
  background: #263449 !important;
}
[data-theme="dark"] .att-spa-scope .leader-web-btn,
body.dark-theme .att-spa-scope .leader-web-btn {
  background: #1B2538 !important;
  border-color: #334155 !important;
  color: #E2E8F0 !important;
}
[data-theme="dark"] .att-spa-scope .mobile-tab-nav,
body.dark-theme .att-spa-scope .mobile-tab-nav {
  background: rgba(21, 30, 46, 0.96) !important;
  border-color: #263449 !important;
}
[data-theme="dark"] .att-spa-scope #mobile-settings-popup .mobile-settings-menu > button,
body.dark-theme .att-spa-scope #mobile-settings-popup .mobile-settings-menu > button,
[data-theme="dark"] .att-spa-scope #mobile-settings-popup .mobile-settings-menu > details > summary,
body.dark-theme .att-spa-scope #mobile-settings-popup .mobile-settings-menu > details > summary {
  color: #F1F5F9 !important;
}
[data-theme="dark"] .att-spa-scope #mobile-settings-popup .mobile-settings-menu .mobile-logout-btn,
body.dark-theme .att-spa-scope #mobile-settings-popup .mobile-settings-menu .mobile-logout-btn {
  color: #FCA5A5 !important;
}

@media (prefers-reduced-motion: reduce) {
  .att-spa-scope .mobile-tab-nav .mobile-tab-item,
  .att-spa-scope .mobile-tab-nav .mobile-tab-marker,
  .att-spa-scope .leader-web-btn,
  .att-spa-scope .leader-layout.preview-mobile .mobile-punch-actions .punch-button {
    transition: none !important;
  }
}

/* ==========================================================================
   Mobile Refinements Pass 2 (5 user-requested layout & form fixes)
   ========================================================================== */

/* 1. Hide the 2 wide summary/project tables and anomaly report panel on Mobile Hiệu suất */
.att-spa-scope .leader-performance-mobile .perf-mobile-hidden-table,
.att-spa-scope .leader-performance-mobile .perf-anomaly-panel,
body.phone-only-mode .att-spa-scope .perf-anomaly-panel {
  display: none !important;
}

/* 2. Cap Mobile Nghỉ phép list to ~2 visible cards with smooth vertical scroll */
.att-spa-scope :is(.leader-layout.preview-mobile, .mobile-shell) .leave-requests {
  max-height: 296px;
  overflow-y: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

/* 3. Center all mobile modals directly over the mobile frame (0px offset) */
.att-spa-scope .overlay.mobile-account-overlay,
.att-spa-scope .overlay.leader-mobile-overlay,
.att-spa-scope .overlay.roster-mobile-overlay {
  padding-top: 14px;
  padding-bottom: 14px;
  padding-left: var(--att-overlay-pad-left, 12px) !important;
  padding-right: var(--att-overlay-pad-right, 12px) !important;
  box-sizing: border-box;
}
.att-spa-scope .mobile-account-overlay > .dialog,
.att-spa-scope .leader-mobile-overlay > .dialog {
  width: var(--att-mobile-dialog-w, min(412px, 100%)) !important;
  max-width: 100% !important;
  border-radius: 16px;
}

/* 4. Balanced typography inside mobile modals (Chấm bù, Cài đặt mặc định, Duyệt nhanh) */
.att-spa-scope :is(.leader-mobile-overlay, .mobile-account-overlay) .dialog > header {
  padding: 14px 16px;
  align-items: center;
}
.att-spa-scope :is(.leader-mobile-overlay, .mobile-account-overlay) .dialog > header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.att-spa-scope :is(.leader-mobile-overlay, .mobile-account-overlay) .dialog > .dialog-body {
  padding: 14px 16px 16px;
}
.att-spa-scope :is(.leader-mobile-overlay, .mobile-account-overlay) .dialog form {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.att-spa-scope :is(.leader-mobile-overlay, .mobile-account-overlay) .dialog form label {
  margin-top: 0;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-secondary, #475569);
}
.att-spa-scope :is(.leader-mobile-overlay, .mobile-account-overlay) .dialog :is(input:not([type=checkbox]):not([type=radio]), select, textarea) {
  font-size: 14px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: var(--radius-control, 8px);
}
.att-spa-scope :is(.leader-mobile-overlay, .mobile-account-overlay) .dialog textarea {
  min-height: 68px;
  line-height: 1.45;
}
.att-spa-scope :is(.leader-mobile-overlay, .mobile-account-overlay) .camera-rule-note {
  font-size: 12.5px;
  line-height: 1.5;
  padding: 10px 12px;
  margin-bottom: 12px !important;
}
.att-spa-scope :is(.leader-mobile-overlay, .mobile-account-overlay) .makeup-proj-box .check-label {
  font-size: 13px !important;
  font-weight: 500;
  line-height: 1.4;
  margin: 2px 0 !important;
  gap: 8px;
  color: var(--text-primary, #0F172A);
}
.att-spa-scope :is(.leader-mobile-overlay, .mobile-account-overlay) .dialog-actions {
  margin-top: 6px;
  gap: 8px;
}
.att-spa-scope :is(.leader-mobile-overlay, .mobile-account-overlay) .dialog-actions button {
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
}
@media (hover: none) and (pointer: coarse) {
  .att-spa-scope :is(.leader-mobile-overlay, .mobile-account-overlay) .dialog :is(input:not([type=checkbox]):not([type=radio]), select, textarea) {
    font-size: 16px;
  }
}

/* 5. Center single "Chấm công" button full-width (never leaning to one side) */
.att-spa-scope .leader-layout.preview-mobile .mobile-punch-actions:has(> .punch-button:only-child),
.att-spa-scope .mobile-shell .mobile-punch-actions:has(> .punch-button:only-child),
.att-spa-scope .leader-self .mobile-punch-actions:has([data-punch="daily"]) {
  display: grid;
  grid-template-columns: 1fr !important;
}
.att-spa-scope .leader-layout.preview-mobile .mobile-punch-actions .punch-button:only-child,
.att-spa-scope .mobile-shell .mobile-punch-actions .punch-button:only-child,
.att-spa-scope .leader-self [data-punch="daily"] {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  min-height: 54px;
  justify-content: center;
}

/* Dark mode for new modal typography overrides */
[data-theme="dark"] .att-spa-scope :is(.leader-mobile-overlay, .mobile-account-overlay) .dialog form label,
body.dark-theme .att-spa-scope :is(.leader-mobile-overlay, .mobile-account-overlay) .dialog form label {
  color: #94A3B8 !important;
}
[data-theme="dark"] .att-spa-scope :is(.leader-mobile-overlay, .mobile-account-overlay) .makeup-proj-box .check-label,
body.dark-theme .att-spa-scope :is(.leader-mobile-overlay, .mobile-account-overlay) .makeup-proj-box .check-label {
  color: #E2E8F0 !important;
}

/* Cap mobile project list to 5 visible rows with smooth vertical scroll */
.att-spa-scope :is(.leader-layout.preview-mobile, .mobile-shell) .project-checkbox-list {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 6px;
  max-height: 218px;
  overflow-y: auto;
  padding: 6px;
  margin: 6px 0 10px;
  border: 1px solid var(--border-subtle, #E8EEF5);
  border-radius: 10px;
  background: var(--surface-subtle, #F8FAFC);
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.att-spa-scope :is(.leader-layout.preview-mobile, .mobile-shell) .project-choice-item {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  font-size: 13px;
  border-radius: 8px;
  flex-shrink: 0;
}
.att-spa-scope .makeup-proj-box {
  max-height: 170px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.att-spa-scope :is(.leader-layout.preview-mobile, .mobile-shell) .cal-tentative-note {
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1.4;
  margin: 8px 0 4px;
}
.att-spa-scope :is(.leader-layout.preview-mobile, .mobile-shell) .roster-hint {
  font-size: 11.5px;
  line-height: 1.4;
  margin: 4px 0 0;
}
[data-theme="dark"] .att-spa-scope :is(.leader-layout.preview-mobile, .mobile-shell) .project-checkbox-list,
body.dark-theme .att-spa-scope :is(.leader-layout.preview-mobile, .mobile-shell) .project-checkbox-list {
  background: #0F172A !important;
  border-color: #263449 !important;
}

/* ==========================================================================
   Unified Mobile Form Typography (equal font-size & regular weight on all inputs)
   ========================================================================== */
.att-spa-scope :is(.leader-mobile-overlay, .mobile-account-overlay, .roster-mobile-overlay, .leader-layout.preview-mobile, .mobile-shell) input:not([type=checkbox]):not([type=radio]),
.att-spa-scope :is(.leader-mobile-overlay, .mobile-account-overlay, .roster-mobile-overlay, .leader-layout.preview-mobile, .mobile-shell) select,
.att-spa-scope :is(.leader-mobile-overlay, .mobile-account-overlay, .roster-mobile-overlay, .leader-layout.preview-mobile, .mobile-shell) textarea {
  font-family: var(--font-family);
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.4;
  min-height: 40px;
  color: var(--text-primary, #0F172A);
  font-variant-numeric: tabular-nums;
}
.att-spa-scope :is(.leader-mobile-overlay, .mobile-account-overlay, .roster-mobile-overlay, .leader-layout.preview-mobile, .mobile-shell) textarea {
  min-height: 68px;
  line-height: 1.45;
}
.att-spa-scope :is(.leader-mobile-overlay, .mobile-account-overlay, .roster-mobile-overlay, .leader-layout.preview-mobile, .mobile-shell) :is(input, textarea)::placeholder {
  font-weight: 400;
  color: var(--text-muted, #64748B);
  opacity: 1;
}
@media (hover: none) and (pointer: coarse) {
  .att-spa-scope :is(.leader-mobile-overlay, .mobile-account-overlay, .roster-mobile-overlay, .leader-layout.preview-mobile, .mobile-shell) input:not([type=checkbox]):not([type=radio]),
  .att-spa-scope :is(.leader-mobile-overlay, .mobile-account-overlay, .roster-mobile-overlay, .leader-layout.preview-mobile, .mobile-shell) select,
  .att-spa-scope :is(.leader-mobile-overlay, .mobile-account-overlay, .roster-mobile-overlay, .leader-layout.preview-mobile, .mobile-shell) textarea {
    font-size: 16px !important;
  }
}
.att-spa-scope :is(.leader-mobile-overlay, .mobile-account-overlay, .roster-mobile-overlay) form label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-secondary, #475569);
}
.att-spa-scope .makeup-proj-box {
  max-height: 158px;
  padding: 6px 10px;
}
.att-spa-scope .makeup-proj-box .check-label,
.att-spa-scope :is(.leader-layout.preview-mobile, .mobile-shell) .project-choice-item,
.att-spa-scope :is(.leader-layout.preview-mobile, .mobile-shell) .project-choice-item b {
  font-size: 13.5px !important;
  font-weight: 400 !important;
  line-height: 1.4;
}
.att-spa-scope .makeup-proj-box .check-label {
  min-height: 28px;
  padding: 3px 2px;
}
.att-spa-scope .mobile-account-overlay #mobile-defaults-form .check-label {
  font-size: 13.5px !important;
  font-weight: 600 !important;
}
.att-spa-scope :is(.leader-mobile-overlay, .mobile-account-overlay, .roster-mobile-overlay, .leader-layout.preview-mobile, .mobile-shell) :is(.camera-rule-note, .mobile-form-hint, .cal-tentative-note) {
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.45;
}
.att-spa-scope :is(.leader-mobile-overlay, .mobile-account-overlay, .roster-mobile-overlay) .dialog-actions button {
  font-size: 13.5px;
  font-weight: 600;
}
[data-theme="dark"] .att-spa-scope :is(.leader-mobile-overlay, .mobile-account-overlay, .roster-mobile-overlay, .leader-layout.preview-mobile, .mobile-shell) :is(input:not([type=checkbox]):not([type=radio]), select, textarea),
body.dark-theme .att-spa-scope :is(.leader-mobile-overlay, .mobile-account-overlay, .roster-mobile-overlay, .leader-layout.preview-mobile, .mobile-shell) :is(input:not([type=checkbox]):not([type=radio]), select, textarea) {
  color: #F1F5F9 !important;
}

/* ======================== PUNCH PER-PROJECT TASK SLIDERS ======================== */
.att-spa-scope :is(.leader-layout.preview-mobile, .mobile-shell) .project-checkbox-list:has(.punch-proj-inline-panel:not([hidden])) {
  max-height: none;
  overflow-y: visible;
}
.att-spa-scope .punch-project-entry {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.att-spa-scope .punch-proj-inline-panel {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 8px 9px;
  border: 1px solid #E2E8F0;
  border-radius: 11px;
  background: #F8FAFC;
}
.att-spa-scope .punch-proj-inline-panel[hidden],
.att-spa-scope .punch-task-actions[hidden] {
  display: none !important;
}
.att-spa-scope .punch-proj-custom-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 8px;
  border: 1px dashed #CBD5E1;
  background: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}
.att-spa-scope .punch-proj-custom-toggle input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--color-primary-600, #2563EB);
}
.att-spa-scope .punch-proj-locked-note {
  margin: 0;
  font-size: 12px;
  color: #B45309;
  font-weight: 600;
}
.att-spa-scope .punch-task-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 290px;
  overflow-y: auto;
  padding: 0 3px 4px 0;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.att-spa-scope .punch-task-item {
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  background: #FFFFFF;
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}
.att-spa-scope .punch-task-item.is-selected {
  border-color: var(--color-primary-600, #2563EB);
  background: #F8FBFF;
  box-shadow: 0 0 0 1.5px rgba(37, 99, 235, 0.14);
}
.att-spa-scope .punch-task-head {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 0;
  cursor: pointer;
}
.att-spa-scope .punch-task-head input[type="checkbox"] {
  width: 17px;
  height: 17px;
  min-width: 17px;
  margin: 1px 0 0;
  flex-shrink: 0;
  accent-color: var(--color-primary-600, #2563EB);
}
.att-spa-scope .punch-task-head-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}
.att-spa-scope .punch-task-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 6px;
  border-top: 1px dashed #E2E8F0;
}
.att-spa-scope .punch-task-slider-wrap[hidden] {
  display: none !important;
}
.att-spa-scope .punch-task-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}
.att-spa-scope .punch-task-wbs {
  color: var(--color-primary-600, #2563EB);
  font-weight: 800;
}
.att-spa-scope .punch-task-badges {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
}
.att-spa-scope .punch-task-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}
.att-spa-scope .punch-task-pill.is-overdue { background: #FEE2E2; color: #DC2626; }
.att-spa-scope .punch-task-pill.st-todo { background: #F1F5F9; color: #475569; }
.att-spa-scope .punch-task-pill.st-progress { background: #DBEAFE; color: #1D4ED8; }
.att-spa-scope .punch-task-pill.st-review { background: #EDE9FE; color: #6D28D9; }
.att-spa-scope .punch-task-pill.is-saved { background: #D1FAE5; color: #047857; }
.att-spa-scope .punch-task-body {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.att-spa-scope .punch-task-controls {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.att-spa-scope .punch-task-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  color: #64748B;
  font-variant-numeric: tabular-nums;
}
.att-spa-scope .punch-task-sub b {
  color: var(--color-primary-600, #2563EB);
}
.att-spa-scope input[type="range"].punch-task-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100% !important;
  height: 7px !important;
  min-height: 7px !important;
  padding: 0 !important;
  margin: 4px 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, var(--color-primary-600, #2563EB) var(--val, 0%), #E2E8F0 var(--val, 0%)) !important;
  outline: none;
  cursor: pointer;
}
.att-spa-scope input[type="range"].punch-task-slider.is-complete {
  background: linear-gradient(90deg, #10B981 var(--val, 100%), #E2E8F0 var(--val, 100%)) !important;
}
.att-spa-scope input[type="range"].punch-task-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2.5px solid var(--color-primary-600, #2563EB);
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.2);
  cursor: pointer;
}
.att-spa-scope input[type="range"].punch-task-slider.is-complete::-webkit-slider-thumb {
  border-color: #10B981;
}
.att-spa-scope input[type="range"].punch-task-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2.5px solid var(--color-primary-600, #2563EB);
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.2);
  cursor: pointer;
}
.att-spa-scope input[type="range"].punch-task-slider:disabled {
  opacity: 0.55;
  cursor: default;
}
.att-spa-scope .punch-task-scale {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: #94A3B8;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.att-spa-scope .punch-task-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.att-spa-scope .punch-task-confirm-btn {
  min-height: 36px;
  padding: 6px 13px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.att-spa-scope .punch-proj-note-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}
.att-spa-scope .punch-proj-note-label em {
  font-style: normal;
  color: #DC2626;
  font-weight: 600;
}
.att-spa-scope .punch-proj-note-input {
  width: 100%;
  border-radius: 9px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  padding: 8px 10px;
  font-size: 13px;
  resize: vertical;
  min-height: 56px;
}
[data-theme="dark"] .att-spa-scope .punch-proj-inline-panel,
body.dark-theme .att-spa-scope .punch-proj-inline-panel {
  background: #131C31;
  border-color: #263449;
}
[data-theme="dark"] .att-spa-scope .punch-task-title,
body.dark-theme .att-spa-scope .punch-task-title {
  color: #F1F5F9;
}
[data-theme="dark"] .att-spa-scope .punch-proj-custom-toggle,
body.dark-theme .att-spa-scope .punch-proj-custom-toggle,
[data-theme="dark"] .att-spa-scope .punch-task-item,
body.dark-theme .att-spa-scope .punch-task-item,
[data-theme="dark"] .att-spa-scope .punch-proj-note-input,
body.dark-theme .att-spa-scope .punch-proj-note-input {
  background: #0F172A;
  border-color: #334155;
  color: #E2E8F0;
}
[data-theme="dark"] .att-spa-scope .punch-proj-note-label,
body.dark-theme .att-spa-scope .punch-proj-note-label {
  color: #CBD5E1;
}
[data-theme="dark"] .att-spa-scope input[type="range"].punch-task-slider,
body.dark-theme .att-spa-scope input[type="range"].punch-task-slider {
  background: linear-gradient(90deg, #60A5FA var(--val, 0%), #334155 var(--val, 0%)) !important;
}
[data-theme="dark"] .att-spa-scope input[type="range"].punch-task-slider.is-complete,
body.dark-theme .att-spa-scope input[type="range"].punch-task-slider.is-complete {
  background: linear-gradient(90deg, #34D399 var(--val, 100%), #334155 var(--val, 100%)) !important;
}
.att-spa-scope .punch-proj-extra-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}
.att-spa-scope .punch-proj-extra-btn {
  width: 100%;
  border: 1px dashed #93C5FD;
  background: #EFF6FF;
  color: #1D4ED8;
  font-size: 12px;
  font-weight: 700;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 9px;
  text-align: center;
}
.att-spa-scope .punch-proj-extra-btn.is-open {
  border-color: #FCA5A5;
  background: #FEF2F2;
  color: #DC2626;
}
.att-spa-scope .punch-proj-extra-box em {
  color: #64748B;
  font-weight: 500;
}
[data-theme="dark"] .att-spa-scope .punch-proj-extra-btn,
body.dark-theme .att-spa-scope .punch-proj-extra-btn {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(96, 165, 250, 0.45);
  color: #93C5FD;
}
[data-theme="dark"] .att-spa-scope .punch-proj-extra-btn.is-open,
body.dark-theme .att-spa-scope .punch-proj-extra-btn.is-open {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(248, 113, 113, 0.45);
  color: #FCA5A5;
}
[data-theme="dark"] .att-spa-scope .punch-proj-extra-box em,
body.dark-theme .att-spa-scope .punch-proj-extra-box em {
  color: #94A3B8;
}
[data-theme="dark"] .att-spa-scope .punch-task-item.is-selected,
body.dark-theme .att-spa-scope .punch-task-item.is-selected {
  background: #13203A;
  border-color: #60A5FA;
}
[data-theme="dark"] .att-spa-scope .punch-task-slider-wrap,
body.dark-theme .att-spa-scope .punch-task-slider-wrap {
  border-top-color: #334155;
}

/* ======================== CALENDAR DAY-DETAIL MODAL FIX ======================== */
.att-spa-scope .overlay.roster-overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12000;
  background: rgba(15, 23, 42, 0.55);
}
body.phone-only-mode .att-spa-scope .overlay.roster-mobile-overlay {
  padding: 14px 12px !important;
}
.att-spa-scope .roster-dialog.cal-detail-dialog {
  display: flex !important;
  flex-direction: column;
  overflow: hidden !important;
  max-height: min(86dvh, calc(100dvh - 28px)) !important;
  padding: 16px !important;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.28);
}
.att-spa-scope .roster-dialog.cal-detail-dialog > .cal-detail-header,
.att-spa-scope .roster-dialog.cal-detail-dialog > .cal-birthday-banner,
.att-spa-scope .roster-dialog.cal-detail-dialog > .cal-leave-banner,
.att-spa-scope .roster-dialog.cal-detail-dialog > .cal-detail-summary {
  flex-shrink: 0;
}
.att-spa-scope .roster-dialog.cal-detail-dialog .cal-detail-close-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.att-spa-scope .roster-dialog.cal-detail-dialog .cal-detail-sessions {
  display: block !important;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none !important;
  overflow-y: auto;
  padding: 2px 4px 4px 0;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.att-spa-scope .roster-dialog.cal-detail-dialog .cal-day-detail-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.att-spa-scope .roster-dialog.cal-detail-dialog .cal-day-detail-card:last-child {
  margin-bottom: 0;
}
.att-spa-scope .roster-dialog.cal-detail-dialog > .dialog-actions {
  flex-shrink: 0;
  margin-top: 12px !important;
  padding-top: 10px;
  border-top: 1px solid var(--border-color, #E2E8F0);
}
[data-theme="dark"] .att-spa-scope .roster-dialog.cal-detail-dialog,
body.dark-theme .att-spa-scope .roster-dialog.cal-detail-dialog {
  background: #151E2E !important;
  color: #F1F5F9 !important;
}
[data-theme="dark"] .att-spa-scope .roster-dialog.cal-detail-dialog > .dialog-actions,
body.dark-theme .att-spa-scope .roster-dialog.cal-detail-dialog > .dialog-actions {
  border-top-color: #263449;
}

/* ==========================================================================
   Mobile Modal Flex-Column Scroll + iOS Date/Time Containment + Makeup UI
   ========================================================================== */
.att-spa-scope :is(.leader-mobile-overlay, .mobile-account-overlay) > .dialog {
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
  max-height: calc(100dvh - 24px);
}
.att-spa-scope :is(.leader-mobile-overlay, .mobile-account-overlay) > .dialog > header {
  flex-shrink: 0;
  position: relative !important;
}
.att-spa-scope :is(.leader-mobile-overlay, .mobile-account-overlay) > .dialog > .dialog-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.att-spa-scope .capture-grid > *,
.att-spa-scope .dialog form label {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.att-spa-scope .dialog :is(input[type="date"], input[type="time"], input[type="month"]) {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}
@media (max-width: 560px) {
  .att-spa-scope .overlay .capture-grid,
  .att-spa-scope .overlay .capture-grid.mobile-form-pair {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 11px !important;
  }
}

/* Multi-employee Makeup Picker & Project Chips */
.att-spa-scope .makeup-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.att-spa-scope .makeup-picker-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary, #475569);
}
.att-spa-scope .makeup-count-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: #EDE9FE;
  color: #5B21B6;
}
.att-spa-scope .makeup-picker-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.att-spa-scope .makeup-picker-actions button {
  padding: 4px 9px;
  min-height: 28px !important;
  font-size: 12px !important;
  font-weight: 600;
  border-radius: 7px;
}
.att-spa-scope .makeup-search-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.att-spa-scope .makeup-emp-box {
  max-height: 204px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--border, #E2E8F0);
  border-radius: 10px;
  background: var(--surface-subtle, #F8FAFC);
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  scrollbar-width: thin;
}
.att-spa-scope .makeup-emp-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 9px !important;
  margin: 0 !important;
  padding: 7px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500 !important;
  color: var(--text-primary, #0F172A) !important;
  transition: background 0.12s ease;
}
.att-spa-scope .makeup-emp-item:hover {
  background: rgba(109, 40, 217, 0.06);
}
.att-spa-scope .makeup-emp-item input[type="checkbox"] {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--primary, #6D28D9);
}
.att-spa-scope .makeup-emp-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}
.att-spa-scope .makeup-emp-meta strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary, #0F172A);
  overflow-wrap: anywhere;
}
.att-spa-scope .makeup-emp-meta small {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-muted, #64748B);
}
.att-spa-scope .makeup-selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}
.att-spa-scope .makeup-selected-chips .status {
  font-size: 11.5px;
}

/* Employee Makeup Notification Banner */
.att-spa-scope .makeup-alert-panel {
  border: 1.5px solid #F59E0B !important;
  background: #FFFBEB !important;
}
.att-spa-scope .makeup-alert-panel .mobile-card-title {
  border-bottom-color: rgba(217, 119, 6, 0.2);
}
.att-spa-scope .makeup-alert-panel .mobile-card-title h2 {
  color: #92400E;
}
.att-spa-scope .makeup-alert-card {
  background: #FFFFFF;
  border: 1px solid #FDE68A;
  border-left: 4px solid #F59E0B;
  border-radius: 11px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.att-spa-scope .makeup-alert-card.is-returned {
  border-color: #FCA5A5;
  border-left-color: #DC2626;
  background: #FEF2F2;
}
.att-spa-scope .makeup-return-box {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #FCA5A5;
  border-left: 4px solid #DC2626;
  background: #FEF2F2;
  color: #991B1B;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 10px;
}

/* Collapsible Shift/Time Override inside Employee Makeup Modal */
.att-spa-scope .makeup-shift-details {
  border: 1px solid var(--border, #E2E8F0);
  border-radius: 10px;
  padding: 9px 12px;
  background: var(--surface-subtle, #F8FAFC);
  margin: 0 !important;
}
.att-spa-scope .makeup-shift-details > summary {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary, #475569);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.att-spa-scope .makeup-shift-details > summary::-webkit-details-marker {
  display: none;
}
.att-spa-scope .makeup-shift-details[open] > summary {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border, #E2E8F0);
}
.att-spa-scope .makeup-shift-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.att-spa-scope .leader-work-note {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-secondary, #334155);
  background: var(--surface-subtle, #F8FAFC);
  border-radius: 8px;
  padding: 6px 9px;
}

/* Single-row 2-column time pair & left-aligned project checkboxes in Makeup dialog */
.att-spa-scope .makeup-time-pair {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100%;
  align-items: start;
}
.att-spa-scope .makeup-time-pair > label {
  min-width: 0;
  max-width: 100%;
  margin-top: 0 !important;
}
.att-spa-scope .makeup-time-pair input[type="time"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding-left: 8px;
  padding-right: 8px;
  box-sizing: border-box;
}
.att-spa-scope .makeup-proj-box,
.att-spa-scope .makeup-proj-box > div,
.att-spa-scope .makeup-proj-box .punch-project-entry {
  align-items: stretch;
  text-align: left;
  width: 100%;
}
.att-spa-scope .makeup-proj-box .check-label,
.att-spa-scope .makeup-proj-box .punch-project-entry > .check-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  align-self: stretch !important;
  justify-content: flex-start !important;
  text-align: left !important;
  width: 100%;
  margin: 2px 0 !important;
  gap: 8px;
}
.att-spa-scope .makeup-proj-box .check-label input[type="checkbox"] {
  flex-shrink: 0;
  margin: 0;
}
.att-spa-scope .makeup-proj-box .punch-proj-inline-panel,
.att-spa-scope .makeup-proj-box .punch-proj-note-label {
  text-align: left;
  align-items: stretch;
  width: 100%;
}

/* Dark Mode for New Makeup UI */
[data-theme="dark"] .att-spa-scope .makeup-count-pill,
body.dark-theme .att-spa-scope .makeup-count-pill {
  background: rgba(139, 92, 246, 0.24);
  color: #DDD6FE;
}
[data-theme="dark"] .att-spa-scope .makeup-emp-box,
body.dark-theme .att-spa-scope .makeup-emp-box,
[data-theme="dark"] .att-spa-scope .makeup-shift-details,
body.dark-theme .att-spa-scope .makeup-shift-details,
[data-theme="dark"] .att-spa-scope .leader-work-note,
body.dark-theme .att-spa-scope .leader-work-note {
  background: #0F172A !important;
  border-color: #263449 !important;
  color: #E2E8F0 !important;
}
[data-theme="dark"] .att-spa-scope .makeup-emp-meta strong,
body.dark-theme .att-spa-scope .makeup-emp-meta strong {
  color: #F1F5F9 !important;
}
[data-theme="dark"] .att-spa-scope .makeup-emp-meta small,
body.dark-theme .att-spa-scope .makeup-emp-meta small,
[data-theme="dark"] .att-spa-scope .makeup-shift-details > summary,
body.dark-theme .att-spa-scope .makeup-shift-details > summary {
  color: #94A3B8 !important;
}
[data-theme="dark"] .att-spa-scope .makeup-alert-panel,
body.dark-theme .att-spa-scope .makeup-alert-panel {
  background: rgba(245, 158, 11, 0.1) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
}
[data-theme="dark"] .att-spa-scope .makeup-alert-panel .mobile-card-title h2,
body.dark-theme .att-spa-scope .makeup-alert-panel .mobile-card-title h2 {
  color: #FCD34D !important;
}
[data-theme="dark"] .att-spa-scope .makeup-alert-card,
body.dark-theme .att-spa-scope .makeup-alert-card {
  background: #151E2E !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  border-left-color: #F59E0B !important;
}
[data-theme="dark"] .att-spa-scope .makeup-alert-card.is-returned,
body.dark-theme .att-spa-scope .makeup-alert-card.is-returned,
[data-theme="dark"] .att-spa-scope .makeup-return-box,
body.dark-theme .att-spa-scope .makeup-return-box {
  background: rgba(220, 38, 38, 0.14) !important;
  border-color: rgba(248, 113, 113, 0.4) !important;
  border-left-color: #EF4444 !important;
  color: #FECACA !important;
}
[data-theme="dark"] .att-spa-scope .status.shift-tag,
body.dark-theme .att-spa-scope .status.shift-tag {
  background: rgba(16, 185, 129, 0.18) !important;
  color: #6EE7B7 !important;
  border-color: rgba(16, 185, 129, 0.38) !important;
}
