@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #f5f6fa;
    --bg-2: #eef0f6;
    --card: #ffffff;
    --ink: #1f2937;
    --ink-2: #374151;
    --muted: #6b7280;
    --line: #e6e8ee;
    --line-2: #eef0f5;
    --brand: #4f46e5;
    --brand-600: #4338ca;
    --brand-50: #eef2ff;
    --danger: #dc2626;
    --warn: #d97706;
    --ok: #059669;
    --blue: #2563eb;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(16,24,40,.05);
    --shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 16px -6px rgba(16,24,40,.10);
    --shadow-lg: 0 12px 32px -10px rgba(16,24,40,.18);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 15.5px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }

/* ---------- layout: sidebar + main ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 244px; flex-shrink: 0; background: #fff; border-right: 1px solid var(--line); position: fixed; inset: 0 auto 0 0; overflow-y: auto; z-index: 45; }
.side-brand { font-weight: 800; color: var(--brand); font-size: 16.5px; letter-spacing: -.01em; padding: 18px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line-2); }
.side-nav { padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px; transition: background .12s, color .12s; }
.side-nav a .ic { width: 20px; text-align: center; font-size: 15px; }
.side-nav a:hover { background: var(--bg-2); color: var(--ink); }
.side-nav a.active { background: var(--brand-50); color: var(--brand); }
.side-sep { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 16px 12px 6px; }

.main { flex: 1; min-width: 0; margin-left: 244px; display: flex; flex-direction: column; }
.appbar { height: 62px; background: rgba(255,255,255,.92); -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 0 22px; }
.side-toggle { display: none; background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-2); }
.topsearch { flex: 1; max-width: 440px; position: relative; display: flex; align-items: center; }
.topsearch .ts-ic { position: absolute; left: 13px; font-size: 13px; opacity: .55; pointer-events: none; }
.topsearch input { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px 0 36px; background: var(--bg); font-size: 14px; font-family: inherit; }
.topsearch input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); background: #fff; }
.topuser { margin-left: auto; position: relative; }
.topuser > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; font-weight: 600; font-size: 13.5px; color: var(--ink-2); }
.topuser > summary::-webkit-details-marker { display: none; }
.topuser > summary:hover { background: var(--bg-2); }
.tu-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-50); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.tu-caret { color: var(--muted); font-size: 10px; }
.topuser-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 200px; padding: 8px; z-index: 60; }
.topuser-menu .tu-role { font-size: 12px; color: var(--muted); padding: 4px 10px 8px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.topuser-menu a { display: block; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 13.5px; font-weight: 600; }
.topuser-menu a:hover { background: var(--bg-2); }
.topuser-menu a.tu-sair { color: var(--danger); }

.container { max-width: 1560px; margin: 0 auto; padding: 24px 30px 40px; width: 100%; }
.page-title { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 2px 0 18px; }

/* ---------- login ---------- */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh;
    background: radial-gradient(1200px 600px at 50% -10%, #eceefb 0%, var(--bg) 55%); padding: 20px; }
.login-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: 34px 32px; width: 100%; max-width: 380px; }
.login-brand { font-size: 22px; font-weight: 800; color: var(--brand); text-align: center; letter-spacing: -.01em; }
.login-sub { text-align: center; color: var(--muted); font-size: 13px; margin: 6px 0 22px; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-form label { display: flex; flex-direction: column; font-size: 12px; font-weight: 600; color: var(--muted); gap: 6px; }
.login-form input { font-size: 15px; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); transition: border-color .12s, box-shadow .12s; }
.login-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.btn-ms { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: #fff; color: #1f2937; border: 1px solid #d1d5db; padding: 11px 14px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; text-decoration: none; box-shadow: var(--shadow-sm); transition: background .12s, box-shadow .12s; }
.btn-ms:hover { background: #f7f8fc; box-shadow: var(--shadow); }
.login-ou { display: flex; align-items: center; text-align: center; color: var(--muted); font-size: 12px; margin: 16px 0; }
.login-ou::before, .login-ou::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.login-ou span { padding: 0 12px; }

/* ---------- flash ---------- */
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 500; font-size: 13.5px; }
.flash-ok  { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-erro{ background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.flash-info{ background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(184px, 1fr)); gap: 16px; margin-bottom: 22px; }
.kpi {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px 18px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 5px;
    border-top: 3px solid #94a3b8; position: relative; overflow: hidden;
}
.kpi-danger { border-top-color: var(--danger); }
.kpi-warn   { border-top-color: var(--warn); }
.kpi-ok     { border-top-color: var(--ok); }
a.kpi { text-decoration: none; color: inherit; transition: transform .1s ease, box-shadow .14s ease, border-color .14s ease; }
a.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.kpi-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.kpi-value { font-size: 25px; font-weight: 800; letter-spacing: -.02em; }
.kpi-sub   { font-size: 12px; color: var(--muted); }
.kpi.kpi-t-red    { border-top-color: var(--danger); }
.kpi.kpi-t-blue   { border-top-color: var(--blue); }
.kpi.kpi-t-orange { border-top-color: var(--warn); }
.kpi.kpi-t-gray   { border-top-color: #94a3b8; }
.kpi.kpi-t-purple { border-top-color: #7c3aed; }
.kpi.kpi-t-green  { border-top-color: var(--ok); }

/* ---------- filtros ---------- */
.filtros { padding: 16px 18px; }
.filtros-form { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: flex-end; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld-grow { flex: 1 1 240px; min-width: 220px; }
.fld-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.filtros select, .filtros input[type=date], .filtros input[type=month],
.filtros input[type=number], .filtros input[type=text] {
    font-size: 14px; height: 40px; padding: 0 12px; border: 1px solid var(--line);
    border-radius: var(--radius-sm); background: #fff; color: var(--ink); transition: border-color .12s, box-shadow .12s; font-family: inherit;
}
.filtros select:focus, .filtros input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.fld-grow select { width: 100%; }
.fld-actions { flex-direction: row; gap: 8px; margin-left: auto; }
.fld-actions .btn, .fld-actions .btn-ghost { height: 40px; display: inline-flex; align-items: center; }
.periodo { display: flex; align-items: center; gap: 8px; }
.periodo-sep { color: var(--muted); font-size: 12px; }

/* chips de situação */
.chips { display: flex; gap: 8px; height: 40px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; -webkit-user-select: none; user-select: none; transition: all .12s ease; }
.chip:hover { border-color: #d3d7e0; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; }
.chip-red .dot { background: var(--danger); }
.chip-blue .dot { background: var(--blue); }
.chip-green .dot { background: var(--ok); }
.chip-amber .dot { background: #7c3aed; }
.chip:not(:has(input:checked)) { opacity: .5; }
.chip-red:has(input:checked)   { color: var(--danger); border-color: #fecaca; background: #fef2f2; }
.chip-blue:has(input:checked)  { color: var(--blue);   border-color: #bfdbfe; background: #eff6ff; }
.chip-green:has(input:checked) { color: var(--ok);     border-color: #a7f3d0; background: #ecfdf5; }
.chip-amber:has(input:checked) { color: #6b21a8;        border-color: #e9d5ff; background: #f5f3ff; }

/* ---------- chart ---------- */
.chart { display: flex; align-items: flex-end; gap: 10px; margin-top: 18px; padding-top: 22px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.chart .col { flex: 1 1 0; min-width: 46px; display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.chart .col-val { font-size: 10px; font-weight: 700; color: var(--muted); margin-bottom: 4px; white-space: nowrap; }
.chart .col-stack { width: 72%; max-width: 46px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 7px 7px 0 0; overflow: hidden; background: var(--bg-2); transition: filter .1s; }
.chart .seg-avencer { background: linear-gradient(180deg,#60a5fa,#2563eb); }
.chart .seg-vencido { background: linear-gradient(180deg,#f87171,#dc2626); }
.chart .seg-aguardando { background: linear-gradient(180deg,#a78bfa,#7c3aed); }
.chart .seg-pago { background: linear-gradient(180deg,#34d399,#059669); }
.chart .col-label { font-size: 11px; color: var(--ink); margin-top: 6px; font-weight: 600; white-space: nowrap; }
.chart .col:hover .col-stack { outline: 2px solid var(--brand); outline-offset: 2px; }

.legenda { display: flex; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.legenda .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }
.dot-red { background: var(--danger); }
.dot-blue { background: var(--blue); }
.dot-purple { background: #7c3aed; }
.dot-green { background: var(--ok); }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--brand); color: #fff; text-decoration: none; border: 0; padding: 10px 18px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; font-family: inherit; cursor: pointer; box-shadow: 0 1px 2px rgba(16,24,40,.12); transition: background .12s, transform .06s, box-shadow .12s; }
.btn:hover { background: var(--brand-600); box-shadow: 0 4px 12px -2px rgba(79,70,229,.4); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: #fff; color: var(--danger); border: 1px solid #fecaca; box-shadow: none; }
.btn-ghost:hover { background: #fef2f2; }
.btn-mini { display: inline-flex; align-items: center; background: var(--bg-2); color: var(--ink-2); text-decoration: none; padding: 6px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: background .12s, color .12s; }
.btn-mini:hover { background: var(--brand); color: #fff; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }
.card h2 { margin: 0 0 16px; font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---------- barras ---------- */
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 170px 1fr 150px; align-items: center; gap: 12px; }
.bar-label { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-label a, table td a { color: var(--brand); text-decoration: none; }
.bar-label a:hover, table td a:hover { text-decoration: underline; }
.bar-track { background: var(--bg-2); border-radius: 6px; height: 20px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #f87171, #dc2626); border-radius: 6px; }
.bar-fill-blue { background: linear-gradient(90deg, #60a5fa, #2563eb); }
.bar-val { font-size: 13px; font-weight: 700; text-align: right; }
.bar-val small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }

.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.mini-kpis > div { background: #f8fafc; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 12px; text-align: center; }
.mk-num { display: block; font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.mk-lbl { display: block; font-size: 11px; color: var(--muted); }

/* ---------- tabelas ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
thead th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; background: #fbfbfd; border-bottom: 1px solid var(--line); }
td.num, th.num { text-align: right; }
tbody tr { transition: background .08s; }
tbody tr:hover { background: #f7f8fc; }
.table-wrap td { white-space: normal; word-break: break-word; }
.table-wrap td.num { white-space: nowrap; }
.table-wrap td .pill, .table-wrap td .tag, .table-wrap td code, .table-wrap td a { white-space: nowrap; }

/* pivô: cabeçalho + 1ª coluna fixos */
.pivot { font-size: 12.5px; }
.pivot th, .pivot td { font-size: 12.5px; }
.pivot thead th { position: sticky; top: 0; background: #fbfbfd; z-index: 2; }
.pivot .sticky-col { position: sticky; left: 0; background: #fff; z-index: 1; text-align: left; min-width: 190px; box-shadow: 1px 0 0 var(--line); }
.pivot thead .sticky-col { z-index: 3; background: #fbfbfd; }
.pivot tfoot td { position: sticky; bottom: 0; background: #f4f6fb; font-weight: 700; border-top: 1px solid var(--line); }
.pivot tfoot .sticky-col { z-index: 3; background: #f4f6fb; }

/* árvore Categoria → Subcategoria → Fornecedor */
.tree .tree-cat { cursor: pointer; background: #eef0f6; }
.tree .tree-cat:hover { background: #e7e9f2; }
.tree .tree-cat .sticky-col { background: #eef0f6; }
.tree .tree-sub { cursor: pointer; }
.tree .tree-sub:hover { background: #f7f8fc; }
.tree .tree-forn td { color: var(--ink); }
.tree .tree-forn .sticky-col { font-weight: 400; }
.tw-caret { display: inline-block; width: 12px; color: var(--muted); font-size: 10px; }

/* programação diária/semanal */
.prog th.num, .prog td.num { min-width: 82px; }
.prog .col-fds { background: #f6f7fb; }
.prog thead .col-fds { background: #eceff5; }
.prog .col-total { background: #fbfcff; }
.prog .col-venp { background: #fbfdff; }
.prog thead .col-total, .prog thead .col-venc, .prog thead .col-venp, .prog thead .col-vfora { background: #f4f6fb; }
.prog .prog-cat { cursor: pointer; background: #eef0f6; }
.prog .prog-cat:hover { background: #e6e9f2; }
.prog .ac-dia { color: #7c3aed; font-weight: 600; font-size: 11px; }
.prog .col-acordo { background: #faf7ff; }
.prog .col-acpago { background: #f4fdf8; }
.prog thead .col-acordo, .prog thead .col-acpago { background: #f4f6fb; }
.prog .prog-cat .sticky-col, .prog .prog-cat .col-total, .prog .prog-cat .col-venc, .prog .prog-cat .col-venp, .prog .prog-cat .col-vfora, .prog .prog-cat .col-acordo, .prog .prog-cat .col-acpago { background: #eef0f6; }

/* ---------- tags e pills ---------- */
.tag { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px; vertical-align: middle; }
.tag-ti    { background: var(--brand-50); color: #4338ca; }
.tag-geral { background: #f0fdf4; color: #15803d; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--bg-2); color: var(--muted); }
.pill-danger { background: #fee2e2; color: #b91c1c; }
.pill-warn   { background: #fef3c7; color: #b45309; }
.pill-ok     { background: #d1fae5; color: #047857; }

/* ---------- upload ---------- */
.upload-form { display: flex; flex-direction: column; gap: 18px; }
.upload-field { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
.uf-title { display: block; font-weight: 600; margin-bottom: 6px; }
.upload-field input[type=file] { display: block; font-size: 13px; }
.upload-field input[type=file]::file-selector-button { font-family: inherit; font-weight: 600; font-size: 13px; padding: 8px 12px; margin-right: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; }
.upload-actions { display: flex; gap: 10px; align-items: center; }
.pastas { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.pasta-item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; background: #fafbff; }
.pasta-head { font-weight: 600; margin-bottom: 8px; }
.pasta-path { display: block; font-size: 12px; word-break: break-all; background: #fff; border: 1px solid var(--line); padding: 7px 9px; border-radius: 7px; margin-bottom: 8px; }
.pasta-status { font-size: 12px; }
.cols-list { margin: 8px 0; padding-left: 18px; }
.cols-list li { margin-bottom: 4px; }
code { background: var(--bg-2); padding: 1px 6px; border-radius: 5px; font-size: 12px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

.muted { color: var(--muted); }
.small { font-size: 12px; }

.empty { text-align: center; padding: 64px 20px; }
.empty h1 { font-size: 22px; margin-bottom: 8px; }
.empty p { color: var(--muted); margin-bottom: 22px; }

/* acordos */
.acordo-forn { padding: 16px 18px; }
.af-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.af-head code { margin-left: 6px; }
.af-tot { font-size: 13px; color: var(--muted); }
.af-tot strong { font-size: 13.5px; }
.parc-linha { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 8px; }
#novoAcordo > summary { list-style: none; }
#novoAcordo > summary::-webkit-details-marker { display: none; }

/* usuários & acessos */
.user-list { display: flex; flex-direction: column; }
.user-row { display: grid; grid-template-columns: 1.6fr 1.8fr 1fr .9fr 1.3fr .85fr 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.user-head { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.user-row select { height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-family: inherit; font-size: 13px; }
.chk-inline { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; margin-right: 10px; cursor: pointer; }
.btn-mini-danger { background: #fee2e2; color: #b91c1c; }
.btn-mini-danger:hover { background: var(--danger); color: #fff; }
@media (max-width: 980px) { .user-row { grid-template-columns: 1fr 1fr; } .user-head { display: none; } }

.rodape { text-align: center; color: var(--muted); font-size: 12px; padding: 24px; }

@media (max-width: 980px) {
    .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
    .sidebar.open { transform: translateX(0); }
    .main { margin-left: 0; }
    .side-toggle { display: inline-flex; align-items: center; }
}
@media (max-width: 860px) {
    .container { padding: 20px 16px 36px; }
    .kpis { grid-template-columns: 1fr 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .bar-row { grid-template-columns: 110px 1fr 110px; }
    .fld-actions { margin-left: 0; }
    .pastas { grid-template-columns: 1fr; }
}

/* ---- Previsão de pagamento (amarelo) ---- */
.previsto-val { color:#a16207; font-weight:600; }        /* valores previstos (não faturados) em amarelo/âmbar */
.previsto-tag {
    display:inline-block; background:#fef9c3; color:#a16207;
    font-weight:700; padding:0 7px; border-radius:6px; font-size:.92em;
}
.sync-bar {
    display:flex; align-items:center; justify-content:space-between;
    flex-wrap:wrap; gap:12px; border-left:4px solid #ca8a04;
}
.sync-info { display:flex; align-items:center; gap:12px; }
.sync-ic { font-size:26px; line-height:1; }
.btn-sync { background:#ca8a04; border-color:#ca8a04; color:#fff; }
.btn-sync:hover { background:#a16207; border-color:#a16207; }
.prev-dia { color:#a16207; font-weight:600; font-size:11px; }        /* previsão (não faturado) nos dias, em amarelo */
.col-previsao { background:#fefce8; }                                /* coluna Previsão levemente destacada (amarelo) */
.forn-link .forn-name { color:#2563eb; }
.forn-link:hover td { background:#eff6ff; }
.af-caret { display:inline-block; width:1em; color:var(--muted); margin-right:2px; font-size:12px; }
.acordo-forn.collapsed .af-head { opacity:.9; }
/* célula de dia clicável na Programação */
.day-link { cursor:pointer; transition:background .1s; }
.day-link:hover { background:#eff6ff; box-shadow: inset 0 0 0 1px #bfdbfe; }
.col-previsao.prev-link:hover { background:#fef9c3; box-shadow: inset 0 0 0 1px #fde68a; }
.adt-dia { color:#0f766e; font-weight:600; font-size:11px; }   /* acordo-adiantamento nos dias (verde-azulado) */
.col-adt { background:#f0fdfa; }                               /* coluna Adiant. levemente destacada */
