.att-panel, .att-modal { color: var(--navy-900); font-family: 'IBM Plex Sans', sans-serif; font-size: 13px; line-height: 1.45; }
.att-panel { min-width: 0; display: flex; flex-direction: column; flex: 0 1 auto; min-height: 0; max-height: 100%; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); overflow: auto; }
.att-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px 4px; flex-shrink: 0; }
.att-heading-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.att-back { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.att-title { min-width: 0; }
.att-title > span { display: block; color: var(--body); font-size: 12px; margin-top: 2px; overflow-wrap: anywhere; }
.att-heading h2, .att-modal h2 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; }
.att-heading p, .att-modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.att-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.att-button, .att-worker-button { min-height: 36px; padding: 7px 12px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--card); color: var(--navy-900); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.att-heading .att-button { min-height: 32px; padding: 5px 10px; }
.att-button:hover:not(:disabled), .att-worker-button:hover:not(:disabled) { border-color: var(--orange-texto); background: var(--orange-soft); }
.att-primary { background: var(--orange-700); border-color: var(--orange-700); color: var(--white); }
.att-primary:hover:not(:disabled) { background: var(--orange-600); border-color: var(--orange-600); color: var(--white); }
.att-button:disabled, .att-panel input:disabled, .att-modal input:disabled, .att-modal select:disabled, .att-modal textarea:disabled { opacity: .6; cursor: not-allowed; }
.att-panel :is(button, input, select, textarea, summary):focus-visible, .att-modal :is(button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--orange-texto); outline-offset: 3px; }
.att-worker-button { margin: 8px 0; width: 100%; }
.att-staff-inline { display: flex; flex-direction: column; flex: 1; min-height: 0; min-width: 0; margin-top: 8px; }
.att-staff-inline:focus-visible { outline: 2px solid var(--orange-texto); outline-offset: 2px; }
.att-sync-status { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding: 4px 12px; color: var(--body); font-size: 12px; flex-shrink: 0; }
.att-sync-status strong { color: var(--body); font-weight: 500; }
.att-connection-state { font-weight: 600; }
.att-connected { color: var(--success-ink); }
.att-badge { display: inline-block; width: fit-content; padding: 3px 7px; border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--body); background: var(--surface); font-size: 12px; font-weight: 600; white-space: nowrap; }
.att-badge-ok { color: var(--success-ink); border-color: var(--success-border); background: var(--success-soft); }
.att-badge-warning { color: var(--warning-ink); border-color: var(--warning-border); background: var(--warning-soft); }
.att-badge-info { color: var(--info-ink); border-color: var(--info-border); background: var(--info-soft); }
.att-text-button { border: 0; background: transparent; padding: 4px 0; color: var(--orange-texto); text-decoration: underline; text-underline-offset: 3px; font: inherit; cursor: pointer; }
.att-notice { margin: 10px 16px 0; padding: 9px 12px; background: var(--info-soft); color: var(--info-ink); border: 1px solid var(--info-border); border-radius: var(--r-sm); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.att-error { color: var(--danger); border-color: var(--danger-border); background: var(--danger-bg); }
.att-success { color: var(--success-ink); border-color: var(--success-border); background: var(--success-soft); }
.att-query-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 4px 12px; flex-shrink: 0; }
.att-period-filter { min-width: 0; }
.att-field-label { display: block; color: var(--body); font-size: 12px; font-weight: 600; margin-bottom: 5px; }
.att-presets { display: flex; flex-wrap: wrap; gap: 3px; }
.att-preset { min-height: 32px; padding: 5px 8px; border: 1px solid transparent; border-radius: var(--r-sm); background: transparent; color: var(--body); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.att-preset:hover:not(:disabled) { background: var(--surface); }
.att-preset.active { color: var(--orange-texto); background: var(--orange-soft); border-color: var(--orange-border); }
.att-preset:disabled { opacity: .6; cursor: not-allowed; }
.att-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 6px 12px; flex-shrink: 0; }
.att-filters label, .att-form label, .att-inline-form label { display: flex; flex-direction: column; gap: 5px; color: var(--body); font-size: 12px; font-weight: 500; min-width: 0; }
.att-filters input, .att-filters select, .att-form input, .att-form select, .att-form textarea, .att-inline-form input, .att-inline-form select, .att-inline-form textarea { min-height: 36px; min-width: 0; max-width: 100%; box-sizing: border-box; padding: 7px 9px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); color: var(--navy-900); background: var(--card); font: inherit; font-weight: 400; }
.att-filters input[type='date'] { width: 145px; }
.att-worker-filter { display: flex; flex-direction: column; align-items: stretch; gap: 5px; flex: 1; min-width: 180px; max-width: 250px; margin-left: auto; font-size: 12px; font-weight: 600; color: var(--body); }
.att-worker-filter select { width: 100%; min-width: 0; min-height: 32px; padding: 5px 7px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); color: var(--navy-900); background: var(--card); font: inherit; }
.att-filter-hint { color: var(--body); font-size: 12px; padding-bottom: 9px; }
.att-result-context { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 4px 12px 6px; font-size: 12px; color: var(--body); flex-shrink: 0; }
.att-context-date { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.att-context-date > span { white-space: nowrap; }
.att-result-context h3 { margin: 0; color: var(--navy-900); font-size: 13px; font-weight: 600; line-height: 1.4; }
.att-result-context h3::first-letter { text-transform: uppercase; }
.att-help-toggle { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; min-height: 28px; border: 0; padding: 3px 0 3px 4px; background: transparent; font: inherit; color: var(--body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.att-help-toggle span { font-size: 17px; text-decoration: none; }
.att-reading-help { margin: 0 12px 8px; padding: 10px 12px; border-left: 3px solid var(--info); background: var(--info-soft); color: var(--info-ink); font-size: 12px; flex-shrink: 0; }
.att-reading-help p { margin: 0 0 6px; }
.att-reading-help p:last-child { margin: 0; }
.att-help-states { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; margin: 8px 0; }
.att-help-states p { margin: 0; }
.att-overview { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; }
.att-overview-label { color: var(--body); }
.att-overview-item { display: inline-flex; align-items: baseline; gap: 5px; background: transparent; }
.att-overview-item strong { font-family: 'IBM Plex Mono', monospace; font-size: 12px; }
.att-table-region { min-height: 0; flex: 0 1 auto; max-height: min(55vh, 520px); max-height: min(55dvh, 520px); overflow: auto; border-block: 1px solid var(--border); }
.att-table { border-collapse: collapse; width: 100%; font-size: 12px; }
.att-table thead { position: sticky; top: 0; z-index: 1; }
.att-table th { text-align: left; color: var(--body); background: var(--surface); font-size: 12px; font-weight: 600; padding: 4px 8px; border-bottom: 1px solid var(--border); }
.att-table td { padding: 6px 8px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.att-table td .att-button { min-height: 28px; padding: 4px 7px; }
.att-table .att-date-group th { position: static; background: var(--surface); color: var(--navy-900); padding: 6px 9px; border-block: 1px solid var(--border); font-size: 12px; font-weight: 600; }
.att-table tbody tr:last-child td { border-bottom: 0; }
.att-table tbody tr:hover { background: var(--surface); }
.att-table td:first-child { min-width: 110px; max-width: 205px; }
.att-table td:first-child strong { display: block; font-size: 12.5px; font-weight: 600; }
.att-table small { display: block; margin-top: 2px; color: var(--body); font-size: 12px; }
.att-table td:last-child { text-align: right; }
.att-table .att-lunch-heading { width: 88px; min-width: 70px; color: var(--body); line-height: 1.35; }
.att-table .att-lunch-group { text-align: center; color: var(--body); border: 0; padding: 4px 8px 0; }
.att-table .att-lunch-start, .att-table .att-lunch-return { border-inline: 0; }
.att-table .att-lunch-cell small { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; white-space: nowrap; }
.att-break-pending { color: var(--body); font-size: 12px; }
.att-numeric, .att-day-summary strong { font-family: 'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 12px; }
.att-table .att-reviewed { color: var(--info-ink); }
.att-person-name { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 2px 0; color: var(--navy-900); font: inherit; font-size: 13px; line-height: 1.4; font-weight: 600; cursor: pointer; overflow-wrap: anywhere; }
.att-person-name:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--orange-texto); }
.att-table .att-schedule-label { font-size: 12px; color: var(--body); margin-top: 0; }
.att-table .att-badge { border: 0; padding: 0; background: transparent; }
.att-table .att-configure-row { color: var(--orange-texto); white-space: nowrap; }
.att-on-time { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; color: var(--success-ink); }
.att-table .att-late { color: var(--warning-ink); font-weight: 600; }
.att-empty { padding: 20px 16px; text-align: center; color: var(--body); display: flex; flex-direction: column; gap: 6px; margin: 0; }
.att-empty strong { font-size: 14px; color: var(--navy-900); font-weight: 600; }
.att-empty span { max-width: 470px; margin: auto; font-size: 12px; }
.att-empty .att-button { align-self: center; margin-top: 6px; }
.att-footer { padding: 6px 12px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; justify-content: space-between; flex-shrink: 0; }
.att-footer p { color: var(--body); font-size: 12px; margin: 0; }
.att-pagination { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--body); }
.att-overlay { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 16px; background: rgba(11, 18, 38, .48); }
.att-modal { width: min(640px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); background: var(--card); border: 1px solid var(--border); border-top: 3px solid var(--orange-500); border-radius: var(--r-lg); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); outline: none; min-width: 0; }
.att-modal-wide { width: min(1040px, 100%); }
.att-modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.att-modal-head > div { min-width: 0; }
.att-modal-head .att-button { flex-shrink: 0; }
.att-modal-content { padding: 0 16px 16px; overflow: auto; min-height: 0; }
.att-modal-content > .att-panel { margin-top: 12px; }
.att-modal-content > .att-notice { margin: 12px 0; }
.att-day-summary { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); background: var(--surface); margin: 12px 0 16px; }
.att-day-summary div { padding: 10px; border-right: 1px solid var(--border); }
.att-day-summary div:last-child { border: 0; }
.att-day-summary span { display: block; color: var(--muted); font-size: 11.5px; margin-bottom: 4px; }
.att-break-summary { margin-bottom: 16px; padding: 10px; background: var(--surface); border: 1px solid var(--border); }
.att-break-summary dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 10px 0 0; }
.att-break-summary dt { color: var(--muted); font-size: 11.5px; }
.att-break-summary dd { margin: 3px 0 0; color: var(--navy-900); font: 600 12px 'IBM Plex Mono', monospace; }
.att-break-extra { color: var(--warning-ink); font-weight: 600; }
.att-break-settings { padding: 10px; background: var(--surface); border: 1px solid var(--border); }
.att-break-settings .att-helper, .att-break-summary .att-helper { margin-bottom: 0; }
.att-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.att-modal h3 { font-size: 13px; margin: 0 0 8px; color: var(--navy-900); }
.att-section-heading h3 { margin: 0; }
.att-helper { color: var(--muted); font-size: 12px; margin: 8px 0; line-height: 1.5; }
.att-punch-list { list-style: none; margin: 12px 0; padding: 0; }
.att-punch-list li { display: grid; grid-template-columns: 60px 1fr auto; gap: 10px; align-items: center; border-bottom: 1px solid var(--border); padding: 8px 0; }
.att-punch-list li > strong { border-left: 3px solid var(--orange-texto); padding-left: 10px; }
.att-punch-list li > div { min-width: 0; }
.att-punch-list small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 3px; overflow-wrap: anywhere; }
.att-punch-list .att-punch-kind { color: var(--body); font-weight: 600; }
.att-punch-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.att-punch-excluded > strong { text-decoration: line-through; color: var(--muted); border-left-color: var(--border-strong) !important; }
.att-punch-excluded > div > span { color: var(--muted); }
.att-inline-form { display: grid; gap: 12px; padding: 12px; border: 1px solid var(--orange-border); background: var(--orange-soft); margin: 12px 0; }
.att-inline-form h3 { margin: 0; }
.att-inline-form input { width: 150px; }
.att-inline-form textarea, .att-form textarea { resize: vertical; min-height: 64px; width: 100%; }
.att-review-section { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 14px; }
.att-review-note { border-left: 3px solid var(--info); padding: 8px 12px; background: var(--info-soft); color: var(--info-ink); margin: 10px 0; overflow-wrap: anywhere; }
.att-review-note p { margin: 3px 0 5px; }
.att-review-note small { font-size: 11.5px; }
.att-history { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.att-history summary { color: var(--body); font-weight: 600; cursor: pointer; padding: 4px 0; }
.att-history ol { padding: 0; list-style: none; }
.att-history li { border-left: 2px solid var(--border-strong); padding: 6px 12px; margin: 8px 0; overflow-wrap: anywhere; }
.att-history li p { margin: 3px 0; font-size: 12px; }
.att-history li small { color: var(--muted); font-size: 11.5px; }
.att-form { display: grid; gap: 12px; margin-top: 12px; }
.att-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.att-tabs { display: flex; border-bottom: 1px solid var(--border); margin: 0 -16px 12px; padding: 0 16px; }
.att-tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 12px 10px; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.att-tabs button.active { color: var(--orange-texto); border-bottom-color: var(--orange-texto); }
.att-people-list { padding: 0; list-style: none; margin: 12px 0; }
.att-people-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.att-people-list strong { font-size: 13px; }
.att-people-list small { display: block; color: var(--muted); font-size: 11.5px; }
.att-people-list li > span { text-align: right; font-size: 12px; }
.att-linked { color: var(--success-ink); }
.att-unlinked { color: var(--orange-texto); }
.att-weekdays { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.att-weekdays legend { padding: 0; margin-bottom: 8px; color: var(--body); font-size: 12px; font-weight: 500; }
.att-weekdays label { display: flex; flex-direction: row; align-items: center; gap: 6px; padding: 7px; border: 1px solid var(--border); border-radius: var(--r-sm); cursor: pointer; }
.att-weekdays input { min-height: 0; padding: 0; accent-color: var(--orange-700); }
.att-schedule-history { background: var(--surface); border: 1px solid var(--border); padding: 10px 12px; max-height: 120px; overflow: auto; }
.att-schedule-history strong, .att-schedule-history span { display: block; font-size: 12px; }
.att-schedule-history span { margin-top: 5px; color: var(--muted); }
.att-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
@media (min-width: 601px) {
  .att-period-filter > .att-field-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
  .att-worker-filter { flex-direction: row; align-items: center; max-width: 320px; gap: 8px; }
  .att-worker-filter select { flex: 1; width: 0; }
}
@media (max-width: 600px) {
  .att-heading { align-items: flex-start; flex-direction: column; }
  .att-heading > .att-actions { width: 100%; justify-content: stretch; }
  .att-heading > .att-actions .att-button { flex: 1; }
  .att-worker-filter { flex: 1 0 100%; max-width: none; margin-left: 0; }
  .att-query-controls { gap: 6px; }
  .att-period-filter { width: 100%; }
  .att-presets { gap: 4px; }
  .att-preset { flex: 1; padding-inline: 5px; }
  .att-result-context { align-items: center; }
  .att-result-context h3 { font-size: 13px; }
  .att-help-toggle { padding-left: 0; }
  .att-overview { gap: 4px 10px; }
  .att-help-states { grid-template-columns: 1fr; }
  .att-table-region { min-height: 0; max-height: none; flex: 0 0 auto; overflow: visible; }
  .att-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .att-filters input[type='date'], .att-worker-filter { width: 100%; min-width: 0 !important; max-width: none; }
  .att-filter-hint { padding: 0; grid-column: 1 / -1; }
  .att-table, .att-table tbody { display: block; }
  .att-table thead { display: none; }
  .att-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 12px; gap: 4px 12px; border-bottom: 1px solid var(--border); }
  .att-table tbody .att-date-group { display: block; padding: 0; }
  .att-table .att-date-group th { display: block; padding: 8px 12px; }
  .att-table td { padding: 3px 0; border: 0; min-width: 0 !important; }
  .att-table .att-lunch-start, .att-table .att-lunch-return { border: 0; }
  .att-table td:first-child { grid-column: 1 / -1; padding-bottom: 4px; }
  .att-table td:first-child { max-width: none; }
  .att-person-name { font-size: 13px; }
  .att-table .att-numeric { font-size: 12px; }
  .att-table td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font: 12px 'IBM Plex Sans', sans-serif; color: var(--body); margin-bottom: 2px; }
  .att-table td[data-label='Entrada'] { grid-column: 1; grid-row: 2; }
  .att-table td[data-label='Salida'] { grid-column: 2; grid-row: 2; }
  .att-table td[data-label='Salida a almorzar'] { grid-column: 1; grid-row: 3; }
  .att-table td[data-label='Regreso de almuerzo'] { grid-column: 2; grid-row: 3; }
  .att-table td:last-child { align-self: end; }
  .att-pagination { width: 100%; justify-content: space-between; gap: 6px; }
  .att-pagination span { text-align: center; }
  .att-overlay { padding: 8px; }
  .att-modal { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  .att-modal-head, .att-modal-content { padding-left: 12px; padding-right: 12px; }
  .att-tabs { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; }
  .att-modal-head h2 { font-size: 16px; }
  .att-modal-wide .att-modal-content { padding: 0 8px 8px; }
  .att-modal-wide .att-heading, .att-modal-wide .att-filters, .att-modal-wide .att-sync-status { padding-left: 10px; padding-right: 10px; }
  .att-day-summary { grid-template-columns: 1fr; }
  .att-day-summary div { border-right: 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
  .att-day-summary span { margin: 0; }
  .att-break-summary dl { grid-template-columns: 1fr; gap: 7px; }
  .att-break-summary dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
  .att-break-summary dd { margin: 0; }
  .att-form-grid { gap: 10px; }
  .att-punch-list li { grid-template-columns: 54px 1fr auto; gap: 6px; }
  .att-punch-actions { grid-column: 2 / -1; justify-content: flex-start; }
}
@media (pointer: coarse) {
  .att-button, .att-heading .att-button, .att-worker-button, .att-person-name, .att-help-toggle, .att-preset, .att-table td .att-button, .att-worker-filter select, .att-tabs button, .att-filters input, .att-filters select, .att-form input:not([type='checkbox']), .att-form select, .att-inline-form input, .att-inline-form select, .att-weekdays label { min-height: 44px; }
  .att-button, .att-help-toggle, .att-preset, .att-tabs button { min-width: 44px; }
}
@media (prefers-reduced-motion: reduce) { .att-button, .att-worker-button { transition: none; } }
.att-integration-host { height: 100%; min-height: 0; display: flex; flex-direction: column; }
.att-integration-host > section { flex: 1; min-height: 0; }
.att-integration-host .staff-tabs { flex-wrap: wrap; }
.att-integration-host .att-integration-worker { align-self: flex-start; margin: 0 0 0 auto; flex: 0 0 auto; }
.att-integration-host .staff-page.att-inline-active > :not(.staff-topbar):not(.att-inline-view):not(style),
.att-integration-host .att-inline-active .staff-topbar-actions { display: none !important; }
.att-integration-host .att-inline-active .staff-tabs .staff-tab:not(.att-integration-tab) { color: var(--muted); border-bottom-color: transparent; }
.att-integration-host .att-inline-active .staff-tabs .att-integration-tab { color: var(--orange-500); border-bottom-color: var(--orange-500); }
.att-inline-view { flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; margin-top: 8px; }
.att-inline-view:focus-visible, .att-integration-tab:focus-visible { outline: 2px solid var(--orange-texto); outline-offset: 2px; }
@media(max-width: 600px) { .att-integration-host .att-integration-worker { margin-left: 0; } }

.att-load-state { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
/*$vite$:1*/