@font-face {
  font-family: "AMX";
  src: url("/brand/fonts/AMX-Light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "AMX";
  src: url("/brand/fonts/AMX-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "AMX";
  src: url("/brand/fonts/AMX-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "AMX";
  src: url("/brand/fonts/AMX-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "AMX";
  src: url("/brand/fonts/AMX-Black.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #1f1d1d;
  --brand-burgundy: #530b06;
  --muted: #525252;
  --line: #dbdbdb;
  --line-dark: #a9a6a6;
  --paper: #fff;
  --canvas: #f8f8f8;
  --red: #da291c;
  --red-dark: #880000;
  --green: #e7f2e7;
  --green-ink: #28663f;
  --amber: #f6f0d8;
  --danger: #880000;
  font-family: "AMX", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
[hidden] { display: none !important; }

.login-shell { min-height: 100vh; display: grid; place-items: center; position: relative; padding: 52px 24px 96px; background: var(--canvas); }
.login-panel { width: min(100%, 440px); background: var(--paper); padding: 0 44px 38px; border-top: 0; box-shadow: 0 12px 38px rgba(31, 29, 29, 0.08); }
.brand { display: inline-flex; align-items: center; text-decoration: none; margin-bottom: 34px; }
.login-panel > .brand { display: flex; justify-content: center; width: calc(100% + 88px); min-height: 104px; margin: 0 -44px 30px; padding: 10px 0; background: var(--brand-burgundy); }
.login-panel > .brand .brand-logo { width: 150px; height: auto; }
.brand-logo { display: block; width: 165px; height: auto; }
.login-panel h1 { margin: 0 0 5px; }
.login-context { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0 0 14px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(26px, 4vw, 34px); letter-spacing: -.035em; line-height: 1.15; margin: 8px 0 14px; color: var(--brand-burgundy); }
.login-intro { color: #596570; font-size: 14px; line-height: 1.65; margin-bottom: 28px; }
.form-stack { display: grid; gap: 9px; }
.account-settings { padding: 24px; max-width: 640px; }
.account-settings h2 { margin-top: 0; }
.form-stack label, .field-label { color: #394754; font-size: 12px; font-weight: 700; margin-top: 7px; }
input, select, textarea { border: 1px solid var(--line-dark); background: #fff; color: var(--ink); min-height: 42px; padding: 9px 11px; border-radius: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-burgundy); outline: 2px solid #530b0626; outline-offset: 1px; }
textarea { min-height: 76px; resize: vertical; }
.button { min-height: 40px; padding: 9px 15px; border: 1px solid var(--line-dark); background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; border-radius: 0; }
.button:hover { background: #f2f4f5; }
.button-primary { background: var(--red); border-color: var(--red); color: #fff; }
.button-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.button-secondary { color: var(--brand-burgundy); border-color: #71808b; }
.button-quiet { border-color: transparent; color: var(--muted); background: transparent; }
.button-danger { color: var(--danger); border-color: #d8a4a7; }
.button-small { min-height: 40px; padding: 8px 10px; font-size: 12px; }
.login-submit { margin-top: 13px; min-height: 44px; }
.login-help { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 25px; margin-bottom: 0; }
.recovery-link { display: block; margin: 11px auto 0; padding-inline: 5px; text-decoration: underline; text-underline-offset: 3px; }
.login-footer, .app-footer { display: grid; justify-items: center; gap: 5px; color: #69737b; font-size: 10px; letter-spacing: .06em; line-height: 1.4; }
.login-footer { position: absolute; bottom: 22px; left: 24px; right: 24px; text-align: center; color: var(--muted); font-size: 12px; letter-spacing: .02em; }
.app-footer { border-top: 1px solid var(--line); padding: 15px 20px; text-align: center; }
.form-error { color: var(--danger); font-size: 12px; line-height: 1.5; margin: 2px 0 0; }

.app-frame { min-height: 100vh; display: flex; flex-direction: column; }
.user-name { font-weight: 700; color: var(--brand-burgundy); }
.shell-main { flex: 1; width: min(1420px, 100%); margin: 0 auto; padding: 32px clamp(16px, 4vw, 50px) 60px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
.page-heading h1 { margin: 2px 0 4px; font-size: 30px; }
.page-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.page-eyebrow { color: #6a7680; font-size: 10px; letter-spacing: .12em; font-weight: 700; margin-bottom: 6px; }
.view-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line-dark); margin-bottom: 0; }
.tab-button { padding: 11px 18px 10px; background: none; border: 0; border-bottom: 3px solid transparent; color: #66717a; font-size: 13px; font-weight: 700; }
.tab-button[aria-pressed="true"] { color: var(--brand-burgundy); border-bottom-color: var(--red); }
.section-bar { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); background: white; padding: 10px 14px; }
.section-bar h2 { font-size: 15px; color: var(--brand-burgundy); margin: 0; }
.section-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.status-line { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); }
.status-dot { width: 8px; height: 8px; background: #73808a; display: inline-block; }
.status-dot.published { background: #348152; }
.status-dot.draft { background: #be8b14; }
.table-wrap { overflow-x: auto; background: #fff; }
.schedule-table { width: 100%; border-collapse: collapse; table-layout: fixed; background: #fff; }
.schedule-table th { text-align: left; color: #4c5963; background: #edf0f0; padding: 10px 12px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid #b8c0c4; }
.schedule-table td { padding: 9px 12px; vertical-align: middle; border: 1px solid #cbd1d4; font-size: 12px; }
.schedule-table tbody tr:hover { background: #fafbfb; }
.schedule-table .date-cell { width: 144px; background: #fafafa; }
.schedule-table .shift-cell { width: 42%; position: relative; }
.shift-cell.has-changes .shift-content { padding-right: 18px; }
.shift-history-corner-btn {
  position: absolute;
  top: 4px;
  right: 5px;
  width: 18px;
  height: 18px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: #64748b;
  opacity: 0.38;
  cursor: pointer;
  transition: opacity 0.15s ease, color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
  z-index: 2;
}
.shift-history-corner-btn svg { display: block; }
.shift-history-corner-btn:hover,
.shift-history-corner-btn:focus-visible {
  opacity: 0.95;
  color: var(--brand-burgundy);
  background-color: rgba(18, 45, 72, 0.08);
  transform: scale(1.1);
  outline: none;
}
.shift-history-corner-btn:focus-visible {
  outline: 1.5px solid var(--brand-burgundy);
  outline-offset: 1px;
}
.date-primary { display: flex; align-items: center; gap: 8px; color: var(--brand-burgundy); font-weight: 700; }
.weekday { color: #56616a; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.today-mark { font-size: 9px; color: var(--red); font-weight: 700; text-transform: uppercase; }
.shift-content { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 24px; }
.crew-label { position: relative; display: inline-block; padding-left: 11px; font-size: 10px; font-weight: 700; color: #43505b; margin-right: 9px; white-space: nowrap; }
.crew-label::before { position: absolute; left: 0; top: 1px; width: 3px; height: 13px; background: var(--crew, var(--brand-burgundy)); content: ""; }
.member-list { color: #172635; line-height: 1.55; }
.shift-cell.is-clickable { cursor: pointer; transition: background-color .15s ease, box-shadow .15s ease; }
.shift-cell.is-clickable:hover { background-color: #f0f5fa !important; }
.shift-cell.is-clickable:focus-visible { outline: 2px solid var(--brand-burgundy); outline-offset: -2px; }
.is-weekend .date-cell { background: #f5f6f6; }
.schedule-table tr.is-today td,
.schedule-table tr.is-today .date-cell,
.is-today td {
  border-top: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  background-color: #eaedf0;
}
.schedule-table tr.is-today td:first-child,
.schedule-table tr.is-today .date-cell:first-child,
.is-today td:first-child {
  border-left: 2px solid var(--red);
}
.schedule-table tr.is-today td:last-child,
.is-today td:last-child {
  border-right: 2px solid var(--red);
}
.schedule-table tbody tr.is-today:hover td,
.schedule-table tbody tr.is-today:hover .date-cell {
  background-color: #e2e6ea;
}
.schedule-table tr.is-holiday .date-cell {
  background-color: #fff7f6;
  border-left: 1px solid #ecd4d1;
}
.schedule-table tr.is-holiday.is-weekend .date-cell {
  background-color: #fff7f6;
}
.consult-holiday-alert {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fdf5f5;
  border: 1px solid #ecc4c4;
  border-left: 1px solid #ecc4c4;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.consult-holiday-alert strong {
  color: #7b1d1d;
  font-size: 13px;
}
.consult-holiday-desc {
  margin: 2px 0 0;
  font-size: 11px;
  color: #555;
  line-height: 1.45;
}
.shift-log { position: relative; display: inline-flex; align-items: center; }
.log-trigger { border: 0; background: transparent; color: #56616a; font-size: 16px; padding: 0 5px; min-width: 40px; min-height: 40px; }
.log-popover { position: absolute; right: 0; top: calc(100% + 5px); z-index: 10; width: 245px; background: var(--brand-burgundy); color: white; padding: 12px; box-shadow: 0 5px 18px rgba(31, 29, 29, 0.14); font-size: 11px; line-height: 1.55; }
.log-popover { display: none; }
.shift-log:hover .log-popover, .shift-log:focus-within .log-popover, .log-popover.is-open { display: block; }
.log-popover strong { display: block; margin-bottom: 4px; }
.empty-state { padding: 48px 20px; text-align: center; color: var(--muted); background: #fff; font-size: 13px; }
.empty-state h3 { color: var(--brand-burgundy); margin-bottom: 8px; font-size: 16px; }
.notice { padding: 11px 13px; border: 0; border-top: 3px solid #c99726; background: var(--amber); color: #57471c; font-size: 12px; line-height: 1.55; margin: 14px 0; }
.notice.error { border-top-color: var(--danger); background: #faeeee; color: #75252a; }
.notice.success { border-top-color: #378154; background: var(--green); color: var(--green-ink); }
.schedule-reminder { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.schedule-reminder p { margin: 4px 0 0; }
.schedule-reminder .button { flex-shrink: 0; }
.vacation-planner > .section-bar p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.gantt-scroll { overflow-x: auto; overscroll-behavior-inline: contain; }
.gantt-chart { min-width: 1280px; padding: 12px 14px 18px; background: #fff; }
.gantt-axis, .gantt-row { display: grid; grid-template-columns: 350px minmax(0, 1fr); column-gap: 12px; }
.gantt-axis { align-items: stretch; min-height: 52px; border-bottom: 1px solid var(--line-dark); color: var(--brand-burgundy); font-size: 10px; }
.gantt-axis > strong { position: sticky; left: 0; z-index: 3; display: flex; align-items: center; padding: 6px 8px 6px 2px; border-right: 1px solid var(--line); background: #fff; font-size: 11px; font-weight: 700; color: var(--brand-burgundy); }
.gantt-timeline-header { position: relative; display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--line-dark); }
.gantt-years { display: grid; grid-template-columns: var(--year-columns); min-height: 25px; background: var(--canvas); border-bottom: 1px solid var(--line); }
.gantt-year-block { display: flex; align-items: center; justify-content: center; padding: 2px 8px; }
.gantt-year-block:not(:first-child) { border-left: 1px solid var(--line-dark); }
.gantt-year-label { display: inline-flex; align-items: center; gap: 6px; padding: 1px 12px; background: #ffffff; border: 1px solid var(--line); color: var(--brand-burgundy); font-size: 11px; font-weight: 700; }
.gantt-year-label b { font-weight: 700; color: var(--brand-burgundy); }
.gantt-months { display: grid; grid-template-columns: var(--month-columns); align-items: center; min-height: 25px; }
.gantt-months span { min-width: 0; padding: 4px 1px; border-left: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 700; text-align: center; text-transform: capitalize; white-space: nowrap; overflow: hidden; }
.gantt-months span:first-child { border-left: none; }
.gantt-months span.is-year-boundary { border-left: 1px solid var(--line-dark); font-weight: 700; color: var(--brand-burgundy); }
.gantt-months b { color: var(--brand-burgundy); }
.gantt-row { min-height: 42px; align-items: stretch; border-bottom: 1px solid #edf0f1; }
.gantt-person { position: sticky; left: 0; z-index: 2; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 6px 8px 0; border-right: 1px solid var(--line); background: #fff; font-size: 11px; font-weight: 700; }
.gantt-person-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--brand-burgundy); }
.gantt-admission-tag { font-size: 9px; font-weight: 700; color: var(--red-dark); background: #fbf5f2; padding: 2px 6px; white-space: nowrap; letter-spacing: 0.2px; }
.gantt-pa-tag { font-size: 9px; font-weight: 700; color: var(--muted); background: #efeeee; padding: 2px 5px; white-space: nowrap; letter-spacing: 0.2px; }
.gantt-swatch { width: 10px; height: 10px; flex: none; background: var(--period-color); border-radius: 2px; }
.gantt-track { position: relative; min-height: 42px; border-left: 1px solid var(--line-dark); }
.gantt-month-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: #e7eaec; }
.gantt-month-tick.is-year-boundary { width: 1px; background: var(--line-dark); }
.gantt-today-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--today-position);
  z-index: 3;
  width: 2px;
  background: var(--red);
  pointer-events: none;
}
.gantt-legend-group { display: inline-flex; align-items: center; gap: 12px; }
.gantt-today-legend { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-burgundy); font-size: 11px; font-weight: 700; white-space: nowrap; }
.gantt-today-legend i { width: 2px; height: 16px; background: var(--red); }
.gantt-scroll-hint { display: none; }
.gantt-period { position: absolute; top: 11px; height: 20px; min-width: 3px; overflow: hidden; background: color-mix(in srgb, var(--period-color) 18%, white); border-radius: 3px; }
.gantt-period::before { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--period-color); content: ""; }
.gantt-period::after { position: absolute; inset: 2px 5px 2px 7px; overflow: hidden; color: var(--period-color); content: attr(aria-label); font-size: 9px; font-weight: 700; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.gantt-period.has-abono { outline: 1px dashed var(--period-color); outline-offset: -1px; }

/* Separadores de equipes no Gantt */
.gantt-crew-separator { display: grid; grid-template-columns: 350px minmax(0, 1fr); column-gap: 12px; background: #f4f6f8; border-top: 2px solid #dce2e6; border-bottom: 1px solid #dce2e6; min-height: 38px; align-items: center; }
.gantt-crew-badge { position: sticky; left: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 7px 12px; background: #f4f6f8; border-right: 1px solid var(--line); color: var(--brand-burgundy); }
.gantt-crew-badge .crew-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; flex: none; }
.gantt-crew-title { font-size: 14px; font-weight: 700; letter-spacing: -0.02em; color: var(--brand-burgundy); line-height: 1.2; }
.gantt-crew-line { position: relative; min-height: 38px; border-left: 1px solid var(--line-dark); }

/* Banner de saldo de férias */
.vacation-balance-banner { display: flex; align-items: center; gap: 16px; padding: 14px 18px; margin: 12px 18px 0; background: #f8f8f8; border: 1px solid var(--line); border-radius: 0; }
.balance-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--brand-burgundy); color: #fff; padding: 8px 16px; border-radius: 0; min-width: 95px; flex-shrink: 0; }
.balance-number { font-size: 22px; font-weight: 700; line-height: 1; }
.balance-label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.9; margin-top: 4px; }
.balance-info strong { display: block; font-size: 13px; color: var(--brand-burgundy); }
.balance-info p { margin: 4px 0 0; font-size: 12px; color: var(--muted); line-height: 1.4; }

.input-readonly { background-color: #f8fafc !important; color: var(--brand-burgundy) !important; font-weight: 700 !important; cursor: default; }
.field-hint { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); transition: color 0.15s ease; }
.vacation-planner #vacation-form { border-top: 1px solid var(--line); }
.vacation-planner #vacation-form > .section-bar { margin-top: 14px; }
.vacation-planner .form-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.vacation-planner .field-checkbox { grid-column: span 2; justify-content: center; }
.vacation-planner .empty-state { grid-column: 1 / -1; }

/* Período interativo do Gantt */
.gantt-period[role="button"] { cursor: pointer; transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease; }
.gantt-period[role="button"]:hover { transform: translateY(-1px); filter: brightness(1.05); z-index: 4; }

/* Card flutuante (tooltip) de férias no Gantt */
.gantt-vacation-tooltip {
  position: fixed;
  z-index: 9999;
  width: 295px;
  max-width: calc(100vw - 24px);
  background: #ffffff;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  box-shadow: 0 8px 20px -6px rgba(31, 29, 29, 0.18);
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  font-family: inherit;
}

.gantt-vacation-tooltip.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.gantt-vacation-tooltip .tooltip-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}

.gantt-vacation-tooltip .tooltip-header .crew-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}

.gantt-vacation-tooltip .tooltip-user-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-burgundy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.gantt-vacation-tooltip .tooltip-crew-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  background: #efeeee;
  padding: 2px 6px;
  border-radius: 0;
  white-space: nowrap;
  flex: none;
}

.gantt-vacation-tooltip .tooltip-close-btn {
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0 4px;
  margin-left: 2px;
  border-radius: 0;
}

.gantt-vacation-tooltip .tooltip-close-btn:hover {
  background: #efeeee;
  color: var(--brand-burgundy);
}

.gantt-vacation-tooltip .tooltip-body {
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--ink);
}

.gantt-vacation-tooltip .tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gantt-vacation-tooltip .tooltip-label {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.gantt-vacation-tooltip .tooltip-val {
  color: var(--brand-burgundy);
  font-size: 12px;
  text-align: right;
}

.gantt-vacation-tooltip .tooltip-abono-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: #fbf5f2;
  border: 1px solid #e2c7c0;
  padding: 4px 8px;
  border-radius: 0;
  font-size: 11px;
  color: #713426;
  margin: 1px 0;
}

.gantt-vacation-tooltip .tooltip-badge-abono {
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.gantt-vacation-tooltip .tooltip-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: var(--canvas);
  border-top: 1px solid var(--line);
}

.gantt-vacation-tooltip .tooltip-action-prompt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.gantt-vacation-tooltip .tooltip-action-btn {
  font-size: 11px;
  padding: 4px 10px;
  white-space: nowrap;
}

/* Seção de detalhes e listagem de férias */
.vacations-list-section { border-top: 1px solid var(--line); margin-top: 20px; padding: 18px; }
.vacations-list-section > .section-bar { padding: 0 0 12px; }
.vac-tag-abono { font-size: 9px; font-weight: 700; color: #713426; background: #fbf5f2; border: 1px solid #e2c7c0; padding: 2px 6px; border-radius: 0; margin-left: 6px; white-space: nowrap; }
.vac-actions-cell { white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.status-readonly { font-size: 11px; color: var(--muted); font-style: italic; }

.modal-actions-split { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 12px; margin-top: 18px; }
.modal-actions-split .actions-right { display: flex; align-items: center; gap: 8px; }

.button-danger { background: #dc2626; border: 1px solid #dc2626; color: #ffffff; }
.button-danger:hover { background: #b91c1c; border-color: #b91c1c; color: #ffffff; }

.vacation-details-view { display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--ink); padding: 4px 0; }
.vacation-details-view p { margin: 0; padding-bottom: 8px; border-bottom: 1px solid #edf0f2; }
.crew-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; padding: 12px 0; color: #55616a; }
.crew-card { display: grid; align-content: start; gap: 6px; min-width: 0; }
.crew-legend .crew-label { margin: 0; font-size: 12px; }
.crew-members { padding-left: 11px; color: #172635; font-size: 11px; line-height: 1.45; }
.crew-support { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 0; border-top: 1px solid var(--line); color: #3e4b55; font-size: 12px; line-height: 1.5; }
.profile-legal-name { display: block; margin-top: 3px; color: #66727d; font-size: 11px; }
.panel-section { background: white; border-bottom: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: span 2; }
.field label { font-size: 11px; color: #47545e; font-weight: 700; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 0 18px 18px; }
.data-table { border-collapse: collapse; width: 100%; background: #fff; }
.data-table th, .data-table td { text-align: left; border-bottom: 1px solid var(--line); padding: 11px 13px; font-size: 12px; }
.data-table th { background: #edf0f0; color: #4c5963; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.data-table tbody tr.admin-user-row.is-clickable-row { cursor: pointer; transition: background-color .12s ease; }
.data-table tbody tr.admin-user-row.is-clickable-row:hover { background-color: #f3f6f9; }
.data-table tbody tr.admin-user-row.is-clickable-row:focus-visible { outline: 2px solid var(--brand-burgundy); outline-offset: -2px; }
.pill { display: inline-block; padding: 4px 7px; font-size: 10px; font-weight: 700; border: 1px solid var(--line-dark); color: #4e5b63; white-space: nowrap; }
.pill.approved { border-color: #94bba1; background: var(--green); color: var(--green-ink); }
.pill.pending { border-color: #d8bd6a; background: #faf4df; color: #765c18; }
.pill.rejected { border-color: #d5a4a7; background: #f9eded; color: var(--danger); }
.pill.is-immutable { border-color: #71808b; background: #eef1f3; color: #2d3840; }
.pill.preliminary { border-color: #8c7db6; background: #f3f0f9; color: #533e7b; }

.consult-form-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.consult-card { background: #fafbfc; border: 1px solid var(--line); padding: 14px 16px; margin-top: 10px; }
.consult-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.consult-date-title { font-size: 15px; margin: 0 0 3px; color: var(--brand-burgundy); text-transform: capitalize; }
.consult-tagline { font-size: 11px; color: var(--muted); }
.consult-note { font-size: 12px; line-height: 1.5; padding: 8px 10px; margin: 8px 0 12px; border-left: 3px solid #71808b; background: #f3f5f6; color: #3b4751; }
.consult-note.immutable-note { border-left-color: var(--brand-burgundy); background: #eef2f5; color: var(--brand-burgundy); }
.consult-note.preliminary-note { border-left-color: #7352a0; background: #f6f3fb; color: #432a68; }
.consult-shifts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.consult-shift-box { background: #fff; border: 1px solid var(--line); padding: 11px 13px; }
.consult-shift-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 12px; color: var(--brand-burgundy); }
.consult-shift-members { font-size: 13px; color: var(--ink); line-height: 1.5; font-weight: 500; }
.consult-actions { display: flex; justify-content: flex-end; padding-top: 6px; }
.checkbox-option { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--brand-burgundy); cursor: pointer; user-select: none; }
.checkbox-option input { min-height: auto; accent-color: var(--red); }

.inline-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.modal-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 18px; background: #101e2dbb; }
.dialog { width: min(620px, 100%); max-height: min(90vh, 860px); overflow: auto; background: #fff; border-top: 3px solid var(--red); box-shadow: 0 16px 50px #07111d44; }
.dialog-header { padding: 19px 22px 15px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 18px; margin: 0; color: var(--brand-burgundy); }
.dialog-header p { font-size: 12px; color: var(--muted); margin: 5px 0 0; }
.icon-button { border: 0; background: transparent; color: #69757e; min-width: 34px; min-height: 34px; font-size: 21px; }
.dialog-body { padding: 18px 22px; }
.dialog-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); padding: 13px 22px; }
.member-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 10px; border-top: 1px solid var(--line); }
.member-option { display: flex; align-items: center; gap: 9px; min-height: 42px; border-bottom: 1px solid var(--line); font-size: 12px; }
.member-option input { min-height: auto; accent-color: var(--red); }
.gst-picker-details { margin: 16px 0 12px; border: 1px solid var(--line); background: #fbfcfc; }
.gst-picker-summary { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #edf0f2; cursor: pointer; user-select: none; font-weight: 700; font-size: 12px; color: var(--brand-burgundy); list-style: none; }
.gst-picker-summary::-webkit-details-marker { display: none; }
.gst-picker-summary:hover { background: #e2e6ea; }
.gst-summary-title { display: inline-flex; align-items: center; gap: 8px; }
.gst-summary-count { font-size: 11px; font-weight: 700; color: #4a6572; background: #e0e6ea; padding: 2px 7px; border-radius: 10px; }
.gst-summary-chevron { font-size: 12px; color: #73808a; transition: transform 0.2s ease; }
.gst-picker-details[open] .gst-summary-chevron { transform: rotate(180deg); }
.gst-member-picker { padding: 0 10px; border-top: 1px solid var(--line); background: #fff; }
.shift-reason-field {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.shift-reason-field .field-label {
  display: block;
  margin: 0;
  color: var(--brand-burgundy);
  font-size: 13px;
  font-weight: 700;
}
.shift-reason-field textarea {
  display: block;
  width: min(100%, 720px);
  min-height: 96px;
  resize: vertical;
}
.password-display { background: var(--canvas); border: 1px solid var(--line); padding: 12px; font-family: "AMX", Arial, sans-serif; overflow-wrap: anywhere; font-size: 14px; }
.loading { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--canvas); color: var(--brand-burgundy); font-family: "AMX", Arial, sans-serif; font-size: 14px; font-weight: 500; }
.loading-visual { display: block; width: 80px; height: 80px; }
.loading-orbital-system { --loading-globe-size: 28px; --loading-satellite-size: 22px; position: relative; display: block; width: 100%; height: 100%; color: var(--red); }
.loading-globe-icon, .loading-satellite-icon { position: absolute; display: block; text-align: center; }
.loading-globe-icon { top: 50%; left: 50%; width: var(--loading-globe-size); height: var(--loading-globe-size); font-size: var(--loading-globe-size); line-height: 1; transform: translate(-50%, -50%); }
.loading-satellite-orbit { position: absolute; inset: 0; animation: loading-satellite-orbit 2.4s linear infinite; }
/* The original antenna points southeast; at the top of the orbit, +45deg
   points it down toward the globe. Its parent carries both position and attitude. */
.loading-satellite-icon { top: 0; left: 50%; width: var(--loading-satellite-size); height: var(--loading-satellite-size); font-size: var(--loading-satellite-size); line-height: 1; transform: translateX(-50%) rotate(45deg); }
.loading-orbital-system .loading-globe-icon::before, .loading-orbital-system .loading-satellite-icon::before { font-size: inherit; }
@keyframes loading-satellite-orbit { to { transform: rotate(360deg); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
  .login-shell { background: var(--canvas); padding: 28px 15px 76px; }
  .login-panel { padding: 0 23px 26px; }
  .login-panel > .brand { width: calc(100% + 46px); min-height: 98px; margin: 0 -23px 27px; }
  .login-panel > .brand .brand-logo { width: 138px; }
  .login-footer { bottom: 16px; left: 12px; right: 12px; }
  .brand { margin-bottom: 30px; }
  .topbar { height: auto; min-height: 58px; padding: 9px 14px; }
  .topbar .brand-logo { width: 108px; }
  .account-tools { gap: 6px; }
  .role-switch span, .account-tools .pill { display: none; }
  .role-switch select { max-width: 112px; }
  .role-switch select, .button-small, .month-tools input, .month-tools select { min-height: 44px; }
  .log-trigger { min-width: 44px; min-height: 44px; }
  .user-name { max-width: 135px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .account-tools .button { padding-inline: 8px; }
  .shell-main { padding: 23px 13px 44px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 18px; }
  .page-heading h1 { font-size: 26px; }
  .month-tools { width: 100%; }
  .tab-button { min-height: 44px; }
  .month-tools select { flex: 1; }
  .section-bar { align-items: flex-start; flex-direction: column; }
  .schedule-reminder { align-items: flex-start; flex-direction: column; }
  .vacation-planner .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vacation-planner .section-bar { padding: 10px 12px; gap: 8px; flex-direction: column; align-items: flex-start; }
  .gantt-legend-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; justify-content: space-between; }
.gantt-scroll-hint { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; color: var(--muted); background: var(--canvas); padding: 2px 7px; border-radius: 0; border: 1px solid var(--line); }
  .gantt-scroll { border-radius: 0; border: 1px solid var(--line); -webkit-overflow-scrolling: touch; scrollbar-width: thin; scroll-behavior: smooth; }
  .gantt-chart { min-width: 1050px; padding: 8px 6px 14px; }
  .gantt-axis, .gantt-row { grid-template-columns: 115px minmax(0, 1fr); column-gap: 6px; }
  .gantt-axis { min-height: 48px; }
  .gantt-axis > strong { font-size: 10px; padding: 4px 5px; border-right: 1px solid var(--line-dark); background: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gantt-timeline-header { border-left: 1px solid var(--line-dark); }
  .gantt-years { min-height: 22px; }
  .gantt-year-block { padding: 2px 4px; }
  .gantt-year-label { font-size: 10px; padding: 0 8px; }
  .gantt-months { min-height: 22px; }
  .gantt-months span { font-size: 9px; padding: 3px 0; }
  .gantt-row { min-height: 44px; }
  .gantt-person { display: grid; grid-template-columns: 8px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 5px; row-gap: 2px; align-items: center; padding: 4px 5px 4px 2px; border-right: 1px solid var(--line-dark); background: #fff; }
  .gantt-person .gantt-swatch { grid-column: 1; grid-row: 1; width: 8px; height: 8px; }
  .gantt-person .gantt-person-name { grid-column: 2; grid-row: 1; font-size: 11px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gantt-person .gantt-pa-tag { grid-column: 2; grid-row: 2; font-size: 8.5px; font-weight: 700; padding: 1px 3px; border-radius: 0; line-height: 1.15; justify-self: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .gantt-person .gantt-admission-tag { display: none; }
  .gantt-crew-separator { grid-template-columns: 115px minmax(0, 1fr); column-gap: 6px; min-height: 32px; }
  .gantt-crew-badge { padding: 4px 5px; gap: 5px; border-right: 1px solid var(--line-dark); background: var(--canvas); }
  .gantt-crew-badge .crew-dot { width: 8px; height: 8px; }
  .gantt-crew-title { font-size: 10.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gantt-track { min-height: 44px; }
  .gantt-period { top: 9px; height: 26px; border-radius: 0; }
  .gantt-period::after { font-size: 8.5px; line-height: 22px; inset: 2px 3px 2px 5px; }
  .vacation-balance-banner { margin: 10px 6px 0; padding: 10px 12px; gap: 12px; }
  .balance-badge { padding: 6px 12px; min-width: 80px; }
  .balance-number { font-size: 18px; }
  .vacations-list-section { padding: 12px 6px; }
  .schedule-table, .schedule-table tbody, .schedule-table tr, .schedule-table td { display: block; width: 100%; }
  .schedule-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .schedule-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 7px solid var(--canvas); }
  .schedule-table tbody tr.is-today { border: 2px solid var(--red); }
  .schedule-table tbody tr:not(.holiday-caption-row) > .date-cell {
    display: flex;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    border-bottom: 0;
    padding: 7px 10px;
  }
  .schedule-table td.shift-cell { width: 100%; min-width: 0; min-height: 78px; box-sizing: border-box; padding: 8px 9px 9px; border-top: 1px solid #e7eaeb; }
  .schedule-table td.shift-cell::before { display: block; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: #6c7780; font-weight: 700; margin-bottom: 5px; }
  .schedule-table td.shift-cell[data-shift="day"]::before { content: "Diurno · 08h–20h"; }
  .schedule-table td.shift-cell[data-shift="night"]::before { content: "Noturno · 20h–08h"; }
  .shift-content { width: 100%; align-items: flex-start; flex-direction: column; gap: 4px; }
  .shift-assignment { min-width: 0; }
  .shift-cell .member-list { font-size: clamp(12px, 3.4vw, 13px); line-height: 1.45; overflow-wrap: anywhere; }
  .shift-cell .crew-label { font-size: 9px; }
  .shift-history-corner-btn { top: 6px; right: 7px; width: 22px; height: 22px; opacity: 0.5; }
  .log-trigger { align-self: flex-end; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 13px; gap: 11px; }
  .form-actions { padding: 0 13px 14px; }
  .data-table { min-width: 660px; }
  .member-picker { grid-template-columns: 1fr; }
  .dialog-header, .dialog-body { padding-inline: 16px; }
  .dialog-footer { padding-inline: 16px; }
}

/* Modal de histórico do dia e data clicável */
.clickable-date {
  cursor: pointer;
  transition: background-color 0.15s ease;
  user-select: none;
}
.clickable-date:hover {
  background-color: #f0f3f6 !important;
}
.clickable-date:focus-visible {
  outline: 2px solid var(--brand-burgundy);
  outline-offset: -2px;
}

.history-current-status {
  background: #f7f9fa;
  border: 1px solid var(--line);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.history-current-status h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 10px;
}
.history-current-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .history-current-grid {
    grid-template-columns: 1fr;
  }
}
.history-current-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 12px;
}
.history-current-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--brand-burgundy);
  margin-bottom: 6px;
}
.history-current-members {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
}
.history-section-title {
  margin: 18px 0 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}
.history-section-title h3 {
  font-size: 13px;
  color: var(--brand-burgundy);
  margin: 0;
}
.history-empty {
  padding: 24px 16px;
  text-align: center;
  background: #fafbfc;
  border: 1px dashed var(--line);
}
.history-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}
.history-entry {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--brand-burgundy);
  padding: 12px 14px;
}
.history-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #edf0f2;
  padding-bottom: 6px;
}
.history-shift-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.history-shift-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-burgundy);
}
.history-time {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.history-meta {
  font-size: 12px;
  color: #3b4751;
  margin-bottom: 8px;
  line-height: 1.5;
}
.history-actor {
  font-weight: 700;
  color: var(--brand-burgundy);
}
.history-action-pill {
  font-weight: 700;
  color: var(--ink);
}
.history-reason-box {
  background: #f7f9fa;
  border-left: 2px solid #8ca0b3;
  padding: 7px 10px;
  margin-bottom: 8px;
  font-size: 11px;
  line-height: 1.45;
}
.history-reason-box strong {
  display: block;
  color: #4b5864;
  margin-bottom: 2px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.history-reason-box p {
  margin: 0;
  color: var(--ink);
}
.history-changes-box {
  background: #fff;
  border: 1px solid #e5e9ec;
  padding: 8px 10px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.history-changes-box strong {
  color: #4b5864;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.history-diff {
  display: flex;
  align-items: center;
  gap: 8px;
}
.diff-tag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  white-space: nowrap;
}
.diff-tag.out {
  background: #faeeee;
  color: var(--danger);
  border: 1px solid #eecaca;
}
.diff-tag.in {
  background: var(--green);
  color: var(--green-ink);
  border: 1px solid #b7dcbe;
}
.diff-tag.team {
  background: #edf1f5;
  color: var(--brand-burgundy);
  border: 1px solid #c7d2dc;
}

/* Banner superior de aviso */
.top-announcement-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #0d2137;
  color: #f1f5f9;
  padding: 10px clamp(20px, 4vw, 56px);
  border-bottom: 2px solid var(--red);
  font-size: 13px;
  position: relative;
  z-index: 25;
}
.top-announcement-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.announcement-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 2px;
}
.announcement-text {
  color: #e2e8f0;
  line-height: 1.4;
}
.announcement-text strong {
  color: #ffffff;
}
.banner-action-button {
  min-height: 28px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  background: #ffffff;
  color: var(--brand-burgundy);
  border: 1px solid #ffffff;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s ease;
}
.banner-action-button:hover {
  background: #e2e8f0;
  border-color: #e2e8f0;
}
.banner-close-button {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 22px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 2px;
  transition: color 0.15s ease, background 0.15s ease;
}
.banner-close-button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

/* Espaço de trabalho da escala */
.topbar {
  min-height: 82px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #ffffff;
  border-bottom: 1px solid #d8dee3;
  box-shadow: 0 1px 3px rgba(18, 45, 72, 0.04);
  padding: 0 clamp(20px, 4vw, 56px);
}
.topbar .brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  flex: none;
  min-height: 60px;
  padding: 6px 0;
}
.topbar .brand-logo {
  width: 132px;
  height: auto;
  display: block;
  flex: none;
}
.brand-divider {
  width: 1.5px;
  height: 44px;
  background: #d4dce2;
  flex: none;
}
.brand-context {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  color: var(--brand-burgundy);
  line-height: 1.15;
}
.brand-context strong {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--brand-burgundy);
}
.brand-context small {
  color: #5c6975;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.account-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
}
.role-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f6f8fa;
  border: 1px solid #d3dade;
  padding: 4px 8px 4px 10px;
  border-radius: 4px;
}
.role-switch span {
  color: #53626e;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.role-switch select {
  min-height: 32px;
  border: 1px solid #c2cbd1;
  background-color: #fff;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-burgundy);
  padding: 4px 26px 4px 9px;
}
.account-identity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.account-identity .user-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-burgundy);
  letter-spacing: 0.01em;
}
.account-identity .pill {
  border-color: #c4ced4;
  background: #eef2f5;
  color: #384652;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 3px;
}
.account-tools .button-quiet {
  min-height: 32px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #53626e;
  border: 1px solid #d3dade;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.account-tools .button-quiet:hover {
  background: #faecec;
  color: var(--danger);
  border-color: #f2bcbf;
}
.shell-main { padding-top: 36px; }
.page-heading { align-items: center; margin-bottom: 26px; }
.page-title-group h1 { margin: 0 0 7px; font-size: 29px; letter-spacing: -.025em; }
.page-title-group p { max-width: 60ch; line-height: 1.5; }
/* Ferramentas do mês e barra de navegação do período */
.month-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px 5px 12px;
  border: 1px solid #d8dee4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.month-tools-label {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-right: 4px;
  user-select: none;
}

/* Grupo unificado de navegação: [ < ] [ Mês v ] | [ 2026 ] [ > ] */
.month-nav-group {
  display: inline-flex;
  align-items: center;
  height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  box-sizing: border-box;
  overflow: hidden;
}

.month-nav-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 34px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--brand-burgundy);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.month-nav-btn:hover {
  background-color: #e2e8f0;
  color: #1F1D1D;
}

.month-nav-btn:active {
  background-color: #cbd5e1;
}

.month-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 34px;
}

.month-select-field {
  height: 34px;
  border: none;
  background: transparent;
  padding: 0 24px 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-burgundy);
  text-transform: capitalize;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
}

.month-select-field:focus-visible {
  background-color: #f1f5f9;
}

.month-select-chevron {
  position: absolute;
  right: 8px;
  pointer-events: none;
  display: grid;
  place-items: center;
  color: #64748b;
}

.month-year-separator {
  width: 1px;
  height: 20px;
  background: #cbd5e1;
  flex-shrink: 0;
}

.month-year-wrap {
  display: flex;
  align-items: center;
  height: 34px;
}

.year-input-field {
  height: 34px;
  width: 58px;
  border: none;
  background: transparent;
  padding: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-burgundy);
  font-variant-numeric: tabular-nums;
  outline: none;
  -moz-appearance: textfield;
}

.year-input-field::-webkit-outer-spin-button,
.year-input-field::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.year-input-field:focus-visible {
  background-color: #f1f5f9;
}

.month-tools-divider {
  width: 1px;
  height: 24px;
  background: #e2e8f0;
  margin: 0 2px;
}

/* Botão de consultar dia */
.consult-day-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: var(--brand-burgundy);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.consult-day-action i {
  flex-shrink: 0;
  color: var(--red);
  transition: color 0.15s ease;
}

.consult-day-action:hover {
  background-color: #f8fafc;
  border-color: var(--brand-burgundy);
  color: #1F1D1D;
}

.consult-day-action:hover i {
  color: var(--brand-burgundy);
}

.consult-day-action:active {
  background-color: #f1f5f9;
}
.view-tabs { margin-bottom: 22px; }
.tab-button { min-height: 44px; padding-inline: 17px; }
.schedule-section { background: #fff; }
.section-bar { min-height: 62px; padding: 12px 17px; border-top: 2px solid var(--brand-burgundy); }
.schedule-month-title { display: inline-flex; align-items: center; gap: 11px; }
.schedule-month-title h2 { font-size: 17px; letter-spacing: -.01em; text-transform: capitalize; }
.month-marker { width: 4px; height: 27px; background: var(--red); }
.status-line { min-height: 34px; padding: 0 10px; border: 1px solid #d9dfe2; background: #f6f8f8; color: #3e4b55; font-size: 11px; font-weight: 700; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.table-wrap { border-bottom: 1px solid #cbd1d4; }
.schedule-table th { height: 48px; padding: 9px 15px; border-color: #2B0302; background: var(--brand-burgundy); color: #fff; font-size: 10px; letter-spacing: .07em; }
.schedule-table th:first-child { width: 112px; background: var(--canvas); border-color: var(--line); color: var(--ink); }
.table-shift-heading { display: inline-flex; align-items: center; gap: 9px; }
.table-shift-heading > i { color: #fc867f; font-size: 16px; }
.table-shift-heading small { margin-left: 2px; color: #fff; font-size: 10px; font-weight: 400; letter-spacing: .02em; opacity: .88; }
.schedule-table td { padding: 5px 9px; }
.schedule-table tbody tr:nth-child(even):not(.is-today) { background: #f8f9f9; }
.schedule-table .date-cell { width: 112px; }
.date-primary { gap: 7px; }
.day-number { min-width: 24px; font-size: 15px; font-variant-numeric: tabular-nums; }
.weekday { font-size: 9px; }
.shift-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 7px 10px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  text-align: left;
  transition: background-color .16s ease, border-color .16s ease;
}
.shift-open:hover { border-color: #d9e0e4; background: #f1f4f6; }
.shift-open:focus-visible { position: relative; z-index: 1; outline-offset: 1px; }
.shift-open-content { display: grid; min-width: 0; gap: 4px; }
.shift-open-heading { display: flex; align-items: center; gap: 8px; }
.shift-open-heading .crew-label { margin: 0; font-size: 10px; }
.shift-open .member-list { font-size: 12px; line-height: 1.4; }
.shift-open-icon { width: 17px; height: 17px; flex: none; fill: none; stroke: #56616a; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .42; transition: transform .16s ease, opacity .16s ease; }
.shift-open:hover .shift-open-icon, .shift-open:focus-visible .shift-open-icon { opacity: 1; transform: translateX(2px); }
.is-today .shift-open { background: #f5f7f8; }
.is-today .shift-open:hover { background: #edf1f3; }
.crew-legend { gap: 20px 24px; padding: 18px 17px 12px; }
.crew-card { gap: 7px; }
.crew-members { padding-left: 11px; color: #273744; line-height: 1.55; }

/* Editor de turnos integrado com histórico de auditoria */
.schedule-dialog { display: flex; flex-direction: column; width: min(1050px, 100%); max-height: min(88vh, 900px); overflow: hidden; }
.schedule-dialog .dialog-header { padding: 20px 25px 17px; }
.schedule-dialog .dialog-header h2 { font-size: 20px; }
.schedule-dialog .dialog-header p { color: #4d5a65; text-transform: capitalize; }
.schedule-dialog-body { min-height: 0; flex: 1 1 auto; overflow-y: auto; padding: 22px 25px; }
.schedule-dialog .dialog-footer { flex: none; }
.schedule-dialog-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(290px, .92fr); gap: 30px; align-items: start; }
.shift-editor-panel h3, .shift-history-panel h3 { margin: 0 0 5px; color: var(--brand-burgundy); font-size: 14px; }
.shift-editor-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.shift-editor-title p { margin: 0; color: #4d5a65; font-size: 11px; line-height: 1.45; }
.selection-count, .history-count { flex: none; padding: 4px 7px; border: 1px solid #cbd3d8; background: #f4f6f7; color: #354754; font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.schedule-dialog .member-picker { margin-top: 13px; }
.schedule-dialog .member-option { min-height: 40px; padding: 4px 7px; }
.schedule-dialog .member-option:hover { background: #f5f7f8; }
.schedule-dialog .gst-picker-details { margin-top: 14px; }
.schedule-dialog .field-label { display: block; margin: 16px 0 7px; }
.schedule-dialog textarea { width: 100%; min-height: 82px; }
.shift-history-panel { min-width: 0; padding-left: 23px; border-left: 1px solid var(--line); }
.shift-history-list { max-height: 56vh; overflow: auto; margin-top: 9px; padding-right: 7px; scrollbar-color: #9aa8b1 #edf0f2; scrollbar-width: thin; }
.shift-history-entry { padding: 13px 0 14px; border-bottom: 1px solid var(--line); }
.shift-history-meta { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 5px 12px; color: var(--brand-burgundy); font-size: 11px; }
.shift-history-meta time { color: #4d5a65; font-size: 10px; font-variant-numeric: tabular-nums; }
.shift-history-action { margin: 5px 0 3px; color: #354754; font-size: 11px; font-weight: 700; }
.shift-history-reason { margin: 4px 0 8px; color: #4d5a65; font-size: 11px; line-height: 1.5; }
.shift-history-delta { display: flex; flex-wrap: wrap; gap: 5px; }
.change-chip { display: inline-block; padding: 3px 6px; border: 1px solid #cbd3d8; background: #f4f6f7; color: #334451; font-size: 10px; }
.change-chip.is-added { border-color: #a4c9ae; background: #edf6ef; color: #255e38; }
.change-chip.is-removed { border-color: #dfb0b4; background: #fbefef; color: #8a2e35; }
.shift-history-result { display: grid; gap: 3px; margin: 8px 0 0; color: #4d5a65; font-size: 10px; }
.shift-history-result strong { color: #253644; font-size: 11px; font-weight: 700; }
.shift-history-empty { display: grid; gap: 5px; margin-top: 13px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; }
.shift-history-empty strong { color: var(--brand-burgundy); font-size: 12px; }
.shift-history-empty span { color: #4d5a65; font-size: 11px; line-height: 1.5; }
.shift-readonly-panel { display: grid; gap: 7px; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.shift-readonly-panel strong { color: var(--brand-burgundy); font-size: 14px; }
.shift-readonly-panel p { margin: 0; color: #4d5a65; font-size: 12px; line-height: 1.5; }
.shift-readonly-members { color: #253644; font-size: 13px; font-weight: 700; line-height: 1.5; }

/* Cabeçalho operacional no padrão Claro e distinção de turnos */
.topbar {
  min-height: 86px;
  border-top: 0;
  border-bottom: 1px solid #2b0302;
  background: var(--brand-burgundy);
  box-shadow: 0 1px 4px rgba(31, 29, 29, 0.11);
}
.topbar .brand { gap: 16px; margin-bottom: 0; }
.topbar .brand-logo { width: 122px; }
.brand-divider { background: #fc867f; opacity: .65; }
.brand-context, .brand-context strong { color: #fff; }
.brand-context small { color: #f2d8d5; }
.account-tools { background: transparent; }
.role-switch {
  border-color: #7a433d;
  background: #2b0302;
}
.role-switch span { color: #f2d8d5; }
.role-switch select {
  border-color: #c8948d;
  background: #fff;
  color: var(--brand-burgundy);
}
.account-identity .user-name { color: #fff; }
.account-identity .pill {
  border-color: #7a433d;
  background: #2b0302;
  color: #fff;
}
.account-tools .button-quiet {
  border-color: #a6635b;
  background: transparent;
  color: #fff;
}
.account-tools .button-quiet:hover {
  border-color: #fc867f;
  background: #880000;
  color: #fff;
}

.schedule-table th:nth-child(2) {
  border-color: #880000;
  background: #880000;
}
.schedule-table td[data-shift] { background-color: transparent; }
.schedule-table tbody tr.is-today td[data-shift],
.schedule-table tbody tr.is-today:hover td[data-shift] { background-color: transparent; }
.schedule-table td[data-shift="day"]::before { color: #880000; }

.consult-holiday-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 5px 10px;
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid #e2c7c0;
  border-radius: 0;
  background: #fbf5f2;
}
.consult-holiday-type {
  grid-row: span 2;
  padding: 4px 6px;
  border: 1px solid #d5b5ac;
  background: #f3e4df;
  color: #713426;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.3;
  text-transform: uppercase;
}
.consult-holiday-alert.is-estadual { border-color: #e6d4b8; background: #fcf8f0; }
.consult-holiday-alert.is-estadual .consult-holiday-type { border-color: #ddc69e; background: #f5ecd9; color: #70480e; }
.consult-holiday-alert.is-municipal { border-color: #e2c7c0; background: #fbf5f2; }
.consult-holiday-alert.is-municipal .consult-holiday-type { border-color: #d5b5ac; background: #f3e4df; color: #713426; }
.consult-holiday-alert strong { align-self: center; color: #40241e; font-size: 13px; line-height: 1.4; }
.consult-holiday-alert.is-estadual strong { color: #493719; }
.consult-holiday-alert.is-municipal strong { color: #40241e; }
.consult-holiday-desc {
  grid-column: 2;
  margin: 0;
  color: #5b4b46;
  font-size: 11px;
  line-height: 1.5;
}
@media (max-width: 760px) {
  .topbar { min-height: 70px; border-top-width: 0; }
  .account-tools { background: transparent; }
  .schedule-table th:nth-child(2) { border-color: #a84b10; }
  .consult-holiday-alert { grid-template-columns: minmax(0, 1fr); }
  .consult-holiday-type, .consult-holiday-desc { grid-column: 1; grid-row: auto; }
  .consult-holiday-type { justify-self: start; }
}

@media (max-width: 760px) {
  .topbar { min-height: 70px; padding: 10px 14px; gap: 10px; flex-wrap: wrap; }
  .topbar .brand { min-height: 52px; gap: 12px; }
  .brand-divider { height: 34px; }
  .brand-context strong { font-size: 16px; }
  .brand-context small { font-size: 10px; }
  .account-tools { flex: 1 1 100%; min-width: 0; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
  .account-identity { gap: 6px; }
  .account-identity .pill { display: none; }
  .user-name { max-width: 140px; font-size: 12px; }
  .role-switch select { width: 120px; max-width: 120px; }
  .shell-main { padding-top: 24px; }
  .page-heading { gap: 13px; }
  .page-title-group h1 { font-size: 25px; }
  .month-tools { width: 100%; justify-content: space-between; flex-wrap: wrap; padding: 6px; gap: 8px; }
  .month-tools-label, .month-tools-divider { display: none; }
  .month-nav-group { flex: 1; min-width: 200px; justify-content: space-between; }
  .consult-day-action { flex: 1 0 auto; justify-content: center; }
  .section-bar { min-height: auto; align-items: flex-start; gap: 10px; padding: 12px; }
  .section-tools { width: 100%; justify-content: space-between; }
  .schedule-table th:first-child { width: 100%; }
  .schedule-table td.shift-cell { padding: 6px; }
  .shift-open { min-height: 54px; gap: 5px; padding: 6px; }
  .shift-open-heading { flex-wrap: wrap; gap: 4px; }
  .shift-open .member-list { font-size: 11px; overflow-wrap: anywhere; }
  .shift-open-icon { width: 14px; height: 14px; }
  .crew-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; padding: 15px 12px 10px; }
  .crew-support { padding-inline: 12px; }
  .schedule-dialog { height: min(92vh, 900px); max-height: 92vh; }
  .schedule-dialog .dialog-header { padding: 16px; }
  .schedule-dialog-body { padding: 16px; }
  .schedule-dialog-grid { display: flex; flex-direction: column; gap: 21px; }
  .shift-history-panel { order: -1; width: 100%; padding: 0 0 16px; border-left: 0; border-bottom: 1px solid var(--line); }
  .shift-history-list { max-height: 25vh; }
  .schedule-dialog .member-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 390px) {
  .topbar { padding-inline: 10px; }
  .account-tools { justify-content: space-between; }
  .role-switch select { width: 128px; max-width: 128px; }
  .user-name { max-width: 118px; }
  .month-tools { gap: 6px; }
  .month-nav-group { width: 100%; }
  .consult-day-action { width: 100%; }
}

.schedule-settings { display: grid; gap: 16px; }
.settings-card { min-width: 0; padding: 20px; border: 1px solid #d5dce0; background: #fff; }
.settings-card h2 { margin: 2px 0 7px; color: var(--brand-burgundy); font-size: 17px; line-height: 1.25; }
.settings-card > p:not(.settings-kicker) { max-width: 760px; margin: 0 0 15px; color: #5b6871; font-size: 12px; line-height: 1.55; }
.settings-kicker { margin: 0; color: #64717a; font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.settings-swap-card { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.settings-swap-card > div { max-width: 740px; }
.settings-swap-card > .button { flex: none; }
.settings-individual-block { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.settings-individual-block h3 { margin: 0 0 6px; color: var(--brand-burgundy); font-size: 14px; }
.settings-individual-block > p { margin: 0 0 14px; color: #5b6871; font-size: 12px; line-height: 1.5; }
.settings-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.settings-form { display: grid; gap: 12px; }
.settings-form .field { min-width: 0; }
.settings-form select, .settings-form input, .settings-form textarea { width: 100%; }
.settings-form textarea { min-height: 76px; resize: vertical; }
.settings-form > .button { justify-self: start; }
.settings-global-block { margin-top: 16px; }
.settings-block-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.settings-block-dates[hidden] { display: none; }
@media (max-width: 400px) { .settings-block-dates { grid-template-columns: minmax(0, 1fr); } }
.settings-block-list { display: grid; gap: 0; margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.settings-block-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.settings-block-row > div { display: grid; gap: 3px; min-width: 0; }
.settings-block-row strong { color: var(--brand-burgundy); font-size: 12px; }
.settings-block-row span, .settings-empty-note { color: #65717a; font-size: 11px; line-height: 1.45; }
.settings-empty-note { margin: 12px 0 0; }
.settings-schedules { padding-bottom: 12px; }
.settings-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.settings-lock-label { display: inline-block; padding: 5px 8px; border: 1px solid #d8c7b2; background: #fbf5ed; color: #75501c; font-size: 10px; font-weight: 700; line-height: 1.4; }
.settings-schedules .data-table { min-width: 620px; }
.settings-schedules .data-table td small { display: block; margin-top: 3px; color: #66727a; font-size: 10px; }
.settings-row-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.settings-row-actions .button:disabled { opacity: .45; cursor: not-allowed; }
#schedule-settings-message .notice { margin-top: 2px; }
@media (max-width: 760px) {
  .settings-columns { grid-template-columns: 1fr; }
  .settings-card { padding: 15px; }
  .settings-swap-card, .settings-section-heading { align-items: flex-start; flex-direction: column; }
  .settings-block-row { align-items: flex-start; }
  .settings-row-actions { flex-direction: column; }
}

.shift-cell.is-loading { cursor: wait; }
.shift-cell.is-loading .shift-content { opacity: .62; }
.shift-loading-satellite { position: absolute; z-index: 2; top: 50%; right: 9px; width: 40px; height: 40px; padding: 2px; transform: translateY(-50%); background: #fff; pointer-events: none; }
.shift-loading-satellite .loading-orbital-system { --loading-globe-size: 12px; --loading-satellite-size: 10px; }
.is-page-hidden .loading-satellite-orbit { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .loading-satellite-orbit { animation: none; transform: rotate(-35deg); }
}
.rest-warning-panel { margin-top: 14px; padding: 13px 15px; border: 1px solid #e2b8bc; background: #fff5f5; color: #61262d; }
.rest-warning-panel strong { display: block; margin-bottom: 4px; color: #8b1e29; font-size: 12px; }
.rest-warning-panel p { margin: 0; color: #61262d; font-size: 11px; line-height: 1.5; }
.rest-suggestions-panel { margin-top: 14px; padding: 13px 15px; border: 1px solid #d8c7b2; background: #fbf7f1; color: #4e4438; }
.rest-suggestions-panel strong { display: block; margin-bottom: 4px; color: var(--brand-burgundy); font-size: 12px; }
.rest-suggestions-panel p { margin: 0 0 10px; color: #5f5b55; font-size: 11px; line-height: 1.45; }
.rest-suggestion-list { display: grid; gap: 5px; }
.rest-suggestion { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 6px 9px; border: 1px solid #d6dce0; background: #fff; color: var(--brand-burgundy); text-align: left; cursor: pointer; }
.rest-suggestion:hover { border-color: #9b6b35; background: #fffdfa; }
.rest-suggestion:focus-visible { outline: 2px solid var(--brand-burgundy); outline-offset: 1px; }
.rest-suggestion small { color: #65717a; font-size: 10px; }
.rest-suggestion > span:last-child { color: #7b4b13; font-size: 10px; font-weight: 700; }
.rest-section-title {
  display: block;
  margin: 10px 0 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--brand-burgundy);
}
.rest-suggestion.is-swap {
  border-color: #bcd4e6;
  background: #f8fbfe;
}
.rest-suggestion.is-swap:hover {
  border-color: #B41E13;
  background: #eff6fc;
}
.rest-suggestion.is-swap > span:last-child {
  color: #DA291C;
}
.rest-suggestion .swap-hint {
  color: #DA291C;
  font-weight: 700;
}
.gst-suggestions-details {
  margin-top: 10px;
  border: 1px dashed #ced7de;
  background: #fbfcfc;
  border-radius: 3px;
}
.gst-suggestions-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  color: #4c5a65;
  user-select: none;
}
.gst-suggestions-summary:hover {
  background: #f1f5f8;
  color: var(--brand-burgundy);
}
.gst-suggestions-details[open] .gst-suggestions-summary {
  border-bottom: 1px solid #e1e7eb;
}
.gst-suggestions-details .gst-suggestion-list {
  padding: 8px;
}
.notice.info {
  border-top-color: #DA291C;
  background: #fbf5f2;
  color: #880000;
}
@media (max-width: 540px) {
  .rest-warning-panel { padding: 11px; }
  .rest-suggestions-panel { padding: 11px; }
  .rest-suggestion { grid-template-columns: minmax(0, 1fr) auto; }
  .rest-suggestion small { display: none; }
}

/* Mantém o texto da tabela de escala centralizado no desktop e em telas menores */
.schedule-table th,
.schedule-table td {
  text-align: center;
}
.schedule-table .date-primary {
  justify-content: center;
}
.schedule-table .holiday-caption-row { background: #fff7f6; }
.schedule-table .holiday-caption-cell {
  padding: 3px 12px !important;
  border-top: 0;
  border-bottom: 1px solid #ecd4d1;
  background: #fff7f6;
  color: #743b3b;
  font-size: 10px;
  line-height: 1.3;
  text-align: center;
}
.holiday-caption-content {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px 20px;
}
.holiday-caption-item { display: inline-flex; align-items: baseline; gap: 7px; }
.holiday-caption-type {
  color: #955b59;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.holiday-caption-name { color: #672f32; font-size: 10px; font-weight: 700; }
.schedule-table .shift-content {
  align-items: center;
  justify-content: center;
}
.schedule-table .shift-content > div {
  width: 100%;
  text-align: center;
}
.schedule-table .shift-assignment {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  text-align: left;
}
.schedule-table .shift-assignment .crew-label {
  flex: 0 0 auto;
  margin-right: 0;
}
.schedule-table .shift-assignment .member-list {
  text-align: left;
}
.schedule-table .shift-cell::before {
  text-align: center;
}
.schedule-table tr.is-holiday .date-cell,
.schedule-table tr.is-holiday td[data-shift] {
  background-color: #ffeded;
}
.schedule-table tr.is-holiday .date-cell {
  border-left: 1px solid #ecd4d1;
}
.schedule-table tr.is-holiday td.shift-cell.is-clickable:hover {
  background-color: #ffe4e2 !important;
}
.schedule-table td.shift-cell.has-vacation-gap {
  background-color: #fee2e2 !important;
  border: 1.5px solid #dc2626 !important;
}
.schedule-table td.shift-cell.has-vacation-gap.is-clickable:hover {
  background-color: #fecaca !important;
  border-color: #b91c1c !important;
}
.shift-vacation-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #f87171;
  border-radius: 2px;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-left: 4px;
}
.shift-vacation-info { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; margin-left: auto; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 15px; }
.schedule-table .shift-assignment { flex-wrap: wrap; min-width: 0; }
.schedule-table .shift-assignment .member-list { flex: 1 1 120px; min-width: 0; overflow-wrap: anywhere; }
.shift-vacation-pill { max-width: 100%; white-space: normal; }
.shift-vacation-info:hover, .shift-vacation-info[aria-expanded="true"] { color: var(--brand-burgundy); background: var(--canvas); }
.shift-vacation-tooltip { position: fixed; z-index: 10000; width: 320px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow: auto; padding: 14px 16px; border: 1px solid var(--line-dark); background: var(--paper); color: var(--ink); font-size: 12px; line-height: 1.5; text-align: left; }
.shift-vacation-tooltip > strong { color: var(--brand-burgundy); }
.shift-vacation-context { margin: 3px 0 10px; color: var(--muted); }
.shift-vacation-person { padding-top: 8px; margin-top: 8px; border-top: 1px solid var(--line); }
.shift-vacation-person dl { margin: 4px 0 0; }
.shift-vacation-person dt { color: var(--muted); font-size: 11px; }
.shift-vacation-person dd { margin: 0 0 5px; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .shift-vacation-info { width: 44px; height: 44px; } }
@media print { .shift-vacation-info, .shift-vacation-tooltip { display: none !important; } }
@media (max-width: 760px) {
  .schedule-table tbody tr.is-holiday { border-bottom: 0; }
  .schedule-table tbody tr.holiday-caption-row {
    display: block;
    width: 100%;
    margin-top: 0;
    border-bottom: 7px solid var(--canvas);
  }
  .schedule-table tbody tr.holiday-caption-row .holiday-caption-cell { display: block; width: 100%; }
  .schedule-table .holiday-caption-content { justify-content: flex-start; gap: 3px 10px; text-align: left; }
}

@media (max-width: 840px) {
  .topbar { height: auto; flex-wrap: wrap; gap: 8px 12px; }
  .account-tools { flex: 1 1 100%; justify-content: flex-end; }
}

@media (max-width: 380px) {
  .view-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab-button { min-width: 0; padding-inline: 8px; white-space: normal; line-height: 1.3; }
}

/* ==========================================================================
   Impressão Operacional (@media print)
   ========================================================================== */
@page {
  size: landscape;
  margin: 8mm 10mm;
}

@media print {
  /* Ocultar elementos de controle, navegação e ações interativas */
  .topbar,
  .top-announcement-banner,
  .view-tabs,
  .month-tools,
  .consult-day-action,
  .section-tools,
  .button,
  button,
  .app-footer,
  .swap-status-card,
  .notice,
  .floating-tip,
  .modal-backdrop,
  .shift-history-corner-btn,
  .today-mark,
  .shift-change-counter {
    display: none !important;
  }

  /* Reset de layout e fundo para economia de tinta e contraste */
  *,
  *::before,
  *::after {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html, body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 11px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .shell {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .page-content,
  .card,
  section {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  /* Cabeçalho de impressão do mês */
  .section-bar {
    border-bottom: 2px solid #530B06 !important;
    margin-bottom: 8px !important;
    padding-bottom: 4px !important;
  }

  .section-bar h2 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.02em !important;
    margin: 0 !important;
  }

  /* Tabela de escala operacional em largura total */
  .table-wrap {
    overflow: visible !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .schedule-table {
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
    page-break-inside: auto;
    border: 1px solid #334155 !important;
  }

  .schedule-table thead {
    display: table-header-group;
  }

  .schedule-table thead th {
    background-color: #2B0302 !important;
    color: #ffffff !important;
    border: 1px solid #0f172a !important;
    padding: 5px 8px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .schedule-table thead th.date-cell {
    width: 90px !important;
  }

  .schedule-table tbody tr {
    page-break-inside: avoid;
    page-break-after: auto;
  }

  .schedule-table td {
    border: 1px solid #cbd5e1 !important;
    padding: 4px 6px !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
  }

  .schedule-table .date-cell {
    background-color: #f8fafc !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    border-right: 2px solid #cbd5e1 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .schedule-table tr.is-weekend .date-cell {
    background-color: #f1f5f9 !important;
  }

  .schedule-table tr.is-holiday .date-cell,
  .schedule-table tr.is-holiday td[data-shift] {
    background-color: #fff5f5 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .schedule-table td.shift-cell.has-vacation-gap {
    background-color: #fee2e2 !important;
    border: 1.5px solid #dc2626 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .schedule-table tr.holiday-caption-row td {
    background-color: #fff5f5 !important;
    padding: 2px 6px !important;
    border-top: none !important;
  }

  .holiday-caption-item {
    font-size: 9px !important;
  }

  .schedule-table .crew-label {
    border: 1px solid currentColor !important;
    font-weight: 700 !important;
    padding: 1px 4px !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .schedule-table .member-list {
    color: #0f172a !important;
    font-weight: 700 !important;
  }

  /* Legenda de equipes na parte inferior */
  .crew-legend {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 10px !important;
    page-break-inside: avoid;
  }

  .crew-card {
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    padding: 3px 6px !important;
    font-size: 9px !important;
  }

  .crew-support {
    margin-top: 6px !important;
    font-size: 9px !important;
    page-break-inside: avoid;
  }
}

.vacation-period-fields { border: 1px solid var(--line); margin: 20px 18px; padding: 0; min-width: 0; }
.vacation-period-fields legend { padding: 0 8px; font-weight: 700; }
#vac-concession { margin: 0; line-height: 1.5; }

.vacation-rules { margin: 12px 18px; line-height: 1.5; }
#vac-period-actions:empty { display: none; }

/* Vacation workflow: compact operational status and notifications. */
.vacation-notifications { position: relative; font-size: 13px; }
.vacation-notifications summary { display: flex; align-items: center; gap: 7px; cursor: pointer; padding: 9px; list-style: none; }
.vacation-notifications summary::-webkit-details-marker { display: none; }
.vacation-notifications summary:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.vacation-notification-popover { position: absolute; right: 0; top: 100%; z-index: 40; width: min(380px,calc(100vw - 32px)); max-height: 440px; overflow: auto; background: var(--paper,#fff); border: 1px solid var(--line-dark,#b6b6b6); box-shadow: 0 12px 28px #1112; }
.vacation-notification { display: grid; gap: 5px; width: 100%; padding: 14px; text-align: left; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; font: inherit; }
.vacation-notification.is-unread { background: #fff5f3; }
.vacation-notification:hover { background: #f4f4f4; }
.vacation-notification span { line-height: 1.5; }
.vacation-notification-popover > p { padding: 16px; }
.vacation-state { font-size: 12px; line-height: 1.5; color: #59443f; }
.vacation-state.is-validated { color: #255936; }
#vacation-workflow-edit-form .vacation-period-fields { margin-top: 24px; }
#vacation-workflow-list .vac-actions-cell { min-width: 220px; }
@media (max-width: 600px) {
  .vacation-notifications summary span { font-size: 11px; }
  .vacation-notification-popover { right: -70px; }
}
.vacation-dashboard { margin-top: 40px; }
.vacation-dashboard-summary { padding: 12px 0; border-block: 1px solid var(--line); font-size: 13px; line-height: 1.6; }
.vacation-team-group { margin-top: 16px; border-top: 1px solid var(--line); }
.vacation-team-group h3 { font-size: 17px; margin: 0; }
.vacation-team-group > .table-wrap { margin-top: 12px; }
.vacation-planner .vacation-section-toggle { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; min-height: 44px; padding: 12px 0; cursor: pointer; list-style: none; }
.vacation-section-toggle::-webkit-details-marker { display: none; }
.vacation-section-toggle:focus-visible { outline: 2px solid var(--primary, #c8102e); outline-offset: 3px; }
.vacation-section-toggle:hover h2, .vacation-section-toggle:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.vacation-disclosure-icon { flex: 0 0 18px; }
.vacation-team-group[open] > summary .vacation-disclosure-icon, #vacation-workflow-list[open] > summary .vacation-disclosure-icon { transform: rotate(90deg); }
.vacation-control-table { min-width: 1080px; font-variant-numeric: tabular-nums; }
.vacation-control-table td { vertical-align: top; }
.vacation-team-heading th { text-align: left; background: #f2edeb; padding: 12px 14px; }
.vacation-irregular { color: #803c25; }
.gantt-period.is-unvalidated { outline: 1px dashed var(--period-color); outline-offset: 2px; opacity: .72; }
#vacation-workflow-list .data-table { min-width: 1150px; }
#vacation-workflow-list .vac-actions-cell { display: table-cell; width: 320px; vertical-align: top; }
.vacation-action-buttons { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
#vacation-workflow-list .data-table td:nth-child(2) { min-width: 210px; }
#vacation-workflow-list .data-table td:nth-child(3) { min-width: 180px; }
#vacation-workflow-list .data-table td:nth-child(4) { min-width: 150px; }
.topbar .vacation-notifications { color: #fff; }
.vacation-notification-popover { color: var(--ink,#1f1d1d); }
@media (max-width: 600px) {
  .view-tabs { flex-wrap: wrap; }
  #edit-user-form .form-grid { grid-template-columns: minmax(0, 1fr); padding-inline: 0; }
}

.account-menu { position: relative; color: #fff; }
.account-menu > summary { display: flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; list-style: none; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.account-menu > summary:hover .user-name { text-decoration: underline; text-underline-offset: 4px; }
.account-menu-chevron { flex: 0 0 16px; }
.account-menu[open] .account-menu-chevron { transform: rotate(180deg); }
.account-menu-popover { position: absolute; right: 0; top: calc(100% + 8px); z-index: 25; min-width: 180px; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.account-menu-popover a { display: flex; align-items: center; min-height: 44px; padding: 12px 16px; color: var(--brand-burgundy); font-weight: 700; text-decoration: none; }
.account-menu-popover a:hover, .account-menu-popover a[aria-current="page"] { background: var(--canvas); }
.account-menu-popover a:focus-visible { outline: 2px solid var(--red); outline-offset: -3px; }

.vacation-today-banner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-bottom: 16px; padding: 10px 14px; border: 1px solid var(--line); background: var(--canvas); overflow-wrap: anywhere; }
.vacation-today-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.vacation-today-heading h2 { margin: 0; font-size: 14px; font-weight: 500; color: var(--muted); }
.vacation-today-heading > time { font-size: 12px; color: var(--muted); }
.vacation-today-list { display: flex; flex: 1; min-width: min(220px, 100%); flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin: 0; }
.vacation-today-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; max-width: 100%; font-size: 13px; line-height: 1.5; }
.vacation-today-list strong { font-weight: 500; }
.vacation-today-list span { color: var(--muted); }
.vacation-today-list small { flex-basis: 100%; font-size: 12px; color: var(--muted); }

/* Align the two operational surfaces without changing Claro's brand treatment. */
@media screen {
  .shell-main[data-view="schedule"], .shell-main[data-view="vacations"] { --surface-inset: 18px; }
  .shell-main[data-view="schedule"] .page-heading { flex-wrap: wrap; align-items: flex-start; gap: 18px 24px; }
  .shell-main[data-view="schedule"] .page-heading > div:first-child { flex: 1 1 220px; }
  .shell-main[data-view="schedule"] .month-tools { flex-wrap: wrap; border-radius: 0; border-color: var(--line); box-shadow: none; gap: 8px; padding: 6px 8px; }
  .shell-main[data-view="schedule"] .month-nav-group { flex: 0 0 auto; height: 40px; min-width: 0; border-radius: 0; border-color: var(--line-dark); background: var(--canvas); }
  .shell-main[data-view="schedule"] .month-nav-btn { width: 38px; height: 38px; }
  .shell-main[data-view="schedule"] .month-select-wrap, .shell-main[data-view="schedule"] .month-year-wrap { height: 38px; }
  .shell-main[data-view="schedule"] .month-select-field, .shell-main[data-view="schedule"] .year-input-field { min-height: 38px; height: 38px; }
  .shell-main[data-view="schedule"] .consult-day-action { min-height: 40px; height: 40px; border-radius: 0; border-color: var(--line-dark); }
  .shell-main[data-view="schedule"] .month-nav-btn:focus-visible, .shell-main[data-view="schedule"] .month-select-field:focus-visible, .shell-main[data-view="schedule"] .year-input-field:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
  .schedule-section > .section-bar { padding-inline: var(--surface-inset); }
  .schedule-section > .section-bar h2 { text-transform: capitalize; }
  .schedule-section .section-tools { justify-content: flex-end; gap: 8px; }
  .schedule-section .section-tools > .status-line { min-height: 40px; }
  .schedule-section > .crew-legend { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; padding: 18px var(--surface-inset); }
  .schedule-section > .crew-support { padding: 12px var(--surface-inset); }
  .vacation-planner > .section-bar, .vacation-planner #vacation-form > .section-bar, .vacation-planner .vacations-list-section > .section-bar, .vacation-planner .vacation-dashboard > .section-bar { padding: 14px var(--surface-inset); }
  .vacation-planner .section-bar p { margin: 5px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
  .vacation-planner .vacations-list-section { margin-top: 24px; padding: 0; border-top: 0; }
  .vacation-planner #vacation-form { margin-top: 24px; border-top: 0; }
  .vacation-planner #vacation-form > .section-bar { margin-top: 0; }
  .vacation-planner .vacation-balance-banner { margin: 18px var(--surface-inset) 0; padding: 12px 14px; }
  .vacation-planner .form-grid { padding: 18px var(--surface-inset); gap: 18px 16px; }
  .vacation-planner .field, .vacation-period-grid .field { min-width: 0; justify-content: flex-start; }
  .vacation-planner .field label, .vacation-period-grid .field label { line-height: 1.5; }
  .vacation-planner .field input:not([type="checkbox"]), .vacation-planner .field select, .vacation-planner .field textarea, .vacation-period-grid input:not([type="checkbox"]), .vacation-period-grid textarea { width: 100%; min-width: 0; font-size: 13px; }
  .vacation-planner .vacation-cycle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .vacation-planner .vacation-cycle-grid.is-manager { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #vac-concession { padding-block: 9px; font-size: 12px; }
  .vacation-planner .vacation-rules { margin: 0 var(--surface-inset) 8px; line-height: 1.6; }
  .vacation-planner .vacation-period-fields { margin: 20px var(--surface-inset); }
  .vacation-period-fields legend { color: var(--brand-burgundy); font-size: 14px; }
  .vacation-planner .vacation-period-grid, .vacation-period-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
  .vacation-period-options { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
  .vacation-period-options > .field { grid-column: auto; align-self: start; }
  .vacation-period-options > .field:only-child { grid-column: 1 / -1; }
  .vacation-period-grid .vacation-period-notes, .vacation-period-grid .vacation-period-remove { grid-column: 1 / -1; }
  .vacation-period-grid .vacation-period-remove { align-items: flex-end; }
  .vacation-period-grid .checkbox-option { align-items: flex-start; min-height: 32px; }
  .vacation-period-grid .checkbox-option input { flex: none; margin: 3px 0 0; }
  .vacation-period-grid .field-hint { margin-top: 0; line-height: 1.5; }
  .vacation-planner .form-actions { flex-wrap: wrap; padding-inline: var(--surface-inset); }
  .vacation-planner .vacation-form-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; padding: 0 var(--surface-inset) 18px; }
  .vacation-planner .vacation-form-footer > .form-actions { padding: 0; }
  .vacation-planner .vacation-form-footer > .form-actions:first-child { margin-right: auto; }
  .vacation-planner .vacation-dashboard { margin-top: 24px; }
  .vacation-planner .vacation-dashboard-summary { margin: 0; padding: 12px var(--surface-inset); border-top: 0; }
  .vacation-planner .vacation-team-group { margin-top: 0; }
  .vacation-planner .vacation-team-group > .table-wrap { margin-top: 0; }
  .vacation-planner .vacation-section-toggle { padding: 14px var(--surface-inset); gap: 10px; }
  .vacation-planner .vacation-team-group h3 { font-size: 15px; }
}
@media screen and (max-width: 840px) {
  .vacation-planner .vacation-cycle-grid.is-manager { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vacation-cycle-grid.is-manager > .field:first-child { grid-column: 1 / -1; }
  .vacation-planner .vacation-period-grid, .vacation-period-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-section > .crew-legend { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media screen and (max-width: 760px) {
  .shell-main[data-view="schedule"], .shell-main[data-view="vacations"] { --surface-inset: 12px; }
  .shell-main[data-view="schedule"] .page-heading { align-items: stretch; }
  .shell-main[data-view="schedule"] .page-heading > div:first-child { flex-basis: auto; }
  .shell-main[data-view="schedule"] .month-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .shell-main[data-view="schedule"] .month-nav-group { grid-column: 1 / -1; width: 100%; height: 46px; justify-content: space-between; }
  .shell-main[data-view="schedule"] .month-nav-btn { width: 44px; min-height: 44px; height: 44px; }
  .shell-main[data-view="schedule"] .month-select-wrap, .shell-main[data-view="schedule"] .month-year-wrap { height: 44px; }
  .shell-main[data-view="schedule"] .month-select-field, .shell-main[data-view="schedule"] .year-input-field { min-height: 44px; height: 44px; }
  .shell-main[data-view="schedule"] .consult-day-action { width: 100%; min-height: 44px; height: 44px; justify-content: center; padding-inline: 8px; }
  .schedule-section > .section-bar { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .schedule-section .section-tools { width: auto; margin-left: auto; }
  .schedule-section > .crew-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vacation-planner .vacation-balance-banner { align-items: flex-start; gap: 12px; }
  .vacation-planner .balance-badge { min-width: 72px; padding-inline: 10px; }
}
@media screen and (max-width: 600px) {
  .vacation-planner .vacation-cycle-grid, .vacation-planner .vacation-cycle-grid.is-manager { grid-template-columns: minmax(0, 1fr); }
  .vacation-period-options { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .vacation-period-grid .checkbox-option { min-height: 44px; align-items: center; }
  .vacation-period-grid .checkbox-option input { margin-top: 0; }
  .vacation-period-grid > .field:nth-child(-n+4) > label { min-height: 33px; }
}
