:root {
  color-scheme: light;
  --navy-950: #091321;
  --navy-900: #0b1526;
  --navy-800: #0f1a2e;
  --navy-700: #1d3460;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --teal-500: #14b8a6;
  --canvas: #f1f4f8;
  --surface: #fff;
  --text: #1b2939;
  --muted: #718096;
  --border: #e2e8f0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; font-size: 13px; line-height: 1.5; }
button, input, select { font: inherit; }
button, select { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #21b8a7; outline-offset: 2px; }
[hidden] { display: none !important; }

.preview-skip-link {
  position: fixed; z-index: 20; top: 10px; left: 10px; padding: 10px 14px;
  transform: translateY(-150%); border-radius: 6px; background: #fff; color: var(--navy-900); font-weight: 700;
}
.preview-skip-link:focus { transform: translateY(0); }
.preview-notice { border-bottom: 1px solid #dce6f0; background: #fff; }
.preview-notice-inner {
  display: flex; max-width: 1500px; min-height: 42px; align-items: center; gap: 10px;
  margin: 0 auto; padding: 7px 25px; color: #536277;
}
.notice-symbol {
  display: grid; width: 18px; height: 18px; flex: 0 0 auto; place-items: center;
  border: 1px solid #c8d7ec; border-radius: 50%; color: #315e9b; font-family: Georgia, serif; font-size: 11px; font-weight: 700;
}
.preview-notice p { flex: 1; margin: 0; font-size: 11px; }
.preview-notice strong { color: #213755; }
.preview-notice a { flex: 0 0 auto; color: #315e9b; font-size: 11px; font-weight: 700; }
.preview-notice a:hover { color: var(--blue-600); }

main { padding: 25px 22px 36px; }
.preview-intro { max-width: 1510px; margin: 0 auto 19px; }
.preview-eyebrow { margin: 0 0 4px; color: #079989; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.preview-intro h1 { margin: 0; color: var(--navy-900); font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -.04em; }
.preview-intro > p:last-child { margin: 5px 0 0; color: #64748b; font-size: 12px; }

.system-window {
  max-width: 1510px; min-height: 640px; overflow: hidden; margin: 0 auto;
  border: 1px solid #dbe2eb; border-radius: 9px; background: #fff;
  box-shadow: 0 15px 45px rgb(22 37 60 / 10%), 0 2px 8px rgb(22 37 60 / 4%);
}
.system-header {
  display: grid; min-height: 68px; grid-template-columns: minmax(225px, 1fr) auto minmax(160px, 1fr);
  align-items: center; gap: 20px; padding: 0 24px; border-bottom: 1px solid #27354a; background: var(--navy-800); color: #fff;
}
.system-brand { display: inline-flex; width: fit-content; align-items: center; gap: 9px; color: #fff; text-decoration: none; }
.system-brand img { width: 29px; height: 29px; }
.system-brand > strong { font-size: 16px; letter-spacing: .12em; }
.brand-divider { width: 1px; height: 24px; margin: 0 3px; background: #526075; }
.client-name {
  color: #b9fff3; font-size: 11px; font-weight: 750; letter-spacing: .06em; white-space: nowrap;
}
.system-tabs { display: flex; height: 68px; overflow-x: auto; overflow-y: hidden; align-items: stretch; gap: 5px; scrollbar-width: none; }
.system-tabs::-webkit-scrollbar, .subtabs::-webkit-scrollbar { display: none; }
.system-tabs button {
  position: relative; display: inline-flex; align-items: center; padding: 0 15px; border: 0;
  background: transparent; color: #c5cfdd; font-size: 11px; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.system-tabs button:hover { color: #fff; background: rgb(255 255 255 / 4%); }
.system-tabs button.is-active { color: #fff; font-weight: 700; }
.system-tabs button.is-active::after { position: absolute; right: 12px; bottom: 0; left: 12px; height: 2px; background: #23b7a5; content: ""; }
.demo-user { position: relative; display: inline-flex; justify-self: end; align-items: center; gap: 10px; color: #dce4ee; font-size: 11px; }
.user-label { white-space: nowrap; }
.gear-button { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #304159; border-radius: 8px; background: #17243a; color: #dce4ee; cursor: pointer; }
.gear-button:hover, .gear-button[aria-expanded="true"] { border-color: #23b7a5; color: #fff; }
.gear-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.user-menu { position: absolute; z-index: 10; top: calc(100% + 8px); right: 0; width: 240px; padding: 6px; border: 1px solid #e1e7ee; border-radius: 8px; background: #fff; color: #26384f; box-shadow: 0 14px 34px rgb(15 26 46 / 18%); }
.user-menu-header { display: grid; padding: 8px 10px 9px; border-bottom: 1px solid #edf0f4; margin-bottom: 4px; }
.user-menu-header strong { font-size: 12px; }
.user-menu-header small { color: #718096; font-size: 10px; }
.user-menu > button, .user-menu > a { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 5px; background: transparent; color: #26384f; font-size: 11px; text-align: left; text-decoration: none; cursor: pointer; }
.user-menu > button:hover, .user-menu > a:hover { background: #f2f6fd; }
.user-menu > button[aria-disabled="true"] { color: #8a97a7; cursor: default; }
.user-menu > button[aria-disabled="true"]:hover { background: transparent; }
.user-menu > button.is-active { background: #eaf1fd; color: #1c55bb; font-weight: 700; }
.user-menu hr { margin: 5px 0; border: 0; border-top: 1px solid #edf0f4; }
.user-menu-theme { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; color: #718096; font-size: 10px; }
.theme-options { display: inline-flex; gap: 4px; }
.theme-options span { padding: 3px 7px; border: 1px solid #e1e7ee; border-radius: 5px; color: #536277; }
.theme-options span.is-active { border-color: #cbd9f2; background: #f2f6fd; color: #1c55bb; }
.user-menu-note { margin: 4px 10px 6px; color: #8a97a7; font-size: 9px; }

.system-content { max-width: 1510px; margin: 0 auto; padding: 25px 27px 12px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.page-title-block { min-width: 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: #8b98a9; font-size: 10px; }
.breadcrumb span:first-child { color: #627187; font-weight: 700; }
.breadcrumb span:last-child { color: #536277; }
.page-title-block h2 { margin: 0; color: var(--navy-900); font-size: 23px; font-weight: 700; letter-spacing: -.035em; }
.page-title-block > p { margin: 4px 0 0; color: #718096; font-size: 11px; }
.page-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.button {
  display: inline-flex; min-height: 32px; align-items: center; justify-content: center; padding: 0 11px;
  border: 1px solid #dce3eb; border-radius: 5px; background: #fff; color: #44536a;
  font-size: 10px; font-weight: 650; white-space: nowrap;
}
.button-secondary:hover, .button-quiet:hover { border-color: #c6d2e0; background: #f8fafc; }
.button-primary { border-color: var(--blue-600); background: var(--blue-600); color: #fff; }
.button-primary:hover { border-color: var(--blue-700); background: var(--blue-700); }
.button-quiet { min-height: 30px; border-color: transparent; background: transparent; color: #536277; }

.section-switch { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.section-switch button { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 13px; border: 1px solid #dce3eb; border-radius: 6px; background: #fff; color: #536277; font-size: 11px; font-weight: 600; cursor: pointer; }
.section-switch button:hover { border-color: #c6d2e0; background: #f8fafc; }
.section-switch button.is-active { border-color: #0f1a2e; background: #0f1a2e; color: #fff; }
.count-badge { display: inline-grid; min-width: 18px; height: 18px; place-items: center; padding: 0 5px; border-radius: 99px; background: #f59e0b; color: #1b2939; font-size: 9px; font-weight: 800; }
.dashboard-areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 13px; }
.dashboard-areas button { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid #e1e7ee; border-radius: 8px; background: #fff; color: #26384f; text-align: left; cursor: pointer; }
.dashboard-areas button:hover { border-color: #c6d2e0; }
.dashboard-areas button strong { font-size: 12px; }
.dashboard-areas button span { color: #718096; font-size: 10px; }
.dashboard-areas button.is-active { border-color: #0f1a2e; background: linear-gradient(115deg, #0b1526, #1d3460); color: #fff; }
.dashboard-areas button.is-active span { color: #c5d1e2; }

.area-toolbar {
  display: flex; min-height: 50px; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-bottom: 13px; padding: 7px 11px; border: 1px solid #e5eaf0; border-radius: 6px; background: #fafbfd;
}
.field { display: inline-flex; align-items: center; gap: 8px; color: #69798d; font-size: 10px; font-weight: 600; }
.field > select, .toolbar > select {
  min-width: 135px; height: 30px; padding: 0 26px 0 9px; border: 1px solid #dce3eb; border-radius: 5px;
  background-color: #fff; color: #45556b; font-size: 10px;
}
.field-month > select { min-width: 150px; }
.field-static > strong {
  display: inline-flex; min-width: 150px; height: 30px; align-items: center; padding: 0 9px;
  border: 1px solid #dce3eb; border-radius: 5px; background: #fff; color: #45556b;
  font-size: 10px; font-weight: 500; white-space: nowrap;
}
.field-static:not(.field-month) > strong { min-width: 190px; }
.area-toolbar-note { margin-left: auto; color: #8a97a7; font-size: 9px; }

.summary-section { margin-bottom: 15px; }
.summary-heading { margin: 0 0 8px; color: #59697f; font-size: 11px; font-weight: 700; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.summary-card {
  min-width: 0; min-height: 83px; padding: 13px 14px 11px; border: 1px solid #e1e7ee;
  border-radius: 6px; background: #fff; box-shadow: 0 1px 4px rgb(15 26 46 / 3%);
}
.summary-card-highlight { border-top: 2px solid #2563eb; padding-top: 12px; }
.summary-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #68788d; font-size: 10px; font-weight: 600; }
.info-mark { display: grid; width: 15px; height: 15px; place-items: center; border: 1px solid #dce3eb; border-radius: 50%; color: #8390a1; font-family: Georgia, serif; font-size: 9px; font-style: italic; }
.summary-card > small { display: block; margin-top: 4px; color: #8390a1; font-size: 9px; line-height: 1.4; }
.summary-card > strong { display: block; overflow: hidden; margin-top: 7px; color: #14233a; font-size: clamp(16px, 1.7vw, 21px); font-weight: 750; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.supplier-breakdown { margin: 0 0 14px; padding: 13px 15px; border: 1px solid #e3e9f0; border-radius: 6px; background: #fff; }
.supplier-breakdown h3 { margin: 0 0 8px; color: #30415a; font-size: 11px; }
.supplier-bars { display: grid; gap: 8px; }
.supplier-row { display: grid; grid-template-columns: minmax(100px, 180px) minmax(90px, 1fr) 112px; align-items: center; gap: 12px; color: #5b6a7f; font-size: 9px; }
.supplier-row > strong { color: #45556b; font-size: 9px; text-align: right; }
.supplier-track { height: 6px; overflow: hidden; border-radius: 9px; background: #edf1f6; }
.supplier-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3e7bef, #1b9d9c); }

.subtabs { display: flex; min-height: 37px; overflow-x: auto; overflow-y: hidden; align-items: stretch; gap: 3px; border-bottom: 1px solid #dfe5ed; scrollbar-width: none; }
.subtabs > span { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; padding: 0 12px; color: #6c7a8d; font-size: 10px; white-space: nowrap; }
.subtabs > span.is-active { color: #1c55bb; font-weight: 700; }
.subtabs > button { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; padding: 0 12px; border: 0; background: transparent; color: #6c7a8d; font-size: 10px; white-space: nowrap; cursor: pointer; }
.subtabs > button:hover { color: #1c55bb; }
.subtabs > button.is-active { color: #1c55bb; font-weight: 700; }
.subtabs > button.is-active::after,
.subtabs > span.is-active::after { position: absolute; right: 9px; bottom: -1px; left: 9px; height: 2px; background: #2563eb; content: ""; }

.table-panel { overflow: hidden; border: 1px solid #e0e6ed; border-top: 0; border-radius: 0 0 6px 6px; background: #fff; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 11px 12px; border-bottom: 1px solid #e8edf2; }
.toolbar-wide .search-field { flex: 1 1 230px; }
.search-field { display: flex; min-width: 190px; height: 31px; flex: 1 1 250px; align-items: center; gap: 8px; padding: 0 9px; border: 1px solid #dce3eb; border-radius: 5px; background: #fff; }
.search-icon { color: #8190a3; font-size: 17px; line-height: 1; transform: rotate(-20deg); }
.search-field input { width: 100%; min-width: 0; padding: 0; border: 0; outline: none; color: #3e4e64; font-size: 10px; }
.search-field input::placeholder { color: #9aa5b3; }
.toolbar > select { min-width: 129px; height: 31px; }
.toolbar .button-export { margin-left: auto; }
.column-filters { display: flex; min-height: 39px; align-items: center; flex-wrap: wrap; gap: 5px; padding: 6px 12px; border-bottom: 1px solid #e9edf2; }
.column-filters > span { margin-right: 3px; color: #8b97a7; font-size: 9px; }
.filter-chip { padding: 4px 8px; border: 1px solid #e0e6ed; border-radius: 4px; background: #fff; color: #718096; font-size: 9px; white-space: nowrap; }
.filter-chip.is-selected { border-color: #cbd9f2; background: #f2f6fd; color: #355eaa; }
.table-scroll { overflow-x: auto; }
.system-table { width: 100%; min-width: 790px; border-collapse: collapse; text-align: left; }
.system-table th { height: 36px; padding: 0 11px; border-bottom: 1px solid #e1e7ee; background: #f7f9fb; color: #7d8b9e; font-size: 9px; font-weight: 700; letter-spacing: .045em; white-space: nowrap; }
.system-table td { height: 43px; padding: 5px 11px; border-bottom: 1px solid #edf0f4; color: #536277; font-size: 10px; white-space: nowrap; }
.system-table tbody tr:hover { background: #f9fbfe; }
.system-table tbody tr:last-child td { border-bottom: 0; }
.system-table .cell-strong { color: #26384f; font-weight: 650; }
.system-table td:first-child { color: #65758b; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 7px; border-radius: 99px; font-size: 9px; font-weight: 650; }
.status-pill i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-positive { background: #e8f7ef; color: #198252; }
.status-pending { background: #fff5df; color: #9a7214; }
.status-negative { background: #fff0ef; color: #bc514b; }
.empty-row { height: 70px !important; color: #8995a4 !important; text-align: center; }
.table-footer { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 12px; border-top: 1px solid #e8edf2; color: #8491a2; font-size: 9px; }
.pagination { display: flex; align-items: center; gap: 9px; }
.pagination button { min-height: 26px; padding: 0 8px; border: 1px solid #e1e7ed; border-radius: 4px; background: #fff; color: #68788d; font-size: 9px; }
.pagination button:disabled { color: #aab3bf; background: #fafbfd; }
.pagination span { white-space: nowrap; }
.system-footer { display: flex; min-height: 36px; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; color: #8995a5; font-size: 9px; }
.system-footer > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.system-footer img { opacity: .7; }
.demo-footer-badge { display: inline-flex; align-items: center; gap: 6px; }
.demo-footer-badge i { width: 6px; height: 6px; border-radius: 50%; background: #14a68f; }
.preview-caption { display: flex; max-width: 1510px; align-items: flex-start; gap: 8px; margin: 11px auto 0; color: #788699; font-size: 10px; }
.preview-caption > span { color: #39807b; font-size: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

.dashboard-charts { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.chart-card { min-width: 0; padding: 15px 16px 16px; border: 1px solid #e1e7ee; border-radius: 6px; background: #fff; box-shadow: 0 1px 4px rgb(15 26 46 / 3%); }
.chart-card h3 { margin: 0; color: #14233a; font-size: 13px; }
.chart-card > p { margin: 2px 0 12px; color: #718096; font-size: 10px; }
.donut-layout { display: flex; align-items: center; gap: 22px; }
.donut { position: relative; width: 150px; flex: 0 0 150px; }
.donut svg { display: block; width: 100%; height: auto; }
.donut-track { fill: none; stroke: #eef2f6; stroke-width: 16; }
.donut-segment { fill: none; stroke-width: 16; cursor: pointer; transition: stroke-width .15s ease; }
.donut-segment:hover, .donut-segment:focus-visible { stroke-width: 19; outline: none; }
.donut-total { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.donut-total span { color: #718096; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.donut-total strong { color: #14233a; font-size: 12px; }
.chart-legend { display: grid; flex: 1; max-width: 400px; gap: 7px; margin: 0; padding: 0; list-style: none; }
.chart-legend li { display: grid; grid-template-columns: 10px 1fr auto 42px; align-items: center; gap: 8px; color: #45556b; font-size: 10px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; }
.chart-legend strong { color: #26384f; font-weight: 650; }
.chart-legend small { color: #8390a1; font-size: 9px; text-align: right; }
.bar-list { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 90px 1fr 92px; align-items: center; gap: 10px; color: #45556b; font-size: 10px; border-radius: 4px; }
.bar-row:focus-visible { outline: 3px solid #21b8a7; outline-offset: 3px; }
.bar-row > strong { color: #26384f; font-weight: 650; text-align: right; }
.bar-track { height: 10px; overflow: hidden; border-radius: 0 4px 4px 0; background: #eef2f6; }
.bar-track i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: #2366a8; }
.bar-row:hover .bar-track i { background: #1d5590; }
.chart-tooltip { position: absolute; z-index: 5; max-width: 260px; padding: 6px 9px; border-radius: 5px; background: #0f1a2e; color: #fff; font-size: 10px; font-weight: 600; white-space: nowrap; pointer-events: none; box-shadow: 0 6px 16px rgb(15 26 46 / 20%); }

/* ---------- Colaboradores: balões, semanas e tabelas de pagamento (como no sistema) ---------- */
.button-danger { border-color: #f3b39a; background: #fff4ef; color: #b4441c; }
.button-danger:hover { border-color: #e98d6c; background: #ffe9df; }
.section-switch button, .pill-switch button { border-radius: 999px; }
.pill-switch { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 12px; scroll-margin-top: 12px; }
.pill-switch button { min-height: 30px; padding: 0 13px; border: 1px solid #d3dbe6; background: #fff; color: #26384f; font-size: 11px; font-weight: 500; cursor: pointer; }
.pill-switch button:hover { border-color: #14b8a6; color: #0f1a2e; }
.pill-switch button.is-active { border-color: #0f1a2e; background: #0f1a2e; color: #fff; }

.row-title { margin: 4px 0 7px; color: #5b6b7a; font-size: 10px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.collapse-button { display: inline-flex; align-items: center; gap: 7px; margin-left: -4px; padding: 2px 4px; border: 0; border-radius: 5px; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.collapse-button:hover { background: #e9eef3; color: #0f1a2e; }
.collapse-arrow { display: inline-block; transition: transform .15s ease; }
.collapse-arrow.is-open { transform: rotate(90deg); }
.collapse-hint { color: #8a97a7; font-weight: 500; text-transform: none; letter-spacing: 0; }

.balloon-grid { display: grid; gap: 10px; margin-bottom: 14px; }
.balloon-grid-month { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.balloon { position: relative; display: grid; align-content: start; gap: 3px; min-width: 0; min-height: 86px; padding: 12px 13px; border: 1px solid #e1e7ee; border-radius: 9px; background: #fff; box-shadow: 0 1px 4px rgb(15 26 46 / 4%); }
.balloon-label { padding-right: 22px; color: #5b6b7a; font-size: 10px; font-weight: 600; }
.balloon-value { color: #14233a; font-size: clamp(14px, 1.35vw, 18px); font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.balloon-hint { color: #718096; font-size: 9px; line-height: 1.35; }
.balloon-highlight { border: 0; background: linear-gradient(145deg, #0f1a2e, #1e3a8a); }
.balloon-highlight.balloon-costs { background: linear-gradient(145deg, #0f1a2e, #0f766e); }
.balloon-highlight .balloon-label { color: rgb(255 255 255 / 78%); }
.balloon-highlight .balloon-value { color: #fff; }
.balloon-saving .balloon-value { color: #15803d; }
.balloon.is-clickable { cursor: pointer; transition: border-color .15s, transform .15s; }
.balloon.is-clickable:hover { border-color: #14b8a6; transform: translateY(-1px); }
.balloon.is-clickable:focus-visible { outline: 2px solid #2dd4bf; outline-offset: 2px; }
.balloon.is-selected { border: 2px solid #14b8a6; box-shadow: 0 0 0 3px #dcf5f1; }
.balloon-week-partial { border-style: dashed; }
.balloon-week-partial.is-selected { border-style: solid; }
.week-badge { justify-self: start; margin-top: 3px; padding: 2px 7px; border-radius: 99px; font-size: 9px; font-weight: 700; }
.week-badge.Pago { background: #e8f7ee; color: #15803d; }
.week-badge.Pendente { background: #fff0ea; color: #b4441c; }
.week-badge.EmAndamento { background: #dcf5f1; color: #0f1a2e; }
.week-badge.Futura { background: #eef2f6; color: #5b6b7a; }

.balloon-info { position: static; }
.info-button { position: absolute; z-index: 3; top: 7px; right: 7px; display: grid; width: 18px; height: 18px; place-items: center; padding: 0; border: 1.5px solid currentColor; border-radius: 50%; background: transparent; color: #718096; font: italic 700 11px/1 Georgia, "Times New Roman", serif; cursor: pointer; opacity: .85; }
.info-button:hover, .info-button[aria-expanded="true"] { color: #0f1a2e; opacity: 1; }
.balloon-highlight .info-button { color: rgb(255 255 255 / 85%); }
.balloon-highlight .info-button:hover, .balloon-highlight .info-button[aria-expanded="true"] { color: #fff; }
.info-pop { position: absolute; z-index: 6; top: 30px; right: 0; display: grid; width: 280px; max-width: calc(100vw - 40px); gap: 6px; padding: 11px 13px; border-radius: 9px; background: #0b1526; color: #fff; font-size: 11px; font-style: normal; font-weight: 400; line-height: 1.45; text-align: left; box-shadow: 0 12px 30px rgb(0 0 0 / 28%); }
.info-pop[hidden] { display: none; }
.balloon-grid-month > .balloon:nth-child(-n + 2) .info-pop, .balloon-grid-weeks > .balloon:first-child .info-pop { right: auto; left: 0; }
.info-lines { display: grid; gap: 3px; padding: 6px 0; border-block: 1px solid rgb(255 255 255 / 14%); }
.info-lines > span { display: flex; justify-content: space-between; gap: 10px; }
.info-lines b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.info-lines > .info-discount, .info-lines > .info-discount b { color: #6ee7a0; }

.discount-total { display: grid; grid-column: span 2; align-self: center; justify-items: center; gap: 3px; padding: 0 10px; text-align: center; }
.discount-total span { color: #0b1526; font-size: 15px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.discount-total strong { color: #15803d; font-size: 22px; font-variant-numeric: tabular-nums; }

.pending-strip { margin-bottom: 12px; padding: 8px 12px; border: 1px solid #f3dca0; border-radius: 7px; background: #fff8e6; color: #7a5410; font-size: 11px; }

.pay-panel { border-top: 1px solid #e0e6ed; border-radius: 6px; }
.pay-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; padding: 11px 12px; border-bottom: 1px solid #e8edf2; }
.week-nav { display: inline-flex; align-items: center; gap: 6px; }
.week-nav .button { min-width: 30px; font-size: 15px; }
.week-nav .button:disabled { color: #c3cbd6; }
.week-name { display: grid; line-height: 1.3; }
.week-name span { color: #718096; font-size: 9px; }
.week-name strong { color: #26384f; font-size: 11px; white-space: nowrap; }
.pay-search { flex: 0 1 220px; min-width: 170px; }
.pay-description { flex: 1 1 260px; color: #718096; font-size: 10px; }
.pay-status { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.status-card { display: grid; min-width: 112px; gap: 1px; padding: 5px 12px; border: 1px solid; border-radius: 9px; text-align: center; }
.status-card strong { font-size: 13px; }
.status-card small { font-size: 9px; }
.status-card.is-paid { border-color: #86d4a4; background: #e8f7ee; color: #15803d; }
.status-card.is-pending { border-color: #f3b39a; background: #fff0ea; color: #b4441c; }
.pay-table th.num, .pay-table td.num, .system-table th.num, .system-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.pay-table tfoot td { height: 38px; padding: 5px 11px; border-top: 2px solid #d3dbe6; background: #eef7f6; color: #26384f; font-size: 10px; font-weight: 700; white-space: nowrap; }
.value-negative { color: #15803d; }
.row-muted td { color: #a0abb8 !important; }
.empty-note { margin: 0; padding: 22px; color: #8995a4; font-size: 11px; text-align: center; }

.filter-chip { cursor: pointer; font: inherit; font-size: 9px; }
button.filter-chip:hover { border-color: #cbd9f2; }
.name-cell { display: inline-flex; align-items: center; gap: 6px; }
.tag-inactive { padding: 1px 6px; border-radius: 99px; background: #eef2f6; color: #718096; font-size: 8px; font-weight: 700; }
.alert-dot { width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; }
.muted { color: #8a97a7; }

@media (max-width: 1300px) {
  .balloon-grid-month { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .balloon-grid-month > .balloon:nth-child(4n + 1) .info-pop, .balloon-grid-month > .balloon:nth-child(4n + 2) .info-pop { right: auto; left: 0; }
  .balloon-grid-month > .balloon:nth-child(4n + 3) .info-pop, .balloon-grid-month > .balloon:nth-child(4n) .info-pop { right: 0; left: auto; }
}
@media (max-width: 900px) {
  .balloon-grid-weeks { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px) {
  .balloon-grid-month { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .balloon-grid > .balloon:nth-child(odd) .info-pop { right: auto; left: 0; }
  .balloon-grid > .balloon:nth-child(even) .info-pop { right: 0; left: auto; }
  .info-pop { width: min(280px, calc(100vw - 60px)); }
  .discount-total { grid-column: 1 / -1; }
  .pay-status { width: 100%; justify-content: space-between; margin-left: 0; }
  .pay-search { flex: 1 1 100%; }
}

@media (max-width: 1050px) {
  .system-header { grid-template-columns: 1fr auto; gap: 10px 16px; padding-inline: 16px; }
  .system-brand { grid-column: 1; grid-row: 1; }
  .demo-user { grid-column: 2; grid-row: 1; }
  .system-tabs { grid-column: 1 / -1; grid-row: 2; height: 43px; overflow-x: auto; margin: -4px -16px 0; padding: 0 8px; border-top: 1px solid #29374b; }
  .system-tabs button { padding-inline: 13px; }
  .system-content { padding: 21px 19px 11px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .page-actions { justify-content: flex-start; }
  .dashboard-charts { grid-template-columns: 1fr; }
  .dashboard-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .preview-notice-inner { align-items: flex-start; padding: 9px 13px; }
  .notice-symbol { margin-top: 1px; }
  .preview-notice p { font-size: 10px; line-height: 1.45; }
  .preview-notice a { font-size: 0; white-space: nowrap; }
  .preview-notice a span { font-size: 15px; }
  main { padding: 18px 10px 24px; }
  .preview-intro { margin: 0 4px 14px; }
  .preview-intro h1 { font-size: 23px; }
  .preview-intro > p:last-child { max-width: 440px; font-size: 11px; }
  .system-window { min-height: 0; border-radius: 7px; }
  .system-header { min-height: 61px; padding-inline: 13px; }
  .system-brand { gap: 7px; }
  .system-brand img { width: 26px; height: 26px; }
  .system-brand > strong { font-size: 14px; }
  .brand-divider { height: 20px; margin-inline: 1px; }
  .client-name { font-size: 9px; letter-spacing: .025em; }
  .demo-user { gap: 5px; padding: 4px; }
  .user-avatar { width: 23px; height: 23px; }
  .user-label { display: none; }
  .user-menu { width: min(240px, calc(100vw - 30px)); }
  .system-tabs { margin-inline: -13px; }
  .system-tabs button { padding-inline: 12px; font-size: 10px; }
  .system-content { padding: 18px 12px 10px; }
  .page-title-block h2 { font-size: 20px; }
  .page-title-block > p { max-width: 330px; font-size: 10px; }
  .page-actions { gap: 6px; }
  .button { min-height: 30px; padding-inline: 9px; font-size: 9px; }
  .area-toolbar { align-items: flex-start; gap: 8px; padding: 9px; }
  .field { flex: 1 1 100%; justify-content: space-between; }
  .field > select, .field-month > select, .field-static > strong { min-width: 0; flex: 1; }
  .area-toolbar-note { width: 100%; margin: 0; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .summary-card { min-height: 74px; padding: 10px; }
  .summary-card-highlight { padding-top: 9px; }
  .summary-card-head { font-size: 9px; }
  .summary-card > strong { margin-top: 6px; font-size: 16px; }
  .supplier-breakdown { padding: 11px; }
  .supplier-row { grid-template-columns: minmax(84px, 1fr) minmax(50px, 1.2fr) 87px; gap: 7px; font-size: 8px; }
  .supplier-row > strong { font-size: 8px; }
  .subtabs { margin-inline: -1px; }
  .subtabs > span { padding-inline: 10px; font-size: 9px; }
  .toolbar { align-items: stretch; padding: 9px; }
  .search-field { flex: 1 1 100%; }
  .toolbar > select { min-width: calc(50% - 5px); flex: 1 1 calc(50% - 5px); }
  .toolbar .button-export { margin-left: 0; }
  .column-filters { padding-inline: 9px; }
  .table-footer { align-items: flex-start; flex-direction: column; padding-block: 9px; }
  .pagination { width: 100%; justify-content: space-between; }
  .system-footer { align-items: flex-start; flex-direction: column; gap: 5px; padding: 11px 2px 2px; font-size: 8px; }
  .preview-caption { margin-inline: 4px; font-size: 9px; }
  .dashboard-charts { grid-template-columns: 1fr; }
  .donut-layout { flex-direction: column; align-items: stretch; }
  .donut { width: 140px; flex-basis: auto; margin: 0 auto; }
  .bar-row { grid-template-columns: 76px 1fr 84px; gap: 7px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
