.card{background:white;border:1px solid var(--line);border-radius:12px;padding:24px;margin-bottom:20px}.card h2{margin-bottom:16px}.auth{max-width:480px;margin:30px auto}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.wide{grid-column:1/-1}label{display:flex;flex-direction:column;gap:8px;font-weight:600;font-size:13px}input,select,textarea{width:100%;padding:12px;border:1px solid #bac6ba;border-radius:6px;background:#fff;color:var(--ink);min-height:46px}textarea{resize:vertical}input:focus,select:focus,textarea:focus{outline:2px solid #77916b;outline-offset:2px}.btn{min-height:44px}.btn:disabled{opacity:.5;cursor:wait}.section-gap{margin-top:24px}.entry{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid var(--line);padding:18px 0}.entry p{margin-top:5px;color:#68766b;overflow-wrap:anywhere}.entry strong{font-size:16px}.entry .btn{flex-shrink:0}.job-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.job-grid .card{margin:0}.metric{font-size:26px;font-weight:700;margin:14px 0 8px}.muted{color:#6b796d;line-height:1.7}.error{color:#9e3226;margin:12px 0;min-height:20px}.success{color:var(--green);background:var(--pale);padding:14px;border-radius:8px;margin-bottom:18px}.empty{padding:22px 0;color:#71806f}.code{font-family:monospace;word-break:break-all;font-size:15px;background:var(--pale);padding:15px;margin-top:15px}.history{font-size:13px;line-height:1.7;border-top:1px solid var(--line);padding:12px 0}#message{position:fixed;bottom:20px;right:20px;max-width:90vw;z-index:50;background:var(--green);color:white;border-radius:8px;padding:14px 22px;display:none}#message.visible{display:block}.header-right{font-size:12px}.hours-form{max-width:700px}.help{font-weight:400;color:#6b796d;font-size:12px;line-height:1.6}@media(max-width:800px){.form-grid,.job-grid{grid-template-columns:1fr}.wide{grid-column:auto}main{padding:22px 16px}header{padding:0 16px}.review-note{padding:10px 16px}.card{padding:20px}.entry{align-items:flex-start}.header-right{gap:8px}.breadcrumb{display:none}h1{font-size:27px}#sidebar.open{transform:translateX(0)}.auth{margin:12px auto}.mobile-menu{display:block}}

#shared-schedule input[type="checkbox"]{width:auto;min-height:0}#shared-schedule .tools>label{display:flex;flex-direction:row;align-items:center}#shared-schedule .report-control{flex-direction:column!important}#dialog .full{grid-column:1/-1}#dialog .form-grid{padding:24px}#dialog input,#dialog select,#dialog textarea{min-width:0}
.schedule-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.schedule-heading>.actions{margin-bottom:29px}@media(max-width:800px){.schedule-heading{display:block}.schedule-heading>.actions{flex-wrap:wrap}}
/* Restore original navigation and contain wide owner tools on narrow screens. */
#sidebar{overflow-y:auto}.shell,main,.grid>*,.panel,.card{min-width:0}
#sidebar nav svg{flex-shrink:0}.proposal-library .actions{flex-wrap:wrap;min-width:155px}.proposal-library td{white-space:normal}.proposal-library td:first-child{min-width:185px}.proposal-library td:nth-child(5){min-width:150px}.proposal-library td:nth-child(5) .btn{margin-top:8px}
.sales-list-controls input[type=checkbox]{width:auto;min-height:0}.sales-list-controls .checkbox-label{flex-direction:row;align-items:center}
#shared-schedule .report-control{align-items:flex-start!important}
@media(max-width:800px){.page-heading,.entry,.actions{flex-wrap:wrap}.page-heading>.actions{width:100%}.entry>div{min-width:0}#sidebar{padding-bottom:110px}.sidebar-bottom{position:static;margin:30px 10px}#dialog{max-width:calc(100vw - 24px);width:calc(100vw - 24px)}#dialog .form-grid{grid-template-columns:minmax(0,1fr);padding:16px}.proposal-editor-section>.form-grid{padding:12px!important}.form-grid>*,label{min-width:0}input,select,textarea{max-width:100%}.proposal-library .table-wrap,.sales-records .table-wrap{overflow-x:auto}.report-job{max-width:100%}}

.clock-times{display:grid;grid-template-columns:1fr 1fr;gap:8px}.clock-lunch{display:flex;align-items:center;gap:10px}.clock-lunch input[type=checkbox]{width:22px;height:22px;min-height:22px;flex:0 0 22px}.history pre{white-space:pre-wrap;overflow-wrap:anywhere}

.clock-card{max-width:800px}.clock-times{grid-template-columns:1fr 1fr 1.1fr}.clock-times select{min-width:0;padding:8px}.clock-total{font-size:1.45rem;font-weight:750;margin:22px 0 16px;color:var(--ink,#203c33)}.clock-lunch span{cursor:default}.timesheet-day{padding:14px 0;border-bottom:1px solid #e2e6df}.staff-work-order p{white-space:pre-wrap}.proposal-library td{padding:10px 12px}.proposal-library .btn{padding:6px 9px;font-size:.78rem}.proposal-search{display:flex;align-items:center;flex-wrap:wrap;gap:10px 26px;padding:12px 20px}.proposal-search>span{font-weight:600}.proposal-search .field{width:min(100%,360px);min-width:0;margin:0}.staff-schedule .schedule-label small{display:block;font-size:11px;line-height:1.6}.group-row{background:#eff2e9}
.period-card-list{display:flex;flex-direction:column;gap:14px;width:100%}.period-history-card{display:flex;flex-direction:column;align-items:flex-start;gap:8px;width:100%;text-align:left;cursor:pointer;color:inherit;font:inherit;margin:0;padding:22px}.period-history-card:hover{border-color:var(--green,#286250)}.period-card-range{font-size:clamp(1.15rem,3vw,1.5rem);line-height:1.35}.period-history-card small{font-size:.95rem}.period-history-card:focus-visible{outline:3px solid #286250;outline-offset:3px}

.schedule .bar.schedule-selected{outline:3px solid #183b5a;outline-offset:2px;z-index:3}.btn.schedule-delete{color:#9b342c;border-color:#e3b6b0}.btn.schedule-delete:hover,.btn.schedule-delete:focus-visible{background:#fbeceb}

.schedule-month-row{background:#edf3ec}.schedule-month-row>.schedule-label{background:#edf3ec;color:#355643;font-weight:700;padding-block:9px}.schedule-months{min-height:0;background:#edf3ec}.schedule-month-band{min-width:0;padding:8px 7px;border-left:2px solid #668875;background:#e5efe5;color:#253f32;font-size:13px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.schedule-month-band:nth-child(even){background:#f0f4ea}.schedule-dates .schedule-month-start{border-left:2px solid #668875;color:#274b37;font-weight:750}

.proposal-filters{display:flex;align-items:center;justify-content:space-between;gap:10px 24px;flex-wrap:wrap;padding:12px 20px}.proposal-filters .proposal-search{padding:0;flex:1 1 345px}.proposal-year{display:flex;align-items:center;gap:12px;font-weight:600}.proposal-year .field{width:auto;min-width:116px;margin:0}
