:root {
  --brand-indigo: #3f4696;
  --brand-indigo-dark: #272d73;
  --brand-pink: #d91f65;
  --brand-pink-dark: #ae124c;
  --ink: #171a33;
  --muted: #60677d;
  --danger: #b42318;
  --glass: rgb(255 255 255 / 68%);
  --glass-strong: rgb(255 255 255 / 84%);
  --glass-border: rgb(255 255 255 / 78%);
  --focus: #ffbf00;
  --shadow: 0 30px 70px rgb(43 36 103 / 16%);
}


* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  font-size: 112.5%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  background: #f7f6fc;
}

button,
input,
select,
textarea {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font: inherit;
}

button {
  cursor: pointer;
}

button,
a,
input {
  min-height: 44px;
}

svg {
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.85rem 1rem;
  color: #fff;
  background: #111;
  border-radius: 12px;
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.ambient-shape {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.ambient-shape--one {
  top: -18vw;
  right: -10vw;
  width: 46vw;
  height: 46vw;
  background: radial-gradient(circle at 45% 55%, rgb(223 23 96 / 30%), rgb(223 23 96 / 0%) 68%);
}

.ambient-shape--two {
  bottom: -20vw;
  left: -12vw;
  width: 52vw;
  height: 52vw;
  background: radial-gradient(circle at 55% 45%, rgb(65 75 155 / 30%), rgb(65 75 155 / 0%) 70%);
}

.ambient-shape--three {
  top: 37%;
  left: 46%;
  width: 24vw;
  height: 24vw;
  background: radial-gradient(circle, rgb(81 198 221 / 18%), rgb(81 198 221 / 0%) 70%);
}

.accessibility-tools {
  position: fixed;
  z-index: 20;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.accessibility-tools--inline {
  position: static;
}

.accessibility-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.accessibility-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  padding: 0;
  color: var(--brand-indigo-dark);
  background: rgb(255 255 255 / 48%);
  border: 1px solid rgb(255 255 255 / 62%);
  border-radius: 13px;
  box-shadow: 0 6px 18px rgb(45 39 95 / 7%), inset 0 1px 0 rgb(255 255 255 / 70%);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  font-size: 0.82rem;
  font-weight: 750;
  opacity: 0.76;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.accessibility-button:hover {
  background: #fff;
  opacity: 1;
  transform: translateY(-2px);
}

.accessibility-button[aria-pressed="true"] {
  color: #fff;
  background: var(--brand-indigo-dark);
  border-color: var(--brand-indigo-dark);
  opacity: 1;
}

body.large-text {
  font-size: 1.12em;
}

body.large-text input,
body.large-text select,
body.large-text textarea,
body.large-text button,
body.large-text label,
body.large-text .field,
body.large-text .field span,
body.large-text .form-field label,
body.large-text .sidebar-accessibility .accessibility-button,
body.large-text .module-name,
body.large-text .login-heading h1,
body.large-text .modules-heading h1 {
  font-size: 1.08em;
}

body.large-text input,
body.large-text select,
body.large-text textarea {
  min-height: 48px;
  padding-block: 0.8rem;
}

.login-page,
.modules-page {
  min-height: var(--desktop-height, 100vh);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 8%, rgb(255 255 255 / 96%) 0 14%, transparent 40%),
    linear-gradient(135deg, #f5f2fb 0%, #faf8fc 48%, #eef5fc 100%);
}

.login-layout {
  width: min(100% - 3rem, 1180px);
  min-height: var(--desktop-height, 100vh);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.78fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  padding: 6rem 0 3rem;
}

.brand-panel {
  display: flex;
  justify-content: center;
}

.brand-visual {
  position: relative;
  width: min(100%, 590px);
  padding: clamp(2rem, 5vw, 4.5rem);
  background: linear-gradient(145deg, rgb(255 255 255 / 58%), rgb(255 255 255 / 24%));
  border: 1px solid var(--glass-border);
  border-radius: 48px;
  box-shadow: var(--shadow), inset 0 1px 0 #fff;
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
}

.brand-visual::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 38px;
}

.brand-kicker,
.modules-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.8rem;
  color: var(--brand-pink-dark);
  background: rgb(255 255 255 / 66%);
  border: 1px solid rgb(255 255 255 / 88%);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-logo {
  width: min(100%, 500px);
  height: auto;
  display: block;
  margin: 1.4rem auto 1rem;
  mix-blend-mode: multiply;
}

.brand-message {
  max-width: 460px;
  margin: 0 auto;
  color: #41485f;
  font-size: clamp(1rem, 1.5vw, 1.17rem);
  line-height: 1.65;
  text-align: center;
}

.trust-pill {
  width: fit-content;
  min-height: 40px;
  margin: 1.5rem auto 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  color: #343b66;
  background: rgb(255 255 255 / 62%);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.trust-pill svg {
  width: 18px;
  fill: var(--brand-pink);
}

.login-panel {
  width: min(100%, 420px);
  justify-self: center;
}

.login-card {
  position: relative;
  overflow: hidden;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  box-shadow: var(--shadow), inset 0 1px 0 #fff;
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
}

.login-card::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgb(223 23 96 / 14%), transparent 70%);
  pointer-events: none;
}

.login-card__content {
  padding: clamp(2rem, 5vw, 2.8rem);
}

.login-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.login-heading__icon {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-pink), #b31a70);
  border-radius: 17px;
  box-shadow: 0 12px 25px rgb(217 31 101 / 25%), inset 0 1px 0 rgb(255 255 255 / 45%);
}

.login-heading__icon svg {
  width: 27px;
  fill: currentColor;
}

.login-heading p {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.login-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.035em;
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  margin: 0 0 0.55rem 0.2rem;
  color: #353a52;
  font-size: 0.88rem;
  font-weight: 750;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group input {
  width: 100%;
  height: 56px;
  padding: 0 3.1rem;
  color: var(--ink);
  background: rgb(255 255 255 / 88%);
  border: 1.5px solid rgb(82 87 127 / 26%);
  border-radius: 17px;
  outline: none;
  box-shadow: inset 0 1px 2px rgb(43 36 103 / 6%);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.input-group input::placeholder {
  color: #767d91;
}

.input-group input:hover {
  background: #fff;
  border-color: rgb(63 70 150 / 35%);
}

.input-group input:focus {
  background: #fff;
  border-color: var(--brand-indigo);
  box-shadow: 0 0 0 4px rgb(63 70 150 / 14%), 0 8px 20px rgb(63 70 150 / 8%);
}

.input-group input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgb(180 35 24 / 12%);
}

.input-icon,
.password-toggle {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
}

.input-icon {
  left: 1rem;
  color: #596079;
  pointer-events: none;
}

.input-icon svg,
.password-toggle svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.password-toggle {
  right: 0.45rem;
  width: 44px;
  padding: 0;
  color: #4e556d;
  background: transparent;
  border: 0;
  border-radius: 12px;
}

.password-toggle:hover {
  color: var(--brand-indigo-dark);
  background: rgb(63 70 150 / 8%);
}

.form-message {
  min-height: 1.25rem;
  margin: 0.2rem 0 0;
  color: var(--danger);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
}

.login-button {
  width: calc(100% - 2rem);
  min-height: 58px;
  margin: 0 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #fff;
  background: linear-gradient(120deg, var(--brand-indigo-dark), #5358ad 55%, #b51b67);
  border: 0;
  border-radius: 20px;
  box-shadow: 0 14px 30px rgb(45 50 126 / 25%), inset 0 1px 0 rgb(255 255 255 / 28%);
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.login-button svg {
  width: 20px;
  fill: currentColor;
  transition: transform 180ms ease;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgb(45 50 126 / 32%), inset 0 1px 0 rgb(255 255 255 / 28%);
  filter: saturate(112%);
}

.login-button:hover svg {
  transform: translateX(3px);
}

.login-button:active {
  transform: translateY(0);
}

.login-footer {
  margin-top: 1.5rem;
  color: #5a6075;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.7;
}

.login-footer p {
  margin: 0;
}

.footer-logo {
  width: 82px;
  height: 82px;
  margin: 0.45rem auto 0.25rem;
  display: block;
  object-fit: contain;
}

.footer-contact {
  margin-top: 0.45rem;
  display: flex;
  flex-direction: column;
  color: #4c5268;
  font-style: normal;
}

.footer-contact a {
  min-height: auto;
  color: var(--brand-indigo-dark);
  font-weight: 700;
  text-underline-offset: 3px;
}

.footer-contact a:hover {
  color: var(--brand-pink-dark);
}

.footer-contact a:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 3px;
}

.modules-page {
  height: var(--desktop-height, 100vh);
  padding-top: 1.25rem;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.modules-header {
  position: relative;
  z-index: 10;
  width: min(100% - 3rem, 1240px);
  min-height: 92px;
  margin: 0 auto;
  padding: 0.65rem 0.8rem 0.65rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(
    110deg,
    color-mix(in srgb, #c42465 11%, white),
    rgb(255 255 255 / 92%)
  );
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 15px 40px rgb(43 36 103 / 10%), inset 0 1px 0 #fff;
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.modules-header__logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logout-button {
  min-width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  color: #fff;
  background: var(--brand-indigo-dark);
  border: 1px solid var(--brand-indigo-dark);
  border-radius: 14px;
  font-weight: 750;
  transition: transform 180ms ease, background 180ms ease;
}

.logout-button svg {
  width: 19px;
  fill: currentColor;
}

.logout-button:hover {
  background: var(--brand-pink-dark);
  border-color: var(--brand-pink-dark);
  transform: translateY(-2px);
}

.modules-main {
  position: relative;
  z-index: 1;
  width: min(100% - 3rem, 1140px);
  height: auto;
  min-height: 0;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 1.5rem 0;
}

.modules-card {
  width: 100%;
  max-height: 100%;
  padding: clamp(2rem, 4vh, 3rem) clamp(2rem, 5vw, 4.2rem);
  background: linear-gradient(145deg, rgb(255 255 255 / 74%), rgb(255 255 255 / 45%));
  border: 1px solid var(--glass-border);
  border-radius: 42px;
  box-shadow: var(--shadow), inset 0 1px 0 #fff;
  backdrop-filter: blur(32px) saturate(155%);
  -webkit-backdrop-filter: blur(32px) saturate(155%);
}

.modules-heading {
  max-width: 620px;
  margin: 0 auto 2.6rem;
  text-align: center;
}

.modules-eyebrow {
  color: var(--brand-indigo-dark);
}

.modules-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.045em;
}

.modules-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.module-tile {
  --tile-accent: #5963c7;
  position: relative;
  min-height: clamp(160px, 20vh, 195px);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 78%), rgb(255 255 255 / 42%)),
    linear-gradient(145deg, color-mix(in srgb, var(--tile-accent) 18%, transparent), transparent);
  border: 1px solid rgb(255 255 255 / 86%);
  border-radius: 28px;
  box-shadow: 0 16px 35px rgb(44 39 93 / 11%), inset 0 1px 0 #fff;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.module-tile::after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -50px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, color-mix(in srgb, var(--tile-accent) 24%, transparent), transparent 70%);
  pointer-events: none;
}

.module-tile:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: color-mix(in srgb, var(--tile-accent) 40%, #fff);
  box-shadow: 0 24px 44px rgb(44 39 93 / 17%), inset 0 1px 0 #fff;
}

.module-tile:active {
  transform: translateY(-1px);
}

.module-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--tile-accent) 82%, white), var(--tile-accent));
  border-radius: 17px;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--tile-accent) 28%, transparent), inset 0 1px 0 rgb(255 255 255 / 45%);
}

.module-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.module-name {
  max-width: 85%;
  font-size: 1.02rem;
  font-weight: 850;
  line-height: 1.25;
  text-transform: uppercase;
}

.module-arrow {
  position: absolute;
  right: 1.35rem;
  bottom: 1.2rem;
  color: var(--tile-accent);
  font-size: 1.5rem;
  font-weight: 500;
}

.module-tile--registration {
  --tile-accent: #a97a00;
}

.module-tile--respite {
  --tile-accent: #c42465;
}

.module-tile--daycare {
  --tile-accent: #007f68;
}

.module-tile--mobile {
  --tile-accent: #2454a4;
}

.module-tile--reporting {
  --tile-accent: #8c1320;
}

.module-tile--todo {
  --tile-accent: #555b67;
}

.module-message {
  min-height: 1.35rem;
  margin: 1.5rem 0 0;
  color: var(--brand-indigo-dark);
  text-align: center;
  font-weight: 750;
}

.modules-footer {
  position: relative;
  z-index: 10;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  color: #4c5268;
  font-size: 0.78rem;
}

.modules-footer img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.modules-footer a {
  min-height: auto;
  color: var(--brand-indigo-dark);
  font-weight: 700;
  text-underline-offset: 3px;
}

.modules-footer a:hover {
  color: var(--brand-pink-dark);
}

.modules-footer a:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 3px;
}

.form-page {
  min-width: 1120px;
  min-height: max(var(--desktop-height, 100vh), 720px);
  padding: 0 0 0.75rem;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 88% 8%, rgb(223 23 96 / 20%), transparent 34%),
    radial-gradient(circle at 10% 88%, rgb(65 75 155 / 20%), transparent 36%),
    linear-gradient(135deg, #f7f4fb, #edf5fc);
}

.form-page > .modules-footer {
  margin-top: 0.85rem;
}

.modules-footer--compact {
  min-height: 34px;
  gap: 0.45rem;
  font-size: 0.68rem;
}

.modules-footer--compact img {
  width: 24px;
  height: 24px;
}

.form-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  min-height: 76px;
  margin: 0;
  padding-block: 0.35rem;
  padding-inline: 1.5rem;
  justify-content: flex-start;
  background: linear-gradient(
    110deg,
    color-mix(in srgb, var(--module-accent, #c42465) 13%, white),
    rgb(255 255 255 / 94%)
  );
  border-inline: none;
  border-radius: 0;
}

.form-header .header-brand {
  position: relative;
  z-index: 1;
}

.form-header .modules-header__logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.form-header .modules-header__logo--respite,
.form-header .modules-header__logo--registration,
.form-header .modules-header__logo--reporting,
.form-header .modules-header__logo--todo {
  width: 54px;
  height: 54px;
  color: #fff;
  border-radius: 17px;
}

.form-header .modules-header__logo--respite {
  background: linear-gradient(145deg, color-mix(in srgb, #c42465 82%, white), #c42465);
  box-shadow: 0 10px 22px rgb(196 36 101 / 28%), inset 0 1px 0 rgb(255 255 255 / 45%);
}

.form-header .modules-header__logo--registration {
  background: linear-gradient(145deg, color-mix(in srgb, #a97a00 82%, white), #a97a00);
  box-shadow: 0 10px 22px rgb(169 122 0 / 28%), inset 0 1px 0 rgb(255 255 255 / 45%);
}

.form-header .modules-header__logo--reporting {
  background: linear-gradient(145deg, color-mix(in srgb, #8c1320 82%, white), #8c1320);
  box-shadow: 0 10px 22px rgb(140 19 32 / 28%), inset 0 1px 0 rgb(255 255 255 / 45%);
}

.form-header .modules-header__logo--todo {
  background: linear-gradient(145deg, color-mix(in srgb, #555b67 82%, white), #555b67);
  box-shadow: 0 10px 22px rgb(85 91 103 / 28%), inset 0 1px 0 rgb(255 255 255 / 45%);
}

.form-header .modules-header__logo--daycare {
  width: 54px;
  height: 54px;
  color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, #007f68 82%, white), #007f68);
  border-radius: 17px;
  box-shadow: 0 10px 22px rgb(0 127 104 / 28%), inset 0 1px 0 rgb(255 255 255 / 45%);
}

.form-header .modules-header__logo--mobile {
  width: 54px;
  height: 54px;
  color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, #2454a4 82%, white), #2454a4);
  border-radius: 17px;
  box-shadow: 0 10px 22px rgb(36 84 164 / 28%), inset 0 1px 0 rgb(255 255 255 / 45%);
}

body.respite-page {
  --module-accent: #c42465;
}

body.daycare-page {
  --module-accent: #007f68;
}

body.itinerant-page {
  --module-accent: #2454a4;
}

body.dossier-page {
  --module-accent: #c42465;
}

body.preinscription-page {
  --module-accent: #a97a00;
}

body.reporting-page {
  --module-accent: #8c1320;
}

body.todo-page {
  --module-accent: #555b67;
}

.header-brand {
  min-height: auto;
  display: block;
  border-radius: 19px;
}

.form-header__title {
  position: absolute;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
}

.form-header__title span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-header__title strong {
  display: block;
  padding: 0.12rem 0.55rem;
  color: #fff;
  background: linear-gradient(120deg, color-mix(in srgb, var(--module-accent, var(--brand-indigo)) 82%, white), var(--module-accent, var(--brand-indigo)));
  border-radius: 9px;
  box-shadow: 0 5px 14px color-mix(in srgb, var(--module-accent, var(--brand-indigo)) 22%, transparent);
  font-size: 1.15rem;
  line-height: 1.35;
  text-align: center;
}

.header-brand:focus-visible,
.stepper__item:focus-visible,
.primary-action:focus-visible,
.secondary-action:focus-visible,
.photo-button:focus-within,
.editor-toolbar button:focus-visible,
.editor-toolbar select:focus-visible,
.field input:focus-visible,
.field select:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 3px;
}

.form-workspace {
  width: min(100% - 3rem, 1400px);
  min-height: 0;
  margin: 0.75rem auto 0;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  align-items: stretch;
  gap: 1.25rem;
}

.form-main {
  min-width: 0;
  min-height: 0;
  overflow: visible;
}

.action-sidebar {
  position: sticky;
  top: 104px;
  align-self: start;
  max-height: calc(var(--desktop-height, 100vh) - 116px);
  min-height: 0;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: linear-gradient(145deg, rgb(255 255 255 / 78%), rgb(255 255 255 / 50%));
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  box-shadow: 0 16px 36px rgb(43 36 103 / 9%), inset 0 1px 0 #fff;
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
}

.sidebar-accessibility {
  margin-top: auto;
  padding: 0.55rem;
  display: grid;
  gap: 0.4rem;
  background: rgb(255 255 255 / 54%);
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 15px;
}

.sidebar-accessibility__title {
  padding: 0 0.15rem 0.15rem;
  color: var(--brand-pink-dark);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-accessibility .accessibility-button {
  width: 100%;
  padding: 0.45rem 0.55rem;
  justify-content: flex-start;
  gap: 0.5rem;
  color: var(--brand-indigo-dark);
  background: rgb(255 255 255 / 68%);
  border-color: rgb(63 70 150 / 18%);
  opacity: 1;
  font-size: 0.7rem;
  text-align: left;
}

.sidebar-accessibility .accessibility-button > span:first-child {
  min-width: 25px;
  font-size: 0.8rem;
  text-align: center;
}

.sidebar-accessibility .accessibility-button[aria-pressed="true"] {
  color: #fff;
  background: var(--brand-indigo-dark);
}

.action-sidebar__heading {
  padding: 0.15rem 0.4rem 0.65rem;
  display: flex;
  flex-direction: column;
}

.action-sidebar__heading span {
  color: var(--brand-pink-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.action-sidebar__heading strong {
  margin-top: 0.15rem;
  font-size: 1rem;
}

.action-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sidebar-action {
  --action-color: var(--brand-indigo);
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: color-mix(in srgb, var(--action-color) 72%, #111);
  text-align: left;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 74%), rgb(255 255 255 / 42%)),
    color-mix(in srgb, var(--action-color) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--action-color) 28%, white);
  border-radius: 12px;
  box-shadow: 0 7px 16px color-mix(in srgb, var(--action-color) 10%, transparent), inset 0 1px 0 rgb(255 255 255 / 72%);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  font-size: 0.76rem;
  font-weight: 750;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.sidebar-action svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.sidebar-action > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sidebar-action:hover {
  transform: translateX(3px);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 88%), rgb(255 255 255 / 58%)),
    color-mix(in srgb, var(--action-color) 24%, transparent);
  box-shadow: 0 10px 20px color-mix(in srgb, var(--action-color) 14%, transparent), inset 0 1px 0 #fff;
}

.sidebar-action--purple { --action-color: #79278d; }
.sidebar-action--green { --action-color: #168337; }
.sidebar-action--blue { --action-color: #176dcc; }
.sidebar-action--red { --action-color: #c72e3d; }

.sidebar-action:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 3px;
}

.sidebar-action--save {
  --action-color: #15803d;
  aspect-ratio: 1;
  min-height: 0;
  margin-block: 0.25rem;
  padding: 0.65rem 0.5rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  color: #fff;
  text-align: center;
  background: #15803d;
  border: 2px solid #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgb(45 50 126 / 28%), inset 0 2px 0 rgb(255 255 255 / 40%);
  font-size: 0.8rem;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgb(0 0 0 / 28%);
}

.sidebar-action--save svg {
  width: 38px;
  height: 38px;
}

.sidebar-action--save:hover {
  transform: translateY(-3px);
  background: #166534;
  box-shadow: 0 16px 30px rgb(45 50 126 / 36%), inset 0 2px 0 rgb(255 255 255 / 50%);
}

.sidebar-action--notify {
  background: #15803d;
  box-shadow: 0 12px 24px rgb(13 111 140 / 30%), inset 0 2px 0 rgb(255 255 255 / 40%);
}

.sidebar-action--notify:hover {
  background: #166534;
  box-shadow: 0 16px 30px rgb(13 111 140 / 38%), inset 0 2px 0 rgb(255 255 255 / 50%);
}

.preinscription-page .sidebar-action--notify {
  background: #c21875;
  box-shadow: 0 12px 24px rgb(194 24 117 / 30%), inset 0 2px 0 rgb(255 255 255 / 40%);
}

.preinscription-page .sidebar-action--notify:hover {
  background: #a91565;
  box-shadow: 0 16px 30px rgb(194 24 117 / 38%), inset 0 2px 0 rgb(255 255 255 / 50%);
}

.sidebar-action--list,
.sidebar-action--solid {
  min-height: 68px;
  margin-block: 0.25rem;
  padding: 0.5rem 0.6rem;
  justify-content: center;
  gap: 0.5rem;
  color: #fff;
  text-align: center;
  background: linear-gradient(120deg, #5a1d86, #8b2aa8, #b3309b);
  border: 2px solid #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 20px rgb(90 29 134 / 30%), inset 0 2px 0 rgb(255 255 255 / 40%);
  font-size: 0.78rem;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgb(0 0 0 / 28%);
}

.sidebar-action--list svg,
.sidebar-action--solid svg {
  width: 24px;
  height: 24px;
}

.sidebar-action--list:hover,
.sidebar-action--solid:hover {
  transform: translateY(-3px);
  background: linear-gradient(120deg, #6d26a0, #a033c4, #cc3bb0);
  box-shadow: 0 14px 26px rgb(90 29 134 / 38%), inset 0 2px 0 rgb(255 255 255 / 50%);
}

.sidebar-action--add {
  background: linear-gradient(120deg, #0f5fa8, #1f85d6, #1aa3b8);
  box-shadow: 0 10px 20px rgb(15 95 168 / 30%), inset 0 2px 0 rgb(255 255 255 / 40%);
}

.sidebar-action--add:hover {
  background: linear-gradient(120deg, #1472c4, #2a9bf0, #21bbd2);
  box-shadow: 0 14px 26px rgb(15 95 168 / 38%), inset 0 2px 0 rgb(255 255 255 / 50%);
}

.sidebar-action--edit {
  background: linear-gradient(120deg, #1b6b4f, #2a9a63, #6bb33a);
  box-shadow: 0 10px 20px rgb(27 107 79 / 30%), inset 0 2px 0 rgb(255 255 255 / 40%);
}

.sidebar-action--edit:hover {
  background: linear-gradient(120deg, #227f5e, #33b374, #7cc947);
  box-shadow: 0 14px 26px rgb(27 107 79 / 38%), inset 0 2px 0 rgb(255 255 255 / 50%);
}

.preinscription-page .sidebar-action--edit {
  color: #422600;
  background: linear-gradient(120deg, #f59e0b, #fbbf24, #fcd34d);
  box-shadow: 0 10px 20px rgb(180 100 0 / 30%), inset 0 2px 0 rgb(255 255 255 / 40%);
}

.preinscription-page .sidebar-action--edit:hover {
  background: linear-gradient(120deg, #fbb026, #facc3d, #fde078);
  box-shadow: 0 14px 26px rgb(180 100 0 / 38%), inset 0 2px 0 rgb(255 255 255 / 50%);
}

.sidebar-action--cancel {
  background: linear-gradient(120deg, #9b1f35, #c72e3d, #e0603c);
  box-shadow: 0 10px 20px rgb(155 31 53 / 30%), inset 0 2px 0 rgb(255 255 255 / 40%);
}

.sidebar-action--cancel:hover {
  background: linear-gradient(120deg, #b52640, #e03a4b, #f2724a);
  box-shadow: 0 14px 26px rgb(155 31 53 / 38%), inset 0 2px 0 rgb(255 255 255 / 50%);
}

.sidebar-action--delete {
  color: #fff;
  background: linear-gradient(120deg, #15171f, #2b2f3c, #171a23);
  border: 1px solid rgb(255 255 255 / 35%);
  box-shadow: 0 10px 20px rgb(10 12 18 / 34%), inset 0 1px 0 rgb(255 255 255 / 18%);
  text-shadow: 0 1px 2px rgb(0 0 0 / 45%);
}

.sidebar-action--delete:hover {
  background: linear-gradient(120deg, #22252f, #3b4152, #232734);
  box-shadow: 0 14px 26px rgb(10 12 18 / 42%), inset 0 1px 0 rgb(255 255 255 / 26%);
}

.sidebar-action--instruction {
  color: #fff;
  background: linear-gradient(120deg, #b85304, #e8740c, #f59a1e);
  border: 1px solid rgb(255 255 255 / 45%);
  box-shadow: 0 10px 20px rgb(184 83 4 / 30%), inset 0 1px 0 rgb(255 255 255 / 32%);
  text-shadow: 0 1px 2px rgb(0 0 0 / 32%);
}

.sidebar-action--instruction:hover {
  background: linear-gradient(120deg, #d16105, #fb8613, #ffad35);
  box-shadow: 0 14px 26px rgb(184 83 4 / 38%), inset 0 1px 0 rgb(255 255 255 / 42%);
}

.registration-shell {
  height: auto;
  min-height: 0;
  padding: 0.55rem;
  display: flex;
  flex-direction: column;
  overflow: visible;
  background: linear-gradient(145deg, rgb(255 255 255 / 76%), rgb(255 255 255 / 52%));
  border: 1px solid var(--glass-border);
  border-radius: 36px;
  box-shadow: var(--shadow), inset 0 1px 0 #fff;
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
}

.stepper {
  max-width: 700px;
  margin: 0 auto 0.35rem;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.stepper__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.65rem 0.4rem 0.4rem;
  color: #676d80;
  background: transparent;
  border: 0;
  border-radius: 999px;
}

.stepper__item > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #9297a5;
  border-radius: 50%;
  font-size: 0.8rem;
}

.stepper__item.is-active {
  color: var(--brand-indigo-dark);
  background: rgb(255 255 255 / 68%);
  box-shadow: 0 8px 20px rgb(43 36 103 / 9%);
}

.stepper__item.is-active > span {
  background: linear-gradient(145deg, var(--brand-pink), var(--brand-indigo));
}

.stepper__line {
  height: 2px;
  background: rgb(63 70 150 / 17%);
}

.form-status {
  display: none;
}

.registration-step {
  min-height: 0;
  padding: 0.65rem 1.25rem;
  background: rgb(255 255 255 / 58%);
  border: 1px solid rgb(255 255 255 / 82%);
  border-radius: 28px;
  box-shadow: 0 14px 34px rgb(43 36 103 / 9%);
}

.registration-step[data-step="1"] {
  margin: 0.75rem 0 1.25rem;
  background: rgb(226 228 240 / 76%);
}

.registration-step[hidden] {
  display: none;
}

.pre-orientation-note {
  margin: 1.25rem 0;
  padding: 0.85rem 1.25rem 1rem;
  display: grid;
  gap: 0.4rem;
  background: rgb(255 255 255 / 58%);
  border: 1px solid rgb(255 255 255 / 82%);
  border-radius: 28px;
  box-shadow: 0 14px 34px rgb(43 36 103 / 9%);
}

.pre-orientation-note__label {
  color: var(--brand-pink-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pre-orientation-note__field {
  width: 100%;
  min-height: 86px;
  padding: 0.6rem 0.85rem;
  color: #1f2333;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.45;
  background: rgb(255 255 255 / 86%);
  border: 1.5px solid rgb(63 70 150 / 24%);
  border-radius: 16px;
  resize: vertical;
}

.pre-orientation-note__field::placeholder {
  color: #767d93;
}

.pre-orientation-note__field:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--brand-indigo);
}

.records-page {
  min-width: 1120px;
  min-height: max(var(--desktop-height, 100vh), 720px);
  padding: 0 0 0.75rem;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 88% 8%, rgb(223 23 96 / 20%), transparent 34%),
    radial-gradient(circle at 10% 88%, rgb(65 75 155 / 20%), transparent 36%),
    linear-gradient(135deg, #f7f4fb, #edf5fc);
}

body.respite-page,
body.daycare-page,
body.itinerant-page {
  height: var(--desktop-height, 100vh);
  min-height: 0;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr);
}

.records-main {
  width: min(100% - 3rem, 1500px);
  min-height: 0;
  margin: 0.75rem auto 0;
  display: flex;
  flex-direction: column;
}

.records-shell {
  flex: 1;
  min-height: 0;
  padding: 0.85rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(145deg, rgb(255 255 255 / 76%), rgb(255 255 255 / 52%));
  border: 1px solid var(--glass-border);
  border-radius: 36px;
  box-shadow: var(--shadow), inset 0 1px 0 #fff;
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
}

.records-shell__header {
  margin-bottom: 0.65rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.records-shell__header > div > span {
  color: var(--brand-pink-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.records-shell__header h1 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: -0.035em;
  outline: none;
}

.records-shell__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-header .sidebar-accessibility--inline {
  margin-left: auto;
  position: relative;
  z-index: 1;
}

.sidebar-accessibility--inline {
  margin: 0;
  padding: 0.3rem;
  display: flex;
  gap: 0.3rem;
  background: rgb(255 255 255 / 44%);
  border: 1px solid rgb(255 255 255 / 68%);
  border-radius: 16px;
}

.sidebar-accessibility--inline .accessibility-button {
  width: 44px;
  padding: 0;
  justify-content: center;
}

.sidebar-accessibility--inline .accessibility-button span:last-child {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.records-table-wrapper.records-table-wrapper--full {
  flex: 1;
  min-height: 0;
  margin: 0 -1.25rem;
  width: calc(100% + 2.5rem);
  border-radius: 0;
  border-inline: 0;
}

.records-table-wrapper--full .records-table {
  width: 100%;
  min-width: 1200px;
}

.records-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
}

.records-pagination {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid rgb(45 50 126 / 12%);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgb(45 50 126 / 8%);
}

.pagination-button {
  min-width: 40px;
  min-height: 40px;
  padding: 0 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--brand-indigo-dark, #2d327e);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.pagination-button:hover:not(:disabled):not(.is-active) {
  background: rgb(45 50 126 / 8%);
  transform: translateY(-1px);
}

.pagination-button.is-active {
  color: #fff;
  background: linear-gradient(120deg, var(--brand-indigo-dark, #2d327e), #555aaf, var(--brand-pink-dark, #d63384));
  box-shadow: 0 6px 16px rgb(45 50 126 / 30%);
}

.pagination-button:disabled {
  color: rgb(45 50 126 / 30%);
  cursor: not-allowed;
}

.pagination-ellipsis {
  min-width: 24px;
  text-align: center;
  color: rgb(45 50 126 / 40%);
  font-weight: 700;
}

.archived-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  color: #4d3a00;
  background: linear-gradient(120deg, #ffd65a, #ffc627);
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgb(255 198 39 / 35%);
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.archived-action svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.respite-page .records-pagination,
.daycare-page .records-pagination,
.itinerant-page .records-pagination {
  padding-block: 0.15rem;
}

.respite-page .archived-action,
.daycare-page .archived-action,
.itinerant-page .archived-action {
  min-height: 44px;
  padding-block: 0.45rem;
}

.archived-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgb(255 198 39 / 45%);
}

.archived-action.is-active {
  color: #fff;
  background: linear-gradient(120deg, var(--brand-indigo-dark), #555aaf, var(--brand-pink-dark));
  box-shadow: 0 10px 24px rgb(45 50 126 / 20%);
}

.records-shell .records-legend {
  margin: 0 0 0.65rem;
}

.records-status {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.step-heading {
  margin-bottom: 0.65rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.step-heading > div > span {
  color: var(--brand-pink-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-heading h1,
.step-heading h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  letter-spacing: -0.035em;
  outline: none;
}

.file-number,
.dossier-reminder {
  min-width: 240px;
  margin: 0;
}

.file-number {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  font-weight: 750;
}

.file-number input {
  width: 150px;
}

.dossier-reminder {
  color: var(--muted);
  text-align: right;
  font-size: 0.85rem;
}

.dossier-reminder strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.form-content-with-photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: start;
  gap: 1.25rem;
}

.registration-step[data-step="2"] .form-content-with-photo {
  grid-template-columns: 1fr;
}

.registration-step[data-step="1"] .form-content-with-photo {
  grid-template-columns: minmax(0, 1fr) 190px;
}

.registration-step[data-step="1"] .form-content-with-photo > .choice-group {
  grid-column: 1 / -1;
  width: 100%;
}

.fields-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.28rem 0.5rem;
}

.identity-fields,
.administrative-fields,
.birth-fields,
.contact-fields,
.locality-fields {
  display: grid;
  gap: 0.55rem;
}

.identity-fields {
  grid-template-columns: minmax(130px, 0.55fr) minmax(0, 1.45fr) minmax(0, 1.45fr);
}

.preinscription-page .identity-fields {
  grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1fr);
}

.administrative-fields {
  grid-template-columns: minmax(0, 1.45fr) 185px minmax(220px, 1fr);
}

.preinscription-page .administrative-fields {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) 150px minmax(0, 0.7fr);
}

@media (max-width: 900px) {
  .preinscription-page .administrative-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .preinscription-page .administrative-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

.birth-fields {
  grid-template-columns: minmax(0, 2fr) 185px 120px;
}

.contact-fields {
  grid-template-columns: minmax(150px, 0.85fr) minmax(150px, 0.85fr) minmax(150px, 0.85fr) minmax(230px, 1.45fr);
}

.locality-fields {
  grid-template-columns: 150px minmax(320px, 1.8fr) minmax(190px, 0.9fr);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.field--small {
  grid-column: span 1;
}

.field--wide {
  grid-column: span 2;
}

.field--full {
  grid-column: 1 / -1;
}

.field > span,
.field > label,
.choice-group legend {
  color: #3d4359;
  font-size: 0.74rem;
  font-weight: 750;
}

form.registration-shell input,
form.registration-shell select,
.file-number input,
.editor-style select {
  width: 100%;
  height: 30px;
  min-height: 30px;
  padding: 0 0.6rem;
  color: var(--ink);
  background: rgb(255 255 255 / 78%);
  border: 1.5px solid rgb(82 87 127 / 20%);
  border-radius: 10px;
  outline: none;
  font-size: 0.8rem;
  box-sizing: border-box;
}

.field input,
.field select,
.file-number input,
.editor-style select {
  width: 100%;
  height: 30px;
  min-height: 30px;
  padding: 0 0.6rem;
  color: var(--ink);
  background: rgb(255 255 255 / 78%);
  border: 1.5px solid rgb(82 87 127 / 20%);
  border-radius: 10px;
  outline: none;
  font-size: 0.8rem;
  box-sizing: border-box;
}

.field input:focus,
.field select:focus,
.file-number input:focus {
  background: #fff;
  border-color: var(--brand-indigo);
  box-shadow: 0 0 0 4px rgb(63 70 150 / 12%);
}

@supports (appearance: base-select) {
  .preinscription-page .field select,
  .preinscription-page .field select::picker(select),
  .field select.modern-select,
  .field select.modern-select::picker(select) {
    appearance: base-select;
  }

  .preinscription-page .field select,
  .field select.modern-select {
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
  }

  .preinscription-page .field select::picker-icon,
  .field select.modern-select::picker-icon {
    color: var(--brand-indigo);
    transition: rotate 0.15s ease;
  }

  .preinscription-page .field select:open::picker-icon,
  .field select.modern-select:open::picker-icon {
    rotate: 180deg;
  }

  .preinscription-page .field select::picker(select),
  .field select.modern-select::picker(select) {
    max-height: min(360px, 45vh);
    overflow-y: auto;
    padding: 0.35rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid rgb(82 87 127 / 20%);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgb(40 45 90 / 18%);
  }

  .preinscription-page .field select option,
  .field select.modern-select option {
    min-height: 34px;
    padding: 0.5rem 0.65rem;
    gap: 0.6rem;
    border-radius: 7px;
    white-space: normal;
    font-size: 0.8rem;
  }

  .preinscription-page .field select option:hover,
  .preinscription-page .field select option:focus,
  .field select.modern-select option:hover,
  .field select.modern-select option:focus {
    color: #303775;
    background: #eef0fc;
  }

  .preinscription-page .field select option:checked,
  .field select.modern-select option:checked {
    color: #303775;
    background: #e3e7fb;
    font-weight: 800;
  }

  .high-contrast.preinscription-page .field select::picker(select),
  .high-contrast.preinscription-page .field select option,
  .high-contrast .field select.modern-select::picker(select),
  .high-contrast .field select.modern-select option {
    color: #fff;
    background: #000;
    border-color: #fff;
  }

  .high-contrast.preinscription-page .field select option:checked,
  .high-contrast.preinscription-page .field select option:hover,
  .high-contrast.preinscription-page .field select option:focus,
  .high-contrast .field select.modern-select option:checked,
  .high-contrast .field select.modern-select option:hover,
  .high-contrast .field select.modern-select option:focus {
    color: #000;
    background: #ffeb3b;
  }
}

.field input[readonly] {
  color: #565d73;
  background: rgb(225 228 239 / 68%);
}

form.registration-shell[data-form-mode="add"] .field input,
form.registration-shell[data-form-mode="add"] .field select,
form.registration-shell[data-form-mode="add"] .file-number input {
  background: rgb(222 249 253 / 85%);
  border-color: #0f9bb5;
}

form.registration-shell[data-form-mode="add"] .field input:focus,
form.registration-shell[data-form-mode="add"] .field select:focus,
form.registration-shell[data-form-mode="add"] .file-number input:focus {
  background: #fff;
  border-color: #0b7f96;
  box-shadow: 0 0 0 4px rgb(15 155 181 / 20%);
}

form.registration-shell[data-form-mode="edit"] .field input,
form.registration-shell[data-form-mode="edit"] .field select,
form.registration-shell[data-form-mode="edit"] .pre-orientation-note__field,
form.registration-shell[data-form-mode="edit"] .rich-editor,
form.registration-shell[data-form-mode="edit"] .file-number input {
  background: rgb(226 249 232 / 85%);
  border-color: #189b45;
}

form.registration-shell[data-form-mode="edit"] .field input:focus,
form.registration-shell[data-form-mode="edit"] .field select:focus,
form.registration-shell[data-form-mode="edit"] .pre-orientation-note__field:focus,
form.registration-shell[data-form-mode="edit"] .rich-editor:focus,
form.registration-shell[data-form-mode="edit"] .file-number input:focus {
  background: #fff;
  border-color: #127a36;
  box-shadow: 0 0 0 4px rgb(24 155 69 / 20%);
}

form.registration-shell[data-form-mode] .field input[readonly] {
  color: #565d73;
  background: rgb(225 228 239 / 68%);
  border-color: rgb(82 87 127 / 20%);
}

body.large-text form.registration-shell input,
body.large-text form.registration-shell select,
body.large-text .field input,
body.large-text .field select,
body.large-text .field textarea,
body.large-text .file-number input,
body.large-text .input-group input,
body.large-text .todo-search input,
body.large-text .filter-row input,
body.large-text input,
body.large-text select,
body.large-text textarea,
body.large-text button {
  font-size: 1rem;
  min-height: 42px;
  height: 42px;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

body.large-text .field > span,
body.large-text .choice-group legend,
body.large-text label,
body.large-text .sidebar-accessibility .accessibility-button,
body.large-text .modules-heading h1,
body.large-text .login-heading h1 {
  font-size: 1.08em;
}

.choice-group {
  margin: 0.1rem 0 0;
  padding: 0;
  border: 0;
}

.choice-group legend {
  margin-bottom: 0.4rem;
}

.choice-grid,
.orientation-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.3rem;
  align-items: center;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  grid-template-columns: none;
  justify-content: start;
}

.orientation-grid {
  grid-template-columns: repeat(8, max-content);
  justify-content: start;
}

.choice-grid label,
.orientation-grid label {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.55rem;
  background: rgb(255 255 255 / 70%);
  border: 1px solid rgb(82 87 127 / 14%);
  border-radius: 10px;
  font-size: 0.72rem;
  line-height: 1.15;
  font-weight: 650;
  white-space: normal;
}

.orientation-grid label {
  gap: 0.3rem;
  white-space: nowrap;
}

.choice-grid label {
  gap: 0.3rem;
  padding-inline: 0.35rem;
  font-size: 0.68rem;
  white-space: nowrap;
}

form.registration-shell .choice-grid input[type="checkbox"] {
  width: 13px;
  height: 13px;
  min-width: 13px;
  min-height: 13px;
  padding: 0;
  margin: 0;
  vertical-align: middle;
  accent-color: var(--brand-indigo);
}

form.registration-shell .orientation-grid input[type="checkbox"] {
  width: 13px;
  height: 13px;
  min-width: 13px;
  min-height: 13px;
  padding: 0;
  margin: 0;
  vertical-align: middle;
  accent-color: var(--brand-indigo);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot--blue { background: #174fc6; }
.dot--red { background: #a50819; }
.dot--green { background: #17851c; }
.dot--orange { background: #dd6d00; }
.dot--yellow { background: #e3ae00; }
.dot--pink { background: #df4b85; }
.dot--cyan { background: #00a998; }
.dot--gray { background: #5d6572; }

.photo-card {
  width: 190px;
  padding: 0.7rem;
  background: rgb(255 255 255 / 62%);
  border: 1px solid rgb(223 31 101 / 25%);
  border-radius: 20px;
}

.registration-step[data-step="2"] .photo-card {
  width: min(100%, 220px);
  margin: 0.5rem auto 0;
  justify-self: center;
  order: 2;
}

.photo-preview {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border-radius: 19px;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.photo-button {
  min-height: 44px;
  margin-top: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--brand-indigo-dark);
  background: #fff;
  border: 1px solid rgb(63 70 150 / 22%);
  border-radius: 11px;
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
}

.photo-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

form.registration-shell .photo-button input {
  width: 1px;
  min-width: 1px;
  height: 1px;
  min-height: 1px;
  padding: 0;
}

.form-navigation,
.editor-actions {
  margin-top: 0.35rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.primary-action,
.secondary-action {
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border-radius: 14px;
  font-weight: 800;
}

.primary-action {
  color: #fff;
  background: linear-gradient(120deg, var(--brand-indigo-dark), #555aaf, var(--brand-pink-dark));
  border: 0;
  box-shadow: 0 10px 24px rgb(45 50 126 / 20%);
}

.secondary-action {
  color: var(--brand-indigo-dark);
  background: rgb(255 255 255 / 75%);
  border: 1.5px solid rgb(63 70 150 / 28%);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
}

.registration-step--editor {
  flex: 1;
  min-height: 0;
}

.editor-shell {
  overflow: hidden;
  background: rgb(255 255 255 / 74%);
  border: 1.5px solid rgb(82 87 127 / 20%);
  border-radius: 20px;
}

.editor-toolbar {
  min-height: 58px;
  padding: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgb(245 246 251 / 92%);
  border-bottom: 1px solid rgb(82 87 127 / 16%);
}

.editor-toolbar[hidden] {
  display: none;
}

.editor-ckeditor-toolbar .cke_shared {
  width: auto;
  border: 0;
  border-bottom: 1px solid rgb(82 87 127 / 20%);
  box-shadow: none;
}

.editor-toolbar button,
.editor-style select {
  min-width: 44px;
  height: 44px;
  padding: 0 0.7rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgb(82 87 127 / 18%);
  border-radius: 11px;
  font-weight: 700;
}

.editor-style select {
  width: 140px;
}

.editor-toolbar button:hover {
  color: #fff;
  background: var(--brand-indigo);
}

.toolbar-separator {
  width: 1px;
  height: 28px;
  margin-inline: 0.25rem;
  background: rgb(82 87 127 / 20%);
}

.rich-editor {
  min-height: 330px;
  padding: 1.25rem;
  color: var(--ink);
  background: rgb(255 255 255 / 64%);
  outline: none;
  line-height: 1.6;
}

.rich-editor:empty::before {
  content: attr(data-placeholder);
  color: #757b8e;
  pointer-events: none;
}

.rich-editor:focus {
  box-shadow: inset 0 0 0 3px rgb(63 70 150 / 14%);
}

.high-contrast .registration-shell,
.high-contrast .registration-step,
.high-contrast .photo-card,
.high-contrast .editor-shell,
.high-contrast .action-sidebar {
  background: #fff;
  border: 3px solid #000;
  box-shadow: none;
}

.high-contrast .sidebar-action {
  color: #fff;
  background: #000;
  border: 2px solid #000;
  box-shadow: none;
}

.records-dialog {
  width: min(98vw, 1800px);
  height: min(96vh, 1140px);
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: clip;
  color: var(--ink);
  background: rgb(250 250 253 / 94%);
  border: 1px solid rgb(255 255 255 / 90%);
  border-radius: 28px;
  box-shadow: 0 35px 90px rgb(25 24 63 / 30%), inset 0 1px 0 #fff;
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
}

.confirm-dialog {
  width: min(92vw, 440px);
  padding: 1.5rem;
  color: var(--ink);
  background: rgb(250 250 253 / 97%);
  border: 1px solid rgb(255 255 255 / 90%);
  border-radius: 22px;
  box-shadow: 0 28px 70px rgb(25 24 63 / 28%), inset 0 1px 0 #fff;
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.confirm-dialog::backdrop {
  background: rgb(24 25 49 / 38%);
  backdrop-filter: blur(6px);
}

.confirm-dialog__title {
  margin: 0 0 0.6rem;
  color: var(--brand-indigo-dark);
  font-size: 1.25rem;
}

.confirm-dialog__text {
  margin: 0 0 1.25rem;
  color: #3d4359;
  font-size: 0.9rem;
  line-height: 1.45;
}

.confirm-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

#add-caregiver-dialog {
  width: min(96vw, 1440px);
  max-height: 90vh;
  overflow-y: auto;
}

.caregiver-radio-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 1rem;
  margin-top: 1rem;
}

.caregiver-radio-group {
  min-width: 0;
  margin: 0;
  padding: 0.65rem;
  background: rgb(243 241 252 / 65%);
  border: 1px solid rgb(63 70 150 / 20%);
  border-radius: 14px;
}

.caregiver-radio-group legend {
  padding: 0 0.35rem;
  color: var(--brand-indigo-dark);
  font-weight: 700;
}

.caregiver-radio-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 0.3rem;
  align-content: start;
  padding: 0.25rem;
}

#add-caregiver-dialog .caregiver-radio {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 32px;
  padding: 0.35rem 0.45rem;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #3d4359;
  background: rgb(255 255 255 / 75%);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  overflow-wrap: anywhere;
}

#add-caregiver-dialog .caregiver-radio input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand-indigo);
}

#add-caregiver-dialog .caregiver-radio:hover {
  border-color: rgb(63 70 150 / 35%);
}

#add-caregiver-dialog .caregiver-radio:has(input:checked) {
  color: #fff;
  background: linear-gradient(120deg, #474691, #923374);
  font-weight: 700;
}

#add-caregiver-dialog .caregiver-radio:has(input:focus-visible) {
  outline: 2px solid var(--brand-indigo);
  outline-offset: 1px;
}

.records-dialog[open] {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.records-dialog::backdrop {
  background: rgb(24 25 49 / 38%);
  backdrop-filter: blur(8px);
}

.records-dialog__header,
.records-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.records-dialog__actions,
.dialog-accessibility {
  display: flex;
  align-items: center;
}

.records-dialog__actions {
  gap: 0.75rem;
}

.dialog-accessibility {
  gap: 0.4rem;
  padding: 0.3rem;
  background: rgb(255 255 255 / 44%);
  border: 1px solid rgb(255 255 255 / 68%);
  border-radius: 16px;
}

.todo-shell {
  gap: 1rem;
  overflow: visible;
}

.todo-hero {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.todo-hero__title {
  margin: 0;
}

.todo-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
}

.todo-search {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--brand-indigo-dark);
  font-weight: 800;
}

.todo-search__field {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.todo-search__icon {
  position: absolute;
  left: 0.85rem;
  width: 18px;
  height: 18px;
  fill: var(--brand-indigo);
  opacity: 0.75;
  pointer-events: none;
}

.todo-search input {
  width: 300px;
  height: 46px;
  padding: 0 0.9rem 0 2.6rem;
  color: var(--ink);
  background: linear-gradient(135deg, rgb(255 255 255 / 92%), rgb(236 248 252 / 88%));
  border: 1.5px solid rgb(63 70 150 / 18%);
  border-radius: 999px;
  outline: none;
  box-shadow: 0 10px 22px rgb(43 36 103 / 8%), inset 0 1px 0 #fff;
}

.todo-search input::placeholder {
  color: #6b7288;
  font-weight: 600;
}

.todo-search input:focus-visible {
  background: #fff;
  border-color: var(--brand-indigo);
  box-shadow: 0 0 0 4px rgb(63 70 150 / 18%);
}

.todo-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.todo-action-button {
  min-height: 38px;
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--brand-indigo-dark);
  border-radius: 14px;
}

.todo-action-button svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.todo-action-button--excel {
  color: #fff;
  background: linear-gradient(120deg, #168a4f, #0f6f43);
  border: 0;
}

.todo-table-card {
  overflow: clip;
  background: rgb(255 255 255 / 78%);
  border: 1px solid rgb(63 70 150 / 16%);
  border-radius: 20px;
  box-shadow: 0 16px 38px rgb(43 36 103 / 9%), inset 0 1px 0 #fff;
}

.todo-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--ink);
  font-size: 0.82rem;
}

.todo-table th,
.todo-table td {
  padding: 0.78rem 0.8rem;
  border-bottom: 1px solid rgb(63 70 150 / 12%);
  text-align: left;
}

.todo-table-card > .todo-table > thead > tr > th:first-child,
.todo-table-card > .todo-table > tbody > .todo-dossier-row > th:first-child {
  width: 1%;
  white-space: nowrap;
  padding-inline: 0.5rem;
}

.todo-table tr > th:not(:last-child),
.todo-table tr > td:not(:last-child) {
  border-right: 1px solid rgb(63 70 150 / 12%);
}

.todo-table-card > .todo-table > thead > tr > th:nth-child(2),
.todo-table-card > .todo-table > thead > tr > th:nth-child(3) {
  width: 15%;
}

.todo-table-card > .todo-table > thead > tr > th:nth-child(4),
.todo-table-card > .todo-table > tbody > .todo-dossier-row > td:nth-child(4) {
  width: 1%;
  white-space: nowrap;
}

.todo-table thead th {
  position: sticky;
  top: 87px;
  z-index: 2;
  color: #fff;
  background: linear-gradient(120deg, #2f9fce, var(--brand-indigo), var(--brand-pink-dark));
  font-weight: 850;
  letter-spacing: 0.02em;
}

.todo-table tbody tr:nth-child(odd) {
  background: rgb(255 255 255 / 74%);
}

.todo-table tbody tr:nth-child(even) {
  background: rgb(47 159 206 / 9%);
}

.todo-table tbody tr:hover {
  background: rgb(255 242 247 / 90%);
}

.todo-table tbody td:nth-child(2),
.todo-table tbody td:nth-child(3),
.todo-table tbody td:nth-child(4),
.todo-table tbody td:nth-child(5),
.todo-table tbody td:nth-child(6) {
  font-weight: 700;
}

.todo-table a {
  color: #0b4fcf;
  font-weight: 850;
  text-decoration: none;
}

.todo-table a:hover {
  color: var(--brand-pink-dark);
  text-decoration: underline;
}

.todo-table a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

.todo-status-cell {
  white-space: nowrap;
  text-align: center !important;
}

.todo-status-button {
  position: relative;
  width: 30px;
  height: 30px;
  margin-inline: 0.35rem;
  display: inline-grid;
  place-items: center;
  background: #fff;
  border: 2px solid #8b91a3;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body:not(.high-contrast) input[type="tel"]::placeholder {
  color: #9ca3af;
  opacity: 1;
  font-weight: 400;
  font-style: italic;
}

.todo-status-button::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: inherit;
}

.todo-status-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgb(43 36 103 / 16%);
}

.todo-status-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.todo-status-button span,
.todo-state-icon {
  display: block;
  width: 13px;
  height: 13px;
}

.todo-status-button--todo.is-active {
  background: #006fff;
  border-color: #006fff;
  box-shadow: 0 0 0 4px rgb(0 111 255 / 12%);
}

.todo-status-button--todo span,
.todo-state-icon--todo {
  border: 3px solid #006fff;
  border-radius: 999px;
}

.todo-status-button--progress span,
.todo-state-icon--progress {
  position: relative;
}

.todo-status-button--progress span::before,
.todo-state-icon--progress::before {
  content: "";
  position: absolute;
  inset: 1px;
  border: 3px solid #0f8c34;
  border-top-color: transparent;
  border-left-color: transparent;
  transform: rotate(-45deg);
}

.todo-status-button--progress.is-active {
  background: #0f8c34;
  border-color: #0f8c34;
  box-shadow: 0 0 0 4px rgb(15 140 52 / 12%);
}

.todo-status-button--closed span,
.todo-state-icon--closed {
  background: #ff1616;
  border-radius: 3px;
}

.todo-status-button--closed.is-active {
  background: #ff1616;
  border-color: #ff1616;
  box-shadow: 0 0 0 4px rgb(255 22 22 / 12%);
}

.todo-status-button--todo.is-active span {
  border-color: #fff;
}

.todo-status-button--progress.is-active span::before {
  border-right-color: #fff;
  border-bottom-color: #fff;
}

.todo-status-button--closed.is-active span {
  background: #fff;
}

.todo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #565d73;
  font-weight: 700;
  font-size: 0.85rem;
}

.todo-dossier-toggle {
  width: 30px;
  height: 30px;
  min-height: 30px;
  margin-right: 0.65rem;
  border: 1px solid #e11b2e;
  border-radius: 8px;
  background: #e11b2e;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.todo-table .todo-group-container > td {
  padding: 0.35rem 0.5rem 0.6rem 1.5rem;
}

.todo-detail-table thead th {
  position: static;
}

.todo-dossier-row > th,
.todo-dossier-row > td {
  font-weight: 700;
}

.todo-group-summary {
  font-size: 0.8rem;
}

.todo-footer p {
  margin: 0;
}

.todo-pagination {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.todo-pagination button {
  min-width: 34px;
  min-height: 34px;
  padding: 0.25rem 0.65rem;
  font-size: 0.85rem;
  color: var(--brand-indigo-dark);
  background: rgb(255 255 255 / 80%);
  border: 1px solid rgb(63 70 150 / 14%);
  border-radius: 12px;
  font-weight: 750;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.todo-pagination button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgb(43 36 103 / 12%);
}

.todo-pagination button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.todo-pagination button.is-active {
  color: #fff;
  background: linear-gradient(120deg, var(--brand-indigo-dark), var(--brand-pink-dark));
  border-color: transparent;
}

.todo-pagination button:disabled {
  color: #6b7288;
  opacity: 0.65;
}

.todo-state-card {
  align-self: center;
  padding: 0.3rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgb(255 255 255 / 70%);
  border: 1px solid rgb(223 31 101 / 16%);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgb(43 36 103 / 7%), inset 0 1px 0 #fff;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.todo-state-card h2 {
  margin: 0;
  color: var(--brand-pink-dark);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.todo-state-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.todo-state-chip {
  padding: 0.16rem 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--brand-indigo-dark);
  background: rgb(255 255 255 / 82%);
  border: 1px solid rgb(63 70 150 / 14%);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
  white-space: nowrap;
}

.reporting-shell {
  overflow: visible;
}

.reporting-layout {
  display: grid;
  grid-template-columns: minmax(360px, 520px) minmax(460px, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.reporting-control-card,
.reporting-preview-card {
  min-height: 490px;
  background: rgb(255 255 255 / 70%);
  border: 1px solid rgb(63 70 150 / 15%);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgb(43 36 103 / 10%);
  backdrop-filter: blur(12px);
}

.reporting-control-card {
  padding: 1.55rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reporting-year-field {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: var(--brand-indigo-dark);
  font-size: 0.95rem;
  font-weight: 750;
}

.reporting-year-field select {
  min-height: 42px;
  padding: 0 0.6rem;
  color: #001eff;
  background: #fff;
  border: 1.5px solid rgb(63 70 150 / 28%);
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}

.reporting-year-field select:focus {
  border-color: var(--brand-indigo);
  box-shadow: 0 0 0 4px rgb(63 70 150 / 12%);
}

.reporting-actions {
  width: 100%;
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.45rem;
}

.reporting-button,
.reporting-export-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0.55rem 0.8rem;
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-size: 0.98rem;
  font-weight: 800;
  box-shadow: 0 12px 24px rgb(43 36 103 / 12%);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.reporting-button {
  background: linear-gradient(120deg, #0788ff, #006fff);
}

.reporting-button svg,
.reporting-export-button svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex: 0 0 auto;
}

.reporting-button:hover,
.reporting-export-button:hover,
.reporting-button.is-active {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 18px 34px rgb(43 36 103 / 18%);
}

.reporting-button.is-active {
  background: linear-gradient(120deg, var(--brand-indigo-dark), var(--brand-pink-dark));
}

.reporting-export-button {
  margin-top: 2.5rem;
  background: linear-gradient(120deg, #19aa4b, #118337);
}

.reporting-preview-card {
  padding: 0;
  overflow: hidden;
}

.reporting-preview-bar {
  width: 100%;
  height: 22px;
  background: linear-gradient(120deg, rgb(215 216 220 / 95%), rgb(236 237 240 / 95%));
  border-bottom: 1px solid rgb(63 70 150 / 10%);
  box-shadow: inset 0 1px 2px rgb(255 255 255 / 80%);
}

.reporting-preview-content {
  min-height: 468px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.reporting-kicker {
  width: max-content;
  padding: 0.35rem 0.75rem;
  color: var(--brand-indigo-dark);
  background: rgb(255 255 255 / 72%);
  border: 1px solid rgb(223 31 101 / 14%);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reporting-preview-content h1 {
  margin: 1rem 0 0.4rem;
  color: var(--brand-indigo-dark);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.reporting-preview-content p {
  max-width: 640px;
  margin: 0;
  color: #565d73;
  font-weight: 700;
}

.reporting-detail {
  margin-top: 1.25rem;
}

.reporting-hidden {
  display: none !important;
}

.reporting-prescripteurs-table-card {
  overflow: hidden;
  max-width: 760px;
  background: #fff;
  border: 1px solid rgb(63 70 150 / 12%);
  border-radius: 10px;
  box-shadow: 0 16px 32px rgb(43 36 103 / 10%);
}

.reporting-prescripteurs-table {
  width: 100%;
  border-collapse: collapse;
  color: #20354d;
  font-size: 0.9rem;
}

.reporting-prescripteurs-table th,
.reporting-prescripteurs-table td {
  padding: 0.62rem 0.75rem;
  border: 1px solid rgb(184 188 202 / 68%);
}

.reporting-prescripteurs-table thead th {
  color: #fff;
  background: #4f86c6;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.8;
  text-align: center;
}

.reporting-prescripteurs-table thead th:first-child {
  width: 80%;
}

.reporting-prescripteurs-table thead th:last-child,
.reporting-prescripteurs-table tbody td:last-child,
.reporting-prescripteurs-table tfoot td {
  width: 20%;
  text-align: center;
}

.reporting-prescripteurs-table tbody td:first-child,
.reporting-prescripteurs-table tfoot th {
  background: #c9f0f3;
  font-weight: 650;
  text-align: left;
}

.reporting-prescripteurs-table tbody td:last-child {
  background: #ffffd4;
  font-weight: 750;
}

.reporting-prescripteurs-table tfoot th {
  text-transform: uppercase;
}

.reporting-prescripteurs-table tfoot td {
  color: #fff;
  background: #74abfa;
  font-size: 1rem;
  font-weight: 950;
}

.reporting-profile-table-card {
  overflow: hidden;
  max-width: 680px;
  background: #d3d3d3;
  border: 1px solid rgb(63 70 150 / 12%);
  border-radius: 8px;
  box-shadow: 0 16px 32px rgb(43 36 103 / 10%);
}

.reporting-profile-table-card--aide {
  max-width: 650px;
}

.reporting-profile-table {
  width: 100%;
  border-collapse: collapse;
  color: #20354d;
  font-size: 0.9rem;
}

.reporting-profile-table th,
.reporting-profile-table td {
  padding: 0.62rem 0.75rem;
  border: 1px solid rgb(184 188 202 / 68%);
}

.reporting-profile-table thead th {
  color: #fff;
  background: #4f86c6;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.8;
  text-align: center;
}

.reporting-profile-table thead th:first-child {
  width: 68%;
}

.reporting-profile-table thead th:nth-child(2),
.reporting-profile-table tbody td:nth-child(2) {
  width: 21%;
  text-align: center;
}

.reporting-profile-table thead th:last-child,
.reporting-profile-table tbody td:last-child {
  width: 11%;
  text-align: center;
}

.reporting-profile-table tbody td:first-child {
  background: #c9f0f3;
  font-weight: 650;
}

.reporting-profile-table tbody td:nth-child(2) {
  background: #ffffd4;
  font-weight: 750;
}

.reporting-profile-table .reporting-profile-total {
  background: #ffdfb8;
  color: #315071;
  font-size: 1rem;
  font-weight: 950;
  vertical-align: middle;
}

.reporting-profile-spacer td {
  height: 2rem;
  padding: 0;
  background: #d3d3d3;
  border-color: #d3d3d3;
}

.reporting-prestations-table-card {
  overflow: hidden;
  max-width: 840px;
  background: #fff;
  border: 1px solid rgb(63 70 150 / 12%);
  border-radius: 8px;
  box-shadow: 0 16px 32px rgb(43 36 103 / 10%);
}

.reporting-prestations-table {
  width: 100%;
  border-collapse: collapse;
  color: #466174;
  font-size: 0.86rem;
}

.reporting-prestations-table th,
.reporting-prestations-table td {
  padding: 0.62rem 0.75rem;
  border: 1px solid rgb(184 188 202 / 68%);
}

.reporting-prestations-table thead th {
  color: #fff;
  background: #4f86c6;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.8;
  text-align: center;
}

.reporting-prestations-table thead th:first-child {
  width: 63%;
}

.reporting-prestations-table thead th:nth-child(2),
.reporting-prestations-table tbody td:nth-child(2) {
  width: 21%;
  text-align: center;
}

.reporting-prestations-table thead th:last-child,
.reporting-prestations-table tbody td:last-child {
  width: 16%;
  text-align: center;
}

.reporting-prestations-table tbody td:first-child,
.reporting-prestations-table tbody td:last-child {
  background: #c9f0f3;
  font-weight: 650;
}

.reporting-prestations-table tbody td:nth-child(2) {
  background: #ffffd4;
  font-weight: 750;
}

.reporting-prestations-table .reporting-prestations-section td {
  color: #466174;
  background: #74abfa;
  font-weight: 850;
  text-align: center;
}

.reporting-metrics {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.reporting-metrics article {
  padding: 1rem;
  text-align: center;
  background: linear-gradient(145deg, rgb(255 255 255 / 82%), rgb(255 242 247 / 78%));
  border: 1px solid rgb(63 70 150 / 12%);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgb(43 36 103 / 8%);
}

.reporting-metrics strong {
  display: block;
  color: var(--brand-pink-dark);
  font-size: 2rem;
  line-height: 1;
}

.reporting-metrics span {
  display: block;
  margin-top: 0.35rem;
  color: var(--brand-indigo-dark);
  font-weight: 800;
}

.reporting-chart {
  min-height: 170px;
  margin-top: auto;
  padding: 1rem 1.2rem 0;
  display: flex;
  align-items: end;
  justify-content: space-around;
  gap: 0.75rem;
  background: linear-gradient(180deg, rgb(255 255 255 / 42%), rgb(47 159 206 / 8%));
  border: 1px solid rgb(63 70 150 / 10%);
  border-radius: 22px;
}

.reporting-chart span {
  width: 12%;
  height: var(--bar-height);
  min-height: 44px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, var(--brand-pink), var(--brand-indigo));
  box-shadow: 0 10px 22px rgb(43 36 103 / 16%);
}

@media (max-width: 1040px) {
  .reporting-layout {
    grid-template-columns: 1fr;
  }

  .reporting-control-card,
  .reporting-preview-card {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .reporting-year-field {
    flex-direction: column;
    text-align: center;
  }

  .reporting-metrics {
    grid-template-columns: 1fr;
  }
}

.reporting-page .records-main {
  max-width: 1480px;
}

.reporting-page .records-shell {
  background:
    linear-gradient(135deg, rgb(255 255 255 / 82%), rgb(255 242 247 / 64%)),
    radial-gradient(circle at 8% 0%, rgb(223 31 101 / 10%), transparent 34%),
    radial-gradient(circle at 92% 8%, rgb(47 159 206 / 12%), transparent 38%);
}

.reporting-layout {
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.reporting-control-card,
.reporting-preview-card {
  min-height: auto;
}

.reporting-control-card {
  position: sticky;
  top: 0.75rem;
  z-index: 3;
  padding: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 88%), rgb(255 242 247 / 78%)),
    radial-gradient(circle at 0% 50%, rgb(223 31 101 / 12%), transparent 32%);
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 26px;
  box-shadow: 0 20px 48px rgb(43 36 103 / 14%);
}

.reporting-year-field {
  grid-column: 1 / -1;
  justify-self: center;
  min-height: 48px;
  padding: 0.4rem 0.7rem;
  background: rgb(255 255 255 / 72%);
  border: 1px solid rgb(63 70 150 / 12%);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 80%);
}

.reporting-year-field select {
  color: var(--brand-indigo-dark);
  border-radius: 13px;
  font-weight: 850;
}

.reporting-actions {
  grid-column: 1;
  width: auto;
  margin-top: 0;
  min-width: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: nowrap;
}

.reporting-button,
.reporting-export-button {
  min-height: 48px;
  padding: 0.68rem 0.95rem;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 28px rgb(43 36 103 / 14%);
}

.reporting-button {
  background: linear-gradient(120deg, #2f9fce, var(--brand-indigo));
}

.reporting-button.is-active {
  background: linear-gradient(120deg, var(--brand-indigo-dark), var(--brand-pink-dark));
  box-shadow: 0 18px 36px rgb(223 31 101 / 22%);
}

.reporting-export-button {
  grid-column: 2;
  justify-self: end;
  margin-top: 0;
  background: linear-gradient(120deg, #17b35a, #0d7d38);
}

.reporting-preview-card {
  background:
    linear-gradient(135deg, rgb(255 255 255 / 86%), rgb(245 250 255 / 78%)),
    radial-gradient(circle at 100% 0%, rgb(47 159 206 / 11%), transparent 38%);
  border: 1px solid rgb(255 255 255 / 74%);
  border-radius: 28px;
  box-shadow: 0 22px 56px rgb(43 36 103 / 14%);
}

.reporting-preview-bar {
  height: 12px;
  background: linear-gradient(120deg, var(--brand-indigo-dark), var(--brand-pink), #2f9fce);
}

.reporting-preview-content {
  min-height: auto;
  padding: 1.5rem;
}

.reporting-kicker {
  color: #fff;
  background: linear-gradient(120deg, var(--brand-indigo-dark), var(--brand-pink-dark));
  border: 0;
  box-shadow: 0 12px 26px rgb(223 31 101 / 16%);
}

.reporting-preview-content h1 {
  margin-top: 0.75rem;
  font-size: clamp(1.45rem, 2.35vw, 2.35rem);
}

.reporting-detail {
  margin-top: 1.15rem;
  overflow-x: auto;
  padding: 0.2rem 0.15rem 0.35rem;
}

.reporting-prescripteurs-table-card,
.reporting-profile-table-card,
.reporting-profile-table-card--aide,
.reporting-prestations-table-card {
  width: 100%;
  max-width: none;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 94%), rgb(255 242 247 / 68%)),
    radial-gradient(circle at 0% 0%, rgb(47 159 206 / 10%), transparent 36%);
  border: 1px solid rgb(255 255 255 / 78%);
  border-radius: 24px;
  box-shadow: 0 22px 48px rgb(43 36 103 / 14%);
}

.reporting-prescripteurs-table,
.reporting-profile-table,
.reporting-prestations-table {
  min-width: 780px;
  font-size: 0.92rem;
  color: var(--brand-indigo-dark);
}

.reporting-prescripteurs-table th,
.reporting-prescripteurs-table td,
.reporting-profile-table th,
.reporting-profile-table td,
.reporting-prestations-table th,
.reporting-prestations-table td {
  padding: 0.78rem 0.9rem;
  border-color: rgb(255 255 255 / 70%);
}

.reporting-prescripteurs-table thead th,
.reporting-profile-table thead th,
.reporting-prestations-table thead th {
  background: linear-gradient(120deg, var(--brand-indigo-dark), var(--brand-indigo), #2f9fce);
  font-size: 0.98rem;
  line-height: 1.55;
  text-transform: uppercase;
  box-shadow: inset 0 -1px 0 rgb(255 255 255 / 22%);
}

.reporting-prescripteurs-table tbody td:first-child,
.reporting-prescripteurs-table tfoot th,
.reporting-profile-table tbody td:first-child,
.reporting-prestations-table tbody td:first-child,
.reporting-prestations-table tbody td:last-child {
  background: linear-gradient(135deg, rgb(210 247 249 / 94%), rgb(236 253 255 / 86%));
}

.reporting-prescripteurs-table tbody td:last-child,
.reporting-profile-table tbody td:nth-child(2),
.reporting-prestations-table tbody td:nth-child(2) {
  background: linear-gradient(135deg, rgb(255 255 214 / 96%), rgb(255 252 230 / 92%));
  color: #3f4770;
  font-weight: 850;
}

.reporting-profile-table .reporting-profile-total {
  background: linear-gradient(135deg, #ffd7aa, #ffe9cf);
  color: var(--brand-indigo-dark);
}

.reporting-prescripteurs-table tbody tr:hover td,
.reporting-profile-table tbody tr:not(.reporting-profile-spacer):hover td,
.reporting-prestations-table tbody tr:not(.reporting-prestations-section):hover td {
  background: linear-gradient(135deg, rgb(255 242 247 / 96%), rgb(255 255 255 / 94%));
}

.reporting-profile-spacer td {
  height: 1.35rem;
  background: linear-gradient(120deg, rgb(233 235 242 / 88%), rgb(255 242 247 / 70%));
  border-color: rgb(255 255 255 / 70%);
}

.reporting-prestations-table .reporting-prestations-section td {
  color: var(--brand-indigo-dark);
  background: linear-gradient(120deg, #b9d7ff, #e5f1ff);
  font-weight: 900;
}

.reporting-prescripteurs-table tfoot td {
  background: linear-gradient(120deg, #5ea6ff, #6f9fee);
}

.reporting-prescripteurs-table thead th:first-child {
  width: 88%;
}

.reporting-prescripteurs-table thead th:last-child,
.reporting-prescripteurs-table tbody td:last-child,
.reporting-prescripteurs-table tfoot td {
  width: 12%;
}

.reporting-profile-table thead th:first-child {
  width: 76%;
}

.reporting-profile-table thead th:nth-child(2),
.reporting-profile-table tbody td:nth-child(2) {
  width: 16%;
}

.reporting-profile-table thead th:last-child,
.reporting-profile-table tbody td:last-child {
  width: 8%;
}

.reporting-prestations-table thead th:first-child {
  width: 75%;
}

.reporting-prestations-table thead th:nth-child(2),
.reporting-prestations-table tbody td:nth-child(2) {
  width: 14%;
}

.reporting-prestations-table thead th:last-child,
.reporting-prestations-table tbody td:last-child {
  width: 11%;
}

@media (max-width: 900px) {
  .reporting-control-card {
    position: static;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .reporting-year-field,
  .reporting-actions,
  .reporting-export-button {
    grid-column: 1;
  }

  .reporting-actions {
    flex-wrap: wrap;
  }

  .reporting-button,
  .reporting-export-button {
    width: 100%;
  }
}

.dialog-accessibility .accessibility-button {
  width: 44px;
  color: var(--brand-indigo-dark);
  background: rgb(255 255 255 / 72%);
  border-color: rgb(63 70 150 / 17%);
  opacity: 1;
}

.dialog-accessibility .accessibility-button[aria-pressed="true"] {
  color: #fff;
  background: var(--brand-indigo-dark);
}

.records-dialog__header {
  padding: 1rem 1.25rem;
  background: linear-gradient(110deg, rgb(169 122 0 / 13%), rgb(255 255 255 / 72%));
  border-bottom: 1px solid rgb(82 87 127 / 14%);
}

.records-dialog__identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.records-dialog__header .records-dialog__icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, #a97a00 82%, white), #a97a00);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgb(169 122 0 / 28%), inset 0 1px 0 rgb(255 255 255 / 45%);
}

.records-dialog__icon svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.records-dialog__header span {
  color: #8a6200;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.records-dialog__header h2 {
  margin: 0.15rem 0 0;
  font-size: 1.6rem;
}

.dialog-close {
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #df3c78, #b41859);
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgb(180 24 89 / 24%), inset 0 1px 0 rgb(255 255 255 / 38%);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.dialog-close svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.dialog-close:hover {
  transform: rotate(6deg) scale(1.07);
  box-shadow: 0 14px 28px rgb(180 24 89 / 32%), inset 0 1px 0 rgb(255 255 255 / 42%);
  filter: brightness(1.06);
}

.dialog-close:active {
  transform: scale(0.96);
}

.records-toolbar {
  min-height: 58px;
  padding: 0.45rem 1.25rem;
}

.records-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.records-table-wrapper {
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0 1.25rem 1rem;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border: 1px solid rgb(63 70 150 / 18%);
  border-radius: 16px;
  outline: none;
}

.records-table-wrapper--full {
  scrollbar-gutter: auto;
}

.records-dialog .records-table-wrapper {
  margin-inline: 0;
  align-self: stretch;
}

#records-dialog .records-table th:nth-child(1),
#records-dialog .records-table td:nth-child(1) {
  width: 130px;
  max-width: 130px;
}

#records-dialog .records-table th:nth-child(2),
#records-dialog .records-table td:nth-child(2) {
  width: 80px;
  max-width: 80px;
}

#records-dialog .records-table th:nth-child(3),
#records-dialog .records-table td:nth-child(3) {
  width: 130px;
  max-width: 130px;
}

#records-dialog .records-table th:nth-child(4),
#records-dialog .records-table td:nth-child(4),
#records-dialog .records-table th:nth-child(5),
#records-dialog .records-table td:nth-child(5) {
  width: 300px;
}

#records-dialog .records-table th:nth-child(6),
#records-dialog .records-table td:nth-child(6) {
  width: 90px;
  max-width: 90px;
}

.records-table-wrapper:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 2px;
}

.records-table {
  width: 100%;
  min-width: 1200px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.78rem;
}

.records-table col.col-narrow {
  width: 70px;
}

.records-table col.col-status {
  width: 52px;
}

.records-table col.col-age {
  width: 42px;
}

.records-table th:nth-child(6),
.records-table td:nth-child(6) {
  text-align: center;
}

.records-table thead {
  position: sticky;
  z-index: 2;
  top: 0;
}

.records-table th,
.records-table td {
  height: 38px;
  padding: 0.4rem 0.55rem;
  border-right: 1px solid rgb(46 137 186 / 22%);
  border-bottom: 1px solid rgb(46 137 186 / 22%);
  white-space: nowrap;
}

.records-table thead > tr:first-child th {
  color: #fff;
  text-align: left;
  background: #337fa9;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.records-table thead > tr:first-child th:nth-child(n + 7) {
  text-align: center;
}

.records-table abbr {
  text-decoration: none;
}

.filter-row th {
  padding: 0.3rem;
  background: #eef7fb;
}

.filter-row input {
  width: 100%;
  min-width: 58px;
  height: 34px;
  min-height: 34px;
  padding: 0 0.4rem;
  border: 1px solid #6aaacb;
  border-radius: 5px;
  outline: none;
}

.filter-row input:focus {
  border-color: var(--brand-indigo);
  box-shadow: 0 0 0 3px rgb(63 70 150 / 14%);
}

.filter-help {
  display: block;
  color: #596277;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 650;
}

.records-table tbody tr:nth-child(odd) {
  background: rgb(235 247 252 / 78%);
}

.records-table tbody tr:nth-child(even) {
  background: rgb(255 255 255 / 88%);
}

.records-table tbody tr:hover {
  background: #fff2f7;
}

.records-table tbody th {
  text-align: left;
}

.respite-page .records-table tbody th,
.respite-page .records-table tbody td,
.daycare-page .records-table tbody th,
.daycare-page .records-table tbody td,
.itinerant-page .records-table tbody th,
.itinerant-page .records-table tbody td {
  padding-block: 0.3rem;
}

.record-link {
  min-height: 30px;
  padding: 0.2rem 0.4rem;
  color: #075d91;
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.record-link:hover {
  color: var(--brand-pink-dark);
  background: #fff;
}

body:not(.high-contrast) .records-table th,
body:not(.high-contrast) .records-table td {
  border-right-color: transparent;
  border-bottom-color: #e2e9f1;
}

body:not(.high-contrast) .records-table thead > tr:first-child th {
  background: #285d80;
  border-bottom-color: #285d80;
}

body:not(.high-contrast) .records-table thead > tr:first-child th:nth-child(n + 7) {
  background: #224f70;
}

body:not(.high-contrast) .records-table .filter-row th {
  background: #f3f6fb;
}

body:not(.high-contrast) .records-table .filter-row input {
  background: #fff;
  border-color: #c6d3e2;
  border-radius: 8px;
}

body:not(.high-contrast) .records-table tbody tr:nth-child(odd) {
  background: #f2f7fc;
}

body:not(.high-contrast) .records-table tbody tr:nth-child(even) {
  background: #fff;
}

body:not(.high-contrast) .records-table tbody tr:hover,
body:not(.high-contrast) .records-table tbody tr:focus-within {
  background: #e4effb;
}

body:not(.high-contrast) .records-table tr > :nth-child(7) {
  border-left: 2px solid #c6d3e2;
}

body:not(.high-contrast) .records-table .record-link {
  color: #145580;
  background: #e2edf7;
  border-radius: 7px;
  text-decoration: none;
}

body:not(.high-contrast) .records-table .record-link:hover {
  color: #fff;
  background: #285d80;
}

.status-cell {
  text-align: center;
}

.records-legend {
  min-height: 44px;
  margin: 0 1.25rem 0.65rem;
  padding: 0.35rem 0.8rem;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem 0.65rem;
  overflow-x: auto;
  color: #34394d;
  background: rgb(255 255 255 / 62%);
  border: 1px solid rgb(63 70 150 / 16%);
  border-radius: 14px;
  font-size: 0.72rem;
}

.legend-item {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  font-weight: 650;
}

.legend-item svg,
.record-indicator svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.legend-item i,
.record-indicator i {
  width: 12px;
  height: 12px;
  display: inline-block;
  border-radius: 50%;
}

.legend-item--pfr,
.legend-item--adj,
.legend-item--iti { color: #e11b2e; }
.legend-item--psy { color: #1717e8; }
.legend-item--psm { color: #940b0b; }
.legend-item--soc { color: #087c19; }
.legend-item--evt { color: #e8ad00; }
.legend-item--rel { color: #d46400; }
.legend-item--eva { color: #e65b8c; }
.legend-item--arc { color: #171717; }
.legend-item--inactive { color: #68717d; }

.legend-item--psy i,
.record-indicator--psy i { background: #1717e8; }
.legend-item--psm i,
.record-indicator--psm i { background: #940b0b; }
.legend-item--soc i,
.record-indicator--soc i { background: #087c19; }
.legend-item--inactive i {
  background: #cbd0d6;
  border: 1px solid #aeb5be;
}

.record-indicator {
  display: inline-grid;
  place-items: center;
  color: #8b9199;
}

.record-indicator.is-inactive {
  color: #cbd0d6;
  opacity: 0.55;
}

.record-indicator.is-inactive i {
  background: #cbd0d6;
}

.record-indicator--pfr.is-active,
.record-indicator--adj.is-active,
.record-indicator--iti.is-active { color: #ef2035; }
.record-indicator--psy.is-active { color: #1717e8; }
.record-indicator--psm.is-active { color: #940b0b; }
.record-indicator--soc.is-active { color: #087c19; }
.record-indicator--evt.is-active { color: #e8ad00; }
.record-indicator--rel.is-active { color: #d46400; }
.record-indicator--eva.is-active { color: #e65b8c; }
.record-indicator--arc.is-active { color: #171717; }

.records-shell.is-showing-archived .record-indicator.is-active {
  color: #171717;
  opacity: 1;
}

.records-shell.is-showing-archived .record-indicator.is-active i {
  background: #171717;
  border-color: #171717;
}

.record-indicator--arc svg {
  width: 17px;
  height: 17px;
}

.dialog-close:focus-visible,
.record-link:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 2px;
}

.high-contrast .records-dialog,
.high-contrast .records-table-wrapper {
  color: #000;
  background: #fff;
  border: 3px solid #000;
}

.high-contrast .records-table thead > tr:first-child th {
  color: #fff;
  background: #000;
}

.high-contrast .records-table tbody tr {
  color: #000;
  background: #fff;
}

.high-contrast .field input,
.high-contrast .field select,
.high-contrast .file-number input,
.high-contrast .editor-toolbar button,
.high-contrast .editor-toolbar select,
.high-contrast .rich-editor {
  color: #000;
  background: #fff;
  border: 2px solid #000;
}

.password-toggle:focus-visible,
.login-button:focus-visible,
.logout-button:focus-visible,
.module-tile:focus-visible,
.accessibility-button:focus-visible,
.skip-link:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 4px;
}

body.high-contrast {
  --ink: #000;
  --muted: #202020;
  --glass: #fff;
  --glass-strong: #fff;
  --glass-border: #000;
  color: #000;
  background: #fff;
}

.high-contrast .ambient-shape {
  display: none;
}

.high-contrast .brand-visual,
.high-contrast .login-card,
.high-contrast .modules-card,
.high-contrast .modules-header,
.high-contrast .module-tile {
  background: #fff;
  border: 3px solid #000;
  box-shadow: none;
}

.high-contrast .brand-logo,
.high-contrast .modules-header__logo {
  mix-blend-mode: normal;
}

.high-contrast .input-group input {
  color: #000;
  background: #fff;
  border: 3px solid #000;
}

.high-contrast .accessibility-button {
  color: #000;
  background: #fff;
  border: 2px solid #000;
  box-shadow: none;
}

.high-contrast .accessibility-button[aria-pressed="true"],
.high-contrast .logout-button,
.high-contrast .login-button {
  color: #fff;
  background: #000;
  border-color: #000;
}

.high-contrast .module-icon {
  color: #fff;
  background: #000;
  box-shadow: none;
}

.high-contrast .module-arrow {
  color: #000;
}

@media (forced-colors: active) {
  button,
  input,
  .brand-visual,
  .login-card,
  .modules-card,
  .modules-header {
    border: 2px solid CanvasText;
  }

  .module-tile,
  .module-icon {
    color: ButtonText;
    background: ButtonFace;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* ===================== Fiche dossier ===================== */

body.dossier-page {
  height: var(--desktop-height, 100vh);
  min-height: var(--desktop-height, 100vh);
  overflow: hidden;
}

.dossier-main {
  width: min(100% - 3rem, 1500px);
  min-height: 0;
  margin: 0.75rem auto 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.dossier-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(145deg, rgb(255 255 255 / 76%), rgb(255 255 255 / 52%));
  border: 1px solid var(--glass-border);
  border-radius: 36px;
  box-shadow: var(--shadow), inset 0 1px 0 #fff;
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
}

.dossier-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: auto;
}

.dossier-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 0.85rem 1.25rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: linear-gradient(180deg, rgb(255 255 255 / 92%), rgb(255 255 255 / 82%));
  border-bottom: 1px solid rgb(63 70 150 / 14%);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.dossier-topbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.dossier-topbar__row--main {
  position: relative;
  justify-content: center;
  min-height: 48px;
}

.dossier-topbar__row--main .dossier-nav-buttons {
  position: absolute;
  left: 0;
}

.dossier-topbar__row--main .dossier-zarit {
  position: absolute;
  right: 0;
}

.dossier-topbar__row--fields,
.dossier-topbar__row--orienteur {
  max-height: 200px;
  opacity: 1;
  overflow: hidden;
}

.dossier-nav-buttons {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dossier-topbar__row--fields {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(280px, 1fr) minmax(220px, 0.85fr);
  align-items: end;
}

.dossier-topbar__row--orienteur {
  justify-content: flex-end;
}

.dossier-nav-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--brand-indigo-dark);
  background: rgb(255 255 255 / 70%);
  border: 1px solid rgb(63 70 150 / 18%);
  border-radius: 50%;
  transition: transform 160ms ease, background 160ms ease;
}

.dossier-nav-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.dossier-nav-btn:disabled {
  color: rgb(63 70 150 / 30%);
  cursor: not-allowed;
}

.dossier-nav-btn:hover:not(:disabled) {
  background: #fff;
  transform: translateY(-1px);
}

.dossier-id {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.dossier-id span {
  color: var(--brand-pink-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dossier-id strong {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.dossier-save,
.dossier-zarit,
.dossier-save-caregiver {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.primary-action.dossier-save {
  background: #15803d;
}

.dossier-save svg,
.dossier-zarit svg,
.dossier-save-caregiver svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.dossier-zarit {
  min-height: 34px;
  padding: 0.4rem 0.7rem;
  gap: 0.35rem;
  color: #356c70;
  font-size: 0.78rem;
  background: rgb(255 255 255 / 72%);
  border: 1px solid rgb(53 108 112 / 20%);
  border-radius: 10px;
  box-shadow: none;
}

.dossier-zarit svg {
  width: 15px;
  height: 15px;
}

.dossier-field {
  flex: 1 1 200px;
  min-width: 0;
}

.dossier-field--orienteur {
  max-width: none;
}

.input-with-button {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.input-with-button input {
  flex: 1;
}

.icon-refresh {
  width: 34px;
  height: 34px;
  min-height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--brand-indigo-dark);
  background: rgb(255 255 255 / 76%);
  border: 1.5px solid rgb(82 87 127 / 20%);
  border-radius: 10px;
}

.icon-refresh svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.icon-refresh:hover {
  color: #fff;
  background: var(--brand-indigo);
}

.dossier-status {
  margin: 0;
  color: var(--brand-indigo-dark);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.dossier-status:empty {
  display: none;
}

.dossier-status:not(:empty) {
  padding: 0.6rem 0.85rem;
  background: #f3f1fc;
  border: 1px solid rgb(63 70 150 / 25%);
  border-radius: 10px;
}

.dossier-status:not(:empty):not([data-status="error"]) {
  color: #166534;
  background: #f0fdf4;
  border-color: #86b99a;
}

.dossier-status[data-status="error"]:not(:empty) {
  color: #b91c1c;
  background: #fff1f2;
  border-color: #dc8585;
}

.dossier-status[data-status="error"]:not(:empty)::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 30px;
  margin-right: 0.6rem;
  vertical-align: middle;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 36'%3E%3Cpath d='M20 2 38 33H2Z' fill='%23ffd54f' stroke='%23b91c1c' stroke-width='3' stroke-linejoin='round'/%3E%3Ccircle cx='20' cy='12' r='3'/%3E%3Cpath d='m19 16-4 7m5-6 6 4m-7-3 3 7-5 5m5-5 4 5M26 19l4 11m-5 0h9' fill='none' stroke='%23111827' stroke-width='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: dossier-status-blink 1.2s ease-in-out infinite;
}

.dossier-lock-warning {
  margin: 0;
  padding: 0.7rem 0.9rem;
  color: #854d0e;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.5;
  background: #fef9c3;
  border: 1px solid #eab308;
  border-radius: 10px;
}

.dossier-lock-warning[data-state="error"] {
  color: #991b1b;
  background: #fff1f2;
  border-color: #dc8585;
}

@keyframes dossier-status-blink {
  50% { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
  .dossier-status[data-status="error"]:not(:empty)::before { animation: none; }
}

.dossier-orientations {
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-height: 52px;
  overflow: visible;
  background: rgb(255 255 255 / 55%);
  border: 1px solid rgb(63 70 150 / 14%);
  border-radius: 12px;
}

.dossier-orientations span {
  color: var(--brand-pink-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dossier-orientations p {
  margin: 0;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: normal;
}

.dossier-tabs {
  position: sticky;
  z-index: 4;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.5rem 1.25rem 0;
  background: rgb(255 255 255 / 88%);
  border-bottom: 1px solid rgb(63 70 150 / 14%);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.dossier-tab {
  padding: 0.55rem 0.9rem;
  color: #565d73;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 10px 10px 0 0;
  font-size: 0.82rem;
  font-weight: 750;
  transition: color 160ms ease, background 160ms ease;
}

.dossier-tab:hover {
  color: var(--brand-indigo-dark);
  background: rgb(63 70 150 / 6%);
}

.dossier-tab.is-active {
  color: var(--brand-indigo-dark);
  background: rgb(63 70 150 / 10%);
  border-bottom-color: var(--brand-pink);
}

.dossier-tabs__progress {
  flex-basis: 100%;
  height: 3px;
  display: block;
  background: rgb(63 70 150 / 10%);
}

.dossier-tabs__progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-indigo), var(--brand-pink));
  transition: width 120ms linear;
}

.dossier-body {
  flex: 1;
}

.dossier-panel {
  display: none;
}

.dossier-panel.is-active {
  display: block;
}

.dossier-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  align-items: start;
  gap: 1.25rem;
  padding: 1rem 1.25rem 1.5rem;
}

.dossier-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.dossier-content--wide {
  max-width: 980px;
  margin: 0 auto;
  padding: 1rem 1.25rem 1.5rem;
}

#panel-narratif .dossier-content--wide {
  width: 100%;
  max-width: none;
}

#panel-narratif .editor-shell {
  width: 100%;
  overflow: visible;
}

#panel-narratif .rich-editor {
  min-height: 330px;
  height: auto;
  max-height: none;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
}

#panel-narratif .narrative-log {
  min-height: 220px;
  max-height: none;
  overflow: visible;
}

#panel-acte .dossier-content--wide {
  width: 100%;
  max-width: none;
}

#panel-acte .dossier-layout--acte {
  padding-bottom: calc(var(--dossier-sticky-offset, 300px) + 3rem);
}

#panel-orientations .dossier-content--wide {
  width: 100%;
  max-width: none;
}

#panel-redaction .dossier-content--wide {
  width: 100%;
  max-width: none;
}

#panel-annexes .dossier-content--wide {
  width: 100%;
  max-width: none;
}

#panel-mails .dossier-content--wide {
  width: 100%;
  max-width: none;
}

.orientation-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.orientation-card {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background:
    radial-gradient(circle at top left, rgb(223 31 101 / 11%), transparent 34%),
    linear-gradient(135deg, rgb(255 255 255 / 84%), rgb(245 247 255 / 74%));
  border: 1px solid rgb(63 70 150 / 16%);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgb(43 36 103 / 10%);
}

.orientation-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.orientation-card__header span {
  color: var(--brand-pink-dark);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.orientation-card__header h4 {
  margin: 0.15rem 0 0;
  color: var(--brand-indigo-dark);
  font-size: 1.08rem;
}

.orientation-card__badge {
  padding: 0.45rem 0.75rem;
  color: #fff !important;
  background: linear-gradient(120deg, var(--brand-indigo-dark), var(--brand-pink-dark));
  border-radius: 999px;
  box-shadow: 0 10px 20px rgb(223 31 101 / 18%);
}

.orientation-form-row {
  display: flex;
  align-items: end;
  gap: 0.75rem;
}

.orientation-by {
  width: 100%;
  max-width: 360px;
}

.orientation-by select.modern-select {
  height: 40px;
  min-height: 40px;
  padding: 0.45rem 0.75rem;
  background: #fff;
  border-color: rgb(63 70 150 / 28%);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgb(43 36 103 / 6%);
  font-weight: 650;
}

.orientation-targets {
  padding: 0.75rem;
  background: rgb(255 255 255 / 62%);
  border: 1px solid rgb(82 87 127 / 14%);
  border-radius: 18px;
}

.orientation-targets legend {
  padding: 0 0.25rem;
  color: var(--brand-indigo-dark);
  font-weight: 850;
}

.orientation-grid--premium {
  grid-template-columns: repeat(8, max-content);
  gap: 0.5rem;
}

.orientation-grid--premium label {
  min-height: 34px;
  padding: 0.35rem 0.65rem;
  background: linear-gradient(135deg, rgb(255 255 255 / 84%), rgb(250 246 255 / 74%));
  border-color: rgb(63 70 150 / 18%);
  box-shadow: 0 8px 18px rgb(43 36 103 / 6%);
}

.orientation-grid--premium input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-indigo);
}

.orientation-history-shell {
  overflow: visible;
  border-color: rgb(63 70 150 / 18%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%);
}

.orientation-history {
  min-height: 380px;
  height: auto;
  max-height: none;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
}

.orientation-history p {
  margin: 0 0 0.7rem;
}

.orientation-history strong {
  color: var(--brand-indigo-dark);
  background: rgb(63 70 150 / 9%);
  border-radius: 6px;
}

.orientation-actions {
  display: flex;
  justify-content: center;
}

.orientation-notify {
  min-height: 56px;
  padding-inline: 1.45rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  text-align: center;
  color: #fff;
  background: #15803d;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 16px 34px rgb(21 128 61 / 24%), 0 8px 18px rgb(21 128 61 / 14%);
}

.orientation-notify svg {
  width: 18px;
  height: 18px;
  margin: 0 auto;
  fill: currentColor;
  flex: 0 0 auto;
}

.orientation-notify:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgb(21 128 61 / 28%), 0 10px 22px rgb(21 128 61 / 16%);
}

.orientation-comment {
  padding: 0.85rem;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 78%), rgb(255 246 251 / 70%)),
    radial-gradient(circle at top right, rgb(223 31 101 / 10%), transparent 42%);
  border: 1px solid rgb(223 31 101 / 16%);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgb(43 36 103 / 7%);
}

.orientation-comment span {
  color: var(--brand-indigo-dark);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.orientation-comment textarea {
  min-height: 92px;
  padding: 0.9rem 1rem;
  resize: vertical;
  background: rgb(255 255 255 / 78%);
  border: 1.5px solid rgb(63 70 150 / 16%);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%);
}

.orientation-comment textarea:focus {
  border-color: rgb(223 31 101 / 36%);
  box-shadow: 0 0 0 4px rgb(223 31 101 / 10%);
}

.redaction-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.redaction-card {
  padding: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background:
    radial-gradient(circle at top left, rgb(223 31 101 / 10%), transparent 30%),
    radial-gradient(circle at bottom right, rgb(63 70 150 / 10%), transparent 34%),
    linear-gradient(135deg, rgb(255 255 255 / 86%), rgb(248 249 255 / 76%));
  border: 1.5px solid rgb(223 31 101 / 34%);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgb(43 36 103 / 10%);
}

.redaction-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.redaction-columns.has-specialist-report {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.redaction-specialist-stack {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.redaction-columns.has-specialist-report .redaction-specialist-stack {
  grid-column: 2;
}

.redaction-specialist-stack[hidden] {
  display: none;
}

.redaction-pane--aidant[hidden],
.redaction-specialist-report[hidden],
.redaction-psychomotor-report[hidden] {
  display: none;
}

.redaction-pane.redaction-psychomotor-report {
  background: linear-gradient(135deg, rgb(255 255 255 / 82%), rgb(250 246 237 / 72%));
  border-color: rgb(130 91 47 / 48%);
}

.redaction-psychomotor-report .redaction-note {
  background: linear-gradient(135deg, rgb(255 255 255 / 82%), rgb(250 246 237 / 68%));
  border-color: rgb(130 91 47 / 24%);
}

.redaction-psychomotor-report .redaction-note span {
  color: #765126;
}

.redaction-psychomotor-report .redaction-note textarea,
.redaction-psychomotor-report .redaction-note textarea:focus {
  border-color: rgb(130 91 47 / 48%);
}

.redaction-psychomotor-report .redaction-note textarea:focus {
  box-shadow: 0 0 0 4px rgb(130 91 47 / 12%);
}

.redaction-pane {
  min-width: 0;
  padding: 0.95rem;
  background: linear-gradient(135deg, rgb(255 255 255 / 76%), rgb(255 246 251 / 58%));
  border: 1.5px solid rgb(223 31 101 / 34%);
  border-radius: 22px;
  box-shadow: 0 14px 32px rgb(43 36 103 / 8%);
}

.redaction-pane--aide {
  background:
    radial-gradient(circle at top right, rgb(24 133 28 / 11%), transparent 36%),
    linear-gradient(135deg, rgb(255 255 255 / 80%), rgb(246 255 248 / 62%));
  border-color: rgb(24 133 28 / 42%);
}

.redaction-pane.redaction-psychologist-report {
  background: linear-gradient(135deg, rgb(255 255 255 / 84%), rgb(237 250 253 / 78%));
  border-color: rgb(0 151 181 / 48%);
}

.redaction-psychologist-report .redaction-note,
.redaction-psychologist-report .redaction-note textarea {
  background: linear-gradient(135deg, rgb(255 255 255 / 86%), rgb(238 251 254 / 76%));
  border-color: rgb(0 151 181 / 30%);
}

.redaction-psychologist-report .redaction-note span {
  color: #087c94;
}

.redaction-psychologist-report .redaction-note textarea:focus {
  border-color: rgb(0 151 181 / 52%);
  box-shadow: 0 0 0 4px rgb(0 151 181 / 12%);
}

.redaction-report-dialog {
  width: min(94vw, 860px);
  max-width: none;
  max-height: min(90vh, 760px);
  padding: 0;
  color: #252525;
  background: #fffdf0;
  border: 2px solid rgb(0 151 181 / 70%);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgb(18 39 51 / 32%);
}

.redaction-report-dialog--psychomotor {
  border-color: rgb(130 91 47 / 72%);
}

.redaction-report-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.redaction-report-dialog::backdrop {
  background: rgb(20 29 38 / 55%);
  backdrop-filter: blur(4px);
}

.redaction-report-dialog__header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0.8rem 3rem;
  background: rgb(0 151 181 / 8%);
  border-bottom: 1px solid rgb(0 151 181 / 20%);
}

.redaction-report-dialog__header h2 {
  margin: 0;
  color: #087c94;
  font-size: 1.2rem;
  text-align: center;
}

.redaction-report-dialog__close {
  position: absolute;
  top: 50%;
  right: 0.65rem;
  width: 36px;
  height: 36px;
  color: #087c94;
  font-size: 1.6rem;
  line-height: 1;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transform: translateY(-50%);
}

.redaction-report-dialog__close:hover {
  background: rgb(0 151 181 / 12%);
}

.redaction-report-dialog__body {
  display: grid;
  gap: 1.1rem;
  padding: 1rem;
  overflow-y: auto;
}

.redaction-report-dialog__body--psychomotor {
  gap: 1rem;
}

.redaction-report-dialog--psychomotor .redaction-report-dialog__header {
  background: rgb(130 91 47 / 9%);
  border-bottom-color: rgb(130 91 47 / 24%);
}

.redaction-report-dialog--psychomotor .redaction-report-dialog__header h2,
.redaction-report-dialog--psychomotor .redaction-report-dialog__close {
  color: #765126;
}

.redaction-report-dialog--psychomotor .redaction-report-dialog__close:hover {
  background: rgb(130 91 47 / 12%);
}

.redaction-report-dialog__scores {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.25rem 0 0.5rem;
  font-size: 0.8rem;
}

.redaction-report-dialog__scores > label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.redaction-report-dialog__scores select,
.redaction-report-dialog__scores input[type="number"] {
  width: 68px;
  min-height: 30px;
  padding: 0.2rem 0.35rem;
  color: #252525;
  background: #fffdf0;
  border: 1px solid rgb(37 37 37 / 35%);
  border-radius: 5px;
}

.redaction-report-dialog__fatigue {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.redaction-report-dialog__fatigue legend {
  float: left;
  margin-right: 0.2rem;
}

.redaction-report-dialog__fatigue label {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  color: #087c94;
}

.redaction-report-dialog--psychomotor .redaction-report-dialog__objective span {
  color: #765126;
}

.redaction-report-dialog--psychomotor .redaction-report-dialog__objective textarea {
  min-height: 130px;
  border-color: #765126;
}

.redaction-report-dialog--psychomotor .redaction-report-dialog__objective textarea:focus,
.redaction-report-dialog--psychomotor .redaction-report-dialog__scores select:focus,
.redaction-report-dialog--psychomotor .redaction-report-dialog__scores input:focus {
  outline: 3px solid rgb(130 91 47 / 22%);
  outline-offset: 2px;
  border-color: #765126;
}

.redaction-report-dialog--psychomotor .redaction-report-dialog__actions {
  padding-block: 0.5rem;
}

.redaction-report-dialog--psychomotor {
  color: #3b2a1a;
  background:
    radial-gradient(ellipse at 8% 0%, rgb(255 255 255 / 82%), transparent 34%),
    radial-gradient(ellipse at 100% 14%, rgb(194 151 98 / 17%), transparent 36%),
    linear-gradient(145deg, rgb(255 253 245 / 90%), rgb(246 237 219 / 78%));
  border: 1px solid rgb(118 81 38 / 56%);
  border-radius: 24px;
  box-shadow:
    0 34px 90px rgb(57 37 19 / 32%),
    0 10px 28px rgb(95 66 34 / 16%),
    inset 0 1px 0 rgb(255 255 255 / 92%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
  overflow: hidden;
}

.redaction-report-dialog--psychomotor::backdrop {
  background: rgb(35 27 20 / 48%);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
  backdrop-filter: blur(12px) saturate(125%);
}

.redaction-report-dialog--psychomotor .redaction-report-dialog__header {
  min-height: 76px;
  padding-block: 1rem;
  background:
    linear-gradient(115deg, rgb(255 255 255 / 58%), transparent 52%),
    linear-gradient(135deg, rgb(118 81 38 / 15%), rgb(194 151 98 / 9%));
  border-bottom: 1px solid rgb(118 81 38 / 18%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%);
}

.redaction-report-dialog--psychomotor .redaction-report-dialog__header h2 {
  color: #65451f;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 800;
  letter-spacing: 0.015em;
  text-shadow: 0 1px 0 rgb(255 255 255 / 80%);
}

.redaction-report-dialog--psychomotor .redaction-report-dialog__close {
  width: 40px;
  height: 40px;
  background: rgb(255 255 255 / 38%);
  border: 1px solid rgb(118 81 38 / 16%);
  box-shadow: 0 4px 14px rgb(74 50 25 / 10%), inset 0 1px 0 rgb(255 255 255 / 72%);
}

.redaction-report-dialog--psychomotor .redaction-report-dialog__close:hover {
  background: rgb(255 255 255 / 72%);
  box-shadow: 0 6px 18px rgb(74 50 25 / 16%), inset 0 1px 0 #fff;
}

.redaction-report-dialog__body--psychomotor {
  gap: 1.15rem;
  padding: clamp(1rem, 2.4vw, 1.6rem);
  background: linear-gradient(180deg, rgb(255 255 255 / 10%), transparent 24%);
  scrollbar-color: rgb(118 81 38 / 35%) transparent;
}

.redaction-report-dialog__body--psychomotor .redaction-report-dialog__scores {
  gap: 0.65rem 0.8rem;
  padding: 0.8rem;
  color: #54391e;
  background: linear-gradient(135deg, rgb(255 255 255 / 56%), rgb(239 226 205 / 34%));
  border: 1px solid rgb(118 81 38 / 15%);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgb(74 50 25 / 7%), inset 0 1px 0 rgb(255 255 255 / 80%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.redaction-report-dialog__body--psychomotor .redaction-report-dialog__scores > label {
  gap: 0.4rem;
  font-weight: 650;
}

.redaction-report-dialog--psychomotor .redaction-report-dialog__scores select,
.redaction-report-dialog--psychomotor .redaction-report-dialog__scores input[type="number"] {
  color: #49331e;
  background: rgb(255 255 255 / 58%);
  border: 1px solid rgb(118 81 38 / 25%);
  border-radius: 9px;
  box-shadow: inset 0 1px 3px rgb(74 50 25 / 6%), 0 1px 0 rgb(255 255 255 / 65%);
}

.redaction-report-dialog--psychomotor .redaction-report-dialog__fatigue {
  gap: 0.5rem;
  padding-left: 0.25rem;
  color: #54391e;
}

.redaction-report-dialog--psychomotor .redaction-report-dialog__fatigue label {
  color: #65451f;
  font-weight: 700;
}

.redaction-report-dialog--psychomotor .redaction-report-dialog__fatigue input {
  accent-color: #765126;
}

.redaction-report-dialog--psychomotor .redaction-report-dialog__objective {
  gap: 0.55rem;
  padding: 0.85rem;
  background: linear-gradient(145deg, rgb(255 255 255 / 40%), rgb(255 255 255 / 18%));
  border: 1px solid rgb(118 81 38 / 12%);
  border-radius: 16px;
  box-shadow: 0 7px 22px rgb(74 50 25 / 5%), inset 0 1px 0 rgb(255 255 255 / 76%);
}

.redaction-report-dialog--psychomotor .redaction-report-dialog__objective span {
  color: #60431f;
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  text-decoration-color: rgb(118 81 38 / 35%);
  text-underline-offset: 3px;
}

.redaction-report-dialog--psychomotor .redaction-report-dialog__objective textarea {
  min-height: 132px;
  padding: 0.85rem 0.95rem;
  color: #38291b;
  background: rgb(255 255 255 / 56%);
  border: 1px solid rgb(118 81 38 / 28%);
  border-radius: 12px;
  box-shadow: inset 0 2px 5px rgb(74 50 25 / 5%), 0 1px 0 rgb(255 255 255 / 72%);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.redaction-report-dialog--psychomotor .redaction-report-dialog__objective textarea:focus,
.redaction-report-dialog--psychomotor .redaction-report-dialog__scores select:focus,
.redaction-report-dialog--psychomotor .redaction-report-dialog__scores input:focus {
  outline: 3px solid rgb(130 91 47 / 18%);
  outline-offset: 2px;
  background: rgb(255 255 255 / 86%);
  border-color: rgb(118 81 38 / 70%);
  box-shadow: 0 0 0 4px rgb(130 91 47 / 7%), inset 0 1px 3px rgb(74 50 25 / 4%);
}

.redaction-report-dialog--psychomotor .redaction-report-dialog__pdf {
  padding: 0.55rem 0.8rem;
  background: rgb(255 255 255 / 48%);
  border: 1px solid rgb(118 81 38 / 16%);
  box-shadow: 0 5px 16px rgb(74 50 25 / 8%), inset 0 1px 0 rgb(255 255 255 / 82%);
}

.redaction-report-dialog--psychomotor .redaction-report-dialog__pdf:hover {
  background: rgb(255 255 255 / 78%);
  box-shadow: 0 8px 20px rgb(74 50 25 / 12%), inset 0 1px 0 #fff;
}

.redaction-report-dialog__objective,
.redaction-report-dialog__achieved {
  display: grid;
  gap: 0.4rem;
}

.redaction-report-dialog__objective span {
  font-weight: 700;
  text-decoration: underline;
}

.redaction-report-dialog__objective textarea {
  width: 100%;
  min-height: 180px;
  padding: 0.75rem;
  color: #252525;
  background: #fffdf0;
  border: 2px solid #252525;
  border-radius: 9px;
  resize: vertical;
}

.redaction-report-dialog__objective textarea:focus,
.redaction-report-dialog__achieved input:focus {
  outline: 3px solid rgb(0 151 181 / 24%);
  outline-offset: 2px;
  border-color: #087c94;
}

.redaction-report-dialog__achieved {
  grid-template-columns: max-content minmax(120px, 470px);
  align-items: center;
  color: #087c94;
}

.redaction-report-dialog__achieved input {
  min-height: 38px;
  padding: 0.35rem 0.55rem;
  color: #252525;
  background: #fffdf0;
  border: 1.5px solid rgb(37 37 37 / 48%);
  border-radius: 7px;
}

.redaction-report-dialog__actions {
  display: flex;
  justify-content: center;
  padding-top: 0.3rem;
}

.redaction-report-dialog__pdf {
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  padding: 0.3rem;
  color: #ed3027;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.redaction-report-dialog__pdf svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.redaction-report-dialog__pdf span {
  font-size: 0.62rem;
  font-weight: 800;
}

.redaction-report-dialog__pdf:hover {
  background: rgb(237 48 39 / 9%);
}

.redaction-report-dialog__pdf:focus-visible,
.redaction-report-dialog__close:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.redaction-specialist-report__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.redaction-specialist-report__heading h4 {
  margin: 0;
  color: #126b20;
  font-size: 0.88rem;
}

.redaction-psychologist-report .redaction-specialist-report__heading h4 {
  color: #087c94;
}

.redaction-psychomotor-report .redaction-specialist-report__heading h4 {
  color: #765126;
}

.redaction-specialist-report .redaction-entry-actions,
.redaction-psychomotor-report .redaction-entry-actions {
  justify-content: flex-end;
  margin: 0;
}

.redaction-specialist-report .redaction-entry-button {
  border-color: rgb(24 133 28 / 32%);
}

.redaction-specialist-report .redaction-entry-button:hover {
  background: rgb(24 133 28 / 8%);
  border-color: rgb(24 133 28 / 55%);
}

.redaction-psychologist-report .redaction-entry-button {
  border-color: rgb(0 151 181 / 32%);
}

.redaction-psychologist-report .redaction-entry-button:hover {
  background: rgb(0 151 181 / 8%);
  border-color: rgb(0 151 181 / 55%);
}

.redaction-psychologist-report .redaction-specialist-report__heading {
  margin-bottom: 0.9rem;
}

.redaction-psychologist-report .redaction-report-dialog__objective,
.redaction-psychologist-report .redaction-report-dialog__achieved {
  margin-top: 0.8rem;
  padding: 0.85rem;
  background: linear-gradient(145deg, rgb(255 255 255 / 46%), rgb(255 255 255 / 18%));
  border: 1px solid rgb(0 151 181 / 14%);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgb(0 91 112 / 6%), inset 0 1px 0 rgb(255 255 255 / 82%);
}

.redaction-psychologist-report .redaction-report-dialog__achieved {
  width: 100%;
  max-width: 100%;
  padding: 0.65rem;
  grid-template-columns: max-content minmax(0, 1fr);
}

.redaction-psychologist-report .redaction-report-dialog__objective span,
.redaction-psychologist-report .redaction-report-dialog__achieved span {
  color: #12687a;
  font-size: 0.9rem;
  font-weight: 750;
}

.redaction-psychologist-report .redaction-report-dialog__objective textarea,
.redaction-psychologist-report .redaction-report-dialog__achieved input {
  width: 100%;
  min-height: 100px;
  padding: 0.8rem;
  color: #183946;
  background: rgb(255 255 255 / 58%);
  border: 1px solid rgb(0 125 150 / 27%);
  border-radius: 12px;
  box-shadow: inset 0 2px 5px rgb(0 91 112 / 5%), 0 1px 0 rgb(255 255 255 / 78%);
}

.redaction-psychologist-report .redaction-report-dialog__achieved input {
  height: 32px;
  min-height: 32px;
  padding: 0.2rem 0.45rem;
}

.redaction-psychologist-report .redaction-report-dialog__objective textarea:focus,
.redaction-psychologist-report .redaction-report-dialog__achieved input:focus {
  outline: 3px solid rgb(0 151 181 / 18%);
  outline-offset: 2px;
  background: rgb(255 255 255 / 88%);
  border-color: rgb(0 125 150 / 68%);
  box-shadow: 0 0 0 4px rgb(0 151 181 / 6%), inset 0 1px 3px rgb(0 91 112 / 4%);
}

.redaction-psychologist-report .redaction-report-dialog__pdf {
  min-width: 48px;
  padding: 0.35rem 0.5rem;
}

.redaction-psychomotor-report .redaction-entry-button {
  border-color: rgb(130 91 47 / 32%);
}

.redaction-psychomotor-report .redaction-entry-button:hover {
  background: rgb(130 91 47 / 8%);
  border-color: rgb(130 91 47 / 55%);
}

.redaction-pane.redaction-psychomotor-report {
  color: #3b2a1a;
  background:
    radial-gradient(ellipse at 8% 0%, rgb(255 255 255 / 76%), transparent 34%),
    radial-gradient(ellipse at 100% 14%, rgb(194 151 98 / 17%), transparent 36%),
    linear-gradient(145deg, rgb(255 253 245 / 86%), rgb(246 237 219 / 72%));
  border: 1px solid rgb(118 81 38 / 48%);
  border-radius: 22px;
  box-shadow:
    0 22px 52px rgb(57 37 19 / 13%),
    0 8px 22px rgb(95 66 34 / 8%),
    inset 0 1px 0 rgb(255 255 255 / 88%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.redaction-psychomotor-report .redaction-specialist-report__heading {
  padding: 0.7rem 0.75rem;
  margin: -0.2rem -0.2rem 0.9rem;
  background:
    linear-gradient(115deg, rgb(255 255 255 / 54%), transparent 55%),
    linear-gradient(135deg, rgb(118 81 38 / 13%), rgb(194 151 98 / 8%));
  border: 1px solid rgb(118 81 38 / 12%);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 74%);
}

.redaction-psychomotor-report .redaction-specialist-report__heading h4 {
  color: #65451f;
  font-size: 1rem;
  font-weight: 800;
}

.redaction-psychomotor-report .redaction-entry-actions {
  align-items: center;
}

.redaction-specialist-report:not(.redaction-psychologist-report) .redaction-specialist-report__heading,
.redaction-psychologist-report .redaction-specialist-report__heading {
  padding: 0.7rem 0.75rem;
  margin: -0.2rem -0.2rem 0.9rem;
  background:
    linear-gradient(115deg, rgb(255 255 255 / 54%), transparent 55%),
    linear-gradient(135deg, rgb(24 133 28 / 13%), rgb(120 190 110 / 8%));
  border: 1px solid rgb(24 133 28 / 12%);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 74%);
}

.redaction-psychologist-report .redaction-specialist-report__heading {
  background:
    linear-gradient(115deg, rgb(255 255 255 / 54%), transparent 55%),
    linear-gradient(135deg, rgb(0 151 181 / 13%), rgb(110 200 220 / 8%));
  border-color: rgb(0 151 181 / 12%);
}

.redaction-specialist-report .redaction-specialist-report__heading h4 {
  color: #0f5c1b;
  font-size: 1rem;
  font-weight: 800;
}

.redaction-psychologist-report .redaction-specialist-report__heading h4 {
  color: #0a6578;
}

.redaction-specialist-report .redaction-entry-actions {
  align-items: center;
}

.redaction-psychomotor-report .redaction-report-dialog__scores {
  gap: 0.65rem 0.8rem;
  margin-bottom: 0.9rem;
  padding: 0.8rem;
  color: #54391e;
  background: linear-gradient(135deg, rgb(255 255 255 / 56%), rgb(239 226 205 / 34%));
  border: 1px solid rgb(118 81 38 / 15%);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgb(74 50 25 / 7%), inset 0 1px 0 rgb(255 255 255 / 80%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.redaction-psychomotor-report .redaction-report-dialog__scores > label {
  gap: 0.4rem;
  font-weight: 650;
}

.redaction-psychomotor-report .redaction-report-dialog__scores > label span {
  color: #60431f;
  font-size: 0.78rem;
}

.redaction-psychomotor-report .redaction-report-dialog__scores select,
.redaction-psychomotor-report .redaction-report-dialog__scores input[type="number"] {
  color: #49331e;
  background: rgb(255 255 255 / 58%);
  border: 1px solid rgb(118 81 38 / 25%);
  border-radius: 9px;
  box-shadow: inset 0 1px 3px rgb(74 50 25 / 6%), 0 1px 0 rgb(255 255 255 / 65%);
}

.redaction-psychomotor-report .redaction-report-dialog__fatigue {
  gap: 0.5rem;
  padding-left: 0.25rem;
  color: #54391e;
}

.redaction-psychomotor-report .redaction-report-dialog__fatigue label {
  color: #65451f;
  font-weight: 700;
}

.redaction-psychomotor-report .redaction-report-dialog__fatigue input {
  accent-color: #765126;
}

.redaction-psychomotor-report .redaction-report-dialog__objective {
  gap: 0.55rem;
  margin-top: 0.8rem;
  padding: 0.85rem;
  background: linear-gradient(145deg, rgb(255 255 255 / 40%), rgb(255 255 255 / 18%));
  border: 1px solid rgb(118 81 38 / 12%);
  border-radius: 16px;
  box-shadow: 0 7px 22px rgb(74 50 25 / 5%), inset 0 1px 0 rgb(255 255 255 / 76%);
}

.redaction-psychomotor-report .redaction-report-dialog__objective span {
  color: #60431f;
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.redaction-psychomotor-report .redaction-report-dialog__objective textarea {
  min-height: 130px;
  padding: 0.85rem 0.95rem;
  color: #38291b;
  background: rgb(255 255 255 / 56%);
  border: 1px solid rgb(118 81 38 / 28%);
  border-radius: 12px;
  box-shadow: inset 0 2px 5px rgb(74 50 25 / 5%), 0 1px 0 rgb(255 255 255 / 72%);
}

.redaction-psychomotor-report .redaction-report-dialog__objective textarea:focus,
.redaction-psychomotor-report .redaction-report-dialog__scores select:focus,
.redaction-psychomotor-report .redaction-report-dialog__scores input:focus {
  outline: 3px solid rgb(130 91 47 / 18%);
  outline-offset: 2px;
  background: rgb(255 255 255 / 86%);
  border-color: rgb(118 81 38 / 70%);
  box-shadow: 0 0 0 4px rgb(130 91 47 / 7%), inset 0 1px 3px rgb(74 50 25 / 4%);
}

.redaction-psychomotor-report .redaction-report-dialog__pdf {
  min-width: 48px;
  padding: 0.35rem 0.5rem;
  background: rgb(255 255 255 / 48%);
  border: 1px solid rgb(118 81 38 / 16%);
  box-shadow: 0 5px 16px rgb(74 50 25 / 8%), inset 0 1px 0 rgb(255 255 255 / 82%);
}

.redaction-psychomotor-report .redaction-report-dialog__pdf:hover {
  background: rgb(255 255 255 / 78%);
  box-shadow: 0 8px 20px rgb(74 50 25 / 12%), inset 0 1px 0 #fff;
}

.redaction-specialist-report textarea[readonly],
.redaction-psychomotor-report textarea[readonly] {
  cursor: default;
}

.redaction-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.redaction-field {
  width: min(100%, 520px);
  padding: 0.35rem 0.5rem;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  background: rgb(255 255 255 / 54%);
  border: 1px solid rgb(82 87 127 / 10%);
  border-radius: 14px;
}

.redaction-field span,
.redaction-note span {
  color: var(--brand-indigo-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.redaction-field--document { width: min(100%, 430px); }
.redaction-field--medium { width: min(100%, 560px); }
.redaction-field--wide { width: min(100%, 640px); }
.redaction-field--xwide { width: min(100%, 760px); }
.redaction-field--small { width: min(100%, 330px); }
.redaction-field--aide-name { width: min(100%, 460px); }

.redaction-document-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  padding: 0.75rem 1rem;
  background: rgb(255 255 255 / 72%);
  border: 1px solid rgb(82 87 127 / 14%);
  border-radius: 16px;
}

.redaction-aidant-accordion__toggle {
  padding: 0.7rem 0.85rem;
  color: var(--brand-indigo-dark);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  background: rgb(255 255 255 / 72%);
  border: 1px solid rgb(223 31 101 / 16%);
  border-radius: 12px;
}

.redaction-aidant-accordion__toggle::-webkit-details-marker {
  display: none;
}

.redaction-aidant-accordion__toggle::after {
  content: "⌄";
  display: inline-block;
  margin-left: 0.5rem;
  transition: transform 160ms ease;
}

.redaction-aidant-accordion[open] .redaction-aidant-accordion__toggle::after {
  transform: rotate(180deg);
}

.redaction-aidant-accordion__toggle:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

.redaction-aidant-accordion .redaction-fields {
  margin-top: 0.75rem;
}

.redaction-entry-blocks {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding: 0.8rem;
  background:
    radial-gradient(circle at top left, rgb(201 35 53 / 9%), transparent 42%),
    linear-gradient(145deg, rgb(255 244 245 / 96%), rgb(255 249 249 / 94%));
  border: 1px solid rgb(201 35 53 / 28%);
  border-radius: 18px;
}

.redaction-entry-blocks .redaction-entry-heading h4 {
  color: #a61b2b;
}

.redaction-entry-blocks .redaction-entry-button {
  color: #8f1726;
  border-color: rgb(201 35 53 / 32%);
}

.redaction-entry-blocks .redaction-entry-button:hover {
  background: rgb(201 35 53 / 8%);
  border-color: rgb(201 35 53 / 55%);
}

.redaction-entry-block {
  padding: 0.85rem;
  background: rgb(255 255 255 / 84%);
  border: 1px solid rgb(82 87 127 / 12%);
  border-radius: 14px;
}

.redaction-entry-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.redaction-entry-heading h4,
.redaction-entry-block h4 {
  margin: 0;
  color: var(--brand-indigo-dark);
  font-size: 0.88rem;
}

.redaction-entry-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.redaction-entry-heading .redaction-entry-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.redaction-entry-button {
  min-height: 32px;
  padding: 0.35rem 0.7rem;
  color: var(--brand-indigo-dark);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgb(255 255 255 / 82%);
  border: 1px solid rgb(63 70 150 / 22%);
  border-radius: 9px;
  cursor: pointer;
}

.redaction-entry-button:hover {
  background: rgb(63 70 150 / 8%);
  border-color: rgb(63 70 150 / 44%);
}

.redaction-entry-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.redaction-entry-editor {
  margin-top: 0.7rem;
}

.redaction-columns .redaction-pane textarea {
  height: 360px;
  min-height: 360px;
  box-sizing: border-box;
  resize: vertical;
}

.redaction-columns #redactionPfrObjective,
.redaction-columns #redactionResourcesObjective,
.redaction-columns #redactionSharedObjective,
.redaction-columns #psychomotorTargetObjective {
  height: 180px;
  min-height: 180px;
}

.redaction-columns #redactionPfrObjectiveAchievedBy,
.redaction-columns #redactionResourcesObjectiveAchievedBy,
.redaction-columns #redactionSharedObjectiveAchievedBy,
.redaction-columns #redactionSocialIntervention {
  height: 90px;
  min-height: 90px;
}

.redaction-entry-editor textarea {
  width: 100%;
  padding: 0.75rem;
  color: var(--ink);
  font: inherit;
  background: rgb(255 255 255 / 84%);
  border: 1.5px solid rgb(82 87 127 / 18%);
  border-radius: 12px;
  box-sizing: border-box;
  resize: vertical;
}

.redaction-entry-editor textarea[readonly] {
  background: rgb(246 247 251 / 88%);
  cursor: default;
}

.redaction-entry-editor textarea:focus {
  border-color: rgb(223 31 101 / 36%);
  outline: 3px solid rgb(223 31 101 / 10%);
}

.redaction-document-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.4rem;
  margin-right: auto;
}

.redaction-document-menu > .dossier-zarit {
  flex: 0 0 auto;
  margin-left: auto;
}

.redaction-document-button {
  min-height: 34px;
  padding: 0.4rem 0.7rem;
  color: var(--brand-indigo-dark);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgb(255 255 255 / 78%);
  border: 1px solid rgb(63 70 150 / 24%);
  border-radius: 9px;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.redaction-document-button:hover {
  background: rgb(63 70 150 / 8%);
  border-color: rgb(63 70 150 / 48%);
}

.redaction-document-button[data-redaction-document-type="Bilan PFR"] {
  color: #a3173f;
  border-color: rgb(163 23 63 / 32%);
}

.redaction-document-button[data-redaction-document-type="Bilan PFR"]:hover {
  background: rgb(163 23 63 / 8%);
  border-color: rgb(163 23 63 / 55%);
}

.redaction-document-button[data-redaction-document-type="Bilan Assistante Sociale"] {
  color: #126b20;
  border-color: rgb(24 133 28 / 32%);
}

.redaction-document-button[data-redaction-document-type="Bilan Assistante Sociale"]:hover {
  background: rgb(24 133 28 / 8%);
  border-color: rgb(24 133 28 / 55%);
}

.redaction-document-button[data-redaction-document-type="Bilan Psychologue"] {
  color: #087c94;
  border-color: rgb(0 151 181 / 32%);
}

.redaction-document-button[data-redaction-document-type="Bilan Psychologue"]:hover {
  background: rgb(0 151 181 / 8%);
  border-color: rgb(0 151 181 / 55%);
}

.redaction-document-button[data-redaction-document-type="Bilan Psychomoteur"] {
  color: #765126;
  border-color: rgb(130 91 47 / 32%);
}

.redaction-document-button[data-redaction-document-type="Bilan Psychomoteur"]:hover {
  background: rgb(130 91 47 / 8%);
  border-color: rgb(130 91 47 / 55%);
}

.redaction-document-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.redaction-document-button.is-selected {
  color: #fff;
  background: linear-gradient(145deg, var(--brand-indigo), var(--brand-indigo-dark));
  border-color: var(--brand-indigo-dark);
}

.redaction-editor-overlay {
  position: fixed;
  inset: 0;
  z-index: 8990;
  background: rgb(20 24 48 / 58%);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.redaction-editor-overlay[hidden] {
  display: none;
}

body.has-redaction-editor {
  overflow: hidden;
}

.redaction-editor-dialog {
  position: fixed;
  inset: 0;
  z-index: 9000;
  width: calc(100vw - 24px);
  max-width: none;
  height: calc(var(--desktop-height, 100vh) - 24px);
  max-height: none;
  margin: auto;
  padding: 0;
  color: var(--brand-indigo-dark);
  background: #fff;
  border: 1px solid rgb(63 70 150 / 22%);
  border-radius: 22px;
  box-shadow: 0 28px 90px rgb(43 36 103 / 28%);
  overflow: hidden;
}

.redaction-editor-dialog[open] {
  display: flex;
  flex-direction: column;
}

.redaction-editor-dialog__form {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.redaction-editor-dialog__header,
.redaction-editor-dialog__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(135deg, rgb(63 70 150 / 8%), rgb(223 31 101 / 7%));
}

.redaction-editor-dialog__header {
  border-bottom: 1px solid rgb(63 70 150 / 16%);
}

.redaction-editor-dialog__eyebrow {
  color: var(--brand-pink-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.redaction-editor-dialog__header h2 {
  margin: 0.15rem 0 0;
  font-size: 1.2rem;
}

.redaction-editor-dialog__close {
  width: 36px;
  height: 36px;
  color: var(--brand-indigo-dark);
  font-size: 1.7rem;
  line-height: 1;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.redaction-editor-dialog__close:hover {
  background: rgb(63 70 150 / 10%);
}

.redaction-editor-dialog__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  flex: 1;
  gap: 1rem;
  min-height: 0;
  padding: 1rem 1.25rem;
}

.redaction-editor-main {
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

.redaction-editor-dialog__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(135deg, rgb(63 70 150 / 8%), rgb(223 31 101 / 7%));
}

.redaction-editor-dialog__header {
  border-bottom: 1px solid rgb(63 70 150 / 16%);
}

.redaction-editor-dialog__eyebrow {
  color: var(--brand-pink-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.redaction-editor-dialog__header h2 {
  margin: 0.15rem 0 0;
  font-size: 1.2rem;
}

.redaction-editor-dialog__close {
  width: 36px;
  height: 36px;
  color: var(--brand-indigo-dark);
  font-size: 1.7rem;
  line-height: 1;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.redaction-editor-dialog__close:hover {
  background: rgb(63 70 150 / 10%);
}

.redaction-editor-dialog__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  flex: 1;
  gap: 1rem;
  min-height: 0;
  padding: 1rem 1.25rem;
}

.redaction-editor-main {
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

.redaction-editor-hint {
  margin: 0;
  color: #667085;
  font-size: 0.78rem;
}

.redaction-editor-dialog__actions {
  justify-content: flex-end;
  border-top: 1px solid rgb(63 70 150 / 16%);
}

.redaction-pdf-dialog {
  z-index: 9500;
  width: min(1100px, calc(100vw - 48px));
  height: calc(var(--desktop-height, 100vh) - 48px);
}

.redaction-pdf-dialog__body {
  position: relative;
  padding: 0;
  background: #525659;
}

.redaction-pdf-dialog__pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  height: 100%;
  padding: 18px;
  overflow: auto;
}

.redaction-pdf-dialog__pages[hidden] {
  display: none;
}

.redaction-pdf-dialog__pages canvas {
  width: min(100%, 820px);
  height: auto;
  background: #fff;
  box-shadow: 0 6px 24px rgb(0 0 0 / 35%);
}

.redaction-pdf-dialog__loading {
  align-self: center;
  justify-self: center;
  margin: 0;
  color: #fff;
  font-weight: 700;
}

.redaction-pdf-dialog .redaction-editor-dialog__actions a {
  text-decoration: none;
}

.redaction-document-button[data-redaction-document-type="Bilan PFR"].is-selected {
  color: #fff;
  background: linear-gradient(145deg, #c42153, #a3173f);
  border-color: #a3173f;
}

.redaction-document-button[data-redaction-document-type="Bilan Assistante Sociale"].is-selected {
  color: #fff;
  background: linear-gradient(145deg, #18851c, #126b20);
  border-color: #126b20;
}

.redaction-document-button[data-redaction-document-type="Bilan Psychologue"].is-selected {
  color: #fff;
  background: linear-gradient(145deg, #0097b5, #087c94);
  border-color: #087c94;
}

.redaction-document-button[data-redaction-document-type="Bilan Psychomoteur"].is-selected {
  color: #fff;
  background: linear-gradient(145deg, #936a39, #765126);
  border-color: #765126;
}

.redaction-field--tiny {
  width: auto;
  grid-template-columns: max-content 58px;
  padding-inline: 0;
  background: transparent;
  border: 0;
}

.redaction-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
}

.redaction-inline--aide {
  align-items: end;
}

.redaction-pane .redaction-field--document,
.redaction-pane .redaction-field--medium,
.redaction-pane .redaction-field--wide,
.redaction-pane .redaction-field--xwide {
  width: 100%;
}

.redaction-note {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: linear-gradient(135deg, rgb(255 255 255 / 72%), rgb(255 246 251 / 62%));
  border: 1px solid rgb(223 31 101 / 14%);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgb(43 36 103 / 6%);
}

.redaction-note--green {
  background: linear-gradient(135deg, rgb(255 255 255 / 74%), rgb(246 255 248 / 64%));
  border-color: rgb(24 133 28 / 16%);
}

.redaction-note--green span {
  color: #126b20;
}

.redaction-note textarea {
  width: 100%;
  min-height: 150px;
  height: auto;
  padding: 0.95rem 1rem;
  color: var(--ink);
  resize: vertical;
  background: rgb(255 255 255 / 78%);
  border: 1.5px solid rgb(82 87 127 / 18%);
  border-radius: 16px;
  outline: none;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 76%);
  box-sizing: border-box;
}

.redaction-note textarea:focus {
  background: #fff;
  border-color: rgb(223 31 101 / 36%);
  box-shadow: 0 0 0 4px rgb(223 31 101 / 10%);
}

.redaction-note--green textarea:focus {
  border-color: rgb(24 133 28 / 38%);
  box-shadow: 0 0 0 4px rgb(24 133 28 / 10%);
}

.redaction-actions {
  display: flex;
  justify-content: center;
}

.icon-action.redaction-save {
  width: auto;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1rem;
  font: inherit;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-pink), var(--brand-pink-dark));
  border-radius: 16px;
  box-shadow: 0 14px 28px rgb(223 31 101 / 22%);
}

@media (max-width: 1100px) {
  .redaction-columns {
    grid-template-columns: 1fr;
  }

  .redaction-columns.has-specialist-report {
    grid-template-columns: 1fr;
  }

  .redaction-specialist-stack {
    grid-column: 1;
  }
}

.mails-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mails-card {
  padding: 1.1rem;
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(300px, 1.05fr);
  gap: 1rem;
  background:
    radial-gradient(circle at top left, rgb(63 70 150 / 10%), transparent 30%),
    radial-gradient(circle at bottom right, rgb(223 31 101 / 11%), transparent 34%),
    linear-gradient(135deg, rgb(255 255 255 / 86%), rgb(247 249 255 / 76%));
  border: 1.5px solid rgb(63 70 150 / 18%);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgb(43 36 103 / 10%);
}

.mails-composer,
.mails-side-panel,
.mails-directory {
  min-width: 0;
  background: rgb(255 255 255 / 76%);
  border: 1px solid rgb(63 70 150 / 16%);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgb(43 36 103 / 7%);
}

.mails-composer {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mails-type-field {
  max-width: 440px;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
}

.mails-type-field span,
.mails-delete-field span,
.mails-attachment span {
  color: var(--brand-indigo-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.mails-editor-shell {
  min-height: 450px;
}

.mails-editor {
  min-height: 390px;
  height: auto;
  overflow: visible;
  background: linear-gradient(135deg, rgb(255 255 255 / 76%), rgb(255 255 255 / 92%));
}

.mails-side-panel {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background:
    radial-gradient(circle at top right, rgb(223 31 101 / 9%), transparent 36%),
    linear-gradient(135deg, rgb(255 255 255 / 80%), rgb(249 247 255 / 70%));
}

.mails-delete-row {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 0.45rem;
}

.mails-delete-field {
  max-width: 230px;
  display: grid;
  grid-template-columns: max-content 74px;
  align-items: center;
  gap: 0.55rem;
}

.mails-delete-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #ff4a63, var(--brand-pink-dark));
  border: 0;
  border-radius: 11px;
  box-shadow: 0 8px 18px rgb(223 31 101 / 22%);
}

.mails-delete-button svg,
.mails-attach-button svg,
.mails-send-button svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.mails-mini-table {
  overflow: hidden;
  border: 1px solid rgb(63 70 150 / 14%);
  border-radius: 14px;
}

.mails-mini-table table,
.mails-table {
  width: 100%;
  border-collapse: collapse;
}

.mails-mini-table th {
  padding: 0.55rem 0.5rem;
  color: #fff;
  background: linear-gradient(120deg, var(--brand-indigo), var(--brand-indigo-dark));
  font-size: 0.76rem;
  text-align: left;
}

.mails-mini-table td {
  padding: 0.75rem;
  color: #646b80;
  background: rgb(255 255 255 / 74%);
  font-size: 0.78rem;
  font-weight: 650;
}

.mails-attachment {
  padding: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgb(255 255 255 / 68%);
  border: 1px dashed rgb(63 70 150 / 24%);
  border-radius: 16px;
}

.mails-attach-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-indigo), var(--brand-pink-dark));
  border-radius: 14px;
  box-shadow: 0 10px 20px rgb(223 31 101 / 18%);
  cursor: pointer;
}

.mails-attach-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.mails-directory {
  grid-column: 1 / -1;
  overflow: hidden;
}

.mails-table th {
  padding: 0.7rem 0.65rem;
  color: #fff;
  background: linear-gradient(120deg, #2f9fce, var(--brand-indigo), var(--brand-pink-dark));
  font-size: 0.78rem;
  font-weight: 850;
  text-align: left;
}

.mails-table td {
  padding: 0.58rem 0.65rem;
  border-top: 1px solid rgb(63 70 150 / 12%);
  font-size: 0.8rem;
  font-weight: 650;
}

.mails-table tbody tr:nth-child(even) td {
  background: rgb(47 159 206 / 10%);
}

.mails-table tbody tr:nth-child(odd) td {
  background: rgb(255 255 255 / 72%);
}

.mails-filter-row input {
  width: 100%;
  height: 28px;
  border: 1px solid rgb(47 159 206 / 36%);
  border-radius: 8px;
}

.mails-table-footer {
  padding: 0.65rem 0.85rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  color: #fff;
  background: linear-gradient(120deg, #2f9fce, var(--brand-indigo));
  font-size: 0.74rem;
  font-weight: 750;
}

.mails-table-footer strong {
  padding: 0.1rem 0.35rem;
  color: var(--brand-indigo-dark);
  background: #fff;
  border-radius: 6px;
}

.mails-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
}

.mails-send-button {
  width: 54px;
  height: 54px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-pink), var(--brand-pink-dark));
  border-radius: 16px;
  box-shadow: 0 14px 28px rgb(223 31 101 / 22%);
}

@media (max-width: 1050px) {
  .mails-card {
    grid-template-columns: 1fr;
  }

  .mails-directory,
  .mails-actions {
    grid-column: auto;
  }
}

.annexes-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.annexes-card {
  padding: 1.1rem;
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(420px, 1.25fr);
  gap: 1rem;
  align-items: start;
  background:
    radial-gradient(circle at top left, rgb(223 31 101 / 10%), transparent 31%),
    radial-gradient(circle at bottom right, rgb(63 70 150 / 10%), transparent 36%),
    linear-gradient(135deg, rgb(255 255 255 / 86%), rgb(247 249 255 / 74%));
  border: 1.5px solid rgb(63 70 150 / 18%);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgb(43 36 103 / 10%);
}

.annexes-upload {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: linear-gradient(135deg, rgb(255 255 255 / 80%), rgb(255 246 251 / 62%));
  border: 1px solid rgb(223 31 101 / 18%);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgb(43 36 103 / 7%);
}

.annexes-title-field {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
}

.annexes-title-field span {
  color: var(--brand-indigo-dark);
  font-size: 0.82rem;
  font-weight: 850;
}

.annexes-file-button {
  position: relative;
  align-self: flex-start;
  max-width: 100%;
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(120deg, var(--brand-indigo-dark), var(--brand-pink-dark));
  border-radius: 14px;
  box-shadow: 0 10px 22px rgb(223 31 101 / 20%);
  font-weight: 850;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.annexes-file-button input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.annexes-file-button:focus-within {
  outline: 3px solid var(--brand-indigo-dark);
  outline-offset: 3px;
}

.annexes-add-button {
  width: fit-content;
  min-height: 50px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 16px;
}

.annexes-add-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.annexes-table-card {
  overflow: hidden;
  background: rgb(255 255 255 / 76%);
  border: 1px solid rgb(63 70 150 / 16%);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgb(43 36 103 / 7%);
}

.annexes-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 0.82rem;
}

.annexes-table th {
  padding: 0.85rem 0.75rem;
  color: #fff;
  background: linear-gradient(120deg, var(--brand-indigo-dark), #555aaf, var(--brand-pink-dark));
  font-weight: 850;
  text-align: left;
}

.annexes-table td {
  padding: 0.9rem 0.75rem;
  background: rgb(255 253 233 / 48%);
  border-top: 1px solid rgb(82 87 127 / 12%);
  font-weight: 700;
}

.annexes-table th:first-child,
.annexes-table td:first-child {
  display: none;
}

.annexes-table th:last-child,
.annexes-table td:last-child {
  width: 150px;
  text-align: center;
}

.annexes-table td:last-child .icon-action {
  margin-inline: auto;
  background: linear-gradient(135deg, #312467, #782c83 55%, #b51158);
  box-shadow: 0 5px 14px rgb(78 35 109 / 24%);
  text-decoration: none;
}

.annexes-table td:last-child .icon-action:hover {
  background: linear-gradient(135deg, #24194e, #642170 55%, #970b48);
}

.annexes-table td:last-child .icon-action:focus-visible {
  outline: 3px solid var(--brand-indigo-dark);
  outline-offset: 3px;
}

@media (max-width: 1000px) {
  .annexes-card {
    grid-template-columns: 1fr;
  }
}

.dossier-subtabs-row {
  position: sticky;
  z-index: 3;
  margin-bottom: 0.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.35rem;
  background: rgb(255 255 255 / 92%);
  border-radius: 14px;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.dossier-subtabs-row > .dossier-save-caregiver {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.dossier-add-caregiver-button {
  grid-column: 2;
  grid-row: 1;
}

.dossier-add-caregiver-button,
.dossier-add-aide-button {
  padding: 0.6rem 1rem;
  color: #fff;
  background: linear-gradient(120deg, var(--brand-indigo-dark), #555aaf, var(--brand-pink-dark));
  border: 0;
  border-radius: 12px;
  font-weight: 750;
  cursor: pointer;
}

.dossier-add-caregiver-button:hover,
.dossier-add-aide-button:hover {
  filter: brightness(1.1);
}

.dossier-add-aide-button {
  background: linear-gradient(120deg, #0f766e, #047857);
}

.dossier-caregiver-choice select {
  appearance: none;
  padding-right: 2.25rem;
  color: var(--brand-indigo-dark);
  background-color: #f3f1fc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23474691' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  border: 1.5px solid rgb(63 70 150 / 35%);
  border-radius: 12px;
  box-shadow: 0 3px 10px rgb(43 36 103 / 7%);
  font-weight: 750;
  cursor: pointer;
}

.dossier-caregiver-choice select:focus-visible {
  outline: 2px solid var(--brand-indigo);
  outline-offset: 2px;
}

.dossier-add-caregiver-button[hidden] {
  display: none;
}

.dossier-subtabs {
  width: fit-content;
  padding: 0.3rem;
  display: flex;
  gap: 0.4rem;
  background: rgb(255 255 255 / 92%);
  border: 1px solid rgb(63 70 150 / 14%);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgb(43 36 103 / 8%);
}

.dossier-subtab-status {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  margin-left: auto;
  margin-right: 0.4rem;
  padding: 0.2rem 0.3rem;
  background: rgb(255 255 255 / 70%);
  border: 1px solid rgb(82 87 127 / 18%);
  border-radius: 10px;
}

.dossier-subtab-status.is-hidden {
  display: none;
}

.dossier-inline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #3d4359;
  font-size: 0.72rem;
  font-weight: 650;
  white-space: nowrap;
}

.dossier-inline-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--brand-indigo);
}

#redaction-editor-status {
  margin: 0;
}

#redaction-editor-status:empty {
  display: none;
}

.dossier-add-aide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
}

.dossier-subtab {
  padding: 0.5rem 1rem;
  color: #565d73;
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 750;
}

.dossier-subtab.is-active {
  color: #fff;
  background: linear-gradient(120deg, var(--brand-indigo-dark), #555aaf, var(--brand-pink-dark));
}

.dossier-subpanel {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.dossier-subpanel[hidden] {
  display: none;
}

.dossier-aide-register {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0.2rem;
}

.dossier-aide-register__button {
  padding: 0.4rem 0.8rem;
  color: #ff3d3d;
  background: #fff;
  border: 1.5px solid #ff3d3d;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.aided-identity-grid {
  display: grid;
  grid-template-columns: minmax(90px, 140px) minmax(180px, 1.2fr) minmax(180px, 1.2fr);
  align-items: end;
  gap: 0.5rem 0.75rem;
}
  
.field--quality {
  max-width: 140px;
}
  
.field--name,
.field--first-name {
  min-width: 0;
  max-width: unset;
}

.dossier-subpanel[data-subpanel="aide"] .inline-fields.field--full > .field:first-child {
  max-width: 260px;
}

.aided-identity-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem 0.6rem;
  min-height: 32px;
  margin-left: auto;
}

.aided-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #3d4359;
  font-size: 0.74rem;
  font-weight: 650;
  white-space: nowrap;
}

.aided-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--brand-indigo);
}

.aided-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0.2rem 0.7rem;
  color: #3d4359;
  background: #fff;
  border: 1px solid rgb(82 87 127 / 20%);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.dossier-aide-divider {
  height: 2px;
  background: rgb(82 87 127 / 38%);
  border-radius: 999px;
  margin-top: 0.2rem;
}

.dossier-save-caregiver {
  padding: 0.6rem 1rem;
  color: var(--danger);
  background: rgb(180 35 24 / 6%);
  border: 1.5px solid rgb(180 35 24 / 45%);
  border-radius: 12px;
  font-weight: 800;
}

.dossier-save-caregiver:hover {
  background: rgb(180 35 24 / 12%);
}

.dossier-save-caregiver[hidden] {
  display: none;
}

.dossier-section {
  overflow: hidden;
  background: rgb(255 255 255 / 58%);
  border: 1px solid rgb(255 255 255 / 82%);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgb(43 36 103 / 7%);
}

.dossier-section__header {
  width: 100%;
  padding: 0.8rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--brand-indigo-dark);
  background: transparent;
  border: 0;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 800;
}

.dossier-section__chevron {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 200ms ease;
}

.dossier-identity-heading {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.dossier-identity-heading > .dossier-section__header {
  width: 100%;
}

.dossier-identity-caregivers:not([hidden]) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: 100%;
  padding: 0.5rem 1.1rem;
}

.dossier-identity-caregivers select {
  max-width: 100%;
  min-height: 32px;
}

.dossier-section__header[aria-expanded="false"] .dossier-section__chevron {
  transform: rotate(-90deg);
}

.dossier-section__body {
  max-height: 4000px;
  padding: 0 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  opacity: 1;
  transition: max-height 260ms ease, opacity 200ms ease, padding 200ms ease;
}

.dossier-section.is-collapsed .dossier-section__body {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  overflow: hidden;
}

.dossier-content-with-photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: start;
  gap: 1rem;
}

.dossier-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.55rem 0.75rem;
}

.aided-contact-grid {
  grid-template-columns: 170px 170px minmax(220px, 420px) 170px;
}

.aided-address-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.aided-postal-grid {
  grid-template-columns: 130px minmax(220px, 340px) 340px;
}

.aided-doctor-grid {
  grid-template-columns: minmax(220px, 1fr) 160px minmax(220px, 1fr);
}

.aided-diagnostic-grid {
  grid-template-columns: minmax(0, 1fr);
}

.field--diagnostic {
  max-width: 260px;
}

.recipient-history-block {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.recipient-history-row {
  display: grid;
  grid-template-columns: 120px minmax(260px, 420px) minmax(300px, 420px);
  align-items: end;
  gap: 0.55rem 0.75rem;
}

.recipient-history-field--year input,
.recipient-history-field--children input {
  max-width: 90px;
}

.field-note {
  width: 100%;
  min-height: 84px;
  margin-top: 0.35rem;
  padding: 0.6rem 0.75rem;
  color: var(--ink);
  background: rgb(255 255 255 / 78%);
  border: 1.5px solid rgb(82 87 127 / 20%);
  border-radius: 12px;
  outline: none;
  font: inherit;
  font-size: 0.82rem;
  resize: vertical;
}

.field-note:focus {
  background: #fff;
  border-color: var(--brand-indigo);
  box-shadow: 0 0 0 4px rgb(63 70 150 / 12%);
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
}

.tag-grid label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  background: rgb(255 255 255 / 70%);
  border: 1px solid rgb(82 87 127 / 14%);
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
}

.tag-grid .field {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 0.78rem;
  white-space: nowrap;
}

.tag-grid .field input {
  width: 170px;
  min-width: 120px;
  height: 30px;
  min-height: 30px;
  padding: 0 0.5rem;
  color: var(--ink);
  background: rgb(255 255 255 / 78%);
  border: 1.5px solid rgb(82 87 127 / 20%);
  border-radius: 8px;
  outline: none;
}

.tag-grid input[type="checkbox"],
.tag-grid input[type="radio"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: var(--brand-indigo);
}

.inline-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
}

.inline-fields .field {
  flex: 1 1 190px;
}

.inline-fields .field--narrow {
  flex: 0 1 130px;
}

.inline-fields .field--age {
  flex: 0 0 70px;
}

.dossier-situation-title {
  margin: 0.4rem 0 0;
  color: var(--brand-pink-dark);
  text-align: center;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.dossier-situation-title--narratif {
  width: fit-content;
  margin: 0.8rem auto -0.2rem;
  padding: 0.55rem 1.4rem;
  color: #fff;
  background: linear-gradient(120deg, var(--brand-indigo-dark), #555aaf, var(--brand-pink-dark));
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgb(45 50 126 / 18%);
  text-decoration: none;
  letter-spacing: 0.08em;
}

.narrative-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 0.8rem auto 0;
}

.dossier-situation-title--history {
  background: linear-gradient(120deg, #0f766e, #047857);
}

.narrative-heading .dossier-situation-title--narratif {
  margin: 0;
}

.narrative-year {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem 0.35rem 0.8rem;
  color: var(--brand-indigo-dark);
  font-size: 0.82rem;
  font-weight: 800;
  background: linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(248 244 255 / 94%));
  border: 1px solid rgb(85 90 175 / 22%);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgb(45 50 126 / 10%);
}

.narrative-year select {
  min-height: 34px;
  padding: 0.3rem 1.8rem 0.3rem 0.7rem;
  color: #7c2d12;
  font: inherit;
  font-weight: 800;
  background: #fed7aa;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.narrative-year select:focus-visible {
  outline: 3px solid rgb(85 90 175 / 28%);
  outline-offset: 3px;
}

.dossier-situation-title--premium {
  width: fit-content;
  margin: 0.75rem auto 0.45rem;
  padding: 0.6rem 1.6rem;
  color: #fff;
  background: linear-gradient(120deg, var(--brand-indigo-dark), #555aaf, var(--brand-pink-dark));
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgb(45 50 126 / 18%);
  letter-spacing: 0.06em;
  text-decoration: none;
}

.dossier-quicknav {
  position: sticky;
  top: 0.5rem;
  padding: 0.75rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: rgb(255 255 255 / 55%);
  border: 1px solid rgb(63 70 150 / 14%);
  border-radius: 16px;
}

.dossier-quicknav[hidden] {
  display: none;
}

.dossier-quicknav__title {
  padding: 0 0.3rem;
  color: var(--brand-pink-dark);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.dossier-quicknav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.dossier-quicknav a {
  display: block;
  padding: 0.35rem 0.5rem;
  color: #565d73;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 650;
  text-decoration: none;
}

.dossier-quicknav a:hover {
  background: rgb(63 70 150 / 8%);
}

.dossier-quicknav a.is-active {
  color: #fff;
  background: linear-gradient(120deg, var(--brand-indigo-dark), var(--brand-pink-dark));
}

.dossier-placeholder {
  margin: 2rem 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 650;
}

.narrative-log {
  min-height: 120px;
  max-height: 260px;
  overflow-y: auto;
  color: #34394d;
  font-size: 0.8rem;
  cursor: default;
}

.narrative-log p {
  margin: 0 0 0.6rem;
}

.narrative-log:empty::before {
  content: "Aucun historique pour ce dossier.";
  color: #8a90a3;
}

.narrative-actions {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}

.narrative-history-actions {
  display: flex;
  justify-content: center;
  margin: 0.65rem 0 0.25rem;
}

.narrative-date-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #7c2d12;
  background: #fed7aa;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgb(234 88 12 / 16%);
}

.narrative-date-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.icon-action {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 0;
  border-radius: 12px;
}

.icon-action svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.narrative-actions .icon-action {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 0.85rem;
}

.icon-action--save {
  background: linear-gradient(145deg, var(--brand-indigo), var(--brand-indigo-dark));
}

.icon-action--validate {
  background: linear-gradient(145deg, var(--brand-pink), var(--brand-pink-dark));
}

.acte-counters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.acte-date-fields {
  justify-content: center;
  gap: 2rem;
}

.acte-date-fields .field {
  flex: 0 0 220px;
}

.acte-counter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.acte-counter span {
  color: #3d4359;
}

.acte-counter input {
  width: 64px;
  height: 32px;
  min-height: 32px;
  padding: 0 0.4rem;
  text-align: center;
  border: 1.5px solid rgb(82 87 127 / 20%);
  border-radius: 8px;
}

.acte-counter--icon svg {
  width: 20px;
  height: 20px;
  fill: #c0392b;
}

.acte-accompaniment {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 2fr);
  align-items: start;
  gap: 1rem;
  margin: 1rem 0 0;
  padding: 1rem 3.5rem 1rem 1rem;
  border: 1px solid #efbd8b;
  border-radius: 18px;
  background: #fff0df;
  box-shadow: 0 12px 28px rgb(158 88 29 / 10%);
}

.acte-accompaniment[hidden] {
  display: none;
}

.acte-accompaniment-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.acte-accompaniment-actions [role="status"] {
  font-size: 0.8rem;
}

.acte-accompaniment .acte-accompaniment-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid #dda773;
  border-radius: 8px;
  background: #fff8f0;
  color: #794315;
  font-size: 1.5rem;
  line-height: 1;
}

.acte-accompaniment .acte-accompaniment-close:hover {
  background: #ffe0bc;
}

.acte-accompaniment-people {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid rgb(82 87 127 / 24%);
  border-radius: 14px;
  background: rgb(255 255 255 / 82%);
  box-shadow: 0 4px 12px rgb(43 36 103 / 6%);
}

.acte-accompaniment-people[hidden],
.acte-instructor-fields[hidden] {
  display: none;
}

.acte-accompaniment-people legend {
  padding: 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.acte-accompaniment-people .tag-grid {
  gap: 0.4rem 0.75rem;
}

.acte-instructor-fields {
  margin-top: 0.65rem;
}

.acte-instructor-fields .inline-fields {
  flex-wrap: wrap;
}

.acte-accompaniment-help {
  margin: 0.65rem 0 0;
  color: #4f5570;
  font-size: 0.78rem;
  font-weight: 600;
}

.acte-accompaniment [data-accompaniment-people]:not([hidden]) {
  grid-column: 2;
}

.acte-accompaniment [data-instructor-fields] .inline-fields input {
  min-width: 120px;
}

@media (max-width: 760px) {
  .acte-accompaniment {
    grid-template-columns: 1fr;
  }

  .acte-accompaniment [data-accompaniment-people]:not([hidden]) {
    grid-column: 1;
  }
}

.acte-koze-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.5rem;
}

.acte-koze {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.4rem 0.5rem;
  background: rgb(255 255 255 / 70%);
  border: 1px solid rgb(82 87 127 / 14%);
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 650;
}

.acte-koze span {
  flex: 1;
  min-width: 0;
}

.acte-koze input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  accent-color: var(--brand-indigo);
}

.acte-koze input[type="text"] {
  width: 44px;
  height: 30px;
  min-height: 30px;
  padding: 0 0.3rem;
  text-align: center;
  border: 1.5px solid rgb(82 87 127 / 20%);
  border-radius: 8px;
}

.acte-two-column-blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.acte-two-column-blocks .choice-group {
  padding: 0.8rem;
  background:
    linear-gradient(135deg, rgb(63 70 150 / 16%), rgb(223 23 96 / 10%)),
    rgb(255 255 255 / 78%);
  border: 1px solid rgb(63 70 150 / 18%);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgb(43 36 103 / 8%);
}

.acte-two-column-blocks .inline-fields {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0.85rem;
}

.acte-two-column-blocks .field {
  align-items: flex-start;
  flex: 0 0 auto;
}

.acte-two-column-blocks .field input {
  width: 86px;
  min-width: 86px;
  text-align: center;
}

.acte-intervenant-line {
  align-items: flex-end;
  flex-wrap: nowrap;
}

.acte-inline-check {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  background: rgb(255 255 255 / 70%);
  border: 1px solid rgb(82 87 127 / 14%);
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
}

.acte-intervenant-line .field {
  flex: 0 0 220px;
}

.acte-narrative-link {
  display: flex;
  justify-content: center;
  margin-top: 0.2rem;
}

.back-to-top {
  position: fixed;
  z-index: 30;
  right: 0.5rem;
  bottom: 2rem;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-indigo-dark), var(--brand-pink-dark));
  border: 0;
  border-radius: 50%;
  box-shadow: 0 14px 30px rgb(45 50 126 / 30%);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

@media (max-width: 1300px) {
  .dossier-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .dossier-quicknav {
    display: none;
  }
}

.high-contrast .dossier-shell,
.high-contrast .dossier-topbar,
.high-contrast .dossier-tabs,
.high-contrast .dossier-section,
.high-contrast .dossier-quicknav,
.high-contrast .dossier-subtabs,
.high-contrast .dossier-orientations {
  color: #000;
  background: #fff;
  border: 3px solid #000;
  box-shadow: none;
}

.high-contrast .field-note,
.high-contrast .tag-grid label,
.high-contrast .acte-koze,
.high-contrast .acte-counter input,
.high-contrast .dossier-fields-grid .field input,
.high-contrast .dossier-fields-grid .field select {
  color: #000;
  background: #fff;
  border: 2px solid #000;
}

.high-contrast .dossier-tab.is-active,
.high-contrast .dossier-subtab.is-active,
.high-contrast .dossier-quicknav a.is-active,
.high-contrast .dossier-save-caregiver,
.high-contrast .dossier-zarit,
.high-contrast .icon-action,
.high-contrast .back-to-top {
  color: #fff;
  background: #000;
  border-color: #000;
}

@media (max-width: 600px) {
  .redaction-report-dialog__header {
    padding-inline: 2.75rem;
  }

  .redaction-report-dialog__header h2 {
    font-size: 1rem;
  }

  .redaction-report-dialog__achieved {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    margin: 16mm;
  }

  body * {
    visibility: hidden !important;
  }

  body[data-printing-report="redaction-psychologist-report"] #redaction-psychologist-report,
  body[data-printing-report="redaction-psychologist-report"] #redaction-psychologist-report *,
  body[data-printing-report="redaction-psychomotor-report"] #redaction-psychomotor-report,
  body[data-printing-report="redaction-psychomotor-report"] #redaction-psychomotor-report * {
    visibility: visible !important;
  }

  body[data-printing-report="redaction-psychologist-report"] #redaction-psychologist-report {
    position: absolute;
    inset: 0;
    display: block !important;
    width: 100%;
    max-width: none;
    margin: 0;
    color: #111;
    background: #fff;
    border: 1px solid #087c94;
    border-radius: 0;
    box-shadow: none;
  }

  body[data-printing-report="redaction-psychomotor-report"] #redaction-psychomotor-report {
    position: absolute;
    inset: 0;
    display: block !important;
    width: 100%;
    max-width: none;
    margin: 0;
    overflow: visible;
    color: #111;
    background: #fff;
    border: 1px solid #765126;
    border-radius: 0;
    box-shadow: none;
  }

  body[data-printing-report="redaction-psychomotor-report"] #redaction-psychomotor-report .redaction-entry-actions {
    display: none !important;
  }

  body[data-printing-report="redaction-psychomotor-report"] #redaction-psychomotor-report .redaction-report-dialog__objective,
  body[data-printing-report="redaction-psychomotor-report"] #redaction-psychomotor-report .redaction-report-dialog__scores {
    break-inside: avoid;
    background: #fff;
    box-shadow: none;
  }

  body[data-printing-report="redaction-psychologist-report"] #redaction-psychologist-report .redaction-entry-actions {
    display: none !important;
  }

  body[data-printing-report="redaction-psychologist-report"] #redaction-psychologist-report .redaction-report-dialog__objective,
  body[data-printing-report="redaction-psychologist-report"] #redaction-psychologist-report .redaction-report-dialog__achieved {
    break-inside: avoid;
    background: #fff;
    box-shadow: none;
  }

}
/* Keep result-table text readable without changing filter or entry fields. */
.records-table tbody td,
.records-table tbody th,
.todo-table tbody td,
.mails-table tbody td,
.mails-mini-table td,
.annexes-table tbody td,
.reporting-prescripteurs-table tbody td,
.reporting-profile-table tbody td,
.reporting-prestations-table tbody td {
  font-size: 0.95rem;
}

@media screen and (min-width: 1024px) {
  body.viewport-fit-page {
    height: var(--desktop-height, 100vh);
    min-height: 0;
    overflow: hidden;
  }

  body.todo-page,
  body.reporting-page {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .todo-page .todo-shell,
  .reporting-page .reporting-shell {
    min-height: 0;
    overflow: hidden;
  }

  .todo-page .todo-shell {
    gap: 0.65rem;
  }

  .todo-page .todo-table-card {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
  }

  .todo-page .todo-table thead th {
    top: 0;
  }

  .todo-page .todo-table th,
  .todo-page .todo-table td {
    padding-block: 0.15rem;
  }

  .todo-page .todo-status-button {
    min-height: 30px;
  }

  .reporting-page .reporting-layout {
    flex: 1;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.75rem;
  }

  .reporting-page .reporting-control-card {
    position: static;
    padding: 0.65rem 0.9rem;
    gap: 0.5rem;
  }

  .reporting-page .reporting-preview-card {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .reporting-page .reporting-preview-content {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 1rem 1.25rem;
  }

  .reporting-page .reporting-detail {
    min-height: 0;
  }

  .preinscription-page {
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .preinscription-page .form-workspace {
    min-height: 0;
  }

  .preinscription-page .form-main {
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media screen and (min-width: 1024px) {
  .preinscription-page .form-workspace {
    width: min(100% - 2rem, 1880px);
    max-width: none;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 1rem;
  }

  .preinscription-page .action-sidebar__nav {
    gap: 0.35rem;
  }

  .preinscription-page .sidebar-action {
    min-height: 40px;
    padding: 0.35rem 0.45rem;
    gap: 0.35rem;
    font-size: 0.68rem;
    line-height: 1.15;
  }

  .preinscription-page .sidebar-action--solid,
  .preinscription-page .sidebar-action--list {
    min-height: 52px;
    margin-block: 0;
    padding: 0.35rem 0.4rem;
    gap: 0.3rem;
    font-size: 0.68rem;
  }

  .preinscription-page .sidebar-action--solid svg,
  .preinscription-page .sidebar-action--list svg {
    width: 19px;
    height: 19px;
  }

  .preinscription-page .sidebar-action--save {
    min-height: 58px;
    aspect-ratio: auto;
    margin-block: 0;
    padding: 0.35rem 0.4rem;
    gap: 0.25rem;
    font-size: 0.68rem;
  }

  .preinscription-page .sidebar-action--save svg {
    width: 21px;
    height: 21px;
  }
}

@media screen and (min-width: 1600px) {
  .login-layout {
    width: min(100% - 5rem, 1520px);
    grid-template-columns: minmax(0, 1.1fr) minmax(400px, 0.78fr);
  }

  .brand-visual {
    width: min(100%, 700px);
  }

  .login-panel {
    width: min(100%, 460px);
  }

  .modules-main {
    width: min(100% - 2rem, 1880px);
  }

  .form-workspace {
    width: min(100% - 5rem, 1680px);
  }

  .records-main,
  .dossier-main {
    width: min(100% - 2rem, 1880px);
  }

  .reporting-page .records-main {
    max-width: 1880px;
  }
}

@media screen and (min-width: 1024px) and (max-width: 1440px) {
  .form-page,
  .records-page {
    min-width: 0;
  }

  .form-workspace,
  .records-main,
  .dossier-main {
    width: calc(100% - 2rem);
  }

  .form-workspace {
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 1rem;
  }

  .records-shell {
    padding: 0.75rem 1rem 1rem;
  }

  .dossier-shell {
    border-radius: 28px;
  }
}

@media screen and (max-height: 850px) {
  .respite-page .records-legend,
  .daycare-page .records-legend,
  .itinerant-page .records-legend {
    min-height: 0;
    margin-bottom: 0.5rem;
    padding-block: 0.45rem;
    gap: 0.35rem 0.65rem;
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .respite-page .records-table th,
  .respite-page .records-table td,
  .daycare-page .records-table th,
  .daycare-page .records-table td,
  .itinerant-page .records-table th,
  .itinerant-page .records-table td {
    height: 24px;
    padding-block: 0;
    line-height: 1.05;
  }

  .respite-page .records-table tbody td,
  .respite-page .records-table tbody th,
  .daycare-page .records-table tbody td,
  .daycare-page .records-table tbody th,
  .itinerant-page .records-table tbody td,
  .itinerant-page .records-table tbody th {
    font-size: 0.82rem;
  }

  .respite-page .record-link,
  .daycare-page .record-link,
  .itinerant-page .record-link {
    min-height: 22px;
    padding-block: 0;
    font-size: 0.82rem;
    line-height: 1.1;
  }

  .respite-page .filter-row th,
  .daycare-page .filter-row th,
  .itinerant-page .filter-row th {
    padding-block: 0.1rem;
  }

  .respite-page .filter-row input,
  .daycare-page .filter-row input,
  .itinerant-page .filter-row input {
    height: 26px;
    min-height: 26px;
  }

  .respite-page .records-footer,
  .daycare-page .records-footer,
  .itinerant-page .records-footer {
    margin-top: 0.5rem;
  }
}

@media screen and (min-width: 1024px) and (max-height: 820px) {
  .login-layout {
    padding-top: 3.5rem;
    padding-bottom: 1rem;
  }

  .brand-visual {
    padding-block: clamp(1.25rem, 3vh, 2rem);
  }

  .brand-logo {
    width: min(100%, 340px);
    margin-block: 0.75rem 0.5rem;
  }

  .trust-pill {
    margin-top: 0.75rem;
  }

  .login-heading {
    margin-bottom: 1rem;
  }

  .login-card__content {
    padding: 1.6rem 2rem;
  }

  .form-field {
    margin-bottom: 0.85rem;
  }

  .input-group input {
    height: 52px;
  }

  .login-button {
    min-height: 54px;
  }

  .login-footer {
    margin-top: 0.85rem;
    line-height: 1.45;
  }

  .footer-logo {
    width: 58px;
    height: 58px;
    margin-block: 0.3rem 0.15rem;
  }
}

@media screen and (min-width: 1024px) {
  .login-page .login-layout {
    min-height: var(--desktop-height, 100dvh);
    padding-block: 3rem 1rem;
  }

  .login-page .brand-visual {
    padding-block: clamp(1.25rem, 3vh, 2rem);
  }

  .login-page .brand-logo {
    max-height: 44vh;
    object-fit: contain;
  }
}

body input,
body select,
body textarea,
body [contenteditable="true"] {
  font-weight: 700 !important;
}

.records-table tbody td,
.records-table tbody th,
.records-table .record-link {
  font-weight: 700;
}

.record-indicator svg,
.legend-item svg {
  width: 24px;
  height: 24px;
}

.record-indicator i,
.legend-item i {
  width: 16px;
  height: 16px;
}

.preinscription-sections {
  display: flex;
  align-self: start;
  max-height: calc(var(--desktop-height, 100vh) - 2rem);
  overflow-y: auto;
}

.sidebar-action--exit {
  background: linear-gradient(120deg, #334155, #475569, #64748b);
  box-shadow: 0 10px 20px rgb(51 65 85 / 30%), inset 0 2px 0 rgb(255 255 255 / 40%);
}

.sidebar-action--exit:hover {
  background: linear-gradient(120deg, #3f5068, #536982, #71869f);
  box-shadow: 0 14px 26px rgb(51 65 85 / 38%), inset 0 2px 0 rgb(255 255 255 / 50%);
}

.preinscription-page .form-workspace {
  grid-template-columns: 168px minmax(0, 1fr) 180px;
}

.preinscription-sidebar {
  position: sticky;
  top: 0.5rem;
  align-self: start;
  max-height: calc(var(--desktop-height, 100vh) - 1rem);
  overflow-y: auto;
  display: grid;
  gap: 0.75rem;
}

.preinscription-sidebar .action-sidebar {
  position: static;
  max-height: none;
}

.preinscription-page [data-sidebar-action="save"] {
  min-height: 88px;
  padding: 0.6rem 0.45rem;
}

.preinscription-module-shortcuts {
  margin-top: 7rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0.65rem;
  background: rgb(255 255 255 / 70%);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
}

.address-copy-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.address-copy-row input {
  flex: 1;
  min-width: 0;
}

.address-copy-button {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  min-height: 0;
  height: 30px;
  padding: 0.25rem;
  color: #513c08;
  background: linear-gradient(145deg, #ffe58a, #f2c441);
  border: 1px solid #d4a52b;
  border-radius: 11px;
  box-shadow: 0 3px 8px rgb(45 50 126 / 10%), inset 0 1px 0 #fff;
  transition: background 160ms ease, box-shadow 160ms ease;
  cursor: pointer;
}

.address-copy-button:hover {
  background: linear-gradient(145deg, #ffdc65, #eab62b);
  box-shadow: 0 4px 12px rgb(45 50 126 / 18%), inset 0 1px 0 #fff;
}

.address-copy-button:active {
  box-shadow: inset 0 2px 4px rgb(45 50 126 / 14%);
}

.address-copy-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.high-contrast .address-copy-button {
  color: #000;
  background: #fff;
  border: 2px solid #000;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .address-copy-button {
    transition: none;
  }
}

.address-copy-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.locality-warning {
  color: #85520d;
  font-size: 0.75rem;
  line-height: 1.35;
}

.preinscription-module-shortcuts a {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 44px;
  color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--tile-accent) 82%, white), var(--tile-accent));
  border-radius: 10px;
}

.preinscription-module-shortcuts__title {
  grid-column: 1 / -1;
  margin: 0 0 0.2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--brand-indigo-dark);
}

.preinscription-module-shortcuts a:hover {
  filter: brightness(1.15);
}

.preinscription-module-shortcuts svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.preinscription-page {
  padding-bottom: 0;
}

.preinscription-page > .modules-footer {
  min-height: 18px;
  margin-top: 0;
  padding: 2px 0.5rem;
  gap: 0.35rem;
  color: #666b7c;
  font-size: 0.5rem;
  line-height: 1.2;
}

.preinscription-page > .modules-footer img {
  width: 12px;
  height: 12px;
}

.preinscription-page > .modules-footer a {
  color: inherit;
  font-weight: 400;
  text-decoration: none;
}

.preinscription-page > .modules-footer a:hover,
.preinscription-page > .modules-footer a:focus-visible {
  text-decoration: underline;
}

.header-greeting {
  min-width: 0;
  margin: 0;
  margin-inline-start: 1.25rem;
  padding: 0.45rem 0.8rem;
  color: #596277;
  background: rgb(255 255 255 / 48%);
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgb(40 45 90 / 3%);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.45;
}

.high-contrast .header-greeting {
  color: #fff;
  background: #000;
  border-color: #fff;
}

.form-header__title strong {
  font-size: 1.5rem;
}

body input,
body select,
body textarea,
body .rich-editor,
body .rich-editor *,
body [contenteditable="true"],
body [contenteditable="true"] * {
  font-family: Arial, sans-serif !important;
  font-size: 12pt !important;
  line-height: 1.3 !important;
}

body .rich-editor p,
body [contenteditable="true"] p {
  margin: 0 0 1.3em !important;
}

body .rich-editor p:last-child,
body [contenteditable="true"] p:last-child {
  margin-bottom: 0 !important;
}

body .rich-editor:not([contenteditable="true"]) p:empty {
  display: none;
}

body .rich-editor:not([contenteditable="true"]) br + br {
  display: none;
}

body .rich-editor:not([contenteditable="true"]) p > br:first-child {
  display: none;
}

body.large-text input,
body.large-text select,
body.large-text textarea,
body.large-text .rich-editor,
body.large-text .rich-editor *,
body.large-text [contenteditable="true"],
body.large-text [contenteditable="true"] * {
  font-size: 14pt !important;
}

.preinscription-page :is(#caregiver-title, #recipient-title, #orientation-comment, #notes-title) {
  scroll-margin-top: 1rem;
}

#save-confirmation-dialog .confirm-dialog__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.save-confirmation-logo {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 0.75rem;
  object-fit: contain;
}

.save-confirmation-orientations-title {
  margin: 1rem 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
}

#save-confirmation-orientations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

#save-confirmation-orientations li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgb(82 87 127 / 18%);
  border-radius: 8px;
  font-size: 0.75rem;
}

#save-confirmation-notify {
  grid-column: 1 / -1;
  background: #15803d;
  color: #fff;
}

#save-confirmation-notify:hover {
  background: #166534;
}

#save-confirmation-notify:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.notification-spinner {
  display: block;
  position: relative;
  width: 112px;
  height: 112px;
  margin: 1.25rem auto;
  padding: 8px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgb(194 24 117 / 10%);
}

.notification-spinner img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.notification-heart {
  position: absolute;
  right: -4px;
  bottom: 0;
  width: 48px;
  height: 48px;
  padding: 6px;
  fill: none;
  stroke: #c21875;
  stroke-width: 1.8;
  stroke-linejoin: round;
  background: transparent;
  border-radius: 50%;
  animation: notification-heartbeat 1.4s ease-in-out infinite;
}

.notification-spinner[hidden] {
  display: none;
}

@keyframes notification-heartbeat {
  0%, 40%, 100% { transform: scale(1); }
  15%, 30% { transform: scale(1.18); }
  23% { transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .notification-heart {
    animation: none;
  }
}

body:not(.high-contrast) :is(.todo-table, .reporting-prescripteurs-table, .reporting-profile-table, .reporting-prestations-table, .mails-table, .annexes-table) > thead > tr > th {
  color: #fff;
  background: #285d80;
  border-color: transparent;
}

body:not(.high-contrast) :is(.todo-table, .reporting-prescripteurs-table, .reporting-profile-table, .reporting-prestations-table, .mails-table, .annexes-table) > tbody > tr > :is(th, td) {
  border-right-color: transparent;
  border-bottom-color: #e2e9f1;
}

body:not(.high-contrast) :is(.todo-table, .reporting-prescripteurs-table, .reporting-profile-table, .reporting-prestations-table, .mails-table, .annexes-table) > tbody > tr:nth-child(odd) {
  background: #f2f7fc;
}

body:not(.high-contrast) :is(.todo-table, .reporting-prescripteurs-table, .reporting-profile-table, .reporting-prestations-table, .mails-table, .annexes-table) > tbody > tr:nth-child(even) {
  background: #fff;
}

body:not(.high-contrast) :is(.todo-table, .reporting-prescripteurs-table, .reporting-profile-table, .reporting-prestations-table, .mails-table, .annexes-table) > tbody > tr:hover,
body:not(.high-contrast) :is(.todo-table, .reporting-prescripteurs-table, .reporting-profile-table, .reporting-prestations-table, .mails-table, .annexes-table) > tbody > tr:focus-within {
  background: #e4effb;
}
