/* Consulta operacional: programação em primeiro plano. */
body { background: #f3f6f8; color: #17324d; }
.site-header { margin: 16px 24px 0; border-radius: 10px 10px 0 0; background: #fff; }
.header-inner { min-height: 0; padding: 16px 24px; gap: 16px; }
.header-copy h1 { font-size: 30px; margin: 0 0 6px; letter-spacing: -.025em; }
.header-subtitle { font-size: 14px; margin: 0; }
.eyebrow, .section-kicker, .machine-card__eyebrow { display: none; }
.header-actions .brand-lockup { width: 200px; height: 72px; padding-left: 16px; }
.page-shell { width: calc(100% - 48px); margin: 0 24px; }
.page-shell > .app-tabs { padding: 10px 24px; min-height: 60px; border-radius: 0 0 10px 10px; margin-bottom: 16px; background: #fff; }
.app-tabs .app-tab, .app-tabs .updated-card { border-radius: 8px; }
.overview-panel__heading { display: none; }
.summary-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; padding: 0; overflow: visible; }
.summary-card { min-height: 0; padding: 14px 18px; border-radius: 10px; box-shadow: none; display: grid; gap: 5px; }
.summary-card__top { margin: 0; }
.summary-card__machine { font-size: 16px; text-transform: none; }
.summary-card__hours { font-size: 24px; color: #17324d; font-variant-numeric: tabular-nums; }
.summary-card__hours-label { font-size: 13px; color: #506277; }
.summary-card__link { font-size: 14px; margin: 0; }
.summary-card--total { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 4px 2px; border: 0; background: transparent; }
.summary-card--total .summary-card__top { gap: 12px; }
.summary-card--total .summary-card__machine, .summary-card--total .summary-card__footer { display: none; }
.summary-card--total .summary-card__load-label { font-size: 14px; text-transform: none; margin: 0; }
.summary-card--total .summary-card__load { font-size: 20px; margin: 0; }
.workspace, .history-panel { padding: 18px; border-radius: 10px; box-shadow: none; }
.workspace__header { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.workspace h2 { font-size: 21px; }
.workspace__actions { flex: 1 1 400px; }
.search-field { width: 100%; border-radius: 8px; min-height: 44px; }
.search-field input { font-size: 16px; }
.status-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.status-filters__label { font-size: 14px; font-weight: 600; margin-right: 4px; }
.status-filters button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 10px; border: 1px solid #c5d2df; border-radius: 8px; background: #fff; color: #17324d; font: inherit; font-size: 14px; cursor: pointer; }
.status-filters button:hover { background: #edf4fd; }
.status-filters button[aria-pressed="true"] { background: #1769d2; border-color: #1769d2; color: #fff; }
.status-filters button:focus-visible, .legend summary:focus-visible { outline: 3px solid #1769d2; outline-offset: 3px; }
.status-filters .legend-swatch { width: 10px; height: 10px; flex: 0 0 10px; }
.legend { border-radius: 8px; padding: 0; margin: 10px 0 0; box-shadow: none; }
.legend summary { padding: 10px 12px; min-height: 44px; }
.legend__title { font-size: 14px; }
.legend__list { padding: 8px; }
.machine-nav-wrap { background: #fff; padding: 12px 0; margin-top: 8px; }
.machine-nav__link { min-height: 44px; font-size: 14px; border-radius: 8px; }
.machine-card { border-radius: 8px; overflow: hidden; }
.machine-card__header { padding: 14px; }
.machine-hours__value, .count-badge { font-size: 14px; }
.table-scroll-hint { display: none; }
.machine-table { font-size: 14px; }
.machine-table thead th { font-size: 14px; text-transform: none; letter-spacing: normal; color: #17324d; font-weight: 600; }
.machine-table td { padding: 10px 6px; }
.machine-table td[data-key="cliente"], .machine-table td[data-key="mp"] { text-align: left; }
.machine-table td[data-key="numeroChapas"], .machine-table td[data-key="tempoTotal"], .machine-table td[data-key="tempoChapa"], .machine-table td[data-key="espessura"] { text-align: right; font-variant-numeric: tabular-nums; }
.machine-table tbody tr[data-searchable]:nth-child(even) { background: #f5f8fb; }
.machine-table tbody tr[hidden] { display: none; }
.status-chip { font-size: 14px; border-radius: 6px; }
.history-field, .history-field input, .history-field select, .history-table { font-size: 14px; }
@media (min-width: 801px) {
  .table-scroll { overflow: visible; }
  .machine-table { width: max-content; min-width: 100%; table-layout: auto; }
  .machine-table th, .machine-table td,
  .machine-table td.wrap, .machine-table td:nth-child(4),
  .machine-table thead th, .machine-table .status-chip {
    white-space: nowrap; text-wrap: nowrap; overflow-wrap: normal; word-break: normal;
  }
  .machine-table th:nth-child(n) { width: auto; }
  .machine-table th, .machine-table td { padding: 8px 7px; }
  .machine-table .sequence-badge, .machine-table .machine-badge { min-width: 0; padding: 3px; }
  .machine-table .status-chip { padding: 4px 6px; }
}
@media (max-width: 800px) {
  .site-header { margin: 12px 12px 0; }
  .header-inner { padding: 14px; }
  .header-copy h1 { font-size: 26px; }
  .header-actions { width: auto; }
  .header-actions .brand-lockup { width: 135px; height: 55px; }
  .page-shell { width: calc(100% - 24px); margin: 0 12px; }
  .page-shell > .app-tabs { padding: 10px 12px; }
  .app-tabs .updated-card { width: 100%; margin: 4px 0 0; }
  .summary-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .summary-card { padding: 12px; }
  .summary-card__top { flex-wrap: wrap; gap: 4px; }
  .summary-card__hours { font-size: 20px; }
  .workspace, .history-panel { padding: 12px; }
  .workspace__actions { flex-basis: 100%; }
  .machine-card__meta { flex-wrap: wrap; }
  .mobile-cell-label { font-size: 12px; text-transform: none; letter-spacing: normal; color: #506277; }
  .machine-table tbody tr[data-searchable] > th, .machine-table tbody tr[data-searchable] > td { font-size: 14px; }
  .machine-table tbody tr[data-searchable]:nth-child(even) { background: #fff; }
  .table-scroll-hint { display: none; }
}
@media (max-width: 480px) {
  .header-inner { flex-wrap: nowrap; }
  .header-subtitle { font-size: 13px; }
  .header-actions .brand-lockup { width: 92px; height: 48px; padding: 0; }
  .summary-cards { grid-template-columns: 1fr; }
  .summary-card { grid-template-columns: 1fr auto; align-items: center; }
  .summary-card__top { grid-column: 1; }
  .summary-card__hours { grid-column: 2; grid-row: 1; }
  .summary-card__hours-label { grid-column: 2; grid-row: 2; }
  .summary-card__link { grid-column: 1; grid-row: 2; }
  .summary-card--total { display: flex; }
  .machine-nav-wrap { flex-direction: column; }
  .status-filters__label { width: 100%; }
}
@media print {
  .status-filters, .legend, .table-scroll-hint { display: none; }
  .machine-table { font-size: 7px; }
  .machine-table thead th { font-size: 7px; }
}
