:root {
  color-scheme: light;
  --ink: #16283d;
  --muted: #718096;
  --blue: #0757a5;
  --blue-dark: #073b72;
  --blue-pale: #eaf3fc;
  --line: #e4eaf1;
  --surface: #fff;
  --canvas: #f4f7fb;
  --green: #2c9b70;
  --shadow: 0 10px 30px rgb(29 54 84 / 6%);
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-size: 14px;
  line-height: 1.5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #77baff; outline-offset: 3px; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 10; display: flex; width: 258px; flex-direction: column;
  padding: 23px 17px 18px; color: #eaf3ff; background: linear-gradient(165deg, #073b72 0%, #062f5d 55%, #05284f 100%);
}
.brand { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 9px 21px; border-bottom: 1px solid rgb(255 255 255 / 14%); }
.brand__logo { width: 39px; height: 39px; object-fit: contain; border-radius: 50%; background: white; }
.brand__name { font-size: 17px; font-weight: 700; letter-spacing: .01em; }
.sidebar__caption { padding: 27px 11px 11px; color: #99b6d6; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.main-nav { display: grid; gap: 5px; }
.nav-link { display: flex; min-height: 45px; align-items: center; gap: 12px; padding: 0 12px; border-radius: 9px; color: #d3e2f3; font-size: 13px; transition: background .16s ease, color .16s ease; }
.nav-link:hover { background: rgb(255 255 255 / 9%); color: #fff; }
.nav-link[aria-current="page"] { color: #fff; background: #145b9f; box-shadow: inset 3px 0 #8dc7ff; }
.nav-link__icon { display: grid; width: 22px; height: 22px; place-items: center; color: #9fc8ef; }
.nav-link__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.sidebar__bottom { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 14px 11px 0; border-top: 1px solid rgb(255 255 255 / 14%); color: #a9c0da; font-size: 11px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #6bd6a3; box-shadow: 0 0 0 4px rgb(107 214 163 / 13%); }

.main-column { min-height: 100vh; margin-left: 258px; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 38px; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 94%); backdrop-filter: blur(12px); }
.breadcrumb { display: flex; align-items: center; gap: 11px; color: #8592a2; font-size: 13px; white-space: nowrap; }
.breadcrumb__slash { color: #bac4d0; }
.breadcrumb strong { color: var(--ink); font-size: 14px; font-weight: 600; }
.topbar__actions { display: flex; align-items: center; gap: 18px; }
.company-control { display: grid; gap: 4px; }
.company-control[hidden] { display: none; }
.company-control > span { color: var(--muted); font-size: 11px; }
.company-control select { max-width: 180px; padding: 3px 22px 3px 0; border: 0; color: var(--ink); background: transparent; cursor: pointer; font-size: 13px; font-weight: 600; }
.role-control { display: grid; gap: 4px; }
.role-control[hidden] { display: none; }
.role-control label { color: var(--muted); font-size: 11px; }
.role-control select { max-width: 190px; padding: 3px 22px 3px 0; border: 0; color: var(--ink); background: transparent; cursor: pointer; font-size: 13px; font-weight: 600; }
.language-toggle { display: inline-flex; min-width: 61px; height: 36px; align-items: center; justify-content: center; gap: 6px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--blue); background: #fff; cursor: pointer; font-size: 11px; font-weight: 700; }
.language-toggle:hover { border-color: #9ebcda; background: var(--blue-pale); }
.notifications-button { position: relative; display: grid; width: 38px; height: 36px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: #526a82; background: #fff; cursor: pointer; }
.notifications-button:hover, .notifications-button.is-active { border-color: #9ebcda; color: var(--blue); background: var(--blue-pale); }
.notifications-button[hidden] { display: none; }
.notifications-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.notifications-button__badge { position: absolute; top: -6px; right: -6px; display: grid; min-width: 17px; height: 17px; place-items: center; padding: 0 4px; border: 2px solid #fff; border-radius: 10px; color: #fff; background: #dc4650; font-size: 9px; font-weight: 700; line-height: 1; }
.language-flag { display: block; width: 19px; height: 14px; overflow: hidden; border-radius: 2px; box-shadow: 0 0 0 1px rgb(15 35 55 / 12%); }
.language-flag svg { display: block; width: 100%; height: 100%; }
.profile { display: flex; align-items: center; gap: 9px; padding-left: 17px; border-left: 1px solid var(--line); }
.profile__avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--blue-dark); background: #dcecff; font-size: 12px; font-weight: 700; }
.profile__name { max-width: 130px; overflow: hidden; color: #33465c; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.menu-toggle { display: none; }

.content { width: 100%; max-width: none; min-width: 0; flex: 1; margin: 0 auto; padding: 40px 38px 56px; }
.app-loading { display: grid; min-height: min(62vh, 680px); place-items: center; }
.app-loading__card { display: flex; min-width: 250px; align-items: center; gap: 14px; padding: 19px 23px; border: 1px solid var(--line); border-radius: 12px; color: #40566e; background: #fff; box-shadow: var(--shadow); font-size: 14px; font-weight: 600; }
.app-loading__spinner { width: 30px; height: 30px; flex: 0 0 auto; border: 3px solid #dce8f4; border-top-color: var(--blue); border-right-color: #72a9dc; border-radius: 50%; animation: app-loading-spin .85s linear infinite; }
@keyframes app-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .app-loading__spinner { animation-duration: 2.5s; } }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.eyebrow { margin: 0 0 9px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.page-title { margin: 0; color: #172b41; font-size: clamp(28px, 3vw, 36px); font-weight: 600; letter-spacing: -.035em; line-height: 1.15; }
.page-description { max-width: 690px; margin: 10px 0 0; color: #65768a; font-size: 14px; line-height: 1.65; }
.section-label { margin: 0 0 14px; color: #66788d; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.overview-card { position: relative; display: flex; min-height: 184px; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.overview-card:hover { transform: translateY(-2px); border-color: #bfd5ec; box-shadow: 0 15px 35px rgb(29 54 84 / 10%); }
.overview-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.overview-card__icon { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 11px; color: var(--blue); background: var(--blue-pale); }
.overview-card__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.overview-card__arrow { color: #8ca1b8; font-size: 18px; }
.overview-card__title { margin: 18px 0 6px; font-size: 16px; font-weight: 600; }
.overview-card__text { margin: 0; color: #65768a; font-size: 13px; line-height: 1.55; }
.section-panel { padding: 23px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.section-panel__icon { display: grid; width: 44px; height: 44px; margin-bottom: 14px; place-items: center; border-radius: 12px; color: var(--blue); background: var(--blue-pale); }
.section-panel__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.section-panel__title { margin: 0 0 7px; font-size: 17px; font-weight: 600; }
.section-panel__text { max-width: 650px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.notice { display: flex; align-items: flex-start; gap: 10px; margin-top: 17px; padding: 14px 16px; border: 1px solid #d9e9f8; border-radius: 9px; color: #496780; background: #f2f8fe; font-size: 13px; line-height: 1.6; }
.notice__mark { display: grid; width: 17px; height: 17px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: #4b91cb; font-size: 11px; font-weight: 700; }
.requests-page-content { display: contents; }
.request-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 13px; margin: 23px 0 18px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.weekend-letter-status { display: grid; min-height: 42px; align-content: center; gap: 3px; padding: 6px 12px; border: 1px solid; border-radius: 7px; font-size: 12px; }
.weekend-letter-status strong { font-size: 13px; }
.weekend-letter-status > span { font-size: 11px; font-weight: 400; }
.weekend-letter-status--open { border-color: #b7dfc7; color: #23734b; background: #f0fbf4; }
.weekend-letter-status--closed { border-color: #e7c1c1; color: #a23b3b; background: #fff4f4; }
.request-filter { display: grid; min-width: 190px; gap: 7px; color: #53677d; font-size: 12px; font-weight: 600; }
.request-filter input, .request-filter select { min-height: 42px; padding: 0 11px; border: 1px solid #dce4ed; border-radius: 7px; color: #33465c; background: #f8fafc; font-size: 14px; }
.request-filter select:disabled { opacity: 1; }
.russian-date-field { position: relative; display: block; width: 100%; min-width: 0; }
.russian-date-field > [data-russian-date-display] { width: 100%; min-width: 0; padding-right: 44px; }
.russian-date-field__calendar { position: absolute; top: 50%; right: 3px; display: grid; width: 34px; height: 34px; transform: translateY(-50%); place-items: center; border: 0; border-radius: 6px; color: #526a82; background: transparent; cursor: pointer; }
.russian-date-field__calendar:hover { color: var(--blue-dark); background: var(--blue-pale); }
.russian-date-field__calendar:disabled { cursor: not-allowed; opacity: .5; }
.russian-date-field__calendar svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.russian-date-calendar { position: fixed; z-index: 10000; width: min(330px, calc(100vw - 24px)); padding: 12px; border: 1px solid #dce4ed; border-radius: 10px; background: #fff; box-shadow: 0 14px 36px rgb(29 54 84 / 20%); }
.russian-date-calendar[hidden] { display: none; }
.russian-date-calendar__header { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; align-items: center; gap: 6px; margin-bottom: 10px; }
.russian-date-calendar__selectors { display: grid; grid-template-columns: minmax(0, 1fr) 78px; gap: 6px; }
.russian-date-calendar__selectors label { display: grid; min-width: 0; gap: 2px; color: #7a899a; font-size: 9px; font-weight: 600; }
.russian-date-calendar__selectors select { width: 100%; min-width: 0; height: 30px; padding: 0 5px; border: 1px solid #dce4ed; border-radius: 6px; color: #283c52; background: #f8fafc; font: inherit; font-size: 12px; }
.russian-date-calendar__header button, .russian-date-calendar__day { display: grid; min-width: 0; min-height: 34px; padding: 0; place-items: center; border: 0; border-radius: 7px; color: #405873; background: transparent; cursor: pointer; }
.russian-date-calendar__header button { font-size: 24px; line-height: 1; }
.russian-date-calendar__header button:hover:not(:disabled), .russian-date-calendar__day:hover:not(:disabled) { background: #edf4fb; }
.russian-date-calendar__header button:disabled, .russian-date-calendar__day:disabled { color: #bdc7d2; cursor: not-allowed; }
.russian-date-calendar__weekdays, .russian-date-calendar__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.russian-date-calendar__weekdays[hidden], .russian-date-calendar__days[hidden] { display: none; }
.russian-date-calendar__weekdays { margin-bottom: 4px; color: #7a899a; font-size: 11px; font-weight: 600; text-align: center; }
.russian-date-calendar__weekdays span { padding: 5px 0; }
.russian-date-calendar__day { aspect-ratio: 1; font-size: 13px; }
.russian-date-calendar__day.is-today { box-shadow: inset 0 0 0 1px #98bde0; }
.russian-date-calendar__day.is-selected { color: #fff; background: #3475b7; }
.russian-date-calendar__day.is-selected:hover { background: #28649f; }
.russian-date-calendar__footer { display: flex; justify-content: flex-end; margin-top: 8px; }
.russian-date-calendar__footer button { min-height: 30px; padding: 0 8px; border: 0; border-radius: 6px; color: #28649f; background: transparent; cursor: pointer; font-size: 12px; font-weight: 600; }
.russian-date-calendar__footer button:hover:not(:disabled) { background: #edf4fb; }
.russian-date-calendar__footer button:disabled { color: #bdc7d2; cursor: not-allowed; }
.primary-button { min-height: 42px; margin-left: auto; padding: 0 17px; border: 0; border-radius: 7px; color: #fff; background: var(--blue); cursor: pointer; font-size: 13px; font-weight: 600; transition: background .15s ease, transform .15s ease; }
.primary-button:hover:not(:disabled) { background: #064a8b; }
.primary-button:active:not(:disabled) { transform: translateY(1px); }
.primary-button:disabled { cursor: not-allowed; opacity: .45; }
.request-empty { display: grid; min-height: 190px; align-content: center; justify-items: center; padding: 28px 18px; border: 1px dashed #cfdae6; border-radius: 12px; background: rgb(255 255 255 / 66%); text-align: center; }
.request-empty__symbol { display: grid; width: 36px; height: 36px; margin-bottom: 12px; place-items: center; border-radius: 50%; color: #7890a9; background: #eaf1f8; font-size: 23px; font-weight: 300; }
.request-empty h2 { margin: 0; color: #3a4f66; font-size: 16px; font-weight: 600; }
.request-empty p { max-width: 440px; margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.request-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 15px; }
.request-rule { padding: 15px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.request-rule__tag { display: inline-flex; padding: 5px 8px; border-radius: 5px; color: #1764a6; background: #eaf3fc; font-size: 12px; font-weight: 600; }
.request-rule__tag--weekend { color: #8c641e; background: #fbf3df; }
.request-rule p { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.request-notice { margin-top: 14px; }
.module-card, .chat-panel { min-width: 0; margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.module-card + .module-card { margin-top: 14px; }
.directory-editor { display: grid; gap: 14px; margin-top: 14px; }
.company-choices { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 17px; }
.directory-company-actions { display: flex; flex: 0 0 auto; flex-direction: column; align-items: stretch; gap: 8px; margin-left: auto; }
.directory-company-actions .primary-button, .directory-company-actions .secondary-button { min-height: 38px; margin: 0; }
.company-choice { min-height: 36px; padding: 0 12px; border: 1px solid #dfe7ef; border-radius: 7px; color: #60748a; background: #fff; cursor: pointer; font-size: 12px; }
.company-choice:hover, .company-choice.is-selected { border-color: #a8c7e5; color: var(--blue-dark); background: var(--blue-pale); }
.equipment-company-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; padding: 0 20px 18px; }
.equipment-company-card { display: grid; min-width: 0; min-height: 68px; align-content: center; gap: 5px; padding: 11px 13px; border: 1px solid #dfe7ef; border-radius: 9px; color: #435a72; background: #fff; cursor: pointer; text-align: left; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.equipment-company-card:hover, .equipment-company-card.is-selected { border-color: #8bb6de; color: var(--blue-dark); background: var(--blue-pale); }
.equipment-company-card.is-selected { box-shadow: inset 3px 0 0 var(--blue); }
.equipment-company-card__name { overflow-wrap: anywhere; font-size: 13px; font-weight: 600; line-height: 1.4; }
.equipment-company-card__hint { color: var(--muted); font-size: 11px; }
.department-choices { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 16px; }
.department-choice { min-height: 34px; }
.text-action { padding: 6px 0; border: 0; color: #8b6262; background: transparent; cursor: pointer; font-size: 12px; }
.text-action + .text-action { margin-left: 14px; }
.text-action--danger { color: #a34f4f; }
.text-action--danger:hover { color: #7d2929; text-decoration: underline; }
.account-actions { display: inline-flex; align-items: center; justify-content: center; gap: 16px; white-space: nowrap; }
.account-actions > .text-action + .text-action, .schedule-staff-actions > .text-action + .text-action, .directory-group__actions > .text-action + .text-action, .record-chip__actions > .text-action + .text-action, .letter-version__actions > .text-action + .text-action { margin-left: 0; }
.account-password-hint { margin: 0; color: var(--muted); font-size: 12px; }
.local-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 18px 20px; border-top: 1px solid #edf1f5; }
.local-form--stack { align-items: stretch; flex-direction: column; }
.local-form__title { margin: 0 0 2px; color: #283c52; font-size: 15px; font-weight: 600; }
.local-form .request-filter { flex: 1; min-width: 150px; }
.weekend-manual-duty-form { align-items: center; border-top: 0; }
.weekend-manual-duty-form__field { flex: 1; min-width: 190px; }
.weekend-manual-duty-form__field .request-filter { min-width: 0; }
.weekend-manual-duty-form__help { margin: 7px 0 0; color: #65768a; font-size: 12px; line-height: 1.5; }
.local-form input { min-height: 42px; padding: 0 11px; border: 1px solid #dce4ed; border-radius: 7px; color: #33465c; background: #fff; font-size: 14px; }
.local-form .primary-button { margin: 0; }
.directory-groups { display: grid; gap: 13px; }
.directory-group { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.directory-group__heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-bottom: 1px solid #edf1f5; }
.directory-group__heading h2 { margin: 0; font-size: 15px; font-weight: 600; }
.directory-group__heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.directory-group__actions, .record-chip__actions { display: inline-flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; gap: 14px; white-space: nowrap; }
.directory-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; }
.directory-item { padding: 13px; border: 1px solid #e8edf3; border-radius: 9px; background: #fcfdfe; }
.directory-item__heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.directory-item h3 { margin: 0 0 9px; color: #445a70; font-size: 13px; font-weight: 600; }
.directory-item__heading h3 { margin: 0; }
.directory-item .local-form { padding: 10px 0 0; border-top: 0; }
.directory-item .local-form input { min-width: 100%; }
.record-chip-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.directory-item > .record-chip-list { flex-direction: column; }
.directory-item > .record-chip-list > .record-chip { width: 100%; justify-content: space-between; }
.record-chip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 7px 9px; border: 1px solid #e5ebf2; border-radius: 6px; color: #50667c; background: #fff; font-size: 12px; overflow-wrap: anywhere; }
.record-chip button { border: 0; color: #9a5e5e; background: none; cursor: pointer; font-size: 12px; }
.directory-records--instruments {
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.directory-records--instruments::-webkit-scrollbar { display: none; }
.instrument-row-list { width: 100%; min-width: 0; flex-direction: column; flex-wrap: nowrap; gap: 6px; }
.instrument-row { display: grid; width: 100%; min-width: 0; grid-template-columns: minmax(145px, 1.2fr) minmax(100px, .8fr) minmax(120px, 1fr) minmax(145px, 1.1fr) minmax(115px, .9fr) minmax(145px, 1.1fr) minmax(125px, .9fr) minmax(120px, .9fr) auto minmax(105px, .8fr); align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #e5ebf2; border-radius: 7px; color: #50667c; background: #fff; font-size: 12px; }
.instrument-row--expired { border-color: #f0cece; color: #925c5c; background: #fff8f8; }
.instrument-row > * { min-width: 0; overflow-wrap: anywhere; }
.instrument-row__name { color: #344c65; }
.instrument-row__certificate { color: var(--blue); text-decoration: underline; }
.instrument-row__missing { color: #8996a5; }
.instrument-row__actions { display: flex; align-items: center; gap: 12px; overflow: visible; }
.instrument-row__actions .text-action { white-space: nowrap; }
.instrument-row__countdown { color: #24723a; font-size: 11px; text-align: right; }
.instrument-row__countdown.is-expired { color: #c33c3c; }
@media (max-width: 1750px) {
  .instrument-row { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 8px 12px; }
  .instrument-row__actions { flex-wrap: wrap; }
  .instrument-row__countdown { text-align: left; }
}
.record-chip__file { display: inline-block; max-width: 100%; margin-top: 5px; color: var(--blue); text-decoration: underline; overflow-wrap: anywhere; }
.record-chip__file[aria-disabled="true"] { color: #8996a5; text-decoration: none; cursor: wait; }
.certificate-upload { padding: 12px; border: 1px dashed #cbd8e6; border-radius: 8px; background: #f8fbff; }
.certificate-upload input[type="file"] { width: 100%; min-width: 0; min-height: 0; padding: 8px; border: 1px solid #dce4ed; border-radius: 6px; background: #fff; font-size: 12px; }
.certificate-upload small, .certificate-upload output { display: block; margin-top: 6px; color: #718198; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.certificate-upload output { color: #45617d; }
.local-empty { padding: 16px; color: #78889a; font-size: 12px; line-height: 1.55; text-align: center; }
.directory-records { padding: 0 20px 18px; }
.module-card__heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 20px; }
.module-card__heading h2, .chat-panel__header h2 { margin: 0; color: #283c52; font-size: 16px; font-weight: 600; }
.module-card__heading p, .chat-panel__header p { margin: 6px 0 0; color: #65768a; font-size: 13px; line-height: 1.6; }
.secondary-button { min-height: 40px; padding: 0 14px; border: 1px solid #dce4ed; border-radius: 7px; color: #45617d; background: #fff; cursor: pointer; font-size: 12px; font-weight: 600; white-space: nowrap; transition: border-color .15s ease, background .15s ease; }
.secondary-button:hover:not(:disabled) { border-color: #a8c7e5; background: #f6faff; }
.secondary-button:disabled { cursor: not-allowed; opacity: .55; }
.table-scroll { width: 100%; overflow-x: auto; border-top: 1px solid #edf1f5; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { padding: 13px 15px; border-bottom: 1px solid #d6e0ea; color: #63768b; background: #f8fafc; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 5px 15px; border-top: 1px solid #b8c7d6; color: #586d84; font-size: 13px; }
.data-table tbody > tr.request-table__row--baek > td { background-color: rgb(46 160 67 / 5%); }
.data-table .table-empty { height: 110px; color: #8996a5; text-align: center; }
.request-table { min-width: 1220px; text-align: center; }
.request-table th, .request-table td { text-align: center; vertical-align: middle; }
.request-table tbody > tr:not(.request-table__group) > td { padding-block: 3px; line-height: 1.25; }
.request-table > tbody > tr:not(.request-table__group) > td { border-top: 0; border-bottom: 1px solid #b8c7d6; }
.request-table > tbody > tr.request-table__group--division > th { border-bottom: 1px solid #b8c7d6; }
.request-table__group th { padding: 12px 15px; border-top: 1px solid #dce6f0; border-bottom: 1px solid #dce6f0; background: #eef4fa; white-space: normal; }
.request-table__division, .request-table__company { display: block; }
.request-table__group--company th { background: #e7eef6; }
.request-table--general tbody + tbody .request-table__group--company th { border-top: 4px solid #536b82; }
.request-table__group--division th { padding-block: 8px; border-top: 0; background: #f6f9fc; }
.request-table__division { color: #344d67; font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.request-table__company { color: #344d67; font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.request-table__single { display: block; white-space: nowrap; }
.request-table__construction { min-width: 180px; max-width: 400px; margin-inline: auto; overflow-wrap: anywhere; white-space: pre-wrap; text-align: center; }
.request-table__lines { display: flex; min-width: 130px; flex-direction: column; align-items: center; justify-content: center; gap: 0; }
.request-table--general .request-table__lines--receiver { transform: translateX(6px); }
.request-table__lines > span { white-space: nowrap; }
.request-table__lines select { max-width: 240px; }
.request-table--general .request-table__lines select[data-request-responsible] { width: 100%; min-height: 22px; padding: 1px 26px; border: 1px solid #b8c7d6; border-radius: 5px; color: #586d84; background-color: #f8fafc; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%23586d84' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 12px 8px; appearance: none; -webkit-appearance: none; font-size: 12px; line-height: 1.2; text-align: center; text-align-last: center; cursor: pointer; }
.request-table--general .request-table__lines select[data-request-responsible] option { text-align: center; }
.request-table--general .request-table__lines select[data-request-responsible]:hover { border-color: #8299b0; background-color: #fff; }
.request-table--general .request-table__lines select[data-request-responsible]:focus-visible { outline: 2px solid #8eb6dc; outline-offset: 1px; }
.request-table__actions { display: flex; min-width: 92px; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.request-table__actions > span { min-height: 18px; }
.request-table__actions .text-action { margin: 0; padding: 2px 4px; }
.schedule-staff-table { width: 100%; text-align: center; }
.schedule-staff-table th, .schedule-staff-table td { text-align: center; vertical-align: middle; }
.schedule-staff-table td { padding-block: 2px; }
.schedule-staff-table .schedule-staff-spacer td { height: 28px; padding: 0; }
.schedule-annual-table .schedule-annual-spacer td { height: 28px; padding: 0; }
.schedule-staff-employee-edit { padding: 0; border: 0; color: #315f88; background: transparent; font: inherit; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; cursor: pointer; }
.schedule-staff-employee-edit:hover { text-decoration-style: solid; }
.schedule-staff-employee-edit:focus-visible { outline: 2px solid #8eb6dc; outline-offset: 2px; }
.schedule-staff-table .text-action { padding-block: 4px; }
.schedule-staff-table td > * { margin-inline: auto; }
.schedule-staff-actions { display: flex; align-items: center; justify-content: center; gap: 14px; white-space: nowrap; }
.module-notice { margin-top: 14px; }
.view-pills { display: flex; width: max-content; max-width: 100%; gap: 3px; margin: 0 0 14px; padding: 4px; overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; background: #edf2f7; }
.view-pill { min-height: 36px; padding: 0 13px; border: 0; border-radius: 6px; color: #65768a; background: transparent; font-size: 12px; font-weight: 600; white-space: nowrap; }
.view-pill.is-active { color: var(--blue-dark); background: #fff; box-shadow: 0 1px 3px rgb(30 52 75 / 10%); }
.view-pill:disabled { opacity: 1; }
.company-banner { display: flex; align-items: center; gap: 13px; padding: 17px 19px; border: 1px solid #dce8f4; border-radius: 12px; background: linear-gradient(110deg, #edf6ff, #fff 72%); }
.company-banner__icon { display: grid; width: 43px; height: 43px; flex: 0 0 auto; place-items: center; border-radius: 11px; color: var(--blue); background: #fff; }
.company-banner__icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.company-banner__copy, .company-banner > div { min-width: 0; flex: 1; }
.company-banner p { margin: 0 0 5px; color: var(--muted); font-size: 12px; }
.company-banner h2 { margin: 0; color: #344c65; font-size: 15px; font-weight: 600; }
.filter-row { display: flex; flex-wrap: wrap; gap: 12px; padding: 2px 20px 17px; }
.filter-row .request-filter { min-width: 140px; }
.filter-row--audit { padding-top: 0; }
.schedule-codes { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px 18px 17px; border-top: 1px solid #edf1f5; }
.schedule-code { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 9px; border: 1px solid #e5ebf2; border-radius: 6px; color: #65788e; background: #fbfcfd; font-size: 11px; }
.schedule-code strong { color: #365d81; font-size: 12px; }
.schedule-code[data-code-tone="hours-8"] { border-color: rgba(76, 175, 80, .38); color: #24723a; background: rgba(76, 175, 80, .25); }
.schedule-code[data-code-tone="hours-7"] { border-color: rgba(38, 166, 154, .38); color: #176c78; background: rgba(38, 166, 154, .25); }
.schedule-code[data-code-tone="day-off"] { border-color: rgba(244, 67, 54, .38); color: #d12c36; background: rgba(244, 67, 54, .25); }
.schedule-code[data-code-tone="holiday"] { border-color: rgba(255, 193, 7, .45); color: #a96100; background: rgba(255, 193, 7, .25); }
.schedule-code[data-code-tone="leave"] { border-color: rgba(33, 150, 243, .4); color: #1765b1; background: rgba(33, 150, 243, .25); }
.schedule-code[data-code-tone="rvd"] { border-color: rgba(255, 152, 0, .4); color: #c85b0c; background: rgba(255, 152, 0, .25); }
.schedule-code[data-code-tone="unpaid"] { border-color: rgba(239, 83, 80, .4); color: #a83232; background: rgba(239, 83, 80, .25); }
.schedule-code[data-code-tone="sick"] { border-color: rgba(233, 30, 99, .4); color: #ad2675; background: rgba(233, 30, 99, .25); }
.schedule-code[data-code-tone="business-trip"] { border-color: rgba(126, 87, 194, .4); color: #633c9d; background: rgba(126, 87, 194, .25); }
.schedule-code[data-code-tone] strong { color: inherit; }
.table-tools { display: flex; justify-content: flex-end; padding: 0 20px 14px; }
.table-tools input { width: min(100%, 250px); min-height: 38px; padding: 0 10px; border: 1px solid #dce4ed; border-radius: 7px; background: #f8fafc; font-size: 13px; }
.upload-panel { display: flex; align-items: center; gap: 13px; padding: 18px; border: 1px dashed #b7cde2; border-radius: 12px; background: #f8fbff; }
.upload-panel__icon { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: var(--blue); background: #e8f2fc; }
.upload-panel__icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.upload-panel__copy { flex: 1; }
.upload-panel__copy h2 { margin: 0; font-size: 15px; font-weight: 600; }
.upload-panel__copy p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.letter-upload .upload-panel__copy { display: grid; gap: 10px; }
.letter-upload .request-filter { max-width: 520px; }
.letter-upload input[type="file"] { width: 100%; min-height: 42px; padding: 8px; border: 1px solid #dce4ed; border-radius: 7px; background: #fff; }
.letter-upload__month-controls { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(0, 2.2fr); align-items: end; gap: 10px; }
.letter-upload__month-count, .letter-upload__month { min-width: 0; }
.letter-upload__month-selectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.letter-upload__month select, .letter-upload__month-count select { width: 100%; }
.letter-upload .letter-upload__month-count select, .letter-upload .letter-upload__month select { width: 66.6667%; }
.letter-upload__file-row { display: grid; grid-template-columns: minmax(0, 520px) auto; align-items: end; justify-content: start; gap: 10px; }
.letter-upload__file-row .request-filter { width: 100%; max-width: 520px; }
.letter-upload__file-row .secondary-button { align-self: end; margin: 0; }
.letter-upload__submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.letter-upload__spinner { display: none; width: 14px; height: 14px; flex: 0 0 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; }
.letter-upload__submit[aria-busy="true"] .letter-upload__spinner { display: inline-block; animation: letter-upload-spin .8s linear infinite; }
@keyframes letter-upload-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .letter-upload__submit[aria-busy="true"] .letter-upload__spinner { animation: none; border-top-color: transparent; }
}
.letter-company { overflow: hidden; }
.letter-version { padding: 16px 20px; border-top: 1px solid #edf1f5; }
.letter-version__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.letter-version__head strong { overflow-wrap: anywhere; }
.letter-version__head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.letter-version__details { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 10px; }
.letter-version__months { margin: 0; color: var(--muted); font-size: 13px; }
.letter-review-toggle, .letter-review-status { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 6px 10px; border: 1px solid #dce4ed; border-radius: 999px; background: #f6f8fb; color: #536579; font: inherit; font-size: 12px; line-height: 1.3; }
.letter-review-toggle { cursor: pointer; }
.letter-review-toggle:disabled { cursor: wait; opacity: .7; }
.letter-review-toggle span, .letter-review-status span { display: inline-grid; width: 16px; height: 16px; place-items: center; border-radius: 50%; font-weight: 700; }
.letter-review-toggle--active, .letter-review-status--active { border-color: #b7dfc1; background: #eef8f0; color: #287242; }
.letter-review-toggle--active span, .letter-review-status--active span { background: #d5efdc; }
.letter-review-status--pending { border-color: #ead9aa; background: #fff9e9; color: #836422; }
.letter-version__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.letter-version__actions .text-action { padding: 5px 0; white-space: nowrap; }
.letter-version__delete-confirm { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; width: 100%; margin-top: 10px; padding: 9px 11px; border: 1px solid #f0c6c6; border-radius: 7px; background: #fff7f7; color: #774343; font-size: 12px; }
.letter-version__delete-confirm span { flex: 1 1 260px; }
.letter-confirm-form { padding: 16px 0 0; border-top: 0; }
.letter-confirm-form textarea { width: 100%; min-height: 110px; padding: 10px 12px; border: 1px solid #dce4ed; border-radius: 7px; color: #33465c; background: #fff; font: inherit; resize: vertical; }
.letter-company .directory-records { padding: 16px 20px 20px; border-top: 1px solid #edf1f5; }
.letter-company .directory-records h3 { margin: 0 0 12px; color: #283c52; font-size: 14px; }
.letter-date-list { flex-direction: column; align-items: stretch; }
.letter-date-list .record-chip { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (max-width: 600px) {
  .letter-upload__month-controls { grid-template-columns: minmax(0, 1fr); }
  .letter-upload__month-selectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .letter-version { padding-inline: 15px; }
  .letter-version__head { align-items: flex-start; flex-direction: column; }
  .letter-version__actions { gap: 14px; }
  .letter-confirm-form { padding-inline: 0; }
  .letter-company .directory-records { padding-inline: 15px; }
  .letter-date-list .record-chip { align-items: flex-start; flex-direction: column; }
}
.report-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 15px; }
.report-info__item { padding: 16px 18px; border: 1px solid #dce8f4; border-radius: 9px; color: #526a82; background: #f5f9fd; font-size: 13px; line-height: 1.6; }
.report-info__item strong { color: #3e5b79; font-weight: 600; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.report-card { display: flex; min-height: 240px; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.report-card__icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; color: var(--blue); background: var(--blue-pale); }
.report-card__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.report-card__type { margin-top: 14px; color: #73869b; font-size: 11px; font-weight: 700; letter-spacing: .07em; }
.report-card h2 { margin: 7px 0 0; font-size: 16px; font-weight: 600; }
.report-card > p { margin: 7px 0 16px; color: #65768a; font-size: 13px; line-height: 1.6; }
.report-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 13px; border-top: 1px solid #edf1f5; }
.report-card__footer > span, .muted-note { color: #738398; font-size: 12px; }
.muted-note { margin: 13px 0 0; }
.system-status { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; padding: 17px 19px; border: 1px solid #dce8f4; border-radius: 11px; background: #fff; }
.system-status__dot { width: 11px; height: 11px; flex: 0 0 auto; border-radius: 50%; background: #aeb9c6; box-shadow: 0 0 0 5px #f0f3f6; }
.system-status:not(.system-status--down) .system-status__dot { background: #20a36b; box-shadow: 0 0 0 5px #e7f6ef; }
.system-status--down .system-status__dot { background: #d94747; box-shadow: 0 0 0 5px #fdecec; }
.system-status > div { display: grid; flex: 1; gap: 4px; }
.system-status > div span { color: var(--muted); font-size: 12px; }
.system-status > div strong { color: #344c65; font-size: 14px; font-weight: 600; }
.system-status__tag { padding: 7px 9px; border-radius: 5px; color: #687c91; background: #f0f3f6; font-size: 11px; }
.chat-panel { display: flex; min-height: 450px; flex-direction: column; margin-top: 0; }
.chat-panel__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 19px 20px; border-bottom: 1px solid #edf1f5; }
.chat-day-badge { padding: 7px 9px; border-radius: 5px; color: #58728d; background: #f0f5fa; font-size: 11px; white-space: nowrap; }
.chat-empty { display: grid; flex: 1; align-content: center; justify-items: center; gap: 8px; padding: 30px 20px; color: #8492a2; text-align: center; }
.chat-empty__icon { display: grid; width: 46px; height: 46px; margin-bottom: 4px; place-items: center; border-radius: 50%; color: #4c86bb; background: #ebf4fc; }
.chat-empty__icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.chat-empty strong { color: #40566d; font-size: 15px; font-weight: 600; }
.chat-empty > span:last-child { font-size: 12px; }
.chat-composer { display: flex; align-items: flex-end; gap: 10px; padding: 14px; border-top: 1px solid #edf1f5; }
.chat-composer__field { display: grid; min-width: 0; flex: 1; gap: 6px; }
.chat-composer textarea { min-height: 44px; max-height: 120px; min-width: 0; resize: vertical; padding: 11px; border: 1px solid #dce4ed; border-radius: 8px; background: #f8fafc; font: inherit; font-size: 14px; }
.chat-character-count { justify-self: end; color: var(--muted); font-size: 11px; }
.chat-composer .primary-button { align-self: flex-start; margin: 0; }
.app-footer { padding: 17px 38px 21px; border-top: 1px solid var(--line); color: #738398; font-size: 12px; line-height: 1.55; text-align: center; }
.sidebar-backdrop { position: fixed; inset: 0; z-index: 8; background: rgb(10 25 42 / 42%); }

@media (max-width: 1050px) {
  .sidebar { width: 230px; }
  .main-column { margin-left: 230px; }
  .topbar { padding-inline: 25px; }
  .content { padding-inline: 25px; }
  .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  html, body { width: 100%; min-width: 0; }
  .sidebar { width: min(285px, 84vw); transform: translateX(-102%); transition: transform .2s ease; }
  .sidebar.is-open { transform: translateX(0); }
  .main-column { width: 100%; min-width: 0; margin-left: 0; }
  .topbar { width: 100%; min-width: 0; min-height: 94px; flex-wrap: wrap; justify-content: flex-start; gap: 8px 13px; padding: 9px 16px; }
  .menu-toggle { display: grid; width: 34px; height: 34px; flex: 0 0 auto; align-content: center; justify-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
  .menu-toggle span { width: 14px; height: 1.5px; background: #52677d; }
  .breadcrumb { min-width: 0; flex: 1; gap: 6px; overflow: hidden; font-size: 10px; }
  .breadcrumb > span:first-child { display: none; }
  .breadcrumb__slash { display: none; }
  .breadcrumb strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; }
  .topbar__actions { width: 100%; min-width: 0; flex: 1 1 100%; justify-content: space-between; gap: 8px; }
  .company-control > span { display: none; }
  .company-control select { width: 115px; max-width: 115px; font-size: 12px; }
  .role-control label, .profile__name { display: none; }
  .role-control select { width: 104px; max-width: 104px; padding: 3px 0; font-size: 12px; }
  .profile { padding-left: 8px; }
  .profile__avatar { width: 31px; height: 31px; }
  .content { width: 100%; min-width: 0; padding: 28px 16px 38px; }
  .page-heading { display: block; min-width: 0; margin-bottom: 21px; }
  .page-heading > div { min-width: 0; max-width: 100%; }
  .page-title { max-width: 100%; min-width: 0; font-size: clamp(25px, 7vw, 32px); overflow-wrap: anywhere; }
  .page-description { width: auto; max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
  .overview-grid { grid-template-columns: 1fr; gap: 10px; }
  .request-toolbar { align-items: stretch; }
  .request-filter { min-width: 100%; }
  .letter-upload__month-controls .request-filter { min-width: 0; width: auto; }
  .letter-upload__file-row .request-filter { min-width: 0; }
  .primary-button { margin-left: 0; }
  .request-rules { grid-template-columns: 1fr; }
  .module-card__heading { align-items: flex-start; padding: 16px; }
  .module-card__heading > div { min-width: 0; max-width: 100%; }
  .module-card__heading p { overflow-wrap: anywhere; }
  .module-card__heading .secondary-button { white-space: normal; }
  .schedule-staff-controls { width: 100%; flex-wrap: wrap; }
  .schedule-staff-controls .request-filter { flex: 1 1 170px; min-width: 170px; }
  .company-banner { flex-wrap: wrap; }
  .directory-items { grid-template-columns: 1fr; }
  .company-banner > .secondary-button { margin-left: auto; }
  .company-banner > div { flex-basis: calc(100% - 60px); }
  .report-info, .report-grid { grid-template-columns: 1fr; }
  .report-info__item, .report-card { min-width: 0; overflow-wrap: anywhere; }
  .report-card__footer { flex-wrap: wrap; }
  .report-card { min-height: 210px; }
  .upload-panel { flex-wrap: wrap; }
  .upload-panel__copy { min-width: 0; flex-basis: calc(100% - 58px); }
  .upload-panel > .secondary-button { width: 100%; }
  .filter-row { padding-inline: 16px; }
  .filter-row .request-filter { min-width: 0; width: 100%; }
  .request-toolbar .request-filter { min-width: 0; }
  .request-filter input, .request-filter select { width: 100%; min-width: 0; }
  .request-rule, .notice, .upload-panel, .system-status { min-width: 0; overflow-wrap: anywhere; }
  .system-status__tag { max-width: 45%; text-align: center; overflow-wrap: anywhere; }
  .table-tools { padding-inline: 16px; }
  .chat-panel { min-height: 400px; }
  .chat-panel__header { flex-direction: column; padding: 16px; }
  .chat-panel__header > div { min-width: 0; max-width: 100%; }
  .chat-panel__header p { overflow-wrap: anywhere; }
  .chat-day-badge { white-space: normal; }
  .chat-composer { flex-direction: column; align-items: stretch; }
  .chat-composer .primary-button { width: 100%; }
  .overview-card { min-height: 136px; padding: 16px; }
  .overview-card__title { margin-top: 12px; }
  .app-footer { padding-inline: 16px; line-height: 1.5; }
}
@media (max-width: 390px) {
  .topbar { gap: 7px; }
  .topbar__actions { justify-content: space-between; gap: 5px; }
  .company-control select { width: 94px; max-width: 94px; font-size: 11px; }
  .role-control select { width: 99px; max-width: 99px; font-size: 12px; }
  .language-toggle { min-width: 54px; }
  .profile { display: none; }
  .breadcrumb { font-size: 9px; }
  .page-title { font-size: 27px; }
  .page-description { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.request-create { border-top: 1px solid #edf1f5; }
.request-create .request-filter { min-width: 0; }
.request-create .request-filter select, .request-create .request-filter input { min-height: 38px; padding: 0 10px; border: 1px solid #dce4ed; border-radius: 7px; color: #33465c; background: #fff; font-size: 12px; }
.request-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; align-items: end; }
.request-fields[hidden] { display: none; }
.request-booking-open { margin: 0; }
.request-booking-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px; }
.request-booking-heading h2 { margin: 0; color: var(--ink); font-size: 18px; }
.request-booking-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.request-department-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.request-department-picker legend { margin-bottom: 9px; color: #53677d; font-size: 12px; font-weight: 600; }
.request-department-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.request-department-pill { position: relative; cursor: pointer; }
.request-department-pill input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.request-department-pill span { display: inline-flex; min-height: 38px; align-items: center; padding: 7px 13px; border: 1px solid #dfe7ef; border-radius: 999px; color: #53677d; background: #fff; font-size: 12px; font-weight: 600; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.request-department-pill:hover span, .request-department-pill input:checked + span { border-color: #8bb6de; color: var(--blue-dark); background: var(--blue-pale); }
.request-department-pill input:focus-visible + span { outline: 3px solid rgb(38 116 184 / 22%); outline-offset: 2px; }
.request-booking-loading { margin: 0; color: var(--muted); font-size: 12px; }
.request-booking-morning-notice { margin: 0; padding: 10px 12px; border: 1px solid #f1dfb6; border-radius: 7px; color: #795a1d; background: #fff9e9; font-size: 12px; }
.request-booking-submit-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.request-booking-submit-row .primary-button { margin: 0; }
.request-booking-closed-notice { color: #a23c3c; font-size: 12px; font-weight: 600; }
.request-booking-unavailable { margin-top: 14px; }
.request-check { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; color: #52677d; font-size: 11px; }
.request-check input { width: 16px; height: 16px; accent-color: var(--blue); }
.request-fields > .primary-button { justify-self: start; margin: 0; }
@media (max-width: 720px) { .request-fields { grid-template-columns: 1fr; } }
.chat-messages { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 16px; overflow-y: auto; }
.chat-message { align-self: flex-start; width: min(100%, 700px); padding: 11px 13px; border: 1px solid #e5ebf2; border-radius: 9px; background: #fbfdff; }
.chat-message__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: #718398; font-size: 12px; }
.chat-message__meta strong { color: #3b536b; font-size: 13px; }
.chat-message p { margin: 7px 0 0; color: #41566c; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.chat-message__actions button { padding: 3px 0; border: 0; color: #58728d; background: transparent; cursor: pointer; font-size: 12px; }
.chat-message--deleted { background: #f7f8fa; }
.chat-message--deleted p { color: #8996a5; font-style: italic; }
.nav-link__badge { display: inline-flex; min-width: 20px; height: 20px; align-items: center; justify-content: center; margin-left: auto; padding: 0 6px; border-radius: 999px; color: #fff; background: #e75b66; font-size: 10px; font-weight: 700; }
.chat-new-message-notice { display: block; margin: 0 0 14px; padding: 11px 14px; border: 1px solid color-mix(in srgb, var(--accent, #7775ff) 35%, transparent); border-radius: 9px; color: var(--ink, #e7edf5); background: var(--surface, #202d3b); font-size: 13px; text-decoration: none; }
.chat-new-message-notice:hover { border-color: var(--accent, #7775ff); }
.chat-message__actions button:hover { color: var(--accent, #7775ff); }
.account-deletion-banner { margin: 0 0 14px; padding: 12px 15px; border: 1px solid color-mix(in srgb, #e7a34c 45%, var(--line, #354457)); border-left: 3px solid #e7a34c; border-radius: 9px; color: var(--ink, #e7edf5); background: var(--surface, #202d3b); font-size: 12px; }
.account-deletion-banner ul { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.account-deletion-banner li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-deletion-banner li > span { min-width: 0; overflow-wrap: anywhere; }
.site-notifications li { align-items: flex-start; }
.site-notifications li > a { min-width: 0; color: var(--accent, #8185ff); overflow-wrap: anywhere; }
.site-notifications li > small { flex: 0 0 auto; color: var(--muted, #94a4b8); }
.notification-list { overflow: hidden; }
.notification-item { display: flex; align-items: flex-start; gap: 12px; padding: 15px 20px; border-top: 1px solid #edf1f5; color: #334a61; text-decoration: none; }
.notification-item:hover { background: #f7faff; }
.notification-item--read { color: #74859a; background: #fbfcfd; }
.notification-item__marker { width: 8px; height: 8px; flex: 0 0 8px; margin-top: 6px; border-radius: 50%; background: #4385bc; }
.notification-item--read .notification-item__marker { background: #ccd5df; }
.notification-item__body { display: grid; min-width: 0; gap: 5px; }
.notification-item__body strong { font-size: 13px; font-weight: 600; line-height: 1.5; }
.notification-item__body time { color: #8493a4; font-size: 11px; }
@media (max-width: 560px) { .account-deletion-banner li { align-items: flex-start; flex-direction: column; gap: 4px; } }
.record-chip--expired { border-color: #f0cece; color: #925c5c; background: #fff8f8; }
.record-chip > span { line-height: 1.65; }
.schedule-table th, .schedule-table td { min-width: 42px; padding: 5px 6px; text-align: center; }
.schedule-table th:first-child { position: sticky; left: 0; z-index: 1; min-width: 180px; background: #f8fafc; text-align: left; }
.schedule-cell { width: 40px; min-height: 30px; padding: 3px; border: 1px solid #e4eaf1; border-radius: 5px; color: #435a72; background: #fff; font-size: 10px; }
.schedule-table-scroll { width: auto; max-height: min(68vh, 700px); margin-inline: 18px; scrollbar-color: #aebdcb #f4f7fa; scrollbar-width: thin; }
.schedule-module > .table-scroll:not(.schedule-table-scroll) { width: auto; margin-inline: 18px; }
.schedule-table { min-width: max-content; }
.schedule-table th:first-child { min-width: 180px; }
.schedule-table td { min-width: 44px; }
.schedule-table th:not(:first-child), .schedule-table td { border-right: 1px solid #edf1f5; }
.schedule-table .table-empty { min-width: 0; }
.schedule-table--monthly { width: 100%; min-width: 0; table-layout: fixed; }
.schedule-table--monthly thead tr:first-child > th:first-child, .schedule-table--monthly tbody tr:not(.schedule-summary-row) > td:first-child { position: sticky; left: 0; z-index: 1; width: 30px; min-width: 30px; background: #f8fafc; }
.schedule-table--monthly .schedule-summary-row > th:first-child { position: sticky; left: 0; z-index: 1; min-width: 0; background: #f8fafc; }
.schedule-table--monthly thead tr:first-child > th:nth-child(2), .schedule-table--monthly tbody tr:not(.schedule-summary-row) > td:nth-child(2) { width: 135px; min-width: 135px; }
.schedule-table--monthly thead tr:first-child > th:nth-child(3), .schedule-table--monthly tbody tr:not(.schedule-summary-row) > td:nth-child(3) { width: 130px; min-width: 130px; }
.schedule-table--monthly thead tr:first-child > th:nth-child(4), .schedule-table--monthly tbody tr:not(.schedule-summary-row) > td:nth-child(4) { width: 78px; min-width: 78px; }
.schedule-table--monthly thead tr:first-child > th:nth-child(5), .schedule-table--monthly tbody tr:not(.schedule-summary-row) > td:nth-child(5) { width: 124px; min-width: 124px; }
.schedule-table--monthly thead tr:first-child > th:nth-child(n+6):not(:last-child), .schedule-table--monthly tbody tr:not(.schedule-summary-row) > td:nth-child(n+6):not(:last-child), .schedule-table--monthly thead .schedule-weekday-row > th { width: 26px; min-width: 26px; padding-inline: 1px; }
.schedule-table--monthly thead tr:first-child > th:last-child, .schedule-table--monthly tbody tr:not(.schedule-summary-row) > td:last-child { width: 98px; min-width: 98px; }
.schedule-table--monthly thead th { white-space: nowrap; }
.schedule-table--monthly thead tr:first-child > th:last-child { white-space: normal; line-height: 1.25; }
.schedule-table--monthly thead tr:first-child > th:nth-child(2), .schedule-table--monthly thead tr:first-child > th:nth-child(3), .schedule-table--monthly thead tr:first-child > th:nth-child(4), .schedule-table--monthly thead tr:first-child > th:nth-child(5) { text-align: center; }
.schedule-table--monthly thead tr > th:first-child { text-align: center; }
.schedule-table--monthly thead th.schedule-charter-day { color: #725300; background-color: rgba(255, 193, 7, .5); }
.schedule-table--monthly .schedule-row-number, .schedule-table--monthly .schedule-employee-number { white-space: nowrap; }
.schedule-employee-text { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.schedule-template-select { display: block; width: 100%; min-width: 0; min-height: 30px; padding: 0 6px; border: 1px solid #dce4ed; border-radius: 7px; color: #33465c; background: #f8fafc; font-size: 11px; }
.schedule-table--monthly .schedule-summary-row th, .schedule-table--monthly .schedule-summary-row td { font-weight: 700; background: #f8fafc; }
.schedule-table--monthly .schedule-summary-row td.schedule-work-count--zero { color: #b4232c; background: rgba(244, 67, 54, .25); }
.schedule-table--monthly .schedule-summary-row td.schedule-work-count--low { color: #856404; background: rgba(255, 193, 7, .25); }
.schedule-table--monthly .schedule-summary-row td.schedule-work-count--medium { color: #a34c00; background: rgba(255, 152, 0, .25); }
.schedule-table--monthly .schedule-summary-row td.schedule-work-count--high { color: #24723a; background: rgba(76, 175, 80, .25); }
.schedule-table--monthly .schedule-summary-row th { text-align: left; white-space: nowrap; }
.schedule-table-scroll:has(> .schedule-table--monthly) { scrollbar-width: none; }
.schedule-table-scroll:has(> .schedule-table--monthly)::-webkit-scrollbar { display: none; }
.schedule-table-scroll .data-table thead { position: sticky; top: 0; z-index: 2; }
.schedule-module .module-card__heading { align-items: center; }
.schedule-staff-controls { display: flex; align-items: flex-end; gap: 12px; }
.schedule-staff-controls .request-filter { flex: 0 0 172px; min-width: 172px; }
.schedule-staff-controls .request-filter input { width: 100%; }
.schedule-year-filter { flex: 0 0 124px; min-width: 124px !important; }
.schedule-year-filter input { width: 100%; }
.schedule-template-tabs { display: flex; gap: 7px; padding: 0 18px 14px; overflow-x: auto; }
.schedule-template-tab { flex: 0 0 auto; min-height: 36px; padding: 0 12px; border: 1px solid #dce5ef; border-radius: 7px; color: #586e84; background: #fff; cursor: pointer; font-size: 12px; }
.schedule-template-tab:hover, .schedule-template-tab.is-active { border-color: #8bb6de; color: var(--blue-dark); background: var(--blue-pale); }
.schedule-annual-table th:first-child { min-width: 160px; }
.schedule-annual-table td { padding: 4px 3px; }
.schedule-table .schedule-code-entry { display: block; width: 100%; min-height: 32px; padding: 2px 0; border: 0; border-radius: 0; color: #435a72; background: transparent; box-shadow: none; font-size: 12px; text-align: center; text-transform: uppercase; }
.schedule-table .schedule-code-entry:hover { filter: brightness(.96); }
.schedule-table .schedule-code-entry--locked { cursor: not-allowed; }
.schedule-table .schedule-code-entry:focus { outline-offset: -2px; }
.schedule-table .schedule-code-entry[data-code-tone="hours-8"] { color: #24723a; background: rgba(76, 175, 80, .25); }
.schedule-table .schedule-code-entry[data-code-tone="hours-7"] { color: #176c78; background: rgba(38, 166, 154, .25); }
.schedule-table .schedule-code-entry[data-code-tone="day-off"] { color: #d12c36; background: rgba(244, 67, 54, .25); }
.schedule-table .schedule-code-entry[data-code-tone="holiday"] { color: #a96100; background: rgba(255, 193, 7, .25); }
.schedule-table .schedule-code-entry[data-code-tone="leave"] { color: #1765b1; background: rgba(33, 150, 243, .25); }
.schedule-table .schedule-code-entry[data-code-tone="rvd"] { color: #c85b0c; background: rgba(255, 152, 0, .25); }
.schedule-table .schedule-code-entry[data-code-tone="unpaid"] { color: #a83232; background: rgba(239, 83, 80, .25); }
.schedule-table .schedule-code-entry[data-code-tone="sick"] { color: #ad2675; background: rgba(233, 30, 99, .25); }
.schedule-table .schedule-code-entry[data-code-tone="business-trip"] { color: #633c9d; background: rgba(126, 87, 194, .25); }
.schedule-table .schedule-code-entry[data-code-tone="charter"] { color: #725300; background: rgba(255, 193, 7, .5); }
.schedule-code-entry::placeholder { color: #9aa8b6; opacity: 1; }
.schedule-code-entry--monthly { width: 100%; }
.schedule-module .schedule-block-error { margin: 0 18px 12px; }
.schedule-day-empty { background: #f7f9fb; }
.schedule-modal-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgb(8 26 47 / 48%); }
.schedule-modal { width: min(680px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 22px 70px rgb(10 30 50 / 24%); }
.schedule-modal.request-booking-modal { width: min(1020px, 100%); }
.request-booking-modal .request-fields > .request-filter { min-width: 0; }
.request-booking-modal .request-fields > .request-filter input, .request-booking-modal .request-fields > .request-filter select { width: 100%; min-width: 0; }
.schedule-modal .module-card__heading { border-bottom: 1px solid #edf1f5; }
.schedule-modal .local-form { border-top: 0; }
.schedule-modal-error { margin: 12px 20px 0; }
.schedule-modal-actions { display: flex; align-items: center; justify-content: flex-start; gap: 10px; }
.schedule-modal-actions .primary-button { margin: 0; font-size: 13px; font-weight: 600; }
.schedule-modal-actions .secondary-button { min-width: 96px; min-height: 42px; border-color: #cbd8e6; color: #405a75; background: #f7f9fc; font-size: 13px; }
.schedule-modal-actions .secondary-button:hover:not(:disabled) { border-color: #9ebada; background: #edf4fb; }
.schedule-modal-actions .schedule-modal-cancel { width: 98px; min-width: 98px; flex: 0 0 98px; margin: 0; border: 0; color: #fff; background: #c62828; font-size: 13px; font-weight: 600; }
.schedule-modal-actions .schedule-modal-cancel:hover:not(:disabled) { background: #a91f1f; }
@media (min-width: 921px) {
  .schedule-table { width: 100%; min-width: 100%; table-layout: fixed; }
  .schedule-table th, .schedule-table td { min-width: 0; padding-inline: 2px; }
  .schedule-table th:first-child { white-space: normal; overflow-wrap: anywhere; }
  .schedule-annual-table th:first-child { width: 130px; }
  .schedule-table:not(.schedule-annual-table) th:first-child { width: 180px; }
  .schedule-table:not(.schedule-annual-table) th:nth-child(2) { width: 120px; }
}
@media (min-width: 601px) and (max-width: 920px) {
  .schedule-table { width: 100%; min-width: 100%; table-layout: fixed; }
  .schedule-table th, .schedule-table td { min-width: 0; padding-inline: 1px; }
  .schedule-table th:first-child { white-space: normal; overflow-wrap: anywhere; }
  .schedule-annual-table th:first-child { width: 100px; }
  .schedule-table:not(.schedule-annual-table) th:first-child { width: 130px; }
  .schedule-table:not(.schedule-annual-table) th:nth-child(2) { width: 90px; }
}

.profile { display: grid; grid-template-columns: 34px minmax(0, auto); align-items: center; column-gap: 9px; }
.profile__avatar { grid-row: 1 / span 2; }
.profile__name { min-width: 0; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile__role { align-self: start; transform: translateY(-3px); color: var(--muted); font-size: 10px; line-height: 1.2; }
.account-logout { min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: #586c80; background: #fff; cursor: pointer; font-size: 12px; }
.account-logout:hover { border-color: #c5d6e7; color: var(--blue); }
.account-logout[hidden] { display: none; }

.auth-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: radial-gradient(ellipse at 50% 0%, #e5f1fc 0, var(--canvas) 58%); }
.auth-card { width: min(100%, 440px); padding: 34px; border: 1px solid #e5ebf2; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.auth-brand { min-height: auto; padding: 0 0 26px; border-bottom: 1px solid var(--line); color: var(--ink); }
.auth-brand .brand__name { font-size: 18px; }
.auth-card__heading { padding: 27px 0 20px; }
.auth-card__eyebrow { margin-bottom: 8px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.auth-card__heading h1 { margin: 0; font-size: clamp(24px, 6vw, 29px); line-height: 1.25; }
.auth-card__heading p { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.auth-form { display: grid; gap: 16px; }
.auth-field { display: grid; gap: 7px; color: #52677d; font-size: 12px; font-weight: 600; }
.auth-field input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #dce4ed; border-radius: 8px; color: var(--ink); background: #fff; }
.auth-field input:focus { border-color: #7daedb; }
.auth-submit { width: 100%; min-height: 44px; justify-content: center; margin: 3px 0 0; }
.auth-submit:disabled { cursor: wait; opacity: .68; }
.auth-message { margin: 0; padding: 10px 12px; border: 1px solid #f0d3d3; border-radius: 8px; color: #8e3e3e; background: #fff7f7; font-size: 12px; }
.action-feedback { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #f0d3d3; border-radius: 8px; color: #8e3e3e; background: #fff7f7; font-size: 12px; line-height: 1.5; }
.module-card > .action-feedback, .chat-panel > .action-feedback { margin: 0 20px 12px; }
.local-form > .action-feedback { flex: 0 0 100%; }
.schedule-modal > .action-feedback { margin: 12px 20px 0; }
.directory-modal { width: min(560px, 100%); }
.auth-message[data-kind="working"] { border-color: #d9e8f6; color: #426b8f; background: #f5faff; }
.auth-message[hidden] { display: none; }
.auth-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 23px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.auth-card__footer .language-toggle { flex: 0 0 auto; }

@media (max-width: 920px) {
  .profile__name, .profile__role { display: none; }
  .profile { display: block; }
  .profile__avatar { width: 31px; height: 31px; }
  .account-logout { min-width: 38px; padding: 0 7px; overflow: hidden; font-size: 0; }
  .account-logout::after { content: "↪"; font-size: 18px; }
  .auth-card { padding: 25px 21px; }
}

@media (max-width: 920px) {
  .schedule-table th:first-child { min-width: 124px; }
  .schedule-table td { min-width: 42px; }
  .schedule-table-scroll::after { position: sticky; left: 0; width: fit-content; max-width: 100%; text-align: left; }
}
@media (max-width: 600px) {
  .schedule-template-tabs { padding-inline: 16px; }
  .schedule-modal-backdrop { padding: 10px; }
  .schedule-modal { max-height: calc(100vh - 20px); }
  .schedule-annual-table th:first-child { min-width: 112px; }
  .schedule-code-entry { width: 32px; }
}
.weekend-slots {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 8px;
}

.weekend-slots__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 8px;
}
.weekend-slots__row > strong { display: contents; }

.weekend-slot {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--border, #2d3b4c);
  border-radius: 10px;
}

.weekend-slot:is(button) {
  appearance: none;
  color: inherit;
  background: var(--surface, #fff);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.weekend-slot:is(button):disabled { cursor: default; }
.weekend-slot strong { white-space: nowrap; }

.weekend-slot > span {
  text-align: center;
  color: var(--muted, #8fa0b3);
  font-size: 0.88rem;
}

.weekend-slot--taken { background: color-mix(in srgb, var(--surface, #202d3b) 72%, transparent); }
.weekend-slot--selected { border-color: var(--accent, #7b78ff); }
.weekend-slot:is(button).weekend-slot--taken { background: color-mix(in srgb, var(--surface, #202d3b) 72%, transparent); }
.weekend-slot:is(button).weekend-slot--selected { border-color: var(--accent, #7b78ff); }
.weekend-booking-controls { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.weekend-booking-controls .primary-button { margin: 0; }
.weekend-booking-controls > span { color: var(--muted, #72849a); font-size: 12px; }
.weekend-booking-controls > .weekend-booking-hint { flex-basis: 100%; text-align: right; }
.weekend-duty-list { margin-top: 18px; }
.weekend-duty-list > .weekend-duty-card { margin-top: 0; }
.weekend-duty-list > .weekend-duty-card + .weekend-duty-card { margin-top: 14px; }
.weekend-duty-card__heading { align-items: center; flex-wrap: wrap; }
.weekend-duty-card__heading h3 { margin: 0; color: #283c52; font-size: 15px; font-weight: 600; }
.weekend-duty-card__actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.weekend-duty-card__heading .weekend-booking-controls { margin-top: 0; }
.weekend-request-table-scroll { margin-top: 14px; }
.weekend-request-table { min-width: 1180px; text-align: center; }
.weekend-request-table th, .weekend-request-table td { text-align: center; vertical-align: middle; }
.weekend-request-table td { padding: 12px 10px; }
.weekend-request-table .request-table__single { white-space: normal; }
.weekend-request-table .request-table__construction { min-width: 150px; }
.weekend-request-actions { min-width: 0; }
.weekend-request-actions .text-action { white-space: nowrap; }
.letter-inspection-card .module-card__heading { align-items: flex-end; }
.letter-inspection-controls { display: grid; grid-template-columns: repeat(2, minmax(130px, 150px)); gap: 10px; }
.letter-inspection-year, .letter-inspection-month { min-width: 0; margin: 0; }
.letter-inspection-controls select { width: 100%; min-height: 38px; padding: 0 9px; border: 1px solid #dce4ed; border-radius: 7px; color: #33465c; background: #f8fafc; font-size: 13px; text-transform: capitalize; }
.letter-inspection-table { width: 100%; min-width: 0; table-layout: fixed; text-align: center; }
.letter-inspection-table th, .letter-inspection-table td { min-width: 0; padding: 7px 2px; text-align: center; vertical-align: middle; }
.letter-inspection-table thead th { background: #f8fafc; }
.letter-inspection-table th:first-child, .letter-inspection-table td:first-child { width: 26%; padding-inline-start: 20px; text-align: left; overflow-wrap: anywhere; }
.letter-inspection-table tbody th:first-child { color: #344d67; }
.letter-inspection-row--active th, .letter-inspection-row--active td { background: #f1f8f3; }
.letter-inspection-company-button { display: inline; margin: 0; padding: 0; border: 0; color: inherit; background: transparent; font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.letter-inspection-company-button:hover { text-decoration: underline; text-underline-offset: 2px; }
.letter-inspection-company-button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.letter-inspection-company-button[aria-pressed="true"] { color: var(--blue); font-weight: 700; }
.letter-inspection-table th:not(:first-child), .letter-inspection-table td:not(:first-child) { white-space: nowrap; }
.letter-inspection-checkbox { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); vertical-align: middle; }
.letter-inspection-checkbox:disabled { cursor: default; }
.letter-inspection-error { margin: 12px 20px 0; }

.report-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.report-actions .secondary-button { min-height: 36px; font-size: 12px; }
.report-list { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.report-entry { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.report-entry > span { display: grid; gap: 4px; min-width: 0; }
.report-entry strong { font-size: 12px; }
.report-entry small { color: var(--muted); font-size: 11px; }
.report-entry .secondary-button { flex: 0 0 auto; }
@media (max-width: 560px) {
  .report-entry { align-items: flex-start; flex-direction: column; }
  .report-actions { display: grid; }
}

@media (max-width: 560px) {
  .weekend-slots__row { grid-template-columns: 1fr; }
  .weekend-slot { align-items: flex-start; }
  .letter-inspection-card .module-card__heading { align-items: flex-start; flex-direction: column; }
  .letter-inspection-controls { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .letter-inspection-table th:first-child, .letter-inspection-table td:first-child { padding-inline-start: 16px; }
}

body[data-page="chat"] .main-column {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
body[data-page="chat"] .content {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  padding-block: 24px;
}
body[data-page="chat"] .page-heading { flex: 0 0 auto; margin-bottom: 16px; }
body[data-page="chat"] .chat-panel { min-height: 0; flex: 1 1 0; }
body[data-page="chat"] .chat-messages { min-height: 0; overscroll-behavior: contain; }
body[data-page="chat"] .chat-composer { align-items: center; }
body[data-page="chat"] .chat-composer input {
  width: 100%;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid #dce4ed;
  border-radius: 8px;
  background: #f8fafc;
  font: inherit;
  font-size: 14px;
}
body[data-page="chat"] .chat-panel__controls { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
body[data-page="chat"] .chat-clear-button { border-color: #e4bcbc; color: #a23c3c; background: #fff7f7; }
body[data-page="chat"] .chat-clear-button:hover:not(:disabled) { border-color: #d88e8e; background: #fff0f0; }
body[data-page="chat"] .chat-panel > .auth-message { flex: 0 0 auto; margin: 10px 16px 0; }
body[data-page="chat"] .action-feedback--success { border-color: #c9e8d7; color: #27764d; background: #f2fbf6; }
body[data-page="chat"] .chat-panel > .chat-clear-feedback { flex: 0 0 auto; margin: 10px 16px 0; }
@media (max-width: 920px) {
  body[data-page="chat"] .content { padding: 16px; }
  body[data-page="chat"] .chat-composer { align-items: stretch; }
}

.notification-list > .auth-message { margin: 0 20px 12px; }
.notification-list > .action-feedback--success { border-color: #c9e8d7; color: #27764d; background: #f2fbf6; }

.staff-roster-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 20px 18px; }
.staff-roster-table-scroll { min-width: 0; border: 1px solid #e5ebf2; border-radius: 8px; }
.staff-roster-table { width: 100%; min-width: 0; table-layout: fixed; }
.staff-roster-table th, .staff-roster-table td { padding: 8px 10px; line-height: 1.35; overflow-wrap: anywhere; }
.staff-roster-table tbody tr:last-child td { border-bottom: 1px solid #b8c7d6; }
.staff-roster-table th:nth-child(1), .staff-roster-table td:nth-child(1) { width: 36%; }
.staff-roster-table th:nth-child(2), .staff-roster-table td:nth-child(2) { width: 34%; }
.staff-roster-table th:nth-child(3), .staff-roster-table td:nth-child(3) { width: 30%; }
.staff-roster-empty, .staff-roster-error { margin: 0 20px 18px; }
.request-working-staff-card { margin-bottom: 18px; }
@media (max-width: 760px) {
  .staff-roster-tables { grid-template-columns: minmax(0, 1fr); padding-inline: 12px; }
  .staff-roster-empty, .staff-roster-error { margin-inline: 12px; }
}

.equipment-table-heading { align-items: center; }
.equipment-add-button { flex: 0 0 auto; margin: 0; }
.equipment-table-scroll { width: auto; margin: 0 20px 18px; border: 1px solid #e5ebf2; border-radius: 8px; }
.equipment-table { width: 100%; min-width: 1450px; table-layout: fixed; text-align: center; }
.equipment-table th { padding: 11px 9px; white-space: normal; line-height: 1.35; text-align: center; }
.equipment-table td { padding: 8px 9px; line-height: 1.35; vertical-align: middle; overflow-wrap: anywhere; }
.equipment-table th:nth-child(1), .equipment-table td:nth-child(1) { width: 170px; text-align: left; }
.equipment-table th:nth-child(2), .equipment-table td:nth-child(2) { width: 115px; }
.equipment-table th:nth-child(3), .equipment-table td:nth-child(3) { width: 155px; }
.equipment-table th:nth-child(4), .equipment-table td:nth-child(4) { width: 125px; }
.equipment-table th:nth-child(5), .equipment-table td:nth-child(5) { width: 105px; }
.equipment-table th:nth-child(6), .equipment-table td:nth-child(6) { width: 175px; }
.equipment-table th:nth-child(7), .equipment-table td:nth-child(7) { width: 185px; }
.equipment-table th:nth-child(8), .equipment-table td:nth-child(8) { width: 125px; }
.equipment-table th:nth-child(9), .equipment-table td:nth-child(9) { width: 205px; }
.equipment-table th:nth-child(10), .equipment-table td:nth-child(10) { width: 120px; }
.equipment-table .instrument-row { display: table-row; border: 0; background: #fff; }
.equipment-table .instrument-row > td { border-top: 1px solid #b8c7d6; }
.equipment-table .instrument-row--expired > td { background: #fff8f8; }
.instrument-row__name { color: #344c65; }
.instrument-row__certificate { color: var(--blue); text-decoration: underline; }
.instrument-row__missing { color: #8996a5; }
.instrument-row__actions { display: flex; align-items: center; justify-content: center; gap: 10px; overflow: visible; }
.instrument-row__actions .text-action { white-space: nowrap; }
.equipment-table .instrument-row__countdown { color: #24723a; font-size: 11px; font-weight: 600; text-align: center; }
.equipment-table .instrument-row__countdown.is-expired { color: #c33c3c; }
body.equipment-modal-open { overflow: hidden; }
.schedule-modal.equipment-modal { width: min(920px, 100%); }
.equipment-modal .module-card__heading { align-items: center; }
.equipment-modal-close { width: 36px; min-width: 36px; min-height: 36px; flex: 0 0 36px; padding: 0; font-size: 22px; line-height: 1; }
.equipment-modal .local-form { padding: 18px 20px 20px; }
.equipment-modal .certificate-upload { min-width: 0; }
.equipment-modal .request-filter input[type="url"] { width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid #dce4ed; border-radius: 7px; background: #f8fafc; font: inherit; font-size: 13px; }
@media (max-width: 720px) {
  .equipment-table-heading { align-items: flex-start; flex-direction: column; }
  .equipment-add-button { width: 100%; }
  .equipment-table-scroll { margin-inline: 12px; }
  .equipment-modal .local-form { padding: 14px; }
}

/* Outline only the outer page panels; nested cards keep their component borders. */
.app-loading__card,
.overview-card,
.section-panel,
.notice,
.request-toolbar,
.request-empty,
.request-rule,
.module-card,
.chat-panel,
.directory-group,
.company-banner,
.upload-panel,
.report-card,
.system-status,
.chat-new-message-notice,
.account-deletion-banner,
.schedule-modal,
.auth-card {
  border: 3px solid #536b82;
}
