/* R6. Only the editable Team planner uses this layout. Reports keep their original geometry. */
#planner-view .planner-fit-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:12px 0 8px;color:var(--pine-800);font-size:14px;font-weight:700}
#planner-view .planner-size-options{display:inline-flex;gap:2px;background:var(--pine-50);border:1px solid var(--line);padding:3px;border-radius:10px}
#planner-view .planner-size-options button{border:0;border-radius:7px;background:transparent;color:var(--pine-800);font:inherit;min-height:36px;line-height:1.3;padding:5px 15px;cursor:pointer}
#planner-view .planner-size-options button[aria-pressed=true]{background:var(--pine-800);color:#fff}
#planner-view .planner-size-options button:focus-visible,#planner-view .fit-day-head:focus-visible{outline:3px solid var(--pine-700);outline-offset:2px}
#planner-view[data-table-size=fit] .schedule-scroll-table{max-height:min(70vh,760px);max-width:100%;overscroll-behavior:contain;scrollbar-gutter:auto}
#planner-view[data-table-size=fit] .schedule.daily-grid{width:100%;min-width:0;table-layout:fixed;font-size:14px}
#planner-view[data-table-size=fit] .schedule .col-age{width:6%}#planner-view[data-table-size=fit] .schedule .col-product{width:21%}#planner-view[data-table-size=fit] .schedule .col-rate{width:12%}#planner-view[data-table-size=fit] .schedule .col-amount{width:12%}#planner-view[data-table-size=fit] .schedule .col-purpose{width:23%}#planner-view[data-table-size=fit] .schedule .col-water{width:6.5%}#planner-view[data-table-size=fit] .schedule .col-hours{width:5.5%}#planner-view[data-table-size=fit] .schedule .col-weight{width:8%}#planner-view[data-table-size=fit] .schedule .col-tools{width:6%}
#planner-view[data-table-size=fit] .schedule th,#planner-view[data-table-size=fit] .schedule td{padding:5px 4px;min-width:0;overflow-wrap:anywhere;line-height:1.35}
#planner-view[data-table-size=fit] .schedule tbody tr.day-start>td,#planner-view[data-table-size=fit] .schedule tbody tr.day-end>td{padding-block:5px}
#planner-view[data-table-size=fit] .schedule th{font-size:12px;padding-block:8px}
#planner-view[data-table-size=fit] .daily-product-control{display:flex;min-width:0;gap:3px;align-items:center}
#planner-view[data-table-size=fit] .schedule .day-product{flex:1;width:100%;min-width:0;max-width:100%;min-height:36px;height:auto;padding:5px 20px 5px 5px;font-size:14px;text-overflow:ellipsis}
#planner-view[data-table-size=fit] .schedule .cell-age-num{font-size:18px;line-height:1.2}#planner-view[data-table-size=fit] .schedule .cell-age-phase,#planner-view[data-table-size=fit] .schedule .age-date{font-size:11px;line-height:1.25}
#planner-view[data-table-size=fit] .schedule .rate-box,#planner-view[data-table-size=fit] .schedule .amount-tools{flex-wrap:wrap;gap:3px;min-width:0}
#planner-view[data-table-size=fit] .schedule .day-rate{min-width:0;width:5ch;min-height:32px;max-width:100%;padding:3px;font-size:14px}
#planner-view[data-table-size=fit] .schedule .amount-cell{min-width:0;gap:1px}
#planner-view[data-table-size=fit] .schedule .cell-tools{white-space:normal}#planner-view[data-table-size=fit] .schedule .icon-btn{min-width:28px;width:auto;min-height:28px;height:auto;margin:1px;padding:3px}
#planner-view[data-table-size=fit] .schedule .purpose-tools{display:none}
#planner-view[data-table-size=fit] .schedule .purpose-field:focus-within .purpose-tools{display:flex;flex-wrap:wrap;gap:2px;padding:2px}
#planner-view[data-table-size=fit] .schedule .purpose-tools button{min-height:28px;min-width:28px;padding:3px}
#planner-view[data-table-size=fit] .purpose-editor{min-height:34px!important;height:auto;max-height:none;padding:5px 8px;font-size:14px;line-height:1.5}
#planner-view[data-table-size=fit] .purpose-editor:empty:before{font-size:13px}#planner-view[data-table-size=fit] .schedule .merge-tag{margin:1px 0 3px;font-size:11px}
#planner-view[data-table-size=fit] .schedule-scroll-table:before{display:none}
#planner-view .fit-day-head{display:grid;grid-template-columns:38px minmax(0,1fr) max-content 12px;align-items:center;gap:10px;list-style:none;padding:8px 10px;cursor:pointer;min-height:48px}
#planner-view .fit-day-head::-webkit-details-marker{display:none}#planner-view .fit-age{display:grid;place-items:center;border-radius:7px;background:var(--pine-50);color:var(--pine-800);padding:3px;line-height:1.1}#planner-view .fit-age strong{font-size:17px;font-variant-numeric:tabular-nums}#planner-view .fit-age small,#planner-view .fit-day-head small{font-size:11px}
#planner-view .fit-day-copy{min-width:0;display:grid;line-height:1.4}#planner-view .fit-day-copy strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#planner-view .fit-day-head small{color:var(--ink-700)}#planner-view .fit-day-water{display:grid;text-align:right;font-size:13px;font-variant-numeric:tabular-nums;line-height:1.3}#planner-view .fit-chevron{width:7px;height:7px;transform:rotate(45deg);border:solid var(--pine-700);border-width:0 2px 2px 0}#planner-view details[open]>.fit-day-head .fit-chevron{transform:rotate(225deg)}
#planner-view .fit-day-body{padding:8px 12px 12px;border-top:1px solid var(--line-soft)}#planner-view .fit-day-meta,#planner-view .fit-purpose-label{font-size:12px;font-weight:600;color:var(--pine-800)}#planner-view .fit-day-body .day-card-item{min-width:0;margin:6px 0;padding:8px}#planner-view .fit-day-body .day-product{min-width:0;width:100%;font-size:16px;min-height:44px}#planner-view .fit-day-body .purpose-editor{font-size:16px;min-height:46px!important}#planner-view .fit-day-body .purpose-tools{flex-wrap:wrap}
@media(max-width:960px){
 #planner-view[data-table-size=fit] .schedule-scroll-table{display:none}#planner-view[data-table-size=fit] .day-cards{display:flex;gap:5px;min-width:0}#planner-view .day-cards .day-card{display:block;margin:0;padding:0;overflow:visible;min-width:0}#planner-view .day-cards .day-card[open]{border-color:var(--pine-700)}
 #planner-view[data-table-size=wide] .schedule-scroll-table{display:block;max-width:100%;overflow:auto}#planner-view[data-table-size=wide] .day-cards{display:none}#planner-view .planner-size-options button,#planner-view .fit-day-body .purpose-tools button,#planner-view .fit-day-body .icon-btn{min-height:44px}#planner-view .fit-day-body .purpose-tools button{min-width:38px}
}
@media(min-width:961px){#planner-view .day-cards{display:none}#planner-view .schedule-scroll-table{display:block}}
@media print{#planner-view .planner-fit-bar{display:none}}
