@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');
:root{--ink:#182230;--muted:#758195;--line:#e8edf3;--bg:#f5f7fb;--blue:#3659d9;--navy:#17233b;--green:#16845b}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',Arial,sans-serif;font-size:14px}h1,h2{font-family:Manrope,Arial,sans-serif;margin:0;color:#19243a}h1{font-size:29px;letter-spacing:-.7px}h2{font-size:17px}p{color:var(--muted);margin:7px 0 0}.topbar{height:68px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 32px;position:sticky;top:0;z-index:5}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--navy);font:800 17px Manrope}.brand-mark{height:48px;width:48px;border-radius:15px;background:linear-gradient(135deg,#4266ed,#273fae);display:grid;place-items:center;color:white;font:800 17px Manrope;box-shadow:0 8px 18px #3659d933}.brand-mark.small{height:34px;width:34px;border-radius:10px;font-size:12px}.user-area{display:flex;align-items:center;gap:20px;font-weight:600}.logout{color:#6b778b;text-decoration:none}.layout{display:flex;min-height:calc(100vh - 68px)}.sidebar{width:230px;background:#fff;border-right:1px solid var(--line);padding:28px 16px;flex-shrink:0}.side-label,.eyebrow{font-size:10px;letter-spacing:1.4px;font-weight:700;color:#9aa5b5}.side-label{padding:0 12px 14px}.nav{display:block;padding:12px 14px;border-radius:9px;text-decoration:none;color:#637087;font-weight:600;margin:3px 0}.nav.active,.nav:hover{background:#edf1ff;color:var(--blue)}.content{padding:34px 38px 60px;min-width:0;flex:1;max-width:calc(100% - 230px)}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;gap:20px}.page-heading p{font-size:13px}.btn{border:1px solid #dfe5ee;background:#fff;color:#3c4a60;padding:9px 14px;border-radius:8px;font:600 12px 'DM Sans';cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px}.btn:hover{filter:brightness(.98);transform:translateY(-1px)}.btn.primary{background:var(--blue);border-color:var(--blue);color:white;box-shadow:0 4px 10px #3659d922}.btn.light{background:#f7f8fb}.btn.small{padding:7px 11px}.full{width:100%;margin-top:18px}.panel{background:#fff;border:1px solid var(--line);border-radius:13px;margin-bottom:22px;box-shadow:0 3px 14px #192b4b05;overflow:hidden}.panel-head{padding:19px 21px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line)}.panel-head p{font-size:12px}.filters{display:flex;align-items:end;gap:9px;flex-wrap:wrap}.filters label{font-size:11px;color:#788397;display:grid;gap:5px}.filters input,.filters select{width:145px;padding:8px 9px}.filter-bar{padding:15px 20px;border-bottom:1px solid var(--line)}input,select{font:13px 'DM Sans';border:1px solid #dfe5ee;border-radius:7px;padding:10px 11px;color:#29364b;background:white;outline:none;min-width:0}input:focus,select:focus{border-color:#7187ef;box-shadow:0 0 0 3px #3659d914}label{font-size:12px;font-weight:600;color:#58657a;display:grid;gap:7px}.table-wrap{width:100%;overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:1120px;font-size:11px}th{background:#f8f9fc;color:#7d899b;font-weight:700;text-align:left;white-space:nowrap}th,td{padding:12px 10px;border-bottom:1px solid #edf0f5;vertical-align:middle}td{color:#46536a}tbody tr:hover{background:#fbfcff}tfoot td{background:#fafbfe;font-weight:700;color:#27364e}.note-cell{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.actions{min-width:160px;white-space:nowrap}.link-btn{background:none;border:0;padding:3px 5px;color:var(--blue);font:600 11px 'DM Sans';cursor:pointer}.danger-text{color:#d34c58}.inline{display:inline}.pill{display:inline-block;border-radius:20px;padding:5px 8px;font-size:10px;font-weight:700;text-transform:capitalize}.pill.locked{background:#fff0e8;color:#b65b27}.pill.billed{background:#eaf7f0;color:#16845b}.pill.open{background:#edf1ff;color:#405ac7}.pill.role{background:#f0f2f7;color:#58657a}.empty{text-align:center;padding:30px;color:#98a2b2}.alert{padding:12px 15px;border-radius:8px;margin-bottom:17px;font-weight:600}.alert.success{background:#eaf7f0;color:#16845b}.alert.error{background:#fff0ef;color:#c34242}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:22px}.stat{background:#fff;border:1px solid var(--line);border-radius:12px;padding:17px 19px}.stat span{color:#8792a3;font-size:11px;font-weight:600}.stat strong{display:block;font:800 24px Manrope;margin-top:8px;color:#23314c}.rate-form{display:flex;gap:8px;align-items:center}.rate-form input{width:130px}.modal{display:none;position:fixed;inset:0;background:#101b31a8;z-index:20;align-items:center;justify-content:center;padding:20px}.modal.show{display:flex}.modal-card{background:white;border-radius:15px;width:min(760px,100%);max-height:92vh;overflow:auto;padding:23px;box-shadow:0 20px 70px #101b3140}.modal-card.compact{width:min(450px,100%)}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.modal-head p{font-size:12px}.close{border:0;background:#f1f3f7;border-radius:8px;width:32px;height:32px;font-size:22px;color:#6e7a8d;cursor:pointer}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-bottom:16px}.form-grid .wide{grid-column:span 2}.hours-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:18px 0}.hours-grid label{font-size:10px}.hours-grid input{width:100%;padding:9px 5px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}.modal-card.compact form>label{margin:13px 0}.muted{color:#8b96a7}.login-page{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 15% 10%,#e6ebff,transparent 34%),#f5f7fb}.login-card{width:min(420px,calc(100% - 30px));background:#fff;padding:38px;border:1px solid var(--line);border-radius:18px;box-shadow:0 18px 60px #1a2b4b12}.login-card .brand-mark{margin-bottom:20px}.login-card h1{font-size:23px}.login-card form{margin-top:25px}.login-card form label{margin:14px 0 7px}.login-card input{width:100%}.demo{border-top:1px solid var(--line);margin-top:25px;padding-top:17px;color:#778397;font-size:11px;line-height:1.8}.demo b{color:#4b5870}.login-card .muted{font-size:13px}
@media(max-width:1000px){.sidebar{width:190px}.content{padding:25px 20px;max-width:calc(100% - 190px)}.stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.topbar{padding:0 15px}.sidebar{width:100%;border-right:0;border-bottom:1px solid var(--line);padding:10px 14px;display:flex;align-items:center;gap:8px}.side-label{display:none}.layout{display:block}.content{max-width:100%;padding:22px 13px}.page-heading{align-items:flex-start;flex-direction:column}.stats{gap:8px}.stat{padding:13px}.stat strong{font-size:20px}.panel-head{align-items:flex-start;flex-direction:column}.filters{width:100%}.filters label{flex:1}.filters input,.filters select{width:100%}.form-grid{grid-template-columns:1fr 1fr}.hours-grid{grid-template-columns:repeat(4,1fr)}.login-card{padding:27px}.user-area{gap:10px;font-size:12px}}

.check-label{display:flex;align-items:center;gap:10px;padding:10px 0}.check-label input{width:18px;height:18px;accent-color:#3659d9}

.customer-add-form{display:flex;align-items:end;gap:10px;padding:16px 20px;border-bottom:1px solid var(--line);flex-wrap:wrap}.customer-add-form label{min-width:240px}.customer-edit-form{display:inline-flex;align-items:center;gap:6px;margin-right:8px}.customer-edit-form input{width:190px;padding:7px 9px}
.bulk-invoice-form{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:15px 20px;border-top:1px solid var(--line)}.bulk-invoice-form .muted{font-size:11px}.invoice-paper{padding:28px}.invoice-title{display:flex;justify-content:space-between;align-items:flex-start;padding-bottom:25px;border-bottom:1px solid var(--line)}.invoice-title h1{font-size:30px;margin-top:8px}.invoice-meta{display:grid;gap:7px;text-align:right;color:#647087}.invoice-to{display:grid;gap:6px;padding:24px 0}.invoice-to span{font-size:10px;letter-spacing:1px;color:#8994a5;font-weight:700}.invoice-to b{font-size:17px}.invoice-to small{color:#8792a3}.invoice-total{display:flex;justify-content:flex-end;align-items:center;gap:35px;padding:22px 10px;font-weight:700}.invoice-total strong{font:800 24px Manrope}.invoice-note{border-top:1px solid var(--line);padding-top:15px;font-size:11px}@media print{body{background:#fff}.topbar,.sidebar,.no-print{display:none!important}.layout{display:block;min-height:0}.content{max-width:100%;padding:0}.invoice-paper{border:0;box-shadow:none;margin:0}.invoice-paper .table-wrap{overflow:visible}.invoice-paper table{min-width:0!important;font-size:10px}.invoice-paper th,.invoice-paper td{padding:8px 6px}}
.weekly-modal{width:min(1180px,100%)}.week-picker{display:flex;align-items:end;gap:16px;margin-bottom:15px}.week-picker label{width:230px}.weekly-entry-wrap{border:1px solid var(--line);border-radius:9px}.weekly-entry-table{min-width:980px!important;font-size:11px}.weekly-entry-table th,.weekly-entry-table td{padding:8px 6px}.weekly-entry-table th small{display:block;color:#9aa5b5;font-size:9px;font-weight:500;margin-top:3px}.weekly-entry-table th:nth-child(1){min-width:130px}.weekly-entry-table th:nth-child(2){min-width:150px}.weekly-entry-table th:nth-child(n+3):nth-child(-n+9){min-width:66px;text-align:center}.weekly-entry-table td input,.weekly-entry-table td select{width:100%;padding:8px 5px;font-size:11px}.weekly-entry-table td:nth-child(n+3):nth-child(-n+9){min-width:66px}.weekly-entry-table tfoot td{text-align:center}.weekly-entry-table tfoot td:first-child{text-align:left}.weekly-controls{display:flex;align-items:center;gap:22px;margin-top:13px}.weekly-controls .check-label{display:flex;align-items:center;gap:7px}.weekly-controls .check-label input{width:auto}.weekly-row-total{font-weight:700;white-space:nowrap}.weekly-entry-table .danger-text{white-space:nowrap}

/* Admin dashboard: prominent weekly filter and visible table grid. */
.admin-timesheet-table{border-collapse:collapse!important;border:1px solid #cbd4e1;}
.admin-timesheet-table th,.admin-timesheet-table td{border:1px solid #cbd4e1!important;}
.admin-timesheet-table th{background:#eef2f8;color:#34445d;border-bottom:2px solid #aebbd0!important;}
.admin-timesheet-table tbody tr:nth-child(even){background:#fafbfd;}
.admin-timesheet-table tbody tr:hover{background:#f0f4ff;}
.admin-timesheet-table tfoot td{background:#eaf0f8;border-top:2px solid #9eacc2!important;font-weight:800;}
.week-filter-label{min-width:190px!important;font-size:12px!important;color:#34445d!important;font-weight:700!important;}
.week-filter-label input{width:190px!important;border:1px solid #aebbd0!important;background:#fff;}
.week-filter-range{font-size:12px;padding:0 10px 9px;white-space:nowrap;color:#40516b;}
.week-filter-range b{color:#243753;}

/* Weekly filters and readable column grid on both employee and admin dashboards. */
.employee-week-filter{padding:15px 20px;border-bottom:1px solid var(--line);}
.employee-week-filter .week-filter-label input{width:190px!important;border:1px solid #aebbd0!important;background:#fff;}
.employee-timesheet-table{border-collapse:collapse!important;border:1px solid #cbd4e1!important;}
.employee-timesheet-table th,.employee-timesheet-table td{border:1px solid #cbd4e1!important;}
.employee-timesheet-table th{background:#eef2f8;color:#34445d;border-bottom:2px solid #aebbd0!important;}
.employee-timesheet-table tbody tr:nth-child(even){background:#fafbfd;}
.employee-timesheet-table tbody tr:hover{background:#f0f4ff;}
.employee-timesheet-table tfoot td{background:#eaf0f8;border-top:2px solid #9eacc2!important;font-weight:800;}

/* Invoice editor */
.invoice-paper input{max-width:100%;box-sizing:border-box;padding:8px;border:1px solid #cbd5e1;border-radius:6px}.invoice-paper form>label{display:inline-flex;gap:10px;align-items:center;margin:12px 0}.print-only{display:none}@media print{.no-print{display:none!important}.print-only{display:block!important}.invoice-paper input{border:0;padding:0}}
