/* Compact planning workspace. Legacy detail views keep their base styles. */
:root{--ink:#20262b;--muted:#606970;--blue:#075c93;--selection:#d5eafa;font-size:14px}
button,input,select{min-height:36px}button{padding:6px 11px}small{font-size:13px}input::placeholder,textarea::placeholder{color:#737e86}.muted{color:var(--muted)}.topbar{height:56px;padding:0 20px;gap:22px;flex:none}.brand{gap:16px;flex:none}.brand img{width:105px}.brand span{font-size:14px;padding-left:16px}.topbar nav{align-self:stretch;gap:4px;overflow:visible}.topbar nav button{min-height:0;padding:0 12px;border-bottom:2px solid transparent}.topbar nav button:first-child{margin-left:0}.topbar nav button.active{border-color:var(--ink);color:var(--ink);background:#f4f6f7}.source-link{margin-left:auto;font-size:13px}.avatar{width:32px;min-height:32px;font-size:13px;flex:none}main{margin:12px 16px 0;padding:14px 16px;min-height:calc(100dvh - 110px)}
.workspace-head{display:flex;align-items:center;gap:14px;margin-bottom:12px}.workspace-head h1{font-size:21px;margin-right:4px}.month-control{gap:2px}.month-control input{width:173px;padding:5px;font-size:16px}.month-count{font-size:13px;color:var(--muted);white-space:nowrap}.export-actions{display:flex;gap:6px;margin-left:auto}.export-actions button{font-size:13px}.toolbar{gap:8px;margin-bottom:12px}.toolbar select{max-width:225px}.toolbar .search{max-width:265px;width:230px}.segments{padding:2px;border-radius:5px}.segments button{font-size:14px;padding:4px 10px}.footer{height:32px;padding:0 20px;font-size:12px;flex:none}.footer>span{gap:12px}.footer button{font-size:12px;min-height:28px;padding:3px 6px}.heading{margin-bottom:16px}.eyebrow{display:none}.subtitle{font-size:14px}.section-head{margin:12px 0 0}.section-head small{font-size:13px}
.calendar-view{height:100dvh;display:flex;flex-direction:column;overflow:hidden}.calendar-view main{flex:1;min-height:0;display:flex;flex-direction:column}.calendar-view #results{flex:1;min-height:0}.calendar-scroll{height:100%;overscroll-behavior:contain}.schedule{height:100%;min-width:980px;font-size:14px}.schedule .person-col{width:272px}.schedule .day-col{width:auto}.schedule .total-col{width:38px}.schedule thead th{height:39px;background:#f1f3f5;font-size:12px;padding:2px 0;border-bottom:1px solid #c4cdd4}.schedule .person{padding:0 9px;white-space:nowrap;overflow:hidden;border-right:1px solid #cbd2d8}.schedule thead .person{background:#f1f3f5;font-size:13px}.schedule .person b{display:inline-block;font-size:14px;max-width:68%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.schedule .person small{display:inline-block;max-width:32%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;float:right;line-height:26px;font-size:12px;margin:0}.mine-person{font-size:11px;margin-left:3px}.schedule tbody th,.schedule tbody td{height:26px;min-height:26px;border-bottom:1px solid #e4e8eb}.schedule td{padding:0;border-right:1px solid #ebeff2}.schedule tr.region-start:not(:first-child)>*{border-top:1px solid #c8d0d6}.schedule .daynum{font-size:14px;color:#222b33}.schedule .weekday{font-size:11px;color:#626e78}.schedule .weekend{background:#eef1f4}.schedule .today{background:#e4eef6}.schedule .blank button{height:100%;min-height:25px;font-size:17px;touch-action:pan-y}.schedule .blank button:hover,.schedule .blank button:focus-visible{background:#d5eafa;color:#075c93}.schedule .blank button:focus-visible{outline-offset:-2px}.schedule .selected-day{background:#b7d9f1!important;box-shadow:inset 0 2px #075c93,inset 0 -2px #075c93}.schedule .selected-day button{color:#075c93}.schedule .event-cell{padding:2px 1px}.event-bar{height:100%;min-height:23px;max-height:34px;padding:2px 6px;border-color:#105d8c;color:#fff;background:#176c9f;font-size:13px;border-radius:3px}.event-bar:hover{background:#0b527f;color:#fff}.event-bar.vacation{background:#e4cf9f;border-color:#b5985c;color:#493711}.event-bar.office{background:#dce2e7;border-color:#a5b3be;color:#35444f}.event-bar.remote{background:#cee5d8;border-color:#7eae94;color:#214f37}.event-bar.draft{background:repeating-linear-gradient(135deg,#fff,#fff 5px,#edf1f5 5px,#edf1f5 8px);border:1px dashed #596f7d;color:#334b5a}.schedule td.total{font-size:13px;background:#f7f8f9}.selection-bar{height:42px;min-height:42px;display:flex;align-items:center;gap:12px;font-size:13px;padding-top:6px}.selection-bar>.primary{margin-left:auto;min-height:32px;font-size:13px}.legend{margin:0;gap:14px;font-size:12px}.swatch{width:12px;height:10px;background:#176c9f;border-color:#105d8c}.swatch.vacation{background:#e4cf9f;border-color:#b5985c}.swatch.office{background:#dce2e7;border-color:#a5b3be}.swatch.remote{background:#cee5d8;border-color:#7eae94}.selection-help{margin-left:auto;color:var(--muted);font-size:12px}
.data-table{font-size:14px}.data-table th{font-size:13px;padding:9px 12px}.data-table td{padding:10px 12px}.data-table small{font-size:13px;margin-top:3px}.badge{font-size:12px}.summary-note,.report-intro{font-size:14px;margin:12px 0;max-width:1000px;color:var(--muted)}.report-wrap{border:1px solid var(--line)}.report-table{min-width:1400px}.report-table th{font-size:12px}.report-table td{padding:8px;font-size:13px}.signature-preview{max-width:820px;padding:24px 0}.signature-preview p{display:flex;gap:24px;align-items:end;margin:24px 0}.signature-preview p>span:first-child{flex:1}.signature-preview b{font-weight:400;min-width:115px}.signature-line{width:160px;border-bottom:1px solid var(--ink);height:25px}.empty{padding:35px 20px}.empty p{font-size:14px}.note,.form-error{font-size:14px}
dialog{max-width:640px;max-height:94dvh;border-radius:8px}.dialog-head{padding:14px 18px}.dialog-head h2{font-size:19px}.dialog-body{padding:16px 18px}.dialog-foot{padding:12px 18px;gap:8px}.form-grid{gap:12px}.form-field{font-size:14px;gap:5px;min-width:0}.form-section{padding-top:12px;margin-top:12px}.form-section h3{margin-bottom:8px}.form-field textarea{min-height:60px}.check-group{gap:8px}.check-group label{padding:6px 9px}.stop-row{grid-template-columns:1fr 1.5fr 30px;gap:8px;margin-bottom:10px}.stop-row .icon-button{width:30px;min-height:36px}.form-meta,.route-caption{font-size:13px}.discard-warning{margin:0 0 14px!important}.discard-warning p{margin-bottom:8px}
@media(max-width:1200px){.brand span{display:none}.topbar{gap:16px}.workspace-head{gap:8px}.month-count{display:none}.workspace-head h1{font-size:19px}.schedule .person-col{width:240px}.toolbar .search{width:200px}.source-link{font-size:12px}.selection-help{max-width:280px;text-align:right}}
@media(max-width:800px){.topbar{height:auto;min-height:52px;padding:0 12px;gap:12px;flex-wrap:wrap}.brand{height:48px}.brand img{width:92px}.avatar{margin-left:auto}.source-link{display:none}.topbar nav{order:5;width:100%;height:40px;justify-content:space-between;gap:0;display:flex}.topbar nav button{flex:1;font-size:14px;padding:0 8px;margin:0;min-height:0}main{margin:8px 8px 0;padding:12px;min-height:calc(100dvh - 130px)}.workspace-head{flex-wrap:wrap;gap:8px;margin-bottom:10px}.workspace-head h1{font-size:19px;flex:1}.month-control input{width:158px;font-size:15px}.export-actions{margin-left:0}.export-actions button{font-size:13px;min-height:36px}.add-main{margin-left:auto;min-height:36px}.toolbar{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:10px}.toolbar select{flex:1;min-width:0;max-width:none;width:45%;font-size:14px}.toolbar .segments{order:3}.toolbar .search{flex:1;max-width:none;width:140px;min-width:110px;order:4;margin-left:auto}.toolbar>.text-button{order:5}.schedule{min-width:1120px}.schedule .person-col{width:210px}.schedule .person small{display:none}.schedule .person b{max-width:100%;font-size:14px}.selection-help{display:none}.legend{gap:9px;font-size:11px}.selection-bar{min-height:45px;height:auto;flex-wrap:wrap;gap:6px;font-size:12px}.selection-bar>.primary{font-size:12px}.footer{font-size:11px;padding:0 12px;display:flex}.footer>span:first-child{display:none}.footer>span{width:100%;justify-content:space-between;gap:4px;display:flex}.calendar-view .footer{height:28px}.trip-list-table{display:none}.mobile-records{display:block}.trip-card{border-left:3px solid #176c9f;margin:0 0 10px;padding:13px}.trip-card-top{font-size:13px;margin-bottom:9px}.trip-card h3{font-size:18px}.trip-card p{font-size:14px}.trip-card-bottom small{font-size:12px}.team-table{min-width:730px}.heading{align-items:flex-start;flex-wrap:wrap}.signature-preview p{font-size:12px;gap:12px}.signature-line{width:80px}.signature-preview b{min-width:90px}.report-intro,.summary-note{font-size:13px}.section-head small{font-size:12px;max-width:none;text-align:left}}
@media(max-width:450px){.workspace-head h1{font-size:18px}.month-control{gap:0}.month-control input{width:142px;font-size:14px}.month-control .icon-button{width:27px;min-height:32px}.export-actions button{padding:6px 9px}.export-actions svg{display:none}.toolbar .segments button{padding:4px 8px;font-size:13px}.toolbar .search{font-size:13px}.dialog-head,.dialog-body{padding:12px 14px}.dialog-foot{padding:10px 14px;gap:6px;flex-wrap:wrap}.form-grid{gap:10px}.stop-row{grid-template-columns:1fr 32px}.stop-row .form-field:first-child{grid-column:1/-1}.check-group{gap:6px}.check-group label{font-size:13px;padding:6px}.selection-bar>span{width:100%}.selection-bar>.primary{margin-left:0}.legend{line-height:1.1}.legend span{font-size:11px}.legend .swatch{width:9px}.footer button{font-size:11px}.footer{font-size:10px}}
@media(min-width:801px){.topbar{height:48px}main{margin-top:8px;padding:10px 16px}.workspace-head{margin-bottom:8px}.toolbar{margin-bottom:8px}.footer{height:24px}.footer button{min-height:22px}.selection-bar{height:36px;min-height:36px}.schedule thead th{height:36px}}
.schedule tbody th,.schedule tbody td{height:23px;min-height:23px}.schedule .person small{line-height:20px}.schedule .blank button{min-height:22px}.schedule .event-bar{min-height:21px}
/* Keep row content inside its compact line box, including invisible add marks. */
.schedule .person{line-height:20px}.schedule .blank button{line-height:18px;min-height:21px;font-size:16px}.schedule .daynum{line-height:18px}.schedule .weekday{display:block;line-height:12px}.schedule .event-bar{line-height:17px;padding:1px 6px;min-height:21px}.schedule .event-cell{padding:1px}
@media(min-width:801px){.workspace-head{margin-bottom:6px}.toolbar{margin-bottom:5px}.selection-bar{height:33px;min-height:33px}.footer{height:22px}}
@media(max-width:800px){.toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.toolbar select{width:100%;max-width:100%;font-size:14px;grid-row:1}.toolbar #region-filter{grid-column:1}.toolbar #employee-filter{grid-column:2}.toolbar .segments{grid-column:1;grid-row:2;width:100%;order:initial}.toolbar .segments button{flex:1;min-width:0;padding:4px 6px;font-size:13px}.toolbar .search{grid-column:2;grid-row:2;order:initial;width:100%;min-width:0;max-width:100%;margin:0}.toolbar>.text-button{grid-column:1/-1}.toolbar:has([data-action="profile"])>.text-button{grid-row:1}}
