/* Mauriza Óptica — Controle. Visual limpo (Inter, linhas finas, cantos arredondados) com a identidade
   da loja: menu lateral vinho, acentos creme. Cores do cartão da loja: vinho #931353, creme #EFEACC. */
:root {
  --ink: #2a1a22;
  --ink-soft: #6c5a63;
  --ink-faint: #a8979f;
  --brand: #931353;
  --brand-dark: #7a0f44;
  --wine: #5c0b33;
  --wine-2: #761041;
  --creme: #efeacc;
  --creme-50: #f8f6ea;
  --hairline: #eee4e3;
  --surface: #faf7f4;
  --tint: #fbeff5;
  --ok: #1f8a5b;
  --warn: #c98a00;
  --bad: #c43d3d;
  --radius: 14px;
  --sidebar-w: 256px;
  --bs-body-font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: var(--ink);
  --bs-link-color-rgb: 147, 19, 83;
  --bs-link-hover-color-rgb: 122, 15, 68;
}

body { -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark); --bs-btn-active-bg: var(--wine); --bs-btn-active-border-color: var(--wine); --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand); }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: #e2bfd0; --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark); }
.btn-success { --bs-btn-bg: var(--ok); --bs-btn-border-color: var(--ok); --bs-btn-hover-bg: #187049; --bs-btn-hover-border-color: #187049; }
.form-control, .form-select { border-radius: 10px; border: 1.5px solid #e6dcdc; padding: .6rem .85rem; }
.form-select { padding-right: 2.4rem; background-position: right .8rem center; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(147, 19, 83, .12); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(147, 19, 83, .12); }
.form-label { font-weight: 600; font-size: .88rem; }
.form-text { color: var(--ink-soft); }
.page-link { color: var(--brand); }
.active > .page-link, .page-link.active { background-color: var(--brand); border-color: var(--brand); }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }

/* ==================== Entrar ==================== */
.login-body {
  min-height: 100vh;
  background:
    radial-gradient(560px circle at 12% 10%, rgba(147, 19, 83, .12), transparent 60%),
    radial-gradient(560px circle at 90% 90%, rgba(239, 234, 204, .9), transparent 60%),
    var(--surface);
}
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem 1rem; }
.login-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--hairline); border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 60px -36px rgba(92, 11, 51, .45); text-align: center; }
.login-card .login-band { background: radial-gradient(120% 140% at 50% -20%, #a8215f 0%, var(--brand) 55%, var(--brand-dark) 100%);
  border-bottom: 5px solid var(--creme); padding: 1.75rem 1rem 1.5rem; }
.login-card .login-band img { width: 180px; height: auto; }
.login-card .login-body-in { padding: 1.75rem 2rem 2rem; }
.login-card h1 { font: 700 1.6rem/1.2 "Playfair Display", Georgia, serif; color: var(--wine); margin: .25rem 0 .5rem; }
#gsi-button { min-height: 44px; display: flex; justify-content: center; }
.login-links { margin-top: 1.25rem; color: var(--ink-soft); font-size: .85rem; }
.login-links a { color: var(--ink-soft); text-decoration: none; }
.login-links a:hover { color: var(--brand); }
.login-status { text-align: left; }

/* ==================== Área logada ==================== */
.app-body { background: var(--surface); }
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar { width: var(--sidebar-w); background: linear-gradient(180deg, var(--wine) 0%, var(--wine-2) 100%); color: #f1dce6; display: flex; flex-direction: column; }
@media (min-width: 992px) {
  .app-sidebar { position: sticky; top: 0; height: 100vh; flex-shrink: 0; }
  .app-sidebar.offcanvas-lg { visibility: visible !important; transform: none !important; }
}
@media (max-width: 991.98px) { .app-sidebar { --bs-offcanvas-width: 284px; } }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.25rem .9rem; border-bottom: 1px solid rgba(239, 234, 204, .14); }
.sidebar-brand { display: flex; flex-direction: column; gap: .2rem; text-decoration: none; }
.sidebar-brand img { width: 132px; height: auto; }
.sidebar-brand span { font-size: .68rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--creme); opacity: .85; padding-left: 2px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: .6rem .75rem 1rem; display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav a { display: flex; align-items: center; gap: .7rem; padding: .5rem .75rem; border-radius: 10px; color: #e6c6d5; text-decoration: none; font-weight: 500; font-size: .93rem; }
.sidebar-nav a span:first-of-type { flex: 1; }
.sidebar-nav i { font-size: 1.05rem; width: 1.2rem; text-align: center; }
.sidebar-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sidebar-nav a.active { background: var(--creme); color: var(--wine); font-weight: 600; box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .5); }
.sidebar-section { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #c99bb1; padding: 1rem .75rem .35rem; }
/* seções recolhíveis (<details>): fechadas por padrão; o controle.js guarda em cookie quais ficaram abertas */
.sidebar-group { display: flex; flex-direction: column; gap: 2px; }
.sidebar-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .4rem; border-radius: 8px; user-select: none; }
.sidebar-group > summary::-webkit-details-marker { display: none; }
.sidebar-group > summary:hover { color: #fff; }
.sidebar-group > summary .bi { margin-left: auto; width: auto; font-size: .75rem; transition: transform .15s; }
.sidebar-group:not([open]) > summary .bi { transform: rotate(-90deg); }
.sidebar-group > summary:focus-visible { outline: 2px solid rgba(239, 234, 204, .6); outline-offset: 2px; }
.dot-sec { width: 8px; height: 8px; border-radius: 50%; background: #f4b400; }
.badge-pend { background: #f4b400; color: #3b2a00; font-weight: 700; }
.sidebar-user { display: flex; align-items: center; gap: .65rem; padding: .9rem 1rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.sidebar-user .btn-link { color: #e0b9ca; }
.sidebar-user .btn-link:hover { color: #fff; }
.app-sidebar .btn-close { filter: invert(1); }
.sidebar-user-info { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.sidebar-user-info strong { font-size: .88rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-info span { font-size: .74rem; color: #d3a9bc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.avatar { position: relative; width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; overflow: hidden; background: var(--creme); color: var(--wine); display: grid; place-items: center; font-weight: 700; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; font-size: .85rem; }
.avatar-lg { width: 44px; height: 44px; }
.dot-pend { position: absolute; top: -2px; right: -2px; width: 11px; height: 11px; border-radius: 50%; background: #f4b400; border: 2px solid #fff; }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-topbar { display: flex; align-items: center; justify-content: space-between; padding: .55rem 1rem; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hairline); position: sticky; top: 0; z-index: 10; }
.topbar-brand img { display: block; width: 100px; height: auto; }
.app-content { flex: 1; padding: clamp(1rem, 3vw, 2.25rem); max-width: 1180px; width: 100%; }
.app-footer { padding: 1rem clamp(1rem, 3vw, 2.25rem) 1.5rem; color: var(--ink-faint); font-size: .82rem; }
.app-footer a { color: var(--ink-faint); }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-head h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin: 0; color: var(--wine); }
.page-head p { color: var(--ink-soft); margin: .3rem 0 0; }
.page-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.panel { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 1.35rem; }
.panel + .panel { margin-top: 1.25rem; }
.panel-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.panel-title i { color: var(--brand); }
.panel-title .ms-auto { font-weight: 500; font-size: .85rem; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.stat { background: #fff; border: 1px solid var(--hairline); border-top: 3px solid var(--tint); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.stat .label { font-size: .8rem; color: var(--ink-soft); font-weight: 500; display: flex; align-items: center; gap: .4rem; }
.stat .label i { color: var(--brand); }
.stat .value { font-size: 1.55rem; white-space: nowrap; font-weight: 800; letter-spacing: -.02em; margin-top: .2rem; font-variant-numeric: tabular-nums; }
.stat .hint { font-size: .78rem; color: var(--ink-faint); }
.stat.ok { border-top-color: #bfe6d2; } .stat.ok .value { color: var(--ok); }
.stat.warn { border-top-color: #f4dfa6; } .stat.warn .value { color: #9a6a00; }
.stat.bad { border-top-color: #f2c4c4; } .stat.bad .value { color: var(--bad); }
.stat-link { color: inherit; text-decoration: none; display: block; }
.stat-link:hover { border-color: #e2bfd0; color: inherit; }

.table-clean { margin: 0; }
.table-clean thead th { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #9b7d8b; border-bottom-width: 1px; background: transparent; white-space: nowrap; }
.table-clean td { vertical-align: middle; border-color: var(--hairline); }
.table-clean tfoot td { font-weight: 700; background: var(--creme-50); }
td.actions { text-align: right; white-space: nowrap; }
td.actions .btn + .btn, td.actions form + .btn, td.actions .btn + form { margin-left: .35rem; }
td.actions form { display: inline; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.is-late td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
tr.is-off td { opacity: .55; }

/* tabela vira cartões no celular */
@media (max-width: 767.98px) {
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tfoot, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards tr { border: 1px solid var(--hairline); border-radius: 12px; padding: .75rem .9rem; margin-bottom: .75rem; background: #fff; }
  .table-cards td { border: 0; padding: .2rem 0; text-align: left; }
  .table-cards td[data-label]::before { content: attr(data-label); display: inline-block; width: 38%; font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--ink-faint); letter-spacing: .04em; vertical-align: baseline; }
  .table-cards td.main { font-size: 1.02rem; padding-bottom: .35rem; }
  .table-cards td.main::before { display: none; }
  .table-cards td.num { text-align: left; }
  .table-cards td.actions { text-align: left; margin-top: .4rem; }
  .table-cards tr.is-late td:first-child { box-shadow: none; }
  .table-cards tr.is-late { border-left: 3px solid var(--bad); }
}

.badge-ok { background: #e7f6ee; color: #135c3c; font-weight: 600; }
.badge-late { background: #fdeaea; color: #9b2c2c; font-weight: 600; }
.badge-open { background: #fff6dc; color: #7a5300; font-weight: 600; }
.badge-off { background: #f1ecee; color: #6c5a63; font-weight: 600; }
.badge-brand { background: var(--tint); color: var(--brand-dark); font-weight: 600; }
.badge-creme { background: var(--creme); color: var(--wine); font-weight: 600; }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }
.empty-state > i { font-size: 2.6rem; color: #d9c4ce; }
.empty-state h3 { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: .8rem 0 .4rem; }

/* listas: filtros, rodapé com paginação e "por página", ordenação */
.list-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-bottom: 1rem; }
.list-filters .form-check-label { font-size: .9rem; color: var(--ink-soft); white-space: nowrap; }
.list-filters .grow { flex: 1 1 260px; display: flex; gap: .5rem; }
.list-filters .f-date { width: auto; }
.list-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; }
.per-page { display: flex; align-items: center; gap: .5rem; margin-left: auto; font-size: .85rem; color: var(--ink-soft); }
.per-page .form-select { width: auto; padding: .25rem 2.2rem .25rem .7rem; background-position: right .6rem center; }
.sort-link { color: inherit; text-decoration: none; white-space: nowrap; }
.sort-link i { font-size: .8rem; opacity: .45; }
.sort-link:hover, .sort-link.active { color: var(--brand); }
.sort-link.active i { opacity: 1; }
.seg { display: inline-flex; flex-wrap: wrap; gap: .35rem; }
.seg a { padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--hairline); background: #fff; color: var(--ink-soft); text-decoration: none; font-size: .88rem; font-weight: 500; }
.seg a:hover { border-color: #e2bfd0; color: var(--brand); }
.seg a.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* formulários */
.crumbs { margin-bottom: .5rem; font-size: .88rem; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.form-section { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--brand-dark); margin: 1.75rem 0 .9rem; padding-bottom: .45rem; border-bottom: 1px solid var(--hairline); }
.form-section:first-child { margin-top: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 1rem; margin-top: 1.75rem; padding-top: 1.1rem; border-top: 1px solid var(--hairline); }
.form-actions .me-auto { margin-right: auto; }
.hint-box { background: var(--creme-50); border: 1px solid #ece4c3; border-radius: 12px; padding: .8rem 1rem; font-size: .92rem; color: #4a3d1a; }
.modal-content { border-radius: 16px; border: 0; }

/* busca de cliente com sugestões */
.search-box { position: relative; }
.search-results { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: .25rem 0 0; padding: .3rem; list-style: none; background: #fff; border: 1px solid var(--hairline); border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(92, 11, 51, .35); max-height: 320px; overflow-y: auto; }
.search-results li { padding: .55rem .7rem; border-radius: 8px; cursor: pointer; }
.search-results li small { color: var(--ink-soft); }
.search-results li.active, .search-results li:hover { background: var(--tint); }
.search-results li.empty { color: var(--ink-soft); cursor: default; background: none; }
.cliente-chip { display: flex; align-items: center; gap: .75rem; background: var(--tint); border-radius: 12px; padding: .65rem .85rem; }
.cliente-chip i { color: var(--brand); font-size: 1.2rem; }

/* lançar venda */
.venda-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; }
@media (max-width: 991.98px) { .venda-grid { grid-template-columns: minmax(0, 1fr); } }
.resumo dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 0; }
.resumo dt { font-weight: 500; color: var(--ink-soft); }
.resumo dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.resumo .total { font-size: 1.45rem; font-weight: 800; color: var(--wine); border-top: 1px solid var(--hairline); padding-top: .5rem; }
.parcelas-grid .form-control { padding: .45rem .6rem; }

/* início */
.hello { display: flex; align-items: center; gap: 1rem; padding: 1.4rem 1.5rem; border-radius: 18px; margin-bottom: 1.25rem; color: #fff;
  background: radial-gradient(520px 220px at 95% 0%, rgba(239, 234, 204, .28), transparent 60%), linear-gradient(135deg, var(--wine), var(--brand)); }
.hello h1 { font: 700 1.5rem/1.2 "Playfair Display", Georgia, serif; margin: 0; }
.hello p { margin: .2rem 0 0; color: rgba(255, 255, 255, .82); }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.quick a { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; border-radius: 12px; border: 1px solid var(--hairline); background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; }
.quick a i { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--brand); font-size: 1.1rem; }
.quick a:hover { border-color: #e2bfd0; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; border-top: 1px solid var(--hairline); min-width: 0; }
.list-plain li:first-child { border-top: 0; }
.list-plain .grow { flex: 1; min-width: 0; }
.list-plain .grow small { display: block; color: var(--ink-soft); }

/* ==================== NPS ==================== */
.nps-hero { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.25rem; margin-bottom: 1.25rem; }
@media (max-width: 991.98px) { .nps-hero { grid-template-columns: minmax(0, 1fr); } }
.nps-score { text-align: center; display: flex; flex-direction: column; justify-content: center; }
.nps-score .big { font-size: 4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.nps-score .zona { display: inline-block; margin-top: .6rem; padding: .25rem .8rem; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.zona-excelencia { background: #e7f6ee; color: #135c3c; }
.zona-qualidade { background: #eaf4fb; color: #1e5b85; }
.zona-aperfeicoamento { background: #fff6dc; color: #7a5300; }
.zona-critica { background: #fdeaea; color: #9b2c2c; }
.nps-split { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: #f1ecee; margin: .9rem 0 .6rem; }
.nps-split span { display: block; height: 100%; }
.nps-split span + span { border-left: 2px solid #fff; }
.c-det { background: #d64545; } .c-neu { background: #e3a21a; } .c-pro { background: #1f8a5b; }
.nps-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .85rem; color: var(--ink-soft); }
.nps-legend b { color: var(--ink); font-variant-numeric: tabular-nums; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; vertical-align: 0; }
.period-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: 1.25rem; }
.period-bar .custom { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.period-bar .custom .form-control { width: auto; padding: .35rem .6rem; }
.chart-box { position: relative; height: 280px; }
.chart-box.sm { height: 230px; }
.nps-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
@media (max-width: 991.98px) { .nps-grid { grid-template-columns: minmax(0, 1fr); } }
.nps-grid .panel + .panel { margin-top: 0; }
.bar-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.bar-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .75rem; font-size: .9rem; }
.bar-list .track { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: #f4eef1; overflow: hidden; }
.bar-list .fill { height: 100%; border-radius: 999px; }
.bar-list .n { font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.fill-positivo { background: #1f8a5b; } .fill-neutro { background: #e3a21a; } .fill-negativo { background: #d64545; }
.nota-pill { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; border-radius: 9px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.nota-det { background: #d64545; } .nota-neu { background: #e3a21a; } .nota-pro { background: #1f8a5b; }
.quote { display: flex; gap: .9rem; padding: .85rem 0; border-top: 1px solid var(--hairline); }
.quote:first-child { border-top: 0; padding-top: 0; }
.quote p { margin: 0 0 .3rem; white-space: pre-line; overflow-wrap: anywhere; }
.quote small { color: var(--ink-faint); }
.tag { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; margin: 0 .25rem .25rem 0; }
.tag-positivo { background: #e7f6ee; color: #135c3c; } .tag-neutro { background: #fff6dc; color: #7a5300; } .tag-negativo { background: #fdeaea; color: #9b2c2c; }
.cloud-words { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: baseline; justify-content: center; padding: .5rem 0; }
.cloud-words span { font-weight: 700; line-height: 1.1; }
.cloud-words .w-positivo { color: #1f8a5b; } .cloud-words .w-neutro { color: #b07d00; } .cloud-words .w-negativo { color: #c43d3d; }
.share-box { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.share-box code { background: var(--creme-50); border: 1px solid #ece4c3; border-radius: 8px; padding: .35rem .6rem; color: var(--wine); }

@media print {
  .app-sidebar, .app-topbar, .app-footer, .no-print, .toast-container { display: none !important; }
  .app-content { padding: 0; max-width: none; }
  .panel { break-inside: avoid; }
}
.zona-txt-excelencia { color: #1f8a5b; } .zona-txt-qualidade { color: #1e5b85; } .zona-txt-aperfeicoamento { color: #9a6a00; } .zona-txt-critica { color: #c43d3d; }

/* ==================== Painel Tiny ==================== */
.tiny-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .9rem; }
.tiny-card { position: relative; display: flex; flex-direction: column; gap: .15rem; padding: 1.05rem 1.1rem; background: #fff; border: 1px solid var(--hairline);
  border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.tiny-card:hover { border-color: #e2bfd0; box-shadow: 0 14px 30px -22px rgba(92, 11, 51, .55); transform: translateY(-2px); color: var(--ink); }
.tiny-card .tc-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--brand); font-size: 1.1rem; margin-bottom: .4rem; }
.tiny-card .tc-n { position: absolute; top: 1rem; right: 1.1rem; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--wine); font-variant-numeric: tabular-nums; }
.tiny-card strong { font-size: .95rem; }
.tiny-card small { color: var(--ink-soft); font-size: .8rem; line-height: 1.35; }
.fone-acoes { display: inline-flex; gap: .35rem; flex-wrap: wrap; }
.fone-acoes .btn { padding: .2rem .55rem; font-size: .82rem; }
.btn-whats { --bs-btn-color: #128c4a; --bs-btn-border-color: #a8dcc0; --bs-btn-hover-bg: #128c4a; --bs-btn-hover-border-color: #128c4a; --bs-btn-hover-color: #fff; }
.tempo-pill { display: inline-block; padding: .15rem .6rem; border-radius: 999px; background: #fff6dc; color: #7a5300; font-weight: 600; font-size: .85rem; white-space: nowrap; }
.tempo-pill.longo { background: #fdeaea; color: #9b2c2c; }
.dia-pill { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 3.2rem; padding: .25rem .4rem; border-radius: 10px; background: var(--creme); color: var(--wine); line-height: 1.1; }
.dia-pill b { font-size: 1.05rem; } .dia-pill small { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; }
.dia-pill.hoje { background: var(--brand); color: #fff; }
.obs-receita { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .9rem; line-height: 1.5; white-space: pre; overflow-x: auto; }
