/* RIFAPP · interface de demonstração. Sem fontes ou dependências remotas. */
:root {
  --pine: #0f665b;
  --pine-dark: #104e45;
  --pine-light: #e6f1ed;
  --ink: #20342e;
  --text: #33473f;
  --muted: #6e7d70;
  --canvas: #f6f7f3;
  --paper: #ffffff;
  --border: #e5e9e2;
  --orange: #c57b45;
  --orange-light: #faf0e5;
  --radius: 14px;
  --shadow: 0 3px 16px rgb(37 65 49 / 3%);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  color: var(--text);
  font-size: 14px;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .5; }
button, a, input, select, textarea { outline-offset: 4px; }
:focus-visible { outline: 3px solid #91bdab; }
a { color: var(--pine); text-decoration: none; }
a:hover { color: var(--pine-dark); }
svg { flex: 0 0 auto; vertical-align: middle; }
button svg, .btn svg, .nav-item svg, .icon-button svg { width: 18px; height: 18px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); }
button { border: 0; }
img { max-width: 100%; }
strong { font-weight: 650; }
::selection { background: #cce4d7; color: #154b3c; }
[hidden] { display: none !important; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.sidebar { background: #fefefd; border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 31px 18px 20px; position: fixed; inset: 0 auto 0 0; width: 236px; z-index: 30; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 13px; color: var(--pine); }
.brand-mark { display: grid; place-items: center; width: 36px; height: 39px; color: var(--pine); }
.brand-mark svg { width: 34px; height: 34px; }
.brand-name { color: var(--pine-dark); font-size: 27px; font-weight: 760; line-height: 1; letter-spacing: -1.3px; }
.brand-name span { font-weight: 400; font-size: 20px; letter-spacing: -.6px; }
.brand-caption { color: #6f7d70; font-size: 9px; font-weight: 650; letter-spacing: 1.65px; text-transform: uppercase; margin-top: 6px; }
.workspace-card { display: flex; align-items: center; gap: 10px; background: #f5f7f2; border: 1px solid #e9ece5; border-radius: 10px; margin: 32px 0 26px; padding: 12px 10px; }
.workspace-avatar, .user-avatar, .avatar, .avatar-sm, .detail-avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; background: #e8eee3; color: #536b45; font-weight: 650; }
.workspace-avatar { width: 33px; height: 33px; border-radius: 8px; background: white; border: 1px solid #e2e8dc; font-size: 12px; }
.workspace-info { flex: 1; min-width: 0; font-size: 12px; font-weight: 600; }
.workspace-info small { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; font-weight: 400; }
.workspace-card > svg { width: 13px; color: #8d988e; }
.nav-section-label { padding: 0 14px; margin: 0 0 11px; color: #78836f; font-size: 9px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 10px 13px; border-radius: 8px; color: #69796b; font-size: 12px; font-weight: 500; width: 100%; background: transparent; text-align: left; margin: 3px 0; transition: background .15s, color .15s; }
.nav-item:hover { background: #f2f5ef; color: var(--pine); }
.nav-item.active { background: #eaf2e9; color: var(--pine); font-weight: 650; }
.nav-item.active::after { content: ""; width: 5px; height: 5px; border-radius: 50%; margin-left: auto; background: #48856c; }
.nav-item svg { color: #8c998e; stroke-width: 1.6; }
.nav-item.active svg { color: var(--pine); }
.sidebar-bottom { margin-top: auto; padding-top: 50px; }
.sidebar-bottom .nav-item { margin-bottom: 16px; }
.sidebar-tip { border: 1px solid #e2e8dc; background: #f5f7f1; border-radius: 11px; padding: 15px 13px; font-size: 11px; line-height: 1.6; color: #89947d; margin-bottom: 23px; }
.sidebar-tip strong { display: block; color: #566d47; margin-bottom: 5px; font-size: 12px; }
.sidebar-tip svg { width: 19px; height: 19px; color: #6b8e51; margin-bottom: 9px; }
.sidebar-user { display: flex; gap: 10px; align-items: center; padding: 18px 8px 0; border-top: 1px solid var(--border); }
.user-avatar { width: 34px; height: 34px; border-radius: 50%; background: #e8e1d5; color: #8b7153; font-size: 11px; }
.user-info { font-weight: 600; font-size: 12px; flex: 1; }
.user-info small { display: block; color: var(--muted); font-size: 10px; font-weight: 400; margin-top: 3px; }
.main-shell { grid-column: 2; min-width: 0; }
.topbar { height: 73px; background: rgb(255 255 255 / 70%); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 36px; }
.breadcrumb { display: flex; align-items: center; gap: 11px; font-size: 11px; color: #7b8877; }
.breadcrumb strong { color: #5b6c60; font-weight: 500; }
.breadcrumb svg { width: 14px; height: 14px; }
.topbar-actions { display: flex; gap: 15px; align-items: center; }
.connection-indicator { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: #6f8c72; background: #f0f5ee; border: 1px solid #e4ecde; padding: 6px 9px; border-radius: 6px; font-size: 10px; font-weight: 500; white-space: nowrap; }
.connection-indicator svg { width: 12px; height: 12px; }
.connection-indicator.offline { color: #a86a2d; background: #fff3df; border-color: #f0dfc3; }
.icon-button { width: 34px; height: 34px; display: inline-flex; justify-content: center; align-items: center; border-radius: 8px; background: transparent; color: #8a978b; }
.icon-button:hover { background: #edf1e9; color: var(--pine); }
.avatar { width: 30px; height: 30px; border-radius: 50%; font-size: 10px; }
.demo-banner { padding: 8px 36px; color: #728165; background: #f0f3e9; border-bottom: 1px solid #e6ebdf; font-size: 10px; letter-spacing: .15px; display: flex; align-items: center; gap: 7px; }
.demo-banner svg { width: 12px; height: 12px; }
.page-content { padding: 31px 36px 38px; max-width: 1800px; margin: 0 auto; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.eyebrow { color: #748565; font-size: 9px; font-weight: 650; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
h1 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.2; font-weight: 650; letter-spacing: -1.1px; }
.page-description { margin-top: 8px; font-size: 12px; line-height: 1.6; color: #74836c; }
.page-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 9px 14px; border-radius: 7px; font-size: 11px; font-weight: 600; line-height: 1.4; border: 1px solid transparent; transition: background .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn.primary { background: var(--pine); color: #fff; box-shadow: 0 2px 3px rgb(15 102 91 / 8%); }
.btn.primary:hover { background: var(--pine-dark); }
.btn.secondary { border-color: #dfe5da; background: #fff; color: #71806d; }
.btn.secondary:hover { border-color: #adc4b5; background: #fbfcf9; }
.btn.ghost { background: transparent; color: var(--pine); padding-left: 3px; padding-right: 3px; }
.btn.ghost:hover { color: #318776; }
.btn.danger { background: #f9ece8; color: #a64e3f; border-color: #efd9d2; }
.btn.small { min-height: 30px; padding: 6px 10px; font-size: 10px; }
.btn.small svg { width: 14px; height: 14px; }
.btn.full-width { width: 100%; }
.period-control { display: flex; align-items: center; gap: 7px; background: #fff; border: 1px solid #dfe5da; border-radius: 7px; padding: 9px 12px; font-size: 10px; color: #7f8a77; white-space: nowrap; }
.period-control svg { width: 14px; height: 14px; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.metric-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 20px 17px; box-shadow: var(--shadow); position: relative; min-width: 0; }
.metric-label { font-size: 11px; color: #708367; margin-bottom: 16px; display: flex; align-items: center; gap: 6px; }
.metric-icon { position: absolute; top: 17px; right: 17px; width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: #f2f5ed; color: #94a38a; }
.metric-icon svg { width: 14px; height: 14px; }
.metric-value { display: block; color: #294c40; font-size: clamp(21px, 1.9vw, 29px); font-weight: 620; letter-spacing: -.8px; line-height: 1.1; white-space: nowrap; }
.metric-value small { font-size: 15px; font-weight: 450; letter-spacing: 0; }
.metric-detail { display: flex; align-items: center; gap: 5px; margin-top: 13px; font-size: 9px; color: #78886c; line-height: 1.4; }
.metric-detail svg { width: 12px; height: 12px; }
.metric-trend { color: #709862; font-weight: 600; }
.metric-card.featured { background: #145d50; border-color: #145d50; overflow: hidden; }
.metric-card.featured::after { content: ""; position: absolute; right: -17px; bottom: -52px; width: 133px; height: 133px; border: 20px solid rgb(223 239 216 / 5%); border-radius: 50%; pointer-events: none; }
.metric-card.featured .metric-label { color: #b2cbbc; }
.metric-card.featured .metric-value { color: #fff; }
.metric-card.featured .metric-icon { color: #b7d0b8; background: rgb(233 246 229 / 10%); }
.metric-card.featured .metric-detail { color: #a5c3b0; }
.metric-card.featured .metric-trend { color: #d1df9e; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(250px, 1fr); gap: 22px; align-items: start; }
.main-column, .side-column { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; overflow: hidden; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 0; }
.card-title { font-size: 13px; font-weight: 650; letter-spacing: -.15px; color: #385445; }
.card-subtitle { font-size: 10px; color: #7b8b6b; margin-top: 5px; line-height: 1.5; }
.card-actions { display: flex; align-items: center; gap: 8px; }
.card-body { padding: 20px 22px; }
.card-footer { display: flex; justify-content: center; align-items: center; padding: 13px 20px; border-top: 1px solid #eef1e9; font-size: 10px; }
.card-footer .btn { min-height: 22px; padding-top: 1px; padding-bottom: 1px; }
.chart-wrap { padding: 12px 16px 10px 12px; min-height: 180px; }
.chart-wrap > svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-legend { display: flex; align-items: center; gap: 15px; font-size: 9px; color: #77896a; }
.chart-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pine); display: inline-block; }
.chart-summary { display: flex; gap: 28px; padding: 20px 22px 0; }
.chart-summary strong { display: block; font-size: 23px; color: #345543; font-weight: 600; letter-spacing: -.5px; }
.chart-summary span { display: block; margin-top: 5px; font-size: 10px; color: #7a8d6b; }
.chart-summary small { font-size: 10px; color: #8ba17c; }
.table-scroll { overflow-x: auto; overscroll-behavior-x: contain; width: 100%; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { color: #778b68; font-size: 9px; letter-spacing: .3px; text-transform: uppercase; font-weight: 500; text-align: left; padding: 14px 14px; border-bottom: 1px solid #eef1e8; }
td { padding: 15px 14px; font-size: 11px; border-bottom: 1px solid #f0f2ed; color: #687a63; }
tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child { padding-left: 22px; }
th:last-child, td:last-child { padding-right: 22px; }
tbody tr:hover { background: #fcfdf9; }
.route-table { margin-top: 14px; }
.person-cell { display: flex; align-items: center; gap: 9px; }
.avatar-sm { width: 32px; height: 32px; border-radius: 50%; font-size: 9px; background: #ecece0; color: #7a8162; }
.person-name { display: block; font-weight: 600; color: #566b51; font-size: 11px; }
.person-cell small { display: block; margin-top: 4px; color: #829474; font-size: 9px; }
.muted { color: var(--muted); }
.text-right { text-align: right; }
.amount { font-variant-numeric: tabular-nums; font-weight: 600; color: #486443; }
.progress-track { height: 5px; width: 100%; max-width: 76px; background: #eef1e9; border-radius: 5px; overflow: hidden; margin-top: 6px; }
.progress-fill { display: block; height: 100%; background: #8eaf72; border-radius: inherit; max-width: 100%; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; padding: 4px 7px; font-size: 9px; line-height: 1.3; font-weight: 550; white-space: nowrap; }
.badge.success { color: #678751; background: #edf4e7; }
.badge.warning { color: #b28348; background: #faf2e4; }
.badge.neutral { color: #8b9986; background: #f0f3ec; }
.badge.danger { color: #b5735a; background: #f9eee8; }
.dot { display: inline-block; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.visits-list { padding: 10px 22px 6px; }
.visit-item { position: relative; display: flex; gap: 12px; padding: 14px 0; align-items: flex-start; }
.visit-item + .visit-item { border-top: 1px solid #eff2e9; }
.visit-time { min-width: 32px; font-size: 10px; font-weight: 550; color: #7c926b; padding-top: 3px; font-variant-numeric: tabular-nums; }
.visit-line { width: 7px; height: 7px; border: 1.5px solid #8ca277; border-radius: 50%; margin-top: 6px; flex: 0 0 auto; }
.visit-line.done { background: #90ad77; }
.visit-info { min-width: 0; flex: 1; }
.visit-name { font-size: 11px; font-weight: 600; color: #586d4e; }
.visit-address { color: #829471; font-size: 9px; margin-top: 4px; line-height: 1.5; }
.visit-status { margin-top: 7px; }
.collection-callout { background: #f5f0e6; border: 1px solid #e9e0d2; border-radius: var(--radius); padding: 20px; }
.callout-icon { width: 31px; height: 31px; display: grid; place-items: center; background: #ece2cc; color: #a1864d; border-radius: 8px; margin-bottom: 12px; }
.callout-icon svg { width: 16px; height: 16px; }
.callout-title { font-size: 13px; color: #7e704f; font-weight: 650; }
.callout-copy { font-size: 10px; color: #8f8061; line-height: 1.7; margin: 7px 0 14px; }
.collection-callout .btn { color: #8b7957; border-color: #e4d9c4; background: #fbf8f1; font-size: 10px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin: 25px 0 15px; gap: 12px; }
.section-heading h2 { font-size: 15px; font-weight: 600; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 23px; flex-wrap: wrap; }
.search-field { display: flex; gap: 9px; align-items: center; background: white; border: 1px solid var(--border); border-radius: 8px; padding: 0 13px; min-width: 230px; max-width: 420px; flex: 1; }
.search-field svg { width: 16px; height: 16px; color: #99a48f; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; height: 40px; color: var(--text); font-size: 11px; }
.search-field:focus-within { outline: 2px solid #91bdab; outline-offset: 2px; }
input::placeholder, textarea::placeholder { color: #a8b09f; }
.filter-tabs { display: flex; align-items: center; gap: 3px; background: #eaf0e5; border-radius: 8px; padding: 4px; }
.filter-tab { border-radius: 5px; padding: 8px 12px; color: #718960; background: transparent; font-size: 10px; white-space: nowrap; }
.filter-tab.active { color: var(--pine); background: white; box-shadow: 0 1px 5px #dce4d6; font-weight: 600; }
.select-field { min-height: 38px; border: 1px solid #dfe5da; border-radius: 7px; background: white; color: #6f8064; padding: 8px 28px 8px 11px; font-size: 11px; max-width: 100%; }
.client-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.client-card { border: 1px solid var(--border); border-radius: var(--radius); background: white; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; overflow: hidden; }
.client-card:hover { transform: translateY(-2px); box-shadow: 0 6px 22px #2443250b; }
.client-card-top { display: flex; align-items: center; gap: 12px; padding: 20px 20px 0; }
.client-card-top .avatar-sm { width: 41px; height: 41px; font-size: 12px; }
.client-card-top h3 { font-size: 13px; font-weight: 600; }
.client-card-meta { font-size: 10px; line-height: 1.8; color: #758b65; padding: 12px 20px; }
.client-card-meta svg { width: 12px; height: 12px; margin-right: 4px; }
.client-amounts { display: flex; justify-content: space-between; padding: 14px 20px 18px; gap: 12px; }
.client-amounts span { display: block; font-size: 9px; color: #7f916c; margin-bottom: 5px; }
.client-amounts strong { font-size: 15px; color: #53714c; }
.client-card-footer { padding: 10px 20px; border-top: 1px solid #eef2e8; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.empty-state { text-align: center; padding: 55px 24px; color: #8a9781; background: white; border: 1px dashed #dce5d4; border-radius: 12px; grid-column: 1 / -1; }
.empty-state svg { width: 34px; height: 34px; margin-bottom: 12px; opacity: .6; }
.empty-state h3 { color: #657b5b; font-size: 16px; margin-bottom: 8px; }
.empty-state p { font-size: 12px; line-height: 1.7; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(250px, 1fr); gap: 22px; align-items: start; }
.detail-hero { display: flex; align-items: center; gap: 18px; padding: 25px; border-bottom: 1px solid var(--border); }
.detail-avatar { width: 65px; height: 65px; border-radius: 16px; font-size: 22px; }
.detail-hero h2 { font-size: 22px; letter-spacing: -.5px; font-weight: 600; }
.detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 11px; color: #758a64; margin-top: 8px; }
.detail-meta svg { width: 13px; height: 13px; }
.stat-row { display: flex; gap: 20px; padding: 22px 25px; flex-wrap: wrap; }
.stat-item { flex: 1; min-width: 90px; }
.stat-item span { display: block; font-size: 10px; color: #758a63; margin-bottom: 7px; }
.stat-item strong { font-size: 21px; color: #467040; font-weight: 600; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; border-bottom: 1px solid #eef1e8; }
.list-row:first-child { padding-top: 0; }
.list-row:last-child { border-bottom: 0; padding-bottom: 0; }
.list-row-main { min-width: 0; }
.list-row-main strong { display: block; color: #4f6847; font-size: 12px; }
.list-row-main p, .list-row-main small { display: block; font-size: 10px; color: #7b9067; margin-top: 5px; line-height: 1.5; }
.list-row-end { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; text-align: right; }
.form-layout { max-width: 920px; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(245px, 1fr); gap: 22px; align-items: start; }
.form-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 23px; min-width: 0; }
.form-card h2 { font-size: 15px; font-weight: 600; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-size: 11px; font-weight: 600; color: #67805b; margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #dfe6d7; background: #fdfefb; border-radius: 7px; font-size: 12px; color: #4c6641; min-height: 42px; }
.field textarea { resize: vertical; min-height: 82px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #80ad8e; }
.field-help { display: block; font-size: 10px; color: #7f946b; margin-top: 6px; line-height: 1.6; }
.product-picker { border: 1px solid #e6ebdf; border-radius: 9px; overflow: hidden; }
.product-row { display: flex; gap: 10px; align-items: center; padding: 14px 12px; border-bottom: 1px solid #edf1e7; }
.product-row:last-child { border-bottom: 0; }
.product-info { min-width: 0; flex: 1; }
.product-info strong { display: block; font-size: 11px; font-weight: 600; color: #57734b; }
.product-info small { display: block; font-size: 9px; margin-top: 4px; color: #81966c; line-height: 1.5; }
.product-price { font-size: 11px; color: #718a60; white-space: nowrap; }
.product-image { width: 35px; height: 35px; flex: 0 0 auto; border-radius: 8px; background: #f0f3e7; display: grid; place-items: center; color: #9eaf83; }
.product-image svg { width: 18px; height: 18px; }
.quantity-control { display: flex; border: 1px solid #dfe7d4; border-radius: 6px; overflow: hidden; background: white; flex: 0 0 auto; }
.quantity-control input { width: 32px; min-width: 0; padding: 0; text-align: center; border: 0; border-radius: 0; font-size: 11px; color: #526e43; appearance: textfield; -moz-appearance: textfield; min-height: 30px; }
.quantity-control input::-webkit-outer-spin-button, .quantity-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quantity-control button { width: 27px; background: #f6f9f1; color: #88a274; font-size: 16px; }
.quantity-control button:hover { background: #e9f1e0; color: #4d7842; }
.summary-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; font-size: 11px; padding: 10px 0; color: #7b9066; line-height: 1.5; }
.summary-row strong { color: #607f4b; white-space: nowrap; }
.summary-row.total { border-top: 1px solid #e9eedf; padding-top: 17px; margin-top: 8px; color: #476c37; font-weight: 600; }
.summary-row.total strong { font-size: 24px; letter-spacing: -.6px; color: var(--pine); }
.summary-row.balance { background: #faf3e5; padding: 12px; border-radius: 7px; color: #b79857; margin: 10px 0; }
.summary-row.balance strong { color: #a1803a; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 23px; flex-wrap: wrap; }
.form-actions .btn { min-height: 41px; }
.step-indicator { display: flex; gap: 15px; align-items: center; margin-bottom: 24px; }
.step { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #a6b393; }
.step span { width: 22px; height: 22px; border: 1px solid #dfe8d2; display: grid; place-items: center; border-radius: 50%; }
.step.active { color: var(--pine); font-weight: 600; }
.step.active span { color: white; border-color: var(--pine); background: var(--pine); }
.radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-option { flex: 1; min-width: 80px; padding: 10px 12px; border: 1px solid #e2e9d8; border-radius: 7px; font-size: 11px; display: flex; align-items: center; gap: 7px; color: #82956c; cursor: pointer; }
.radio-option:has(input:checked) { background: #f0f6e7; border-color: #a4bf86; color: #587843; }
.radio-option input { accent-color: var(--pine); }
.alert { font-size: 11px; line-height: 1.7; border-radius: 8px; padding: 13px 15px; display: flex; gap: 9px; align-items: flex-start; margin-bottom: 18px; }
.alert svg { width: 16px; height: 16px; margin-top: 1px; }
.alert.warning { background: #fcf3e5; border: 1px solid #efe0c4; color: #a28a54; }
.alert.success { background: #edf6e6; border: 1px solid #d9e8c9; color: #6f8d50; }
.alert.info { background: #eaf3ee; border: 1px solid #d5e6dd; color: #628a73; }
.route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.route-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.route-card-head { padding: 22px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.route-card-head h2 { font-size: 16px; font-weight: 600; }
.route-card-head p { font-size: 11px; color: #7c9066; margin-top: 5px; }
.route-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 0 22px 22px; }
.route-stats span { display: block; font-size: 10px; color: #7e9468; margin-bottom: 6px; }
.route-stats strong { font-size: 17px; color: #63834b; font-weight: 600; }
.route-card .card-footer { justify-content: space-between; }
.inventory-table td { padding-top: 17px; padding-bottom: 17px; }
.activity-list { padding: 2px 0; }
.activity-item { display: flex; gap: 13px; padding: 15px 0; border-bottom: 1px solid #eef1e7; }
.activity-item:last-child { border-bottom: 0; }
.activity-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #8ca574; background: #f0f5e8; flex: 0 0 auto; }
.activity-icon svg { width: 15px; height: 15px; }
.activity-content { flex: 1; min-width: 0; }
.activity-content strong { font-size: 11px; color: #64814e; }
.activity-content p { font-size: 10px; line-height: 1.6; color: #81966c; margin-top: 4px; }
.activity-time { font-size: 9px; color: #869c6f; white-space: nowrap; margin-top: 3px; }
.sync-panel { background: #f0f5e8; border: 1px solid #dce7cc; border-radius: 12px; padding: 22px; margin-bottom: 22px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.sync-panel h2 { font-size: 16px; color: #5c7c3f; font-weight: 600; }
.sync-panel p { margin-top: 6px; color: #8ba26d; font-size: 11px; line-height: 1.6; }
.sync-count { font-size: 34px; color: #6b9246; font-weight: 600; letter-spacing: -1px; }
.mobile-bottom-nav { display: none; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgb(19 44 34 / 38%); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade-in .15s ease; }
.modal { background: white; border: 1px solid #dfe7d5; border-radius: 16px; width: min(540px, 100%); max-height: calc(100dvh - 48px); overflow-y: auto; box-shadow: 0 24px 80px #10291638; animation: modal-in .2s ease; }
.modal-header { padding: 22px 24px 18px; border-bottom: 1px solid #edf1e7; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-header h2 { font-size: 18px; font-weight: 600; }
.modal-body { padding: 22px 24px; }
.modal-body > p { font-size: 12px; line-height: 1.8; color: #8b9f77; }
.modal-footer { padding: 17px 24px 23px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.toast { position: fixed; bottom: 26px; left: calc(50% + 118px); transform: translateX(-50%); padding: 14px 20px; color: #fff; background: #215b47; border: 1px solid #4c7c5c; box-shadow: 0 7px 30px #132f2733; border-radius: 10px; font-size: 12px; z-index: 150; max-width: min(520px, calc(100vw - 32px)); line-height: 1.6; display: flex; gap: 9px; align-items: center; animation: toast-in .2s ease; }
.toast.error { background: #944c38; border-color: #b77c5f; }
.toast svg { width: 17px; height: 17px; }
.field-home { max-width: 1040px; margin: 0 auto; }
.greeting { color: #8ca376; font-size: 12px; margin-bottom: 8px; }
.field-balance { position: relative; border-radius: 17px; background: #145d50; color: #c9d9bb; padding: 28px; overflow: hidden; margin-bottom: 22px; }
.field-balance::after { content: ""; position: absolute; right: -30px; top: -45px; width: 240px; height: 240px; border: 28px solid #ffffff06; border-radius: 50%; pointer-events: none; }
.field-balance > span { font-size: 11px; }
.field-balance > strong { display: block; color: white; font-size: 37px; font-weight: 600; margin: 10px 0 20px; letter-spacing: -.9px; }
.field-balance .stat-row { padding: 17px 0 0; border-top: 1px solid #ffffff1b; }
.field-balance .stat-item span { color: #afc69b; }
.field-balance .stat-item strong { color: #e4efcf; font-size: 19px; }
.quick-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 26px; }
.quick-action { padding: 19px 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; border: 1px solid #dfe7d4; border-radius: 11px; color: #6b8655; background: white; font-size: 11px; font-weight: 500; text-align: center; }
.quick-action svg { width: 21px; height: 21px; }
.quick-action:hover { border-color: #99b67d; background: #f7faf2; }
.form-error, .error-message { color: #b16d51; font-size: 11px; margin-top: 9px; line-height: 1.6; }
.mobile-only { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.subtle { color: #82976c; font-size: 10px; }
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.text-warning { color: #b78c50 !important; }
.text-success { color: #6a9450 !important; }
.w-full { width: 100%; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-in { from { opacity: 0; translate: 0 7px; } to { opacity: 1; translate: 0 0; } }
@media (min-width: 1550px) {
  .page-content { padding: 36px 48px 48px; }
  .topbar, .demo-banner { padding-left: 48px; padding-right: 48px; }
  .metric-card { padding: 24px; }
  .metric-value { font-size: 31px; }
  .dashboard-grid { grid-template-columns: minmax(0, 2fr) minmax(295px, 1fr); gap: 25px; }
}
@media (max-width: 1200px) {
  .page-content { padding: 27px 25px; }
  .topbar, .demo-banner { padding-left: 25px; padding-right: 25px; }
  .metrics-grid { gap: 12px; }
  .metric-card { padding: 18px 15px; }
  .metric-icon { right: 13px; top: 13px; width: 24px; height: 24px; }
  .metric-value { font-size: 24px; }
  .metric-label { font-size: 10px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr); gap: 17px; }
  .card-header, .card-body { padding-left: 18px; padding-right: 18px; }
  .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-legend { gap: 8px; font-size: 8px; }
}
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .sidebar { width: 210px; padding-left: 13px; padding-right: 13px; }
  .sidebar .brand { padding-left: 10px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-value { font-size: 28px; }
  .metric-label { font-size: 11px; margin-bottom: 14px; }
  .metric-icon { right: 18px; top: 17px; width: 28px; height: 28px; }
  .metric-card { padding: 19px 20px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .side-column { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: start; }
  .page-header { align-items: flex-start; }
  .page-header .page-actions { justify-content: flex-end; }
  .page-actions .period-control { display: none; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .form-layout { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
  .form-layout > .form-card:last-child { position: static; }
  .topbar-actions { gap: 8px; }
  .toast { left: calc(50% + 105px); }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .main-shell { min-width: 0; }
  .topbar { height: 59px; padding: 0 20px; }
  .breadcrumb { font-size: 10px; gap: 8px; }
  .topbar-actions { gap: 5px; }
  .connection-indicator { font-size: 9px; padding: 5px 7px; }
  .demo-banner { padding: 7px 20px; font-size: 9px; line-height: 1.5; }
  .page-content { padding: 24px 20px 110px; }
  .page-header { margin-bottom: 22px; gap: 14px; flex-wrap: wrap; }
  h1 { font-size: 29px; letter-spacing: -.9px; }
  .page-description { font-size: 11px; margin-top: 7px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.6px; }
  .page-actions { gap: 8px; }
  .btn { min-height: 40px; font-size: 11px; padding: 10px 13px; }
  .btn.small { min-height: 33px; }
  .btn.ghost { min-height: 32px; }
  .metrics-grid { gap: 12px; margin-bottom: 20px; }
  .metric-card { padding: 19px 16px 16px; border-radius: 12px; }
  .metric-value { font-size: 26px; }
  .metric-icon { width: 24px; height: 24px; right: 12px; top: 13px; }
  .metric-label { font-size: 10px; margin-bottom: 16px; }
  .metric-detail { font-size: 9px; }
  .main-column, .side-column { gap: 20px; }
  .dashboard-grid { gap: 20px; }
  .side-column { display: grid; grid-template-columns: 1fr 1fr; }
  .card-header { padding: 19px 18px 0; }
  .card-title { font-size: 13px; }
  .card-body { padding: 19px 18px; }
  .chart-wrap { padding-left: 7px; padding-right: 13px; }
  .chart-summary { padding-left: 18px; padding-right: 18px; }
  .chart-summary strong { font-size: 22px; }
  .route-table { min-width: 520px; }
  .mobile-bottom-nav { position: fixed; inset: auto 0 0; z-index: 40; display: flex; align-items: stretch; justify-content: space-around; background: rgb(255 255 255 / 97%); backdrop-filter: blur(12px); border-top: 1px solid #dfe6d6; padding: 8px 7px max(9px, env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px #395a2c04; }
  .mobile-bottom-nav a, .mobile-bottom-nav button { width: 20%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 5px 0; background: transparent; color: #9cae8b; font-size: 9px; line-height: 1.4; border-radius: 7px; }
  .mobile-bottom-nav a.active, .mobile-bottom-nav button.active { color: var(--pine); font-weight: 600; }
  .mobile-bottom-nav svg { width: 21px; height: 21px; }
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; }
  .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .client-card-top { padding: 16px 15px 0; gap: 9px; }
  .client-card-top h3 { font-size: 12px; }
  .client-card-top .avatar-sm { width: 35px; height: 35px; font-size: 10px; }
  .client-card-meta, .client-amounts { padding-left: 15px; padding-right: 15px; }
  .client-card-footer { padding: 9px 15px; }
  .client-amounts strong { font-size: 14px; }
  .form-grid { gap: 17px; }
  .form-card { padding: 21px; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .toolbar { gap: 12px; }
  .search-field { min-width: 180px; }
  .search-field input { height: 42px; font-size: 16px; }
  .filter-tabs { max-width: 100%; overflow-x: auto; }
  .filter-tab { font-size: 10px; padding: 9px 12px; }
  .route-grid { gap: 16px; }
  .detail-hero { padding: 22px; gap: 14px; }
  .detail-hero h2 { font-size: 21px; }
  .detail-avatar { width: 55px; height: 55px; font-size: 19px; }
  .stat-row { padding: 20px 22px; gap: 17px; }
  .stat-item strong { font-size: 19px; }
  .modal-backdrop { padding: 18px; }
  .modal { max-height: calc(100dvh - 36px); }
  .toast { left: 50%; bottom: 90px; font-size: 11px; width: max-content; }
  .field-balance { padding: 25px; }
  .quick-actions { gap: 10px; }
  .quick-action { padding: 18px 8px; font-size: 10px; }
}
@media (max-width: 480px) {
  .topbar { padding: 0 17px; }
  .topbar .breadcrumb > span:first-child { display: none; }
  .topbar .breadcrumb > svg:first-of-type { display: none; }
  .topbar-actions .avatar { display: none; }
  .topbar-actions > .btn { font-size: 9px; padding: 7px 9px; min-height: 32px; }
  .demo-banner { padding-left: 17px; padding-right: 17px; font-size: 8px; }
  .page-content { padding: 23px 17px 105px; }
  .page-header { gap: 15px; }
  .page-header > div:first-child { width: 100%; }
  h1 { font-size: 28px; }
  .page-actions { width: 100%; justify-content: flex-start !important; }
  .metrics-grid { gap: 10px; }
  .metric-card { padding: 17px 14px 15px; }
  .metric-value { font-size: 23px; letter-spacing: -.7px; }
  .metric-label { font-size: 9px; padding-right: 22px; margin-bottom: 18px; }
  .metric-icon { width: 22px; height: 22px; top: 12px; right: 10px; }
  .metric-icon svg { width: 12px; height: 12px; }
  .metric-detail { font-size: 8px; flex-wrap: wrap; gap: 3px; min-height: 20px; }
  .metric-card.featured::after { width: 95px; height: 95px; border-width: 15px; bottom: -35px; }
  .side-column { display: flex; flex-direction: column; }
  .side-column > * { width: 100%; }
  .card-header { flex-wrap: wrap; gap: 10px; }
  .card-header .card-actions { margin-left: auto; }
  .chart-summary { gap: 26px; padding-top: 17px; }
  .chart-summary strong { font-size: 21px; }
  .chart-legend { gap: 12px; font-size: 9px; }
  .chart-wrap { min-height: 140px; }
  .client-grid, .route-grid { grid-template-columns: minmax(0, 1fr); }
  .client-card-top { padding: 20px 20px 0; }
  .client-card-top h3 { font-size: 14px; }
  .client-card-top .avatar-sm { width: 42px; height: 42px; font-size: 12px; }
  .client-card-meta, .client-amounts { padding-left: 20px; padding-right: 20px; }
  .client-card-meta { font-size: 11px; }
  .client-amounts strong { font-size: 18px; }
  .client-card-footer { padding: 10px 20px; }
  .toolbar { align-items: stretch; }
  .search-field { flex-basis: 100%; max-width: none; }
  .filter-tabs { width: 100%; }
  .filter-tab { flex: 1; padding-left: 9px; padding-right: 9px; }
  .detail-hero { align-items: flex-start; padding: 20px; }
  .detail-hero h2 { font-size: 19px; }
  .detail-meta { gap: 7px; font-size: 10px; }
  .stat-row { padding: 19px 20px; gap: 13px; }
  .stat-item { min-width: 75px; }
  .stat-item span { font-size: 9px; }
  .stat-item strong { font-size: 17px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-card { padding: 19px 17px; }
  .form-card h2 { font-size: 14px; }
  .form-actions .btn.primary { flex: 1; }
  .product-row { padding: 13px 9px; gap: 7px; }
  .product-image { display: none; }
  .product-info strong { font-size: 10px; }
  .product-info small { font-size: 8px; }
  .product-price { font-size: 10px; }
  .quantity-control input { width: 27px; }
  .quantity-control button { width: 25px; min-height: 34px; }
  .list-row { gap: 10px; flex-wrap: wrap; }
  .list-row-main { flex: 1; }
  .list-row-end { gap: 7px; }
  .activity-time { font-size: 8px; }
  .activity-item { gap: 10px; }
  .activity-icon { width: 29px; height: 29px; }
  .modal-backdrop { padding: 12px; }
  .modal { border-radius: 13px; max-height: calc(100dvh - 24px); }
  .modal-header { padding: 18px 19px 15px; }
  .modal-body { padding: 19px; }
  .modal-footer { padding: 13px 19px 19px; }
  .field-balance { padding: 23px; }
  .field-balance > strong { font-size: 33px; }
  .field-balance .stat-item strong { font-size: 18px; }
  .quick-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
  .quick-action { padding: 16px 4px; font-size: 9px; border-radius: 9px; }
  .quick-action svg { width: 20px; height: 20px; }
  .step-indicator { gap: 10px; flex-wrap: wrap; }
  .step { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .sidebar, .topbar, .demo-banner, .mobile-bottom-nav, .page-actions, .toast, .modal-backdrop { display: none !important; }
  .app-shell { display: block; }
  .page-content { padding: 0; }
  .card, .metric-card { box-shadow: none; break-inside: avoid; }
}

/* Ajustes para o markup navegável do protótipo. */
body.modal-open { overflow: hidden; }
.brand-caption { display: block; }
.brand-name .brand-period { font-weight: 800; font-size: 27px; color: #98ab6e; }
.workspace-info > span, .user-info > span { display: block; font-size: 9px; color: #849079; margin-top: 4px; font-weight: 400; line-height: 1.5; }
.workspace-info > strong { font-size: 11px; }
.user-info > strong { font-size: 11px; }
.nav-count { display: grid; place-items: center; min-width: 18px; height: 17px; padding: 0 4px; margin-left: auto; color: #96815b; background: #f3eddf; border-radius: 4px; font-size: 9px; }
.nav-item.active:has(.nav-count)::after { display: none; }
.sidebar-bottom { padding-top: 26px; }
.sync-mini { display: flex; align-items: center; gap: 9px; text-align: left; width: 100%; margin-bottom: 17px; border-radius: 10px; padding: 12px 10px; border: 1px solid #e0e8d9; background: #f6f8f1; }
.sync-mini > span:nth-child(2) { min-width: 0; flex: 1; }
.sync-mini strong { display: block; font-size: 9px; color: #6f865b; font-weight: 600; line-height: 1.5; }
.sync-mini small { display: block; font-size: 8px; color: #8c9c7a; margin-top: 4px; }
.sync-mini > svg { width: 11px; height: 11px; color: #a0af8d; }
.sync-mini-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; color: #779463; background: #eaf1de; flex: 0 0 auto; }
.sync-mini-icon svg { width: 14px; height: 14px; }
.topbar-divider { width: 1px; height: 19px; background: #e4e9df; }
.demo-banner { gap: 11px; }
.demo-banner > span { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; font-size: 8px; font-weight: 700; letter-spacing: 1.1px; color: #87966e; }
.demo-dot { width: 4px; height: 4px; background: #9bae7b; border-radius: 50%; }
.demo-banner p { font-size: 9px; color: #8a967e; flex: 1; }
.demo-banner button { display: inline-flex; gap: 5px; align-items: center; background: transparent; color: #7d9069; padding: 0; font-size: 9px; }
.demo-banner button svg { width: 12px; height: 12px; }
.period-control { padding: 8px 10px; }
.period-control select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; font-size: 10px; color: #748468; font-weight: 500; max-width: 160px; padding: 1px 0; outline-offset: 3px; }
.period-control > svg:last-child { width: 12px; height: 12px; }
.dashboard-controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.dashboard-controls .section-heading { display: inline-flex; justify-content: flex-start; gap: 10px; margin: 0; font-size: 11px; color: #72866a; font-weight: 600; }
.dashboard-controls .badge { font-size: 8px; font-weight: 400; }
.chart-summary { align-items: baseline; gap: 13px; padding: 5px 10px 15px; }
.chart-summary > span { font-size: 9px; }
.card-footer:has(.chart-legend) { justify-content: space-between; gap: 15px; font-size: 9px; }
.chart-legend { gap: 6px; }
.person-cell .muted { display: block; margin-top: 4px; font-size: 9px; }
.avatar-sm, .detail-avatar { background: color-mix(in srgb, var(--avatar-color, #0f766e) 11%, white); color: var(--avatar-color, #0f766e); }
.efficiency-cell { display: flex; align-items: center; gap: 9px; }
.efficiency-cell > span { min-width: 28px; font-size: 10px; font-weight: 600; color: #718e5d; }
.efficiency-cell .progress-track { margin-top: 0; min-width: 45px; }
.visits-count { display: grid; place-items: center; width: 23px; height: 23px; background: #f2f5eb; color: #8ba171; font-size: 10px; border-radius: 6px; }
.visit-time { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.visit-time .visit-line { display: block; margin-top: 0; }
.visit-name { padding: 0; background: transparent; text-align: left; line-height: 1.5; font-family: inherit; }
.visit-name:hover { color: var(--pine); text-decoration: underline; text-underline-offset: 3px; }
.visit-purpose { display: inline-block; margin-top: 7px; background: #f2f5ec; color: #8da278; border-radius: 4px; padding: 3px 5px; font-size: 8px; }
.visit-item.completed { opacity: .72; }
.visit-item.completed .visit-line { background: #91ac77; }
.visit-item > .icon-button { width: 22px; height: 22px; }
.visit-item > .icon-button svg { width: 14px; height: 14px; }
.collection-callout .eyebrow { color: #aa956c; font-size: 8px; letter-spacing: 1.2px; }
.collection-callout .callout-title { margin-top: 8px; font-size: 26px; font-weight: 550; letter-spacing: -.7px; }
.collection-callout .btn { width: 100%; justify-content: space-between; }
.quiet-note { display: flex; gap: 9px; padding: 1px 4px; color: #8e9e7c; }
.quiet-note > svg { width: 16px; height: 16px; margin-top: 2px; }
.quiet-note p { font-size: 9px; line-height: 1.8; }
.quiet-note button { background: transparent; padding: 0; color: #658456; font-size: 9px; text-decoration: underline; text-underline-offset: 3px; }
.client-metrics, .collection-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.warning-text { color: #b1864d !important; }
.client-name-button, .table-client-button { background: transparent; padding: 0; text-align: left; font-weight: 600; color: #45633e; }
.client-name-button { font-size: 16px; letter-spacing: -.3px; line-height: 1.4; }
.client-name-button:hover, .table-client-button:hover { color: var(--pine); }
.table-client-button { font-size: 11px; }
.page-content > .filter-tabs { display: inline-flex; margin-bottom: 22px; }
.client-card-top { justify-content: space-between; }
.client-card > h2 { padding: 15px 20px 0; }
.client-card > .client-card-meta { padding-top: 7px; padding-bottom: 8px; }
.client-card-footer > .muted { font-size: 10px; }
.back-link { margin-bottom: 15px; }
.page-content > .detail-hero { border: 0; padding: 0 0 28px; align-items: center; }
.page-content > .detail-hero > div { flex: 1; min-width: 0; }
.page-content > .detail-hero .muted { font-size: 10px; margin-top: 8px; }
.delivery-record { padding: 17px 0; border-bottom: 1px solid #e7eddf; }
.delivery-record:first-child { padding-top: 0; }
.delivery-record:last-child { border-bottom: 0; padding-bottom: 0; }
.delivery-record .list-row { border: 0; padding: 0; }
.delivery-record .list-row strong { font-size: 12px; color: #597a49; }
.delivery-record .list-row .muted { font-size: 10px; margin-top: 5px; }
.delivery-items { color: #8b9e77; font-size: 10px; line-height: 1.8; margin: 14px 0; padding: 12px; border-radius: 6px; background: #f6f8f1; }
.detail-grid > .side-column .list-row > div > .muted { font-size: 10px; margin-top: 5px; }
.detail-grid .empty-state { border: 0; padding: 23px 0; }
.detail-grid .empty-state h3 { font-size: 13px; }
.detail-grid .empty-state p { font-size: 10px; }
.card.form-card { padding: 0; }
.card.form-card h2 { margin-bottom: 0; }
.card.form-card .product-picker { border: 0; border-radius: 0; margin: 16px 0 5px; }
.card.form-card .product-row { padding: 16px 20px; }
.card.form-card .field-help { align-self: center; font-size: 10px; line-height: 1.7; }
.card.form-card .field-help svg { width: 14px; height: 14px; margin-right: 3px; }
.order-summary { position: sticky; top: 22px; }
.order-summary .btn.full-width { margin-top: 22px; }
.order-summary .summary-row.total { flex-wrap: wrap; align-items: center; }
.order-summary .summary-row.total strong { font-size: 22px; }
.full-width { width: 100%; }
.compact-input { width: 66px; max-width: 100%; padding: 8px 7px; border: 1px solid #dbe5cf; border-radius: 6px; background: #fafcf6; font-size: 12px; text-align: center; color: #66854a; }
.product-tile { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 8px; color: #92a377; background: #f0f3e8; flex: 0 0 auto; }
.product-tile svg { width: 17px; height: 17px; }
.product-tone-1 { background: #f6ede6; color: #b0997d; }
.product-tone-2 { background: #eaf0ee; color: #829e8c; }
.product-info > span { display: block; font-size: 9px; margin-top: 5px; line-height: 1.5; color: #91a17e; }
.quantity-control button { display: grid; place-items: center; }
.quantity-control button svg { width: 12px; height: 12px; }
.save-note { display: flex; gap: 5px; align-items: center; justify-content: center; font-size: 8px; color: #9aaa8a; margin-top: 13px; }
.save-note svg { width: 12px; height: 12px; }
.summary-row.compact { font-size: 9px; padding: 6px 0; }
.radio-group { margin-bottom: 20px; }
.radio-option > span { display: inline-flex; align-items: center; gap: 5px; }
.radio-option svg { width: 13px; height: 13px; }
.form-card .alert { margin-top: 17px; margin-bottom: 0; }
.field-balance { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.field-balance > div:first-child > strong { display: block; color: white; font-size: 39px; line-height: 1.1; font-weight: 600; letter-spacing: -1px; margin: 13px 0 10px; }
.field-balance > div:first-child > span:last-child { font-size: 10px; color: #bdd0b3; }
.field-balance .eyebrow { color: #a5c49b; font-size: 9px; }
.field-balance-icon { width: 63px; height: 63px; display: grid; place-items: center; color: #c2d4ae; background: #ffffff0b; border: 1px solid #ffffff0e; border-radius: 15px; align-self: center; }
.field-balance-icon svg { width: 32px; height: 32px; stroke-width: 1.2; }
.field-balance-bottom { display: flex; grid-column: 1 / -1; border-top: 1px solid #ffffff1b; gap: 35px; padding-top: 19px; margin-top: 11px; }
.field-balance-bottom > span { display: flex; flex-direction: column; gap: 6px; font-size: 10px; color: #a8c198; }
.field-balance-bottom strong { font-size: 19px; color: #eff6de; font-weight: 500; }
.quick-action > span { display: grid; place-items: center; width: 35px; height: 35px; background: #f0f5e9; color: #77995d; border-radius: 9px; }
.quick-action strong { font-size: 11px; font-weight: 600; color: #6f865a; }
.field-sync-link { display: flex; align-items: center; gap: 9px; width: 100%; padding: 18px 3px; background: transparent; color: #899d76; font-size: 10px; }
.field-sync-link svg { width: 14px; height: 14px; }
.field-sync-link svg:last-child { margin-left: auto; width: 12px; }
.visit-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.visit-actions .btn { padding: 3px 0; min-height: 25px; font-size: 9px; }
.visit-actions .btn svg { width: 12px; height: 12px; }
.itinerary-card { max-width: 850px; }
.itinerary-progress { padding: 20px 22px 0; }
.itinerary-progress .progress-track { max-width: none; height: 5px; margin: 0; }
.full-visits { padding-top: 11px; padding-bottom: 9px; }
.full-visits .visit-item { padding-top: 19px; padding-bottom: 19px; }
.full-visits .visit-name { font-size: 13px; }
.full-visits .visit-address { font-size: 10px; }
.full-visits .visit-time { margin-right: 10px; gap: 11px; }
.below-note { display: flex; align-items: center; gap: 8px; line-height: 1.7; font-size: 10px; margin-top: 17px; }
.below-note svg { width: 14px; height: 14px; }
.page-content > .alert { margin-top: 22px; }
.activity-list { padding: 5px 22px; }
.payment-client { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.payment-client strong { font-size: 13px; color: #5b7948; }
.payment-client p { font-size: 10px; margin-top: 4px; }
.modal-body > .muted + form { margin-top: 21px; }
.modal-body form > .field + .field { margin-top: 18px; }
.modal-body .form-actions.full, .modal-body .form-error.full { grid-column: 1 / -1; }
.modal-body .sync-panel { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 9px; padding: 25px; }
.modal-body .sync-panel h3 { font-size: 13px; font-weight: 500; color: #769357; }
.modal-body .sync-panel p { font-size: 10px; }
.help-step { display: flex; gap: 13px; margin-bottom: 24px; }
.help-step > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: #edf4e4; color: #7a9b58; font-size: 11px; font-weight: 600; flex: 0 0 auto; }
.help-step h3 { font-size: 13px; font-weight: 600; color: #637e4e; margin-bottom: 6px; }
.help-step p { font-size: 11px; color: #8c9e7a; line-height: 1.8; }
.settings-separator { height: 1px; background: #e5ecdb; margin: 23px 0; }
.modal-body > .btn.full-width { margin-top: 19px; }
.modal-body > h3 { font-size: 14px; font-weight: 600; color: #65834e; margin-bottom: 9px; }
.receipt-preview { padding: 19px; background: #fbfcf8; border: 1px solid #e4ebd9; border-radius: 9px; }
.receipt-preview > h3 { font-size: 17px; font-weight: 600; margin: 12px 0 8px; }
.receipt-preview > .muted { font-size: 10px; margin-bottom: 20px; }
.receipt-preview .eyebrow { font-size: 8px; letter-spacing: .7px; }
.route-card-head { justify-content: space-between; padding-bottom: 15px; }
.route-card-head .avatar-sm { width: 42px; height: 42px; font-size: 12px; }
.route-card > h2 { padding: 0 22px; font-size: 22px; font-weight: 550; letter-spacing: -.6px; }
.route-card > .muted { padding: 7px 22px 22px; font-size: 11px; }
.route-card > .summary-row { margin: 0 22px; padding: 10px 0; }
.route-card > .summary-row:first-of-type { border-top: 1px solid #edf2e5; }
.route-card-actions { display: flex; gap: 8px; padding: 19px 22px 22px; }
.route-card-actions .btn { flex: 1; }
.inventory-table .muted { font-size: 9px; margin-top: 5px; }
@media (max-width: 1100px) {
  .order-summary { position: static; }
  .detail-grid > .side-column { grid-template-columns: 1fr 1fr; }
  .client-metrics, .collection-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .client-metrics .metric-value, .collection-metrics .metric-value { font-size: 22px; }
}
@media (max-width: 760px) {
  .demo-banner { gap: 8px; }
  .demo-banner p { font-size: 8px; }
  .demo-banner button { display: none; }
  .dashboard-controls .section-heading { font-size: 10px; gap: 7px; flex-wrap: wrap; }
  .page-actions .period-control { display: flex; }
  .page-content > .detail-hero { flex-wrap: wrap; }
  .page-content > .detail-hero > .btn { margin-left: 69px; }
  .client-metrics, .collection-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .client-metrics .metric-icon, .collection-metrics .metric-icon { display: none; }
  .client-metrics .metric-label, .collection-metrics .metric-label { padding-right: 0; }
  .client-metrics .metric-value, .collection-metrics .metric-value { font-size: 20px; }
  .client-card > h2 { padding-left: 15px; padding-right: 15px; }
  .field-balance-icon { width: 53px; height: 53px; }
  .field-balance > div:first-child > strong { font-size: 36px; }
  .page-content > .filter-tabs { display: flex; }
  .compact-input { font-size: 16px; min-height: 40px; }
  .route-card-actions { padding-left: 18px; padding-right: 18px; }
  .route-card-actions .btn { font-size: 9px; }
  .sync-mini strong, .sync-mini small { font-size: 10px; }
}
@media (max-width: 480px) {
  .topbar-divider { display: none; }
  .demo-banner { gap: 7px; }
  .demo-banner > span { font-size: 7px; letter-spacing: .8px; }
  .dashboard-controls { align-items: center; gap: 8px; }
  .dashboard-controls .section-heading { max-width: 168px; gap: 6px; }
  .dashboard-controls .section-heading .badge { display: none; }
  .period-control { padding: 8px; gap: 5px; }
  .period-control select { font-size: 10px; max-width: 133px; }
  .period-control > svg:first-child { width: 12px; height: 12px; }
  .card-footer:has(.chart-legend) { gap: 10px; font-size: 8px; }
  .card-footer:has(.chart-legend) > .muted { max-width: 175px; text-align: right; line-height: 1.5; }
  .chart-summary { gap: 8px; padding-left: 10px; align-items: baseline; }
  .chart-summary > strong { font-size: 22px; }
  .chart-summary > span { font-size: 8px; }
  .client-card > h2 { padding-left: 20px; padding-right: 20px; }
  .client-metrics, .collection-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-metrics > :last-child, .collection-metrics > :last-child { grid-column: 1 / -1; }
  .client-metrics .metric-value, .collection-metrics .metric-value { font-size: 25px; }
  .client-metrics > :last-child .metric-label, .collection-metrics > :last-child .metric-label { margin-bottom: 11px; }
  .client-metrics > :last-child .metric-detail, .collection-metrics > :last-child .metric-detail { min-height: 0; }
  .page-content > .detail-hero { gap: 12px; }
  .page-content > .detail-hero h1 { font-size: 23px; }
  .page-content > .detail-hero > .btn { margin-left: 0; width: 100%; }
  .page-content > .detail-hero .muted { font-size: 9px; line-height: 1.5; }
  .product-tile { width: 27px; height: 31px; border-radius: 6px; }
  .product-tile svg { width: 14px; height: 14px; }
  .card.form-card .product-row { padding: 15px 12px; gap: 7px; flex-wrap: wrap; }
  .card.form-card .product-row .product-info { flex: 1; min-width: 170px; }
  .card.form-card .product-row .product-price { margin-left: 34px; flex: 1; font-size: 11px; }
  .card.form-card .product-row .quantity-control { margin-top: 5px; }
  .product-info > span { font-size: 9px; }
  .product-info strong { font-size: 11px; }
  .order-summary .summary-row.total { flex-wrap: nowrap; }
  .save-note { font-size: 9px; }
  .field-balance > div:first-child > strong { font-size: 33px; }
  .field-balance .eyebrow { font-size: 8px; letter-spacing: 1.1px; }
  .field-balance-icon { width: 45px; height: 45px; border-radius: 11px; }
  .field-balance-icon svg { width: 25px; height: 25px; }
  .field-balance-bottom { gap: 32px; padding-top: 17px; }
  .field-balance-bottom strong { font-size: 19px; }
  .field-balance-bottom > span { font-size: 9px; }
  .quick-action strong { font-size: 9px; line-height: 1.5; }
  .quick-action > span { width: 31px; height: 31px; }
  .field-sync-link { font-size: 9px; }
  .visit-actions { gap: 11px; }
  .visit-actions .btn { font-size: 9px; }
  .full-visits .visit-time { margin-right: 3px; }
  .full-visits .visit-name { font-size: 12px; }
  .below-note { font-size: 9px; align-items: flex-start; }
  .below-note svg { margin-top: 2px; flex: 0 0 auto; }
  .receipt-preview { padding: 15px; }
  .receipt-preview .summary-row.total strong { font-size: 21px; }
  .activity-list { padding-left: 17px; padding-right: 17px; }
  .route-card-actions { padding-left: 22px; padding-right: 22px; }
  .route-card-actions .btn { font-size: 10px; }
}
