.edt-workspace{background:#fff;border:1px solid #dbe5e6;border-radius:20px;padding:22px;box-shadow:0 10px 35px #163b4308;margin-top:18px;color:#163b43}.edt-title{display:flex;align-items:center;justify-content:space-between;gap:20px}.edt-title h2{font-size:25px;letter-spacing:-.6px;margin:5px 0}.edt-title p{color:#62767b;font-size:13px}.edt-actions,.edt-controls,.edt-segments{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.edt-controls{justify-content:space-between;padding:18px 0;border-bottom:1px solid #e6eded;margin-bottom:16px}.edt-segments{border-radius:12px;padding:4px;background:#f1f6f6;width:fit-content}.edt-segments .button{border:0;box-shadow:none}.edt-summary{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin:18px 0;font-size:12px;color:#64777a}.edt-summary strong{font-size:21px;letter-spacing:-.6px;color:#163b43;margin-right:4px}.edt-summary small{margin-left:auto;max-width:240px}.edt-scroll{overflow:auto;max-height:75vh;border:1px solid #dce6e7;border-radius:12px;scrollbar-gutter:stable}.edt-grid{display:grid;grid-template-columns:64px repeat(var(--days),minmax(145px,1fr));min-width:calc(64px + var(--days)*145px);position:relative}.edt-corner,.edt-day-heading{position:sticky;top:0;z-index:4;background:#edf5f5;padding:12px;border-bottom:1px solid #dce6e7;font-size:12px;text-transform:capitalize;text-align:center}.edt-day-heading small{display:block;font-weight:400;color:#64777a;margin-top:5px}.edt-corner{left:0;z-index:5;font-size:10px;color:#64777a}.edt-times{position:sticky;left:0;z-index:3;background:#f8fafb;border-right:1px solid #dce6e7}.edt-times span{position:absolute;right:8px;font-size:11px;color:#62767b;transform:translateY(3px)}.edt-day-column{position:relative;border-right:1px solid #e2e9eb;background:repeating-linear-gradient(to bottom,#fff 0,#fff calc(calc(var(--step) * var(--minute-size)) - 1px),#e8eeee calc(calc(var(--step) * var(--minute-size)) - 1px),#e8eeee calc(var(--step) * var(--minute-size)));min-width:0}.edt-course{display:flex;flex-direction:column;gap:3px;background:var(--course,#e4f0ed);color:#173b43;border:1px solid #163b4318;border-left:3px solid #4e7a78;border-radius:7px;padding:8px;text-decoration:none;overflow:hidden;min-width:0;line-height:1.3}.edt-course:hover,.edt-course:focus-visible{outline:2px solid #326e79;outline-offset:1px;z-index:3}.edt-course b{font-size:10px;font-variant-numeric:tabular-nums}.edt-course strong{font-size:12px}.edt-course span,.edt-course small{font-size:11px}.edt-day-column>.edt-course{position:absolute;box-sizing:border-box}.edt-course.edt-cancelled{opacity:.65;background:repeating-linear-gradient(135deg,#f0f1f1,#f0f1f1 6px,#e6e9e9 6px,#e6e9e9 8px);border-left-color:#849297}.edt-course.edt-cancelled strong{text-decoration:line-through}.edt-course em{font-style:normal;font-size:10px;font-weight:700}.edt-matrix{width:100%;border-collapse:separate;border-spacing:0;min-width:1000px;table-layout:fixed}.edt-matrix caption{text-align:left;background:#f5f8f8;padding:12px;font-weight:600}.edt-matrix thead th{position:sticky;top:0;z-index:3;background:#edf5f5;text-transform:capitalize}.edt-matrix th,.edt-matrix td{padding:10px;border-right:1px solid #e3ebec;border-bottom:1px solid #e3ebec;vertical-align:top;text-align:left;font-size:12px}.edt-matrix th:first-child{position:sticky;left:0;background:#f5f9f8;width:145px;z-index:2}.edt-matrix thead th:first-child{z-index:4}.edt-matrix th:last-child{width:78px}.edt-matrix .edt-course{margin-bottom:7px}.edt-total{font-weight:700;white-space:nowrap}.edt-free{color:#9babad}.edt-footnote{font-size:11px;color:#6d8084;margin:16px 0 0}.edt-empty{background:linear-gradient(120deg,#edf5f1,#edf5fc);border-radius:12px;padding:20px;margin:18px 0}.edt-empty p{font-size:13px;color:#587175}.edt-empty .button{margin:5px 5px 0 0}.edt-cards{display:grid;grid-template-columns:repeat(var(--days),minmax(130px,1fr));overflow:auto;gap:10px}.edt-cards section{background:#f5f8f8;padding:10px;border-radius:10px}.edt-cards h3{font-size:12px;text-transform:capitalize}.edt-cards .edt-course{margin-bottom:9px}.edt-compact .edt-course{padding:4px;gap:1px}.edt-compact .edt-matrix th,.edt-compact .edt-matrix td{padding:6px}.edt-settings label{display:flex;flex-direction:column;gap:6px;font-size:13px}.edt-settings input,.edt-settings select{border:1px solid #cbd9dc;border-radius:8px;padding:10px}.edt-settings-days{display:flex;gap:15px;flex-wrap:wrap;border:1px solid #dbe5e6;border-radius:10px;padding:14px;margin-bottom:20px}.edt-settings-days legend{font-weight:600}.edt-settings-checks{display:grid;gap:12px;margin-top:18px}.edt-expanded{position:fixed;inset:0;z-index:80;overflow:auto;background:#f4f7f7;padding:20px}.edt-expanded .edt-scroll{max-height:72vh}@media(max-width:760px){.edt-workspace{padding:12px;border-radius:12px}.edt-title{display:block}.edt-title h2{font-size:20px}.edt-summary{gap:14px}.edt-summary small{margin-left:0;max-width:none}.edt-title .edt-actions{margin-top:12px}.edt-controls{gap:12px}.edt-actions .button{font-size:11px}.edt-cards{grid-template-columns:repeat(var(--days),180px)}.edt-expanded{padding:8px}}
@media print{@page{size:landscape;margin:10mm}body:has(.edt-workspace) .sidebar,body:has(.edt-workspace) .topbar,body:has(.edt-workspace) .planning-filters,body:has(.edt-workspace) .planning-tabs,body:has(.edt-workspace) .page-heading,body:has(.edt-workspace) .edt-controls,body:has(.edt-workspace) .edt-actions,body:has(.edt-workspace) .edt-segments,body:has(.edt-workspace) .edt-empty,body:has(.edt-workspace) .toast,body:has(.edt-workspace) .info-strip{display:none!important}body:has(.edt-workspace) .body-area{margin:0!important;width:100%!important}body:has(.edt-workspace) .page{padding:0!important}.edt-workspace{padding:0;border:0;box-shadow:none;margin:0}.edt-expanded{position:static;padding:0;overflow:visible}.edt-scroll{overflow:visible;max-height:none;border:0}.edt-grid{--minute-size:.55px!important;min-width:0;grid-template-columns:40px repeat(var(--days),minmax(0,1fr))}.edt-matrix{min-width:0;table-layout:fixed}.edt-matrix th:first-child{width:100px}.edt-matrix th:last-child{width:55px}.edt-matrix th,.edt-matrix td{padding:4px}.edt-matrix tr{break-inside:avoid}.edt-times,.edt-matrix th,.edt-corner,.edt-day-heading{position:static!important}.edt-times span{font-size:9px}.edt-title h2{font-size:20px}.edt-course{-webkit-print-color-adjust:exact;print-color-adjust:exact;box-shadow:none}.edt-course strong,.edt-course span,.edt-course small{font-size:9px}.edt-course b{font-size:8px}.edt-footnote{font-size:9px}.edt-cards{overflow:visible;grid-template-columns:repeat(var(--days),minmax(0,1fr))}}

/* Keep native iOS date controls inside the planning filter panel. */
.planning-filters>.compact-filter{min-width:0}
.planning-filters .compact-filter input,.planning-filters .compact-filter select{box-sizing:border-box;max-width:100%;min-width:0}
.planning-filters input[type=date]{display:block;inline-size:100%;min-inline-size:0;max-inline-size:100%;-webkit-appearance:none;appearance:none}
.planning-filters input[type=date]::-webkit-date-and-time-value{min-width:0;text-align:left}
@media(max-width:600px){
.planning-filters{display:grid;grid-template-columns:minmax(0,1fr);width:100%;box-sizing:border-box}
.planning-filters>.compact-filter,.planning-filters>.planning-resource-filter{width:100%;max-width:none;min-width:0!important}
.planning-filters>.button{width:100%;justify-content:center}
}

.hr-time-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;padding:16px}.hr-time-filters .field{min-width:0}.hr-time-filters input,.hr-time-filters select{max-width:100%;min-width:0;box-sizing:border-box}.hr-time-table{width:100%;border-collapse:collapse}.hr-time-table td,.hr-time-table th{padding:12px;border-bottom:1px solid #dbe5ec;text-align:left;font-size:12px}.hr-month-table{min-width:1900px}.hr-month-table th:first-child{position:sticky;left:0;background:#f5faff;z-index:1;min-width:160px}.hr-time-workspace .info-strip{margin-bottom:18px;display:flex;gap:12px;flex-wrap:wrap;align-items:center}.hr-time-workspace .panel{margin-bottom:20px}.hr-history{margin-top:18px}.hr-history small{overflow-wrap:anywhere}@media(max-width:600px){.hr-time-filters{grid-template-columns:minmax(0,1fr)}.hr-time-filters .button{width:100%}.hr-time-workspace{min-width:0}.hr-time-table td,.hr-time-table th{padding:9px}.hr-time-filters input[type=date],.hr-time-filters input[type=month]{appearance:none;inline-size:100%}}@media print{body:has(.hr-time-workspace) .sidebar,body:has(.hr-time-workspace) .topbar,body:has(.hr-time-workspace) .workflow-tabs,.hr-time-filters,.hr-time-workspace .info-strip,.hr-time-workspace .button{display:none!important}.hr-time-workspace .hr-month-table .button{display:inline!important;border:0;padding:0;background:none}.hr-time-workspace .table-scroll{overflow:visible}.hr-month-table{min-width:0}.hr-time-table td,.hr-time-table th{font-size:7px;padding:3px}.hr-month-table th:first-child{position:static;min-width:0}body:has(.hr-time-workspace) .body-area{margin:0!important}.hr-time-workspace .panel{box-shadow:none;break-inside:auto}}

/* RH direction : responsive controls and readable operational tables. */
.hr-management {min-width:0;max-width:100%}.hr-management .workflow-filter-form{display:flex;flex-wrap:wrap;align-items:end;gap:1rem}.hr-management .workflow-filter-form>*{min-width:0;flex:1 1 200px}.hr-management input,.hr-management select,.hr-management textarea{box-sizing:border-box;min-width:0;max-width:100%;width:100%}.hr-management .table-scroll{max-width:100%;overflow:auto}.hr-management-table th,.hr-management-table td{vertical-align:top}.hr-management-table td .button{margin:2px}.hr-management details{margin-top:1rem}.hr-management .rh-shortcuts{margin-bottom:1rem}.hr-management .toolbar{flex-wrap:wrap}.hr-management .info-strip{white-space:normal}.rh-shortcuts{flex-wrap:wrap}.rh-shortcuts a{white-space:normal;text-align:center}
@media(max-width:640px){.hr-management .workflow-filter-form{display:grid;grid-template-columns:minmax(0,1fr)}.hr-management .rh-counters{grid-template-columns:minmax(0,1fr)}.hr-management .rh-shortcuts{display:grid;grid-template-columns:minmax(0,1fr)}.hr-management-table{min-width:650px}.rh-shortcuts .button{max-width:100%;box-sizing:border-box}}
@media print{.hr-management .workflow-filter-form,.hr-management .button,.hr-management .info-strip{display:none}.hr-management .table-scroll{overflow:visible}.hr-management-table{font-size:9pt} .hr-management details{display:none}}

/* RH audit: every section remains visible and date inputs stay within their card. */
.workflow-tabs[aria-label="Ressources humaines"]{flex-wrap:wrap;overflow:visible;gap:4px 12px}
.workflow-tabs[aria-label="Ressources humaines"] .tab{white-space:normal;padding:10px 8px}
.hr-management input,.hr-time-workspace input,.hr-management select,.hr-time-workspace select{box-sizing:border-box;min-width:0;max-width:100%;width:100%}
.hr-management .workflow-filter-form>*,.hr-time-workspace .workflow-filter-form>*{min-width:0}
@media(max-width:640px){.workflow-tabs[aria-label="Ressources humaines"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.workflow-tabs[aria-label="Ressources humaines"] .tab{font-size:.85rem}.hr-management .rh-shortcuts{display:grid;grid-template-columns:minmax(0,1fr)}}
