.timesheet-create,.timesheet-detail,.timesheet-list,.timesheet-review-blocks{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:20px;margin-top:18px;min-width:0}.timesheet-create h2{font-size:17px;margin:0 0 15px}.timesheet-form-row{display:grid;grid-template-columns:1fr 1fr 1.3fr auto;gap:12px;align-items:end}.timesheet-form-row label,.timesheet-grant-form label{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:12px;color:var(--muted)}.timesheet-form-row input,.timesheet-form-row select,.timesheet-toolbar select,.timesheet-grant-form select,#timesheetReason{border:1px solid var(--line);background:var(--panel-2);color:var(--text);border-radius:8px;padding:10px;max-width:100%;width:100%;font:inherit}.timesheet-toolbar{display:flex;gap:12px;align-items:center;margin-top:18px;flex-wrap:wrap}.timesheet-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:16px;align-items:start}.timesheet-list{display:flex;flex-direction:column;gap:10px;padding:12px}.timesheet-list-item{display:flex;flex-direction:column;gap:8px;border:1px solid transparent;border-radius:10px;background:var(--panel-2);color:var(--text);padding:13px;text-align:start;cursor:pointer;width:100%}.timesheet-list-item.active{border-color:var(--accent);background:var(--accent-soft)}.timesheet-list-item>span:not(.timesheet-state){font-size:11px;color:var(--muted);overflow-wrap:anywhere}.timesheet-state{display:inline-block;font-size:11px;font-weight:700;border-radius:20px;padding:5px 10px;background:var(--panel-2);color:var(--muted);width:fit-content;white-space:nowrap}.timesheet-state.submitted{background:#fff0cc;color:#7c5700}.timesheet-state.approved{background:#d8f3e4;color:#155a36}.timesheet-state.rejected{background:#fde3e3;color:#832929}.timesheet-detail h2{font-size:19px;margin:0}.timesheet-detail>.muted{font-size:12px;line-height:1.7}.timesheet-detail .dialog-head{gap:10px;flex-wrap:wrap}.timesheet-note{border-inline-start:3px solid var(--accent);padding:10px 13px;background:var(--accent-soft);font-size:12px;line-height:1.7;border-radius:7px}.timesheet-totals{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0;padding:16px;background:var(--panel-2);border-radius:10px}.timesheet-totals strong{font-size:26px;display:block;margin-top:7px}.timesheet-totals span{font-size:12px;color:var(--muted)}.timesheet-actions{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0}.timesheet-consent{line-height:1.7;margin:14px 0;font-size:12px;align-items:flex-start!important}.timesheet-consent input{margin-top:4px;flex:none}.timesheet-entry-table{margin-top:18px}.timesheet-entry-table .server-report-table{min-width:520px}.timesheet-event{border-inline-start:2px solid var(--line);padding:8px 13px;margin:10px 0}.timesheet-event strong,.timesheet-event span{display:block}.timesheet-event span{font-size:11px;color:var(--muted);margin-top:5px}.timesheet-event p{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.timesheet-ready{color:var(--green);font-weight:700}.timesheet-split{background:var(--panel-2);padding:10px;border-radius:8px;font-size:12px}.timesheet-grant,.timesheet-sync-review{padding:13px;border:1px solid var(--line);border-radius:9px;margin-top:10px;display:flex;flex-direction:column;gap:8px;overflow-wrap:anywhere}.timesheet-grant span,.timesheet-sync-review span{font-size:12px;color:var(--muted)}.timesheet-grant button,.timesheet-sync-review button{align-self:flex-start}.timesheet-dialog{width:min(650px,94vw)}.timesheet-grant-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}.timesheet-grant-form .inline-label{grid-column:1/-1}.timesheet-review-blocks summary{cursor:pointer;font-weight:700}.timesheet-lock-badge{background:var(--accent-soft);color:var(--accent);border:1px solid var(--accent);border-radius:99px;padding:2px 8px;font-size:10px}.period-locked-entry .entry-actions button:disabled{opacity:.5;cursor:not-allowed}.timesheet-detail [hidden],.timesheet-consent[hidden]{display:none!important}#timesheetLastReason:empty{display:none}#timesheetReason{resize:vertical;min-height:110px}.dark .timesheet-state.submitted{background:#443615;color:#f7d584}.dark .timesheet-state.approved{background:#1b392b;color:#a6ddbc}.dark .timesheet-state.rejected{background:#412326;color:#efb2ba}@media(max-width:1100px){.timesheet-form-row{grid-template-columns:1fr 1fr}.timesheet-layout{grid-template-columns:210px minmax(0,1fr)}}@media(max-width:950px){.timesheet-layout{grid-template-columns:1fr}.timesheet-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.timesheet-detail{margin-top:0}}@media(max-width:640px){.timesheet-form-row{grid-template-columns:1fr}.timesheet-create,.timesheet-detail{padding:14px}.timesheet-list{grid-template-columns:1fr}.timesheet-totals strong{font-size:23px}.timesheet-actions button{flex:1}.timesheet-grant-form{grid-template-columns:1fr}.timesheet-grant-form .inline-label{grid-column:auto}.timesheet-detail h2{font-size:16px}.timesheet-dialog{width:94vw}.timesheet-create .primary-btn{padding:12px}}

/* Grid children must shrink below the table intrinsic width on mobile. */
.timesheet-layout>div{min-width:0;max-width:100%}.timesheet-consent{max-width:100%;display:flex!important;gap:9px}.timesheet-consent>span{min-width:0;overflow-wrap:anywhere}.timesheet-consent[hidden]{display:none!important}@media(max-width:950px){.timesheet-layout{grid-template-columns:minmax(0,1fr)}}
