/* Oficina · desktop layout, version 2 */
:root { --header-height: 80px; --menu-width: 252px; }
.office-shell { display: grid; grid-template-columns: minmax(0, 1fr) var(--menu-width); grid-template-rows: var(--header-height) minmax(0, 1fr); }
.office-shell.landing-shell { grid-template-columns: minmax(0, 1fr); }
.app-header { grid-column: 1 / -1; grid-row: 1; height: var(--header-height); position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 25px; padding: 0 34px; background: #fcfdfb; border-bottom: 1px solid var(--border); }
.office-brand { display: inline-flex; align-items: center; gap: 12px; padding: 6px 0; background: transparent; color: #294a3b; font-size: 26px; letter-spacing: -.9px; font-weight: 650; flex-shrink: 0; }
.office-brand:hover { color: #3d7053; }
.office-brand img { width: 36px; height: 36px; }
.header-location { display: flex; align-items: center; gap: 10px; color: #89957f; font-size: 12px; padding-left: 26px; margin-left: 8px; border-left: 1px solid #e4e9de; }
.header-location button { background: transparent; color: #6f8360; padding: 6px 0; font-size: 12px; }
.header-location button:hover { color: #255c4b; }
.header-location svg { width: 13px; height: 13px; }
.header-company-mark { margin-left: auto; }
.office-menu-toggle { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 66px; height: 43px; color: #6f8562; background: #f1f5ec; border: 1px solid #e2e9da; border-radius: 11px; }
.office-menu-toggle > svg:first-child { width: 22px; height: 22px; }
.office-menu-toggle > svg:last-child { width: 13px; height: 13px; }
.office-menu-toggle:hover, .office-menu-toggle.active { background: #e6efdd; border-color: #cbd9bd; color: #426c39; }
.office-shell .workspace { grid-column: 1; grid-row: 2; min-width: 0; width: auto; }
.office-shell .main { padding: 38px 42px 26px; }
.company-sidebar { position: fixed; top: var(--header-height); right: 0; bottom: 0; left: auto; width: var(--menu-width); padding: 27px 19px 22px; border-left: 1px solid var(--border); background: #fcfdfb; display: flex; flex-direction: column; z-index: 10; }
.sidebar-company { display: flex; align-items: center; gap: 10px; padding: 3px 11px 24px; margin-bottom: 17px; width: 100%; background: none; text-align: left; color: #607551; border-bottom: 1px solid var(--border); }
.sidebar-company strong { font-size: 13px; font-weight: 600; }
.sidebar-company:hover strong { color: #255c4b; }
.company-sidebar .nav-list { display: grid; gap: 6px; overflow: visible; margin: 0; padding: 0; }
.office-shell .nav-button { font-size: 13px; min-height: 45px; }
.company-sidebar .nav-button { padding: 13px 14px; width: 100%; }
.menu-divider { width: 100%; border: 0; border-top: 1px solid #e4e9dc; margin: 22px 0 15px; }
.company-sidebar .change-company { color: #8a967e; }
.company-sidebar .sidebar-bottom { padding: 20px 0 0; margin-top: auto; }
.company-sidebar .sidebar-bottom .nav-button { color: #758b63; border: 1px solid #e2e9d9; background: #f1f5eb; font-size: 12px; }
.company-sidebar .sidebar-bottom .nav-button.active { background: #e2ecd8; border-color: #cbdcbb; }
.company-sidebar .sidebar-bottom .nav-button.active::after { display: none; }
.landing-menu { position: fixed; top: calc(var(--header-height) + 10px); right: 25px; z-index: 30; width: 253px; background: #fff; border: 1px solid #dfe7d6; border-radius: 14px; box-shadow: 0 12px 45px #2b4c3614; padding: 13px; }
.landing-menu .nav-list { display: grid; margin: 0; padding: 0; gap: 3px; overflow: visible; }
.landing-menu .nav-button { padding: 12px 14px; width: 100%; font-size: 13px; }
.landing-menu .sidebar-bottom { margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--border); }
.landing-menu button:disabled { opacity: .52; }
.landing-shell .landing-main { margin: 0; padding: 0 42px; min-height: calc(100svh - var(--header-height)); display: block; background: radial-gradient(ellipse at 50% 40%, #eaf0e566, transparent 60%), #f5f6f3; }
.landing-shell .landing { width: 100%; max-width: 930px; margin: auto; }
.landing-welcome { font-size: 11px; text-transform: uppercase; letter-spacing: 2.6px; font-weight: 600; color: #899d76; margin: 32px 0 0; text-align: center; }
.company-picker { width: 100%; min-height: calc(100svh - var(--header-height)); display: grid; grid-template-rows: minmax(max-content, 1fr) auto minmax(max-content, 1fr); }
.landing-intro { display: flex; flex-direction: column; gap: 16px; padding-bottom: 26px; }
.landing-intro h1 { margin-top: auto; }
.landing-help { display: grid; justify-items: center; align-content: end; padding: 26px 0 clamp(26px, 7vh, 76px); }
.landing-help-page { max-width: 930px; margin: 0 auto; padding: 32px 0; }
.landing-help-page .page-heading { align-items: center; }
@media (min-width: 681px) and (min-height: 740px) {
  .company-picker { padding-bottom: var(--header-height); }
  .landing-help { padding-bottom: 26px; }
}
.landing-shell .landing h1 { font-size: 48px; line-height: 1.19; font-weight: 580; letter-spacing: -1.9px; color: #34513a; }
.landing-shell .company-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px; width: 100%; max-width: 840px; margin: 0 auto; }
.landing-shell .company-card { min-height: 268px; padding: 35px 33px 31px; border-radius: 21px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; box-shadow: 0 7px 24px #304f3504; }
.landing-shell .company-monogram { width: 58px; height: 58px; border-radius: 15px; font-size: 18px; margin-bottom: 26px; }
.landing-shell .company-card > strong { font-size: 28px; letter-spacing: -.9px; font-weight: 580; line-height: 1.3; }
.company-arrow { align-self: flex-end; display: grid; place-items: center; margin-top: auto; padding-top: 17px; color: #8aa474; }
.company-arrow svg { width: 22px; height: 22px; }
.gold .company-arrow { color: #b79e6d; }
.company-home .page-heading { margin-bottom: 29px; }
.company-home .page-heading h1 { font-size: 37px; line-height: 1.2; font-weight: 600; letter-spacing: -1.2px; }
.company-home .page-heading .eyebrow { margin-bottom: 10px; }
.company-home .stats-grid { margin: 0 0 28px; gap: 18px; }
.company-home .stat-card { padding: 22px 23px 20px; display: block; }
.company-home .stat-top { align-items: flex-start; min-height: 36px; gap: 8px; font-size: 12px; line-height: 1.5; }
.company-home .stat-number { font-size: 34px; margin: 6px 0 9px; padding: 0; }
.company-home .severe-card .stat-number { color: #a2ad95; }
.company-home .stat-foot { font-size: 10px; }
.button.excel-state { min-width: 98px; min-height: 42px; padding: 10px 17px; font-size: 13px; font-weight: 600; }
.button.excel-state.current { background: #e2efde; color: #3d7238; border-color: #c6debc; }
.button.excel-state.current:hover { background: #d6e7cf; }
.button.excel-state.attention { background: #f9e9e5; color: #ab574d; border-color: #eccbc4; }
.button.excel-state.attention:hover { background: #f4ddd7; }
.button.excel-state::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.company-home .table-card { margin-top: 0; }
.contracts-empty { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.connection-tools { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.connection-tools .button { font-size: 11px; }
.office-shell .toast { left: calc(50% - var(--menu-width) / 2); }
@media (min-width: 1600px) {
  .landing-shell .company-grid { max-width: 920px; }
  .landing-shell .company-card { min-height: 290px; padding: 38px; }
  .landing-shell .landing h1 { font-size: 52px; }
}
@media (max-width: 1150px) {
  :root { --menu-width: 225px; }
  .office-shell .main { padding: 32px 28px 25px; }
  .company-sidebar { padding-left: 15px; padding-right: 15px; }
  .sidebar-company { padding-left: 7px; padding-right: 5px; }
  .sidebar-company strong { font-size: 12px; }
  .company-home .stat-card { padding: 18px; }
  .company-home .stat-top { font-size: 11px; }
  .company-home .page-heading h1 { font-size: 34px; }
  .landing-shell .company-grid { max-width: 780px; }
}
@media (max-width: 900px) {
  :root { --menu-width: 205px; }
  .app-header { padding-left: 25px; padding-right: 25px; }
  .office-shell .main { padding-left: 23px; padding-right: 23px; }
  .office-shell .nav-button { font-size: 12px; gap: 9px; }
  .company-home .stats-grid { gap: 10px; }
  .company-home .stat-card { padding: 15px 12px; }
  .company-home .stat-icon { width: 25px; height: 25px; }
  .company-home .stat-top { font-size: 10px; }
  .company-home .stat-foot { font-size: 9px; }
  .landing-shell .landing h1 { font-size: 42px; }
}
@media (max-width: 760px) {
  :root { --header-height: 69px; }
  .office-shell { display: flex; flex-direction: column; }
  .app-header { order: 0; flex-shrink: 0; padding: 0 19px; gap: 15px; }
  .office-brand { font-size: 23px; gap: 9px; }
  .office-brand img { width: 32px; height: 32px; }
  .header-location { margin-left: auto; padding-left: 0; border-left: 0; font-size: 10px; }
  .header-location button { font-size: 11px; max-width: 120px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .header-company-mark { display: none; }
  .header-location span, .header-location svg { display: none; }
  .company-sidebar { order: 1; position: sticky; top: var(--header-height); width: 100%; padding: 9px 15px; border-left: 0; border-bottom: 1px solid var(--border); background: #fcfdfbf5; display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 5px; }
  .sidebar-company { display: none; }
  .company-sidebar .nav-list { display: flex; flex: 1; gap: 3px; }
  .company-sidebar .nav-button { padding: 9px 8px; min-height: 34px; width: auto; white-space: nowrap; font-size: 11px; gap: 5px; }
  .company-sidebar .nav-button svg { width: 15px; height: 15px; }
  .company-sidebar .nav-button.active::after { display: none; }
  .company-sidebar .menu-divider { display: none; }
  .company-sidebar .change-company { margin-left: auto; font-size: 10px; }
  .company-sidebar .sidebar-bottom { margin: 0; padding: 0; width: 100%; border-top: 1px solid #edf0e7; padding-top: 6px; }
  .company-sidebar .sidebar-bottom .nav-button { min-height: 29px; padding: 5px 9px; font-size: 10px; background: transparent; border-color: transparent; }
  .office-shell .workspace { order: 2; width: 100%; }
  .office-shell .main { padding: 27px 20px 22px; }
  .company-home .page-heading h1 { font-size: 30px; }
  .company-home .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .company-home .stat-card:last-child { grid-column: auto; grid-row: auto; display: block; }
  .company-home .stat-card:last-child .stat-number { font-size: 30px; margin: 6px 0 9px; }
  .company-home .stat-card:last-child .stat-icon { display: grid; }
  .company-home .stat-number { font-size: 30px; }
  .company-home .stat-top { min-height: 43px; }
  .company-home .stat-icon { display: none; }
  .company-home .stat-card:last-child .stat-icon { display: none; }
  .landing-shell .landing-main { padding: 0 27px; }
  .landing-welcome { margin-top: 42px; font-size: 10px; letter-spacing: 2px; }
  .landing-shell .landing h1 { font-size: 38px; }
  .landing-shell .company-grid { gap: 17px; }
  .landing-shell .company-card { padding: 26px 24px 23px; min-height: 245px; }
  .landing-shell .company-card > strong { font-size: 24px; }
  .landing-shell .company-monogram { width: 49px; height: 49px; margin-bottom: 26px; }
  .landing-menu { right: 17px; }
  .toast { left: 50%; }
}
@media (max-width: 480px) {
  .landing-shell .landing h1 { font-size: 32px; letter-spacing: -1.2px; }
  .landing-shell .company-grid { grid-template-columns: minmax(0, 1fr); max-width: 340px; gap: 15px; }
  .landing-shell .company-card { min-height: 158px; display: grid; grid-template-columns: 46px minmax(0, 1fr) 20px; align-items: center; gap: 15px; padding: 24px 22px; }
  .landing-shell .company-monogram { height: 45px; width: 45px; margin: 0; font-size: 14px; }
  .landing-shell .company-card > strong { font-size: 21px; }
  .company-arrow { padding: 0; margin: 0; align-self: center; }
  .company-home .page-heading h1 { font-size: 27px; }
  .company-home .stat-top { font-size: 9px; }
  .company-home .stat-foot { font-size: 8px; }
  .company-sidebar .nav-button { font-size: 10px; padding: 8px 6px; }
  .company-sidebar .change-company span { max-width: 52px; white-space: normal; text-align: left; font-size: 9px; }
  .company-home .stat-card { padding: 13px 10px; }
}

/* Documentos, vencimientos y correos */
.company-sidebar { overflow-y: auto; }
.company-sidebar [data-page="contracts"].active::after { display: none; }
.contract-indicator { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #2563bb; margin-inline-start: auto; }
.feature-stack { display: grid; gap: 16px; }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 23px 26px; min-width: 0; }
.feature-card h2 { font-size: 18px; }
.feature-card h3, .feature-card summary { font-size: 14px; }
.feature-card summary { cursor: pointer; font-weight: 650; }
.feature-card p { font-size: 13px; color: #556b4c; line-height: 1.6; margin: 8px 0 14px; }
.feature-card code { overflow-wrap: anywhere; }
.feature-card .field { display: grid; gap: 5px; align-content: start; margin-top: 12px; min-width: 0; font-size: 12px; font-weight: 600; }
.feature-card input, .feature-card textarea, .feature-card select { background: #fbfcf9; border: 1px solid #dbe5d3; border-radius: 8px; color: #344b35; padding: 9px 10px; font: inherit; font-size: 13px; min-width: 0; max-width: 100%; }
.feature-card textarea { resize: vertical; }
.feature-card input[type="search"] { width: min(100%, 480px); }
.feature-card :is(input, textarea, select, button, a, summary):focus-visible { outline: 2px solid #3968a1; outline-offset: 2px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 15px; margin-bottom: 12px; }
.feature-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.feature-actions .button { text-decoration: none; }
.feature-card .feature-caption { color: #52694a; font-size: 12px; }
.feature-card .feature-error { color: #a03932; font-weight: 550; }
.feature-error:empty, .feature-actions:empty { display: none; }
.vacation-matches { display: grid; gap: 3px; margin-top: 5px; max-width: 480px; }
.vacation-matches button { display: flex; justify-content: space-between; gap: 10px; text-align: left; background: #f5f8f2; border: 1px solid transparent; border-radius: 6px; padding: 7px 10px; color: #344b35; font-size: 12px; }
.vacation-matches button:hover, .vacation-matches button[aria-pressed="true"] { border-color: #b0c4a3; background: #eaf2e5; }
.vacation-matches small { color: #536b4c; }
.signature-preview, .doc-fields { margin: 15px 0; font-size: 12px; }
.signature-preview { display: flex; flex-wrap: wrap; gap: 9px; }
.signature-preview div, .doc-fields > div { background: #f4f8f1; border-radius: 8px; padding: 9px 12px; min-width: 0; }
.signature-preview dd { font-weight: 650; margin-top: 4px; }
.doc-fields dt { color: #52694a; margin-top: 6px; }
.doc-fields dd { overflow-wrap: anywhere; }
.feature-card .table-scroll { border: 1px solid #e4e9de; border-radius: 8px; margin: 12px 0; }
.feature-card .table-scroll button { text-align: left; }
.invoice-period { max-width: 230px; }
.invoice-recipient { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid #e4e9de; overflow-wrap: anywhere; }
.invoice-recipient p { margin: 4px 0; }
.invoice-recipient .feature-actions { margin: 0; }
[data-recipient-form], [data-calendar-form] { border-top: 1px solid #e4e9de; margin-top: 16px; padding-top: 16px; }
@media (max-width: 740px) {
  .company-sidebar { overflow-y: visible; }
  .company-sidebar .nav-list { flex-wrap: wrap; }
  .feature-card { padding: 17px; }
  .feature-grid { grid-template-columns: 1fr; gap: 8px; }
  .invoice-recipient { align-items: flex-start; flex-direction: column; }
}

/* Selección de vacaciones e impresión */
.vacation-calendars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 300px));
  gap: 12px;
  margin: 12px 0 16px;
}
.date-calendar {
  min-width: 0;
  background: #fbfcf9;
  border: 1px solid #dbe5d3;
  border-radius: 12px;
  padding: 12px;
}
.calendar-navigation { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin: 7px 0; }
.calendar-navigation [data-calendar-month] { text-align: center; font-size: 13px; font-weight: 650; }
.calendar-navigation [data-calendar-month]::first-letter { text-transform: uppercase; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.calendar-weekdays { color: #52694a; padding-bottom: 5px; font-size: 11px; text-transform: uppercase; }
.calendar-days { min-height: 202px; grid-auto-rows: 32px; touch-action: pan-y; user-select: none; }
.calendar-days button { border-radius: 6px; background: transparent; color: #344b35; font-size: 12px; }
.calendar-days button:hover:enabled { background: #e4efdc; }
.calendar-days button[aria-current="date"] { box-shadow: inset 0 0 0 1px #829d75; }
.calendar-days button[aria-pressed="true"], .calendar-days button[aria-pressed="true"]:hover { background: #396049; color: #fff; font-weight: 650; }
.calendar-days button:disabled { color: #84917d; }
.date-calendar .calendar-selection { font-size: 12px; font-weight: 650; margin: 4px 0 0; }
.vacation-print-output { display: none; }
@media (max-width: 640px) {
  .vacation-calendars { grid-template-columns: minmax(0, 320px); }
}
@media print {
  body:has(> .vacation-print-output) { display: block; margin: 0; min-height: 0; background: #fff; }
  body:has(> .vacation-print-output) > :not(.vacation-print-output) { display: none !important; }
  body > .vacation-print-output { display: block; color: #000; }
}

/* Resultados de trabajadores */
.worker-columns {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(105px, 1fr) minmax(155px, 1.25fr) 22px;
  gap: 12px;
  align-items: center;
  padding: 13px 22px;
}
.worker-list > .worker-columns { color: #4e6652; background: #f0f4ed; font-size: 11px; font-weight: 650; }
.worker-result { border-bottom: 1px solid #e9eee5; }
.worker-result > summary { cursor: pointer; list-style: none; }
.worker-result > summary::-webkit-details-marker { display: none; }
.worker-result > summary:hover, .worker-result[open] > summary { background: #f4f8f1; }
.worker-result > summary:focus-visible { outline: 2px solid #527a5e; outline-offset: -2px; }
.worker-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: #294637; font-weight: 650; overflow-wrap: anywhere; }
.worker-identity { color: #486052; font-size: 12px; overflow-wrap: anywhere; }
.worker-identity > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.worker-chevron { display: grid; place-items: center; color: #527a5e; }
.worker-chevron svg { width: 17px; height: 17px; }
.worker-result[open] .worker-chevron svg { transform: rotate(90deg); }
.worker-panel { padding: 14px 22px 22px; background: #fff; }
.worker-panel > h3 { font-size: 14px; margin-bottom: 8px; }
.worker-panel > p { font-size: 12px; margin-bottom: 10px; }
.worker-panel .notice ul { margin-left: 17px; }
dd.detail-value { margin: 0; overflow-wrap: anywhere; }
.company-home .severe-card .stat-number[data-severe-count] { color: #34513a; }
@media (max-width: 700px) {
  .worker-list > .worker-columns { display: none; }
  .worker-result > summary { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 22px; gap: 6px 10px; padding: 13px 16px; }
  .worker-name { grid-column: 1 / 3; }
  .worker-chevron { grid-column: 3; grid-row: 1; }
  .worker-identity > span { display: block; position: static; width: auto; height: auto; overflow: visible; clip-path: none; font-size: 10px; font-weight: 650; }
  .worker-panel { padding-inline: 16px; }
}

.contract-reminder-label { display: inline-block; margin-top: 3px; padding: 3px 6px; border-radius: 5px; background: #e9f2ff; color: #22538a; font-size: 10px; font-weight: 650; }
.contract-closure { margin: 8px 0; }

/* Herramientas de organización */
.header-tools { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-left: auto; min-width: 86px; }
.header-company-mark, .app-header .office-menu-toggle { margin-left: 0; }
.reminder-bell { min-width: 39px; width: 39px; flex-shrink: 0; }
.reminder-bell > svg:first-child { width: 20px; height: 20px; }
.urgent-reminder-button { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 235px; color: #853425; background: #fae9e2; border-radius: 8px; padding: 8px; font-size: 11px; font-weight: 650; }
.reminder-drawer { position: fixed; inset: 0 0 0 auto; margin: 0 0 0 auto; width: min(100%, 470px); height: 100%; max-width: 100%; max-height: 100%; border: 0; background: #fff; color: #294637; padding: 0; }
.reminder-drawer[open] { display: flex; flex-direction: column; }
.reminder-drawer::backdrop { background: #18382c66; }
.reminder-drawer-header { padding: 16px 21px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e1e8dc; }
.reminder-drawer-body { border: 0; border-radius: 0; overflow: auto; padding: 18px 21px; }
.reminder-drawer-body > *, [data-reminder-lists] > section { margin-bottom: 12px; }
.reminder-drawer-body form { margin-bottom: 18px; }
.reminder-drawer-body .check-field { margin-top: 9px; }
.reminder-item { border: 1px solid #e1e9de; border-radius: 9px; padding: 10px; margin-top: 7px; overflow-wrap: anywhere; }
.reminder-item p { margin: 3px 0; }
.reminder-description { white-space: pre-wrap; }
.daily-reminder { border-color: #bdd5e8; background: #f4f9fd; }
.urgent-reminder { border-color: #e4a99a; background: #fdf4f0; }
.calendar-days [data-marked-day] { position: relative; }
.calendar-days [data-marked-day]::after { content: ''; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #1768b4; bottom: 2px; left: calc(50% - 2px); }
.calendar-days [aria-pressed="true"][data-marked-day]::after { background: #9ed3ff; }
.documentation-nav > summary { list-style: none; cursor: pointer; }
.documentation-nav > summary::-webkit-details-marker { display: none; }
.documentation-nav > summary svg:last-child { width: 12px; height: 12px; margin-left: auto; }
.documentation-nav[open] > summary svg:last-child { transform: rotate(180deg); }
.documentation-nav > div { padding-left: 12px; }
.documentation-nav > div button { white-space: normal; }
.document-table th { min-width: 120px; }
.document-table tbody th { text-transform: none; font-size: 13px; font-weight: 650; }
.document-table tbody th small { display: block; font-size: 10px; color: #8b4b36; }
.document-table td { text-align: center; }
.document-table input { width: 18px; height: 18px; accent-color: #386547; }
.document-column-form { margin-top: 8px; }
.document-column-form .field { margin-top: 0; }
@media (max-width: 740px) {
  .urgent-reminder-button { max-width: 100px; }
  .documentation-nav > div { padding-left: 0; }
  .app-header .header-tools { gap: 4px; }
}

/* Worker review, candidate files and local backups */
.data-dot { display: inline-block; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #2568b3; margin-right: 6px; vertical-align: middle; }
.worker-basic-data { margin-bottom: 17px; }
.worker-data-list { padding: 0; margin: 9px 0; list-style: none; }
.worker-data-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 14px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.worker-data-list li > div:first-child { display: grid; gap: 3px; }
.worker-data-list small { color: #536e52; font-size: 12px; }
.worker-data-list .worker-data-conflict { color: #9c3c35; }
.worker-data-form { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; width: 100%; }
.worker-data-form input { min-width: 0; }

.candidate-panel .section-heading { gap: 12px; flex-wrap: wrap; }
.candidate-policy { padding: 12px 0; }
.candidate-policy .inline-actions { align-items: flex-end; }
.candidate-card { border-top: 1px solid var(--border); }
.candidate-card summary { display: grid; grid-template-columns: minmax(125px, 2fr) minmax(100px, 1.5fr) 100px 95px; padding: 14px 0; align-items: center; gap: 10px; }
.candidate-card summary > * { overflow-wrap: anywhere; }
.candidate-card summary > span { font-weight: 500; }
.candidate-card summary strong::before { content: '›'; margin-right: 7px; }
.candidate-card[open] summary strong::before { content: '⌄'; }
.candidate-detail { padding-bottom: 14px; }
.candidate-files { padding-left: 19px; margin: 10px 0; overflow-wrap: anywhere; }
.candidate-centers { padding: 9px; border: 1px solid var(--border); }
.candidate-centers label { margin-right: 12px; display: inline-block; }
.candidate-dialog, .backup-dialog { margin: auto; padding: 0; width: min(650px, calc(100% - 24px)); max-height: calc(100% - 24px); border: 1px solid var(--border); border-radius: 14px; background: #fff; color: #294637; overflow: auto; }
.candidate-dialog::backdrop, .backup-dialog::backdrop { background: #18382c66; }
.backup-settings { margin-top: 18px; }
.backup-dialog-body form { margin-bottom: 15px; }
.backup-dialog-body form .button { margin: 6px 4px 0 0; }
.backup-dialog-body [data-backup-preview] ul { padding-left: 20px; }
@media (max-width: 620px) {
  .candidate-card summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.candidate-group + .candidate-group { margin-top: 22px; }
.candidate-group h3 { margin: 12px 0; }
.candidate-status { display: block; margin-top: 3px; }
.data-dot[hidden], [data-candidate-disability][hidden] { display: none; }
.daily-landing { margin: 16px auto 0; width: min(100%, 740px); }
.daily-dialog {
  width: min(620px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
}
.daily-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.daily-dialog::backdrop { background: #18382c66; }
.daily-dialog-content.feature-card { min-height: 0; overflow: auto; border: 0; }
.daily-dialog-footer { display: flex; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--border); }
.daily-items { display: grid; gap: 8px; list-style: none; margin: 8px 0 12px; padding: 0; }
.daily-items > li { border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; overflow-wrap: anywhere; }
.daily-items > li p { margin: 4px 0 0; }
.daily-items > li .inline-actions { margin-top: 8px; }
.daily-scope-actions { margin-top: 14px; }
[data-daily-local] + [data-daily-common]:not(:empty) { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 14px; }
.reminder-tabs { display: flex; gap: 6px; padding: 8px 20px; border-bottom: 1px solid var(--border); }
.reminder-tabs button { flex: 1; padding: 8px 10px; border-radius: 7px; background: transparent; color: #46604c; font-weight: 600; }
.reminder-tabs button[aria-selected="true"] { background: #e7f0e1; color: var(--green); }
.reminder-tabs button:focus-visible { outline: 2px solid #3968a1; outline-offset: 2px; }
.heading-content { width: 100%; min-width: 0; }
.heading-title-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.heading-title-row:has(.heading-extra-actions) { grid-template-columns: minmax(0, 1fr) auto auto; }
.heading-title-row h1 { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .heading-title-row:has(.heading-extra-actions) { grid-template-columns: minmax(0, 1fr) auto; }
  .heading-extra-actions { grid-area: 2 / 1 / auto / -1; justify-self: end; }
  .heading-title-row .button.excel-state { min-width: 73px; padding-inline: 9px; gap: 5px; }
}

.city-switch small { display: block; margin-top: 2px; }
.company-sidebar { overflow-y: auto; }
.pending-doc-filter { max-width: 440px; }
.settings-stack .backup-settings { margin-top: 0; }
.settings-stack details > h3 { margin-top: 16px; }
.connection-card .button { margin-top: 10px; }
.connection-card .instructions { margin-bottom: 0; }
.invoice-heading { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; margin-bottom: 10px; }
.invoice-period-control { display: grid; grid-template-columns: auto auto; align-items: center; gap: 0 5px; font-size: 12px; }
.invoice-period-control [data-period-editor] { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .app-header { gap: 8px; }
  .company-sidebar { max-height: 45svh; }
  .company-sidebar .nav-list { flex-wrap: wrap; }
}

.vacation-control-filter { max-width: 230px; margin-bottom: 12px; }

.office-search { margin: 0 0 18px; }
.office-search input { width: 100%; }
[data-office-search-results] h3, .directory-center h4, .vacation-status h3 { margin: 16px 0 6px; }
[data-office-search-results] ul, .directory-center ul { margin: 6px 0 12px; padding-left: 22px; }
.directory-client, .directory-center { border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin: 12px 0; overflow-wrap: anywhere; }
.directory-client > summary { cursor: pointer; font-weight: 650; }
.directory-client small { color: var(--muted); font-weight: 400; }
.directory-center { background: #f8faf7; }
.directory-center form .field { margin: 8px 0; }
[data-client-editor] { margin: 12px 0; }
.batch-people { display: grid; gap: 8px; max-height: 300px; overflow: auto; margin: 12px 0; padding: 10px; }
.batch-people label { padding: 4px; }
.invoice-batch { margin-top: 18px; }
.invoice-preview-body { white-space: pre-wrap; }

.notification-tools { display: flex; align-items: center; gap: inherit; min-width: 39px; }
.consultation-trigger { flex: 0 0 39px; min-width: 39px; }
.consultation-trigger > svg:first-child { width: 20px; height: 20px; }
@media (max-width: 760px) {
  .app-header .header-location { min-width: 0; }
}
@media (max-width: 740px) {
  .header-tools { min-width: 82px; }
}
.consultation-dialog.feature-card {
  width: min(900px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  margin: auto;
  overflow: auto;
}
.consultation-dialog::backdrop { background: #18382c66; }
.consultation-heading, .consultation-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.consultation-controls { flex-wrap: wrap; margin-block: 12px; }
.consultation-jump { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; }
.consultation-jump .field { margin: 0; }
.consultation-jump input { width: 6.5rem; }
.consultation-jump button { min-height: 36px; }
.consultation-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 10px 0; }
.consultation-dialog [data-holiday-type="national"] { --holiday-color: #285c99; }
.consultation-dialog [data-holiday-type="regional"] { --holiday-color: #387346; }
.consultation-dialog [data-holiday-type="local"] { --holiday-color: #a06323; }
.consultation-legend span::before, .consultation-details li span::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--holiday-color);
}
.consultation-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.consultation-month { border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.consultation-month h3 { text-transform: capitalize; margin-bottom: 8px; }
.consultation-month .calendar-days { min-height: 0; grid-auto-rows: 38px; }
.consultation-month .calendar-days button { position: relative; }
.consultation-marks {
  display: flex;
  justify-content: center;
  gap: 3px;
  position: absolute;
  inset: auto 0 5px;
}
.consultation-marks i { width: 5px; height: 5px; border-radius: 50%; background: var(--holiday-color); }
.consultation-month [aria-pressed="true"] i { background: #fff; }
.consultation-details, .consultation-sources { margin-top: 12px; }
.consultation-details ul { list-style: none; padding: 0; margin: 4px 0; }
.consultation-details h3 { margin: 0; }
.consultation-sources a { color: var(--green); }
@media (max-width: 680px) {
  .consultation-dialog.feature-card { padding: 14px; }
  .consultation-months { grid-template-columns: minmax(0, 1fr); }
}

.task-form { border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-block: 14px; }
.task-form .inline-actions { margin-top: 12px; }
.task-list + .task-list { margin-top: 22px; }
.task-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
}
.task-card > div:first-child { min-width: 0; }
.task-card h4 { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.task-card .inline-actions { margin-inline-start: auto; }
.task-checkbox { width: 22px; height: 22px; margin: 0; accent-color: var(--green); cursor: pointer; }

.departure-search { max-width: 360px; margin-block: 12px; }
.departure-list { display: grid; gap: 4px; }
.departure-person { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; min-height: 38px; padding-inline-end: 46px; border: 1px solid var(--border); border-radius: 8px; }
.departure-person[hidden] { display: none; }
.departure-name { justify-self: start; min-height: 36px; padding: 5px 12px; text-align: left; overflow-wrap: anywhere; }
.departure-history > summary { position: absolute; inset-block-start: 2px; inset-inline-end: 3px; display: grid; place-items: center; width: 34px; height: 32px; border-radius: 7px; list-style: none; color: #4d6956; background: #f4f8f1; }
.departure-history > summary::-webkit-details-marker { display: none; }
.departure-arrow { width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.departure-history[open] .departure-arrow { transform: rotate(225deg); }
.departure-history > ol { margin: 0; padding: 4px 0 4px 32px; border-top: 1px solid var(--border); }
.departure-history li { padding-block: 4px; overflow-wrap: anywhere; }
.departure-history li > span { display: inline-block; margin-inline-end: 10px; }
@media (min-width: 851px) {
  .departure-person:has(.departure-history[open]) { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .departure-history > ol { border-top: 0; border-inline-start: 1px solid var(--border); }
}

.quick-access h2 { margin-bottom: 12px; font-size: 17px; }
.quick-access-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.quick-access-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 69px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-align: left;
  font-size: 14px;
  font-weight: 650;
}
.quick-access-card:hover { background: #f2f6ef; border-color: #bed1b6; }
.quick-access-card:focus-visible { outline: 2px solid #3968a1; outline-offset: 2px; }
.quick-access-card .stat-icon { flex-shrink: 0; }
.quick-access-card > svg { width: 14px; height: 14px; margin-left: auto; color: #688163; flex-shrink: 0; }
.a3innuva-directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, max(270px, (100% - 32px) / 3)), 1fr)); gap: 16px; list-style: none; padding: 0; margin: 14px 0 0; }
.a3innuva-directory .a3innuva-access { display: flex; width: 100%; align-items: center; gap: 0; }
.a3innuva-directory .a3innuva-link { flex: 1; justify-content: flex-start; min-height: 104px; padding: 18px 56px 18px 20px; border-radius: 16px; font-size: 16px; white-space: normal; }
.a3innuva-directory .a3innuva-help { position: absolute; inset-inline-end: 14px; }
.a3innuva-directory .a3innuva-instructions { inset-inline: auto 0; }
.a3innuva-access { position: relative; display: inline-flex; align-items: flex-start; gap: 6px; max-width: 100%; }
.a3innuva-help { padding: 4px 0; }
.a3innuva-help > summary {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: #46604c;
  background: #f7faf5;
}
.a3innuva-help > summary::-webkit-details-marker { display: none; }
.a3innuva-help > summary:hover, .a3innuva-help[open] > summary { background: #e7f0e1; }
.a3innuva-instructions {
  position: absolute;
  z-index: 2;
  inset-block-start: calc(100% + 4px);
  inset-inline-start: 0;
  width: min(17rem, calc(100vw - 76px));
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 6px 18px #203b261a;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.6;
}
.a3innuva-instructions ol { margin: 5px 0 0; padding-inline-start: 18px; }
@media (max-width: 1050px) {
  .feature-actions:has(.a3innuva-help[open]) .a3innuva-access { flex-basis: 100%; }
}
@media (max-width: 640px) {
  .quick-access-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-access-card { padding: 10px; gap: 8px; }
}
@media (max-width: 360px) {
  .quick-access-card > svg { display: none; }
}
