/* Dense, high-contrast annual matrix overrides. */
.calendar-scroll{height:calc(100vh - 270px);min-height:390px;overflow-x:auto;overflow-y:auto;margin-bottom:18px}
.page-heading{margin-bottom:10px}
.page-heading h1{font-size:1.42rem}
.subheading{margin-top:3px;font-size:.8rem}
.toolbar{padding:9px 12px}
.calendar-help{padding:6px 13px;min-height:31px}
.app-header{min-height:72px}
main{padding-top:14px;padding-bottom:28px}
.day-numbers{border-bottom:2px solid #9fb3c1}
.day-numbers div{border-right:2px solid #aabcc8}
.day-numbers div:first-child{border-right:3px solid #8fa5b4}
.month{border-bottom:3px solid #b7c7d2}
.month-label{border-right:3px solid #8fa5b4}
.day{border-right:2px solid #aabcc8}
.day-head{border-bottom:2px solid #aabcc8}
.month-body{border-bottom:1px solid #aabcc8}
.vacation-bar{height:var(--bar-height,max(1px,calc(var(--lane) - 1px)));min-height:1px;border-radius:1px}
.column-highlight{background-color:#dff1f0!important;box-shadow:inset 2px 0 #087f82,inset -2px 0 #087f82}
.day.column-highlight::before{content:"";position:absolute;inset:0;background:#087f8214;pointer-events:none;z-index:1}
.day-numbers [data-day].column-highlight{color:#075e61;background:#cde9e7!important}
.row-highlight{box-shadow:inset 0 0 0 3px #087f82}
.month.row-highlight .month-label{background:#dff1f0;color:#075e61}
.legend-item{grid-template-columns:31px minmax(0,1fr)}
.employee-sub{display:block;margin-top:4px;color:var(--muted);font-size:.72rem}
.without-day-head .day-head{display:none}
.without-day-head .bars{top:2px}
.without-day-head .day.holiday .day-head{display:block;position:absolute;bottom:0;left:1px;height:11px;line-height:11px;font-size:8px;border:0;padding:0 2px;background:#fff2d1;z-index:5}
.muted-month{opacity:.25;filter:grayscale(1)}
.muted-heading{color:#a6b1b9;background:#f0f2f4}
.day.muted-day::after{content:"";position:absolute;inset:0;background:rgba(239,242,245,.78);backdrop-filter:grayscale(1);pointer-events:none;z-index:8}
.day.muted-day.selected::after{background:rgba(210,231,231,.55);box-shadow:inset 0 0 0 2px #087f82}
.day-numbers [data-day],.month-label[role="button"]{cursor:pointer}
@media(max-width:850px){.calendar-scroll{height:600px;overflow:auto;margin-bottom:12px}}

/* Pappenheimer: compact branding, recognizable staff and an explicit crop preview. */
.brand-logo{width:38px;height:48px;object-fit:contain}
.brand-sub{letter-spacing:.12em}
.avatar{width:40px;height:40px;object-fit:cover;border-radius:8px;flex-shrink:0;border:1px solid #c5d2dc;background:#edf2f6}
.avatar-empty{display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;color:#456279}
.legend-item{grid-template-columns:40px minmax(0,1fr);gap:10px;min-height:62px}
.legend-name .swatch{width:17px;height:9px;margin-right:5px;vertical-align:middle}
.employee-identity{display:flex;align-items:center;gap:10px}
.employee-tools label input{width:94px;margin-left:8px}
.employee-photo-editor{padding:16px;margin:12px 0 20px;border:1px solid #c5d2dc;border-radius:9px;background:#f7fafc}
.photo-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.photo-heading h3{margin:0}.photo-heading .info{margin:5px 0 0}
.photo-current{width:64px;height:64px;object-fit:cover;border-radius:8px;border:1px solid #c5d2dc}
.photo-workspace{display:flex;align-items:center;justify-content:center;gap:24px;margin:12px 0}
.photo-workspace figure{margin:0;text-align:center;max-width:65%}
.photo-workspace figcaption{font-size:12px;color:#456279;margin-top:6px}
.photo-original{width:110px;height:140px;object-fit:contain;background:#e8edf1}
.photo-crop canvas{display:block;width:240px;height:auto;max-width:100%;border:2px solid #087f82;cursor:grab;touch-action:none;background:#fff}
.photo-crop canvas:active{cursor:grabbing}.photo-crop label{display:block}
.photo-crop input[type=range]{width:100%;padding:0;accent-color:#087f82}
.photo-crop .form-grid{margin:10px 0}.photo-status{min-height:18px}
@media print{.avatar{width:24px;height:24px}}
.planning-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 12px}.view-switch{display:flex;gap:4px;padding:4px;background:#e3eaf0;border-radius:8px}.planning-controls .info{margin:0}.planning-controls input{width:auto}
.period-panel{padding:0;overflow:hidden}.period-scroll{max-height:calc(100vh - 255px);overflow:auto;margin-bottom:20px}
.period-table{table-layout:fixed;width:100%;border-collapse:collapse;font-size:12px}.period-table th,.period-table td{padding:0;border:1.5px solid #9aafbf}.period-table thead{position:sticky;top:0;z-index:6;background:#eaf0f5}.period-table thead th:first-child{width:185px;padding:10px}.period-table thead button{width:100%;padding:8px 0;border:0;background:transparent;font-size:12px;min-width:0}.period-table small{display:block;font-size:10px;font-weight:400}.period-table tbody th{padding:7px;background:#f3f7fa;text-align:left}.period-table .employee-identity{gap:6px}.period-table .avatar{width:30px;height:30px}.period-table .swatch{width:12px;height:8px;margin-right:4px}
.period-table{display:table;height:auto}
.period-table td{position:relative;height:55px}.period-day{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;border-radius:0;color:#658395;background:transparent;font-size:12px}.period-entries{position:relative;z-index:1;pointer-events:none;display:flex;flex-direction:column;gap:3px;padding:4px 0}.period-entry{pointer-events:auto;display:block;width:100%;min-width:0;padding:5px 0;border:0;border-radius:1px;color:white;font-weight:700;font-size:11px;overflow:hidden;text-shadow:0 1px 2px #000;box-shadow:inset 0 0 0 1px #0002}.period-entry.requested{outline:1px dashed #173952;outline-offset:-2px}.period-entry small{display:inline;margin-left:7px}.period-weekend{background:#dce3e9!important}.period-holiday{background:#fff0bf!important}.period-selected{background:#aedbd7!important;box-shadow:inset 0 0 0 2px #087f82}.period-muted,.period-dimmed{opacity:.25;filter:grayscale(1)}
.balance-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}.balance-cards>div{padding:16px;background:#edf5f5;border:1px solid #c2d9d7;border-radius:8px;color:#42616d}.balance-cards strong{display:block;font-size:25px;color:#173952;margin-top:4px}.workweek{display:flex;flex-wrap:wrap;gap:12px}
.daily-section{border-top:1px solid var(--border);margin-top:22px;padding-top:18px}.daily-section h3{margin:0 0 8px;font-size:1rem}.daily-table{min-width:520px}.daily-table th,.daily-table td{padding:8px 10px;vertical-align:middle}.daily-table .employee-identity{gap:8px}.daily-table .avatar{width:30px;height:30px}.daily-table select{min-width:145px;padding:7px 8px;min-height:36px}.daily-table td:first-child{width:45%}.daily-table small{display:block;color:var(--muted);font-size:.7rem;margin-top:2px}.daily-section textarea{min-height:80px}
.calendar-scroll{height:calc(100vh - 322px)}
dialog:has(#daily-form){width: min(1280px,96vw);max-width:96vw}
.daily-columns{display:grid;grid-template-columns:minmax(300px,2fr) minmax(520px,3fr);gap:24px}
.daily-columns .daily-section{margin-top:0;padding-top:12px;min-width:0}
.daily-columns .daily-table{min-width:0;width:100%;table-layout:fixed}
.daily-columns .table-wrap{max-height:32vh;overflow:auto;margin-bottom:16px}
.daily-columns thead{position:sticky;top:0;background:#edf3f6;z-index:1}
.daily-columns select{width:100%;min-width:0}
.daily-columns .employee-identity span{overflow-wrap:anywhere}
.daily-columns .daily-table td:first-child{width:auto}
.daily-section .form-grid>label{display:block;font-size:.8rem;font-weight:600}
.daily-section textarea{display:block;width:100%;margin-top:7px;padding:10px;border:1px solid #c5d2dc;border-radius:6px;font:inherit;font-weight:400;resize:vertical;background:white}
#daily-date{max-width:220px}
dialog:has(#report-form){width:min(1120px,96vw);max-width:96vw}
.report-list{display:flex;flex-direction:column;gap:8px;max-height:58vh;overflow:auto}
.report-person{display:flex;align-items:center;gap:12px;text-align:left;white-space:normal;padding:12px}
.report-person small{display:block;color:var(--muted);margin-top:4px}
.report-person-row{display:flex;align-items:center;gap:10px;padding:14px 16px;border:1px solid #d1dfdf;border-radius:10px;background:#f8fbfb;min-height:70px}.report-person-row.report-person-muted{background:#eef1f2;color:#7a858b}.report-select{display:flex;align-items:center;gap:12px;flex:1;min-width:0;cursor:pointer}.report-select>span{display:flex;align-items:center;gap:12px;min-width:0}.report-select>span>span{min-width:0}.report-select input{accent-color:#087f82}.report-state{font-size:13px;color:#38576a;white-space:nowrap}.report-person-open{white-space:nowrap}.report-toolbar{display:flex;align-items:center;gap:18px;margin:10px 0 14px}.report-select-all{display:flex;align-items:center;gap:8px;margin:0}.report-print-people{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:260px;overflow:auto;padding:8px;border:1px solid #d1dfdf;border-radius:8px}.report-print-people .checkbox{display:flex;align-items:center;gap:6px;padding:5px}.print-export-area[hidden]{display:none}
#report-form fieldset{border:0;padding:0;margin:0;min-width:0}
.mood-choices{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}
.mood-choice{display:flex;flex-direction:column;gap:8px;align-items:center;min-width:120px}
.mood-choice>span{font-size:30px}.mood-choice.selected{border:2px solid #087f82;background:#e1f3ef}
.traffic-light.mood-1{color:#ba2439}.traffic-light.mood-3{color:#a37b00}.traffic-light.mood-5{color:#237945}
.report-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:18px}
.report-fields label,.report-notes,.observation-row label{display:block;font-size:14px;font-weight:600}
#report-form textarea{display:block;width:100%;margin-top:7px;padding:10px;border:1px solid #9aafbf;border-radius:6px;font:inherit;font-weight:400;resize:vertical}
.observation-row{display:grid;grid-template-columns:minmax(0,1fr) 160px auto;gap:12px;align-items:end;padding:10px 0;border-bottom:1px solid #c5d2dc}
.observation-row select{display:block;width:100%;margin-top:7px;padding:10px}
.markdown-tools{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.report-preview{margin-top:18px;border:1px solid #c5d2dc;border-radius:6px;padding:14px}
.markdown-preview{overflow-wrap:anywhere;line-height:1.6}.markdown-preview pre{white-space:pre-wrap;background:#edf2f6;padding:12px}.markdown-preview th,.markdown-preview td{border:1px solid #9aafbf;padding:8px}
#report-form .dialog-footer{position:sticky;bottom:-28px;background:white;padding:15px 0}
@media(max-width:750px){.report-fields,.report-list{grid-template-columns:1fr}.observation-row{grid-template-columns:1fr}.mood-choice{min-width:90px}}
#daily-form .dialog-footer{position:sticky;bottom:-24px;background:white;padding:14px 0}
@media(max-width:950px){.daily-columns{grid-template-columns:1fr}.daily-columns .table-wrap{max-height:35vh}}
@media(max-width:1150px){.period-table thead th:first-child{width:145px}.period-table .avatar{display:none}.planning-layout:has(.period-table){grid-template-columns:minmax(0,1fr)}.planning-layout:has(.period-table) .legend-panel{max-height:260px}.balance-cards{grid-template-columns:repeat(2,1fr)}}
/* Step 5: desktop print workbench, without changing other dialogs. */
#dialog:has(.print-workspace){width:min(1420px,96vw);max-width:96vw}.print-workspace{display:grid;grid-template-columns:330px minmax(0,1fr);gap:24px;align-items:start}.print-workspace .row{display:flex;gap:12px}.print-workspace .row>.field{flex:1;min-width:0}.print-check{display:flex;align-items:center;gap:8px;margin:12px 0}.print-block{display:grid;grid-template-columns:1fr 120px;align-items:center;gap:8px;margin:10px 0}.print-block label{font-size:13px}.print-block select{font-size:12px;padding:7px}.print-preview{position:sticky;top:0;background:#e4eaf0;padding:16px;border-radius:8px;min-height:320px}.print-preview>.actions{justify-content:center;margin-bottom:14px}.print-preview img{width:100%;height:auto;background:white;box-shadow:0 2px 8px #17395233}.print-workspace fieldset{border:1px solid #a8bac9;border-radius:6px;padding:12px}.print-workspace .info{font-size:12px}.print-workspace .actions{flex-wrap:wrap}@media(max-width:900px){.print-workspace{grid-template-columns:1fr}.print-preview{position:static}}
