.swanTimesheets{color:#f4f4f4;background:#0b0b0b;border:1px solid #363636;border-radius:16px;padding:20px;font:14px/1.5 system-ui,-apple-system,sans-serif;max-width:1180px;margin:0 auto;min-width:0;overflow-wrap:anywhere}
.swanTimesheets *{box-sizing:border-box;min-width:0}
.swanTimesheets h2,.swanTimesheets h3,.swanTimesheets h4{color:#fff;margin:0 0 8px;line-height:1.3}
.swanTimesheets h2{font-size:24px}.swanTimesheets h3{font-size:18px}.swanTimesheets h4{font-size:15px}
.swanTimesheets p{margin:6px 0}.swanTimesheets .tsMuted{color:#bdbdbd;font-size:12px}
.swanTimesheets .tsHead,.swanTimesheets .tsActions,.swanTimesheets .tsLine{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.swanTimesheets .tsHead{padding-bottom:16px;border-bottom:1px solid #3a3a3a;margin-bottom:16px}
.swanTimesheets button,.swanTimesheets a.tsButton{font:600 13px/1.4 system-ui;color:#eee;background:linear-gradient(#303030,#141414);border:1px solid #555;border-radius:9px;padding:10px 13px;min-height:44px;white-space:normal;text-align:center;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;max-width:100%}
.swanTimesheets button.tsPrimary{background:#eee;border-color:#eee;color:#111}.swanTimesheets button:disabled{opacity:.4;cursor:default}
.swanTimesheets button[aria-current=true],.swanTimesheets button[aria-pressed=true]{box-shadow:inset 0 0 0 1px #fff;border-color:#ddd;background:#292929}
.swanTimesheets .tsActions{justify-content:flex-start;margin:12px 0}.swanTimesheets .tsActions button{flex:0 1 auto}
.swanTimesheets input,.swanTimesheets select,.swanTimesheets textarea{width:100%;height:auto;min-height:44px;background:#151515;border:1px solid #555;border-radius:8px;padding:10px;color:#fff;font:16px/1.4 system-ui;max-width:100%}
.swanTimesheets textarea{min-height:76px;resize:vertical}.swanTimesheets label{display:grid;gap:5px;font-size:12px;color:#ccc;min-width:0}
.swanTimesheets input[type=checkbox]{width:20px;min-height:20px;height:20px;accent-color:#eee}.swanTimesheets .tsCheck{display:flex;gap:10px;align-items:center;min-height:44px}
.swanTimesheets .tsFields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.swanTimesheets .tsFull{grid-column:1/-1}
.swanTimesheets .tsPanel{padding:16px;border:1px solid #3c3c3c;border-radius:12px;background:#111;margin:12px 0}
.swanTimesheets .tsWorkspace{display:grid;grid-template-columns:220px minmax(0,1fr);gap:18px;align-items:start}.swanTimesheets .tsStaff{display:grid;gap:8px}
.swanTimesheets .tsStaff button{display:block;text-align:left;width:100%;padding:12px}.swanTimesheets .tsStaff strong,.swanTimesheets .tsStaff small{display:block}.swanTimesheets .tsStaff small{font-size:12px;color:#c0c0c0;margin-top:5px}
.swanTimesheets .tsBadge{border:1px solid #626262;border-radius:20px;padding:4px 9px;font-size:11px;display:inline-block;color:#eee}
.swanTimesheets .tsClaim{padding:14px 0;border-bottom:1px solid #383838}.swanTimesheets .tsClaim:last-child{border-bottom:0}
.swanTimesheets .tsClaim b{font-variant-numeric:tabular-nums}.swanTimesheets .tsClaim small{display:block;margin:5px 0;color:#bdbdbd;font-size:12px}
.swanTimesheets .tsClaimReview{display:grid;grid-template-columns:110px minmax(100px,1fr) minmax(150px,1.8fr);gap:10px;margin-top:10px}
.swanTimesheets .tsNotice{border-left:3px solid #d4d4d4;padding:10px 12px;background:#1b1b1b;margin:12px 0;font-size:13px}
.swanTimesheets .tsError{color:#fff;background:#292929;border:1px solid #999;padding:12px;border-radius:9px;margin:12px 0;white-space:pre-line}
.swanTimesheets [hidden]{display:none!important}.swanTimesheets .tsTotal{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;border-top:1px solid #444;padding-top:14px;margin-top:16px}.swanTimesheets .tsTotal b{font-size:23px;font-variant-numeric:tabular-nums}
.swanTimesheets details{padding:12px 0;border-top:1px solid #444;margin-top:12px}.swanTimesheets summary{min-height:44px;display:list-item;align-content:center;cursor:pointer;font-size:13px}
.swanTimesheets .tsAdjustment{display:grid;grid-template-columns:150px 120px minmax(0,1fr) 44px;gap:8px;margin:10px 0;align-items:end}.swanTimesheets .tsAdjustment button{width:44px;padding:8px}
.swanTimesheets .tsMonthEnd{padding:16px;border:1px solid #666;background:#191919;border-radius:12px;margin-top:18px}
.swanTimesheets .tsStat{font-size:30px;font-weight:750;font-variant-numeric:tabular-nums}.swanTimesheets .tsPeriod{max-width:175px}
.swanTimesheets .tsPdf{display:block;width:100%;height:70dvh;border:1px solid #777;background:#fff;border-radius:5px;margin-top:12px}
.swanTimesheets .tsEmail textarea{min-height:300px}.swanTimesheets .tsAudit{font-size:12px;padding:9px 0;border-bottom:1px solid #333}.swanTimesheets .tsOverlap{white-space:normal;margin-top:8px;font-size:12px}
@media(max-width:700px){.swanTimesheets{padding:14px}.swanTimesheets .tsWorkspace{grid-template-columns:1fr}.swanTimesheets .tsStaff{grid-template-columns:repeat(2,minmax(0,1fr))}.swanTimesheets .tsStaff button{padding:10px}.swanTimesheets .tsClaimReview{grid-template-columns:1fr 1fr}.swanTimesheets .tsClaimReview label:last-child{grid-column:1/-1}.swanTimesheets .tsAdjustment{grid-template-columns:minmax(0,1fr) 100px 44px}.swanTimesheets .tsAdjustment label:nth-child(3){grid-column:1/3;grid-row:2}.swanTimesheets .tsAdjustment button{grid-column:3;grid-row:2}.swanTimesheets .tsHead{align-items:flex-start}.swanTimesheets .tsActions button{flex:1 1 125px}}
@media(max-width:370px){.swanTimesheets .tsFields{grid-template-columns:1fr}.swanTimesheets .tsStaff{grid-template-columns:1fr 1fr}.swanTimesheets .tsStaff strong{font-size:13px}.swanTimesheets .tsPeriod{max-width:100%}}

.swanTimesheets .tsCutoff{display:grid;gap:5px;padding:12px 14px;margin:0 0 12px;border:1px solid #3c3c3c;border-radius:12px;background:#111}
.swanTimesheets .tsCutoff [data-ts-time-left]{color:#ddd;font-size:13px;font-variant-numeric:tabular-nums}
.swanTimesheets .tsCutoff[data-state=soon] [data-ts-time-left]{color:#ffd89a}
.swanTimesheets .tsCutoff progress{width:100%;height:6px;margin-top:4px;accent-color:#ddd}
.swanTimesheets .tsCutoff[data-state=soon] progress{accent-color:#ffd89a}

.swanTimesheets .tsReceiptPreview{display:block;max-width:100%;max-height:230px;object-fit:contain;margin:8px auto}
dialog.tsReceiptCamera{position:fixed;inset:0;box-sizing:border-box;width:100%;max-width:100%;height:100dvh;max-height:none;margin:0;border:0;padding:max(8px,env(safe-area-inset-top)) 12px max(8px,env(safe-area-inset-bottom));background:#090909;color:#f4f4f4;overflow:auto;font:14px/1.4 system-ui,-apple-system,sans-serif}
dialog.tsReceiptCamera[open]{display:grid;grid-template-rows:auto minmax(100px,1fr) auto auto auto;gap:8px}
dialog.tsReceiptCamera::backdrop{background:#000}
.tsReceiptCamera header,.tsReceiptCamera footer{display:flex;align-items:center;justify-content:space-between;gap:8px}
.tsReceiptCamera footer{justify-content:center}
.tsReceiptCamera button{min-height:44px;padding:7px 14px;border:1px solid #666;border-radius:9px;background:#212121;color:#fff;font:600 14px system-ui}
.tsReceiptCamera button:disabled{opacity:.5}
.tsReceiptCamera .tsReceiptView{position:relative;min-height:0;overflow:hidden;background:#000}
.tsReceiptCamera video{display:block;width:100%;height:100%;object-fit:contain}
.tsReceiptCamera .tsReceiptGuide{position:absolute;inset:4% 7%;max-width:440px;margin-inline:auto;border:2px solid #eee;border-radius:10px;box-shadow:0 0 0 100vmax #0004;pointer-events:none}
.tsReceiptCamera .tsReadings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin:0;padding:0;list-style:none}
.tsReceiptCamera .tsReadings li{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:5px 8px;border:1px solid #414141;border-radius:6px;gap:2px 6px}
.tsReceiptCamera .tsReadings small{grid-column:1/-1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#cfcfcf}
.tsReceiptCamera .tsReadingReady{color:#9ff2bc}
.tsReceiptCamera p{margin:0;text-align:center}
dialog.tsReceiptViewer[open]{grid-template-rows:auto minmax(0,1fr)}
.tsReceiptViewer img{width:100%;height:100%;min-height:0;object-fit:contain}
