/* Scoped calendar layouts; dispatch tables and intake controls are unchanged. */
body.frost-dispatch.sheet-center.sheet-calendar-page{height:100vh;height:100dvh;min-height:0;overflow:hidden}
body.sheet-calendar-page .workspace{height:100%;min-height:0;overflow:hidden}
body.sheet-calendar-page .content-area{display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden}
body.frost-dispatch.sheet-center.sheet-calendar-page main{display:flex;flex:1;flex-direction:column;min-height:0;min-width:0;margin:0;overflow:hidden;padding:8px 12px max(4px,env(safe-area-inset-bottom))}
body.sheet-calendar-page .dispatch-topbar{flex:none}
body.sheet-calendar-page .page-heading{flex:none;min-height:0;margin:0 0 6px;padding:0}
body.sheet-calendar-page .page-heading h1{font-size:24px;line-height:1.2;margin:2px 0}
body.sheet-calendar-page #viewContent{display:flex;flex:1;min-height:0;min-width:0;overflow:hidden}
body.sheet-calendar-page .content-area>footer{display:none}
.tcal-root{--tcal-line:var(--lux-line,#a68a64);--tcal-paper:#fff;--tcal-alt:var(--lux-row-alt,#f7f0e3);--tcal-head:var(--lux-primary-soft,#e6dcc5);display:flex;flex:1;flex-direction:column;min-height:0;min-width:0;gap:6px;color:var(--lux-ink,#2b2318);font-size:13px}
body.frost-dispatch .tcal-root :is(button,input,select){font-family:inherit;font-size:13px;box-sizing:border-box}
body.frost-dispatch .tcal-root button{min-height:30px;padding:4px 9px;border:1px solid var(--tcal-line);border-radius:4px;background:var(--lux-panel-solid,#fffcf4);color:var(--lux-ink,#2b2318);cursor:pointer;touch-action:manipulation}
body.frost-dispatch .tcal-root button:focus-visible{outline:2px solid var(--lux-primary,#582f0e);outline-offset:2px}
.tcal-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;flex:none}
.tcal-modes,.tcal-period-nav{display:flex;align-items:center;gap:4px}
.tcal-period-nav strong{min-width:130px;text-align:center;font-variant-numeric:tabular-nums}
body.frost-dispatch .tcal-root .tcal-modes button[aria-pressed="true"],body.frost-dispatch .tcal-root .tcal-search-submit{background:var(--lux-primary,#582f0e);border-color:var(--lux-primary,#582f0e);color:#fff}
.tcal-search{display:grid;grid-template-columns:repeat(6,minmax(0,1fr)) auto;gap:6px;align-items:end;flex:none}
.tcal-search>label{display:flex;flex-direction:column;min-width:0;gap:3px;margin:0;font-size:12px}
.tcal-search-actions{display:flex;gap:4px}
.tcal-match{position:relative;display:block;min-width:0;width:100%}
body.frost-dispatch .tcal-root .tcal-match>input{width:100%;min-width:0;height:30px;min-height:30px;margin:0;padding:4px 25px 4px 6px;border:1px solid var(--tcal-line);border-radius:4px;background:var(--tcal-paper);color:var(--lux-ink,#2b2318);font-weight:700}
body.frost-dispatch .tcal-root .tcal-match>input:focus{outline:2px solid var(--lux-primary,#582f0e);outline-offset:-1px}
.tcal-match::after{position:absolute;right:8px;top:13px;content:"";border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid var(--lux-muted,#665a45);pointer-events:none}
body.frost-dispatch .tcal-root .tcal-match>select{position:absolute;right:0;top:0;width:25px;min-width:25px;max-width:25px;height:30px;min-height:30px;margin:0;padding:0;opacity:0;cursor:pointer}
.tcal-match:focus-within{border-radius:4px;box-shadow:0 0 0 1px var(--lux-primary,#582f0e)}
.tcal-results-count{flex:none;font-size:12px;color:var(--lux-muted,#665a45)}
.tcal-board{flex:1;min-height:0;overflow:auto;border:1px solid var(--tcal-line);border-radius:6px;background:var(--tcal-paper);overscroll-behavior:contain}
.tcal-weekdays{position:sticky;top:0;z-index:2;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-width:840px;background:var(--tcal-head);border-bottom:1px solid var(--tcal-line)}
.tcal-weekdays>span{text-align:center;padding:7px 4px}
.tcal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-width:840px;gap:1px;background:var(--tcal-line)}
.tcal-month-grid{grid-template-rows:repeat(var(--tcal-weeks),minmax(105px,1fr));height:calc(100% - 33px);min-height:calc(var(--tcal-weeks) * 105px);gap:0}
.tcal-month-grid>:is(.tcal-day,.tcal-empty-day){box-sizing:border-box;border:0;border-right:1px solid var(--tcal-line);border-bottom:1px solid var(--tcal-line)}
.tcal-month-grid>:nth-child(7n){border-right:0}
.tcal-month-grid>:nth-last-child(-n+7){border-bottom:0}
.tcal-month-grid .tcal-month-counts{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.tcal-week-grid{height:calc(100% - 33px);min-height:210px;grid-template-rows:minmax(0,1fr)}
.tcal-day,.tcal-empty-day{min-width:0;min-height:0;background:var(--tcal-paper)}
.tcal-empty-day{background:var(--tcal-alt)}
.tcal-day{display:flex;flex-direction:column;padding:6px;gap:4px;overflow:hidden}
.tcal-day.is-today{background:#fff5ce}
.tcal-day.is-today .tcal-day-heading{background:#f1cf68;border-radius:4px}
body.frost-dispatch .tcal-root .tcal-day-heading>button{width:100%;min-height:24px;padding:3px 4px;text-align:left;border:0;background:transparent}
.tcal-day-count{font-size:11px;color:var(--lux-muted,#665a45)}
.tcal-projects{display:flex;flex-direction:column;gap:4px;overflow:auto;min-height:0;overscroll-behavior:contain}
body.frost-dispatch .tcal-root .tcal-project-tag{display:flex;align-items:flex-start;justify-content:space-between;flex:none;gap:5px;width:100%;min-height:27px;text-align:left;padding:4px 5px;border-color:var(--tcal-line);background:var(--tcal-alt);line-height:1.35}
.tcal-project-tag>span{min-width:0;overflow-wrap:anywhere}
.tcal-project-tag>small{flex:none;min-width:17px;border-radius:3px;background:var(--tcal-head);text-align:center}
.tcal-empty{padding:8px 4px;text-align:center;color:var(--lux-muted,#665a45);font-size:12px}
.tcal-triptych{display:flex;flex:1;min-height:0;gap:8px;overflow-x:auto;overflow-y:hidden;overscroll-behavior:contain;padding-bottom:2px}
.tcal-day-panel{display:flex;flex:1 0 330px;flex-direction:column;min-width:330px;min-height:0;border:1px solid var(--tcal-line);border-radius:6px;overflow:hidden;background:var(--tcal-paper)}
.tcal-day-panel>header{display:flex;flex:none;align-items:center;justify-content:space-between;gap:4px;padding:6px 8px;background:var(--tcal-head);border-bottom:1px solid var(--tcal-line)}
.tcal-day-panel.is-today>header{background:#f1cf68}
.tcal-day-panel>header>div{display:flex;flex-direction:column;gap:2px}
.tcal-day-panel>header>div:last-child{align-items:flex-end}
.tcal-day-panel>header span,.tcal-day-panel>header small{font-size:11px}
body.frost-dispatch .tcal-root .tcal-day-panel>header button{min-height:22px;padding:1px 6px;font-size:11px}
.tcal-table-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
body.frost-dispatch .tcal-root table{width:100%;min-width:0;margin:0;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:13px;color:var(--lux-ink,#2b2318)}
.tcal-col-project{width:30%}.tcal-col-city{width:14%}.tcal-col-time{width:17%}.tcal-col-driver{width:19%}.tcal-col-receipt{width:20%}
body.frost-dispatch .tcal-root thead{position:sticky;top:0;z-index:2;background:var(--tcal-head)}
body.frost-dispatch .tcal-root th{position:static;padding:3px;vertical-align:top;border:0;border-bottom:1px solid var(--tcal-line);background:var(--tcal-head);white-space:normal}
body.frost-dispatch .tcal-root th>button{display:block;width:100%;min-height:32px;padding:3px 0;border:0;background:transparent;line-height:1.25;text-align:left;font-size:12px}
body.frost-dispatch .tcal-root th .tcal-match>input{font-size:12px;padding-left:4px;padding-right:21px}
body.frost-dispatch .tcal-root th .tcal-match>select{width:22px;min-width:22px}
body.frost-dispatch .tcal-root tbody tr:nth-child(odd){background:#fff}
body.frost-dispatch .tcal-root tbody tr:nth-child(even){background:var(--tcal-alt)}
body.frost-dispatch .tcal-root td{padding:8px 4px;border:0;border-bottom:1px solid var(--tcal-head);background:transparent;vertical-align:middle;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
body.frost-dispatch .tcal-root .tcal-row-project{padding:0;min-height:24px;border:0;background:transparent;text-align:left;color:var(--lux-primary,#582f0e);line-height:1.4;overflow-wrap:anywhere}
.tcal-time{font-variant-numeric:tabular-nums}
.tcal-receipt{display:inline-block;border-radius:5px;padding:1px 4px;font-size:11px;line-height:1.5}
.tcal-receipt.is-submitted{color:#08703e;background:#dff5e7;border:1px solid #92cfab}
.tcal-receipt.is-review{color:#854715;background:#fff0d6;border:1px solid #e8c392}
.tcal-receipt.is-missing{color:#536176;background:#f1f5f9;border:1px solid #ced6df}
@media(max-width:1100px){.tcal-search{grid-template-columns:repeat(3,minmax(0,1fr)) auto}.tcal-search-actions{grid-column:4;grid-row:1/3;align-self:end;flex-direction:column}.tcal-period-nav strong{font-size:12px}}
@media(max-width:600px){body.frost-dispatch.sheet-center.sheet-calendar-page main{padding:6px 8px max(4px,env(safe-area-inset-bottom))}.tcal-search{grid-template-columns:repeat(3,minmax(0,1fr))}.tcal-search-actions{grid-column:1/-1;grid-row:auto;flex-direction:row;justify-content:flex-end}.tcal-period-nav{width:100%;justify-content:space-between}.tcal-modes{width:100%}.tcal-modes>button{flex:1}.tcal-day-panel{flex-basis:330px}.tcal-day-panel>header strong{font-size:12px}}
