:root{
  --bg:#0b0d0f;--panel:#15181b;--panel2:#1b1f23;--line:#30353b;--text:#f5f6f7;
  --muted:#9aa1a8;--red:#e31b23;--red2:#b71218;--green:#42b883;--yellow:#e2a93b;
}
*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:radial-gradient(circle at 10% 0,#202429 0,#111416 30%,#0b0d0f 70%);color:var(--text);min-height:100vh}button,input,textarea,select{font:inherit}button{color:inherit}a{color:inherit}.hidden{display:none!important}
.app-header{position:sticky;top:0;z-index:30;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:14px clamp(16px,4vw,48px);background:rgba(12,14,16,.94);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.brand-wrap{display:flex;align-items:center;gap:14px;min-width:0}.brand-logo{height:62px;width:auto;max-width:min(430px,55vw);object-fit:contain;background:#fff;border-radius:14px;padding:5px 10px}.brand-copy{display:flex;flex-direction:column}.brand-copy strong{font-size:19px}.brand-copy span{font-size:12px;color:var(--muted);margin-top:3px}.header-actions,.job-actions,.modal-actions,.backup-actions{display:flex;gap:10px;flex-wrap:wrap}
.btn{border:1px solid transparent;border-radius:11px;padding:11px 15px;font-weight:800;cursor:pointer;transition:.16s;display:inline-flex;align-items:center;justify-content:center;gap:7px}.btn:hover{transform:translateY(-1px)}.btn-primary{background:var(--red);border-color:var(--red);color:#fff}.btn-primary:hover{background:#f0232c}.btn-ghost{background:#1a1e22;border-color:#3a4047}.btn-ghost:hover{border-color:#717982}.btn-danger{background:#341517;border-color:#6d292e;color:#ffd9db}.btn-danger:hover{border-color:#a33a42}
.app-shell{max-width:1280px;margin:0 auto;padding:42px clamp(16px,4vw,44px) 80px}.view-head,.job-hero{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:28px}.eyebrow{margin:0 0 7px;color:var(--red);font-size:12px;font-weight:900;letter-spacing:2.4px}.view h1,.job-hero h1{margin:0;font-size:clamp(38px,6vw,66px);letter-spacing:-2.2px;line-height:1}.subcopy{margin:10px 0 0;color:var(--muted);line-height:1.55}.search-wrap{width:min(390px,100%)}input,textarea,select{width:100%;background:#0e1113;border:1px solid #363c43;color:var(--text);border-radius:11px;padding:12px 13px;outline:none}input:focus,textarea:focus,select:focus{border-color:var(--red);box-shadow:0 0 0 3px #e31b231c}textarea{min-height:100px;resize:vertical}
.jobs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:16px}.job-card{position:relative;text-align:left;background:linear-gradient(145deg,#1c2024,#121518);border:1px solid var(--line);border-radius:18px;padding:20px;min-height:190px;cursor:pointer;transition:.18s;overflow:hidden}.job-card:hover{transform:translateY(-3px);border-color:#6b7076;box-shadow:0 16px 35px #0005}.job-card::after{content:"";position:absolute;right:-45px;bottom:-70px;width:170px;height:170px;background:url('assets/z-electric-logo.png') center/contain no-repeat;opacity:.055}.job-card-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.job-card h2{font-size:22px;margin:12px 0 8px;position:relative;z-index:1}.job-card p{margin:0;color:var(--muted);line-height:1.45;position:relative;z-index:1}.job-card-foot{margin-top:26px;display:flex;justify-content:space-between;color:#cbd0d5;font-size:12px;position:relative;z-index:1}.folder-count{color:var(--muted)}
.status-badge{display:inline-flex;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:900;background:#173924;color:#adf5c5;border:1px solid #285b39}.status-badge.pending{background:#382c16;color:#ffda8c;border-color:#6a5122}.status-badge.complete{background:#24282c;color:#c2c8ce;border-color:#454b51}
.empty-card{grid-column:1/-1;text-align:center;border:1px dashed #3d434a;border-radius:20px;padding:55px 20px;background:#121518}.empty-logo-wrap{display:inline-grid;place-items:center;background:#fff;border-radius:16px;padding:8px 12px}.empty-logo-wrap img{height:70px;max-width:260px}.empty-card h2{margin:22px 0 8px}.empty-card p{color:var(--muted);max-width:560px;margin:0 auto 22px}
.job-topbar{display:flex;justify-content:space-between;gap:12px;margin-bottom:26px}.job-hero{align-items:center;background:linear-gradient(130deg,#181c20,#121518);border:1px solid var(--line);border-radius:20px;padding:24px}.job-hero h1{font-size:clamp(34px,5vw,54px)}
.folder-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.folder-button{display:flex;align-items:center;gap:12px;text-align:left;border:1px solid var(--line);border-radius:15px;background:#15191d;padding:15px;cursor:pointer;min-height:76px}.folder-button:hover,.folder-button.active{border-color:var(--red);background:#201517}.folder-icon{width:43px;height:43px;min-width:43px;border-radius:11px;background:#fff;display:grid;place-items:center;overflow:hidden}.folder-icon img{width:37px;height:37px;object-fit:contain}.folder-button strong{display:block;font-size:15px}.folder-button span{display:block;color:var(--muted);font-size:11px;margin-top:4px}
.folder-panel{background:#14181b;border:1px solid var(--line);border-radius:20px;padding:22px}.folder-panel-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:18px}.folder-panel h2{margin:0;font-size:25px}.folder-panel p{margin:7px 0 0;color:var(--muted)}
.upload-zone{border:2px dashed #3b4249;border-radius:16px;padding:22px;background:#0f1214;margin-bottom:20px}.upload-zone.dragover{border-color:var(--red);background:#1e1416}.upload-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.upload-row input[type=file]{flex:1;min-width:240px;background:#14181b}.upload-hint{margin-top:10px!important;font-size:12px!important}.file-list{display:flex;flex-direction:column;gap:10px}.file-row{display:flex;justify-content:space-between;align-items:center;gap:14px;border:1px solid #30363c;background:#0f1214;border-radius:13px;padding:13px 14px}.file-main{min-width:0}.file-name{font-weight:800;word-break:break-word}.file-meta{font-size:11px;color:var(--muted);margin-top:4px}.file-actions{display:flex;gap:8px;flex-wrap:wrap}.mini-btn{border:1px solid #444b52;background:#20252a;border-radius:9px;padding:8px 10px;font-weight:800;font-size:12px;cursor:pointer}.mini-btn.danger{background:#321719;border-color:#642b2f;color:#ffd7d9}.no-files{padding:18px;color:var(--muted);text-align:center;border:1px dashed #333941;border-radius:12px}
.tasks-layout{display:grid;grid-template-columns:1.15fr .85fr;gap:16px}.task-box,.notes-box{background:#0f1214;border:1px solid #30363c;border-radius:15px;padding:16px}.task-box h3,.notes-box h3{margin:0 0 12px}.task-add{display:grid;grid-template-columns:1fr auto;gap:9px;margin-bottom:12px}.task-list{display:flex;flex-direction:column;gap:9px}.task-item{display:grid;grid-template-columns:auto 1fr auto;gap:9px;align-items:center;border:1px solid #30363c;border-radius:11px;padding:9px;background:#14181b}.task-item input[type=checkbox]{width:20px;height:20px;accent-color:var(--red)}.task-item input[type=text]{padding:9px 10px}.task-item.done input[type=text]{text-decoration:line-through;color:#7f878e}.notes-box textarea{min-height:190px}.notes-status{font-size:12px;color:var(--muted);margin-top:8px}.tasks-upload{margin-top:16px}
.modal{border:0;padding:0;background:transparent;color:var(--text);width:min(600px,calc(100% - 24px))}.modal::backdrop{background:#000b;backdrop-filter:blur(6px)}.modal-card{background:#15191d;border:1px solid #3b4148;border-radius:20px;padding:22px;box-shadow:0 30px 90px #0009}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px}.modal-head h2{margin:0;font-size:30px}.modal-card label{display:block;font-weight:800;font-size:13px;margin-top:13px}.modal-card label input,.modal-card label textarea,.modal-card label select{margin-top:7px}.modal-actions{justify-content:flex-end;margin-top:18px}.icon-btn{width:38px;height:38px;border-radius:50%;border:1px solid #3c4249;background:#20252a;font-size:26px;line-height:1;cursor:pointer}.backup-actions{margin:20px 0}.file-label{cursor:pointer}.storage-note{font-size:12px;color:#ffcf90;background:#2a2113;border:1px solid #5a451e;border-radius:12px;padding:12px}
.toast{position:fixed;right:18px;bottom:18px;z-index:100;background:#172019;border:1px solid #2d6840;color:#dcffe6;padding:12px 15px;border-radius:11px;box-shadow:0 12px 35px #0007;animation:toastin .2s ease}@keyframes toastin{from{transform:translateY(8px);opacity:0}to{transform:none;opacity:1}}
@media(max-width:900px){.folder-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tasks-layout{grid-template-columns:1fr}.brand-copy{display:none}.view-head{align-items:stretch;flex-direction:column}.search-wrap{width:100%}}
@media(max-width:620px){.app-header{padding:10px 12px}.brand-logo{height:48px;max-width:52vw}.header-actions .btn-ghost{display:none}.btn{padding:10px 12px}.app-shell{padding:26px 12px 60px}.folder-grid{grid-template-columns:1fr 1fr}.folder-button{padding:10px;gap:8px}.folder-icon{width:36px;height:36px;min-width:36px}.folder-icon img{width:31px;height:31px}.job-topbar,.job-hero,.folder-panel-head,.file-row{align-items:stretch;flex-direction:column}.job-actions{width:100%}.job-actions .btn{flex:1}.task-add{grid-template-columns:1fr}.modal-card{padding:18px}.jobs-grid{grid-template-columns:1fr}}


/* Time Cards */
.brand-link{text-decoration:none}.btn{text-decoration:none}.btn-timecards{white-space:nowrap;background:#271719;border-color:#e31b23;color:#fff;box-shadow:inset 0 0 0 1px #e31b2344}.btn-timecards:hover{background:#3a181b;border-color:#ff3841}
.employee-folder-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px}
.employee-folder-card{display:grid;grid-template-columns:auto 1fr auto;gap:15px;align-items:center;text-align:left;background:linear-gradient(145deg,#1c2024,#121518);border:1px solid var(--line);border-radius:18px;padding:20px;cursor:pointer;transition:.18s}
.employee-folder-card:hover{transform:translateY(-2px);border-color:var(--red);box-shadow:0 16px 35px #0005}.employee-folder-icon{width:58px;height:58px;border-radius:14px;background:#fff;display:grid;place-items:center;overflow:hidden}.employee-folder-icon img{width:52px;height:52px;object-fit:contain}.employee-folder-copy strong{display:block;font-size:19px}.employee-folder-copy small{display:block;color:var(--muted);margin-top:5px}.employee-folder-copy em{display:block;color:#d9dde1;font-size:12px;font-style:normal;margin-top:10px}.folder-open-arrow{font-size:12px;font-weight:900;color:#c8cdd2}.timecard-nav-actions{display:flex;gap:9px;flex-wrap:wrap}.timecard-titlebar{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:18px}.timecard-titlebar h1{margin:0;font-size:clamp(36px,5vw,58px);letter-spacing:-2px}.save-state{padding:8px 12px;border-radius:999px;background:#1b2420;border:1px solid #345746;color:#c8f5d7;font-size:12px;font-weight:800}
.paper-time-sheet{background:#fff;color:#111;border:1px solid #d9d9d9;border-radius:14px;padding:24px;box-shadow:0 16px 45px #0006}.sheet-heading{display:grid;grid-template-columns:180px 1fr 180px;align-items:center;min-height:100px}.sheet-logo-box{background:#fff;display:grid;place-items:center}.sheet-logo-box img{width:165px;max-height:86px;object-fit:contain}.sheet-heading-copy{text-align:center;grid-column:2}.sheet-heading-copy h2{color:#1872b7;font-size:27px;line-height:1;margin:0 0 5px;letter-spacing:.5px}.due-note{font-size:12px;font-style:italic}.pay-period-note{font-size:15px;color:#e1262f;font-style:italic;font-weight:900;margin-top:6px}.sheet-info{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:18px;align-items:end;margin:18px 0}.sheet-info label,.sheet-footer-row label{font-size:13px;font-weight:800}.sheet-info input,.sheet-footer-row input{margin-top:6px;background:#fff;color:#111;border:0;border-bottom:1px solid #111;border-radius:0;padding:6px 2px}.sheet-info input[readonly]{background:#f5f5f5}.lunch-instruction{text-align:center;font-size:12px;font-weight:900;font-style:italic;margin:0 0 10px}.timesheet-table-wrap{overflow-x:auto;border:4px solid #4e9bd1}.timesheet-table{width:100%;border-collapse:collapse;min-width:900px;table-layout:fixed}.timesheet-table th,.timesheet-table td{border:2px solid #111;padding:0;vertical-align:middle}.timesheet-table thead th{background:#bfd8ec;font-size:13px;letter-spacing:.3px;padding:6px}.timesheet-table thead th:nth-child(1){width:125px}.timesheet-table thead th:nth-child(2){width:auto}.timesheet-table thead th:nth-child(3),.timesheet-table thead th:nth-child(5){width:115px}.timesheet-table thead th:nth-child(4){width:85px}.timesheet-table thead th:nth-child(6){width:145px}.day-cell{background:#eef6fb;text-align:left;padding:8px!important}.day-cell span{display:block;font-size:12px}.day-cell small{display:block;font-size:11px;font-weight:600;color:#444;margin-top:4px}.job-address{width:100%;min-height:72px;border:0!important;border-radius:0!important;background:#fff!important;color:#111!important;padding:8px!important;margin:0!important;resize:vertical;box-shadow:none!important}.time-input{width:100%!important;border:0!important;border-radius:0!important;background:#fff!important;color:#111!important;margin:0!important;padding:12px 5px!important;text-align:center;box-shadow:none!important}.lunch-cell{text-align:center;background:#fff}.lunch-cell input{width:22px;height:22px;accent-color:#1872b7}.daily-hours{text-align:center;font-size:17px;font-weight:900;background:#fff}.sheet-footer-row{display:grid;grid-template-columns:2fr 1fr 1.15fr;gap:16px;align-items:end;margin-top:18px}.week-total{text-align:right;color:#e1262f;font-weight:900;font-size:15px}.week-total strong{display:inline-block;min-width:72px;border-bottom:1px solid #e1262f}.timecard-form-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:22px}.timecard-form-actions .btn-ghost{background:#f2f2f2;color:#111;border-color:#bbb}
@media(max-width:900px){.sheet-heading{grid-template-columns:130px 1fr}.sheet-heading-copy{grid-column:2}.sheet-heading:after{display:none}.sheet-logo-box img{width:120px}.sheet-info,.sheet-footer-row{grid-template-columns:1fr}.week-total{text-align:left}.timecard-titlebar{align-items:flex-start;flex-direction:column}}
@media(max-width:620px){#backupBtn{display:inline-flex!important}.header-actions .btn-timecards{display:inline-flex}.employee-folder-grid{grid-template-columns:1fr}.employee-folder-card{grid-template-columns:auto 1fr}.folder-open-arrow{display:none}.timecard-nav-actions{width:100%}.timecard-nav-actions .btn{flex:1;min-width:120px}.paper-time-sheet{padding:14px}.sheet-heading{display:block;text-align:center}.sheet-logo-box img{width:150px}.sheet-heading-copy{margin-top:10px}.sheet-info{grid-template-columns:1fr}.timecard-form-actions .btn{flex:1}.app-header .brand-logo{max-width:40vw}}
@media print{body{background:#fff}.app-header,.job-topbar,.timecard-titlebar,.timecard-form-actions{display:none!important}.app-shell{padding:0;max-width:none}.paper-time-sheet{box-shadow:none;border:0;border-radius:0;padding:0}.timesheet-table-wrap{overflow:visible}.timesheet-table{min-width:0}.sheet-heading-copy h2{color:#1872b7!important}.pay-period-note,.week-total{color:#e1262f!important}}

/* Changes / Additional Work editable list */
.change-work-box{margin-bottom:18px}.change-work-box .section-help{margin:0 0 12px;color:#9ea4aa;font-size:14px;line-height:1.5}.change-check{width:20px;height:20px;accent-color:#e51b23}.change-work-box .task-item.done .change-text{text-decoration:line-through;color:#7c8288}

/* Audit history */
.activity-modal{width:min(780px,calc(100% - 24px))}.activity-card{max-height:min(82vh,850px);display:flex;flex-direction:column}.activity-list{display:flex;flex-direction:column;gap:9px;overflow:auto;margin-top:18px;padding-right:4px}.activity-row{display:grid;grid-template-columns:12px 1fr;gap:12px;border:1px solid #30363c;background:#0f1214;border-radius:13px;padding:13px}.activity-marker{width:10px;height:10px;background:var(--red);border-radius:50%;margin-top:5px;box-shadow:0 0 0 4px #e31b2320}.activity-row strong{font-size:13px}.activity-row p{margin:4px 0!important;color:#e8eaec!important;line-height:1.4}.activity-row time{font-size:11px;color:var(--muted)}
.activity-details{margin-top:9px}.activity-details summary{cursor:pointer;color:#c9cdd1;font-size:11px;font-weight:800}.activity-details pre{max-height:260px;overflow:auto;white-space:pre-wrap;word-break:break-word;background:#090b0c;border:1px solid #292e33;border-radius:9px;padding:10px;color:#bfc5ca;font:11px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace}
@media(max-width:620px){#activityBtn{display:inline-flex!important}.header-actions{justify-content:flex-end}.activity-card{padding:15px}}
