:root {
  --ink: #1c1c1a;
  --muted: #6f716b;
  --line: #e7e6df;
  --canvas: #f5f4ef;
  --surface: #ffffff;
  --orange: #f26a2e;
  --orange-dark: #d94d16;
  --orange-soft: #fff0e8;
  --green: #28795e;
  --green-soft: #e9f5ef;
  --red: #bf3d35;
  --red-soft: #fae9e7;
  --yellow: #996a12;
  --yellow-soft: #fff5d9;
  --shadow: 0 18px 50px rgba(40, 35, 24, 0.08);
  --radius: 18px;
}

.system-settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.system-setting-card { display:grid; grid-template-columns:auto minmax(0,1fr); gap:16px; align-items:start; }
.system-setting-card > button,.system-setting-card > .badge { grid-column:2; justify-self:start; }
.system-setting-icon { width:48px; height:48px; border-radius:14px; display:grid; place-items:center; background:#fff0e8; color:#d9501c; font-weight:800; }
.system-setting-card h3 { margin:4px 0 6px; font-size:1.25rem; }
.system-setting-card p { margin:0 0 14px; color:#6c675f; }
.system-setting-card dl { margin:0; display:grid; gap:8px; }
.system-setting-card dl div { display:grid; grid-template-columns:minmax(120px,.7fr) minmax(0,1fr); gap:10px; padding-top:8px; border-top:1px solid #ebe7df; }
.system-setting-card dt { color:#777168; font-size:.78rem; }
.system-setting-card dd { margin:0; overflow-wrap:anywhere; }
@media (max-width:900px) {
  .system-settings-grid { grid-template-columns:1fr; }
}
[hidden] { display: none !important; }

.permission-section { margin-bottom: 24px; }
.permission-fieldset { min-width: 0; margin: 0; padding: 8px 0 0; border: 0; border-top: 1px solid var(--line); }
.permission-fieldset legend { padding-right: 8px; font-size: .9rem; font-weight: 650; }
.permission-mode { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 6px; }
.permission-toolbar { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(0, 2fr); align-items: end; gap: 8px; padding: 7px 0; }
.permission-toolbar label { display: grid; gap: 3px; font-size: .75rem; }
.permission-toolbar input, .permission-toolbar select { min-width: 0; min-height: 34px; padding: 4px 7px; }
.permission-table-scroll { max-height: min(330px, 44vh); overflow: auto; border: 1px solid var(--line); background: var(--surface); }
.permission-table-scroll table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: .8rem; }
.permission-table-scroll thead { position: sticky; top: 0; z-index: 1; }
.permission-table-scroll th, .permission-table-scroll td { padding: 5px 8px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.permission-table-scroll th { background: #eeede7; text-align: left; }
.permission-grid th:last-child, .permission-grid td:last-child { text-align: center; }
.permission-module-col { width: 30%; }
.permission-check-col { width: 80px; }
.permission-table-scroll tr:nth-child(even) td { background: #f8f7f3; }
.permission-table-scroll tr.permission-row-selected td { background: var(--green-soft); }
.permission-row-label { display: inline; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.permission-row-label:hover, .permission-row-label:focus-visible { text-decoration: underline; }
.permission-grid input[type="checkbox"], .permission-mode input[type="radio"] { width: 16px; height: 16px; min-height: 0; margin: 0; vertical-align: middle; accent-color: var(--green); }
.permission-description { display: grid; gap: 3px; padding: 8px 0; font-size: .79rem; color: var(--muted); }
.user-access-list { font-family: inherit; }
.user-access-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 14px; }
.user-access-heading h2 { font-size: 1.25rem; margin: 0 0 4px; }
.user-access-heading p { font-size: .875rem; color: var(--muted); margin: 0; }
.user-list-filters { display: grid; grid-template-columns: minmax(185px, 2fr) minmax(120px, 1fr) minmax(100px, .8fr); gap: 10px; }
.user-list-filters label { display: grid; gap: 4px; font-size: .84rem; }
.user-list-filters input, .user-list-filters select { min-width: 0; min-height: 38px; }
.user-list-count { margin: 9px 0 6px; color: var(--muted); font-size: .82rem; }
.user-access-table { max-height: min(560px, 62vh); overflow: auto; scrollbar-gutter: stable; }
.user-access-table table { min-width: 700px; table-layout: fixed; font-family: inherit; }
.user-access-table th { padding: 8px 14px; letter-spacing: .025em; }
.user-access-table td { padding: 12px 14px; overflow-wrap: anywhere; }
.user-access-table th:first-child { width: 26%; }
.user-access-table th:nth-child(2) { width: 20%; }
.user-access-table th:nth-child(5) { width: 92px; }
.user-access-table th:last-child { width: 92px; }
.user-access-table th:last-child, .user-access-table td:last-child { text-align: right; }
.user-access-table tbody tr:hover td { background: #faf9f5; }
.user-access-table .extra-status.user-inactive { color: var(--muted); background: #eeede8; }
.extra-status.user-inactive { color: var(--muted); background: #eeede8; }
.aligned-list { max-height: min(62vh, 600px); overflow: auto; scrollbar-gutter: stable; overscroll-behavior: contain; }
.aligned-list table { min-width: 540px; table-layout: fixed; }
.aligned-list th { padding: 8px 14px; }
.aligned-list td { padding: 12px 14px; overflow-wrap: anywhere; }
.aligned-list th:last-child, .aligned-list td:last-child { width: 100px; text-align: right; }
.aligned-list th:last-child { white-space: nowrap; }
.aligned-list tr:hover td { background: #faf9f5; }
.aligned-list td.aligned-list-empty { width: auto; text-align: center; color: var(--muted); padding: 22px 14px; }
.aligned-list .registry-actions { display: inline-flex; gap: 5px; justify-content: flex-end; margin: 0; vertical-align: middle; }
.aligned-list .registry-actions button { margin-left: 0; }
.imports-panel { margin-bottom: 16px; }
.shift-toolbar, .shift-actions, .shift-actions > div, .shift-week-nav, .shift-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.shift-toolbar { align-items: flex-end; margin-bottom: 12px; }
.shift-toolbar .field { flex: 1 1 180px; max-width: 330px; }
.shift-week-nav { margin-bottom: 16px; }
.shift-week-nav .average-ticket-toggle { flex-wrap: wrap; }
.shift-cycle-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(100%, 580px); }
.shift-cycle-tabs button small { display: block; color: inherit; opacity: .9; }
.shift-other-dates summary, .shift-edit-options summary { cursor: pointer; color: var(--muted); font-size: .85rem; padding: 9px 4px; }
.shift-other-dates label { min-width: 170px; }
.shift-role-filter { max-width: 270px; margin-bottom: 8px; }
.shift-edit-options > div { display: flex; flex-wrap: wrap; gap: 6px; }
.shift-coverage-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 10px; }
.shift-coverage-legend span { min-width: 28px; text-align: center; border-radius: 4px; padding: 2px 5px; font-size: .78rem; font-weight: 700; }
.shift-cover-level-0 { --cover-bg: #f5dada; }
.shift-cover-level-1 { --cover-bg: #f8e8bf; }
.shift-cover-level-2 { --cover-bg: #dae7f2; }
.shift-cover-level-3 { --cover-bg: #d8ede3; }
.shift-cover-level-4 { --cover-bg: #a8dac7; }
.shift-cover-level-5 { --cover-bg: #67b79b; }
.shift-coverage-legend span, .shift-coverage-table .shift-cover-cell,
.shift-coverage-table tbody > tr:hover > td.shift-cover-cell { background: var(--cover-bg); color: #182820; }
.shift-cover-warning { color: #893917; font-weight: 900; }
@media (max-width: 520px) { .shift-week-nav .shift-cycle-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shift-actions { justify-content: space-between; margin: 12px 0; }
.shift-employee-results { max-height: 176px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.shift-employee-results button { display: block; width: 100%; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: white; color: var(--ink); text-align: left; box-shadow: none; }
.shift-employee-results button:is(:hover, [aria-pressed="true"]) { background: #e7eff5; }
.shift-employee-results small { display: block; color: var(--muted); }
.shift-employee-results p { padding: 0 12px; }
.shift-team-list label { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.shift-team-list label:last-child { border-bottom: 0; }
.shift-staffing { padding-top: 10px; border-top: 1px solid var(--line); }
.shift-staffing h3 { margin: 0 0 4px; }
.shift-staffing p { margin: 0 0 10px; }
.shift-staffing-table { max-height: 250px; overflow: auto; }
.shift-staffing-table table { min-width: 620px; }
.reconciliation-panel { margin-bottom: 16px; }
.reconciliation-panel summary { cursor: pointer; font-weight: 700; }
.reconciliation-filters, .reconciliation-result-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 14px 0; }
.reconciliation-pdvs { flex-basis: 100%; min-width: 0; border: 1px solid var(--line); padding: 10px; border-radius: 10px; }
.reconciliation-pdvs .field { max-width: 420px; }
.reconciliation-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 6px; max-height: 145px; overflow: auto; margin: 8px 0; }
.reconciliation-checks label:not([hidden]) { display: flex; gap: 6px; align-items: baseline; }
.reconciliation-table { max-height: 460px; overflow: auto; margin-bottom: 10px; }
.reconciliation-table table { min-width: 970px; }
.reconciliation-table td small { display: block; }
.reconciliation-missing ul { max-height: 180px; overflow: auto; }
.closure-row-error [aria-invalid="true"] { outline: 2px solid #a02f24; outline-offset: 1px; }
.closure-draft-note { margin: 8px 0; }
.shift-selected-person { margin: 2px 0 0; color: var(--muted); font-size: .85rem; }
.shift-legend { font-size: .8rem; }
.shift-legend span { padding: 5px 8px; border-radius: 6px; }
.shift-table { margin: 10px 0 18px; border: 1px solid var(--line); border-radius: 8px; }
.shift-table:not(.shift-coverage-table) { border-radius: 16px; overflow: auto; }
.shift-table:not(.shift-coverage-table) tbody > tr:nth-child(even) > :is(th, td:not(.shift-cell)) { background: #eef3f6; }
.shift-table:not(.shift-coverage-table) thead th { background: #17324a; }
.shift-table table { min-width: 760px; border-collapse: separate; border-spacing: 0; }
.shift-table thead th { background: #1e3547; color: #fff; }
.shift-table th, .shift-table td { padding: 8px; letter-spacing: normal; }
.shift-table th:first-child { width: 19%; }
.shift-table :is(th, td):not(:first-child) { text-align: center; }
.shift-table tbody th { font-size: .85rem; color: var(--ink); }
.shift-table th small, .shift-table td small { display: block; margin: 2px 0 0; white-space: nowrap; }
.shift-table thead small { color: #e3edf4; }
.shift-table .shift-cell { padding: 2px; }
.shift-cell-btn, .shift-member-btn { box-shadow: none; min-height: 38px; }
.shift-cell-btn { width: 100%; display: block; padding: 4px; border: 0; border-radius: 4px; background: transparent; color: inherit; }
.shift-cell-btn:hover, .shift-cell-btn:focus-visible { outline: 2px solid #365872; outline-offset: -2px; }
.shift-member-btn { padding: 4px 0; text-align: left; }
.shift-pending-label { color: var(--yellow); }
.shift-work, .shift-ok, .shift-table tbody > tr:hover > .shift-work, .shift-table tbody > tr:hover > .shift-ok { background: #d9efe3; color: #164e36; }
.shift-rest, .shift-table tbody > tr:hover > .shift-rest { background: #f8e3df; color: #733027; }
.shift-flexible, .shift-table tbody > tr:hover > .shift-flexible { background: #ede4f5; color: #4d3262; }
.shift-unset { background: #f6f5f0; color: var(--muted); }
.shift-gap, .shift-table tbody > tr:hover > .shift-gap { background: #fff0c9; color: #725219; }
.shift-table tfoot { background: #eef3f6; font-weight: 700; }
.shift-notes { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.shift-notes summary { cursor: pointer; font-weight: 700; }
.shift-cell-fields { border: 0; padding: 0; min-width: 0; }
.shift-cell-fields[hidden] { display: none; }
.shift-repeat-days { display: flex; flex-wrap: wrap; gap: 8px 14px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.shift-repeat-days label { white-space: nowrap; }
.imports-type { max-width: 360px; margin-bottom: 14px; }
#specialImportForm .ab-file-field { max-width: 500px; }
.imports-fields { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.imports-fields [hidden], #abImportPreview[hidden] { display: none; }
.imports-fields input[type="file"] { width: 100%; min-width: 0; }
#abImportPreview { margin: 12px 0; padding: 12px 0; border-block: 1px solid var(--line); }
#abImportPreview h3 { margin-top: 0; }
.imports-preview-list { max-height: 150px; overflow: auto; }
.imports-table table { min-width: 680px; }
.imports-table th:first-child { width: 30%; }
.imports-table td small { display: block; color: var(--muted); }
.registry-table-employees table, .registry-table-extraPeople table { min-width: 900px; }
.registry-table-products table { min-width: 800px; }
.registry-table-employees th:first-child, .registry-table-products th:first-child { width: 21%; }
.registry-table-employees th:nth-child(4) { width: 20%; }
.registry-table-groups th:first-child { width: 60%; }
.registry-table-printers table { min-width: 745px; }
.registry-table-printers th:last-child, .registry-table-printers td:last-child { width: 220px; }
.registry-table-printers td:last-child > button { margin-right: 5px; }
.kids-registration-table table { min-width: 960px; }
.kids-registration-table th:last-child, .kids-registration-table td:last-child { width: 182px; }
.audit-list-table table { min-width: 575px; }
.audit-list-table th:last-child, .audit-list-table td:last-child { width: 35%; text-align: left; white-space: normal; }
.printer-routing-table table { min-width: 375px; }
.printer-routing-table th:last-child, .printer-routing-table td:last-child { width: 76px; }
.printer-routing-table select { width: 100%; min-width: 0; }
.system-settings-list { border-top: 1px solid var(--line); }
.system-setting-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 20px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.system-setting-row h3 { margin: 3px 0; font-size: 1rem; }
.system-setting-row p { margin: 0 0 5px; color: var(--muted); font-size: .85rem; }
.system-setting-row dl { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: .76rem; }
.system-setting-row dl div { display: flex; flex-wrap: wrap; gap: 4px; }
.system-setting-row dt { color: var(--muted); }
.system-setting-row dd { margin: 0; overflow-wrap: anywhere; }
.user-sector-branch { min-width: 0; margin: 0; padding: 6px 10px 9px; border: 1px solid var(--line); border-radius: 8px; }
.user-sector-branch legend { padding: 0 4px; color: var(--muted); font-size: .8rem; }
#workforcePunchImportForm { display: grid; gap: 8px; width: min(100%, 20rem); min-width: 0; }
#workforcePunchImportForm input { width: 100%; min-width: 0; }
#workforcePunchImportForm button { justify-self: start; }
#workforcePunchImportResult ul { margin: 4px 0 7px; padding-inline-start: 18px; font-size: .85rem; }
dialog:has(#userForm) { width: min(860px, calc(100vw - 20px)); }
@media (max-width: 500px) {
  .user-list-filters { grid-template-columns: 1fr 1fr; }
  .user-list-filters > label:first-child { grid-column: 1 / -1; }
  .permission-toolbar { grid-template-columns: minmax(92px, 1fr) minmax(0, 1.5fr); }
  .permission-check-col { width: 68px; }
  .permission-table-scroll th, .permission-table-scroll td { padding-inline: 5px; }
  .system-setting-row { grid-template-columns: 1fr; justify-items: start; }
}

.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 15% 15%, #e5efe7, transparent 38%), #f4f2eb; }
.login-card { width: min(440px, 100%); padding: 38px; border: 1px solid #dedbd1; border-radius: 24px; background: #fff; box-shadow: 0 24px 80px rgba(24, 24, 22, .12); }
.login-card h1 { margin: 8px 0; font-size: 36px; }
.login-card p { margin: 0; color: #69675f; }
.login-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 34px; }
.login-brand div { display: grid; }
.login-brand small, .login-help { color: #77746b; }
.login-form { display: grid; gap: 18px; margin: 28px 0 18px; }
.login-form .primary { width: 100%; justify-content: center; }
.user-list { display: grid; gap: 12px; }
.user-row { display: grid; grid-template-columns: minmax(170px,1.4fr) 1fr 1fr auto; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--line, #e2dfd6); border-radius: 14px; }
.user-row small { display: block; margin-top: 3px; color: #77746b; }
.role-badge { display: inline-flex; width: fit-content; padding: 5px 9px; border-radius: 999px; background: #eef4ee; color: #315d39; font-size: 12px; font-weight: 700; }
.role-badge.operator { background: #f1f0ec; color: #55534d; }
.role-badge.supervisor { background: #fff3d8; color: #795817; }
.role-badge.controller { background: #e6efff; color: #244b87; }
@media (max-width: 720px) { .user-row { grid-template-columns: 1fr 1fr; } .login-card { padding: 28px 22px; } }

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 8%, rgba(242, 106, 46, 0.09), transparent 24rem),
    var(--canvas);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  transition: grid-template-columns 180ms ease;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 78px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 24px 18px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 35%),
    #1b1b19;
  transition: padding 180ms ease;
}

.sidebar-collapse-button {
  position: absolute;
  top: 27px;
  right: -13px;
  z-index: 2;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 2px solid #f5f4ef;
  border-radius: 50%;
  color: #fff;
  background: #343430;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
}

.sidebar-collapse-button:hover,
.sidebar-collapse-button:focus-visible {
  background: var(--orange);
  outline: none;
}

.sidebar-collapse-button span { transform: translateY(-1px); }

.app-shell.sidebar-collapsed .sidebar { padding-inline: 11px; }
.app-shell.sidebar-collapsed .sidebar-collapse-button span { transform: rotate(180deg) translateY(1px); }
.app-shell.sidebar-collapsed .brand { justify-content: center; padding-inline: 0; }
.app-shell.sidebar-collapsed .brand > div:last-child,
.app-shell.sidebar-collapsed .nav-copy,
.app-shell.sidebar-collapsed .nav-section-title,
.app-shell.sidebar-collapsed .server-card > div { display: none; }
.app-shell.sidebar-collapsed .side-nav { padding-right: 0; }
.app-shell.sidebar-collapsed .nav-section { gap: 6px; }
.app-shell.sidebar-collapsed .nav-item {
  justify-content: center;
  min-height: 48px;
  gap: 0;
  padding-inline: 0;
}
.app-shell.sidebar-collapsed .nav-icon { width: 100%; }
.app-shell.sidebar-collapsed .server-card { justify-content: center; padding-inline: 0; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 30px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--orange);
  box-shadow: 0 8px 24px rgba(242, 106, 46, 0.28);
  font-weight: 850;
  letter-spacing: -0.04em;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 15px;
}

.brand span {
  margin-top: 2px;
  color: #aaa9a2;
  font-size: 12px;
}

.side-nav {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.nav-section {
  display: grid;
  gap: 4px;
}

.nav-section-title {
  margin: 0;
  padding: 0 12px 4px;
  color: #777771;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: none;
}

.nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  min-height: 48px;
  padding: 9px 11px;
  border: 0;
  border-radius: 12px;
  color: #b9b9b3;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: 160ms ease;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.nav-item.active {
  color: #fff;
  background: rgba(242, 106, 46, 0.16);
  box-shadow: inset 3px 0 0 var(--orange);
}

.nav-item:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.nav-item-highlight:not(.active) {
  color: #f5d0bd;
  background: rgba(242, 106, 46, 0.07);
}

.nav-icon {
  display: grid;
  width: 22px;
  place-items: center;
  color: var(--orange);
  font-size: 19px;
}

.nav-copy,
.nav-copy span,
.nav-copy small {
  display: block;
}

.nav-copy {
  min-width: 0;
}

.nav-copy span {
  color: inherit;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
}

.nav-copy small {
  margin-top: 3px;
  overflow: hidden;
  color: #85857f;
  font-size: 9px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-item.active .nav-copy small,
.nav-item:hover .nav-copy small {
  color: #bbb9b2;
}

.server-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6bd0a4;
  box-shadow: 0 0 0 5px rgba(107, 208, 164, 0.1);
}

.server-card strong,
.server-card small {
  display: block;
}

.server-card strong {
  font-size: 12px;
}

.server-card small {
  margin-top: 2px;
  color: #96958f;
  font-size: 11px;
}

.main {
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  min-height: 112px;
  gap: 20px;
  padding: 24px clamp(22px, 4vw, 54px);
  border-bottom: 1px solid rgba(221, 220, 212, 0.7);
  background: rgba(245, 244, 239, 0.82);
  backdrop-filter: blur(18px);
}

.topbar h1 {
  margin: 3px 0 0;
  font-family: inherit;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.eyebrow {
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.access-preview-chip,
.access-preview-exit {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.access-preview-chip {
  display: grid;
  gap: 1px;
  padding: 5px 10px;
  text-align: left;
}

.access-preview-chip span {
  color: var(--muted);
  font-size: 9px;
}

.access-preview-chip strong {
  font-size: 11px;
}

.access-preview-chip.active {
  border-color: #e0a322;
  background: #fff4ce;
  color: #754c00;
}

.access-preview-exit {
  padding: 0 10px;
  border-color: #e0a322;
  color: #754c00;
  font-size: 11px;
  font-weight: 800;
}

.access-preview-chip:hover,
.access-preview-chip:focus-visible,
.access-preview-exit:hover,
.access-preview-exit:focus-visible {
  border-color: var(--orange);
  outline: none;
}

.access-preview-notice,
.access-preview-help {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.access-preview-notice span,
.access-preview-help span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.access-preview-help {
  margin: 16px 0 0;
  border-color: #f0d58e;
  background: #fffaf0;
}

.topbar-profile-button {
  display: grid;
  max-width: 210px;
  gap: 2px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.topbar-profile-button:hover,
.topbar-profile-button:focus-visible {
  border-color: var(--line);
  background: var(--surface);
  outline: none;
}

.topbar-profile-button strong,
.topbar-profile-button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-profile-button strong {
  font-size: 12px;
}

.topbar-profile-button small {
  color: var(--muted);
  font-size: 10px;
}

.logout-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  cursor: pointer;
  font-size: 17px;
}

.logout-icon:hover,
.logout-icon:focus-visible {
  border-color: var(--orange);
  background: var(--orange-soft);
  outline: none;
}

.profile-summary {
  display: grid;
  gap: 10px;
}

.profile-summary > div {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.profile-summary span {
  color: var(--muted);
  font-size: 11px;
}

.profile-summary strong {
  font-size: 13px;
}

.branch-switcher { display: grid; gap: 3px; }
.branch-switcher span { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.branch-switcher select { min-width: 170px; height: 38px; padding: 0 32px 0 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 12px; font-weight: 750; }

.date-chip {
  color: var(--muted);
  font-size: 13px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.view {
  max-width: 1440px;
  margin: 0 auto;
  padding: 34px clamp(22px, 4vw, 54px) 70px;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 18px;
  margin-bottom: 24px;
}

.hero-main {
  position: relative;
  overflow: hidden;
  min-height: 238px;
  padding: clamp(26px, 4vw, 42px);
  border-radius: 24px;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(242, 106, 46, 0.98), rgba(213, 73, 16, 0.94)),
    #e9571c;
  box-shadow: 0 24px 56px rgba(191, 70, 20, 0.22);
}

.hero-main::after {
  position: absolute;
  right: -80px;
  bottom: -160px;
  width: 360px;
  height: 360px;
  border: 62px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  content: "";
}

.hero-main h2 {
  max-width: 650px;
  margin: 14px 0 12px;
  font-family: inherit;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero-main p {
  max-width: 540px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.6;
}

.hero-side {
  display: grid;
  align-content: space-between;
  min-height: 238px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-side .big-number {
  margin-top: 12px;
  font-family: inherit;
  font-size: 68px;
  line-height: 0.9;
}

.hero-side p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.metric-card,
.panel,
.loading-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(42, 38, 27, 0.035);
}

.metric-card {
  padding: 20px;
}

.metric-card .metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-card span {
  color: var(--muted);
  font-size: 12px;
}

.metric-card strong {
  display: block;
  margin-top: 12px;
  font-family: inherit;
  font-size: 34px;
  font-weight: 500;
}

.metric-card > small { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.afternoon-coffee-pending-card { border-color: #efc895; background: linear-gradient(135deg, #fff 0%, var(--orange-soft) 100%); }
.afternoon-coffee-pending-card strong { color: var(--orange-dark); }

.metric-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--orange-soft);
  color: var(--orange-dark) !important;
  font-size: 17px !important;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: 18px;
}

.panel {
  padding: 24px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.panel-header h2,
.section-heading h2 {
  margin: 0;
  font-family: inherit;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.panel-header p,
.section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.primary,
.secondary,
.ghost,
.danger {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 750;
  transition: 150ms ease;
}

.primary {
  border: 1px solid var(--orange);
  color: #fff;
  background: var(--orange);
  box-shadow: 0 8px 22px rgba(242, 106, 46, 0.18);
}

.primary:hover {
  border-color: var(--orange-dark);
  background: var(--orange-dark);
}

.primary.compact,
.secondary.compact,
.ghost.compact {
  min-height: 36px;
  padding: 0 13px;
  font-size: 12px;
}

.secondary {
  border: 1px solid var(--ink);
  background: transparent;
}

.ghost {
  border: 1px solid var(--line);
  background: var(--surface);
}

.danger {
  border: 1px solid #e7b7b2;
  color: var(--red);
  background: var(--red-soft);
}

.hero-main .secondary {
  position: relative;
  z-index: 1;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  padding: 0 14px 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-align: left;
  text-transform: none;
}

td {
  padding: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  vertical-align: middle;
}

td strong {
  display: block;
  font-size: 13px;
}

td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.badge.valid,
.badge.printed {
  color: var(--green);
  background: var(--green-soft);
}

.badge.today,
.badge.tomorrow,
.badge.week,
.badge.queued {
  color: var(--yellow);
  background: var(--yellow-soft);
}

.badge.expired,
.badge.failed {
  color: var(--red);
  background: var(--red-soft);
}

.empty-state {
  display: grid;
  min-height: 240px;
  place-items: center;
  padding: 35px;
  border: 1px dashed #d9d7cc;
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.quick-list {
  display: grid;
  gap: 0;
}

.quick-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.quick-item:last-child {
  border-bottom: 0;
}

.quick-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: var(--orange-dark);
  background: var(--orange-soft);
}

.quick-item div {
  min-width: 0;
}

.quick-item strong,
.quick-item span {
  display: block;
}

.quick-item strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid > .field {
  align-self: start;
  align-content: start;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: #4f504b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0 13px;
  border: 1px solid #dcdad0;
  border-radius: 11px;
  outline: none;
  background: #fff;
}

.field input,
.field select { height: 46px; }

.field textarea {
  min-height: 92px;
  padding-top: 12px;
  padding-bottom: 12px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(242, 106, 46, 0.1);
}

.extra-person-register {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 14px;
  border: 1px solid #e4e1d7;
  border-radius: 14px;
  background: #faf9f5;
}

.extra-cpf-status {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.4;
}

.extra-cpf-status.registered { border: 1px solid #afd8bd; background: #edf8f0; color: #24683b; }
.extra-cpf-status.new-person { border: 1px solid #f1cf8c; background: #fff7e5; color: #79520d; }

@media (max-width: 520px) {
  .extra-person-register { grid-template-columns: 1fr; }
  .extra-person-register > * { grid-column: 1; }
}

.wizard-panel {
  padding: 0;
  overflow: hidden;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  background: #faf9f5;
  list-style: none;
}

.wizard-progress li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #aaa9a2;
}

.wizard-progress li:not(:last-child)::after {
  position: absolute;
  top: 17px;
  right: 15px;
  left: 52px;
  height: 1px;
  background: #dfddd4;
  content: "";
}

.wizard-progress li > span {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #d8d6cd;
  border-radius: 50%;
  background: #fff;
  font-size: 12px;
  font-weight: 850;
}

.wizard-progress strong,
.wizard-progress small {
  position: relative;
  z-index: 1;
  display: block;
  background: #faf9f5;
}

.wizard-progress strong {
  color: inherit;
  font-size: 11px;
}

.wizard-progress small {
  margin-top: 2px;
  padding-right: 8px;
  font-size: 9px;
}

.wizard-progress li.active {
  color: var(--orange-dark);
}

.wizard-progress li.active > span {
  border-color: var(--orange);
  color: #fff;
  background: var(--orange);
  box-shadow: 0 0 0 5px var(--orange-soft);
}

.wizard-progress li.done {
  color: var(--green);
}

.wizard-progress li.done > span {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.wizard-content {
  padding: clamp(24px, 4vw, 42px);
}

.wizard-heading {
  margin-bottom: 24px;
}

.wizard-heading h2 {
  margin: 7px 0 8px;
  font-family: inherit;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.wizard-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.wizard-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.wizard-choice {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 82px;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: 150ms ease;
}

.wizard-choice:hover,
.wizard-choice:focus-visible {
  border-color: var(--orange);
  box-shadow: 0 12px 28px rgba(53, 43, 29, 0.08);
  outline: none;
  transform: translateY(-2px);
}

.wizard-choice.selected {
  border-color: var(--orange);
  background: var(--orange-soft);
}

.wizard-check {
  width: 20px;
  height: 20px;
  border: 2px solid #c9c6bc;
  border-radius: 6px;
  background: #fff;
}

.wizard-choice.selected .wizard-check {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: inset 0 0 0 4px #fff;
}

.wizard-multi-footer {
  position: sticky;
  bottom: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(53, 43, 29, 0.1);
  backdrop-filter: blur(8px);
}

.ab-organization-general,
.ab-block-grid,
.ab-sector-result-grid,
.ab-event-block-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ab-organization-general {
  margin-bottom: 18px;
}

.ab-organization-general article,
.ab-block-grid article,
.ab-sector-result-grid article,
.ab-event-block-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.ab-organization-general article > span,
.ab-block-grid article > span,
.ab-sector-result-grid article > div > span,
.ab-event-block-grid article > div > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.ab-organization-general article > strong,
.ab-block-grid article > strong {
  display: block;
  margin: 8px 0 4px;
  font-family: inherit;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 500;
}

.ab-organization-panel {
  margin-top: 18px;
}

.ab-block-grid article > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.ab-block-grid em {
  font-style: normal;
  font-weight: 750;
}

.ab-sector-result-grid article > div {
  margin-bottom: 14px;
}

.ab-sector-result-grid article > div > span {
  color: var(--ink);
  font-size: 17px;
  font-weight: 750;
}

.ab-sector-result-grid dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px 14px;
  margin: 0;
}

.ab-sector-result-grid dt {
  color: var(--muted);
}

.ab-sector-result-grid dd {
  margin: 0;
  font-weight: 750;
}

.ab-event-block-grid article > div,
.ab-event-block-grid details > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ab-event-block-grid p {
  color: var(--muted);
}

.ab-event-block-grid details {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.ab-event-block-grid details > div {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

@media (max-width: 760px) {
  .ab-organization-general,
  .ab-block-grid,
  .ab-sector-result-grid,
  .ab-event-block-grid {
    grid-template-columns: 1fr;
  }
}

.extra-workforce-conflict-row td {
  background: #fffaf0;
}

.extra-workforce-conflict-text,
.extra-workforce-conflict {
  color: #a66a00 !important;
}

.extra-workforce-conflict {
  display: grid !important;
  gap: 2px;
  margin-top: 6px !important;
  line-height: 1.35;
}

.extra-workforce-conflict strong,
.extra-workforce-conflict span {
  color: inherit;
}

.ab-sales-period-filter {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(150px, 190px) minmax(150px, 190px) auto auto;
  gap: 12px;
  align-items: end;
  margin: 14px 0 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--canvas);
}

.ab-sales-period-filter > div { align-self: center; display: grid; gap: 3px; }
.ab-sales-period-filter > div strong { color: var(--ink); }
.ab-sales-period-filter > div small { color: var(--muted); }

.waiter-reversal-button { display:grid; gap:2px; justify-items:start; min-width:92px; padding:6px 8px; border:1px solid #f2c5b8; border-radius:10px; background:#fff7f3; color:var(--red); cursor:pointer; text-align:left; }
.waiter-reversal-button:hover, .waiter-reversal-button:focus-visible { border-color:var(--red); outline:none; }
.waiter-reversal-button strong { color:inherit; }
.waiter-reversal-button small { color:inherit; font-size:11px; }
.waiter-reversal-summary { display:flex; flex-wrap:wrap; gap:0; margin:0 0 10px; padding:0 0 9px; border-bottom:1px solid var(--line); }
.waiter-reversal-summary > div { display:flex; align-items:baseline; gap:6px; min-width:0; padding:2px 14px 2px 0; margin-right:14px; }
.waiter-reversal-summary > div + div { padding-left:14px; border-left:1px solid var(--line); }
.waiter-reversal-summary dt { color:var(--muted); font-size:12px; }
.waiter-reversal-summary dd { margin:0; color:var(--ink); font-weight:700; }
.waiter-reversal-summary small { color:var(--muted); font-weight:400; }
.waiter-reversal-dialog .dialog-header { padding-bottom:10px; }
.waiter-reversal-dialog .dialog-body { padding-top:10px; }
.dialog:has(.waiter-reversal-dialog) { width:min(1180px,calc(100vw - 30px)); }
.waiter-reversal-detail-table { max-height:min(62vh,620px); overflow:auto; }
.waiter-reversal-detail-table table { min-width:1000px; }
.waiter-reversal-detail-table th, .waiter-reversal-detail-table td { padding-top:8px; padding-bottom:8px; }
.waiter-reversal-detail-table td small { display:block; margin-top:3px; color:var(--muted); }
.waiter-reversal-legacy-note { margin:9px 0 0; color:var(--muted); font-size:12px; line-height:1.4; }
.waiter-reversal-legacy-note strong { color:var(--ink); }

@media (max-width: 900px) {
  .ab-sales-period-filter { grid-template-columns: 1fr 1fr; }
  .ab-sales-period-filter > div { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .ab-sales-period-filter { grid-template-columns: 1fr; }
  .ab-sales-period-filter > div { grid-column: auto; }
  .waiter-reversal-summary { display:grid; gap:3px; }
  .waiter-reversal-summary > div, .waiter-reversal-summary > div + div { padding:2px 0; margin:0; border:0; }
}

/* Thermas Kids */
.kids-hero,
.kids-card-head,
.kids-card-details,
.kids-actions,
.kids-tabs,
.kids-metrics,
.kids-lookup-result,
.kids-confirm-warning,
.kids-document-check,
.kids-privacy-note,
.kids-qr {
  display: flex;
}

.kids-hero {
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.kids-hero h2 { margin: 5px 0; font-size: clamp(28px, 4vw, 44px); }
.kids-hero p { margin: 0; color: var(--muted); }
.kids-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.kids-metrics article { display: grid; gap: 5px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.kids-metrics span { color: var(--muted); font-size: 13px; }
.kids-metrics strong { font: 700 32px/1 var(--display); }
.kids-metrics small { color: var(--muted); }
.kids-tabs { gap: 8px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 3px; }
.kids-tabs button { flex: 0 0 auto; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 10px 15px; font-weight: 700; }
.kids-tabs button.active { color: white; border-color: #176b4c; background: #176b4c; }
.kids-panel .panel-header { align-items: flex-end; }
.kids-search { width: min(100%, 410px); }
.kids-list { display: grid; gap: 12px; max-height: min(67vh, 760px); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.kids-card { padding: 16px; border: 1px solid var(--line); border-left: 4px solid #d5a220; border-radius: 16px; background: var(--card); }
.kids-card.present { border-left-color: #168057; background: #f5fcf8; }
.kids-card.left { border-left-color: #87918c; }
.kids-card-head { align-items: flex-start; justify-content: space-between; gap: 12px; }
.kids-card-head > div { display: grid; gap: 4px; }
.kids-card-head strong { font-size: 18px; }
.kids-card-head small { color: var(--muted); }
.badge.pending { color: #7d5700; background: #fff3ce; }
.badge.confirmed { color: #0e6746; background: #e5f6ee; }
.badge.cancelled { color: #8c2f27; background: #fce8e5; }
.kids-presence { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; background: #eff1ef; color: #59625e; font-size: 12px; font-weight: 800; }
.kids-presence.present { color: #0e6746; background: #dff4e9; }
.kids-card-details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.kids-card-details > div { display: grid; gap: 3px; min-width: 0; }
.kids-card-details span { color: var(--muted); font-size: 11px; text-transform: none; letter-spacing: .04em; }
.kids-card-details strong { overflow-wrap: anywhere; font-size: 13px; }
.kids-card-details small { color: var(--muted); }
.kids-notes { padding: 10px 12px; border-radius: 10px; background: #f5f3ec; }
.kids-actions { flex-wrap: wrap; gap: 8px; }
.kids-confirm-warning { align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid #e9c369; border-radius: 12px; background: #fff8e4; }
.kids-confirm-warning strong, .kids-confirm-warning span { display: block; }
.kids-document-check { align-items: flex-start; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.kids-document-check input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; }
.kids-privacy-note { padding: 12px; border-radius: 12px; color: #285343; background: #edf7f2; font-size: 13px; }
.kids-qr { flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.kids-qr img { width: min(100%, 360px); border-radius: 16px; }
.kids-qr strong { overflow-wrap: anywhere; }
.kids-qr small { max-width: 540px; color: var(--muted); }
.button-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.kids-lookup-result { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kids-lookup-result section { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.kids-lookup-result span, .kids-lookup-result small { color: var(--muted); }
.role-badge.kids { color: #176b4c; background: #e4f5ed; }

.kids-public-body { min-height: 100vh; margin: 0; color: #17251f; background: linear-gradient(155deg, #eef7f2, #fbf8ef 50%, #e7f2ec); }
.kids-public-shell { width: min(100% - 28px, 760px); margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 0 max(34px, env(safe-area-inset-bottom)); }
.kids-public-header { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; }
.kids-public-mark { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 14px; color: white; background: #176b4c; font-weight: 900; }
.kids-public-header div { display: grid; }
.kids-public-header span { font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.kids-public-header strong { font-size: 15px; }
.kids-public-intro { margin-bottom: 24px; }
.kids-public-intro h1 { max-width: 650px; margin: 8px 0; font: 700 clamp(35px, 8vw, 58px)/.98 var(--display); letter-spacing: -.03em; }
.kids-public-intro p { max-width: 600px; margin: 0; color: #5f6e67; font-size: 16px; line-height: 1.5; }
.kids-public-form { display: grid; gap: 16px; }
.kids-public-card { padding: clamp(18px, 4vw, 28px); border: 1px solid #d9e2dc; border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: 0 16px 45px rgba(31,67,51,.07); }
.kids-public-section-title { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 20px; }
.kids-public-section-title > span { display: grid; flex: 0 0 auto; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: white; background: #176b4c; font-weight: 800; }
.kids-public-section-title h2 { margin: 1px 0 3px; font-size: 23px; }
.kids-public-section-title p { margin: 0; color: #68756f; }
.kids-public-card .field input, .kids-public-card .field select, .kids-public-card .field textarea { font-size: 16px; }
.kids-public-privacy, .kids-public-guidance { margin-top: 15px; padding: 12px 14px; border-radius: 12px; color: #355e4e; background: #edf7f2; font-size: 13px; line-height: 1.45; }
.kids-public-choice { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid #dbe3de; border-radius: 14px; }
.kids-public-choice input { flex: 0 0 auto; width: 21px; height: 21px; margin-top: 1px; accent-color: #176b4c; }
.kids-public-choice span { display: grid; gap: 3px; }
.kids-public-choice small { color: #68756f; line-height: 1.4; }
.kids-public-choice.disabled { opacity: .55; background: #f4f5f4; }
.kids-public-choice.important { margin-top: 15px; border-color: #bdd8cb; background: #f3faf6; }
.kids-rules { display: grid; gap: 8px; }
.kids-rules p { display: flex; align-items: flex-start; gap: 9px; margin: 0; line-height: 1.45; }
.kids-rules p span { color: #176b4c; font-weight: 900; }
.kids-public-error { padding: 14px 16px; border-radius: 13px; color: #922d25; background: #fde9e6; font-weight: 700; }
.kids-public-submit { width: 100%; min-height: 56px; border: 0; border-radius: 15px; color: white; background: #176b4c; font-size: 16px; font-weight: 900; box-shadow: 0 12px 26px rgba(23,107,76,.22); }
.kids-public-submit:disabled { opacity: .65; }
.kids-public-success { padding: 36px 24px; border: 1px solid #cfe0d7; border-radius: 24px; background: white; text-align: center; box-shadow: 0 20px 55px rgba(31,67,51,.1); }
.kids-success-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%; color: white; background: #176b4c; font-size: 30px; font-weight: 900; }
.kids-public-success h2 { margin: 0 0 8px; font-size: 30px; }
.kids-public-success p { max-width: 520px; margin: 0 auto 20px; color: #617069; }
.kids-public-success > div { display: grid; gap: 4px; width: min(100%, 330px); margin: 0 auto 18px; padding: 16px; border-radius: 14px; background: #eef7f2; }
.kids-public-success > div span { color: #62726a; font-size: 12px; text-transform: none; }
.kids-public-success > div strong { font-size: 24px; letter-spacing: .05em; }
.kids-public-success button { min-height: 45px; padding: 0 18px; border: 1px solid #176b4c; border-radius: 12px; color: #176b4c; background: white; font-weight: 800; }

@media (max-width: 760px) {
  .kids-hero { align-items: stretch; flex-direction: column; }
  .kids-hero .report-actions-inline { display: grid; grid-template-columns: 1fr; }
  .kids-metrics { grid-template-columns: 1fr 1fr; }
  .kids-metrics article:last-child { grid-column: 1 / -1; }
  .kids-card-details { grid-template-columns: 1fr 1fr; }
  .kids-card-head { flex-direction: column; }
  .kids-panel .panel-header { align-items: stretch; flex-direction: column; }
  .kids-search { width: 100%; }
  .kids-lookup-result { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .kids-metrics { grid-template-columns: 1fr; }
  .kids-metrics article:last-child { grid-column: auto; }
  .kids-card-details { grid-template-columns: 1fr; }
  .kids-actions button { flex: 1 1 100%; }
  .kids-public-shell { width: min(100% - 18px, 760px); }
  .kids-public-header { margin-bottom: 25px; }
  .kids-public-card { border-radius: 18px; }
  .kids-public-card .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .dra-count-panel {
    padding: 14px;
  }

  .dra-count-panel .panel-heading,
  .dra-count-head {
    align-items: stretch;
  }

  .dra-count-panel .report-actions-inline,
  .dra-count-head .report-actions-inline {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .dra-count-panel .report-actions-inline button,
  .dra-count-head .report-actions-inline button {
    justify-content: center;
    min-height: 44px;
  }

  .dra-count-tabs button {
    min-width: min(78vw, 270px);
  }

  .dra-count-search {
    max-width: none;
  }

  .dra-count-table {
    max-height: 62vh;
    overflow-x: hidden;
  }

  .dra-count-table table,
  .dra-count-table tbody {
    display: block;
    width: 100%;
  }

  .dra-count-table thead {
    display: none;
  }

  .dra-count-table tbody tr {
    display: grid;
    gap: 7px;
    margin-bottom: 10px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--card);
  }

  .dra-count-table tbody td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    border: 0;
  }

  .dra-count-table tbody td:first-child {
    display: block;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
  }

  .dra-count-table tbody td[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: none;
  }

  .dra-count-entry-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    min-width: 0;
  }

  .dra-count-entry-form input {
    width: 100%;
    min-height: 44px;
    font-size: 18px;
  }

  .dra-count-entry-form button {
    min-height: 44px;
  }
}

/* Padrão global para listas extensas. Regras específicas, como as do café da
   manhã e do quadro de solicitações, têm prioridade por usarem maior
   especificidade. */
:root { --list-viewport-height: min(70vh, 680px); --list-scroll-thumb: #a39f91; }
:where(
  .table-wrap,
  .quick-list,
  .user-list,
  .registry-grid.registry-list,
  .product-list,
  .management-product-list,
  .dispatch-history,
  .butcher-employee-list,
  .extra-supervisor-list,
  .ab-cost-list,
  .ab-waste-list,
  .ab-inventory-history,
  .ab-cmv-other-sector-list,
  .dra-alert-list,
  .dra-comparison-list,
  .wizard-choice-grid
) {
  max-height: var(--list-viewport-height);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

:where(.table-wrap) {
  overflow-x: auto;
  min-width: 0;
  max-width: 100%;
}

:where(.table-wrap) thead,
.product-list-header {
  position: sticky;
  z-index: 3;
  top: 0;
  background: #f7f6f1;
  box-shadow: 0 1px 0 var(--line);
}

@media screen {
  :where(.table-wrap) thead th { padding-top: 8px; padding-bottom: 8px; background: #f7f6f1; }
  :where(.table-wrap) tbody > tr:not([class]):hover > td { background: #faf9f5; }
}

:where(
  .table-wrap,
  .quick-list,
  .user-list,
  .registry-grid.registry-list,
  .product-list,
  .management-product-list,
  .dispatch-history,
  .butcher-employee-list,
  .extra-supervisor-list,
  .ab-cost-list,
  .ab-waste-list,
  .ab-inventory-history,
  .ab-cmv-other-sector-list,
  .dra-alert-list,
  .dra-comparison-list,
  .wizard-choice-grid
)::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

:where(
  .table-wrap,
  .quick-list,
  .user-list,
  .registry-grid.registry-list,
  .product-list,
  .management-product-list,
  .dispatch-history,
  .butcher-employee-list,
  .extra-supervisor-list,
  .ab-cost-list,
  .ab-waste-list,
  .ab-inventory-history,
  .ab-cmv-other-sector-list,
  .dra-alert-list,
  .dra-comparison-list,
  .wizard-choice-grid
)::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--list-scroll-thumb);
  background-clip: padding-box;
}

@media (max-width: 760px) {
  :root { --list-viewport-height: min(62vh, 540px); }
  :where(
    .table-wrap,
    .quick-list,
    .user-list,
    .registry-grid.registry-list,
    .product-list,
    .management-product-list,
    .dispatch-history,
    .butcher-employee-list,
    .extra-supervisor-list,
    .ab-cost-list,
    .ab-waste-list,
    .ab-inventory-history,
    .ab-cmv-other-sector-list,
    .dra-alert-list,
    .dra-comparison-list,
    .wizard-choice-grid
  ) {
    max-height: var(--list-viewport-height);
  }
}

@media (max-width: 760px) {
  .dra-count-panel .dra-count-table {
    max-height: 62vh;
    overflow-x: hidden;
  }

  .dra-count-panel .dra-count-entry-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    min-width: 0;
  }

  .dra-count-panel .dra-count-entry-form input {
    width: 100%;
    min-height: 44px;
    font-size: 18px;
  }
}

.dra-add-entry-button {
  display: inline-grid;
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid #147052;
  border-radius: 50%;
  color: #fff;
  background: #1b8663;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.dra-add-entry-button:hover {
  border-color: #105b43;
  background: #146c50;
}

.dra-add-entry-button svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.dra-edit-entry-button {
  display: inline-grid;
  width: 32px;
  min-width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 1px solid #b8c9c0;
  border-radius: 8px;
  color: #17654d;
  background: #edf7f2;
  font-size: 16px;
  line-height: 1;
}

.dra-entry-edit-list {
  display: grid;
  gap: 9px;
  max-height: 52vh;
  overflow-y: auto;
}

.dra-count-edit-dialog .dialog-header > div {
  min-width: 0;
}

.dra-count-edit-dialog .dialog-header .dra-count-product-title {
  overflow-wrap: anywhere;
  font-family: inherit;
  font-size: 25px;
  font-weight: 850;
  line-height: 1.12;
}

.dra-count-edit-dialog .dialog-header .dra-count-edit-caption {
  margin-top: 6px !important;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .01em;
}

.dra-entry-edit-help {
  display: grid;
  justify-items: start;
  gap: 7px;
  margin-top: 10px;
}

.dra-entry-edit-help small {
  max-width: 420px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.dra-add-entry-row {
  margin-top: 0;
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}

.dra-entry-edit-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(110px, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

@media (max-width: 760px) {
  .dra-add-entry-button,
  .dra-edit-entry-button {
    width: 32px;
    min-width: 32px;
    height: 32px;
  }

  .dra-count-edit-dialog .dialog-header .dra-count-product-title {
    font-size: 21px;
  }

  .dra-count-edit-dialog .dialog-header .dra-count-edit-caption {
    font-size: 10px;
  }

  .dra-count-edit-dialog .dialog-body {
    padding-block: 12px;
  }
}

.wizard-choice-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: var(--orange-dark);
  background: var(--orange-soft);
  font-size: 18px;
  font-weight: 850;
}

.wizard-choice strong,
.wizard-choice small {
  display: block;
}

.wizard-choice strong {
  font-size: 13px;
}

.wizard-choice small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wizard-arrow {
  color: #c2c0b7;
  font-size: 24px;
}

.wizard-selection {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
  margin: -8px 0 24px;
  padding: 12px 14px;
  border-radius: 11px;
  background: #f6f5f0;
  font-size: 11px;
}

.wizard-selection span {
  color: var(--muted);
}

.wizard-selection strong {
  margin-right: 12px;
}

.wizard-final {
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
}

.label-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}

.label-preview-shell {
  position: sticky;
  top: 24px;
  align-self: start;
}

.label-preview {
  display: grid;
  grid-template-rows: 18% 7% 2px calc(41.6667% - 2px) 2px 28% calc(5.3333% - 2px);
  aspect-ratio: 60 / 64;
  width: 100%;
  padding: 18px;
  border: 1px solid #b7b7b2;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(30, 29, 26, 0.1);
  font-family: Arial, sans-serif;
}

.preview-qr {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  width: 97px;
  height: 97px;
  border: 2px solid #111;
  background:
    linear-gradient(90deg, #111 20%, transparent 20% 40%, #111 40% 60%, transparent 60% 80%, #111 80%),
    linear-gradient(#111 20%, #fff 20% 40%, #111 40% 60%, #fff 60% 80%, #111 80%);
  background-blend-mode: multiply;
}

.preview-qr span {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  text-shadow: 0 1px 2px #000;
}

.preview-qr small {
  padding: 1px 2px;
  color: #fff;
  background: #111;
  font-size: 5px;
  font-weight: 900;
}

.preview-product {
  min-height: 0;
  padding: 1px 0 7px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.04;
  text-transform: none;
}

.preview-storage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0 7px;
  font-size: 13px;
  text-transform: none;
}

.preview-rule {
  width: 100%;
  margin: 0;
  background: #111;
}

.preview-detail-grid {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 11px 9px;
  padding: 1px 0 7px;
  font-size: 13px;
  line-height: 1.15;
  align-content: center;
}

.preview-detail-grid strong {
  font-weight: 900;
}

.preview-detail-grid b {
  font-weight: 400;
}

.preview-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 106px;
  align-items: center;
  gap: 10px;
  margin-top: 0;
}

.preview-bottom-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-size: 11px;
  line-height: 1.15;
}

.preview-bottom-copy > div strong {
  font-weight: 900;
}

.preview-bottom-copy small {
  display: block;
  font-size: 9px;
  line-height: 1.15;
}

.preview-company {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  text-transform: none;
}

.preview-label-id {
  align-self: center;
  margin-top: 0;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.preview-note {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.label-layout-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.label-layout-heading strong,
.label-layout-heading small {
  display: block;
}

.label-layout-heading small {
  margin-top: 5px;
}

.printer-layout-panel {
  margin-top: 18px;
}

.printer-layout-panel .panel-header > strong {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.printer-layout-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(220px, 1fr);
  align-items: center;
  gap: 30px;
}

.printer-label-preview-frame {
  position: relative;
  aspect-ratio: 60 / 64;
  width: 100%;
  overflow: hidden;
  border: 3px solid #111;
  background: #fff;
  box-shadow: 0 16px 40px rgba(30, 29, 26, 0.1);
  font-family: Arial, sans-serif;
}

.printer-label-preview-frame::before,
.printer-label-preview-frame::after {
  position: absolute;
  z-index: 2;
  padding: 3px 6px;
  color: #fff;
  background: #111;
  font-size: 9px;
  font-weight: 800;
}

.printer-label-preview-frame::before {
  content: "58 mm";
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.printer-label-preview-frame::after {
  content: "64 mm";
  top: 50%;
  left: 0;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left top;
}

.printer-label-preview-content {
  position: absolute;
  inset: 18px;
  display: grid;
  grid-template-rows: 18% 7% 2px calc(41.6667% - 2px) 2px 28% calc(5.3333% - 2px);
  transition: transform 160ms ease;
  transform-origin: center;
}

.printer-label-preview-content .preview-product {
  min-height: 0;
}

.printer-label-preview-content .preview-qr {
  transition: width 160ms ease, height 160ms ease;
}

.preview-address {
  min-height: 9px;
  margin-top: 3px;
  font-size: 8px;
}

.printer-layout-help {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.printer-layout-help ol {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.filter-row,
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-row {
  margin-bottom: 18px;
}

.filter,
.tab {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.filter.active,
.tab.active {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.registry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.registry-grid.registry-list {
  grid-template-columns: 1fr;
  gap: 0;
  max-height: min(68vh, 680px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.registry-list .registry-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 64px;
  padding: 10px 14px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.registry-list > .registry-card:first-child {
  border-top: 0;
}

.registry-list .registry-card.inactive {
  background: #f7f6f3;
  opacity: .76;
}

.registry-list .registry-card .card-top {
  align-items: center;
}

.registry-list .registry-card .registry-actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
  margin: 0;
  padding: 0 0 0 14px;
  border: 0;
}

.workforce-list-header,
.workforce-registry-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) 90px minmax(180px, .9fr) minmax(300px, 1.8fr) 80px !important;
  align-items: center;
  gap: 14px;
}

.workforce-list-header {
  padding: 10px 14px;
  color: var(--muted);
  background: #f7f6f1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: none;
}

.workforce-registry-row > div,
.workforce-registry-row > span,
.workforce-registry-row > small {
  min-width: 0;
}

.workforce-person,
.workforce-registry-row > div[data-label="Escala"] {
  display: grid;
  gap: 3px;
}

.workforce-person small,
.workforce-registry-row > div[data-label="Escala"] small,
.workforce-week {
  color: var(--muted);
}

.employee-list-header,
.employee-registry-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.3fr) minmax(78px, .55fr) minmax(125px, .8fr) minmax(165px, 1fr) minmax(140px, .95fr) 68px 88px !important;
  align-items: center;
  gap: 12px;
}

.employee-list-header {
  position: sticky;
  z-index: 4;
  top: 0;
  padding: 10px 14px;
  color: var(--muted);
  background: #f7f6f1;
  box-shadow: 0 1px 0 var(--line);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: none;
}

.employee-registry-row > * {
  min-width: 0;
}

.employee-registry-row {
  font-size: 12px;
  line-height: 1.4;
}

.employee-registry-row strong {
  font-size: 13px;
  line-height: 1.35;
}

.employee-registry-name,
.employee-registry-row > div[data-label="Números"],
.employee-registry-row > div[data-label="Escala / função"] {
  display: grid;
  gap: 3px;
}

.employee-registry-row small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.employee-registry-name > small {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.employee-registry-name > small span,
.employee-link-badge {
  width: fit-content;
  padding: 3px 6px;
  border-radius: 999px;
  color: #1d664b;
  background: #e8f4ed;
  font-size: 9px;
  font-weight: 800;
}

.employee-registry-row .registry-actions {
  width: 88px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 6px;
  padding-left: 0 !important;
}

.employee-registry-row .registry-actions > small {
  width: 100%;
  font-size: 10px;
  line-height: 1.3;
  text-align: left;
}

.employee-registry-row > div[data-label="Setor"] {
  overflow-wrap: anywhere;
}

.employee-registry-row > .badge {
  width: 68px;
  justify-content: center;
  padding-inline: 6px;
  font-size: 10px;
}

.workforce-week {
  overflow: hidden;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-search-bar { display: grid; grid-template-columns: minmax(240px, 1.7fr) repeat(3, minmax(160px, 1fr)) auto; align-items: end; gap: 12px; margin-bottom: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.product-search-bar > small { color: var(--muted); white-space: nowrap; }
.registry-search-bar { display: grid; grid-template-columns: minmax(260px, 560px) auto auto; align-items: end; gap: 14px; margin-bottom: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.registry-search-bar > small { padding-bottom: 13px; color: var(--muted); white-space: nowrap; }
.registry-search-bar .product-search-control input { width: 100%; }
.registry-inactive-toggle { display: inline-flex; min-height: 44px; padding: 0 13px; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 11px; background: #faf9f5; color: var(--ink); font-size: 12px; cursor: pointer; white-space: nowrap; }
.registry-inactive-toggle input { width: 17px; height: 17px; margin: 0; accent-color: var(--orange); }
@media (max-width: 620px) {
  .registry-search-bar { grid-template-columns: minmax(0, 1fr); }
  .registry-search-bar > small { padding-bottom: 0; }
}
.product-filter-field { display: grid; gap: 6px; }
.product-filter-field > span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: none; }
.product-filter-field select, .product-filter-field input { width: 100%; }
.product-search-control { position: relative; }
.product-search-control i { position: absolute; top: 50%; left: 14px; color: var(--muted); font-size: 21px; font-style: normal; transform: translateY(-52%); }
.product-search-control input { width: 100%; padding-left: 44px; }
.product-list { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.product-list-header, .product-list-row { display: grid; grid-template-columns: minmax(220px, 1.7fr) minmax(130px, 1fr) minmax(190px, 1.25fr) minmax(170px, 1.2fr) auto; align-items: center; gap: 16px; }
.product-list-header { padding: 12px 16px; color: var(--muted); background: #f7f6f1; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: none; }
.product-list-row { min-height: 88px; padding: 14px 16px; border-top: 1px solid var(--line); }
.product-list-main { display: grid; justify-items: start; gap: 4px; min-width: 0; }
.product-list-main > strong { overflow: hidden; max-width: 100%; font-size: 14px; font-weight: 700; line-height: 1.35; text-transform: none; text-overflow: ellipsis; white-space: nowrap; }
.product-list-main small, .product-list-cell small { display: block; margin-top: 4px; color: var(--muted); }
.product-list-cell .product-subgroup { color: var(--orange-dark); font-weight: 800; }
.product-list-cell { min-width: 0; font-size: 12px; }
.product-list-validity { display: flex; flex-wrap: wrap; gap: 5px; }
.product-list-validity span { padding: 5px 7px; border-radius: 7px; background: #f3f2ed; color: var(--muted); font-size: 10px; }
.product-list-validity strong { color: var(--ink); }
.product-list-validity > small { flex-basis: 100%; color: var(--muted); font-size: 9px; line-height: 1.3; }
.product-list-actions .registry-actions { flex-wrap: nowrap; margin: 0; padding: 0; border: 0; }
.product-list-empty { border: 0; }
.muted-text { color: var(--muted); }
.printer-routing-row { grid-template-columns: auto minmax(130px, 1fr) minmax(190px, .9fr) auto; }
.printer-routing-row select { width: 100%; }
.printer-routing-actions { display: flex; justify-content: flex-end; margin-top: 16px; }

.breakfast-management { margin-top: 18px; padding: 22px; border: 1px solid #dfe7df; border-radius: 18px; background: linear-gradient(135deg, #fff 0%, #f5faf6 100%); box-shadow: var(--shadow); }
.breakfast-management .panel-header { margin-bottom: 18px; }
.breakfast-management .panel-header h2 { margin: 4px 0; text-transform: none; }
.breakfast-management-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.breakfast-management-metrics article { padding: 16px; border: 1px solid #e0e8e1; border-radius: 13px; background: rgba(255,255,255,.88); }
.breakfast-management-metrics span, .breakfast-management-metrics small { display: block; color: var(--muted); }
.breakfast-management-metrics span { font-size: 11px; font-weight: 700; }
.breakfast-management-metrics strong { display: block; margin: 7px 0 5px; font-size: 25px; }
.breakfast-management-metrics small { font-size: 10px; line-height: 1.4; }
.trend-up { color: var(--orange-dark); }
.trend-down { color: var(--green); }
.breakfast-management-details { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, .8fr); gap: 18px; margin-top: 20px; }
.breakfast-management-details h3 { margin: 0 0 12px; font-size: 14px; }
.management-product-list { overflow: hidden; border: 1px solid #e0e8e1; border-radius: 13px; background: #fff; }
.management-product-list > div { display: grid; grid-template-columns: 28px minmax(150px, 1fr) 90px 130px; align-items: center; gap: 10px; padding: 11px 13px; border-top: 1px solid #edf1ed; font-size: 12px; }
.management-product-list > div:first-child { border-top: 0; }
.management-product-list > div > span:nth-of-type(2) { text-align: right; font-weight: 700; }
.management-product-list small { color: var(--muted); text-align: right; }
.management-rank { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: var(--green); background: var(--green-soft); font-size: 10px; font-weight: 800; }
.management-summary { padding: 16px; border-radius: 13px; color: #fff; background: #283b32; }
.management-summary > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.12); }
.management-summary span { color: rgba(255,255,255,.66); font-size: 11px; }
.management-summary strong { max-width: 58%; font-size: 12px; text-align: right; }

.registry-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.registry-card .card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.registry-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
}

.registry-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.product-shelf-lives {
  display: grid;
  gap: 5px;
  margin-top: 12px;
}

.product-shelf-lives span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 11px;
}

.product-shelf-lives strong {
  color: var(--ink);
}

.shelf-life-field input {
  border-color: #efc895;
  background: #fffaf3;
}

.breakfast-product-config {
  margin-top: 6px;
  padding: 16px;
  border: 1px solid #efc895;
  border-radius: 13px;
  background: var(--orange-soft);
}

.breakfast-enabled-label {
  font-size: 13px;
}

.breakfast-product-config > small {
  display: block;
  margin: 6px 0 12px;
}

.breakfast-day-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 8px;
}

.breakfast-measure-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.breakfast-closing-only-option {
  margin: 4px 0 0;
  padding: 10px 12px;
  border: 1px solid #d7c6a3;
  border-radius: 9px;
  background: #fff;
}

.breakfast-day-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.field input[type="checkbox"],
.field input[type="radio"],
.breakfast-day-options input[type="checkbox"],
.checkbox-label input[type="checkbox"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  flex: 0 0 16px;
  padding: 0;
  margin: 0;
  border-radius: 4px;
  accent-color: #1677ee;
  box-shadow: none;
}

.product-sector-config .breakfast-day-options {
  grid-template-columns: repeat(4, minmax(92px, 1fr));
}

.product-sector-config .breakfast-day-options label {
  justify-content: flex-start;
  line-height: 1.25;
}

.breakfast-product-badge {
  display: grid;
  gap: 3px;
  margin-top: 12px;
  padding: 9px 10px;
  border-radius: 9px;
  color: #7b4a12;
  background: var(--orange-soft);
  font-size: 10px;
}

.breakfast-product-badge strong,
.breakfast-product-badge span {
  display: block;
}

.product-code-badge {
  display: inline-block;
  margin-bottom: 7px;
  padding: 4px 7px;
  border-radius: 6px;
  color: #375943;
  background: #edf7ef;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.registry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

button.danger {
  border: 1px solid #e8b8b1;
  background: #fff6f4;
  color: #a33327;
}

button.danger:hover {
  background: #fde9e6;
}

.production-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
}

.scan-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 10px;
}

.scan-help {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.production-lookup-panel {
  min-height: 330px;
}

.production-empty {
  display: grid;
  min-height: 278px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.production-empty strong {
  margin-top: 13px;
  font-family: inherit;
  font-size: 23px;
  font-weight: 500;
}

.production-empty p {
  max-width: 360px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.production-qr-symbol {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid #f2c6b2;
  border-radius: 20px;
  color: var(--orange-dark);
  background:
    linear-gradient(45deg, rgba(242, 106, 46, 0.08) 25%, transparent 25% 75%, rgba(242, 106, 46, 0.08) 75%),
    var(--orange-soft);
  background-size: 12px 12px;
  font-size: 34px;
  font-weight: 900;
}

.production-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.production-result-head h2 {
  margin: 6px 0 4px;
  font-family: inherit;
  font-size: 29px;
  font-weight: 500;
}

.production-result-head p {
  margin: 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
}

.production-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.production-details div {
  padding: 12px;
  border-radius: 11px;
  background: #f7f6f2;
}

.production-details dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: none;
}

.production-details dd {
  margin: 5px 0 0;
  font-size: 12px;
  font-weight: 750;
}

.production-close-form {
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.closed-callout {
  display: grid;
  gap: 4px;
  padding: 15px;
  border: 1px solid #b8dfcd;
  border-radius: 12px;
  color: var(--green);
  background: var(--green-soft);
}

.closed-callout strong {
  font-size: 12px;
}

.closed-callout span {
  font-size: 11px;
}

.production-batch-panel { margin-top: 18px; }
.production-batch-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.production-batch-actions > strong { padding: 8px 11px; border-radius: 999px; color: var(--orange-dark); background: var(--orange-soft); font-size: 11px; }
.production-batch-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) auto; align-items: end; gap: 12px; margin-bottom: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #f8f7f3; }
.production-batch-toolbar > div { display: flex; flex-wrap: wrap; gap: 7px; }
.production-batch-table { max-height: 470px; }
.production-batch-table thead { position: sticky; top: 0; z-index: 1; background: #fff; }
.production-batch-row { transition: background 120ms ease; }
.production-batch-row.selected { background: #fff4ed; }
.production-batch-row input { width: 18px; height: 18px; accent-color: var(--orange); }
.production-batch-row td { white-space: nowrap; }
.production-batch-row td:nth-child(2) { min-width: 190px; white-space: normal; }
.production-batch-summary { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.production-batch-summary span { padding: 7px 9px; border-radius: 9px; color: var(--ink); background: #f4f2eb; font-size: 10px; }
.production-batch-summary strong { color: var(--orange-dark); }

.continuous-scan-explanation {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 11px;
  color: #624116;
  background: var(--orange-soft);
  font-size: 12px;
  line-height: 1.45;
}

.continuous-scan-progress {
  display: grid;
  gap: 10px;
  padding: 16px 24px 4px;
}

.continuous-scan-progress > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 13px;
  border-radius: 11px;
  background: #f4f2eb;
}

.continuous-scan-progress > div span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.continuous-scan-progress > div strong {
  color: var(--orange-dark);
  font-size: 24px;
}

.continuous-scan-status {
  min-height: 20px;
  margin: 0;
  font-size: 12px;
  font-weight: 750;
}

.continuous-scan-status.waiting { color: var(--muted); }
.continuous-scan-status.success { color: var(--green); }
.continuous-scan-status.duplicate { color: #8a6518; }
.continuous-scan-status.error { color: var(--red); }

.continuous-scan-progress ul {
  display: grid;
  gap: 5px;
  max-height: 130px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.continuous-scan-progress li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 11px;
}

.continuous-scan-progress li span,
.continuous-scan-progress li.empty { color: var(--muted); }

.scanner-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin: 0 24px;
  border-radius: 16px;
  background: #111;
}

.scanner-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-photo-stage {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 34px 24px;
  text-align: center;
}

.scanner-photo-stage p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
}

.scanner-photo-stage small {
  min-height: 32px;
  max-width: 440px;
  color: var(--muted);
  line-height: 1.4;
}

.scanner-photo-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  cursor: pointer;
}

.scanner-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54%;
  aspect-ratio: 1;
  border: 3px solid var(--orange);
  border-radius: 17px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%);
}

.report-heading {
  align-items: flex-end;
}

.report-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.report-actions .field {
  min-width: 190px;
}

.report-filter-panel {
  margin-bottom: 18px;
}

.report-filter-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.breakfast-date-field {
  min-width: 190px;
}

.breakfast-menu-panel {
  overflow: hidden;
}

.report-type-tabs { margin-bottom: 18px; }
.breakfast-selected-day .breakfast-report-day { border-color: var(--orange); }

.report-actions-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.breakfast-menu-alert { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 18px; padding: 15px 17px; border: 1px solid; border-radius: 14px; }
.breakfast-menu-alert > span { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border-radius: 50%; font-weight: 900; }
.breakfast-menu-alert strong { display: block; font-size: 13px; }
.breakfast-menu-alert p { margin: 4px 0 0; font-size: 11px; line-height: 1.45; }
.breakfast-menu-alert.warning { border-color: #efc675; color: #71500f; background: #fff8e7; }
.breakfast-menu-alert.warning > span { color: #fff; background: #d79517; }
.breakfast-menu-alert.complete { border-color: #a9d1bd; color: #245d47; background: #eef8f2; }
.breakfast-menu-alert.complete > span { color: #fff; background: var(--green); }
.breakfast-closing-only-note { display: flex; align-items: flex-start; gap: 13px; margin-top: 14px; padding: 15px 17px; border: 1px solid #b8cde3; border-radius: 14px; color: #264f75; background: #f0f6fc; }
.breakfast-closing-only-note > span { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #dcebf8; }
.breakfast-closing-only-note strong { display: block; font-size: 13px; }
.breakfast-closing-only-note p { margin: 4px 0 0; font-size: 11px; line-height: 1.45; }
.breakfast-week-report { display: grid; gap: 10px; }
.breakfast-report-day { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.breakfast-report-day.active { border-color: var(--orange); box-shadow: inset 3px 0 var(--orange); }
.breakfast-report-day > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 14px; background: #f7f6f1; }
.breakfast-report-day > header div { display: flex; align-items: baseline; gap: 9px; }
.breakfast-report-day > header span { font-size: 13px; font-weight: 800; }
.breakfast-report-day > header strong { color: var(--muted); font-size: 10px; }
.breakfast-report-day > header b { padding: 4px 7px; border-radius: 999px; color: var(--orange-dark); background: var(--orange-soft); font-size: 9px; }
.breakfast-report-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; padding: 5px 14px 10px; }
.breakfast-report-items > div { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid #efeee8; }
.breakfast-report-items > .no-product-code { grid-template-columns: minmax(0, 1fr); }
.breakfast-report-items > div > div { min-width: 0; }
.breakfast-report-items strong, .breakfast-report-items small { display: block; }
.breakfast-report-items strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.breakfast-report-items small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.breakfast-report-items p { grid-column: 1 / -1; margin: 9px 0 3px; color: var(--muted); font-size: 11px; }
.breakfast-area-block { min-width: 0; padding: 8px 0; }
.breakfast-area-block h4 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 4px; padding: 7px 9px; border-radius: 8px; color: var(--ink); background: var(--orange-soft); font-size: 11px; }
.breakfast-area-block h4 span { color: var(--muted); font-size: 9px; }
.breakfast-area-block > div { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 9px; padding: 9px 2px; border-bottom: 1px solid #efeee8; }
.breakfast-area-block > div > div { min-width: 0; }
.breakfast-area-block > .breakfast-menu-product { grid-template-columns: minmax(0, 1fr) auto; }
.breakfast-menu-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.breakfast-request-shortcut { white-space: nowrap; }
.breakfast-area-table-heading th { padding: 10px 12px; color: var(--ink); background: var(--orange-soft); text-align: left; font-size: 12px; }
.breakfast-area-table-heading th span { margin-left: 7px; color: var(--muted); font-size: 9px; font-weight: 600; }

.breakfast-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.breakfast-day-card {
  display: flex;
  min-height: 160px;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.breakfast-day-card.active {
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px var(--orange);
}

.breakfast-day-card span,
.breakfast-day-card strong {
  display: block;
}

.breakfast-day-card span {
  font-size: 13px;
  font-weight: 800;
}

.breakfast-day-card strong {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.breakfast-day-card p {
  flex: 1;
  margin: 12px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.breakfast-header-fields {
  margin-bottom: 18px;
}

.dispatch-day-total {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--green);
  background: #edf7ef;
  font-size: 13px;
  white-space: nowrap;
}

.breakfast-dispatch-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 0.5fr) auto;
  align-items: end;
  gap: 12px;
  padding: 16px;
  border: 1px solid #efc895;
  border-radius: 14px;
  background: var(--orange-soft);
}

.breakfast-requests-panel { margin-top: 18px; }
.breakfast-request-header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.afternoon-coffee-live { display: grid; grid-template-columns: auto auto; align-items: center; gap: 1px 10px; min-width: 190px; padding: 9px 12px; border: 1px solid #efc895; border-radius: 12px; background: var(--orange-soft); }
.afternoon-coffee-live span { color: var(--orange-dark); font-size: 9px; font-weight: 900; text-transform: none; }
.afternoon-coffee-live strong { grid-row: 1 / 3; grid-column: 2; color: var(--orange-dark); font-family: inherit; font-size: 28px; font-weight: 500; }
.afternoon-coffee-live small { color: var(--muted); font-size: 8px; }
.breakfast-request-unavailable { display: flex; align-items: center; gap: 10px; margin: -2px 0 14px; padding: 11px 13px; border: 1px solid #e2d6bb; border-radius: 11px; color: #6f5929; background: #fff9e9; font-size: 11px; }
.breakfast-request-unavailable strong { white-space: nowrap; }
.mobile-sound-activation { display: flex; width: 100%; align-items: center; gap: 10px; margin: -2px 0 14px; padding: 12px 14px; border: 1px solid #8bb1d5; border-radius: 11px; color: #244f76; background: #eef6fd; text-align: left; cursor: pointer; }
.mobile-sound-activation strong, .mobile-sound-activation span { display: block; }
.mobile-sound-activation strong { white-space: nowrap; font-size: 11px; }
.mobile-sound-activation span { color: #4d6f8d; font-size: 10px; }
.breakfast-request-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: -3px 0 16px; }
.breakfast-request-filters button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.breakfast-request-filters button.active { border-color: var(--orange); color: var(--orange-dark); background: var(--orange-soft); }
.breakfast-kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.breakfast-kanban-column { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #f7f6f1; }
.breakfast-kanban-column > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.breakfast-kanban-column > header strong, .breakfast-kanban-column > header small { display: block; }
.breakfast-kanban-column > header strong { font-size: 13px; }
.breakfast-kanban-column > header small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.breakfast-kanban-column > header > span { display: grid; min-width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #fff; font-size: 11px; font-weight: 900; }
.breakfast-kanban-column.requested { border-top: 3px solid #e09b24; }
.breakfast-kanban-column.preparing { border-top: 3px solid #4d83b3; }
.breakfast-kanban-column.delivered { border-top: 3px solid var(--green); }
.breakfast-kanban-card-list { display: grid; gap: 9px; }
.breakfast-kanban-card-list.scrollable { max-height: 660px; overflow-y: auto; padding-right: 5px; scrollbar-gutter: stable; }
.breakfast-kanban-card { padding: 12px; border: 1px solid #e3e1d9; border-radius: 12px; background: #fff; box-shadow: 0 5px 16px rgba(37, 34, 25, .05); }
.breakfast-kanban-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.breakfast-kanban-card-head span { padding: 3px 6px; border-radius: 999px; color: var(--orange-dark); background: var(--orange-soft); font-size: 8px; font-weight: 900; text-transform: none; }
.breakfast-kanban-card-head time { color: var(--muted); font-size: 8px; }
.breakfast-kanban-card > strong, .breakfast-kanban-card > b, .breakfast-kanban-card > small { display: block; }
.breakfast-kanban-card > strong { margin-top: 9px; color: var(--ink); font-size: 15px; font-weight: 850; line-height: 1.25; }
.breakfast-kanban-card > b { margin-top: 5px; font-size: 11px; line-height: 1.35; }
.breakfast-kanban-card > b.quantity-pending { color: var(--muted); font-weight: 600; }
.breakfast-kanban-card > b.quantity-delivered { color: var(--green); font-weight: 800; }
.breakfast-kanban-card > p { margin: 7px 0; color: var(--ink); font-size: 10px; }
.breakfast-kanban-card > small { margin-top: 6px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.breakfast-kanban-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.breakfast-kanban-empty { margin: 20px 0; color: var(--muted); font-size: 10px; text-align: center; }
.request-product-summary { margin-bottom: 16px; padding: 14px; border: 1px solid #efc895; border-radius: 13px; background: var(--orange-soft); }
.request-product-summary span, .request-product-summary strong, .request-product-summary small { display: block; }
.request-product-summary span { color: var(--orange-dark); font-size: 9px; font-weight: 900; text-transform: none; }
.request-product-summary strong { margin-top: 5px; font-size: 18px; }
.request-product-summary small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.breakfast-request-product-list { display: grid; gap: 16px; margin-top: 16px; max-height: 52vh; overflow: auto; }
.breakfast-request-product-list section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.breakfast-request-product-list h3 { grid-column: 1 / -1; margin: 0; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 12px; }
.breakfast-request-product-list button { display: grid; gap: 3px; padding: 11px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; }
.breakfast-request-product-list button:hover { border-color: var(--orange); background: var(--orange-soft); }
.breakfast-request-product-list button > strong { font-size: 11px; }
.breakfast-request-product-list button > small { color: var(--muted); font-size: 9px; }

.breakfast-dispatch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 22px;
  margin-top: 20px;
}

.breakfast-dispatch-layout h3 {
  margin: 0 0 10px;
  font-size: 13px;
}

.dispatch-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(135px, 1fr));
  gap: 9px;
}

.dispatch-summary-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.dispatch-summary-card span,
.dispatch-summary-card strong,
.dispatch-summary-card small {
  display: block;
}

.dispatch-summary-card span {
  min-height: 30px;
  font-size: 11px;
  font-weight: 700;
}

.dispatch-summary-card strong {
  margin-top: 6px;
  color: var(--green);
  font-size: 18px;
}

.dispatch-summary-card small,
.dispatch-history-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.dispatch-history {
  display: grid;
  gap: 7px;
}

.breakfast-dispatch-scroll {
  max-height: 390px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-gutter: stable;
}

.dispatch-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.dispatch-history-item strong,
.dispatch-history-item span {
  display: block;
}

.dispatch-history-item strong {
  font-size: 12px;
}

.breakfast-closed-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  color: #42614a;
  background: #edf7ef;
  font-size: 12px;
}

.breakfast-metric-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.breakfast-metric-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
}

.breakfast-metric-list > div:last-child { border-bottom: 0; }
.breakfast-metric-list span { color: var(--muted); font-size: 11px; }
.breakfast-metric-list strong { color: var(--ink); font-size: 15px; text-align: right; }

.accumulated-output[readonly] {
  color: var(--green);
  background: #f0f7f1;
  font-weight: 800;
}

.closing-only-row { background: #f4f8fc; }
.closing-only-row td:first-child small { display: block; margin-top: 4px; color: #35658f; font-size: 9px; }
.closing-issued-quantity { border-color: #86acd0; background: #fff; font-weight: 800; }

.breakfast-entry-table .table-input {
  width: 100px;
  min-width: 82px;
  padding: 8px;
}

.leftover-label-controls {
  display: grid;
  min-width: 155px;
  gap: 7px;
}

.leftover-label-controls select {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 11px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 12px;
}

.breakfast-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.breakfast-submit-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.breakfast-menu-editor {
  display: grid;
  gap: 10px;
}

.buffet-product-picker {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.buffet-product-picker-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 14px rgb(33 37 33 / 6%);
}

.buffet-product-picker-head strong,
.buffet-product-picker-head small {
  display: block;
}

.buffet-product-picker-head small {
  margin-top: 3px;
  color: var(--muted);
}

.buffet-product-search-field {
  position: sticky;
  top: 78px;
  z-index: 2;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 14px rgb(33 37 33 / 6%);
}

.buffet-product-search-empty {
  margin: 0;
  padding: 14px;
  color: var(--muted);
  text-align: center;
}

.buffet-template-family {
  margin: 18px 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: none;
}

.buffet-product-extra {
  background: #fbfcfa;
}

.breakfast-menu-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 170px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.breakfast-total-row td {
  border-top: 2px solid var(--ink);
  background: var(--orange-soft);
}

.net-consumption,
#breakfastNetTotal {
  color: var(--green);
}

#breakfastDiscardTotal,
.discard-value,
.discard-report-total {
  color: var(--red);
}

.discard-report-total {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff0ee;
  font-size: 12px;
  white-space: nowrap;
}

.printer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.printer-visual {
  display: grid;
  min-height: 300px;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: #1d1d1b;
}

.printer-box {
  position: relative;
  width: 180px;
  height: 128px;
  border-radius: 18px 18px 12px 12px;
  background: linear-gradient(145deg, #454541, #252523);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.printer-box::before {
  position: absolute;
  top: 28px;
  left: 27px;
  width: 126px;
  height: 24px;
  border-radius: 4px;
  background: #0f0f0e;
  content: "";
}

.printer-box::after {
  position: absolute;
  right: 32px;
  bottom: -47px;
  left: 32px;
  height: 68px;
  border: 1px solid #bbb;
  background:
    repeating-linear-gradient(0deg, #fff 0 5px, #f2f2f0 5px 6px);
  content: "";
}

.printer-copy {
  margin-top: 56px;
  text-align: center;
}

.printer-copy strong {
  display: block;
  font-size: 16px;
}

.printer-copy span {
  display: block;
  margin-top: 5px;
  color: #aaa9a3;
  font-size: 11px;
}

.dialog {
  width: min(540px, calc(100vw - 30px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.3);
}

.dialog::backdrop {
  background: rgba(19, 19, 17, 0.62);
  backdrop-filter: blur(4px);
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--line);
}

.dialog-header h2 {
  margin: 0;
  font-family: inherit;
  font-size: 25px;
  font-weight: 500;
}

.dialog-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.dialog-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.dialog-body {
  padding: 22px 26px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 26px 24px;
  border-top: 1px solid var(--line);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  max-width: min(420px, calc(100vw - 44px));
  padding: 14px 18px;
  border-radius: 12px;
  color: #fff;
  background: #232320;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.25);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: var(--red);
}

.loading-card {
  display: grid;
  min-height: 280px;
  place-items: center;
  color: var(--muted);
}

.overlay {
  display: none;
}

.nav-item-ab .nav-icon {
  width: 30px;
  color: #0d6f63;
  font-size: 11px;
  font-weight: 900;
}

.ab-heading {
  align-items: flex-end;
}

.ab-heading .eyebrow {
  color: #0d6f63;
}

.ab-heading-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.ab-heading-actions .field {
  min-width: 190px;
}

.ab-dashboard-tabs { display: inline-flex; flex-wrap: wrap; gap: 5px; margin: 0 0 18px; padding: 5px; border: 1px solid var(--line); border-radius: 13px; background: #f5f7f5; }
.ab-dashboard-tabs button { min-height: 38px; padding: 8px 15px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-weight: 800; }
.ab-dashboard-tabs button.active { color: #fff; background: #0d6f63; box-shadow: 0 4px 12px rgba(13,111,99,.18); }
.ab-comparison-missing { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; padding: 16px 18px; border: 1px solid #efd29b; border-radius: 14px; color: #70470f; background: #fff8e8; }
.ab-comparison-missing strong, .ab-comparison-missing span { display: block; }
.ab-comparison-missing span { margin-top: 3px; font-size: .86rem; line-height: 1.4; }
.ab-comparison-hero { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 16px; }
.ab-comparison-hero article { display: flex; min-height: 145px; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.ab-comparison-hero article:first-child { color: #fff; border-color: #0d6f63; background: linear-gradient(135deg, #123f3a 0%, #0b6d61 100%); }
.ab-comparison-hero article.positive { border-color: #b9dfca; background: #f2fbf6; }
.ab-comparison-hero article.attention { border-color: #efd8ad; background: #fff9ee; }
.ab-comparison-hero span { color: var(--muted); font-size: .72rem; font-weight: 900; letter-spacing: .05em; text-transform: none; }
.ab-comparison-hero article:first-child span, .ab-comparison-hero article:first-child small { color: rgba(255,255,255,.72); }
.ab-comparison-hero strong { margin: 10px 0 7px; font-size: clamp(1.35rem, 2.4vw, 2rem); }
.ab-comparison-hero small { margin-top: auto; color: var(--muted); line-height: 1.4; }
.ab-goal-panel, .ab-comparison-groups { margin-bottom: 16px; }
.ab-goal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.ab-goal-grid article { display: flex; min-height: 165px; flex-direction: column; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: #fafbf9; }
.ab-goal-grid article > span { color: var(--muted); font-size: .75rem; font-weight: 900; letter-spacing: .05em; text-transform: none; }
.ab-goal-grid article > strong { margin: 8px 0 5px; font-size: 1.35rem; }
.ab-goal-grid article > small { min-height: 38px; color: var(--muted); line-height: 1.4; }
.ab-goal-grid .ab-progress { margin-top: auto; }
.ab-goal-grid article > b { margin-top: 7px; color: var(--muted); font-size: .76rem; }
.ab-comparison-groups table { min-width: 880px; }
.ab-comparison-groups td strong { white-space: nowrap; }
.ab-comparison-insight { display: flex; gap: 12px; margin-top: 14px; padding: 14px; border-radius: 12px; color: #31536c; background: #f4f9fc; }
.ab-comparison-insight span { font-size: .86rem; line-height: 1.45; }
.ab-comparison-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-bottom: 18px; }
.ab-comparison-summary article { padding: 16px; border: 1px solid #dbe7df; border-radius: 14px; background: #f7faf8; }
.ab-comparison-summary span, .ab-comparison-summary strong { display: block; }
.ab-comparison-summary span { color: var(--muted); font-size: .75rem; font-weight: 900; letter-spacing: .05em; text-transform: none; }
.ab-comparison-summary strong { margin-top: 6px; }
.annual-coverage { display: flex; gap: 8px; flex-wrap: wrap; }
.annual-coverage span { padding: 8px 11px; border-radius: 999px; color: #31536c; background: #edf6fb; font-size: .76rem; font-weight: 800; }
.ab-annual-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 16px; }
.ab-annual-kpis article { display: flex; min-height: 140px; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.ab-annual-kpis article.positive { border-color: #b9dfca; background: #f2fbf6; }
.ab-annual-kpis article.attention { border-color: #efd8ad; background: #fff9ee; }
.ab-annual-kpis span { color: var(--muted); font-size: .72rem; font-weight: 900; letter-spacing: .05em; text-transform: none; }
.ab-annual-kpis strong { margin: 10px 0 6px; font-size: 1.45rem; }
.ab-annual-kpis small { margin-top: auto; color: var(--muted); line-height: 1.4; }
.ab-annual-chart-panel, .ab-annual-operation-panel { margin-bottom: 16px; }
.annual-chart-legend { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .78rem; font-weight: 800; }
.annual-chart-legend span::before { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 3px; content: ""; }
.annual-chart-legend .previous::before, .annual-bars .previous, .annual-horizontal-bar .previous { background: #9aa7a0; }
.annual-chart-legend .current::before, .annual-bars .current, .annual-horizontal-bar .current { background: #0d6f63; }
.annual-chart-legend .target::before, .annual-bars .target { background: #e29a43; }
.annual-bar-chart { display: grid; height: 330px; grid-template-columns: repeat(12, minmax(52px, 1fr)); gap: 8px; align-items: end; overflow-x: auto; padding: 14px 4px 2px; border-bottom: 1px solid var(--line); }
.annual-month-column { display: grid; min-width: 52px; height: 100%; grid-template-rows: minmax(220px, 1fr) auto auto; gap: 4px; text-align: center; }
.annual-bars { display: flex; align-items: end; justify-content: center; gap: 3px; border-bottom: 1px solid #dfe5e1; }
.annual-bars i { display: block; width: 12px; min-height: 0; border-radius: 5px 5px 0 0; transition: height .2s ease; }
.annual-month-column > strong { font-size: .75rem; }
.annual-month-column > small { overflow: hidden; color: var(--muted); font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.annual-operation-chart { display: grid; gap: 4px; }
.annual-operation { border-bottom: 1px solid var(--line); }
.annual-operation > summary { display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, .9fr)) 18px; gap: 10px; padding: 10px 5px; list-style: none; cursor: pointer; }
.annual-operation > summary::-webkit-details-marker { display: none; }
.annual-operation > summary:hover, .annual-operation[open] > summary { background: var(--surface-soft, #f5f5ef); }
.annual-operation > summary::after { content: "+"; justify-self: center; color: var(--muted); font-weight: 800; }
.annual-operation[open] > summary::after { content: "−"; }
.annual-operation-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .85rem; }
.annual-horizontal-bar { position: relative; display: flex; min-height: 28px; align-items: center; overflow: hidden; border-radius: 8px; background: #edf1ee; }
.annual-operation-months { max-height: 21rem; overflow: auto; margin: 5px 5px 12px; }
.annual-operation-months table { min-width: 360px; }
.annual-operation-months thead th { position: sticky; top: 0; z-index: 1; background: var(--surface-soft, #f5f5ef); }
.annual-operation-months :is(td, thead th):not(:first-child) { text-align: right; white-space: nowrap; }
.annual-operation-months tbody th { text-align: left; }
.annual-operation-months small { display: block; color: var(--muted); }
@media (max-width: 620px) {
  .annual-operation > summary { grid-template-columns: repeat(2, minmax(0, 1fr)) 14px; gap: 5px; }
  .annual-operation-heading { grid-column: 1 / 3; }
  .annual-operation > summary::after { grid-column: 3; grid-row: 1; }
}
.annual-horizontal-bar i { position: absolute; inset: 0 auto 0 0; min-width: 0; border-radius: inherit; opacity: .82; }
.annual-horizontal-bar b { position: relative; z-index: 1; padding: 0 9px; font-size: .74rem; }

.ab-import-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.ab-import-status-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ab-import-status-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ab-daily-panel { margin-bottom: 18px; }
.ab-daily-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ab-daily-grid > div { display: flex; min-height: 105px; flex-direction: column; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fafbf9; }
.ab-daily-grid span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: none; }
.ab-daily-grid strong { margin: 9px 0 5px; color: var(--ink); font-size: 23px; }
.ab-daily-grid small { margin-top: auto; color: var(--muted); line-height: 1.35; }

.ab-inventory-panel { margin-bottom: 18px; }
.ab-inventory-total { color: #0d6f63; font-size: 24px; }
.ab-cmv-check-card { margin: 18px 0; padding: 22px; border: 1px solid #d9d5cc; border-top: 8px solid #ef9b5f; border-radius: 16px; background: #fff; box-shadow: 0 12px 28px rgba(45, 37, 27, .06); }
.ab-cmv-check-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 16px; border-bottom: 2px solid #171717; }
.ab-cmv-check-heading h3 { margin: 4px 0; font-size: 1.35rem; }
.ab-cmv-check-heading p { margin: 0; color: var(--muted); }
.ab-cmv-check-lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 14px 0 18px; }
.ab-cmv-check-lines > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; border-bottom: 1px solid #ece8e0; }
.ab-cmv-check-lines span { color: #2d2a26; }
.ab-cmv-check-lines span b { color: var(--muted); font-weight: 700; }
.ab-cmv-check-lines strong { white-space: nowrap; }
.ab-cmv-check-lines .subtotal { font-weight: 700; border-bottom-color: #bcb5aa; }
.ab-cmv-check-lines .total { grid-column: 1 / -1; margin-top: 8px; padding: 14px 16px; border: 0; border-radius: 12px; background: #171717; color: #fff; }
.ab-cmv-check-lines .total span, .ab-cmv-check-lines .total strong { color: #fff; font-size: 1.08rem; }
.ab-cmv-check-note { display: block; margin-top: 14px; color: var(--muted); }
.ab-inventory-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); gap: 20px; align-items: start; }
.ab-inventory-history { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fafbf9; }
.ab-inventory-history > div { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.ab-inventory-history small { margin-top: 8px; color: var(--muted); line-height: 1.45; }

.ab-import-status > div {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.ab-import-status > div > span {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
}

.ab-import-status .ready > span { color: #14725f; background: #def5ee; }
.ab-import-status .missing > span { color: #9a5706; background: #fff0cf; }
.ab-import-status p { min-width: 0; margin: 0; }
.ab-import-status strong, .ab-import-status small { display: block; }
.ab-import-status small { overflow: hidden; margin-top: 2px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }

.ab-file-field input[type="file"] { padding: 10px; }
.ab-file-field small { margin-top: 7px; color: var(--muted); line-height: 1.45; }

.ab-overwrite-warning,
.ab-import-help {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 12px;
  font-size: 13px;
}

.ab-overwrite-warning { color: #7b490a; border: 1px solid #efd29b; background: #fff8e8; }
.ab-overwrite-warning[hidden] { display: none; }
.ab-import-help { color: #31536c; border: 1px solid #cfe1ed; background: #f4f9fc; }

.dialog:has(.ab-import-center) { width: min(880px, calc(100vw - 30px)); }
.ab-import-center { width: 100%; }
.ab-import-source-grid,
.ab-import-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.ab-import-source,
.ab-import-option {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.ab-import-source.automatic { border-color: #cce7df; background: #f5fbf9; }
.ab-import-source-icon,
.ab-import-option > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  color: #087461;
  border-radius: 10px;
  font-weight: 900;
  background: #dff3ed;
}
.ab-import-source > div,
.ab-import-option > div { min-width: 0; flex: 1; }
.ab-import-source small,
.ab-import-source strong,
.ab-import-option strong,
.ab-import-option small { display: block; }
.ab-import-source small { color: #087461; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.ab-import-source p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.ab-import-source > b,
.ab-import-option > b { flex: 0 0 auto; color: var(--muted); font-size: 11px; }
.ab-import-section-title { display: flex; margin: 22px 0 10px; flex-direction: column; gap: 2px; }
.ab-import-section-title span { color: var(--muted); font-size: 12px; }
.ab-import-option-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.ab-import-option { cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.ab-import-option input { position: absolute; opacity: 0; pointer-events: none; }
.ab-import-option.selected { border-color: #f0642e; background: #fff8f4; box-shadow: 0 0 0 2px rgba(240, 100, 46, .12); }
.ab-import-option.selected > span { color: #fff; background: #f0642e; }
.ab-import-option.selected > b { color: #a83b13; }
.ab-import-center .form-grid { margin-top: 16px; }
.ab-import-checklist { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.ab-import-checklist strong { width: 100%; font-size: 12px; }
.ab-import-checklist span { padding: 5px 9px; border-radius: 999px; color: #53625f; background: #f0f3f2; font-size: 11px; }

@media (max-width: 720px) {
  .ab-import-source-grid,
  .ab-import-option-grid { grid-template-columns: 1fr; }
}

.ab-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, .75fr);
  gap: 16px;
  margin-bottom: 16px;
}

.ab-hero-main,
.ab-result {
  display: flex;
  min-height: 178px;
  padding: 28px;
  border-radius: 22px;
  flex-direction: column;
  justify-content: center;
}

.ab-hero-main {
  color: #fff;
  background: linear-gradient(135deg, #123f3a 0%, #0b6d61 100%);
  box-shadow: 0 18px 50px rgba(11, 109, 97, .18);
}

.ab-hero-main > span,
.ab-result > span {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: none;
}

.ab-hero-main strong {
  margin-bottom: 8px;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -.04em;
}

.ab-hero-main small {
  color: rgba(255, 255, 255, .72);
}

.ab-result {
  border: 1px solid #d9e7df;
  background: #f5faf7;
}

.ab-result.attention {
  border-color: #f0d6a8;
  background: #fff8eb;
}

.ab-result strong {
  font-size: 27px;
}

.ab-result b {
  margin: 4px 0;
  color: #0d6f63;
  font-size: 23px;
}

.ab-result.attention b {
  color: #ad6410;
}

.ab-result small {
  color: var(--muted);
}

.ab-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.ab-metric-grid article {
  display: flex;
  min-height: 145px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  flex-direction: column;
}

.ab-metric-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.ab-metric-grid strong {
  margin: 13px 0 3px;
  font-size: 23px;
}

.ab-metric-grid b {
  font-size: 16px;
}

.ab-metric-grid b.bad { color: #b45309; }
.ab-metric-grid b.good { color: #168169; }
.ab-metric-grid small { margin-top: auto; color: var(--muted); }

.ab-alerts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.ab-alerts article {
  display: grid;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  grid-template-columns: 32px 1fr;
  gap: 11px;
}

.ab-alerts article > span {
  display: grid;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  place-items: center;
  font-weight: 900;
}

.ab-alerts article.warning > span { color: #9a5706; background: #fff0cf; }
.ab-alerts article.info > span { color: #185da8; background: #e8f3ff; }
.ab-alerts article.ok > span { color: #14725f; background: #def5ee; }
.ab-alerts strong { display: block; margin-bottom: 3px; font-size: 13px; }
.ab-alerts small { color: var(--muted); line-height: 1.45; }
.ab-alerts > article:only-child { grid-column: 1 / -1; }

.ab-overview-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.ab-overview-shortcuts button {
  display: flex;
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--text);
  background: #fff;
  text-align: left;
  flex-direction: column;
  align-items: flex-start;
}

.ab-overview-shortcuts button:hover {
  border-color: #b9d8d2;
  box-shadow: 0 10px 24px rgba(31, 46, 43, .08);
  transform: translateY(-1px);
}

.ab-overview-shortcuts span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: none;
}

.ab-overview-shortcuts strong {
  margin: 10px 0 5px;
  font-family: inherit;
  font-size: 25px;
}

.ab-overview-shortcuts small {
  color: var(--muted);
  line-height: 1.45;
}

.ab-overview-shortcuts b {
  margin-top: auto;
  padding-top: 12px;
  color: #0d6f63;
  font-size: 12px;
}

.ab-cmv-diagnosis { margin-bottom: 18px; }
.ab-cmv-gap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 14px; }
.ab-cmv-gap > div { display: flex; min-height: 94px; padding: 15px; border-right: 1px solid var(--line); background: #fafbf9; flex-direction: column; }
.ab-cmv-gap > div:last-child { border-right: 0; }
.ab-cmv-gap span, .ab-cmv-driver-grid span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: none; }
.ab-cmv-gap strong { margin-top: 9px; font-size: 20px; }
.ab-cmv-gap.above > div:nth-child(3), .ab-cmv-gap.above > div:nth-child(4) { background: #fff8eb; }
.ab-cmv-gap.above > div:nth-child(3) strong, .ab-cmv-gap.above > div:nth-child(4) strong { color: #ad6410; }
.ab-cmv-gap.below > div:nth-child(3), .ab-cmv-gap.below > div:nth-child(4) { background: #f1faf6; }
.ab-cmv-gap.below > div:nth-child(3) strong, .ab-cmv-gap.below > div:nth-child(4) strong { color: #14725f; }
.ab-cmv-driver-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.ab-cmv-driver-grid article { display: flex; min-height: 135px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #fff; flex-direction: column; }
.ab-cmv-driver-grid article.attention { border-color: #f0d6a8; background: #fffaf0; }
.ab-cmv-driver-grid article.positive { border-color: #cee9dd; background: #f3fbf7; }
.ab-cmv-driver-grid strong { margin: 10px 0 6px; color: var(--ink); font-size: 17px; }
.ab-cmv-driver-grid small { margin-top: auto; color: var(--muted); line-height: 1.4; }
.ab-cmv-purchases { display: grid; gap: 12px; padding-top: 2px; }
.ab-cmv-purchases > div:not(.ab-sector-classification-head) > div:first-child { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 5px; font-size: 12px; }

.ab-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  margin-bottom: 18px;
}

.ab-cost-list,
.ab-sector-bars {
  display: grid;
  gap: 17px;
}

.ab-cost-list > div > div:first-child,
.ab-sector-bars > div > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ab-cost-list span,
.ab-sector-bars span {
  color: var(--muted);
  font-size: 12px;
}

.ab-progress {
  overflow: hidden;
  height: 7px;
  margin-top: 8px;
  border-radius: 999px;
  background: #edf0ed;
}

.ab-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.ab-progress .orange { background: #e19445; }
.ab-progress .green { background: #4c815c; }
.ab-progress .slate { background: #78847d; }
.ab-progress .purple { background: #8470a8; }
.ab-progress .blue { background: #4789ae; }

.ab-waste-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--line);
}

.ab-waste-list > div {
  display: flex;
  padding: 11px 13px;
  background: #fff;
  justify-content: space-between;
  gap: 12px;
}

.ab-waste-list span { color: #a35312; font-weight: 800; }

.ab-waste-note {
  margin-top: 14px;
  padding: 12px 13px;
  border-radius: 12px;
  color: #6e6657;
  background: #f7f3ea;
  font-size: 12px;
  line-height: 1.5;
}

.ab-requisition-layout {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.2fr);
  gap: 28px;
}

.ab-sector-classification {
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.ab-sector-classification-head,
.ab-sector-classification label {
  display: grid;
  align-items: center;
  grid-template-columns: 26px minmax(180px, 1fr) auto;
  gap: 10px;
}

.ab-sector-classification-head {
  padding: 12px 14px;
  background: #f5f6f4;
  grid-template-columns: 1fr auto;
}

.ab-sector-classification-head small { color: var(--muted); }

.ab-sector-classification label {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.ab-sector-classification label:hover { background: #fafbf9; }
.ab-sector-classification label span { display: flex; flex-direction: column; }
.ab-sector-classification label small { color: var(--muted); font-size: 10px; }
.ab-sector-classification label b { font-size: 12px; }

@media (max-height: 800px) and (min-width: 841px) {
  .sidebar {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .brand {
    padding-bottom: 16px;
  }

  .side-nav {
    gap: 9px;
  }

  .nav-item {
    min-height: 39px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .nav-copy small {
    display: none;
  }

  .server-card {
    margin-top: 10px;
    padding: 10px 12px;
  }
}

@media (max-width: 1100px) {
  .ab-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-alerts { grid-template-columns: 1fr; }
  .ab-requisition-layout { grid-template-columns: 1fr; }
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .registry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .label-workspace,
  .production-layout,
  .printer-layout,
  .printer-layout-workspace {
    grid-template-columns: 1fr;
  }

  .wizard-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .label-preview-shell {
    position: static;
    max-width: 360px;
  }
}

@media (max-width: 840px) {
  .ab-hero,
  .ab-grid,
  .ab-overview-shortcuts { grid-template-columns: 1fr; }
  .production-batch-toolbar { grid-template-columns: 1fr; }
  .production-batch-toolbar > div, .production-batch-actions { justify-content: stretch; }
  .production-batch-toolbar button, .production-batch-actions button { flex: 1; }
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-shell.sidebar-collapsed { grid-template-columns: 1fr; }

  .sidebar-collapse-button { display: none; }

  .app-shell.sidebar-collapsed .sidebar { padding: 24px 18px; }
  .app-shell.sidebar-collapsed .brand { justify-content: flex-start; padding: 4px 8px 30px; }
  .app-shell.sidebar-collapsed .brand > div:last-child,
  .app-shell.sidebar-collapsed .nav-copy,
  .app-shell.sidebar-collapsed .nav-section-title,
  .app-shell.sidebar-collapsed .server-card > div { display: block; }
  .app-shell.sidebar-collapsed .side-nav { padding-right: 3px; }
  .app-shell.sidebar-collapsed .nav-section { gap: 4px; }
  .app-shell.sidebar-collapsed .nav-item { justify-content: flex-start; gap: 12px; padding: 9px 11px; }
  .app-shell.sidebar-collapsed .nav-icon { width: 22px; }
  .app-shell.sidebar-collapsed .server-card { justify-content: flex-start; padding: 14px; }

  .sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-105%);
    width: 256px;
    transition: 180ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .overlay.show {
    position: fixed;
    inset: 0;
    z-index: 15;
    display: block;
    background: rgba(10, 10, 9, 0.45);
  }

  .menu-button {
    display: block;
  }

  .topbar {
    min-height: 92px;
  }

  .date-chip {
    display: none;
  }

  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-main,
  .hero-side {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .registry-list .registry-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .workforce-list-header {
    display: none;
  }

  .workforce-registry-row {
    grid-template-columns: 1fr auto !important;
    gap: 7px 12px;
  }

  .workforce-registry-row .workforce-person,
  .workforce-registry-row .workforce-week {
    grid-column: 1 / -1;
  }

  .workforce-registry-row [data-label]::before {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    content: attr(data-label);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: none;
  }

  .workforce-week {
    white-space: normal;
  }

  .employee-list-header {
    display: none;
  }

  .employee-registry-row {
    grid-template-columns: 1fr auto !important;
    gap: 8px 12px;
  }

  .employee-registry-row .employee-registry-name,
  .employee-registry-row [data-label="Escala / função"],
  .employee-registry-row [data-label="Setor"],
  .employee-registry-row .registry-actions {
    grid-column: 1 / -1;
  }

  .employee-registry-row [data-label]::before {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    content: attr(data-label);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: none;
  }

  .registry-list .registry-card .registry-actions {
    justify-content: flex-start;
    padding-left: 0;
  }

  .printer-routing-row { grid-template-columns: auto minmax(0, 1fr); }
  .printer-routing-row select, .printer-routing-row button { grid-column: 2; }
  .ab-cmv-gap, .ab-cmv-driver-grid { grid-template-columns: 1fr; }
  .ab-cmv-gap > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .ab-cmv-gap > div:last-child { border-bottom: 0; }
  .ab-import-status { grid-template-columns: 1fr; }
  .ab-daily-grid { grid-template-columns: 1fr; }
  .ab-heading-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .ab-heading-actions .field { min-width: 0; }
  .ab-metric-grid { grid-template-columns: 1fr; }
  .ab-hero-main, .ab-result { min-height: 150px; padding: 21px; }
  .ab-sector-classification-head { grid-template-columns: 1fr; }
  .ab-sector-classification label { grid-template-columns: 26px 1fr; }
  .ab-sector-classification label b { grid-column: 2; }
  .topbar {
    align-items: center;
    flex-wrap: wrap;
    padding: 18px;
  }

  .topbar-actions {
    width: 100%;
    gap: 6px;
    margin-left: 0;
  }

  .branch-switcher {
    min-width: 0;
    flex: 1;
  }

  .branch-switcher select {
    width: 100%;
    min-width: 0;
  }

  .topbar-profile-button {
    max-width: 125px;
    padding-inline: 8px;
  }

  .topbar-profile-button small {
    display: none;
  }

  .access-preview-chip span,
  .access-preview-exit {
    display: none;
  }

  .access-preview-chip {
    min-width: 78px;
    text-align: center;
  }

  .profile-summary > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .topbar h1 {
    font-size: 26px;
  }

  .topbar-actions .primary {
    display: none;
  }

  .view {
    padding: 22px 16px 50px;
  }

  .metric-grid,
  .registry-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .wizard-progress {
    grid-template-columns: repeat(4, 1fr);
    padding: 18px 12px;
  }

  .wizard-progress li {
    justify-content: center;
  }

  .wizard-progress li div {
    display: none;
  }

  .wizard-progress li:not(:last-child)::after {
    right: -50%;
    left: 50%;
  }

  .wizard-choice-grid {
    grid-template-columns: 1fr;
  }

  .scan-form {
    grid-template-columns: 1fr;
  }

  .report-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .report-actions .field {
    min-width: 0;
  }

  .report-filter-grid {
    grid-template-columns: 1fr;
  }

  .breakfast-date-field {
    width: 100%;
  }

  .breakfast-menu-row {
    grid-template-columns: 1fr;
  }

  .breakfast-day-options,
  .product-sector-config .breakfast-day-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .breakfast-measure-fields {
    grid-template-columns: 1fr;
  }

  .breakfast-dispatch-form,
  .breakfast-dispatch-layout,
  .dispatch-summary-grid {
    grid-template-columns: 1fr;
  }

  .breakfast-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .production-details {
    grid-template-columns: repeat(2, 1fr);
  }

  .wizard-content {
    padding: 24px 18px;
  }

  .field.full {
    grid-column: auto;
  }

  .hero-main {
    padding: 26px 22px;
  }

  .hero-main h2 {
    font-size: 39px;
  }

  .panel {
    padding: 18px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dialog-body,
  .dialog-header,
  .dialog-actions {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-width: 980px) {
  .ab-comparison-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-goal-grid { grid-template-columns: 1fr; }
  .ab-annual-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-import-status-three, .ab-import-status-four { grid-template-columns: 1fr; }
  .ab-inventory-layout { grid-template-columns: 1fr; }
  .ab-cmv-gap, .ab-cmv-driver-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-daily-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-search-bar { grid-template-columns: 1fr 1fr; }
  .product-search-field, .product-search-bar > small { grid-column: 1 / -1; }
  .product-list-header { display: none; }
  .product-list-row { grid-template-columns: minmax(190px, 1.5fr) 1fr; align-items: start; }
  .product-list-cell::before, .product-list-validity::before { display: block; width: 100%; margin-bottom: 4px; color: var(--muted); content: attr(data-label); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: none; }
  .product-list-actions { grid-column: 2; }
  .breakfast-management-metrics { grid-template-columns: repeat(2, 1fr); }
  .breakfast-management-details { grid-template-columns: 1fr; }
  .breakfast-report-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .breakfast-kanban { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .ab-cmv-check-card { padding: 16px; }
  .ab-cmv-check-heading { flex-direction: column; }
  .ab-cmv-check-lines { grid-template-columns: 1fr; }
  .ab-cmv-check-lines .total { grid-column: auto; }
  .ab-dashboard-tabs { display: grid; width: 100%; grid-template-columns: 1fr; }
  .ab-comparison-missing { align-items: stretch; flex-direction: column; }
  .ab-comparison-hero, .ab-comparison-summary { grid-template-columns: 1fr; }
  .ab-comparison-insight { flex-direction: column; }
  .ab-annual-kpis, .annual-operation-chart { grid-template-columns: 1fr; }
  .product-search-bar { grid-template-columns: 1fr; }
  .product-search-field, .product-search-bar > small { grid-column: auto; }
  .product-search-bar > small { white-space: normal; }
  .product-list-row { grid-template-columns: 1fr; gap: 12px; }
  .product-list-actions { grid-column: auto; }
  .breakfast-management { padding: 17px; }
  .breakfast-management-metrics { grid-template-columns: 1fr; }
  .management-product-list > div { grid-template-columns: 26px minmax(120px, 1fr) auto; }
  .management-product-list small { grid-column: 2 / -1; text-align: left; }
  .breakfast-report-items { grid-template-columns: 1fr; }
  .breakfast-area-block > .breakfast-menu-product { grid-template-columns: minmax(0, 1fr) auto; }
  .breakfast-request-shortcut { grid-column: 2; justify-self: start; }
  .breakfast-request-header-actions { width: 100%; justify-content: stretch; }
  .afternoon-coffee-live { width: 100%; }
  .mobile-sound-activation { align-items: flex-start; flex-direction: column; }
  .mobile-sound-activation strong { white-space: normal; }
  .breakfast-request-header-actions button { flex: 1; }
  .breakfast-request-product-list section { grid-template-columns: 1fr; }
  .report-actions-inline { width: 100%; }
  .report-actions-inline button { flex: 1; }
}

@media print {
  body.print-breakfast-menu * { visibility: hidden; }
  body.print-breakfast-menu .breakfast-menu-panel,
  body.print-breakfast-menu .breakfast-menu-panel * { visibility: visible; }
  body.print-breakfast-menu .breakfast-menu-panel { position: absolute; inset: 0; overflow: visible; width: 100%; padding: 0; border: 0; box-shadow: none; }
  body.print-breakfast-menu .breakfast-menu-panel button { display: none; }
  body.print-breakfast-menu .breakfast-report-items { grid-template-columns: repeat(2, 1fr); }
  body.print-breakfast-menu .breakfast-report-day { break-inside: avoid; }
}
/* Grupos gerenciais de A&B */
.ab-management-panel { margin-top: 18px; }
.silbeck-panel { margin: 18px 0; border-color: #cbded3; background: linear-gradient(145deg, #fff 0%, #f5faf7 100%); }
.silbeck-actions, .silbeck-sync-form { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.silbeck-sync-form { margin: 16px 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.82); }
.silbeck-sync-form .field { min-width: 155px; margin: 0; }
.silbeck-sync-form small { align-self: center; color: var(--muted); }
.silbeck-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.silbeck-summary.park-ticket-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.silbeck-summary.unified-sales-summary { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 10px; }
.operation-filter-bar { display: flex; justify-content: flex-end; margin-top: 4px; }
.average-ticket-toggle { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #f5f4ef; }
.average-ticket-toggle button { padding: 8px 14px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; font-weight: 750; }
.average-ticket-toggle button.active { color: #fff; background: var(--orange); box-shadow: 0 5px 14px rgba(242, 106, 46, .22); }
.cmv-sector-filter-bar { justify-content: flex-start; margin: 0 0 16px; }
.cmv-sector-toggle { display: grid; grid-template-columns: repeat(5, minmax(90px, 1fr)); width: min(100%, 660px); }
.ab-cmv-sector-panel .ab-cmv-sector-summary { margin-bottom: 14px; }
.ab-sheet-cost-coverage { margin-bottom: 18px; }
.ab-sheet-cost-grid { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 12px; }
.ab-sheet-cost-grid article { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.ab-sheet-cost-grid article.attention { border-color: #efc079; background: #fff9eb; }
.ab-sheet-cost-grid span, .ab-sheet-cost-grid small { display: block; color: var(--muted); }
.ab-sheet-cost-grid span { font-size: 11px; }
.ab-sheet-cost-grid strong { display: block; margin: 6px 0; font-size: clamp(18px, 2vw, 28px); }
.ab-sheet-cost-grid small { font-size: 10px; line-height: 1.45; }
@media (max-width: 1100px) { .ab-sheet-cost-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .ab-sheet-cost-grid { grid-template-columns: 1fr; } }
.waiter-heading-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.silbeck-summary article { padding: 15px; border: 1px solid #dbe7df; border-radius: 14px; background: #fff; }
.silbeck-summary span, .silbeck-summary small { display: block; color: var(--muted); }
.silbeck-summary strong { display: block; margin: 6px 0 4px; font-size: 1.35rem; }
.silbeck-revenue-groups { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.silbeck-revenue-groups article { min-width: 0; padding: 14px; border-radius: 14px; color: #fff; background: #273c32; }
.silbeck-revenue-groups span, .silbeck-revenue-groups small { display: block; color: rgba(255,255,255,.72); }
.silbeck-revenue-groups strong { display: block; margin: 6px 0 3px; font-size: 1.2rem; }
.silbeck-revenue-groups p { overflow: hidden; margin: 9px 0 0; color: rgba(255,255,255,.64); font-size: .72rem; line-height: 1.35; text-overflow: ellipsis; }
.silbeck-waiter-section { margin: 18px 0; padding: 17px; border: 1px solid #dbe7df; border-radius: 16px; background: rgba(255,255,255,.88); }
.silbeck-waiter-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.silbeck-waiter-heading h3 { margin: 3px 0 4px; font-family: inherit; font-size: 1.45rem; }
.silbeck-waiter-heading p { margin: 0; color: var(--muted); font-size: .85rem; }
.silbeck-waiter-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: .7rem; }
.silbeck-waiter-table { max-height: 360px; overflow: auto; }
.silbeck-waiter-table thead th { position: sticky; top: 0; z-index: 2; background: #f5f8f6; box-shadow: 0 1px 0 var(--line); }
.silbeck-waiter-table tbody tr { height: 58px; }
.waiter-rank { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #edf5f0; color: #274637; font-size: .75rem; font-weight: 900; }
.waiter-sectors { display: block; min-width: 180px; max-width: 360px; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.silbeck-abc-section { margin: 18px 0 0; padding: 17px; border: 1px solid #dbe7df; border-radius: 16px; background: rgba(255,255,255,.88); }
.abc-family-filter { margin-bottom: 12px; width: fit-content; max-width: 100%; flex-wrap: wrap; }
.abc-product-result { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.abc-product-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #f8faf8; border-radius: 12px 12px 0 0; }
.abc-product-heading span, .abc-product-heading small { color: var(--muted); }
.abc-product-heading span strong { color: var(--ink); }
.abc-product-total { margin-inline-start: auto; white-space: nowrap; }
.abc-product-table { max-height: var(--list-viewport-height); overflow: auto; border-radius: 0 0 12px 12px; }
.abc-product-table table { min-width: 610px; }
.abc-product-table :is(th, td):nth-child(1) { width: 64px; }
.abc-product-table :is(th, td):nth-child(n+3) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.abc-product-table:focus-visible { outline: 2px solid var(--orange-dark); outline-offset: -2px; }
.abc-product-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: .7rem; }
.abc-class { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; font-size: .78rem; font-weight: 900; }
.abc-a { color: #12613c; background: #dff4e8; }
.abc-b { color: #7b570e; background: #fff0c9; }
.abc-c { color: #7a3840; background: #f8e3e6; }
.silbeck-table { max-height: 360px; overflow: auto; }
.silbeck-table thead th { position: sticky; top: 0; z-index: 2; background: #f5f8f6; box-shadow: 0 1px 0 var(--line); }
.silbeck-table tbody tr { height: 58px; }
.silbeck-table td small { display: block; color: var(--muted); font-size: .72rem; }
.silbeck-sector-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.silbeck-sector-strip > span { padding: 7px 10px; border-radius: 999px; background: #edf5f0; color: var(--muted); font-size: .8rem; }
.silbeck-sector-strip b { color: var(--ink); }
.ab-management-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 16px 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; }
.ab-management-filter label { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; }
.ab-management-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ab-management-summary article { padding: 14px; border-radius: 14px; background: #f8fafc; border: 1px solid var(--line); }
.ab-management-summary span, .ab-management-summary small { display: block; color: var(--muted); }
.ab-management-summary strong { display: block; margin: 5px 0; font-size: 1.2rem; }
.ab-management-toolbar { display: flex; justify-content: flex-end; margin: 10px 0; }
.ab-management-toolbar label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; }
.ab-management-toolbar select { min-height: 36px; }
.ab-management-panel tbody tr[data-action] { cursor: pointer; }
.ab-management-panel tbody tr[data-action]:hover { background: #f1f5f9; }
.ab-management-panel td small { display: block; color: var(--muted); margin-top: 3px; }
.ab-allocation-note { display: flex; gap: 12px; margin-top: 16px; padding: 14px; border-radius: 12px; background: #fff8e7; border: 1px solid #f0d58a; color: #73510c; }
.ab-allocation-note span { font-size: .86rem; line-height: 1.45; }
.ab-mapping-list { display: grid; gap: 8px; max-height: 420px; overflow: auto; margin-top: 12px; }
.ab-mapping-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, .8fr); gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.ab-mapping-row small { display: block; color: var(--muted); }

/* Produção do açougue */
.butcher-alert-panel { margin-bottom: 18px; }
.butcher-alert-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.butcher-alert-list article { display: flex; gap: 11px; align-items: flex-start; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fafafa; }
.butcher-alert-list article > span { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border-radius: 50%; font-weight: 900; }
.butcher-alert-list article.warning > span { color: #875510; background: #fff0c9; }
.butcher-alert-list article.danger > span { color: #a12b20; background: #ffe2de; }
.butcher-alert-list article.info > span { color: #175f91; background: #e1f1fb; }
.butcher-alert-list strong, .butcher-alert-list small { display: block; }
.butcher-alert-list small { margin-top: 4px; color: var(--muted); line-height: 1.4; }
.butcher-entry-layout { align-items: start; }
.butcher-employee-list { display: grid; gap: 16px; }
.butcher-employee-list > div > div:first-child { display: flex; justify-content: space-between; gap: 12px; }
.butcher-employee-list span, .butcher-employee-list small { color: var(--muted); font-size: 11px; }
.butcher-employee-list .ab-progress { margin: 7px 0 5px; }
.compact-date { min-width: 190px; }
.compact-date input { min-height: 42px; }

/* Gestão de jornadas extras */
.extra-week-sheet, .extra-month-panel { margin-bottom: 18px; }
.extra-heading-actions { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: flex-end; gap: 10px; }
.extra-search-field { min-width: min(360px, 44vw); }
.extra-sheet-header { align-items: flex-end; }
.extra-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: flex-end; gap: 10px; }
.extra-toolbar .field { min-width: 205px; }
.extra-toolbar button { min-height: 42px; }
.extra-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.extra-summary article { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #faf9f5; }
.extra-summary span, .extra-summary small { display: block; color: var(--muted); font-size: 12px; }
.extra-summary strong { display: block; margin: 5px 0 2px; font-family: inherit; font-size: 24px; }
.extra-table td small { display: block; margin-top: 4px; color: var(--muted); }
.extra-row-actions { white-space: nowrap; }
.extra-row-actions button + button { margin-left: 6px; }
.extra-icon-action { display: inline-grid; width: 30px; min-width: 30px; height: 30px; min-height: 30px; flex: 0 0 30px; padding: 0; place-items: center; border: 0; border-radius: 50%; color: #fff !important; line-height: 1; vertical-align: middle; cursor: pointer; box-shadow: 0 2px 6px rgba(20, 25, 30, .13); transition: transform .15s ease, filter .15s ease; }
.extra-icon-action:hover { filter: brightness(.92); transform: translateY(-1px); }
.extra-icon-action:focus-visible { outline: 3px solid rgba(33, 110, 240, .25); outline-offset: 2px; }
.extra-icon-action span { color: #fff; font-size: 13px; font-weight: 900; line-height: 1; }
.extra-icon-action svg { display: block; width: 16px; height: 16px; fill: #fff; }
.extra-icon-action.approve { border-radius: 50%; background: #39b900; }
.extra-icon-action.reject { border-radius: 50%; background: #e23816; }
.extra-icon-action.edit { border-radius: 50%; background: #3976b8; }
.extra-icon-action.delete { border-radius: 50%; background: #59616a; }
.extra-icon-action.add { border-radius: 50%; background: #1b8663; }
.extra-icon-action.payment { border-radius: 50%; background: #7961a8; color: #fff !important; font-size: 9px; font-weight: 850; }
.standard-labeled-action { display: inline-flex; align-items: center; gap: 8px; }
.standard-action-icon { display: grid; width: 26px; height: 26px; flex: 0 0 26px; place-items: center; border-radius: 50%; color: #fff; }
.standard-action-icon svg { width: 16px; height: 16px; fill: currentColor; }
.standard-labeled-action.approve .standard-action-icon { background: #39b900; }
.standard-labeled-action.reject .standard-action-icon { background: #e23816; }
.standard-labeled-action.edit .standard-action-icon { background: #3976b8; }
.standard-labeled-action.delete .standard-action-icon { background: #59616a; }
.extra-select-col { width: 42px; text-align: center; }
.extra-select-col input { width: 18px; height: 18px; margin: 0; accent-color: #198754; cursor: pointer; }
.extra-batch-approve { display: inline-flex; min-height: 42px; padding: 0 14px; align-items: center; gap: 8px; border: 1px solid #198754; border-radius: 11px; background: #198754; color: #fff; font-weight: 700; cursor: pointer; }
.extra-batch-approve > svg { width: 21px; height: 21px; padding: 3px; border-radius: 50%; background: rgba(255,255,255,.18); fill: currentColor; }
.extra-batch-approve:disabled { border-color: #aeb7b2; background: #aeb7b2; cursor: not-allowed; opacity: .72; }
.extra-time-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.extra-week-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.15fr); gap: 12px; align-items: end; margin: 2px 0 16px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.extra-week-filters select { min-width: 0; }
.extra-week-detail-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.extra-week-filters > div { display: grid; gap: 3px; align-self: stretch; align-content: center; padding: 0 8px; }
.extra-week-filters > div > span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.extra-week-filters > div > strong { font-size: 14px; }
.extra-week-filters > div > small { color: var(--muted); font-size: 10px; }
.extra-grouped-screen-row td { vertical-align: top; }
.extra-grouped-screen-row td > small { display: block; margin-top: 4px; }
.extra-detail-button { min-height: 32px; padding: 6px 10px; font-size: 11px; white-space: nowrap; }
.extra-time-presets button { min-height: 34px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 400; cursor: pointer; }
.extra-time-presets button:hover { border-color: var(--orange); color: var(--orange-dark); }
.extra-date-calendar-field { align-items: stretch; }
.extra-date-calendar { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.extra-calendar-head { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; padding: 8px; border-bottom: 1px solid var(--line); background: var(--paper); }
.extra-calendar-head strong { text-align: center; font-size: 15px; font-weight: 600; text-transform: none; }
.extra-calendar-head button { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font-size: 25px; cursor: pointer; }
.extra-calendar-head button:hover { background: var(--peach); color: var(--orange-dark); }
.extra-calendar-weekdays, .extra-calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.extra-calendar-weekdays { padding: 8px 8px 2px; }
.extra-calendar-weekdays span { padding: 5px 2px; color: var(--muted); font-size: 11px; text-align: center; }
.extra-calendar-days { gap: 4px; padding: 4px 8px 10px; }
.extra-calendar-days button, .extra-calendar-empty { min-height: 38px; }
.extra-calendar-days button { border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--ink); font-size: 14px; cursor: pointer; }
.extra-calendar-days button:hover { border-color: var(--orange); color: var(--orange-dark); }
.extra-calendar-days button.selected { border-color: var(--orange); background: var(--orange); color: #fff; font-weight: 600; }
#extraSelectedDatesSummary { line-height: 1.45; }
.extra-status { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.extra-status.pending { color: #7b570e; background: var(--yellow-soft); }
.extra-status.validated { color: var(--green); background: var(--green-soft); }
.extra-status.rejected { color: var(--red); background: var(--red-soft); }
.extra-value-attention { color: #c58a00 !important; font-weight: 800 !important; }
.extra-signature-col { display: none; }
.extra-print-body { display: none; }
.extra-print-signatures { display: none; }
.extra-print-sector-scope { display: none; }
.extra-print-select-all { margin-bottom: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.extra-print-sector-options { max-height: 320px; overflow-y: auto; }
.extra-print-rate-note { display: block; margin-top: 3px; color: #8a5a00; font-size: 8px; font-weight: 700; }
.extra-manager-grid { display: grid; grid-template-columns: minmax(280px, .65fr) minmax(520px, 1.35fr); gap: 24px; }
.extra-manager-grid h3 { margin: 0 0 12px; }
.extra-supervisor-list { display: grid; gap: 9px; }
.extra-supervisor-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.extra-supervisor-list span { grid-column: 1; color: var(--muted); font-size: 12px; }
.extra-supervisor-list b { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.extra-month-table { max-height: 430px; }
.extra-person-summary-list { display: grid; gap: 10px; margin-top: 18px; }
.extra-grouped-manager-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 18px 0 22px; }
.extra-month-heading-actions { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: flex-end; gap: 10px; }
.extra-grouped-manager-grid > section { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #faf9f5; }
.extra-grouped-heading, .extra-person-summary-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.extra-grouped-heading h3, .extra-person-summary-heading h3 { margin: 0; font-size: 16px; }
.extra-grouped-heading small, .extra-person-summary-heading small { color: var(--muted); font-size: 11px; }
.extra-person-summary-heading { margin: 4px 0 -8px; }
.extra-grouped-summary-list { display: grid; max-height: 350px; gap: 8px; overflow-y: auto; padding-right: 3px; }
.extra-grouped-summary-list article { display: grid; grid-template-columns: minmax(130px, 1fr) auto auto; gap: 12px; align-items: center; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.extra-grouped-summary-list article > div, .extra-grouped-summary-list article > span { display: grid; gap: 2px; }
.extra-grouped-summary-list small { color: var(--muted); font-size: 11px; }
.extra-grouped-summary-list article > span { text-align: right; }
.extra-grouped-summary-list b { color: var(--green); font-size: 10px; font-weight: 600; }
.extra-person-summary { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.extra-person-summary > summary { display: grid; grid-template-columns: minmax(190px, 1.3fr) repeat(3, minmax(145px, .8fr)) 24px; gap: 14px; align-items: center; padding: 14px 16px; cursor: pointer; list-style: none; }
.extra-person-summary > summary::-webkit-details-marker { display: none; }
.extra-person-summary > summary:hover { background: var(--surface-soft); }
.extra-person-summary > summary > span { display: grid; gap: 2px; }
.extra-person-summary > summary small { color: var(--muted); font-size: 11px; }
.extra-person-summary > summary b { color: var(--green); font-size: 13px; }
.extra-person-summary > summary i { color: var(--muted); font-size: 20px; font-style: normal; transition: transform .2s ease; }
.extra-person-summary[open] > summary { border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.extra-person-summary[open] > summary i { transform: rotate(180deg); }
.extra-person-name strong { font-size: 15px; }
.extra-person-approved b { color: var(--muted); font-weight: 500; }
.extra-person-detail { max-height: 330px; border: 0; border-radius: 0; }
.extra-person-detail td small { display: block; margin-top: 3px; color: var(--muted); }
.muted { color: var(--muted); }

/* Padrão tipográfico da interface: escrita normal, sem rótulos inteiros em caixa alta. */
.field > span,
.field > label,
th,
.eyebrow,
.nav-section-title,
.product-filter-field > span,
.product-list-header,
.production-details dt,
.afternoon-coffee-live span,
.breakfast-kanban-card-head span,
.request-product-summary span,
.buffet-template-family,
.ab-comparison-hero span,
.ab-goal-grid article > span,
.ab-comparison-summary span,
.ab-annual-kpis span,
.ab-daily-grid span,
.ab-hero-main > span,
.ab-result > span,
.ab-overview-shortcuts span,
.ab-cmv-gap span,
.ab-cmv-driver-grid span,
.abc-product-heading span,
.ab-revenue-composition-lines small {
  letter-spacing: normal;
  text-transform: none;
}

.field > span,
.field > label {
  color: #4f504b;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}
@media (max-width: 820px) {
  .silbeck-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .silbeck-summary.park-ticket-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .silbeck-summary.unified-sales-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .silbeck-revenue-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-management-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-mapping-row { grid-template-columns: 1fr; }
  .ab-allocation-note { flex-direction: column; }
  .butcher-alert-list { grid-template-columns: 1fr; }
  .extra-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .extra-week-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .extra-week-filters > div { grid-column: 1 / -1; }
  .extra-heading-actions { width: 100%; justify-content: stretch; }
  .extra-heading-actions .field { flex: 1 1 260px; }
  .extra-search-field { min-width: 0; }
  .extra-manager-grid { grid-template-columns: 1fr; }
  .extra-grouped-manager-grid { grid-template-columns: 1fr; }
  .extra-month-heading-actions { width: 100%; justify-content: stretch; }
  .extra-month-heading-actions .field, .extra-month-heading-actions button { flex: 1 1 180px; }
  .extra-person-summary > summary { position: relative; grid-template-columns: 1fr 1fr; }
  .extra-person-summary > summary > i { position: absolute; top: 16px; right: 18px; }
  .extra-person-name { grid-column: 1 / -1; padding-right: 28px; }
  .extra-person-approved { grid-column: 1 / -1; }
  .extra-sheet-header { align-items: stretch; }
  .extra-toolbar { justify-content: stretch; }
  .extra-toolbar .field, .extra-toolbar button { flex: 1 1 180px; }
  .silbeck-waiter-heading { align-items: stretch; flex-direction: column; }
  .waiter-heading-actions { justify-content: space-between; }
}

@media (max-width: 520px) {
  .silbeck-summary { grid-template-columns: 1fr; }
  .silbeck-summary.park-ticket-summary { grid-template-columns: 1fr; }
  .silbeck-summary.unified-sales-summary { grid-template-columns: 1fr; }
  .operation-filter-bar { justify-content: stretch; }
  .operation-filter-bar .average-ticket-toggle { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .operation-filter-bar .cmv-sector-toggle { grid-template-columns: repeat(2, 1fr); }
  .silbeck-revenue-groups { grid-template-columns: 1fr; }
  .extra-summary { grid-template-columns: 1fr; }
  .extra-week-filters { grid-template-columns: 1fr; }
  .extra-week-filters > div { grid-column: auto; padding: 4px 0; }
  .extra-grouped-summary-list article { grid-template-columns: 1fr auto; }
  .extra-grouped-summary-list article > span:last-child { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: center; text-align: left; }
  .extra-grouped-summary-list article > span:last-child b { text-align: right; }
}

@media print {
  body.print-extra-week * { visibility: hidden; }
  body.print-extra-week .app-shell { display: block; min-height: 0; }
  body.print-extra-week .sidebar,
  body.print-extra-week .topbar,
  body.print-extra-week #view > *:not(.extra-week-sheet),
  body.print-extra-week .overlay,
  body.print-extra-week .dialog,
  body.print-extra-week .toast { display: none !important; }
  body.print-extra-week .main,
  body.print-extra-week .view { display: block; width: 100%; max-width: none; min-height: 0; margin: 0; padding: 0; }
  body.print-extra-week .extra-week-sheet, body.print-extra-week .extra-week-sheet * { visibility: visible; }
  body.print-extra-week .extra-print-sector-scope { display: block; margin: 5px 0 0; font-size: 10px; font-weight: 700; }
  body.print-extra-week .extra-week-sheet { position: static; width: 100%; max-width: 100%; margin: 0; padding: 2mm; border: 0; box-sizing: border-box; box-shadow: none; }
  body.print-extra-week .extra-toolbar, body.print-extra-week .extra-week-filters, body.print-extra-week .extra-row-actions, body.print-extra-week .extra-select-col { display: none; }
  body.print-extra-week .extra-week-detail-bar { display: none; }
  body.print-extra-week .extra-summary { grid-template-columns: repeat(4, 1fr); }
  body.print-extra-week .extra-summary article { padding: 10px; }
  body.print-extra-week .extra-summary strong { font-size: 18px; }
  body.print-extra-week .extra-table { overflow: visible; }
  body.print-extra-week .extra-screen-body { display: none; }
  body.print-extra-week .extra-print-body { display: table-row-group; }
  body.print-extra-week .extra-table table { width: 100%; max-width: 100%; font-size: 8.5px; table-layout: auto; }
  body.print-extra-week .extra-table th, body.print-extra-week .extra-table td { padding: 5px 4px; }
  body.print-extra-week .extra-table th:last-child, body.print-extra-week .extra-table td:last-child { display: none; }
  body.print-extra-week .extra-table .extra-signature-col { display: table-cell; min-width: 125px; }
  body.print-extra-week .extra-table td.extra-signature-col span { display: block; min-height: 28px; border-bottom: 1px solid #222; }
  body.print-extra-week .extra-print-supervisor-row td { padding: 9px 6px; background: #eee !important; font-size: 10px; text-align: left; }
  body.print-extra-week .extra-print-section-row td { padding: 10px 7px; border: 1px solid #555; background: #d9d9d9 !important; text-align: left; }
  body.print-extra-week .extra-print-section-row strong { display: block; font-size: 13px; }
  body.print-extra-week .extra-print-section-row span { display: block; margin-top: 2px; font-size: 9px; font-weight: 400; }
  body.print-extra-week .extra-print-differentiated .extra-print-section-row { background: #f2dfae !important; }
  body.print-extra-week .extra-print-body tr:not(.extra-print-supervisor-row) { break-inside: avoid; }
  body.print-extra-week .extra-print-signatures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
  body.print-extra-week .extra-print-signatures span { padding-top: 8px; border-top: 1px solid #222; text-align: center; font-size: 11px; }
}
.ab-revenue-composition-panel {
  margin-top: 18px;
}

.ab-revenue-composition-lines {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.ab-revenue-composition-lines > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}

.ab-revenue-composition-lines > div:last-child {
  border-bottom: 0;
}

.ab-revenue-composition-lines span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ab-revenue-composition-lines small {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: none;
}

.ab-revenue-composition-lines .deduction {
  color: #a63b32;
  background: #fff8f6;
}

.ab-revenue-composition-lines .total {
  padding-block: 14px;
  color: #17324d;
  background: #dbe9f6;
  font-size: 17px;
  font-weight: 800;
}

.ab-festival-rows {
  display: grid;
  gap: 8px;
  margin-top: 7px;
}

.ab-cmv-other-sectors {
  display: block !important;
  padding: 0 !important;
}

.ab-cmv-other-sectors summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  cursor: pointer;
  list-style: none;
}

.ab-cmv-other-sectors summary::-webkit-details-marker {
  display: none;
}

.ab-cmv-other-sectors summary strong {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ab-cmv-other-sectors summary i::before {
  content: "+";
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  font-style: normal;
}

.ab-cmv-other-sectors[open] summary i::before {
  content: "−";
}

.ab-cmv-other-sector-list {
  display: grid;
  gap: 0;
  margin: 0 0 10px 14px;
  padding: 4px 0 4px 14px;
  border-left: 2px solid var(--line);
}

.ab-cmv-other-sector-list > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  color: var(--muted);
  font-size: 13px;
}

.ab-festival-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(120px, .45fr) auto;
  gap: 8px;
  align-items: center;
}

.ab-festival-row input {
  width: 100%;
}

.ab-add-festival {
  justify-self: start;
  margin-top: 10px;
}

@media (max-width: 680px) {
  .ab-festival-row {
    grid-template-columns: 1fr;
  }

  .ab-festival-row button {
    justify-self: start;
  }
}

.dra-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.dra-summary-grid article {
  display: grid;
  gap: 7px;
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.dra-summary-grid article.attention {
  border-color: #efb45c;
  background: #fff9ed;
}

.dra-summary-grid span,
.dra-summary-grid small {
  color: var(--muted);
}

.dra-summary-grid strong {
  align-self: end;
  font-family: inherit;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
}

.dra-alert-panel,
.dra-breakfast-cost-panel,
.dra-buffet-cost-panel,
.dra-driver-panel,
.dra-sheet-panel,
.dra-analysis-grid {
  margin-bottom: 18px;
}

.dra-planning-grid {
  grid-template-columns: minmax(380px, .9fr) minmax(520px, 1.1fr);
  align-items: stretch;
  margin-bottom: 18px;
}

.dra-target-panel { display: flex; flex-direction: column; min-height: 0; }
.dra-target-panel > form { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.dra-target-panel > form > button { align-self: flex-start; }

.dra-target-list {
  display: grid;
  align-content: start;
  flex: 1 1 0;
  gap: 7px;
  margin-bottom: 12px;
  min-height: 260px;
  overflow: auto;
  padding-right: 4px;
  contain: size;
}

.dra-target-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 88px 88px;
  align-items: end;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf9f6;
}

.dra-target-row strong { align-self: center; font-size: 12px; }
.dra-target-row label { display: grid; gap: 3px; color: var(--muted); font-size: 9px; }
.dra-target-row input { width: 100%; min-height: 34px; padding: 6px 8px; }

.dra-simulator-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
  margin-bottom: 12px;
}
.dra-simulator-product-search { min-width: 0; grid-column: 1 / -1; }
.dra-simulator-selection { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 7px; margin-top: 2px; }
.dra-simulator-selection > span { color: var(--muted); font-size: .78rem; }
.dra-simulator-selection > strong { font-size: clamp(1.05rem, 1.35vw, 1.3rem); font-weight: 750; overflow-wrap: anywhere; }
.dra-simulator-suggestions { display: grid; max-height: 205px; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); }
.dra-simulator-suggestions button { display: grid; gap: 2px; width: 100%; min-width: 0; padding: 8px 4px; text-align: left; background: var(--surface); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.dra-simulator-suggestions button:hover, .dra-simulator-suggestions button:focus-visible { background: #f7f6f1; }
.dra-simulator-suggestions button strong { font-size: .82rem; }
.dra-simulator-suggestions p { color: var(--muted); margin: 8px 4px; font-size: .8rem; }

.dra-simulator-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dra-simulator-results article {
  display: grid;
  gap: 5px;
  min-height: 105px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #faf9f6;
}

.dra-simulator-results span,
.dra-simulator-results small { color: var(--muted); }
.dra-simulator-results strong { font-family: inherit; font-size: 25px; font-weight: 500; }
.dra-simulator-results em { color: var(--green); font-size: 11px; font-style: normal; font-weight: 700; }
.dra-simulator-target { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 9px; }
.dra-simulator-target h3 { margin: 0 0 3px; font-size: .95rem; }
.dra-simulator-target > small { color: var(--muted); }
.dra-simulator-target dl { margin: 6px 0 0; }
.dra-simulator-target dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 8px 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .85rem; }
.dra-simulator-target dt small, .dra-simulator-target dd small { display: block; margin-top: 2px; color: var(--muted); }
.dra-simulator-target dd { margin: 0; text-align: right; }

.dra-alert-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dra-alert-list article {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #faf9f6;
}

.dra-alert-list article > span {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
}

.dra-alert-list article > div {
  display: grid;
  gap: 4px;
}

.dra-alert-list .danger > span,
.dra-alert-list .warning > span {
  color: #8a3b14;
  background: #ffe6d4;
}

.dra-alert-list .ok > span {
  color: #126344;
  background: #dff4e9;
}

.dra-analysis-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
}

.dra-driver-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.dra-breakfast-cost-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dra-buffet-cost-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dra-buffet-cost-grid article {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #faf9f6;
}

.dra-buffet-cost-grid article.attention {
  border-color: #eecb8a;
  background: #fff9ed;
}

.dra-buffet-cost-grid span,
.dra-buffet-cost-grid small { color: var(--muted); }

.dra-buffet-cost-grid strong {
  font-family: inherit;
  font-size: 25px;
  font-weight: 500;
}

.dra-breakfast-cost-grid article {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #faf9f6;
}

.dra-breakfast-cost-grid article.highlight {
  border-color: #f1b37d;
  background: var(--orange-soft);
}

.dra-breakfast-cost-grid span,
.dra-breakfast-cost-grid small { color: var(--muted); }

.dra-breakfast-cost-grid strong {
  font-family: inherit;
  font-size: 27px;
  font-weight: 500;
}

.dra-driver-kpis article {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #faf9f6;
}

.dra-driver-kpis span,
.dra-driver-kpis small {
  color: var(--muted);
}

.dra-driver-kpis strong {
  font-family: inherit;
  font-size: 25px;
  font-weight: 500;
}

.dra-driver-toolbar {
  display: grid;
  grid-template-columns: minmax(230px, 1.4fr) repeat(2, minmax(170px, .8fr));
  gap: 10px;
  margin: 0 0 14px;
}

.dra-driver-toolbar .field { margin: 0; }
.dra-driver-toolbar input,
.dra-driver-toolbar select { min-height: 42px; }

.dra-driver-table {
  max-height: 520px;
  overflow: auto;
  isolation: isolate;
}

.dra-driver-table thead {
  position: static;
  box-shadow: none;
}

.dra-driver-table table {
  border-collapse: separate;
  border-spacing: 0;
}

.dra-driver-table thead th {
  position: sticky;
  z-index: 4;
  top: 0;
  background: #f7f6f1;
  box-shadow: 0 1px 0 var(--line);
}

.dra-sort-header {
  display: inline-flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 3px 2px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.dra-sort-header b { color: var(--muted); font-size: 14px; }
.dra-sort-header.active { color: var(--accent); }
.dra-sort-header.active b { color: var(--accent); }
.dra-sort-header:hover { color: var(--accent); }

.dra-driver-table td:first-child strong,
.dra-driver-table td:first-child small,
.dra-driver-table td small {
  display: block;
  margin-top: 4px;
}

@media (max-width: 980px) {
  .dra-planning-grid { grid-template-columns: 1fr; }
  .dra-target-list { flex: 0 1 auto; contain: none; min-height: 0; max-height: min(48vh, 440px); }
  .dra-driver-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .dra-simulator-controls,
  .dra-simulator-results { grid-template-columns: 1fr; }
  .dra-target-row { grid-template-columns: 1fr 1fr; }
  .dra-target-row strong { grid-column: 1 / -1; }
  .dra-driver-toolbar { grid-template-columns: 1fr; }
}

.dra-difference-warning {
  color: #8a5a0a;
  font-weight: 700;
}

.dra-priority {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.dra-priority.critical { color: #8c2e20; background: #fee3dd; }
.dra-priority.attention { color: #8a5a0a; background: #fff0c9; }
.dra-priority.normal { color: #276251; background: #def2e9; }

.dra-decision-note {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #5e4933;
  background: #fff8ec;
  flex-direction: column;
}

.dra-sheet-panel td small,
.dra-analysis-grid td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .dra-summary-grid,
  .dra-alert-list,
  .dra-breakfast-cost-grid,
  .dra-buffet-cost-grid,
  .dra-driver-kpis,
  .dra-analysis-grid {
    grid-template-columns: 1fr;
  }
}

.dra-count-panel {
  margin-bottom: 24px;
}

.dra-count-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.dra-count-kpis article {
  display: grid;
  gap: 5px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #faf9f6;
}

.dra-count-kpis strong {
  font-family: inherit;
  font-size: 28px;
  font-weight: 500;
}

.dra-count-kpis span,
.dra-count-kpis small,
.dra-count-tabs span,
.dra-comparison-list span {
  color: var(--muted);
}

.dra-count-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
}

.dra-count-tabs button {
  display: grid;
  flex: 0 0 auto;
  gap: 3px;
  min-width: 210px;
  padding: 11px 13px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.dra-count-tabs button.active {
  color: var(--orange-dark);
  border-color: var(--orange);
  background: var(--orange-soft);
}

.dra-count-workspace {
  margin-top: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.dra-count-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dra-count-head h3,
.dra-count-head p {
  margin: 0;
}

.dra-count-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(180px, 1fr);
  align-items: end;
  gap: 10px;
  max-width: 760px;
  margin: 16px 0 10px;
}

.dra-count-search,
.dra-count-group-filter {
  max-width: none;
  margin: 0;
}

.dra-count-value-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 4px;
}

.dra-count-value-summary article {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #faf9f6;
}

.dra-count-value-summary article.attention {
  border-color: #e6a472;
  background: #fff5eb;
}

.dra-count-value-summary span,
.dra-count-value-summary small {
  color: var(--muted);
}

.dra-count-value-summary strong {
  font-size: 20px;
}

.dra-value-warning {
  margin: 9px 0;
  padding: 9px 11px;
  color: #8a4a1f;
  border-radius: 9px;
  background: #fff3e8;
  font-size: 12px;
}

.dra-stock-consolidation {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  padding: 11px 13px;
  border: 1px solid #c9ded2;
  border-radius: 11px;
  background: #eff8f3;
}

.dra-stock-consolidation.pending {
  border-color: #e8c98b;
  background: #fff7e7;
}

.dra-stock-consolidation span {
  color: var(--muted);
  font-size: 12px;
}

.dra-inventory-alert-badge {
  display: inline-flex;
  margin-left: 7px;
  padding: 3px 6px;
  border-radius: 999px;
  color: #8a4a16;
  background: #fff0c9;
  font-size: 9px;
  font-weight: 800;
  text-transform: none;
}

.dra-inventory-alert-badge.missing {
  color: #7a4d43;
  background: #f6e8e4;
}

.dra-new-inventory-item td {
  background: #fffaf0;
}

.dra-missing-inventory-item td {
  background: #fcf5f3;
}

.dra-count-table {
  max-height: 620px;
  overflow: auto;
}

.dra-count-mobile-list {
  display: none;
}

.dra-count-table thead {
  position: sticky;
  z-index: 1;
  top: 0;
  background: var(--card);
}

.dra-count-expression {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 6px;
  min-width: 180px;
}

.dra-count-expression .link-button {
  display: block;
  margin-top: 4px;
  padding: 0;
  font-size: 12px;
}

.dra-count-entry-form {
  display: flex;
  gap: 6px;
  min-width: 160px;
}

.dra-count-entry-form input {
  width: 88px;
}

.dra-count-entry-dialog .field {
  width: 100%;
}

.dra-count-entry-dialog {
  display: block;
  width: min(380px, calc(100vw - 32px));
  min-width: 0;
}

.dra-count-entry-dialog .dialog-header {
  align-items: flex-start;
}

.dra-count-entry-dialog .dialog-header h2 {
  font-size: 22px;
}

.dra-count-entry-dialog .dialog-body {
  display: grid;
  gap: 8px;
  padding-block: 14px;
}

.dra-count-entry-dialog .field input {
  width: 100%;
  min-height: 46px;
  font-size: 20px;
}

.dra-count-dialog-actions {
  justify-content: flex-end;
  gap: 8px;
}

.dra-count-dialog-actions .extra-icon-action {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  flex-basis: 36px;
}

@media (max-width: 760px) {
  .dra-count-filters {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .dra-count-entry-dialog {
    width: min(340px, calc(100vw - 24px));
  }

  .dra-count-entry-dialog .dialog-header,
  .dra-count-entry-dialog .dialog-body,
  .dra-count-entry-dialog .dialog-actions {
    padding-inline: 14px;
  }

  .dra-count-desktop-table {
    display: none;
  }

  .dra-count-mobile-list {
    display: grid;
    gap: 6px;
    max-height: 62vh;
    padding-right: 3px;
    overflow-y: auto;
  }

  .dra-count-mobile-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    min-height: 52px;
    padding: 7px 8px 7px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
  }

  .dra-count-mobile-item.is-counted {
    border-color: #c4ddcf;
    background: #edf7f2;
  }

  .dra-count-mobile-item.is-new-inventory {
    border-color: #e2b85e;
    background: #fff8e8;
  }

  .dra-stock-consolidation {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .dra-count-mobile-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
  }

  .dra-count-mobile-copy strong {
    overflow: hidden;
    font-size: 13px;
    line-height: 1.25;
    text-overflow: ellipsis;
  }

  .dra-count-mobile-copy small,
  .dra-count-mobile-total small {
    color: var(--muted);
    font-size: 10px;
  }

  .dra-count-mobile-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    min-width: 32px;
  }

  .dra-count-mobile-total {
    display: grid;
    gap: 1px;
    min-width: 60px;
    text-align: right;
  }

  .dra-count-mobile-total strong {
    color: #17654d;
    font-size: 12px;
    white-space: nowrap;
  }

  .dra-count-mobile-item .dra-edit-entry-button { margin: 0; }
}

.dra-difference-alert {
  color: #a33c1b;
  font-weight: 700;
}

.dra-difference-ok {
  color: #147052;
  font-weight: 700;
}

.dra-comparison-list {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.dra-comparison-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.dra-comparison-list article > div {
  display: grid;
  gap: 3px;
}

@media (max-width: 760px) {
  .dra-count-kpis {
    grid-template-columns: 1fr;
  }

  .dra-count-value-summary {
    grid-template-columns: 1fr;
  }

  .dra-count-head,
  .dra-comparison-list article {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Alguns catálogos usavam overflow oculto para manter as bordas arredondadas.
   Mantemos o acabamento, mas liberamos a rolagem quando ultrapassarem o limite. */
.product-list,
.management-product-list {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

:where(
  .ab-daily-grid,
  .ab-block-grid,
  .ab-sector-result-grid,
  .ab-event-block-grid,
  .breakfast-metric-list,
  .butcher-alert-list
) {
  max-height: min(68vh, 680px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

@media (max-width: 760px) {
  :where(
    .ab-daily-grid,
    .ab-block-grid,
    .ab-sector-result-grid,
    .ab-event-block-grid,
    .breakfast-metric-list,
    .butcher-alert-list
  ) {
    max-height: 58vh;
  }
}

