@font-face {
    font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
    src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
    src: url("../fonts/space-grotesk-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --navy: #12292D;
    --navy-mid: #12292D;
    --navy-dark: #0A1A1D;
    --navy-hover: #1B3A3F;
    --accent-tint: #E8EEEC;
    --green: #12292D;
    --green-dark: #2E7D32;
    --green-text: #2E7D32;
    --green-tint: #E6F4E3;
    --lime: #C6F432;
    --lime-dark: #A9D61B;
    --lime-tint: #F1FAD2;
    --lime-ink: #3B5200;
    --gold: #B7791F;
    --gold-dark: #7A5A12;
    --gold-ink: #3A2A08;
    --gold-tint: #FBF1DC;
    --blue: #12292D;
    --blue-soft: #E8EEEC;
    --page-bg: #F3F5F2;
    --card-bg: #FFFFFF;
    --card-border: #E3E8E4;
    --panel-bg: #FFFFFF;
    --kpi-blue-bg: #FFFFFF;
    --kpi-green-bg: #E6F4E3;
    --kpi-green-border: #C3E3BD;
    --text: #0E1719;
    --text-muted: #5B6A68;
    --input-border: #D3DAD5;
    --statusbar-bg: #FFFFFF;
    --statusbar-border: #E3E8E4;
    --white: #FFFFFF;
    --red: #B42318;
    --red-tint: #FDECEA;
    --amber-bg: #FBF1DC;
    --amber-text: #7A5A12;
    --shadow: none;
    --r: 0;
    --r-lg: 0;
    --tabbar-h: 66px;
    --side-w: 250px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    margin: 0; padding: 0;
    font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--page-bg);
    color: var(--text);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

.ic { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: middle; }

h1 { font-size: 1.15rem; margin: 0; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--blue); }

.cli-pick { display: flex; align-items: center; gap: .4rem; position: relative; }
.cli-pick > input { flex: 1; min-width: 0; cursor: pointer; padding-right: 2rem !important; text-overflow: ellipsis; }
.cli-pick > .erp-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); padding: .3rem .55rem; font-size: .8rem; background: transparent; color: var(--text-muted); }
.bc-backdrop { position: fixed; inset: 0; background: rgba(16,24,28,.45); z-index: 1000;
    display: flex; align-items: flex-end; justify-content: center; }
.bc-card { background: var(--white); width: 100%; max-width: 640px; max-height: 85vh;
    border-radius: 0; display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 -6px 30px rgba(0,0,0,.22); padding-bottom: env(safe-area-inset-bottom); }
.bc-card::before { content: ""; width: 38px; height: 5px; border-radius: 0; background: #D3D9DC; margin: .55rem auto 0; flex: none; }
.bc-head { display: flex; align-items: center; justify-content: space-between; padding: .55rem 1rem .2rem;
    color: var(--text); font-weight: 700; font-size: 1.05rem; }
.bc-x { display: inline-flex; align-items: center; justify-content: center; background: #EDF0F2; border: 0; color: var(--text-muted); width: 30px; height: 30px; border-radius: 0; font-size: .85rem; line-height: 1; }
.bc-search { margin: .5rem 1rem .3rem; padding: .7rem .9rem; font-size: 1rem; font-family: inherit;
    border: 0; border-radius: 0; background: #EEF1F3; }
.bc-card .bc-search { width: auto; min-height: 44px; flex: none; }
.bc-search:focus { outline: 2px solid var(--navy); background: #fff; }
.bc-count { padding: 0 1.1rem .4rem; font-size: .76rem; color: var(--text-muted); }
.bc-list { overflow-y: auto; padding: 0 .6rem .8rem; }
.bc-row { display: block; width: 100%; text-align: left; padding: .7rem .6rem; margin: 0; font: inherit;
    background: transparent; border: 0; border-bottom: 1px solid var(--card-border); border-radius: 0; }
.bc-row:active { background: #F5F7F8; }
.bc-row.bc-sel { background: var(--accent-tint); border-radius: 0; border-bottom-color: transparent; }
.bc-row.bc-sel .bc-nome { color: var(--navy); }
.bc-nome { font-weight: 600; color: var(--text); }
.bc-sub { font-size: .8rem; color: var(--text-muted); margin-top: .1rem; }
.bc-empty { text-align: center; color: var(--text-muted); padding: 1.2rem; }
@media (min-width: 620px) { .bc-backdrop { align-items: center; } .bc-card { border-radius: 0; } .bc-card::before { display: none; } .bc-head { padding-top: 1rem; } }

.analise-tot { background: var(--card-bg); border-radius: 0; box-shadow: var(--shadow); margin: .8rem 0; padding: .3rem 1rem; }
.at-row { display: grid; grid-template-columns: 1fr auto 60px; gap: .5rem; align-items: center;
    padding: .5rem 0; font-size: .86rem; border-bottom: 1px solid var(--card-border); }
.at-row:last-child { border-bottom: 0; }
.at-row > span:first-child { color: var(--text-muted); }
.at-row > b { text-align: right; font-weight: 600; }
.at-row > span:last-child { text-align: right; color: var(--text-muted); font-size: .8rem; }
.at-saldo { font-weight: 700; }
.at-saldo > span:first-child { color: var(--text); font-weight: 700; }
.at-saldo > b { font-weight: 700; font-size: .95rem; }

/* ── Pré-visualização de PDF (modal) ─────────────────────────────────────── */
.pdf-card { background: var(--white); width: 100%; max-width: 900px; height: 90vh; display: flex;
    flex-direction: column; border-radius: 0; overflow: hidden; box-shadow: 0 -6px 24px rgba(0,0,0,.28); }
.pdf-frame { flex: 1; width: 100%; border: 0; }
@media (min-width: 620px) { .pdf-card { border-radius: 0; height: 88vh; } }

.app-splash {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100vh; gap: .5rem; background: var(--page-bg); color: var(--text);
}
.app-splash-title { font-size: 1.4rem; font-weight: 700; letter-spacing: .3px; }
.app-splash-sub { opacity: .8; font-size: .9rem; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }

.conn-banner {
    display: flex; align-items: center; gap: .5rem; justify-content: center;
    background: var(--gold-tint); color: var(--gold-dark); font-size: .8rem; font-weight: 600;
    padding: .45rem .8rem; padding-top: calc(.45rem + env(safe-area-inset-top));
}
.conn-banner.off { background: var(--red-tint); color: var(--red); }
.conn-banner.fila { background: var(--accent-tint); color: var(--navy); }
.conn-banner a { color: inherit; text-decoration: underline; }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    display: flex; justify-content: space-around; align-items: stretch;
    background: rgba(255,255,255,.97); border-top: 1px solid var(--card-border);
    padding-bottom: env(safe-area-inset-bottom);
    backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.tabbar .tab {
    flex: 1; max-width: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    height: var(--tabbar-h); color: #6B7876; text-decoration: none; font-size: 11px; font-weight: 600;
}
.tabbar .tab .ic { width: 24px; height: 24px; padding: 2px 14px; box-sizing: content-box; border-radius: 0; }
.tabbar .tab.active { color: var(--text); }
.tabbar .tab.active .ic { background: var(--lime); }
.tabbar .tab-mais { flex: 1; max-width: 160px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; padding: 0; }
.tabbar .tab-mais span { width: 56px; height: 56px; border-radius: 0; background: var(--navy); color: var(--lime); display: flex; align-items: center; justify-content: center;
    margin-top: -22px; box-shadow: 0 6px 16px rgba(14,23,25,.28); border: 4px solid var(--page-bg); }
.tabbar .tab-mais .ic { width: 26px; height: 26px; }

.content { flex: 1; padding: 1rem 1rem calc(var(--tabbar-h) + 1.2rem + env(safe-area-inset-bottom)); max-width: 720px; width: 100%; margin: 0 auto; }

.sidebar { display: none; }

@media (min-width: 960px) {
    :root { --tabbar-h: 0px; }
    .app-shell { flex-direction: row; }
    .tabbar { display: none; }
    .sidebar { display: flex; flex-direction: column; width: var(--side-w); flex: none; position: sticky; top: 0; height: 100vh; overflow-y: auto;
        background: #fff; border-right: 1px solid var(--card-border); padding: 1.2rem .9rem 1rem; gap: .2rem; }
    .content { max-width: 1120px; padding: 1.6rem 2rem 2rem; }
}
.sb-marca { display: flex; align-items: center; gap: .6rem; padding: 0 .5rem .9rem; text-decoration: none; color: var(--text); }
.sb-marca img { width: 34px; height: 34px; }
.sb-marca b { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.sb-marca small { display: block; font-size: .72rem; color: var(--text-muted); font-weight: 500; }
.sb-lancar { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 46px; margin: 0 0 .8rem; border: 0; border-radius: 0;
    background: var(--lime); color: var(--text); font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; }
.sb-lancar:hover { background: var(--lime-dark); }
.sb-grupo { font-size: .68rem; font-weight: 700; letter-spacing: .08em; color: var(--text-muted); padding: .9rem .6rem .3rem; }
.sb-link { display: flex; align-items: center; gap: .65rem; padding: .55rem .6rem; border-radius: 0; color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 500; }
.sb-link .ic { width: 19px; height: 19px; color: var(--text-muted); }
.sb-link:hover { background: #F2F5F2; }
.sb-link.active { background: var(--navy); color: #fff; font-weight: 600; }
.sb-link.active .ic { color: var(--lime); }
.sb-rodape { margin-top: auto; border-top: 1px solid var(--card-border); padding: .8rem .6rem 0; display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); }
.sb-rodape .avatar { width: 34px; height: 34px; font-size: .78rem; }
.sb-rodape span { flex: 1; min-width: 0; font-size: .82rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-rodape small { display: block; color: var(--text-muted); font-weight: 500; font-size: .72rem; }

.lanc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; padding: .6rem 1rem .4rem; }
.lanc-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; min-height: 86px; border-radius: 0;
    background: #F2F5F2; color: var(--text); text-decoration: none; font-size: .82rem; font-weight: 600; text-align: center; padding: .4rem; }
.lanc-item .ic { width: 24px; height: 24px; }
.lanc-item.forte { background: var(--lime); }
.lanc-item:active, .lanc-item:hover { background: var(--accent-tint); }
.lanc-item.forte:active, .lanc-item.forte:hover { background: var(--lime-dark); }
.lanc-sub { font-size: .74rem; font-weight: 700; letter-spacing: .06em; color: var(--text-muted); padding: .8rem 1.1rem .2rem; }
.lanc-lista { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .6rem; padding: 0 1rem 1rem; }
.lanc-lista a { display: flex; align-items: center; justify-content: space-between; padding: .7rem .2rem; border-bottom: 1px solid var(--card-border); color: var(--text); text-decoration: none; font-size: .88rem; font-weight: 500; }
.lanc-lista a .ic { width: 16px; height: 16px; color: var(--text-muted); }

.page-header {
    padding: .2rem 0; margin-bottom: .9rem;
    display: flex; align-items: flex-end; justify-content: space-between; gap: .6rem;
}
.ph-title { color: var(--text); font-size: 1.65rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.ph-sub { color: var(--text-muted); font-size: .82rem; margin-top: .2rem; }
.ph-count { background: var(--accent-tint); color: var(--navy); font-size: .75rem; font-weight: 600; padding: .25rem .65rem; border-radius: 0; white-space: nowrap; }
.back-link { display: inline-flex; align-items: center; gap: .1rem; min-height: 40px; background: none; border: none; color: var(--navy); font-size: .95rem; font-weight: 500; padding: 0 .4rem 0 .3rem; margin: 0 0 .15rem -.6rem; text-align: left; }

.section { background: var(--card-bg); border: 0; padding: .9rem 1rem; margin-bottom: .8rem; border-radius: 0; box-shadow: var(--shadow); }
.section-head { display: flex; align-items: center; gap: .4rem; margin-bottom: .6rem; }
.section-head span { color: var(--text); font-weight: 600; font-size: .95rem; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-bottom: .9rem; background: var(--card-bg); border-radius: 0; box-shadow: var(--shadow); padding: .8rem .4rem; }
.kpi { background: transparent; border: 0; padding: 0 .6rem; border-left: 1px solid var(--card-border); min-width: 0; }
.kpi:first-child { border-left: 0; }
.k-lbl, .kpi .k-lbl { display: block; font-size: .74rem; font-weight: 500; color: var(--text-muted); }
.k-val, .kpi .k-val { display: block; font-size: 1.05rem; font-weight: 700; color: var(--text); margin-top: .15rem; letter-spacing: -.01em; line-height: 1.2; white-space: nowrap; }
.kpi.green .k-val { color: var(--navy); }
.kpis-4 { grid-template-columns: repeat(2, 1fr); row-gap: .8rem; }
.kpis-4 .kpi:nth-child(3) { border-left: 0; }
@media (min-width: 560px) { .kpis-4 { grid-template-columns: repeat(4, 1fr); } .kpis-4 .kpi:nth-child(3) { border-left: 1px solid var(--card-border); } }

.atalhos { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin-bottom: .9rem; }
@media (min-width: 560px) { .atalhos { grid-template-columns: repeat(4, 1fr); } }
.atalho { display: flex; align-items: center; justify-content: center; gap: .45rem; text-decoration: none;
    background: var(--navy); color: #fff; font-weight: 600; font-size: .9rem; padding: .75rem .6rem; border-radius: 0; }
.atalho:active { background: var(--navy-dark); }
.atalho .a-ic { font-size: 1.05rem; line-height: 1; }
.mini-link { font-size: .78rem; color: var(--navy); text-decoration: none; background: var(--accent-tint);
    border-radius: 0; padding: .2rem .65rem; white-space: nowrap; font-weight: 600; }
.mini-link:active { background: #CDE6E9; }

.home-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .2rem; }
.home-top .ht-data { font-size: .82rem; color: var(--text-muted); font-weight: 500; }
.status-pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 600; padding: .22rem .65rem; border-radius: 0; background: var(--green-tint); color: var(--green-dark); }
.status-pill .d { width: 7px; height: 7px; border-radius: 0; background: currentColor; }
.status-pill.off { background: var(--red-tint); color: var(--red); }
.home-title { font-size: 1.85rem; font-weight: 700; letter-spacing: -.02em; margin: .3rem 0 .9rem; line-height: 1.15; }

.home-hero { background: var(--navy); color: #fff; border-radius: 0; padding: 1rem 1.15rem 1.05rem; margin-bottom: 1.1rem; }
.home-hero .hh-lbl { font-size: .8rem; color: #CFE6EA; font-weight: 500; }
.home-hero .hh-valor { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-top: .1rem; }
.home-hero .hh-linha { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .8rem; }
.home-hero .hh-chip { background: rgba(255,255,255,.14); color: #fff; font-size: .76rem; font-weight: 500; padding: .28rem .65rem; border-radius: 0; }
.home-hero .hh-chip.alerta { background: #FDECEA; color: var(--red); font-weight: 600; }

.home-sec { display: flex; align-items: baseline; justify-content: space-between; font-size: 1.08rem; font-weight: 700; color: var(--text); margin: 1.1rem .1rem .55rem; letter-spacing: -.01em; }
.home-sec small { font-size: .8rem; font-weight: 500; color: var(--text-muted); }
.home-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem;
    aspect-ratio: 1 / .9; text-decoration: none; border-radius: 0; padding: .5rem; text-align: center;
    background: var(--card-bg); color: var(--text); box-shadow: var(--shadow); }
.tile:active { background: var(--accent-tint); }
.tile svg { width: 26px; height: 26px; color: var(--navy); stroke: var(--navy); }
.tile .t-lbl { font-size: .8rem; font-weight: 600; line-height: 1.15; }

.search {
    width: 100%; padding: .7rem .9rem; margin-bottom: .8rem;
    border: 0; border-radius: 0; background: #E6EAEC;
    font-size: 1rem; font-family: inherit; color: var(--text);
}
.search::placeholder { color: #7D878C; }
.search:focus { outline: 2px solid var(--navy); background: #fff; }

.lista { display: flex; flex-direction: column; gap: .5rem; }
.card { background: var(--card-bg); border: 0; overflow: hidden; border-radius: 0; box-shadow: var(--shadow); }
.card-btn, button.card {
    width: 100%; text-align: left; background: var(--card-bg); border: none; padding: .8rem .95rem; display: block; font: inherit; color: inherit;
}
.card-btn:active, button.card:active { background: #F5F7F8; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.card-title { font-weight: 600; font-size: .95rem; color: var(--text); }
.card-sub { color: var(--text-muted); font-size: .8rem; margin-top: .2rem; }
.card-row { display: flex; align-items: center; justify-content: space-between; margin-top: .45rem; font-size: .85rem; color: var(--text-muted); }
.card-row .valor, .valor { font-weight: 700; color: var(--text); }

.linha-cli { display: flex; align-items: center; gap: .75rem; width: 100%; text-align: left; background: var(--card-bg); border: 0; border-radius: 0;
    padding: .75rem .9rem; box-shadow: var(--shadow); text-decoration: none; color: inherit; font: inherit; cursor: pointer; }
.linha-cli:active { background: #F5F7F8; }
.linha-cli .lc-txt { flex: 1; min-width: 0; }
.linha-cli .lc-txt b { display: block; font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linha-cli .lc-txt small { display: block; color: var(--text-muted); font-size: .8rem; margin-top: .1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linha-cli > .ic { color: #B3BBBF; }
.avatar { width: 40px; height: 40px; border-radius: 0; flex: none; display: flex; align-items: center; justify-content: center;
    background: var(--accent-tint); color: var(--navy); font-weight: 700; font-size: .85rem; letter-spacing: .02em; }
.avatar.lg { width: 56px; height: 56px; font-size: 1.1rem; }
.avatar.vermelho { background: var(--red-tint); color: var(--red); }
.avatar.ambar { background: var(--gold-tint); color: var(--gold-dark); }

.chip { font-size: .72rem; font-weight: 600; color: var(--text-muted); border-radius: 0; padding: .16rem .6rem; white-space: nowrap; background: #EDF0F2; }
.tag-origem { display: inline-block; font-size: .62rem; font-weight: 600; padding: .05rem .45rem; border-radius: 0; margin-left: .4rem; color: var(--navy); background: var(--accent-tint); vertical-align: middle; }
.tag-origem.desktop { background: #EDF0F2; color: var(--text-muted); }
.chip.status-faturado, .chip.status-lancado, .chip.status-concluída, .chip.status-concluida,
.chip.status-realizada, .chip.status-aprovada, .chip.status-atendida, .chip.status-atendido { background: var(--green-tint); color: var(--green-dark); }
.chip.status-parcial, .chip.status-agendada, .chip.status-aberta { background: var(--accent-tint); color: var(--navy); }
.chip.status-pendente, .chip.status-enviado { background: var(--gold-tint); color: var(--gold-dark); }
.chip.status-cancelado, .chip.status-cancelada, .chip.status-recusada { background: var(--red-tint); color: var(--red); }
.chip.status-expirada { background: #EDF0F2; color: var(--text-muted); }

.itens { border-top: 1px solid var(--card-border); background: #FAFBFC; }
.item { padding: .5rem .75rem; border-bottom: 1px solid #E4E9ED; }
.item:last-child { border-bottom: none; }
.item-nome { font-size: .84rem; font-weight: 600; color: var(--text); }
.item-row { display: flex; gap: .7rem; justify-content: space-between; margin-top: .25rem; font-size: .78rem; color: var(--text-muted); }
.item-row .valor { font-weight: 700; color: var(--blue); }

.grade { width: 100%; border-collapse: collapse; font-size: .82rem; background: #fff; }
.grade th { background: #F5F7F8; color: var(--text-muted); font-weight: 600; font-size: .74rem; text-align: left; padding: .5rem .55rem; border-bottom: 1px solid var(--card-border); }
.grade th.num, .grade td.num { text-align: right; }
.grade td { padding: .45rem .55rem; border-bottom: 1px solid var(--card-border); }

.subtabs2 { display: flex; gap: 2px; margin-bottom: .9rem; background: #E4E8EA; border-radius: 0; padding: 3px; }
.subtab2 { flex: 1; text-align: center; padding: .45rem .7rem; font-size: .84rem; font-weight: 500; background: transparent; border: 0; border-radius: 0; color: #4D575C; cursor: pointer; }
.subtab2.active { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(16,24,28,.12); }

.prod-card { background: #fff; border-radius: 0; box-shadow: var(--shadow); padding: .8rem .95rem; }
.prod-card .pc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.prod-card .pc-nome { font-weight: 600; font-size: .95rem; color: var(--text); }
.prod-card .pc-vol { display: flex; flex-direction: column; margin: .5rem 0; }
.prod-card .pc-vol-num { font-size: 1.5rem; font-weight: 700; color: var(--navy); line-height: 1.1; letter-spacing: -.01em; }
.prod-card .pc-vol-num small { font-size: .78rem; font-weight: 600; color: var(--text-muted); margin-left: .3rem; }
.prod-card .pc-vol-lbl { font-size: .74rem; color: var(--text-muted); font-weight: 500; margin-top: .1rem; }
.prod-card .pc-foot { display: flex; justify-content: space-between; font-size: .82rem; color: var(--text-muted); border-top: 1px solid var(--card-border); padding-top: .5rem; }
.prod-card .pc-foot .valor { font-weight: 700; color: var(--text); }

.page-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .7rem; }
.back { background: none; border: none; color: var(--navy); font-size: .95rem; padding: .2rem .3rem; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.2rem; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%); }
.login-card { background: #fff; padding: 1.6rem 1.3rem; width: 100%; max-width: 360px; border: 1px solid #46534F; box-shadow: 0 12px 34px rgba(0,0,0,.28); }
.login-card h1 { text-align: center; color: var(--navy); margin-top: .6rem; font-size: 1.25rem; }
.login-card .sub { text-align: center; color: var(--green-text); font-size: .68rem; letter-spacing: 2px; font-weight: 700; margin: .25rem 0 1.1rem; }
.login-logo { display: block; width: 60px; height: 60px; margin: 0 auto; }
.login-card label { display: block; font-size: .76rem; color: var(--text-muted); margin: .55rem 0 .25rem; font-weight: 600; }
.login-card input { width: 100%; padding: .65rem .8rem; border: 1px solid var(--input-border); border-radius: 0; font-size: 1rem; }
.login-card input:focus { outline: 2px solid var(--blue); border-color: var(--blue); }

.btn-primary { width: 100%; margin-top: 1.1rem; padding: .8rem; background: var(--lime); color: var(--text); font-weight: 700; border: 0; border-radius: 0; font-size: 1rem; font-weight: 600; }
.btn-primary:active { background: var(--lime-dark); }
.btn-primary:disabled { opacity: .55; }
.btn-green { background: var(--green-dark); }
.btn { background: var(--accent-tint); color: var(--navy); border: 0; border-radius: 0; padding: .55rem .9rem; font-size: .88rem; font-weight: 600; }
.btn:active { background: #CDE6E9; }

.form-group { margin-bottom: .75rem; }
.form-group > label { display: block; font-size: .78rem; color: var(--text-muted); margin: 0 0 .3rem .15rem; font-weight: 500; }
.form-control, select.form-control, textarea.form-control {
    width: 100%; min-height: 44px; padding: .6rem .8rem; border: 0; border-radius: 0;
    font-size: 1rem; background: #EEF1F3; font-family: inherit; color: var(--text);
}
.form-control:focus { outline: 2px solid var(--navy); background: #fff; }
textarea.form-control { min-height: 5rem; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .6rem; }
.secao-titulo { display: flex; align-items: baseline; justify-content: space-between; color: var(--text); font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; margin: 1.2rem .1rem .55rem; }
.secao-titulo small { font-size: .8rem; font-weight: 500; color: var(--text-muted); }

.total-bar { display: flex; justify-content: space-between; align-items: center; background: var(--navy); color: #fff; padding: .85rem 1.1rem; margin-top: .8rem; border-radius: 0; }
.total-bar .tb-val { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }

.erp { background: var(--card-bg); border-radius: 0; box-shadow: var(--shadow); padding: 1rem; margin-bottom: .8rem; }
.erp-titulo { font-weight: 700; font-size: 1rem; letter-spacing: -.01em; margin: 0 0 .7rem; }
.field-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem .6rem; }
.field-grid.c2 { grid-template-columns: repeat(2, 1fr); }
.field-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.field-grid .span2 { grid-column: span 2; }
.field-grid .span3 { grid-column: span 3; }
.field-grid .span4 { grid-column: 1 / -1; }

.field { min-width: 0; }
.field > label { display: block; font-size: .78rem; color: var(--text-muted); font-weight: 500; margin: 0 0 .3rem .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field input, .field select, .field textarea {
    width: 100%; min-height: 44px; border: 0; outline: 0; border-radius: 0; background: #EEF1F3;
    font-family: inherit; font-size: 1rem; padding: .6rem .8rem; color: var(--text); -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23687378' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .7rem center; background-size: 16px; padding-right: 2.1rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--navy); background-color: #fff; }
.field input::placeholder, .field textarea::placeholder { color: #8C969B; }
.field textarea { min-height: 5rem; resize: vertical; }
.field.ro .val { font-size: .95rem; font-weight: 600; color: var(--text); padding: .1rem .15rem; }
.field.hl .val { color: var(--red); }

.resumo-doc { display: flex; flex-wrap: wrap; gap: .35rem; margin: -.3rem 0 .9rem; }
.resumo-doc .chip { font-size: .74rem; }
.resumo-doc .chip.forte { background: var(--gold-tint); color: var(--gold-dark); }

.subtabs { display: flex; gap: 2px; margin: 0 0 .8rem; background: #E4E8EA; border-radius: 0; padding: 3px; overflow-x: auto; scrollbar-width: none; }
.subtabs::-webkit-scrollbar { display: none; }
.subtab { flex: 1 0 auto; text-align: center; padding: .45rem .7rem; font-size: .84rem; font-weight: 500; border-radius: 0; cursor: pointer; color: #4D575C; white-space: nowrap; }
.subtab.active { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(16,24,28,.12); }
.subtab-body { background: var(--card-bg); border-radius: 0; box-shadow: var(--shadow); padding: 1rem; margin-bottom: .8rem; }

.prod-wrap { overflow-x: auto; border-radius: 0; box-shadow: var(--shadow); background: #fff; }
.prod-grid { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .8rem; }
.prod-grid th { background: #F5F7F8; color: var(--text-muted); font-weight: 600; font-size: .72rem; text-align: left; padding: .5rem .5rem; white-space: nowrap; border-bottom: 1px solid var(--card-border); }
.prod-grid th.num { text-align: right; }
.prod-grid td { border-bottom: 1px solid var(--card-border); padding: .35rem .5rem; vertical-align: middle; }
.prod-grid input, .prod-grid select { width: 100%; border: 0; border-radius: 0; font-family: inherit; font-size: .82rem; padding: .4rem .45rem; background: #EEF1F3; }
.prod-grid input.num { text-align: right; }
.prod-grid .col-total { text-align: right; font-weight: 700; color: var(--text); white-space: nowrap; }
.rmbtn, .prod-grid .rmbtn { background: var(--red-tint); color: var(--red); border: 0; border-radius: 0; width: 30px; height: 30px; padding: 0; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.rmbtn .ic { width: 15px; height: 15px; }
.prod-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--card-border); padding: .6rem .8rem; font-size: .82rem; flex-wrap: wrap; gap: .4rem; color: var(--text-muted); }

.item-card { background: var(--card-bg); border-radius: 0; box-shadow: var(--shadow); padding: .85rem .95rem; margin-bottom: .6rem; }
.item-card .ic-topo { display: flex; align-items: center; gap: .5rem; margin-bottom: .65rem; }
.item-card .ic-topo .cli-pick { flex: 1; min-width: 0; }
.item-card .ic-topo input { width: 100%; min-height: 44px; border: 0; border-radius: 0; background: #EEF1F3; font: inherit; font-size: .95rem; font-weight: 600; padding: .6rem .8rem; color: var(--text); }
.item-card .ic-nums { display: grid; grid-template-columns: 1fr 1.25fr .8fr; gap: .5rem; }
.item-card .ic-nums label { display: block; font-size: .72rem; color: var(--text-muted); font-weight: 500; margin: 0 0 .25rem .15rem; }
.item-card .ic-nums input { width: 100%; min-height: 42px; border: 0; border-radius: 0; background: #EEF1F3; font: inherit; font-size: 1rem; padding: .5rem .65rem; text-align: right; color: var(--text); }
.item-card input:focus { outline: 2px solid var(--navy); background: #fff; }
.item-card .ic-total { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .7rem; padding-top: .6rem; border-top: 1px solid var(--card-border); }
.item-card .ic-total b { font-size: 1.05rem; }
.item-card .ic-analise { display: flex; flex-wrap: wrap; gap: .25rem .8rem; margin-top: .35rem; font-size: .76rem; color: var(--text-muted); }
.item-card .ic-analise b { font-weight: 600; color: var(--text); }
.item-card .ic-ha { display: grid; grid-template-columns: 1fr 1.3fr; gap: .5rem; margin-top: .55rem; align-items: end; }
.item-card .ic-ha label { display: block; font-size: .72rem; color: var(--text-muted); font-weight: 500; margin: 0 0 .25rem .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-card .ic-ha span { display: block; font-size: 1rem; font-weight: 700; color: var(--navy); padding: .55rem .15rem; }
.item-card .ic-ha input { width: 100%; min-height: 42px; border: 0; border-radius: 0; background: #EEF1F3; font: inherit; font-size: 1rem; padding: .5rem .65rem; text-align: right; color: var(--text); }
.seg-titulo { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin: .9rem .2rem .45rem; }
.seg-titulo span { font-weight: 700; font-size: .95rem; color: var(--navy); }
.seg-titulo small { font-size: .78rem; color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.resumo-ha { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--navy); color: #fff; border-radius: 0; padding: .85rem .4rem; margin-top: .8rem; }
.resumo-ha > div { padding: 0 .7rem; border-left: 1px solid rgba(255,255,255,.18); min-width: 0; }
.resumo-ha > div:first-child { border-left: 0; }
.resumo-ha small { display: block; font-size: .74rem; color: #CFE6EA; }
.resumo-ha b { display: block; font-size: 1.05rem; font-weight: 700; white-space: nowrap; }
.add-item { width: 100%; display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .8rem; background: transparent; color: var(--navy);
    border: 1.5px dashed #B9D3D7; border-radius: 0; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; }
.add-item:active { background: var(--accent-tint); }

.mg { font-weight: 600; padding: .12rem .5rem; border-radius: 0; white-space: nowrap; font-size: .74rem; display: inline-block; }
.mg-verde { background: var(--green-tint); color: var(--green-dark); }
.mg-amarelo { background: var(--gold-tint); color: var(--gold-dark); }
.mg-vermelho { background: var(--red-tint); color: var(--red); }
.mg-cinza { background: #EDF0F2; color: var(--text-muted); }

.acoes-sec { display: flex; gap: .5rem; margin-top: .8rem; flex-wrap: wrap; }
.acoes-sec .erp-btn { flex: 1; }
.erp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; background: rgba(255,255,255,.96); border-radius: 0; box-shadow: 0 2px 12px rgba(16,24,28,.12); padding: .55rem; position: sticky; bottom: calc(var(--tabbar-h) + .6rem + env(safe-area-inset-bottom)); margin-top: .8rem; }
.erp-actions .grow { flex: 1; }
.erp-actions .ea-total { display: flex; flex-direction: column; padding: 0 .4rem; line-height: 1.15; }
.erp-actions .ea-total small { font-size: .72rem; color: var(--text-muted); }
.erp-actions .ea-total b { font-size: 1.08rem; letter-spacing: -.01em; white-space: nowrap; }
.erp-btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 40px; background: var(--accent-tint); color: var(--navy); border: 0; border-radius: 0; padding: .55rem .95rem; font-size: .88rem; font-weight: 600; cursor: pointer; text-decoration: none; font-family: inherit; }
.erp-btn:active { background: #CDE6E9; }
.erp-btn:disabled { opacity: .55; }
.erp-btn.primary { background: var(--lime); color: var(--text); min-height: 46px; font-size: .95rem; font-weight: 700; }
.erp-btn.primary:active, .erp-btn.primary:hover { background: var(--lime-dark); }
.erp-btn.sutil { background: #EDF0F2; color: var(--text); }

@media (max-width: 640px) {
    .field-grid, .field-grid.c2, .field-grid.c3 { grid-template-columns: 1fr 1fr; }
    .field-grid .span3, .field-grid .span4 { grid-column: 1 / -1; }
}

.loading, .vazio, .erro { text-align: center; color: var(--text-muted); padding: 1.4rem 1rem; }
.loading.sm, .vazio.sm { padding: .7rem; font-size: .82rem; }
.erro { color: var(--red); }
.erro button, .vazio button { display: block; margin: .6rem auto 0; }
.toast-ok { background: var(--kpi-green-bg); color: var(--green-dark); border-radius: 0; padding: .6rem .8rem; margin-bottom: .7rem; font-size: .86rem; }

/* ── Login split (estilo do desktop: marca à esquerda, formulário navy à direita) ── */
.login2 { min-height: 100vh; display: flex; background: #fff; }
.login2-brand {
    flex: 1; background: var(--page-bg); border-right: 1px solid var(--card-border);
    display: flex; flex-direction: column; justify-content: center; padding: 2.5rem 2.8rem;
}
.login2-brand .lb-logo { display: flex; align-items: center; gap: .85rem; }
.login2-brand .lb-logo img { width: 56px; height: 56px; }
.login2-brand .lb-title b { display: block; font-size: 1.3rem; font-weight: 800; color: var(--navy); line-height: 1.02; letter-spacing: .4px; }
.login2-brand .lb-underline { width: 100px; height: 3px; background: var(--lime-dark); margin-top: .45rem; }
.login2-brand .lb-sub { font-size: .74rem; font-weight: 700; color: #6D807C; margin-top: 1.4rem; }
.login2-brand .lb-tag { font-size: .82rem; color: #6D807C; margin-top: .45rem; max-width: 270px; line-height: 1.45; }
.login2-brand .lb-bar { width: 240px; height: 3px; background: var(--lime-dark); margin-top: 1.6rem; }

.login2-form {
    width: 460px; max-width: 100%; background: #fff; color: var(--text);
    display: flex; flex-direction: column; justify-content: center;
    padding: 2.6rem 2.3rem; padding-top: calc(2.6rem + env(safe-area-inset-top));
}
.login2-form .brand-mobile { display: none; align-items: center; gap: .6rem; margin-bottom: 1.6rem; }
.login2-form .brand-mobile img { width: 42px; height: 42px; }
.login2-form .brand-mobile b { color: var(--navy); font-size: 1.1rem; font-weight: 800; letter-spacing: .6px; }
.login2-form h1 { color: var(--text); font-size: 1.45rem; font-weight: 700; margin: 0; }
.login2-form .lf-sub { color: var(--text-muted); font-size: .78rem; margin: .45rem 0 1.6rem; }
.login2-form label { display: block; color: var(--text); font-size: .74rem; font-weight: 700; margin: .95rem 0 .3rem; }
.login2-form input { width: 100%; height: 48px; padding: 0 .9rem; border: 1px solid var(--input-border); border-radius: 0; font-size: .98rem; background: #fff; color: var(--text); }
.login2-form input:focus { outline: 2px solid var(--navy); border-color: var(--navy); }
.login2-form .lf-erro { color: var(--red); font-size: .8rem; font-weight: 600; text-align: center; margin: .9rem 0 0; }
.login2-form .lf-btn { width: 100%; height: 50px; margin-top: 1.5rem; background: var(--lime); color: var(--text); border: 0; border-radius: 0; font-size: 1.02rem; font-weight: 800; cursor: pointer; }
.login2-form .lf-btn:active { background: var(--lime-dark); }
.login2-form .lf-btn:disabled { opacity: .7; }

@media (max-width: 720px) {
    .login2-brand { display: none; }
    .login2-form { width: 100%; flex: 1; justify-content: flex-start; padding-top: calc(3rem + env(safe-area-inset-top)); }
    .login2-form .brand-mobile { display: flex; }
}

#blazor-error-ui { background: #fef0c7; bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,.2); display: none; left: 0; padding: .6rem 1.25rem; position: fixed; width: 100%; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

.chip.status-entregue { background: var(--green-tint); color: var(--green-dark); }
.chip.status-gerada, .chip.status-enviada { background: var(--accent-tint); color: var(--navy); }
.chip.status-em-andamento { background: var(--gold-tint); color: var(--gold-dark); }
.ok-msg { background: var(--green-tint); color: var(--green-dark); padding: .6rem .8rem; margin-bottom: .6rem; font-size: .86rem; border-radius: 0; }
.section.parada.feita { box-shadow: var(--shadow); }
.parada-top { display: flex; align-items: center; gap: .6rem; }
.parada-ordem { min-width: 1.9rem; height: 1.9rem; display: inline-flex; align-items: center; justify-content: center; background: var(--navy); color: var(--white); font-weight: 700; border-radius: 0; }
.grow { flex: 1; min-width: 0; }
.card-row .valor.ok { color: var(--green-dark); }
.seg { display: flex; gap: 2px; margin-bottom: .7rem; background: #E4E8EA; border-radius: 0; padding: 3px; }
.seg-btn { flex: 1; min-height: 40px; padding: .45rem .3rem; border: 0; border-radius: 0; background: transparent; color: #4D575C; font: inherit; font-size: .86rem; font-weight: 500; cursor: pointer; }
.seg-btn.on { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(16,24,28,.12); }
.foto-btn { display: inline-block; cursor: pointer; }
.fotos { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .45rem; }
.fotos img { width: 96px; height: 96px; object-fit: cover; border-radius: 0; background: var(--white); }
.foto { position: relative; }
.foto-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; border-radius: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.foto-x .ic, .bc-x .ic { width: 15px; height: 15px; }
.assin { display: block; width: 100%; height: 180px; background: var(--white); border: 1px dashed var(--input-border); border-radius: 0; }

.aviso-sessao { background: var(--gold-tint); color: var(--gold-dark); padding: .5rem .9rem; font-size: .82rem; font-weight: 500; text-align: center; }
.aviso-sessao a { color: var(--navy); font-weight: 700; margin-left: .4rem; }
.sync-box { display: flex; align-items: center; gap: .7rem; background: var(--card-bg); border-radius: 0; box-shadow: var(--shadow); padding: .7rem .9rem; margin: 1.1rem 0 .2rem; font-size: .82rem; }
.sync-box > .ic { color: var(--navy); width: 22px; height: 22px; }
.sync-box .sync-txt { flex: 1; min-width: 0; color: var(--text-muted); }
.sync-box .sync-txt b { color: var(--text); display: block; font-weight: 600; }
.sync-box.erro-sync > .ic { color: var(--red); }

.ficha-topo { display: flex; align-items: center; gap: .85rem; margin: .1rem 0 .9rem; }
.ficha-topo .ft-nome { font-size: 1.35rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.ficha-topo .ft-sub { font-size: .82rem; color: var(--text-muted); margin-top: .15rem; }
.ficha-contato { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; margin-bottom: .9rem; }
.ficha-contato a { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; background: var(--card-bg); color: var(--navy);
    border-radius: 0; padding: .55rem .95rem; font-size: .86rem; font-weight: 600; text-decoration: none; box-shadow: var(--shadow); }
.ficha-contato a.wpp { color: #1E7D46; }
.ficha-contato a:active { background: var(--accent-tint); }
.alerta-ficha { padding: .65rem .9rem; margin-bottom: .6rem; font-size: .85rem; font-weight: 600; border-radius: 0; }
.alerta-ficha.vermelho { background: var(--red-tint); color: var(--red); }
.alerta-ficha.amarelo { background: var(--gold-tint); color: var(--gold-dark); }
.kpi.red .k-val { color: var(--red); }
.subtabs2.rolavel { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.subtabs2.rolavel::-webkit-scrollbar, .ficha-contato::-webkit-scrollbar { display: none; }
.subtabs2.rolavel .subtab2 { white-space: nowrap; flex: 0 0 auto; }
.ficha-titulo { font-weight: 700; font-size: 1rem; margin-bottom: .45rem; color: var(--text); letter-spacing: -.01em; }
.ficha-linhas > div { display: flex; justify-content: space-between; gap: .8rem; padding: .5rem 0; border-bottom: 1px solid var(--card-border); font-size: .88rem; }
.ficha-linhas > div:last-child { border-bottom: 0; }
.ficha-linhas span { color: var(--text-muted); }
.ficha-linhas b { text-align: right; overflow-wrap: anywhere; font-weight: 600; }
.ficha-linhas a { color: var(--navy); }
.prod-grid tr.falta td { color: var(--red) !important; }
.card-top a.erp-btn { padding: .3rem .7rem; font-size: .8rem; }

.acoes-rapidas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 1rem; }
.acoes-rapidas .acao { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 0; background: transparent; text-decoration: none; color: var(--text); text-align: center; }
.acoes-rapidas .acao b { width: 54px; height: 54px; border-radius: 0; display: flex; align-items: center; justify-content: center; background: var(--card-bg); color: var(--navy); box-shadow: var(--shadow); }
.acoes-rapidas .acao b .ic { width: 24px; height: 24px; }
.acoes-rapidas .acao.gold b { background: var(--navy); color: #fff; }
.acoes-rapidas .acao:active b { background: var(--accent-tint); }
.acoes-rapidas .acao.gold:active b { background: var(--navy-dark); }
.acoes-rapidas .acao span { font-size: .74rem; font-weight: 500; line-height: 1.15; }
.home-sec.vermelho { color: var(--red); }
a.card { display: block; text-decoration: none; color: inherit; }
.card.alerta { box-shadow: var(--shadow); }
.card.alerta.alerta-vencido { box-shadow: var(--shadow); }
.card.alerta.alerta-sem-visita, .card.alerta.alerta-cotacao, .card.alerta.alerta-orcamento { box-shadow: var(--shadow); }
.card.alerta.alerta-entrega { box-shadow: var(--shadow); }
.card.alerta.alerta-aniversario { box-shadow: var(--shadow); }
.card.alerta .card-btn, a.card.alerta { padding: .8rem .95rem; }
.card.compromisso { display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem; }
.card.compromisso.tarefa.alta { box-shadow: var(--shadow); }
.card.compromisso .card-sub a { color: var(--navy); text-decoration: none; font-weight: 500; }
.check { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 0; border: 2px solid #C5CDD1; background: var(--white); color: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.check .ic { width: 15px; height: 15px; }
.check:hover, .check.feito { border-color: var(--green-dark); background: var(--green-dark); color: #fff; }
.adiar { flex: 0 0 auto; border: 0; border-radius: 0; background: #EDF0F2; color: var(--text-muted); font-size: .74rem; font-weight: 600; padding: .3rem .6rem; cursor: pointer; }
.tarefa-linha { display: flex; align-items: center; gap: .65rem; padding: .5rem 0; border-bottom: 1px solid var(--card-border); font-size: .88rem; }
.tarefa-linha:last-child { border-bottom: 0; }
.tarefa-linha small { color: var(--text-muted); }
.tarefa-linha.atrasada small { color: var(--red); font-weight: 700; }
.tarefa-linha .check { width: 24px; height: 24px; }
.filtros-chip, .chips-escolha, .atalhos-data { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 .8rem; }
.fchip { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: var(--card-bg); color: var(--text); padding: .4rem .8rem; border-radius: 0; font: inherit; font-size: .8rem; font-weight: 500; cursor: pointer; box-shadow: var(--shadow); }
.fchip.on { background: var(--navy); color: var(--white); }
.card .tags { display: inline-flex; gap: .25rem; flex-wrap: wrap; justify-content: flex-end; }
.agenda-dia { margin-bottom: 1rem; }
.agenda-titulo { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 1rem; padding: .2rem .1rem; margin-bottom: .45rem; }
.agenda-titulo span { color: var(--text-muted); font-weight: 500; font-size: .8rem; }
.agenda-dia.hoje .agenda-titulo { color: var(--navy); }
.agenda-dia.atrasado .agenda-titulo { color: var(--red); }
.agenda-item { display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left; background: var(--card-bg); border: 0; border-radius: 0; box-shadow: var(--shadow); padding: .7rem .9rem; margin-bottom: .45rem; font: inherit; color: var(--text); cursor: pointer; }
.agenda-item.visita { box-shadow: var(--shadow); }
.agenda-item.tarefa { box-shadow: var(--shadow); }
.agenda-item .ai-hora { width: 3rem; font-weight: 600; color: var(--text-muted); font-size: .82rem; }
.agenda-item .ai-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.agenda-item .ai-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.agenda-item .ai-txt small { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline { position: relative; background: var(--card-bg); border-radius: 0; box-shadow: var(--shadow); padding: .3rem 1rem; }
.tl-item { display: flex; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--card-border); cursor: pointer; }
.tl-item:last-child { border-bottom: 0; }
.tl-data { flex: 0 0 3.9rem; font-size: .76rem; color: var(--text-muted); padding-top: .1rem; }
.tl-corpo { flex: 1; min-width: 0; position: relative; padding-left: 1rem; }
.tl-corpo::before { content: ""; position: absolute; left: 0; top: .35rem; width: 8px; height: 8px; border-radius: 0; background: var(--text-muted); }
.tl-top { display: flex; justify-content: space-between; gap: .5rem; font-size: .9rem; }
.tl-top b { font-weight: 600; }
.tl-corpo .chip { margin-top: .3rem; display: inline-block; }
.tl-visita .tl-corpo::before { background: var(--navy); }
.tl-ligacao .tl-corpo::before, .tl-whatsapp .tl-corpo::before, .tl-e-mail .tl-corpo::before, .tl-reuniao .tl-corpo::before, .tl-outro .tl-corpo::before { background: #3B82A0; }
.tl-cotacao .tl-corpo::before, .tl-orcamento .tl-corpo::before { background: var(--gold); }
.tl-pedido .tl-corpo::before, .tl-nf .tl-corpo::before { background: var(--green-dark); }
.tl-entrega .tl-corpo::before { background: #B7791F; }
.timeline .vazio { padding: 1rem 0; }
.chip.status-positivo { background: var(--green-tint); color: var(--green-dark); }
.chip.status-neutro { background: #EDF0F2; color: var(--text-muted); }
.chip.status-negativo, .chip.status-sem-contato { background: var(--red-tint); color: var(--red); }

.painel-topo { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin: .2rem 0 1rem; }
.painel-topo .pt-txt small { display: block; font-size: .82rem; color: var(--text-muted); font-weight: 500; }
.painel-topo .pt-txt b { display: block; font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.painel-topo .pt-dir { display: flex; align-items: center; gap: .5rem; }
.painel-topo .avatar { text-decoration: none; background: var(--navy); color: var(--lime); }
@media (min-width: 960px) { .painel-topo .avatar { display: none; } }

.meta-card { display: flex; align-items: center; gap: 1.1rem; background: var(--card-bg); border-radius: 0; box-shadow: var(--shadow); padding: 1.1rem 1.2rem; text-decoration: none; color: inherit; }
.anel { --p: 0; width: 104px; height: 104px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
    background: conic-gradient(var(--lime) calc(var(--p) * 1%), #E7ECE8 0); }
.anel span { width: 80px; height: 80px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.anel b { font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; }
.anel small { font-size: .66rem; color: var(--text-muted); font-weight: 600; }
.meta-txt { min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.meta-txt small { font-size: .8rem; color: var(--text-muted); font-weight: 500; }
.meta-txt b { font-size: 1.55rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.meta-txt span { font-size: .82rem; color: var(--text-muted); }
.meta-txt span strong { color: var(--text); font-weight: 600; }

.kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: .7rem 0 0; }
@media (min-width: 640px) { .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi-box { background: var(--card-bg); border-radius: 0; box-shadow: var(--shadow); padding: .8rem .9rem; text-decoration: none; color: inherit; min-width: 0; }
.kpi-box small { display: block; font-size: .76rem; color: var(--text-muted); font-weight: 500; }
.kpi-box b { display: block; font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; margin-top: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-box span { display: block; font-size: .72rem; color: var(--text-muted); margin-top: .1rem; }
.kpi-box.alerta { background: var(--red-tint); box-shadow: none; }
.kpi-box.alerta small, .kpi-box.alerta b, .kpi-box.alerta span { color: var(--red); }

.painel-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 1.4rem; }
.painel-cols > * { min-width: 0; }
@media (min-width: 960px) { .painel-cols { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } }

.prio { display: flex; align-items: center; gap: .75rem; background: var(--card-bg); border-radius: 0; box-shadow: var(--shadow); padding: .75rem .9rem; text-decoration: none; color: inherit; }
.prio .barra { width: 5px; align-self: stretch; min-height: 34px; border-radius: 0; background: var(--navy); flex: none; }
.prio.p-vencido .barra { background: var(--red); }
.prio.p-cotacao .barra, .prio.p-orcamento .barra, .prio.p-sem-visita .barra { background: var(--gold); }
.prio.p-entrega .barra { background: var(--lime-dark); }
.prio.p-aniversario .barra { background: #8E44AD; }
.prio .grow b { display: block; font-size: .92rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prio .grow small { display: block; font-size: .78rem; color: var(--text-muted); margin-top: .1rem; }
.prio .valor { font-size: .86rem; white-space: nowrap; }

.grade-erp-wrap { background: #fff; border-radius: 0; box-shadow: var(--shadow); overflow: hidden; }
.grade-erp-rolar { overflow-x: auto; }
.grade-erp { width: 100%; border-collapse: collapse; font-size: .86rem; }
.grade-erp th { background: #4A5354; color: #fff; font-weight: 600; font-size: .76rem; text-align: left; padding: .55rem .7rem; white-space: nowrap; }
.grade-erp th.num, .grade-erp td.num { text-align: right; }
.grade-erp td { padding: .7rem .7rem; border-bottom: 1px solid #E6EAE7; white-space: nowrap; }
.grade-erp td.nome { white-space: normal; text-transform: uppercase; font-weight: 500; min-width: 140px; }
.grade-erp tbody tr { cursor: pointer; }
.grade-erp tbody tr:hover td { background: #F2F6F4; }
.grade-erp tbody tr:active td { background: #1C9BAE; color: #fff; }
.grade-erp td.vermelho { color: var(--red); }
.grade-erp .tag { display: inline-block; font-size: .64rem; font-weight: 700; text-transform: none; padding: .05rem .4rem; border-radius: 0; margin-left: .35rem; vertical-align: middle; }
.grade-erp .tag.venc { background: var(--red-tint); color: var(--red); }
.grade-erp .tag.semvis { background: var(--gold-tint); color: var(--gold-dark); }
.grade-erp .so-pc { display: none; }
@media (min-width: 760px) { .grade-erp .so-pc { display: table-cell; } }
@media (max-width: 759.98px) {
    .grade-erp-rolar { overflow-x: visible; }
    .grade-erp thead { display: none; }
    .grade-erp, .grade-erp tbody, .grade-erp tfoot { display: block; }
    .grade-erp tr { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .35rem 1rem; padding: .75rem .9rem; border-bottom: 1px solid #E6EAE7; }
    .grade-erp td { display: flex; flex-direction: column; gap: .05rem; padding: 0; border: 0; white-space: normal; text-align: left; min-width: 0; font-size: .9rem; }
    .grade-erp th.num, .grade-erp td.num { text-align: left; }
    .grade-erp td::before { content: attr(data-label); font-size: .72rem; font-weight: 500; color: var(--text-muted); text-transform: none; }
    .grade-erp td[data-label=""]::before, .grade-erp td.nome::before { content: none; }
    .grade-erp td.nome { order: -1; flex: 1 1 100%; display: block; min-width: 0; font-size: .95rem; font-weight: 600; }
    .grade-erp tbody tr:hover td { background: none; }
    .grade-erp tbody tr:active { background: #1C9BAE; color: #fff; }
    .grade-erp tbody tr:active td::before { color: #E6F4F6; }
}
.grade-erp-tot { display: flex; justify-content: space-between; gap: .6rem; background: #4A5354; color: #fff; font-size: .8rem; font-weight: 700; padding: .6rem .7rem; }
.filtro-erp { display: flex; gap: .45rem; margin-bottom: .7rem; flex-wrap: wrap; }
.filtro-erp input { flex: 1 1 180px; min-width: 0; min-height: 44px; border: 1px solid var(--input-border); border-radius: 0; padding: 0 .8rem; font: inherit; font-size: .95rem; background: #fff; color: var(--text); }
.filtro-erp select { flex: 1 1 120px; min-height: 44px; border: 1px solid var(--input-border); border-radius: 0; padding: 0 2rem 0 .7rem; font: inherit; font-size: .88rem; background-color: #fff; color: var(--text); -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6A68' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .6rem center; background-size: 15px; }
@media (min-width: 640px) { .filtro-erp select { flex: 0 1 200px; } }
.filtro-erp input:focus, .filtro-erp select:focus { outline: 2px solid var(--navy); border-color: var(--navy); }

.res-cols { display: grid; grid-template-columns: 1fr; gap: .8rem; margin-top: .8rem; }
@media (min-width: 960px) { .res-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.res-card { background: var(--card-bg); border-radius: 0; box-shadow: var(--shadow); padding: 1rem 1.1rem; min-width: 0; }
.res-card h2 { font-size: .98rem; font-weight: 700; margin: 0 0 .8rem; letter-spacing: -.01em; }
.barras { display: flex; align-items: flex-end; gap: .55rem; height: 170px; }
.barras .bc { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .35rem; }
.barras .bv { font-size: .68rem; color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.barras .bb { width: 100%; max-width: 52px; border-radius: 0; background: #CFD9D4; min-height: 3px; }
.barras .bc.atual .bb { background: var(--lime); }
.barras .bc.atual .bv, .barras .bc.atual .bm { color: var(--text); }
.barras .bm { font-size: .74rem; color: var(--text-muted); font-weight: 600; }
.rank > div { display: flex; align-items: center; gap: .7rem; padding: .6rem 0; border-bottom: 1px solid var(--card-border); font-size: .88rem; }
.rank > div:last-child { border-bottom: 0; }
.rank .pos { width: 22px; height: 22px; border-radius: 0; background: #EEF2EF; font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.rank .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank b { white-space: nowrap; font-weight: 700; }
.comp { display: inline-block; font-size: .76rem; font-weight: 700; padding: .15rem .55rem; border-radius: 0; background: var(--lime-tint); color: var(--lime-ink); }
.comp.neg { background: var(--red-tint); color: var(--red); }

.fb { margin-bottom: .8rem; }
.fb-linha { display: flex; gap: .45rem; align-items: center; }
.fb-busca { flex: 1; min-width: 0; }
.fb-busca input { width: 100%; min-height: 44px; border: 1px solid var(--input-border); border-radius: 0; padding: 0 .8rem; font: inherit; font-size: .95rem; background: #fff; color: var(--text); }
.fb-busca input:focus { outline: 2px solid var(--navy); border-color: var(--navy); }
.fb-toggle { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 .8rem; border: 1px solid var(--input-border); border-radius: 0; background: #fff; color: var(--text); font: inherit; font-size: .88rem; font-weight: 600; white-space: nowrap; }
.fb-toggle .ic { width: 17px; height: 17px; }
.fb-toggle.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.fb-extra { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-top: .55rem; background: #fff; border-radius: 0; box-shadow: var(--shadow); padding: .7rem; }
.fb-extra.aberto { display: grid; }
.fb-campo { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.fb-campo > span { font-size: .72rem; font-weight: 600; color: var(--text-muted); padding-left: .1rem; }
.fb-campo select, .fb-campo input { width: 100%; min-height: 40px; border: 1px solid var(--input-border); border-radius: 0; padding: 0 .6rem; font: inherit; font-size: .86rem; background-color: #fff; color: var(--text); }
.fb-campo select { -webkit-appearance: none; appearance: none; padding-right: 1.8rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6A68' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .5rem center; background-size: 14px; }
.fb-campo select:focus, .fb-campo input:focus { outline: 2px solid var(--navy); border-color: var(--navy); }
.fb-check { flex-direction: row; align-items: center; gap: .45rem; font-size: .86rem; font-weight: 500; align-self: end; min-height: 40px; }
.fb-check input { width: 18px; height: 18px; min-height: 0; accent-color: var(--navy); }
.fb-limpar { grid-column: 1 / -1; justify-self: start; border: 0; background: transparent; color: var(--red); font: inherit; font-size: .84rem; font-weight: 600; padding: .3rem .1rem; cursor: pointer; }
@media (min-width: 960px) {
    .fb-toggle { display: none; }
    .fb-extra, .fb-extra.aberto { display: flex; flex-wrap: wrap; align-items: flex-end; }
    .fb-extra .fb-campo { flex: 1 1 150px; max-width: 230px; }
    .fb-limpar { align-self: center; }
}

.exp { position: relative; flex: none; }
.exp > summary { list-style: none; }
.exp > summary::-webkit-details-marker { display: none; }
.exp-btn { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; padding: 0 .85rem; border-radius: 0; background: var(--lime); color: var(--text); font-size: .88rem; font-weight: 700; cursor: pointer; white-space: nowrap; user-select: none; }
.exp-btn .ic { width: 16px; height: 16px; }
.exp-btn:hover { background: var(--lime-dark); }
.exp-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 950; min-width: 220px; background: #fff; border-radius: 0; box-shadow: 0 10px 30px rgba(14,23,25,.18), 0 0 0 1px rgba(14,23,25,.06); padding: .35rem; display: flex; flex-direction: column; }
.exp-menu button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .65rem .7rem; border: 0; border-radius: 0; background: transparent; color: var(--text); font: inherit; font-size: .9rem; font-weight: 500; text-align: left; cursor: pointer; }
.exp-menu button .ic { width: 18px; height: 18px; color: var(--text-muted); }
.exp-menu button:hover { background: #F2F5F2; }
.exp-menu button:disabled { opacity: .5; }
.erro.sm { padding: .4rem; font-size: .8rem; }
.grade-erp td.cen, .grade-erp th.cen { text-align: center; }

.etapas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; margin: 0 0 1rem; }
.etapa { display: flex; flex-direction: column; align-items: center; gap: .3rem; border: 0; background: transparent; padding: 0; font: inherit; color: var(--text-muted); cursor: pointer; }
.etapa b { width: 34px; height: 34px; border-radius: 0; display: flex; align-items: center; justify-content: center; background: #E3E8E4; color: var(--text-muted); font-size: .88rem; font-weight: 700; }
.etapa span { font-size: .76rem; font-weight: 600; }
.etapa.atual b { background: var(--navy); color: var(--lime); }
.etapa.atual span { color: var(--text); }
.etapa.feita b { background: var(--lime); color: var(--text); }
@media (min-width: 640px) { .etapa { flex-direction: row; justify-content: center; gap: .5rem; } .etapa span { font-size: .88rem; } }
.mais-opcoes { margin-top: .9rem; border-top: 1px solid var(--card-border); padding-top: .7rem; }
.mais-opcoes > summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--text); display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; padding: .2rem 0 .6rem; }
.mais-opcoes > summary small { font-size: .76rem; font-weight: 500; color: var(--text-muted); }
.revisao { background: var(--card-bg); border-radius: 0; box-shadow: var(--shadow); padding: 1rem 1.1rem; }
.rv-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; padding-bottom: .8rem; border-bottom: 1px solid var(--card-border); }
.rv-topo small { display: block; font-size: .76rem; color: var(--text-muted); font-weight: 600; }
.rv-topo b { display: block; font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; margin: .15rem 0; }
.rv-topo span { display: block; font-size: .84rem; color: var(--text-muted); }
.rv-campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1rem; padding-top: .8rem; }
@media (min-width: 760px) { .rv-campos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rv-campos small { display: block; font-size: .72rem; color: var(--text-muted); font-weight: 600; }
.rv-campos b { display: block; font-size: .9rem; font-weight: 600; overflow-wrap: anywhere; }

.acoes-rapidas.ficha { grid-template-columns: repeat(5, 1fr); }
.ficha-abas { display: flex; align-items: center; gap: .5rem; margin-bottom: .9rem; }
.ficha-abas .subtabs2 { flex: 1; min-width: 0; margin-bottom: 0; }
.grade-erp tr.aberta td { background: #EEF3F0; font-weight: 600; }
.grade-erp tr.sub td { background: #F7F9F8; padding: .3rem .7rem .7rem; white-space: normal; cursor: default; }
.grade-erp tr.sub:hover td { background: #F7F9F8; }
.grade-erp td .ic { width: 14px; height: 14px; color: var(--text-muted); }
.grade-sub { width: 100%; border-collapse: collapse; font-size: .8rem; }
.grade-sub th { text-align: left; font-weight: 600; color: var(--text-muted); font-size: .72rem; padding: .35rem .4rem; border-bottom: 1px solid var(--card-border); }
.grade-sub td { padding: .4rem .4rem; border-bottom: 1px solid #E8ECE9; background: transparent !important; }
.grade-sub .num { text-align: right; white-space: nowrap; }
.grade-erp .grade-sub th { background: transparent; color: var(--text-muted); position: static; }
.grade-erp .grade-sub td { white-space: normal; }
.grade-erp .grade-sub td.num { white-space: nowrap; }
.fb-safra { width: 100%; min-height: 44px; border: 1px solid var(--input-border); border-radius: 0; padding: 0 2rem 0 .8rem; font: inherit; font-size: .95rem; font-weight: 600; background-color: #fff; color: var(--text); -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6A68' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .7rem center; background-size: 15px; }
.res-topo { display: grid; grid-template-columns: 1fr; gap: .7rem; }
.res-topo .res-kpis { margin: 0; }
@media (min-width: 960px) { .res-topo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: stretch; } .res-topo .res-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sub-cod { display: block; font-size: .72rem; color: var(--text-muted); font-weight: 500; text-transform: none; margin-top: .1rem; }
.grade-erp tbody tr:active .sub-cod { color: #E6F4F6; }
.grade-erp td.especial { color: var(--gold-dark); font-weight: 700; }
.tag-esp { display: inline-block; margin-left: .4rem; font-size: .64rem; font-weight: 700; padding: .05rem .4rem; border-radius: 0; background: var(--gold-tint); color: var(--gold-dark); }
.linha-cond { cursor: pointer; }
.linha-cond.sel td { background: var(--lime-tint) !important; }
.ficha-topo .exp { align-self: flex-start; }

.credito { background: var(--card-bg); border-radius: 0; box-shadow: var(--shadow); padding: .85rem 1rem; margin-bottom: .8rem; }
.credito.alerta { box-shadow: var(--shadow); }
.cr-topo { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .55rem; }
.cr-topo b { font-size: .95rem; }
.cr-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem .9rem; }
@media (min-width: 640px) { .cr-grade { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.cr-grade small { display: block; font-size: .72rem; color: var(--text-muted); font-weight: 500; }
.cr-grade b { display: block; font-size: 1.02rem; font-weight: 700; white-space: nowrap; }
.cr-grade b.neg, .cr-msg { color: var(--red); }
.cr-msg { margin-top: .55rem; font-size: .84rem; font-weight: 700; }
.cr-obs { margin-top: .45rem; font-size: .8rem; color: var(--text-muted); }
.cr-editar { margin-top: .55rem; border: 0; background: transparent; color: var(--navy); font: inherit; font-size: .82rem; font-weight: 700; padding: 0; cursor: pointer; text-decoration: underline; }
.barra-pct { display: inline-block; width: 46px; height: 6px; border-radius: 0; background: #E3E8E4; margin-right: .4rem; vertical-align: middle; overflow: hidden; }
.barra-pct i { display: block; height: 100%; background: var(--lime-dark); }
.culturas-cfg > summary { cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; list-style: none; }
.culturas-cfg > summary::-webkit-details-marker { display: none; }
.culturas-cfg > summary small { color: var(--text-muted); font-size: .78rem; }

.bi-slicers { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; align-items: center; }
.bi-slicers .fb-safra { flex: 1 1 200px; width: auto; }
.bi-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-bottom: .9rem; }
@media (min-width: 760px) { .bi-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bi-kpi { background: var(--card-bg); border-radius: 0; box-shadow: var(--shadow); padding: .75rem .9rem; min-width: 0; }
.bi-kpi small { display: block; font-size: .72rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.bi-kpi b { display: block; font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; margin: .15rem 0 .1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bi-kpi span { display: block; font-size: .74rem; color: var(--text-muted); }
.bi-kpi .neg { color: var(--red); }
.bi-kpi span.pos { color: var(--green-dark); font-weight: 700; }
.bi-kpi span.neg { font-weight: 700; }
.bi-grid { display: grid; grid-template-columns: 1fr; gap: .8rem; }
@media (min-width: 960px) { .bi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .bi-largo { grid-column: span 2; } }
.bi-card { background: var(--card-bg); border-radius: 0; box-shadow: var(--shadow); padding: 1rem 1.1rem; min-width: 0; }
.bi-card h2 { font-size: .95rem; font-weight: 700; margin: 0 0 .8rem; display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.bi-card h2 small { font-size: .72rem; color: var(--text-muted); font-weight: 500; }
.bi-hbars { display: flex; flex-direction: column; gap: .35rem; }
.bi-hbar { display: grid; grid-template-columns: minmax(90px, 1.3fr) 3fr auto; align-items: center; gap: .6rem; border: 0; background: transparent; padding: .3rem .35rem; border-radius: 0; font: inherit; text-align: left; cursor: pointer; color: var(--text); }
.bi-hbar:hover { background: #F2F5F2; }
.bi-hbar.sel { background: var(--lime-tint); }
.bi-hbar.apagado { opacity: .35; }
.bh-nome { font-size: .78rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-barras { display: flex; flex-direction: column; gap: 3px; }
.bh-barras i { display: block; height: 9px; border-radius: 0; min-width: 2px; }
.bh-barras i.atual, .bi-legenda i.atual { background: var(--navy); }
.bh-barras i.ant, .bi-legenda i.ant { background: #B8C4BF; }
.bh-val { font-size: .78rem; font-weight: 700; white-space: nowrap; }
.bi-legenda { display: flex; gap: 1rem; margin-top: .6rem; font-size: .74rem; color: var(--text-muted); }
.bi-legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 0; margin-right: .3rem; vertical-align: middle; }
.bi-donut-wrap { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.bi-donut { width: 120px; height: 120px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; }
.bi-donut span { width: 74px; height: 74px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.bi-donut b { font-size: 1.2rem; }
.bi-donut small { font-size: .66rem; color: var(--text-muted); }
.bi-leg-lista { flex: 1; min-width: 140px; display: flex; flex-direction: column; gap: .3rem; }
.bi-leg-lista div { display: flex; align-items: center; gap: .4rem; font-size: .78rem; }
.bi-leg-lista i { width: 10px; height: 10px; border-radius: 0; flex: none; }
.bi-leg-lista span { flex: 1; }
.bi-funil { display: flex; flex-direction: column; gap: .7rem; }
.bf-linha { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: .6rem; font-size: .82rem; }
.bf-barra { height: 16px; background: #EEF2EF; border-radius: 0; overflow: hidden; }
.bf-barra i { display: block; height: 100%; border-radius: 0; }
.bf-barra i.f1 { background: var(--navy); }
.bf-barra i.f2 { background: var(--lime-dark); }
.bf-barra i.f3 { background: var(--red); }
.bi-meses { height: 150px; }
.bi-matriz td.verde { color: var(--green-dark); font-weight: 600; }
.bi-matriz td.celbar { position: relative; }
.bi-matriz td.celbar i { position: absolute; right: 4px; top: 22%; bottom: 22%; background: var(--lime-tint); border-radius: 0; max-width: calc(100% - 8px); }
.bi-matriz td.celbar.af i { background: #E3EEF1; }
.bi-matriz td.celbar span { position: relative; }
.sino { position: relative; width: 40px; height: 40px; border-radius: 0; display: flex; align-items: center; justify-content: center; background: var(--card-bg); color: var(--text); box-shadow: var(--shadow); text-decoration: none; }
.sino .ic { width: 20px; height: 20px; }
.sino span { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 0; background: var(--red); color: #fff; font-size: .66rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.aviso-ativar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .8rem; }
.aviso-ativar b { display: block; font-size: .92rem; }
.aviso-ativar span { display: block; font-size: .8rem; color: var(--text-muted); }
.metas-lista { display: grid; grid-template-columns: 1fr; gap: .4rem; margin-top: .7rem; }
@media (min-width: 760px) { .metas-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem 1.2rem; } }
.meta-linha { display: flex; align-items: center; gap: .6rem; font-size: .84rem; }
.meta-linha span { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta-linha input { width: 150px; min-height: 38px; border: 1px solid var(--input-border); border-radius: 0; padding: 0 .6rem; font: inherit; text-align: right; }
.home-sec .mini-link { font-size: .74rem; }
.det-linha { padding: .3rem 0 .4rem; border-top: 0; background: transparent; }
.grade-erp .det-linha th { background: #F5F7F8; color: var(--text-muted); position: static; }
.grade-erp .det-linha td { padding: .4rem .5rem; white-space: normal; }
.grade-erp .det-linha tr:hover td, .grade-erp .det-linha tr:active td { background: transparent; color: inherit; }
.grade-erp tr.sub > td { background: #F7F9F8; }
@media (min-width: 960px) { .kpi-grid.kpi-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.nf-card { max-width: 820px; }
.nf-corpo { padding: .3rem 1rem 1rem; overflow-y: auto; }
.nf-chave { margin-top: .6rem; font-size: .76rem; }
.nf-chave small { display: block; color: var(--text-muted); font-weight: 600; }
.nf-chave span { font-family: ui-monospace, Consolas, monospace; word-break: break-all; }
button.mini-link { border: 0; cursor: pointer; font: inherit; font-size: .78rem; }

.checkin { background: var(--card-bg); border-radius: 0; box-shadow: var(--shadow); padding: 1rem 1.1rem; margin-bottom: .8rem; }
.checkin.aberto { box-shadow: var(--shadow); }
.ck-etapas { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.ck-etapa { display: flex; align-items: center; gap: .5rem; color: var(--text-muted); }
.ck-etapa b { width: 34px; height: 34px; border-radius: 0; display: flex; align-items: center; justify-content: center; background: #E3E8E4; font-size: .88rem; }
.ck-etapa.atual b { background: var(--navy); color: var(--lime); }
.ck-etapa.feita b { background: var(--lime); color: var(--text); }
.ck-etapa.feita, .ck-etapa.atual { color: var(--text); }
.ck-etapa span { display: flex; flex-direction: column; font-weight: 700; font-size: .9rem; line-height: 1.15; }
.ck-etapa small { font-weight: 500; font-size: .74rem; color: var(--text-muted); }
.ck-linha { flex: 1 1 30px; height: 2px; background: #E3E8E4; min-width: 20px; }
.ck-tempo { display: flex; align-items: center; gap: .35rem; margin-left: auto; font-size: .82rem; }
.ck-tempo .ic { width: 18px; height: 18px; color: var(--text-muted); }
.ck-tempo small { color: var(--text-muted); }
.ck-info { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; align-items: center; }
.estrelas { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.estrela { width: 40px; height: 40px; border-radius: 0; border: 1px solid var(--input-border); background: #fff; font: inherit; font-weight: 700; cursor: pointer; color: var(--text-muted); }
.estrela.on { background: var(--lime); border-color: var(--lime-dark); color: var(--text); }
.anx-botoes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.anx-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; min-height: 70px; border-radius: 0; background: #F2F5F2; font-size: .8rem; font-weight: 600; cursor: pointer; text-align: center; }
.anx-btn:hover { background: var(--lime-tint); }
.anx-btn .ic { width: 22px; height: 22px; }
.anx-galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; margin-top: .8rem; }
.anx-midia { border-radius: 0; overflow: hidden; background: #EEF2EF; display: flex; flex-direction: column; }
.anx-midia img, .anx-midia video { width: 100%; height: 130px; object-fit: cover; display: block; cursor: pointer; background: #000; }
.anx-carregar { height: 130px; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; color: var(--text); }
.anx-carregar small { color: var(--text-muted); font-weight: 500; }
.anx-rodape { display: flex; justify-content: space-between; align-items: center; padding: .3rem .5rem; font-size: .72rem; color: var(--text-muted); }
.anx-rodape button { border: 0; background: transparent; cursor: pointer; color: var(--red); padding: 0; }
.anx-rodape button .ic { width: 14px; height: 14px; }
.anx-lista { display: flex; flex-direction: column; gap: .4rem; margin-top: .8rem; }
.anx-doc { display: flex; align-items: center; gap: .6rem; padding: .55rem .6rem; border-radius: 0; background: #F7F9F8; flex-wrap: wrap; }
.anx-doc > .ic { width: 22px; height: 22px; color: var(--text-muted); }
.anx-doc b { display: block; font-size: .88rem; }
.anx-doc small { display: block; font-size: .74rem; color: var(--text-muted); }
.anx-doc audio { max-width: 100%; height: 36px; }
.erp-titulo small { font-weight: 500; }
.perfil-topo { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .8rem; flex-wrap: wrap; }
.perfil-grade { display: grid; grid-template-columns: 1fr; gap: .8rem; }
@media (min-width: 960px) { .perfil-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.foco-barra { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .9rem; }
.foco-barra .fb-safra { flex: 1 1 200px; width: auto; }
.foco-mes { display: flex; align-items: center; gap: .4rem; background: #fff; border-radius: 0; box-shadow: var(--shadow); padding: .2rem; }
.foco-mes b { min-width: 130px; text-align: center; font-size: .95rem; }
.foco-mes .erp-btn { min-height: 38px; padding: 0 .6rem; }
.foco-legenda { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: .6rem; font-size: .76rem; color: var(--text-muted); }
.foco-legenda i { display: inline-block; width: 12px; height: 12px; border-radius: 0; margin-right: .3rem; vertical-align: -1px; }
.foco-wrap { overflow-x: auto; background: #fff; border-radius: 0; box-shadow: var(--shadow); }
.foco-cal { border-collapse: separate; border-spacing: 0; font-size: .78rem; min-width: 100%; }
.foco-cal th { background: #4A5354; color: #fff; font-weight: 600; padding: .35rem 0; min-width: 30px; text-align: center; border-right: 1px solid #5D6768; }
.foco-cal th.fc-sem { background: #5D6768; font-size: .64rem; font-weight: 500; padding: .2rem 0; }
.foco-cal th.fds { background: #3B4344; }
.foco-cal th.hoje { background: var(--lime); color: var(--text); }
.foco-cal td { height: 42px; border-right: 1px solid #EEF1EF; border-bottom: 1px solid #E6EAE7; text-align: center; position: relative; padding: 0; }
.foco-cal td.fds { background: #F6F8F7; }
.foco-cal td.hoje { box-shadow: inset 2px 0 0 var(--lime-dark), inset -2px 0 0 var(--lime-dark); }
.foco-cal .fc-cli { position: sticky; left: 0; z-index: 1; min-width: 210px; max-width: 260px; text-align: left; padding: .35rem .6rem; background: #fff; border-right: 2px solid #D9DEDB; }
.foco-cal th.fc-cli { background: #4A5354; z-index: 2; }
.foco-cal td.fc-cli a { display: flex; align-items: center; gap: .4rem; color: var(--text); text-decoration: none; font-weight: 600; font-size: .8rem; line-height: 1.15; }
.foco-cal td.fc-cli small { display: block; color: var(--text-muted); font-size: .68rem; margin-top: .1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-n { min-width: 20px; height: 20px; border-radius: 0; background: var(--navy); color: var(--lime); font-size: .66rem; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.foco-cal .fc-tot { min-width: 64px; font-weight: 700; padding: 0 .4rem; }
.foco-cal td.fc-tot.ok { color: var(--green-dark); }
.foco-cal td.t-visita, .foco-legenda i.t-visita { background: var(--lime); }
.foco-cal td.t-agendada, .foco-legenda i.t-agendada { background: #FBF1DC; box-shadow: inset 0 0 0 2px var(--gold); }
.foco-cal td.t-contato, .foco-legenda i.t-contato { background: #DCEBF2; }
.foco-cal td.t-pedido, .foco-legenda i.t-pedido { background: var(--navy); }
.foco-cal td.t-nf, .foco-legenda i.t-nf { background: #9CC9A0; }
.fc-mais { position: absolute; top: 2px; right: 3px; font-size: .6rem; font-weight: 700; color: var(--text); }
.foco-cal td.t-pedido .fc-mais { color: var(--lime); }
.foco-edit { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem 0; border-bottom: 1px solid var(--card-border); }
.foco-edit .pos { width: 26px; height: 26px; border-radius: 0; background: var(--navy); color: var(--lime); display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; flex: none; }
.foco-ordem { display: flex; flex-direction: column; gap: .25rem; align-items: center; }
.foco-ordem .erp-btn { min-height: 30px; padding: 0 .5rem; font-size: .7rem; }
.rank > div .erp-btn { min-height: 32px; padding: 0 .6rem; font-size: .78rem; }
.foco-card { display: flex; align-items: center; gap: .9rem; background: var(--card-bg); border-radius: 0; box-shadow: var(--shadow); padding: .8rem 1rem; text-decoration: none; color: inherit; }
.foco-card b { display: block; font-size: .95rem; }
.foco-card small { display: block; font-size: .76rem; color: var(--text-muted); margin-top: .15rem; }
.anel.peq { width: 58px; height: 58px; }
.anel.peq span { width: 44px; height: 44px; }
.anel.peq b { font-size: .82rem; }
.score { display: inline-flex; align-items: center; justify-content: center; gap: 1px; min-width: 26px; height: 22px; padding: 0 .35rem; border-radius: 0; font-size: .74rem; font-weight: 800; vertical-align: middle; }
.score-a { background: var(--navy); color: var(--lime); }
.score-b { background: #D9E8E4; color: var(--navy); }
.score-c { background: #ECEFED; color: var(--text-muted); }
.score i { font-style: normal; color: var(--red); }
.ft-nome .score { margin-left: .3rem; }
.anx-pend { display: flex; align-items: center; gap: .6rem; margin-top: .6rem; padding: .55rem .7rem; border-radius: 0; background: var(--gold-tint); color: var(--gold-dark); }
.anx-pend .ic { width: 20px; height: 20px; }
.anx-pend b { display: block; font-size: .84rem; }
.anx-pend small { display: block; font-size: .72rem; opacity: .85; }
.assin-acoes { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .5rem; }
.com-texto { min-height: 140px; }
.com-campos { display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0 .6rem; }
.com-acoes-sel { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.com-revisao td.com-previa { white-space: pre-line; min-width: 260px; max-width: 460px; font-size: .8rem; color: var(--text-muted); }
.grade-erp tbody tr.sel td { background: #E7F4F6; }
.chk { display: inline-flex; align-items: center; gap: .45rem; font-size: .86rem; cursor: pointer; margin-right: 1rem; }
.perfil-optout { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: center; }
.mapa-filtros { display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; margin: .2rem 0 .7rem; }
.mapa-wrap { position: relative; border-radius: 0; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.mapa-carteira { height: min(62vh, 560px); width: 100%; }
.mapa-legenda { display: flex; flex-wrap: wrap; gap: .3rem .9rem; padding: .5rem .8rem; font-size: .76rem; color: var(--text-muted); border-top: 1px solid #E6EAE7; }
.mapa-legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 0; margin-right: .35rem; border: 1px solid rgba(0,0,0,.2); vertical-align: -1px; }
.mapa-pop b { display: block; font-size: .85rem; text-transform: uppercase; }
.mapa-pop small { display: block; font-size: .74rem; color: #55626A; margin-top: .15rem; }
.mapa-pop-acoes { display: flex; gap: .35rem; margin-top: .5rem; }
.mapa-pop-acoes button { flex: 1; padding: .35rem .5rem; border: 1px solid #C9D2D6; border-radius: 0; background: #fff; font: inherit; font-size: .76rem; font-weight: 600; cursor: pointer; }
.mapa-pop-acoes button[data-a="roteiro"] { background: #12292D; color: #C6F432; border-color: #12292D; }
.ph-voltar { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; color: var(--text-muted); text-decoration: none; margin-bottom: .2rem; }
.ph-voltar .ic { width: 14px; height: 14px; }
.kpi-faixa { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem; margin-bottom: .8rem; }
.kpi-faixa > div { background: #fff; border-radius: 0; box-shadow: var(--shadow); padding: .65rem .8rem; min-width: 0; }
.kpi-faixa span { display: block; font-size: .72rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.kpi-faixa b { display: block; font-size: 1.2rem; margin-top: .15rem; font-family: 'Space Grotesk', sans-serif; }
.kpi-faixa small { display: block; font-size: .72rem; color: var(--text-muted); }
.funil { display: flex; flex-direction: column; gap: .45rem; }
.funil-linha { display: grid; grid-template-columns: minmax(130px, 200px) 1fr auto; align-items: center; gap: .6rem; font-size: .84rem; }
.funil-linha i { display: block; height: 18px; border-radius: 0; background: linear-gradient(90deg, #12292D, #0F7686); }
.funil-linha b { font-size: .84rem; white-space: nowrap; }
.grade-erp td.verde { color: var(--green-dark); font-weight: 600; }
.grade-erp td.celbar { position: relative; min-width: 90px; }
.grade-erp td.celbar i { position: absolute; left: 4px; top: 24%; bottom: 24%; background: var(--lime-tint); border-radius: 0; max-width: calc(100% - 8px); }
.grade-erp td.celbar span { position: relative; }
.grade-erp-tot a { color: inherit; font-weight: 600; }
.erp-actions.solto { position: static; background: transparent; box-shadow: none; padding: 0; }
.mapa-filtros input:not([type=checkbox]), .mapa-filtros select { padding: .5rem .7rem; border: 1px solid var(--input-border); border-radius: 0; font: inherit; font-size: .86rem; background: #fff; }
.mapa-filtros input:not([type=checkbox]):not([type=date]) { flex: 1 1 200px; }
.mapa-filtros .chk { white-space: nowrap; margin-right: 0; }
.mapa-filtros .chk input { flex: none; width: auto; padding: 0; }
.ativ-cal th, .ativ-cal td { padding: .4rem .3rem; }
.ativ-cal th small { display: block; font-size: .62rem; opacity: .8; }
.ativ-cal th.fds, .ativ-cal td.fds { background: #F4F6F5; }
.ativ-cal th.hoje { background: #12292D; color: #C6F432; }
.ativ-cal .fixo { position: sticky; left: 0; background: #fff; z-index: 1; min-width: 150px; }
.ativ-cal thead .fixo { background: #4A5354; }
.ativ-cel { position: relative; min-width: 34px; height: 36px; cursor: pointer; border-left: 1px solid #EEF1EF; }
.ativ-cel b { font-size: .84rem; }
.ativ-cel i { position: absolute; top: 2px; right: 2px; font-style: normal; font-size: .6rem; font-weight: 700; min-width: 13px; height: 13px; border-radius: 0; line-height: 13px; text-align: center; color: #fff; }
.ativ-cel i.ativ-falha { background: #D64545; }
.ativ-cel i.ativ-plano { background: #E8A33D; }
.ativ-cel i.ativ-erp { top: auto; bottom: 3px; left: 50%; right: auto; transform: translateX(-50%); width: 6px; min-width: 6px; height: 6px; background: #8FB31F; }
.ativ-tag { display: inline-block; padding: .12rem .45rem; border-radius: 0; font-size: .74rem; font-weight: 600; background: #EEF1EF; color: #33403F; white-space: nowrap; }
.ativ-tag.t-visita { background: #DDEFF1; color: #0B5F6B; }
.ativ-tag.t-contato { background: #E7F2DA; color: #3F6212; }
.ativ-tag.t-venda { background: #F4F9DC; color: #5B6B10; }
.ativ-tag.t-erp { background: #EDEDF7; color: #3F3F7A; }
.ativ-tag.t-plano { background: #FBF0DC; color: #8A5A10; }
.ativ-tag.t-falha { background: #FBE4E4; color: #A12C2C; }
.ativ-desc { white-space: normal !important; min-width: 220px; max-width: 420px; font-size: .8rem; color: var(--text-muted); }
.kpi-faixa small.vermelho, .sub-cod.vermelho { color: var(--red); }
.com-lista { display: flex; flex-direction: column; gap: .5rem; }
.com-item { background: #F4F7F6; border-radius: 0; padding: .55rem .7rem; }
.com-cab { display: flex; justify-content: space-between; gap: .5rem; font-size: .8rem; }
.com-cab small { color: var(--text-muted); }
.com-texto { font-size: .86rem; margin-top: .2rem; white-space: pre-line; }
.com-novo { display: flex; gap: .5rem; align-items: flex-end; margin-top: .6rem; }
.com-novo textarea { flex: 1; min-height: 60px; padding: .5rem .6rem; border: 1px solid var(--input-border); border-radius: 0; font: inherit; font-size: .86rem; }
.senha-regras { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.senha-regras span { font-size: .76rem; padding: .2rem .55rem; border-radius: 0; background: #EEF1EF; color: var(--text-muted); }
.senha-regras span.ok { background: #E7F2DA; color: #3F6212; font-weight: 600; }

.mini-link { display: inline-flex; align-items: center; min-height: 34px; padding: 0 .85rem; }
.ph-voltar, .cr-editar { display: inline-flex; align-items: center; min-height: 34px; }
.seg-btn { min-height: 38px; }
.grade-erp .tag, .tag-esp, .tag-origem { font-size: .72rem; }
.anel small, .bi-donut small, .barras .bv, .foco-cal td.fc-cli small { font-size: .72rem; }
.kpi-box span { font-size: .76rem; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--navy); flex: none; }
.kpi-box b.cheio, .bi-kpi b.cheio { font-size: 1.12rem; letter-spacing: -.01em; white-space: nowrap; }
.ent-cli { padding: .2rem 0; }
.ent-cli-top { display: flex; align-items: flex-start; gap: .75rem; padding: .75rem .9rem .55rem; border-bottom: 1px solid var(--card-border); }
.ent-cli-top b { display: block; font-size: .95rem; }
.ent-cli-top small, .ent-item small { display: block; font-size: .76rem; color: var(--text-muted); margin-top: .1rem; }
.ent-cli-tot { text-align: right; white-space: nowrap; }
.ent-item { display: flex; align-items: center; gap: .6rem; padding: .55rem .9rem; border-bottom: 1px solid #EEF1EF; font-size: .88rem; }
.ent-item:last-child { border-bottom: 0; }
.ent-item > b { white-space: nowrap; }
.ent-item .rmbtn { min-width: 36px; min-height: 36px; }
.ent-acao { z-index: 950; }
.ent-acao .ent-enviar { min-height: 52px; font-size: 1.05rem; font-weight: 700; background: var(--lime); color: var(--navy); border-color: var(--lime); box-shadow: 0 4px 14px rgba(169,214,27,.45); }
.ent-acao .ent-enviar:disabled { background: #E3E8E4; border-color: #E3E8E4; color: #8A9694; box-shadow: none; }
.ent-qtd { width: 86px; min-height: 40px; border: 1px solid var(--input-border); border-radius: 0; padding: 0 .55rem; font: inherit; font-size: .92rem; text-align: right; background: #fff; }
.ent-add { min-width: 44px; min-height: 40px; padding: 0 .7rem; font-weight: 700; }
.ent-tocavel { cursor: pointer; }
.ent-tocavel:active { background: #F2F6F4; }
.ent-edit { background: var(--lime-tint); }

.ditado { position: relative; }
.ditado textarea { width: 100%; padding-right: 3rem; }
.ditado-btn { position: absolute; right: .4rem; top: .4rem; width: 2.3rem; height: 2.3rem; border-radius: 0; border: 1px solid var(--input-border);
    background: #fff; color: var(--navy); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.ditado-btn .ic { width: 1.1rem; height: 1.1rem; }
.ditado.ouvindo .ditado-btn { background: var(--red); border-color: var(--red); color: #fff; animation: ditado-pulso 1.2s ease-in-out infinite; }
.ditado-status { font-size: .74rem; color: var(--text-muted); margin-top: .25rem; font-style: italic; }
.ditado-status.erro { color: var(--red); font-style: normal; }
@keyframes ditado-pulso { 0%, 100% { box-shadow: 0 0 0 0 rgba(180,35,24,.45); } 50% { box-shadow: 0 0 0 .45rem rgba(180,35,24,0); } }

.loc-cli { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 0; padding: .7rem .8rem; margin-bottom: .6rem; }
.loc-faz { border-top: 1px solid var(--card-border); margin-top: .55rem; padding-top: .55rem; }
.loc-faz-top { display: flex; align-items: center; gap: .5rem; justify-content: space-between; }
.loc-faz-nome { font-weight: 600; font-size: .88rem; }
.loc-coord { font-size: .76rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.loc-edit { display: flex; flex-direction: column; gap: .45rem; margin-top: .5rem; }
.loc-edit input { width: 100%; padding: .6rem .7rem; border: 1px solid var(--input-border); border-radius: 0; font: inherit; font-size: .88rem; }
.loc-ok { color: var(--green-dark); font-size: .8rem; font-weight: 600; }
.loc-pend { color: var(--gold-dark); font-size: .8rem; font-weight: 600; }
.loc-banner { display: flex; align-items: center; gap: .6rem; background: var(--gold-tint); color: var(--gold-ink); border-radius: 0;
    padding: .65rem .8rem; margin: 0 0 .8rem; text-decoration: none; font-size: .86rem; }
.loc-banner b { font-weight: 700; }
.loc-banner .ic { width: 1.2rem; height: 1.2rem; flex: none; }

.data-linha { display: flex; align-items: center; gap: .7rem; }
.data-dia { flex: none; width: 3.1rem; text-align: center; border-radius: 0; background: var(--accent-tint); color: var(--navy); padding: .3rem 0; line-height: 1.1; }
.data-dia b { display: block; font-size: 1.15rem; }
.data-dia small { font-size: .66rem; text-transform: uppercase; }
.data-dia.hoje { background: var(--lime); color: var(--lime-ink); }

.rec-item { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 0; padding: .7rem; margin-bottom: .6rem; }
.rec-item-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .45rem; }
.rec-total { font-size: .78rem; color: var(--text-muted); margin-top: .3rem; }

html.sol { font-size: 112%; }
html.sol:root, html.sol {
    --text: #000000;
    --text-muted: #26302F;
    --page-bg: #FFFFFF;
    --card-border: #5E6B69;
    --input-border: #3E4947;
    --accent-tint: #DCE6E3;
    --shadow: 0 0 0 1.5px #3E4947;
}
html.sol body { background: #fff; color: #000; }
html.sol .card, html.sol .kpi-box, html.sol .loc-cli, html.sol .rec-item, html.sol .item-card { border-width: 1.5px; }
html.sol .field input, html.sol .field select, html.sol .field textarea { border-width: 1.5px; background: #fff; color: #000; }
html.sol .erp-btn { border-width: 1.5px; font-weight: 700; }
html.sol .card-sub, html.sol .ph-sub, html.sol small { color: #1C2523; }
html.sol .chip { font-weight: 700; }

.teclado-chip { position: fixed; right: 10px; bottom: 10px; z-index: 3000; min-width: 3.2rem; height: 2.3rem; padding: 0 .8rem;
    border-radius: 0; border: 1px solid var(--navy); background: var(--navy); color: #fff; font: inherit; font-weight: 700; font-size: .85rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.25); }

.desfazer { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + 14px); z-index: 2500;
    display: flex; align-items: center; gap: 1rem; background: var(--navy-dark); color: #fff; padding: .7rem .8rem .7rem 1rem;
    border-radius: 0; box-shadow: 0 6px 18px rgba(0,0,0,.25); font-size: .88rem; max-width: calc(100vw - 32px); }
.desfazer button { background: none; border: 0; color: var(--lime); font: inherit; font-weight: 700; padding: .2rem .4rem; cursor: pointer; }
.desfazer.erro { background: var(--red); }
.desfazer.ok { background: var(--green-dark); }
.desfazer .ic { width: 18px; height: 18px; flex: none; }
@media (min-width: 900px) { .desfazer { bottom: 24px; } }

.fila-status { display: flex; align-items: center; gap: .5rem; width: 100%; border: 0; background: var(--accent-tint); color: var(--navy);
    font: inherit; font-size: .82rem; font-weight: 600; padding: .5rem 1rem; cursor: pointer; text-align: left; }
.fila-status span { flex: 1; }
.fila-status .ic { width: 1rem; height: 1rem; flex: none; }
.fila-status.off { background: var(--amber-bg); color: var(--amber-text); }
.fila-card { padding-bottom: 1rem; }
.fila-lista { overflow: auto; padding: 0 1rem; }
.fila-item { display: flex; align-items: center; gap: .6rem; padding: .6rem 0; border-bottom: 1px solid var(--card-border); }
.fila-desc { font-weight: 600; font-size: .88rem; }
.fila-sub { font-size: .75rem; color: var(--text-muted); }
.fila-erro { font-size: .75rem; color: var(--red); margin-top: .15rem; }
.fila-card .erp-actions { padding: 0 1rem; }

.loading { position: relative; color: transparent !important; min-height: 9rem; padding: 0 !important; text-align: left;
    background:
        linear-gradient(90deg, rgba(255,255,255,0) 0, rgba(255,255,255,.65) 50%, rgba(255,255,255,0) 100%) -100% 0 / 60% 100% no-repeat,
        linear-gradient(#E6EBE8 0 0) 0 0 / 100% 2.6rem no-repeat,
        linear-gradient(#EDF1EE 0 0) 0 3.2rem / 82% 1rem no-repeat,
        linear-gradient(#EDF1EE 0 0) 0 4.8rem / 64% 1rem no-repeat,
        linear-gradient(#E6EBE8 0 0) 0 6.4rem / 100% 2.6rem no-repeat;
    border-radius: 0; animation: esqueleto 1.3s ease-in-out infinite; user-select: none; }
.loading.sm { min-height: 3.2rem;
    background:
        linear-gradient(90deg, rgba(255,255,255,0) 0, rgba(255,255,255,.65) 50%, rgba(255,255,255,0) 100%) -100% 0 / 60% 100% no-repeat,
        linear-gradient(#EDF1EE 0 0) 0 .4rem / 80% 1rem no-repeat,
        linear-gradient(#EDF1EE 0 0) 0 1.9rem / 55% 1rem no-repeat; }
@keyframes esqueleto { to { background-position: 200% 0, 0 0, 0 3.2rem, 0 4.8rem, 0 6.4rem; } }
.loading.sm { animation-name: esqueleto-sm; }
@keyframes esqueleto-sm { to { background-position: 200% 0, 0 .4rem, 0 1.9rem; } }

.pref-lista { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 0; }
.pref { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; font-size: .9rem; cursor: pointer; }
.pref + .pref { border-top: 1px solid var(--card-border); }
.pref input { width: 2.6rem; height: 1.4rem; accent-color: var(--navy); flex: none; }

.comp-corpo { padding: .2rem 1rem 1rem; overflow: auto; }
.comp-dest { display: flex; align-items: center; gap: .7rem; padding: .65rem .2rem; border-bottom: 1px solid var(--card-border); color: var(--text); text-decoration: none; }
.comp-dest b { display: block; font-size: .9rem; }
.comp-dest small { display: block; font-size: .75rem; color: var(--text-muted); }
.comp-dest .ic { width: 1.3rem; height: 1.3rem; color: #1f8f4e; flex: none; }

.repetir { display: flex; align-items: center; gap: .7rem; width: 100%; margin: 0 0 .8rem; padding: .65rem .8rem; border-radius: 0;
    border: 1px dashed var(--navy); background: var(--accent-tint); color: var(--navy); font: inherit; text-align: left; cursor: pointer; }
.repetir .ic { width: 1.2rem; height: 1.2rem; flex: none; }
.repetir b { display: block; font-size: .88rem; }
.repetir small { display: block; font-size: .75rem; color: var(--text-muted); }

.ic-info { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; width: 100%; margin: .35rem 0 .1rem; padding: 0; border: 0; background: none;
    font: inherit; font-size: .74rem; color: var(--text-muted); text-align: left; cursor: pointer; }
.ic-info span { padding: .12rem .45rem; border-radius: 0; background: #EEF2EF; white-space: nowrap; }
.ic-info span.bom { background: var(--green-tint); color: var(--green-text); }
.ic-info span.ruim { background: var(--red-tint); color: var(--red); font-weight: 600; }
.ic-info span.aviso { background: var(--amber-bg); color: var(--amber-text); font-weight: 600; }
.ic-info .ic { width: .9rem; height: .9rem; margin-left: auto; flex: none; }
.ic-info-det { font-size: .76rem; color: var(--text-muted); background: #F6F8F6; border-radius: 0; padding: .45rem .6rem; margin: .2rem 0 .3rem; display: grid; gap: .2rem; }
.ic-info-det .ruim { color: var(--red); font-weight: 600; }

.aprov-aviso, .aprov-selo { border-radius: 0; padding: .6rem .8rem; margin: .7rem 0 0; font-size: .82rem; display: grid; gap: .15rem; }
.aprov-aviso, .aprov-selo.pendente { background: var(--amber-bg); color: var(--amber-text); }
.aprov-selo.recusada { background: var(--red-tint); color: var(--red); }
.aprov-selo.aprovada { background: var(--green-tint); color: var(--green-text); }
.aprov-selo .obs { font-style: italic; }
.aprov-chip { margin-left: .3rem; }
.aprov-chip.pendente { background: var(--amber-bg); color: var(--amber-text); }
.aprov-chip.recusada { background: var(--red-tint); color: var(--red); }
.aprov-motivos { font-size: .8rem; color: var(--amber-text); background: var(--amber-bg); border-radius: 0; padding: .4rem .6rem; margin: .4rem 0; display: grid; gap: .1rem; }
.aprov-obs { flex: 1 1 12rem; min-width: 0; padding: .55rem .7rem; border: 1px solid var(--input-border); border-radius: 0; font: inherit; font-size: .86rem; }
.prazo-card { margin-top: .8rem; }
.prazo-topo { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .4rem; }
.prazo-topo span { font-size: .78rem; color: var(--text-muted); }
.prazo-valores { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .5rem; }
.prazo-valores div { background: #F4F7F5; border-radius: 0; padding: .45rem .55rem; }
.prazo-valores small { display: block; font-size: .7rem; color: var(--text-muted); }
.prazo-valores b { font-size: .92rem; }
@media (max-width: 420px) { .prazo-valores { grid-template-columns: 1fr 1fr; } }

.aprov-destaque { outline: 2px solid var(--navy); }

.rel-modelos { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: .6rem; scrollbar-width: none; }
.rel-modelos .fchip { white-space: nowrap; flex: none; }
.rel-mais { display: flex; align-items: center; gap: .3rem; background: none; border: 0; padding: .6rem 0 .3rem; font: inherit; font-size: .85rem; font-weight: 600; color: var(--navy); cursor: pointer; }
.rel-mais .ic { width: .95rem; height: .95rem; }
.grade-erp td.neg { color: var(--red); }
.grade-erp td.pos { color: var(--green-text); }

.conexao { display: inline-flex; align-items: center; gap: .55rem; padding: .32rem .8rem .32rem .38rem; border-radius: 0; cursor: pointer;
    border: 1px solid rgba(46,125,50,.22); background: linear-gradient(135deg, #F2FAF0 0%, #E3F3DF 100%); color: var(--green-dark);
    font: inherit; text-align: left; box-shadow: 0 1px 2px rgba(14,23,25,.06); transition: transform .15s ease, box-shadow .15s ease; }
.conexao:active { transform: scale(.97); }
.conexao .cx-ico { position: relative; width: 2rem; height: 2rem; border-radius: 0; display: grid; place-items: center; flex: none;
    background: #fff; box-shadow: inset 0 0 0 1px rgba(46,125,50,.25); }
.conexao .cx-ico .ic { width: 1.05rem; height: 1.05rem; position: relative; z-index: 1; }
.conexao .cx-pulso { position: absolute; inset: 0; border-radius: 0; background: rgba(46,125,50,.28); animation: cx-pulso 2.2s ease-out infinite; }
.conexao .cx-txt { display: flex; flex-direction: column; line-height: 1.1; }
.conexao .cx-txt b { font-size: .8rem; font-weight: 700; letter-spacing: .01em; }
.conexao .cx-txt small { font-size: .66rem; font-weight: 500; opacity: .8; white-space: nowrap; }
.conexao.sync { color: var(--navy); border-color: rgba(18,41,45,.2); background: linear-gradient(135deg, #F3F7F6 0%, #E6EEEC 100%); }
.conexao.sync .cx-pulso { background: rgba(18,41,45,.18); }
.conexao.off { color: var(--red); border-color: rgba(180,35,24,.25); background: linear-gradient(135deg, #FFF5F4 0%, #FCE5E2 100%); }
.conexao.off .cx-ico { box-shadow: inset 0 0 0 1px rgba(180,35,24,.3); }
.ic.girar { animation: girar 1s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes cx-pulso { 0% { transform: scale(.85); opacity: .9; } 70% { transform: scale(1.45); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 420px) { .conexao .cx-txt small { display: none; } .conexao { padding-right: .65rem; } }
@media (prefers-reduced-motion: reduce) { .conexao .cx-pulso, .ic.girar { animation: none; } }

.resv { background: var(--card-bg); border-radius: 0; box-shadow: var(--shadow); padding: .85rem 1.1rem .9rem; margin: .7rem 0 1rem; }
.res-esq .resv { margin: .7rem 0 0; }
.resv-topo { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }
.resv-topo span { font-size: .8rem; color: var(--text-muted); font-weight: 500; }
.resv-topo b { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.resv-barra { display: flex; height: .62rem; border-radius: 0; overflow: hidden; background: #EDF1EE; margin: .55rem 0 .5rem; }
.resv-barra i { display: block; height: 100%; }
.resv-barra i.f, .resv-leg i.f { background: var(--navy); }
.resv-barra i.a, .resv-leg i.a { background: var(--lime-dark); }
.resv-leg { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .76rem; color: var(--text-muted); }
.resv-leg span { display: inline-flex; align-items: center; gap: .35rem; }
.resv-leg i { width: .6rem; height: .6rem; border-radius: 0; display: inline-block; }
.resv-leg b { color: var(--text); font-weight: 700; }
html.sol .conexao { border-width: 1.5px; }

.doc-ok { display: block; color: var(--green-text); font-size: .74rem; margin-top: .2rem; }
.doc-erro { display: block; color: var(--red); font-size: .74rem; margin-top: .2rem; }
.dup-aviso { background: var(--amber-bg); color: var(--amber-text); border-radius: 0; padding: .7rem .8rem; margin: .6rem 0; font-size: .84rem; display: grid; gap: .35rem; }
.dup-item { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.dup-item a { margin-left: auto; color: var(--navy); font-weight: 600; }
.ie-linha { align-items: end; }
.ie-acao { display: flex; align-items: end; }
.desp-topo { display: flex; align-items: center; gap: .7rem; width: 100%; background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.desp-topo b { display: block; font-size: .9rem; }
.desp-topo small { display: block; font-size: .75rem; color: var(--text-muted); }
.desp-ico { width: 2.3rem; height: 2.3rem; border-radius: 0; background: var(--accent-tint); color: var(--navy); display: grid; place-items: center; flex: none; }
.desp-ico .ic { width: 1.15rem; height: 1.15rem; }
.desp-dir { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; }
.chip.desp-pendente { background: var(--amber-bg); color: var(--amber-text); }
.chip.desp-aprovada { background: var(--green-tint); color: var(--green-text); }
.chip.desp-recusada { background: var(--red-tint); color: var(--red); }

.talh-barra { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .5rem; }
.talh-barra select { padding: .45rem .6rem; border: 1px solid var(--input-border); border-radius: 0; font: inherit; font-size: .85rem; background: #fff; }
.talh-camadas { flex: 1 1 auto; }
.talh-mapa { height: 58vh; min-height: 320px; border-radius: 0; overflow: hidden; box-shadow: var(--shadow); background: #DDE3DF; }
.talh-desenho { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .6rem; padding: .6rem .7rem; background: var(--navy); color: #fff; border-radius: 0; }
.talh-desenho span { flex: 1 1 100%; font-size: .85rem; }
.talh-desenho .erp-btn { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.talh-desenho .erp-btn.primary { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.talh-imp { display: flex; align-items: center; gap: .5rem; padding: .4rem 0; border-bottom: 1px solid var(--card-border); font-size: .85rem; }
.talh-imp input[type=checkbox] { width: 1.2rem; height: 1.2rem; accent-color: var(--navy); }
.talh-imp-nome { flex: 1; min-width: 0; padding: .4rem .5rem; border: 1px solid var(--input-border); border-radius: 0; font: inherit; }
.grupo-membros { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .35rem; }
.grupo-membros .chip { text-decoration: none; }
.grupo-membros .chip.on { background: var(--navy); color: #fff; }
.chip-x { background: none; border: 0; color: inherit; padding: 0 0 0 .3rem; cursor: pointer; display: inline-flex; }
.chip-x .ic { width: .8rem; height: .8rem; }
.faz-ico { width: 1rem; height: 1rem; margin-right: .35rem; vertical-align: -2px; color: var(--green-dark); }
.chip.faz-matriz { background: var(--navy); color: #fff; }
.faz-contatos { display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-size: .78rem; margin-top: .35rem; color: var(--text); }
.faz-contatos a { color: #1f8f4e; margin-left: .25rem; }
.faz-contatos .ic { width: .95rem; height: .95rem; vertical-align: -2px; }


.menu-busca { display: flex; align-items: center; gap: .5rem; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 0;
    padding: .2rem .4rem .2rem .8rem; margin-bottom: .9rem; box-shadow: var(--shadow); }
.menu-busca .ic { width: 1.1rem; height: 1.1rem; color: var(--text-muted); flex: none; }
.menu-busca input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: .95rem; padding: .65rem 0; outline: none; color: var(--text); }
.menu-busca button { background: none; border: 0; padding: .45rem; color: var(--text-muted); cursor: pointer; display: inline-flex; }
.menu-sec { display: flex; align-items: baseline; justify-content: space-between; margin: .2rem .1rem .55rem; }
.menu-sec span { font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; }
.menu-sec .mini-link { border: 0; cursor: pointer; }
.menu-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
@media (min-width: 560px) { .menu-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 960px) { .menu-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.menu-tiles .tile { min-height: 5.6rem; padding: .7rem .4rem; text-align: center; }
.menu-tiles .tile .t-lbl { font-size: .76rem; }
.menu-tiles.destaque .tile { min-height: 6.2rem; }
.menu-grupo { margin-top: .7rem; background: var(--card-bg); border-radius: 0; box-shadow: var(--shadow); overflow: hidden; }
.menu-grupo-topo { display: flex; align-items: center; gap: .5rem; width: 100%; background: none; border: 0; padding: .8rem 1rem; font: inherit; cursor: pointer; color: var(--text); text-align: left; }
.menu-grupo-topo span { flex: 1; font-weight: 700; font-size: .95rem; }
.menu-grupo-topo small { font-size: .74rem; color: var(--text-muted); background: var(--accent-tint); border-radius: 0; padding: .05rem .5rem; }
.menu-grupo-topo .ic { width: 1rem; height: 1rem; color: var(--text-muted); }
.menu-grupo .menu-tiles { padding: 0 .7rem .8rem; }
.menu-grupo .tile { box-shadow: none; border: 1px solid var(--card-border); }
.tile.fixar { position: relative; cursor: pointer; font: inherit; }
.tile.fixar .t-estrela { position: absolute; top: .35rem; right: .4rem; color: #C9CFCB; }
.tile.fixar .t-estrela .ic { width: .95rem; height: .95rem; }
.tile.fixar.fixo { background: var(--gold-tint); }
.tile.fixar.fixo .t-estrela { color: var(--gold); }
.sb-sec { display: flex; align-items: center; gap: .4rem; width: 100%; background: none; border: 0; padding: .9rem .6rem .3rem; font: inherit;
    font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); cursor: pointer; text-align: left; }
.sb-sec span { flex: 1; }
.sb-sec .ic { width: .85rem; height: .85rem; }
.sb-link .sb-svg { width: 18px; height: 18px; flex: none; }
.lanc-usados { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 1rem; }
.lanc-usados a { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .7rem .3rem; border-radius: 0; border: 1px solid var(--card-border);
    text-decoration: none; color: var(--text); font-size: .74rem; font-weight: 600; text-align: center; }
.lanc-usados svg { width: 22px; height: 22px; color: var(--navy); }

@media (max-width: 759.98px) {
    .grade-erp tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem .8rem; }
    .grade-erp td.nome { grid-column: 1 / -1; }
    .grade-erp td:empty { display: none; }
    .grade-erp td { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
    .grade-erp td.celbar { min-width: 0; }
    .grade-erp td.celbar i, .bi-matriz td.celbar i { display: none; }
    .grade-erp td.celbar span { font-weight: 700; }
}
@media (max-width: 380px) {
    .grade-erp tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .barras { gap: .3rem; height: 190px; }
    .barras .bv { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .62rem; line-height: 1; }
    .barras .bm { font-size: .66rem; }
}


.olho-valores { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; width: 2.5rem; height: 2.5rem; border-radius: 0;
    border: 1px solid var(--card-border); background: var(--card-bg); color: var(--navy); cursor: pointer; padding: 0; box-shadow: var(--shadow); flex: none; }
.olho-valores .ic { width: 1.2rem; height: 1.2rem; }
.olho-valores.on { background: var(--navy); color: var(--lime); border-color: var(--navy); }
.olho-valores.sb-olho { width: auto; height: auto; border-radius: 0; padding: .5rem .7rem; margin: .2rem 0 .4rem; box-shadow: none; font: inherit; font-size: .85rem; justify-content: flex-start; }

html.ocultar-valores :is(.kpi-box b, .kpi-box > span, .bi-kpi b, .bi-kpi > span, .meta-txt b, .meta-txt strong, .anel b, .resv b, .resv-leg b,
    .grade-erp td.num, .grade-erp td.num span, .grade-erp-tot span:last-child, .ph-sub, .barras .bv, .prazo-valores b, .ic-total b,
    .desp-dir b, .card-top > b, .hh-valor, .kpi-faixa b, .res-card b, .at-row b, .ficha-linhas b, .rec-total, .loc-coord,
    .rv-campos b, .valor, .money, .fila-desc + .fila-sub) {
    filter: blur(7px); user-select: none; transition: filter .15s ease;
}


.page-header, .topo-fixo { position: sticky; top: 0; z-index: 40; background: var(--page-bg); margin-left: -1rem; margin-right: -1rem;
    padding-left: 1rem; padding-right: 1rem; transition: box-shadow .15s ease, padding .15s ease; }
.topo-fixo { padding-top: .2rem; }
html.rolou .page-header, html.rolou .topo-fixo { box-shadow: 0 1px 0 var(--card-border), 0 6px 14px -12px rgba(14,23,25,.35); padding-top: .45rem; padding-bottom: .4rem; }
html.rolou .page-header .ph-title { font-size: 1.12rem; }
html.rolou .page-header .ph-sub { display: none; }
html.rolou .page-header .back-link, html.rolou .topo-fixo .back-link { padding-bottom: .15rem; font-size: .85rem; }
html.rolou .topo-fixo .ficha-topo { margin-bottom: .3rem; }
html.rolou .topo-fixo .ft-nome { font-size: 1.02rem; }
html.rolou .topo-fixo .ft-sub { display: none; }
html.rolou .topo-fixo .avatar.lg { width: 2.1rem; height: 2.1rem; font-size: .75rem; }
@media (min-width: 960px) { .page-header, .topo-fixo { margin-left: -2rem; margin-right: -2rem; padding-left: 2rem; padding-right: 2rem; } }

.ficha-grupos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: .2rem 0 .55rem; }
.ficha-grupo { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .55rem .2rem; border-radius: 0; border: 1px solid var(--card-border);
    background: var(--card-bg); color: var(--text-muted); font: inherit; font-size: .74rem; font-weight: 600; cursor: pointer; }
.ficha-grupo .ic { width: 1.15rem; height: 1.15rem; }
.ficha-grupo.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.ficha-grupo.on .ic { color: var(--lime); }
.ficha-sub { display: flex; gap: .4rem; flex: 1; min-width: 0; padding-bottom: .2rem; }
.ficha-sub.rolavel { overflow-x: auto; scrollbar-width: none; }
.ficha-sub .fchip { white-space: nowrap; flex: none; }
.ficha-abas { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; }


.tabbar.seis .tab .ic { padding: 2px 9px; }
.tabbar.seis .tab span { font-size: .66rem; }
.tabbar.seis .tab-mais span { width: 50px; height: 50px; }

.sd-topo { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 0; padding: .8rem .9rem; margin-bottom: .7rem; display: flex; flex-direction: column; gap: .45rem; }
.sd-nome { font-size: 1.05rem; font-weight: 700; }
.sd-outros { font-size: .74rem; color: var(--text-muted); margin-top: -.2rem; }
.sd-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.sd-kpis > div { background: var(--page-bg); border-radius: 0; padding: .45rem .55rem; min-width: 0; }
.sd-kpis span { display: block; font-size: .7rem; color: var(--text-muted); }
.sd-kpis b { display: block; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-barra { display: flex; height: 8px; border-radius: 0; overflow: hidden; background: #E6EAE8; margin: .3rem 0 .2rem; }
.sd-barra span { display: block; height: 100%; }
.sd-e { background: #7FB24A; } .sd-c { background: #2F7FC8; } .sd-s { background: #E3A12F; } .sd-l { background: #C9D1CE; }
.sd-leg { display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-size: .7rem; color: var(--text-muted); }
.sd-leg i { display: inline-block; width: 9px; height: 9px; border-radius: 0; margin-right: 4px; vertical-align: -1px; }
.sd-chips { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; margin-bottom: .55rem; padding-bottom: .1rem; }
.sd-chips .fchip { white-space: nowrap; flex: none; }
.sd-seg { margin-bottom: .6rem; }
.sd-busca { display: flex; align-items: center; gap: .5rem; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 0; padding: 0 .7rem; margin-bottom: .6rem; }
.sd-busca .ic { width: 1.1rem; height: 1.1rem; color: var(--text-muted); }
.sd-busca input { flex: 1; border: 0; background: transparent; padding: .65rem 0; font: inherit; outline: none; min-width: 0; }
.sd-lista { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .8rem; }
.sd-item { display: block; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 0; padding: .65rem .8rem; cursor: pointer; color: inherit; text-decoration: none; }
.sd-item.ok { opacity: .62; }
.sd-l1 { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }
.sd-l1 b { font-size: .9rem; min-width: 0; overflow-wrap: anywhere; }
.sd-q { font-weight: 700; white-space: nowrap; font-size: .9rem; color: var(--navy); }
.sd-l2 { font-size: .74rem; color: var(--text-muted); }
.sd-sub { margin-top: .5rem; padding-top: .45rem; border-top: 1px dashed var(--card-border); display: flex; flex-direction: column; gap: .3rem; }
.sd-subl { display: flex; justify-content: space-between; gap: .6rem; font-size: .78rem; color: var(--text); text-decoration: none; }
.sd-subl span { color: var(--text-muted); min-width: 0; overflow-wrap: anywhere; }
.sd-subl b { white-space: nowrap; }
.sd-acoes { position: sticky; }
.sd-acoes .erp-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.sd-acoes .ic { width: 1.1rem; height: 1.1rem; }

.vazio-acao { display: flex; flex-direction: column; align-items: center; gap: .55rem; padding: 2.2rem 1rem; text-align: center; color: var(--text-muted); }
.vazio-acao > .ic { width: 3.2rem; height: 3.2rem; padding: .9rem; border-radius: 0; background: var(--card-bg); border: 1px solid var(--card-border); color: var(--navy); }
.vazio-acao b { color: var(--text); font-size: .98rem; }
html.ocultar-valores .sd-q { filter: none; }


.ft-outros { font-size: .74rem; color: var(--text-muted); line-height: 1.3; margin: .1rem 0 .15rem; }
html.rolou .topo-fixo .ft-outros { display: none; }
.cli-outros { display: block; font-size: .72rem; color: var(--text-muted); font-weight: 400; line-height: 1.3; margin-top: .1rem; }


svg.ic-m, svg.ic-m * { stroke: none !important; }
svg.ic-m { fill: currentColor; }

.tile > svg.ic-m { width: 46px; height: 46px; padding: 10px; border-radius: 0; background: #E3F1EE; color: var(--navy); box-sizing: border-box; }
.lanc-usados svg.ic-m, .lanc-lista svg.ic-m { color: var(--navy); }
.sb-link .sb-svg.ic-m { width: 20px; height: 20px; }
.tabbar .tab .ic-m { width: 26px; height: 26px; }


.prio .barra { display: none; }
.card.alerta, .card.alerta.alerta-vencido, .card.alerta.alerta-sem-visita, .card.alerta.alerta-cotacao, .card.alerta.alerta-orcamento, .card.alerta.alerta-entrega,
.card.alerta.alerta-aniversario, .card.compromisso.tarefa.alta, .agenda-item.visita, .agenda-item.tarefa, .section.parada.feita,
.credito.alerta, .checkin.aberto { box-shadow: var(--shadow); }
.tipo-ic { width: 38px; height: 38px; border-radius: 0; display: inline-flex; align-items: center; justify-content: center; flex: none; background: #E3F1EE; color: var(--navy); }
.tipo-ic .ic { width: 21px; height: 21px; }
.tipo-ic.t-vermelho { background: #FBE7E5; color: #B3261E; }
.tipo-ic.t-ouro { background: #FBF0D9; color: #8A5A00; }
.tipo-ic.t-verde { background: #E8F3DA; color: #3B6D11; }
.tipo-ic.t-roxo { background: #F1E8F7; color: #6E3B8E; }
.etq { display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; padding: .08rem .4rem; border-radius: 0;
    margin-right: .4rem; vertical-align: 1px; background: #E3F1EE; color: var(--navy); white-space: nowrap; }
.card-title .etq, .prio .grow b .etq { margin: 0 0 0 .45rem; }
.etq.e-vermelho, .etq.e-vencido { background: #FBE7E5; color: #B3261E; }
.etq.e-ouro, .etq.e-cotacao, .etq.e-orcamento, .etq.e-sem-visita { background: #FBF0D9; color: #8A5A00; }
.etq.e-entrega { background: #E8F3DA; color: #3B6D11; }
.etq.e-aniversario, .etq.e-data { background: #F1E8F7; color: #6E3B8E; }


.ent-card .card-top { align-items: flex-start; }
.ent-quando { font-size: .78rem; font-weight: 700; color: var(--navy); background: #E3F1EE; border-radius: 0; padding: .15rem .5rem; white-space: nowrap; }
.ent-quando.atraso { background: #FBE7E5; color: #B3261E; }
.ent-quando.ok { background: #E8F3DA; color: #3B6D11; }
.etapas { display: grid; grid-template-columns: repeat(4, 1fr); margin: .65rem 0 .35rem; }
.etapa { display: flex; flex-direction: column; align-items: center; gap: .25rem; position: relative; }
.etapa::before { content: ""; position: absolute; top: 9px; left: calc(-50% + 11px); right: calc(50% + 11px); height: 3px; border-radius: 0; background: #DDE3E0; }
.etapa:first-child::before { display: none; }
.etapa.feita::before, .etapa.atual::before { background: var(--navy); }
.et-ponto { width: 20px; height: 20px; border-radius: 0; background: #DDE3E0; display: flex; align-items: center; justify-content: center; color: #fff; z-index: 1; }
.et-ponto .ic { width: 14px; height: 14px; }
.etapa.feita .et-ponto { background: var(--navy); }
.etapa.atual .et-ponto { background: var(--lime); box-shadow: 0 0 0 4px rgba(190,230,60,.28); color: var(--navy); }
.et-rot { font-size: .68rem; color: var(--text-muted); text-align: center; line-height: 1.1; }
.etapa.atual .et-rot { color: var(--text); font-weight: 700; }
.ent-atend { display: flex; align-items: center; gap: .6rem; }
.ent-atend .sd-barra { flex: 1; margin: 0; }
.ent-atend span { font-size: .74rem; color: var(--text-muted); white-space: nowrap; }
.ent-det { padding: .2rem .8rem .8rem; display: flex; flex-direction: column; gap: .6rem; }
.ent-grupo { border-top: 1px solid var(--card-border); padding-top: .55rem; display: flex; flex-direction: column; gap: .45rem; }
.ent-gtit b { display: block; font-size: .86rem; }
.ent-gtit small { display: block; font-size: .72rem; color: var(--text-muted); }
.ent-it .sd-l1 { font-size: .8rem; }
.ent-it .sd-l1 b { font-size: .8rem; white-space: nowrap; }
.ent-prod { min-width: 0; overflow-wrap: anywhere; }
.ent-obs { font-size: .78rem; color: var(--text-muted); }


.safra-card { display: block; background: var(--card-bg); border-radius: 0; box-shadow: var(--shadow); padding: .9rem 1rem; margin-top: .8rem; color: inherit; text-decoration: none; }
.sc-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.sc-kpis > div { min-width: 0; }
.sc-kpis small, .sc-mix > small { display: block; font-size: .72rem; color: var(--text-muted); }
.sc-kpis b { display: block; font-size: 1.45rem; line-height: 1.2; }
.sc-kpis span { display: block; font-size: .72rem; color: var(--text-muted); }
.sobe { color: #3B6D11; } .desce { color: #B3261E; }
.sc-mix { margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--card-border); display: flex; flex-direction: column; gap: .4rem; }
.sc-cat { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto 3rem; align-items: center; gap: .5rem; font-size: .78rem; }
.sc-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-barra { height: 7px; border-radius: 0; background: #E6EAE8; overflow: hidden; }
.sc-barra i { display: block; height: 100%; background: var(--navy); border-radius: 0; }
.sc-val { font-weight: 700; white-space: nowrap; }
.sc-var { font-size: .72rem; text-align: right; color: var(--text-muted); }
html.ocultar-valores .sc-val, html.ocultar-valores .sc-kpis span { filter: blur(7px); }


.ag-vend { margin-bottom: .6rem; }
.ag-vend select { width: 100%; padding: .55rem .7rem; border-radius: 0; border: 1px solid var(--card-border); background: var(--card-bg); font: inherit; }
.ag-semana { display: flex; align-items: center; gap: .3rem; margin-bottom: .8rem; }
.ag-nav { border: 0; background: transparent; padding: .3rem; color: var(--navy); cursor: pointer; flex: none; }
.ag-nav .ic { width: 22px; height: 22px; }
.ag-dias { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ag-dia { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: .4rem 0 .3rem; border-radius: 0; border: 1px solid var(--card-border);
    background: var(--card-bg); font: inherit; color: var(--text); cursor: pointer; }
.ag-dia small { font-size: .66rem; color: var(--text-muted); text-transform: uppercase; }
.ag-dia b { font-size: 1.02rem; }
.ag-n { font-size: .66rem; min-height: .9rem; color: var(--navy); font-weight: 700; }
.ag-dia.hoje b { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.ag-dia.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.ag-dia.on small, .ag-dia.on .ag-n { color: var(--lime); }
.ag-dia.alvo { border: 2px dashed var(--navy); }
.ag-mover { display: flex; align-items: center; justify-content: space-between; gap: .6rem; background: #FBF0D9; color: #6B4500; border-radius: 0; padding: .55rem .8rem; margin-bottom: .7rem; font-size: .84rem; }
.ag-rota { display: flex; align-items: center; gap: .7rem; background: var(--navy); color: #fff; border-radius: 0; padding: .7rem .9rem; margin-bottom: .8rem; text-decoration: none; }
.ag-rota > .ic:first-child { width: 26px; height: 26px; color: var(--lime); }
.ag-rota span { flex: 1; min-width: 0; }
.ag-rota b { display: block; font-size: .92rem; }
.ag-rota small { display: block; font-size: .74rem; opacity: .8; }
.ag-linha { display: flex; flex-direction: column; margin-bottom: 1rem; position: relative; }
.ag-item { display: grid; grid-template-columns: 3rem 38px minmax(0, 1fr); gap: .55rem; position: relative; padding-bottom: .7rem; }
.ag-item::before { content: ""; position: absolute; left: calc(3rem + .55rem + 18px); top: 40px; bottom: 0; width: 2px; background: #DDE3E0; }
.ag-item:last-child::before { display: none; }
.ag-hora { font-size: .8rem; font-weight: 700; color: var(--text-muted); padding-top: .6rem; text-align: right; }
.ag-ponto { z-index: 1; }
.ag-card { background: var(--card-bg); border-radius: 0; box-shadow: var(--shadow); padding: .65rem .8rem; display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.ag-item.emvisita .ag-card { outline: 2px solid var(--lime); }
.ag-tit { text-decoration: none; color: inherit; }
.ag-tit b { display: block; font-size: .9rem; overflow-wrap: anywhere; }
.ag-tit small { display: block; font-size: .76rem; color: var(--text-muted); }
.ag-acoes { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.ag-acoes .erp-btn { display: inline-flex; align-items: center; gap: .3rem; padding: .4rem .7rem; font-size: .8rem; }
.ag-acoes .ic { width: 1rem; height: 1rem; }
.ok-msg { background: #E8F3DA; color: #3B6D11; border-radius: 0; padding: .55rem .8rem; font-size: .84rem; margin-bottom: 1rem; }


.cli-cards { display: grid; grid-template-columns: 1fr; gap: .55rem; margin-bottom: .6rem; }
@media (min-width: 760px) { .cli-cards { grid-template-columns: 1fr 1fr; } }
.cli-card { display: flex; flex-direction: column; gap: .55rem; background: var(--card-bg); border-radius: 0; box-shadow: var(--shadow); padding: .75rem .85rem; color: inherit; text-decoration: none; }
.cc-top { display: flex; align-items: flex-start; gap: .6rem; }
.cc-nome { min-width: 0; flex: 1; }
.cc-nome b { display: block; font-size: .92rem; overflow-wrap: anywhere; }
.cc-nome > small { display: block; font-size: .74rem; color: var(--text-muted); }
.cc-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.cc-nums > div { background: var(--page-bg); border-radius: 0; padding: .35rem .5rem; min-width: 0; }
.cc-nums small { display: block; font-size: .66rem; color: var(--text-muted); }
.cc-nums b { display: block; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-nums b.vermelho { color: #B3261E; }
.cc-etqs { display: flex; flex-wrap: wrap; gap: .3rem; }
.cc-etqs .etq { margin: 0; }
html.ocultar-valores .cc-nums b { filter: blur(7px); }


.resumo-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; margin-bottom: .7rem; }
.rchip { display: flex; flex-direction: column; align-items: flex-start; gap: .05rem; padding: .5rem .6rem; border-radius: 0; border: 1px solid var(--card-border);
    background: var(--card-bg); font: inherit; color: var(--text); cursor: pointer; text-align: left; min-width: 0; }
.rchip b { font-size: 1.15rem; line-height: 1.1; }
.rchip span { font-size: .68rem; color: var(--text-muted); line-height: 1.15; }
.rchip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.rchip.on span { color: var(--lime); }
.rchip.alerta:not(.on) b { color: #B3261E; }
@media (max-width: 380px) { .resumo-chips { grid-template-columns: 1fr 1fr; } }
.emini { display: inline-flex; flex-direction: column; gap: .2rem; min-width: 0; }
.em-pontos { display: inline-flex; gap: 3px; }
.em-pontos i { width: 16px; height: 5px; border-radius: 0; background: #DDE3E0; }
.em-pontos i.feita { background: var(--navy); }
.em-pontos i.atual { background: var(--lime); }
.em-rot { font-size: .74rem; font-weight: 700; color: var(--navy); white-space: nowrap; }
.emini.recusada .em-rot { color: #B3261E; }
.emini.recusada .em-pontos i.atual { background: #E24B4A; }
.emini + .etq { margin: .25rem 0 0; display: inline-block; }


html.letra-maior, html.letra-maior body { font-size: 17px; }
html.letra-maior .tabbar .tab { font-size: 12px; }
html.letra-maior .card-sub, html.letra-maior small { font-size: max(.8rem, 12.5px); }
.ag-dia.on b, .ag-dia.on.hoje b { color: #fff; }


.nums { padding: .2rem .1rem .6rem; margin-bottom: .4rem; }
.nums a { color: inherit; text-decoration: none; }
.nums small { display: block; font-size: .74rem; color: var(--text-muted); }
.nums-topo { display: block; }
.n-gigante { display: block; font-size: 2.7rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; margin: .15rem 0 .55rem; }
.nums-barra { height: 7px; border-radius: 0; background: #DDE3E0; overflow: hidden; }
.nums-barra i { display: block; height: 100%; background: #7FB24A; border-radius: 0; }
.nums-leg { font-size: .74rem; color: var(--text-muted); margin-top: .3rem; }
.nums-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; margin: 1.3rem 0 1.1rem; }
.nums-grade b { display: block; font-size: 1.75rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; white-space: nowrap; }
.nums-linha { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.nums-linha a { padding: .7rem .2rem; text-align: center; }
.nums-linha a + a { border-left: 1px solid var(--card-border); }
.nums-linha b { display: block; font-size: 1.35rem; line-height: 1.1; }
.nums-linha small { font-size: .68rem; }
.nums-linha a.alerta b { color: #B3261E; }
.nums-mix { margin-top: 1.1rem; display: flex; flex-direction: column; gap: .55rem; }
.nm-cat { display: grid; grid-template-columns: minmax(0, 1fr) auto 3rem; column-gap: .6rem; row-gap: .25rem; align-items: baseline; }
.nm-nome { font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm-cat b { font-size: 1rem; }
.nm-var { font-size: .72rem; text-align: right; color: var(--text-muted); }
.nm-barra { grid-column: 1 / -1; height: 4px; border-radius: 0; background: #E6EAE8; overflow: hidden; }
.nm-barra i { display: block; height: 100%; background: var(--navy); }
html.ocultar-valores :is(.n-gigante, .nums-grade b, .nm-cat b, .nums-leg) { filter: blur(8px); }

.kpi-grid { gap: 1.1rem 1.2rem; }
.kpi-box, .kpi-box.alerta { background: transparent; box-shadow: none; border-radius: 0; padding: .1rem 0 .2rem; border-top: 1px solid var(--card-border); padding-top: .6rem; }
.kpi-box b, .kpi-box b.cheio { font-size: 1.65rem; letter-spacing: -.01em; margin-top: .05rem; }
.kpi-box span { font-size: .7rem; }
.kpi-box.alerta small, .kpi-box.alerta span { color: var(--text-muted); }
.kpi-box.alerta b { color: #B3261E; }
.sd-topo { background: transparent; border: 0; padding: .2rem 0 .4rem; }
.sd-kpis > div { background: transparent; padding: 0; }
.sd-kpis b { font-size: 1.45rem; }


.fin-nums { margin: .2rem 0 .8rem; }
.lin-lista { display: flex; flex-direction: column; border-top: 1px solid var(--card-border); margin-bottom: .8rem; }
.lin { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .65rem .1rem; border-bottom: 1px solid var(--card-border);
    background: transparent; border-left: 0; border-right: 0; border-top: 0; font: inherit; color: inherit; text-align: left; width: 100%; }
.lin-btn { cursor: pointer; }
.lin-a { min-width: 0; flex: 1; }
.lin-a b { display: block; font-size: 1.05rem; }
.lin-a b.lin-prod { font-size: .88rem; overflow-wrap: anywhere; }
.lin-a small { display: block; font-size: .74rem; color: var(--text-muted); }
.lin-b { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; flex: none; }
.lin-b small { font-size: .72rem; color: var(--text-muted); }
.lin-b b { font-size: .95rem; }
.lin-b .etq { margin: 0; }
.lin-btn .lin-b { flex-direction: row; align-items: center; }
.lin-btn .lin-b .ic { width: 18px; height: 18px; color: var(--text-muted); }
html.ocultar-valores :is(.lin-a b:not(.lin-prod), .lin-b b, .fin-nums b) { filter: blur(7px); }


.disp { border-bottom: 1px solid var(--card-border); }
.disp-cab { display: block; width: 100%; background: transparent; border: 0; padding: .7rem .1rem; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.disp-tit b { display: block; font-size: .9rem; overflow-wrap: anywhere; }
.disp-tit small { display: block; font-size: .72rem; color: var(--text-muted); }
.disp-num { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; margin-top: .45rem; }
.disp-num small { display: block; font-size: .66rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.disp-num b { display: block; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.disp-total b { font-size: 1.05rem; color: #3B6D11; }
.disp-total.neg b { color: #B3261E; }
.disp-real { font-size: .72rem; color: var(--text-muted); margin-top: .3rem; }
.disp-det { padding: 0 .1rem .7rem; }
.disp-gtit { display: flex; justify-content: space-between; font-size: .76rem; font-weight: 700; color: var(--navy); margin: .5rem 0 .2rem; }
.disp-gtit small { font-weight: 700; }
.disp-doc { display: flex; justify-content: space-between; gap: .7rem; padding: .4rem 0; border-top: 1px dashed var(--card-border); }

.n-gigante { font-size: clamp(1.7rem, 7.4vw, 2.3rem); }
.nums-grade b { font-size: clamp(1.05rem, 4.6vw, 1.35rem); }
.kpi-box b, .kpi-box b.cheio { font-size: clamp(1rem, 4.4vw, 1.3rem); }
.nm-cat b { font-size: .92rem; }
.cc-nums b { font-size: clamp(.72rem, 3.2vw, .86rem); }
.fin-nums b { font-size: clamp(1.05rem, 4.6vw, 1.35rem); }


.res-l1 { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.res-l1 > .ic { width: 20px; height: 20px; color: var(--text-muted); flex: none; }
.res-num { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.res-num b { font-size: clamp(.78rem, 3.4vw, .95rem); }
.res-num .disp-total b { font-size: clamp(.82rem, 3.6vw, 1rem); color: var(--navy); }
.res-info { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .74rem; color: var(--text-muted); padding: .3rem 0 .4rem; }
.res-info b { color: var(--text); }
.disp-doc .lin-a small + small { margin-top: .05rem; }

h1:focus, h1:focus-visible, [tabindex="-1"]:focus { outline: none; }


.ext-filtros { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .6rem; }
.ext-filtros select { width: 100%; min-width: 0; padding: .5rem .6rem; border-radius: 0; border: 1px solid var(--card-border); background: var(--card-bg); font: inherit; font-size: .82rem; }
.disp-num.ext-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.disp-num.ext-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: .35rem; }
.subtot { position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + .3rem); z-index: 30; display: flex; gap: .2rem .9rem; flex-wrap: wrap;
    background: var(--navy); color: #fff; border-radius: 0; padding: .55rem .8rem; margin: .6rem 0 1rem; box-shadow: 0 6px 18px -8px rgba(14,23,25,.5); }
.st-i { min-width: 0; }
.st-i small { display: block; font-size: .64rem; color: rgba(255,255,255,.7); white-space: nowrap; }
.st-i b { display: block; font-size: .86rem; white-space: nowrap; }
.st-i.pos b { color: var(--lime); }
.st-i.neg b { color: #FF9C94; }
html.ocultar-valores .st-i b { filter: blur(7px); }
@media (min-width: 960px) { .subtot { bottom: .8rem; } }


.grade-erp-tot { position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + .3rem); z-index: 30; background: var(--navy) !important; color: #fff !important;
    border-radius: 0; margin-top: .4rem; box-shadow: 0 6px 18px -8px rgba(14,23,25,.5); }
.grade-erp-tot span, .grade-erp-tot b { color: #fff !important; }
.grade-erp-tot span:last-child { color: var(--lime) !important; font-weight: 700; }
@media (min-width: 960px) { .grade-erp-tot { bottom: .8rem; } }


.grade-erp-wrap { overflow: clip; }
.meta-linha { min-width: 0; }
.meta-linha span { min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
.meta-linha input { width: clamp(110px, 38%, 170px); flex: none; min-width: 0; box-sizing: border-box; }
.rank-val { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.rank-val small { font-size: .7rem; color: var(--text-muted); font-weight: 500; }
.rank-sub { display: flex; align-items: center; gap: .6rem; border-top: 2px solid var(--navy) !important; padding-top: .55rem !important; margin-top: .2rem; font-size: .8rem; font-weight: 700; color: var(--navy); }
.grade-erp-tot { flex-wrap: wrap; gap: .15rem .8rem; }
.grade-erp-tot span:first-child { font-weight: 500; font-size: .8rem; }


.nums-linha4 { grid-template-columns: repeat(4, 1fr); }
.nums-linha > div { padding: .7rem .2rem; text-align: center; }
.nums-linha > div + div { border-left: 1px solid var(--card-border); }
.nums-linha > div b { display: block; font-size: 1.3rem; line-height: 1.1; }
.nums-linha > div small { font-size: .66rem; }
.nums-linha > div.alerta b { color: #B3261E; }
.gest-alerta { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-top: .8rem; padding: .6rem .8rem; border-radius: 0; background: #FBE7E5; color: #8C1D18; font-size: .82rem; }
.gest-alerta b { font-size: 1rem; white-space: nowrap; }
.gv-lista { display: flex; flex-direction: column; border-top: 1px solid var(--card-border); }
.gv { border-bottom: 1px solid var(--card-border); }
.gv.apagado { opacity: .5; }
.gv.sel .gv-nome { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.gv-cab { display: block; width: 100%; background: transparent; border: 0; padding: .8rem .1rem .3rem; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.gv-l1 { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }
.gv-nome { font-size: .9rem; min-width: 0; overflow-wrap: anywhere; }
.gv-var { font-size: .8rem; font-weight: 700; white-space: nowrap; }
.gv-fat { display: block; font-size: clamp(1.25rem, 5.6vw, 1.6rem); font-weight: 700; letter-spacing: -.01em; margin: .15rem 0 .4rem; }
.gv-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem .6rem; margin-top: .65rem; }
.gv-grade small { display: block; font-size: .66rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gv-grade b { display: block; font-size: clamp(.8rem, 3.5vw, .95rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gv-grade .alerta b { color: #B3261E; }
.gv-abrir { display: inline-flex; align-items: center; gap: .2rem; font-size: .78rem; font-weight: 700; color: var(--navy); text-decoration: none; padding: .1rem .1rem .75rem; }
.gv-abrir .ic { width: 16px; height: 16px; }
html.ocultar-valores :is(.gv-fat, .gv-grade b, .gest-alerta b) { filter: blur(7px); }

.leaflet-popup-content-wrapper, .leaflet-bar, .leaflet-bar a, .leaflet-control-layers, .leaflet-tooltip { border-radius: 0 !important; }

.conexao, .conexao.sync, .conexao.off { border: 0; box-shadow: none; }
.conexao .cx-ico, .conexao.off .cx-ico { box-shadow: none; }
.tabbar .tab-mais span { border: 0; box-shadow: none; }
.olho-valores { border: 0; }
.toast-ok, .tile.fixar.fixo, .bi-kpi { border: 0; }

.login2-brand .lb-logo { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.login2-brand .lb-logo img { width: 230px; height: auto; }
.login2-form .brand-mobile { flex-direction: column; align-items: flex-start; gap: .7rem; }
.login2-form .brand-mobile img { width: 170px; height: auto; }
.sb-marca { flex-direction: column; align-items: flex-start; gap: .5rem; }
.sb-marca img { width: 120px; height: auto; }
.pt-logo { height: 38px; width: auto; flex: none; }
@media (min-width: 960px) { .pt-logo { display: none; } }
.painel-topo .pt-txt { flex: 1; min-width: 0; }
@media (max-width: 560px) {
    .painel-topo { flex-wrap: wrap; row-gap: .7rem; }
    .painel-topo .pt-logo { order: 1; height: 44px; }
    .painel-topo .pt-dir { order: 2; margin-left: auto; }
    .painel-topo .pt-txt { order: 3; flex: 0 0 100%; }
}

.fb { margin-bottom: .6rem; }
.fb-grupo { grid-column: 1 / -1; }
.fb-opcoes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.fb-opcao { min-height: 40px; padding: .3rem .6rem; border: 1px solid var(--input-border); background: #fff; color: var(--text); font: inherit; font-size: .82rem; font-weight: 500; text-align: left; cursor: pointer; }
.fb-opcao.on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }
@media (min-width: 700px) { .fb-extra { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fb-opcoes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.seg-carteira { display: grid; grid-template-columns: 1fr 1fr; background: #E3E8E4; padding: 3px; margin: 0 0 .8rem; }
.seg-carteira button { min-height: 40px; border: 0; background: transparent; color: var(--text-muted); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.seg-carteira button.on { background: var(--navy); color: #fff; }

.etapas.tres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ne-bloco { background: var(--card-bg); padding: .8rem .9rem; margin-bottom: .7rem; }
.ne-rot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; font-size: .76rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .55rem; }
.ne-rot b { color: var(--text); font-size: .92rem; letter-spacing: 0; white-space: nowrap; }
.ne-rot .erp-btn { text-transform: none; letter-spacing: 0; }
.ne-reservas { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.ne-reserva { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; padding: .6rem .7rem; border: 1px solid var(--input-border); background: #fff; color: var(--text); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.ne-reserva b { font-size: .92rem; }
.ne-reserva small, .ne-reserva span { font-size: .74rem; color: var(--text-muted); overflow-wrap: anywhere; }
.ne-reserva.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.ne-reserva.on small, .ne-reserva.on span { color: #C9D6D3; }
.ne-itens { display: flex; flex-direction: column; }
.ne-item { display: flex; align-items: center; gap: .5rem; padding: .6rem 0; border-top: 1px solid #EEF1EF; }
.ne-item:first-child { border-top: 0; padding-top: 0; }
.ne-item.dentro .ne-item-txt b { color: var(--green-dark); }
.ne-item-txt { flex: 1; min-width: 0; }
.ne-item-txt b { display: block; font-size: .9rem; overflow-wrap: anywhere; }
.ne-item-txt small { display: block; font-size: .75rem; color: var(--text-muted); margin-top: .1rem; }
.ne-inc { min-height: 40px; min-width: 76px; padding: 0 .7rem; font-weight: 700; flex: none; }
.ne-qtd { min-width: 76px; min-height: 40px; padding: 0 .6rem; border: 1px solid var(--input-border); background: #fff; color: var(--text); font: inherit; font-weight: 700; text-align: right; cursor: pointer; flex: none; }
.ne-datas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; margin-bottom: .55rem; }
.ne-data { display: flex; flex-direction: column; align-items: center; gap: .05rem; padding: .5rem .2rem; border: 1px solid var(--input-border); background: #fff; color: var(--text); font: inherit; cursor: pointer; min-width: 0; }
.ne-data b { font-size: .8rem; } .ne-data small { font-size: .72rem; color: var(--text-muted); }
.ne-data.on { background: var(--navy); border-color: var(--navy); color: #fff; } .ne-data.on small { color: var(--lime); }
.ne-campo { width: 100%; min-height: 46px; border: 1px solid var(--input-border); padding: 0 .7rem; font: inherit; font-size: .95rem; background: #fff; color: var(--text); }
.ne-resumo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem .9rem; background: var(--navy); color: #fff; padding: .8rem .9rem; margin-bottom: .7rem; }
.ne-resumo .largo { grid-column: 1 / -1; }
.ne-resumo small { display: block; font-size: .7rem; color: #C9D6D3; }
.ne-resumo b { display: block; font-size: .92rem; overflow-wrap: anywhere; }
.ne-voltar { min-height: 52px; padding: 0 .9rem; }
.ne-bloco .cli-pick > input, .ne-bloco textarea { width: 100%; min-height: 46px; border: 1px solid var(--input-border); padding: 0 .7rem; font: inherit; font-size: .95rem; background: #fff; color: var(--text); }
.ne-bloco textarea { min-height: 84px; padding: .6rem .7rem; }
.ne-datas { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }

.ped-itens { display: none; }
@media (max-width: 759.98px) {
    .grade-erp tr.sub { display: block; padding: 0; background: #F6F8F6; }
    .grade-erp tr.sub > td { display: block; padding: .3rem .9rem .9rem; }
    .grade-erp tr.sub > td::before { content: none; }
    .grade-erp tr.sub .det-linha { padding: 0; }
    .ped-tab { display: none; }
    .ped-itens { display: flex; flex-direction: column; background: #fff; padding: .2rem .8rem; }
    .ped-it { display: flex; align-items: flex-start; gap: .7rem; padding: .6rem 0; border-bottom: 1px solid #EEF1EF; }
    .ped-it-a { flex: 1; min-width: 0; }
    .ped-it-a b { display: block; font-size: .88rem; font-weight: 600; overflow-wrap: anywhere; }
    .ped-it-a small { display: block; font-size: .75rem; color: var(--text-muted); margin-top: .1rem; }
    .ped-it-v { font-size: .9rem; white-space: nowrap; }
    .ped-it-tot { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; padding: .65rem 0 .5rem; font-size: .8rem; color: var(--text-muted); }
    .ped-it-tot b { font-size: 1.05rem; color: var(--text); white-space: nowrap; }
    .ped-acoes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; background: transparent; box-shadow: none; padding: 0; }
    .ped-acoes > *, .ped-acoes .erp-btn { width: 100%; min-height: 44px; justify-content: center; }
    .ped-acoes > :only-child, .ped-acoes > .primary { grid-column: span 1; }
}

.ph-acoes { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.rv-filtros { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; background: var(--card-bg); padding: .8rem .9rem; margin-bottom: .8rem; }
.rv-modo { display: grid; grid-template-columns: 1fr 1fr; background: #E3E8E4; padding: 3px; }
.rv-modo button { min-height: 38px; border: 0; background: transparent; color: var(--text-muted); font: inherit; font-weight: 600; cursor: pointer; }
.rv-modo button.on { background: var(--navy); color: #fff; }
.rv-mes { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; text-align: center; gap: .4rem; }
.rv-mes b { font-size: 1.05rem; }
.rv-mes .erp-btn { min-height: 42px; padding: 0; justify-content: center; }
.rv-datas { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.rv-check { align-self: auto; }
.rv-acoes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.rv-acoes .erp-btn { min-height: 44px; justify-content: center; }
.rv-vend { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .2rem .8rem; background: var(--navy); color: #fff; padding: .6rem .8rem; margin-top: .6rem; }
.rv-vend b { font-size: .95rem; }
.rv-vend span { font-size: .76rem; color: #C9D6D3; }
.rv-dia { font-size: .78rem; font-weight: 700; color: var(--text-muted); background: #E9EDEA; padding: .35rem .8rem; }
.rv-linha { display: flex; align-items: flex-start; gap: .7rem; background: #fff; padding: .6rem .8rem; border-bottom: 1px solid #EEF1EF; text-decoration: none; color: var(--text); }
.rv-linha.agendada { color: var(--text-muted); }
.rv-hora { flex: none; width: 92px; font-size: .84rem; font-weight: 700; }
.rv-txt { flex: 1; min-width: 0; }
.rv-txt b { display: block; font-size: .88rem; overflow-wrap: anywhere; }
.rv-txt small { display: block; font-size: .74rem; color: var(--text-muted); margin-top: .1rem; }
@media (min-width: 760px) { .rv-filtros { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rv-acoes, .rv-check { grid-column: 1 / -1; } }
@media (min-width: 960px) {
    .content { max-width: 1280px; width: 100%; margin: 0 auto; }
    .painel-topo { margin-bottom: 1.2rem; }
    .painel-cols { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 0 1.6rem; }
    .painel-cols > :first-child { order: 2; }
    .painel-cols > :last-child { order: 1; }
    .painel-cols .nums { background: var(--card-bg); padding: 1.3rem 1.5rem 1.2rem; margin-bottom: 0; }
    .painel-cols .n-gigante { font-size: 3rem; }
    .painel-cols .nums-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.4rem; }
    .painel-cols .nums-grade b { font-size: 1.6rem; }
    .painel-cols .nums-mix { border-top: 1px solid var(--card-border); padding-top: 1rem; }
    .painel-cols > :first-child > .home-sec:first-child { margin-top: 0; }
    .painel-cols > :first-child .vazio-acao { background: var(--card-bg); padding: 1.4rem 1rem; }
    .painel-cols > :first-child .vazio-acao > .ic { width: 2.6rem; height: 2.6rem; padding: .7rem; }
}

.rv-vis { margin-bottom: .2rem; }
.rv-cal-wrap { overflow-x: auto; background: #fff; -webkit-overflow-scrolling: touch; }
.rv-cal { border-collapse: collapse; font-size: .74rem; min-width: 100%; }
.rv-cal th, .rv-cal td { border: 1px solid #DDE2DF; text-align: center; padding: 0; min-width: 26px; height: 28px; }
.rv-cal th { font-weight: 700; background: #fff; }
.rv-cal th.sem { font-weight: 500; font-size: .66rem; color: var(--text-muted); height: 20px; }
.rv-cal .rv-cli { position: sticky; left: 0; z-index: 1; background: #fff; text-align: left; padding: 0 .5rem; min-width: 150px; max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.rv-cal th.rv-cli { background: #E9EDEA; text-transform: uppercase; font-size: .7rem; }
.rv-cal .fs { background: #F1F3F1; }
.rv-cal td.ok { background: #4CC25A; }
.rv-cal td.ag { background: #F2D33B; }
.rv-cal td a { display: flex; align-items: center; justify-content: center; width: 100%; height: 28px; color: #0E1719; font-weight: 700; text-decoration: none; }
.rv-leg { display: flex; gap: 1rem; font-size: .76rem; color: var(--text-muted); padding: .5rem .2rem; }
.rv-leg span { display: inline-flex; align-items: center; gap: .35rem; }
.rv-leg i { width: 12px; height: 12px; display: inline-block; }
.rv-leg i.ok { background: #4CC25A; } .rv-leg i.ag { background: #F2D33B; }

.delta-box { background: #FFF8E6; border: 1px dashed #C9A227; padding: .7rem .8rem; margin: .6rem 0; }
.delta-cab { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .2rem; }
.delta-cab b { font-size: .9rem; color: #7A5A12; }
.delta-box .analise-tot { margin: .5rem 0; }
.delta-itens { display: flex; flex-direction: column; background: #fff; padding: 0 .8rem; }
.delta-it { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid #EEF1EF; }
.delta-it:last-child { border-bottom: 0; }
.delta-it .grow { min-width: 0; }
.delta-it .grow b { display: block; font-size: .84rem; overflow-wrap: anywhere; }
.delta-it small { display: block; font-size: .72rem; color: var(--text-muted); }
.delta-it > b { white-space: nowrap; font-size: .86rem; }
.delta-it > b.neg { color: var(--red); }

.bc-card .grade-erp-tot, .nf-card .grade-erp-tot { position: static; }
.carga-cli.aberta { background: #fff; }
.carga-itens { padding: .2rem .9rem .8rem; background: #F6F8F6; }
.carga-faz { font-size: .76rem; font-weight: 700; color: var(--text-muted); padding: .55rem 0 .25rem; }
.carga-it { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; background: #fff; border-bottom: 1px solid #EEF1EF; }
.carga-it .grow { min-width: 0; }
.carga-it .grow b { display: block; font-size: .84rem; overflow-wrap: anywhere; }
.carga-it small { display: block; font-size: .72rem; color: var(--text-muted); }
.carga-it > b { white-space: nowrap; }

.rv-cal .rv-cli, .rv-cal td.rv-cli { background: #1D6FC9; color: #fff; }
.rv-cal td.rv-cli.foco { background: #1F4FD1; }
.rv-cal th.rv-cli { background: #fff; color: var(--text); }
.rv-cal thead tr:first-child th:not(.rv-cli) { background: #FFF200; }
.rv-cal thead tr:first-child th.fs:not(.rv-cli) { background: #F2E200; }
.rv-leg i.foco { background: #1F4FD1; }

.ext-resumo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin: .2rem 0 .6rem; }
.ext-resumo > div { background: #fff; padding: .5rem .55rem; min-width: 0; }
.ext-resumo small { display: block; font-size: .66rem; color: var(--text-muted); line-height: 1.2; }
.ext-resumo b { display: block; font-size: .92rem; margin-top: .15rem; overflow-wrap: anywhere; }
.ext-sec { background: #fff; margin-bottom: .55rem; }
.ext-sec-t { display: flex; align-items: center; gap: .4rem; padding: .5rem .7rem; background: var(--navy); color: #fff; font-size: .82rem; font-weight: 700; }
.ext-sec-t .ic { width: 1rem; height: 1rem; }
.ext-sec-t small { margin-left: auto; color: var(--lime); font-weight: 700; }
.ext-sec > .card-sub { padding: .55rem .7rem; }
.ext-doc { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border-bottom: 1px solid #EEF1EF; }
.ext-doc .grow { min-width: 0; }
.ext-doc .grow b { display: block; font-size: .84rem; overflow-wrap: anywhere; }
.ext-doc small { display: block; font-size: .72rem; color: var(--text-muted); }
.ext-doc.sub { padding: .35rem .7rem .35rem 1.2rem; background: #FAFBFA; }
.ext-q { text-align: right; white-space: nowrap; }
.ext-q b { display: block; font-size: .86rem; }
.ext-cli { border-bottom: 1px solid #E3E8E4; }
.ext-cli-t { display: flex; justify-content: space-between; gap: .6rem; padding: .5rem .7rem .3rem; }
.ext-cli-t b { font-size: .84rem; min-width: 0; overflow-wrap: anywhere; }
.ext-cli-t span { font-weight: 700; font-size: .86rem; white-space: nowrap; }
.ponto-lin { display: flex; align-items: center; gap: .7rem; background: var(--card-bg); padding: .7rem .8rem; border-bottom: 1px solid #EEF1EF; flex-wrap: wrap; }
.ponto-lin .grow { min-width: 0; flex: 1 1 200px; }
.ponto-lin b { display: block; font-size: .92rem; }
.ponto-lin small { display: block; font-size: .74rem; color: var(--text-muted); margin-top: .1rem; }
.ponto-lin small.ok { color: var(--green-dark); font-weight: 600; }
.ponto-lin small.pend { color: #B3261E; font-weight: 600; }
.ponto-acoes { display: flex; gap: .4rem; flex-wrap: wrap; }
.ponto-acoes .erp-btn { min-height: 40px; cursor: pointer; }
.ponto-acoes .desab { opacity: .6; pointer-events: none; }

.qc-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .4rem; margin-bottom: .6rem; }
.qc-cli { background: var(--card-bg); padding: .7rem .8rem; border-bottom: 1px solid #EEF1EF; }
.qc-top { display: flex; align-items: flex-start; gap: .6rem; }
.qc-top a { text-decoration: none; color: var(--text); min-width: 0; }
.qc-top b { display: block; font-size: .92rem; overflow-wrap: anywhere; }
.qc-top small { display: block; font-size: .74rem; color: var(--text-muted); }
.qc-pct { font-weight: 700; font-size: .95rem; white-space: nowrap; }
.qc-pct.ok { color: var(--green-dark); } .qc-pct.medio { color: #B7791F; } .qc-pct.baixo { color: #B3261E; }
.qc-cli .nums-barra { margin: .45rem 0 .4rem; height: 5px; }
.qc-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .45rem; }
.qc-acoes { display: flex; flex-wrap: wrap; gap: .4rem; }
.qc-acoes .erp-btn { min-height: 38px; font-size: .8rem; }
.dh { background: #fff; margin: .6rem 0; }
.dh-cab { display: flex; align-items: center; gap: .45rem; width: 100%; min-height: 42px; padding: 0 .8rem; border: 1px solid var(--card-border); background: #fff; font: inherit; font-weight: 700; font-size: .86rem; color: var(--text); cursor: pointer; }
.dh-cab span { flex: 1; text-align: left; }
.dh-cab .ic { width: 1.05rem; height: 1.05rem; }
.dh-lista { padding: .5rem .8rem .7rem 1.1rem; border: 1px solid var(--card-border); border-top: 0; }
.dh-it { display: flex; gap: .6rem; padding: .4rem 0; position: relative; }
.dh-it + .dh-it::before { content: ""; position: absolute; left: 4px; top: -.5rem; height: .9rem; border-left: 2px solid #DDE3E0; }
.dh-ponto { flex: none; width: 10px; height: 10px; margin-top: .3rem; background: #9AA6A3; }
.dh-criado .dh-ponto { background: var(--navy); } .dh-aprovado .dh-ponto, .dh-lancado .dh-ponto, .dh-cliente .dh-ponto { background: #4CC25A; }
.dh-recusado .dh-ponto { background: #B3261E; } .dh-aprovacao .dh-ponto { background: #F2D33B; }
.dh-it b { display: block; font-size: .84rem; }
.dh-it small { display: block; font-size: .74rem; color: var(--text-muted); overflow-wrap: anywhere; }
.lin-lista a.lin { text-decoration: none; color: inherit; }

.sd-vals { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin: .35rem 0 .25rem; }
.sd-vals small { display: block; font-size: .68rem; color: var(--text-muted); }
.sd-vals b { display: block; font-size: .88rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sd-vals-topo { background: var(--card-bg); border: 1px solid var(--card-border); padding: .6rem .8rem; margin: 0 0 .5rem; }
.sd-cond { font-size: .76rem; font-weight: 600; color: var(--navy); margin-top: .15rem; overflow-wrap: anywhere; }
.sd-it { display: flex; flex-direction: column; gap: .1rem; padding: .3rem 0; border-bottom: 1px solid #EEF1EF; }
.sd-it:last-child { border-bottom: 0; }
.sd-it-a { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.sd-it-a b { font-size: .8rem; min-width: 0; overflow-wrap: anywhere; }
.sd-it-a small { font-size: .7rem; color: var(--text-muted); white-space: nowrap; }
.sd-it-b { display: flex; justify-content: space-between; gap: .5rem; font-size: .76rem; }
.sd-it-b span { color: var(--text-muted); }
.sd-it-b b { white-space: nowrap; }
.sd-sub-acoes { display: flex; flex-wrap: wrap; gap: .4rem; padding-top: .4rem; }
.sd-sub-acoes .erp-btn { min-height: 38px; font-size: .8rem; }
.ne-cli { background: var(--card-bg); border: 1px solid var(--card-border); padding: .6rem .75rem; margin-bottom: .4rem; }
.ne-cli.on { border-color: var(--navy); }
.ne-cli-l1 { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.ne-cli-l1 b { font-size: .9rem; min-width: 0; overflow-wrap: anywhere; }
.ne-cli-l1 span { font-weight: 700; white-space: nowrap; font-size: .86rem; }
.ne-cli small { display: block; font-size: .74rem; color: var(--text-muted); overflow-wrap: anywhere; }
.ne-cli-acoes { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .45rem; }
.ne-cli-acoes .erp-btn { min-height: 36px; font-size: .78rem; }
.ne-cli select { margin-top: .4rem; }
.ne-add { width: 100%; margin-bottom: .6rem; }

.ne-dest { font-size: .76rem; font-weight: 600; color: var(--navy); margin: -.2rem 0 .35rem; overflow-wrap: anywhere; }
.sd-carrinho { display: flex; align-items: center; gap: .5rem; padding: .65rem .8rem; margin: 0 0 .6rem; background: var(--navy); color: #fff; text-decoration: none; font-size: .82rem; font-weight: 600; }
.sd-carrinho span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.sd-carrinho .ic { width: 1.1rem; height: 1.1rem; }

.vd-secoes { display: flex; flex-direction: column; gap: 0; margin: .2rem 0 .9rem; border: 1px solid var(--card-border); background: #fff; }
.vd-cab { display: flex; align-items: center; gap: .65rem; width: 100%; min-height: 58px; padding: .55rem .8rem; border: 0; border-bottom: 1px solid var(--card-border); background: #fff; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.vd-cab.on { background: #F4F6F5; }
.vd-cab b { display: block; font-size: .92rem; }
.vd-cab small { display: block; font-size: .74rem; color: var(--text-muted); overflow-wrap: anywhere; }
.vd-cab > .ic { width: 1.05rem; height: 1.05rem; color: var(--text-muted); }
.vd-num { flex: none; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: #E4E8EA; color: var(--text-muted); font-weight: 700; font-size: .85rem; }
.vd-num.ok { background: var(--navy); color: #fff; }
.vd-num .ic { width: 1rem; height: 1rem; }
.vd-corpo { padding: .8rem; border-bottom: 1px solid var(--card-border); }
.vd-rot { font-size: .78rem; font-weight: 600; color: var(--text-muted); margin: .8rem 0 .35rem; }
.vd-assin { display: block; width: 100%; max-height: 180px; object-fit: contain; background: #fff; border: 1px solid var(--card-border); margin-bottom: .6rem; }
.vd-hist { display: flex; flex-direction: column; padding: 0; }
.vd-hist-it { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .6rem .8rem; border: 0; border-bottom: 1px solid #EEF1EF; background: #fff; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.vd-hist-it:last-child { border-bottom: 0; }
.vd-hist-it b { display: block; font-size: .84rem; }
.vd-hist-it small { display: block; font-size: .74rem; color: var(--text-muted); overflow-wrap: anywhere; }

.ped-quem { display: flex; flex-wrap: wrap; gap: .25rem 1.2rem; padding: .45rem .1rem; font-size: .8rem; color: var(--text-muted); }
.ped-quem b { color: var(--text); font-weight: 600; }

.txt-erro { color: var(--red); font-size: .75rem; }
.txt-ok { color: var(--text-muted); font-size: .75rem; }
.oe-linha { display: grid; grid-template-columns: 1fr 90px 80px auto; gap: .4rem; align-items: center; margin-bottom: .45rem; }
.oe-linha input { width: 100%; }
@media (max-width: 600px) { .oe-linha { grid-template-columns: 1fr 1fr auto; } .oe-prod { grid-column: 1 / -1; } }
.oe-itens { width: 100%; border-collapse: collapse; font-size: .84rem; }
.oe-itens th, .oe-itens td { padding: .35rem .4rem; border-bottom: 1px solid var(--border, #E1E5E6); text-align: left; vertical-align: top; }
.oe-itens .num { text-align: right; white-space: nowrap; }
.oe-nf { display: flex; flex-wrap: wrap; gap: .4rem; align-items: flex-end; margin-top: .55rem; }
.oe-nf .field { min-width: 120px; }

.etq.e-verde { background: #E8F3DA; color: #3B6D11; }
.etq.e-cinza { background: #ECEFF0; color: #5B6A68; }

.field input[readonly][tabindex="-1"] { background: #EEF1F2; color: #3F4A4D; border-color: #D5DBDD; cursor: default; }
.field input[readonly][tabindex="-1"]:focus { outline: none; box-shadow: none; }

.mais-acoes { position: relative; display: inline-flex; }
.mais-acoes .ma-fundo { position: fixed; inset: 0; z-index: 40; }
.mais-acoes .ma-menu { position: absolute; bottom: calc(100% + 4px); right: 0; z-index: 41; min-width: 220px; display: flex; flex-direction: column; background: #fff; box-shadow: 0 6px 24px rgba(16,24,28,.18); padding: .3rem; }
.mais-acoes .ma-menu > .erp-btn, .mais-acoes .ma-menu > a.erp-btn { justify-content: flex-start; background: transparent; min-height: 42px; width: 100%; }
.mais-acoes .ma-menu > .erp-btn:hover { background: var(--accent-tint); }
.mais-acoes .ma-menu > .erp-btn.perigo { color: var(--red); }

.exp-opcoes { display: flex; flex-direction: column; gap: .3rem; padding: .25rem .2rem .45rem; border-bottom: 1px solid #E6EAEB; margin-bottom: .3rem; }
.exp-seg { display: flex; gap: 2px; background: #E4E8EA; padding: 2px; }
.exp-seg button { flex: 1; border: 0; background: transparent; padding: .4rem .3rem; font: inherit; font-size: .82rem; color: #4D575C; cursor: pointer; min-height: 34px; }
.exp-seg button.on { background: #fff; color: var(--text); font-weight: 600; }
.sd-acao { position: absolute; top: .55rem; right: .55rem; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; background: var(--accent-tint); color: var(--navy); cursor: pointer; }
.sd-item.sd-link { position: relative; }
.sd-item.sd-link .sd-l1 { padding-right: 2.6rem; }
.exp-inline .exp-opcoes { border-bottom: 0; padding: 0 0 .5rem; }
.exp-grade { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.exp-grade button { display: flex; align-items: center; gap: .45rem; min-height: 44px; padding: .5rem .7rem; border: 0; background: var(--accent-tint); color: var(--navy); font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; text-align: left; }
.sd-exp { display: flex; justify-content: flex-end; margin: 0 0 .5rem; }

.sd-kpis { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.25fr) minmax(0, .6fr); }
.sd-kpis b { font-size: clamp(.82rem, 3.9vw, 1.05rem); overflow: visible; text-overflow: clip; letter-spacing: -.01em; }

.pt-resumo { display: inline-block; margin-top: .35rem; font-size: .8rem; font-weight: 600; color: var(--text-muted); background: var(--accent-tint); padding: .2rem .5rem; }
.ini-safra { margin-bottom: .2rem; }
.ini-safra .home-sec { margin-top: .6rem; }
.ini-fat { display: block; background: #fff; padding: .85rem .9rem; text-decoration: none; color: var(--text); }
.ini-fat small { display: block; font-size: .78rem; color: var(--text-muted); }
.ini-fat > b { display: block; font-size: clamp(1.5rem, 7.5vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-top: .1rem; }
.ini-barra { display: flex; position: relative; height: 10px; background: var(--accent-tint); margin-top: .65rem; }
.ini-barra i { display: block; height: 100%; }
.ini-barra i.f { background: var(--navy); }
.ini-barra i.a { background: var(--lime); }
.ini-barra em { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--red); }
.ini-leg { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin-top: .55rem; font-size: .74rem; color: var(--text-muted); }
.ini-leg i { display: inline-block; width: 9px; height: 9px; margin-right: .3rem; vertical-align: -1px; }
.ini-leg i.f { background: var(--navy); } .ini-leg i.a { background: var(--lime); } .ini-leg i.m { background: var(--red); }
.ini-k { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; margin-top: .45rem; }
.ini-k a { background: #fff; padding: .6rem .65rem; text-decoration: none; color: var(--text); min-width: 0; }
.ini-k small { display: block; font-size: .7rem; color: var(--text-muted); line-height: 1.2; }
.ini-k b { display: block; font-size: clamp(.8rem, 3.6vw, 1rem); font-weight: 700; margin-top: .2rem; letter-spacing: -.01em; overflow-wrap: anywhere; }
.ini-k b.sobe { color: var(--green-text); } .ini-k b.desce { color: var(--red); }
.roteiro { background: #fff; padding: 0 .85rem; }
.rt-item { display: flex; align-items: flex-start; gap: .7rem; width: 100%; padding: .75rem 0; border: 0; border-bottom: 1px solid #EEF1EF; background: transparent; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
.rt-item:last-child { border-bottom: 0; }
.rt-hora { font-weight: 700; width: 3.1rem; flex: none; font-size: .95rem; }
.rt-txt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rt-txt b { display: block; font-size: .95rem; }
.rt-txt small { display: block; font-size: .78rem; color: var(--text-muted); margin-top: .15rem; }
.rt-item.feita .rt-hora, .rt-item.feita .rt-txt b, .rt-item.feita .rt-txt small { color: #9AA6A4; }
.etq.e-lime { background: var(--lime); color: var(--lime-ink); }
@media (min-width: 900px) { .ini-k { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.ini-cat { margin-top: .45rem; }
.ini-cat .nums-mix { margin-top: 0; }

.carga-acoes { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .6rem; }
.carga-acoes .erp-btn { flex: 1; min-height: 40px; }

.saldo-abas { display: flex; gap: 2px; background: #E4E8EA; padding: 3px; margin: 0 0 .7rem; }
.saldo-abas a { flex: 1; text-align: center; padding: .5rem .3rem; font-size: .84rem; font-weight: 500; color: #4D575C; text-decoration: none; min-height: 38px; display: flex; align-items: center; justify-content: center; }
.saldo-abas a.on { background: #fff; color: var(--text); font-weight: 700; }

.semana-nav { display: flex; gap: .4rem; margin-bottom: .6rem; }
.semana-nav .erp-btn:nth-child(2) { flex: 1; }
.prog-item { align-items: center; text-decoration: none; }
.prog-item .etq { flex: none; }
.prog-item .valor { font-weight: 700; white-space: nowrap; font-size: .88rem; }

.ic-hist { display: flex; flex-wrap: wrap; gap: .2rem .8rem; padding: .35rem .15rem 0; font-size: .76rem; color: var(--text-muted); }
.ic-hist b { color: var(--text); }
.ic-hist .aviso { color: var(--gold-dark); font-weight: 600; }
.ic-hist .bom { color: var(--green-text); font-weight: 600; }

.fat-k { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin-bottom: .4rem; }
.fat-k a { background: #fff; padding: .7rem .75rem; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: .15rem; }
.fat-k a b { font-size: 1.5rem; line-height: 1.1; }
.fat-k a small { font-size: .76rem; color: var(--text-muted); }
.fat-k a span { font-size: .8rem; font-weight: 600; }
.fat-k a.alerta b { color: var(--red); }
@media (min-width: 900px) { .fat-k { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cmp-barras { background: #fff; padding: .6rem .8rem; display: flex; flex-direction: column; gap: .55rem; }
.cmp-barra { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto; gap: .6rem; align-items: center; font-size: .84rem; }
.cmp-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-trilho { height: 10px; background: var(--accent-tint); position: relative; }
.cmp-trilho i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--navy); }
.cmp-barra b { white-space: nowrap; }
.grade-erp th.cmp-on { color: var(--text); text-decoration: underline; }
.grade-erp td.cmp-melhor { font-weight: 700; background: var(--lime-tint); }

.hist-det { display: block; margin-top: .2rem; color: var(--text) !important; font-size: .78rem; white-space: normal; overflow-wrap: anywhere; }

.grade-erp td.nome small { display: block; color: var(--text-muted); font-size: .72rem; font-weight: 400; }
.memoria { padding: .4rem 0 .6rem; white-space: normal; }
.memoria .grade-erp { margin-bottom: .5rem; }

.fat-k.fin a { cursor: pointer; }
.fat-k.fin a b { font-size: 1.12rem; }
.fat-k.fin a.on { box-shadow: inset 0 0 0 2px var(--navy); }
.fat-k.fin a:first-child { grid-column: 1 / -1; }
.fin-grade td.neg, .neg { color: var(--red); }

.saude-geral { display: flex; flex-direction: column; gap: .15rem; padding: .8rem .9rem; background: #fff; margin-bottom: .4rem; border-left: 0; }
.saude-geral b { font-size: 1.05rem; }
.saude-geral span { font-size: .8rem; color: var(--text-muted); }
.saude-geral.s-ok b { color: var(--green-text); }
.saude-geral.s-atencao b { color: var(--gold-dark); }
.saude-geral.s-erro b { color: var(--red); }
.saude-ponto { width: .7rem; height: .7rem; flex: 0 0 auto; align-self: center; margin-right: .4rem; }
.saude-ponto.s-ok { background: var(--green-text); }
.saude-ponto.s-atencao { background: var(--gold); }
.saude-ponto.s-erro { background: var(--red); }

.qc-resumo { display: flex; flex-wrap: wrap; gap: .4rem 1rem; padding: .5rem .2rem; font-size: .85rem; color: var(--text-muted); }
.qc-resumo b { color: var(--text); }
.qc-quadro { display: grid; grid-template-columns: 1fr; gap: .5rem; }
@media (min-width: 1000px) { .qc-quadro { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); align-items: start; } }
.qc-dia { background: var(--accent-tint); padding: .4rem; min-height: 4rem; }
.qc-dia.hoje { background: var(--lime-tint); }
.qc-dia.alvo { outline: 2px dashed var(--navy); outline-offset: -2px; }
.qc-dia-cab { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem; padding: .1rem .2rem .4rem; }
.qc-dia-cab b { font-size: .85rem; }
.qc-dia-cab small { font-size: .72rem; color: var(--text-muted); }
.qc-carga { background: #fff; padding: .5rem .55rem; margin-bottom: .4rem; display: flex; flex-direction: column; gap: .15rem; cursor: default; }
.qc-carga[draggable="true"] { cursor: grab; }
.qc-carga small { font-size: .74rem; color: var(--text-muted); }
.qc-l1 { display: flex; justify-content: space-between; gap: .4rem; align-items: center; }
.qc-l1 b { font-size: .82rem; }
.qc-nome { font-size: .84rem; font-weight: 600; line-height: 1.25; }
.qc-carga.f-entregue { opacity: .72; }
.qc-btn { align-self: flex-start; margin-top: .2rem; background: none; border: 1px solid var(--card-border); padding: .15rem .5rem; font-size: .74rem; cursor: pointer; }
.qc-mover { display: flex; gap: .3rem; margin-top: .2rem; }
.qc-mover input { flex: 1; min-width: 0; }

.atu-gerpa { font-size: .74rem; color: var(--text-muted); margin: -.2rem 0 .5rem .1rem; }
.atu-gerpa.velho { color: var(--red); font-weight: 600; }

.saude-resumo { background: #fff; padding: .6rem .7rem; font-size: .76rem; white-space: pre-wrap; margin: 0 0 .6rem; font-family: inherit; }

.emp-form { background: #fff; padding: .6rem .7rem; margin-top: .5rem; display: flex; flex-direction: column; gap: .35rem; }
.emp-qtd { display: flex; align-items: center; gap: .5rem; justify-content: space-between; }
.emp-qtd span { flex: 1; font-size: .84rem; }
.emp-qtd small { color: var(--text-muted); margin-left: .3rem; }
.emp-qtd input { width: 7rem; text-align: right; }
.emp-hist { margin-top: .5rem; display: flex; flex-direction: column; gap: .4rem; }
.emp-hist-it { background: #fff; padding: .45rem .6rem; display: flex; flex-direction: column; gap: .1rem; font-size: .82rem; }
.emp-hist-it small { color: var(--text-muted); }

.abertura {
    position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .55rem; background: #FFFFFF; color: #12292D; padding: 16px; text-align: center;
}
.abertura .ab-logo { width: min(260px, 62vw); height: auto; opacity: 0; transform: scale(.86); animation: ab-logo .9s cubic-bezier(.2,.8,.2,1) .1s forwards; }
.abertura .ab-linha { height: 3px; width: 0; background: linear-gradient(90deg, #0B5F6B, #13879A); margin: .6rem 0 .3rem; animation: ab-linha .7s ease-out .75s forwards; }
.abertura .ab-titulo { font-size: 2rem; font-weight: 800; letter-spacing: .5rem; color: #0B5F6B; opacity: 0; transform: translateY(10px); animation: ab-sobe .6s ease-out 1.1s forwards; }
.abertura .ab-sub { font-size: .95rem; letter-spacing: .04rem; color: #4A5A5D; opacity: 0; transform: translateY(10px); animation: ab-sobe .6s ease-out 1.3s forwards; }
.abertura .ab-ola { margin-top: 1rem; font-size: 1.05rem; font-weight: 600; color: #12292D; opacity: 0; animation: ab-sobe .5s ease-out 1.55s forwards; }
.abertura .ab-carga { width: min(220px, 50vw); height: 2px; background: #E3E8E6; margin-top: 1.4rem; overflow: hidden; opacity: 0; animation: ab-aparece .3s ease-out 1.5s forwards; }
.abertura .ab-carga span { display: block; height: 100%; width: 35%; background: #13879A; animation: ab-corre 1.1s ease-in-out infinite; }
.abertura.ab-entrada { animation: ab-sai .35s ease-in 1.9s forwards; }

@keyframes ab-logo { to { opacity: 1; transform: scale(1); } }
@keyframes ab-linha { to { width: min(220px, 50vw); } }
@keyframes ab-sobe { to { opacity: 1; transform: translateY(0); } }
@keyframes ab-aparece { to { opacity: 1; } }
@keyframes ab-corre { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
@keyframes ab-sai { to { opacity: 0; } }

.ab-rapida .abertura > * { animation: none !important; opacity: 1 !important; transform: none !important; }
.ab-rapida .abertura .ab-linha { width: min(220px, 50vw); }

@media (prefers-reduced-motion: reduce) {
    .abertura *, .abertura.ab-entrada { animation: none !important; opacity: 1 !important; transform: none !important; }
    .abertura .ab-linha { width: min(220px, 50vw); }
}

.erp-actions .ea-avisos { flex: 1 1 100%; display: grid; gap: .15rem; background: var(--amber-bg); color: var(--amber-text); padding: .55rem .7rem; font-size: .8rem; max-height: 40vh; overflow-y: auto; }
.erp-actions .ea-avisos b { margin-top: .2rem; }
.erp-actions .ea-avisos b:first-child { margin-top: 0; }
.erp-actions .ea-total small .mg { font-size: .72rem; padding: 0 .3rem; }
.ea-alerta { border: 0; border-radius: 0; min-height: 40px; padding: .45rem .7rem; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.ea-alerta.aprov { background: var(--amber-bg); color: var(--amber-text); }
.ea-alerta.est { background: var(--red-tint); color: var(--red); }

button, a, select, input, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.erp-btn:active:not(:disabled), .fchip:active, .seg-btn:active, .back-link:active, .bc-x:active, .rmbtn:active { filter: brightness(.88); }
.cli-pick > input, .oe-qtd, .oe-un, .grade-erp td input, .grade-erp td select, .eq-sel { min-height: 40px; }
a.grow, .grade-erp td.nome a, a.card-title, button.card-title { display: inline-block; padding: .65rem 0; margin: -.65rem 0; }
.rmbtn, .prod-grid .rmbtn { width: 38px; height: 38px; }
.btn { min-height: 40px; }
table.prod-grid input, table.prod-grid select { min-height: 38px; }
@media (max-width: 520px) {
    .bi-kpi b { font-size: clamp(.95rem, 4.3vw, 1.35rem); }
    .kpi-box b { font-size: clamp(.95rem, 4.3vw, 1.2rem); }
}
.bi-kpi .det { white-space: normal; }
