@import url("./design-system.4c25f4b0e825.css");
@import url("./legacy-visual-tokens.bbaf512ff0c9.css");

/* Operational cash uses the shared ZooNor palette. */
.cash-module { display: grid; gap: var(--ds-space-20); min-width: 0; }
.cash-module .page-heading { margin-bottom: 0; }
.cash-period, .cash-actions, .cash-filters { display: flex; align-items: end; flex-wrap: wrap; gap: var(--ds-space-12); }
.cash-module label, #cash-open-form label, #cash-close-form label, #cash-entry-form label, #cash-reopen-form label, #cash-import-form label { display: grid; gap: var(--ds-space-8); font-size: var(--ds-font-size-12); color: var(--muted); }
.cash-module input:not([type=checkbox]), .cash-module select { padding: var(--ds-space-12) var(--ds-space-12); border: 1px solid var(--line); border-radius: var(--ds-radius-8); background: var(--visual-color-surface); color: var(--brand-dark); font: inherit; max-width: 100%; }
.cash-status { display: flex; align-items: center; gap: var(--ds-space-16); padding: var(--ds-space-20); border: 1px solid var(--visual-palette-d0e9dc); border-radius: var(--ds-radius-12); background: var(--visual-palette-edf9f2); }
.cash-status > div:first-of-type { flex: 1; }
.cash-status.is-open { background: var(--visual-palette-edf8f6); }
.cash-status p, .cash-operation p, .cash-shortcuts p { font-size: var(--ds-font-size-12); color: var(--muted); line-height: 1.6; margin: var(--ds-space-4) 0 0; }
.cash-metrics { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: var(--ds-space-12); }
.cash-metrics > article, .cash-metrics > button { display: grid; align-content: start; gap: var(--ds-space-12); padding: var(--ds-space-20); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--visual-color-surface); text-align: left; color: var(--brand-dark); font: inherit; min-width: 0; }
.cash-metrics > button { cursor: pointer; }
.cash-metrics span { font-size: var(--ds-font-size-12); }.cash-metrics strong { font-size: var(--ds-font-size-22); overflow-wrap: anywhere; }.cash-metrics small { color: var(--muted); font-size: var(--ds-font-size-11); }
.cash-operation { display: flex; flex-wrap: wrap; gap: var(--ds-space-20); align-items: start; padding: var(--ds-space-20); margin: 0; }
.cash-operation > div:first-child { flex: 1; min-width: 190px; }.cash-module h2 { font-size: var(--ds-font-size-16); margin: 0 0 var(--ds-space-8); }
.cash-operation-values { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: var(--ds-space-16); flex-basis: 100%; padding-top: var(--ds-space-16); border-top: 1px solid var(--line); }
.cash-operation-values span { font-size: var(--ds-font-size-12); color: var(--muted); }.cash-operation-values b { display: block; font-size: var(--ds-font-size-22); color: var(--brand-dark); margin-top: var(--ds-space-8); }
.cash-shortcuts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ds-space-12); padding: var(--ds-space-20); background: var(--visual-palette-edf7f4); border: 1px solid var(--visual-palette-d9e9e4); border-radius: var(--ds-radius-12); }
.cash-shortcuts > div { flex: 1; min-width: 200px; }.cash-shortcuts strong { font-size: var(--ds-font-size-13); }
.cash-panel { padding: var(--ds-space-20); margin: 0; min-width: 0; }.cash-panel > header { display: flex; flex-wrap: wrap; gap: var(--ds-space-12); align-items: center; margin-bottom: var(--ds-space-20); }.cash-panel header > div { flex: 1; }
.cash-panel p { color: var(--muted); font-size: var(--ds-font-size-12); line-height: 1.7; }.cash-filters { margin: var(--ds-space-20) 0; }.cash-filters > input { flex: 1; min-width: 170px; }
.cash-module .data-table { font-size: var(--ds-font-size-12); }.cash-module .data-table th { white-space: nowrap; font-size: var(--ds-font-size-11); }.cash-module .data-table td { vertical-align: top; }
.cash-badge { display: inline-block; padding: var(--ds-space-4) var(--ds-space-8); border-radius: var(--ds-radius-8); font-size: var(--ds-font-size-11); white-space: nowrap; }.cash-reconciled { background: var(--visual-palette-e5f6ed); color: var(--visual-palette-187347); }.cash-waiting { background: var(--visual-palette-fff4da); color: var(--visual-palette-936818); }.cash-attention { background: var(--visual-palette-ffedef); color: var(--visual-palette-b33e4a); }
.cash-reason { display: block; font-size: var(--ds-font-size-11); color: var(--muted); line-height: 1.5; margin-top: var(--ds-space-4); max-width: 280px; }
.cash-limitations, .cash-settings { font-size: var(--ds-font-size-12); line-height: 1.7; color: var(--muted); }.cash-limitations summary, .cash-settings summary { cursor: pointer; color: var(--brand-secondary); }.cash-settings > label { display: flex; align-items: center; margin-top: var(--ds-space-16); }.cash-settings input[type=checkbox] { width: 17px; height: 17px; }
.cash-close-summary { display: grid; gap: var(--ds-space-12); padding: var(--ds-space-16); border: 1px solid var(--line); border-radius: var(--ds-radius-12); margin: var(--ds-space-20) 0; }.cash-close-summary > span, .cash-close-summary > strong { display: flex; justify-content: space-between; gap: var(--ds-space-16); font-size: var(--ds-font-size-13); }.cash-close-summary > strong { padding-top: var(--ds-space-12); border-top: 1px solid var(--line); color: var(--brand-secondary); }
#cash-close-form, #cash-entry-form, #cash-reopen-form { display: grid; gap: var(--ds-space-16); margin-top: var(--ds-space-20); }.cash-count-difference { margin: 0; padding: var(--ds-space-12); background: var(--brand-background); border-radius: var(--ds-radius-8); }.cash-choices { display: grid; gap: var(--ds-space-12); margin: var(--ds-space-20) 0; }
.cash-module :focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 3px; }
@media (max-width: 1200px) { .cash-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }.cash-status { flex-wrap: wrap; } }
@media (max-width: 650px) { .cash-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--ds-space-8); }.cash-metrics > article,.cash-metrics > button { padding: var(--ds-space-12); }.cash-operation-values { grid-template-columns: repeat(2,minmax(0,1fr)); }.cash-panel { padding: var(--ds-space-12); }.cash-status .cash-actions { flex-basis: 100%; }.cash-period label { flex: 1; min-width: 130px; }.cash-filters > select { width: 100%; }.cash-status > div:first-of-type { min-width: 180px; }.cash-module .data-table { min-width: 780px; } }

/* Financial overview: uses the shared ZooNor palette and components. */
.financial-overview { display: grid; gap: var(--ds-space-20); min-width: 0; }
.financial-overview .page-heading { margin-bottom: 0; }
.fo-period { min-width: 205px; }
.fo-period label, .fo-goal-edit label { display: grid; gap: var(--ds-space-4); font-size: var(--ds-font-size-12); color: var(--muted); }
.fo-period select, .fo-period input, .fo-sort select, .fo-goal-edit input { padding: var(--ds-space-8) var(--ds-space-12); border: 1px solid var(--line); border-radius: var(--ds-radius-8); background: var(--visual-color-surface); color: var(--brand-dark); font: inherit; max-width: 100%; }
.fo-period [data-fo-custom]:not([hidden]) { display: flex; align-items: end; gap: var(--ds-space-8); margin-top: var(--ds-space-12); flex-wrap: wrap; }
.fo-period-caption { margin: -5px 0 0; color: var(--muted); font-size: var(--ds-font-size-11); }
.fo-kpis { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: var(--ds-space-12); }
.fo-kpi { display: flex; flex-direction: column; align-items: start; gap: var(--ds-space-8); padding: var(--ds-space-20) var(--ds-space-16); background: var(--visual-color-surface); border: 1px solid var(--line); border-radius: var(--ds-radius-16); text-align: left; color: var(--brand-dark); min-width: 0; font: inherit; box-shadow: 0 3px 14px var(--visual-palette-0b2d4d04); }
button.fo-kpi { cursor: pointer; }
.fo-kpi > div { font-size: var(--ds-font-size-12); line-height: 1.5; }
.fo-kpi > strong { font-size: var(--ds-font-size-28); letter-spacing: -.5px; overflow-wrap: anywhere; }
.fo-kpi small { font-size: var(--ds-font-size-11); line-height: 1.5; }
.fo-kpi small span { color: var(--muted); }
.fo-icon { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 35px; height: 35px; border-radius: var(--ds-radius-12); color: var(--brand-secondary); background: var(--visual-palette-e7f7ef); font-style: normal; }
.fo-icon svg { width: 22px; height: 22px; }
.fo-expense .fo-icon, .fo-danger-icon { color: var(--visual-palette-c24451); background: var(--visual-palette-fff0f1); }
.fo-forecast { background: var(--visual-palette-eefaf3); border-color: var(--visual-palette-d3ebde); }
.fo-positive { color: var(--brand-secondary); }
.fo-negative { color: var(--visual-palette-b7444e); }
.fo-top-row, .fo-middle-row, .fo-bottom-row { display: grid; gap: var(--ds-space-20); align-items: stretch; min-width: 0; }
.fo-top-row { grid-template-columns: 1.5fr 1fr; }
.fo-middle-row { grid-template-columns: 1.25fr 1fr; }
.fo-bottom-row { grid-template-columns: 1.1fr 1fr; }
.fo-panel { padding: var(--ds-space-20); margin: 0; min-width: 0; border-radius: var(--ds-radius-16); }
.fo-panel > header { display: flex; align-items: start; gap: var(--ds-space-12); margin-bottom: var(--ds-space-20); flex-wrap: wrap; }
.fo-panel > header > div:not(.fo-horizons) { flex: 1; min-width: 130px; }
.fo-panel h2 { font-size: var(--ds-font-size-16); margin: var(--ds-space-4) 0 var(--ds-space-4); line-height: 1.4; }
.fo-panel h2 small { font-size: var(--ds-font-size-12); font-weight: 500; }
.fo-panel header p { margin: 0; color: var(--muted); font-size: var(--ds-font-size-11); line-height: 1.5; }
.fo-goal-values { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-20); flex-wrap: wrap; }
.fo-goal-values > div { display: grid; gap: var(--ds-space-8); }
.fo-goal-values span { font-size: var(--ds-font-size-12); color: var(--muted); }
.fo-goal-values strong { font-size: var(--ds-font-size-22); }
.fo-goal-values small { font-size: var(--ds-font-size-11); }
.fo-progress-label { padding: var(--ds-space-12); background: var(--visual-palette-e7f7ef); border-radius: var(--ds-radius-8); color: var(--brand-secondary); font-size: var(--ds-font-size-22); }
.fo-progress-label small { display: block; font-size: var(--ds-font-size-11); font-weight: 500; text-align: center; margin-top: var(--ds-space-4); }
.fo-panel progress { display: block; width: 100%; height: 12px; margin-top: var(--ds-space-24); border: 0; border-radius: var(--ds-radius-8); accent-color: var(--brand-secondary); overflow: hidden; background: var(--visual-palette-e8edf1); }
.fo-panel progress::-webkit-progress-bar { background: var(--visual-palette-e8edf1); border-radius: var(--ds-radius-8); }
.fo-panel progress::-webkit-progress-value { background: var(--brand-secondary); border-radius: var(--ds-radius-8); }
.fo-panel progress::-moz-progress-bar { background: var(--brand-secondary); border-radius: var(--ds-radius-8); }
.fo-goal-edit { margin-top: var(--ds-space-12); font-size: var(--ds-font-size-12); color: var(--brand-secondary); }
.fo-goal-edit summary, .fo-limitations summary { cursor: pointer; }
.fo-goal-edit form { display: flex; gap: var(--ds-space-12); align-items: end; margin-top: var(--ds-space-12); flex-wrap: wrap; }
.fo-flow { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: var(--ds-space-8); padding: var(--ds-space-12) var(--ds-space-12); border: 0; border-radius: var(--ds-radius-8); margin-bottom: var(--ds-space-8); background: var(--visual-palette-f0f8f3); font: inherit; font-size: var(--ds-font-size-12); text-align: left; cursor: pointer; }
.fo-flow.fo-negative { background: var(--visual-palette-fff1f2); }
.fo-flow-balance { background: var(--visual-palette-e6f6ee); color: var(--brand-secondary); font-weight: 600; }
.fo-flow strong { white-space: nowrap; font-size: var(--ds-font-size-16); }
.fo-panel > small { font-size: var(--ds-font-size-11); line-height: 1.5; display: block; }
.fo-info { display: inline-block; position: relative; cursor: help; font-size: var(--ds-font-size-12); color: var(--muted); font-weight: 400; }
.fo-info:hover::after, .fo-info:focus::after { content: attr(data-tip); position: absolute; z-index: 15; width: 235px; max-width: 65vw; bottom: 23px; left: 50%; transform: translateX(-50%); background: var(--brand-dark); color: var(--visual-color-surface); padding: var(--ds-space-12); border-radius: var(--ds-radius-8); box-shadow: 0 5px 20px var(--visual-palette-0b2d4d25); font: var(--ds-font-size-12)/1.5 sans-serif; text-align: left; }
.fo-kpi:first-child .fo-info:hover::after, .fo-kpi:first-child .fo-info:focus::after { left: -70px; transform: none; }
.fo-horizons { display: flex; border: 1px solid var(--line); border-radius: var(--ds-radius-8); overflow: hidden; }
.fo-horizons button { padding: var(--ds-space-8) var(--ds-space-12); font-size: var(--ds-font-size-11); border: 0; background: var(--visual-color-surface); color: var(--brand-dark); cursor: pointer; }
.fo-horizons button[aria-pressed=true] { color: var(--visual-color-surface); background: var(--brand-secondary); }
.fo-chart-scroll { overflow-x: auto; }
.fo-chart { display: block; width: 100%; min-width: 420px; }
.fo-chart text { font-size: var(--ds-font-size-11); fill: var(--muted); }
.fo-grid-line { stroke: var(--visual-palette-e9eef0); stroke-width: 1; }
.fo-zero-line { stroke: var(--visual-palette-b7c6cb); stroke-width: 1; }
.fo-balance-line { stroke: var(--brand-secondary); stroke-width: 2.5; }
.fo-balance-dot { fill: var(--visual-color-surface); stroke: var(--brand-secondary); stroke-width: 2; }
.fo-in-bar { fill: var(--visual-palette-70c8a2); }
.fo-out-bar { fill: var(--visual-palette-ee8188); }
.fo-chart g { cursor: crosshair; }
.fo-chart g:focus { outline: none; }
.fo-chart g:hover > rect:first-of-type, .fo-chart g:focus > rect:first-of-type { fill: var(--visual-palette-0fb39e12); stroke: var(--brand-primary); stroke-width: .7; }
.fo-chart-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--ds-space-12); font-size: var(--ds-font-size-11); color: var(--muted); }
.fo-chart-legend span { display: flex; align-items: center; gap: var(--ds-space-4); }
.fo-chart-legend i { width: 10px; height: 10px; display: inline-block; border-radius: 50%; }
.fo-in-key { background: var(--visual-palette-70c8a2); }.fo-out-key { background: var(--visual-palette-ee8188); }.fo-line-key { background: var(--brand-secondary); }
.fo-point-detail { padding: var(--ds-space-8) var(--ds-space-12); border-radius: var(--ds-radius-8); background: var(--brand-background); font-size: var(--ds-font-size-11); line-height: 1.6; min-height: 42px; margin-bottom: var(--ds-space-12); }
.fo-limitations { font-size: var(--ds-font-size-11); line-height: 1.6; color: var(--muted); }
.fo-limitations p { margin: var(--ds-space-8) 0; }
.fo-sort { display: flex; align-items: center; justify-content: end; gap: var(--ds-space-8); font-size: var(--ds-font-size-11); color: var(--muted); margin-bottom: var(--ds-space-12); }
.fo-ranking-table { font-size: var(--ds-font-size-11); }
.fo-ranking-table th, .fo-ranking-table td { padding: var(--ds-space-12) var(--ds-space-8); }
.fo-ranking-table th { font-size: var(--ds-font-size-11); white-space: nowrap; }
.fo-ranking-table td:nth-child(n+3) { text-align: right; white-space: nowrap; }
.fo-rank { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; background: var(--visual-palette-edf1f4); font-size: var(--ds-font-size-11); }
.fo-rank-first { background: var(--visual-palette-fff0ba); color: var(--visual-palette-9b6c08); }
.fo-health { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--ds-space-12); }
.fo-health article { padding: var(--ds-space-12); border: 1px solid var(--line); border-radius: var(--ds-radius-12); }
.fo-health h3 { font-size: var(--ds-font-size-11); min-height: 48px; line-height: 1.5; margin: 0 0 var(--ds-space-16); }
.fo-health strong { font-size: var(--ds-font-size-16); }
.fo-health p, .fo-health-note { font-size: var(--ds-font-size-11); line-height: 1.6; color: var(--muted); margin-bottom: 0; }
.fo-alerts article { display: flex; align-items: center; gap: var(--ds-space-12); padding: var(--ds-space-12) 0; border-bottom: 1px solid var(--line); }
.fo-alerts article:last-child { border: 0; }
.fo-alerts article > div { flex: 1; }
.fo-alerts h3 { font-size: var(--ds-font-size-12); margin: 0 0 var(--ds-space-4); }
.fo-alerts h3 small { font-size: var(--ds-font-size-11); color: var(--muted); font-weight: 500; }
.fo-alerts p { font-size: var(--ds-font-size-11); line-height: 1.5; color: var(--muted); margin: 0; }
.fo-alerts .button { font-size: var(--ds-font-size-11); padding: var(--ds-space-8); flex-shrink: 0; }
.financial-overview :focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 3px; }
@media (max-width: 1180px) { .fo-kpis { grid-template-columns: repeat(3,minmax(0,1fr)); }.fo-middle-row,.fo-bottom-row { grid-template-columns: 1fr 1fr; }.fo-health { grid-template-columns: 1fr; }.fo-health h3 { min-height: 0; margin-bottom: var(--ds-space-8); } }
@media (max-width: 1050px) { .fo-top-row,.fo-middle-row,.fo-bottom-row { grid-template-columns: 1fr; }.fo-health { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 600px) { .fo-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--ds-space-8); }.fo-kpi { padding: var(--ds-space-12) var(--ds-space-12); }.fo-health { grid-template-columns: 1fr; }.fo-panel { padding: var(--ds-space-16); }.fo-period { width: 100%; }.fo-goal-values { gap: var(--ds-space-16); }.fo-alerts article { flex-wrap: wrap; }.fo-alerts .button { margin-left: var(--ds-space-32); }.fo-sort { justify-content: start; }.fo-ranking-table { min-width: 470px; } }

/* Fiscal: separate everyday document work from setup and diagnostics. */
.fiscal-notice { padding: var(--ds-space-20) var(--ds-space-24); margin-bottom: var(--ds-space-20); border-left: 4px solid var(--brand-primary); }
.fiscal-notice strong { color: var(--brand-dark); }
.fiscal-notice p { margin: var(--ds-space-8) 0 0; color: var(--muted); font-size: var(--ds-font-size-13); line-height: 1.6; max-width: 900px; }
.fiscal-navigation { display: grid; width: min(100%, 700px); grid-template-columns: 1fr 1.25fr 1.7fr; align-items: stretch; gap: var(--ds-space-8); margin: 0 0 var(--ds-space-20); }
.fiscal-navigation button { display: inline-flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; gap: var(--ds-space-8); padding: var(--ds-space-12) var(--ds-space-12); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--brand-surface); color: var(--brand-dark); font: inherit; font-size: var(--ds-font-size-13); line-height: 1.3; text-align: center; cursor: pointer; }
.fiscal-navigation button.is-active { background: var(--brand-secondary); border-color: var(--brand-secondary); color: var(--visual-color-surface); }
.fiscal-navigation .ui-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.fiscal-navigation button:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 3px; }
.fiscal-section { min-width: 0; }
.fiscal-section[hidden] { display: none; }
.fiscal-section .fiscal-form { margin-top: 0; gap: var(--ds-space-20); }
#fiscal-configuration-form { padding: var(--ds-space-24); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
#fiscal-configuration-form > p, #fiscal-configuration-form > button, #fiscal-configuration-form > .fiscal-check { grid-column: 1 / -1; }
.fiscal-form > button { justify-self: start; }
.fiscal-check { padding: var(--ds-space-12) var(--ds-space-16); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--brand-background); }
.fiscal-check input[type="checkbox"] { width: 17px; height: 17px; margin: 0 var(--ds-space-8) 0 0; vertical-align: middle; accent-color: var(--brand-secondary); }
.fiscal-section .fiscal-prepare-bar { grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr) auto; align-items: end; padding-bottom: var(--ds-space-24); border-bottom: 1px solid var(--line); }
.fiscal-prepare-bar > .button { width: 100%; min-height: 48px; align-self: end; white-space: normal; text-align: center; }
.fiscal-form-intro { align-self: center; }
.fiscal-form-intro strong, .fiscal-form-intro small { display: block; }
.fiscal-form-intro small { margin-top: var(--ds-space-8); color: var(--muted); line-height: 1.5; }
.fiscal-table { width: 100%; margin-top: var(--ds-space-20); border-collapse: collapse; font-size: var(--ds-font-size-13); }
.fiscal-table th { background: var(--brand-background); color: var(--brand-dark); text-align: left; font-size: var(--ds-font-size-12); }
.fiscal-table th, .fiscal-table td { padding: var(--ds-space-16) var(--ds-space-16); border-bottom: 1px solid var(--line); }
.fiscal-table td:last-child { text-align: right; }
.fiscal-table td[colspan] { text-align: center; padding: var(--ds-space-32) var(--ds-space-16); color: var(--muted); }
#fiscal-section-2 > h2 { padding: var(--ds-space-24) var(--ds-space-24) 0; margin: 0; color: var(--brand-dark); }
#fiscal-section-2 > p { margin: var(--ds-space-8) var(--ds-space-24) var(--ds-space-24); color: var(--muted); line-height: 1.6; font-size: var(--ds-font-size-13); }
#national-configuration-form, #national-dps-form { padding: var(--ds-space-24); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
#national-configuration-form > h3, #national-configuration-form > p, #national-configuration-form > button, .fiscal-advanced, #national-dps-form > h3, #national-dps-form > p, #national-dps-form > button { grid-column: 1 / -1; }
.fiscal-section h3 { margin: 0; font-size: var(--ds-font-size-16); color: var(--brand-dark); }
.fiscal-section label { min-width: 0; }
.fiscal-advanced { padding: var(--ds-space-16); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--brand-background); }
.fiscal-advanced summary { cursor: pointer; color: var(--brand-secondary); font-weight: 600; }
.fiscal-advanced textarea { width: 100%; font-family: monospace; }
.fiscal-diagnostics { padding: var(--ds-space-24); border-top: 1px solid var(--line); }
.fiscal-diagnostics .button { margin: var(--ds-space-8) var(--ds-space-8) 0 0; }
.fiscal-diagnostics p { font-size: var(--ds-font-size-13); line-height: 1.6; }
@media (max-width: 900px) {
  .fiscal-section .fiscal-prepare-bar { grid-template-columns: 1fr; }
  #fiscal-configuration-form, #national-configuration-form, #national-dps-form { grid-template-columns: 1fr; }
  .fiscal-navigation { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fiscal-form > button { width: 100%; }
  .fiscal-table { min-width: 600px; }
}
@media (max-width: 620px) { .fiscal-navigation { grid-template-columns: 1fr; } }

@font-face {
  font-family: "Montserrat";
  src: url("/static/branding/zoonor/fonts/Montserrat-Regular.6133d7c8d5fd.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/static/branding/zoonor/fonts/Montserrat-Medium.af37bf893061.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/static/branding/zoonor/fonts/Montserrat-SemiBold.bef57ba1c2f4.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/static/branding/zoonor/fonts/Montserrat-Bold.cf3a2eaec658.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Base visual compartilhada; os nomes antigos permanecem como aliases. */
  --visual-color-primary: #0d7a6e;
  --visual-color-text: #0b2d4d;
  --visual-color-surface: #ffffff;
  --visual-color-background: #f4f6f8;
  --visual-color-muted: #526879;
  --visual-color-border: #dfe7ec;
  --visual-font-family: "Montserrat", Arial, sans-serif;
  --visual-radius-icon-button: 10px;
  --visual-icon-size: 20px;
  --visual-icon-button-size: 36px;
  --visual-content-max: 1440px;
  --zoonor-primary: #0fb39e;
  --zoonor-secondary: var(--visual-color-primary);
  --zoonor-navy: var(--visual-color-text);
  --zoonor-cyan: #6ec1e4;
  --zoonor-background: var(--visual-color-background);
  --brand-primary: var(--zoonor-primary);
  --brand-secondary: var(--zoonor-secondary);
  --brand-dark: var(--zoonor-navy);
  --brand-accent: var(--zoonor-cyan);
  --brand-background: var(--zoonor-background);
  --brand-surface: var(--visual-color-surface);
  --brand-text: var(--visual-color-text);
  --brand-muted: var(--visual-color-muted);
  --brand-border: var(--visual-color-border);
  --content-canvas: var(--visual-color-background);
  --content-surface: var(--visual-color-surface);
  --content-subtle: #f8fbfc;
  --content-muted: #f1f5f7;
  --content-border: var(--visual-color-border);
  --content-copy-muted: var(--visual-color-muted);
  --content-highlight: #edf7fb;
  --content-highlight-border: #6ec1e4;
  --ink: var(--brand-text);
  --muted: var(--brand-muted);
  --cream: var(--brand-background);
  --surface: var(--brand-surface);
  --line: var(--brand-border);
  --green: var(--brand-dark);
  --green-2: var(--brand-secondary);
  --sage: #83a7ac;
  --mint: #dcf7f3;
  --peach: #bceef0;
  --peach-2: var(--brand-accent);
  --peach-soft: #e8f8fa;
  --yellow: #f4d77a;
  --danger: #b53a48;
  --shadow: 0 18px 48px rgba(11, 45, 77, .10);
  --radius: 16px;
  --icon-badge-size: 40px;
  --icon-badge-radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font: var(--ds-font-size-14)/1.5 var(--visual-font-family);
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
[hidden] { display: none !important; }

.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(430px, 46%) 1fr; }
.auth-brand {
  position: relative; overflow: hidden; min-height: 100vh; padding: var(--ds-space-32) 8%;
  color: var(--visual-color-surface); background: var(--green);
  display: flex; flex-direction: column; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: var(--ds-space-12); color: var(--ink); text-decoration: none; font: 700 var(--ds-font-size-22) "Montserrat"; }
.brand-light { color: var(--visual-color-surface); position: relative; z-index: 2; }
.brand-logo {
  display: block;
  width: 172px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.brand-light {
  width: max-content;
  padding: var(--ds-space-8) var(--ds-space-12);
  border-radius: var(--ds-radius-16);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .12);
}
.checkout-summary .brand {
  width: max-content;
  padding: var(--ds-space-8) var(--ds-space-12);
  border-radius: var(--ds-radius-16);
  background: rgba(255, 255, 255, .94);
}
.auth-message { position: relative; z-index: 2; max-width: 580px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-weight: 700; font-size: var(--ds-font-size-11); color: var(--visual-palette-b8d4c8); }
.auth-message h1 { margin: var(--ds-space-20) 0; font: 700 clamp(var(--ds-font-size-28), 5vw, var(--ds-font-size-28))/1.03 "Montserrat"; letter-spacing: -.05em; }
.auth-message h1 em { color: var(--peach); font-style: normal; }
.auth-message p { max-width: 500px; color: var(--visual-palette-c6d9d0); font-size: var(--ds-font-size-16); }
.auth-proof { position: relative; z-index: 2; display: flex; align-items: center; gap: var(--ds-space-16); color: var(--visual-palette-c6d9d0); }
.auth-proof p { margin: 0; }
.auth-proof strong { color: var(--visual-color-surface); }
.proof-avatars { display: flex; }
.proof-avatars span {
  width: 36px; height: 36px; display: grid; place-items: center; margin-left: -8px;
  border: 2px solid var(--green); border-radius: 50%; background: var(--mint); color: var(--green); font-size: var(--ds-font-size-11); font-weight: 700;
}
.proof-avatars span:first-child { margin-left: 0; background: var(--peach); }
.proof-avatars span:last-child { background: var(--yellow); }
.brand-orbit { position: absolute; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.orbit-one { width: 520px; height: 520px; right: -190px; top: 15%; }
.orbit-two { width: 300px; height: 300px; right: -40px; top: 28%; }
.auth-panel { min-height: 100vh; display: grid; place-items: center; padding: var(--ds-space-32); background: var(--visual-palette-fafaf7); }
.auth-card { width: min(440px, 100%); }
.auth-card h2 { margin: 0 0 var(--ds-space-8); font: 700 var(--ds-font-size-28)/1.2 "Montserrat"; letter-spacing: -.03em; }
.muted { color: var(--muted); }
.mobile-brand { display: none; margin-bottom: var(--ds-space-32); }
.mobile-brand-logo { display: block; width: 176px; max-width: 100%; height: auto; }
.form-stack { display: grid; gap: var(--ds-space-20); margin-top: var(--ds-space-32); }
.form-stack.compact { gap: var(--ds-space-16); }
.onboarding-plans { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; gap: var(--ds-space-8); }
.onboarding-plans legend { margin-bottom: var(--ds-space-12); font-weight: 700; font-size: var(--ds-font-size-14); }
.onboarding-plans label { display: flex; align-items: center; gap: var(--ds-space-12); padding: var(--ds-space-12); border: 1px solid var(--visual-palette-dfe3dc); border-radius: var(--ds-radius-12); background: var(--visual-color-surface); cursor: pointer; }
.onboarding-plans label:has(input:checked) { border-color: var(--green-2); background: var(--visual-palette-edf8f5); }
.onboarding-plans label:focus-within { outline: 2px solid var(--green-2); outline-offset: 2px; }
.onboarding-plans input { width: 16px; height: 16px; padding: 0; flex: 0 0 16px; accent-color: var(--green-2); }
.onboarding-plans small { display: block; margin-top: var(--ds-space-4); color: var(--muted); font-weight: 400; line-height: 1.5; }
.onboarding-plans em { display: inline-block; font-size: var(--ds-font-size-11); font-style: normal; color: var(--green-2); }
.onboarding-trial-note { margin: 0; font-size: var(--ds-font-size-12); line-height: 1.5; }
label { display: grid; gap: var(--ds-space-8); color: var(--visual-palette-445149); font-weight: 600; font-size: var(--ds-font-size-13); }
input, select, textarea {
  width: 100%; border: 1px solid var(--visual-palette-dfe3dc); border-radius: var(--ds-radius-12); outline: 0;
  padding: var(--ds-space-12) var(--ds-space-16); color: var(--ink); background: var(--visual-color-surface); transition: .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(38,112,90,.1); }
textarea { min-height: 90px; resize: vertical; }
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: var(--ds-space-32); }
.password-wrap button { position: absolute; right: 8px; top: 7px; }
.button {
  border: 0; border-radius: var(--ds-radius-12); padding: var(--ds-space-12) var(--ds-space-20); display: inline-flex; align-items: center;
  justify-content: center; gap: var(--ds-space-12); font-weight: 700; transition: .2s; text-decoration: none;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .icon-button:focus-visible, .text-button:focus-visible { outline: 2px solid var(--visual-color-primary); outline-offset: 2px; }
.button[aria-busy="true"]::after { content: ""; width: 14px; height: 14px; flex: 0 0 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: visual-spin .8s linear infinite; }
@keyframes visual-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .button[aria-busy="true"]::after { animation: none; } }
.button-primary { color: var(--visual-color-surface); background: var(--green); box-shadow: 0 8px 18px rgba(23,79,61,.16); }
.button-secondary { color: var(--green); background: var(--visual-palette-e6efe9); }
.button-light { color: var(--ink); background: var(--visual-color-surface); border: 1px solid var(--line); }
.button-danger { color: var(--visual-color-surface); background: var(--danger); }
.button-full { width: 100%; justify-content: space-between; margin-top: var(--ds-space-4); }
.auth-switch { margin-top: var(--ds-space-32); text-align: center; color: var(--muted); }
.auth-switch button { border: 0; background: transparent; color: var(--green-2); font-weight: 700; }
.demo-hint { display: flex; gap: var(--ds-space-12); margin-top: var(--ds-space-32); padding: var(--ds-space-16); border-radius: var(--ds-radius-12); background: var(--visual-palette-edf3ee); color: var(--visual-palette-57645c); font-size: var(--ds-font-size-12); }
.demo-dot { width: 9px; height: 9px; margin-top: var(--ds-space-4); border-radius: 50%; background: var(--visual-palette-48a879); box-shadow: 0 0 0 4px rgba(72,168,121,.14); }

.checkout-screen { min-height: 100vh; display: grid; place-items: center; padding: var(--ds-space-32); background: radial-gradient(circle at 18% 18%, var(--visual-palette-eef6f0), transparent 32%), var(--visual-palette-fbfaf6); }
.checkout-card { width: min(1040px, 100%); display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, .65fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--ds-radius-16); background: var(--visual-color-surface); box-shadow: var(--shadow); }
.checkout-summary { display: grid; align-content: start; gap: var(--ds-space-24); padding: var(--ds-space-32); color: var(--visual-color-surface); background: linear-gradient(145deg, var(--green), var(--visual-palette-1d6c55)); }
.checkout-summary .brand { color: var(--visual-color-surface); }
.checkout-summary h1 { margin: 0; font: 700 var(--ds-font-size-28)/1.05 "Montserrat"; }
.checkout-summary p { max-width: 520px; margin: 0; color: var(--visual-palette-dcebe3); font-size: var(--ds-font-size-16); }
.checkout-plan-box { display: grid; gap: var(--ds-space-8); margin-top: var(--ds-space-8); padding: var(--ds-space-20); border: 1px solid rgba(255,255,255,.22); border-radius: var(--ds-radius-16); background: rgba(255,255,255,.08); }
.checkout-plan-box small, .checkout-plan-box span { color: var(--visual-palette-dcebe3); }
.checkout-plan-box strong { font: 700 var(--ds-font-size-28) "Montserrat"; }
.checkout-plan-box b { color: var(--peach); font-size: var(--ds-font-size-22); }
.checkout-benefits { display: grid; gap: var(--ds-space-12); margin: 0; padding: 0; list-style: none; }
.checkout-benefits li { display: flex; gap: var(--ds-space-12); align-items: center; color: var(--visual-palette-eef8f2); }
.checkout-benefits li::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--green); background: var(--peach); font-weight: 700; }
.checkout-form { display: grid; align-content: start; gap: var(--ds-space-16); padding: var(--ds-space-32); background: var(--visual-color-surface); }
.checkout-form h2 { margin: 0 0 var(--ds-space-8); font: 700 var(--ds-font-size-28) "Montserrat"; }
.checkout-form label { display: grid; gap: var(--ds-space-8); color: var(--muted); font-size: var(--ds-font-size-13); font-weight: 700; }
.checkout-form input, .checkout-form select { width: 100%; padding: var(--ds-space-12) var(--ds-space-16); border: 1px solid var(--line); border-radius: var(--ds-radius-12); color: var(--ink); background: var(--visual-color-surface); font: inherit; }
.mp-field { height: 47px; min-height: 47px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--visual-color-surface); }
.mp-field iframe { display: block; width: 100% !important; height: 45px !important; border: 0; }
.progress-bar { width: 100%; accent-color: var(--green); }
.compact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ds-space-12); }

.marketing-screen {
  min-height: 100vh; padding-top: var(--ds-space-32); background: var(--visual-palette-fbfaf6); color: var(--ink); overflow-x: clip;
}
#top, #recursos, #funcionalidades, #planos, #depoimentos, #faq, #contato { scroll-margin-top: 92px; }
.marketing-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90; height: 72px; margin: 0 auto; padding: 0 max(var(--ds-space-32), calc((100vw - 1500px) / 2 + var(--ds-space-32)));
  display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-24);
  background: rgba(251,250,246,.94); border-bottom: 1px solid rgba(230,232,226,.72); backdrop-filter: blur(16px);
}
.marketing-nav nav { display: flex; align-items: center; gap: var(--ds-space-32); font-weight: 700; font-size: var(--ds-font-size-13); }
.marketing-nav a { color: var(--ink); text-decoration: none; }
.marketing-actions { display: flex; align-items: center; gap: var(--ds-space-16); }
.marketing-actions .text-button { color: var(--ink); font-size: var(--ds-font-size-13); }
.marketing-screen main { max-width: 1500px; margin: 0 auto; padding: 0 var(--ds-space-32); }
.marketing-hero {
  position: relative; min-height: 560px; display: grid; align-items: center; padding: var(--ds-space-32) 0 var(--ds-space-32);
}
.marketing-hero::before {
  content: ""; position: absolute; inset: 0 -34px auto -34px; height: 100%;
  background: radial-gradient(circle at 78% 18%, rgba(244,201,169,.38), transparent 34%),
    linear-gradient(180deg, var(--visual-palette-fbfaf6) 0%, var(--visual-palette-f7f3ec) 100%);
  z-index: 0;
}
.hero-copy { position: relative; z-index: 2; width: min(610px, 58%); }
.hero-pill {
  display: inline-flex; align-items: center; margin-bottom: var(--ds-space-24); padding: var(--ds-space-8) var(--ds-space-16); border-radius: var(--ds-radius-16);
  color: var(--green); background: var(--visual-palette-e8f3ec); font-size: var(--ds-font-size-12); font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.hero-copy h1 { margin: 0; font: 700 var(--ds-font-size-28)/1.02 "Montserrat"; letter-spacing: -.04em; color: var(--green); }
.hero-copy h1 em { display: block; color: var(--visual-palette-e0b693); font-style: normal; }
.hero-copy p { max-width: 570px; margin: var(--ds-space-24) 0 var(--ds-space-24); color: var(--visual-palette-21352d); font-size: var(--ds-font-size-22); line-height: 1.45; }
.hero-actions, .hero-proof { display: flex; flex-wrap: wrap; gap: var(--ds-space-16); align-items: center; }
.hero-proof { margin-top: var(--ds-space-24); gap: var(--ds-space-32); color: var(--visual-palette-416056); font-size: var(--ds-font-size-13); font-weight: 700; }
.product-preview {
  position: absolute; z-index: 1; right: 0; top: 70px; width: min(760px, 56vw); min-height: 382px;
  overflow: hidden; display: block; padding: var(--ds-space-12); border: 1px solid rgba(23,79,61,.12); border-radius: var(--ds-radius-16);
  background: rgba(255,255,255,.74); box-shadow: 0 24px 70px rgba(28,54,42,.12); backdrop-filter: blur(10px);
  text-align: left; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.product-preview:hover { transform: translateY(-3px); border-color: rgba(23,79,61,.3); box-shadow: 0 30px 78px rgba(28,54,42,.18); }
.product-preview:focus-visible { outline: 3px solid rgba(23,79,61,.3); outline-offset: 4px; }
.product-preview img {
  width: 100%; height: auto; display: block; border-radius: var(--ds-radius-16);
  image-rendering: -webkit-optimize-contrast; transform: translateZ(0);
}
.product-preview-hint {
  position: absolute; right: 24px; bottom: 24px; padding: var(--ds-space-8) var(--ds-space-12); border-radius: var(--ds-radius-8);
  color: var(--visual-color-surface); background: rgba(15,74,56,.9); font-size: var(--ds-font-size-12); font-weight: 700;
  box-shadow: 0 8px 22px rgba(21,36,29,.2); opacity: 0; transform: translateY(5px); transition: opacity .2s ease, transform .2s ease;
}
.product-preview:hover .product-preview-hint, .product-preview:focus-visible .product-preview-hint { opacity: 1; transform: translateY(0); }
.preview-lightbox {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: var(--ds-space-32) var(--ds-space-32) var(--ds-space-32);
  background: rgba(11,27,21,.82); backdrop-filter: blur(10px);
}
.preview-lightbox-content { position: relative; width: min(1500px, 96vw); max-height: calc(100vh - 100px); overflow: auto; border-radius: var(--ds-radius-16); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.preview-lightbox-content img { width: 100%; height: auto; display: block; background: var(--visual-color-surface); }
.preview-lightbox-close {
  position: fixed; top: 20px; right: 24px; width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.28); border-radius: var(--ds-radius-12); color: var(--visual-color-surface); background: rgba(255,255,255,.12); font-size: var(--ds-font-size-28); line-height: 1;
}
.preview-lightbox-close:hover, .preview-lightbox-close:focus-visible { background: rgba(255,255,255,.22); outline: 2px solid rgba(255,255,255,.55); outline-offset: 2px; }
body.preview-lightbox-open { overflow: hidden; }
.marketing-section, .pricing-section, .faq-section, .marketing-cta { position: relative; z-index: 2; padding: var(--ds-space-32) 0; }
.marketing-section h2, .pricing-section h2, .faq-section h2 { margin: 0 0 var(--ds-space-20); text-align: center; font: 700 var(--ds-font-size-22) "Montserrat"; }
.feature-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--ds-space-16); }
.feature-grid article, .pricing-grid article, .testimonial-card {
  border: 1px solid var(--line); border-radius: var(--ds-radius-16); background: var(--visual-color-surface); padding: var(--ds-space-20); box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.feature-grid i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--ds-radius-12); background: var(--visual-palette-e8f3ec); color: var(--green); font-style: normal; }
.feature-grid i .ui-icon { width: 21px; height: 21px; }
.feature-grid h3, .pricing-grid h3 { margin: var(--ds-space-16) 0 var(--ds-space-8); font: 700 var(--ds-font-size-16) "Montserrat"; }
.feature-grid p, .pricing-grid p { margin: 0; color: var(--visual-palette-526258); line-height: 1.35; }
.stats-band {
  margin: var(--ds-space-12) 0 var(--ds-space-24); padding: var(--ds-space-24) var(--ds-space-32); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--ds-space-20);
  border: 1px solid var(--visual-palette-efe5d8); border-radius: var(--ds-radius-16); background: linear-gradient(90deg, var(--visual-color-surface), var(--visual-palette-f7efe5));
}
.stats-band strong { display: block; color: var(--green); font: 700 var(--ds-font-size-28) "Montserrat"; }
.stats-band span { color: var(--visual-palette-51615a); font-weight: 700; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ds-space-24); align-items: stretch; }
.pricing-grid article { position: relative; display: grid; gap: var(--ds-space-12); }
.pricing-grid article.featured { border-color: var(--green); box-shadow: 0 16px 38px rgba(23,79,61,.12); }
.pricing-grid article.featured > span { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: var(--ds-space-4) var(--ds-space-16); border-radius: var(--ds-radius-16); color: var(--visual-color-surface); background: var(--green); font-size: var(--ds-font-size-11); font-weight: 700; text-transform: uppercase; }
.pricing-grid strong { font: 700 var(--ds-font-size-28) "Montserrat"; color: var(--ink); }
.pricing-grid small { color: var(--muted); font-size: var(--ds-font-size-14); }
.pricing-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--ds-space-8); color: var(--visual-palette-33473e); }
.pricing-grid li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: var(--ds-space-8); }
.pricing-details-action { margin: var(--ds-space-24) 0 0; display: grid; justify-items: center; gap: var(--ds-space-8); text-align: center; }
.pricing-details-link { display: inline-flex; align-items: center; gap: var(--ds-space-8); padding: var(--ds-space-4) var(--ds-space-4); border-bottom: 1px solid currentColor; color: var(--green); font-size: var(--ds-font-size-14); font-weight: 700; text-decoration: none; }
.pricing-details-link:hover, .pricing-details-link:focus-visible { color: var(--ink); }
.pricing-details-link:focus-visible { border-radius: var(--ds-radius-8); outline: 2px solid rgba(23,79,61,.3); outline-offset: 4px; }
.faq-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-space-24); align-items: start; }
.faq-section h2 { text-align: left; }
.faq-section details { border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--visual-color-surface); margin-bottom: var(--ds-space-12); padding: var(--ds-space-16) var(--ds-space-20); }
.faq-section summary { cursor: pointer; font-weight: 700; }
.faq-section p { color: var(--visual-palette-526258); }
.testimonials-column { display: grid; gap: var(--ds-space-12); }
.testimonials-column h2 { margin-bottom: var(--ds-space-8); }
.testimonial-card { display: grid; gap: var(--ds-space-8); }
.testimonial-card p { font: 700 var(--ds-font-size-16)/1.42 "Montserrat"; margin: 0; color: var(--visual-palette-304139); }
.testimonial-card strong, .testimonial-card span { display: block; }
.testimonial-card span { color: var(--muted); }
.marketing-cta {
  margin: var(--ds-space-16) 0 var(--ds-space-32); padding: var(--ds-space-32) var(--ds-space-32); display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-20);
  border-radius: var(--ds-radius-16); background: linear-gradient(90deg, var(--visual-palette-e8f3ec), var(--visual-palette-fff2df)); border: 1px solid var(--visual-palette-dbeadd);
}
.marketing-cta h2 { margin: 0 0 var(--ds-space-8); font: 700 var(--ds-font-size-28) "Montserrat"; }
.marketing-cta p { margin: 0; color: var(--visual-palette-526258); }
.marketing-footer {
  max-width: 1500px; margin: 0 auto; padding: var(--ds-space-24) var(--ds-space-32) var(--ds-space-32); display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--ds-space-32);
  border-top: 1px solid var(--line); color: var(--visual-palette-53645b);
}
.marketing-footer a, .marketing-footer span { display: block; margin-top: var(--ds-space-8); color: var(--visual-palette-53645b); text-decoration: none; }
.marketing-footer-button { display: block; margin-top: var(--ds-space-8); padding: 0; border: 0; color: var(--visual-palette-53645b); background: transparent; font: inherit; text-align: left; }
.marketing-footer-button:hover, .marketing-footer-button:focus-visible { color: var(--green); text-decoration: underline; }
.marketing-footer .brand { display: inline-flex; margin-top: 0; color: var(--ink); }
.marketing-footer .marketing-whatsapp { display: inline-flex; align-items: center; justify-content: flex-start; width: 24px; height: 20px; margin-top: var(--ds-space-8); border-radius: var(--ds-radius-8); }
.marketing-footer .marketing-whatsapp:hover { background: transparent; opacity: .82; }
.marketing-footer .marketing-whatsapp .whatsapp-icon { width: 16px; height: 16px; }
.marketing-footer .marketing-phone { display: inline-flex; align-items: center; gap: var(--ds-space-8); margin-top: var(--ds-space-8); }
.marketing-footer .marketing-phone > span { display: inline; margin-top: 0; }
.marketing-footer .marketing-phone .marketing-whatsapp { margin-top: 0; }
.marketing-whatsapp-float { position: fixed; z-index: 40; right: 24px; bottom: 24px; display: inline-flex; align-items: center; justify-content: center; width: 145px; min-height: 54px; padding: var(--ds-space-8) var(--ds-space-12) var(--ds-space-8) var(--ds-space-32); border: 2px solid var(--visual-palette-2bd24f); border-radius: var(--ds-radius-16); color: var(--visual-palette-467244); background: var(--visual-palette-fbfaf6); box-shadow: 0 8px 22px rgba(20, 40, 30, .14); font-family: "Montserrat"; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.marketing-whatsapp-mark { position: absolute; left: 7px; top: 50%; display: grid; width: 38px; height: 38px; place-items: center; transform: translateY(-50%); }
.marketing-whatsapp-mark img { width: 30px; height: 30px; object-fit: contain; }
.marketing-whatsapp-copy { display: grid; gap: var(--ds-space-4); line-height: 1.08; }
.marketing-whatsapp-copy strong, .marketing-whatsapp-copy > span { display: block; margin: 0; }
.marketing-whatsapp-copy strong { font-size: var(--ds-font-size-13); font-weight: 700; }
.marketing-whatsapp-copy > span { font-size: var(--ds-font-size-11); font-weight: 700; }
.marketing-whatsapp-float:hover { color: var(--visual-palette-467244); background: var(--visual-palette-fbfaf6); box-shadow: 0 13px 32px rgba(20, 40, 30, .24); transform: translateY(-2px); }
.cookie-consent-banner {
  position: fixed; z-index: 110; left: 50%; bottom: 24px; width: min(820px, calc(100vw - 48px));
  display: flex; align-items: center; gap: var(--ds-space-24); overflow: hidden; padding: var(--ds-space-16) var(--ds-space-20) var(--ds-space-16) var(--ds-space-24);
  border: 1px solid rgba(15, 179, 158, .38); border-radius: var(--ds-radius-16); color: var(--visual-color-surface);
  background: linear-gradient(125deg, var(--visual-palette-071f36) 0%, var(--brand-dark) 62%, var(--visual-palette-075b63) 100%);
  box-shadow: 0 22px 62px rgba(7, 31, 54, .32), 0 8px 22px rgba(13, 122, 110, .16);
  transform: translateX(-50%); backdrop-filter: blur(16px);
}
.cookie-consent-banner::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px;}
.cookie-consent-banner::after { content: ""; position: absolute; top: -80px; right: 120px; width: 180px; height: 180px; border-radius: 50%; background: rgba(15, 179, 158, .12); filter: blur(8px); pointer-events: none; }
.cookie-consent-copy { position: relative; z-index: 1; min-width: 0; flex: 1; }
.cookie-consent-copy h2 { margin: 0 0 var(--ds-space-4); color: var(--visual-color-surface); font: 700 var(--ds-font-size-14)/1.25 "Montserrat"; letter-spacing: -.01em; }
.cookie-consent-copy p { margin: 0; color: var(--visual-palette-c7dbe5); font-size: var(--ds-font-size-12); line-height: 1.45; white-space: nowrap; }
.cookie-consent-copy a { color: var(--brand-accent); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cookie-consent-copy a:hover { color: var(--visual-color-surface); }
.cookie-consent-actions { position: relative; z-index: 1; display: flex; flex: 0 0 auto; gap: var(--ds-space-12); }
.cookie-consent-button { min-width: 92px; min-height: 40px; padding: var(--ds-space-8) var(--ds-space-16); border: 1px solid transparent; border-radius: var(--ds-radius-12); font-size: var(--ds-font-size-12); font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease; }
.cookie-consent-button:focus-visible { outline: 3px solid rgba(110, 193, 228, .45); outline-offset: 3px; }
.cookie-consent-accept { color: var(--visual-palette-071f36); background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent)); box-shadow: 0 8px 20px rgba(15, 179, 158, .22); }
.cookie-consent-reject { color: var(--visual-color-surface); border-color: rgba(199, 219, 229, .5); background: rgba(255, 255, 255, .04); }
.cookie-consent-accept:hover { box-shadow: 0 11px 26px rgba(15, 179, 158, .34); transform: translateY(-1px); }
.cookie-consent-reject:hover { border-color: var(--brand-primary); background: rgba(15, 179, 158, .1); transform: translateY(-1px); }
.policy-page { min-height: 100vh; overflow-x: hidden; color: var(--ink); background: radial-gradient(circle at 82% 4%, rgba(244,201,169,.28), transparent 28%), var(--visual-palette-fbfaf6); }
.policy-header { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-24); padding: 0 max(var(--ds-space-24), calc((100vw - 980px) / 2)); border-bottom: 1px solid var(--line); background: rgba(251,250,246,.94); }
.policy-header .brand-logo { width: 150px; }
.policy-back { color: var(--green); font-weight: 700; text-decoration: none; }
.policy-main { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: var(--ds-space-32) 0 var(--ds-space-32); }
.policy-hero { margin-bottom: var(--ds-space-32); }
.policy-kicker { color: var(--green-2); font-size: var(--ds-font-size-12); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.policy-hero h1 { margin: var(--ds-space-8) 0 var(--ds-space-12); color: var(--green); font: 700 clamp(var(--ds-font-size-28), 6vw, var(--ds-font-size-28))/1.05 "Montserrat"; letter-spacing: -.035em; }
.policy-hero p { max-width: 720px; margin: 0; color: var(--visual-palette-526258); font-size: var(--ds-font-size-16); }
.policy-updated { display: inline-block; margin-top: var(--ds-space-16); color: var(--muted); font-size: var(--ds-font-size-12); font-weight: 700; }
.policy-content { display: grid; gap: var(--ds-space-16); }
.policy-section { padding: var(--ds-space-24) var(--ds-space-32); border: 1px solid var(--line); border-radius: var(--ds-radius-16); background: var(--visual-color-surface); box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.policy-section h2 { margin: 0 0 var(--ds-space-12); color: var(--green); font: 700 var(--ds-font-size-22) "Montserrat"; }
.policy-section h3 { margin: var(--ds-space-20) 0 var(--ds-space-8); font: 700 var(--ds-font-size-16) "Montserrat"; }
.policy-section p { margin: 0 0 var(--ds-space-12); color: var(--visual-palette-46584f); line-height: 1.65; }
.policy-section p:last-child { margin-bottom: 0; }
.policy-section ul { margin: var(--ds-space-8) 0 0; padding-left: var(--ds-space-20); color: var(--visual-palette-46584f); }
.policy-section li { margin: var(--ds-space-8) 0; line-height: 1.55; }
.policy-table-wrap { overflow-x: auto; }
.policy-table { width: 100%; margin-top: var(--ds-space-12); border-collapse: collapse; font-size: var(--ds-font-size-13); }
.policy-table th, .policy-table td { padding: var(--ds-space-12); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.policy-table th { color: var(--green); background: var(--visual-palette-f3f7f4); }
.policy-contact { border-color: var(--visual-palette-cfe0d5); background: var(--visual-palette-edf5ef); }
.policy-contact a { color: var(--green); font-weight: 700; }
.policy-footer { padding: var(--ds-space-24) var(--ds-space-20); color: var(--visual-palette-67766e); border-top: 1px solid var(--line); text-align: center; font-size: var(--ds-font-size-12); }
.plans-page { min-height: 100vh; overflow-x: hidden; color: var(--ink); background: radial-gradient(circle at 84% 5%, rgba(244,201,169,.25), transparent 26%), var(--visual-palette-fbfaf6); }
.plans-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); }
.plans-main { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: var(--ds-space-32) 0 var(--ds-space-32); }
.plans-hero { max-width: 830px; margin: 0 auto var(--ds-space-32); text-align: center; }
.plans-hero h1 { margin: var(--ds-space-8) 0 var(--ds-space-16); color: var(--green); font: 700 clamp(var(--ds-font-size-28), 5.2vw, var(--ds-font-size-28))/1.04 "Montserrat"; letter-spacing: -.04em; }
.plans-hero > p { max-width: 760px; margin: 0 auto; color: var(--visual-palette-526258); font-size: var(--ds-font-size-16); line-height: 1.6; }
.plans-hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--ds-space-8); margin-top: var(--ds-space-20); }
.plans-hero-badges span { padding: var(--ds-space-8) var(--ds-space-12); border: 1px solid var(--visual-palette-cfe0d5); border-radius: var(--ds-radius-16); color: var(--green); background: var(--visual-palette-f4faf6); font-size: var(--ds-font-size-12); font-weight: 700; }
.plans-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ds-space-20); align-items: stretch; }
.plans-detail-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: var(--ds-space-32); border: 1px solid var(--line); border-radius: var(--ds-radius-16); background: var(--visual-color-surface); box-shadow: 0 8px 30px rgba(29,55,43,.04); }
.plans-detail-card.featured { border: 1.5px solid var(--green); background: linear-gradient(180deg, var(--visual-palette-f4faf6), var(--visual-color-surface) 42%); box-shadow: 0 18px 42px rgba(23,79,61,.11); }
.plans-popular { position: absolute; top: -14px; left: 50%; padding: var(--ds-space-8) var(--ds-space-16); border-radius: var(--ds-radius-16); color: var(--visual-color-surface); background: var(--green); font-size: var(--ds-font-size-11); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; transform: translateX(-50%); white-space: nowrap; }
.plans-audience { color: var(--green-2); font-size: var(--ds-font-size-11); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.plans-detail-card h2 { margin: var(--ds-space-8) 0 var(--ds-space-8); font: 700 var(--ds-font-size-22) "Montserrat"; }
.plans-detail-card p { min-height: 66px; margin: 0; color: var(--muted); line-height: 1.5; }
.plans-price { display: block; margin: var(--ds-space-20) 0 var(--ds-space-16); color: var(--green); font: 700 var(--ds-font-size-28) "Montserrat"; }
.plans-price small { margin-left: var(--ds-space-4); color: var(--muted); font: 700 var(--ds-font-size-12) "Montserrat"; }
.plans-detail-card ul { display: grid; gap: var(--ds-space-12); margin: 0 0 var(--ds-space-24); padding: 0; list-style: none; }
.plans-detail-card li { position: relative; padding-left: var(--ds-space-20); color: var(--visual-palette-405149); line-height: 1.45; }
.plans-detail-card li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green-2); font-weight: 700; }
.plans-detail-card .button { width: 100%; margin-top: auto; text-align: center; text-decoration: none; }
.plans-comparison-section { margin-top: var(--ds-space-32); }
.plans-comparison-section > header { max-width: 760px; margin-bottom: var(--ds-space-24); }
.plans-comparison-section h2, .plans-multiunit h2, .plans-faq h2, .plans-cta h2 { margin: var(--ds-space-8) 0 var(--ds-space-8); color: var(--green); font: 700 clamp(var(--ds-font-size-28), 4vw, var(--ds-font-size-28))/1.15 "Montserrat"; letter-spacing: -.025em; }
.plans-comparison-section header p, .plans-multiunit p, .plans-cta p { margin: 0; color: var(--muted); line-height: 1.6; }
.plans-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--ds-radius-16); background: var(--visual-color-surface); }
.plans-table { width: 100%; border-collapse: collapse; font-size: var(--ds-font-size-13); }
.plans-table th, .plans-table td { padding: var(--ds-space-16) var(--ds-space-16); border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.plans-table th { color: var(--visual-color-surface); background: var(--green); font: 700 var(--ds-font-size-12) "Montserrat"; }
.plans-table th:first-child, .plans-table td:first-child { width: 42%; text-align: left; }
.plans-table tbody tr:nth-child(even) { background: var(--visual-palette-f6f8f6); }
.plans-table tbody tr:last-child td { border-bottom: 0; }
.plans-table td strong { color: var(--green); }
.plans-multiunit { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(350px, .75fr); gap: var(--ds-space-32); align-items: center; margin-top: var(--ds-space-32); padding: var(--ds-space-32); border: 1px solid var(--visual-palette-bfd8c8); border-radius: var(--ds-radius-16); background: linear-gradient(135deg, var(--visual-palette-eaf4ed), var(--visual-palette-f8fbf9)); }
.plans-multiunit ul { display: grid; gap: var(--ds-space-12); margin: 0; padding: 0; list-style: none; }
.plans-multiunit li { padding: var(--ds-space-12) var(--ds-space-16); border: 1px solid rgba(23,79,61,.12); border-radius: var(--ds-radius-12); background: rgba(255,255,255,.72); }
.plans-multiunit li strong, .plans-multiunit li span { display: block; }
.plans-multiunit li strong { color: var(--green); font: 700 var(--ds-font-size-14) "Montserrat"; }
.plans-multiunit li span { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-12); }
.plans-faq { display: grid; grid-template-columns: minmax(240px, .55fr) minmax(0, 1.45fr); gap: var(--ds-space-32); margin-top: var(--ds-space-32); }
.plans-faq details { padding: var(--ds-space-16) 0; border-bottom: 1px solid var(--line); }
.plans-faq details:first-child { padding-top: 0; }
.plans-faq summary { color: var(--ink); font: 700 var(--ds-font-size-16) "Montserrat"; cursor: pointer; }
.plans-faq details p { margin: var(--ds-space-8) 0 0; color: var(--muted); line-height: 1.6; }
.plans-cta { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-32); margin-top: var(--ds-space-32); padding: var(--ds-space-32) var(--ds-space-32); border-radius: var(--ds-radius-16); color: var(--visual-color-surface); background: var(--green); }
.plans-cta .policy-kicker, .plans-cta h2, .plans-cta p { color: var(--visual-color-surface); }
.plans-cta .button { flex: 0 0 auto; color: var(--green); background: var(--visual-color-surface); text-decoration: none; }
.plans-footer { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: var(--ds-space-20); }
.plans-footer a, .plans-footer button { padding: 0; border: 0; color: var(--green); background: transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ds-space-16); }
.service-combo-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.service-combo-field legend { margin-bottom: var(--ds-space-8); color: var(--visual-palette-4f5d57); font-size: var(--ds-font-size-13); font-weight: 700; }
.service-combo-empty { padding: var(--ds-space-12); border: 1px dashed var(--line); border-radius: var(--ds-radius-12); color: var(--muted); background: var(--visual-palette-fafcfb); font-size: var(--ds-font-size-12); text-align: center; }
.service-combo-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-space-8); max-height: 210px; overflow-y: auto; padding: var(--ds-space-4); scrollbar-gutter: stable; }
.service-combo-option { min-width: 0; display: flex; align-items: center; gap: var(--ds-space-12); padding: var(--ds-space-12) var(--ds-space-12); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--visual-color-surface); cursor: pointer; }
.service-combo-option:has(input:checked) { border-color: var(--green); background: var(--mint); box-shadow: 0 0 0 1px rgba(23, 79, 61, .08); }
.service-combo-option input[type="checkbox"],
.service-combo-option input[type="radio"] { flex: 0 0 17px; width: 17px; height: 17px; margin: 0; padding: 0; accent-color: var(--green); }
.service-combo-option input[data-package-quantity] { flex: 0 0 92px; width: 92px; min-width: 92px; height: 40px; margin-left: auto; padding: 0 var(--ds-space-12); }
.service-combo-option span { min-width: 0; }
.service-combo-option strong, .service-combo-option small { display: block; overflow-wrap: anywhere; }
.service-combo-option strong { color: var(--ink); font-size: var(--ds-font-size-13); }
.service-combo-option small { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); }
.service-combo-summary { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-12); margin-top: var(--ds-space-8); padding: var(--ds-space-12) var(--ds-space-12); border-radius: var(--ds-radius-8); background: var(--visual-palette-f3f6f2); color: var(--muted); font-size: var(--ds-font-size-12); }
.service-combo-summary strong { color: var(--green); }
.package-benefit-choice { display: grid; gap: var(--ds-space-12); margin: var(--ds-space-4) 0; padding: var(--ds-space-12); border: 1px solid var(--visual-palette-b9dec9); border-radius: var(--ds-radius-12); background: var(--visual-palette-f2faf5); color: var(--ink); }
.package-benefit-heading { display: flex; align-items: center; gap: var(--ds-space-8); }
.package-benefit-heading .metric-icon { width: 34px; height: 34px; border-radius: var(--ds-radius-8); background: var(--visual-palette-dff1e6); color: var(--green); }
.package-benefit-heading strong, .package-benefit-heading small { display: block; }
.package-benefit-heading strong { color: var(--green); font-size: var(--ds-font-size-13); }
.package-benefit-heading small, .package-benefit-choice p { color: var(--muted); font-size: var(--ds-font-size-12); }
.package-benefit-choice p { margin: 0; }
.package-benefit-options { display: flex; flex-wrap: wrap; gap: var(--ds-space-8) var(--ds-space-16); }
.package-benefit-options label { display: inline-flex; align-items: center; gap: var(--ds-space-8); margin: 0; color: var(--ink); font-size: var(--ds-font-size-12); font-weight: 700; }
.package-benefit-options input { width: 15px; height: 15px; margin: 0; accent-color: var(--green); }
.service-assignment-step { margin-top: var(--ds-space-12); padding: var(--ds-space-12); border: 1px solid rgba(23, 79, 61, .12); border-radius: var(--ds-radius-12); background: var(--visual-palette-fbfcf8); }
.service-assignment-step > strong { display: block; color: var(--green); font-size: var(--ds-font-size-13); }
.service-assignment-step > small { display: block; margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); }
.service-assignment-list { display: grid; gap: var(--ds-space-8); margin-top: var(--ds-space-12); }
.service-assignment-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) minmax(180px, .9fr) auto; align-items: center; gap: var(--ds-space-12); padding: var(--ds-space-12); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--visual-color-surface); transition: border-color .18s ease, background .18s ease, opacity .18s ease; }
.service-assignment-row span { min-width: 0; }
.service-assignment-row strong, .service-assignment-row small { display: block; overflow-wrap: anywhere; }
.service-assignment-row small { color: var(--muted); font-size: var(--ds-font-size-11); }
.service-assignment-row select { min-height: 42px; padding: var(--ds-space-8) var(--ds-space-12); }
.drag-handle { display: grid; width: 30px; height: 42px; place-items: center; padding: 0; border: 0; border-radius: var(--ds-radius-8); color: var(--muted); background: transparent; cursor: grab; touch-action: none; }
.drag-handle:active { cursor: grabbing; }
.drag-handle .ui-icon { width: 17px; height: 17px; }
.service-order-controls { display: grid; grid-template-columns: repeat(2, 30px); gap: var(--ds-space-4); }
.service-order-controls .icon-button { width: 30px; height: 30px; min-height: 30px; padding: 0; }
.service-order-controls .icon-button:disabled { cursor: not-allowed; opacity: .35; }
.service-assignment-row.is-dragging { opacity: .45; }
.service-assignment-row.is-drag-target { border-color: var(--green); background: var(--visual-palette-f0f8f3); }
.span-2 { grid-column: span 2; }
.clinic-module-toggle {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-20);
  min-height: 82px;
  padding: var(--ds-space-16) var(--ds-space-20);
  border: 1px solid var(--line);
  border-radius: var(--ds-radius-16);
  background: var(--visual-palette-fbfcfa);
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.clinic-module-toggle:hover { border-color: var(--visual-palette-a9c7b6); background: var(--visual-palette-f7fbf8); }
.clinic-module-toggle:has(.clinic-module-checkbox:checked) {
  border-color: var(--visual-palette-8ebba3);
  background: var(--visual-palette-f1f8f3);
  box-shadow: inset 3px 0 0 var(--green);
}
.clinic-module-toggle-copy { min-width: 0; }
.clinic-module-toggle-copy strong,
.clinic-module-toggle-copy small { display: block; }
.clinic-module-toggle-copy strong { color: var(--ink); font: 700 var(--ds-font-size-14) "Montserrat"; }
.clinic-module-toggle-copy small { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 500; line-height: 1.45; }
.clinic-module-checkbox { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.clinic-module-switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 46px;
  border: 1px solid var(--visual-palette-cbd4ce);
  border-radius: var(--ds-radius-16);
  background: var(--visual-palette-dfe5e1);
  transition: .2s;
}
.clinic-module-switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--visual-color-surface);
  box-shadow: 0 1px 4px rgba(26, 55, 42, .22);
  content: "";
  transition: transform .2s;
}
.clinic-module-checkbox:checked + .clinic-module-switch { border-color: var(--green); background: var(--green); }
.clinic-module-checkbox:checked + .clinic-module-switch::after { transform: translateX(20px); }
.clinic-module-checkbox:focus-visible + .clinic-module-switch { box-shadow: 0 0 0 3px rgba(38, 112, 90, .18); }
@media (max-width: 520px) {
  .clinic-module-toggle { min-height: 76px; gap: var(--ds-space-16); padding: var(--ds-space-16); }
}

/* Primeiro acesso: somente as configurações estruturais da empresa. */
.settings-heading-actions { display:flex; flex-wrap:wrap; gap:var(--ds-space-8); }
.settings-tour-highlight { position:relative; z-index:1002; outline:3px solid var(--visual-palette-079a91); outline-offset:6px; border-radius:var(--ds-radius-12); background:var(--visual-color-surface); box-shadow:0 14px 40px rgba(3,39,58,.24); pointer-events:none; }
#settings-tour { display:contents; }
.settings-tour-backdrop { position:fixed; inset:0; z-index:1001; background:rgba(5,28,46,.54); pointer-events:auto; }
.settings-tour-card { position:fixed; z-index:1003; top:50%; right:clamp(16px,4vw,54px); width:min(390px,calc(100vw - 32px)); max-height:calc(100vh - 32px); overflow-y:auto; transform:translateY(-50%); padding:var(--ds-space-24); border:1px solid var(--visual-palette-d9ebe9); border-radius:var(--ds-radius-16); color:var(--visual-palette-14324b); background:var(--visual-color-surface); box-shadow:0 20px 60px rgba(2,24,43,.26); pointer-events:auto; }
.settings-tour-progress { display:flex; justify-content:space-between; gap:var(--ds-space-12); color:var(--visual-palette-087d76); font-size:var(--ds-font-size-12); font-weight:700; }
.settings-tour-progress-track { height:6px; margin:var(--ds-space-12) 0 var(--ds-space-20); overflow:hidden; border-radius:var(--ds-radius-16); background:var(--visual-palette-e6eeef); }
.settings-tour-progress-track i { display:block; height:100%; border-radius:inherit; background:var(--visual-palette-079a91); }
.settings-tour-card h2 { margin:0 0 var(--ds-space-8); color:var(--brand-dark); font-size:var(--ds-font-size-22); }
.settings-tour-card p { margin:0; color:var(--visual-palette-587083); font-size:var(--ds-font-size-14); line-height:1.5; }
.settings-tour-actions { display:flex; align-items:center; justify-content:space-between; gap:var(--ds-space-12); margin-top:var(--ds-space-24); }
.settings-tour-actions > div { display:flex; gap:var(--ds-space-8); }
.settings-tour-actions .button { white-space:nowrap; }
@media (max-width:620px) { .settings-tour-card { left:12px; right:12px; width:auto; padding:var(--ds-space-20); }.settings-tour-actions { align-items:stretch; flex-direction:column-reverse; }.settings-tour-actions > div { justify-content:flex-end; } }
.first-access-badge { display:block; width:max-content; margin-top:var(--ds-space-4); padding:var(--ds-space-4) var(--ds-space-8); border-radius:var(--ds-radius-16); background:var(--visual-palette-f8d8ec); color:var(--visual-palette-ae2462); font-size:var(--ds-font-size-11); font-weight:700; white-space:nowrap; }
.first-access-banner { display:flex; align-items:center; gap:var(--ds-space-20); margin-bottom:var(--ds-space-24); padding:var(--ds-space-20) var(--ds-space-24); border:1px solid var(--visual-palette-d8ebe7); border-radius:var(--ds-radius-16); background:linear-gradient(100deg,var(--visual-palette-eefaf8),var(--visual-palette-f8fffe)); }
.first-access-banner > i { display:grid; place-items:center; flex:0 0 66px; width:66px; height:66px; border-radius:50%; color:var(--visual-palette-087f77); background:var(--visual-palette-d7f3ef); }
.first-access-banner { position:relative; min-height:124px; padding:0 var(--ds-space-32) 0 var(--ds-space-24); overflow:hidden; }
.first-access-banner[hidden] { display:none; }
.first-access-banner > img { align-self:flex-end; flex:0 0 180px; width:180px; height:122px; object-fit:contain; object-position:center bottom; }
.first-access-banner > button { position:absolute; top:14px; right:14px; display:grid; place-items:center; width:28px; height:28px; border:0; border-radius:var(--ds-radius-8); color:var(--visual-palette-126d68); background:transparent; cursor:pointer; }
.first-access-banner > button:hover { background:var(--visual-palette-dff3ee); }
.first-access-banner > button svg { width:17px; height:17px; }
.first-access-banner svg { width:35px; height:35px; }.first-access-banner h2 { margin:0 0 var(--ds-space-4); color:var(--brand-dark); font-size:var(--ds-font-size-22); }.first-access-banner p { margin:0; color:var(--visual-palette-406677); }
.first-access-heading h1 { margin:0; color:var(--brand-dark); font-size:var(--ds-font-size-28); }.first-access-heading h1 span { display:inline-block; padding:var(--ds-space-4) var(--ds-space-12); border-radius:var(--ds-radius-16); color:var(--visual-palette-ae2462); background:var(--visual-palette-f9e1ee); font-size:var(--ds-font-size-13); vertical-align:middle; }.first-access-heading p { margin:var(--ds-space-8) 0 var(--ds-space-20); color:var(--visual-palette-6d8292); }
.first-access-layout { display:grid; grid-template-columns:minmax(220px, .8fr) minmax(0, 1.8fr); gap:var(--ds-space-20); align-items:start; }.first-access-steps,.first-access-card { border:1px solid rgba(11,45,77,.09); border-radius:var(--ds-radius-16); background:var(--visual-color-surface); box-shadow:0 8px 28px rgba(11,45,77,.055); }.first-access-steps { padding:var(--ds-space-20); }.first-access-step { display:flex; width:100%; gap:var(--ds-space-12); padding:var(--ds-space-12) var(--ds-space-8); border:0; border-radius:var(--ds-radius-12); color:var(--visual-palette-5e7487); text-align:left; background:transparent; cursor:pointer; }.first-access-step:hover,.first-access-step.active { color:var(--brand-dark); background:var(--visual-palette-eaf8f6); }.first-access-step b { display:grid; place-items:center; flex:0 0 34px; height:34px; border-radius:50%; color:var(--visual-palette-415d70); background:var(--visual-palette-edf2f5); }.first-access-step.active b,.first-access-step.done b { color:var(--visual-color-surface); background:var(--visual-palette-0b9c93); }.first-access-step b svg { width:16px; }.first-access-step strong,.first-access-step small { display:block; }.first-access-step strong { font-size:var(--ds-font-size-14); }.first-access-step small { margin-top:var(--ds-space-4); font-size:var(--ds-font-size-12); line-height:1.35; }.first-access-tip { display:flex; gap:var(--ds-space-12); margin-top:var(--ds-space-32); padding:var(--ds-space-16); border-radius:var(--ds-radius-12); background:var(--visual-palette-eef9f7); color:var(--visual-palette-416778); }.first-access-tip i { color:var(--visual-palette-738600); }.first-access-tip strong,.first-access-tip p { display:block; margin:0; }.first-access-tip p { margin-top:var(--ds-space-4); font-size:var(--ds-font-size-12); line-height:1.45; }
.first-access-card > header { display:flex; justify-content:space-between; gap:var(--ds-space-20); padding:var(--ds-space-24) var(--ds-space-24) var(--ds-space-20); border-bottom:1px solid var(--visual-palette-edf1f3); }.first-access-card h2 { margin:0; color:var(--brand-dark); font-size:var(--ds-font-size-22); }.first-access-card header p { margin:var(--ds-space-4) 0 0; color:var(--visual-palette-637a8d); }.first-access-card header > span { min-width:138px; color:var(--visual-palette-718395); font-size:var(--ds-font-size-12); }.first-access-card header > span i { display:block; height:7px; margin-top:var(--ds-space-8); border-radius:var(--ds-radius-16); background:linear-gradient(90deg,var(--visual-palette-09a79b) var(--first-access-progress),var(--visual-palette-e7edf1) var(--first-access-progress)); }.first-access-card > .form-stack,.first-access-card > .first-access-profiles { padding:var(--ds-space-24) var(--ds-space-24); }.first-access-card > footer { display:grid; grid-template-columns:1fr auto; gap:var(--ds-space-4) var(--ds-space-20); align-items:center; padding:var(--ds-space-16) var(--ds-space-24); border-top:1px solid var(--visual-palette-edf1f3); }.first-access-card > footer small { grid-column:1; color:var(--visual-palette-77899a); }.first-access-card > footer .button { grid-column:2; grid-row:1 / span 2; }
.first-access-logo { display:flex; align-items:center; gap:var(--ds-space-12); padding:var(--ds-space-16); border:1px dashed var(--visual-palette-bdd0dc); border-radius:var(--ds-radius-12); background:var(--visual-palette-fbfdfe); }.first-access-logo label { color:var(--brand-dark); font-weight:700; }.first-access-logo label small { color:var(--visual-palette-718395); font-weight:400; }.first-access-logo input { display:block; max-width:220px; margin-top:var(--ds-space-8); font-size:var(--ds-font-size-12); }.first-access-logo > span { color:var(--visual-palette-708597); font-size:var(--ds-font-size-12); }.first-access-fieldset { margin:var(--ds-space-4) 0 0; padding:var(--ds-space-16) 0 0; border:0; border-top:1px solid var(--visual-palette-e8eef1); }.first-access-fieldset legend { padding-right:var(--ds-space-8); color:var(--brand-dark); font-size:var(--ds-font-size-13); font-weight:700; text-transform:uppercase; }.first-access-fieldset legend small { color:var(--visual-palette-6e8394); font-weight:400; text-transform:none; }.align-end { align-self:end; }.first-access-days { display:flex; flex-wrap:wrap; gap:var(--ds-space-8); }.first-access-days label,.first-access-24h { display:flex; align-items:center; gap:var(--ds-space-8); padding:var(--ds-space-8) var(--ds-space-12); border:1px solid var(--visual-palette-dce7eb); border-radius:var(--ds-radius-8); color:var(--visual-palette-456174); background:var(--visual-color-surface); }.first-access-24h { width:max-content; color:var(--brand-dark); font-weight:600; }.profile-suggestions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--ds-space-12); }.profile-suggestions article { display:flex; align-items:flex-start; gap:var(--ds-space-12); padding:var(--ds-space-16); border:1px solid var(--visual-palette-e0eaee); border-radius:var(--ds-radius-12); }.profile-suggestions article > i { color:var(--visual-palette-078f86); }.profile-suggestions strong,.profile-suggestions p { display:block; }.profile-suggestions p { margin:var(--ds-space-4) 0 0; color:var(--visual-palette-687e8d); font-size:var(--ds-font-size-12); line-height:1.4; }.profile-suggestions article small { margin-left:auto; padding:var(--ds-space-4) var(--ds-space-8); border-radius:var(--ds-radius-16); color:var(--visual-palette-087e75); background:var(--visual-palette-e6f7f4); font-size:var(--ds-font-size-11); }.first-access-custom-profile { display:grid; grid-template-columns:1fr 1.5fr auto; gap:var(--ds-space-12); align-items:end; margin-top:var(--ds-space-20); padding-top:var(--ds-space-20); border-top:1px solid var(--visual-palette-e8eef1); }
.first-access-days input[type="checkbox"],.first-access-24h input[type="checkbox"] { width:18px; height:18px; flex:0 0 18px; margin:0; padding:0; accent-color:var(--brand-secondary); cursor:pointer; }
.agenda-day-hours { border:1px solid var(--visual-palette-dce7eb); border-radius:var(--ds-radius-12); background:var(--visual-palette-fbfdfd); }
.agenda-day-hours summary { padding:var(--ds-space-12) var(--ds-space-16); color:var(--brand-dark); font-weight:700; cursor:pointer; }
.agenda-day-hours summary span { margin-left:var(--ds-space-8); color:var(--visual-color-muted); font-size:var(--ds-font-size-12); font-weight:400; }
.agenda-day-hours-list { display:grid; gap:var(--ds-space-8); padding:0 var(--ds-space-16) var(--ds-space-16); }
.agenda-day-hours-row { display:grid; grid-template-columns:minmax(100px,1fr) repeat(2,minmax(130px,1fr)); align-items:end; gap:var(--ds-space-12); padding:var(--ds-space-12) 0; border-top:1px solid var(--visual-palette-e8eef1); }
.agenda-day-hours-row[hidden] { display:none; }
.agenda-day-hours-row strong { align-self:center; color:var(--brand-dark); }
.agenda-day-hours-row label { display:grid; gap:var(--ds-space-4); color:var(--visual-palette-456174); font-size:var(--ds-font-size-12); }
.agenda-day-hours-row input { width:100%; }
@media (max-width:650px) { .agenda-day-hours-row { grid-template-columns:repeat(2,minmax(0,1fr)); } .agenda-day-hours-row strong { grid-column:1/-1; } }
.first-access-24h { white-space:nowrap; cursor:pointer; }
@media (max-width: 900px) { .first-access-layout { grid-template-columns:1fr; }.first-access-steps { display:grid; grid-template-columns:repeat(2,1fr); }.first-access-tip { display:none; } }
@media (max-width: 620px) { .first-access-banner { align-items:flex-start; padding:var(--ds-space-16); }.first-access-banner > i { flex-basis:45px; width:45px; height:45px; }.first-access-banner h2 { font-size:var(--ds-font-size-16); }.first-access-card > header { display:block; }.first-access-card header > span { display:block; margin-top:var(--ds-space-12); }.first-access-card > footer { grid-template-columns:1fr; }.first-access-card > footer .button { grid-column:1; grid-row:auto; }.first-access-card > footer small { grid-column:1; }.first-access-steps { grid-template-columns:1fr; }.profile-suggestions,.first-access-custom-profile { grid-template-columns:1fr; } }
@media (max-width: 620px) { .first-access-banner { align-items:center; gap:var(--ds-space-12); padding:var(--ds-space-12) var(--ds-space-32) var(--ds-space-12) var(--ds-space-8); }.first-access-banner > img { align-self:center; flex-basis:80px; width:80px; height:90px; }.first-access-banner > button { top:8px; right:8px; } }

.first-access-section + .first-access-section { margin-top:var(--ds-space-24); padding-top:var(--ds-space-20); border-top:1px solid var(--visual-palette-e8eef1); }
.first-access-section h3 { margin:0 0 var(--ds-space-16); color:var(--brand-dark); font-size:var(--ds-font-size-16); }
.first-access-address-layout { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(190px,.8fr); gap:var(--ds-space-16); align-items:stretch; }
.first-access-address-fields { align-content:start; }
.input-with-action { display:flex; overflow:hidden; border:1px solid var(--visual-palette-d7e1e6); border-radius:var(--ds-radius-8); background:var(--visual-color-surface); }
.input-with-action input { min-width:0; border:0; border-radius:0; }
.input-with-action button { display:grid; place-items:center; width:42px; border:0; color:var(--brand-dark); background:var(--visual-palette-edf4f6); cursor:pointer; }
.input-with-action button svg { width:18px; }
.first-access-map { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:214px; padding:var(--ds-space-20); border-radius:var(--ds-radius-12); color:var(--visual-palette-6a7f8e); text-align:center; background:linear-gradient(135deg,var(--visual-palette-f6fbfa),var(--visual-palette-edf4ef)); }
.first-access-map > i { display:grid; place-items:center; width:42px; height:42px; margin-bottom:var(--ds-space-12); border-radius:50%; color:var(--visual-palette-0a978c); background:var(--visual-palette-d9f2ec); }
.first-access-map > i svg { width:23px; }.first-access-map strong { color:var(--brand-dark); }.first-access-map p { margin:var(--ds-space-8) 0; font-size:var(--ds-font-size-12); line-height:1.45; }.first-access-map a { color:var(--visual-palette-087f76); font-size:var(--ds-font-size-12); font-weight:700; }
.first-access-map.located { background:linear-gradient(135deg,var(--visual-palette-e4f5f0),var(--visual-palette-eff9f6)); }
.first-access-map { background-color:var(--visual-palette-eef6f3); background-image:linear-gradient(135deg,transparent 42%,var(--visual-color-surface) 42%,var(--visual-color-surface) 45%,transparent 45%),linear-gradient(38deg,transparent 55%,var(--visual-color-surface) 55%,var(--visual-color-surface) 58%,transparent 58%),linear-gradient(110deg,var(--visual-palette-e7f5e9) 18%,transparent 18%,transparent 79%,var(--visual-palette-e3f4fa) 79%); background-size:85px 80px,110px 95px,100% 100%; }
.first-access-map.located { background-color:var(--visual-palette-e8f5f1); background-image:linear-gradient(135deg,transparent 42%,var(--visual-color-surface) 42%,var(--visual-color-surface) 45%,transparent 45%),linear-gradient(38deg,transparent 55%,var(--visual-color-surface) 55%,var(--visual-color-surface) 58%,transparent 58%),linear-gradient(110deg,var(--visual-palette-e7f5e9) 18%,transparent 18%,transparent 79%,var(--visual-palette-e3f4fa) 79%); }
.first-access-footer-navigation { display:flex; align-items:center; gap:var(--ds-space-24); }.first-access-footer-navigation > div small { display:block; margin-top:var(--ds-space-4); color:var(--visual-palette-77899a); }.first-access-card > footer { display:flex; justify-content:space-between; }.first-access-card > footer .button { margin-left:auto; }
@media (max-width: 700px) { .first-access-address-layout { grid-template-columns:1fr; }.first-access-map { min-height:150px; }.first-access-card > footer,.first-access-footer-navigation { align-items:stretch; flex-direction:column; gap:var(--ds-space-12); }.first-access-card > footer .button { margin-left:0; } }

.first-access-profile-info { display:flex; gap:var(--ds-space-12); margin-bottom:var(--ds-space-20); padding:var(--ds-space-16); border-radius:var(--ds-radius-12); color:var(--visual-palette-446778); background:var(--visual-palette-eef9f7); }
.first-access-profile-info > i { color:var(--visual-palette-748900); }.first-access-profile-info strong { color:var(--brand-dark); }.first-access-profile-info p { margin:var(--ds-space-4) 0 0; font-size:var(--ds-font-size-13); line-height:1.45; }.first-access-profile-section + .first-access-profile-section { margin-top:var(--ds-space-20); padding-top:var(--ds-space-20); border-top:1px solid var(--visual-palette-e8eef1); }.first-access-profile-section h3 { margin:0; color:var(--brand-dark); font-size:var(--ds-font-size-16); }.first-access-profile-section > p { margin:var(--ds-space-4) 0 var(--ds-space-12); color:var(--visual-palette-708394); font-size:var(--ds-font-size-13); }
.first-access-profile-cards { display:grid; grid-template-columns:repeat(4,minmax(130px,1fr)); gap:var(--ds-space-12); }.first-access-profile-card { position:relative; display:flex; min-height:162px; padding:var(--ds-space-16); border:1px solid var(--visual-palette-dfe8ed); border-radius:var(--ds-radius-12); cursor:pointer; text-align:center; align-items:center; flex-direction:column; background:var(--visual-color-surface); }.first-access-profile-card:has(input:checked) { border-color:var(--visual-palette-89cfc7); background:var(--visual-palette-f5fcfb); }.first-access-profile-card input { position:absolute; top:11px; left:11px; width:16px; height:16px; accent-color:var(--visual-palette-079d93); }.first-access-profile-check { display:none; }.first-access-profile-card > i { display:grid; place-items:center; width:42px; height:42px; margin:var(--ds-space-8) 0 var(--ds-space-8); border-radius:50%; color:var(--visual-palette-087f76); background:var(--visual-palette-e4f6f3); }.first-access-profile-card > i svg { width:22px; }.first-access-profile-card strong { color:var(--brand-dark); font-size:var(--ds-font-size-13); }.first-access-profile-card small { margin-top:var(--ds-space-8); color:var(--visual-palette-708394); font-size:var(--ds-font-size-11); line-height:1.35; }.first-access-profile-card.required { cursor:default; }.first-access-other-profiles { margin-top:var(--ds-space-20); }.first-access-create-profile { display:flex; width:100%; align-items:center; gap:var(--ds-space-16); padding:var(--ds-space-16); border:1px solid var(--visual-palette-dce6eb); border-radius:var(--ds-radius-12); color:var(--brand-dark); text-align:left; background:var(--visual-palette-fbfdfe); cursor:pointer; }.first-access-create-profile:hover { border-color:var(--visual-palette-8fcfc8); background:var(--visual-palette-f4fbfa); }.first-access-create-profile > i { display:grid; place-items:center; flex:0 0 36px; height:36px; border-radius:50%; color:var(--visual-palette-087f76); background:var(--visual-palette-e4f4f2); }.first-access-create-profile strong,.first-access-create-profile small { display:block; }.first-access-create-profile small { margin-top:var(--ds-space-4); color:var(--visual-palette-6e8292); }.first-access-custom-list { display:flex; flex-wrap:wrap; gap:var(--ds-space-8); margin:0 0 var(--ds-space-12); }.first-access-custom-list span { padding:var(--ds-space-4) var(--ds-space-8); border-radius:var(--ds-radius-16); color:var(--visual-palette-087f76); background:var(--visual-palette-e8f7f4); font-size:var(--ds-font-size-12); font-weight:700; }
.first-access-profile-card > button { display:flex; width:100%; min-height:130px; align-items:center; flex-direction:column; border:0; color:inherit; background:transparent; cursor:pointer; }.first-access-profile-card > button > i { display:grid; place-items:center; width:42px; height:42px; margin:var(--ds-space-8) 0 var(--ds-space-8); border-radius:50%; color:var(--visual-palette-087f76); background:var(--visual-palette-e4f6f3); }.first-access-profile-card > button > i svg { width:22px; }.first-access-profile-card > button em { margin-top:var(--ds-space-8); color:var(--visual-palette-078b81); font-size:var(--ds-font-size-11); font-style:normal; font-weight:700; }.first-access-profile-card > button:focus-visible { outline:2px solid var(--visual-palette-078f85); outline-offset:3px; border-radius:var(--ds-radius-8); }
.modal-card:has(.first-access-profile-modal) { width:min(980px, calc(100vw - 40px)); max-height:calc(100vh - 28px); padding:0; overflow:auto; }.first-access-profile-modal > header { display:flex; gap:var(--ds-space-16); padding:var(--ds-space-32) var(--ds-space-32) var(--ds-space-24); border-bottom:1px solid var(--visual-palette-e7edf1); }.first-access-profile-modal > header > i { display:grid; place-items:center; flex:0 0 72px; height:72px; border-radius:var(--ds-radius-12); color:var(--visual-palette-087fbc); background:var(--visual-palette-edf7ff); }.first-access-profile-modal > header > i svg { width:34px; height:34px; }.first-access-profile-modal h2,.first-access-profile-modal h3 { color:var(--brand-dark); }.first-access-profile-modal h2 { margin:0; }.first-access-profile-modal header p,.first-access-profile-modal header small,.first-access-profile-modal main > p { display:block; margin:var(--ds-space-4) 0 0; color:var(--visual-palette-667b8e); }.first-access-profile-modal-body { display:grid; grid-template-columns:190px minmax(0,1fr); }.first-access-profile-modal-body > aside { padding:var(--ds-space-24); border-right:1px solid var(--visual-palette-e7edf1); color:var(--visual-palette-0a756d); background:var(--visual-palette-f6fbfb); }.first-access-profile-modal-body > aside > p { margin:var(--ds-space-12) 0; color:var(--visual-palette-667b8e); font-size:var(--ds-font-size-12); line-height:1.45; }.first-access-modal-tip { margin-top:var(--ds-space-32); padding:var(--ds-space-12); border-radius:var(--ds-radius-8); color:var(--visual-palette-4a6978); background:var(--visual-palette-eaf6f3); font-size:var(--ds-font-size-12); line-height:1.45; }.first-access-modal-tip i { display:block; margin-bottom:var(--ds-space-8); color:var(--visual-palette-7a8d00); }.first-access-profile-modal-body > main { min-width:0; padding:var(--ds-space-24); }.first-access-profile-modal-body h3 { margin:0; font-size:var(--ds-font-size-16); }.first-access-permission-scroll { margin-top:var(--ds-space-16); overflow-x:auto; border:1px solid var(--visual-palette-e2eaee); border-radius:var(--ds-radius-8); }.first-access-permission-matrix { width:100%; min-width:620px; border-collapse:collapse; font-size:var(--ds-font-size-12); }.first-access-permission-matrix th { padding:var(--ds-space-12) var(--ds-space-8); color:var(--visual-palette-183352); text-align:left; background:var(--visual-palette-f3f8fb); }.first-access-permission-matrix td { padding:var(--ds-space-12) var(--ds-space-8); color:var(--visual-palette-65788a); border-top:1px solid var(--visual-palette-e8eef1); }.first-access-permission-matrix td:nth-child(n+3),.first-access-permission-matrix th:nth-child(n+3) { width:54px; text-align:center; }.first-access-permission-matrix input { width:18px; height:18px; accent-color:var(--visual-palette-078f85); }.first-access-permission-matrix input:disabled { opacity:1; }.first-access-profile-modal > footer { display:flex; justify-content:flex-end; gap:var(--ds-space-12); padding:var(--ds-space-20) var(--ds-space-24); border-top:1px solid var(--visual-palette-e7edf1); }
.first-access-profile-modal > header { position:relative; padding-right:var(--ds-space-32); }
.first-access-profile-close { position:absolute; top:20px; right:22px; display:grid; place-items:center; width:32px; height:32px; border:0; border-radius:var(--ds-radius-8); color:var(--visual-palette-536d80); background:transparent; cursor:pointer; }
.first-access-profile-close:hover { background:var(--visual-palette-edf6f5); }
.first-access-profile-close svg { width:20px; height:20px; }
.first-access-modal-tip strong { display:block; color:var(--brand-dark); }
.first-access-modal-tip p { margin:var(--ds-space-4) 0 0; }
.first-access-permission-matrix td:first-child strong { color:var(--brand-dark); }
.first-access-permission-module { display:flex; align-items:center; gap:var(--ds-space-8); min-width:145px; }
.first-access-permission-module > i { display:grid; place-items:center; flex:0 0 29px; width:29px; height:29px; border-radius:var(--ds-radius-8); color:var(--visual-palette-087f76); background:var(--visual-palette-e8f7f4); }
.first-access-permission-module > i svg { width:17px; height:17px; }
.first-access-permission-matrix .first-access-permission-detail-row td { padding:0 var(--ds-space-8) var(--ds-space-8); border-top:0; text-align:left; }
.first-access-permission-detail-row summary { padding:var(--ds-space-4) 0; color:var(--visual-palette-087f76); font-weight:700; cursor:pointer; }
.first-access-permission-actions { display:flex; flex-wrap:wrap; gap:var(--ds-space-8); padding:var(--ds-space-8) 0 var(--ds-space-4); }
.first-access-permission-resources { display:grid; gap:var(--ds-space-8); padding:var(--ds-space-8) 0; }
.first-access-permission-resource { padding:var(--ds-space-8) var(--ds-space-12); border-radius:var(--ds-radius-8); background:var(--visual-palette-f8fbfc); }
.first-access-permission-resource > strong { color:var(--brand-dark); font-size:var(--ds-font-size-12); }
.first-access-permission-resource .first-access-permission-actions { padding-bottom:0; }
.first-access-permission-actions label { display:flex; align-items:center; gap:var(--ds-space-4); padding:var(--ds-space-4) var(--ds-space-8); border-radius:var(--ds-radius-8); color:var(--visual-palette-4c6579); background:var(--visual-palette-f8fbfc); }
.first-access-financial-hint { display:flex; align-items:center; justify-content:space-between; gap:var(--ds-space-12); width:100%; margin-top:var(--ds-space-12); padding:var(--ds-space-12) var(--ds-space-16); border:0; border-radius:var(--ds-radius-8); color:var(--visual-palette-4b6b80); background:var(--visual-palette-edf8fe); text-align:left; cursor:pointer; }
.first-access-financial-hint strong { display:block; color:var(--brand-dark); }
.first-access-financial-hint p { margin:var(--ds-space-4) 0 0; font-size:var(--ds-font-size-12); line-height:1.5; }
.first-access-financial-hint i { flex:0 0 auto; color:var(--visual-palette-1786b7); }
.first-access-permission-matrix input:indeterminate { accent-color:var(--visual-palette-79949a); }
.profile-recepcao > header > i { color:var(--visual-palette-b20872); background:var(--visual-palette-fff0fa); }.profile-veterinario > header > i { color:var(--visual-palette-4f8f2c); background:var(--visual-palette-eff9e9); }.first-access-profile-modal-body > aside > button { display:flex; width:100%; align-items:center; gap:var(--ds-space-8); padding:var(--ds-space-12); border:0; border-radius:var(--ds-radius-8); color:var(--visual-palette-60788d); background:transparent; font-weight:700; text-align:left; cursor:pointer; }.first-access-profile-modal-body > aside > button.active { color:var(--visual-palette-08796f); background:var(--visual-palette-def4f1); }.first-access-profile-modal-body > aside > button svg { width:18px; }.first-access-permission-groups { display:grid; gap:var(--ds-space-12); margin-top:var(--ds-space-16); }.first-access-permission-groups > section { overflow:hidden; border:1px solid var(--visual-palette-e2eaee); border-radius:var(--ds-radius-8); }.first-access-permission-groups > section > header { display:block; padding:var(--ds-space-12) var(--ds-space-12); border-bottom:1px solid var(--visual-palette-e7edf1); background:var(--visual-palette-f5f9fb); }.first-access-permission-groups > section > header strong,.first-access-permission-groups > section > header small { display:block; }.first-access-permission-groups > section > header small { margin-top:var(--ds-space-4); color:var(--visual-palette-748596); font-size:var(--ds-font-size-11); }.first-access-permission-groups > section > div { display:flex; flex-wrap:wrap; gap:var(--ds-space-8); padding:var(--ds-space-12) var(--ds-space-12); }.first-access-permission-groups label { display:flex; align-items:center; gap:var(--ds-space-8); padding:var(--ds-space-4) var(--ds-space-8); border-radius:var(--ds-radius-8); color:var(--visual-palette-4c6579); background:var(--visual-palette-f8fbfc); font-size:var(--ds-font-size-12); }.first-access-permission-groups input { width:16px; height:16px; accent-color:var(--visual-palette-078f85); }.first-access-permission-groups input:disabled { opacity:1; }.first-access-profile-summary { display:grid; grid-template-columns:1fr 1fr; gap:var(--ds-space-16); margin-top:var(--ds-space-16); }.first-access-profile-summary section { padding:var(--ds-space-16); border-radius:var(--ds-radius-8); background:var(--visual-palette-f5fbfa); }.first-access-profile-summary section + section { background:var(--visual-palette-fff7f8); }.first-access-profile-summary h3 { margin:0 0 var(--ds-space-8); font-size:var(--ds-font-size-16); }.first-access-profile-summary ul { margin:0; padding:0; list-style:none; }.first-access-profile-summary li { margin:var(--ds-space-8) 0; color:var(--visual-palette-557084); font-size:var(--ds-font-size-12); line-height:1.35; }.first-access-profile-summary p { color:var(--visual-palette-6d8190); font-size:var(--ds-font-size-12); }
.modal-card:has(.custom-profile-wizard) { width:min(940px, calc(100vw - 40px)); max-height:calc(100vh - 28px); padding:0; overflow:auto; }.custom-profile-wizard > header { display:flex; gap:var(--ds-space-16); padding:var(--ds-space-24) var(--ds-space-32); border-bottom:1px solid var(--visual-palette-e7edf1); }.custom-profile-wizard > header > i { display:grid; place-items:center; width:70px; height:70px; border-radius:var(--ds-radius-12); color:var(--visual-palette-087f76); background:var(--visual-palette-e8f7f4); }.custom-profile-wizard h2,.custom-profile-wizard h3 { margin:0; color:var(--brand-dark); }.custom-profile-wizard header p,.custom-profile-wizard header small { display:block; margin:var(--ds-space-4) 0 0; color:var(--visual-palette-667b8e); }.custom-profile-stepper { display:flex; justify-content:center; gap:var(--ds-space-32); padding:var(--ds-space-16); border-bottom:1px solid var(--visual-palette-e7edf1); }.custom-profile-stepper span { display:flex; align-items:center; gap:var(--ds-space-8); color:var(--visual-palette-7b8d9e); font-size:var(--ds-font-size-12); }.custom-profile-stepper b { display:grid; width:28px; height:28px; place-items:center; border-radius:50%; background:var(--visual-palette-edf1f4); }.custom-profile-stepper .active,.custom-profile-stepper .done { color:var(--visual-palette-087d74); font-weight:700; }.custom-profile-stepper .active b,.custom-profile-stepper .done b { color:var(--visual-color-surface); background:var(--visual-palette-078f85); }.custom-profile-content { min-height:390px; padding:var(--ds-space-24) var(--ds-space-32); }.custom-profile-data { grid-template-columns:1fr 1fr; }.custom-profile-base { margin-top:var(--ds-space-24); }.custom-profile-base > p { margin:var(--ds-space-4) 0 var(--ds-space-12); color:var(--visual-palette-708395); font-size:var(--ds-font-size-13); }.custom-profile-base > div { display:grid; grid-template-columns:repeat(5,1fr); gap:var(--ds-space-8); }.custom-profile-base button { min-height:96px; padding:var(--ds-space-12); border:1px solid var(--visual-palette-e1e9ed); border-radius:var(--ds-radius-8); color:var(--visual-palette-345069); background:var(--visual-color-surface); text-align:left; cursor:pointer; }.custom-profile-base button.active { border-color:var(--visual-palette-078f85); background:var(--visual-palette-f2fcfa); }.custom-profile-base i,.custom-profile-base strong,.custom-profile-base small { display:block; }.custom-profile-base i { margin-bottom:var(--ds-space-8); color:var(--visual-palette-087f76); }.custom-profile-base small { margin-top:var(--ds-space-4); color:var(--visual-palette-758799); font-size:var(--ds-font-size-11); }.custom-profile-permissions { display:grid; grid-template-columns:200px minmax(0,1fr); gap:var(--ds-space-20); }.custom-profile-permissions > aside { padding-right:var(--ds-space-16); border-right:1px solid var(--visual-palette-e7edf1); }.custom-profile-search { display:flex; align-items:center; gap:var(--ds-space-8); padding:0 var(--ds-space-8); border:1px solid var(--visual-palette-e0e8ed); border-radius:var(--ds-radius-8); }.custom-profile-search input { width:100%; border:0; }.custom-profile-permissions aside > button { display:flex; width:100%; align-items:center; gap:var(--ds-space-8); margin-top:var(--ds-space-8); padding:var(--ds-space-8); border:0; border-radius:var(--ds-radius-8); color:var(--visual-palette-35516a); background:transparent; text-align:left; cursor:pointer; }.custom-profile-permissions aside > button.active { color:var(--visual-palette-087d74); background:var(--visual-palette-e6f7f4); }.custom-profile-permissions main > header { display:flex; justify-content:space-between; gap:var(--ds-space-12); }.custom-profile-permissions main > header p { margin:var(--ds-space-4) 0 var(--ds-space-16); color:var(--visual-palette-718496); font-size:var(--ds-font-size-13); }.custom-profile-permissions main > section { margin-top:var(--ds-space-12); padding:var(--ds-space-12); border:1px solid var(--visual-palette-e4ebef); border-radius:var(--ds-radius-8); }.custom-profile-permissions main > section > div { display:grid; grid-template-columns:1fr 1fr; gap:var(--ds-space-8); margin-top:var(--ds-space-8); }.custom-profile-permissions label { display:flex; align-items:center; gap:var(--ds-space-8); color:var(--visual-palette-536b7f); font-size:var(--ds-font-size-12); }.custom-profile-permissions input { width:17px; height:17px; accent-color:var(--visual-palette-078f85); }.custom-profile-dependency { margin-top:var(--ds-space-12); padding:var(--ds-space-12); border-radius:var(--ds-radius-8); color:var(--visual-palette-486677); background:var(--visual-palette-eaf7fd); font-size:var(--ds-font-size-12); }.custom-profile-dependency button { display:block; margin-top:var(--ds-space-8); border:0; color:var(--visual-palette-087d74); background:transparent; font-weight:700; cursor:pointer; }.custom-profile-review > strong { display:inline-block; margin:var(--ds-space-16) 0; color:var(--visual-palette-087d74); }.custom-profile-review > section { margin-top:var(--ds-space-12); padding:var(--ds-space-12); border-radius:var(--ds-radius-8); background:var(--visual-palette-f5faf9); }.custom-profile-review h4 { margin:0; color:var(--visual-palette-183852); }.custom-profile-review ul { margin:var(--ds-space-8) 0 0; padding:0; list-style:none; color:var(--visual-palette-547084); font-size:var(--ds-font-size-12); }.custom-profile-review li { margin:var(--ds-space-4) 0; }.custom-profile-wizard > footer { display:flex; justify-content:flex-end; gap:var(--ds-space-12); padding:var(--ds-space-16) var(--ds-space-24); border-top:1px solid var(--visual-palette-e7edf1); }
@media (max-width: 900px) { .first-access-profile-cards { grid-template-columns:repeat(2,minmax(130px,1fr)); }.first-access-profile-modal-body { grid-template-columns:1fr; }.first-access-profile-modal-body > aside { border-right:0; border-bottom:1px solid var(--visual-palette-e7edf1); }.first-access-modal-tip { margin-top:var(--ds-space-12); }.custom-profile-base > div { grid-template-columns:repeat(2,1fr); }.custom-profile-permissions { grid-template-columns:1fr; }.custom-profile-permissions > aside { border-right:0; border-bottom:1px solid var(--visual-palette-e7edf1); padding:0 0 var(--ds-space-12); } }
.custom-profile-permissions aside > button[hidden] { display:none; }
.first-access-account-intro { display:grid; grid-template-columns:1fr .9fr; gap:var(--ds-space-20); align-items:stretch; }
.first-access-step { position:relative; }
.first-access-step:not(:nth-of-type(4))::after { content:""; position:absolute; z-index:0; top:48px; bottom:-16px; left:24px; width:2px; background:var(--visual-palette-e2eaed); pointer-events:none; }
.first-access-step.done::after { background:var(--visual-palette-0b9c93); }
.first-access-step b { position:relative; z-index:1; }
.first-access-account-intro .first-access-logo { display:block; padding:0; border:0; background:transparent; }
.first-access-account-intro .first-access-logo label { display:block; }
.first-access-logo-upload { position:relative; display:flex; align-items:center; gap:var(--ds-space-16); min-height:94px; margin-top:var(--ds-space-8); padding:var(--ds-space-16); border:1px dashed var(--visual-palette-bdd0dc); border-radius:var(--ds-radius-12); background:var(--visual-palette-fbfdfe); cursor:pointer; }
.first-access-logo-upload > svg { flex:0 0 54px; width:54px; height:54px; padding:var(--ds-space-16); border-radius:50%; color:var(--brand-dark); background:var(--visual-palette-edf2f5); }
.first-access-logo-upload strong,.first-access-logo-upload small { display:block; }
.first-access-logo-upload small { margin-top:var(--ds-space-4); font-size:var(--ds-font-size-12); }
.first-access-logo-upload input { position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; }
.first-access-logo-upload:focus-within { outline:2px solid var(--visual-palette-078f85); outline-offset:2px; }
.first-access-why { display:flex; gap:var(--ds-space-12); padding:var(--ds-space-16); border-radius:var(--ds-radius-12); color:var(--visual-palette-446778); background:var(--visual-palette-eef9f7); }
.first-access-why > i { flex:0 0 26px; color:var(--visual-palette-788c00); }
.first-access-why strong { color:var(--brand-dark); font-size:var(--ds-font-size-13); }
.first-access-why p { margin:var(--ds-space-8) 0 0; font-size:var(--ds-font-size-12); line-height:1.5; }
@media (max-width: 700px) { .first-access-account-intro { grid-template-columns:1fr; } }
@media (max-width: 900px) { .first-access-step::after { display:none; } }
.custom-profile-review > section > p { margin:var(--ds-space-8) 0 0; color:var(--visual-palette-718496); font-size:var(--ds-font-size-12); }
@media (max-width: 500px) { .first-access-profile-cards { grid-template-columns:1fr; }.first-access-profile-card { min-height:120px; } }
.package-fields {
  margin-top: -2px;
  padding: var(--ds-space-16);
  border: 1px solid var(--line);
  border-radius: var(--ds-radius-16);
  background: var(--visual-palette-fbfcf8);
}
.form-alert {
  margin-top: var(--ds-space-16); padding: var(--ds-space-12) var(--ds-space-16); border: 1px solid var(--visual-palette-efcf9e); border-radius: var(--ds-radius-12);
  color: var(--visual-palette-7a5a17); background: var(--visual-palette-fff8e8);
}
.form-alert strong { display: block; margin-bottom: var(--ds-space-4); color: var(--visual-palette-6d4c0e); }
.form-alert ul { margin: 0; padding-left: var(--ds-space-20); }
.form-alert.error { border-color: var(--visual-palette-efc5bf); color: var(--visual-palette-8f3d35); background: var(--visual-palette-fff1ef); }
.form-alert.error strong { color: var(--visual-palette-7b342d); }
.form-alert.error span, .form-alert.error small { display: block; }
.form-alert.error small { margin-top: var(--ds-space-8); color: var(--visual-palette-a35952); font-size: var(--ds-font-size-11); }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 30; width: 270px; padding: var(--ds-space-32) var(--ds-space-20) var(--ds-space-20);
  display: flex; flex-direction: column; background: var(--visual-palette-fbfbf8); border-right: 1px solid var(--line);
}
.sidebar-backdrop { display: none; }
.sidebar .brand { padding: 0 var(--ds-space-12) var(--ds-space-32); }
.workspace-card { display: flex; align-items: center; gap: var(--ds-space-12); min-width: 0; padding: var(--ds-space-12); border: 1px solid var(--line); border-radius: var(--ds-radius-16); background: var(--visual-color-surface); }
.workspace-card > div { min-width: 0; flex: 1; }
.workspace-card strong, .workspace-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-card small { color: var(--muted); font-size: var(--ds-font-size-11); }
.workspace-avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; padding: 0; border: 0; border-radius: var(--ds-radius-12); background: var(--peach); color: var(--green); font-weight: 700; }
.workspace-avatar img { width: 100%; height: 100%; object-fit: cover; }
.organization-logo-preview { display: flex; align-items: center; gap: var(--ds-space-12); padding: var(--ds-space-12); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--cream); }
.organization-logo-preview img { width: 52px; height: 52px; object-fit: contain; border-radius: var(--ds-radius-8); background: var(--visual-color-surface); }
.icon-button { border: 0; width: var(--visual-icon-button-size); height: var(--visual-icon-button-size); display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: var(--visual-radius-icon-button); background: transparent; color: var(--muted); }
.icon-button .ui-icon { width: 17px; height: 17px; }
.icon-button:hover { background: var(--cream); }
.main-nav { display: grid; gap: var(--ds-space-4); margin-top: var(--ds-space-24); }
.nav-divider { height: 1px; margin: var(--ds-space-8) var(--ds-space-12); background: var(--line); }
.nav-label { margin: var(--ds-space-16) var(--ds-space-12) var(--ds-space-4); color: var(--visual-palette-a0a9a3); text-transform: uppercase; letter-spacing: .13em; font-size: var(--ds-font-size-11); font-weight: 700; }
#stock-badge { font-weight: 700; }
.main-nav a, .sidebar-footer a, .sidebar-footer button {
  width: 100%; display: flex; align-items: center; gap: var(--ds-space-12); padding: var(--ds-space-12) var(--ds-space-12);
  border: 0; border-radius: var(--ds-radius-12); color: var(--visual-palette-657169); background: transparent; text-decoration: none; text-align: left;
}
.main-nav a i, .sidebar-footer i { width: 20px; display: grid; place-items: center; flex: 0 0 auto; font-style: normal; text-align: center; }
.main-nav a i .ui-icon, .sidebar-footer i .ui-icon { width: 17px; height: 17px; }
.main-nav a span, .sidebar-footer span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: var(--green); background: var(--visual-palette-e8f0ea); font-weight: 700; }
.main-nav a b { min-width: 20px; margin-left: auto; padding: var(--ds-space-4) var(--ds-space-8); border-radius: var(--ds-radius-12); color: var(--visual-color-surface); background: var(--green-2); font-size: var(--ds-font-size-11); text-align: center; }
.main-nav a b.badge-warn { color: var(--visual-palette-674b11); background: var(--yellow); }
.nav-group { display: grid; gap: var(--ds-space-4); }
.nav-group-trigger {
  width: 100%; display: flex; align-items: center; gap: var(--ds-space-12); padding: var(--ds-space-12) var(--ds-space-12);
  border: 0; border-radius: var(--ds-radius-12); color: var(--visual-palette-657169); background: transparent; text-align: left;
}
.nav-group-trigger > i { width: 20px; display: grid; place-items: center; flex: 0 0 auto; font-style: normal; }
.nav-group-trigger > i .ui-icon { width: 17px; height: 17px; }
.nav-group-trigger > span { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-group-trigger > b { min-width: 20px; margin-left: 0; padding: var(--ds-space-4) var(--ds-space-8); border-radius: var(--ds-radius-12); color: var(--visual-color-surface); background: var(--green-2); font-size: var(--ds-font-size-11); text-align: center; }
.nav-group-trigger > em { width: 16px; display: grid; place-items: center; color: var(--muted); transition: transform .2s ease; }
.nav-group-trigger > em .ui-icon { width: 14px; height: 14px; }
.nav-group.active > .nav-group-trigger { color: var(--green); font-weight: 700; }
.nav-group-trigger:hover { color: var(--green); background: var(--visual-palette-f0f4f0); }
.nav-submenu { display: grid; gap: var(--ds-space-4); padding: 0 0 var(--ds-space-4) var(--ds-space-32); }
.nav-submenu a { min-height: 34px; padding: var(--ds-space-8) var(--ds-space-12); font-size: var(--ds-font-size-12); }
.nav-submenu a[data-open-appointment-form]:hover { color: var(--visual-palette-657169); background: transparent; font-weight: 400; }
.nav-submenu a::before { display: none; }
.nav-submenu a > i { width: 15px; display: grid; place-items: center; flex: 0 0 auto; }
.nav-submenu a > i .ui-icon { width: 14px; height: 14px; }
.nav-group.collapsed .nav-submenu { display: none; }
.nav-group.collapsed .nav-group-trigger > em { transform: rotate(-90deg); }
.sidebar-footer { margin-top: auto; display: grid; gap: var(--ds-space-4); }
.main-content { grid-column: 2; min-width: 0; background: var(--content-canvas); }
.topbar {
  position: sticky; top: 0; z-index: 20; height: 78px; padding: 0 var(--ds-space-32);
  display: flex; align-items: center; justify-content: space-between; column-gap: var(--ds-space-20); border-bottom: 1px solid var(--line); background: rgba(244,243,236,.9); backdrop-filter: blur(14px);
}
.search-box { flex: 1 1 680px; max-width: calc(100% - 340px); display: flex; align-items: center; gap: var(--ds-space-12); padding: var(--ds-space-12) var(--ds-space-16); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--visual-color-surface); }
.search-box > span { display: grid; place-items: center; color: var(--green); }
.search-box > span .ui-icon { width: 17px; height: 17px; }
.search-box input { width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.search-box kbd { color: var(--visual-palette-929b95); background: var(--cream); border: 1px solid var(--line); border-radius: var(--ds-radius-8); padding: var(--ds-space-4) var(--ds-space-8); font-size: var(--ds-font-size-11); white-space: nowrap; }
.topbar-actions, .user-menu { display: flex; align-items: center; gap: var(--ds-space-16); min-width: 0; }
.topbar-actions { flex: 0 0 auto; }
.notification-button {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--ds-radius-12);
  background: var(--visual-color-surface);
  color: var(--green);
}
.notification-button .notification-icon { display: grid; place-items: center; line-height: 0; }
.notification-button .notification-icon .ui-icon { width: 20px; height: 20px; stroke-width: 2.25; }
.notification-button:hover { background: var(--visual-palette-edf3ee); }
.notification-button .notification-count { position: absolute; right: -7px; top: -7px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 var(--ds-space-4); border: 2px solid var(--visual-color-surface); border-radius: var(--ds-radius-16); color: var(--visual-color-surface); background: var(--danger); font-size: var(--ds-font-size-11); font-weight: 700; }
.notification-popover { position: absolute; right: 182px; top: 64px; z-index: 60; width: min(360px, calc(100vw - 32px)); padding: var(--ds-space-12); border: 1px solid var(--line); border-radius: var(--ds-radius-16); background: var(--visual-color-surface); box-shadow: var(--shadow); }
.notification-popover h3 { margin: var(--ds-space-4) var(--ds-space-8) var(--ds-space-12); font: 700 var(--ds-font-size-16) "Montserrat"; }
.notification-popover button { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: var(--ds-space-12); padding: var(--ds-space-12); border: 0; border-radius: var(--ds-radius-12); background: transparent; text-align: left; }
.notification-popover button:hover { background: var(--visual-palette-f5f7f2); }
.notification-popover i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--ds-radius-12); background: var(--visual-palette-edf3ee); color: var(--green); font-style: normal; }
.notification-popover i .ui-icon { width: 18px; height: 18px; }
.notification-popover strong, .notification-popover small { display: block; }
.notification-popover small { color: var(--muted); }
.notification-popover b { min-width: 24px; padding: var(--ds-space-4) var(--ds-space-8); border-radius: var(--ds-radius-16); color: var(--visual-color-surface); background: var(--green); font-size: var(--ds-font-size-11); text-align: center; }
.user-menu { position: relative; }
.user-menu-trigger {
  border: 0; display: flex; align-items: center; gap: var(--ds-space-12); min-width: 0; padding: var(--ds-space-8) var(--ds-space-12); border-radius: var(--ds-radius-16);
  background: transparent; color: inherit;
}
.user-menu-trigger:hover { background: rgba(255,255,255,.7); }
.user-menu-trigger > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--green); font-weight: 700; }
.user-menu-trigger > div { min-width: 0; max-width: 220px; }
.user-menu-trigger strong, .user-menu-trigger small { display: block; overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-trigger small { color: var(--muted); font-size: var(--ds-font-size-11); }
.user-menu-trigger i { display: grid; place-items: center; font-style: normal; color: var(--muted); }
.user-menu-trigger i .ui-icon { width: 18px; height: 18px; }
.user-menu-dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; min-width: 210px; padding: var(--ds-space-8);
  border: 1px solid var(--line); border-radius: var(--ds-radius-16); background: var(--visual-color-surface); box-shadow: var(--shadow);
}
.user-menu-dropdown button {
  width: 100%; border: 0; padding: var(--ds-space-12) var(--ds-space-12); border-radius: var(--ds-radius-12); background: transparent; text-align: left;
}
.user-menu-dropdown button:hover { background: var(--visual-palette-f5f7f2); }
.menu-toggle { width: 36px; height: 36px; display: none; place-items: center; border: 0; background: transparent; color: var(--green); }
.menu-toggle .ui-icon { width: 22px; height: 22px; }
.topbar-brand { display: none; align-items: center; flex: 0 0 auto; text-decoration: none; }
.page-root { padding: var(--ds-space-32); max-width: var(--visual-content-max); margin: 0 auto; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--ds-space-20); margin-bottom: var(--ds-space-24); }
.page-heading h1 { margin: 0; font: 700 var(--ds-font-size-28) "Montserrat"; letter-spacing: -.035em; }
.page-heading p { margin: var(--ds-space-8) 0 0; color: var(--muted); }
.heading-actions { display: flex; gap: var(--ds-space-12); }

.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ds-space-16); }
.crm-period-filter { display: flex; align-items: end; gap: var(--ds-space-8); }
.crm-period-filter label { display: grid; gap: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 700; }
.crm-period-filter input { width: 142px; min-height: 38px; padding: var(--ds-space-8) var(--ds-space-12); }
.crm-period-filter > span { padding-bottom: var(--ds-space-12); color: var(--muted); font-size: var(--ds-font-size-12); }
.crm-period-end-label { display: none; }
.crm-period-filter .button { min-height: 38px; padding: var(--ds-space-8) var(--ds-space-12); }
.crm-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: var(--ds-space-20); }
.crm-metrics .metric-card { min-height: 154px; }
.crm-metrics-six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.crm-metrics-six .metric-card { min-height: 180px; padding: var(--ds-space-16); }
.crm-metrics-six .metric-card strong { margin-top: var(--ds-space-12); font-size: var(--ds-font-size-28); }
.crm-metrics-six .metric-card .trend { margin-top: var(--ds-space-8); min-height: 72px; }
.crm-metrics-six .metric-card .trend > span { display: block; min-height: 18px; font-size: var(--ds-font-size-11); }
.crm-metric-purple { color: var(--visual-palette-7747c5); }
.crm-metric-blue { color: var(--visual-palette-2879d5); }
.crm-metric-orange { color: var(--visual-palette-bd7420); }
.crm-metric-pink { color: var(--visual-palette-d6386f); }
.crm-metric-card .metric-icon { color: currentColor; }
.crm-metric-card small, .crm-metric-card strong { color: var(--ink); }
.crm-metric-card .trend { color: var(--green-2); }
.crm-metric-purple .trend, .crm-metric-purple .crm-sparkline { color: var(--visual-palette-7747c5); }
.crm-metric-blue .trend, .crm-metric-blue .crm-sparkline { color: var(--visual-palette-2879d5); }
.crm-metric-orange .trend { color: var(--visual-palette-8f6200); }
.crm-metric-orange .crm-sparkline { color: var(--visual-palette-bd7420); }
.crm-metric-pink .trend, .crm-metric-pink .crm-sparkline { color: var(--visual-palette-d6386f); }
.crm-panel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ds-space-16); }
.crm-overview-primary-grid { display: grid; grid-template-columns: minmax(310px, .78fr) minmax(520px, 1.72fr); gap: var(--ds-space-16); }
.crm-overview-analytics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ds-space-16); margin-top: var(--ds-space-16); }
.crm-overview-analytics-grid .panel { min-height: 270px; }
.crm-bottom-insights { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ds-space-16); }
.crm-relationship-grid { grid-template-columns: minmax(0, 1.4fr) minmax(260px, .85fr) minmax(280px, 1fr); }
.crm-contact-metric { appearance: none; width: 100%; text-align: left; font: inherit; color: inherit; }
.crm-contact-metric .trend { display: grid; gap: var(--ds-space-4); margin-top: var(--ds-space-8); }
.crm-contact-metric .trend b { width: max-content; max-width: 100%; padding: var(--ds-space-4) var(--ds-space-8); border-radius: var(--ds-radius-16); font-size: var(--ds-font-size-11); font-weight: 700; }
.crm-recovery-count { color: var(--visual-palette-b44646); background: var(--visual-palette-fce9e7); }
.crm-prevention-count { color: var(--visual-palette-a06b11); background: var(--visual-palette-fff2d6); }
.crm-panel-intro { margin: 0; padding: var(--ds-space-12) var(--ds-space-20) var(--ds-space-16); color: var(--muted); font-size: var(--ds-font-size-11); line-height: 1.45; }
.crm-contact-groups { display: grid; gap: var(--ds-space-12); padding: 0 var(--ds-space-20) var(--ds-space-20); }
.crm-contact-group { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-12); min-height: 88px; padding: var(--ds-space-16); border: 1px solid var(--line); border-left: 3px solid var(--visual-palette-e5a33a); border-radius: var(--ds-radius-12); background: var(--visual-color-surface); }
.crm-contact-group-recover { border-left-color: var(--visual-palette-d95d58); }
.crm-contact-group-copy { display: flex; align-items: center; gap: var(--ds-space-12); min-width: 0; }
.crm-contact-group-copy > i { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: var(--ds-radius-12); color: var(--visual-palette-a06b11); background: var(--visual-palette-fff2d6); font-style: normal; }
.crm-contact-group-recover .crm-contact-group-copy > i { color: var(--visual-palette-b44646); background: var(--visual-palette-fce9e7); }
.crm-contact-group-copy strong, .crm-contact-group-copy span { display: block; }
.crm-contact-group-copy strong { font-size: var(--ds-font-size-12); }
.crm-contact-group-copy strong b { margin-left: var(--ds-space-4); color: var(--visual-palette-a06b11); font-size: var(--ds-font-size-11); }
.crm-contact-group-recover .crm-contact-group-copy strong b { color: var(--visual-palette-b44646); }
.crm-contact-group-copy span { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); line-height: 1.35; }
.crm-contact-actions { display: grid; flex: 0 0 auto; justify-items: end; gap: var(--ds-space-8); }
.crm-contact-pet-stack { display: flex; align-items: center; justify-content: flex-end; min-height: 28px; padding-left: var(--ds-space-12); }
.crm-contact-pet { width: 29px; height: 29px; margin-left: -8px; border: 2px solid var(--visual-color-surface); border-radius: 50%; font-size: var(--ds-font-size-11); box-shadow: 0 1px 3px rgba(22, 45, 35, .12); }
.crm-contact-pet:first-child { margin-left: 0; }
.crm-contact-pet-stack > b { display: grid; width: 29px; height: 29px; margin-left: -8px; place-items: center; border: 2px solid var(--visual-color-surface); border-radius: 50%; color: var(--ink); background: var(--visual-palette-edf1ef); font-size: var(--ds-font-size-11); box-shadow: 0 1px 3px rgba(22, 45, 35, .1); }
.crm-contact-group .button { flex: 0 0 auto; min-height: 34px; padding: var(--ds-space-8) var(--ds-space-12); font-size: var(--ds-font-size-11); }
.crm-growth { display: grid; gap: var(--ds-space-12); padding: var(--ds-space-20); }
.crm-growth > div:first-child small, .crm-growth > div:first-child strong { display: block; }
.crm-growth > div:first-child small { color: var(--muted); font-size: var(--ds-font-size-11); }
.crm-growth > div:first-child strong { margin-top: var(--ds-space-4); font: 700 var(--ds-font-size-28) "Montserrat"; }
.crm-growth-chart { display: block; width: 100%; height: 158px; overflow: visible; }
.crm-growth-chart-dual { height: 210px; }
.crm-growth-grid { stroke: var(--visual-palette-edf0ec); stroke-width: 1; }
.crm-growth-line-clients { stroke: var(--visual-palette-16704d); }
.crm-growth-line-pets { stroke: var(--visual-palette-4189e8); }
.crm-growth-point-clients { fill: var(--visual-palette-16704d); }
.crm-growth-point-pets { fill: var(--visual-palette-4189e8); }
.crm-growth-point-clients-label, .crm-growth-point-pets-label { font: 700 var(--ds-font-size-11) "Montserrat"; }
.crm-growth-point-clients-label { fill: var(--visual-palette-16704d); }
.crm-growth-point-pets-label { fill: var(--visual-palette-4189e8); }
.crm-growth-wide { padding-bottom: var(--ds-space-20); }
.crm-growth-panel .panel-header { align-items: center; }
.crm-chart-legend { display: inline-flex; align-items: center; gap: var(--ds-space-8); color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 700; }
.crm-chart-legend i { width: 10px; height: 4px; margin-left: var(--ds-space-8); border-radius: var(--ds-radius-16); background: var(--visual-palette-16704d); }
.crm-chart-legend i:nth-of-type(2) { background: var(--visual-palette-4189e8); }
.crm-growth-area { fill: var(--visual-palette-dceee5); opacity: .82; }
.crm-growth-line { fill: none; stroke: var(--visual-palette-146044); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.crm-growth-point { fill: var(--visual-palette-146044); stroke: var(--visual-color-surface); stroke-width: 2; }
.crm-growth-value { fill: var(--visual-palette-1e2d28); font: 700 var(--ds-font-size-11) "Montserrat"; }
.crm-growth-label { fill: var(--muted); font: 600 var(--ds-font-size-11) "Montserrat"; text-transform: capitalize; }
.crm-growth-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ds-space-8); }
.crm-growth-stats span { min-width: 0; padding: var(--ds-space-12); border: 1px solid var(--line); border-radius: var(--ds-radius-8); background: var(--visual-color-surface); color: var(--muted); font-size: var(--ds-font-size-11); line-height: 1.25; }
.crm-growth-stats small, .crm-growth-stats em { display: block; color: var(--muted); font-size: var(--ds-font-size-11); font-style: normal; }
.crm-growth-stats b { display: block; margin: var(--ds-space-4) 0 var(--ds-space-4); color: var(--green); font-size: var(--ds-font-size-16); }
.crm-growth-stats .crm-growth-loss b { color: var(--visual-palette-c45151); }
.crm-relationship-filters { display: flex; flex-wrap: wrap; gap: var(--ds-space-8); }
.crm-relationship-filters button { min-height: 30px; padding: var(--ds-space-4) var(--ds-space-8); border: 1px solid var(--line); border-radius: var(--ds-radius-8); background: var(--visual-color-surface); color: var(--muted); font: 700 var(--ds-font-size-11) "Montserrat"; cursor: pointer; }
.crm-relationship-filters button.active { border-color: var(--visual-palette-bdd9ca); color: var(--green); background: var(--visual-palette-edf7f0); }
.relationship-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ds-space-16); margin-bottom: var(--ds-space-20); }
.relationship-summary-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--ds-space-12); min-height: 178px; padding: var(--ds-space-20); border: 1px solid var(--line); border-radius: var(--ds-radius-16); color: var(--ink); background: var(--visual-color-surface); text-align: left; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.relationship-summary-card:hover, .relationship-summary-card.active { box-shadow: 0 8px 24px rgba(23, 79, 61, .08); transform: translateY(-1px); }
.relationship-summary-card > i { width: 46px; height: 46px; display: grid; place-items: center; border-radius: var(--ds-radius-12); font-style: normal; }
.relationship-summary-card > i .ui-icon { width: 22px; height: 22px; }
.relationship-summary-card > span small, .relationship-summary-card > span strong, .relationship-summary-card > span em { display: block; }
.relationship-summary-card > span small { color: var(--visual-palette-4e5d55); font: 700 var(--ds-font-size-12) "Montserrat"; }
.relationship-summary-card > span strong { margin-top: var(--ds-space-4); font: 700 var(--ds-font-size-28)/1 "Montserrat"; }
.relationship-summary-card > span em { margin-top: var(--ds-space-8); color: var(--muted); font-size: var(--ds-font-size-11); font-style: normal; }
.relationship-summary-card > p { grid-column: 1 / -1; min-height: 38px; margin: 0; padding: var(--ds-space-12); border-radius: var(--ds-radius-8); font-size: var(--ds-font-size-11); line-height: 1.35; }
.relationship-summary-card > b { grid-column: 1 / -1; font-size: var(--ds-font-size-11); }
.relationship-summary-recover { border-color: var(--visual-palette-f1d7d3); }
.relationship-summary-recover > i { color: var(--visual-palette-b44646); background: var(--visual-palette-fce9e7); }
.relationship-summary-recover > p { color: var(--visual-palette-a74c49); background: var(--visual-palette-fff4f2); }
.relationship-summary-prevent { border-color: var(--visual-palette-f1dfbc); }
.relationship-summary-prevent > i { color: var(--visual-palette-a06b11); background: var(--visual-palette-fff2d6); }
.relationship-summary-prevent > p { color: var(--visual-palette-94631a); background: var(--visual-palette-fff9ed); }
.relationship-summary-scheduled { border-color: var(--visual-palette-cde5d8); }
.relationship-summary-scheduled > i { color: var(--visual-palette-26705a); background: var(--visual-palette-e5f4ea); }
.relationship-summary-scheduled > p { color: var(--visual-palette-39735a); background: var(--visual-palette-f0faf3); }
.relationship-list-panel { overflow: hidden; }
.relationship-list-header { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-16); padding: var(--ds-space-12) var(--ds-space-16) 0; border-bottom: 1px solid var(--line); }
.relationship-tabs { display: flex; align-self: stretch; gap: var(--ds-space-4); }
.relationship-tabs button { position: relative; padding: 0 var(--ds-space-8) var(--ds-space-12); border: 0; color: var(--muted); background: transparent; font: 700 var(--ds-font-size-11) "Montserrat"; cursor: pointer; white-space: nowrap; }
.relationship-tabs button.active { color: var(--green); }
.relationship-tabs button.active::after { content: ""; position: absolute; right: 9px; bottom: -1px; left: 9px; height: 2px; border-radius: var(--ds-radius-16); background: var(--green); }
.relationship-tabs span { color: inherit; font-size: var(--ds-font-size-11); }
.relationship-toolbar { display: flex; align-items: center; gap: var(--ds-space-8); padding-bottom: var(--ds-space-12); }
.relationship-search { display: flex; align-items: center; gap: var(--ds-space-8); width: 190px; min-height: 36px; padding: 0 var(--ds-space-12); border: 1px solid var(--line); border-radius: var(--ds-radius-8); color: var(--green); background: var(--visual-color-surface); }
.relationship-search .ui-icon { width: 15px; height: 15px; }
.relationship-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; font-size: var(--ds-font-size-11); }
.relationship-toolbar .button { min-height: 36px; padding: var(--ds-space-8) var(--ds-space-12); font-size: var(--ds-font-size-11); }
.relationship-filter-panel, .segment-filter-panel { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)) auto; align-items: end; gap: var(--ds-space-12); padding: var(--ds-space-16); border-bottom: 1px solid var(--line); background: var(--content-subtle); }
.relationship-filter-panel label, .segment-filter-panel label { display: grid; gap: var(--ds-space-8); min-width: 0; color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 700; }
.relationship-filter-panel select, .segment-filter-panel select { min-height: 42px; }
.relationship-order { display: flex; align-items: center; gap: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 700; white-space: nowrap; }
.relationship-order select { min-height: 36px; padding: var(--ds-space-8) var(--ds-space-24) var(--ds-space-8) var(--ds-space-8); font-size: var(--ds-font-size-11); }
.relationship-table { min-width: 1010px; }
.relationship-table td { vertical-align: middle; }
.relationship-table td small { display: block; margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); }
.relationship-client { display: flex; align-items: center; gap: var(--ds-space-12); }
.relationship-client .pet-avatar { width: 38px; height: 38px; border-radius: var(--ds-radius-12); }
.relationship-client strong, .relationship-client small { display: block; }
.relationship-client strong { font-size: var(--ds-font-size-12); }
.relationship-badge { display: inline-flex; align-items: center; min-height: 23px; padding: var(--ds-space-4) var(--ds-space-8); border-radius: var(--ds-radius-16); font-size: var(--ds-font-size-11); font-weight: 700; white-space: nowrap; }
.relationship-badge-recover { color: var(--visual-palette-b44646); background: var(--visual-palette-fce9e7); }
.relationship-badge-prevent { color: var(--visual-palette-8f6200); background: var(--visual-palette-fff2d6); }
.relationship-badge-scheduled { color: var(--visual-palette-26705a); background: var(--visual-palette-e5f4ea); }
.relationship-time { font-size: var(--ds-font-size-11); white-space: nowrap; }
.relationship-time-recover { color: var(--visual-palette-c04c4c); }
.relationship-time-prevent { color: var(--visual-palette-a06b11); }
.relationship-time-scheduled { color: var(--visual-palette-26705a); }
.relationship-actions { display: flex; gap: var(--ds-space-4); }
.relationship-actions .icon-button { width: 31px; height: 31px; border: 1px solid var(--line); border-radius: var(--ds-radius-8); background: var(--visual-color-surface); }
.relationship-actions .whatsapp-icon { width: 15px; height: 15px; }
.segment-info { display: flex; align-items: center; gap: var(--ds-space-12); margin-bottom: var(--ds-space-20); padding: var(--ds-space-16) var(--ds-space-20); border: 1px solid var(--visual-palette-d7e7db); border-radius: var(--ds-radius-12); background: var(--visual-palette-f5faf6); }
.segment-info > i { width: 40px; height: 40px; display: grid; flex: 0 0 40px; place-items: center; border-radius: var(--ds-radius-12); color: var(--green); background: var(--visual-palette-e1f1e6); font-style: normal; }
.segment-info > i .ui-icon { width: 21px; height: 21px; }
.segment-info strong, .segment-info span { display: block; }
.segment-info strong { font-size: var(--ds-font-size-12); }
.segment-info span { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); }
.segment-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ds-space-16); margin-bottom: var(--ds-space-20); }
.segment-metrics article { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: var(--ds-space-12); min-height: 124px; padding: var(--ds-space-20); border: 1px solid var(--line); border-radius: var(--ds-radius-16); background: var(--visual-color-surface); }
.segment-metrics article > i { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--ds-radius-12); color: var(--green); background: var(--visual-palette-e7f4eb); font-style: normal; }
.segment-metrics article > i .ui-icon { width: 23px; height: 23px; }
.segment-metrics small, .segment-metrics strong, .segment-metrics em { display: block; }
.segment-metrics small { color: var(--visual-palette-4d5b54); font: 700 var(--ds-font-size-11) "Montserrat"; }
.segment-metrics strong { margin-top: var(--ds-space-8); font: 700 var(--ds-font-size-28)/1 "Montserrat"; }
.segment-metrics em { margin-top: var(--ds-space-12); color: var(--muted); font-size: var(--ds-font-size-11); font-style: normal; }
.segment-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: var(--ds-space-16); }
.segment-list-panel { overflow: hidden; }
.segment-list-header { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-16); padding: var(--ds-space-16) var(--ds-space-16); border-bottom: 1px solid var(--line); }
.segment-list-header > strong { font: 700 var(--ds-font-size-16) "Montserrat"; }
.segment-list-header > div { display: flex; align-items: center; gap: var(--ds-space-8); }
.segment-list-header .button { min-height: 36px; padding: var(--ds-space-8) var(--ds-space-12); font-size: var(--ds-font-size-11); }
.segment-table { min-width: 890px; }
.segment-table td { vertical-align: middle; }
.segment-name { display: flex; align-items: center; gap: var(--ds-space-12); }
.segment-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--ds-radius-12); color: var(--visual-palette-9b6d19); background: var(--visual-palette-fff1c9); font-style: normal; }
.segment-icon .ui-icon { width: 18px; height: 18px; }
.segment-icon-paw { color: var(--visual-palette-2673a1); background: var(--visual-palette-e5f1ff); }
.segment-icon-calendarDays { color: var(--visual-palette-b56624); background: var(--visual-palette-fff0df); }
.segment-icon-navigation { color: var(--visual-palette-315d78); background: var(--visual-palette-e6f0f5); }
.segment-icon-gift { color: var(--visual-palette-b75263); background: var(--visual-palette-fdecef); }
.segment-icon-message { color: var(--visual-palette-5754b8); background: var(--visual-palette-eeecff); }
.segment-icon-users { color: var(--visual-palette-21806a); background: var(--visual-palette-e3f5ef); }
.segment-icon-star { color: var(--visual-palette-aa7809); background: var(--visual-palette-fff4cf); }
.segment-name strong, .segment-name small { display: block; }
.segment-name strong { font-size: var(--ds-font-size-12); }
.segment-name small { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); }
.segment-audience { display: inline-flex; padding: var(--ds-space-4) var(--ds-space-8); border-radius: var(--ds-radius-8); color: var(--visual-palette-26705a); background: var(--visual-palette-e7f4eb); font-size: var(--ds-font-size-11); font-weight: 700; }
.segment-audience-pets { color: var(--visual-palette-286da1); background: var(--visual-palette-e5f1ff); }
.segment-criteria { display: block; max-width: 240px; font-size: var(--ds-font-size-11); line-height: 1.35; }
.segment-update { display: grid; grid-template-columns: 7px auto; column-gap: var(--ds-space-8); align-items: center; color: var(--visual-palette-26705a); font-size: var(--ds-font-size-11); font-weight: 700; }
.segment-update > i { width: 6px; height: 6px; border-radius: 50%; background: var(--visual-palette-27a26c); }
.segment-update small { grid-column: 2; margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 500; }
.segment-actions { display: flex; gap: var(--ds-space-4); }
.segment-actions .icon-button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: var(--ds-radius-8); background: var(--visual-color-surface); }
.segment-guide { padding: var(--ds-space-20); border: 1px solid var(--visual-palette-d9e4dd); border-radius: var(--ds-radius-16); background: var(--visual-palette-f8faf8); }
.segment-guide > i { display: grid; width: 32px; height: 32px; place-items: center; border-radius: var(--ds-radius-8); color: var(--visual-palette-9b6d19); background: var(--visual-palette-fff1c9); font-style: normal; }
.segment-guide > i .ui-icon { width: 17px; height: 17px; }
.segment-guide h2 { margin: var(--ds-space-12) 0 var(--ds-space-16); font: 700 var(--ds-font-size-13) "Montserrat"; }
.segment-guide > div { padding: var(--ds-space-12) 0; border-top: 1px solid var(--visual-palette-e1e8e3); }
.segment-guide strong, .segment-guide span { display: block; }
.segment-guide strong { font-size: var(--ds-font-size-11); }
.segment-guide span { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); line-height: 1.45; }
.segment-preview { padding: var(--ds-space-16); border: 1px solid var(--visual-palette-cde5d8); border-radius: var(--ds-radius-12); background: var(--visual-palette-f2faf5); }
.segment-preview strong, .segment-preview span { display: block; }
.segment-preview strong { color: var(--green); font-size: var(--ds-font-size-12); }
.segment-preview span { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); }
.segment-builder { gap: var(--ds-space-20); }
.segment-builder-label { display: block; margin-bottom: var(--ds-space-8); color: var(--visual-palette-3d4a43); font-size: var(--ds-font-size-12); }
.segment-builder-heading { display: flex; align-items: baseline; justify-content: space-between; gap: var(--ds-space-12); }
.segment-builder-heading small { color: var(--muted); font-size: var(--ds-font-size-11); }
.segment-choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--ds-space-12); }
.segment-choice { display: flex; align-items: center; gap: var(--ds-space-12); min-height: 70px; padding: var(--ds-space-12); border: 1px solid var(--line); border-radius: var(--ds-radius-12); color: var(--visual-palette-516058); background: var(--visual-color-surface); text-align: left; cursor: pointer; }
.segment-choice:hover, .segment-choice.selected { border-color: var(--visual-palette-2b8967); color: var(--visual-palette-17634d); background: var(--visual-palette-f0faf5); }
.segment-choice > .ui-icon { width: 22px; height: 22px; }
.segment-choice strong, .segment-choice small { display: block; }
.segment-choice strong { font-size: var(--ds-font-size-12); }
.segment-choice small { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); }
.segment-rule-grid { display: grid; grid-template-columns: repeat(2, 1fr); max-height: 208px; gap: var(--ds-space-8); overflow-y: auto; padding-right: var(--ds-space-4); scrollbar-gutter: stable; }
.segment-rule-grid::-webkit-scrollbar { width: 7px; }
.segment-rule-grid::-webkit-scrollbar-thumb { border-radius: var(--ds-radius-16); background: var(--visual-palette-bfd0c4); }
.segment-rule-option { display: flex; align-items: center; gap: var(--ds-space-8); min-height: 44px; padding: var(--ds-space-12); border: 1px solid var(--line); border-radius: var(--ds-radius-8); color: var(--visual-palette-435149); background: var(--visual-color-surface); font-size: var(--ds-font-size-11); font-weight: 700; text-align: left; cursor: pointer; }
.segment-rule-option:hover, .segment-rule-option.selected { border-color: var(--visual-palette-2b8967); color: var(--visual-palette-17634d); background: var(--visual-palette-f0faf5); }
.segment-rule-option i { display: grid; width: 17px; height: 17px; flex: 0 0 17px; place-items: center; border: 1px solid var(--visual-palette-b8c8be); border-radius: 50%; color: transparent; font-style: normal; }
.segment-rule-option.selected i { border-color: var(--visual-palette-20805e); color: var(--visual-color-surface); background: var(--visual-palette-20805e); }
.segment-rule-option i .ui-icon { width: 11px; height: 11px; }
.segment-relation { padding: var(--ds-space-12); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--visual-palette-fafbf9); }
.segment-relation > strong { display: block; margin-bottom: var(--ds-space-8); font-size: var(--ds-font-size-12); }
.segment-relation > div { display: flex; gap: var(--ds-space-8); }
.segment-relation button { flex: 1; padding: var(--ds-space-12); border: 1px solid var(--line); border-radius: var(--ds-radius-8); color: var(--visual-palette-59665f); background: var(--visual-color-surface); font-weight: 700; cursor: pointer; }
.segment-relation button.active { border-color: var(--visual-palette-2b8967); color: var(--visual-palette-17634d); background: var(--visual-palette-eaf7ef); }
.segment-relation button small { margin-left: var(--ds-space-4); font-size: var(--ds-font-size-11); font-weight: 500; }
.crm-contact-label { display: inline-flex; align-items: center; min-height: 22px; padding: var(--ds-space-4) var(--ds-space-8); border-radius: var(--ds-radius-16); font-size: var(--ds-font-size-11); font-weight: 700; }
.crm-contact-label-recover { color: var(--visual-palette-b44646); background: var(--visual-palette-fce9e7); }
.crm-contact-label-prevent { color: var(--visual-palette-8f6200); background: var(--visual-palette-fff2d6); }
.crm-panel { min-width: 0; overflow: hidden; }
.crm-panel .panel-header { padding: var(--ds-space-16) var(--ds-space-20); }
.crm-panel .panel-header h2 { font-size: var(--ds-font-size-14); }
.crm-list { display: grid; padding: var(--ds-space-4) var(--ds-space-20) var(--ds-space-12); }
.crm-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto; align-items: center; gap: var(--ds-space-12); min-height: 64px; padding: var(--ds-space-12) 0; border-bottom: 1px solid var(--visual-palette-eef0ec); }
.crm-row:last-child { border-bottom: 0; }
.crm-row .pet-avatar { width: 38px; height: 38px; border-radius: var(--ds-radius-12); }
.crm-row > div:not(.crm-row-actions) { min-width: 0; }
.crm-row strong, .crm-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-row strong { font: 700 var(--ds-font-size-12) "Montserrat"; }
.crm-row small { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); }
.crm-row > b { max-width: 94px; color: var(--visual-palette-a3692d); font-size: var(--ds-font-size-11); line-height: 1.25; text-align: right; }
.crm-row-actions { display: flex; gap: var(--ds-space-4); }
.crm-row .icon-button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: var(--ds-radius-8); background: var(--visual-color-surface); }
.crm-row .whatsapp-icon { width: 15px; height: 15px; }
.crm-contact-client-list { display: grid; padding: var(--ds-space-4) var(--ds-space-20) var(--ds-space-20); }
.crm-contact-client { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto; align-items: center; gap: var(--ds-space-12); min-height: 66px; padding: var(--ds-space-12) 0; border-bottom: 1px solid var(--visual-palette-edf0ec); }
.crm-contact-client:last-child { border-bottom: 0; }
.crm-contact-client .avatar { width: 38px; height: 38px; display: grid; place-items: center; box-sizing: border-box; overflow: hidden; border-radius: var(--ds-radius-12); background: var(--mint); color: var(--green); font-size: var(--ds-font-size-11); font-weight: 700; line-height: 1; }
.crm-contact-client > div { min-width: 0; }
.crm-contact-client strong, .crm-contact-client small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-contact-client strong { font: 700 var(--ds-font-size-12) "Montserrat"; }
.crm-contact-client small { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); }
.crm-contact-client > b { font-size: var(--ds-font-size-11); }
.crm-ranking-list, .crm-species { display: grid; gap: var(--ds-space-16); padding: var(--ds-space-20); }
.crm-ranking { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(60px, 1.25fr) 26px; align-items: center; gap: var(--ds-space-12); font-size: var(--ds-font-size-11); }
.crm-ranking > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-ranking > i { display: block; height: 8px; overflow: hidden; border-radius: var(--ds-radius-16); background: var(--visual-palette-edf1ed); }
.crm-ranking > i > b { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.crm-ranking > strong { text-align: right; font-size: var(--ds-font-size-11); }
.crm-species-chart { display: grid; grid-template-columns: minmax(124px, .85fr) minmax(0, 1.15fr); align-items: center; gap: var(--ds-space-20); min-height: 150px; }
.crm-species-pie { position: relative; width: min(148px, 100%); aspect-ratio: 1; justify-self: center; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(18, 69, 53, .06); }
.crm-species-pie::after { content: ""; position: absolute; inset: 26%; border-radius: inherit; background: var(--surface); }
.crm-species-pie > span { position: absolute; z-index: 1; inset: 0; display: grid; place-content: center; text-align: center; }
.crm-species-pie strong { font: 700 var(--ds-font-size-22) "Montserrat"; color: var(--ink); line-height: 1; }
.crm-species-pie small { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 700; text-transform: uppercase; }
.crm-species-legend { display: grid; gap: var(--ds-space-16); min-width: 0; }
.crm-species-row { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-12); font-size: var(--ds-font-size-12); }
.crm-species-row span { display: inline-flex; align-items: center; gap: var(--ds-space-8); }
.crm-species-row i { flex: 0 0 10px; width: 10px; height: 10px; border-radius: var(--ds-radius-16); background: var(--green); }
.crm-size-bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: var(--ds-space-12); min-height: 194px; padding: var(--ds-space-24) var(--ds-space-20) var(--ds-space-20); }
.crm-size-bars > div { display: grid; grid-template-rows: 132px auto auto; align-items: end; gap: var(--ds-space-8); text-align: center; }
.crm-size-bars b { display: block; width: min(38px, 76%); min-height: 6px; justify-self: center; border-radius: var(--ds-radius-8) var(--ds-radius-8) var(--ds-radius-8) var(--ds-radius-8); background: linear-gradient(180deg, var(--visual-palette-4ba779), var(--visual-palette-16704d)); }
.crm-size-bars strong { color: var(--ink); font-size: var(--ds-font-size-12); }
.crm-size-bars span { color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 700; }
.crm-insight-panel { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: var(--ds-space-16); margin-top: var(--ds-space-20); padding: var(--ds-space-20) var(--ds-space-20); border: 1px solid var(--visual-palette-cce1d3); border-radius: var(--radius); background: var(--visual-palette-f0f8f2); }
.crm-insight-panel > i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--ds-radius-12); color: var(--green); background: var(--visual-palette-e0f0e5); font-style: normal; }
.crm-insight-panel > div { min-width: 0; }
.crm-insight-panel strong, .crm-insight-panel span { display: block; }
.crm-insight-panel span { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-12); }
.crm-bottom-insights .crm-insight-panel { margin-top: var(--ds-space-12); border-color: var(--visual-palette-cde5d8); background: var(--visual-palette-f0faf3); }
.crm-bottom-insights .crm-insight-panel > i { background: var(--visual-palette-e5f4ea); }
.crm-bottom-insights .crm-campaign-panel { border-color: var(--visual-palette-cde5d8); background: var(--visual-palette-f0faf3); }
.crm-bottom-insights .crm-campaign-panel > i { color: var(--green); background: var(--visual-palette-e5f4ea); }
.crm-campaign-panel { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: var(--ds-space-16); margin-top: var(--ds-space-12); padding: var(--ds-space-20) var(--ds-space-20); border: 1px solid var(--visual-palette-e6d4a1); border-radius: var(--radius); background: var(--visual-palette-fffaf0); }
.crm-campaign-panel > i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--ds-radius-12); color: var(--visual-palette-9a7421); background: var(--visual-palette-fff0cb); font-style: normal; }
.crm-campaign-panel strong, .crm-campaign-panel span { display: block; }
.crm-campaign-panel span { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-12); }
.crm-section-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.crm-sparkline { display: block; width: 100%; height: 34px; margin-top: var(--ds-space-8); overflow: visible; color: var(--green); }
.crm-sparkline-area { fill: color-mix(in srgb, currentColor 14%, transparent); }
.crm-sparkline-line { fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.crm-sparkline-point { fill: var(--visual-color-surface); stroke: currentColor; stroke-width: 2; }
.crm-positive { color: var(--visual-palette-197452); }
.crm-negative { color: var(--visual-palette-b44646); }
.module-breadcrumb { display: flex; align-items: center; gap: var(--ds-space-8); margin: 0 0 var(--ds-space-16); color: var(--muted); font-size: var(--ds-font-size-12); font-weight: 700; }
.module-breadcrumb a { color: inherit; text-decoration: none; }
.module-breadcrumb a:hover { color: var(--green); }
.module-breadcrumb svg { width: 14px; height: 14px; }
.module-breadcrumb strong { color: var(--ink); }
.client-list-controls { display: grid; grid-template-columns: minmax(270px, 1fr) minmax(170px, .35fr) auto; align-items: end; gap: var(--ds-space-12); margin: var(--ds-space-20) 0; }
.service-list-controls { display: grid; grid-template-columns: minmax(360px, 1.7fr) minmax(210px, .65fr) auto; align-items: end; gap: var(--ds-space-16); margin: var(--ds-space-20) 0; }
.service-order-field { display: grid; gap: var(--ds-space-8); color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 700; }
.service-order-field select { min-height: 46px; }
.service-list-controls { align-items: center; }
:is(.service-list-controls, .crm-list-controls) :is(.client-search-field, .service-order-field, .client-advanced-filter) {
  min-width: 0; min-height: 40px; height: 40px; font-size: var(--ds-font-size-13); font-weight: 400;
}
:is(.service-list-controls, .crm-list-controls) .client-search-field input {
  height: 38px; font-size: var(--ds-font-size-13); font-weight: 400;
}
:is(.service-list-controls, .crm-list-controls) .service-order-field {
  display: flex; align-items: center; gap: var(--ds-space-8); padding: 0 var(--ds-space-12);
  border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--visual-color-surface);
}
:is(.service-list-controls, .crm-list-controls) .service-order-field > span { flex: none; }
:is(.service-list-controls, .crm-list-controls) .service-order-field select {
  min-width: 0; min-height: 0; height: 38px; padding: 0 var(--ds-space-20) 0 0;
  border: 0; background-color: transparent; box-shadow: none; font-size: inherit; font-weight: inherit;
}
:is(.service-list-controls, .crm-list-controls) .client-advanced-filter {
  padding-block: 0; font-size: var(--ds-font-size-13) !important; font-weight: 400 !important;
}
.catalog-action-menu { position: relative; }
.heading-actions .catalog-action-menu > summary { display: grid; place-items: center; min-width: 0; list-style: none; cursor: pointer; }
.catalog-action-menu > summary::-webkit-details-marker { display: none; }
.catalog-action-menu:not([open]) > div { display: none; }
.catalog-action-menu > div {
  position: absolute; z-index: 15; inset: calc(100% + 6px) 0 auto auto; width: max-content;
  padding: var(--ds-space-8); border: 1px solid var(--line); border-radius: var(--ds-radius-12);
  background: var(--visual-color-surface); box-shadow: var(--shadow);
}
.heading-actions .catalog-action-menu > div > .button { white-space: nowrap; }
.catalog-empty-list > .button { margin-top: var(--ds-space-12); }
.catalog-applied-filter {
  align-self: center; width: fit-content; padding: var(--ds-space-4) var(--ds-space-8);
  border-radius: var(--ds-radius-8); background: var(--ds-servico-surface); color: var(--ds-servico-ink);
  font-size: var(--ds-font-size-12);
}
.service-filter-panel { display: grid; grid-template-columns: minmax(125px, .75fr) minmax(150px, 1fr) minmax(270px, 1.65fr) minmax(140px, .9fr) minmax(120px, .7fr) auto; align-items: end; gap: var(--ds-space-12); margin: -6px 0 var(--ds-space-20); padding: var(--ds-space-16); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--content-subtle); }
.service-filter-panel > label { display: grid; gap: var(--ds-space-8); min-width: 0; color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 700; }
.service-filter-panel select, .service-filter-panel input { min-height: 42px; }
.service-filter-panel select { width: 100%; min-width: 0; }
@media (min-width: 821px) and (max-width: 1199px) {
  .service-filter-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.65fr); }
}
.service-price-filter { min-width: 0; display: grid; grid-template-columns: minmax(90px, 1fr) auto minmax(90px, 1fr); align-items: center; gap: var(--ds-space-8); margin: 0; padding: 0; border: 0; }
.service-price-filter legend { margin-bottom: var(--ds-space-8); padding: 0; color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 700; }
.service-price-filter span { color: var(--muted); font-size: var(--ds-font-size-11); }
.service-list-panel { overflow: hidden; }
.service-list-table { min-width: 900px; }
.service-list-table td { vertical-align: middle; }
.service-list-table td:nth-child(3), .service-list-table td:nth-child(5) { white-space: nowrap; }
.service-primary-cell { min-width: 215px; }
.service-primary-cell > div { min-width: 0; }
.service-primary-cell small { max-width: 390px; margin-top: var(--ds-space-4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--ds-font-size-11); }
.service-avatar { border-radius: var(--ds-radius-12); }
.service-avatar.inactive { color: var(--danger); background: var(--visual-palette-f9e5e3); }
.service-list-table [data-service-row] { cursor: pointer; }
.service-list-table [data-service-row]:hover { background: var(--content-subtle); }
.service-list-table .service-avatar { color: var(--ds-servico-ink); background: var(--ds-servico-surface); }
.service-list-table [data-service-status="inactive"] > td { color: var(--visual-color-muted); }
.service-list-table [data-service-status="inactive"] .service-avatar { opacity: .65; }
.service-list-table .service-primary-cell small { font-size: var(--ds-font-size-12); }
.service-form-duration { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--ds-space-8); }
.service-form-price {
  display: flex; align-items: center; gap: var(--ds-space-8); padding-inline: var(--ds-space-12);
  border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--visual-color-surface);
}
.service-form-price input { min-width: 0; padding-inline: 0; border: 0; box-shadow: none; }
.service-form-price:focus-within { outline: 2px solid var(--brand-primary); }
.service-list-table th:last-child, .service-list-table td:last-child { text-align: right; }
.service-list-pagination { min-width: 0; }
.package-list-filter-panel { display: flex; align-items: end; gap: var(--ds-space-12); margin: -6px 0 var(--ds-space-20); padding: var(--ds-space-16); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--content-subtle); }
.package-list-filter-panel label { display: grid; gap: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 700; }
.package-list-filter-panel select { min-width: 170px; min-height: 40px; }
.package-list-table { min-width: 980px; }
.package-list-table td { vertical-align: middle; }
.package-list-table th:last-child, .package-list-table td:last-child { text-align: right; }
.package-list-avatar { color: var(--green); background: var(--green-soft); }
.package-list-services { display: flex; max-width: 420px; flex-wrap: wrap; gap: var(--ds-space-4); }
.package-list-services span { padding: var(--ds-space-4) var(--ds-space-8); border: 1px solid var(--visual-palette-dce9e0); border-radius: var(--ds-radius-8); color: var(--visual-palette-315b48); background: var(--visual-palette-f2f8f4); font-size: var(--ds-font-size-11); white-space: nowrap; }
.package-list-services span b { font-weight: 700; }
.package-list-services small { align-self: center; color: var(--muted); font-size: var(--ds-font-size-11); }
.package-list-hint { display: block; margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); white-space: nowrap; }
.subscription-list-avatar { color: var(--visual-palette-4f46a5); background: var(--visual-palette-eeecfb); }
.subscription-cycle-badge { display: inline-flex; padding: var(--ds-space-8) var(--ds-space-12); border: 1px solid var(--visual-palette-dedaf4); border-radius: var(--ds-radius-16); color: var(--visual-palette-51479a); background: var(--visual-palette-f4f2fc); font-size: var(--ds-font-size-11); font-weight: 700; }
.subscription-info-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(220px, .85fr); gap: var(--ds-space-20) var(--ds-space-24); }
.subscription-info-grid label { display: grid; align-content: start; gap: var(--ds-space-8); min-width: 0; font-size: var(--ds-font-size-12); font-weight: 700; }
.subscription-info-grid label > span:first-child { display: block; }
.subscription-info-grid label em { color: var(--muted); font-weight: 500; }
.subscription-info-grid input, .subscription-info-grid select, .subscription-info-grid .package-money-input { min-height: 48px; }
.subscription-form-header > i { color: var(--visual-palette-51479a); background: var(--visual-palette-f1effb); }
.catalog-period-field { display: grid; gap: var(--ds-space-4); min-width: 190px; color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 700; }
.catalog-period-field select { min-height: 42px; background: var(--visual-color-surface); }
.catalog-custom-period { display: flex; justify-content: flex-end; align-items: end; gap: var(--ds-space-12); margin: var(--ds-space-4) 0 var(--ds-space-16); padding: var(--ds-space-12); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--content-subtle); }
.catalog-custom-period label { display: grid; gap: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 700; }
.catalog-custom-period input { min-height: 40px; }
.catalog-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--ds-space-12); margin: var(--ds-space-20) 0 var(--ds-space-12); }
.catalog-kpis > .catalog-kpi-link { display: grid; min-height: 162px; align-content: start; padding: var(--ds-space-20); border: 1px solid var(--line); border-radius: var(--ds-radius-16); background: var(--visual-color-surface); box-shadow: 0 4px 15px rgba(29, 55, 42, .035); }
.catalog-kpis > .catalog-kpi-link > .ui-icon { width: var(--icon-badge-size); height: var(--icon-badge-size); margin-bottom: var(--ds-space-16); padding: var(--ds-space-8); border-radius: var(--icon-badge-radius); color: var(--green); background: var(--visual-palette-eef6f0); }
.catalog-kpis small { min-height: 30px; color: var(--visual-palette-3e4843); font-size: var(--ds-font-size-11); font-weight: 700; }
.catalog-kpis strong { margin: var(--ds-space-4) 0; color: var(--ink); font: 700 var(--ds-font-size-28) "Montserrat"; }
.catalog-kpis span { color: var(--green); font-size: var(--ds-font-size-11); font-weight: 700; }
.catalog-overview-note, .catalog-overview-footer-note { display: flex; align-items: center; gap: var(--ds-space-8); margin: 0 0 var(--ds-space-16); color: var(--muted); font-size: var(--ds-font-size-11); }
.catalog-overview-note .ui-icon, .catalog-overview-footer-note .ui-icon { width: 14px; height: 14px; }
.catalog-overview-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--ds-space-16); }
.catalog-overview-card { grid-column: span 2; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--ds-radius-16); background: var(--visual-color-surface); }
.catalog-overview-card > header { display: flex; min-height: 78px; align-items: flex-start; justify-content: space-between; gap: var(--ds-space-12); padding: var(--ds-space-16); border-bottom: 1px solid var(--line); }
.catalog-overview-card > header h2 { display: flex; align-items: center; gap: var(--ds-space-8); margin: 0 0 var(--ds-space-8); font-size: var(--ds-font-size-14); }
.catalog-overview-card > header h2 .ui-icon { width: 14px; height: 14px; color: var(--muted); }
.catalog-overview-card > header p { margin: 0; color: var(--muted); font-size: var(--ds-font-size-11); }
.catalog-overview-card > header .button { min-height: 34px; padding: var(--ds-space-8) var(--ds-space-12); flex: 0 0 auto; font-size: var(--ds-font-size-11); }
.catalog-table-scroll { overflow-x: hidden; }
.catalog-overview-card table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; font-size: var(--ds-font-size-11); }
.catalog-overview-card th, .catalog-overview-card td { padding: var(--ds-space-12) var(--ds-space-16); border-bottom: 1px solid var(--visual-palette-edf0ed); text-align: left; vertical-align: middle; }
.catalog-overview-card th { color: var(--muted); font-size: var(--ds-font-size-11); text-transform: none; }
.catalog-overview-card tfoot td { border-bottom: 0; font-weight: 700; }
.catalog-overview-card table:not(.catalog-package-usage):not(.catalog-capacity-usage) th:nth-child(1) { width: 46%; }
.catalog-overview-card table:not(.catalog-package-usage):not(.catalog-capacity-usage) th:nth-child(2) { width: 24%; }
.catalog-overview-card table:not(.catalog-package-usage):not(.catalog-capacity-usage) th:nth-child(3) { width: 30%; }
.catalog-service-name { display: inline-flex; align-items: center; gap: var(--ds-space-8); white-space: nowrap; }
.catalog-service-icon { display: inline-flex; width: 27px; height: 27px; align-items: center; justify-content: center; border-radius: var(--ds-radius-8); }
.catalog-service-icon .ui-icon { width: 15px; height: 15px; }
.catalog-service-icon.aqua { color: var(--visual-palette-087b79); background: var(--visual-palette-e4f7f5); }
.catalog-service-icon.blue { color: var(--visual-palette-2563c9); background: var(--visual-palette-e8f0ff); }
.catalog-service-icon.purple { color: var(--visual-palette-7a4bb4); background: var(--visual-palette-f1eaff); }
.catalog-service-icon.orange { color: var(--visual-palette-b75d13); background: var(--visual-palette-fff0df); }
.catalog-service-icon.pink { color: var(--visual-palette-b34b76); background: var(--visual-palette-fceaf1); }
.catalog-usage, .catalog-occupancy { display: flex; min-width: 0; align-items: center; gap: var(--ds-space-8); }
.catalog-progress { display: block; width: 70px; height: 7px; overflow: hidden; border-radius: var(--ds-radius-16); background: var(--visual-palette-edf1ee); }
.catalog-progress i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.catalog-progress.high i { background: var(--visual-palette-dc2626); }
.catalog-progress.medium i { background: var(--visual-palette-efb827); }
.catalog-progress.low i { background: var(--visual-palette-4e9a64); }
.catalog-usage b, .catalog-occupancy b { min-width: 28px; text-align: right; }
.catalog-package-usage { width: 100%; min-width: 0 !important; table-layout: fixed; }
.catalog-package-usage th, .catalog-package-usage td { padding-right: var(--ds-space-8); padding-left: var(--ds-space-8); overflow-wrap: anywhere; }
.catalog-package-usage th { white-space: normal; line-height: 1.3; }
.catalog-package-usage th:nth-child(1) { width: 25%; }
.catalog-package-usage th:nth-child(2) { width: 20%; }
.catalog-package-usage th:nth-child(3), .catalog-package-usage th:nth-child(4) { width: 27.5%; }
.catalog-package-usage td:not(:first-child), .catalog-package-usage th:not(:first-child) { text-align: center; }
.catalog-capacity-usage th:nth-child(1) { width: 36%; }
.catalog-capacity-usage th:nth-child(2) { width: 20%; }
.catalog-capacity-usage th:nth-child(3) { width: 19%; }
.catalog-capacity-usage th:nth-child(4) { width: 25%; }
.catalog-capacity-usage th, .catalog-capacity-usage td { padding-right: var(--ds-space-8); padding-left: var(--ds-space-8); overflow-wrap: anywhere; }
.catalog-capacity-usage th { line-height: 1.3; }
.catalog-empty-row { height: 96px; color: var(--muted); text-align: center !important; }
.catalog-occupancy-legend { display: flex; justify-content: center; gap: var(--ds-space-20); padding: var(--ds-space-12); color: var(--muted); font-size: var(--ds-font-size-11); }
.catalog-occupancy-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: var(--ds-space-8); border-radius: 50%; background: var(--visual-palette-4e9a64); }
.catalog-occupancy-legend .high::before { background: var(--visual-palette-dc2626); }
.catalog-occupancy-legend .medium::before { background: var(--visual-palette-efb827); }
.catalog-category-card { grid-column: span 2; }
.catalog-alerts-card { grid-column: span 4; }
.catalog-category-layout { display: grid; grid-template-columns: 185px minmax(0, 1fr); align-items: center; gap: var(--ds-space-20); padding: var(--ds-space-24); }
.catalog-category-donut { display: grid; width: 168px; aspect-ratio: 1; place-items: center; border-radius: 50%; background: conic-gradient(var(--catalog-donut)); }
.catalog-category-donut::before { content: ""; grid-area: 1 / 1; width: 83px; aspect-ratio: 1; border-radius: 50%; background: var(--visual-color-surface); }
.catalog-category-donut > span { z-index: 1; grid-area: 1 / 1; display: grid; text-align: center; }
.catalog-category-donut strong { font: 700 var(--ds-font-size-28) "Montserrat"; }
.catalog-category-donut small { color: var(--muted); font-size: var(--ds-font-size-11); line-height: 1.35; }
.catalog-category-legend { display: grid; gap: var(--ds-space-12); }
.catalog-category-legend > span { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto auto; align-items: center; gap: var(--ds-space-8); font-size: var(--ds-font-size-11); }
.catalog-category-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--category-color); }
.catalog-category-legend em { min-width: 30px; color: var(--muted); font-style: normal; text-align: right; }
.catalog-alerts { display: grid; gap: var(--ds-space-8); padding: var(--ds-space-16); }
.catalog-alerts > a { display: grid; grid-template-columns: 30px minmax(0, 1fr) 18px; align-items: center; gap: var(--ds-space-12); padding: var(--ds-space-12); border-radius: var(--ds-radius-12); color: var(--green); background: var(--visual-palette-f1f7f3); text-decoration: none; }
.catalog-alerts > a.yellow { color: var(--visual-palette-ad7d0b); background: var(--visual-palette-fcf7e9); }
.catalog-alerts > a.purple { color: var(--visual-palette-7642a0); background: var(--visual-palette-f6f0fa); }
.catalog-alerts > a > i, .catalog-alerts > a > .ui-icon { display: grid; place-items: center; }
.catalog-alerts > a i .ui-icon { width: 21px; height: 21px; }
.catalog-alerts > a > .ui-icon { width: 16px; height: 16px; }
.catalog-alerts > a span { display: grid; gap: var(--ds-space-4); }
.catalog-alerts > a strong { font-size: var(--ds-font-size-11); }
.catalog-alerts > a small { color: var(--visual-palette-56615b); font-size: var(--ds-font-size-11); }
.catalog-no-alerts { display: flex; min-height: 150px; align-items: center; justify-content: center; gap: var(--ds-space-8); color: var(--green); font-size: var(--ds-font-size-11); }
.catalog-no-alerts .ui-icon { width: 18px; height: 18px; }
.catalog-overview-footer-note { margin: var(--ds-space-12) 0 0; }

/* Shared visual language for the Clients & Pets, Team and Services overviews. */
.catalog-period-field, .team-period-select, .crm-period-filter {
  border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--visual-color-surface); box-shadow: 0 3px 12px rgba(29,55,42,.035);
}
.catalog-period-field, .team-period-select { min-height: 46px; padding: var(--ds-space-8) var(--ds-space-12); }
.catalog-period-field > span, .team-period-select { color: var(--visual-palette-65736a); font-size: var(--ds-font-size-11); font-weight: 700; }
.catalog-period-field select, .team-period-select select { min-height: 24px; color: var(--ink); font: 700 var(--ds-font-size-12) "Montserrat"; }
.crm-period-filter { padding: var(--ds-space-8) var(--ds-space-12); }
.crm-period-filter .button { border-color: transparent; color: var(--green); background: var(--visual-palette-edf6ef); }

.catalog-kpis > .catalog-kpi-link, .team-kpis article, .crm-metrics-six .metric-card {
  min-height: 164px; border-radius: var(--ds-radius-16); box-shadow: 0 4px 15px rgba(29,55,42,.035);
}
.catalog-kpis > .catalog-kpi-link > .ui-icon, .team-kpis article > .ui-icon, .crm-metrics-six .metric-icon {
  width: 38px; height: 38px; border-radius: var(--ds-radius-12);
}
.catalog-kpis small, .team-kpis small, .crm-metrics-six .metric-card small {
  color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 700;
}
.catalog-kpis strong, .team-kpis strong, .crm-metrics-six .metric-card strong { font-size: var(--ds-font-size-28); }

.catalog-overview-card, .team-overview-card, .crm-overview-primary-grid .panel, .crm-overview-analytics-grid .panel {
  border-radius: var(--ds-radius-16); box-shadow: 0 3px 12px rgba(29,55,42,.025);
}
.catalog-overview-card > header h2, .team-overview-card h2, .crm-overview-primary-grid .panel h2, .crm-overview-analytics-grid .panel h2 {
  font: 700 var(--ds-font-size-16) "Montserrat";
}
.catalog-overview-card > header p, .team-overview-card p, .crm-overview-primary-grid .panel header p, .crm-overview-analytics-grid .panel header p {
  color: var(--muted); font-size: var(--ds-font-size-11); line-height: 1.45;
}
.catalog-overview-note, .catalog-overview-footer-note, .team-overview-note {
  min-height: 38px; padding: var(--ds-space-12) var(--ds-space-12); border: 1px solid var(--visual-palette-d6e2da); border-radius: var(--ds-radius-12); background: var(--visual-palette-f7faf8);
}
.catalog-alerts > a.red { color: var(--visual-palette-a74740); background: var(--visual-palette-fff0ee); }
.catalog-alerts > a.green { color: var(--visual-palette-2b7658); background: var(--visual-palette-edf7f0); }
.catalog-alerts > a.yellow { color: var(--visual-palette-9a7113); background: var(--visual-palette-fff7e5); }
.catalog-alerts > a.purple { color: var(--visual-palette-7250a0); background: var(--visual-palette-f4effb); }
.client-advanced-panel { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)) auto; align-items: end; gap: var(--ds-space-12); margin: -8px 0 var(--ds-space-20); padding: var(--ds-space-16); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--content-subtle); }
.client-advanced-panel label { display: grid; gap: var(--ds-space-4); min-width: 0; color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 700; }
.client-advanced-panel select { min-height: 38px; }
.employee-list-controls { display: grid; grid-template-columns: minmax(300px, 1fr) auto auto; align-items: center; gap: var(--ds-space-12); margin: var(--ds-space-20) 0; }
.employee-filter-panel { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)) auto; align-items: end; gap: var(--ds-space-12); margin: -6px 0 var(--ds-space-20); padding: var(--ds-space-16); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--content-subtle); }
.employee-filter-panel label { display: grid; gap: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 700; }
.employee-filter-panel select { width: 100%; min-width: 0; min-height: 40px; }
.employee-search-clear { display: grid; width: 24px; height: 24px; place-items: center; padding: 0; border: 0; border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; }
.employee-search-clear .ui-icon { width: 14px; height: 14px; }
.employee-list-row { cursor: pointer; }
.employee-list-row:hover { background: var(--visual-palette-f5faf6); }
.employee-list-table { min-width: 900px; }
@media (max-width: 1279px) {
  .employee-list-table, .service-list-table, .clinical-exams-table, .pay-panel .data-table { min-width: 0; width: 100%; }
  .employee-list-table :is(th, td):nth-child(3), .employee-list-table :is(th, td):nth-child(4),
  .service-list-table :is(th, td):nth-child(4),
  .clinical-exams-table :is(th, td):nth-child(4), .clinical-exams-table :is(th, td):nth-child(5),
  .pay-panel .data-table :is(th, td):nth-child(3), .pay-panel .data-table :is(th, td):nth-child(4) { display: none; }
  :is(.employee-list-table, .service-list-table, .clinical-exams-table, .pay-panel .data-table) :is(th, td):last-child { position: sticky; right: 0; z-index: 1; background: var(--visual-color-surface); white-space: nowrap; }
}
.employee-list-table td:nth-child(4) { max-width: 310px; }
.employee-services-cell { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pet-list-controls { grid-template-columns: minmax(300px, 1.7fr) minmax(180px, .8fr) auto; }
.client-list-controls > label { display: grid; gap: var(--ds-space-8); color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 700; }
.client-list-controls select { min-height: 46px; }
.client-search-field { position: relative; display: flex !important; align-items: center; gap: var(--ds-space-12); min-height: 46px; padding: 0 var(--ds-space-16); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--visual-color-surface); color: var(--green) !important; }
.client-search-field:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(20, 96, 68, .1); }
.client-search-field svg { flex: 0 0 18px; width: 18px; height: 18px; }
.client-search-field input { min-width: 0; height: 42px; padding: 0; border: 0; outline: 0; box-shadow: none; }
.client-search-field input:focus { box-shadow: none; }
.client-advanced-filter { min-height: 46px; white-space: nowrap; }
.client-list-panel { overflow: hidden; }
.pet-filter-panel { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)) auto; align-items: end; gap: var(--ds-space-12); margin: -6px 0 var(--ds-space-20); padding: var(--ds-space-16); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--content-subtle); }
.pet-filter-panel label { display: grid; gap: var(--ds-space-8); color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 700; }
.pet-filter-panel select { min-height: 42px; }
.pet-list-table { min-width: 1080px; }
.pet-list-avatar { overflow: hidden; }
.pet-list-avatar > img { width: 100%; height: 100%; object-fit: cover; }
.pet-tutor-cell strong, .pet-tutor-cell small { display: block; }
.pet-tutor-cell small { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); }
.pet-sex { display: inline-flex; align-items: center; gap: var(--ds-space-4); font-size: var(--ds-font-size-12); font-weight: 700; }
.pet-sex .ui-icon { width: 15px; height: 15px; stroke-width: 2.2; }
.pet-sex-female, .pet-sex-male { color: var(--visual-color-text); }
.client-table-scroll { overflow-x: auto; }
.client-list-table { min-width: 940px; }
.client-list-row { cursor: pointer; }
.client-list-row:hover { background: var(--visual-palette-f5faf6); }
.client-list-table td { vertical-align: middle; }
.client-list-table td small { display: block; margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); }
.client-contact { display: inline-flex; align-items: center; gap: var(--ds-space-8); white-space: nowrap; }
.client-contact .whatsapp-icon, .client-contact svg { width: 17px; height: 17px; color: var(--green); }
.client-quick-actions { justify-content: flex-end; }
.client-list-pagination { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-12); padding: var(--ds-space-16) var(--ds-space-20); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--ds-font-size-11); }
.client-list-pagination > div:first-child { display: flex; align-items: center; gap: var(--ds-space-8); }
.client-list-pagination select { width: 60px; min-height: 32px; padding: var(--ds-space-4) var(--ds-space-8); }
.pagination-controls { display: inline-flex; align-items: center; gap: var(--ds-space-8); }
.pagination-controls .icon-button { width: 30px; height: 30px; }
.client-list-tip { display: flex; align-items: center; gap: var(--ds-space-12); margin-top: var(--ds-space-20); padding: var(--ds-space-16) var(--ds-space-16); border: 1px solid var(--visual-palette-cee4d5); border-radius: var(--ds-radius-12); background: var(--visual-palette-f3faf5); color: var(--muted); font-size: var(--ds-font-size-12); }
.client-list-tip i { display: grid; width: 28px; height: 28px; place-items: center; border-radius: var(--ds-radius-8); color: var(--green); background: var(--visual-palette-e4f3e8); font-style: normal; }
.client-list-tip svg { width: 16px; height: 16px; }
.client-center-grid { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr); gap: var(--ds-space-20); margin-bottom: var(--ds-space-20); }
.client-center-profile { padding: var(--ds-space-24); }
.client-center-profile h2 { margin: 0 0 var(--ds-space-8); font-size: var(--ds-font-size-16); }
.client-center-profile p { margin: var(--ds-space-4) 0; color: var(--muted); font-size: var(--ds-font-size-12); }
.client-center-profile .button { margin-top: var(--ds-space-16); }
.client-center-avatar { width: 56px; height: 56px; font-size: var(--ds-font-size-16); }
.client-center-pets { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--ds-space-12); padding: var(--ds-space-16) var(--ds-space-20); }
.client-center-pet { display: flex; align-items: center; gap: var(--ds-space-12); padding: var(--ds-space-12); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--visual-color-surface); text-align: left; cursor: pointer; }
.client-center-pet:hover { border-color: var(--visual-palette-b9d9c8); background: var(--visual-palette-f5faf6); }
.client-center-pet > img, .client-center-pet > .pet-avatar { width: 36px; height: 36px; flex: 0 0 36px; border-radius: var(--ds-radius-12); object-fit: cover; }
.client-center-pet strong, .client-center-pet small { display: block; }
.client-center-pet small { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); }
.relationship-history-panel { overflow: hidden; }
.relationship-history-header { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-16); padding: var(--ds-space-20); border-bottom: 1px solid var(--line); }
.relationship-history-header h2 { margin: 0; font: 700 var(--ds-font-size-16) "Montserrat"; }
.relationship-history-header p { margin: var(--ds-space-4) 0 0; color: var(--muted); font-size: var(--ds-font-size-11); }
.relationship-history-header .button { min-height: 36px; padding: var(--ds-space-8) var(--ds-space-12); font-size: var(--ds-font-size-11); }
.relationship-history-filters { display: flex; flex-wrap: wrap; gap: var(--ds-space-12); padding: var(--ds-space-12) var(--ds-space-20); border-bottom: 1px solid var(--line); background: var(--visual-palette-fafbf9); }
.relationship-history-filters label { display: grid; gap: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 700; }
.relationship-history-filters select, .relationship-history-filters input { min-width: 150px; min-height: 34px; padding: var(--ds-space-8) var(--ds-space-8); font-size: var(--ds-font-size-11); }
.relationship-history-tabs { display: flex; gap: var(--ds-space-8); overflow-x: auto; padding: var(--ds-space-12) var(--ds-space-20); border-bottom: 1px solid var(--line); }
.relationship-history-tabs button { display: inline-flex; align-items: center; gap: var(--ds-space-8); min-height: 36px; padding: var(--ds-space-8) var(--ds-space-12); border: 1px solid var(--line); border-radius: var(--ds-radius-8); color: var(--visual-palette-495a51); background: var(--visual-color-surface); font: 700 var(--ds-font-size-11) "Montserrat"; white-space: nowrap; cursor: pointer; }
.relationship-history-tabs button.active { border-color: var(--visual-palette-bad8c7); color: var(--green); background: var(--visual-palette-edf7f0); }
.relationship-history-tabs i { display: grid; place-items: center; color: currentColor; font-style: normal; }
.relationship-history-tabs i .ui-icon { width: 15px; height: 15px; }
.relationship-history-tabs b { min-width: 18px; padding: var(--ds-space-4) var(--ds-space-4); border-radius: var(--ds-radius-16); background: var(--visual-palette-edf1ef); font-size: var(--ds-font-size-11); }
.relationship-history-table { min-width: 940px; }
.relationship-history-table td { vertical-align: middle; }
.relationship-history-table td > strong, .relationship-history-table td > small { display: block; }
.relationship-history-table td > strong { font-size: var(--ds-font-size-11); }
.relationship-history-table td > small { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); }
.relationship-history-row { cursor: pointer; }
.relationship-history-row:hover { background: var(--visual-palette-fafcf9); }
.relationship-history-row > td:nth-child(2) { position: relative; }
.relationship-history-dot { position: absolute; left: -9px; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--visual-palette-26705a); transform: translateY(-50%); }
.relationship-history-appointment .relationship-history-dot { background: var(--visual-palette-e58a28); }
.relationship-history-contact .relationship-history-dot { background: var(--visual-palette-2a9b62); }
.relationship-history-package .relationship-history-dot { background: var(--visual-palette-d45175); }
.relationship-history-other .relationship-history-dot { background: var(--visual-palette-4c83c3); }
.relationship-history-event { display: flex; align-items: center; gap: var(--ds-space-8); }
.relationship-history-event > i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: var(--ds-radius-8); color: var(--visual-palette-26705a); background: var(--visual-palette-e7f4eb); font-style: normal; }
.relationship-history-event > i .ui-icon { width: 16px; height: 16px; }
.relationship-history-event > i .whatsapp-icon { width: 16px; height: 16px; }
.relationship-history-appointment .relationship-history-event > i { color: var(--visual-palette-b66b16); background: var(--visual-palette-fff1dd); }
.relationship-history-contact .relationship-history-event > i { color: var(--visual-palette-278257); background: var(--visual-palette-e6f6ec); }
.relationship-history-package .relationship-history-event > i { color: var(--visual-palette-bd4769); background: var(--visual-palette-fbe8ef); }
.relationship-history-other .relationship-history-event > i { color: var(--visual-palette-3d74b3); background: var(--visual-palette-e9f2ff); }
.relationship-history-event strong { font-size: var(--ds-font-size-11); }
.relationship-history-status { display: inline-flex; padding: var(--ds-space-4) var(--ds-space-8); border-radius: var(--ds-radius-16); color: var(--visual-palette-26705a); background: var(--visual-palette-e7f4eb); font-size: var(--ds-font-size-11); font-weight: 700; }
.relationship-history-status-appointment { color: var(--visual-palette-a06b11); background: var(--visual-palette-fff2d6); }
.relationship-history-status-package { color: var(--visual-palette-bd4769); background: var(--visual-palette-fbe8ef); }
.relationship-history-row > td:last-child .ui-icon { width: 16px; color: var(--muted); }
.relationship-history-more { width: 100%; padding: var(--ds-space-16); border: 0; border-top: 1px solid var(--line); color: var(--green); background: var(--visual-color-surface); font: 700 var(--ds-font-size-12) "Montserrat"; cursor: pointer; }
.relationship-history-more .ui-icon { width: 16px; vertical-align: middle; }
.client-create-page-form { display: grid; max-width: 1040px; gap: var(--ds-space-16); }
.client-create-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--ds-space-20); margin-bottom: var(--ds-space-20); }
.client-create-modal-header h2 { margin: 0 0 var(--ds-space-8); }
.client-create-modal-header p { margin: 0; color: var(--muted); font-size: var(--ds-font-size-13); }
.modal-close-inline { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 0; border-radius: var(--ds-radius-12); color: var(--muted); background: var(--cream); cursor: pointer; }
.modal-close-inline svg { width: 19px; height: 19px; }
.client-form-section { padding: var(--ds-space-20); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.client-form-section > header { display: flex; align-items: flex-start; gap: var(--ds-space-12); margin-bottom: var(--ds-space-20); }
.client-form-section > header > i { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: var(--ds-radius-12); color: var(--green); background: var(--visual-palette-eaf4ed); font-style: normal; }
.client-form-section > header svg { width: 20px; height: 20px; }
.client-form-section h2 { margin: var(--ds-space-4) 0 var(--ds-space-4); font: 700 var(--ds-font-size-16) "Montserrat"; }
.client-form-section header p { margin: 0; color: var(--muted); font-size: var(--ds-font-size-12); }
.client-create-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.client-cep-action { align-self: end; }
.client-cep-action .button { width: 100%; min-height: 46px; }
.client-form-hint { display: flex; align-items: center; gap: var(--ds-space-8); margin: var(--ds-space-16) 0 0; color: var(--muted); font-size: var(--ds-font-size-12); }
.client-form-hint svg { width: 16px; height: 16px; color: var(--green); }
.client-create-footer { position: sticky; bottom: 12px; z-index: 2; display: flex; justify-content: flex-end; gap: var(--ds-space-12); padding: var(--ds-space-16); border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: 0 8px 24px rgba(30, 52, 42, .08); }
.client-create-footer .button { min-height: 46px; }
.employee-create-form { display: grid; gap: var(--ds-space-16); margin-top: var(--ds-space-20); }
.modal-card.client-create-modal-card:has(.employee-create-form) { width: min(1135px, 100%); overflow-x: hidden; }
.modal-card.client-create-modal-card:has(.employee-create-form) #modal-content,
.modal-card.client-create-modal-card:has(.employee-create-form) .employee-create-form { width: 100%; min-width: 0; }
.employee-form-section { min-width: 0; padding: var(--ds-space-16); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--visual-color-surface); }
.employee-form-section > header { display: flex; align-items: center; gap: var(--ds-space-12); margin-bottom: var(--ds-space-16); }
.employee-form-section > header > i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--ds-radius-12); color: var(--green); background: var(--visual-palette-e7f4eb); font-style: normal; }
.employee-form-section > header > i .ui-icon { width: 18px; height: 18px; }
.employee-form-section h3 { margin: 0; font: 700 var(--ds-font-size-14) "Montserrat"; }
.employee-form-section h3 small { color: var(--muted); font: 600 var(--ds-font-size-11) "Montserrat"; }
.employee-form-section header p { margin: var(--ds-space-4) 0 0; color: var(--muted); font-size: var(--ds-font-size-11); }
.employee-create-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-space-12); }
.employee-create-grid label { position: relative; min-width: 0; }
.employee-create-grid .span-2 { grid-column: 1 / -1; }
.employee-services-field { display: grid; gap: var(--ds-space-8); }
.employee-services-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.employee-service-search { min-height: 38px; padding-left: var(--ds-space-12); }
.employee-service-options { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-space-4); max-height: 112px; overflow: auto; padding: var(--ds-space-8); border: 1px solid var(--line); border-radius: var(--ds-radius-8); background: var(--visual-color-surface); }
.employee-services-field.is-open .employee-service-options { display: grid; }
.employee-service-options label { display: flex; align-items: center; gap: var(--ds-space-8); min-height: 26px; padding: var(--ds-space-4) var(--ds-space-8); border-radius: var(--ds-radius-8); color: var(--visual-palette-426653); background: var(--visual-palette-f1f7f2); font-size: var(--ds-font-size-11); font-weight: 700; cursor: pointer; }
.employee-service-options input { width: auto; margin: 0; accent-color: var(--green); }
.employee-selected-services { display: flex; flex-wrap: wrap; gap: var(--ds-space-8); min-height: 26px; }
.employee-selected-services > span { display: inline-flex; align-items: center; gap: var(--ds-space-4); padding: var(--ds-space-4) var(--ds-space-8); border-radius: var(--ds-radius-8); color: var(--visual-palette-315a45); background: var(--visual-palette-e7f4eb); font-size: var(--ds-font-size-11); font-weight: 700; }
.employee-selected-services button { display: grid; width: 14px; height: 14px; place-items: center; padding: 0; border: 0; color: var(--visual-palette-315a45); background: transparent; cursor: pointer; }
.employee-selected-services button .ui-icon { width: 11px; height: 11px; }
.employee-selected-services small { align-self: center; color: var(--muted); font-size: var(--ds-font-size-11); }
.employee-form-section:first-child .employee-create-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 220px; }
.employee-form-section:first-child .employee-upload { grid-column: 3; grid-row: 1 / span 3; }
.employee-edit-form .employee-form-section:first-child .employee-upload { grid-row: 1 / span 2; min-height: 132px; max-height: 132px; }
.employee-edit-photo { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; }
.employee-upload { display: grid; min-height: 126px; cursor: pointer; }
.employee-upload input { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; pointer-events: none; }
.employee-upload > span { display: grid; place-items: center; align-content: center; gap: var(--ds-space-4); min-height: 100%; border: 1px dashed var(--visual-palette-b9c8be); border-radius: var(--ds-radius-8); color: var(--ink); font-size: var(--ds-font-size-11); font-weight: 700; text-align: center; }
.employee-upload .ui-icon { width: 23px; height: 23px; color: var(--muted); }
.employee-upload small { color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 500; }
.employee-form-note { display: flex; align-items: center; gap: var(--ds-space-8); margin: var(--ds-space-12) 0 0; padding: var(--ds-space-12); border-radius: var(--ds-radius-8); color: var(--visual-palette-426653); background: var(--visual-palette-edf7f0); font-size: var(--ds-font-size-11); }
.employee-form-note .ui-icon { width: 15px; color: var(--green); }
.employee-form-columns { display: grid; width: 100%; min-width: 0; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--ds-space-16); }
.employee-form-columns-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.employee-form-columns-three > .employee-form-section:first-child .employee-create-grid { grid-template-columns: 1fr; }
.employee-form-columns-three > .employee-form-section:first-child .span-2 { grid-column: auto; display: flex; align-items: center; gap: var(--ds-space-8); }
.employee-form-columns-three > .employee-form-section:first-child .span-2 input { width: auto; flex: 0 0 auto; }
.availability-options { display: grid; gap: var(--ds-space-8); margin-bottom: var(--ds-space-16); }
.availability-options label, .commission-toggle { display: flex; align-items: center; gap: var(--ds-space-8); padding: var(--ds-space-8); border: 1px solid var(--line); border-radius: var(--ds-radius-8); font-size: var(--ds-font-size-11); }
.availability-options input, .commission-toggle input { width: auto; }
.commission-toggle { justify-content: space-between; margin-bottom: var(--ds-space-12); font-weight: 700; }
.inline-field-action { position: absolute; right: 8px; bottom: 8px; border: 0; color: var(--green); background: transparent; font-size: var(--ds-font-size-11); font-weight: 700; cursor: pointer; }
.employee-create-grid label:has(.inline-field-action) input { padding-right: var(--ds-space-32); }
.employee-form-footer { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-12); margin: 0; padding: var(--ds-space-16) 0 0; border-top: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 0 -6px 18px rgba(30, 52, 42, .05); }
.employee-form-footer > span { display: flex; align-items: center; gap: var(--ds-space-8); color: var(--visual-palette-426653); font-size: var(--ds-font-size-11); }
.employee-form-footer > span .ui-icon { width: 15px; color: var(--green); }
.employee-form-footer > div { display: flex; gap: var(--ds-space-8); }
@media (max-width: 820px) { .employee-form-columns, .employee-form-columns-three { grid-template-columns: 1fr; } .employee-form-section:first-child .employee-create-grid { grid-template-columns: 1fr; } .employee-form-section:first-child .employee-upload { grid-column: auto; grid-row: auto; min-height: 132px; } .employee-form-footer { align-items: flex-start; flex-direction: column; } .employee-form-footer > div { width: 100%; flex-wrap: wrap; } }
.employee-center-breadcrumb { display: flex; align-items: center; gap: var(--ds-space-12); margin-bottom: var(--ds-space-16); color: var(--muted); font-size: var(--ds-font-size-12); }
.employee-center-breadcrumb button { padding: 0; border: 0; color: var(--green); background: transparent; font: inherit; font-weight: 700; }
.employee-center-breadcrumb .ui-icon { width: 14px; }
.employee-center-hero, .employee-kpis, .employee-center-card { border: 1px solid var(--line); border-radius: var(--ds-radius-16); background: var(--visual-color-surface); }
.employee-center-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--ds-space-20); padding: var(--ds-space-20); }
.employee-center-profile { display: flex; align-items: center; gap: var(--ds-space-20); min-width: 0; }
.employee-center-profile .pet-avatar { width: 132px; height: 132px; flex: 0 0 132px; border-radius: var(--ds-radius-12); font-size: var(--ds-font-size-28); }
.employee-center-title { display: flex; align-items: center; gap: var(--ds-space-12); }
.employee-center-title h1 { margin: 0; font: 700 var(--ds-font-size-28) "Montserrat"; }
.employee-center-profile p { margin: var(--ds-space-4) 0; color: var(--muted); }
.employee-center-profile small { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ds-space-8); color: var(--visual-palette-526057); }
.employee-center-profile small .ui-icon { width: 15px; color: var(--green); }
.employee-center-actions { display: flex; align-items: flex-start; gap: var(--ds-space-12); }
.employee-center-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: var(--ds-space-12); margin-left: 150px; border-top: 1px solid var(--line); padding-top: var(--ds-space-12); }
.employee-center-facts span { position: relative; display: grid; grid-template-columns: 24px 1fr; column-gap: var(--ds-space-8); }
.employee-center-facts .ui-icon { grid-row: span 2; width: 18px; color: var(--green); }
.employee-center-facts small, .employee-center-facts strong { display: block; }
.employee-center-facts small { color: var(--muted); font-size: var(--ds-font-size-11); }.employee-center-facts strong { font-size: var(--ds-font-size-11); }
.employee-kpis { display: grid; grid-template-columns: repeat(4, 1fr); margin: var(--ds-space-16) 0; overflow: hidden; }
.employee-kpis article { display: flex; gap: var(--ds-space-12); min-width: 0; padding: var(--ds-space-20); border-right: 1px solid var(--line); }.employee-kpis article:last-child { border: 0; }
.employee-kpis > article > .ui-icon { width: 32px; height: 32px; flex: 0 0 32px; padding: var(--ds-space-8); border-radius: var(--ds-radius-8); color: var(--green); background: var(--visual-palette-e8f4eb); }
.employee-kpis small, .employee-kpis span { display: block; color: var(--muted); font-size: var(--ds-font-size-11); }.employee-kpis strong { display: block; margin: var(--ds-space-4) 0; font: 700 var(--ds-font-size-22) "Montserrat"; }
.employee-center-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ds-space-16); }.employee-center-grid > article:nth-child(5) { grid-column: span 2; }.employee-center-bottom { display: grid; grid-template-columns: .72fr 1.28fr; gap: var(--ds-space-16); margin-top: var(--ds-space-16); }
.employee-center-card { display: grid; align-content: start; min-width: 0; min-height: 188px; padding: var(--ds-space-16); }.employee-center-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--ds-space-8); margin-bottom: var(--ds-space-12); }.employee-center-card h2 { margin: 0; font: 700 var(--ds-font-size-14) "Montserrat"; }.employee-center-card p { margin: var(--ds-space-4) 0 0; color: var(--muted); font-size: var(--ds-font-size-11); }.employee-center-card header .button { padding: var(--ds-space-8) var(--ds-space-12); font-size: var(--ds-font-size-11); }
.employee-service-tags { display: flex; flex-wrap: wrap; gap: var(--ds-space-8); min-height: 68px; }.employee-service-tags span { padding: var(--ds-space-4) var(--ds-space-8); border-radius: var(--ds-radius-8); color: var(--visual-palette-40604f); background: var(--visual-palette-f1f7f2); font-size: var(--ds-font-size-11); font-weight: 700; }
.employee-services-card { min-height: 192px; }
.employee-services-card header { align-items: center; }
.employee-center-card-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: var(--ds-radius-12); color: var(--green); background: var(--visual-palette-e7f4eb); font-style: normal; }
.employee-center-card-icon .ui-icon { width: 18px; height: 18px; }
.employee-services-card header > div { margin-right: auto; }
.employee-services-card .employee-service-tags { align-content: start; gap: var(--ds-space-8); min-height: 70px; padding: var(--ds-space-4) 0; }
.employee-services-card .employee-service-tags span { display: inline-flex; align-items: center; gap: var(--ds-space-8); padding: var(--ds-space-8) var(--ds-space-12); border: 1px solid var(--visual-palette-e2e9e3); border-radius: var(--ds-radius-16); color: var(--visual-palette-5a6c60); background: var(--visual-palette-fbfdfb); font-size: var(--ds-font-size-11); }
.employee-services-card .employee-service-tags span::before { width: 5px; height: 5px; border-radius: 50%; background: var(--visual-palette-158055); content: ""; }
.employee-services-card .employee-center-link { margin-top: var(--ds-space-12); padding-top: var(--ds-space-16); }
.employee-center-link { align-self: end; margin-top: var(--ds-space-16); padding: var(--ds-space-12) 0 0; border: 0; border-top: 1px solid var(--line); color: var(--green); background: transparent; text-align: left; font-size: var(--ds-font-size-11); font-weight: 700; }
.employee-schedule-list { display: grid; gap: var(--ds-space-8); padding: var(--ds-space-12); border-radius: var(--ds-radius-12); background: var(--visual-palette-f8faf8); }.employee-schedule-list div { display: flex; justify-content: space-between; gap: var(--ds-space-8); font-size: var(--ds-font-size-11); }.employee-schedule-list span { color: var(--muted); }
.employee-detail-pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-space-12); min-height: 68px; }.employee-detail-pairs small, .employee-detail-pairs strong { display: block; }.employee-detail-pairs small { color: var(--muted); font-size: var(--ds-font-size-11); }.employee-detail-pairs strong { margin-top: var(--ds-space-4); font-size: var(--ds-font-size-11); }.employee-document-empty { min-height: 68px; padding: var(--ds-space-12); border: 1px dashed var(--visual-palette-c6d2ca); border-radius: var(--ds-radius-8); color: var(--muted); font-size: var(--ds-font-size-11); }
.employee-history { display: grid; gap: var(--ds-space-12); }.employee-history > div { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: var(--ds-space-8); }.employee-history i { display: grid; width: 28px; height: 28px; place-items: center; border-radius: var(--ds-radius-8); color: var(--green); background: var(--visual-palette-e8f4eb); font-style: normal; }.employee-history i .ui-icon { width: 15px; }.employee-history strong, .employee-history small { display: block; }.employee-history strong { font-size: var(--ds-font-size-11); }.employee-history small, .employee-history time { color: var(--muted); font-size: var(--ds-font-size-11); }.employee-history time { text-align: right; }
.employee-performance { grid-template-columns: 150px 1fr; column-gap: var(--ds-space-16); }.employee-performance header { grid-column: 1 / -1; }.employee-performance-summary { display: grid; align-content: start; gap: var(--ds-space-4); padding: var(--ds-space-16); border-radius: var(--ds-radius-12); background: var(--visual-palette-f6f9f6); }.employee-performance-summary strong { font: 700 var(--ds-font-size-22) "Montserrat"; }.employee-performance-summary span { color: var(--muted); font-size: var(--ds-font-size-11); }.employee-performance-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-space-8); }.employee-performance-form label { gap: var(--ds-space-4); font-size: var(--ds-font-size-11); }.employee-performance-form input, .employee-performance-form textarea { padding: var(--ds-space-8); border-radius: var(--ds-radius-8); font-size: var(--ds-font-size-11); }.employee-performance-form textarea { min-height: 48px; }.employee-performance-form .span-2 { grid-column: 1 / -1; }
.team-period-select { min-width: 190px; gap: var(--ds-space-4); padding: var(--ds-space-8) var(--ds-space-12); border: 1px solid var(--line); border-radius: var(--ds-radius-12); color: var(--muted); font-size: var(--ds-font-size-11); }.team-period-select select { padding: 0; border: 0; background: transparent; color: var(--ink); font-size: var(--ds-font-size-11); font-weight: 700; }
.team-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--ds-space-12); margin-bottom: var(--ds-space-16); }.team-kpis article, .team-overview-card { border: 1px solid var(--line); border-radius: var(--ds-radius-16); background: var(--visual-color-surface); }.team-kpis article { display: flex; gap: var(--ds-space-12); min-height: 128px; padding: var(--ds-space-16); }.team-kpis article > .ui-icon { width: var(--icon-badge-size); height: var(--icon-badge-size); flex: 0 0 var(--icon-badge-size); padding: var(--ds-space-8); border-radius: var(--icon-badge-radius); color: var(--green); background: var(--visual-palette-e9f4ed); }.team-kpis small, .team-kpis span { display: block; color: var(--muted); font-size: var(--ds-font-size-11); }.team-kpis strong { display: block; margin: var(--ds-space-4) 0; font: 700 var(--ds-font-size-28) "Montserrat"; }.team-kpis article:first-child strong { color: var(--visual-palette-2d72d8); }.team-kpis a { display: inline-block; margin-top: var(--ds-space-4); color: var(--green); font-size: var(--ds-font-size-11); font-weight: 700; text-decoration: none; }
.team-kpis article:nth-child(1) > .ui-icon { color: var(--visual-palette-3f7fe0); background: var(--visual-palette-e8f0ff); }
.team-kpis article:nth-child(2) > .ui-icon { color: var(--visual-palette-936818); background: var(--visual-palette-fff4da); }
.team-kpis article:nth-child(3) > .ui-icon { color: var(--visual-palette-26845d); background: var(--visual-palette-e7f5eb); }
.team-kpis article:nth-child(4) > .ui-icon { color: var(--visual-palette-8768d8); background: var(--visual-palette-f0eaff); }
.team-kpis article:nth-child(5) > .ui-icon { color: var(--visual-palette-21865c); background: var(--visual-palette-e5f5ea); }
.team-overview-main { display: grid; grid-template-columns: 1.35fr .9fr 1.15fr; gap: var(--ds-space-16); }.team-overview-bottom { display: grid; grid-template-columns: 1.25fr .75fr; gap: var(--ds-space-16); margin-top: var(--ds-space-16); }.team-overview-card { display: grid; align-content: start; min-width: 0; padding: var(--ds-space-16); }.team-overview-card header { margin-bottom: var(--ds-space-16); }.team-overview-card h2 { margin: 0; font: 700 var(--ds-font-size-16) "Montserrat"; }.team-overview-card p { margin: var(--ds-space-4) 0 0; color: var(--muted); font-size: var(--ds-font-size-11); }
.team-performance-head, .team-performance-row { display: grid; grid-template-columns: minmax(135px, 1.55fr) .6fr .65fr .7fr .8fr; gap: var(--ds-space-8); align-items: center; }.team-performance-head { padding: 0 var(--ds-space-8) var(--ds-space-8); color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 700; }.team-performance-row { width: 100%; padding: var(--ds-space-8); border: 0; border-top: 1px solid var(--line); color: var(--ink); background: transparent; font-size: var(--ds-font-size-11); text-align: left; }.team-performance-row:hover { background: var(--visual-palette-f7faf8); }.team-performance-row > span:first-child { display: flex; align-items: center; gap: var(--ds-space-8); }.team-performance-row .pet-avatar { width: 29px; height: 29px; flex: 0 0 29px; font-size: var(--ds-font-size-11); }.team-performance-row b, .team-performance-row small { display: block; }.team-performance-row b { font-size: var(--ds-font-size-11); }.team-performance-row small { color: var(--muted); font-weight: 500; }.team-card-link { margin-top: var(--ds-space-12); padding-top: var(--ds-space-12); border-top: 1px solid var(--line); color: var(--green); font-size: var(--ds-font-size-11); font-weight: 700; text-decoration: none; }
.team-performance-table-wrap { overflow-x: hidden; }.team-performance-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: var(--ds-font-size-11); }.team-performance-table th { padding: 0 var(--ds-space-8) var(--ds-space-12); color: var(--muted); font-size: var(--ds-font-size-11); text-align: left; overflow-wrap: anywhere; }.team-performance-table th:nth-child(1) { width: 38%; }.team-performance-table th:nth-child(2) { width: 15%; }.team-performance-table th:nth-child(3) { width: 14%; }.team-performance-table th:nth-child(4) { width: 16%; }.team-performance-table th:nth-child(5) { width: 17%; }.team-performance-table td { padding: var(--ds-space-12) var(--ds-space-8); border-top: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; }.team-performance-table tbody tr { cursor: pointer; }.team-performance-table tbody tr:hover { background: var(--visual-palette-f7faf8); }.team-professional-cell { display: flex; align-items: center; gap: var(--ds-space-8); min-width: 0; }.team-professional-cell > span:last-child { min-width: 0; }.team-professional-cell .pet-avatar { width: 32px; height: 32px; flex: 0 0 32px; font-size: var(--ds-font-size-11); }.team-professional-cell strong, .team-professional-cell small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.team-professional-cell strong { font-size: var(--ds-font-size-11); }.team-professional-cell small { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); }
.team-distribution { display: grid; gap: var(--ds-space-12); min-height: 188px; }.team-distribution div { display: grid; grid-template-columns: 1fr auto; gap: var(--ds-space-4) var(--ds-space-12); font-size: var(--ds-font-size-11); }.team-distribution b { font-size: var(--ds-font-size-11); }.team-distribution i { grid-column: 1 / -1; height: 7px; overflow: hidden; border-radius: var(--ds-radius-16); background: var(--visual-palette-edf1ef); }.team-distribution i::after { content: ""; display: block; width: var(--value); height: 100%; border-radius: inherit; background: var(--visual-palette-44a77a); }
.team-donut-layout { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: var(--ds-space-16); min-height: 188px; }.team-donut { display: grid; width: 128px; height: 128px; place-content: center; border-radius: 50%; background: radial-gradient(circle, var(--visual-color-surface) 0 45%, transparent 46%), conic-gradient(var(--donut)); text-align: center; }.team-donut strong { font: 700 var(--ds-font-size-28) "Montserrat"; }.team-donut small { color: var(--muted); font-size: var(--ds-font-size-11); }.team-donut-legend { display: grid; gap: var(--ds-space-12); }.team-donut-legend span { position: relative; display: flex; justify-content: space-between; gap: var(--ds-space-8); padding-left: var(--ds-space-12); font-size: var(--ds-font-size-11); }.team-donut-legend span::before { content: ""; position: absolute; left: 0; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--tone); }.team-donut-legend em { color: var(--muted); font-style: normal; }
.team-line-chart { min-height: 188px; padding-top: var(--ds-space-8); border-bottom: 1px solid var(--line); }.team-line-chart svg { display: block; width: 100%; height: 155px; overflow: visible; }.team-line-chart polyline { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }.team-line-capacity { stroke: var(--visual-palette-39a478); }.team-line-demand { stroke: var(--visual-palette-4c85df); }.team-line-chart > div { display: flex; justify-content: space-between; gap: var(--ds-space-4); }.team-line-chart small { color: var(--muted); font-size: var(--ds-font-size-11); }
.team-capacity-chart { display: flex; align-items: end; justify-content: space-between; gap: var(--ds-space-8); min-height: 188px; padding: var(--ds-space-12) var(--ds-space-4) 0; border-bottom: 1px solid var(--line); }.team-capacity-chart > div { display: grid; grid-template-rows: 155px auto; gap: var(--ds-space-8); flex: 1; text-align: center; }.team-capacity-chart i { position: relative; display: block; overflow: hidden; border-radius: var(--ds-radius-8) var(--ds-radius-8) 0 0; background: linear-gradient(to top, var(--visual-palette-e7f2eb) var(--capacity), transparent var(--capacity)); }.team-capacity-chart i::after { content: ""; position: absolute; right: 20%; bottom: 0; left: 20%; height: var(--demand); border-radius: var(--ds-radius-8) var(--ds-radius-8) 0 0; background: var(--visual-palette-4c85df); }.team-capacity-chart small { color: var(--muted); font-size: var(--ds-font-size-11); }.team-chart-legend { display: flex; gap: var(--ds-space-12); margin: var(--ds-space-12) 0; color: var(--muted); font-size: var(--ds-font-size-11); }.team-chart-legend span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: var(--ds-space-4); border-radius: 50%; background: var(--visual-palette-44a77a); }.team-chart-legend span:last-child::before { background: var(--visual-palette-4c85df); }
.team-insights { display: grid; gap: var(--ds-space-8); }.team-insights a { display: flex; justify-content: space-between; gap: var(--ds-space-12); padding: var(--ds-space-12); border-radius: var(--ds-radius-8); color: var(--ink); background: var(--visual-palette-f8faf8); font-size: var(--ds-font-size-11); text-decoration: none; }.team-insights b { flex: 0 0 auto; color: var(--green); font-size: var(--ds-font-size-11); }.team-overview-note { display: flex; align-items: center; gap: var(--ds-space-8); margin: var(--ds-space-16) 0 0; padding: var(--ds-space-12); border: 1px solid var(--visual-palette-cde5d8); border-radius: var(--ds-radius-12); color: var(--visual-palette-426653); background: var(--visual-palette-f0faf3); font-size: var(--ds-font-size-11); }.team-overview-note .ui-icon { width: 16px; }
.metric-card { position: relative; overflow: hidden; display: grid; min-width: 0; min-height: 154px; padding: var(--ds-space-20); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.metric-card.metric-link { cursor: pointer; }
.metric-card.metric-link:hover { border-color: var(--visual-palette-c9d8cd); box-shadow: var(--shadow); transform: translateY(-1px); }
.metric-card .metric-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--ds-radius-12); background: var(--visual-palette-edf3ee); color: var(--green); }
.metric-card .metric-icon .ui-icon, .plan-summary-card .metric-icon .ui-icon { width: 20px; height: 20px; }
.metric-card small { display: block; margin-top: var(--ds-space-20); color: var(--muted); font-weight: 600; }
.metric-card strong { display: block; min-width: 0; margin-top: var(--ds-space-4); font: 700 clamp(var(--ds-font-size-22), 1.9vw, var(--ds-font-size-28))/1.1 "Montserrat"; overflow-wrap: anywhere; }
.metric-card .trend { display: block; align-self: end; min-width: 0; margin-top: var(--ds-space-12); color: var(--green-2); font-size: var(--ds-font-size-11); font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.metric-card[data-risk-card="expense"] { border-color: var(--visual-palette-efc5bf); background: var(--visual-palette-fff1ef); }
.metric-card[data-risk-card="expense"] .metric-icon { color: var(--visual-palette-a74740); background: var(--visual-palette-fae6e3); }
.metric-card[data-risk-card="expense"] .trend { color: var(--visual-palette-a74740); }
.home-dashboard .panel-header { padding-inline: var(--ds-space-20); }
.home-dashboard .panel-header h2 { font-weight: 600; }
.home-dashboard .day-overview-panel > .panel-header { padding-bottom: 0; border-bottom: 0; }
.home-dashboard .day-overview-panel > p { padding-inline: var(--ds-space-20); }
.home-dashboard .dashboard-grid { align-items: start; }
.home-dashboard :is(.panel-header, .daily-tip-panel) a {
  color: var(--visual-color-primary); font-size: var(--ds-font-size-13); font-weight: 600;
}
.day-overview-panel { margin-bottom: var(--ds-space-20); }
.day-overview-grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: var(--ds-space-16); padding: var(--ds-space-16) var(--ds-space-20) var(--ds-space-20); }
.day-card {
  position: relative; display: grid; align-content: start; gap: var(--ds-space-12); min-width: 0; min-height: 168px; padding: var(--ds-space-20);
  border: 1px solid var(--line); border-radius: var(--ds-radius-16); color: var(--ink); background: var(--visual-color-surface); text-align: left;
}
.day-card:is(:hover, :focus-visible) { border-color: var(--brand-primary); box-shadow: var(--shadow); transform: translateY(-1px); }
.home-dashboard .day-card > .icon-kind-chevronRight {
  position: absolute; inset: var(--ds-space-20) var(--ds-space-20) auto auto;
  width: var(--ds-icon-inline-size) !important; height: var(--ds-icon-inline-size) !important;
}
.day-card .metric-icon { width: var(--icon-badge-size); height: var(--icon-badge-size); display: grid; place-items: center; border-radius: var(--icon-badge-radius); background: var(--visual-palette-edf3ee); color: var(--green); font-style: normal; }
.ui-icon { width: var(--visual-icon-size); height: var(--visual-icon-size); flex: 0 0 auto; }
.whatsapp-icon { width: 18px; height: 18px; flex: 0 0 auto; object-fit: contain; }
.icon-tone-green { color: var(--visual-palette-177552) !important; background: var(--visual-palette-e5f4ea) !important; }
.icon-tone-orange { color: var(--visual-palette-d76a2c) !important; background: var(--visual-palette-fff0e2) !important; }
.icon-tone-violet { color: var(--visual-palette-7c3bb8) !important; background: var(--visual-palette-f1e6fa) !important; }
.icon-tone-red { color: var(--visual-palette-cf4c4c) !important; background: var(--visual-palette-ffe7e7) !important; }
.icon-tone-pink { color: var(--visual-palette-c84d7b) !important; background: var(--visual-palette-fde8f0) !important; }
.icon-tone-blue { color: var(--visual-palette-1763a6) !important; background: var(--visual-palette-e4f1ff) !important; }
/* Paleta global: ícones decorativos repetem a mesma cor em todas as telas. */
:is(.metric-icon, .dashboard-icon-badge, .employee-center-card-icon, .employee-form-section > header > i, .segment-info > i, .segment-metrics article > i, .segment-guide > i, .crm-campaign-panel > i, .crm-insight-panel > i, .agenda-insight-panel > i, .relationship-history-event > i, .appointment-summary-person .metric-icon, .plan-summary-card .metric-icon, .empty-state > i) > .icon-kind-paw { color: var(--visual-palette-2673a1); }
:is(.metric-icon, .dashboard-icon-badge, .employee-center-card-icon, .employee-form-section > header > i, .segment-info > i, .segment-metrics article > i, .segment-guide > i, .crm-campaign-panel > i, .crm-insight-panel > i, .agenda-insight-panel > i, .relationship-history-event > i, .appointment-summary-person .metric-icon, .plan-summary-card .metric-icon, .empty-state > i) > :is(.icon-kind-calendar, .icon-kind-calendarDays, .icon-kind-clock) { color: var(--visual-palette-b56624); }
:is(.metric-icon, .dashboard-icon-badge, .employee-center-card-icon, .employee-form-section > header > i, .segment-info > i, .segment-metrics article > i, .segment-guide > i, .crm-campaign-panel > i, .crm-insight-panel > i, .agenda-insight-panel > i, .relationship-history-event > i, .appointment-summary-person .metric-icon, .plan-summary-card .metric-icon, .empty-state > i) > :is(.icon-kind-users, .icon-kind-user, .icon-kind-userSearch) { color: var(--visual-palette-21806a); }
:is(.metric-icon, .dashboard-icon-badge, .employee-center-card-icon, .employee-form-section > header > i, .segment-info > i, .segment-metrics article > i, .segment-guide > i, .crm-campaign-panel > i, .crm-insight-panel > i, .agenda-insight-panel > i, .relationship-history-event > i, .appointment-summary-person .metric-icon, .plan-summary-card .metric-icon, .empty-state > i) > .icon-kind-gift { color: var(--visual-palette-b75263); }
:is(.metric-icon, .dashboard-icon-badge, .employee-center-card-icon, .employee-form-section > header > i, .segment-info > i, .segment-metrics article > i, .segment-guide > i, .crm-campaign-panel > i, .crm-insight-panel > i, .agenda-insight-panel > i, .relationship-history-event > i, .appointment-summary-person .metric-icon, .plan-summary-card .metric-icon, .empty-state > i) > .icon-kind-message { color: var(--visual-palette-5754b8); }
:is(.metric-icon, .dashboard-icon-badge, .employee-center-card-icon, .employee-form-section > header > i, .segment-info > i, .segment-metrics article > i, .segment-guide > i, .crm-campaign-panel > i, .crm-insight-panel > i, .agenda-insight-panel > i, .relationship-history-event > i, .appointment-summary-person .metric-icon, .plan-summary-card .metric-icon, .empty-state > i) > .icon-kind-sparkles { color: var(--visual-palette-b66b16); }
:is(.metric-icon, .dashboard-icon-badge, .employee-center-card-icon, .employee-form-section > header > i, .segment-info > i, .segment-metrics article > i, .segment-guide > i, .crm-campaign-panel > i, .crm-insight-panel > i, .agenda-insight-panel > i, .relationship-history-event > i, .appointment-summary-person .metric-icon, .plan-summary-card .metric-icon, .empty-state > i) > .icon-kind-star { color: var(--visual-palette-aa7809); }
:is(.metric-icon, .dashboard-icon-badge, .employee-center-card-icon, .employee-form-section > header > i, .segment-info > i, .segment-metrics article > i, .segment-guide > i, .crm-campaign-panel > i, .crm-insight-panel > i, .agenda-insight-panel > i, .relationship-history-event > i, .appointment-summary-person .metric-icon, .plan-summary-card .metric-icon, .empty-state > i) > :is(.icon-kind-navigation, .icon-kind-mapPin) { color: var(--visual-palette-315d78); }
:is(.metric-icon, .dashboard-icon-badge, .employee-center-card-icon, .employee-form-section > header > i, .segment-info > i, .segment-metrics article > i, .segment-guide > i, .crm-campaign-panel > i, .crm-insight-panel > i, .agenda-insight-panel > i, .relationship-history-event > i, .appointment-summary-person .metric-icon, .plan-summary-card .metric-icon, .empty-state > i) > :is(.icon-kind-chart, .icon-kind-trendingUp, .icon-kind-target) { color: var(--visual-palette-286fc2); }
:is(.metric-icon, .dashboard-icon-badge, .employee-center-card-icon, .employee-form-section > header > i, .segment-info > i, .segment-metrics article > i, .segment-guide > i, .crm-campaign-panel > i, .crm-insight-panel > i, .agenda-insight-panel > i, .relationship-history-event > i, .appointment-summary-person .metric-icon, .plan-summary-card .metric-icon, .empty-state > i) > .icon-kind-rotateCcw { color: var(--visual-palette-6d5ab3); }
:is(.metric-icon, .dashboard-icon-badge, .employee-center-card-icon, .employee-form-section > header > i, .segment-info > i, .segment-metrics article > i, .segment-guide > i, .crm-campaign-panel > i, .crm-insight-panel > i, .agenda-insight-panel > i, .relationship-history-event > i, .appointment-summary-person .metric-icon, .plan-summary-card .metric-icon, .empty-state > i) > :is(.icon-kind-dollar, .icon-kind-receipt, .icon-kind-cart) { color: var(--visual-palette-a56a14); }
:is(.dashboard-icon-badge, .employee-center-card-icon, .employee-form-section > header > i, .segment-info > i, .segment-metrics article > i, .segment-guide > i, .crm-campaign-panel > i, .crm-insight-panel > i, .agenda-insight-panel > i, .appointment-summary-person .metric-icon, .plan-summary-card .metric-icon, .empty-state > i):has(> .icon-kind-paw) { background: var(--visual-palette-e5f1ff); }
:is(.dashboard-icon-badge, .employee-center-card-icon, .employee-form-section > header > i, .segment-info > i, .segment-metrics article > i, .segment-guide > i, .crm-campaign-panel > i, .crm-insight-panel > i, .agenda-insight-panel > i, .appointment-summary-person .metric-icon, .plan-summary-card .metric-icon, .empty-state > i):has(> :is(.icon-kind-calendar, .icon-kind-calendarDays, .icon-kind-clock)) { background: var(--visual-palette-fff0df); }
:is(.dashboard-icon-badge, .employee-center-card-icon, .employee-form-section > header > i, .segment-info > i, .segment-metrics article > i, .segment-guide > i, .crm-campaign-panel > i, .crm-insight-panel > i, .agenda-insight-panel > i, .appointment-summary-person .metric-icon, .plan-summary-card .metric-icon, .empty-state > i):has(> :is(.icon-kind-users, .icon-kind-user, .icon-kind-userSearch)) { background: var(--visual-palette-e3f5ef); }
:is(.dashboard-icon-badge, .employee-center-card-icon, .employee-form-section > header > i, .segment-info > i, .segment-metrics article > i, .segment-guide > i, .crm-campaign-panel > i, .crm-insight-panel > i, .agenda-insight-panel > i, .appointment-summary-person .metric-icon, .plan-summary-card .metric-icon, .empty-state > i):has(> .icon-kind-gift) { background: var(--visual-palette-fdecef); }
:is(.dashboard-icon-badge, .employee-center-card-icon, .employee-form-section > header > i, .segment-info > i, .segment-metrics article > i, .segment-guide > i, .crm-campaign-panel > i, .crm-insight-panel > i, .agenda-insight-panel > i, .appointment-summary-person .metric-icon, .plan-summary-card .metric-icon, .empty-state > i):has(> .icon-kind-message) { background: var(--visual-palette-eeecff); }
:is(.dashboard-icon-badge, .employee-center-card-icon, .employee-form-section > header > i, .segment-info > i, .segment-metrics article > i, .segment-guide > i, .crm-campaign-panel > i, .crm-insight-panel > i, .agenda-insight-panel > i, .appointment-summary-person .metric-icon, .plan-summary-card .metric-icon, .empty-state > i):has(> .icon-kind-sparkles) { background: var(--visual-palette-fff4cf); }
:is(.dashboard-icon-badge, .employee-center-card-icon, .employee-form-section > header > i, .segment-info > i, .segment-metrics article > i, .segment-guide > i, .crm-campaign-panel > i, .crm-insight-panel > i, .agenda-insight-panel > i, .appointment-summary-person .metric-icon, .plan-summary-card .metric-icon, .empty-state > i):has(> .icon-kind-star) { background: var(--visual-palette-fff4cf); }
:is(.dashboard-icon-badge, .employee-center-card-icon, .employee-form-section > header > i, .segment-info > i, .segment-metrics article > i, .segment-guide > i, .crm-campaign-panel > i, .crm-insight-panel > i, .agenda-insight-panel > i, .appointment-summary-person .metric-icon, .plan-summary-card .metric-icon, .empty-state > i):has(> :is(.icon-kind-navigation, .icon-kind-mapPin)) { background: var(--visual-palette-e6f0f5); }
:is(.dashboard-icon-badge, .employee-center-card-icon, .employee-form-section > header > i, .segment-info > i, .segment-metrics article > i, .segment-guide > i, .crm-campaign-panel > i, .crm-insight-panel > i, .agenda-insight-panel > i, .appointment-summary-person .metric-icon, .plan-summary-card .metric-icon, .empty-state > i):has(> :is(.icon-kind-chart, .icon-kind-trendingUp, .icon-kind-target)) { background: var(--visual-palette-e5efff); }
:is(.dashboard-icon-badge, .employee-center-card-icon, .employee-form-section > header > i, .segment-info > i, .segment-metrics article > i, .segment-guide > i, .crm-campaign-panel > i, .crm-insight-panel > i, .agenda-insight-panel > i, .appointment-summary-person .metric-icon, .plan-summary-card .metric-icon, .empty-state > i):has(> .icon-kind-rotateCcw) { background: var(--visual-palette-efecfa); }
:is(.dashboard-icon-badge, .employee-center-card-icon, .employee-form-section > header > i, .segment-info > i, .segment-metrics article > i, .segment-guide > i, .crm-campaign-panel > i, .crm-insight-panel > i, .agenda-insight-panel > i, .appointment-summary-person .metric-icon, .plan-summary-card .metric-icon, .empty-state > i):has(> :is(.icon-kind-dollar, .icon-kind-receipt, .icon-kind-cart)) { background: var(--visual-palette-fff1c9); }
.segment-info > i:has(> .icon-kind-users) { color: var(--visual-palette-a56a14); background: var(--visual-palette-fff1c9); }
/* Métricas reutilizadas nas demais páginas seguem a mesma paleta, exceto tons de status explícitos. */
.metric-icon:not([class*="icon-tone"]):has(> .icon-kind-paw) { color: var(--visual-palette-2673a1); background: var(--visual-palette-e5f1ff); }
.metric-icon:not([class*="icon-tone"]):has(> :is(.icon-kind-calendar, .icon-kind-calendarDays, .icon-kind-clock)) { color: var(--visual-palette-b56624); background: var(--visual-palette-fff0df); }
.metric-icon:not([class*="icon-tone"]):has(> :is(.icon-kind-users, .icon-kind-user, .icon-kind-userSearch)) { color: var(--visual-palette-21806a); background: var(--visual-palette-e3f5ef); }
.metric-icon:not([class*="icon-tone"]):has(> .icon-kind-gift) { color: var(--visual-palette-b75263); background: var(--visual-palette-fdecef); }
.metric-icon:not([class*="icon-tone"]):has(> .icon-kind-message) { color: var(--visual-palette-5754b8); background: var(--visual-palette-eeecff); }
.metric-icon:not([class*="icon-tone"]):has(> .icon-kind-sparkles) { color: var(--visual-palette-b66b16); background: var(--visual-palette-fff4cf); }
.metric-icon:not([class*="icon-tone"]):has(> .icon-kind-star) { color: var(--visual-palette-aa7809); background: var(--visual-palette-fff4cf); }
.metric-icon:not([class*="icon-tone"]):has(> :is(.icon-kind-navigation, .icon-kind-mapPin)) { color: var(--visual-palette-315d78); background: var(--visual-palette-e6f0f5); }
.metric-icon:not([class*="icon-tone"]):has(> :is(.icon-kind-chart, .icon-kind-trendingUp, .icon-kind-target)) { color: var(--visual-palette-286fc2); background: var(--visual-palette-e5efff); }
.metric-icon:not([class*="icon-tone"]):has(> .icon-kind-rotateCcw) { color: var(--visual-palette-6d5ab3); background: var(--visual-palette-efecfa); }
.metric-icon:not([class*="icon-tone"]):has(> :is(.icon-kind-dollar, .icon-kind-receipt, .icon-kind-cart)) { color: var(--visual-palette-a56a14); background: var(--visual-palette-fff1c9); }
.metric-card[data-risk-card="expense"] .metric-icon { color: var(--visual-palette-a74740); background: var(--visual-palette-fae6e3); }
.day-card small { color: var(--muted); font-weight: 700; }
.day-card strong { display: flex; align-items: baseline; gap: var(--ds-space-8); min-width: 0; font: 700 var(--ds-font-size-28)/1.05 "Montserrat"; overflow-wrap: anywhere; }
.day-card strong span { font: 700 var(--ds-font-size-12) "Montserrat"; }
.day-card em { align-self: end; color: var(--green-2); font-style: normal; font-size: var(--ds-font-size-11); font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.day-card-wide { --day-ring-space: 112px; padding-right: calc(var(--ds-space-20) + var(--day-ring-space)); }
.home-dashboard .day-free-slots {
  display: flex; gap: var(--ds-space-4); min-width: 0;
  margin-inline-end: calc(-1 * var(--day-ring-space)); overflow-x: auto;
}
.home-dashboard .day-free-slots > span {
  flex: none; padding: var(--ds-space-4) var(--ds-space-8); border-radius: var(--ds-radius-8);
  background: var(--ds-agendamento-surface); color: var(--ds-agendamento-ink);
  font-size: var(--ds-font-size-12); white-space: nowrap;
}
.day-card-statuses { display: flex; flex-wrap: wrap; gap: var(--ds-space-12) var(--ds-space-16); color: #60758a; font-size: var(--ds-font-size-12); font-weight: 700; }
.day-card-statuses span { display: inline-flex; align-items: center; gap: var(--ds-space-4); }
.dot { width: 8px; height: 8px; border-radius: var(--ds-radius-16); display: inline-block; }
.dot-green { background: var(--green-2); }
.dot-purple { background: var(--visual-palette-8062c7); }
.dot-yellow { background: var(--visual-palette-f1ac25); }
.dot-red { background: var(--visual-palette-ef4c4c); }
.occupancy-ring {
  position: absolute; right: 20px; top: 50%; width: 88px; height: 88px; display: grid; place-items: center;
  border-radius: 50%; transform: translateY(-50%);
  background: conic-gradient(from -90deg, var(--green) 0 var(--occupancy), var(--visual-palette-e5ebe6) var(--occupancy) 100%);
  box-shadow: 0 0 0 1px rgba(16, 83, 63, .04);
}
.occupancy-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--visual-color-surface); }
.occupancy-ring-copy { position: relative; z-index: 1; display: grid; justify-items: center; gap: var(--ds-space-4); text-align: center; background: var(--visual-color-surface); }
.occupancy-ring-copy b { font: 700 var(--ds-font-size-22)/1 "Montserrat"; }
.occupancy-ring-copy small { color: #60758a; font-size: var(--ds-font-size-11); font-weight: 500; line-height: 1; }
.dashboard-grid-today { grid-template-columns: 1.1fr .9fr; }
.today-timeline { display: grid; padding: var(--ds-space-8) var(--ds-space-20) var(--ds-space-16); }
.today-timeline-row { position: relative; display: grid; grid-template-columns: 14px 64px 42px minmax(0, 1fr) auto; align-items: center; gap: var(--ds-space-12); padding: var(--ds-space-12) 0; border-bottom: 1px solid var(--visual-palette-f0f1ed); }
.today-timeline-row:last-child { border-bottom: 0; }
.today-timeline-row::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--visual-palette-dce7df); transform: translateX(-50%); }
.today-timeline-row:first-child::before { top: 50%; }
.today-timeline-row:last-child::before { bottom: 50%; }
.timeline-dot { position: relative; z-index: 1; justify-self: center; width: 10px; height: 10px; border-radius: var(--ds-radius-16); background: var(--green-2); }
.status-line-pending .timeline-dot { background: var(--visual-palette-f1ac25); }
.status-line-cancelled .timeline-dot, .status-line-no_show .timeline-dot { background: var(--visual-palette-ef4c4c); }
.today-timeline-row > strong { font: 700 var(--ds-font-size-14) "Montserrat"; }
.today-timeline-row b, .today-timeline-row small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.today-timeline-row small { color: var(--muted); }
.action-panel { background: linear-gradient(135deg, var(--visual-color-surface), var(--visual-palette-fff5f4)); }
.action-list { display: grid; gap: 0; padding: var(--ds-space-12) var(--ds-space-20) var(--ds-space-16); }
.action-list button { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: var(--ds-space-12); padding: var(--ds-space-12) 0; border: 0; border-bottom: 1px solid var(--visual-palette-f0e5e3); color: var(--ink); background: transparent; text-align: left; }
.action-list button:last-child { border-bottom: 0; }
.dashboard-icon-badge { width: var(--icon-badge-size); height: var(--icon-badge-size); display: grid; place-items: center; border-radius: var(--icon-badge-radius); color: var(--green); background: var(--visual-palette-e8f3ec); font-style: normal; }
.action-list strong, .action-list small { display: block; }
.action-list small { color: var(--muted); }
.home-dashboard .action-list .icon-kind-chevronRight { --icon-ink: #60758a; }
.dashboard-grid-bottom { grid-template-columns: 1.05fr .95fr; }
.opportunity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-space-16); padding: var(--ds-space-20) var(--ds-space-20) var(--ds-space-20); }
.opportunity-grid article { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: var(--ds-space-12); min-width: 0; padding: var(--ds-space-16); border-radius: var(--ds-radius-16); background: var(--visual-palette-f6fbf7); }
.opportunity-grid strong, .opportunity-grid small { display: block; }
.opportunity-grid small { margin: var(--ds-space-4) 0 var(--ds-space-12); color: var(--muted); }
.opportunity-grid .button { padding: var(--ds-space-8) var(--ds-space-12); font-size: var(--ds-font-size-12); }
.daily-tip-panel {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--ds-space-16); margin-top: var(--ds-space-20); padding: var(--ds-space-20);
  border: 1px solid var(--visual-palette-cfe2f5); border-radius: var(--ds-radius-16); color: var(--visual-palette-144e86); background: var(--visual-palette-edf7ff);
}
.daily-tip-panel strong { display: inline-flex; align-items: center; gap: var(--ds-space-12); white-space: nowrap; color: var(--visual-color-text); }
.daily-tip-panel strong .dashboard-icon-badge { width: 34px; height: 34px; }
.daily-tip-panel > span { min-width: 0; color: #60758a; }
.daily-tip-panel a { text-decoration: none; }
.goal-panel { display: flex; align-items: end; justify-content: space-between; gap: var(--ds-space-20); margin-bottom: var(--ds-space-20); padding: var(--ds-space-20); }
.goal-panel strong { font: 700 var(--ds-font-size-16) "Montserrat"; }
.goal-panel p { margin: var(--ds-space-8) 0 0; }
.goal-form { display: flex; align-items: end; gap: var(--ds-space-12); }
.goal-form label { display: grid; gap: var(--ds-space-8); color: var(--muted); font-size: var(--ds-font-size-12); font-weight: 700; }
.goal-form input { min-width: 190px; padding: var(--ds-space-12) var(--ds-space-16); border: 1px solid var(--line); border-radius: var(--ds-radius-12); font: inherit; }
.point-integration-panel { align-items: center; border-color: var(--visual-palette-d7e5dc); background: var(--visual-palette-fbfefc); }
.point-integration-panel > div { min-width: 0; }
.integration-status { display: inline-flex; margin-bottom: var(--ds-space-8); padding: var(--ds-space-4) var(--ds-space-8); border-radius: var(--ds-radius-8); color: var(--visual-palette-865f18); background: var(--visual-palette-fff2c7); font-size: var(--ds-font-size-11); font-weight: 700; text-transform: uppercase; }
.integration-status.connected { color: var(--green); background: var(--visual-palette-dff1e5); }
.point-payment-fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ds-space-16); padding: var(--ds-space-16); border: 1px solid var(--visual-palette-cee0d4); border-radius: var(--ds-radius-16); background: var(--visual-palette-f5fbf7); }
.point-payment-fields > div { grid-column: 1 / -1; }
.point-payment-fields strong, .point-payment-fields small { display: block; }
.point-payment-fields small { margin-top: var(--ds-space-4); color: var(--muted); }
.point-connection-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ds-space-12); }
.point-connection-facts span { padding: var(--ds-space-12); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--visual-palette-fafbf8); }
.point-connection-facts small, .point-connection-facts strong { display: block; }
.point-connection-facts small { color: var(--muted); }
.plan-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ds-space-16); margin-top: var(--ds-space-20); }
.plan-summary-card { display: grid; gap: var(--ds-space-8); min-width: 0; padding: var(--ds-space-20) var(--ds-space-20); border: 1px solid var(--line); border-radius: var(--ds-radius-16); background: var(--visual-color-surface); }
.plan-summary-card .metric-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--ds-radius-12); background: var(--visual-palette-edf3ee); color: var(--green); }
.plan-summary-card small { color: var(--muted); font-size: var(--ds-font-size-12); font-weight: 700; }
.plan-summary-card strong { color: var(--ink); font: 700 var(--ds-font-size-16) "Montserrat"; line-height: 1.15; overflow-wrap: anywhere; }
.plan-summary-card span { color: var(--green-2); font-size: var(--ds-font-size-11); font-weight: 700; line-height: 1.2; }
.plan-payment-card .plan-payment-ending { color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 700; white-space: nowrap; }
.plan-payment-card .plan-payment-price { margin-top: var(--ds-space-4); color: var(--green-2); }
.plan-modal-card .plan-summary-grid { gap: var(--ds-space-12); margin-top: var(--ds-space-16); }
.plan-modal-card .plan-summary-card { gap: var(--ds-space-8); padding: var(--ds-space-16) var(--ds-space-20); border-radius: var(--ds-radius-16); }
.plan-benefits-panel { margin-top: var(--ds-space-16); }
.plan-modal-card .plan-benefits-panel .data-table td { padding: var(--ds-space-12) var(--ds-space-20); }
.plan-modal-card .plan-benefits-panel .data-table td:last-child { width: 134px; padding-left: var(--ds-space-8); text-align: right; vertical-align: middle; }
.plan-modal-card .modal-actions { margin-top: var(--ds-space-16); padding-top: var(--ds-space-16); }
.plan-feature-status { min-width: 92px; justify-content: center; white-space: nowrap; }
.plan-feature-status.included { color: var(--visual-palette-2b7658); background: var(--visual-palette-e5f2e9); }
.plan-feature-status.excluded { color: var(--visual-palette-68746d); background: var(--visual-palette-eef0ed); }
.plan-change-notice { display: flex; align-items: flex-start; gap: var(--ds-space-12); margin-top: var(--ds-space-16); padding: var(--ds-space-12) var(--ds-space-16); border: 1px solid var(--visual-palette-b9dce3); border-radius: var(--ds-radius-12); color: var(--visual-palette-315d78); background: var(--visual-palette-f1f9fb); }
.plan-change-notice > .ui-icon { width: 18px; height: 18px; flex: 0 0 18px; margin-top: var(--ds-space-4); }
.plan-change-notice strong, .plan-change-notice span { display: block; }
.plan-change-notice span { font-size: var(--ds-font-size-11); }
.plan-cancellation-notice { border-color: var(--visual-palette-efcfca); color: var(--visual-palette-873d35); background: var(--visual-palette-fff5f3); }
.plan-cancellation-summary { display: flex; align-items: flex-start; gap: var(--ds-space-12); margin-top: var(--ds-space-20); padding: var(--ds-space-16); border: 1px solid var(--visual-palette-efcfca); border-radius: var(--ds-radius-16); background: var(--visual-palette-fff8f6); }
.plan-cancellation-summary > .ui-icon { width: 22px; height: 22px; flex: 0 0 22px; color: var(--visual-palette-a5483e); }
.plan-cancellation-summary strong, .plan-cancellation-summary span { display: block; }
.plan-cancellation-summary strong { color: var(--ink); font-size: var(--ds-font-size-13); }
.plan-cancellation-summary span { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-12); line-height: 1.5; }
.account-billing-panel { margin-top: var(--ds-space-20); }
.account-billing-panel .panel-header p { margin: var(--ds-space-4) 0 0; color: var(--muted); font-size: var(--ds-font-size-12); }
.account-billing-content { padding: var(--ds-space-16) var(--ds-space-24) var(--ds-space-20); }
.account-billing-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ds-space-12); }
.account-billing-details > span { display: grid; gap: var(--ds-space-4); padding: var(--ds-space-16) var(--ds-space-16); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--visual-palette-fafcfb); }
.account-billing-details small { color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 700; }
.account-billing-details strong { color: var(--ink); font: 700 var(--ds-font-size-14) "Montserrat"; }
.account-billing-details .billing-ending { color: var(--visual-palette-a5483e); }
.account-billing-message { display: flex; align-items: flex-start; gap: var(--ds-space-12); margin-top: var(--ds-space-16); padding: var(--ds-space-12) var(--ds-space-16); border-radius: var(--ds-radius-12); }
.account-billing-message.ending { border: 1px solid var(--visual-palette-efcfca); color: var(--visual-palette-873d35); background: var(--visual-palette-fff5f3); }
.account-billing-message > .ui-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.account-billing-message strong, .account-billing-message span { display: block; }
.account-billing-message span { font-size: var(--ds-font-size-11); }
.account-billing-actions { display: flex; justify-content: flex-end; gap: var(--ds-space-12); margin-top: var(--ds-space-12); }

/* Configurações: navegação local e agrupamento por contexto. */
.settings-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--ds-space-24); align-items: start; }
.settings-sidebar { position: sticky; top: 98px; display: grid; gap: var(--ds-space-16); min-width: 0; }
.settings-nav { display: grid; gap: var(--ds-space-4); padding: var(--ds-space-8); border: 1px solid rgba(11,45,77,.09); border-radius: var(--radius); background: var(--visual-color-surface); box-shadow: 0 8px 28px rgba(11,45,77,.045); }
.settings-nav button { display: grid; width: 100%; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: var(--ds-space-12); padding: var(--ds-space-12); border: 0; border-radius: var(--ds-radius-12); color: var(--visual-palette-5e7180); background: transparent; text-align: left; cursor: pointer; transition: color .18s, background .18s; }
.settings-nav button:hover, .settings-nav button:focus-visible { color: var(--brand-dark); background: var(--visual-palette-eaf8f6); outline: 0; }
.settings-nav button > .ui-icon { width: 18px; height: 18px; justify-self: center; color: var(--brand-secondary); }
.settings-nav button span, .settings-nav button strong, .settings-nav button small { display: block; min-width: 0; }
.settings-nav button strong { color: inherit; font-size: var(--ds-font-size-12); }
.settings-nav button small { margin-top: var(--ds-space-4); color: var(--visual-color-muted); font-size: var(--ds-font-size-11); }
.settings-plan-summary { display: grid; gap: var(--ds-space-4); padding: var(--ds-space-16); border-radius: var(--ds-radius-12); color: var(--visual-palette-d8e9ef); background: linear-gradient(145deg, var(--brand-dark), var(--visual-palette-124a61)); }
.settings-plan-summary small { color: var(--visual-palette-9fc2ce); font-size: var(--ds-font-size-11); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.settings-plan-summary strong { color: var(--visual-color-surface); font: 700 var(--ds-font-size-16) "Montserrat"; }
.settings-plan-summary span { font-size: var(--ds-font-size-11); line-height: 1.4; }
.settings-content { display: grid; gap: var(--ds-space-20); min-width: 0; }
.settings-section, .settings-table-panel { scroll-margin-top: 98px; }
.settings-section { min-width: 0; }
.settings-section-header { display: flex; align-items: flex-start; gap: var(--ds-space-12); padding: var(--ds-space-20) var(--ds-space-24); border-bottom: 1px solid var(--line); }
.settings-section-header > i { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: var(--ds-radius-12); color: var(--brand-secondary); background: var(--visual-palette-e7f6f4); font-style: normal; }
.settings-section-header > i .ui-icon { width: 19px; height: 19px; }
.settings-section-header h2 { margin: 0; color: var(--brand-dark); font: 700 var(--ds-font-size-16) "Montserrat"; }
.settings-section-header p { margin: var(--ds-space-4) 0 0; color: var(--muted); font-size: var(--ds-font-size-11); line-height: 1.45; }
.settings-form { padding: 0 var(--ds-space-24) var(--ds-space-24); }
.settings-identity-card { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: var(--ds-space-12); margin: var(--ds-space-24) 0 var(--ds-space-4); padding: var(--ds-space-16); border: 1px solid var(--visual-palette-dce8e4); border-radius: var(--ds-radius-12); background: var(--visual-palette-f7fbf9); }
.settings-company-avatar { display: grid; width: 54px; height: 54px; place-items: center; overflow: hidden; border-radius: var(--ds-radius-16); color: var(--green); background: var(--mint); font: 700 var(--ds-font-size-16) "Montserrat"; }
.settings-company-avatar img { width: 100%; height: 100%; object-fit: contain; background: var(--visual-color-surface); }
.settings-identity-card strong, .settings-identity-card small { display: block; }
.settings-identity-card strong { color: var(--brand-dark); font: 700 var(--ds-font-size-14) "Montserrat"; }
.settings-identity-card small { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); }
.settings-fieldset { min-width: 0; margin: var(--ds-space-24) 0 0; padding: var(--ds-space-24) 0 0; border: 0; border-top: 1px solid var(--visual-palette-e8eeeb); }
.settings-fieldset legend { padding: 0 var(--ds-space-12) 0 0; color: var(--brand-dark); font: 700 var(--ds-font-size-12) "Montserrat"; letter-spacing: .025em; text-transform: uppercase; }
.settings-form-grid { margin-top: var(--ds-space-4); }
.settings-form-grid label { min-width: 0; }
.settings-form-grid label > small { display: block; margin-top: var(--ds-space-4); line-height: 1.4; }
.settings-address-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.settings-street-field { grid-column: span 2; }
.settings-three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.settings-check-card { display: flex; align-items: flex-start; gap: var(--ds-space-12); min-width: 0; padding: var(--ds-space-16); border: 1px solid var(--visual-palette-dce6e2); border-radius: var(--ds-radius-12); background: var(--visual-palette-fafcfb); cursor: pointer; }
.settings-check-card:has(input:checked) { border-color: var(--visual-palette-91c6b1); background: var(--visual-palette-f0f8f3); }
.settings-check-card input[type="checkbox"] { width: 17px; height: 17px; flex: 0 0 17px; margin: var(--ds-space-4) 0 0; padding: 0; accent-color: var(--green); }
.settings-check-card span, .settings-check-card strong, .settings-check-card small { display: block; min-width: 0; }
.settings-check-card strong { color: var(--ink); font-size: var(--ds-font-size-12); }
.settings-check-card small { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 500; line-height: 1.45; }
.settings-form-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-16); margin-top: var(--ds-space-24); padding-top: var(--ds-space-20); border-top: 1px solid var(--visual-palette-e8eeeb); }
.settings-form-actions > span { color: var(--muted); font-size: var(--ds-font-size-11); }
.settings-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-space-20); scroll-margin-top: 98px; }
.settings-account-card { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: var(--ds-space-12); padding: var(--ds-space-20) var(--ds-space-24); }
.settings-account-card strong, .settings-account-card small { display: block; }
.settings-account-card strong { color: var(--ink); font-size: var(--ds-font-size-12); }
.settings-account-card small { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); overflow-wrap: anywhere; }
.settings-compact-form { display: grid; gap: var(--ds-space-12); padding: var(--ds-space-20) var(--ds-space-24) var(--ds-space-20); }
.settings-verification { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-12); padding: var(--ds-space-12); border-radius: var(--ds-radius-12); color: var(--visual-palette-785912); background: var(--visual-palette-fff7df); }
.settings-verification strong, .settings-verification small { display: block; }
.settings-verification strong { font-size: var(--ds-font-size-11); }
.settings-verification small { margin-top: var(--ds-space-4); font-size: var(--ds-font-size-11); }
.settings-inline-action { display: flex; justify-content: flex-end; }
.settings-section.account-billing-panel { margin-top: 0; }
.settings-users-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-space-12); padding: var(--ds-space-20) var(--ds-space-24); }
.settings-user-row { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-12); padding: var(--ds-space-12); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--visual-palette-fafcfb); }
.settings-subsection { padding: var(--ds-space-20) var(--ds-space-24) var(--ds-space-24); border-top: 1px solid var(--line); }
.settings-subsection-heading h3 { margin: 0; color: var(--brand-dark); font: 700 var(--ds-font-size-14) "Montserrat"; }
.settings-subsection-heading p { margin: var(--ds-space-4) 0 var(--ds-space-16); color: var(--muted); font-size: var(--ds-font-size-11); }
.settings-profile-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.settings-profile-form { margin-top: var(--ds-space-16); padding-top: var(--ds-space-16); }
.settings-agenda-form { padding: 0 var(--ds-space-24) var(--ds-space-24); }
.settings-agenda-form > .form-stack { gap: var(--ds-space-16); margin-top: 0; padding-top: var(--ds-space-20); }
.settings-agenda-form > .form-stack > p { margin: 0; }
.settings-table-panel { overflow-x: auto; }

@media (max-width: 1180px) {
  .settings-layout { grid-template-columns: 1fr; }
  .settings-sidebar { position: static; }
  .settings-nav { display: flex; overflow-x: auto; padding: var(--ds-space-8); scrollbar-width: none; }
  .settings-nav::-webkit-scrollbar { display: none; }
  .settings-nav button { width: auto; min-width: max-content; grid-template-columns: 26px auto; padding: var(--ds-space-8) var(--ds-space-12); }
  .settings-nav button small { display: none; }
  .settings-plan-summary { display: none; }
}

@media (max-width: 760px) {
  .settings-card-grid, .settings-users-list, .settings-profile-list { grid-template-columns: 1fr; }
  .settings-three-columns, .settings-address-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-street-field { grid-column: auto; }
  .settings-account-card { grid-template-columns: 40px minmax(0, 1fr); }
  .settings-account-card .button { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 560px) {
  .settings-section-header, .settings-form, .settings-account-card, .settings-compact-form, .settings-users-list, .settings-subsection, .settings-agenda-form { padding-right: var(--ds-space-16); padding-left: var(--ds-space-16); }
  .settings-form-grid, .settings-three-columns, .settings-address-grid { grid-template-columns: 1fr; }
  .settings-form-grid > .span-2, .settings-street-field { grid-column: auto; }
  .settings-identity-card { grid-template-columns: 46px minmax(0, 1fr); }
  .settings-company-avatar { width: 46px; height: 46px; }
  .settings-identity-card .button { grid-column: 1 / -1; width: 100%; }
  .settings-form-actions, .settings-verification { align-items: stretch; flex-direction: column; }
  .settings-form-actions .button, .settings-verification .button, .settings-inline-action .button { width: 100%; }
  .settings-inline-action { display: block; }
}
.unit-row-inactive { background: var(--visual-palette-f8faf9); }
.unit-row-inactive > td:not(:last-child) { opacity: .65; }
.unit-row-actions { display: flex; justify-content: flex-end; gap: var(--ds-space-8); white-space: nowrap; }
@media (max-width: 620px) {
  .account-billing-details { grid-template-columns: 1fr; }
  .account-billing-actions { align-items: stretch; flex-direction: column; }
  .account-billing-actions .button { width: 100%; }
}
.plan-change-options { display: grid; gap: var(--ds-space-12); margin-top: var(--ds-space-20); }
.plan-change-option { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: var(--ds-space-12); padding: var(--ds-space-16); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--visual-color-surface); cursor: pointer; }
.plan-change-option:has(input:checked) { border-color: var(--brand-primary); background: var(--visual-palette-f1fbf9); box-shadow: 0 0 0 2px rgba(15,179,158,.11); }
.plan-change-option > input { width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--brand-primary); }
.plan-change-option > span { min-width: 0; }
.plan-change-option span > small, .plan-change-option span > strong, .plan-change-option span > em { display: block; }
.plan-change-option span > small { color: var(--green-2); font-size: var(--ds-font-size-11); text-transform: uppercase; letter-spacing: .06em; }
.plan-change-option span > strong { margin-top: var(--ds-space-4); color: var(--ink); font: 700 var(--ds-font-size-16) "Montserrat"; }
.plan-change-option span > em { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); font-style: normal; font-weight: 500; }
.plan-change-option > b { color: var(--ink); font: 700 var(--ds-font-size-16) "Montserrat"; white-space: nowrap; }
.plan-change-option > b small { color: var(--muted); font-size: var(--ds-font-size-11); }
.plan-change-impact { display: grid; gap: var(--ds-space-4); margin-top: var(--ds-space-12); padding: var(--ds-space-12) var(--ds-space-16); border-radius: var(--ds-radius-12); color: var(--visual-palette-315d78); background: var(--visual-palette-f1f6f8); }
.plan-change-impact strong { font-size: var(--ds-font-size-12); }
.plan-change-impact span { color: var(--muted); font-size: var(--ds-font-size-11); }
.dashboard-grid { display: grid; grid-template-columns: 1.45fr .8fr; gap: var(--ds-space-20); margin-top: var(--ds-space-20); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 0 rgba(0,0,0,.01); overflow: hidden; }
.panel-header { display: flex; align-items: center; justify-content: space-between; padding: var(--ds-space-20) var(--ds-space-24); border-bottom: 1px solid var(--line); }
.panel-header h2 { margin: 0; font: 700 var(--ds-font-size-16) "Montserrat"; }
.panel-header a, .text-button { color: var(--visual-color-primary); border: 0; background: transparent; text-decoration: none; font-weight: 700; font-size: var(--ds-font-size-12); }
.appointment-list { display: grid; }
.appointment-row { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: var(--ds-space-16); padding: var(--ds-space-16) var(--ds-space-24); border-bottom: 1px solid var(--visual-palette-f0f1ed); }
.appointment-row:last-child { border: 0; }
.appointment-time { font: 700 var(--ds-font-size-16) "Montserrat"; }
.appointment-main { display: flex; align-items: center; gap: var(--ds-space-12); min-width: 0; }
.pet-avatar { width: 40px; height: 40px; aspect-ratio: 1; box-sizing: border-box; flex: 0 0 40px; display: grid; place-items: center; overflow: hidden; border-radius: var(--ds-radius-12); background: var(--mint); color: var(--green); font-weight: 700; line-height: 1; }
.pet-photo-button { padding: 0; border: 0; font-size: var(--ds-font-size-16); cursor: pointer; }
.pet-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: inherit; }
.detail-list { display: grid; margin-top: var(--ds-space-24); }
.detail-row {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--ds-space-12) var(--ds-space-20);
  min-width: 0;
  padding: var(--ds-space-16) var(--ds-space-24);
  border-bottom: 1px solid var(--visual-palette-f0f1ed);
}
.detail-row:last-child { border-bottom: 0; }
.detail-row > strong { color: var(--ink); font: 700 var(--ds-font-size-14) "Montserrat"; white-space: nowrap; }
.detail-row > small { color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.detail-row .status, .detail-meta { justify-self: end; }
.detail-row-supplier-product { grid-template-columns: minmax(0, 1fr) auto; gap: var(--ds-space-4) var(--ds-space-16); }
.detail-row-supplier-product > strong { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.detail-row-supplier-product > small { grid-column: 1; }
.detail-row-supplier-product > .icon-button { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.detail-meta { font: 700 var(--ds-font-size-14) "Montserrat"; }
.detail-row-profile { grid-template-columns: 64px minmax(0, 1fr) auto; }
.detail-profile-copy { min-width: 0; }
.detail-profile-copy strong, .detail-profile-copy small { display: block; }
.detail-profile-copy strong { color: var(--ink); font: 700 var(--ds-font-size-14) "Montserrat"; }
.detail-profile-copy small { margin-top: var(--ds-space-4); color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.filter-summary {
  margin: -8px 0 var(--ds-space-20); padding: var(--ds-space-12) var(--ds-space-16); border: 1px solid var(--visual-palette-cfe0d4); border-radius: var(--ds-radius-12);
  color: var(--green); background: var(--visual-palette-edf5ef); font-weight: 700;
}
.appointment-main strong, .appointment-main small { display: block; }
.appointment-main small { color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: var(--ds-space-8); padding: var(--ds-space-4) var(--ds-space-8); border-radius: var(--ds-radius-12); font-size: var(--ds-font-size-11); font-weight: 700; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-confirmed { color: var(--visual-palette-684ba9); background: var(--visual-palette-efe9fb); }
.status-completed, .status-active, .status-enabled { color: var(--visual-palette-2b7658); background: var(--visual-palette-e5f2e9); }
.status-pending { color: var(--visual-palette-8a6618); background: var(--visual-palette-fff3cf); }
.status-cancelled, .status-failed, .status-inactive, .status-disabled { color: var(--visual-palette-a74740); background: var(--visual-palette-fae6e3); }
.status-in_progress, .status-open { color: var(--visual-palette-30628d); background: var(--visual-palette-e5eff8); }
.status-read { color: var(--visual-palette-68746d); background: var(--visual-palette-eef0ed); }
.status-unread { color: var(--visual-palette-2b7658); background: var(--visual-palette-e5f2e9); }
.notification-type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-space-16); margin-bottom: var(--ds-space-20); }
.notification-type-grid.single { grid-template-columns: minmax(0, 1fr); }
.notification-type-card { padding: var(--ds-space-20); border: 1px solid var(--line); border-radius: var(--radius); background: var(--visual-color-surface); color: var(--ink); text-align: left; cursor: pointer; }
.notification-type-card.internal { border-left: 5px solid var(--green); }
.notification-type-card.client { border-left: 5px solid var(--yellow); }
.notification-type-card.active { box-shadow: 0 0 0 2px rgba(16, 83, 63, .12); }
.notification-type-card h2 { margin: 0 0 var(--ds-space-8); font: 700 var(--ds-font-size-16) "Montserrat"; }
.notification-type-card p { margin: 0 0 var(--ds-space-16); color: var(--muted); }
.notification-type-card strong { font: 700 var(--ds-font-size-28) "Montserrat"; }
.notification-type-card small { color: var(--muted); font-size: var(--ds-font-size-12); }
.notification-toolbar-copy { display: block; margin-top: var(--ds-space-4); }
.notification-unread-row { background: var(--visual-palette-f7fbf8); }
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ds-space-12); padding: var(--ds-space-20); }
.quick-action { min-height: 106px; padding: var(--ds-space-16); border: 0; border-radius: var(--ds-radius-16); color: var(--ink); text-align: left; }
.quick-action.quick-pet { background: var(--visual-palette-e9f5ee); }
.quick-action.quick-sale { background: var(--visual-palette-e9eef8); }
.quick-action.quick-product { background: var(--visual-palette-fff2c8); }
.quick-action.quick-service { background: var(--visual-palette-f4e8f7); }
.quick-action i { display: block; margin-bottom: var(--ds-space-20); font-style: normal; }
.quick-action i .ui-icon { width: 25px; height: 25px; }
.home-dashboard .quick-action > .ui-icon-tile { display: grid; margin-bottom: var(--ds-space-20); }
.quick-pet i { color: var(--visual-palette-177552); }
.quick-sale i { color: var(--visual-palette-175da4); }
.quick-product i { color: var(--visual-palette-c96a16); }
.quick-service i { color: var(--visual-palette-7c3bb8); }
.quick-action strong { font-size: var(--ds-font-size-12); }
.insight-card { margin: 0 var(--ds-space-20) var(--ds-space-20); padding: var(--ds-space-20); border-radius: var(--ds-radius-16); color: var(--visual-color-surface); background: var(--yellow); }
.insight-card.stock-alert { color: var(--visual-palette-9a2f28); background: var(--visual-palette-ffe8e5); border: 1px solid var(--visual-palette-f2b8b1); }
.insight-card small { color: inherit; opacity: .78; }
.insight-card strong { display: block; margin: var(--ds-space-8) 0 var(--ds-space-4); font: 700 var(--ds-font-size-16) "Montserrat"; }

.table-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--visual-color-surface); overflow: hidden; }
.unit-metrics { margin-bottom: var(--ds-space-20); }
.unit-metrics .metric-card > strong { font-size: var(--ds-font-size-28); }
.unit-metrics .metric-card:has(.fo-info:is(:hover, :focus)),
.unit-table-panel:has(.fo-info:is(:hover, :focus)) { overflow: visible; }
.unit-metrics .fo-info::after, .unit-table .fo-info::after { bottom: auto; top: 22px; }
.unit-metrics .fo-info::after { left: 0; transform: none; }
.unit-table-panel td:first-child strong, .unit-table-panel td:first-child small { display: block; overflow-wrap: anywhere; }
.unit-table-panel td:first-child small { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-12); }
.unit-table-panel td:last-child { width: 130px; text-align: right; }
.supplier-list-controls { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(180px, 260px) auto; gap: var(--ds-space-12); align-items: end; margin: -6px 0 var(--ds-space-16); }
.supplier-list-controls .client-search-field { max-width: none; }
.supplier-order-field { display: grid; gap: var(--ds-space-8); color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 700; }
.supplier-order-field select { min-height: 42px; }
.supplier-filter-panel { display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)) auto; gap: var(--ds-space-12); align-items: end; margin: 0 0 var(--ds-space-12); padding: var(--ds-space-16); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--content-subtle); }
.supplier-filter-panel label { display: grid; gap: var(--ds-space-8); min-width: 0; color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 700; }
.supplier-filter-panel select { min-height: 40px; }
.product-list-controls { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(180px, 260px) auto; gap: var(--ds-space-12); align-items: end; margin: -6px 0 var(--ds-space-16); }
.product-list-controls .client-search-field { max-width: none; }
.product-filter-panel { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)) auto; gap: var(--ds-space-12); align-items: end; margin: 0 0 var(--ds-space-12); padding: var(--ds-space-16); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--content-subtle); }
.product-filter-panel label { display: grid; gap: var(--ds-space-8); min-width: 0; color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 700; }
.product-filter-panel select { min-height: 40px; }
.product-filter-panel[hidden] { display: none; }
@media (max-width: 1023px) {
  .product-list-controls { grid-template-columns: minmax(0, 1fr) auto; }
  .product-list-controls .client-search-field { grid-column: 1 / -1; }
  .product-filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-filter-panel select { width: 100%; min-width: 0; }
  .product-filter-panel [data-clear-product-filters] { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 480px) {
  .product-filter-panel { grid-template-columns: minmax(0, 1fr); }
}
.product-stock strong, .product-stock small { display: block; }
.product-stock .product-in-use { margin: var(--ds-space-4) 0; color: var(--visual-palette-2774a9); font-weight: 700; }
.product-usage { display: inline-flex; align-items: center; gap: var(--ds-space-8); padding: var(--ds-space-8) var(--ds-space-8); border-radius: var(--ds-radius-16); color: var(--visual-palette-2b7658); background: var(--visual-palette-e5f2e9); font-size: var(--ds-font-size-11); font-weight: 700; white-space: nowrap; }
.product-usage.operational { color: var(--visual-palette-3971a1); background: var(--visual-palette-e5eff8); }
.product-usage.sale_and_operational { color: var(--visual-palette-684ba9); background: var(--visual-palette-efe9fb); }
.product-usage .ui-icon { width: 14px; height: 14px; }
.movement-list-controls { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(150px, 220px) minmax(150px, 220px) auto; gap: var(--visual-space-3); align-items: end; margin: -6px 0 var(--visual-space-px-14); }
.movement-list-controls .client-search-field { max-width: none; }
@media (max-width: 900px) {
  .movement-list-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .movement-list-controls .client-search-field { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .movement-list-controls { grid-template-columns: minmax(0, 1fr); }
  .movement-list-controls .client-search-field { grid-column: auto; }
}
.movement-filter-panel { display: flex; gap: var(--visual-space-px-10); align-items: end; overflow-x: auto; margin: 0 0 var(--visual-space-px-14); padding: var(--visual-space-px-15); border: 1px solid var(--line); border-radius: var(--visual-radius-control); background: var(--content-subtle); }
.movement-filter-panel label { display: grid; flex: 0 0 145px; gap: var(--visual-space-px-6); color: var(--muted); font-size: var(--visual-font-size-caption); font-weight: 700; }
.movement-filter-panel label:nth-child(2) { flex-basis: 170px; }
.movement-filter-panel select { min-height: 40px; min-width: 0; }
.movement-filter-panel .button { flex: none; min-height: 40px; white-space: nowrap; }
.movement-clear { flex: none; padding: var(--ds-space-8) var(--ds-space-4); border: 0; color: var(--green); background: transparent; font: 700 var(--ds-font-size-11) "Montserrat"; white-space: nowrap; cursor: pointer; }
.movement-table td > small, .movement-table td > strong { display: block; }
.movement-type { display: inline-flex; align-items: center; gap: var(--ds-space-8); padding: var(--ds-space-8) var(--ds-space-8); border-radius: var(--ds-radius-16); font-size: var(--ds-font-size-11); font-weight: 700; white-space: nowrap; }
.movement-type::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.movement-type.in { color: var(--visual-palette-2b7658); background: var(--visual-palette-e5f2e9); }
.movement-type.out { color: var(--visual-palette-b5443f); background: var(--visual-palette-fae6e3); }
.movement-type.operational { color: var(--visual-palette-3971a1); background: var(--visual-palette-e5eff8); }
.movement-type.adjustment { color: var(--visual-palette-9b6811); background: var(--visual-palette-fff3dc); }
.movement-quantity { white-space: nowrap; }
.movement-quantity.positive { color: var(--visual-palette-27805a); }
.movement-quantity.negative { color: var(--visual-palette-cf3931); }
.movement-user { display: flex; align-items: center; gap: var(--ds-space-8); min-width: 120px; font-size: var(--ds-font-size-11); font-weight: 700; }
.movement-user span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; color: var(--visual-palette-4d5b54); background: var(--visual-palette-edf0ed); font-size: var(--ds-font-size-11); }
.movement-page-size { display: flex; align-items: center; gap: var(--ds-space-8); color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 700; }
.movement-page-size select { width: 66px; min-height: 34px; }
.supplier-filter-chips { display: flex; flex-wrap: wrap; gap: var(--ds-space-8); margin: 0 0 var(--ds-space-16); }
.supplier-filter-chips button { display: inline-flex; align-items: center; gap: var(--ds-space-4); min-height: 30px; padding: var(--ds-space-4) var(--ds-space-12); border: 0; border-radius: var(--ds-radius-16); color: var(--green); background: var(--visual-palette-e8f2eb); font: 700 var(--ds-font-size-11) "Montserrat"; cursor: pointer; }
.supplier-filter-chips .ui-icon { width: 13px; height: 13px; }
.supplier-filter-chips .supplier-clear-all { padding: var(--ds-space-4) var(--ds-space-4); color: var(--green); background: transparent; }
.supplier-avatar { color: var(--green); background: linear-gradient(135deg, var(--visual-palette-dceee4), var(--visual-palette-c5e0d1)); }
.supplier-categories { display: flex; flex-wrap: wrap; gap: var(--ds-space-8); }
.supplier-categories span { padding: var(--ds-space-4) var(--ds-space-8); border-radius: var(--ds-radius-16); color: var(--visual-palette-466359); background: var(--visual-palette-eaf2eb); font-size: var(--ds-font-size-11); font-weight: 700; white-space: nowrap; }
.supplier-categories span:nth-child(2) { color: var(--visual-palette-38647f); background: var(--visual-palette-e6f0f8); }
.supplier-categories .supplier-category-more { color: var(--ink); background: var(--visual-palette-f3f4f2); }
.supplier-products-link { padding: 0; border: 0; color: var(--green); background: transparent; font: 700 var(--ds-font-size-12) "Montserrat"; cursor: pointer; }
.supplier-actions { min-width: 190px; }
.supplier-start-options { display: grid; gap: var(--ds-space-12); margin-top: var(--ds-space-24); }
.supplier-start-options button { display: grid; grid-template-columns: 36px 1fr; gap: var(--ds-space-4) var(--ds-space-12); padding: var(--ds-space-16); border: 1px solid var(--line); border-radius: var(--ds-radius-12); color: var(--ink); background: var(--visual-color-surface); text-align: left; cursor: pointer; }
.supplier-start-options button:hover { border-color: var(--visual-palette-9cc8ad); background: var(--visual-palette-f7fbf8); }
.supplier-start-options .ui-icon { grid-row: span 2; align-self: center; width: 21px; height: 21px; color: var(--green); }
.supplier-start-options strong { font: 700 var(--ds-font-size-13) "Montserrat"; }
.supplier-start-options small { color: var(--muted); line-height: 1.4; }
.modal-card.client-create-modal-card:has(.supplier-form) { width: min(1120px, 100%); padding: var(--ds-space-24); }
.modal-card.client-create-modal-card:has(.product-create-form) { width: min(1040px, 100%); padding: var(--ds-space-24); overflow-x: hidden; }
.product-create-form { display: grid; gap: var(--ds-space-16); }
.product-form-section { padding: var(--ds-space-20); border: 1px solid var(--line); border-radius: var(--ds-radius-16); background: var(--visual-color-surface); }
.product-form-section h3 { display: flex; align-items: center; gap: var(--ds-space-8); margin: 0 0 var(--ds-space-16); font: 700 var(--ds-font-size-16) "Montserrat"; }
.product-form-section h3 .ui-icon { width: 20px; color: var(--green); }
.product-form-section h3 b { color: var(--danger); }
.product-form-section h3 small { color: var(--muted); font: 700 var(--ds-font-size-12) "Montserrat"; }
.product-form-section > p { margin: -7px 0 var(--ds-space-16); color: var(--muted); font-size: var(--ds-font-size-12); }
.product-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ds-space-16) var(--ds-space-20); }
.product-form-grid label { display: grid; gap: var(--ds-space-8); color: var(--visual-palette-435047); font-size: var(--ds-font-size-12); font-weight: 700; }
.product-form-grid label > small { color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 600; line-height: 1.4; }
.product-usage-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ds-space-12); }
.product-usage-option { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: var(--ds-space-12); min-height: 132px; padding: var(--ds-space-16); border: 1px solid var(--line); border-radius: var(--ds-radius-12); color: var(--ink); background: var(--visual-color-surface); text-align: left; cursor: pointer; }
.product-usage-option:hover { border-color: var(--visual-palette-8cbba0); background: var(--visual-palette-fbfdfb); }
.product-usage-option.selected { border: 2px solid var(--green); padding: var(--ds-space-16); background: var(--visual-palette-fcfffc); box-shadow: 0 0 0 2px rgba(31, 103, 75, .06); }
.product-usage-option i { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: var(--visual-palette-287351); background: var(--visual-palette-e9f4ed); }
.product-usage-option:nth-child(2) i { color: var(--visual-palette-3971a1); background: var(--visual-palette-e9f1fa); }
.product-usage-option:nth-child(3) i { color: var(--visual-palette-684ba9); background: var(--visual-palette-f1ecfb); }
.product-usage-option i .ui-icon { width: 22px; height: 22px; }
.product-usage-option span { display: grid; align-content: center; gap: var(--ds-space-4); }
.product-usage-option strong { font: 700 var(--ds-font-size-13) "Montserrat"; }
.product-usage-option small { color: var(--muted); font-size: var(--ds-font-size-11); line-height: 1.4; }
.product-form-note, .product-form-success { display: flex; align-items: center; gap: var(--ds-space-8); margin-top: var(--ds-space-16); padding: var(--ds-space-12) var(--ds-space-12); border-radius: var(--ds-radius-8); color: var(--visual-palette-396e9e); background: var(--visual-palette-eaf3fb); font-size: var(--ds-font-size-11); font-weight: 700; }
.product-form-success { color: var(--visual-palette-3f7657); background: var(--visual-palette-eef7f0); }
.product-form-note .ui-icon, .product-form-success .ui-icon { width: 18px; flex: none; }
.product-prices { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 680px; }
.supplier-product-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.product-form-actions { position: sticky; z-index: 2; bottom: -24px; margin: 0 -24px -24px; padding: var(--ds-space-16) var(--ds-space-24); background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); }
.supplier-form-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--ds-space-16); margin-bottom: var(--ds-space-20); }
.supplier-form-header h2 { margin: 0 0 var(--ds-space-4); }
.supplier-form-header p, .supplier-form-section > p { margin: 0; color: var(--muted); font-size: var(--ds-font-size-13); }
.supplier-form { display: grid; gap: var(--ds-space-12); }
.supplier-form-section { padding: var(--ds-space-20); border: 1px solid var(--line); border-radius: var(--ds-radius-16); background: var(--visual-color-surface); }
.supplier-form-section h3 { margin: 0 0 var(--ds-space-8); font: 700 var(--ds-font-size-14) "Montserrat"; }
.supplier-form-section h3 small { color: var(--muted); font: 700 var(--ds-font-size-12) "Montserrat"; }
.supplier-form .form-grid { margin-top: var(--ds-space-16); }
.supplier-origin-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ds-space-12); margin-top: var(--ds-space-16); }
.supplier-origin-options button { display: grid; grid-template-columns: 40px 1fr auto; gap: var(--ds-space-12); min-height: 94px; padding: var(--ds-space-16); border: 1px solid var(--line); border-radius: var(--ds-radius-12); color: var(--ink); background: var(--visual-color-surface); text-align: left; cursor: pointer; }
.supplier-origin-options button.active { border-color: var(--visual-palette-559578); background: var(--visual-palette-f7fbf8); box-shadow: inset 0 0 0 1px rgba(54,122,88,.14); }
.supplier-origin-options i { display: grid; width: 40px; height: 40px; place-items: center; border-radius: var(--ds-radius-8); color: var(--green); background: var(--visual-palette-e9f4ed); }
.supplier-origin-options button:nth-child(2) i { color: var(--visual-palette-b56d16); background: var(--visual-palette-fff0df); }
.supplier-origin-options button:nth-child(3) i { color: var(--visual-palette-7253a4); background: var(--visual-palette-f0ebfa); }
.supplier-origin-options i .ui-icon { width: 21px; height: 21px; }
.supplier-origin-options span { display: grid; align-content: center; gap: var(--ds-space-4); }
.supplier-origin-options strong { font: 700 var(--ds-font-size-13) "Montserrat"; }
.supplier-origin-options small { color: var(--muted); font-size: var(--ds-font-size-11); line-height: 1.45; }
.supplier-origin-options b { width: 18px; height: 18px; border: 1px solid var(--visual-palette-cad1cd); border-radius: 50%; }
.supplier-origin-options .active b { border: 5px solid var(--visual-palette-438a69); }
.supplier-origin-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--ds-space-12); align-items: end; margin-top: var(--ds-space-16); padding: var(--ds-space-16); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--visual-palette-fbfcfa); }
.supplier-origin-input label { display: grid; gap: var(--ds-space-8); color: var(--visual-palette-526158); font-size: var(--ds-font-size-11); font-weight: 700; }
.supplier-origin-input small { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--ds-space-8); color: var(--muted); font-size: var(--ds-font-size-11); }
.supplier-origin-input small .ui-icon { width: 15px; height: 15px; color: var(--green); }
.supplier-enrichment-feedback { display: grid; gap: var(--ds-space-8); margin-top: var(--ds-space-12); padding: var(--ds-space-12) var(--ds-space-16); border: 1px solid var(--visual-palette-cfe2d6); border-radius: var(--ds-radius-12); color: var(--visual-palette-315f49); background: var(--visual-palette-f0f8f3); }
.supplier-enrichment-feedback > div { display: flex; align-items: flex-start; gap: var(--ds-space-8); }
.supplier-enrichment-feedback .ui-icon { width: 18px; height: 18px; margin-top: var(--ds-space-4); }
.supplier-enrichment-feedback strong, .supplier-enrichment-feedback small { display: block; }
.supplier-enrichment-feedback strong { font: 700 var(--ds-font-size-11) "Montserrat"; }
.supplier-enrichment-feedback small { margin-top: var(--ds-space-4); color: var(--visual-palette-607269); font-size: var(--ds-font-size-11); line-height: 1.45; }
.supplier-enrichment-feedback p { margin: 0 0 0 var(--ds-space-24); color: var(--visual-palette-8a6818); font-size: var(--ds-font-size-11); }
.supplier-enrichment-feedback.confidence-low { border-color: var(--visual-palette-ead9ad); color: var(--visual-palette-8a6818); background: var(--visual-palette-fff9e9); }
.supplier-address-grid { grid-template-columns: .7fr auto 1.45fr 1.45fr; }
.supplier-address-grid .supplier-cep-action { width: 110px; }
.supplier-address-grid .supplier-cep-action .button { min-height: 42px; padding: var(--ds-space-8) var(--ds-space-12); white-space: nowrap; }
.supplier-categories-input { display: grid; gap: var(--ds-space-8); padding: 0; border: 0; }
.supplier-categories-input legend { margin-bottom: var(--ds-space-8); color: var(--visual-palette-526158); font-size: var(--ds-font-size-11); font-weight: 700; }
.supplier-categories-input > div { display: flex; flex-wrap: wrap; gap: var(--ds-space-8); }
.supplier-categories-input label { display: flex; align-items: center; gap: var(--ds-space-4); padding: var(--ds-space-8) var(--ds-space-8); border: 1px solid var(--line); border-radius: var(--ds-radius-8); color: var(--ink); font-size: var(--ds-font-size-11); }
.supplier-categories-input input { accent-color: var(--green); }
.supplier-form-footer { position: sticky; z-index: 2; bottom: -22px; display: flex; justify-content: flex-end; gap: var(--ds-space-12); margin: 0 -22px -22px; padding: var(--ds-space-16) var(--ds-space-24); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); }
.table-toolbar { padding: var(--ds-space-16) var(--ds-space-20); display: flex; gap: var(--ds-space-12); align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.package-toolbar-heading { display: grid; gap: var(--ds-space-4); }
.package-toolbar-heading small { display: block; }
.table-toolbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: var(--ds-space-12); }
.table-toolbar-actions .button { white-space: nowrap; }
.table-toolbar input { max-width: 330px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: var(--ds-space-12) var(--ds-space-20); border-bottom: 1px solid var(--brand-border); color: var(--brand-muted); background: var(--visual-palette-f8fbfc); text-align: left; text-transform: uppercase; letter-spacing: .07em; font-size: var(--ds-font-size-11); }
.data-table td { padding: var(--ds-space-16) var(--ds-space-20); border-top: 1px solid var(--brand-border); vertical-align: middle; }
.data-table tbody tr:hover { background: var(--visual-palette-f4fbfb); }
.clinic-index-panel { margin-top: var(--ds-space-20); overflow: hidden; }
.clinical-center { display: grid; gap: var(--ds-space-16); max-width: 1480px; margin: 0 auto; }
.clinical-center-header { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-24); }
.clinical-center-title { display: flex; align-items: center; gap: var(--ds-space-16); min-width: 270px; }
.clinical-center-title > i { width: 48px; height: 48px; display: grid; flex: 0 0 48px; place-items: center; color: var(--green); }
.clinical-center-title > i .ui-icon { width: 42px; height: 42px; }
.clinical-center-title h1 { margin: 0; font: 700 var(--ds-font-size-28) "Montserrat"; }
.clinical-center-title p { margin: var(--ds-space-4) 0 0; color: var(--muted); font-size: var(--ds-font-size-11); }
.clinical-center-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--ds-space-8); }
.clinical-new-action { min-height: 44px; padding-inline: var(--ds-space-16); border-color: currentColor; background: var(--visual-color-surface); white-space: nowrap; }
.clinical-new-action:first-child { color: var(--visual-color-surface); border-color: var(--visual-color-primary); background: var(--visual-color-primary); }
.clinical-new-return { color: var(--visual-color-primary); }.clinical-new-emergency { color: var(--visual-palette-b3363b); }.clinical-new-hospitalization { color: var(--visual-palette-7851bd); }.clinical-new-other { color: var(--visual-palette-40556b); }
.clinical-center-filters { padding: var(--ds-space-12); border: 1px solid var(--line); border-radius: var(--ds-radius-16); background: var(--visual-color-surface); }
.clinical-center-search { display: flex; min-height: 46px; align-items: center; gap: var(--ds-space-12); padding: 0 var(--ds-space-12); border: 1px solid var(--line); border-radius: var(--ds-radius-8); }
.clinical-center-search .ui-icon { width: 18px; color: var(--visual-palette-315678); }
.clinical-center-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; }
.clinical-center-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(145px, 1fr)) auto; align-items: end; gap: var(--ds-space-12); margin-top: var(--ds-space-12); }
.clinical-center-filter-grid label, .clinical-custom-period label { display: grid; gap: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 700; }
.clinical-center-filter-grid select, .clinical-custom-period input { min-height: 40px; }
.clinical-custom-period { display: flex; gap: var(--ds-space-12); margin-top: var(--ds-space-12); }
.clinical-center-list { overflow: hidden; }
.clinical-center-list .table-toolbar strong { display: flex; align-items: center; gap: var(--ds-space-8); font: 700 var(--ds-font-size-16) "Montserrat"; }
.clinical-center-list .table-toolbar .ui-icon { width: 19px; color: var(--green); }
.clinical-center-table td > small, .clinical-center-table td > strong { display: block; }
.clinical-center-table td > small { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); }
.clinical-type-badge { width: max-content; display: inline-flex; align-items: center; gap: var(--ds-space-8); padding: var(--ds-space-8) var(--ds-space-12); border-radius: var(--ds-radius-16); font-size: var(--ds-font-size-11); font-weight: 700; }
.clinical-type-badge .ui-icon { width: 14px; height: 14px; }
.clinical-type-consultation { color: var(--visual-palette-177660); background: var(--visual-palette-e2f5ee); }.clinical-type-return { color: var(--visual-palette-23679d); background: var(--visual-palette-e5f2fb); }.clinical-type-emergency { color: var(--visual-palette-b3363b); background: var(--visual-palette-fde8ea); }.clinical-type-hospitalization { color: var(--visual-palette-7044ad); background: var(--visual-palette-f0e9fb); }.clinical-type-other { color: var(--visual-palette-40566c); background: var(--visual-palette-eef2f5); }
.clinical-row-actions { display: flex; justify-content: flex-end; gap: var(--ds-space-4); }
.clinical-record-patient { display: flex; align-items: center; gap: var(--ds-space-12); padding: 0; border: 0; background: transparent; color: var(--ink); text-align: left; }
.clinical-record-patient > .pet-avatar { width: 44px; height: 44px; flex: 0 0 44px; }
.clinical-record-patient > span:last-child, .clinical-record-patient strong, .clinical-record-patient small, .clinical-records-table td > small, .clinical-records-table td > strong { display: block; }
.clinical-record-patient small, .clinical-records-table td > small { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 500; }
.clinical-record-patient:hover > span:last-child > strong { color: var(--green); text-decoration: underline; }
.clinical-record-status { display: inline-flex; align-items: center; gap: var(--ds-space-8); padding: var(--ds-space-8) var(--ds-space-12); border-radius: var(--ds-radius-16); font-size: var(--ds-font-size-11); font-weight: 700; }
.clinical-record-status > i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.clinical-record-status-active { color: var(--visual-palette-177660); background: var(--visual-palette-e2f5ee); }
.clinical-record-status-no-attendance { color: var(--visual-palette-a67716); background: var(--visual-palette-fff6dc); }
.clinical-record-status-inactive { color: var(--visual-palette-c7444e); background: var(--visual-palette-fde8ea); }
.clinical-records-table td:last-child .icon-button { display: inline-flex; align-items: center; gap: var(--ds-space-4); color: var(--green); }
.clinical-records-table td:last-child .icon-button .ui-icon { width: 16px; }
@media (max-width: 700px) {
  .clinical-records-list .client-table-scroll { overflow: visible; }
  .clinical-records-table { min-width: 0; }
  .clinical-records-table thead { display: none; }
  .clinical-records-table tbody { display: grid; gap: var(--ds-space-12); padding: var(--ds-space-12); }
  .clinical-records-table tr { display: grid; overflow: hidden; border: 1px solid var(--brand-border); border-radius: var(--ds-radius-12); background: var(--visual-color-surface); }
  .clinical-records-table td { min-width: 0; display: grid; grid-template-columns: minmax(112px, 38%) minmax(0, 1fr); align-items: center; gap: var(--ds-space-12); padding: var(--ds-space-12) var(--ds-space-16); border-top: 1px solid var(--brand-border); }
  .clinical-records-table td:first-child { display: block; border-top: 0; background: var(--visual-palette-f8fbfc); }
  .clinical-records-table td::before { content: attr(data-label); color: var(--brand-muted); font-size: var(--ds-font-size-11); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
  .clinical-records-table td:first-child::before { display: none; }
  .clinical-records-table td:last-child { display: flex; justify-content: space-between; }
  .clinical-records-table td:last-child .icon-button { margin-left: auto; }
  .clinical-record-patient { width: 100%; }
  .clinical-record-patient > span:last-child { min-width: 0; }
  .clinical-record-patient strong, .clinical-record-patient small { overflow-wrap: anywhere; }
}
.clinical-exam-form-section { margin: var(--ds-space-16) 0; padding: var(--ds-space-16); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--visual-color-surface); }
.clinical-exam-form-section h3 { margin: 0; font: 700 var(--ds-font-size-16) "Montserrat"; }
.clinical-exam-form-section > p { margin: var(--ds-space-4) 0 var(--ds-space-12); color: var(--muted); font-size: var(--ds-font-size-11); }
.clinical-exam-context { display: flex; align-items: center; gap: var(--ds-space-12); margin-top: var(--ds-space-12); padding: var(--ds-space-12) var(--ds-space-16); border-radius: var(--ds-radius-12); background: var(--visual-palette-eef8f4); }
.clinical-exam-context strong, .clinical-exam-context small { display: block; }
.clinical-exam-context small { color: var(--muted); line-height: 1.5; }
.clinical-exam-context .text-button { margin-left: auto; white-space: nowrap; }
.clinic-overview { display: grid; gap: var(--ds-space-16); max-width: 1500px; margin: 0 auto; }
.clinic-overview-header { display: flex; align-items: end; justify-content: space-between; gap: var(--ds-space-20); }
.clinic-overview-header h1 { margin: 0; font: 700 var(--ds-font-size-28) "Montserrat"; }
.clinic-overview-header p, .clinic-overview-panel header p { margin: var(--ds-space-4) 0 0; color: var(--muted); font-size: var(--ds-font-size-11); }
.clinic-overview-header label { display: grid; min-width: 180px; gap: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 700; }
.clinic-overview-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ds-space-12); }
.clinic-overview-kpi { display: grid; grid-template-columns: 46px 1fr 18px; align-items: start; gap: var(--ds-space-12); min-height: 125px; padding: var(--ds-space-20); border: 1px solid var(--line); border-radius: var(--ds-radius-16); background: var(--visual-color-surface); color: var(--ink); text-align: left; box-shadow: 0 8px 25px rgba(20,55,75,.04); }
.clinic-overview-kpi:hover { border-color: var(--visual-palette-a9d9cb); transform: translateY(-1px); }
.clinic-overview-kpi > i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--ds-radius-12); color: var(--green); background: var(--visual-palette-e6f7f1); }
.clinic-overview-kpi > i .ui-icon { width: 23px; }
.clinic-overview-kpi span > * { display: block; }.clinic-overview-kpi small { min-height: 30px; font-weight: 700; }.clinic-overview-kpi strong { margin: var(--ds-space-8) 0 var(--ds-space-4); font: 700 var(--ds-font-size-28) "Montserrat"; }.clinic-overview-kpi em { color: var(--muted); font-size: var(--ds-font-size-11); font-style: normal; }
.clinic-overview-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: var(--ds-space-16); }
.clinic-overview-panel { min-width: 0; padding: var(--ds-space-16); border: 1px solid var(--line); border-radius: var(--ds-radius-16); background: var(--visual-color-surface); box-shadow: 0 8px 25px rgba(20,55,75,.035); }
.clinic-overview-panel > header { display: flex; align-items: start; justify-content: space-between; gap: var(--ds-space-12); margin-bottom: var(--ds-space-16); }.clinic-overview-panel h2 { margin: 0; font: 700 var(--ds-font-size-16) "Montserrat"; }.clinic-overview-panel header select { width: auto; min-width: 110px; min-height: 35px; padding: var(--ds-space-8) var(--ds-space-8); }
.clinic-overview-panel > .text-button { margin-top: var(--ds-space-16); padding-top: var(--ds-space-12); border-top: 1px solid var(--line); }
.clinic-overview-wide { grid-column: span 1; }
.clinic-overview-bars { height: 185px; display: flex; align-items: end; gap: var(--ds-space-4); padding-top: var(--ds-space-12); border-bottom: 1px solid var(--line); }
.clinic-overview-bars > div { height: 100%; flex: 1; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: var(--ds-space-4); min-width: 0; }.clinic-overview-bars i { width: min(14px, 80%); min-height: 4px; border-radius: var(--ds-radius-8) var(--ds-radius-8) 0 0; background: linear-gradient(var(--visual-palette-38ae89), var(--visual-palette-78ceb4)); cursor: default; }.clinic-overview-bars small { min-height: 11px; color: var(--muted); font-size: var(--ds-font-size-11); line-height: 1; white-space: nowrap; }
.clinic-overview-distribution { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: var(--ds-space-16); min-height: 185px; }.clinic-overview-donut { width: 126px; height: 126px; display: grid; place-items: center; border-radius: 50%; }.clinic-overview-donut::before { content: ""; grid-area: 1/1; width: 76px; height: 76px; border-radius: 50%; background: var(--visual-color-surface); }.clinic-overview-donut span { z-index: 1; grid-area: 1/1; text-align: center; }.clinic-overview-donut strong, .clinic-overview-donut small { display: block; }.clinic-overview-donut strong { font: 700 var(--ds-font-size-22) "Montserrat"; }.clinic-overview-donut small { color: var(--muted); font-size: var(--ds-font-size-11); }
.clinic-overview-legend { display: grid; gap: var(--ds-space-8); }.clinic-overview-legend > div { display: grid; grid-template-columns: 8px 1fr auto auto; align-items: center; gap: var(--ds-space-8); font-size: var(--ds-font-size-11); }.clinic-overview-legend i { width: 8px; height: 8px; border-radius: 50%; }.clinic-overview-legend small { color: var(--muted); }
.clinic-overview-horizontal-bars { display: grid; align-content: center; gap: var(--ds-space-12); min-height: 185px; }.clinic-overview-horizontal-bars > div { display: grid; grid-template-columns: minmax(100px, 1fr) 1.6fr 22px; align-items: center; gap: var(--ds-space-8); font-size: var(--ds-font-size-11); }.clinic-overview-horizontal-bars i { height: 10px; overflow: hidden; border-radius: var(--ds-radius-8); background: var(--visual-palette-eef3f3); }.clinic-overview-horizontal-bars b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--visual-palette-b8e3d5), var(--visual-palette-27a67e)); }
.clinic-overview-activity { grid-column: span 2; }.clinic-overview-activity > button:not(.text-button), .clinic-overview-returns > button:not(.text-button) { width: 100%; display: grid; grid-template-columns: 34px 1fr auto 16px; align-items: center; gap: var(--ds-space-12); padding: var(--ds-space-8) 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }.clinic-overview-activity > button > i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: var(--ds-radius-8); color: var(--green); background: var(--visual-palette-e8f6f1); }.clinic-overview-activity span > *, .clinic-overview-returns span > * { display: block; }.clinic-overview-activity small, .clinic-overview-returns small, .clinic-overview-activity time { color: var(--muted); font-size: var(--ds-font-size-11); }
.clinic-overview-returns > button:not(.text-button) { grid-template-columns: 36px 1fr auto auto; }.clinic-overview-returns .pet-avatar { width: 34px; height: 34px; font-size: var(--ds-font-size-11); }.clinic-overview-returns em { color: var(--muted); font-size: var(--ds-font-size-11); font-style: normal; }
@media (max-width: 1150px) { .clinic-overview-kpis { grid-template-columns: repeat(2, 1fr); }.clinic-overview-grid { grid-template-columns: repeat(2, 1fr); }.clinic-overview-activity { grid-column: span 1; } }
@media (max-width: 700px) { .clinic-overview-header { align-items: stretch; flex-direction: column; }.clinic-overview-kpis, .clinic-overview-grid { grid-template-columns: 1fr; }.clinic-overview-distribution { grid-template-columns: 1fr; justify-items: center; } }
.clinical-form-context { display: flex; align-items: center; gap: var(--ds-space-12); margin-bottom: var(--ds-space-16); padding: var(--ds-space-12) var(--ds-space-16); border-radius: var(--ds-radius-12); background: var(--visual-palette-eef8f4); }
.clinical-form-context > i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--ds-radius-8); background: rgba(255,255,255,.75); }
.clinical-form-context strong, .clinical-form-context small { display: block; }.clinical-form-context small { margin-top: var(--ds-space-4); color: var(--muted); }
@media (max-width: 1080px) {
  .clinical-center-header { align-items: flex-start; flex-direction: column; }
  .clinical-center-actions { justify-content: flex-start; }
  .clinical-center-filter-grid { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
}
@media (max-width: 640px) {
  .clinical-center-actions, .clinical-center-actions .button { width: 100%; }
  .clinical-center-actions .button { justify-content: flex-start; }
  .clinical-center-filter-grid { grid-template-columns: 1fr; }
  .clinical-custom-period { display: grid; grid-template-columns: 1fr; }
  .clinical-prescription-row { align-items: flex-start; flex-direction: column; }
  .clinic-document-template-settings > div { grid-template-columns: 1fr; }
}
.clinic-table-toolbar { display: flex; align-items: end; gap: var(--ds-space-12); padding: var(--ds-space-16) var(--ds-space-20); border-bottom: 1px solid var(--brand-border); background: var(--visual-palette-f8fbfc); }
.clinic-table-toolbar .relationship-search { width: min(420px, 100%); min-height: 42px; }
.clinic-status-filter { min-width: 170px; gap: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 700; }
.clinic-status-filter select { min-height: 42px; padding: var(--ds-space-8) var(--ds-space-12); }
.clinic-table-toolbar > .button { min-height: 42px; margin-left: auto; }
.clinic-list-pagination { border-top: 1px solid var(--line); }
.clinic-clickable-row { cursor: pointer; transition: background .16s, box-shadow .16s; }
.clinic-clickable-row:hover { background: var(--visual-palette-f3f8f4) !important; box-shadow: inset 3px 0 0 var(--green); }
.clinic-clickable-row:focus-visible { outline: 2px solid var(--green-2); outline-offset: -2px; background: var(--visual-palette-f3f8f4); }
.clinic-clickable-row > td:last-child { width: 54px; color: var(--green); text-align: right; }
.clinic-clickable-row > td:last-child > .ui-icon { width: 17px; }
.clinic-patient-link { display: grid; gap: var(--ds-space-4); padding: 0; border: 0; color: var(--ink); background: transparent; text-align: left; }
.clinic-patient-link:hover strong { color: var(--green); text-decoration: underline; }
.clinic-patient-link small { color: var(--muted); font-weight: 500; }
.clinic-metrics .metric-card.metric-link { appearance: none; color: var(--ink); text-align: left; font: inherit; }
.clinic-metrics .metric-card.metric-link > .ui-icon { width: 38px; height: 38px; padding: var(--ds-space-8); border-radius: var(--ds-radius-12); color: var(--green); background: var(--visual-palette-edf3ee); }
.clinic-metrics .metric-card.metric-link > span:last-child { align-self: end; margin-top: var(--ds-space-12); color: var(--green-2); font-size: var(--ds-font-size-11); font-weight: 700; }
.clinical-patient-summary { display: grid; grid-template-columns: auto minmax(220px, 1fr) repeat(3, minmax(120px, auto)); align-items: center; gap: var(--ds-space-20); margin-bottom: var(--ds-space-20); padding: var(--ds-space-20) var(--ds-space-20); border: 1px solid var(--line); border-radius: var(--ds-radius-16); background: var(--visual-color-surface); }
.clinical-patient-summary > .pet-avatar { width: 48px; height: 48px; font-size: var(--ds-font-size-14); }
.clinical-patient-summary strong, .clinical-patient-summary span, .clinical-patient-summary small { display: block; }
.clinical-patient-summary > div:nth-child(2) > strong { font: 700 var(--ds-font-size-16) "Montserrat"; }
.clinical-patient-summary span, .clinical-patient-summary small { color: var(--muted); font-size: var(--ds-font-size-11); }
.clinical-patient-summary > div:not(:nth-child(2)) > strong { margin-top: var(--ds-space-4); font-size: var(--ds-font-size-12); }
.clinical-vitals { margin-bottom: var(--ds-space-20); padding: var(--ds-space-20); border: 1px solid var(--line); border-radius: var(--ds-radius-16); background: var(--visual-color-surface); }
.clinical-vitals header h2 { margin: 0; font: 700 var(--ds-font-size-16) "Montserrat"; }
.clinical-vitals header p { margin: var(--ds-space-4) 0 0; color: var(--muted); font-size: var(--ds-font-size-11); }
.clinical-vitals > div { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: var(--ds-space-12); margin-top: var(--ds-space-16); }
.clinical-vitals > div > span { padding: var(--ds-space-12); border-radius: var(--ds-radius-12); background: var(--visual-palette-f5f8f5); }
.clinical-vitals small, .clinical-vitals strong { display: block; }
.clinical-vitals small { color: var(--muted); font-size: var(--ds-font-size-11); text-transform: capitalize; }
.clinical-vitals strong { margin-top: var(--ds-space-4); font: 700 var(--ds-font-size-14) "Montserrat"; }
.clinical-detail-grid, .clinical-linked-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-space-16); margin-bottom: var(--ds-space-20); }
.clinical-detail-section { min-height: 160px; padding: var(--ds-space-20); border: 1px solid var(--line); border-radius: var(--ds-radius-16); background: var(--visual-color-surface); }
.clinical-detail-section header { display: flex; align-items: center; gap: var(--ds-space-8); margin-bottom: var(--ds-space-12); }
.clinical-detail-section header i { display: grid; width: 32px; height: 32px; place-items: center; border-radius: var(--ds-radius-8); color: var(--green); background: var(--visual-palette-eaf4ed); }
.clinical-detail-section header i .ui-icon { width: 16px; }
.clinical-detail-section h2 { margin: 0; font: 700 var(--ds-font-size-14) "Montserrat"; }
.clinical-detail-section > div { color: var(--visual-palette-3f4d45); line-height: 1.65; white-space: pre-wrap; }
.clinical-linked-grid > .table-panel { min-width: 0; overflow: hidden; }
.clinical-linked-list { display: grid; }
.clinical-linked-list > button, .clinical-linked-list > a { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; align-items: center; gap: var(--ds-space-12); padding: var(--ds-space-12) var(--ds-space-16); border: 0; border-top: 1px solid var(--line); color: var(--ink); background: var(--visual-color-surface); text-align: left; text-decoration: none; }
.clinical-linked-list > button:hover, .clinical-linked-list > a:hover { background: var(--visual-palette-f5faf6); }
.clinical-linked-list strong, .clinical-linked-list small { display: block; }
.clinical-linked-list small { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); }
.clinical-linked-list .ui-icon { width: 15px; color: var(--green); }
.clinical-attachment-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: var(--ds-space-8); padding: var(--ds-space-16) var(--ds-space-16); border-top: 1px solid var(--line); background: var(--visual-palette-fbfcfa); }
.clinical-attachment-form label { gap: var(--ds-space-4); font-size: var(--ds-font-size-11); }
.clinical-attachment-form input { min-height: 40px; padding: var(--ds-space-8) var(--ds-space-12); }
.clinical-audit-panel { overflow: hidden; }
.clinical-audit-timeline { display: grid; padding: var(--ds-space-8) var(--ds-space-20) var(--ds-space-20); }
.clinical-audit-timeline article { display: grid; grid-template-columns: 16px 1fr; gap: var(--ds-space-12); padding: var(--ds-space-12) 0; }
.clinical-audit-timeline article i { position: relative; width: 9px; height: 9px; margin-top: var(--ds-space-4); border: 2px solid var(--visual-color-surface); border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px var(--visual-palette-b8d3c2); }
.clinical-audit-timeline strong, .clinical-audit-timeline span, .clinical-audit-timeline small { display: block; }
.clinical-audit-timeline span, .clinical-audit-timeline small { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); }
.clinical-modal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-space-12); margin-top: var(--ds-space-20); }
.clinical-modal-grid > div { padding: var(--ds-space-12); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--visual-palette-fafcf9); }
.clinical-modal-grid small, .clinical-modal-grid strong { display: block; }
.clinical-modal-grid small { color: var(--muted); font-size: var(--ds-font-size-11); text-transform: capitalize; }
.clinical-modal-grid strong { margin-top: var(--ds-space-4); overflow-wrap: anywhere; }
.clinical-modal-content { margin-top: var(--ds-space-16); padding: var(--ds-space-16); border: 1px solid var(--line); border-radius: var(--ds-radius-12); }
.clinical-modal-content h3 { margin: 0 0 var(--ds-space-8); font: 700 var(--ds-font-size-13) "Montserrat"; }
.clinical-modal-content p { margin: 0; line-height: 1.65; white-space: pre-wrap; }
.clinical-exam-detail-section { margin-top: var(--ds-space-16); padding-top: var(--ds-space-16); border-top: 1px solid var(--visual-palette-e4eaed); }
.clinical-exam-detail-section h3 { margin: 0 0 var(--ds-space-12); color: var(--visual-palette-173b57); font: 700 var(--ds-font-size-12) "Montserrat"; letter-spacing: .02em; text-transform: uppercase; }
.clinical-exam-detail-copy { display: grid; gap: var(--ds-space-4); }
.clinical-exam-detail-copy strong { color: var(--visual-palette-173b57); font-size: var(--ds-font-size-14); }
.clinical-exam-detail-copy span { color: var(--visual-palette-647a8b); font-size: var(--ds-font-size-12); }
.clinical-exam-detail-section .clinical-modal-grid { margin-top: 0; }
.clinical-exam-detail-note { margin-top: var(--ds-space-12); padding: var(--ds-space-12) var(--ds-space-12); border-radius: var(--ds-radius-8); background: var(--visual-palette-f4f8f9); }
.clinical-exam-detail-note small { display: block; color: var(--visual-palette-657a8b); font-size: var(--ds-font-size-11); font-weight: 700; text-transform: uppercase; }
.clinical-exam-detail-note p, .clinical-detail-text { margin: var(--ds-space-4) 0 0; color: var(--visual-palette-29485d); font-size: var(--ds-font-size-12); line-height: 1.55; white-space: pre-wrap; }
.clinical-exam-document-row { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-16); padding: var(--ds-space-12); border: 1px solid var(--visual-palette-d9e7e7); border-radius: var(--ds-radius-12); background: var(--visual-palette-f7fcfb); }
.clinical-exam-document-row > span { display: flex; align-items: center; gap: var(--ds-space-8); color: var(--visual-palette-173b57); font-size: var(--ds-font-size-12); }
.clinical-exam-document-row > span .ui-icon { width: 18px; color: var(--visual-palette-078a76); }
.clinical-exam-document-row > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--ds-space-12); }
.clinical-exam-document-row .text-button { padding: 0; color: var(--visual-palette-087d72); font-size: var(--ds-font-size-11); }
.clinical-exam-tracking { display: grid; gap: var(--ds-space-12); margin: 0; padding: var(--ds-space-4) 0 var(--ds-space-4) var(--ds-space-4); list-style: none; }
.clinical-exam-tracking li { position: relative; display: flex; align-items: flex-start; gap: var(--ds-space-12); min-height: 27px; color: var(--visual-palette-788a96); }
.clinical-exam-tracking li:not(:last-child)::before { position: absolute; top: 14px; left: 5px; width: 1px; height: 26px; content: ""; background: var(--visual-palette-d9e2e6); }
.clinical-exam-tracking i { position: relative; z-index: 1; width: 11px; height: 11px; flex: 0 0 11px; margin-top: var(--ds-space-4); border: 2px solid var(--visual-palette-aab9c2); border-radius: 50%; background: var(--visual-color-surface); }
.clinical-exam-tracking li.complete { color: var(--visual-palette-173b57); }
.clinical-exam-tracking li.complete i { border-color: var(--visual-palette-0b9a83); background: var(--visual-palette-0b9a83); box-shadow: 0 0 0 3px var(--visual-palette-e4f7f1); }
.clinical-exam-tracking strong, .clinical-exam-tracking small { display: block; }
.clinical-exam-tracking strong { font-size: var(--ds-font-size-12); }
.clinical-exam-tracking small { margin-top: var(--ds-space-4); color: var(--visual-palette-718392); font-size: var(--ds-font-size-11); }

.clinical-record-page { max-width: 1480px; margin: 0 auto; color: var(--visual-palette-13334d); }
.record-search-shell { position: relative; z-index: 8; max-width: 700px; margin: -4px 0 var(--ds-space-24); }
.clinic-record-list-search { margin-bottom: var(--ds-space-20); }
.clinical-vitals header { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-12); }
.clinical-encounter-attachments { overflow: hidden; }
.clinical-encounter-prescriptions { overflow: hidden; margin-bottom: var(--ds-space-20); }
.clinical-prescription-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ds-space-16); padding: var(--ds-space-12) var(--ds-space-16); border-top: 1px solid var(--line); }
.clinical-prescription-row:first-child { border-top: 0; }
.clinical-prescription-row strong, .clinical-prescription-row small { display: block; }
.clinical-prescription-row small { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); }
.clinical-prescription-row > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--ds-space-8); }
.clinical-administration-list { width: 100%; margin: var(--ds-space-4) 0 0; padding: var(--ds-space-12) 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: var(--ds-space-8); }
.clinical-administration-list li { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-12); padding: var(--ds-space-8) var(--ds-space-12); border-radius: var(--ds-radius-12); background: var(--surface-soft); }
.clinical-administration-list span:first-child { display: grid; gap: var(--ds-space-4); }
.clinical-administration-actions { display: flex; flex-wrap: wrap; gap: var(--ds-space-8); }
.clinical-pdf-preview { display: block; width: min(860px, 82vw); height: min(680px, 68vh); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--visual-color-surface); }
.modal-card.clinical-pdf-modal-card { width: min(1120px, calc(100vw - 40px)); max-height: calc(100vh - 28px); padding: var(--ds-space-24); }
.clinical-pdf-modal-card .clinical-pdf-preview { width: 100%; height: min(730px, calc(100vh - 220px)); min-height: 520px; border-radius: var(--ds-radius-12); }
.clinic-document-template-settings { margin-top: var(--ds-space-24); padding-top: var(--ds-space-20); border-top: 1px solid var(--line); }
.clinic-document-template-settings header h3 { margin: 0; font: 700 var(--ds-font-size-16) "Montserrat"; }
.clinic-document-template-settings header p { max-width: 920px; margin: var(--ds-space-8) 0 var(--ds-space-16); color: var(--muted); font-size: var(--ds-font-size-11); line-height: 1.6; }
.clinic-document-template-settings header code { color: var(--green); }
.clinic-document-template-settings > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-space-12); }
.clinic-document-template-settings label { display: grid; gap: var(--ds-space-8); font-size: var(--ds-font-size-11); font-weight: 700; }
.clinic-document-template-settings textarea { min-height: 130px; font-family: monospace; font-size: var(--ds-font-size-11); }
@media (max-width: 640px) {
  .clinical-prescription-row { align-items: flex-start; flex-direction: column; }
  .clinic-document-template-settings > div { grid-template-columns: 1fr; }
}
.record-search-shell > label { min-height: 48px; display: flex; align-items: center; gap: var(--ds-space-12); padding: 0 var(--ds-space-16); border: 1px solid var(--visual-palette-dce5ea); border-radius: var(--ds-radius-12); background: var(--visual-color-surface); box-shadow: 0 4px 16px rgba(10, 49, 73, .04); }
.record-search-shell .ui-icon { width: 18px; color: var(--visual-palette-244b69); }
.record-search-shell input { flex: 1; min-width: 0; border: 0; outline: 0; color: var(--visual-palette-26455d); background: transparent; font-size: var(--ds-font-size-13); }
.record-search-shell kbd { padding: var(--ds-space-4) var(--ds-space-8); border: 1px solid var(--visual-palette-dde5e9); border-radius: var(--ds-radius-8); color: var(--visual-palette-7b8c99); background: var(--visual-palette-f6f8f9); font: 600 var(--ds-font-size-11) "Montserrat"; }
.record-search-results { position: absolute; top: calc(100% + 8px); right: 0; left: 0; overflow: hidden; border: 1px solid var(--visual-palette-dce5ea); border-radius: var(--ds-radius-12); background: var(--visual-color-surface); box-shadow: 0 18px 45px rgba(9, 40, 63, .16); }
.record-search-results > button { width: 100%; display: grid; grid-template-columns: 38px 1fr 18px; align-items: center; gap: var(--ds-space-12); padding: var(--ds-space-12) var(--ds-space-12); border: 0; border-bottom: 1px solid var(--visual-palette-edf1f3); color: var(--visual-palette-16364f); background: var(--visual-color-surface); text-align: left; cursor: pointer; }
.record-search-results > button:hover { background: var(--visual-palette-f1faf8); }
.record-search-results .pet-avatar { width: 38px; height: 38px; overflow: hidden; border-radius: var(--ds-radius-12); }
.record-search-results .pet-avatar img { width: 100%; height: 100%; object-fit: cover; }
.record-search-results strong, .record-search-results small { display: block; }
.record-search-results small { margin-top: var(--ds-space-4); color: var(--visual-palette-708392); font-size: var(--ds-font-size-11); }
.record-search-results > p { margin: 0; padding: var(--ds-space-20); color: var(--visual-palette-718391); text-align: center; }
.record-topline { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-20); margin-bottom: var(--ds-space-16); }
.record-topline .module-breadcrumb { margin: 0; }
.record-topline > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--ds-space-8); }
.record-topline .button { min-height: 38px; padding: 0 var(--ds-space-12); font-size: var(--ds-font-size-11); }
.record-patient-hero, .record-section, .record-accordions > details { border: 1px solid var(--visual-palette-dce5e9); background: var(--visual-color-surface); box-shadow: 0 5px 18px rgba(14, 45, 68, .025); }
.record-patient-hero { display: grid; grid-template-columns: 176px minmax(0, 1fr) auto; align-items: center; gap: var(--ds-space-24); min-height: 206px; margin-bottom: var(--ds-space-20); padding: var(--ds-space-20); border-radius: var(--ds-radius-16); }
.record-patient-photo { width: 176px; height: 166px; display: grid; overflow: hidden; place-items: center; border-radius: var(--ds-radius-12); color: var(--visual-color-surface); background: linear-gradient(145deg, var(--visual-palette-48b59e), var(--visual-palette-0b766c)); font: 700 var(--ds-font-size-28) "Montserrat"; }
.record-patient-photo img { width: 100%; height: 100%; object-fit: cover; }
.record-patient-copy > div { display: flex; align-items: center; gap: var(--ds-space-12); }
.record-patient-copy h1 { margin: 0; color: var(--visual-palette-0b3055); font: 700 clamp(var(--ds-font-size-28), 3vw, var(--ds-font-size-28))/1.1 "Montserrat"; letter-spacing: -.035em; }
.record-sex { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--visual-palette-d95977); background: var(--visual-palette-fff0f4); }
.record-sex .ui-icon { width: 18px; }
.record-patient-copy > p { margin: var(--ds-space-12) 0 var(--ds-space-20); color: var(--visual-palette-5e7689); font-size: var(--ds-font-size-14); }
.record-patient-copy dl { display: flex; flex-wrap: wrap; gap: var(--ds-space-12) var(--ds-space-24); margin: 0; }
.record-patient-copy dl > div { display: grid; grid-template-columns: auto auto; gap: var(--ds-space-4) var(--ds-space-8); }
.record-patient-copy dt { display: inline-flex; align-items: center; gap: var(--ds-space-8); color: var(--visual-palette-708394); font-size: var(--ds-font-size-11); }
.record-patient-copy dt .ui-icon { width: 14px; color: var(--visual-palette-244b69); }
.record-patient-copy dd { margin: 0; color: var(--visual-palette-23465f); font-size: var(--ds-font-size-12); font-weight: 700; }
.record-patient-actions { align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: var(--ds-space-32); padding: var(--ds-space-4) 0; }
.record-patient-actions > div { display: flex; gap: var(--ds-space-12); }
.record-patient-actions code, .record-active-badge { padding: var(--ds-space-8) var(--ds-space-12); border-radius: var(--ds-radius-8); font: 700 var(--ds-font-size-12) "Montserrat"; }
.record-patient-actions code { color: var(--visual-palette-173f60); background: var(--visual-palette-edf4fa); }
.record-active-badge { color: var(--visual-palette-12816d); background: var(--visual-palette-e8f7f1); }
.record-patient-actions .button { min-height: 51px; padding: 0 var(--ds-space-24); border-radius: var(--ds-radius-8); box-shadow: 0 8px 18px rgba(18, 140, 117, .14); }
.record-section { margin-bottom: var(--ds-space-20); padding: var(--ds-space-20); border-radius: var(--ds-radius-16); scroll-margin-top: 24px; }
.record-section > header { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-20); margin-bottom: var(--ds-space-16); }
.record-section > header > div:first-child, .record-accordions summary > span { display: flex; align-items: center; gap: var(--ds-space-12); }
.record-section > header i { width: 29px; height: 29px; display: grid; place-items: center; border-radius: var(--ds-radius-8); color: var(--visual-palette-078877); background: var(--visual-palette-e8f7f4); }
.record-important > header i { color: var(--visual-palette-ef4a53); background: var(--visual-palette-fff0f1); }
.record-section > header i .ui-icon { width: 17px; }
.record-section h2 { margin: 0; color: var(--visual-palette-123653); font: 700 var(--ds-font-size-16) "Montserrat"; }
.record-section .text-button { display: inline-flex; align-items: center; gap: var(--ds-space-8); font-size: var(--ds-font-size-11); text-decoration: none; }
.record-section .text-button .ui-icon { width: 14px; height: 14px; background: transparent; }
.record-alert-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--ds-space-12); }
.record-alert-grid article { min-height: 118px; display: flex; align-items: flex-start; gap: var(--ds-space-12); padding: var(--ds-space-16) var(--ds-space-12); border: 1px solid currentColor; border-radius: var(--ds-radius-12); }
.record-alert-grid article > i { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 50%; color: inherit; background: rgba(255,255,255,.72); }
.record-alert-grid article > i .ui-icon { width: 17px; }
.record-alert-grid small, .record-alert-grid strong, .record-alert-grid em { display: block; }
.record-alert-grid small { min-height: 30px; color: var(--visual-palette-36536a); font-size: var(--ds-font-size-11); font-weight: 700; line-height: 1.35; }
.record-alert-grid strong { margin-top: var(--ds-space-8); color: var(--visual-palette-183a55); font: 700 var(--ds-font-size-12)/1.35 "Montserrat"; }
.record-alert-grid em { margin-top: var(--ds-space-4); color: var(--visual-palette-688092); font-size: var(--ds-font-size-11); font-style: normal; }
.record-alert-grid .tone-red { color: var(--visual-palette-d93647); background: var(--visual-palette-fff1f2); }
.record-alert-grid .tone-blue { color: var(--visual-palette-2576b8); background: var(--visual-palette-f0f7fd); }
.record-alert-grid .tone-orange { color: var(--visual-palette-dc9226); background: var(--visual-palette-fff8ed); }
.record-alert-grid .tone-purple { color: var(--visual-palette-8259bd); background: var(--visual-palette-f6f1fc); }
.record-alert-grid .tone-green { color: var(--visual-palette-12927c); background: var(--visual-palette-edf9f5); }
.record-alert-grid .tone-neutral { color: var(--visual-palette-315476); background: var(--visual-palette-f6f9fb); }
.record-summary-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--ds-space-12); }
.record-summary-card { position: relative; min-height: 150px; padding: var(--ds-space-16) var(--ds-space-32) var(--ds-space-16) var(--ds-space-16); border: 1px solid var(--visual-palette-dfe7eb); border-radius: var(--ds-radius-12); background: linear-gradient(140deg, var(--visual-color-surface), var(--visual-palette-fbfdfd)); }
.record-summary-card header { display: flex; align-items: center; gap: var(--ds-space-8); margin-bottom: var(--ds-space-12); }
.record-summary-card header i { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: var(--visual-palette-078a76); background: var(--visual-palette-e9f7f3); }
.record-summary-card header .ui-icon { width: 16px; }
.record-summary-card header strong { color: var(--visual-palette-173b57); font-size: var(--ds-font-size-11); }
.record-summary-card ul { margin: 0; padding-left: var(--ds-space-16); color: var(--visual-palette-677b8c); font-size: var(--ds-font-size-11); line-height: 1.7; }
.record-summary-card p { margin: var(--ds-space-4) 0; color: var(--visual-palette-657b8c); font-size: var(--ds-font-size-11); line-height: 1.5; }
.record-summary-card .record-ok { display: flex; align-items: center; gap: var(--ds-space-4); color: var(--visual-palette-109177); font-weight: 700; }
.record-summary-card .record-ok .ui-icon { width: 13px; }
.record-summary-card > small { position: absolute; right: 12px; bottom: 12px; left: 15px; color: var(--visual-palette-109177); font-size: var(--ds-font-size-11); font-weight: 700; }
.record-summary-card > button { position: absolute; right: 9px; bottom: 9px; width: 25px; height: 25px; display: grid; place-items: center; border: 0; color: var(--visual-palette-078a76); background: transparent; cursor: pointer; }
.record-summary-card > button .ui-icon { width: 15px; }
.record-history > header { align-items: center; }
.record-history-tools { display: flex; align-items: center; gap: var(--ds-space-8); }
.record-history-tools label { min-height: 38px; display: flex; align-items: center; gap: var(--ds-space-8); padding: 0 var(--ds-space-12); border: 1px solid var(--visual-palette-dce5e9); border-radius: var(--ds-radius-8); }
.record-history-tools label .ui-icon { width: 14px; }
.record-history-tools input { width: 190px; border: 0; outline: 0; background: transparent; font-size: var(--ds-font-size-11); }
.record-history-tools select { min-height: 38px; padding: 0 var(--ds-space-32) 0 var(--ds-space-12); border-color: var(--visual-palette-dce5e9); border-radius: var(--ds-radius-8); font-size: var(--ds-font-size-11); }
.record-history-list { display: grid; gap: var(--ds-space-8); }
.record-history-list > article { min-height: 80px; display: grid; grid-template-columns: 60px 10px minmax(0, 1fr) auto auto; align-items: center; gap: var(--ds-space-16); padding: var(--ds-space-8) var(--ds-space-12) var(--ds-space-8) var(--ds-space-8); border: 1px solid var(--visual-palette-e1e8ec); border-radius: var(--ds-radius-12); }
.record-history-list time { min-height: 61px; display: grid; place-content: center; border-radius: var(--ds-radius-8); color: var(--visual-palette-173b5d); background: var(--visual-palette-f2f6f9); text-align: center; }
.record-history-list time strong, .record-history-list time span, .record-history-list time small { display: block; }
.record-history-list time strong { font: 700 var(--ds-font-size-16)/1 "Montserrat"; }
.record-history-list time span { margin-top: var(--ds-space-4); font: 700 var(--ds-font-size-11) "Montserrat"; }
.record-history-list time small { margin-top: var(--ds-space-4); color: var(--visual-palette-738493); font-size: var(--ds-font-size-11); }
.record-history-list > article > i { width: 9px; height: 9px; border-radius: 50%; background: var(--visual-palette-0daf8f); }
.record-history-list > article > div > strong { color: var(--visual-palette-143b5d); font: 700 var(--ds-font-size-12) "Montserrat"; }
.record-history-list p, .record-history-list > article > div > small { margin: var(--ds-space-4) 0 0; color: var(--visual-palette-667e90); font-size: var(--ds-font-size-11); }
.record-history-list .button { min-height: 36px; padding: 0 var(--ds-space-12); font-size: var(--ds-font-size-11); }
.record-history-list .button .ui-icon { width: 13px; }
.record-accordions { display: grid; gap: var(--ds-space-8); }
.record-accordions > details { overflow: hidden; border-radius: var(--ds-radius-12); scroll-margin-top: 24px; }
.record-accordions summary { min-height: 58px; display: grid; grid-template-columns: 1fr auto 20px; align-items: center; gap: var(--ds-space-12); padding: 0 var(--ds-space-20); list-style: none; cursor: pointer; }
.record-accordions summary::-webkit-details-marker { display: none; }
.record-accordions summary i { width: 29px; height: 29px; display: grid; place-items: center; border-radius: var(--ds-radius-8); color: var(--visual-palette-078a76); background: var(--visual-palette-e9f7f4); }
.record-accordions summary i .ui-icon { width: 16px; }
.record-accordions summary strong { color: var(--visual-palette-153956); font: 700 var(--ds-font-size-14) "Montserrat"; }
.record-accordions summary em { color: var(--visual-palette-768896); font-size: var(--ds-font-size-11); font-style: normal; }
.record-accordions summary > .ui-icon { width: 15px; transition: transform .2s; }
.record-accordions details[open] summary > .ui-icon { transform: rotate(180deg); }
.record-accordions details[open] summary { border-bottom: 1px solid var(--visual-palette-e4eaed); }
.record-encounter-modal { margin-top: var(--ds-space-20); }
.record-patient-primary-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--ds-space-12); }
.record-alert-grid .record-important-card { position: relative; width: 100%; min-height: 126px; display: flex; align-items: flex-start; gap: var(--ds-space-12); padding: var(--ds-space-16) var(--ds-space-32) var(--ds-space-16) var(--ds-space-12); border: 1px solid currentColor; border-radius: var(--ds-radius-12); font: inherit; text-align: left; }
button.record-important-card { cursor: pointer; }
button.record-important-card:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(16, 53, 75, .08); }
.record-important-card > i:first-child { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 50%; color: inherit; background: rgba(255,255,255,.72); }
.record-important-card > i:first-child .ui-icon { width: 17px; }
.record-important-card > .ui-icon:last-child { position: absolute; right: 10px; top: 50%; width: 14px; transform: translateY(-50%); }
.record-timeline-controls { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-16); margin-bottom: var(--ds-space-20); padding: 0 var(--ds-space-16); border: 1px solid var(--visual-palette-dce5e9); border-radius: var(--ds-radius-12); background: var(--visual-color-surface); box-shadow: 0 5px 18px rgba(14,45,68,.025); }
.record-timeline-tabs { min-width: 0; display: flex; overflow-x: auto; gap: var(--ds-space-20); }
.record-timeline-tabs button { min-height: 56px; flex: 0 0 auto; padding: 0 var(--ds-space-4); border: 0; border-bottom: 3px solid transparent; color: var(--visual-palette-4d6578); background: transparent; font: 700 var(--ds-font-size-11) "Montserrat"; cursor: pointer; }
.record-timeline-tabs button.active { color: var(--visual-palette-078a76); border-bottom-color: var(--visual-palette-10a58c); }
.record-timeline-search { display: flex; flex: 0 0 auto; align-items: center; gap: var(--ds-space-8); }
.record-timeline-search label { min-height: 38px; display: flex; align-items: center; gap: var(--ds-space-8); padding: 0 var(--ds-space-12); border: 1px solid var(--visual-palette-dce5e9); border-radius: var(--ds-radius-8); }
.record-timeline-search label .ui-icon { width: 14px; }
.record-timeline-search input { width: 170px; border: 0; outline: 0; background: transparent; font-size: var(--ds-font-size-11); }
.record-timeline-search select { min-height: 38px; padding: 0 var(--ds-space-32) 0 var(--ds-space-12); border-color: var(--visual-palette-dce5e9); border-radius: var(--ds-radius-8); font-size: var(--ds-font-size-11); }
.record-history > header > div:first-child > span > p { margin: var(--ds-space-4) 0 0; color: var(--visual-palette-718493); font-size: var(--ds-font-size-11); }
.record-history > header > small { color: var(--visual-palette-708391); font-size: var(--ds-font-size-11); font-weight: 700; }
.record-history-list > article { grid-template-columns: 64px 40px minmax(0, 1fr) auto 32px; }
.record-history-list > article > .record-event-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--ds-radius-12); }
.record-event-icon .ui-icon { width: 19px; }
.record-event-icon.tone-green { color: var(--visual-palette-078a76); background: var(--visual-palette-e6f7f2); }
.record-event-icon.tone-purple { color: var(--visual-palette-7750b4); background: var(--visual-palette-f2ecfb); }
.record-event-icon.tone-blue { color: var(--visual-palette-2878b7); background: var(--visual-palette-eaf4fc); }
.record-event-icon.tone-neutral { color: var(--visual-palette-4a657a); background: var(--visual-palette-eef3f6); }
.record-event-source { padding: var(--ds-space-8) var(--ds-space-8); border-radius: var(--ds-radius-16); color: var(--visual-palette-547085); background: var(--visual-palette-f0f5f7); font-size: var(--ds-font-size-11); font-weight: 700; white-space: nowrap; }
.record-history-list .icon-button { width: 30px; height: 30px; border: 0; background: transparent; }
.record-history-empty { padding: var(--ds-space-12) 0; }

@media (max-width: 1280px) {
  .record-alert-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .record-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .record-patient-hero { grid-template-columns: 120px 1fr; }
  .record-patient-photo { width: 120px; height: 120px; }
  .record-patient-actions { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .record-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record-timeline-controls { align-items: stretch; flex-direction: column; padding: 0 var(--ds-space-12) var(--ds-space-12); }
  .record-timeline-search { justify-content: flex-end; }
  .record-history-list > article { grid-template-columns: 52px 38px minmax(0, 1fr) 30px; }
  .record-history-list .record-event-source { grid-column: 3; justify-self: start; }
  .record-history-list .icon-button { grid-column: 4; grid-row: 1 / span 2; }
}
@media (max-width: 640px) {
  .record-topline, .record-section > header { align-items: stretch; flex-direction: column; }
  .record-topline > div { justify-content: flex-start; }
  .record-patient-hero { grid-template-columns: 88px 1fr; gap: var(--ds-space-16); padding: var(--ds-space-16); }
  .record-patient-photo { width: 88px; height: 88px; }
  .record-patient-copy h1 { font-size: var(--ds-font-size-28); }
  .record-patient-copy dl { display: grid; }
  .record-patient-actions { align-items: stretch; flex-direction: column; }
  .record-patient-primary-actions { display: grid; width: 100%; }
  .record-patient-actions .button { width: 100%; }
  .record-alert-grid, .record-summary-grid { grid-template-columns: 1fr; }
  .record-history-tools { align-items: stretch; flex-direction: column; }
  .record-history-tools input { width: 100%; }
  .record-timeline-search { align-items: stretch; flex-direction: column; }
  .record-timeline-search input { width: 100%; }
  .record-history-list > article { grid-template-columns: 50px 34px minmax(0, 1fr) 28px; gap: var(--ds-space-8); padding: var(--ds-space-8); }
  .record-event-source { white-space: normal; }
  .record-accordions summary { padding: 0 var(--ds-space-12); }
}

/* Novo atendimento clínico: página dedicada */
.new-clinical-page { max-width: 1480px; margin: 0 auto; color: var(--visual-palette-112e46); }
.new-clinical-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--ds-space-24); margin-bottom: var(--ds-space-24); }
.new-clinical-header h1 { margin: 0 0 var(--ds-space-8); color: var(--brand-dark); font: 700 clamp(var(--ds-font-size-22), 2.2vw, var(--ds-font-size-28))/1.2 "Montserrat"; letter-spacing: -.025em; }
.new-clinical-header p { margin: 0; color: var(--visual-color-muted); font-size: var(--ds-font-size-13); }
.new-clinical-close { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border: 0; border-radius: var(--ds-radius-12); color: var(--visual-palette-18364d); background: var(--visual-palette-f1f4f7); cursor: pointer; }
.new-clinical-close:hover { color: var(--brand-secondary); background: var(--visual-palette-e6f7f4); }
.new-clinical-close .ui-icon { width: 18px; }
.new-clinical-section { margin-bottom: var(--ds-space-20); padding: var(--ds-space-20) var(--ds-space-24) var(--ds-space-24); border: 1px solid var(--visual-palette-dce4e8); border-radius: var(--ds-radius-12); background: var(--visual-color-surface); box-shadow: 0 5px 18px rgba(11, 45, 77, .025); }
.new-clinical-section > header { display: flex; align-items: center; gap: var(--ds-space-12); margin-bottom: var(--ds-space-20); }
.new-clinical-section > header i { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; border-radius: var(--ds-radius-8); color: var(--visual-palette-087d72); background: var(--visual-palette-e6f6f3); }
.new-clinical-section > header i .ui-icon { width: 16px; height: 16px; }
.new-clinical-section > header h2 { margin: 0; color: var(--visual-palette-17354d); font: 700 var(--ds-font-size-16)/1.3 "Montserrat"; }
.clinical-field { display: grid; align-content: start; gap: var(--ds-space-8); min-width: 0; color: var(--visual-palette-29465d); font-size: var(--ds-font-size-11); font-weight: 650; }
.clinical-field input, .clinical-field select, .clinical-field textarea { width: 100%; border-color: var(--visual-palette-d8e0e5); color: var(--visual-palette-263d4e); background: var(--visual-color-surface); font-size: var(--ds-font-size-13); font-weight: 500; }
.clinical-field input, .clinical-field select { min-height: 48px; }
.clinical-field > small { min-height: 16px; padding-left: var(--ds-space-4); color: var(--visual-color-muted); font-size: var(--ds-font-size-11); font-weight: 500; }
.new-clinical-context-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ds-space-16) var(--ds-space-32); }
.clinical-summary-heading { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-20); margin: -10px 0 var(--ds-space-16); }
.clinical-summary-heading p { margin: 0; color: var(--visual-color-muted); font-size: var(--ds-font-size-11); }
.clinical-summary-heading .button { min-height: 40px; padding: 0 var(--ds-space-16); font-size: var(--ds-font-size-11); }
.clinical-summary-heading .ui-icon { width: 14px; }
.clinical-record-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--ds-space-16); }
.clinical-record-summary article { display: flex; align-items: center; gap: var(--ds-space-12); min-height: 68px; padding: var(--ds-space-12) var(--ds-space-16); border: 1px solid var(--visual-palette-e0e6e9); border-radius: var(--ds-radius-12); background: linear-gradient(110deg, var(--visual-color-surface), var(--visual-palette-fbfcfc)); }
.clinical-record-summary article > i { display: grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; border-radius: 50%; }
.clinical-record-summary article > i .ui-icon { width: 19px; }
.clinical-record-summary strong, .clinical-record-summary small { display: block; }
.clinical-record-summary strong { color: var(--visual-palette-263e52); font-size: var(--ds-font-size-11); }
.clinical-record-summary small { margin-top: var(--ds-space-4); color: var(--visual-palette-168272); font-size: var(--ds-font-size-11); line-height: 1.25; }
.clinical-record-summary .tone-green > i { color: var(--visual-palette-168272); background: var(--visual-palette-eaf7f2); }
.clinical-record-summary .tone-blue > i { color: var(--visual-palette-356f9d); background: var(--visual-palette-eef4fa); }
.clinical-record-summary .tone-purple > i { color: var(--visual-palette-6554a5); background: var(--visual-palette-f1effa); }
.clinical-record-summary .tone-orange > i { color: var(--visual-palette-9a681f); background: var(--visual-palette-fcf5e9); }
.clinical-anamnesis-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-space-16) var(--ds-space-32); }
.clinical-anamnesis-grid > div { display: grid; align-content: start; gap: var(--ds-space-16); }
.clinical-textarea-wrap { position: relative; display: block; }
.clinical-textarea-wrap textarea { display: block; min-height: 90px; padding: var(--ds-space-12) var(--ds-space-16) var(--ds-space-24); resize: vertical; line-height: 1.5; }
.clinical-char-count { position: absolute; right: 10px; bottom: 8px; color: var(--visual-color-muted); font-size: var(--ds-font-size-11); font-weight: 500; pointer-events: none; }
.clinical-change-field { display: flex; flex-wrap: wrap; gap: var(--ds-space-20); min-height: 58px; margin: 0; padding: 0; border: 0; }
.clinical-change-field legend { width: 100%; margin-bottom: var(--ds-space-4); color: var(--visual-palette-29465d); font-size: var(--ds-font-size-11); font-weight: 650; }
.clinical-change-field label { display: flex; align-items: center; gap: var(--ds-space-8); color: var(--visual-palette-425a6d); font-size: var(--ds-font-size-12); font-weight: 500; }
.clinical-change-field input { width: 17px; height: 17px; accent-color: var(--brand-secondary); }
.clinical-exam-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--ds-space-20) var(--ds-space-32); }
.clinical-exam-grid h3 { margin: 0 0 var(--ds-space-16); color: var(--visual-palette-40576a); font-size: var(--ds-font-size-11); }
.clinical-vital-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-space-12) var(--ds-space-24); }
.clinical-assessment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ds-space-12) var(--ds-space-20); }
.clinical-bottom-grid { display: grid; grid-template-columns: minmax(290px, .72fr) minmax(500px, 1.48fr); gap: var(--ds-space-20); }
.clinical-bottom-grid > .new-clinical-section { min-width: 0; }
.clinical-evaluation-section > .clinical-field + .clinical-field, .clinical-plan-grid .clinical-field + .clinical-field { margin-top: var(--ds-space-16); }
.clinical-plan-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: var(--ds-space-24) var(--ds-space-32); }
.clinical-evaluation-section .clinical-textarea-wrap textarea, .clinical-plan-section .clinical-textarea-wrap textarea { min-height: 85px; }
.clinical-inline-exam-request { margin-top: var(--ds-space-24); padding-top: var(--ds-space-20); border-top: 1px solid var(--visual-palette-e0e8ea); }
.clinical-exam-toggle { display: flex; align-items: flex-start; gap: var(--ds-space-12); cursor: pointer; }
.clinical-exam-toggle input { width: 18px; height: 18px; margin: var(--ds-space-4) 0 0; accent-color: var(--brand-secondary); }
.clinical-exam-toggle span { display: grid; gap: var(--ds-space-4); }
.clinical-exam-toggle strong { color: var(--visual-palette-17354d); font-size: var(--ds-font-size-13); }
.clinical-exam-toggle small { color: var(--visual-color-muted); font-size: var(--ds-font-size-11); line-height: 1.45; }
#clinical-inline-exams { display: grid; grid-template-columns: minmax(260px, 1fr) auto; align-items: end; gap: var(--ds-space-12); margin-top: var(--ds-space-16); }
.clinical-add-exam { min-height: 48px; white-space: nowrap; }
.clinical-inline-exam-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--ds-space-8); min-height: 23px; }
.clinical-inline-exam-chips > small { color: var(--visual-color-muted); font-size: var(--ds-font-size-11); }
.clinical-inline-exam-chip { display: inline-flex; align-items: center; gap: var(--ds-space-8); padding: var(--ds-space-8) var(--ds-space-8) var(--ds-space-8) var(--ds-space-12); border-radius: var(--ds-radius-16); color: var(--visual-palette-126e63); background: var(--visual-palette-e5f6f2); font-size: var(--ds-font-size-11); font-weight: 650; }
.clinical-inline-exam-chip button { display: grid; width: 17px; height: 17px; padding: 0; place-items: center; border: 0; border-radius: 50%; color: var(--visual-palette-126e63); background: var(--visual-palette-ccece5); cursor: pointer; }
.clinical-inline-exam-chip .ui-icon { width: 11px; }
.clinical-exam-request-confirmation { display: flex; gap: var(--ds-space-16); align-items: flex-start; padding: var(--ds-space-20); border-radius: var(--ds-radius-12); color: var(--visual-palette-17354d); background: var(--visual-palette-edf9f6); }
.clinical-exam-request-confirmation > i { display: grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; border-radius: 50%; color: var(--visual-palette-087d72); background: var(--visual-palette-d4f1e9); }
.clinical-exam-request-confirmation .ui-icon { width: 20px; }
.clinical-exam-request-confirmation strong { display: block; font-size: var(--ds-font-size-14); }
.clinical-exam-request-confirmation p { margin: var(--ds-space-8) 0 0; color: var(--visual-palette-587182); font-size: var(--ds-font-size-12); }
.clinical-exam-request-documents article { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-16); padding: var(--ds-space-12) 0; border-bottom: 1px solid var(--visual-palette-e5ebed); }
.clinical-exam-request-documents article:last-child { border-bottom: 0; }
.clinical-exam-request-documents strong, .clinical-exam-request-documents small { display: block; }
.clinical-exam-request-documents small { margin-top: var(--ds-space-4); color: var(--visual-color-muted); font-size: var(--ds-font-size-11); }
.clinical-exam-request-documents article > div { display: flex; gap: var(--ds-space-8); flex-wrap: wrap; justify-content: flex-end; }
.new-clinical-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-24); padding: var(--ds-space-4) 0 0; }
.new-clinical-footer > p { display: flex; align-items: center; gap: var(--ds-space-12); margin: 0; color: var(--visual-palette-5c7182); font-size: var(--ds-font-size-11); line-height: 1.5; }
.new-clinical-footer > p .ui-icon { width: 20px; flex: 0 0 20px; color: var(--visual-palette-4d6c82); }
.new-clinical-footer > div { display: flex; justify-content: flex-end; gap: var(--ds-space-20); }
.new-clinical-footer .button { min-width: 150px; min-height: 44px; font-size: var(--ds-font-size-11); }
.new-clinical-footer .button-primary { min-width: 190px; }

@media (max-width: 1180px) {
  .clinical-record-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .clinical-bottom-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .clinic-table-toolbar { align-items: stretch; flex-direction: column; }
  .clinic-table-toolbar .relationship-search, .clinic-status-filter { width: 100%; }
  .clinic-table-toolbar .relationship-search { flex: 0 0 auto; }
  .clinic-table-toolbar > .button { margin-left: 0; }
  .clinical-patient-summary { grid-template-columns: auto 1fr; }
  .clinical-patient-summary > div:nth-child(n+3) { padding-top: var(--ds-space-12); border-top: 1px solid var(--line); }
  .clinical-vitals > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clinical-detail-grid, .clinical-linked-grid { grid-template-columns: 1fr; }
  .clinical-attachment-form { grid-template-columns: 1fr; }
  .new-clinical-context-grid, .clinical-anamnesis-grid, .clinical-exam-grid, .clinical-plan-grid { grid-template-columns: 1fr; }
  #clinical-inline-exams { grid-template-columns: 1fr; }
  .clinical-record-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clinical-assessment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .new-clinical-footer { align-items: stretch; flex-direction: column; }
  .new-clinical-footer > div { width: 100%; flex-wrap: wrap; }
  .new-clinical-footer .button { flex: 1 1 160px; }
}
@media (max-width: 520px) {
  .clinical-patient-summary { gap: var(--ds-space-12); padding: var(--ds-space-16); }
  .clinical-vitals > div, .clinical-modal-grid { grid-template-columns: 1fr; }
  .clinical-exam-document-row { align-items: flex-start; flex-direction: column; }
  .clinical-exam-document-row > div { justify-content: flex-start; }
  .clinical-detail-section { min-height: 0; }
  .new-clinical-page { margin: -4px; }
  .new-clinical-header { margin-bottom: var(--ds-space-16); }
  .new-clinical-header h1 { font-size: var(--ds-font-size-22); }
  .new-clinical-section { padding: var(--ds-space-16) var(--ds-space-16); }
  .clinical-record-summary, .clinical-vital-grid, .clinical-assessment-grid { grid-template-columns: 1fr; }
  .clinical-summary-heading { align-items: stretch; flex-direction: column; }
  .clinical-anamnesis-grid .span-2, .clinical-exam-grid .span-2 { grid-column: auto; }
  .new-clinical-footer > div { display: grid; grid-template-columns: 1fr; gap: var(--ds-space-12); }
  .new-clinical-footer .button, .new-clinical-footer .button-primary { width: 100%; }
}
.primary-cell { display: flex; align-items: center; gap: var(--ds-space-12); }
.primary-cell strong, .primary-cell small { display: block; }
.primary-cell small { color: var(--muted); }
.cell-actions { display: flex; justify-content: flex-end; gap: var(--ds-space-4); }
.empty-state { padding: var(--ds-space-32) var(--ds-space-24); text-align: center; color: var(--muted); }
.empty-state i { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto var(--ds-space-16); border-radius: var(--ds-radius-16); background: var(--mint); color: var(--green); font-style: normal; font-size: var(--ds-font-size-22); }
.empty-state i .ui-icon { width: 25px; height: 25px; }
.empty-state h3 { margin: 0 0 var(--ds-space-8); color: var(--ink); }
.filter-tabs { display: flex; gap: var(--ds-space-8); }
.filter-tabs button { border: 0; padding: var(--ds-space-8) var(--ds-space-12); border-radius: var(--ds-radius-8); color: var(--muted); background: transparent; font-size: var(--ds-font-size-11); font-weight: 700; }
.filter-tabs button.active { color: var(--green); background: var(--visual-palette-e8f0ea); }
.schedule-panel { margin-top: var(--ds-space-20); }
.agenda-period-control { display: flex; align-items: center; gap: var(--ds-space-8); }
.agenda-period-control strong { min-width: 150px; color: var(--ink); font-size: var(--ds-font-size-13); text-align: center; }
.agenda-overview-metrics { display: grid; grid-template-columns: 1.35fr 1.45fr repeat(3, minmax(150px, .72fr)); gap: var(--ds-space-16); margin-bottom: var(--ds-space-16); }
.agenda-overview-metrics > article { min-width: 0; min-height: 166px; padding: var(--ds-space-20); }
.agenda-overview-metrics .metric-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--ds-radius-12); }
.agenda-overview-metrics small, .agenda-overview-metrics em { display: block; }
.agenda-overview-metrics small { color: var(--ink); font-weight: 700; }
.agenda-overview-metrics em { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); font-style: normal; }
.agenda-occupancy-card { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); align-content: start; gap: var(--ds-space-12); padding-right: 114px !important; }
.agenda-ring { right: 17px; width: 84px; height: 84px; }
.agenda-metric-delta { grid-column: 1 / -1; align-self: end; margin-top: auto; color: var(--green-2); font-size: var(--ds-font-size-11); }
.agenda-metric-delta.negative { color: var(--danger); }
.agenda-capacity-card { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-content: start; gap: var(--ds-space-12); }
.agenda-capacity-card > strong { grid-column: 1 / -1; font: 700 var(--ds-font-size-28) "Montserrat"; }
.capacity-track { grid-column: 1 / -1; height: 9px; display: flex; overflow: hidden; border-radius: var(--ds-radius-16); background: var(--visual-palette-edf0ed); }
.capacity-track > * { display: block; flex: 0 0 var(--segment); height: 100%; }
.capacity-track > i { background: var(--green-2); }
.capacity-track > b { background: var(--visual-palette-a9d5b4); }
.capacity-track > em { background: var(--visual-palette-aeb7b1); }
.agenda-capacity-card p { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--ds-space-4) var(--ds-space-12); margin: 0; color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 700; }
.agenda-capacity-card p span { align-self: center; }
.dot-light-green { background: var(--visual-palette-a9d5b4); }
.dot-gray { background: var(--visual-palette-aeb7b1); }
.agenda-quality-card { display: grid; align-content: start; }
.agenda-quality-card > small { margin-top: var(--ds-space-12); }
.agenda-quality-card > strong { margin-top: var(--ds-space-12); font: 700 var(--ds-font-size-28) "Montserrat"; }
.agenda-quality-card > p { align-self: end; margin: var(--ds-space-8) 0 0; color: var(--muted); font-size: var(--ds-font-size-11); }
.agenda-chart-grid { display: grid; grid-template-columns: 1.15fr repeat(3, minmax(0, 1fr)); gap: var(--ds-space-16); margin-bottom: var(--ds-space-16); }
.agenda-chart-card { min-width: 0; min-height: 250px; }
.agenda-chart-card .panel-header { padding: var(--ds-space-16) var(--ds-space-20) var(--ds-space-12); border-bottom: 0; }
.agenda-chart-card .panel-header small { display: block; margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); }
.agenda-week-bars { height: 176px; display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: var(--ds-space-8); padding: var(--ds-space-12) var(--ds-space-20) var(--ds-space-20); }
.agenda-week-bars > div { height: 100%; display: grid; grid-template-rows: 18px minmax(70px, 1fr) 18px; align-items: end; gap: var(--ds-space-4); text-align: center; }
.agenda-week-bars b { color: var(--muted); font-size: var(--ds-font-size-11); }
.agenda-week-bars span { height: 100%; display: flex; align-items: end; overflow: hidden; border-radius: var(--ds-radius-8) var(--ds-radius-8) var(--ds-radius-8) var(--ds-radius-8); background: var(--visual-palette-edf4ef); }
.agenda-week-bars i { width: 100%; height: var(--bar); min-height: 3px; border-radius: var(--ds-radius-8) var(--ds-radius-8) var(--ds-radius-8) var(--ds-radius-8); background: var(--green-2); }
.agenda-week-bars small { color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 700; }
.agenda-horizontal-bars { display: grid; gap: var(--ds-space-12); padding: var(--ds-space-12) var(--ds-space-20) var(--ds-space-20); }
.agenda-horizontal-row { display: grid; grid-template-columns: minmax(74px, 1fr) 1.6fr 34px; align-items: center; gap: var(--ds-space-8); min-width: 0; }
.agenda-horizontal-row > span { overflow: hidden; color: var(--ink); font-size: var(--ds-font-size-11); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.agenda-horizontal-row > div { height: 7px; overflow: hidden; border-radius: var(--ds-radius-16); background: var(--visual-palette-eef1ee); }
.agenda-horizontal-row i { display: block; width: var(--bar); height: 100%; border-radius: inherit; background: var(--visual-palette-8f6fc4); }
.agenda-horizontal-row b { color: var(--muted); font-size: var(--ds-font-size-11); text-align: right; }
.agenda-chart-empty { margin: var(--ds-space-32) var(--ds-space-20); color: var(--muted); font-size: var(--ds-font-size-11); line-height: 1.5; }
.agenda-management-grid { display: grid; grid-template-columns: 1.05fr 1.35fr 1fr; gap: var(--ds-space-16); }
.agenda-pending-list { display: grid; padding: var(--ds-space-8) var(--ds-space-16) var(--ds-space-16); }
.agenda-pending-list button { display: grid; grid-template-columns: 36px minmax(0, 1fr) 18px; align-items: center; gap: var(--ds-space-12); padding: var(--ds-space-12) 0; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; }
.agenda-pending-list button:last-child { border-bottom: 0; }
.agenda-pending-list i, .agenda-opportunity-list i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--ds-radius-12); }
.agenda-pending-list strong, .agenda-pending-list small, .agenda-opportunity-list strong, .agenda-opportunity-list small { display: block; }
.agenda-pending-list small, .agenda-opportunity-list small { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); }
.agenda-pending-list > button > .ui-icon { width: 14px; height: 14px; color: var(--muted); }
.agenda-free-days-panel { display: flex; flex-direction: column; }
.agenda-free-days { display: flex; flex: 1; flex-wrap: wrap; align-content: stretch; gap: var(--ds-space-8); padding: var(--ds-space-20); }
.agenda-free-days a { display: grid; flex: 1 1 110px; align-content: center; gap: var(--ds-space-4); min-width: 0; padding: var(--ds-space-12) var(--ds-space-8); border-radius: var(--ds-radius-12); color: var(--ink); background: var(--visual-palette-f5f9f5); text-align: center; text-decoration: none; }
.agenda-free-days a:hover { background: var(--visual-palette-e7f2ea); }
.agenda-free-days strong { font-size: var(--ds-font-size-11); }
.agenda-free-days b { font: 700 var(--ds-font-size-16) "Montserrat"; }
.agenda-free-days small { overflow: hidden; color: var(--muted); font-size: var(--ds-font-size-11); text-overflow: ellipsis; white-space: nowrap; }
.agenda-opportunity-list { display: grid; padding: var(--ds-space-8) var(--ds-space-16) var(--ds-space-16); }
.agenda-opportunity-list > div { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: var(--ds-space-12); padding: var(--ds-space-12) 0; border-bottom: 1px solid var(--line); }
.agenda-opportunity-list > div:last-child { border-bottom: 0; }
.agenda-insight-panel { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: var(--ds-space-12); margin-top: var(--ds-space-16); padding: var(--ds-space-16) var(--ds-space-20); border: 1px solid var(--visual-palette-cde5d8); border-radius: var(--radius); color: var(--green); background: var(--visual-palette-f0faf3); }
.agenda-insight-panel > i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--ds-radius-12); background: var(--visual-palette-e5f4ea); }
.agenda-insight-panel strong, .agenda-insight-panel span { display: block; }
.agenda-insight-panel span { margin-top: var(--ds-space-4); color: var(--visual-palette-557064); font-size: var(--ds-font-size-11); }
.agenda-insight-panel a { color: var(--green); font-size: var(--ds-font-size-11); font-weight: 700; text-decoration: none; }
.agenda-legend { display: flex; align-items: center; flex-wrap: wrap; gap: var(--ds-space-16) var(--ds-space-24); margin: var(--ds-space-20) var(--ds-space-20) var(--ds-space-20); padding: 0 var(--ds-space-4); }
.agenda-legend-item { display: flex; align-items: center; gap: var(--ds-space-8); color: var(--muted); font-size: var(--ds-font-size-12); font-weight: 700; }
.agenda-legend-filters { margin-left: auto; }
.legend-dot { width: 12px; height: 12px; border-radius: var(--ds-radius-16); background: var(--line); }
.legend-dot.available { box-sizing: border-box; background: var(--visual-color-surface); border: 2px solid var(--visual-palette-c4cbc7); }
.legend-dot.confirmed { background: var(--visual-palette-8062c7); }
.legend-dot.in-progress { background: var(--visual-palette-8fc3ef); }
.legend-dot.pending { background: var(--visual-palette-f5bb2d); }
.legend-dot.cancelled { background: var(--visual-palette-efb0ab); }
.legend-dot.blocked { background: var(--visual-palette-9aa39e); }
.legend-dot.completed { background: var(--visual-palette-56ad7f); }
.schedule-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--ds-space-20); padding: var(--ds-space-20) var(--ds-space-24); border-bottom: 1px solid var(--line); }
.schedule-toolbar.schedule-toolbar-filters { justify-content: flex-end; }
.schedule-toolbar h2 { margin: 0; font: 700 var(--ds-font-size-22) "Montserrat"; letter-spacing: -.03em; }
.schedule-toolbar p { margin: var(--ds-space-8) 0 0; color: var(--muted); }
.schedule-filters { display: grid; grid-template-columns: 150px 230px 220px; gap: var(--ds-space-12); align-items: end; }
.schedule-filters label { gap: var(--ds-space-8); }
.schedule-filters input, .schedule-filters select { padding: var(--ds-space-12) var(--ds-space-12); }
.schedule-multiselect { position: relative; display: grid; gap: var(--ds-space-8); min-width: 0; color: var(--ink); font-size: var(--ds-font-size-12); font-weight: 700; }
.schedule-multiselect details { position: relative; }
.schedule-multiselect summary { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-12); padding: var(--ds-space-12) var(--ds-space-12); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--visual-color-surface); color: var(--ink); cursor: pointer; list-style: none; }
.schedule-multiselect summary::-webkit-details-marker { display: none; }
.schedule-multiselect summary svg { width: 16px; height: 16px; color: var(--muted); transition: transform .15s ease; }
.schedule-multiselect details[open] summary { border-color: var(--green); box-shadow: 0 0 0 2px color-mix(in srgb, var(--green) 14%, transparent); }
.schedule-multiselect details[open] summary svg { transform: rotate(180deg); }
.schedule-multiselect-options { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; max-height: 260px; overflow: auto; padding: var(--ds-space-8); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--visual-color-surface); box-shadow: 0 10px 24px rgba(23, 48, 37, .14); }
.schedule-multiselect-options label { display: flex; align-items: center; gap: var(--ds-space-8); padding: var(--ds-space-8) var(--ds-space-8); border-radius: var(--ds-radius-8); color: var(--ink); cursor: pointer; font-weight: 700; }
.schedule-multiselect-options label:hover { background: var(--visual-palette-eff7f1); }
.schedule-multiselect-options input { width: 16px; height: 16px; margin: 0; accent-color: var(--green); }
.schedule-board { padding: var(--ds-space-20); overflow-x: auto; }
.appointment-list-view { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 300px); gap: var(--ds-space-16); width: 100%; min-width: 0; align-items: start; }
.appointment-list-bulkbar, .appointment-list-table-wrap { grid-column: 1; min-width: 0; border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--visual-color-surface); }
.appointment-list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-20); padding: var(--ds-space-16) var(--ds-space-16); }
.appointment-list-period-summary { min-width: 0; border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--visual-color-surface); }
.appointment-list-toolbar > div > strong, .appointment-list-toolbar > div > span { display: block; }
.appointment-list-toolbar > div > strong { font: 700 var(--ds-font-size-14) "Montserrat"; }
.appointment-list-toolbar > div > span { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); }
.appointment-list-bulkbar { display: flex; align-items: center; min-height: 68px; gap: var(--ds-space-8); margin-top: 0; padding: var(--ds-space-12) var(--ds-space-16); }
.appointment-list-bulkbar label { display: inline-flex; align-items: center; gap: var(--ds-space-8); margin-right: auto; font-size: var(--ds-font-size-12); }
.appointment-list-bulkbar input, .list-selection-checkbox { width: 16px; height: 16px; margin: 0; accent-color: var(--green); }
.appointment-list-bulkbar .button { min-height: 36px; padding: var(--ds-space-8) var(--ds-space-12); font-size: var(--ds-font-size-12); }
.appointment-list-bulkbar .button .ui-icon { width: 15px; height: 15px; }
.appointment-list-table-wrap { overflow-x: auto; }
.appointment-list-table { min-width: 860px; }
.appointment-list-table td { vertical-align: middle; }
.appointment-list-table td > strong, .appointment-list-table td > small { display: block; }
.appointment-list-table td > small { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); }
.list-pet-cell { display: flex; align-items: center; gap: var(--ds-space-8); min-width: 190px; }
.list-pet-photo { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border-radius: var(--ds-radius-12); color: var(--green); background: var(--visual-palette-e1f0e5); font-size: var(--ds-font-size-12); font-weight: 700; }
.list-pet-photo img { width: 100%; height: 100%; object-fit: cover; }
.list-pet-cell > span:last-child { min-width: 0; }
.list-pet-cell > span:last-child strong, .list-pet-cell > span:last-child small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-pet-cell > span:last-child small { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); }
.table-empty { padding: var(--ds-space-32); color: var(--muted); text-align: center; }
.appointment-list-sidebar { grid-column: 2; grid-row: 1 / span 3; display: grid; min-width: 0; gap: var(--ds-space-16); }
.appointment-list-summary, .appointment-list-filters { display: grid; gap: var(--ds-space-12); padding: var(--ds-space-20); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--visual-color-surface); }
.appointment-list-summary h3 { margin: 0 0 var(--ds-space-4); font: 700 var(--ds-font-size-16) "Montserrat"; }
.appointment-list-summary div { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: var(--ds-space-8); color: var(--visual-palette-53645b); font-size: var(--ds-font-size-12); }
.appointment-list-summary b { color: var(--ink); }
.appointment-list-filter-heading { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-8); }
.appointment-list-filter-heading h3 { margin: 0; font: 700 var(--ds-font-size-16) "Montserrat"; }
.appointment-list-filter-heading button { padding: 0; border: 0; color: var(--green); background: transparent; font: 700 var(--ds-font-size-11) "Montserrat"; cursor: pointer; }
.appointment-list-filters label { display: grid; gap: var(--ds-space-8); color: var(--visual-palette-53645b); font-size: var(--ds-font-size-11); font-weight: 700; }
.appointment-list-filters input, .appointment-list-filters select { min-height: 38px; padding: var(--ds-space-8) var(--ds-space-12); font-size: var(--ds-font-size-12); }
.appointment-list-date-range { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ds-space-8); }
.appointment-list-date-range input { width: 100%; min-width: 0; }
.schedule-column { border: 1px solid var(--line); border-radius: var(--ds-radius-16); background: var(--visual-color-surface); overflow: hidden; }
.schedule-column header { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-12); padding: var(--ds-space-16) var(--ds-space-16); background: var(--visual-palette-fafaf7); border-bottom: 1px solid var(--line); }
.schedule-column header strong { font: 700 var(--ds-font-size-16) "Montserrat"; }
.schedule-column header small { color: var(--muted); white-space: nowrap; }
.schedule-lane { display: grid; gap: var(--ds-space-8); padding: var(--ds-space-16); }
.schedule-section-title { margin-top: var(--ds-space-4); color: var(--visual-palette-8b958f); text-transform: uppercase; letter-spacing: .08em; font-size: var(--ds-font-size-11); font-weight: 700; }
.schedule-slot { display: grid; gap: var(--ds-space-4); padding: var(--ds-space-12) var(--ds-space-12); border-radius: var(--ds-radius-12); }
.schedule-slot.occupied { color: var(--visual-palette-8a3d35); background: var(--visual-palette-fff0ee); border: 1px solid var(--visual-palette-efc5bf); }
.schedule-slot strong { font-size: var(--ds-font-size-13); }
.schedule-slot span, .schedule-empty { color: var(--muted); font-size: var(--ds-font-size-12); }
.available-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: var(--ds-space-8); }
.available-grid button { border: 1px solid var(--visual-palette-cfe0d4); border-radius: var(--ds-radius-12); padding: var(--ds-space-8) var(--ds-space-8); color: var(--green); background: var(--visual-palette-f4faf5); font-weight: 700; }
.available-grid button:hover { color: var(--visual-color-surface); background: var(--green); border-color: var(--green); }
.calendar-commandbar { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-16); padding: var(--ds-space-16) var(--ds-space-20); border-bottom: 1px solid var(--content-border); background: var(--content-subtle); }
.calendar-nav { display: flex; align-items: center; gap: var(--ds-space-12); }
.calendar-nav strong { margin-left: var(--ds-space-8); font: 700 var(--ds-font-size-16) "Montserrat"; }
.calendar-view-toggle { display: inline-flex; padding: var(--ds-space-4); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--visual-color-surface); }
.calendar-view-toggle button { border: 0; padding: var(--ds-space-8) var(--ds-space-16); border-radius: var(--ds-radius-12); color: var(--muted); background: transparent; font-weight: 700; }
.calendar-view-toggle button.active { color: var(--visual-color-surface); background: var(--green); box-shadow: 0 8px 20px rgba(47,93,74,.18); }
.teams-calendar { min-width: 1060px; border: 1px solid var(--line); border-radius: var(--ds-radius-16); overflow: hidden; background: var(--visual-color-surface); }
.week-view { display: grid; grid-template-columns: 70px repeat(7, minmax(140px, 1fr)); overflow: visible; isolation: isolate; }
.month-view { display: grid; grid-template-columns: repeat(7, minmax(132px, 1fr)); }
.calendar-head { min-height: 64px; padding: var(--ds-space-12) var(--ds-space-16); border-right: 1px solid var(--content-border); border-bottom: 1px solid var(--content-border); background: var(--content-subtle); }
.calendar-head:last-child { border-right: 0; }
.calendar-head strong, .calendar-head small { display: block; }
.calendar-head strong { font: 700 var(--ds-font-size-13) "Montserrat"; text-transform: capitalize; }
.calendar-head small { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); }
.calendar-head-title { display: flex; align-items: center; gap: var(--ds-space-8); }
.calendar-today-badge { display: inline-flex; align-items: center; min-height: 18px; padding: var(--ds-space-4) var(--ds-space-8); border-radius: var(--ds-radius-16); color: var(--visual-color-surface); background: var(--green); font-size: var(--ds-font-size-11); font-weight: 700; text-transform: uppercase; }
.calendar-head.today { position: relative; z-index: 1; padding: var(--ds-space-12) var(--ds-space-12); color: var(--brand-dark); background: var(--content-highlight); border-top: 2px solid var(--content-highlight-border); border-right: 2px solid var(--content-highlight-border); border-left: 2px solid var(--content-highlight-border); box-shadow: none; }
.time-head { background: var(--visual-color-surface); }
.calendar-time { display: flex; justify-content: center; padding-top: var(--ds-space-20); color: var(--content-copy-muted); border-right: 1px solid var(--content-border); border-bottom: 1px solid var(--content-border); background: var(--content-subtle); font: 700 var(--ds-font-size-11) "Montserrat"; }
.calendar-cell { min-height: 78px; padding: var(--ds-space-8); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--visual-color-surface); display: flex; flex-direction: column; gap: var(--ds-space-8); }
.calendar-cell:nth-child(8n) { border-right: 0; }
.calendar-cell.today { box-shadow: inset 0 0 0 2px rgba(110, 193, 228, .42); background: var(--visual-palette-f8fcfe); }
.calendar-cell.empty { background: var(--visual-palette-fbfdfe); }
.week-calendar-cell { position: relative; height: 184px; min-height: 184px; overflow: visible; }
.week-calendar-cell.week-overflow-open { z-index: 100; }
.week-calendar-cell.today { position: relative; z-index: 1; border-right: 2px solid rgba(110, 193, 228, .7); border-left: 2px solid rgba(110, 193, 228, .7); box-shadow: none; }
.week-calendar-cell.today.week-calendar-last { border-bottom: 2px solid rgba(110, 193, 228, .7); }
.week-card-stack { min-height: 0; display: grid; align-content: start; gap: var(--ds-space-8); }
.week-calendar-cell.free .week-card-stack { display: none; }
.calendar-pill.available.week-add-appointment strong { font-size: var(--ds-font-size-28); font-weight: 700; line-height: 1; letter-spacing: 0; }
.week-appointment-card {
  width: 100%; min-width: 0; height: var(--week-appointment-height, 58px); min-height: 58px; padding: var(--ds-space-8) var(--ds-space-8); border-radius: var(--ds-radius-8);
}
.week-appointment-card:hover { filter: brightness(.98); box-shadow: 0 4px 12px rgba(25, 54, 41, .08); }
.calendar-pill.week-appointment-card > .week-card-main { display: grid !important; grid-template-columns: 28px minmax(0, 1fr) auto 18px; grid-template-areas: "photo info timing status" "photo info count status"; align-items: center; column-gap: var(--ds-space-8); row-gap: var(--ds-space-4); height: 100%; min-width: 0; margin: 0; overflow: visible; white-space: normal; }
.week-card-main .calendar-pet-photo { grid-area: photo; }
.week-card-main .calendar-pet-photo { width: 28px; height: 28px; border-radius: 50%; font-size: var(--ds-font-size-11); }
.week-card-info { grid-area: info; min-width: 0; }
.week-card-info strong, .week-card-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.week-card-info strong { font-size: var(--ds-font-size-11); line-height: 1.2; }
.week-card-info small { margin-top: var(--ds-space-4); font-size: var(--ds-font-size-11); line-height: 1; opacity: .78; }
.week-card-timing { grid-area: timing; min-width: 0; text-align: right; white-space: nowrap; }
.week-card-timing strong, .week-card-timing small { display: block; }
.week-card-timing strong { font-size: var(--ds-font-size-11); line-height: 1.1; }
.week-card-timing small { margin-top: var(--ds-space-4); font-size: var(--ds-font-size-11); opacity: .75; }
.week-card-service-count { grid-area: count; justify-self: end; padding: var(--ds-space-4) var(--ds-space-4); border-radius: var(--ds-radius-16); color: currentColor; background: rgba(255,255,255,.62); font-size: var(--ds-font-size-11); font-weight: 700; white-space: nowrap; }
.week-appointment-card .calendar-pill-status { grid-area: status; width: 18px; height: 18px; border-width: 1px; }
.week-appointment-card .calendar-pill-status .ui-icon { width: 10px; height: 10px; }
.week-cell-actions { flex: 1; min-height: 0; display: flex; align-items: stretch; justify-content: center; gap: var(--ds-space-8); }
.week-add-appointment, .week-overflow-trigger {
  font-size: var(--ds-font-size-11); font-weight: 700;
}
.week-add-appointment { width: 100%; min-height: 0; height: 100%; display: grid; place-items: center; }
.week-overflow-trigger {
  width: 100%; min-height: 46px; display: grid; place-items: center; border: 1px solid transparent;
  border-radius: var(--ds-radius-12); text-align: center;
}
.week-capacity-action {
  color: var(--visual-palette-77817c);
  background:
    repeating-linear-gradient(135deg, rgba(145, 156, 150, .14) 0 4px, rgba(145, 156, 150, .04) 4px 8px),
    var(--visual-palette-f5f7f6);
  border-color: var(--visual-palette-dce2df);
}
.week-capacity-action:hover,
.week-overflow-trigger[aria-expanded="true"] {
  color: var(--visual-color-surface); border-color: var(--visual-palette-77817c); background: var(--visual-palette-77817c);
}
.week-overflow { position: relative; width: 100%; }
.week-overflow-popover {
  position: absolute; z-index: 1000; left: 50%; bottom: calc(100% + 8px); width: 310px; max-height: 360px;
  box-sizing: border-box; overflow-x: hidden; overflow-y: auto; padding: var(--ds-space-12); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--visual-color-surface);
  box-shadow: 0 18px 45px rgba(22, 45, 34, .18); transform: translateX(-50%);
}
.week-overflow-popover header { display: flex; justify-content: space-between; gap: var(--ds-space-12); margin-bottom: var(--ds-space-8); }
.week-overflow-popover header strong { font: 700 var(--ds-font-size-12) "Montserrat"; }
.week-overflow-popover header small { color: var(--muted); }
.week-overflow-list { display: grid; gap: var(--ds-space-4); }
.week-overflow-list > div { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: var(--ds-space-8); padding: var(--ds-space-8); border-radius: var(--ds-radius-8); background: var(--visual-palette-f8faf7); }
.week-card-avatar { width: 30px; height: 30px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--mint); color: var(--green); font-size: var(--ds-font-size-11); font-weight: 700; }
.week-card-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.week-overflow-list > div > span:last-child { min-width: 0; }
.week-overflow-list strong, .week-overflow-list small { display: block; }
.week-overflow-list strong { font-size: var(--ds-font-size-11); }
.week-overflow-list small { overflow: hidden; color: var(--muted); font-size: var(--ds-font-size-11); text-overflow: ellipsis; white-space: nowrap; }
.week-open-day { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-8); margin-top: var(--ds-space-8); padding: var(--ds-space-8) var(--ds-space-12); border: 1px solid var(--line); border-radius: var(--ds-radius-8); color: var(--green); background: var(--visual-color-surface); font-size: var(--ds-font-size-11); font-weight: 700; }
.week-open-day .ui-icon { width: 13px; height: 13px; }
.calendar-pill { width: 100%; min-width: 0; min-height: 48px; border: 1px solid transparent; border-radius: var(--ds-radius-12); padding: var(--ds-space-8) var(--ds-space-8); text-align: left; line-height: 1.2; cursor: pointer; }
.calendar-pill > strong, .calendar-pill > span:not(.calendar-pill-heading):not(.calendar-pill-detail) { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-pill > strong { font-size: var(--ds-font-size-11); }
.calendar-pill > span:not(.calendar-pill-heading):not(.calendar-pill-detail) { margin-top: var(--ds-space-4); font-size: var(--ds-font-size-11); }
.calendar-pill.occupied { color: var(--visual-palette-7c4e10); background: var(--visual-palette-fff8df); border-color: var(--visual-palette-efd485); box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
.calendar-pill.appointment-confirmed { color: var(--visual-palette-684ba9); background: var(--visual-palette-f4efff); border-color: var(--visual-palette-d4c5f2); }
.calendar-pill.appointment-in_progress { color: var(--visual-palette-245b83); background: var(--visual-palette-edf7ff); border-color: var(--visual-palette-a8d2f2); }
.calendar-pill.appointment-pending { color: var(--visual-palette-8a6618); background: var(--visual-palette-fff8df); border-color: var(--visual-palette-efd485); }
.calendar-pill.appointment-no_show { color: var(--visual-palette-95453d); background: var(--visual-palette-fff0ee); border-color: var(--visual-palette-efb7b0); }
.calendar-pill.appointment-completed { color: var(--visual-palette-2b7658); background: var(--visual-palette-eff9f1); border-color: var(--visual-palette-b9dec4); }
.calendar-pill-heading { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-4); min-width: 0; }
.calendar-pill-time { min-width: 0; overflow: hidden; color: currentColor; font-size: var(--ds-font-size-11); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; opacity: .86; }
.calendar-pill-status { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 auto; border: 2px solid currentColor; border-radius: 50%; color: currentColor; font-size: var(--ds-font-size-11); opacity: .72; }
.calendar-pill-status .ui-icon { width: 14px; height: 14px; stroke-width: 2.5; }
.week-appointment-card .calendar-pill-status .ui-icon { width: 10px; height: 10px; }
.calendar-pill-detail { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: var(--ds-space-8); min-width: 0; margin-top: var(--ds-space-4); }
.calendar-pet-photo { width: 30px; height: 30px; overflow: hidden; display: grid; place-items: center; border: 1px solid rgba(28,54,42,.14); border-radius: 50%; color: currentColor; background: var(--visual-color-surface); font-size: var(--ds-font-size-11); font-weight: 700; }
.calendar-pet-photo img { width: 100%; height: 100%; object-fit: cover; }
.calendar-pill-copy { min-width: 0; overflow: hidden; }
.calendar-pill-copy strong, .calendar-service { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-pill-copy strong { color: currentColor; font-size: var(--ds-font-size-11); }
.calendar-service { margin-top: var(--ds-space-4); color: currentColor; font-size: var(--ds-font-size-11); opacity: .78; }
.calendar-pill.available {
  min-height: 46px; display: grid; place-items: center; color: var(--visual-palette-9aa39e); text-align: center;
  background:
    repeating-linear-gradient(135deg, rgba(156, 166, 160, .10) 0 4px, rgba(156, 166, 160, .025) 4px 8px),
    var(--visual-palette-fcfdfc);
  border: 1px dashed var(--visual-palette-e0e5e1);
}
.calendar-pill.available strong { color: currentColor; font-size: var(--ds-font-size-11); letter-spacing: .08em; }
.calendar-pill.available:hover { color: var(--green); background: var(--visual-color-surface); border-color: var(--visual-palette-82bd97); }
.calendar-pill.available:active { background: var(--visual-palette-edf8f0); border-style: solid; }
.month-calendar-layout { display: grid; grid-template-columns: minmax(760px, 1fr) minmax(260px, 300px); gap: var(--ds-space-16); align-items: start; }
.month-heatmap { min-width: 0; }
.month-cell {
  min-height: 126px; padding: var(--ds-space-12); border: 0; border-right: 1px solid rgba(224, 229, 224, .85); border-bottom: 1px solid rgba(224, 229, 224, .85);
  display: flex; flex-direction: column; gap: var(--ds-space-16); color: var(--visual-palette-26352e); background: var(--visual-color-surface); text-align: left; transition: transform .16s ease, box-shadow .16s ease;
}
.month-cell:nth-child(7n) { border-right: 0; }
.month-cell:not(:disabled) { cursor: pointer; }
.month-cell:not(:disabled):hover { position: relative; z-index: 1; box-shadow: inset 0 0 0 1px var(--green), 0 8px 18px rgba(26, 69, 49, .11); transform: translateY(-1px); }
.month-cell.today { box-shadow: inset 0 0 0 2px var(--content-highlight-border); background: var(--content-highlight); }
.month-cell.today:not(:disabled):hover { box-shadow: inset 0 0 0 2px var(--green), 0 8px 18px rgba(26, 69, 49, .11); }
.month-cell.muted-month { color: var(--visual-palette-aeb6b0); background: var(--visual-palette-fafaf7); opacity: .72; }
.month-heat-low { background: var(--visual-palette-fff1f0); }
.month-heat-medium { background: var(--visual-palette-fff8df); }
.month-heat-high { color: var(--visual-color-surface); background: var(--visual-palette-277850); }
.month-day { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--ds-space-8); }
.month-day strong { font: 700 var(--ds-font-size-16) "Montserrat"; line-height: 1; }
.month-day small { max-width: 76px; color: currentColor; font-size: var(--ds-font-size-11); font-weight: 700; line-height: 1.25; text-align: right; opacity: .8; }
.month-heat-stats { display: flex; align-items: center; gap: var(--ds-space-8); margin-top: auto; font-size: var(--ds-font-size-12); }
.month-heat-stats > i, .month-reading-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--visual-palette-e85c64); }
.month-heat-medium .month-heat-stats > i { background: var(--visual-palette-f1aa19); }
.month-heat-high .month-heat-stats > i { background: var(--visual-palette-d8f5e4); }
.month-heat-stats b { font: 700 var(--ds-font-size-16) "Montserrat"; }
.month-heat-stats em { margin-left: auto; font-size: var(--ds-font-size-11); font-style: normal; font-weight: 700; }
.month-occupancy-track { display: block; height: 5px; overflow: hidden; border-radius: var(--ds-radius-16); background: rgba(59, 78, 66, .16); }
.month-occupancy-track i { display: block; width: var(--occupancy); height: 100%; border-radius: inherit; background: var(--visual-palette-e85c64); }
.month-heat-medium .month-occupancy-track i { background: var(--visual-palette-f1aa19); }
.month-heat-high .month-occupancy-track { background: rgba(255, 255, 255, .3); }
.month-heat-high .month-occupancy-track i { background: var(--visual-color-surface); }
.month-calendar-sidebar { display: grid; gap: var(--ds-space-16); }
.month-calendar-sidebar .panel { padding: var(--ds-space-20); }
.month-calendar-sidebar h3, .month-calendar-sidebar h4 { margin: 0; font: 700 var(--ds-font-size-16) "Montserrat"; }
.month-legend-list { display: grid; gap: var(--ds-space-12); margin-top: var(--ds-space-20); }
.month-legend-list > div { display: flex; align-items: center; gap: var(--ds-space-12); }
.month-legend-list span { display: grid; gap: var(--ds-space-4); }
.month-legend-list strong { font-size: var(--ds-font-size-12); }
.month-legend-list small { color: var(--muted); font-size: var(--ds-font-size-11); }
.month-legend-swatch { width: 22px; height: 22px; flex: 0 0 auto; border-radius: var(--ds-radius-8); background: var(--visual-palette-eee); }
.month-legend-swatch.high { background: var(--visual-palette-2e8258); }
.month-legend-swatch.medium { background: var(--visual-palette-ffd26e); }
.month-legend-swatch.low { background: var(--visual-palette-ef8586); }
.month-legend-swatch.outside { background: var(--visual-palette-e5e8e5); }
.month-reading-guide { display: grid; gap: var(--ds-space-12); margin-top: var(--ds-space-20); padding-top: var(--ds-space-20); border-top: 1px solid var(--line); }
.month-reading-guide p { margin: 0; color: var(--muted); font-size: var(--ds-font-size-12); line-height: 1.6; }
.month-reading-guide p:last-child { display: flex; align-items: center; gap: var(--ds-space-8); color: var(--visual-palette-536058); font-size: var(--ds-font-size-11); }
.month-reading-dot { background: var(--green); }
.month-reading-bar { width: 24px; height: 4px; margin-left: var(--ds-space-4); border-radius: var(--ds-radius-16); background: var(--visual-palette-9aa39e); }
.month-summary-card dl { display: grid; gap: var(--ds-space-12); margin: var(--ds-space-20) 0 0; }
.month-summary-card dl > div { display: flex; justify-content: space-between; gap: var(--ds-space-12); }
.month-summary-card dt { color: var(--muted); font-size: var(--ds-font-size-12); }
.month-summary-card dd { margin: 0; color: var(--green); font-weight: 700; text-align: right; }
.month-calendar-tip { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--ds-space-12); padding: var(--ds-space-12) var(--ds-space-16); border: 1px solid var(--visual-palette-dce8df); border-radius: var(--ds-radius-12); color: var(--visual-palette-5e6d64); background: var(--visual-palette-f7fbf7); font-size: var(--ds-font-size-12); }
.month-calendar-tip i { color: var(--green); }
.day-calendar-layout { display: grid; grid-template-columns: minmax(620px, 1fr) minmax(280px, 330px); gap: var(--ds-space-16); align-items: start; }
.teams-calendar.day-view { min-width: 0; }
.day-calendar-head { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-16); padding: var(--ds-space-16) var(--ds-space-20); border-bottom: 1px solid var(--content-border); background: var(--content-subtle); }
.day-calendar-head strong, .day-calendar-head small { display: block; }
.day-calendar-head strong { font: 700 var(--ds-font-size-16) "Montserrat"; }
.day-calendar-head small { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); }
.day-calendar-timeline { display: grid; }
.day-calendar-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); min-height: 88px; border-bottom: 1px solid var(--line); }
.day-calendar-row.is-collapsed { min-height: 0; }
.day-calendar-row.is-collapsed .day-calendar-events { display: flex; align-items: center; padding-block: 0; }
.day-calendar-row.is-collapsed .day-slot-group { width: 100%; }
.day-calendar-row:last-child { border-bottom: 0; }
.day-calendar-row > time { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--ds-space-4); padding: var(--ds-space-12) var(--ds-space-8); color: var(--content-copy-muted); background: var(--content-subtle); border-right: 1px solid var(--content-border); font: 700 var(--ds-font-size-11) "Montserrat"; text-align: center; }
.day-calendar-events { display: grid; gap: var(--ds-space-8); min-width: 0; padding: var(--ds-space-8); background: var(--visual-color-surface); }
.day-calendar-events.empty { background: var(--visual-palette-fbfdfe); }
.day-slot-group { overflow: hidden; border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--visual-color-surface); }
.day-slot-group-header { min-height: 42px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--ds-space-8); padding: var(--ds-space-8) var(--ds-space-8); border-bottom: 1px solid var(--content-border); background: var(--content-subtle); }
.day-slot-group.is-collapsed { overflow: visible; border: 0; border-radius: 0; background: transparent; }
.day-slot-group.is-collapsed .day-slot-group-header { padding-inline: var(--ds-space-8); border: 1px solid var(--line); border-radius: var(--ds-radius-8); background: var(--visual-color-surface); }
.day-time-toggle { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 auto; padding: 0; border: 0; border-radius: var(--ds-radius-8); color: var(--green); background: var(--mint); }
.day-time-toggle .ui-icon { width: 14px; height: 14px; }
.day-slot-group-header > strong { color: var(--ink); font: 700 var(--ds-font-size-12) "Montserrat"; white-space: nowrap; }
.day-slot-statuses { display: flex; justify-content: flex-end; gap: var(--ds-space-8); min-width: 0; color: var(--muted); font-size: var(--ds-font-size-11); }
.day-slot-statuses span { display: inline-flex; align-items: center; gap: var(--ds-space-4); }
.day-slot-statuses .legend-dot { width: 8px; height: 8px; }
.day-slot-more { width: 28px; height: 28px; justify-self: end; padding: 0; }
.day-slot-appointments { display: grid; gap: var(--ds-space-8); padding: var(--ds-space-8); }
.day-appointment { display: grid; grid-template-columns: minmax(0, 1fr) 38px; overflow: hidden; border: 1px solid var(--visual-palette-efd485); border-radius: var(--ds-radius-8); color: var(--visual-palette-8a6618); background: var(--visual-palette-fff8df); }
.day-appointment.appointment-confirmed { color: var(--visual-palette-684ba9); border-color: var(--visual-palette-d4c5f2); background: var(--visual-palette-f4efff); }
.day-appointment.appointment-in_progress { color: var(--visual-palette-245b83); border-color: var(--visual-palette-a8d2f2); background: var(--visual-palette-edf7ff); }
.day-appointment.appointment-pending { color: var(--visual-palette-8a6618); border-color: var(--visual-palette-efd485); background: var(--visual-palette-fff8df); }
.day-appointment.appointment-no_show { color: var(--visual-palette-95453d); border-color: var(--visual-palette-efb7b0); background: var(--visual-palette-fff0ee); }
.day-appointment.appointment-completed { color: var(--visual-palette-2b7658); border-color: var(--visual-palette-b9dec4); background: var(--visual-palette-eff9f1); }
.day-appointment-main { min-width: 0; display: grid; grid-template-columns: 38px minmax(120px, 1fr) minmax(98px, auto) auto auto; align-items: center; gap: var(--ds-space-12); padding: var(--ds-space-8) var(--ds-space-12); border: 0; color: inherit; background: transparent; text-align: left; }
.day-appointment-main:hover { background: rgba(255,255,255,.38); }
.day-appointment-photo { width: 38px; height: 38px; overflow: hidden; display: grid; place-items: center; border-radius: 50%; color: currentColor; background: rgba(255,255,255,.7); font: 700 var(--ds-font-size-12) "Montserrat"; }
.day-appointment-photo img { width: 100%; height: 100%; object-fit: cover; }
.day-appointment-copy, .day-appointment-timing { min-width: 0; }
.day-appointment-copy strong, .day-appointment-copy small, .day-appointment-timing strong, .day-appointment-timing small { display: block; }
.day-appointment-copy strong { overflow: hidden; font-size: var(--ds-font-size-12); text-overflow: ellipsis; white-space: nowrap; }
.day-appointment-copy small, .day-appointment-timing small { margin-top: var(--ds-space-4); color: currentColor; opacity: .78; font-size: var(--ds-font-size-11); }
.day-appointment-timing { text-align: right; white-space: nowrap; }
.day-appointment-timing strong { font-size: var(--ds-font-size-11); }
.day-appointment-service-count { padding: var(--ds-space-4) var(--ds-space-8); border-radius: var(--ds-radius-16); color: currentColor; background: rgba(255,255,255,.62); font-size: var(--ds-font-size-11); font-weight: 700; white-space: nowrap; }
.day-appointment-status { display: inline-flex; align-items: center; gap: var(--ds-space-4); font-size: var(--ds-font-size-11); font-weight: 700; white-space: nowrap; }
.day-appointment-status .legend-dot { width: 8px; height: 8px; }
.day-appointment-toggle { width: 38px; display: grid; place-items: center; padding: 0; border: 0; border-left: 1px solid rgba(94, 96, 88, .16); color: currentColor; background: transparent; }
.day-appointment-toggle:hover { background: rgba(255,255,255,.38); }
.day-appointment-toggle .ui-icon { width: 17px; height: 17px; }
.day-appointment-external-navigation { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--ds-space-8); min-height: 42px; padding: var(--ds-space-8) var(--ds-space-12); border-top: 1px solid rgba(94, 96, 88, .16); background: rgba(255,255,255,.34); }
.day-appointment-external-navigation > span { display: inline-flex; align-items: center; gap: var(--ds-space-4); margin-right: auto; color: currentColor; font-size: var(--ds-font-size-11); font-weight: 700; }
.day-appointment-external-navigation > span .ui-icon { width: 14px; height: 14px; }
.day-appointment-external-navigation a { width: 46px; height: 28px; display: grid; place-items: center; padding: var(--ds-space-4); border-radius: var(--ds-radius-8); line-height: 0; text-decoration: none; }
.day-appointment-external-navigation a:hover { background: rgba(255,255,255,.58); }
.day-appointment-external-navigation img { display: block; object-fit: contain; }
.day-appointment-external-navigation img[alt="Google Maps"] { width: 39px; height: 20px; }
.day-appointment-external-navigation img[alt="Waze"] { width: 40px; height: 18px; transform: translateY(1px); }
.day-appointment-services { grid-column: 1 / -1; display: grid; gap: var(--ds-space-8); padding: var(--ds-space-12); border-top: 1px solid rgba(94, 96, 88, .16); background: rgba(255,255,255,.4); }
.day-appointment-services > strong { margin: var(--ds-space-4) var(--ds-space-4) var(--ds-space-4); color: currentColor; font-size: var(--ds-font-size-11); }
.day-service-row { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 104px auto; align-items: center; gap: var(--ds-space-12); padding: 0 var(--ds-space-8) 0 0; border: 1px solid rgba(94, 96, 88, .14); border-radius: var(--ds-radius-8); color: var(--ink); background: rgba(255,255,255,.78); }
.day-service-main { min-width: 0; min-height: 52px; display: grid; grid-template-columns: minmax(180px, 52%) minmax(118px, 1fr); align-items: center; gap: var(--ds-space-16); padding: var(--ds-space-12) var(--ds-space-12); border: 0; border-radius: var(--ds-radius-8); color: inherit; background: transparent; text-align: left; }
.day-service-main:hover { background: var(--visual-color-surface); }
.day-service-name { min-width: 0; }
.day-service-name strong, .day-service-name small { display: block; }
.day-service-name strong { overflow: hidden; font-size: var(--ds-font-size-11); text-overflow: ellipsis; white-space: nowrap; }
.day-service-name small { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); }
.day-service-employee { overflow: hidden; color: var(--visual-palette-59665f); font-size: var(--ds-font-size-11); text-overflow: ellipsis; white-space: nowrap; }
.day-service-row > .status { margin-right: var(--ds-space-4); font-size: var(--ds-font-size-11); white-space: nowrap; }
.day-service-navigation { width: 104px; display: inline-flex; align-items: center; justify-content: flex-end; gap: var(--ds-space-8); padding-right: var(--ds-space-4); }
.day-service-navigation a { width: 46px; height: 32px; display: grid; place-items: center; padding: var(--ds-space-4); border-radius: var(--ds-radius-8); line-height: 0; text-decoration: none; }
.day-service-navigation a:hover { background: var(--mint); }
.day-service-navigation img, .day-navigation-link img { display: block; object-fit: contain; object-position: center; }
.day-service-navigation img[alt="Google Maps"] { width: 39px; height: 20px; }
.day-service-navigation img[alt="Waze"] { width: 40px; height: 18px; transform: translateY(1px); }
.day-view .calendar-pill { min-height: 72px; padding: var(--ds-space-8) var(--ds-space-12); }
.day-view .calendar-pill-heading { align-items: flex-start; }
.day-view .calendar-pill-time { font-size: var(--ds-font-size-12); }
.day-view .calendar-pill-detail { grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: var(--ds-space-12); margin-top: var(--ds-space-8); }
.day-view .calendar-pet-photo { width: 38px; height: 38px; }
.day-view .calendar-pill-copy strong { font-size: var(--ds-font-size-13); }
.day-view .calendar-service { margin-top: var(--ds-space-4); font-size: var(--ds-font-size-11); }
.day-appointment-card-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: stretch; min-width: 0; overflow: hidden; border: 1px solid var(--visual-palette-efd485); border-radius: var(--ds-radius-12); color: var(--visual-palette-7c4e10); background: var(--visual-palette-fff8df); box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
.day-appointment-card-wrap.appointment-confirmed { color: var(--visual-palette-684ba9); background: var(--visual-palette-f4efff); border-color: var(--visual-palette-d4c5f2); }
.day-appointment-card-wrap.appointment-in_progress { color: var(--visual-palette-245b83); background: var(--visual-palette-edf7ff); border-color: var(--visual-palette-a8d2f2); }
.day-appointment-card-wrap.appointment-pending { color: var(--visual-palette-8a6618); background: var(--visual-palette-fff8df); border-color: var(--visual-palette-efd485); }
.day-appointment-card-wrap.appointment-no_show { color: var(--visual-palette-95453d); background: var(--visual-palette-fff0ee); border-color: var(--visual-palette-efb7b0); }
.day-appointment-card-wrap.appointment-completed { color: var(--visual-palette-2b7658); background: var(--visual-palette-eff9f1); border-color: var(--visual-palette-b9dec4); }
.day-appointment-card-wrap .calendar-pill { width: 100%; min-width: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.day-navigation-actions { display: flex; align-items: center; justify-content: center; gap: var(--ds-space-4); padding: var(--ds-space-8); }
.day-navigation-link { width: 62px; min-width: 62px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: var(--ds-space-4); border: 0; border-radius: var(--ds-radius-8); color: currentColor; background: transparent; text-decoration: none; }
.day-navigation-link:hover { background: rgba(255,255,255,.48); }
.day-navigation-link img[alt="Google Maps"] { width: 48px; height: 24px; }
.day-navigation-link img[alt="Waze"] { width: 52px; height: 20px; transform: translateY(1px); }
.day-navigation-link.disabled { color: var(--visual-palette-8a9690); border-color: var(--line); background: var(--visual-palette-f5f6f4); cursor: not-allowed; }
.day-navigation-status { align-self: center; margin: 0 var(--ds-space-12) 0 0; }
.day-free-slot { width: 100%; min-height: 54px; display: grid; place-items: center; padding: var(--ds-space-8) var(--ds-space-16); border: 1px dashed var(--visual-palette-d9dfdb); border-radius: var(--ds-radius-8); color: var(--visual-palette-5b6962); background: var(--visual-palette-fbfcfb); font: inherit; text-align: center; cursor: pointer; }
.day-free-slot:hover { border-color: var(--visual-palette-7eb899); color: var(--visual-palette-287052); background: var(--visual-palette-f4fbf6); }
.day-free-slot strong { color: var(--visual-color-muted); font-size: var(--ds-font-size-11); text-transform: uppercase; letter-spacing: .05em; }
.day-free-slot small { overflow: hidden; color: var(--muted); font-size: var(--ds-font-size-11); text-overflow: ellipsis; white-space: nowrap; }
.day-blocked-slot { min-height: 54px; display: flex; align-items: center; gap: var(--ds-space-12); padding: var(--ds-space-8) var(--ds-space-16); border: 1px solid var(--visual-palette-d8ddda); border-radius: var(--ds-radius-8); color: var(--visual-palette-68736d); background: var(--visual-palette-f1f3f2); }
.day-blocked-slot i { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: var(--ds-radius-8); background: var(--visual-palette-e3e7e5); }
.day-blocked-slot i .ui-icon { width: 17px; height: 17px; }
.day-blocked-slot strong, .day-blocked-slot small { display: block; }
.day-blocked-slot small { margin-top: var(--ds-space-4); color: var(--visual-palette-78847e); }
.day-calendar-sidebar { display: grid; gap: var(--ds-space-16); }
.day-calendar-sidebar .panel { padding: var(--ds-space-20); border-radius: var(--ds-radius-12); }
.day-side-title { display: flex; align-items: center; gap: var(--ds-space-8); margin-bottom: var(--ds-space-16); }
.day-side-title i { display: grid; place-items: center; width: 30px; height: 30px; color: var(--green); background: var(--mint); border-radius: var(--ds-radius-8); }
.day-side-title i .ui-icon { width: 16px; height: 16px; }
.day-side-title strong { font: 700 var(--ds-font-size-14) "Montserrat"; }
.day-availability-facts { display: grid; grid-template-columns: .8fr 1.2fr; border: 1px solid var(--line); border-radius: var(--ds-radius-8); overflow: hidden; }
.day-availability-facts > div { min-height: 74px; display: grid; align-content: center; justify-items: center; gap: var(--ds-space-4); padding: var(--ds-space-12); text-align: center; }
.day-availability-facts > div + div { border-left: 1px solid var(--line); }
.day-availability-facts b { color: var(--green); font: 700 var(--ds-font-size-16) "Montserrat"; }
.day-availability-facts span { color: var(--muted); font-size: var(--ds-font-size-11); }
.day-side-subtitle { display: block; margin: var(--ds-space-20) 0 var(--ds-space-12); font-size: var(--ds-font-size-12); }
.day-free-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-space-8); }
.day-free-grid > span { min-height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--ds-radius-8); color: var(--green); background: var(--visual-color-surface); font-size: var(--ds-font-size-12); font-weight: 700; }
.day-no-slots { grid-column: 1 / -1; padding: var(--ds-space-16); color: var(--muted); background: var(--visual-palette-fafaf7); border-radius: var(--ds-radius-8); font-size: var(--ds-font-size-11); text-align: center; }
.day-summary-content { display: grid; grid-template-columns: 108px minmax(0, 1fr); align-items: center; gap: var(--ds-space-16); }
.day-summary-ring { width: 104px; height: 104px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--green) 0 var(--occupancy), var(--visual-palette-e4eee8) var(--occupancy) 100%); }
.day-summary-ring::before { content: ""; grid-area: 1 / 1; width: 76px; height: 76px; border-radius: 50%; background: var(--visual-color-surface); }
.day-summary-ring span { position: relative; grid-area: 1 / 1; text-align: center; background: var(--visual-color-surface); }
.day-summary-ring b, .day-summary-ring small { display: block; }
.day-summary-ring b { font: 700 var(--ds-font-size-22) "Montserrat"; }
.day-summary-ring small { color: var(--muted); font-size: var(--ds-font-size-11); }
.day-summary-list { display: grid; gap: var(--ds-space-8); }
.day-summary-list > div { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: var(--ds-space-8); color: var(--visual-palette-59665f); font-size: var(--ds-font-size-11); }
.day-summary-list .legend-dot { width: 7px; height: 7px; }
.day-summary-list b { color: var(--ink); }
.day-calendar-tip { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--ds-space-12); min-height: 48px; padding: var(--ds-space-12) var(--ds-space-16); border: 1px solid var(--visual-palette-d8e7ee); border-radius: var(--ds-radius-8); color: var(--visual-palette-506b7f); background: var(--visual-palette-f3f9fc); font-size: var(--ds-font-size-12); }
.day-calendar-tip i { display: grid; place-items: center; color: var(--green); }
.day-calendar-tip i .ui-icon { width: 18px; height: 18px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; padding: var(--ds-space-24); display: grid; place-items: center; background: rgba(21,36,29,.48); backdrop-filter: blur(5px); }
.modal-card { position: relative; width: min(600px, 100%); max-height: calc(100vh - 44px); overflow: auto; padding: var(--ds-space-32); border-radius: var(--ds-radius-16); background: var(--visual-color-surface); box-shadow: var(--shadow); }
.modal-card.plan-modal-card { max-height: calc(100vh - 28px); padding: var(--ds-space-24) var(--ds-space-32); }
.modal-card.client-create-modal-card { width: min(980px, 100%); padding: var(--ds-space-24); }
.modal-card.client-create-modal-card .modal-close { display: none; }
.modal-close { position: absolute; right: 18px; top: 17px; width: 34px; height: 34px; border: 0; border-radius: var(--ds-radius-12); color: var(--muted); background: var(--cream); font-size: var(--ds-font-size-22); }
.modal-close .ui-icon, .preview-lightbox-close .ui-icon { width: 19px; height: 19px; }
.modal-card h2 { margin: 0 0 var(--ds-space-8); font: 700 var(--ds-font-size-22) "Montserrat"; }
.modal-card .form-grid { margin-top: var(--ds-space-24); }
.modal-actions { display: flex; justify-content: flex-end; gap: var(--ds-space-12); margin-top: var(--ds-space-24); padding-top: var(--ds-space-20); border-top: 1px solid var(--line); }
.modal-card.client-create-modal-card:has(.package-create-form) { width: min(1120px, 100%); padding: var(--ds-space-24); overflow-x: hidden; }
.package-form-header { display: grid; grid-template-columns: 54px minmax(0, 1fr) 42px; align-items: center; gap: var(--ds-space-16); padding-bottom: var(--ds-space-20); border-bottom: 1px solid var(--line); }
.package-form-header > i { width: 54px; height: 54px; display: grid; place-items: center; border-radius: var(--ds-radius-16); color: var(--green); background: var(--visual-palette-edf7f0); font-style: normal; }
.package-form-header > i .ui-icon { width: 26px; height: 26px; }
.package-form-header h2 { margin: 0 0 var(--ds-space-4); font-size: var(--ds-font-size-28); }
.package-form-header p { margin: 0; color: var(--muted); }
.package-pet-header p { margin-top: var(--ds-space-4); color: var(--ink); }
.package-pet-header p strong { color: var(--green); }
.package-pet-header small { display: block; margin-top: var(--ds-space-4); color: var(--muted); }
.package-form-header .modal-close-inline { align-self: start; }
.package-create-form { display: grid; gap: var(--ds-space-16); margin-top: var(--ds-space-20); }
.package-form-section { padding: var(--ds-space-20); border: 1px solid var(--line); border-radius: var(--ds-radius-16); background: var(--visual-color-surface); }
.package-form-section > header { display: flex; align-items: flex-start; gap: var(--ds-space-12); margin-bottom: var(--ds-space-20); }
.package-form-section > header > i { width: 30px; height: 30px; display: grid; flex: 0 0 30px; place-items: center; border-radius: var(--ds-radius-8); color: var(--green); background: var(--visual-palette-eaf5ed); font-style: normal; }
.package-form-section > header > i .ui-icon { width: 17px; height: 17px; }
.package-form-section h3, .package-form-section h4 { margin: 0; font: 700 var(--ds-font-size-16) "Montserrat"; }
.package-form-section header p { margin: var(--ds-space-4) 0 0; color: var(--muted); font-size: var(--ds-font-size-12); }
.package-info-grid { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-areas: "name validity" "price description"; align-items: start; gap: var(--ds-space-20) var(--ds-space-24); }
.package-info-grid label { min-width: 0; align-self: start; align-content: start; }
.package-info-grid label:nth-child(1) { grid-area: name; }
.package-info-grid label:nth-child(2) { grid-area: validity; }
.package-info-grid label:nth-child(3) { grid-area: price; }
.package-info-grid label:nth-child(4) { grid-area: description; }
.package-info-grid label > small { margin-top: -3px; color: var(--muted); font-weight: 500; }
.package-info-grid label > em { color: var(--muted); font-style: normal; font-weight: 500; }
.package-info-grid input { min-height: 50px; }
.package-money-input { position: relative; display: block; }
.package-money-input b { position: absolute; left: 14px; top: 13px; z-index: 1; font-weight: 700; }
.package-money-input input { padding-left: var(--ds-space-32); }
.package-service-search { display: flex; align-items: center; gap: var(--ds-space-12); min-height: 46px; padding: 0 var(--ds-space-16); border: 1px solid var(--line); border-radius: var(--ds-radius-12); color: var(--green); background: var(--visual-color-surface); }
.package-service-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(20, 96, 68, .1); }
.package-service-search .ui-icon { flex: 0 0 18px; width: 18px; height: 18px; }
.package-service-search input { min-width: 0; height: 42px; padding: 0; border: 0; outline: 0; box-shadow: none; }
.package-service-table, .package-pet-table { margin-top: var(--ds-space-12); overflow-x: auto; border: 1px solid var(--line); border-radius: var(--ds-radius-12); }
.package-service-table { max-height: 390px; overflow: auto; scrollbar-gutter: stable; }
.package-service-head, .package-service-row { min-width: 810px; display: grid; grid-template-columns: minmax(290px, 1.65fr) .65fr .75fr minmax(145px, .8fr); align-items: center; gap: var(--ds-space-12); }
.package-service-head { position: sticky; top: 0; z-index: 2; padding: var(--ds-space-12) var(--ds-space-16) var(--ds-space-12) var(--ds-space-32); color: var(--muted); background: var(--visual-palette-fafbf9); box-shadow: 0 1px 0 var(--line); text-transform: uppercase; letter-spacing: .06em; font-size: var(--ds-font-size-11); font-weight: 700; }
.package-service-row { position: relative; grid-template-columns: 28px minmax(240px, 1.65fr) .65fr .75fr minmax(145px, .8fr); min-width: 850px; padding: var(--ds-space-12) var(--ds-space-16); border-top: 1px solid var(--line); color: var(--visual-palette-4d5a53); }
.package-service-row:first-child { border-top: 0; }
.package-service-row.selected { background: var(--visual-palette-fdfefd); }
.package-service-row:not(.selected) > .package-quantity-control { display: none; }
.package-service-row > input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.package-service-name, .package-pet-name { display: flex; align-items: center; gap: var(--ds-space-12); min-width: 0; }
.package-service-name .pet-avatar, .package-pet-name .pet-avatar { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; }
.package-service-name strong, .package-service-name small, .package-pet-name strong, .package-pet-name small { display: block; }
.package-service-name strong, .package-pet-name strong { color: var(--ink); }
.package-service-name small, .package-pet-name small { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); }
.package-quantity-control { display: grid; grid-template-columns: 38px 52px 38px; overflow: hidden; width: max-content; border: 1px solid var(--line); border-radius: var(--ds-radius-8); background: var(--visual-color-surface); }
.package-quantity-control button { width: 38px; height: 40px; border: 0; color: var(--ink); background: var(--visual-color-surface); font-size: var(--ds-font-size-16); }
.package-quantity-control input { width: 52px; height: 40px; padding: 0; border-width: 0 1px; border-radius: 0; text-align: center; appearance: textfield; }
.package-quantity-control input::-webkit-inner-spin-button { appearance: none; }
.package-no-services { padding: var(--ds-space-32); color: var(--muted); text-align: center; }
.package-financial-summary { margin-top: var(--ds-space-16); overflow: hidden; border: 1px solid var(--line); border-radius: var(--ds-radius-12); }
.package-financial-summary > header { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-16); padding: var(--ds-space-16); }
.package-financial-summary h4 { font-size: var(--ds-font-size-14); }
.package-financial-summary > header > span { display: inline-flex; align-items: center; gap: var(--ds-space-8); padding: var(--ds-space-8) var(--ds-space-12); border-radius: var(--ds-radius-8); color: var(--green); background: var(--visual-palette-edf7f0); font-size: var(--ds-font-size-11); font-weight: 700; }
.package-financial-summary > header > span .ui-icon { width: 14px; height: 14px; }
.package-financial-equation { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: var(--ds-space-16); padding: 0 var(--ds-space-16) var(--ds-space-16); }
.package-financial-equation > article { display: grid; align-content: center; min-height: 118px; padding: var(--ds-space-16); border: 1px solid var(--line); border-radius: var(--ds-radius-12); text-align: center; }
.package-financial-equation > b { color: var(--muted); font-size: var(--ds-font-size-22); font-weight: 500; }
.package-financial-equation small { display: flex; align-items: center; justify-content: center; gap: var(--ds-space-4); color: var(--ink); font-size: var(--ds-font-size-11); }
.package-financial-equation small .ui-icon { width: 13px; height: 13px; }
.package-financial-equation strong { margin: var(--ds-space-8) 0 var(--ds-space-4); font: 700 var(--ds-font-size-22) "Montserrat"; }
.package-financial-equation em { color: var(--muted); font-size: var(--ds-font-size-11); font-style: normal; }
.package-financial-equation .package-savings { border-color: var(--visual-palette-badbca); color: var(--green); background: var(--visual-palette-f2faf5); }
.package-financial-summary details { border-top: 1px solid var(--line); }
.package-financial-summary summary { display: flex; align-items: center; justify-content: space-between; padding: var(--ds-space-12) var(--ds-space-16); cursor: pointer; font-size: var(--ds-font-size-11); font-weight: 700; list-style: none; }
.package-financial-summary summary .ui-icon { width: 15px; height: 15px; }
#package-calculation-details, #subscription-calculation-details { display: grid; gap: var(--ds-space-8); padding: 0 var(--ds-space-16) var(--ds-space-16); }
#package-calculation-details > span, #subscription-calculation-details > span { display: grid; grid-template-columns: 1fr auto auto; gap: var(--ds-space-20); color: var(--muted); font-size: var(--ds-font-size-11); }
#package-calculation-details b, #subscription-calculation-details b { color: var(--ink); }
#package-calculation-details em, #subscription-calculation-details em { font-style: normal; }
.package-availability { padding-block: var(--ds-space-16); }
.package-availability > header { margin-bottom: var(--ds-space-8); }
.package-availability > label { display: flex; align-items: flex-start; gap: var(--ds-space-12); }
.package-availability input { width: 18px; height: 18px; margin: var(--ds-space-4) 0 0; accent-color: var(--green); }
.package-availability strong, .package-availability small { display: block; }
.package-availability small { margin-top: var(--ds-space-4); color: var(--muted); font-weight: 500; }
.package-form-footer { position: sticky; bottom: -24px; z-index: 3; display: flex; align-items: flex-start; justify-content: flex-end; gap: var(--ds-space-12); margin: 0 -24px -24px; padding: var(--ds-space-16) var(--ds-space-24); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); }
.package-link-action { display: grid; justify-items: center; gap: var(--ds-space-4); }
.package-link-action small { color: var(--muted); font-size: var(--ds-font-size-11); }
.package-pet-toolbar { display: grid; grid-template-columns: 1fr auto; gap: var(--ds-space-12); }
.package-pet-link-body { min-width: 0; }
.package-pet-filters { margin-top: var(--ds-space-12); padding: var(--ds-space-12); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--visual-palette-fafbf9); }
.package-pet-filters label { max-width: 240px; }
.package-pet-head, .package-pet-row { min-width: 780px; display: grid; grid-template-columns: 28px minmax(220px, 1.2fr) minmax(190px, 1fr) minmax(210px, 1fr); align-items: center; gap: var(--ds-space-12); }
.package-pet-head { padding: var(--ds-space-12) var(--ds-space-16); color: var(--muted); background: var(--visual-palette-fafbf9); text-transform: uppercase; letter-spacing: .06em; font-size: var(--ds-font-size-11); font-weight: 700; }
.package-pet-head > input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.package-pet-row { padding: var(--ds-space-12) var(--ds-space-16); border-top: 1px solid var(--line); cursor: pointer; }
.package-pet-row:hover, .package-pet-row:has(input:checked) { background: var(--visual-palette-f4faf6); }
.package-pet-row > input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.package-pet-row > span > strong, .package-pet-row > span > small { display: block; }
.package-pet-row > span > small { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); }
.package-active-badge { display: inline-grid; gap: var(--ds-space-4); min-width: 150px; padding: var(--ds-space-8) var(--ds-space-12); border: 1px solid var(--visual-palette-cde5d8); border-radius: var(--ds-radius-8); color: var(--green); background: var(--visual-palette-edf7f0); }
.package-active-badge small { color: var(--visual-palette-53645b) !important; }
.package-pet-pagination { min-width: 780px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--ds-space-16); padding: var(--ds-space-12) var(--ds-space-16); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--ds-font-size-11); }
.package-pet-pagination > label { display: flex; align-items: center; gap: var(--ds-space-8); font-size: var(--ds-font-size-11); }
.package-pet-pagination select { width: 68px; min-height: 34px; padding: var(--ds-space-8) var(--ds-space-8); }
.package-pet-pagination > span { white-space: nowrap; }
.package-pet-pagination nav { display: flex; align-items: center; justify-content: flex-end; gap: var(--ds-space-4); }
.package-pet-pagination nav button { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: var(--ds-radius-8); color: var(--ink); background: transparent; font-size: var(--ds-font-size-11); font-weight: 700; }
.package-pet-pagination nav button.active { border-color: var(--visual-palette-9ccbb4); color: var(--green); background: var(--visual-palette-f4faf6); }
.package-pet-pagination nav button .ui-icon { width: 15px; height: 15px; }
.package-pet-footer { align-items: center; }
.package-pet-footer > span { display: flex; align-items: center; gap: var(--ds-space-12); margin-right: auto; }
.package-pet-footer > span button { border: 0; color: var(--green); background: transparent; font-size: var(--ds-font-size-11); font-weight: 700; }
.appointment-create-page { max-width: 1320px; margin: 0 auto; }
.appointment-create-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--ds-space-20); margin-bottom: var(--ds-space-24); }
.appointment-create-heading h1 { margin: 0; font: 700 var(--ds-font-size-28) "Montserrat"; }
.appointment-create-heading p { margin: var(--ds-space-8) 0 0; color: var(--muted); }
.appointment-create-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .72fr); align-items: start; gap: var(--ds-space-24); }
.appointment-create-main, .appointment-summary-panel { padding: var(--ds-space-24); border: 1px solid var(--line); border-radius: var(--ds-radius-16); background: var(--visual-color-surface); }
.appointment-create-main .form-grid { margin: 0; }
.appointment-create-form .form-grid > label { align-content: start; }
#appointment-form .form-grid > label { align-content: start; }
.appointment-client-field { position: relative; align-content: start; }
.appointment-client-search { min-height: 46px; display: flex; align-items: center; gap: var(--ds-space-8); padding: 0 var(--ds-space-12); border: 1px solid var(--line); border-radius: var(--ds-radius-8); background: var(--visual-color-surface); }
.appointment-client-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(16, 145, 117, .1); }
.appointment-client-search .ui-icon { width: 17px; color: var(--muted); }
.appointment-client-search input { min-width: 0; padding: 0; border: 0; outline: 0; box-shadow: none; }
.appointment-client-native { display: none; }
.appointment-client-results { position: absolute; top: 70px; right: 0; left: 0; z-index: 5; overflow: auto; max-height: 220px; border: 1px solid var(--line); border-radius: var(--ds-radius-8); background: var(--visual-color-surface); box-shadow: 0 12px 28px rgba(11, 43, 61, .15); }
.appointment-client-results > button { width: 100%; display: grid; gap: var(--ds-space-4); padding: var(--ds-space-12) var(--ds-space-12); border: 0; border-bottom: 1px solid var(--visual-palette-edf1ef); color: var(--ink); background: var(--visual-color-surface); text-align: left; cursor: pointer; }
.appointment-client-results > button:last-child { border-bottom: 0; }
.appointment-client-results > button:hover { background: var(--visual-palette-f3faf7); }
.appointment-client-results strong, .appointment-client-results small { display: block; }
.appointment-client-results small { color: var(--muted); font-size: var(--ds-font-size-11); }
.appointment-client-empty { color: var(--visual-palette-a14957); font-size: var(--ds-font-size-11); }
.appointment-new-client-link { width: fit-content; padding: 0; border: 0; color: var(--green); background: transparent; font-size: var(--ds-font-size-11); font-weight: 700; cursor: pointer; }
.appointment-new-client-link .ui-icon { width: 15px; vertical-align: -3px; }
.appointment-journey-note { margin: 0 var(--ds-space-24) var(--ds-space-16); padding: var(--ds-space-12) var(--ds-space-12); border: 1px solid var(--visual-palette-b9dec9); border-radius: var(--ds-radius-12); color: var(--visual-palette-176e58); background: var(--visual-palette-f2faf5); font-size: var(--ds-font-size-12); }
.appointment-journey-note .ui-icon { width: 16px; margin-right: var(--ds-space-8); vertical-align: -3px; }
.appointment-create-main .modal-actions { position: sticky; bottom: 0; z-index: 2; margin: var(--ds-space-24) -24px -24px; padding: var(--ds-space-16) var(--ds-space-24); background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); }
.appointment-summary-panel { position: sticky; top: 94px; display: grid; gap: var(--ds-space-16); }
.appointment-summary-panel h2 { margin: 0; font: 700 var(--ds-font-size-16) "Montserrat"; }
.appointment-summary-person { display: flex; align-items: center; gap: var(--ds-space-12); }
.appointment-summary-person .metric-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 36px; border-radius: var(--ds-radius-12); }
.appointment-summary-person small, .appointment-summary-person strong { display: block; }
.appointment-summary-person small { color: var(--muted); font-size: var(--ds-font-size-11); }
.appointment-summary-person strong { margin-top: var(--ds-space-4); font-size: var(--ds-font-size-13); }
.appointment-summary-services { padding-top: var(--ds-space-16); border-top: 1px solid var(--line); }
.appointment-summary-services h3 { margin: 0 0 var(--ds-space-12); font: 700 var(--ds-font-size-14) "Montserrat"; }
.appointment-summary-empty { color: var(--muted); font-size: var(--ds-font-size-12); }
.appointment-summary-service { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: var(--ds-space-8); padding: var(--ds-space-12) 0; border-top: 1px solid var(--visual-palette-f0f1ed); }
.appointment-summary-service:first-of-type { border-top: 0; }
.appointment-summary-service .metric-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--ds-radius-8); color: var(--visual-palette-6d4b9f); background: var(--visual-palette-f0e9fb); }
.appointment-summary-service .metric-icon .ui-icon { width: 18px; height: 18px; }
.appointment-summary-service strong, .appointment-summary-service small { display: block; }
.appointment-summary-service strong { font-size: var(--ds-font-size-12); }
.appointment-summary-service small { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); }
.appointment-summary-service b { font-size: var(--ds-font-size-12); white-space: nowrap; }
.appointment-summary-totals { display: grid; gap: var(--ds-space-12); padding: var(--ds-space-16) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.appointment-summary-totals span { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: var(--ds-space-8); color: var(--muted); font-size: var(--ds-font-size-12); }
.appointment-summary-totals .ui-icon { width: 17px; color: var(--green); }
.appointment-summary-totals strong { color: var(--ink); }
.appointment-summary-benefit { display: grid; gap: var(--ds-space-4); padding: var(--ds-space-12); border: 1px solid var(--visual-palette-b9dec9); border-radius: var(--ds-radius-12); background: var(--visual-palette-f2faf5); color: var(--green); }
.appointment-summary-benefit strong { display: flex; align-items: center; gap: var(--ds-space-8); font-size: var(--ds-font-size-13); }
.appointment-summary-benefit strong .ui-icon { width: 17px; }
.appointment-summary-benefit span { color: var(--visual-palette-53645b); font-size: var(--ds-font-size-12); }
.treatment-drawer-backdrop { position: fixed; inset: 0; z-index: 120; background: rgba(21, 36, 29, .34); backdrop-filter: blur(2px); }
.treatment-drawer {
  position: fixed; z-index: 121; top: 0; right: 0; width: min(520px, 100vw); height: 100vh; overflow-y: auto;
  background: var(--visual-color-surface); box-shadow: -18px 0 50px rgba(18, 40, 30, .18);
}
.treatment-drawer-header { position: sticky; z-index: 3; top: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-12); padding: var(--ds-space-20) var(--ds-space-24); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.treatment-drawer-header > div { min-width: 0; }
.treatment-drawer-header h2 { margin: 0; font: 700 var(--ds-font-size-22) "Montserrat"; }
.treatment-drawer-header p { margin: var(--ds-space-4) 0 0; color: var(--muted); font-size: var(--ds-font-size-12); }
.treatment-drawer-body { display: grid; gap: var(--ds-space-16); padding: var(--ds-space-20) var(--ds-space-24) var(--ds-space-32); }
.treatment-pet-summary { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: var(--ds-space-16); align-items: center; }
.treatment-pet-photo { width: 70px; height: 70px; overflow: hidden; display: grid; place-items: center; border-radius: var(--ds-radius-16); color: var(--green); background: var(--mint); font: 700 var(--ds-font-size-22) "Montserrat"; }
.treatment-pet-photo img { width: 100%; height: 100%; object-fit: cover; }
.treatment-pet-summary h3 { margin: 0 0 var(--ds-space-4); font: 700 var(--ds-font-size-22) "Montserrat"; }
.treatment-pet-summary p { margin: var(--ds-space-4) 0; color: var(--muted); font-size: var(--ds-font-size-12); }
.treatment-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--ds-radius-8); overflow: hidden; }
.treatment-facts > div { padding: var(--ds-space-12); }
.treatment-facts > div:nth-child(even) { border-left: 1px solid var(--line); }
.treatment-facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.treatment-facts small, .treatment-facts strong { display: block; }
.treatment-facts small { color: var(--muted); font-size: var(--ds-font-size-11); }
.treatment-facts strong { margin-top: var(--ds-space-4); font-size: var(--ds-font-size-12); }
.treatment-section { padding: var(--ds-space-16); border: 1px solid var(--line); border-radius: var(--ds-radius-8); }
.treatment-section > h3 { margin: 0 0 var(--ds-space-12); font: 700 var(--ds-font-size-13) "Montserrat"; }
.treatment-alert { padding: var(--ds-space-12) var(--ds-space-16); border: 1px solid var(--visual-palette-f0d49f); border-radius: var(--ds-radius-8); color: var(--visual-palette-815b1f); background: var(--visual-palette-fff8e9); font-size: var(--ds-font-size-12); }
.treatment-action-row { display: flex; flex-wrap: wrap; gap: var(--ds-space-8); }
.treatment-action-row .button { flex: 1 1 150px; }
.treatment-management-actions .treatment-action-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.treatment-management-actions .treatment-action-row .button { min-height: 50px; margin: 0; padding: var(--ds-space-12) var(--ds-space-12); flex: none; justify-content: center; }
.treatment-management-actions .treatment-execution-actions { margin-top: var(--ds-space-12); padding-top: var(--ds-space-12); border-top: 1px solid var(--line); }
.treatment-inline-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: var(--ds-space-8); align-items: end; }
.treatment-inline-form.product-form { grid-template-columns: minmax(0, 1fr) 90px auto; }
.treatment-inline-form label { min-width: 0; font-size: var(--ds-font-size-11); }
.treatment-inline-form select, .treatment-inline-form input { min-width: 0; padding: var(--ds-space-8); }
.treatment-list { display: grid; gap: var(--ds-space-8); }
.treatment-list > div { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-12); padding: var(--ds-space-8) var(--ds-space-12); border-radius: var(--ds-radius-8); background: var(--visual-palette-f7f9f6); }
.treatment-list strong, .treatment-list small { display: block; }
.treatment-list small { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); }
.treatment-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ds-space-8); margin-bottom: var(--ds-space-12); }
.treatment-photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--ds-radius-8); }
.treatment-notes { width: 100%; min-height: 96px; }
body.treatment-drawer-open { overflow: hidden; }
.toast-root { position: fixed; z-index: 200; right: 20px; top: 20px; display: grid; gap: var(--ds-space-12); }
.toast { min-width: 280px; padding: var(--ds-space-16) var(--ds-space-16); border-radius: var(--ds-radius-12); color: var(--visual-color-surface); background: var(--green); box-shadow: var(--shadow); animation: slide-in .25s ease; }
.toast.error { background: var(--danger); }
.skeleton { min-height: 90px; border-radius: var(--radius); background: linear-gradient(100deg, var(--visual-palette-e2f1f1) 20%, var(--visual-palette-f8fbfc) 40%, var(--visual-palette-e2f1f1) 60%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.client-hero { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; min-height: 300px; margin-bottom: var(--ds-space-20); padding: var(--ds-space-32); border-radius: var(--ds-radius-16); color: var(--visual-color-surface); background: var(--green); }
.client-hero h1 { margin: var(--ds-space-12) 0; font: 700 clamp(var(--ds-font-size-28), 4vw, var(--ds-font-size-28))/1.05 "Montserrat"; letter-spacing: -.045em; }
.client-hero p { max-width: 600px; margin: 0 0 var(--ds-space-24); color: var(--visual-palette-c6d9d0); font-size: var(--ds-font-size-16); }
.client-hero .button-primary { color: var(--visual-color-surface); background: var(--visual-color-primary); }
.client-hero-mark { width: 160px; height: 160px; flex: 0 0 auto; display: grid; place-items: center; margin-right: 5%; border: 1px solid rgba(255,255,255,.16); border-radius: 45% 55% 56% 44%; color: var(--peach); background: rgba(255,255,255,.06); font: 700 var(--ds-font-size-28) "Montserrat"; transform: rotate(-8deg); }
.client-pet-list { display: grid; gap: var(--ds-space-4); padding: var(--ds-space-12) var(--ds-space-20) var(--ds-space-20); }
.client-pet-card { display: flex; align-items: center; gap: var(--ds-space-12); padding: var(--ds-space-12) 0; border-bottom: 1px solid var(--line); }
.client-pet-card:last-child { border-bottom: 0; }
.client-pet-card strong, .client-pet-card small { display: block; }
.client-pet-card small { color: var(--muted); }
.booking-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .55fr); gap: var(--ds-space-20); }
.booking-panel { padding: var(--ds-space-32); }
.booking-steps { display: flex; align-items: center; max-width: 330px; margin-bottom: var(--ds-space-32); }
.booking-steps span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); background: var(--cream); font-weight: 700; }
.booking-steps span.active { color: var(--visual-color-surface); background: var(--green); }
.booking-steps i { height: 2px; flex: 1; background: var(--line); }
.booking-help .help-list { padding: var(--ds-space-20); }
.booking-help .help-list p { margin: 0; padding: var(--ds-space-16) 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.booking-help b { display: inline-grid; place-items: center; width: 25px; height: 25px; margin-right: var(--ds-space-8); border-radius: var(--ds-radius-8); color: var(--green); background: var(--mint); }
.slot-picker { margin-top: var(--ds-space-24); padding: var(--ds-space-20); border-radius: var(--ds-radius-16); background: var(--visual-palette-f8f9f5); }
.appointment-slots { max-height: 190px; overflow-y: auto; scrollbar-gutter: stable; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: var(--ds-space-8); margin-top: var(--ds-space-12); }
.slot-grid button { padding: var(--ds-space-12); border: 1px solid var(--line); border-radius: var(--ds-radius-12); color: var(--green); background: var(--visual-color-surface); font-weight: 700; }
.slot-grid button:hover, .slot-grid button.active { color: var(--visual-color-surface); border-color: var(--green); background: var(--green); }
.client-pets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--ds-space-16); }
.client-pet-profile { padding: var(--ds-space-24); text-align: center; }
.pet-avatar.large { width: 72px; height: 72px; margin: 0 auto var(--ds-space-16); border-radius: var(--ds-radius-16); font-size: var(--ds-font-size-22); }
.client-pet-profile h2 { margin: 0; font: 700 var(--ds-font-size-22) "Montserrat"; }
.client-pet-profile > p { margin: var(--ds-space-4) 0 var(--ds-space-20); color: var(--muted); }
.pet-facts { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: var(--ds-space-16); border: 1px solid var(--line); border-radius: var(--ds-radius-12); }
.pet-facts span { padding: var(--ds-space-12); }
.pet-facts span + span { border-left: 1px solid var(--line); }
.pet-facts small, .pet-facts strong { display: block; }
.pet-facts small { color: var(--muted); }
.pet-alert { margin-bottom: var(--ds-space-16); padding: var(--ds-space-12); border-radius: var(--ds-radius-12); color: var(--visual-palette-8a6618); background: var(--visual-palette-fff3cf); font-size: var(--ds-font-size-12); }
@keyframes shimmer { to { background-position-x: -200%; } }
@keyframes slide-in { from { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 1280px) {
  .crm-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .crm-metrics-six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .crm-panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-relationship-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-relationship-grid > :first-child { grid-column: 1 / -1; }
  .crm-overview-primary-grid { grid-template-columns: 1fr; }
  .crm-overview-analytics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .relationship-list-header { align-items: flex-start; flex-direction: column; }
  .relationship-toolbar { width: 100%; justify-content: flex-end; }
  .segment-workspace { grid-template-columns: 1fr; }
  .segment-guide { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: var(--ds-space-12); }
  .segment-guide h2 { margin: var(--ds-space-8) 0 var(--ds-space-16); }
  .segment-guide > div { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .crm-period-filter { width: 100%; flex-wrap: wrap; }
  .crm-period-filter label { flex: 1 1 130px; }
  .crm-period-filter input { width: 100%; }
  .crm-metrics, .crm-panel-grid { grid-template-columns: 1fr; }
  .crm-metrics-six, .crm-overview-analytics-grid, .crm-bottom-insights { grid-template-columns: 1fr; }
  .crm-relationship-grid > :first-child { grid-column: auto; }
  .crm-contact-group { align-items: flex-start; flex-direction: column; }
  .crm-contact-actions { width: 100%; }
  .crm-contact-group .button { width: 100%; }
  .crm-growth-stats { grid-template-columns: 1fr; }
  .crm-contact-client { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .crm-contact-client > b { grid-column: 2 / -1; text-align: left; }
  .crm-growth-chart-dual { height: 176px; }
  .crm-size-bars { min-height: 170px; }
  .crm-insight-panel { grid-template-columns: 40px minmax(0, 1fr); }
  .crm-insight-panel .button { grid-column: 1 / -1; width: 100%; }
  .crm-campaign-panel { grid-template-columns: 40px minmax(0, 1fr); }
  .crm-campaign-panel .button { grid-column: 1 / -1; width: 100%; }
  .treatment-drawer { width: 100vw; }
  .treatment-drawer-header, .treatment-drawer-body { padding-left: var(--ds-space-16); padding-right: var(--ds-space-16); }
  .treatment-inline-form, .treatment-inline-form.product-form { grid-template-columns: 1fr; }
  .treatment-inline-form .button { width: 100%; }
  .week-overflow-popover { position: fixed; left: 12px; right: 12px; bottom: 18px; width: auto; max-height: 65vh; transform: none; }
}

@media (max-width: 1280px) {
  .catalog-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-overview-card, .catalog-category-card, .catalog-alerts-card { grid-column: span 3; }
  .marketing-hero {
    grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
    gap: var(--ds-space-32);
    min-height: auto;
    padding-top: var(--ds-space-32);
  }
  .hero-copy { width: 100%; }
  .hero-copy h1 { font-size: var(--ds-font-size-28); }
  .hero-copy p { font-size: var(--ds-font-size-16); }
  .product-preview {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    align-self: center;
  }
}

@media (max-width: 1100px) {
  .appointment-create-layout { grid-template-columns: 1fr; }
  .appointment-summary-panel { position: static; }
  .appointment-list-view { grid-template-columns: 1fr; }
  .appointment-list-sidebar { grid-column: 1; grid-row: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .appointment-list-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .appointment-list-summary h3 { grid-column: 1 / -1; }
  .marketing-nav nav { display: none; }
  .marketing-hero { grid-template-columns: 1fr; min-height: auto; padding-top: var(--ds-space-32); }
  .hero-copy { width: 100%; max-width: 650px; }
  .product-preview { position: relative; right: auto; top: auto; width: 100%; margin-top: var(--ds-space-32); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .day-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day-card-wide { grid-column: span 2; }
  .plan-summary-grid { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .schedule-toolbar { align-items: stretch; flex-direction: column; }
  .schedule-filters { grid-template-columns: 1fr 1fr 1fr; }
  .calendar-commandbar { align-items: flex-end; flex-wrap: wrap; }
  .agenda-legend-filters { width: 100%; margin-left: 0; }
  .day-calendar-layout { grid-template-columns: 1fr; }
  .day-calendar-sidebar { grid-template-columns: 1fr 1fr; }
  .month-calendar-layout { grid-template-columns: 1fr; }
  .month-calendar-sidebar { grid-template-columns: 1fr 1fr; }
  .agenda-overview-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .agenda-occupancy-card, .agenda-capacity-card { grid-column: span 1; }
  .agenda-chart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agenda-management-grid { grid-template-columns: 1fr 1fr; }
  .agenda-management-grid > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 820px) {
  .product-form-grid, .product-usage-options, .product-prices, .supplier-product-grid { grid-template-columns: 1fr; }
  .product-usage-option { min-height: 0; }
  .product-form-actions { bottom: -16px; margin: 0 -16px -16px; padding: var(--ds-space-16) var(--ds-space-16); }
  .employee-filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .supplier-list-controls { grid-template-columns: 1fr 210px; }
  .supplier-list-controls > .button { grid-column: span 2; }
  .supplier-filter-panel { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
  .supplier-address-grid { grid-template-columns: 1fr 110px 1fr; }
  .employee-filter-panel > .button { width: 100%; }
  .catalog-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-overview-card, .catalog-category-card, .catalog-alerts-card { grid-column: 1 / -1; }
  .catalog-custom-period { align-items: stretch; flex-direction: column; }
  .catalog-category-layout { grid-template-columns: 1fr; justify-items: center; }
  .catalog-category-legend { width: 100%; }
  .client-list-controls { grid-template-columns: 1fr 1fr; }
  .service-list-controls { grid-template-columns: minmax(0, 1fr) minmax(190px, .75fr) auto; }
  .service-filter-panel { grid-template-columns: 1fr 1fr; }
  .relationship-summary-grid { grid-template-columns: 1fr; }
  .segment-metrics { grid-template-columns: 1fr; }
  .segment-list-header { align-items: flex-start; flex-direction: column; }
  .segment-list-header > div { width: 100%; flex-wrap: wrap; }
  .relationship-list-header { padding: var(--ds-space-12) var(--ds-space-12) 0; }
  .relationship-tabs { width: 100%; overflow-x: auto; }
  .relationship-toolbar { align-items: stretch; flex-wrap: wrap; }
  .relationship-filter-panel, .segment-filter-panel { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .relationship-search { flex: 1 1 180px; }
  .relationship-order { flex: 1 1 160px; }
  .relationship-order select { flex: 1; }
  .pet-filter-panel { grid-template-columns: 1fr 1fr; }
  .client-search-field { grid-column: 1 / -1; }
  .service-list-controls .client-search-field { grid-column: auto; }
  .client-center-grid { grid-template-columns: 1fr; }
  .marketing-screen { padding-top: var(--ds-space-32); }
  #top, #recursos, #funcionalidades, #planos, #depoimentos, #faq, #contato { scroll-margin-top: 124px; }
  .marketing-nav { height: auto; padding: var(--ds-space-20); align-items: flex-start; }
  .marketing-actions { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
  .marketing-screen main { padding: 0 var(--ds-space-20); }
  .hero-copy h1 { font-size: var(--ds-font-size-28); }
  .product-preview { min-height: 0; }
  .product-preview img { min-height: 0; }
  .feature-grid, .pricing-grid, .faq-section, .marketing-footer { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .marketing-cta { align-items: flex-start; flex-direction: column; }
  .cookie-consent-banner { left: 50%; bottom: 16px; width: calc(100vw - 32px); align-items: stretch; flex-direction: column; gap: var(--ds-space-16); padding: var(--ds-space-20); }
  .cookie-consent-copy p { white-space: normal; }
  .cookie-consent-actions { width: 100%; }
  .cookie-consent-button { flex: 1; }
  .policy-header { height: 64px; gap: var(--ds-space-16); padding: 0 var(--ds-space-20); }
  .policy-header .brand-logo { width: min(130px, 42vw); }
  .policy-back { flex: 0 0 auto; font-size: var(--ds-font-size-13); }
  .policy-main { width: min(920px, calc(100% - 28px)); padding: var(--ds-space-32) 0 var(--ds-space-32); }
  .policy-hero h1 { font-size: var(--ds-font-size-28); }
  .policy-hero p { font-size: var(--ds-font-size-16); line-height: 1.55; }
  .policy-section { padding: var(--ds-space-20); }
  .policy-section h2 { font-size: var(--ds-font-size-16); line-height: 1.3; }
  .policy-section p, .policy-section li { font-size: var(--ds-font-size-14); }
  .policy-table-wrap { overflow: visible; }
  .policy-table, .policy-table tbody, .policy-table tr, .policy-table td { display: block; width: 100%; }
  .policy-table thead { display: none; }
  .policy-table { margin-top: 0; }
  .policy-table tr { padding: var(--ds-space-12) 0; border-bottom: 1px solid var(--line); }
  .policy-table tr:last-child { border-bottom: 0; }
  .policy-table td { display: grid; grid-template-columns: minmax(108px, .72fr) minmax(0, 1.28fr); gap: var(--ds-space-12); padding: var(--ds-space-8) 0; border: 0; line-height: 1.45; }
  .policy-table td::before { content: attr(data-label); color: var(--green); font-weight: 700; }
  .plans-main { width: min(100% - 28px, 1160px); padding: var(--ds-space-32) 0 var(--ds-space-32); }
  .plans-hero { margin-bottom: var(--ds-space-32); text-align: left; }
  .plans-hero h1 { font-size: var(--ds-font-size-28); }
  .plans-hero > p { font-size: var(--ds-font-size-16); }
  .plans-hero-badges { justify-content: flex-start; }
  .plans-detail-grid { grid-template-columns: 1fr; gap: var(--ds-space-20); }
  .plans-detail-card { padding: var(--ds-space-24); }
  .plans-detail-card p { min-height: 0; }
  .plans-comparison-section { margin-top: var(--ds-space-32); }
  .plans-table-wrap { overflow: visible; border: 0; background: transparent; }
  .plans-table, .plans-table tbody, .plans-table tr, .plans-table td { display: block; width: 100%; }
  .plans-table thead { display: none; }
  .plans-table tbody { display: grid; gap: var(--ds-space-12); }
  .plans-table tr { padding: var(--ds-space-12) var(--ds-space-16); border: 1px solid var(--line); border-radius: var(--ds-radius-16); background: var(--visual-color-surface) !important; }
  .plans-table td, .plans-table td:first-child { display: grid; width: 100%; grid-template-columns: minmax(115px, .8fr) minmax(0, 1.2fr); gap: var(--ds-space-12); padding: var(--ds-space-8) 0; border: 0; text-align: right; }
  .plans-table td:first-child { padding-bottom: var(--ds-space-12); border-bottom: 1px solid var(--line); color: var(--green); font-weight: 700; text-align: left; }
  .plans-table td::before { content: attr(data-label); color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 700; text-align: left; text-transform: uppercase; }
  .plans-table td:first-child::before { display: none; }
  .plans-multiunit { grid-template-columns: 1fr; gap: var(--ds-space-24); padding: var(--ds-space-24); }
  .plans-faq { grid-template-columns: 1fr; gap: var(--ds-space-20); margin-top: var(--ds-space-32); }
  .plans-cta { align-items: flex-start; flex-direction: column; margin-top: var(--ds-space-32); padding: var(--ds-space-24); }
  .auth-screen { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .checkout-card { grid-template-columns: 1fr; }
  .checkout-summary, .checkout-form { padding: var(--ds-space-32); }
  .goal-panel, .goal-form { align-items: stretch; flex-direction: column; }
  .goal-form input { min-width: 0; }
  .point-payment-fields, .point-connection-facts { grid-template-columns: 1fr; }
  .point-payment-fields > div { grid-column: auto; }
  .opportunity-grid { grid-template-columns: 1fr; }
  .daily-tip-panel { grid-template-columns: 1fr; align-items: start; }
  .mobile-brand { display: block; }
  .sidebar { transform: translateX(-100%); transition: .25s; box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 25;
    display: block;
    border: 0;
    background: rgba(30, 41, 36, .18);
    backdrop-filter: blur(1px);
  }
  .app-shell { display: block; }
  .main-content { grid-column: 1; }
  .menu-toggle { display: grid; }
  .topbar { padding: 0 var(--ds-space-20); }
  .search-box { width: auto; flex: 1; margin: 0 var(--ds-space-12); }
  .search-box kbd, .user-menu-trigger > div { display: none; }
  .page-root { padding: var(--ds-space-24) var(--ds-space-20); }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .heading-actions { width: 100%; flex-wrap: wrap; }
  .heading-actions .button { flex: 1 1 calc(50% - 5px); min-width: 150px; }
  .booking-layout { grid-template-columns: 1fr; }
  .client-hero-mark { display: none; }
  .schedule-filters { grid-template-columns: 1fr; }
  .day-calendar-sidebar { grid-template-columns: 1fr; }
  .month-calendar-sidebar { grid-template-columns: 1fr; }
  .agenda-overview-metrics { grid-template-columns: 1fr 1fr; }
  .agenda-occupancy-card, .agenda-capacity-card { grid-column: span 1; }
  .agenda-chart-grid, .agenda-management-grid { grid-template-columns: 1fr; }
  .agenda-management-grid > :nth-child(2) { grid-column: auto; grid-row: auto; }
  .agenda-insight-panel { grid-template-columns: 38px minmax(0, 1fr); }
  .agenda-insight-panel a { grid-column: 2; }
}
@media (max-width: 620px) {
  .catalog-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-space-8); }
  .catalog-kpis > .catalog-kpi-link { min-height: 142px; padding: var(--ds-space-12); }
  .catalog-overview-card > header { min-height: 0; align-items: flex-start; flex-direction: row; padding: var(--ds-space-16); }
  .catalog-overview-card > header > div { min-width: 0; }
  .catalog-overview-card > header .button { width: auto; min-height: 32px; padding: var(--ds-space-8) var(--ds-space-12); }
  .catalog-overview-card th, .catalog-overview-card td { padding: var(--ds-space-8) var(--ds-space-12); }
  .catalog-service-name { gap: var(--ds-space-8); }
  .catalog-service-icon { width: 24px; height: 24px; }
  .catalog-service-icon .ui-icon { width: 14px; height: 14px; }
  .catalog-progress { width: 48px; }
  .catalog-usage, .catalog-occupancy { gap: var(--ds-space-4); }
  .catalog-capacity-usage th, .catalog-capacity-usage td { padding-right: var(--ds-space-8); padding-left: var(--ds-space-8); }
  .catalog-occupancy-legend { align-items: flex-start; flex-direction: column; }
  .team-performance-table { font-size: var(--ds-font-size-11); }
  .team-performance-table th, .team-performance-table td { padding-right: var(--ds-space-4); padding-left: var(--ds-space-4); }
  .team-performance-table th:nth-child(1) { width: 54%; }
  .team-performance-table th:nth-child(2), .team-performance-table th:nth-child(3) { width: 23%; }
  .team-performance-table th:nth-child(4), .team-performance-table th:nth-child(5), .team-performance-table td:nth-child(4), .team-performance-table td:nth-child(5) { display: none; }
  .team-professional-cell { gap: var(--ds-space-8); }
  .team-professional-cell .pet-avatar { width: 28px; height: 28px; flex-basis: 28px; }
  .client-advanced-panel { grid-template-columns: 1fr; }
  .service-list-controls, .service-filter-panel { grid-template-columns: 1fr; }
  .service-list-controls .client-search-field { grid-column: auto; }
  .service-list-controls > .button, .service-filter-panel > .button { width: 100%; }
  .service-price-filter { grid-template-columns: 1fr auto 1fr; }
  .relationship-filter-panel, .segment-filter-panel { grid-template-columns: 1fr; }
  .relationship-filter-panel label, .relationship-filter-panel select, .relationship-filter-panel .button, .segment-filter-panel label, .segment-filter-panel select, .segment-filter-panel .button { width: 100%; min-width: 0; }
  .employee-center-hero { grid-template-columns: 1fr; }.employee-center-actions { flex-wrap: wrap; }.employee-center-facts { grid-template-columns: repeat(2, 1fr); margin-left: 0; }.employee-center-grid, .employee-center-bottom { grid-template-columns: 1fr; }.employee-center-grid > article:nth-child(5) { grid-column: auto; }.employee-performance { grid-template-columns: 1fr; }.employee-performance header { grid-column: auto; }
  .employee-center-profile { align-items: flex-start; }
  .employee-center-profile > div { min-width: 0; }
  .employee-kpis { grid-template-columns: 1fr; }
  .employee-kpis article { border-right: 0; border-bottom: 1px solid var(--line); }
  .employee-kpis article:last-child { border-bottom: 0; }
  .employee-list-controls { grid-template-columns: 1fr; gap: var(--ds-space-12); }
  .employee-list-controls > .button { width: 100%; }
  .employee-list-controls .relationship-order { display: grid; grid-template-columns: 1fr; gap: var(--ds-space-8); width: 100%; white-space: normal; }
  .employee-list-controls .relationship-order select { width: 100%; min-width: 0; min-height: 46px; }
  .employee-filter-panel { grid-template-columns: 1fr; align-items: stretch; }
  .supplier-list-controls, .supplier-filter-panel { grid-template-columns: 1fr; }
  .supplier-list-controls > .button { grid-column: auto; }
  .supplier-origin-options, .supplier-origin-input, .supplier-address-grid { grid-template-columns: 1fr; }
  .supplier-origin-input small { grid-column: auto; }
  .supplier-address-grid .supplier-cep-action { width: 100%; }
  .employee-filter-panel select { width: 100%; min-width: 0; }
  .crm-period-filter { display: grid; grid-template-columns: 1fr; align-items: stretch; gap: var(--ds-space-12); }
  .crm-period-filter label, .crm-period-filter input, .crm-period-filter .button { width: 100%; min-width: 0; }
  .crm-period-filter > span:not(.crm-period-end-label) { display: none; }
  .crm-period-end-label { display: block; }
  .crm-period-filter .button { min-height: 52px; }
  .team-kpis, .team-overview-main, .team-overview-bottom { grid-template-columns: 1fr; }
  .team-performance-card { overflow: hidden; }.team-performance-head, .team-performance-row { min-width: 0; }
  .pet-filter-panel { grid-template-columns: 1fr; }
  .marketing-whatsapp-float { right: 14px; bottom: 14px; width: 145px; min-height: 54px; padding-left: var(--ds-space-32); }
  .marketing-whatsapp-mark { left: 7px; width: 38px; height: 38px; }
  .marketing-whatsapp-mark img { width: 30px; height: 30px; }
  .marketing-whatsapp-copy strong { font-size: var(--ds-font-size-14); }
  .marketing-whatsapp-copy > span { font-size: var(--ds-font-size-12); }
  .modal-card.client-create-modal-card { width: 100%; max-height: calc(100vh - 24px); padding: var(--ds-space-16); border-radius: var(--ds-radius-16); }
  .modal-card.clinical-pdf-modal-card { width: calc(100vw - 24px); padding: var(--ds-space-16); border-radius: var(--ds-radius-16); }
  .clinical-pdf-modal-card .clinical-pdf-preview { height: calc(100vh - 220px); min-height: 380px; }
  .modal-card.client-create-modal-card:has(.package-create-form) { padding: var(--ds-space-16); }
  .package-form-header { grid-template-columns: 44px minmax(0, 1fr) 36px; gap: var(--ds-space-12); }
  .package-form-header > i { width: 44px; height: 44px; border-radius: var(--ds-radius-12); }
  .package-form-header h2 { font-size: var(--ds-font-size-22); }
  .package-form-header p { font-size: var(--ds-font-size-11); }
  .package-form-section { padding: var(--ds-space-16); }
  .package-info-grid { grid-template-columns: 1fr; grid-template-areas: "name" "validity" "price" "description"; gap: var(--ds-space-16); }
  .subscription-info-grid { grid-template-columns: 1fr; gap: var(--ds-space-16); }
  .package-service-table { max-height: 340px; }
  .package-financial-summary > header { align-items: flex-start; flex-direction: column; }
  .package-financial-equation { grid-template-columns: 1fr; }
  .package-financial-equation > b { line-height: 1; text-align: center; }
  .package-form-footer { bottom: -16px; display: grid; grid-template-columns: 1fr 1fr; margin: 0 -16px -16px; padding: var(--ds-space-12) var(--ds-space-16); }
  .package-form-footer .button, .package-link-action { width: 100%; }
  .package-link-action { grid-column: 1 / -1; }
  .package-link-action .button { width: 100%; }
  .package-pet-toolbar { grid-template-columns: 1fr; }
  .package-pet-footer > span { grid-column: 1 / -1; display: grid; justify-items: start; margin: 0 0 var(--ds-space-4); }
  .client-create-modal-header { margin-bottom: var(--ds-space-12); }
  .client-create-grid { grid-template-columns: 1fr; }
  .client-cep-action { align-self: auto; }
  .client-create-footer { position: static; display: grid; grid-template-columns: 1fr; }
  .client-create-footer .button { width: 100%; }
  .client-list-controls { grid-template-columns: 1fr; }
  .client-list-controls > * { grid-column: auto; }
  .client-advanced-filter { width: 100%; }
  .client-list-pagination { align-items: flex-start; flex-direction: column; }
  .client-list-pagination .pagination-controls { align-self: center; }
  .client-list-tip { align-items: flex-start; }
  .appointment-create-heading h1 { font-size: var(--ds-font-size-28); }
  .appointment-create-main, .appointment-summary-panel { padding: var(--ds-space-16); border-radius: var(--ds-radius-12); }
  .appointment-create-main .modal-actions { margin: var(--ds-space-20) -16px -16px; padding: var(--ds-space-16) var(--ds-space-16); }
  .appointment-create-main .modal-actions .button { flex: 1 1 0; min-width: 0; padding-inline: var(--ds-space-12); }
  .table-toolbar { align-items: flex-start; flex-direction: column; }
  .table-toolbar-actions { width: 100%; align-items: flex-start; flex-direction: column; }
  .table-toolbar-actions .button { width: 100%; }
  .marketing-screen { padding-top: 148px; }
  #top, #recursos, #funcionalidades, #planos, #depoimentos, #faq, #contato { scroll-margin-top: 176px; }
  .marketing-nav { display: grid; grid-template-columns: 1fr; gap: var(--ds-space-12); padding: var(--ds-space-16) var(--ds-space-20); }
  .marketing-nav .brand { width: 100%; }
  .marketing-nav .brand-logo { width: min(188px, 58vw); }
  .marketing-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr);
    gap: var(--ds-space-12);
    justify-content: stretch;
  }
  .marketing-actions .button,
  .marketing-actions .text-button {
    width: 100%;
    min-height: 48px;
    padding: var(--ds-space-12) var(--ds-space-12);
    border-radius: var(--ds-radius-16);
    justify-content: center;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }
  .marketing-actions .text-button {
    border: 1px solid var(--line);
    background: var(--visual-color-surface);
  }
  .hero-copy h1 { font-size: var(--ds-font-size-28); }
  .checkout-screen { padding: var(--ds-space-20); }
  .checkout-summary h1 { font-size: var(--ds-font-size-28); }
  .compact-grid { grid-template-columns: 1fr; }
  .hero-copy p { font-size: var(--ds-font-size-16); }
  .hero-actions .button { width: 100%; }
  .hero-proof { display: grid; gap: var(--ds-space-12); }
  .stats-band { grid-template-columns: 1fr; }
  .auth-panel { padding: var(--ds-space-32) var(--ds-space-24); }
  .topbar {
    height: auto;
    min-height: 96px;
    flex-wrap: wrap;
    gap: var(--ds-space-12);
    padding: var(--ds-space-12) var(--ds-space-20) var(--ds-space-16);
  }
  .menu-toggle { order: 1; width: 44px; height: 44px; }
  .topbar-actions { order: 1; margin-left: auto; gap: var(--ds-space-8); }
  .search-box {
    order: 2;
    flex: 0 0 100%;
    max-width: none;
    min-height: 46px;
    margin: 0;
    padding: 0 var(--ds-space-16);
    border-radius: var(--ds-radius-16);
  }
  .search-box > span .ui-icon { width: 20px; height: 20px; }
  .user-menu-trigger { gap: var(--ds-space-8); padding: var(--ds-space-4) 0 var(--ds-space-4) var(--ds-space-4); }
  .user-menu-trigger > span { width: 42px; height: 42px; }
  .user-menu-trigger i { width: 36px; height: 42px; }
  .user-menu-dropdown { right: 0; top: calc(100% + 8px); z-index: 90; }
  .notification-popover { right: 18px; top: 64px; z-index: 90; }
  .heading-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--ds-space-12);
  }
  .heading-actions .button {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: var(--ds-space-12) var(--ds-space-12);
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }
  .calendar-commandbar { align-items: stretch; flex-direction: column; }
  .calendar-nav { flex-wrap: wrap; }
  .calendar-nav strong { width: 100%; margin: var(--ds-space-4) 0 0; }
  .calendar-view-toggle { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .calendar-view-toggle button { padding-inline: var(--ds-space-8); }
  .schedule-board { padding: var(--ds-space-12); }
  /* Keep the weekly planner readable on phones instead of squeezing seven days into tiny cards. */
  .schedule-board:has(.week-view) {
    padding-inline: 0;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    -webkit-overflow-scrolling: touch;
  }
  .schedule-board:has(.week-view) .teams-calendar {
    min-width: calc((100vw - 36px) * 7);
    margin: 0;
  }
  /* Cada dia ocupa toda a largura útil do telefone. O horário segue visível
     dentro do cartão do atendimento, evitando uma grade comprimida ou cortada. */
  .week-view { grid-template-columns: repeat(7, minmax(calc(100vw - 36px), 1fr)); }
  .week-view .time-head,
  .week-view .calendar-time { display: none; }
  .week-view > .calendar-head,
  .week-view > .calendar-cell { scroll-snap-align: start; }
  .week-view .calendar-head { min-height: 70px; padding: var(--ds-space-12) var(--ds-space-16); }
  .week-view .calendar-time { padding-top: var(--ds-space-16); font-size: var(--ds-font-size-11); }
  .week-view .week-calendar-cell { height: auto; min-height: 88px; padding: var(--ds-space-8); gap: var(--ds-space-4); }
  .week-view .week-card-stack { gap: var(--ds-space-4); }
  .week-view .week-appointment-card {
    height: var(--week-appointment-height, 66px);
    min-height: 66px;
    padding: var(--ds-space-8) var(--ds-space-8);
  }
  .week-view .calendar-pill.week-appointment-card > .week-card-main {
    grid-template-columns: 32px minmax(0, 1fr) auto 20px;
    grid-template-areas: "photo info timing status" "photo info count status";
    column-gap: var(--ds-space-8);
    row-gap: var(--ds-space-4);
  }
  .week-view .week-card-main .calendar-pet-photo { width: 32px; height: 32px; font-size: var(--ds-font-size-11); }
  .week-view .week-card-info strong { font-size: var(--ds-font-size-11); }
  .week-view .week-card-info small { font-size: var(--ds-font-size-11); }
  .week-view .week-card-timing strong { font-size: var(--ds-font-size-11); }
  .week-view .week-card-timing small { font-size: var(--ds-font-size-11); }
  .week-view .week-card-service-count { padding: var(--ds-space-4) var(--ds-space-8); font-size: var(--ds-font-size-11); }
  .week-view .week-appointment-card .calendar-pill-status { width: 20px; height: 20px; }
  .week-view .week-appointment-card .calendar-pill-status .ui-icon { width: 11px; height: 11px; }
  .week-view .week-cell-actions { flex: 0 0 44px; min-height: 44px; align-self: stretch; }
  .week-view .week-add-appointment,
  .week-view .week-overflow-trigger { min-height: 44px; height: 44px; }
  .week-view .calendar-pill.available.week-add-appointment strong { font-size: var(--ds-font-size-22); }
  .week-view .week-overflow-popover { width: 280px; max-height: 320px; }
  .appointment-list-toolbar { align-items: stretch; flex-direction: column; }
  .appointment-list-bulkbar { display: grid; grid-template-columns: 1fr 1fr; margin-top: 0; }
  .appointment-list-bulkbar label { grid-column: 1 / -1; margin: 0; }
  .appointment-list-bulkbar .button { width: 100%; }
  .appointment-list-sidebar { grid-template-columns: 1fr; }
  .appointment-list-date-range { grid-template-columns: 1fr; }
  .appointment-list-date-range > label { min-width: 0; }
  .appointment-list-filters { padding: var(--ds-space-16); }
  .agenda-legend-filters.schedule-filters { gap: var(--ds-space-16); }
  .schedule-filters > label,
  .schedule-filters > .schedule-multiselect { min-width: 0; }
  .agenda-legend-filters.schedule-filters {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    max-width: 100%;
  }
  .agenda-legend-filters.schedule-filters > label {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .agenda-legend-filters.schedule-filters #schedule-date {
    display: block;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    inline-size: 100%;
    min-width: 0;
    min-inline-size: 0;
    max-width: 100%;
    max-inline-size: 100%;
  }
  .schedule-multiselect summary { min-height: 48px; }
  .day-calendar-row { grid-template-columns: 52px minmax(0, 1fr); }
  .day-calendar-row > time { padding-inline: var(--ds-space-4); }
  .day-appointment-card-wrap { grid-template-columns: minmax(0, 1fr) auto; }
  .day-appointment-card-wrap .calendar-pill { grid-column: 1 / -1; }
  .day-navigation-actions { grid-column: 1; flex-direction: row; justify-content: flex-end; border-top: 1px solid color-mix(in srgb, currentColor 24%, transparent); }
  .day-navigation-status { grid-column: 2; grid-row: 2; margin: 0 var(--ds-space-12) 0 0; }
  .day-navigation-link { min-width: 0; flex: 1 1 0; }
  .day-free-slot { grid-template-columns: 52px minmax(0, 1fr); gap: var(--ds-space-8); padding-inline: var(--ds-space-12); }
  .day-free-slot small { display: none; }
  .day-slot-group-header { grid-template-columns: 28px minmax(0, 1fr) 28px; gap: var(--ds-space-8); }
  .day-slot-statuses { grid-column: 1 / -1; justify-content: flex-start; padding-left: var(--ds-space-32); }
  .day-slot-more { grid-column: 3; grid-row: 1; }
  .day-appointment-main { grid-template-columns: 34px minmax(0, 1fr) auto; gap: var(--ds-space-8); padding: var(--ds-space-8); }
  .day-appointment-photo { width: 34px; height: 34px; }
  .day-appointment-timing { grid-column: 2; grid-row: 2; text-align: left; }
  .day-appointment-service-count { grid-column: 3; grid-row: 1 / span 2; }
  .day-appointment-status { display: none; }
  .day-service-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "main status"
      "navigation navigation";
    gap: 0;
    padding: 0;
  }
  .day-service-main {
    grid-area: main;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--ds-space-4);
    padding: var(--ds-space-12) var(--ds-space-12);
  }
  .day-service-employee {
    grid-column: auto;
    overflow: visible;
    white-space: normal;
  }
  .day-service-navigation {
    grid-area: navigation;
    width: auto;
    justify-self: start;
    padding: 0 var(--ds-space-12) var(--ds-space-12);
  }
  .day-service-navigation:empty { display: none; }
  .day-service-row > .status {
    grid-area: status;
    align-self: center;
    margin: 0 var(--ds-space-12) 0 0;
  }
  .day-summary-content { grid-template-columns: 94px minmax(0, 1fr); gap: var(--ds-space-12); }
  .day-summary-ring { width: 90px; height: 90px; }
  .day-summary-ring::before { width: 66px; height: 66px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .agenda-period-control { width: 100%; flex-wrap: wrap; }
  .agenda-period-control strong { order: -1; width: 100%; text-align: left; }
  .agenda-overview-metrics { grid-template-columns: 1fr; }
  .agenda-occupancy-card, .agenda-capacity-card { grid-column: auto; }
  .agenda-week-bars { gap: var(--ds-space-4); padding-inline: var(--ds-space-12); }
  .agenda-free-days a { flex-basis: calc(50% - 4px); }
  .day-overview-grid { grid-template-columns: 1fr; padding: var(--ds-space-16); }
  .day-card-wide { grid-column: auto; --day-ring-space: 0px; }
  .occupancy-ring { position: relative; right: auto; top: auto; width: 76px; height: 76px; margin-top: var(--ds-space-4); transform: none; }
  .today-timeline-row { grid-template-columns: 14px 52px 40px minmax(0, 1fr); }
  .today-timeline-row .status { grid-column: 4; justify-self: start; }
  .form-grid { grid-template-columns: 1fr; }
  .segment-choice-grid, .segment-rule-grid { grid-template-columns: 1fr; }
  .segment-builder-heading { align-items: flex-start; flex-direction: column; gap: var(--ds-space-4); }
  .segment-relation > div { flex-direction: column; }
  .service-combo-options { grid-template-columns: 1fr; max-height: 230px; }
  .service-combo-summary { align-items: flex-start; flex-direction: column; gap: var(--ds-space-4); }
  .package-benefit-options { display: grid; grid-template-columns: 1fr; gap: var(--ds-space-8); }
  .service-assignment-row { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .service-assignment-row select { grid-column: 1 / -1; }
  .span-2 { grid-column: span 1; }
  .quick-actions { grid-template-columns: 1fr 1fr; }
  .data-table { min-width: 700px; }
  .table-panel { overflow-x: auto; }
  .appointment-row { grid-template-columns: 56px 1fr; }
  .appointment-row .status { display: none; }
  .detail-row {
    grid-template-columns: 1fr;
    gap: var(--ds-space-8);
    padding: var(--ds-space-16) 0;
  }
  .detail-row-profile { grid-template-columns: 56px minmax(0, 1fr); }
  .detail-row > strong { white-space: normal; }
  .detail-row-supplier-product { grid-template-columns: minmax(0, 1fr) auto; }
  .detail-row .status, .detail-meta { justify-self: start; }
}

@media (max-width: 820px) {
  .team-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-overview-main, .team-overview-bottom { grid-template-columns: 1fr; }
  .team-performance-card { overflow: hidden; }
  .team-performance-head, .team-performance-row { min-width: 0; }
  .team-period-select { width: 100%; }
}

/* Sistema visual compartilhado das Visões Gerais. O escopo por rota evita
   interferência nos cadastros e listas dos mesmos módulos. */
.overview-page {
  --overview-gap: var(--ds-space-16);
  --overview-radius: 14px;
  --overview-border: #e2e7e3;
  --overview-shadow: 0 5px 18px rgba(29, 55, 42, .045);
  --overview-green: #26705a;
  --overview-blue: #4189e8;
  --overview-purple: #7657b5;
  --overview-amber: #b97a18;
  --overview-red: #bd4f4a;
  --overview-pink: #bd5277;
}

.overview-page .page-heading {
  min-height: 64px;
  align-items: center;
  margin-bottom: var(--ds-space-24);
}
.overview-page .page-heading h1 { font-size: var(--ds-font-size-28); line-height: 1.15; }
.overview-page .page-heading p { max-width: 720px; margin-top: var(--ds-space-8); font-size: var(--ds-font-size-12); }
.overview-page .heading-actions { align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.overview-page :is(.catalog-period-field, .team-period-select, .crm-period-filter) {
  min-height: 48px;
  border: 1px solid var(--overview-border);
  border-radius: var(--ds-radius-12);
  background: var(--visual-color-surface);
  box-shadow: none;
}
.overview-page :is(.catalog-period-field, .team-period-select) {
  min-width: 194px;
  padding: var(--ds-space-8) var(--ds-space-12);
}
.overview-page :is(.catalog-period-field, .team-period-select) select {
  min-height: 24px;
  padding: 0 var(--ds-space-24) 0 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
  font: 700 var(--ds-font-size-12) "Montserrat";
}
.overview-page .crm-period-filter { align-items: end; padding: var(--ds-space-8) var(--ds-space-8); }
.overview-page .crm-period-filter label { gap: var(--ds-space-4); font-size: var(--ds-font-size-11); }
.overview-page .crm-period-filter input {
  width: 132px;
  min-height: 26px;
  padding: var(--ds-space-4) var(--ds-space-4);
  border: 0;
  border-radius: var(--ds-radius-8);
  box-shadow: none;
  font-size: var(--ds-font-size-11);
}
.overview-page .crm-period-filter > span { padding-bottom: var(--ds-space-8); }
.overview-page .crm-period-filter .button,
.overview-page[data-overview-route="employees-overview"] .heading-actions > .button {
  min-height: 48px;
  padding: var(--ds-space-12) var(--ds-space-16);
  border-radius: var(--ds-radius-12);
  font-size: var(--ds-font-size-11);
}
.overview-page .crm-period-filter .button { min-height: 34px; color: var(--overview-green); background: var(--visual-palette-edf6ef); }

.overview-page[data-overview-route="inventory-overview"] .page-heading { margin-bottom: var(--ds-space-16); }
.inventory-overview-period { display: flex; align-items: end; gap: var(--ds-space-8); padding: var(--ds-space-8) var(--ds-space-8); border: 1px solid var(--overview-border); border-radius: var(--ds-radius-12); background: var(--visual-color-surface); }
.inventory-overview-period label { display: grid; gap: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 700; }
.inventory-overview-period input { width: 122px; min-height: 27px; padding: var(--ds-space-4) var(--ds-space-4); border: 0; border-radius: var(--ds-radius-8); box-shadow: none; font-size: var(--ds-font-size-11); }
.inventory-overview-period > span { padding-bottom: var(--ds-space-8); color: var(--muted); font-size: var(--ds-font-size-11); }
.inventory-overview-period .button { min-height: 34px; padding: var(--ds-space-8) var(--ds-space-12); color: var(--overview-green); background: var(--visual-palette-edf6ef); font-size: var(--ds-font-size-11); }
.inventory-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--overview-gap); margin-bottom: var(--overview-gap); }
.inventory-metric { display: grid; grid-template-columns: var(--icon-badge-size) minmax(0, 1fr); gap: var(--ds-space-12); min-height: 144px; padding: var(--ds-space-16); border: 1px solid var(--overview-border); border-radius: var(--overview-radius); background: var(--visual-color-surface); box-shadow: var(--overview-shadow); }
.inventory-metric > i { display: grid; width: var(--icon-badge-size); height: var(--icon-badge-size); place-items: center; border-radius: var(--icon-badge-radius); color: var(--overview-green); background: var(--visual-palette-eaf5ed); }
.inventory-metric > i .ui-icon { width: 20px; }
.inventory-metric > div { min-width: 0; }.inventory-metric small, .inventory-metric span, .inventory-metric a { display: block; }.inventory-metric small { color: var(--ink); font-size: var(--ds-font-size-11); font-weight: 700; }.inventory-metric strong { display: block; margin: var(--ds-space-4) 0 var(--ds-space-4); font: 700 var(--ds-font-size-28)/1 "Montserrat"; }.inventory-metric span { color: var(--muted); font-size: var(--ds-font-size-11); line-height: 1.35; }.inventory-metric a { margin-top: var(--ds-space-8); color: var(--overview-green); font-size: var(--ds-font-size-11); font-weight: 700; text-decoration: none; }.inventory-metric a .ui-icon { width: 12px; vertical-align: middle; }.inventory-metric.amber > i { color: var(--overview-amber); background: var(--visual-palette-fff4e2); }.inventory-metric.red > i { color: var(--overview-red); background: var(--visual-palette-fff0ef); }.inventory-metric.blue > i { color: var(--overview-blue); background: var(--visual-palette-edf5fe); }.inventory-metric.purple > i { color: var(--overview-purple); background: var(--visual-palette-f2effa); }
.inventory-overview-top { display: grid; grid-template-columns: 1.1fr 1.15fr 1fr; gap: var(--overview-gap); margin-bottom: var(--overview-gap); }
.inventory-overview-bottom { display: grid; grid-template-columns: 1.15fr .7fr 1.2fr; gap: var(--overview-gap); margin-bottom: var(--overview-gap); }
.inventory-card { min-width: 0; overflow: hidden; border: 1px solid var(--overview-border); border-radius: var(--overview-radius); background: var(--visual-color-surface); box-shadow: var(--overview-shadow); }.inventory-card > header { padding: var(--ds-space-16) var(--ds-space-16) var(--ds-space-12); border-bottom: 1px solid var(--visual-palette-edf0ed); }.inventory-card > header h2 { margin: 0; color: var(--ink); font: 700 var(--ds-font-size-14) "Montserrat"; }.inventory-card > header h2 .ui-icon { width: 16px; color: var(--overview-amber); vertical-align: -3px; }.inventory-card > header p { margin: var(--ds-space-4) 0 0; color: var(--muted); font-size: var(--ds-font-size-11); }
.inventory-attention-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: var(--ds-space-8); align-items: center; padding: var(--ds-space-12) var(--ds-space-16); border-bottom: 1px solid var(--visual-palette-edf0ed); }.inventory-attention-row > i { display: grid; width: 34px; height: 34px; place-items: center; border-radius: var(--ds-radius-12); }.inventory-attention-row > i .ui-icon { width: 17px; }.inventory-attention-row strong, .inventory-attention-row small { display: block; }.inventory-attention-row strong { font-size: var(--ds-font-size-11); }.inventory-attention-row small { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); line-height: 1.3; }.inventory-attention-row > b { grid-column: 3; grid-row: 1; font-size: var(--ds-font-size-11); }.inventory-attention-row > a { grid-column: 3; grid-row: 2; color: var(--overview-green); font-size: var(--ds-font-size-11); font-weight: 700; text-decoration: none; white-space: nowrap; }.inventory-attention-row > a .ui-icon { width: 11px; vertical-align: middle; }.inventory-attention-row.red > i { color: var(--overview-red); background: var(--visual-palette-fff0ef); }.inventory-attention-row.red > b { color: var(--overview-red); }.inventory-attention-row.amber > i { color: var(--overview-amber); background: var(--visual-palette-fff4e2); }.inventory-attention-row.amber > b { color: var(--overview-amber); }.inventory-attention-row.blue > i { color: var(--overview-blue); background: var(--visual-palette-edf5fe); }.inventory-attention-row.blue > b { color: var(--overview-blue); }
.inventory-category-content { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: var(--ds-space-16); align-items: center; padding: var(--ds-space-20) var(--ds-space-16); }.inventory-donut { display: grid; width: 130px; aspect-ratio: 1; place-items: center; border-radius: 50%; background: conic-gradient(var(--donut)); }.inventory-donut::before { content: ""; position: absolute; width: 76px; aspect-ratio: 1; border-radius: 50%; background: var(--visual-color-surface); }.inventory-donut span { position: relative; z-index: 1; display: grid; place-items: center; }.inventory-donut small { color: var(--muted); font-size: var(--ds-font-size-11); }.inventory-donut strong { margin: var(--ds-space-4) 0; font: 700 var(--ds-font-size-22)/1 "Montserrat"; }.inventory-category-list { display: grid; gap: var(--ds-space-8); }.inventory-category-list > div { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto auto; gap: var(--ds-space-8); align-items: center; font-size: var(--ds-font-size-11); }.inventory-category-list i { width: 7px; height: 7px; border-radius: 50%; }.inventory-category-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.inventory-category-list b { font-size: var(--ds-font-size-11); white-space: nowrap; }.inventory-category-list em { color: var(--muted); font-style: normal; }.inventory-card footer { display: flex; align-items: center; gap: var(--ds-space-4); min-height: 39px; padding: var(--ds-space-12) var(--ds-space-16); border-top: 1px solid var(--visual-palette-edf0ed); color: var(--muted); font-size: var(--ds-font-size-11); }.inventory-card footer a { margin-left: auto; color: var(--overview-green); font-weight: 700; text-decoration: none; white-space: nowrap; }.inventory-card footer a .ui-icon { width: 12px; vertical-align: middle; }
.inventory-donut { position: relative; }
.inventory-suppliers ol { margin: 0; padding: var(--ds-space-4) var(--ds-space-16) var(--ds-space-8); list-style: none; }.inventory-suppliers li { display: grid; grid-template-columns: 19px minmax(0, 1fr) auto; gap: var(--ds-space-8); align-items: center; padding: var(--ds-space-8) 0; border-bottom: 1px solid var(--visual-palette-f0f2f0); }.inventory-suppliers li:last-child { border-bottom: 0; }.inventory-suppliers li > span { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; color: var(--muted); background: var(--visual-palette-f1f3f1); font-size: var(--ds-font-size-11); font-weight: 700; }.inventory-suppliers li strong { overflow: hidden; font-size: var(--ds-font-size-11); text-overflow: ellipsis; white-space: nowrap; }.inventory-suppliers li b { font-size: var(--ds-font-size-11); }
.inventory-movement-summary > div { display: grid; grid-template-columns: repeat(4, 1fr); padding: var(--ds-space-20) var(--ds-space-16); }.inventory-movement-summary section { display: grid; justify-items: center; gap: var(--ds-space-4); text-align: center; }.inventory-movement-summary section > i { display: grid; width: var(--icon-badge-size); height: var(--icon-badge-size); place-items: center; border-radius: var(--icon-badge-radius); }.inventory-movement-summary section > i .ui-icon { width: 18px; }.inventory-movement-summary small { color: var(--muted); font-size: var(--ds-font-size-11); }.inventory-movement-summary strong { font: 700 var(--ds-font-size-22)/1 "Montserrat"; }.inventory-movement-summary b { font-size: var(--ds-font-size-11); }
.inventory-last-inventory { display: grid; grid-template-rows: auto 1fr auto; }.inventory-last-inventory-date { display: flex; gap: var(--ds-space-12); align-items: center; padding: var(--ds-space-20) var(--ds-space-16); }.inventory-last-inventory-date > i { display: grid; width: var(--icon-badge-size); height: var(--icon-badge-size); place-items: center; border-radius: var(--icon-badge-radius); color: var(--overview-green); background: var(--visual-palette-eaf5ed); }.inventory-last-inventory-date > i .ui-icon { width: 20px; }.inventory-last-inventory-date strong, .inventory-last-inventory-date small { display: block; }.inventory-last-inventory-date strong { font: 700 var(--ds-font-size-16) "Montserrat"; }.inventory-last-inventory-date small { margin-top: var(--ds-space-4); color: var(--muted); font-size: var(--ds-font-size-11); }.inventory-divergence { display: flex; align-items: center; gap: var(--ds-space-8); margin: 0 var(--ds-space-16) var(--ds-space-16); padding: var(--ds-space-12); border-radius: var(--ds-radius-8); color: var(--visual-palette-3e7857); background: var(--visual-palette-edf7f0); font-size: var(--ds-font-size-11); font-weight: 700; }.inventory-divergence .ui-icon { width: 17px; }
.inventory-recent-movements > div { padding: var(--ds-space-4) var(--ds-space-16) var(--ds-space-4); }.inventory-recent-movements section { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: var(--ds-space-8); align-items: center; padding: var(--ds-space-8) 0; border-bottom: 1px solid var(--visual-palette-f0f2f0); }.inventory-recent-movements section:last-child { border-bottom: 0; }.inventory-recent-movements .pet-avatar { width: 28px; height: 28px; font-size: var(--ds-font-size-11); }.inventory-recent-movements section > div strong, .inventory-recent-movements section > div small { display: block; }.inventory-recent-movements section > div strong { overflow: hidden; font-size: var(--ds-font-size-11); text-overflow: ellipsis; white-space: nowrap; }.inventory-recent-movements section > div small { color: var(--muted); font-size: var(--ds-font-size-11); }.inventory-recent-movements .movement-type { padding: var(--ds-space-4) var(--ds-space-8); font-size: var(--ds-font-size-11); }.inventory-recent-movements .movement-type::before { width: 4px; height: 4px; }.inventory-recent-movements section > b { font-size: var(--ds-font-size-11); white-space: nowrap; }.inventory-recent-movements section > b.positive { color: var(--visual-palette-287a58); }.inventory-recent-movements section > b.negative { color: var(--visual-palette-c34d48); }.inventory-recent-movements time { grid-column: 2 / -1; color: var(--muted); font-size: var(--ds-font-size-11); }
.inventory-overview-footer { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--overview-gap); }.inventory-overview-footer article { display: flex; align-items: center; gap: var(--ds-space-12); min-height: 74px; padding: var(--ds-space-16) var(--ds-space-16); border: 1px solid var(--overview-border); border-radius: var(--overview-radius); background: var(--visual-palette-f8fbf8); }.inventory-overview-footer article > .ui-icon { width: 25px; height: 25px; flex: none; color: var(--visual-palette-936818); }.inventory-overview-footer article:nth-child(2) > .ui-icon { color: var(--overview-green); }.inventory-overview-footer strong { display: block; font: 700 var(--ds-font-size-11) "Montserrat"; }.inventory-overview-footer p { margin: var(--ds-space-4) 0 0; color: var(--muted); font-size: var(--ds-font-size-11); line-height: 1.4; }.inventory-overview-footer .button { min-height: 34px; margin-left: auto; padding: var(--ds-space-8) var(--ds-space-12); white-space: nowrap; font-size: var(--ds-font-size-11); }

.overview-page :is(.catalog-kpis, .team-kpis, .crm-metrics-six) {
  gap: var(--overview-gap);
  margin: 0 0 var(--overview-gap);
}
.overview-page :is(.catalog-kpis > .catalog-kpi-link, .team-kpis article, .crm-metrics-six .metric-card) {
  min-height: 176px;
  padding: var(--ds-space-20);
  border: 1px solid var(--overview-border);
  border-radius: var(--overview-radius);
  background: var(--visual-color-surface);
  box-shadow: var(--overview-shadow);
}
.overview-page .team-kpis article {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-content: start;
}
.overview-page .team-kpis article > .ui-icon-tile {
  display: grid;
  place-items: center;
  width: var(--icon-badge-size);
  height: var(--icon-badge-size);
  margin: 0 0 var(--ds-space-16);
  border-radius: var(--icon-badge-radius);
}
.overview-page .team-kpis article > .ui-icon-tile > .ui-icon {
  width: 24px;
  height: 24px;
  padding: 0;
  color: inherit;
  background: transparent;
}
.overview-page .team-kpis article:nth-child(1) > .ui-icon-tile { color: var(--visual-palette-3f7fe0); background: var(--visual-palette-e8f0ff); }
.overview-page .team-kpis article:nth-child(2) > .ui-icon-tile { color: var(--visual-palette-936818); background: var(--visual-palette-fff4da); }
.overview-page .team-kpis article:nth-child(3) > .ui-icon-tile { color: var(--visual-palette-26845d); background: var(--visual-palette-e7f5eb); }
.overview-page .team-kpis article:nth-child(4) > .ui-icon-tile { color: var(--visual-palette-8768d8); background: var(--visual-palette-f0eaff); }
.overview-page .team-kpis article:nth-child(5) > .ui-icon-tile { color: var(--visual-palette-21865c); background: var(--visual-palette-e5f5ea); }
.overview-page .team-kpis article > div { min-width: 0; }
.overview-page :is(.catalog-kpis > .catalog-kpi-link > .ui-icon, .team-kpis article > .ui-icon, .crm-metrics-six .metric-icon) {
  width: var(--icon-badge-size);
  height: var(--icon-badge-size);
  margin: 0 0 var(--ds-space-16);
  padding: var(--ds-space-8);
  border-radius: var(--icon-badge-radius);
}
.overview-page .crm-metrics-six .metric-icon { padding: 0; }
.overview-page :is(.catalog-kpis small, .team-kpis small, .crm-metrics-six .metric-card > small) {
  min-height: 0;
  margin: 0;
  color: var(--visual-palette-526058);
  font: 700 var(--ds-font-size-11)/1.35 "Montserrat";
}
.overview-page :is(.catalog-kpis strong, .team-kpis strong, .crm-metrics-six .metric-card > strong) {
  display: block;
  margin: var(--ds-space-8) 0 var(--ds-space-4);
  color: var(--ink);
  font: 700 var(--ds-font-size-28)/1.08 "Montserrat";
}
.overview-page :is(.catalog-kpis span, .team-kpis span, .crm-metrics-six .trend) {
  color: var(--muted);
  font-size: var(--ds-font-size-11);
  font-weight: 700;
  line-height: 1.35;
}
.overview-page .crm-metrics-six .metric-card .trend {
  min-height: 52px;
  margin-top: 0;
  color: currentColor;
}
.overview-page .crm-metrics-six .crm-sparkline { margin-top: var(--ds-space-8); }
.overview-page .team-kpis a { margin-top: var(--ds-space-8); }
.overview-page .team-kpis article:first-child strong { color: var(--ink); }

.overview-page :is(.catalog-overview-grid, .team-overview-main, .team-overview-bottom, .crm-overview-primary-grid, .crm-overview-analytics-grid, .crm-bottom-insights) {
  gap: var(--overview-gap);
}
.overview-page :is(.team-overview-bottom, .crm-overview-analytics-grid) { margin-top: var(--overview-gap); }
.overview-page .crm-bottom-insights { margin-top: var(--overview-gap); }
.overview-page :is(.catalog-overview-card, .team-overview-card, .crm-panel) {
  border: 1px solid var(--overview-border);
  border-radius: var(--overview-radius);
  background: var(--visual-color-surface);
  box-shadow: var(--overview-shadow);
}
.overview-page :is(.catalog-overview-card > header, .crm-panel .panel-header) {
  min-height: 78px;
  padding: var(--ds-space-16) var(--ds-space-20);
  border-bottom: 1px solid var(--visual-palette-edf0ed);
}
.overview-page .team-overview-card { padding: var(--ds-space-20); }
.overview-page .team-overview-card header { min-height: 43px; margin-bottom: var(--ds-space-16); }
.overview-page :is(.catalog-overview-card > header h2, .team-overview-card h2, .crm-panel .panel-header h2) {
  margin: 0;
  color: var(--ink);
  font: 700 var(--ds-font-size-16)/1.3 "Montserrat";
}
.overview-page :is(.catalog-overview-card > header p, .team-overview-card header p) {
  margin: var(--ds-space-4) 0 0;
  color: var(--muted);
  font-size: var(--ds-font-size-11);
  line-height: 1.4;
}
.overview-page .catalog-overview-card > header .button {
  min-height: 30px;
  padding: var(--ds-space-4) 0;
  border: 0;
  color: var(--overview-green);
  background: transparent;
  font-size: var(--ds-font-size-11);
  box-shadow: none;
}
.overview-page .catalog-overview-card > header .button::after { content: "\2192"; }
.overview-page[data-overview-route="services-overview"] .catalog-overview-card > header h2 { font-weight: 600; }
.overview-page[data-overview-route="services-overview"] .fo-period select { min-height: 35px; }
.catalog-kpi-link { color: var(--ink); cursor: pointer; text-decoration: none; }
.overview-page .catalog-kpis > .catalog-kpi-link:is(:hover, :focus-visible) { border-color: var(--brand-primary); }
.overview-page .catalog-table-scroll th { font-size: var(--ds-font-size-11); white-space: nowrap; }
.catalog-category-card { container-type: inline-size; }
@container (max-width: 450px) {
  .catalog-category-layout { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .catalog-category-legend { width: 100%; }
}
.overview-page :is(.catalog-overview-card > header .button, .team-card-link, .crm-panel .panel-header a, .crm-panel .text-button) {
  color: var(--overview-green);
  font-weight: 700;
}

.overview-page :is(.catalog-category-donut, .team-donut, .crm-donut) {
  filter: drop-shadow(0 5px 10px rgba(29, 55, 42, .06));
}
.overview-page .team-line-capacity { stroke: var(--overview-green); }
.overview-page .team-line-demand { stroke: var(--overview-blue); }
.overview-page .team-chart-legend span::before { background: var(--overview-green); }
.overview-page .team-chart-legend span:last-child::before { background: var(--overview-blue); }

.overview-page :is(.catalog-overview-footer-note, .team-overview-note) {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: var(--ds-space-12);
  min-height: 100px;
  margin: var(--overview-gap) 0 0;
  padding: var(--ds-space-20);
  border: 1px solid var(--overview-border);
  border-radius: var(--overview-radius);
  color: var(--visual-palette-52675b);
  background: var(--visual-palette-f7faf8);
  box-shadow: var(--overview-shadow);
  font-size: var(--ds-font-size-11);
  font-weight: 600;
  line-height: 1.45;
}
.overview-page :is(.catalog-overview-footer-note, .team-overview-note) .ui-icon {
  width: 40px;
  height: 40px;
  padding: var(--ds-space-12);
  border-radius: var(--ds-radius-12);
  color: var(--overview-green);
  background: var(--visual-palette-e5f4ea);
}
.overview-page .crm-bottom-insights > :is(.crm-campaign-panel, .crm-insight-panel) {
  min-height: 112px;
  border: 1px solid var(--overview-border);
  border-radius: var(--overview-radius);
  box-shadow: var(--overview-shadow);
}

@media (max-width: 1280px) {
  .overview-page .catalog-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .overview-page .team-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .overview-page .page-heading { align-items: flex-start; flex-direction: column; }
  .overview-page .heading-actions { width: 100%; justify-content: stretch; }
  .overview-page :is(.catalog-period-field, .team-period-select, .crm-period-filter) { width: 100%; }
  .overview-page[data-overview-route="employees-overview"] .heading-actions > .button { width: 100%; }
  .overview-page :is(.catalog-kpis, .team-kpis, .crm-metrics-six) { grid-template-columns: 1fr; }
  .overview-page :is(.catalog-kpis > .catalog-kpi-link, .team-kpis article, .crm-metrics-six .metric-card) { min-height: 164px; }
}

/* Agenda adota o mesmo sistema sem perder os componentes operacionais próprios. */
.overview-page[data-overview-route="appointments-overview"] .heading-actions { gap: var(--ds-space-12); }
.overview-page .agenda-period-control {
  min-height: 48px;
  gap: var(--ds-space-4);
  padding: var(--ds-space-4);
  border: 1px solid var(--overview-border);
  border-radius: var(--ds-radius-12);
  background: var(--visual-color-surface);
}
.overview-page .agenda-period-control .icon-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: var(--ds-radius-8);
  background: var(--visual-palette-f6f8f6);
}
.overview-page .agenda-period-control .button {
  min-height: 34px;
  padding: var(--ds-space-8) var(--ds-space-12);
  border: 0;
  border-radius: var(--ds-radius-8);
  color: var(--overview-green);
  background: var(--visual-palette-edf6ef);
  font-size: var(--ds-font-size-11);
}
.overview-page .agenda-period-control strong {
  min-width: 144px;
  padding: 0 var(--ds-space-8);
  font: 700 var(--ds-font-size-11) "Montserrat";
}
.overview-page[data-overview-route="appointments-overview"] .heading-actions > .button-primary {
  min-height: 48px;
  padding: var(--ds-space-12) var(--ds-space-16);
  border-radius: var(--ds-radius-12);
  font-size: var(--ds-font-size-11);
}

.overview-page .agenda-overview-metrics {
  gap: var(--overview-gap);
  margin-bottom: var(--overview-gap);
}
.overview-page .agenda-overview-metrics > article {
  min-height: 176px;
  padding: var(--ds-space-20);
  border: 1px solid var(--overview-border);
  border-radius: var(--overview-radius);
  background: var(--visual-color-surface);
  box-shadow: var(--overview-shadow);
}
.overview-page .agenda-overview-metrics .metric-icon {
  width: var(--icon-badge-size);
  height: var(--icon-badge-size);
  border-radius: var(--icon-badge-radius);
}
.overview-page .agenda-overview-metrics small {
  color: var(--visual-palette-526058);
  font: 700 var(--ds-font-size-11)/1.35 "Montserrat";
}
.overview-page .agenda-overview-metrics em { margin-top: var(--ds-space-4); font-size: var(--ds-font-size-11); }
.overview-page .agenda-quality-card > small { margin-top: var(--ds-space-16); }
.overview-page .agenda-quality-card > strong,
.overview-page .agenda-capacity-card > strong {
  margin-top: var(--ds-space-8);
  color: var(--ink);
  font: 700 var(--ds-font-size-28)/1.08 "Montserrat";
}
.overview-page .agenda-quality-card > p { color: var(--muted); font-size: var(--ds-font-size-11); font-weight: 700; }
.overview-page .agenda-metric-delta { color: var(--overview-green); font-weight: 700; }

.overview-page :is(.agenda-chart-grid, .agenda-management-grid) { gap: var(--overview-gap); }
.overview-page .agenda-chart-grid { margin-bottom: var(--overview-gap); }
.overview-page :is(.agenda-chart-grid > .panel, .agenda-management-grid > .panel) {
  border: 1px solid var(--overview-border);
  border-radius: var(--overview-radius);
  background: var(--visual-color-surface);
  box-shadow: var(--overview-shadow);
}
.overview-page :is(.agenda-chart-grid, .agenda-management-grid) .panel-header {
  min-height: 72px;
  padding: var(--ds-space-16) var(--ds-space-20);
  border-bottom: 1px solid var(--visual-palette-edf0ed);
}
.overview-page :is(.agenda-chart-grid, .agenda-management-grid) .panel-header h2 {
  margin: 0;
  color: var(--ink);
  font: 700 var(--ds-font-size-16)/1.3 "Montserrat";
}
.overview-page .agenda-chart-card .panel-header small {
  margin-top: var(--ds-space-4);
  color: var(--muted);
  font-size: var(--ds-font-size-11);
}
.overview-page .agenda-management-grid .panel-header a {
  color: var(--overview-green);
  font-size: var(--ds-font-size-11);
  font-weight: 700;
}
.overview-page .agenda-week-bars i { background: var(--overview-green); }
.overview-page .agenda-horizontal-row i { background: var(--overview-purple); }
.overview-page :is(.agenda-week-bars, .agenda-horizontal-row) i.occupancy-low { background: var(--visual-palette-4e9a64); }
.overview-page :is(.agenda-week-bars, .agenda-horizontal-row) i.occupancy-medium { background: var(--visual-palette-dfaa25); }
.overview-page :is(.agenda-week-bars, .agenda-horizontal-row) i.occupancy-high { background: var(--visual-palette-cc554f); }
.overview-page .agenda-ring {
  --agenda-occupancy-tone: #4e9a64;
  background: conic-gradient(from -90deg, var(--agenda-occupancy-tone) 0 var(--occupancy), var(--visual-palette-e5ebe6) var(--occupancy) 100%);
}
.overview-page .agenda-ring.occupancy-medium { --agenda-occupancy-tone: #dfaa25; }
.overview-page .agenda-ring.occupancy-high { --agenda-occupancy-tone: #cc554f; }

.overview-page .agenda-insight-panel {
  min-height: 112px;
  margin-top: var(--overview-gap);
  padding: var(--ds-space-20);
  border: 1px solid var(--overview-border);
  border-radius: var(--overview-radius);
  color: var(--overview-green);
  background: var(--visual-palette-f7faf8);
  box-shadow: var(--overview-shadow);
}
.overview-page .agenda-insight-panel > i { width: 40px; height: 40px; border-radius: var(--ds-radius-12); }
.overview-page .agenda-insight-panel a { color: var(--overview-green); font-weight: 700; }

@media (max-width: 1280px) {
  .overview-page .agenda-overview-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inventory-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inventory-overview-top, .inventory-overview-bottom { grid-template-columns: 1fr 1fr; }
  .inventory-suppliers { grid-column: span 2; }
  .inventory-recent-movements { grid-column: span 2; }
}

@media (max-width: 820px) {
  .overview-page[data-overview-route="appointments-overview"] .heading-actions,
  .overview-page .agenda-period-control { width: 100%; }
  .overview-page .agenda-period-control { flex-wrap: wrap; }
  .overview-page .agenda-period-control strong { order: -1; width: 100%; min-height: 28px; text-align: left; }
  .overview-page[data-overview-route="appointments-overview"] .heading-actions > .button-primary { width: 100%; }
  .overview-page .agenda-overview-metrics { grid-template-columns: 1fr; }
  .inventory-overview-period { width: 100%; flex-wrap: wrap; }
  .inventory-overview-period label { flex: 1 1 120px; }
  .inventory-overview-period input { width: 100%; }
  .inventory-metrics, .inventory-overview-top, .inventory-overview-bottom, .inventory-overview-footer { grid-template-columns: 1fr; }
  .inventory-suppliers, .inventory-recent-movements { grid-column: auto; }
  .inventory-category-content { grid-template-columns: 110px minmax(0, 1fr); }
  .inventory-donut { width: 110px; }
  .inventory-movement-summary > div { gap: var(--ds-space-12); grid-template-columns: 1fr 1fr; }
}

/* Zoonor 2026 brand system ------------------------------------------------ */
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(15, 179, 158, .38);
  outline-offset: 3px;
}
.zoonor-logo-picture { display: block; max-width: 100%; line-height: 0; }
.brand-logo { width: 220px; }
.brand-logo--horizontal,
.brand-logo--horizontal-tagline,
.brand-logo--negative,
.brand-logo--white,
.brand-logo--monochrome,
.brand-logo--primary,
.brand-logo--tagline,
.brand-logo--symbol {
  display: block;
  flex: 0 0 auto;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.brand-logo--horizontal, .brand-logo--negative, .brand-logo--white, .brand-logo--monochrome { width: 202px; }
.brand-logo--primary { width: 132px; }
.brand-logo--tagline { width: 150px; }
.brand-logo--symbol { width: 54px; }
.auth-brand .brand-logo--negative { width: min(290px, 72%); }
.checkout-summary .brand { padding: 0; background: transparent; }
.checkout-summary .brand-logo--negative { width: 220px; }
.sidebar .brand-logo--negative { width: 150px; }
.auth-card-brand { display: flex; justify-content: center; margin: -12px 0 var(--ds-space-24); }
.auth-card-logo.brand-logo--tagline { width: 154px; max-height: 175px; }
.marketing-footer .brand-logo--horizontal { width: 180px; }
.policy-header .brand-logo--horizontal { width: 150px; }
.marketing-screen { padding-top: 100px; color: var(--brand-text); background: var(--visual-color-surface); }
.marketing-nav { height: 100px; padding-inline: max(var(--ds-space-32), calc((100vw - 1440px) / 2 + var(--ds-space-32))); border-color: transparent; background: rgba(255, 255, 255, .97); }
.marketing-nav .brand-logo--horizontal { width: 150px; }
.marketing-nav nav { gap: clamp(var(--ds-space-20), 2vw, var(--ds-space-32)); font-size: var(--ds-font-size-14); font-weight: 600; }
.marketing-nav nav a { position: relative; }
.marketing-nav nav a::after { content: ""; position: absolute; right: 0; bottom: -9px; left: 0; height: 2px; border-radius: var(--ds-radius-8); background: var(--brand-primary); transform: scaleX(0); transition: transform .2s ease; }
.marketing-nav nav a:hover::after { transform: scaleX(1); }
.marketing-demo-button { min-height: 54px; padding-inline: var(--ds-space-32); font-size: var(--ds-font-size-16); white-space: nowrap; }
.button { border-radius: var(--ds-radius-12); font-weight: 600; }
.button-primary { background: var(--visual-color-primary); box-shadow: 0 10px 24px rgba(13, 122, 110, .2); }
.button-primary:hover { box-shadow: 0 14px 30px rgba(13, 122, 110, .28); }
.button-secondary { color: var(--brand-secondary); background: var(--visual-palette-e5f8f5); }
.button-light { color: var(--brand-secondary); border-color: var(--visual-palette-9bdcd4); background: var(--visual-color-surface); }
.button-light:hover { border-color: var(--brand-primary); background: var(--visual-palette-f4fffd); }
.marketing-screen main { max-width: 1440px; padding-inline: var(--ds-space-32); }
.marketing-hero { min-height: 560px; padding: var(--ds-space-32) 0 var(--ds-space-20); overflow: visible; }
.marketing-hero::before {
  inset-inline: -40px;
  background:
    radial-gradient(circle, rgba(15, 179, 158, .45) 1.4px, transparent 1.6px) calc(100% - 8px) 68px / 17px 17px no-repeat,
    linear-gradient(180deg, var(--visual-color-surface) 0%, var(--visual-color-surface) 82%, var(--visual-palette-fbfdfe) 100%);
}
.hero-copy { position: relative; z-index: 7; width: min(480px, 38%); }
.hero-copy h1 { color: var(--brand-dark); font-size: var(--ds-font-size-28); font-weight: 700; line-height: 1.06; letter-spacing: -.045em; }
.hero-copy h1 em { display: inline; color: var(--brand-secondary); }
.hero-copy h2 { margin: var(--ds-space-24) 0 0; color: var(--brand-dark); font: 600 clamp(var(--ds-font-size-22), 1.65vw, var(--ds-font-size-28))/1.34 "Montserrat"; letter-spacing: -.025em; }
.hero-copy h2 em { color: var(--brand-secondary); font-style: normal; }
.hero-copy p { max-width: 470px; margin: var(--ds-space-24) 0 var(--ds-space-24); color: var(--visual-palette-36536c); font-size: var(--ds-font-size-16); line-height: 1.55; }
.hero-actions { gap: var(--ds-space-16); }
.hero-actions .button { min-height: 52px; padding-inline: var(--ds-space-24); font-size: var(--ds-font-size-14); text-decoration: none; }
.hero-actions .button span, .marketing-demo-button span { margin-left: var(--ds-space-8); font-size: var(--ds-font-size-22); line-height: 0; }
.hero-visual { position: absolute; z-index: 2; top: 10px; right: -42px; width: 67%; height: 550px; pointer-events: none; }
.hero-pets { position: absolute; z-index: 3; top: 124px; left: -10%; width: 360px; height: auto; mix-blend-mode: normal; pointer-events: none; }
.hero-visual .product-preview {
  position: absolute; z-index: 2; top: 132px; right: -3%; width: min(650px, 69%); min-height: 0;
  overflow: visible; padding: var(--ds-space-12) var(--ds-space-12) var(--ds-space-24); border: 5px solid var(--visual-palette-111); border-radius: var(--ds-radius-16) var(--ds-radius-16) var(--ds-radius-12) var(--ds-radius-12);
  background: var(--visual-palette-111); box-shadow: 0 22px 48px rgba(11, 45, 77, .22); pointer-events: auto;
}
.hero-visual .product-preview::after { content: ""; position: absolute; right: -7%; bottom: -19px; left: -7%; height: 19px; border-radius: var(--ds-radius-8) var(--ds-radius-8) 55% 55%; background: linear-gradient(180deg, var(--visual-palette-dfe2e4), var(--visual-palette-7f858a) 65%, var(--visual-palette-34383b)); box-shadow: 0 8px 12px rgba(11,45,77,.2); }
.product-preview-screen { position: relative; display: block; overflow: hidden; border-radius: var(--ds-radius-8); background: var(--visual-color-surface); }
.hero-visual .product-preview-screen > img { width: 100%; height: auto; display: block; border-radius: 0; }
.hero-visual .product-preview:hover { transform: translateY(-3px); }
.product-preview-hint { background: rgba(11, 45, 77, .92); }
.hero-benefits { position: relative; z-index: 8; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 var(--ds-space-12); padding: var(--ds-space-20) var(--ds-space-24); border: 1px solid rgba(11,45,77,.07); border-radius: var(--ds-radius-16); background: rgba(255,255,255,.98); box-shadow: 0 12px 34px rgba(11,45,77,.10); }
.hero-benefits article { display: flex; align-items: center; gap: var(--ds-space-16); min-width: 0; padding: 0 var(--ds-space-20); border-right: 1px solid rgba(11,45,77,.1); }
.hero-benefits article:last-child { border-right: 0; }
.hero-benefits i { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--brand-secondary); background: var(--visual-palette-eaf8f6); font-style: normal; }
.hero-benefits i .ui-icon { width: 26px; height: 26px; }
.hero-benefits i.hero-benefit-infinity { font: 600 var(--ds-font-size-28)/1 "Montserrat"; }
.hero-benefits strong, .hero-benefits span { display: block; }
.hero-benefits strong { color: var(--brand-dark); font-size: var(--ds-font-size-14); }
.hero-benefits span { margin-top: var(--ds-space-4); color: var(--visual-palette-506b7f); font-size: var(--ds-font-size-13); }
.marketing-section, .pricing-section, .faq-section, .marketing-cta { padding-block: var(--ds-space-32); }
.marketing-section h2, .pricing-section h2, .faq-section h2 { color: var(--brand-dark); font-size: var(--ds-font-size-28); }
.marketing-features { padding-top: var(--ds-space-24); }
.section-kicker { display: block; margin-bottom: var(--ds-space-12); color: var(--brand-secondary); font-size: var(--ds-font-size-12); font-weight: 700; letter-spacing: .02em; text-align: center; text-transform: uppercase; }
.marketing-features h2 { margin-bottom: var(--ds-space-32); font-size: var(--ds-font-size-28); line-height: 1.18; }
.marketing-features h2 em { color: var(--brand-secondary); font-style: normal; }
.marketing-features .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ds-space-20); }
.feature-grid article, .pricing-grid article, .testimonial-card, .policy-section, .plans-detail-card { border-color: rgba(11, 45, 77, .1); border-radius: var(--ds-radius-16); box-shadow: 0 10px 34px rgba(11, 45, 77, .055); }
.feature-grid article { position: relative; padding: var(--ds-space-24) var(--ds-space-20); transition: transform .2s ease, box-shadow .2s ease; }
.feature-grid article:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(11, 45, 77, .1); }
.feature-grid i { width: 46px; height: 46px; color: var(--brand-secondary); background: var(--visual-palette-e5f8f5); }
.feature-grid i .ui-icon { width: 26px; height: 26px; }
.feature-grid h3 { margin-top: var(--ds-space-16); color: var(--brand-dark); font-size: var(--ds-font-size-16); }
.feature-grid p { font-size: var(--ds-font-size-12); line-height: 1.55; }
.feature-new > span { position: absolute; top: 16px; right: 16px; padding: var(--ds-space-4) var(--ds-space-8); border-radius: var(--ds-radius-8); color: var(--visual-color-surface); background: var(--brand-secondary); font-size: var(--ds-font-size-11); font-weight: 700; text-transform: uppercase; }
.feature-grid p, .pricing-grid p, .faq-section p { color: var(--visual-palette-506b7f); }
.stats-band { border-color: rgba(13, 122, 110, .14); background: linear-gradient(110deg, var(--visual-palette-f3fffd), var(--visual-palette-f2f8fc)); }
.stats-band strong { color: var(--brand-secondary); }
.pricing-grid article.featured, .plans-detail-card.featured { border-color: var(--brand-primary); }
.pricing-grid article.featured > span, .plans-popular { background: var(--brand-secondary); }
.marketing-cta { color: var(--visual-color-surface); border: 0; background: linear-gradient(125deg, var(--brand-dark), var(--brand-secondary)); box-shadow: 0 20px 48px rgba(11, 45, 77, .18); }
.marketing-cta h2, .marketing-cta p { color: var(--visual-color-surface); }
.marketing-cta p { opacity: .78; }
.marketing-cta .button-primary { color: var(--brand-dark); background: var(--visual-color-surface); box-shadow: none; }
.marketing-footer { color: var(--visual-palette-587083); border-color: rgba(11, 45, 77, .1); }
.auth-brand { background: radial-gradient(circle at 86% 20%, rgba(15, 179, 158, .28), transparent 31%), linear-gradient(145deg, var(--visual-palette-081f36), var(--brand-dark) 58%, var(--visual-palette-075b63)); }
.auth-brand::after { content: ""; position: absolute; right: -70px; bottom: 2%; width: 470px; height: 430px; background: url("/static/branding/zoonor/zoonor-simbolo-colorido.228e371d4b7a.png") center / contain no-repeat; opacity: .1; }
.brand-light { padding: 0; background: transparent; box-shadow: none; }
.auth-brand .brand-logo { width: min(290px, 72%); }
.auth-message h1 { font-weight: 700; }
.auth-message h1 em { color: var(--brand-primary); }
.auth-message p, .auth-proof { color: var(--visual-palette-c7dbe5); }
.eyebrow { color: var(--brand-accent); }
.proof-avatars span { color: var(--brand-dark); border-color: var(--brand-dark); background: var(--brand-primary); }
.auth-panel { background: linear-gradient(145deg, var(--visual-palette-f4f8fa), var(--visual-color-surface)); }
.auth-card { padding: var(--ds-space-32); border: 1px solid var(--line); border-radius: var(--ds-radius-16); background: var(--visual-color-surface); box-shadow: var(--shadow); }
.auth-card h2 { color: var(--brand-dark); font-weight: 700; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(15, 179, 158, .13); }
.app-shell { grid-template-columns: 270px minmax(0, 1fr); background: var(--brand-background); }
.sidebar { color: var(--visual-color-surface); border-right: 0; background: linear-gradient(180deg, var(--visual-palette-081f36), var(--brand-dark)); box-shadow: 12px 0 34px rgba(11, 45, 77, .08); }
.sidebar .brand { padding-bottom: var(--ds-space-24); }
.sidebar .brand-logo { width: 150px; }
.workspace-card { border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .07); }
.workspace-card strong { color: var(--visual-color-surface); }
.workspace-card small, .nav-label { color: var(--visual-palette-89a7b9); }
.workspace-avatar { color: var(--brand-dark); background: var(--brand-primary); }
.main-nav a, .sidebar-footer a, .sidebar-footer button, .nav-group-trigger { color: var(--visual-palette-b9cfda); }
.main-nav a:hover, .main-nav a.active, .nav-group-trigger:hover, .nav-group.active > .nav-group-trigger { color: var(--visual-color-surface); background: rgba(15, 179, 158, .15); }
.main-nav a.active { box-shadow: inset 3px 0 var(--brand-primary); }
.nav-group-trigger > em { color: var(--visual-palette-89a7b9); }
.nav-group-trigger > b, .main-nav a b { background: var(--brand-secondary); }
.nav-submenu a[data-open-appointment-form]:hover { color: var(--visual-color-surface); }
.topbar { border-color: rgba(11, 45, 77, .09); background: rgba(255, 255, 255, .92); }
.search-box, .notification-button { border-color: var(--visual-palette-dbe5ea); }
.search-box > span, .notification-button, .menu-toggle { color: var(--brand-secondary); }
.user-menu-trigger > span { color: var(--brand-dark); background: var(--visual-palette-d8f5f1); }
.page-heading h1, .panel-header h2, .metric-card strong { color: var(--brand-dark); }
.metric-card, .panel, .table-panel, .calendar-panel, .empty-state { border-color: rgba(11, 45, 77, .09); box-shadow: 0 8px 28px rgba(11, 45, 77, .055); }
.badge, .status-badge { font-weight: 600; }
.toast, .modal { border-color: rgba(11, 45, 77, .1); box-shadow: 0 22px 64px rgba(11, 45, 77, .2); }
.policy-page, .plans-page { background: radial-gradient(circle at 84% 5%, rgba(15, 179, 158, .1), transparent 28%), var(--visual-palette-f8fbfc); }
.policy-header { background: rgba(255, 255, 255, .94); }
.policy-hero h1, .plans-hero h1 { color: var(--brand-dark); }
.policy-kicker, .policy-back { color: var(--brand-secondary); }
@media (max-width: 1100px) {
  .marketing-screen { padding-top: var(--ds-space-32); }
  .marketing-nav { height: 84px; }
  .marketing-nav .brand-logo--horizontal { width: 150px; }
  .marketing-hero { display: block; min-height: auto; padding-top: var(--ds-space-32); }
  .hero-copy { width: 100%; max-width: 690px; }
  .hero-visual { position: relative; top: auto; right: auto; width: 100%; height: clamp(390px, 52vw, 530px); margin-top: var(--ds-space-16); }
  .hero-pets { display: none; }
  .hero-visual .product-preview { position: absolute; top: 24px; right: 5%; left: 5%; width: auto; margin-top: 0; }
  .hero-benefits { grid-template-columns: 1fr 1fr; gap: var(--ds-space-20) 0; }
  .hero-benefits article:nth-child(2) { border-right: 0; }
  .marketing-features .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .marketing-screen { padding-top: var(--ds-space-32); }
  .marketing-nav { height: 72px; padding-inline: var(--ds-space-20); }
  .marketing-nav .brand-logo { width: min(190px, 50vw); }
  .marketing-screen main { padding-inline: var(--ds-space-20); }
  .marketing-hero { padding-top: var(--ds-space-32); }
  .hero-copy h1 { font-size: var(--ds-font-size-28); }
  .hero-copy h2 { font-size: var(--ds-font-size-22); }
  .hero-visual { height: clamp(340px, 55vw, 420px); }
  .hero-visual .product-preview { top: 20px; right: 0; left: 0; width: auto; }
  .hero-benefits { padding: var(--ds-space-20) var(--ds-space-12); }
  .hero-benefits article { padding-inline: var(--ds-space-16); }
  .auth-card { padding: var(--ds-space-32) var(--ds-space-24); }
  .sidebar { background: linear-gradient(180deg, var(--visual-palette-081f36), var(--brand-dark)); }
  .topbar { padding-inline: var(--ds-space-20); }
  .topbar-brand { display: flex; order: 2; }
  .topbar-brand .brand-logo--symbol { width: 42px; max-height: 38px; }
  .topbar .search-box { order: 4; }
  .topbar .topbar-actions { order: 3; margin-left: auto; }
  .page-root { padding: var(--ds-space-24) var(--ds-space-20); }
}
@media (max-width: 520px) {
  .marketing-nav { display: flex; grid-template-columns: none; align-items: center; gap: var(--ds-space-12); padding: var(--ds-space-12) var(--ds-space-20); }
  .marketing-nav .brand { width: auto; min-width: 0; }
  .marketing-nav .zoonor-logo-picture--responsive .brand-logo { width: 52px; max-height: 48px; }
  .policy-header .zoonor-logo-picture--responsive .brand-logo { width: 48px; max-height: 44px; }
  .marketing-actions { width: auto; display: flex; grid-template-columns: none; flex: 0 0 auto; flex-wrap: nowrap; margin-left: auto; }
  .marketing-demo-button { display: none; }
  .marketing-actions .text-button { width: auto; min-height: 42px; padding: 0 var(--ds-space-20); border: 1px solid var(--visual-palette-b7ddd8); border-radius: var(--ds-radius-12); color: var(--brand-secondary); background: var(--visual-color-surface); }
  .hero-copy h1 { font-size: var(--ds-font-size-28); }
  .hero-copy h2 { font-size: var(--ds-font-size-22); }
  .hero-copy p { font-size: var(--ds-font-size-16); }
  .hero-actions > * { width: 100%; }
  .hero-visual { height: 235px; margin-top: var(--ds-space-24); }
  .hero-pets { display: none; }
  .hero-visual .product-preview { top: 16px; right: 0; width: 100%; padding: var(--ds-space-8) var(--ds-space-8) var(--ds-space-20); border-width: 4px; }
  .hero-visual .product-preview::after { bottom: -15px; height: 15px; }
  .hero-benefits { grid-template-columns: 1fr; gap: 0; }
  .hero-benefits article { padding-block: var(--ds-space-16); border-right: 0; border-bottom: 1px solid rgba(11,45,77,.1); }
  .hero-benefits article:last-child { border-bottom: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .marketing-features .feature-grid { grid-template-columns: 1fr; }
  .marketing-cta { align-items: stretch; flex-direction: column; }
  .auth-card { padding: var(--ds-space-24) var(--ds-space-20); border-radius: var(--ds-radius-16); }
}


/* Financeiro: entrada operacional do PDV. */
.pdv-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--ds-space-24); margin:var(--ds-space-32) 0 var(--ds-space-32); }
.pdv-action { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:var(--ds-space-12); min-height:210px; padding:var(--ds-space-24) var(--ds-space-20); border:1px solid var(--line); border-radius:var(--ds-radius-16); background:var(--brand-surface); color:var(--brand-dark); text-align:center; text-decoration:none; font:inherit; cursor:pointer; box-shadow:0 4px 18px var(--visual-palette-152c4110); }
.pdv-action > .ui-icon { width:32px; height:32px; }
.pdv-action strong { font-size:var(--ds-font-size-22); }
.pdv-action span { font-size:var(--ds-font-size-16); color:var(--muted); }
.pdv-action b { font-size:var(--ds-font-size-28); }
.pdv-action[data-pdv-open] span { color:var(--brand-secondary); font-weight:600; }
.pdv-action.pdv-new { background:var(--brand-secondary); color:var(--visual-color-surface); border-color:var(--brand-secondary); }
.pdv-new span { color:var(--visual-color-surface); }
.pdv-action:hover { transform:translateY(-2px); }
.pdv-action:disabled,.pdv-action[aria-disabled="true"] { opacity:.55; cursor:default; transform:none; }
.pdv-action:focus-visible,.pdv-tabs button:focus-visible { outline:3px solid var(--brand-accent); outline-offset:3px; }
.pdv-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:var(--ds-space-20); margin-bottom:var(--ds-space-24); }
.pdv-tabs { display:flex; gap:var(--ds-space-12); }
.pdv-tabs button { border:1px solid var(--line); border-radius:var(--ds-radius-12); background:var(--brand-surface); color:var(--brand-dark); padding:var(--ds-space-16) var(--ds-space-20); font:inherit; cursor:pointer; }
.pdv-tabs button[aria-selected="true"] { color:var(--brand-secondary); border-color:var(--brand-secondary); background:color-mix(in srgb,var(--brand-secondary) 5%,var(--visual-color-surface)); font-weight:700; }
.pdv-tabs button:disabled { opacity:.5; cursor:default; }
.pdv-search { display:flex; flex:1 1 280px; align-items:center; gap:var(--ds-space-12); border:1px solid var(--line); border-radius:var(--ds-radius-12); padding:0 var(--ds-space-16); background:var(--brand-surface); color:var(--brand-dark); }
.pdv-search input { width:100%; min-width:0; padding:var(--ds-space-16) 0; border:0; background:transparent; font:inherit; }
.pdv-search:focus-within { outline:2px solid var(--brand-secondary); }
.pdv-search input:focus { outline:0; box-shadow:none; }
.pdv-row { display:grid; grid-template-columns:58px minmax(0,1fr) auto 170px; align-items:center; gap:var(--ds-space-24); padding:var(--ds-space-24); margin-bottom:var(--ds-space-20); border:1px solid var(--line); border-radius:var(--ds-radius-16); background:var(--brand-surface); }
.pdv-avatar { display:grid; place-items:center; width:58px; height:58px; border-radius:50%; background:color-mix(in srgb,var(--brand-secondary) 12%,var(--visual-color-surface)); color:var(--brand-secondary); font-size:var(--ds-font-size-22); font-weight:700; }
.pdv-identity { display:flex; flex-direction:column; gap:var(--ds-space-8); min-width:0; overflow-wrap:anywhere; }
.pdv-identity strong { font-size:var(--ds-font-size-22); color:var(--brand-dark); }
.pdv-identity span,.pdv-identity small { color:var(--muted); }
.pdv-value { display:flex; flex-direction:column; gap:var(--ds-space-8); }
.pdv-value > strong { font-size:var(--ds-font-size-22); color:var(--brand-dark); white-space:nowrap; }
.pdv-continue { color:var(--brand-secondary); border:1px solid var(--brand-secondary); min-height:54px; justify-content:space-between; }
.pdv-empty { padding:var(--ds-space-32) var(--ds-space-20); text-align:center; background:var(--brand-surface); border:1px solid var(--line); border-radius:var(--ds-radius-16); color:var(--muted); }
.pdv-pagination { display:flex; justify-content:flex-end; gap:var(--ds-space-16); align-items:center; margin-top:var(--ds-space-20); }
.pdv-summary { padding:var(--ds-space-24); margin-top:var(--ds-space-24); }
.pdv-summary .table-scroll { overflow:auto; }
.pdv-exam-choice { display:flex; align-items:center; gap:var(--ds-space-12); padding:var(--ds-space-16); }
.pdv-exam-choice input { width:auto; }
@media(max-width:1000px) { .pdv-actions { gap:var(--ds-space-16); } .pdv-row { grid-template-columns:48px minmax(0,1fr) auto; gap:var(--ds-space-16); } .pdv-continue { grid-column:2 / -1; } .pdv-action strong { font-size:var(--ds-font-size-16); } }
@media(max-width:620px) { .pdv-actions { grid-template-columns:1fr; margin:var(--ds-space-20) 0; } .pdv-action { min-height:160px; } .pdv-tabs { width:100%; } .pdv-tabs button { flex:1; padding:var(--ds-space-12); font-size:var(--ds-font-size-13); } .pdv-row { grid-template-columns:40px minmax(0,1fr); padding:var(--ds-space-20); gap:var(--ds-space-12); } .pdv-avatar { width:40px; height:40px; font-size:var(--ds-font-size-14); } .pdv-value { grid-column:2; } .pdv-value > strong { font-size:var(--ds-font-size-22); } .pdv-pagination { gap:var(--ds-space-8); font-size:var(--ds-font-size-12); flex-wrap:wrap; } }

/* PDV — identificação e seleção de cobranças. */
.pdv-selection { background:var(--brand-surface); border:1px solid var(--line); border-radius:var(--ds-radius-16); overflow:hidden; }
.pdv-selection-header { display:flex; gap:var(--ds-space-16); align-items:center; padding:var(--ds-space-24) var(--ds-space-32); border-bottom:1px solid var(--line); flex-wrap:wrap; }
.pdv-selection-header h1 { font-size:var(--ds-font-size-28); margin:0; color:var(--brand-dark); overflow-wrap:anywhere; }
.pdv-progress { color:var(--brand-secondary); background:color-mix(in srgb,var(--brand-primary) 12%,var(--visual-color-surface)); padding:var(--ds-space-8) var(--ds-space-16); border-radius:var(--ds-radius-16); font-size:var(--ds-font-size-13); font-weight:700; white-space:nowrap; }
.pdv-header-actions { display:flex; gap:var(--ds-space-12); margin-left:auto; }
.pdv-header-actions .button { min-width:112px; }
.pdv-header-actions [data-pdv-save] { color:var(--brand-secondary); border-color:var(--brand-secondary); }
.pdv-selection-body { padding:var(--ds-space-32); }
.pdv-selection-body h2 { font-size:var(--ds-font-size-22); margin:0 0 var(--ds-space-16); color:var(--brand-dark); }
.pdv-selection-body h2 small { font:inherit; }
.pdv-customer-search { display:flex; gap:var(--ds-space-16); align-items:stretch; }
.pdv-customer-search > button { color:var(--brand-secondary); border-color:var(--brand-secondary); white-space:nowrap; min-width:190px; }
.pdv-customer-card { display:flex; align-items:center; gap:var(--ds-space-20); border:1px solid var(--line); border-radius:var(--ds-radius-12); padding:var(--ds-space-20); margin-top:var(--ds-space-16); }
.pdv-customer-card > div { display:flex; flex:1; flex-direction:column; gap:var(--ds-space-8); min-width:0; overflow-wrap:anywhere; }
.pdv-customer-card strong { font-size:var(--ds-font-size-22); color:var(--brand-dark); }
.pdv-customer-card span { color:var(--muted); }
.pdv-client-option { display:flex; align-items:center; justify-content:space-between; gap:var(--ds-space-16); width:100%; padding:var(--ds-space-16); border:1px solid var(--line); background:var(--brand-surface); font:inherit; text-align:left; color:var(--brand-dark); cursor:pointer; }
.pdv-client-option:hover,.pdv-client-option:focus-visible { background:var(--brand-background); }
#pdv-client-results { max-height:280px; overflow:auto; }
.pdv-pet-section { margin:var(--ds-space-32) 0; }
.pdv-pet-list { display:flex; flex-wrap:wrap; gap:var(--ds-space-16); align-items:stretch; }
.pdv-pet-card { display:flex; flex:1 1 240px; max-width:380px; min-width:0; align-items:center; gap:var(--ds-space-16); padding:var(--ds-space-16); border:1px solid var(--line); border-radius:var(--ds-radius-12); background:var(--brand-surface); color:var(--brand-dark); text-align:left; font:inherit; cursor:pointer; }
.pdv-pet-card.is-selected { border-color:var(--brand-secondary); background:color-mix(in srgb,var(--brand-primary) 7%,var(--visual-color-surface)); box-shadow:inset 0 0 0 1px var(--brand-secondary); }
.pdv-pet-card > span:nth-child(2) { display:flex; flex:1; min-width:0; flex-direction:column; gap:var(--ds-space-8); overflow-wrap:anywhere; }
.pdv-pet-card strong { font-size:var(--ds-font-size-22); }
.pdv-pet-card small { color:var(--muted); }
.pdv-pet-card > i { color:var(--brand-secondary); }
.pdv-pet-card .pet-avatar { width:58px; height:58px; flex:0 0 58px; }
.pdv-pet-add { display:grid; place-items:center; width:76px; min-height:94px; border:1px solid var(--line); border-radius:var(--ds-radius-12); color:var(--brand-dark); background:var(--brand-surface); cursor:pointer; }
.pdv-pet-add .ui-icon { width:28px; height:28px; }
.pdv-available { border:1px solid var(--line); border-radius:var(--ds-radius-16); overflow:hidden; }
.pdv-available > header { display:flex; justify-content:space-between; align-items:center; gap:var(--ds-space-16); padding:var(--ds-space-20); background:var(--brand-background); flex-wrap:wrap; }
.pdv-available h2 { display:flex; align-items:center; gap:var(--ds-space-12); margin:0 0 var(--ds-space-8); }
.pdv-available p { margin:0 0 0 var(--ds-space-32); color:var(--muted); font-size:var(--ds-font-size-14); }
.pdv-select-all { display:flex; align-items:center; gap:var(--ds-space-12); white-space:nowrap; font-size:var(--ds-font-size-14); color:var(--brand-dark); }
.pdv-select-all input,.pdv-billable > input { width:22px; height:22px; flex:0 0 22px; accent-color:var(--brand-secondary); cursor:pointer; }
.pdv-billable { display:flex; align-items:center; gap:var(--ds-space-20); padding:var(--ds-space-24); border-top:1px solid var(--line); cursor:pointer; }
.pdv-source-icon { display:grid; place-items:center; background:color-mix(in srgb,var(--brand-primary) 9%,var(--visual-color-surface)); border-radius:var(--ds-radius-12); color:var(--brand-secondary); width:56px; height:56px; flex:0 0 56px; }
.pdv-source-icon .ui-icon { width:28px; height:28px; }
.pdv-billable-description { display:flex; min-width:0; flex:1; flex-direction:column; gap:var(--ds-space-8); overflow-wrap:anywhere; }
.pdv-billable strong { color:var(--brand-dark); font-size:var(--ds-font-size-16); }
.pdv-billable small { color:var(--muted); font-size:var(--ds-font-size-14); }
.pdv-billable em { font-size:var(--ds-font-size-12); color:var(--muted); font-style:normal; }
.pdv-billable-price { display:flex; flex-direction:column; gap:var(--ds-space-8); text-align:right; white-space:nowrap; }
.pdv-billable.is-unavailable { background:color-mix(in srgb,var(--brand-background) 55%,var(--visual-color-surface)); cursor:default; }
.pdv-selection-footer { display:flex; justify-content:space-between; align-items:center; gap:var(--ds-space-20); margin-top:var(--ds-space-32); }
.pdv-selection-footer > span { color:var(--muted); }
.pdv-selection-footer > div { display:flex; align-items:flex-end; flex-direction:column; gap:var(--ds-space-16); }
.pdv-selection-footer .button { min-height:54px; padding:var(--ds-space-16) var(--ds-space-24); }
.pdv-selection-notice { margin-bottom:var(--ds-space-20); padding:var(--ds-space-16); border:1px solid var(--brand-secondary); border-radius:var(--ds-radius-12); color:var(--brand-secondary); background:color-mix(in srgb,var(--brand-primary) 7%,var(--visual-color-surface)); line-height:1.6; }
.pdv-selection-notice.is-error { border-color:var(--visual-palette-b86a40); color:var(--visual-palette-884620); background:var(--visual-palette-fff8f1); }
.pdv-included { margin-top:var(--ds-space-20); padding:var(--ds-space-16); border:1px solid var(--line); border-radius:var(--ds-radius-12); color:var(--brand-dark); }
.pdv-included summary { cursor:pointer; }
.pdv-included p { display:flex; justify-content:space-between; gap:var(--ds-space-16); font-size:var(--ds-font-size-14); }
.pdv-selection button:focus-visible,.pdv-selection input:focus-visible { outline:3px solid var(--brand-accent); outline-offset:3px; }
@media(max-width:760px) { .pdv-selection-header,.pdv-selection-body { padding:var(--ds-space-20); } .pdv-selection-header h1 { font-size:var(--ds-font-size-22); } .pdv-header-actions { width:100%; } .pdv-header-actions .button { flex:1; } .pdv-customer-search { flex-wrap:wrap; } .pdv-customer-search > button { width:100%; } .pdv-selection-footer { align-items:stretch; flex-direction:column; } .pdv-selection-footer > div { align-items:stretch; } .pdv-billable { flex-wrap:wrap; gap:var(--ds-space-12); padding:var(--ds-space-16); } .pdv-billable-description { flex-basis:calc(100% - 110px); } .pdv-billable-price { width:100%; padding-left:var(--ds-space-32); flex-direction:row; justify-content:space-between; } .pdv-source-icon { width:44px; height:44px; flex-basis:44px; } }

/* PDV — montagem comercial da transação. */
.pdv-register { border:1px solid var(--line); border-radius:var(--ds-radius-16); background:var(--brand-surface); overflow:hidden; }
.pdv-cart-context { display:flex; align-items:center; gap:var(--ds-space-16); margin-bottom:var(--ds-space-24); color:var(--brand-dark); }
.pdv-cart-context > div { min-width:0; flex:1; overflow-wrap:anywhere; }
.pdv-cart-context .text-button { margin-left:var(--ds-space-12); }
.pdv-cart-pet-chips { display:flex; gap:var(--ds-space-12); flex-wrap:wrap; margin-top:var(--ds-space-12); align-items:center; }
.pdv-cart-pet-chips > span { display:inline-flex; align-items:center; gap:var(--ds-space-8); padding:var(--ds-space-8) var(--ds-space-12); border-radius:var(--ds-radius-8); background:var(--brand-background); font-size:var(--ds-font-size-13); }
.pdv-cart-pet-chips .ui-icon { width:16px; height:16px; }
.pdv-cart-search { display:flex; align-items:stretch; gap:var(--ds-space-12); }
.pdv-cart-search .pdv-search { flex:1; }
.pdv-cart-search [data-cart-add] { min-width:170px; }
.pdv-catalog-results { max-height:320px; overflow:auto; }
.pdv-catalog-results small { display:block; margin-top:var(--ds-space-4); color:var(--muted); font-size:var(--ds-font-size-12); }
.pdv-item-pet-field { display:flex; flex-wrap:wrap; align-items:center; gap:var(--ds-space-20); margin:var(--ds-space-16) 0 var(--ds-space-20); }
.pdv-item-pet-field label { display:flex; align-items:center; gap:var(--ds-space-12); font-size:var(--ds-font-size-13); color:var(--muted); }
.pdv-item-pet-field select { min-width:150px; }
.pdv-barcode-field { display:flex; flex-direction:column; gap:var(--ds-space-8); padding:var(--ds-space-16); margin-top:var(--ds-space-12); background:var(--brand-background); border-radius:var(--ds-radius-12); color:var(--brand-dark); }
.pdv-barcode-field[hidden] { display:none; }
.pdv-barcode-field small { color:var(--muted); }
.pdv-cart-table-wrap { overflow:auto; border:1px solid var(--line); border-radius:var(--ds-radius-12); }
.pdv-cart-table { min-width:850px; }
.pdv-cart-table th { white-space:nowrap; font-size:var(--ds-font-size-12); }
.pdv-cart-table td { vertical-align:middle; }
.pdv-cart-item-name { display:flex; gap:var(--ds-space-12); align-items:center; min-width:190px; }
.pdv-cart-item-name .pdv-source-icon { flex-basis:36px; width:36px; height:36px; border-radius:var(--ds-radius-8); }
.pdv-cart-item-name .ui-icon { width:21px; height:21px; }
.pdv-cart-quantity { width:78px; min-width:78px; padding:var(--ds-space-8); }
.pdv-cart-quantity:disabled { background:var(--brand-background); color:var(--muted); cursor:default; }
.pdv-cart-table select { min-width:100px; }
.pdv-cart-table td:nth-child(5),.pdv-cart-table td:nth-child(6) { white-space:nowrap; }
.pdv-cart-bottom { display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,1fr); gap:var(--ds-space-24); margin-top:var(--ds-space-24); }
.pdv-cart-notes { display:flex; flex-direction:column; gap:var(--ds-space-12); color:var(--brand-dark); font-weight:600; font-size:var(--ds-font-size-14); }
.pdv-cart-notes textarea { min-height:155px; resize:vertical; font-weight:400; }
.pdv-cart-summary { display:flex; flex-direction:column; gap:var(--ds-space-16); padding:var(--ds-space-24); border:1px solid var(--line); border-radius:var(--ds-radius-12); color:var(--brand-dark); }
.pdv-cart-summary > div { display:flex; align-items:center; justify-content:space-between; gap:var(--ds-space-16); }
.pdv-cart-summary > small { color:var(--muted); font-size:var(--ds-font-size-12); line-height:1.5; }
.pdv-discount-control > span { margin-right:auto; }
.pdv-discount-control select { width:65px; }
.pdv-discount-control input { width:110px; text-align:right; }
.pdv-cart-total { border-top:1px solid var(--line); padding-top:var(--ds-space-16); font-size:var(--ds-font-size-22); }
.pdv-cart-footer { display:flex; gap:var(--ds-space-20); align-items:center; margin-top:var(--ds-space-24); }
.pdv-cart-footer [data-cart-cancel] { color:var(--visual-palette-ad493f); border-color:var(--visual-palette-ecc8c4); }
.pdv-cart-footer > span { margin-left:auto; color:var(--muted); font-size:var(--ds-font-size-13); }
.pdv-cart-footer [data-cart-payment] { min-height:54px; padding:var(--ds-space-16) var(--ds-space-32); }
.pdv-register button:focus-visible,.pdv-register input:focus-visible,.pdv-register select:focus-visible { outline:3px solid var(--brand-accent); outline-offset:3px; }
@media(max-width:850px) { .pdv-cart-bottom { grid-template-columns:1fr; } }
@media(max-width:600px) { .pdv-cart-search { flex-wrap:wrap; } .pdv-cart-search .pdv-search { flex-basis:100%; } .pdv-cart-search [data-cart-add] { flex:1; } .pdv-cart-context .pdv-avatar { width:42px; height:42px; flex:0 0 42px; } .pdv-cart-summary { padding:var(--ds-space-16); } .pdv-cart-footer { flex-wrap:wrap; } .pdv-cart-footer [data-cart-payment] { width:100%; justify-content:center; } .pdv-item-pet-field label { flex-wrap:wrap; } }

/* PDV — pagamento e progressão fiscal independente. */
.pdv-payment { border:1px solid var(--line); border-radius:var(--ds-radius-16); overflow:hidden; background:var(--brand-surface); }
.pdv-payment-steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); list-style:none; gap:var(--ds-space-20); padding:var(--ds-space-24) var(--ds-space-32); margin:0; border-bottom:1px solid var(--line); }
.pdv-payment-steps li { display:flex; gap:var(--ds-space-12); align-items:center; color:var(--muted); font-size:var(--ds-font-size-13); min-width:0; }
.pdv-payment-steps b { width:28px; height:28px; flex:0 0 28px; display:grid; place-items:center; border:1px solid var(--line); border-radius:50%; background:var(--brand-background); }
.pdv-payment-steps .is-current { color:var(--brand-secondary); font-weight:700; }
.pdv-payment-steps .is-current b { border-color:var(--brand-secondary); background:var(--brand-secondary); color:var(--visual-color-surface); }
.pdv-payment-steps .is-complete b { color:var(--brand-secondary); background:color-mix(in srgb,var(--brand-primary) 15%,var(--visual-color-surface)); border-color:transparent; }
.pdv-payment-body { padding:var(--ds-space-24) var(--ds-space-32); }
.pdv-payment-columns { display:grid; grid-template-columns:minmax(240px,.85fr) minmax(0,1.3fr); gap:var(--ds-space-32); align-items:start; }
.pdv-payment h2 { margin:0 0 var(--ds-space-20); font-size:var(--ds-font-size-22); color:var(--brand-dark); }
.pdv-payment-summary ul { list-style:none; padding:0; margin:0; max-height:480px; overflow:auto; }
.pdv-payment-summary li { display:flex; align-items:center; gap:var(--ds-space-12); padding:var(--ds-space-16) 0; border-bottom:1px solid var(--line); }
.pdv-payment-summary li > span { display:flex; flex:1; flex-direction:column; gap:var(--ds-space-4); overflow-wrap:anywhere; min-width:0; }
.pdv-payment-summary li > strong { white-space:nowrap; color:var(--brand-dark); }
.pdv-payment-summary li small { color:var(--muted); }
.pdv-payment-summary .pdv-source-icon { width:36px; height:36px; flex:0 0 36px; border-radius:var(--ds-radius-8); }
.pdv-payment-summary .pdv-source-icon .ui-icon { width:21px; height:21px; }
.pdv-payment-summary dl { border:1px solid var(--line); border-radius:var(--ds-radius-12); padding:var(--ds-space-20); margin:var(--ds-space-24) 0 0; }
.pdv-payment-summary dl > div { display:flex; justify-content:space-between; align-items:center; gap:var(--ds-space-16); margin-bottom:var(--ds-space-16); color:var(--muted); }
.pdv-payment-summary dd { margin:0; white-space:nowrap; }
.pdv-payment-summary .pdv-payment-summary-total { margin:0; padding-top:var(--ds-space-16); border-top:1px solid var(--line); font-weight:700; font-size:var(--ds-font-size-22); color:var(--brand-dark); }
.pdv-pay-methods { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--ds-space-12); margin-bottom:var(--ds-space-24); }
.pdv-pay-method { display:flex; flex-direction:column; gap:var(--ds-space-8); align-items:center; justify-content:center; min-height:96px; padding:var(--ds-space-16) var(--ds-space-12); border:1px solid var(--line); border-radius:var(--ds-radius-12); background:var(--brand-surface); color:var(--brand-dark); font:inherit; font-size:var(--ds-font-size-13); cursor:pointer; text-align:center; }
.pdv-pay-method > .ui-icon { width:25px; height:25px; color:var(--brand-secondary); }
.pdv-pay-method small { font-size:var(--ds-font-size-11); color:var(--muted); line-height:1.5; }
.pdv-pay-method.is-selected { border-color:var(--brand-secondary); box-shadow:inset 0 0 0 1px var(--brand-secondary); background:color-mix(in srgb,var(--brand-primary) 7%,var(--visual-color-surface)); }
.pdv-pay-method:disabled { cursor:default; opacity:.65; }
#pdv-pay-fields > label { display:flex; flex-direction:column; gap:var(--ds-space-8); margin:var(--ds-space-20) 0 0; color:var(--brand-dark); font-size:var(--ds-font-size-14); font-weight:600; }
#pdv-pay-fields input:not([type="checkbox"]),#pdv-pay-fields select { width:100%; min-height:46px; }
#pdv-pay-fields label small { color:var(--muted); line-height:1.6; font-weight:400; }
#pdv-pay-fields .pdv-pay-ack { flex-direction:row; gap:var(--ds-space-12); align-items:flex-start; padding:var(--ds-space-16); background:var(--brand-background); border-radius:var(--ds-radius-12); line-height:1.6; font-weight:400; }
.pdv-pay-ack input { width:19px; height:19px; flex:0 0 19px; accent-color:var(--brand-secondary); margin-top:var(--ds-space-4); }
.pdv-pay-suggestions { display:flex; flex-wrap:wrap; gap:var(--ds-space-12); margin-top:var(--ds-space-12); }
.pdv-pay-suggestions button { flex:1; padding:var(--ds-space-12); background:color-mix(in srgb,var(--brand-primary) 9%,var(--visual-color-surface)); border:1px solid transparent; border-radius:var(--ds-radius-8); font:inherit; color:var(--brand-secondary); font-size:var(--ds-font-size-13); cursor:pointer; }
.pdv-pay-explanation,.pdv-pay-cash-state { color:var(--muted); font-size:var(--ds-font-size-13); line-height:1.6; }
.pdv-pay-cash-state.is-error { color:var(--visual-palette-974d26); background:var(--visual-palette-fff8ef); padding:var(--ds-space-12); border-radius:var(--ds-radius-8); }
.pdv-pay-attempt { display:flex; flex-wrap:wrap; gap:var(--ds-space-12); padding:var(--ds-space-20); border:1px solid var(--line); border-radius:var(--ds-radius-12); color:var(--brand-dark); }
.pdv-pay-attempt p,.pdv-pay-attempt small,.pdv-pay-attempt > strong { flex-basis:100%; margin:0; line-height:1.6; }
.pdv-pay-attempt small { color:var(--muted); overflow-wrap:anywhere; }
.pdv-pay-attempt.is-pending { background:var(--brand-background); }
.pdv-pay-footer { display:flex; justify-content:space-between; gap:var(--ds-space-20); margin-top:var(--ds-space-32); }
.pdv-pay-footer .button { min-height:50px; }
.pdv-payment button:focus-visible { outline:3px solid var(--brand-accent); outline-offset:3px; }
.pdv-payment-settings { padding:var(--ds-space-24); margin:var(--ds-space-20) 0; }
.pdv-payment-settings summary { color:var(--brand-dark); font-weight:600; cursor:pointer; }
.pdv-payment-settings form { margin-top:var(--ds-space-20); }
.pdv-settings-methods { display:grid; grid-template-columns:1fr 1fr; gap:var(--ds-space-16); margin:var(--ds-space-20) 0; }
.pdv-settings-methods > div { padding:var(--ds-space-16); border:1px solid var(--line); border-radius:var(--ds-radius-12); display:flex; flex-direction:column; gap:var(--ds-space-12); }
.pdv-settings-methods label,.pdv-setting-check { display:flex; align-items:center; gap:var(--ds-space-8); }
.pdv-settings-methods input,.pdv-setting-check input { width:18px; height:18px; accent-color:var(--brand-secondary); }
.pdv-settings-methods small { color:var(--muted); }
@media(max-width:900px) { .pdv-payment-columns { grid-template-columns:1fr; gap:var(--ds-space-32); } .pdv-payment-summary ul { max-height:none; } }
@media(max-width:600px) { .pdv-payment-body { padding:var(--ds-space-20); } .pdv-payment-steps { grid-template-columns:1fr 1fr; gap:var(--ds-space-16); padding:var(--ds-space-20); } .pdv-pay-methods { grid-template-columns:repeat(2,minmax(0,1fr)); } .pdv-pay-footer { flex-wrap:wrap; } .pdv-pay-footer .button { width:100%; justify-content:center; } .pdv-settings-methods { grid-template-columns:1fr; } }

/* PDV — revisão e emissão fiscal por natureza da operação. */
.pdv-fiscal-intro {display:flex;align-items:center;gap:var(--ds-space-12);padding:var(--ds-space-16) var(--ds-space-20);background:var(--brand-background);border:1px solid var(--line);border-radius:var(--ds-radius-12);margin-bottom:var(--ds-space-20);color:var(--brand-dark);line-height:1.6;}
.pdv-fiscal-intro .ui-icon {flex:0 0 22px;color:var(--brand-secondary);}
.pdv-fiscal-documents {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--ds-space-20);}
.pdv-fiscal-card {border:1px solid var(--line);border-radius:var(--ds-radius-12);padding:var(--ds-space-20);min-width:0;}
.pdv-fiscal-card.is-authorized {border-color:var(--brand-secondary);}
.pdv-fiscal-card-heading {display:flex;align-items:center;gap:var(--ds-space-12);}
.pdv-fiscal-card-heading > i {width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:var(--ds-radius-12);background:var(--brand-background);color:var(--brand-secondary);}
.pdv-fiscal-card-heading > div {flex:1;min-width:0;}
.pdv-fiscal-card h2 {font-size:var(--ds-font-size-16);margin:0 0 var(--ds-space-8);}
.pdv-fiscal-card-heading span,.pdv-fiscal-card small {color:var(--muted);font-size:var(--ds-font-size-13);}
.pdv-fiscal-card-heading > strong {white-space:nowrap;color:var(--brand-dark);}
.pdv-fiscal-status {display:inline-block;border-radius:var(--ds-radius-16);padding:var(--ds-space-8) var(--ds-space-12);font-size:var(--ds-font-size-12);background:var(--brand-background);color:var(--brand-dark);margin:var(--ds-space-20) 0 var(--ds-space-12);}
.pdv-fiscal-card.is-authorized .pdv-fiscal-status {color:var(--brand-secondary);}
.pdv-fiscal-toggle {display:flex;align-items:center;gap:var(--ds-space-8);font-size:var(--ds-font-size-13);line-height:1.6;}
.pdv-fiscal-toggle input,.pdv-fiscal-confirm input {width:18px;height:18px;accent-color:var(--brand-secondary);}
.pdv-fiscal-error,.pdv-fiscal-warning {color:var(--visual-palette-974526);line-height:1.6;font-size:var(--ds-font-size-13);overflow-wrap:anywhere;}
.pdv-fiscal-warning {background:var(--visual-palette-fff8ef);border:1px solid var(--visual-palette-f0d4b5);border-radius:var(--ds-radius-12);padding:var(--ds-space-20);margin:0 0 var(--ds-space-20);}
.pdv-fiscal-error {padding-left:0;list-style-position:inside;white-space:pre-line;}
.pdv-fiscal-card details {margin:var(--ds-space-16) 0;font-size:var(--ds-font-size-12);color:var(--muted);overflow-wrap:anywhere;}
.pdv-fiscal-card details p {line-height:1.6;}
.pdv-fiscal-card-actions {display:flex;gap:var(--ds-space-12);flex-wrap:wrap;margin-top:var(--ds-space-16);}
.pdv-fiscal-customer {margin:var(--ds-space-32) 0 var(--ds-space-24);}
.pdv-fiscal-customer h2 {font-size:var(--ds-font-size-16);}
.pdv-fiscal-customer-card {display:flex;align-items:center;gap:var(--ds-space-16);padding:var(--ds-space-20);border:1px solid var(--line);border-radius:var(--ds-radius-12);}
.pdv-fiscal-customer-card > i {color:var(--brand-secondary);}
.pdv-fiscal-customer-card > div {display:flex;flex-direction:column;gap:var(--ds-space-8);flex:1;min-width:0;overflow-wrap:anywhere;}
.pdv-fiscal-customer-card span,.pdv-fiscal-customer-card small {color:var(--muted);font-size:var(--ds-font-size-13);}
.pdv-fiscal-notes {display:flex;flex-direction:column;gap:var(--ds-space-12);font-size:var(--ds-font-size-14);color:var(--brand-dark);font-weight:600;}
.pdv-fiscal-notes textarea {width:100%;resize:vertical;min-height:90px;}
.pdv-fiscal-notes small {font-weight:400;color:var(--muted);font-size:var(--ds-font-size-12);line-height:1.6;}
.pdv-fiscal .pdv-pay-footer > div {display:flex;gap:var(--ds-space-12);flex-wrap:wrap;justify-content:flex-end;}
.pdv-fiscal-confirm {display:flex;align-items:flex-start;gap:var(--ds-space-12);font-size:var(--ds-font-size-13);line-height:1.6;}
@media(max-width:800px){.pdv-fiscal-documents{grid-template-columns:1fr;}.pdv-fiscal-customer-card{flex-wrap:wrap;}.pdv-fiscal-card-heading{flex-wrap:wrap;}}
@media(max-width:600px){.pdv-fiscal .pdv-pay-footer > div{width:100%;}.pdv-fiscal-customer-card .button{width:100%;}}
.rec-cards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:var(--ds-space-16); margin:var(--ds-space-20) 0; }
.rec-cards button { text-align:left; display:flex; flex-direction:column; gap:var(--ds-space-12); padding:var(--ds-space-20); border:1px solid var(--visual-palette-dcebe5); border-radius:var(--ds-radius-12); background:var(--visual-palette-eff9f5); color:var(--visual-palette-101d40); cursor:pointer; }
.rec-cards button:nth-child(2) { background:var(--visual-palette-fffbef); } .rec-cards button:nth-child(3) { background:var(--visual-palette-f1f4ff); }
.rec-cards b { font-size: var(--ds-font-size-22); } .rec-panel { padding:var(--ds-space-20); }
.rec-tabs, .rec-filters { display:flex; gap:var(--ds-space-12); align-items:center; flex-wrap:wrap; margin-bottom:var(--ds-space-20); }
.rec-tabs button { border:0; border-bottom:3px solid transparent; background:none; padding:var(--ds-space-12); color:inherit; cursor:pointer; }
.rec-tabs button[aria-selected=true] { border-color:var(--visual-palette-07845d); color:var(--visual-palette-087451); font-weight:700; }
.rec-filters input, .rec-filters select { border:1px solid var(--visual-palette-d8dfea); border-radius:var(--ds-radius-8); padding:var(--ds-space-12); background:var(--visual-color-surface); color:inherit; }
.rec-filters input[type=search] { flex:1; min-width:200px; } .rec-filters label { display:flex; align-items:center; gap:var(--ds-space-4); }
@media (max-width:800px) { .rec-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.rec-menu { display:inline-block; position:relative; } .rec-menu summary { cursor:pointer; list-style:none; padding:var(--ds-space-8); font-size: var(--ds-font-size-22); } .rec-menu[open] button { position:absolute; right:0; z-index:2; white-space:nowrap; box-shadow:0 3px 12px var(--visual-palette-0002); }
.payable-cards button:nth-child(3) { background:var(--visual-palette-fff0f0); border-color:var(--visual-palette-f8dddd); } .payable-cards button:nth-child(4) { background:var(--visual-palette-eff6ff); }
.pay-overdue { color:var(--visual-palette-b42318); } .pay-status { display:inline-block; border-radius:var(--ds-radius-16); padding:var(--ds-space-4) var(--ds-space-12); background:var(--visual-palette-dff4eb); color:var(--visual-palette-087451); white-space:nowrap; } .pay-status.overdue { color:var(--visual-palette-a91e1e); background:var(--visual-palette-fee4e2); } .pay-status.partial { color:var(--visual-palette-915900); background:var(--visual-palette-fff0c7); }
.payable-form { max-width:1000px; padding:var(--ds-space-24); } .payable-form h2 { margin:var(--ds-space-20) 0 var(--ds-space-12); } .pay-check { background:none; border:0; cursor:pointer; color:var(--visual-palette-087451); font-size: var(--ds-font-size-22); } .pay-check.is-paid { cursor:default; } .payable-overlay { position:fixed; inset:0; z-index:120; display:flex; justify-content:flex-end; } .payable-backdrop { position:absolute; inset:0; background:var(--visual-palette-12203c66); } .payable-drawer { position:relative; background:var(--visual-color-surface); padding:var(--ds-space-24); width:min(520px,100%); height:100%; overflow:auto; box-shadow:0 0 24px var(--visual-palette-0003); } .payable-drawer header { display:flex; align-items:center; justify-content:space-between; } .payable-drawer footer { margin-top:var(--ds-space-24); }
.payable-overlay { z-index:90; }

/* Navegação da base visual: barra compacta em tablet largo e gaveta abaixo. */
.permission-note { color: var(--visual-color-text); background: var(--visual-color-background); border-radius: var(--ds-radius-8); padding: var(--ds-space-8) var(--ds-space-12); font-size: var(--ds-font-size-12); }
#app-shell :is(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--visual-color-primary); outline-offset: 2px; }
#app-shell .button { white-space: nowrap; }
:is(.ui-control, .ui-link) { font-family: var(--visual-font-family); }
:is(.ui-control, .ui-link):focus-visible { outline: 2px solid var(--visual-color-primary); outline-offset: 2px; }
#app-shell :is(.button, .text-button, .icon-button):disabled { opacity: 1; color: var(--visual-color-text); background: var(--visual-color-background); box-shadow: none; cursor: not-allowed; }
.visual-generated-action-icon { display: none; }
#sidebar :is(a, button, input, select, textarea, summary):focus-visible { outline-color: var(--visual-palette-fff); }
:is(.ui-badge, .status, .badge, .status-badge, .cash-badge, .pay-status, .clinical-type-badge, .relationship-badge,
    .relationship-history-status, .subscription-cycle-badge, .package-active-badge,
    .record-active-badge, .clinical-record-status, .pdv-fiscal-status) {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-8);
  border-radius: var(--ds-radius-12);
  font-size: var(--ds-font-size-11);
  font-weight: 600;
}
.profile-suggestions p, .first-access-fieldset legend small { color: var(--visual-color-muted); }
.inventory-attention-row.amber > b { color: var(--visual-palette-8f6200); }
.inventory-attention-row.blue > b { color: var(--visual-palette-23679d); }
.inventory-donut span { background: var(--visual-color-surface); }
.team-donut > :is(strong, small) { background: var(--visual-color-surface); }
.modal-card :is(.client-create-footer, .employee-form-footer, .package-form-footer, .supplier-form-footer, .product-form-actions),
.appointment-create-main .modal-actions { position: static; }
.package-service-table { max-height: none; }
@media (min-width: 1280px) {
  .day-overview-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .day-card-wide { grid-column: auto; }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .day-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day-card-wide { grid-column: auto; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .app-shell { grid-template-columns: 72px minmax(0, 1fr); }
  .sidebar { width: 72px; padding: var(--ds-space-20) var(--ds-space-12); overflow-x: hidden; transition: width .2s ease; }
  .sidebar.open { width: 270px; padding: var(--ds-space-32) var(--ds-space-20) var(--ds-space-20); }
  .sidebar:not(.open) .brand, .sidebar:not(.open) .nav-label,
  .sidebar:not(.open) .workspace-card > div, .sidebar:not(.open) .nav-submenu,
  .sidebar:not(.open) .nav-group-trigger > b, .sidebar:not(.open) .nav-group-trigger > em { display: none; }
  .sidebar:not(.open) .workspace-card { justify-content: center; padding: var(--ds-space-8); }
  .sidebar:not(.open) .main-nav a span, .sidebar:not(.open) .nav-group-trigger > span,
  .sidebar:not(.open) .sidebar-footer span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .sidebar:not(.open) .main-nav a, .sidebar:not(.open) .nav-group-trigger,
  .sidebar:not(.open) .sidebar-footer a, .sidebar:not(.open) .sidebar-footer button { justify-content: center; padding-inline: 0; }
  .menu-toggle { display: grid; }
  .sidebar-backdrop:not([hidden]) { position: fixed; inset: 0; z-index: 25; display: block; border: 0; background: rgba(11,45,77,.18); }
}
@media (min-width: 821px) and (max-width: 1023px) {
  .app-shell { display: block; }
  .main-content { grid-column: 1; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .menu-toggle { display: grid; }
  .sidebar-backdrop:not([hidden]) { position: fixed; inset: 0; z-index: 25; display: block; border: 0; background: rgba(11,45,77,.18); }
}
@media (min-width: 1280px) {
  .product-table th:last-child, .product-table td:last-child,
  .responsive-table-actions th:last-child, .responsive-table-actions td:last-child { position: sticky; right: 0; z-index: 1; background: var(--visual-color-surface); }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .modal-backdrop { padding: 0; }
  .modal-card, .modal-card.plan-modal-card { width: 100%; max-width: none; height: 100dvh; max-height: 100dvh; border-radius: 0; overflow: auto; }
  .modal-card:has(.package-create-form) #modal-content, .package-create-form, .package-form-section { min-width: 0; }
  .package-info-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "validity" "price" "description"; }
  .package-service-table { max-height: none; overflow: visible; }
  .package-service-head { display: none; }
  .package-service-row { min-width: 0; grid-template-columns: 28px minmax(0, 1fr); }
  .package-service-row > span, .package-service-row > .package-quantity-control { grid-column: 2; }
  .package-service-row > span:nth-of-type(1)::before { content: "Duração: "; font-weight: 600; }
  .package-service-row > span:nth-of-type(2)::before { content: "Valor unitário: "; font-weight: 600; }
  .package-financial-equation { grid-template-columns: minmax(0, 1fr); }
  .package-financial-equation > b { text-align: center; }
  .package-form-footer { display: flex; flex-wrap: wrap; }
}

/* A grade mensal mantém os sete dias visíveis sem largura mínima oculta. */
@media (min-width: 768px) and (max-width: 1023px) {
  .visual-filter-disclosure { min-width: 0; }
  .visual-filter-disclosure > summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--ds-space-12); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--visual-color-surface); color: var(--visual-color-primary); font-weight: 600; cursor: pointer; list-style: none; }
  .visual-filter-disclosure > summary::-webkit-details-marker { display: none; }
  .visual-filter-disclosure > summary::after { content: '▾'; margin-left: var(--ds-space-8); }
  .visual-filter-disclosure[open] > summary::after { content: '▴'; }
  .visual-filter-disclosure > summary:focus-visible { outline: 2px solid var(--visual-color-primary); outline-offset: 3px; }
  .visual-filter-disclosure > :is(.clinical-center-filter-grid, .cash-filters, .rec-filters, .appointment-list-filters) { margin-top: var(--ds-space-12); }
  .agenda-legend-filters.schedule-filters:has(.visual-schedule-filters) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visual-schedule-filters > .schedule-multiselect { margin-top: var(--ds-space-8); }
}
@media (min-width: 768px) {
  .teams-calendar.week-view { min-width: 0; grid-template-columns: 70px repeat(var(--week-days, 7), minmax(0, 1fr)); }
  .month-calendar-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, 300px); }
  .teams-calendar.month-view { min-width: 0; grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .month-view .calendar-head, .month-cell { min-width: 0; padding: var(--ds-space-8); }
  .month-heat-stats { flex-wrap: wrap; gap: var(--ds-space-4); }
  .month-heat-stats em { margin-left: 0; overflow-wrap: anywhere; }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .month-calendar-layout { grid-template-columns: minmax(0, 1fr); }
  .day-calendar-layout, .appointment-create-layout, .appointment-list-view { grid-template-columns: minmax(0, 1fr); }
  .appointment-summary-panel { position: static; }
  .appointment-list-sidebar { grid-column: 1; grid-row: auto; }
  :is(.heading-actions, .settings-heading-actions) > .heading-action-compact { flex: 0 0 44px; width: 44px; min-width: 44px; padding-inline: 0; }
  .heading-action-compact > .visual-generated-action-icon { display: block; }
  .heading-action-compact .visual-action-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  :is(.heading-actions, .settings-heading-actions) > .button { white-space: nowrap; }
  :is(.heading-actions, .settings-heading-actions) { position: relative; }
  .visual-more-actions { position: relative; }
  .visual-more-actions > summary { display: flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 var(--ds-space-16); border: 1px solid var(--line); border-radius: var(--ds-radius-12); color: var(--visual-color-primary); background: var(--visual-color-surface); cursor: pointer; font-weight: 600; list-style: none; }
  .visual-more-actions > summary::-webkit-details-marker { display: none; }
  .visual-more-actions-list { position: absolute; z-index: 15; right: 0; top: calc(100% + 6px); display: grid; min-width: 210px; gap: var(--ds-space-4); padding: var(--ds-space-8); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--visual-color-surface); box-shadow: var(--shadow); }
  .visual-more-actions-list > .button { width: 100%; justify-content: flex-start; white-space: nowrap; }
  .visual-more-actions-list .heading-action-compact .visual-action-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .product-table th:last-child, .product-table td:last-child,
  .responsive-table-actions th:last-child, .responsive-table-actions td:last-child { position: sticky; right: 0; z-index: 1; background: var(--visual-color-surface); }
  .product-table :is(th, td):nth-child(2), .product-table :is(th, td):nth-child(3) { display: none; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .product-table, .product-table tbody, .product-table tr, .product-table td { display: block; width: 100%; min-width: 0; }
  .product-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .product-table tbody { display: grid; gap: var(--ds-space-12); }
  .product-table tr { border: 1px solid var(--line); border-radius: var(--ds-radius-12); padding: var(--ds-space-12); }
  .product-table td { display: grid; grid-template-columns: minmax(100px, .7fr) minmax(0, 1.3fr); gap: var(--ds-space-12); padding: var(--ds-space-8); border: 0; }
  .product-table td::before { content: attr(data-label); color: var(--visual-color-muted); font-size: var(--ds-font-size-11); font-weight: 600; }
  .product-table td > * { grid-column: 2; }
  table.responsive-table, .responsive-table tbody, .responsive-table tfoot, .responsive-table tr, .responsive-table td { display: block; width: 100%; min-width: 0; }
  .responsive-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .responsive-table tbody { display: grid; gap: var(--ds-space-12); }
  .responsive-table tfoot { margin-top: var(--ds-space-12); }
  .responsive-table tr { border: 1px solid var(--line); border-radius: var(--ds-radius-12); padding: var(--ds-space-12); }
  table.responsive-table td { position: relative; min-height: 36px; padding: var(--ds-space-8) var(--ds-space-8) var(--ds-space-8) 38%; border: 0; overflow-wrap: anywhere; }
  .first-access-permission-matrix.responsive-table td { width: 100%; text-align: left; }
  :is(.catalog-package-usage, .catalog-capacity-usage, .team-performance-table).responsive-table td { text-align: left; }
  .responsive-table td::before { content: attr(data-label); position: absolute; left: 8px; top: 8px; width: 34%; color: var(--visual-color-muted); font-size: var(--ds-font-size-11); font-weight: 600; }
  table.responsive-table td[colspan]:not([colspan="1"]) { padding-left: var(--ds-space-8); }
  .responsive-table td[colspan]:not([colspan="1"])::before { display: none; }
}

/* Clientes e pets */
.crm-list-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .55fr) auto; align-items: center; }
.crm-list-controls .client-search-field { grid-column: auto; }
.crm-list-controls .client-advanced-filter { grid-column: 3; grid-row: 1; }
.crm-list-controls .service-order-field { grid-column: 2; grid-row: 1; }
.relationship-list-header > .crm-list-controls, .segment-list-header > .crm-list-controls { width: 100%; gap: var(--ds-space-8); }
.relationship-list-header:has(> .crm-list-controls), .segment-list-header:has(> .crm-list-controls) { align-items: stretch; flex-direction: column; gap: var(--ds-space-12); }
.crm-list-table thead th { font-size: var(--ds-font-size-11); font-weight: 500; }
.crm-list-table tbody :is(small, .client-contact) { font-size: var(--ds-font-size-12); }
.crm-list-table tbody :is(.cell-actions, .relationship-actions, .segment-actions) .icon-button {
  width: 36px !important; height: 36px !important; min-height: 36px !important;
  border: 1px solid #dfe7ec; border-radius: 10px !important; color: #60758a;
}
.crm-list-table tbody :is(.cell-actions, .relationship-actions, .segment-actions) .icon-button :is(.ui-icon, .whatsapp-icon) {
  width: 18px !important; height: 18px !important; flex-basis: 18px; color: #60758a !important;
}
.crm-list-table tbody .icon-button .whatsapp-icon { filter: grayscale(1); }
.segment-table { min-width: 0; table-layout: fixed; }
.segment-table :is(.segment-name, .segment-name > span) { min-width: 0; }
.segment-table td { overflow-wrap: anywhere; }
.segment-table .segment-actions { flex-wrap: nowrap; }
.crm-ranking > span { white-space: normal; overflow-wrap: anywhere; }

@media (max-width: 1279px) {
  table.crm-list-table { min-width: 0; width: 100%; }
  .crm-list-table.client-list-table:not(.pet-list-table) :is(th, td):nth-child(3),
  .crm-list-table.pet-list-table :is(th, td):is(:nth-child(4), :nth-child(5)),
  .crm-list-table.relationship-table :is(th, td):nth-child(3),
  .crm-list-table.segment-table :is(th, td):nth-child(3) { display: none; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  table.crm-list-table { table-layout: fixed; }
  .crm-list-table :is(th, td) { padding-inline: var(--ds-space-12); overflow-wrap: anywhere; }
  .crm-list-table :is(th, td):first-child { width: 27%; }
  .crm-list-table :is(th, td):last-child { position: sticky; right: 0; width: 156px; }
  .crm-list-table .primary-cell { min-width: 0; }
}
@media (min-width: 1024px) {
  .segment-table :is(th, td):last-child { width: 156px; }
  .overview-page .catalog-overview-card table.catalog-performance-table thead th:nth-child(2),
  .overview-page .catalog-overview-card table.catalog-capacity-usage thead th:nth-child(2) {
    width: max(80px, 24%);
    padding-inline: var(--ds-space-8);
  }
}

.client-center-pet strong { color: #0b2d4d; font-size: var(--ds-font-size-14); font-weight: 600; overflow-wrap: anywhere; }
.client-center-pet small { color: #60758a; font-size: var(--ds-font-size-12); }
.client-center-pet[aria-current="true"] { border-color: var(--brand-primary); }
.crm-pet-profile { margin-bottom: var(--ds-space-20); }
.crm-pet-profile dl { display: flex; flex-wrap: wrap; gap: var(--ds-space-20); padding: 0 var(--ds-space-20); }
.crm-pet-profile dt { color: var(--visual-color-muted); font-size: var(--ds-font-size-12); }
.crm-pet-profile dd { margin: 0; color: var(--visual-color-text); }
.relationship-history-header h2 { font-size: var(--ds-font-size-16); font-weight: 600; }
.relationship-history-header .button-compact { height: 32px !important; min-height: 32px !important; font-size: var(--ds-font-size-13) !important; }
.relationship-history-panel .relationship-history-dot { background: #60758a; }
.relationship-history-event > .ui-icon-tile, .segment-name > .ui-icon-tile { flex: 0 0 var(--ds-icon-tile-size); }
.crm-section-link,
.overview-page[data-overview-route="clients-overview"] .crm-panel .panel-header :is(a, .text-button) {
  flex: none; color: #0d7a6e; font-size: var(--ds-font-size-13); font-weight: 600; white-space: nowrap;
}
.relationship-history-panel .relationship-history-more { display: block; width: fit-content; margin: var(--ds-space-12) auto; padding: 0; border: 0; }
.relationship-summary-grid .relationship-summary-card { min-height: 0; }
.relationship-summary-card > b.crm-section-link { font-size: var(--ds-font-size-13); }
.relationship-table .relationship-client strong { font-size: var(--ds-font-size-14); font-weight: 600; }
.segment-workspace { grid-template-columns: minmax(0, 1fr); }
.segment-info[hidden] { display: none; }
.segment-info > .icon-button { margin-inline-start: auto; }
.overview-page[data-overview-route="clients-overview"] .crm-panel .panel-header h2 { font-size: var(--ds-font-size-16); font-weight: 600; }
.overview-page[data-overview-route="clients-overview"] .crm-panel .panel-header { gap: var(--ds-space-8); }
.overview-page[data-overview-route="clients-overview"] .fo-period select { min-height: 35px; }
.crm-kpi-link { color: inherit; text-decoration: none; cursor: pointer; }
.overview-page .crm-metrics-six > .crm-kpi-link:is(:hover, :focus-visible) { border-color: var(--brand-primary); }
.crm-kpi-bars { display: flex; align-items: end; gap: 3px; height: 30px; margin-top: var(--ds-space-8); }
.crm-kpi-bars > i { flex: 1; height: var(--crm-bar); border-radius: 2px 2px 0 0; background: #dfe7ec; }
.crm-kpi-bars > i:last-child { background: var(--icon-ink); }
.crm-kpi-bars.crm-kpi-decline > i:last-child { background: var(--ds-critical-ink); }
.crm-origin-hint { margin: 0; padding: 0 var(--ds-space-20) var(--ds-space-16); color: #60758a; }
.crm-contact-client > div :is(strong, small) { display: block; overflow: visible; white-space: normal; overflow-wrap: anywhere; }
.crm-bottom-insights .crm-insight-panel strong { color: #0b2d4d; }
.crm-bottom-insights .crm-insight-panel span { color: #60758a; }
.crm-contact-client > b { text-align: right; overflow-wrap: anywhere; }
.pet-tutor-picker label { display: grid; gap: var(--ds-space-8); }

@media (max-width: 600px) {
  .crm-list-controls { grid-template-columns: minmax(0, 1fr) auto; }
  .crm-list-controls .client-search-field { grid-column: 1 / -1; }
  .crm-list-controls .client-advanced-filter, .crm-list-controls .service-order-field { grid-column: auto; grid-row: auto; }
}

/* Equipe */
.employee-list-controls.crm-list-controls { grid-template-columns: minmax(0, 1fr) minmax(180px, .55fr) auto; }
.employee-list-panel .employee-list-table { width: 100%; min-width: 0; table-layout: fixed; }
.employee-list-panel .employee-list-table :is(th, td) { overflow-wrap: anywhere; }
.employee-list-panel .employee-list-table :is(th, td):first-child { width: 28%; }
.employee-list-panel .employee-list-table :is(th, td):last-child { width: 156px; }
.employee-list-panel .employee-list-table .primary-cell { min-width: 0; }
.employee-list-panel .cell-actions { flex-wrap: nowrap; }
.employee-list-panel .employee-services-cell { max-width: 100%; }

.employee-action-popover {
  position: fixed; inset: auto; margin: 0; min-width: 196px; max-width: calc(100vw - 16px);
  padding: var(--ds-space-4); border: 1px solid var(--line); border-radius: var(--ds-radius-12);
  background: var(--visual-color-surface); box-shadow: var(--shadow);
}
.employee-action-popover > button {
  display: block; width: 100%; border: 0; border-radius: var(--ds-radius-8); background: transparent;
  padding: var(--ds-space-8) var(--ds-space-12); text-align: left; font-size: var(--ds-font-size-13); cursor: pointer;
}
.employee-action-popover > button:hover { background: var(--content-subtle); }
.employee-action-popover > button.employee-menu-danger { color: var(--ds-critical-ink); background: transparent; }

.employee-center-card > .employee-panel-header {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: start;
  gap: var(--ds-space-12); margin-bottom: var(--ds-space-16);
}
.employee-panel-header h2, .employee-shared-form .employee-form-section h3,
.overview-page[data-overview-route="employees-overview"] .team-overview-card h2 {
  font: 600 var(--ds-font-size-16)/1.3 "Montserrat";
}
.employee-panel-header p, .employee-panel-facts dt, .employee-center-facts small,
.employee-history :is(small, time), .employee-performance-summary span, .employee-document-empty {
  font-size: var(--ds-font-size-12); color: #60758a;
}
.employee-panel-header > .button-compact {
  min-height: 32px !important; height: 32px !important; padding-inline: var(--ds-space-8);
  font-size: var(--ds-font-size-13) !important;
}
.employee-panel-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: var(--ds-space-12); margin: var(--ds-space-12) 0; }
.employee-panel-facts dd, .employee-center-facts strong, .employee-history strong, .employee-schedule-list strong {
  margin: var(--ds-space-4) 0 0; font-size: var(--ds-font-size-14); font-weight: 600;
}
.employee-history > div { grid-template-columns: 40px minmax(0, 1fr) auto; gap: var(--ds-space-12); }
.employee-history time { white-space: nowrap; }
.employee-center-grid > article:nth-child(5) { grid-column: auto; }
.employee-center-title, .employee-center-actions { flex-wrap: wrap; }
.employee-center-profile > div { min-width: 0; overflow-wrap: anywhere; }
.employee-center-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.employee-shared-form .employee-form-section header { display: flex; align-items: center; gap: var(--ds-space-12); }
.employee-shared-form .employee-function-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.employee-shared-form .employee-function-fields > label:nth-child(-n+2) { white-space: nowrap; }
.employee-shared-form .employee-function-fields > label:nth-child(-n+2) input { height: 40px; }
.employee-shared-form .employee-form-section:first-child .employee-create-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.employee-shared-form .employee-form-section:first-child .employee-upload { grid-column: 1 / -1; grid-row: auto; }
.employee-shared-form .employee-vet-checkbox { display: flex; align-items: center; gap: var(--ds-space-8); }
.employee-shared-form .employee-vet-checkbox input[type="checkbox"] { width: auto; flex: none; margin: 0; }
.employee-shared-form [data-employee-crmv][hidden] { display: none; }
.employee-password > div { display: flex; flex-wrap: wrap; gap: var(--ds-space-8); margin-top: var(--ds-space-4); }
.employee-user-association { display: grid; align-content: start; gap: var(--ds-space-4); min-width: 0; overflow-wrap: anywhere; }
.employee-user-association .text-button { justify-self: start; }
.employee-account-details { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--ds-space-8); }
.employee-account-details dd { margin: 0; overflow-wrap: anywhere; }

.overview-page[data-overview-route="employees-overview"] .team-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.overview-page .team-kpis > .team-kpi-card {
  display: grid; align-content: start; gap: var(--ds-space-8); min-width: 0; margin: 0;
  padding: var(--ds-space-16); border: 1px solid var(--line); border-radius: var(--ds-radius-16);
  background: var(--visual-color-surface); color: var(--visual-color-text); text-decoration: none;
}
.overview-page .team-kpis > .team-kpi-card:hover { border-color: var(--brand-primary); }
.overview-page .team-kpi-card > .ui-icon-tile { display: inline-grid; }
.team-performance-table th { white-space: nowrap; overflow-wrap: normal; }
.team-performance-table th:nth-child(1) { width: 36%; }
.team-performance-table th:nth-child(2), .team-performance-table th:nth-child(3) { width: 13%; }
.team-performance-table th:nth-child(4) { width: 17%; }
.team-performance-table th:nth-child(5) { width: 21%; }
.team-performance-table :is(th, td) { padding-inline: var(--ds-space-4); }
.team-professional-cell .pet-avatar { font-size: var(--ds-font-size-12); }
.team-overview-bottom .team-card-link { margin-top: var(--ds-space-12); }

@media (768px <= width < 1600px) {
  .employee-center-grid, .employee-center-bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .employee-center-grid > article:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .employee-list-panel .employee-list-table :is(th, td):first-child { width: 33%; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .overview-page[data-overview-route="employees-overview"] .team-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .team-kpis > .team-kpi-card { grid-column: span 2; }
  .team-kpis > .team-kpi-card:nth-last-child(-n+2) { grid-column: span 3; }
  .employee-list-panel .employee-list-table :is(th, td):is(:first-child, :last-child) { width: 100%; }
  .team-performance-table.responsive-table td:is(:nth-child(4), :nth-child(5)) { display: block; }
}
@media (max-width: 820px) {
  .employee-center-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .employee-center-card > .employee-panel-header { grid-template-columns: 40px minmax(0, 1fr); }
  .employee-panel-header > .button { grid-column: 2; justify-self: start; }
}
@media (max-width: 767px) {
  .employee-center-grid, .employee-center-bottom,
  .overview-page[data-overview-route="employees-overview"] .team-kpis { grid-template-columns: minmax(0, 1fr); }
  .employee-list-controls.crm-list-controls { grid-template-columns: minmax(0, 1fr) auto; }
  .employee-list-controls.crm-list-controls > * { grid-column: auto; grid-row: auto; }
  .employee-list-controls.crm-list-controls .client-search-field { grid-column: 1 / -1; }
}

.workspace-plan-link {
  padding: 0; border: 0; background: transparent; color: var(--visual-palette-89a7b9);
  font-size: var(--ds-font-size-12); cursor: pointer; text-decoration: underline;
}
.workspace-card .workspace-switch { flex: none; color: var(--visual-color-surface); }
.workspace-card[data-action] { cursor: pointer; }
.topbar-workspace { display: none; }
.workspace-unit-list { max-height: min(50vh, 320px); overflow-y: auto; }
.workspace-unit-list button, .workspace-menu-links :is(a, button) {
  display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-12);
  width: 100%; padding: var(--ds-space-8) var(--ds-space-12); border: 0; border-radius: var(--ds-radius-8);
  background: transparent; color: var(--ink); font-size: var(--ds-font-size-13); text-align: left; text-decoration: none; cursor: pointer;
}
.workspace-unit-list button:not(:disabled):hover, .workspace-menu-links :is(a, button):hover { background: var(--content-subtle); }
.workspace-unit-list button[aria-current] { font-weight: 600; opacity: 1; cursor: default; }
.workspace-menu-links { margin-top: var(--ds-space-4); padding-top: var(--ds-space-4); border-top: 1px solid var(--line); }
.unit-in-use { background: var(--content-subtle); color: var(--ink); white-space: nowrap; }
.unit-row-actions .button-compact {
  height: 32px !important; min-height: 32px !important; padding: 0 var(--ds-space-8);
  font-size: var(--ds-font-size-13) !important;
}
.unit-copy { margin-top: var(--ds-space-16); }
.unit-copy > fieldset { margin: var(--ds-space-8) 0 0; padding: var(--ds-space-12); border: 1px solid var(--line); border-radius: var(--ds-radius-12); }
.unit-copy label { display: flex; align-items: center; gap: var(--ds-space-8); margin-block: var(--ds-space-4); }
.unit-copy label input { width: auto; min-height: auto; }
.unit-copy p { font-size: var(--ds-font-size-12); }
@media (max-width: 1279px) {
  .topbar-workspace {
    display: inline-flex; align-items: center; gap: var(--ds-space-4); min-width: 0; max-width: min(32vw, 236px);
    padding: var(--ds-space-4) var(--ds-space-8); border: 1px solid var(--line); border-radius: var(--ds-radius-12);
    background: var(--visual-color-surface); color: var(--ink); font-size: var(--ds-font-size-13); font-weight: 600; cursor: pointer;
  }
  .topbar-workspace > span { min-width: 0; text-align: left; }
  .topbar-workspace strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: inherit; }
  .topbar-workspace small { display: block; font-size: var(--ds-font-size-11); font-weight: 400; color: var(--muted); }
  .topbar-workspace .ui-icon { width: 16px; height: 16px; flex: none; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .sidebar:not(.open) .workspace-card { position: relative; }
  .sidebar:not(.open) .workspace-card .workspace-switch {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent;
  }
  .sidebar:not(.open) .workspace-switch > .ui-icon { visibility: hidden; }
}
@media (max-width: 767px) {
  .topbar-workspace { order: 2; }
}

.client-list-pagination { display: flex; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--ds-space-12); }
.list-pagination-right { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: var(--ds-space-16); margin-left: auto; }
.list-pagination-right > label { display: flex; align-items: center; gap: var(--ds-space-8); font-size: var(--ds-font-size-12); white-space: nowrap; }
.list-pagination-right select { width: auto; min-height: 32px; height: 32px; padding-block: 0; }
.heading-actions :is(button, a) { white-space: nowrap; }
.supplier-categories > span:nth-child(n) { background: var(--content-subtle); color: var(--brand-dark); font-weight: 500; }
.movement-type { font-weight: 600; }
.supplier-filter-panel { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
:is(.supplier-list-controls, .product-list-controls) { align-items: end; }
:is(.supplier-list-controls, .product-list-controls) :is(input, select, .button) { height: 40px; min-height: 40px; font-size: var(--ds-font-size-13); font-weight: 400; }
:is(.supplier-list-controls, .product-list-controls) .client-search-field { height: 40px; min-height: 40px; }
:is(.supplier-list-controls, .product-list-controls) .client-search-field input { height: 38px; min-height: 38px; }
.inventory-warning { color: var(--ds-warning-ink); }
.inventory-critical { color: var(--ds-critical-ink); }
.inventory-metric > div { min-width: 0; }
.inventory-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.inventory-card > header h2, .stock-product-section h3 { font: 600 var(--ds-font-size-16)/1.35 "Montserrat"; margin: 0; }
.inventory-card .crm-section-link, .inventory-metric .crm-section-link { font-size: var(--ds-font-size-13); font-weight: 600; color: #0d7a6e; white-space: nowrap; }
.stock-movement-controls, .stock-movement-filters, .count-controls {
  display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: var(--ds-space-12); align-items: end; margin-block: var(--ds-space-16);
}
.stock-movement-controls :is(label, input, select), .stock-movement-filters :is(label, select), .count-controls :is(label, input, select) { min-width: 0; width: 100%; }
.stock-movement-controls :is(input, select, button), .stock-movement-filters select, .count-controls :is(input, select) {
  min-height: 40px; height: 40px; font-size: var(--ds-font-size-13); font-weight: 400;
}
.stock-movement-controls .client-search-field { height: 40px; min-height: 40px; }
.stock-movement-controls .client-search-field input { height: 38px; min-height: 38px; }
.stock-movement-filters { padding: var(--ds-space-16); border: 1px solid var(--line); border-radius: var(--ds-radius-12); }
.stock-movement-filters > button { justify-self: start; }
.stock-movements-table .movement-user .stock-team-avatar { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: var(--ds-radius-12); background: var(--ds-equipe-surface); color: var(--ds-equipe-ink); font-size: var(--ds-font-size-12); }
.stock-movements-table .movement-user { display: flex; align-items: center; gap: var(--ds-space-8); min-width: 0; }
.stock-movements-table :is(strong, small) { display: block; overflow-wrap: anywhere; }
.stock-movements-table small { font-size: var(--ds-font-size-12); color: var(--muted); }
.stock-movements-table .movement-type { white-space: normal; }
.stock-overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ds-space-16); align-items: start; }
.stock-overview-grid > article { min-width: 0; }
.stock-overview-grid > article > :not(header) { margin-inline: var(--ds-space-16); }
.inventory-overview-footer strong { font-size: var(--ds-font-size-16); font-weight: 600; }
.stock-summary-row, .stock-use-item, .stock-attention-item { display: flex; flex-direction: column; align-items: flex-start; gap: var(--ds-space-8); padding-block: var(--ds-space-12); border-bottom: 1px solid var(--line); }
.stock-summary-row strong, .stock-use-item strong, .stock-attention-item strong { font-size: var(--ds-font-size-14); overflow-wrap: anywhere; }
.stock-summary-row span, .stock-use-item span, .stock-attention-item span { font-size: var(--ds-font-size-12); color: var(--muted); }
.stock-attention-item span > :is(strong, small) { display: block; }
.stock-attention-item small { font-size: var(--ds-font-size-12); }
.stock-use-item > div { display: flex; flex-wrap: wrap; gap: var(--ds-space-8); }
.stock-use-item .button-compact, .count-list-table .button-compact { min-height: 32px; padding-block: var(--ds-space-4); font-size: var(--ds-font-size-13); }
.modal-card.stock-product-modal-card { display: flex; flex-direction: column; max-height: calc(100dvh - 32px); overflow: hidden; }
.stock-product-modal-card #modal-content { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.stock-product-form { display: flex; flex-direction: column; min-height: 0; }
.stock-product-sections { min-height: 0; overflow-y: auto; padding-right: var(--ds-space-8); }
.stock-product-section { padding-block: var(--ds-space-12); border-top: 1px solid var(--line); }
.stock-product-section h3 { margin-bottom: var(--ds-space-12); }
.stock-product-form .modal-actions { flex: none; background: var(--visual-color-surface); padding-top: var(--ds-space-12); }
.stock-product-section .form-grid { margin: 0; }
.stock-product-section .form-grid > * { min-width: 0; }
.stock-product-section input, .stock-product-section select { min-height: 40px; }
.stock-product-section p { font-size: var(--ds-font-size-12); }
.stock-supplier-chips { display: flex; flex-wrap: wrap; gap: var(--ds-space-8); margin-top: var(--ds-space-8); }
.stock-supplier-chip { max-width: 100%; padding: var(--ds-space-4) var(--ds-space-8); border: 1px solid var(--line); border-radius: var(--ds-radius-12); background: var(--content-subtle); color: var(--brand-dark); font-size: var(--ds-font-size-12); cursor: pointer; overflow-wrap: anywhere; }
.stock-supplier-results { max-height: 160px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--ds-radius-8); }
.stock-supplier-results button { display: block; width: 100%; border: 0; background: transparent; padding: var(--ds-space-8); text-align: left; color: var(--ink); font-size: var(--ds-font-size-13); cursor: pointer; }
.stock-supplier-results button:hover { background: var(--content-subtle); }
.inventory-checkbox, .count-product-choices label { display: flex; align-items: center; gap: var(--ds-space-8); }
.inventory-checkbox input, .count-product-choices input { width: auto; min-height: auto; }
.count-product-choices { max-height: 180px; overflow-y: auto; }
.count-list-table small { display: block; font-size: var(--ds-font-size-12); }
.count-controls { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.count-controls > strong { grid-column: 1 / -1; font-size: var(--ds-font-size-13); }
.count-table input { min-width: 0; width: 100%; height: 40px; min-height: 40px; }
.count-input { display: flex; gap: var(--ds-space-8); align-items: center; }
.count-input small { flex: none; font-size: var(--ds-font-size-12); }
.count-review-actions { display: flex; justify-content: flex-end; gap: var(--ds-space-12); margin-top: var(--ds-space-16); }
.count-table small { font-size: var(--ds-font-size-12); }
@media (max-width: 1599px) {
  .stock-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stock-overview-grid > article:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1600px) {
  .stock-overview-grid > article:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
}
@media (max-width: 1279px) {
  .stock-movements-table :is(th, td):is(:nth-child(5), :nth-child(6)) { display: none; }
  .stock-movement-controls, .stock-movement-filters, .count-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stock-movement-controls .client-search-field { grid-column: 1 / -1; }
  table.supplier-table, table.stock-movements-table, table.product-table, table.count-table, table.count-list-table, table.count-review-table { min-width: 0; width: 100%; table-layout: fixed; }
  .supplier-table :is(th, td):last-child { width: 220px; }
  .supplier-table :is(th, td):first-child { width: 26%; }
  .stock-movements-table :is(th, td):last-child { width: 64px; position: sticky; right: 0; background: var(--visual-color-surface); }
  .product-table :is(th, td):last-child { width: 100px; }
}
@media (max-width: 1023px) {
  .inventory-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stock-overview-grid { grid-template-columns: minmax(0, 1fr); }
  .stock-movements-table.responsive-table td:last-child, .count-list-table.responsive-table td:last-child { position: relative; width: 100%; }
  table.product-table td:last-child, .supplier-table.responsive-table :is(td:first-child, td:last-child) { width: 100%; }
  .stock-movements-table.responsive-table td:is(:nth-child(5), :nth-child(6)) { display: none; }
}
.schedule-panel .calendar-nav :is(.button, .icon-button),
.schedule-panel .calendar-view-toggle { height: 36px !important; min-height: 36px !important; box-sizing: border-box; }
.schedule-panel .calendar-nav .button { padding-block: 0; }
.schedule-panel .calendar-nav .icon-button { width: 36px !important; }
.schedule-panel .calendar-view-toggle { padding: 0; align-items: stretch; }
.schedule-panel .calendar-view-toggle button { font-size: var(--ds-font-size-13); font-weight: 600; padding-block: 0; }
.schedule-panel .agenda-legend { align-items: flex-end; }
.schedule-panel .agenda-legend-item { min-height: 40px; }
.schedule-panel .schedule-filters { align-items: start; }
.schedule-panel .schedule-filters > label,
.schedule-panel .schedule-multiselect > span { color: #60758A; font-size: var(--ds-font-size-12); font-weight: 600; }
.schedule-panel .schedule-filters #schedule-date,
.schedule-panel .schedule-multiselect summary { height: 40px; min-height: 40px; box-sizing: border-box; padding: 0 var(--ds-space-12); color: #0B2D4D; font-size: var(--ds-font-size-13); font-weight: 400; }
.schedule-panel :is(.day-side-title strong, .month-calendar-sidebar h3, .appointment-list-sidebar h3, .day-calendar-head strong, #schedule-title) { font-size: var(--ds-font-size-16); font-weight: 600; }
.schedule-panel .day-side-title { gap: var(--ds-space-12); }
.schedule-panel .day-side-title > i { width: 40px; height: 40px; flex: 0 0 40px; border-radius: var(--ds-radius-12); color: var(--ds-agendamento-ink); background: var(--ds-agendamento-surface); }
.schedule-panel .day-side-title > i:has(.icon-kind-chart) { color: var(--ds-geral-ink); background: var(--ds-geral-surface); }
.schedule-panel .day-side-title > i .ui-icon { width: 20px; height: 20px; }
.schedule-panel .day-appointment-copy strong { color: #0B2D4D; font-size: var(--ds-font-size-13); font-weight: 600; }
.schedule-panel :is(.day-appointment-copy small, .day-appointment-timing strong, .day-appointment-timing small, .day-appointment-service-count, .day-service-name strong, .day-service-name small, .day-service-employee) { color: #60758A; opacity: 1; font-size: var(--ds-font-size-12); font-weight: 400; }
.schedule-panel .day-appointment-status { display: inline-flex; justify-self: start; padding: var(--ds-space-4) var(--ds-space-8); border-radius: var(--ds-radius-12); font-size: var(--ds-font-size-12); font-weight: 600; }
.schedule-panel .week-view .calendar-pill.week-appointment-card > .week-card-main { display: block !important; height: auto; width: 100%; min-width: 0; }
.schedule-panel .week-view .week-card-info { width: 100%; min-width: 0; }
.schedule-panel .week-view .week-card-info strong { color: #0B2D4D; font-size: var(--ds-font-size-13); font-weight: 600; line-height: 1.3; }
.schedule-panel .week-view .week-card-info small { color: #60758A; font-size: var(--ds-font-size-11); font-weight: 400; line-height: 1.4; opacity: 1; }
.schedule-panel .week-view .week-appointment-card { height: auto; min-height: 58px; }
.schedule-panel .day-availability-scope { margin: 0 0 var(--ds-space-12); color: #60758A; font-size: var(--ds-font-size-12); }
.schedule-panel .day-summary-chart { display: grid; justify-items: center; gap: var(--ds-space-8); }
.schedule-panel .day-summary-chart > small { color: #60758A; font-size: var(--ds-font-size-12); }
.treatment-management-actions .treatment-action-row { display: flex; flex-wrap: wrap; }
.treatment-management-actions .button { height: 40px !important; min-height: 40px !important; font-size: var(--ds-font-size-13) !important; }
.treatment-management-actions .treatment-primary-action { width: 100%; flex-basis: 100%; }
.treatment-management-actions > .treatment-primary-action { margin-block: var(--ds-space-12); }
.agenda-danger-outline.button { color: var(--ds-critical-ink) !important; border: 1px solid var(--ds-critical-ink) !important; background: transparent !important; box-shadow: none; }
.agenda-danger-outline.button:hover:not(:disabled) { color: var(--ds-critical-ink) !important; background: var(--ds-critical-surface) !important; }
.agenda-danger-outline.button .ui-icon { color: var(--ds-critical-ink) !important; }
#appointment-form .appointment-new-client-link { display: inline-flex; align-items: center; gap: var(--ds-space-8); margin-top: 0; color: #0D7A6E; font-size: var(--ds-font-size-13); font-weight: 600; }
#appointment-form .appointment-client-field { row-gap: var(--ds-space-8); }
#appointment-form .appointment-new-client-link .ui-icon { width: 16px !important; height: 16px !important; flex-basis: 16px; }
#appointment-form .service-combo-field legend { color: #445149; font-size: var(--ds-font-size-13); font-weight: 600; }
.appointment-summary-panel h2 { font-weight: 600; }
.appointment-summary-person:has(#appointment-summary-category) > .metric-icon { color: var(--ds-servico-ink); background: var(--ds-servico-surface); }
.overview-page[data-overview-route="appointments-overview"] .agenda-overview-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.overview-page[data-overview-route="appointments-overview"] .agenda-metric-delta { display: block; font-size: var(--ds-font-size-11); font-weight: 600; }
.overview-page[data-overview-route="appointments-overview"] .agenda-metric-delta.positive { color: var(--ds-sucesso-ink); }
.overview-page[data-overview-route="appointments-overview"] .agenda-metric-delta.negative { color: var(--ds-critical-ink); }
.overview-page[data-overview-route="appointments-overview"] .agenda-metric-delta.neutral { color: #60758A; }
.overview-page[data-overview-route="appointments-overview"] :is(.agenda-management-grid .panel-header a, .agenda-insight-panel a) { color: #0D7A6E; font-size: var(--ds-font-size-13); font-weight: 600; white-space: nowrap; }
.overview-page[data-overview-route="appointments-overview"] :is(.agenda-chart-grid, .agenda-management-grid) .panel-header h2 { font-weight: 600; }
.overview-page[data-overview-route="appointments-overview"] .agenda-free-days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-content: start; }
.overview-page[data-overview-route="appointments-overview"] .agenda-free-days a { min-width: 0; }
.overview-page[data-overview-route="appointments-overview"] .agenda-pending-list button:disabled { cursor: default; opacity: 1; }
.overview-page[data-overview-route="appointments-overview"] .agenda-pending-list i:has(.icon-concept-agendamento) { color: var(--ds-agendamento-ink); background: var(--ds-agendamento-surface); }
.overview-page[data-overview-route="appointments-overview"] .agenda-services-chart .agenda-horizontal-row { grid-template-columns: minmax(120px, 1fr) minmax(20px, .6fr) 34px; }
.overview-page[data-overview-route="appointments-overview"] .agenda-services-chart .agenda-horizontal-row > span { white-space: normal; overflow-wrap: anywhere; font-weight: 600; }
@media (max-width: 1280px) and (min-width: 821px) {
  .overview-page[data-overview-route="appointments-overview"] .agenda-overview-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .overview-page[data-overview-route="appointments-overview"] .agenda-overview-metrics > article { grid-column: span 2; }
  .overview-page[data-overview-route="appointments-overview"] .agenda-overview-metrics > article:nth-last-child(-n+2) { grid-column: span 3; }
}
@media (max-width: 820px) {
  .overview-page[data-overview-route="appointments-overview"] .agenda-overview-metrics { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1600px) {
  .overview-page[data-overview-route="appointments-overview"] .agenda-management-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .overview-page[data-overview-route="appointments-overview"] .agenda-management-grid > :last-child { grid-column: 1 / -1; }
  .overview-page[data-overview-route="appointments-overview"] .agenda-free-days { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
.schedule-panel .visual-filter-disclosure > summary::after { content: none; }
.schedule-panel .visual-filter-disclosure > summary .ui-icon { width: 16px; height: 16px; margin-left: var(--ds-space-8); }
.schedule-panel .visual-filter-disclosure[open] > summary .ui-icon { transform: rotate(180deg); }
.overview-page[data-overview-route="appointments-overview"] .agenda-occupancy-card { padding-right: var(--ds-space-20) !important; grid-template-columns: 40px minmax(0, 1fr); }
.overview-page[data-overview-route="appointments-overview"] .agenda-ring { position: relative; top: auto; right: auto; transform: none; grid-column: 1 / -1; justify-self: center; }
.overview-page[data-overview-route="appointments-overview"] .agenda-pending-list button { grid-template-columns: 40px minmax(0, 1fr) 18px; }
.overview-page[data-overview-route="appointments-overview"] .agenda-pending-list i { width: 40px; height: 40px; }
.overview-page[data-overview-route="appointments-overview"] .agenda-pending-list i:has(.icon-concept-agendamento) { background: var(--ds-agendamento-surface) !important; }
.heading-actions > .agenda-refresh-button { display: inline-flex; flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 1279px) {
  .heading-actions > .agenda-refresh-button { width: 44px; min-width: 44px; flex: 0 0 44px; padding-inline: 0; }
  .agenda-refresh-button .agenda-refresh-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 820px) {
  .schedule-panel .day-appointment-status { grid-column: 2 / -1; grid-row: 3; }
}
