.local-dialog-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.local-dialog-actions button { padding:9px 14px; border:1px solid #a9bfd2; border-radius:6px; background:white; color:#102b46; font:inherit; cursor:pointer; }
.local-dialog-actions button:focus-visible { outline:3px solid #f3c54a; outline-offset:3px; }
.local-notice { margin:0; padding:12px 24px; background:#fff5d7; color:#563a00; font:14px system-ui,sans-serif; }
.local-notice[data-error="true"] { background:#ffebe9; color:#8b2118; }
dialog { max-width:540px; padding:24px; border:1px solid #a9bfd2; border-radius:10px; font:16px/1.5 system-ui,sans-serif; color:#102b46; }
dialog::backdrop { background:#102b4680; }
dialog h2 { margin-top:0; }
/* Shared calendar shell in both views. */
.grid-wrapper.optimization-grid-wrapper { margin-top:0; border:1px solid var(--grid-border-color); border-radius:20px; background:linear-gradient(145deg,#eef2ff 0%,#f8fafc 45%,#fff 100%); box-shadow:0 18px 36px rgba(15,23,42,.18),inset 0 1px 0 rgba(255,255,255,.72); padding:8px 12px 12px; }
.calendar-grid.optimization-grid { min-width:0; padding:0; gap:0; }
.scenario-button-row { align-items:center; }
.publication-switch-wrapper { flex-direction:row; align-items:center; gap:8px; }
.replacement-select.is-invalid { border:2px solid #b91c1c; background:#fff1f2; color:#991b1b; }
.optimization-shift-picker { position:fixed; bottom:20px; left:50%; transform:translateX(-50%); width:max-content; max-width:calc(100vw - 24px); flex-wrap:wrap; padding:14px; border:2px solid #334155; border-radius:14px; background:#fff; box-shadow:0 12px 40px #0f172a55; z-index:10000; }
.optimization-shift-picker strong { flex-basis:100%; text-align:center; font-size:13px; }

.replacement-inline-error { margin:6px 0; color:#991b1b; font-size:12px; line-height:1.4; max-width:360px; text-align:left; }
.replacement-select { max-width:360px; }

/* Densité compacte par défaut sur ordinateur, ajustable sans toucher aux données. */
html { zoom: var(--display-zoom, 1); scroll-behavior: smooth; scroll-padding-bottom: 150px; }
.density-control { display: flex; align-items: center; gap: 8px; color: inherit; white-space: nowrap; }
.density-control select { border: 1px solid #7895b1; background: #193c5b; color: #fff; border-radius: 6px; padding: 8px; font: inherit; }
.optimization-scenario { padding-bottom: 150px; }
.management-review { margin: 24px 0 0; border: 1px solid #c9d3df; border-radius: 16px; background: #fff; color: #182f49; overflow: hidden; box-shadow: 0 8px 28px #122a4110; scroll-margin-top: 24px; }
.review-header { padding: 24px 26px 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; background: #f6f8fb; }
.review-header h2 { font-size: 26px; letter-spacing: -.03em; margin: 0 0 8px; }
.review-header a { color: #1d577b; font-size: 13px; white-space: nowrap; padding: 10px 0; }
.review-filters { padding: 20px 26px 0; display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.review-filters label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 600; color: #42586e; }
.review-search { flex: 1; min-width: 220px; }
.review-filters input, .review-filters select { font-family: inherit; font-size: 14px; color: #182f49; border: 1px solid #acbdce; background: #fff; padding: 10px 12px; border-radius: 7px; min-height: 40px; }
.management-review button { font-family: inherit; cursor: pointer; }
.review-selected-date { border: 1px solid #a8bbce; border-radius: 7px; padding: 10px; background: #f4f7fa; color: #234a70; }
.review-selected-date[aria-pressed="true"] { background: #dfebff; border-color: #2f65af; }
.review-counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 20px 26px 8px; }
.review-counter { display: flex; align-items: baseline; gap: 12px; border: 1px solid #d5dfe9; border-radius: 10px; padding: 14px 18px; background: #fff; text-align: left; color: #37506b; }
.review-counter strong { font-size: 25px; font-weight: 700; }
.review-counter span { font-size: 13px; }
.review-counter[aria-pressed="true"] { background: #edf3fb; border-color: #356da7; box-shadow: inset 0 0 0 1px #356da7; }
.review-counter.is-error strong { color: #a12b30; }
.review-counter.is-pending strong { color: #8d5a11; }
.review-counter.is-clear strong { color: #236752; }
.review-result-count { margin: 0; padding: 12px 26px 18px; color: #536980; font-size: 12px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.review-result-count button { border: none; padding: 0; background: none; text-decoration: underline; color: #a12b30; font: inherit; }
.review-days { display: grid; gap: 18px; padding: 0 26px 24px; }
.review-day { background: #f3f6fa; border: 1px solid #d4dfe9; border-radius: 12px; padding: 12px; }
.review-day > summary, .review-entry > summary { cursor: pointer; color: #2c4964; font-weight: 700; }
.review-day[open] > summary { margin-bottom: 10px; }
.review-entry { background: #fff; border: 1px solid #dce5ee; border-radius: 8px; }
.review-entry + .review-entry { margin-top: 8px; }
.review-entry > summary { padding: 9px 12px; font-size: 13px; overflow-wrap: anywhere; }
.review-entry > summary .review-status { margin-left: 10px; }
.review-entry .review-row { border: 0; border-top: 1px solid #e5edf4; border-radius: 0 0 8px 8px; }
.review-live-note { margin: 4px 0 0; font-size: 13px; color: #536980; }
.review-row { display: grid; grid-template-columns: max-content repeat(2, minmax(0, 1fr)) minmax(8rem, 1fr) auto; gap: 12px; align-items: start; background: #fff; border: 1px solid #dce5ee; border-radius: 8px; padding: 12px; font-size: 13px; }
.review-row + .review-row { margin-top: 8px; }
.review-card-shift { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.review-field-label { display: block; color: #536980; font-size: 11px; font-weight: 700; margin-bottom: 4px; }
.review-absence-type { display: block; margin-top: 4px; color: #536980; }
.review-row .replacement-select { width: 100%; min-width: 0; margin-top: 6px; font-size: 13px; }
.review-feedback summary { cursor: pointer; margin-top: 6px; }
.review-row.is-error, .review-row.is-pending { box-shadow: inset 3px 0 #b85a36; }
.review-feedback { margin-top: 10px; }
.review-status { display: inline-block; padding: 3px 8px; border-radius: 5px; font-size: 11px; font-weight: 700; color: #43586e; background: #eef2f6; }
.review-status.is-pending { background: #fff0d5; color: #84550c; }
.review-status.is-error { background: #fde8e7; color: #982c32; }
.review-status.is-clear { background: #e3f2eb; color: #21634e; }
.review-feedback ul { padding-left: 16px; margin: 10px 0 0; }
.review-feedback li { padding: 0 0 10px; color: #96343a; }
.review-feedback li strong { font-size: 12px; font-weight: 600; }
.review-feedback li span { display: block; color: #53667a; margin-top: 4px; font-size: 12px; }
.review-feedback p { font-size: 12px; color: #5a6f82; margin: 8px 0; }
.review-card-actions button, .review-empty button { display: block; border: 1px solid #c1cedc; background: #f8fafc; color: #285274; border-radius: 6px; font-size: 12px; padding: 8px 10px; margin-bottom: 8px; }
.review-footer { padding: 18px 26px; color: #536980; font-size: 12px; line-height: 1.7; background: #fafbfd; }
.review-footer > p { margin-top: 0; }
.review-leave summary { cursor: pointer; font-weight: 600; color: #2c4964; }
.review-leave-banner { background: #f0f7f4; border: 1px solid #bad8cb; border-radius: 12px; color: #264b3e; padding: 14px 18px; margin-top: 14px; }
.review-leave-banner summary span { display: inline-block; margin-left: 12px; font-size: 13px; }
.review-leave ul { list-style: none; padding: 0; margin-bottom: 0; }
.review-leave li { padding: 8px 0; border-bottom: 1px solid #cce3d9; }
.review-leave li:last-child { border-bottom: 0; }
.review-empty { padding: 32px !important; text-align: center; color: #5a6f82; }
.review-empty button { margin: 12px auto 0; }
.management-review :is(button, a, select, input):focus-visible { outline: 3px solid #346ea6; outline-offset: 3px; }
@media (max-width: 800px) {
  .review-header { flex-direction: column; gap: 8px; padding: 18px; }
  .review-header h2 { font-size: 23px; }
  .review-filters { padding: 16px 18px 0; align-items: stretch; flex-direction: column; }
  .review-counters { padding: 16px 18px 8px; grid-template-columns: repeat(2, 1fr); }
  .review-days, .review-result-count, .review-footer { padding-left: 18px; padding-right: 18px; }
  .review-row { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}
@media print { html { zoom: 1; } .density-control, .review-filters, .review-counters { display: none; } }

.version-controls, .planning-tab-export-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.version-button { border: 1px solid #a8bbce; border-radius: 8px; padding: 8px 10px; background: #fff; color: #234a70; font: inherit; font-size: 13px; }
.version-button.is-primary { background: #214f79; color: #fff; border-color: #214f79; }
.version-button:disabled { opacity: .55; }
.version-error { color: #9d2330; background: #fff1f2; border-radius: 8px; margin: 0; padding: 8px 12px; }
.version-draft-label { color: #234a70; background: #e7f0f9; border-radius: 6px; padding: 5px 8px; font-size: 12px; font-weight: 700; }
.toolbar-leave-hint { margin: 0; padding: 6px 10px; font-size: 13px; color: #234a70; background: #e7f0f9; border-radius: 6px; }
.version-dialog { width: min(680px, calc(100% - 32px)); max-width: none; box-sizing: border-box; padding: 0; overflow: auto; border: 1px solid #b9ccdf; border-radius: 18px; color: #15314d; box-shadow: 0 24px 80px #102b4655; }
.version-dialog-header { padding: 23px 26px 20px; border-bottom: 1px solid #d9e5f0; background: #eef5fc; }
.version-dialog-header h2 { margin: 4px 0 6px; font-size: 26px; line-height: 1.2; }
.version-dialog-header p { margin: 0; color: #44617e; font-size: 14px; }
.version-dialog-planning { font-weight: 700; color: #315d87; font-size: 13px; }
.version-dialog-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(235px, 100%), 1fr)); gap: 14px; padding: 20px 26px; }
.version-dialog-slot { display: flex; flex-direction: column; gap: 15px; min-height: 190px; padding: 16px; border-radius: 13px; border: 1px solid #c9d9e9; background: #f9fbfd; }
.version-dialog-slot.is-current { border-color: #4582bc; background: #f1f7fe; box-shadow: inset 0 3px 0 #4582bc; }
.version-slot-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.version-slot-heading h3 { margin: 0; font-size: 19px; overflow-wrap: anywhere; min-width: 0; }
.version-slot-heading span { background: #e0edf8; color: #2a567b; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.version-slot-data { display: grid; gap: 6px; margin: 0; font-size: 13px; }
.version-slot-data > div { display: flex; justify-content: space-between; gap: 8px; }
.version-slot-data dt, .version-slot-empty { color: #536980; }
.version-slot-data dd { margin: 0; text-align: right; font-weight: 650; }
.version-slot-empty { margin: 0; font-size: 13px; }
.version-dialog-slot button { margin-top: auto; width: 100%; }
.version-slot-heading .version-slot-indicator { display: inline-flex; flex: none; align-items: center; gap: 6px; }
.version-slot-indicator::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #d64550; box-shadow: 0 0 0 2px #f4cbd0; }
.version-dialog-slot.is-current .version-slot-indicator::before { background: #15834b; box-shadow: 0 0 0 2px #c5ebd3; }
.version-slot-heading .version-name-button { display: block; width: auto; max-width: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; overflow-wrap: anywhere; cursor: text; }
.version-slot-heading .version-name-button:hover { text-decoration: underline dotted; text-underline-offset: 4px; }
.version-name-input { box-sizing: border-box; width: 100%; min-width: 0; border: 1px solid #7899b8; border-radius: 5px; background: #fff; color: #234a70; padding: 2px 4px; font: inherit; }
.version-dialog-footer { display: flex; justify-content: flex-end; padding: 12px 26px 16px; border-top: 1px solid #d9e5f0; }
.optimization-shift-picker.manual-shift-picker { display: grid; gap: 10px; max-width: calc(100vw - 42px); }
.manual-shift-options { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.manual-shift-picker .optimization-shift-option { min-height: 66px; justify-content: center; text-align: center; }
.manual-shift-picker .manual-shift-close { position: absolute; top: 0; right: 0; transform: translate(50%, -50%); display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: #ad2538; color: #fff; font: 700 20px/1 system-ui, sans-serif; cursor: pointer; z-index: 1; }
.manual-shift-close:hover { background: #891e2e; }
.manual-shift-close:focus-visible { outline: 2px solid #ad2538; outline-offset: 2px; }
@media (max-width: 740px) { .manual-shift-options { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.proposal-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 10px; background: #eff8f5; color: #234d3f; border-radius: 8px; font-size: 13px; }
.version-button.proposal-button { display: inline-flex; align-items: center; gap: 7px; border-color: #18754f; background: #e0f4e9; color: #115539; font-weight: 700; }
.version-button.proposal-button:hover:not(:disabled) { background: #c9ebd9; }
.proposal-refresh-icon { font: 700 18px/1 system-ui, sans-serif; }
.proposal-chip { outline: 2px dashed #087b65; outline-offset: 1px; }
.calendar-grid .is-review-target { animation: planning-cell-flash .6s ease-in-out infinite; }
@keyframes planning-cell-flash {
  0%, 100% { outline: 3px solid #6839b1; outline-offset: -3px; }
  50% { outline: 3px solid #8c4ce6; outline-offset: -3px; box-shadow: inset 0 0 0 100px #bd83ff66; }
}
@media (prefers-reduced-motion: reduce) {
  .calendar-grid .is-review-target { animation: none; outline: 3px solid #6839b1; outline-offset: -3px; }
}
.planning-toolbar .planning-toolbar-row { gap: 10px 16px; }
.planning-toolbar { container-type: inline-size; }
.optimization-toolbar-row .scenario-controls-row { margin-inline: auto; }
@container (min-width: 1230px) {
  .planning-toolbar .optimization-toolbar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: 22px; }
  .optimization-toolbar-row .toolbar-month-controls { justify-self: start; }
  .optimization-toolbar-row .scenario-controls-row { justify-self: center; }
  .optimization-toolbar-row .planning-tab-export-group { justify-self: end; }
}
.planning-toolbar-row .planning-tab-export-group { gap: 10px; }
.planning-toolbar-row .toolbar-tab-controls { gap: 8px; }
.planning-toolbar .toolbar-month-controls { flex: 0 0 auto; background: #e8f0fa; border: 1px solid #d5e2ef; }
.toolbar-month-controls .month-name { color: #244b70; white-space: nowrap; }
.toolbar-month-controls button { background: #315d85; color: #fff; line-height: 1; }
.toolbar-month-controls button:not(:disabled):hover { background: #204769; transform: none; }
.toolbar-month-controls button:disabled { background: #d5e1ed; color: #5e7389; }
.home-brand { display: inline-flex; align-items: center; gap: 10px; color: #e9f4fe; font-size: 17px; font-weight: 800; letter-spacing: .12em; }
.home-brand img { display: block; flex: none; }
.app-shell.is-home { position: relative; }
.home-settings-gear { position: absolute; z-index: 3; inset-block-start: 6px; inset-inline-start: 6px; width: 30px; height: 30px; padding: 0; border: 1px solid #7998b6; border-radius: 8px; background: #eaf3fb; color: #234866; cursor: pointer; font: 20px/1 system-ui, sans-serif; }
.home-settings-gear:hover { background: #fff; }
.home-display-density { position: absolute; z-index: 3; inset-block-start: 6px; inset-inline-start: 46px; }
.home-display-density select { min-height: 30px; padding: 3px 6px; }
@media (max-width: 600px) {
  .home-display-density { position: static; width: fit-content; margin: 0 0 12px 30px; }
}
.csv-settings section { display: grid; justify-items: start; gap: 8px; }
.csv-settings section :is(p, ul) { margin: 0; }
.csv-settings label { display: grid; gap: 4px; }
.csv-roster-review { display: grid; gap: 10px; width: 100%; min-width: 0; }
.csv-roster-review h3 { margin: 0; font-size: 15px; }
.csv-roster-review .csv-review-filter { display: inline-flex; align-items: center; gap: 6px; align-self: center; }
.csv-roster-table { overflow: auto; max-width: 100%; border: 1px solid #d5e0ec; border-radius: 8px; background: #fff; }
.csv-roster-table table { width: 100%; border-collapse: collapse; }
.csv-roster-table :is(th, td) { padding: 6px 8px; border-bottom: 1px solid #e6edf5; text-align: left; }
.csv-roster-table thead th { background: #eaf3fb; white-space: nowrap; }
.csv-roster-table .csv-roster-group th { background: #f0f5fb; color: #234866; }
.csv-roster-table small { display: block; color: #48617a; }
.csv-roster-table select { max-width: 100%; }
.csv-roster-review > .version-button { justify-self: start; }
.shutdown-csv-tag { font-size: 10px; font-weight: 700; color: #2a5974; }
.home-calendar-action { display: flex; flex-wrap: wrap; gap: 8px; }
#root:has(> .app-shell) { padding-inline: clamp(4px, 1vw, 14px); }
.app-shell:is(.is-home, .shutdown-app, [class*="shift-display-"]) { --app-shell-max-width: 100%; }
.app-shell.is-home .home-panel, .shutdown-app .shutdown-main { padding-inline: clamp(6px, 1vw, 14px); }
.app-shell[class*="shift-display-"] .calendar { padding-inline: clamp(4px, 1vw, 14px); }
.app-shell[class*="shift-display-"] .grid-wrapper { box-sizing: border-box; padding-inline: 4px; }
.app-shell[class*="shift-display-"] .calendar-grid { box-sizing: border-box; padding-inline: 4px; }
.workforce-app .shutdown-main { width: min(100%, 1160px); align-self: center; gap: 24px; padding-block: 24px 36px; }
.workforce-app .shutdown-main:has(.workforce-seven-teams) { width: 100%; }
.workforce-controls { display: grid; justify-items: center; gap: 12px; }
.workforce-selector { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.workforce-selector button { padding: 8px 14px; border: 1px solid #c9d8e9; border-radius: 999px; background: #eef4fa; color: #234866; font: inherit; font-weight: 700; cursor: pointer; }
.workforce-selector button[aria-pressed="true"] { border-color: #244e74; background: #244e74; color: #fff; }
.workforce-tiles { min-width: 0; }
.workforce-tiles--equipes { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 12px; }
.workforce-tiles--equipes > .workforce-tile { flex: 0 1 auto; width: max-content; min-width: min(250px, 100%); max-width: 100%; }
.workforce-tiles--postes { display: block; }
.workforce-tiles--postes .workforce-tile-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.workforce-tiles--postes .workforce-seven-teams { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.workforce-seven-teams .workforce-team { width: 98%; justify-self: center; padding-inline: clamp(2px, .7vw, 12px); }
.workforce-tiles--postes .workforce-team { border: 1px solid #e8eff5; }
.workforce-team { position: relative; min-width: 0; padding: 8px 12px; }
.workforce-team + .workforce-team { border-top: 1px solid #dce6f0; }
.workforce-team h4 { margin: 0; font-size: 13px; color: #35516b; }
.composition-role-card.workforce-tile .workforce-places { display: grid; gap: 5px; padding: 0; }
.composition-role-card.workforce-tile li { display: flex; gap: 6px; padding: 0; border-top: 0; }
.composition-role-card.workforce-tile li > .version-button { flex: 0 0 auto; white-space: nowrap; padding-inline: 5px; }
.workforce-slot { flex: 0 1 190px; min-width: 0; min-height: 30px; padding: 4px 6px; border: 1px solid #aebfd3; border-radius: 6px; background: #fff; color: #173652; font: inherit; font-size: .92em; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.workforce-app .workforce-tile { overflow: visible; }
.workforce-app .workforce-tile > header { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; border-radius: 9px 9px 0 0; }
.workforce-tile > header > .composition-role-count { grid-column: 3; justify-self: end; }
.workforce-add-menu { position: relative; }
.workforce-tile .workforce-add { display: grid; place-items: center; width: 24px; height: 24px; min-height: 0; padding: 0; border-radius: 50%; font-size: 16px; line-height: 1; cursor: pointer; }
.workforce-add::-webkit-details-marker { display: none; }
.workforce-add-options { position: absolute; z-index: 4; inset-block-start: calc(100% + 4px); inset-inline-start: 50%; transform: translateX(-50%); display: grid; gap: 4px; width: max-content; min-width: 100px; padding: 6px; border: 1px solid #dce6f0; border-radius: 8px; background: #fff; box-shadow: 0 4px 12px #112c4522; }
.workforce-slot.is-vacant { border-style: dashed; color: #48617a; }
.workforce-form input { width: 100%; }
.workforce-destination { flex-basis: 100%; }
.workforce-destination label { margin-top: 6px; }
.workforce-special-section { background: #f0f5fb; border-bottom: 1px solid #dce6f0; }
.workforce-special-section h4 { color: #234866; font-weight: 750; }
.published-conflict-mark { position: absolute; inset-block-start: 2px; inset-inline-end: 2px; display: grid; place-items: center; width: 12px; height: 12px; border-radius: 50%; background: #8e2436; color: #fff; font: 800 10px/1 system-ui, sans-serif; }
.planning-csv-note { position: absolute; inset-block-end: 2px; inset-inline-end: 2px; display: grid; place-items: center; width: 12px; height: 12px; border-radius: 50%; background: #285980; color: #fff; font: 700 9px/1 system-ui, sans-serif; }
button.planning-csv-note { z-index: 1; width: 18px; height: 18px; border: 0; padding: 0; cursor: pointer; font-size: 11px; }
button.planning-csv-note:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
.leave-imported { margin-top: 12px; }
.leave-imported h3 { margin: 0 0 8px; font-size: 0.95rem; }
.leave-imported ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.leave-imported li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.planning-csv-activities { padding: 8px 12px; border: 1px solid #c8d8e6; border-radius: 8px; background: #eef5fa; color: #234866; }
.planning-csv-activities summary { font-weight: 700; cursor: pointer; }
.planning-csv-activities ul { display: grid; gap: 5px; max-height: 240px; overflow: auto; margin: 8px 0 0; padding-inline-start: 20px; }
.home-shutdown-module { margin-top: 48px; }
.home-planning-heading { margin: 0; color: #234866; font-size: 15px; }
.home-shutdown-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px; margin-top: 8px; }
.shutdown-app { color: #173652; }
.shutdown-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; background: #193753; color: #fff; }
.shutdown-header h1 { margin: 0; font-size: clamp(20px, 3vw, 29px); }
.shutdown-main { display: grid; gap: 10px; min-width: 0; padding: 16px; }
.shutdown-toolbar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px; }
.shutdown-view-toolbar .toolbar-tab-controls { margin-inline-start: auto; }
.shutdown-toolbar { padding: 8px 10px; border: 1px solid #d5e0ec; border-radius: 9px; background: #edf3fa; }
.shutdown-toolbar label { display: grid; gap: 3px; font-size: 13px; font-weight: 700; }
.shutdown-toolbar :is(input, select), .shutdown-grid input { padding: 6px 8px; border: 1px solid #a8bbce; border-radius: 6px; background: #fff; color: #173652; font: inherit; }
.shutdown-grid { --shutdown-profile-width: 78px; overflow: auto; min-width: 0; border: 1px solid #c8d6e5; border-radius: 9px; background: #fff; }
.shutdown-grid table { border-collapse: separate; border-spacing: 0; min-width: 100%; }
.shutdown-grid :is(th, td) { padding: 7px; border-bottom: 1px solid #dce5ee; border-right: 1px solid #dce5ee; text-align: left; vertical-align: top; }
.shutdown-grid :is(thead th, tbody th):first-child { position: sticky; inset-inline-start: 0; z-index: 2; box-sizing: border-box; width: var(--shutdown-profile-width); min-width: var(--shutdown-profile-width); max-width: var(--shutdown-profile-width); white-space: nowrap; }
.shutdown-grid tbody th { background: #fff; }
.shutdown-grid :is(thead th:nth-child(2), .shutdown-quart) { position: sticky; inset-inline-start: var(--shutdown-profile-width); z-index: 2; }
.shutdown-grid thead th { white-space: nowrap; }
.shutdown-grid .shutdown-quart { min-width: 115px; text-align: center; white-space: nowrap; font-weight: 700; }
.shutdown-quart[data-quart="M"] { background: #fff0b3; }
.shutdown-quart[data-quart="AM"] { background: #cae8fb; }
.shutdown-quart[data-quart="N"] { background: #ffccd2; }
.shutdown-quart[data-quart="RJ"] { background: #c5eed9; }
.shutdown-grid thead th { text-align: center; background: #fff1ca; color: #233750; }
.shutdown-grid thead .shutdown-weekend { background: #ffd870; }
.shutdown-grid thead :is(span, time) { display: block; }
.shutdown-grid .shutdown-profile-start > * { border-top: 4px solid #aebac7; }
.shutdown-grid .shutdown-vacant { background: #eef1f4; color: #52657a; }
.shutdown-grid thead .shutdown-holiday, .shutdown-grid td.shutdown-holiday { background: #f9dce1; color: #742d3b; }
.shutdown-grid td select, .shutdown-grid td small { display: block; margin-top: 4px; }
.shutdown-grid input { width: 140px; max-width: 30vw; }
.shutdown-grid .shutdown-conflict { background: #ffe4e7; color: #8e2436; }
.shutdown-grid .shutdown-conflict small { display: block; max-width: 165px; margin-top: 4px; }
.shutdown-grid td.shutdown-blocked { background: #cbd2d9; background: color-mix(in srgb, var(--shutdown-lock-color, #cbd2d9) 54%, #fff); color: #253b50; }
.shutdown-grid td.shutdown-blocked small { color: #384b5d; }
.shutdown-grid td .shutdown-lock-reason { margin-top: 2px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 650; }
.shutdown-grid.is-selecting-restrictions td[data-restriction-cell] { touch-action: none; user-select: none; cursor: crosshair; }
.shutdown-grid td.shutdown-range-preview { box-shadow: inset 0 0 0 2px #536b8e; background: #dce6fb; }
.shutdown-restriction-target { display: block; width: 100%; padding: 3px; border: 0; background: transparent; color: inherit; text-align: left; font: inherit; cursor: crosshair; }
.shutdown-restrictions { padding: 12px; border: 1px solid #d5e0ec; border-radius: 9px; background: #f5f8fc; }
.shutdown-restrictions h2 { margin: 0 0 8px; font-size: 15px; }
.shutdown-restrictions p { margin: 8px 0 0; }
.shutdown-restrictions ul { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.shutdown-restrictions li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.shutdown-lock-swatch { width: 14px; height: 14px; border: 1px solid #8092a4; border-radius: 3px; }
.workforce-extra h2 { margin: 0 0 8px; text-align: center; font-size: 15px; }
.shutdown-empty, .shutdown-feedback { margin: 0; padding: 12px; background: #eaf3fb; border-radius: 8px; }
.shutdown-grid .shutdown-week-row td { vertical-align: middle; text-align: center; background: #eaf3fb; font-size: 13px; }
.shutdown-grid .shutdown-fill-label { position: sticky; inset-inline-start: 0; z-index: 2; font-weight: 700; }
.shutdown-grid .shutdown-week-start { border-inline-start: 3px solid #839ab1; }
.shutdown-week-profiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 6px; }
.shutdown-week-stat { padding: 5px 7px; border-radius: 6px; background: #fff; white-space: nowrap; }
.shutdown-week-stat progress { display: block; width: 100%; height: 7px; margin-top: 4px; border: 0; border-radius: 4px; overflow: hidden; appearance: none; background: #e1e9f1; }
.shutdown-week-stat progress::-webkit-progress-bar { background: #e1e9f1; }
.shutdown-week-stat progress::-webkit-progress-value { background: var(--fill-color); }
.shutdown-week-stat progress::-moz-progress-bar { background: var(--fill-color); }
.shutdown-week-stat progress[data-profile="CC/DSE"] { --fill-color: #8251ab; }
.shutdown-week-stat progress[data-profile="OP"] { --fill-color: #3673b2; }
.shutdown-week-stat progress[data-profile="AGT"] { --fill-color: #32835f; }
.planning-toolbar .scenario-controls-row { display: flex; flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
.optimization-action-group { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-width: 0; padding: 4px 6px; border-radius: 8px; background: #edf3fa; }
.save-version-button { display: inline-flex; align-items: center; gap: 6px; }
.grid-day .status-chip.status-am { font-size: clamp(5px, calc(var(--day-track-width, var(--day-column-width)) * .2), 11px); letter-spacing: 0; white-space: nowrap; }
.optimization-state-group .publication-switch-wrapper { padding-right: 8px; border-right: 1px solid #d5e0ec; }
.optimization-action-group :is(.version-button, .toolbar-cp-button) { min-height: 34px; }
.manual-shift-picker .optimization-shift-option[aria-pressed="true"] { border-color: #315a82; background: #eaf3ff; }
.optimization-state-group .publication-switch { min-width: 0; }
.optimization-action-group .version-button, .optimization-action-group .toolbar-cp-button { padding-inline: 8px; }
.settings-contrast { display: flex; align-items: center; gap: 6px; color: #fff; font-size: 13px; font-weight: 600; }
.settings-contrast input { accent-color: #315a82; }
.settings-display-preferences { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: #fff; font-size: 13px; }
.settings-shift-display { display: grid; gap: 5px; margin: 0; padding: 6px; min-width: 0; border: 1px solid #d5e0ec; border-radius: 8px; }
.settings-shift-display legend { padding-inline: 4px; }
.settings-display-option { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 5px; padding: 3px; border-radius: 5px; color: #fff; font-size: 12px; cursor: pointer; }
.settings-display-option:has(input:checked) { background: #365575; }
.settings-display-option input { margin: 0; accent-color: #315a82; }
.settings-display-sample { display: inline-flex; gap: 2px; }
.settings-display-sample .status-chip { width: 20px; min-width: 20px; height: 20px; min-height: 20px; font-size: 8px; }

.shift-display-badges { --badge-m: #ffdda0; --badge-am: #82dace; --badge-n: #303e69; --badge-j: #dcd7f7; --badge-st: #ffd1d5; }
.shift-display-print { --print-m: #fff0b3; --print-am: #cae8fb; --print-n: #e7dcfb; --print-j: #d9efd9; --print-st: #f4e0c9; }
.shift-display-badges .status-chip:not(.settings-display-sample:not(.shift-display-badges) *) { border-radius: 6px; border-width: 1px; min-height: 19px; box-shadow: none; }
.shift-display-badges .status-chip:not(.settings-display-sample:not(.shift-display-badges) *)::after { display: none; }
.shift-display-badges .status-m:not(.settings-display-sample:not(.shift-display-badges) *) { --chip-bg: var(--badge-m); --chip-color: #52330b; }
.shift-display-badges .status-am:not(.settings-display-sample:not(.shift-display-badges) *) { --chip-bg: var(--badge-am); --chip-color: #134a42; }
.shift-display-badges .status-n:not(.settings-display-sample:not(.shift-display-badges) *) { --chip-bg: var(--badge-n); --chip-color: #fff; }
.shift-display-badges .status-j:not(.settings-display-sample:not(.shift-display-badges) *) { --chip-bg: var(--badge-j); --chip-color: #383068; }
.shift-display-badges .status-st:not(.settings-display-sample:not(.shift-display-badges) *) { --chip-bg: var(--badge-st); --chip-color: #632a36; }
.shift-display-print .status-chip:not(.settings-display-sample:not(.shift-display-print) *) { border-radius: 0; border: 0; aspect-ratio: auto; box-shadow: none; background: var(--printed-shift, #fff); color: #203d54; }
.shift-display-print :is(.status-m, .grid-day:has(> .status-m)) { --printed-shift: var(--print-m); }
.shift-display-print :is(.status-am, .grid-day:has(> .status-am)) { --printed-shift: var(--print-am); }
.shift-display-print :is(.status-n, .grid-day:has(> .status-n)) { --printed-shift: var(--print-n); }
.shift-display-print :is(.status-j, .grid-day:has(> .status-j)) { --printed-shift: var(--print-j); }
.shift-display-print :is(.status-st, .grid-day:has(> .status-st)) { --printed-shift: var(--print-st); }
.shift-display-print .grid-day:not(.assignment-valid, .assignment-invalid, .cell-leave, .cell-farn, .cell-indisponible) { background: var(--printed-shift, #fff); box-shadow: none; }
.shift-display-print .grid-day > .status-chip { background: transparent; }
.shift-display-print .status-chip:not(.settings-display-sample:not(.shift-display-print) *)::after { display: none; }
.shift-display-print .grid-day:not(.cell-leave, .cell-farn, .cell-indisponible)::before,
.shift-display-print .grid-day:not(.cell-leave, .cell-farn, .cell-indisponible)::after { display: none; }
.app-shell.is-contrast-mode .status-chip { --chip-shadow-color: transparent; letter-spacing: 0; }
.app-shell.is-contrast-mode .status-m { --chip-bg: #ffde73; --chip-color: #352309; --chip-border: #876108; }
.app-shell.is-contrast-mode .status-am { --chip-bg: #c9ecff; --chip-color: #073858; --chip-border: #226481; }
.app-shell.is-contrast-mode .status-n { --chip-bg: #21314f; --chip-color: #fff; --chip-border: #14213b; }
.app-shell.is-contrast-mode .status-j { --chip-bg: #eadbfa; --chip-color: #49205e; --chip-border: #6b4688; }
.app-shell.is-contrast-mode .status-st { --chip-bg: #ffd8bb; --chip-color: #592a13; --chip-border: #9c5232; }
.app-shell.is-contrast-mode.shift-display-print .grid-day > .status-chip { background: var(--chip-bg); color: var(--chip-color); }
.app-shell.is-contrast-mode .grid-day.assignment-invalid { --assignment-fill: #f9d99b; --assignment-edge: #805100; }
.app-shell.is-contrast-mode .grid-day.assignment-valid { --assignment-fill: #bbdef7; --assignment-edge: #225780; }
.app-shell.is-contrast-mode .grid-day:is(.assignment-invalid, .assignment-valid)::after { display: grid; place-items: center; position: absolute; inset: 2px 2px auto auto; width: 13px; height: 13px; border-radius: 3px; color: #fff; opacity: 1; background: var(--assignment-edge); font: 800 10px/1 system-ui, sans-serif; z-index: 3; }
.app-shell.is-contrast-mode .grid-day.assignment-invalid::after { content: "!"; }
.app-shell.is-contrast-mode .grid-day.assignment-valid::after { content: "✓"; }

.team-composition-modal { width: min(940px, 100%); overflow: hidden; }
.composition-header { padding: 22px 26px 18px; background: linear-gradient(115deg, #173652, #235c76); }
.composition-header .modal-title { color: #fff; font-size: clamp(20px, 3vw, 28px); }
.composition-context { margin: 4px 0 0; color: #d3e6f4; font-size: 14px; }
.composition-headcount { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 0; padding: 5px 11px; border-radius: 8px; background: #e6f5f2; color: #1d5e54; font-size: 13px; font-weight: 650; }
.composition-headcount strong { font-size: 16px; }
.composition-header .modal-close { flex: none; background: #edf6ff; color: #1a3e5b; }
.team-composition-modal .modal-body { background: #f3f7fb; padding: 16px 24px; }
.team-composition-modal .team-composition-filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; padding: 12px; border: 1px solid #dce6f0; border-radius: 10px; background: #fff; }
.composition-shifts { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; border: 0; min-width: 0; }
.composition-shifts legend { margin-bottom: 4px; color: #42586e; font-size: 12px; font-weight: 700; }
.composition-shift-option { display: flex; align-items: center; gap: 5px; min-height: 34px; padding: 4px 8px; border: 1px solid #c8d8e6; border-radius: 7px; color: #294d6e; cursor: pointer; font-size: 13px; }
.composition-shift-option:has(input:checked) { border-color: #305f8a; background: #e5f1ff; color: #18395a; font-weight: 700; }
.composition-shift-option input { margin: 0; accent-color: #326795; }
.composition-role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.15fr); gap: 12px; align-items: start; }
.composition-role-column { display: grid; gap: 12px; min-width: 0; }
@media (max-width: 620px) { .composition-role-grid { grid-template-columns: minmax(0, 1fr); } }
.composition-role-card { --role-background: #dbeafe; --role-color: #234e84; border: 1px solid #dce6f0; border-radius: 10px; overflow: hidden; background: #fff; }
.composition-role-card[data-profile="CED"] { --role-background: #eae2fb; --role-color: #62428e; }
.composition-role-card[data-profile="CC_DSE"] { --role-background: #fce8d2; --role-color: #875024; }
.composition-role-card[data-profile="PT"] { --role-background: #d9f3ed; --role-color: #236559; }
.composition-role-card[data-profile="OP"] { --role-background: #dcedd9; --role-color: #356337; }
.composition-role-card[data-profile="AGT"] { --role-background: #f8e2eb; --role-color: #853b60; }
.composition-role-card > header { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--role-background); color: var(--role-color); }
.composition-role-card h3 { margin: 0; font-size: 15px; }
.composition-role-count { padding: 2px 8px; border-radius: 999px; background: #ffffffc7; font-weight: 700; font-size: 12px; }
.composition-role-card :is(ul, p) { margin: 0; padding: 9px 12px; list-style: none; }
.composition-role-card li { display: grid; gap: 2px; padding: 5px 0; overflow-wrap: anywhere; }
.composition-role-card li + li { border-top: 1px solid #e8eff5; }
.composition-role-card li span, .composition-role-card p { color: #51677c; font-size: 12px; }
.agent-name-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(155px, 100%), 1fr)); gap: 10px; width: 100%; }
.agent-name-fields label { display: grid; gap: 4px; }
.agent-name-fields input { width: 100%; min-width: 0; box-sizing: border-box; }
.calendar-grid .grid-day.assignment-invalid { --assignment-fill: #ef747c; --assignment-edge: #b62134; }
.calendar-grid .grid-day.assignment-valid { --assignment-fill: #64d394; --assignment-edge: #167044; }
.calendar-grid .grid-day:is(.assignment-invalid, .assignment-valid) { background-color: var(--assignment-fill) !important; background-blend-mode: multiply; border-color: var(--assignment-edge); }
.calendar-grid .grid-day:is(.assignment-invalid, .assignment-valid):not(.cell-leave, .cell-farn, .cell-indisponible) { background-image: none !important; }
.calendar-grid .grid-day:is(.assignment-invalid, .assignment-valid)::before,
.calendar-grid .grid-day:is(.assignment-invalid, .assignment-valid)::after { display: none; }
.assignment-comparison { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; color: #42586e; font-size: 12px; }
.assignment-comparison-side { display: inline-flex; align-items: center; gap: 5px; }
.assignment-comparison .status-chip { width: auto; min-width: 29px; min-height: 25px; padding-inline: 5px; }
.status-chip.status-no-assignment { background: #e9eff5; color: #52657a; }
.review-card-shift .assignment-comparison { justify-content: flex-start; }
.review-assignment-row { grid-template-columns: repeat(2, minmax(160px, 1fr)) minmax(100px, 1fr) auto; }
.review-agent-card { align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; padding: 8px 10px; border: 1px solid #dce5ee; border-radius: 8px; background: #f8fafc; overflow-wrap: anywhere; }
.review-agent-absent > .review-field-label, .review-agent-absent > strong { color: #87522a; }
.review-agent-replacement > .review-field-label, .review-agent-replacement > strong { color: #17604d; }
.review-summary-shift { color: #265c90; font-weight: 700; }
.review-original-shift { display: grid; justify-items: center; gap: 2px; width: 100%; margin-top: 2px; color: #536980; font-size: 11px; text-align: center; }
.review-original-shift .status-chip { width: max-content; min-width: 46px; min-height: 30px; padding: 1px 9px; font-size: 16px; white-space: nowrap; }
.review-replacement-picker { display: grid; gap: 2px; width: 100%; min-width: 0; margin-top: auto; padding-top: 5px; border-top: 1px solid #dce5ee; color: #17604d; font-size: 12px; font-weight: 650; }
.review-replacement-picker .replacement-select { box-sizing: border-box; max-width: none; min-height: 29px; margin: 0; }
@media (max-width: 900px) {
  .review-assignment-row { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
}
.calendar-grid .grid-day.planning-shifts { display: flex; flex-direction: column; gap: 1px; padding: 2px; }
.calendar-grid .grid-day.planning-shifts.is-empty { background: #fff !important; box-shadow: none; }
.calendar-grid .grid-day.planning-shifts.is-empty::before,
.calendar-grid .grid-day.planning-shifts.is-empty::after { display: none; }
