@font-face {
    font-family: 'Jakarta';
    src: url('/fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Jakarta';
    src: url('/fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Jakarta';
    src: url('/fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Jakarta';
    src: url('/fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

:root {
    --accent: #beee62;
    --accent-hi: #caf17e;
    --accent-deep: #5f7731;
    --accent-base: #85a745;
    --accent-rgb: 190, 238, 98;
    --on-accent: #0b0b0d;
    --bg: #09090b;
    --side: #0d0d10;
    --card: #111114;
    --tile: #16161a;
    --tile-hover: #1c1c21;
    --input: #0b0b0e;
    --line: rgba(255, 255, 255, 0.06);
    --line-strong: rgba(255, 255, 255, 0.11);
    --text: #f3f3f5;
    --text-soft: #c9c9d0;
    --muted: #7c7c86;
    --faint: #4a4a52;
    --accent-soft: rgba(var(--accent-rgb), 0.12);
    --accent-line: rgba(var(--accent-rgb), 0.55);
    --amber: #f5a524;
    --aviso: #e5202e;
    --aviso-rgb: 229, 32, 46;
    --r-card: 14px;
    --r-tile: 10px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --side-w: 252px;
}

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

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: 'Jakarta', 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    margin: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

button:disabled {
    cursor: default;
    opacity: 0.55;
}

a {
    color: var(--accent-hi);
    text-decoration: none;
}

::selection {
    background: rgba(var(--accent-rgb), 0.3);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    border: 3px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.14);
}

.c-ic {
    width: 18px;
    height: 18px;
    flex: none;
    display: block;
}

.c-ic--sm {
    width: 15px;
    height: 15px;
}

.c-ic--lg {
    width: 22px;
    height: 22px;
}

.c-fundo {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 520px at 12% -10%, rgba(var(--accent-rgb), 0.07), transparent 70%),
        radial-gradient(700px 480px at 100% 110%, rgba(var(--accent-rgb), 0.045), transparent 70%);
}

.c-fundo::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}

.c-entra {
    animation: cEntra 0.42s var(--ease) both;
}

@keyframes cEntra {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

@keyframes cGira {
    to { transform: rotate(360deg); }
}

@keyframes cBrilho {
    from { background-position: -380px 0; }
    to { background-position: 380px 0; }
}

.c-marca {
    display: flex;
    align-items: center;
    gap: 11px;
}

.c-marca svg {
    width: 34px;
    height: 34px;
    flex: none;
}

.c-marca svg .c-placa {
    transition: transform 0.5s var(--ease);
}

.c-marca:hover svg .c-placa--1 { transform: translateY(-2px); }
.c-marca:hover svg .c-placa--2 { transform: translateY(-1px); }

.c-marca b {
    display: block;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.c-marca small {
    display: block;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.c-login {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px 16px;
}

.c-login__card {
    width: min(400px, 100%);
    padding: 30px 28px 26px;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(22, 22, 26, 0.92), rgba(15, 15, 18, 0.94));
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.85);
}

.c-login__card .c-marca {
    margin-bottom: 26px;
}

.c-login__card h1 {
    margin: 0 0 4px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.c-login__card p {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 13.5px;
}

.c-login__erro {
    min-height: 20px;
    margin: 12px 0 0;
    color: #ff6b75;
    font-size: 13px;
    font-weight: 600;
}

.c-campo {
    display: block;
    margin-bottom: 14px;
}

.c-campo > span {
    display: block;
    margin-bottom: 6px;
    color: var(--text-soft);
    font-size: 12.5px;
    font-weight: 600;
}

.c-campo small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.c-input,
.c-select,
.c-area {
    width: 100%;
    min-height: 42px;
    padding: 10px 13px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-tile);
    background: var(--input);
    outline: none;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}

.c-area {
    min-height: 88px;
    resize: vertical;
}

.c-input:hover,
.c-select:hover,
.c-area:hover {
    border-color: rgba(255, 255, 255, 0.16);
}

.c-input:focus,
.c-select:focus,
.c-area:focus {
    border-color: var(--accent-line);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
    background: #0d0d10;
}

.c-select {
    appearance: none;
    padding-right: 34px;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}

.c-select option {
    background: #121215;
}

.c-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-tile);
    background: var(--tile);
    color: var(--text);
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease), color 0.2s var(--ease);
}

.c-btn:hover:not(:disabled) {
    background: var(--tile-hover);
    border-color: rgba(255, 255, 255, 0.17);
}

.c-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.c-btn:focus-visible,
.c-nav__item:focus-visible,
.c-aba:focus-visible,
.c-icobtn:focus-visible {
    outline: 2px solid var(--accent-line);
    outline-offset: 2px;
}

.c-btn--accent {
    border-color: transparent;
    background: var(--accent);
    color: var(--on-accent);
}

.c-btn--accent:hover:not(:disabled) {
    background: var(--accent-hi);
    border-color: transparent;
}

.c-btn--perigo {
    border-color: rgba(var(--aviso-rgb), 0.45);
    background: rgba(var(--aviso-rgb), 0.08);
    color: #ff7a83;
}

.c-btn--perigo:hover:not(:disabled) {
    background: rgba(var(--aviso-rgb), 0.16);
    border-color: rgba(var(--aviso-rgb), 0.7);
}

.c-btn--fantasma {
    border-color: transparent;
    background: transparent;
    color: var(--text-soft);
}

.c-btn--fantasma:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.05);
    border-color: transparent;
}

.c-btn--mini {
    min-height: 32px;
    padding: 0 11px;
    font-size: 12.5px;
    border-radius: 8px;
}

.c-btn--largo {
    width: 100%;
    min-height: 46px;
    font-size: 14.5px;
}

.c-btn.is-indo {
    color: transparent !important;
    pointer-events: none;
}

.c-btn.is-indo::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-color: var(--text) transparent var(--text) transparent;
    border-radius: 50%;
    animation: cGira 0.8s linear infinite;
}

.c-btn--accent.is-indo::after {
    border-color: var(--on-accent) transparent var(--on-accent) transparent;
}

.c-btn .c-ic {
    transition: transform 0.25s var(--ease);
}

.c-btn:hover .c-ic--seta {
    transform: translateX(2px);
}

.c-icobtn {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-tile);
    background: var(--tile);
    color: var(--text-soft);
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.c-icobtn:hover {
    background: var(--tile-hover);
    color: var(--text);
}

.c-icobtn.is-indo .c-ic {
    animation: cGira 0.9s linear infinite;
}

.c-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: var(--side-w) minmax(0, 1fr);
    min-height: 100vh;
}

.c-side {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px 14px 16px;
    border-right: 1px solid var(--line);
    background: rgba(13, 13, 16, 0.86);
    backdrop-filter: blur(10px);
}

.c-side .c-marca {
    padding: 2px 8px 22px;
}

.c-nav {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.c-nav__trilho {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 42px;
    border-radius: var(--r-tile);
    background: var(--accent-soft);
    border: 1px solid rgba(var(--accent-rgb), 0.18);
    transition: transform 0.34s var(--ease), opacity 0.2s var(--ease);
    pointer-events: none;
}

.c-nav__trilho::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 11px;
    width: 3px;
    height: 20px;
    border-radius: 0 3px 3px 0;
    background: var(--accent);
}

.c-nav__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    height: 42px;
    padding: 0 12px;
    border-radius: var(--r-tile);
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
    text-align: left;
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.c-nav__item:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

.c-nav__item.is-ativo {
    color: var(--text);
}

.c-nav__item.is-ativo .c-ic {
    color: var(--accent);
}

.c-nav__item .c-ic {
    transition: transform 0.3s var(--ease), color 0.2s var(--ease);
}

.c-nav__item:hover .c-ic {
    transform: translateX(1px) scale(1.06);
}

.c-nav__item span {
    flex: 1;
}

.c-nav__grupo {
    margin: 18px 12px 6px;
    color: var(--faint);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.c-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--aviso);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.c-side__pe {
    margin-top: auto;
    padding: 12px 8px 0;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 10px;
}

.c-side__pe .c-avatar {
    width: 34px;
    height: 34px;
}

.c-side__pe b {
    display: block;
    font-size: 13px;
}

.c-side__pe small {
    display: block;
    color: var(--muted);
    font-size: 11.5px;
}

.c-side__pe > div {
    flex: 1;
    min-width: 0;
}

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

.c-topo {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 32px;
    border-bottom: 1px solid var(--line);
    background: rgba(9, 9, 11, 0.82);
    backdrop-filter: blur(12px);
}

.c-topo h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.c-topo p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.c-topo > div:first-child {
    flex: 1;
    min-width: 0;
}

.c-topo__hora {
    color: var(--faint);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.c-conteudo {
    padding: 26px 32px 60px;
    max-width: 1320px;
    width: 100%;
}

.c-pagina {
    animation: cEntra 0.36s var(--ease) both;
}

.c-grade {
    display: grid;
    gap: 16px;
}

.c-grade--kpi {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.c-grade--2 {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: start;
}

.c-grade--meio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.c-grade--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
}

.c-grade--cartas {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.c-espaco {
    height: 16px;
}

.c-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--card);
    padding: 18px;
    transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.c-card:hover {
    border-color: var(--line-strong);
}

.c-card__topo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.c-card__topo h2,
.c-card__topo h3 {
    flex: 1;
    margin: 0;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

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

.c-kpi {
    overflow: hidden;
    padding: 16px 16px 15px;
}

.c-kpi::before {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
    transform: scaleX(0.2);
    opacity: 0;
    transition: transform 0.5s var(--ease), opacity 0.3s var(--ease);
}

.c-kpi:hover::before {
    transform: scaleX(1);
    opacity: 1;
}

.c-kpi__rot {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
}

.c-kpi__ic {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-left: auto;
    border-radius: 9px;
    background: var(--accent-soft);
    color: var(--accent);
    transition: transform 0.35s var(--ease);
}

.c-kpi:hover .c-kpi__ic {
    transform: translateY(-2px) rotate(-4deg);
}

.c-kpi__ic--aviso {
    background: rgba(var(--aviso-rgb), 0.12);
    color: #ff6b75;
}

.c-kpi__valor {
    margin-top: 8px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.c-kpi__pe {
    margin-top: 3px;
    color: var(--faint);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.c-kpi--clica {
    cursor: pointer;
}

.c-lista {
    display: flex;
    flex-direction: column;
}

.c-linha {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 10px;
    margin: 0 -10px;
    border-radius: var(--r-tile);
    transition: background-color 0.2s var(--ease);
}

.c-linha + .c-linha {
    border-top: 1px solid var(--line);
}

.c-linha:hover {
    background: rgba(255, 255, 255, 0.025);
}

.c-linha--clica {
    cursor: pointer;
}

.c-linha--clica:hover .c-ic--seta {
    transform: translateX(2px);
    color: var(--text);
}

.c-linha .c-ic--seta {
    color: var(--faint);
    transition: transform 0.25s var(--ease), color 0.2s var(--ease);
}

.c-linha__meio {
    flex: 1;
    min-width: 0;
}

.c-linha__meio b {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.c-linha__meio small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.c-linha__fim {
    text-align: right;
    white-space: nowrap;
}

.c-linha__fim b {
    display: block;
    font-size: 13.5px;
    font-variant-numeric: tabular-nums;
}

.c-linha__fim small {
    display: block;
    color: var(--muted);
    font-size: 11.5px;
}

.c-avatar {
    position: relative;
    width: 36px;
    height: 36px;
    flex: none;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid rgba(var(--accent-rgb), 0.22);
    background: linear-gradient(158deg, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-rgb), 0.03));
    color: var(--accent-hi);
    font-size: 12.5px;
    font-weight: 800;
}

.c-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.c-avatar--lg {
    width: 64px;
    height: 64px;
    font-size: 20px;
}

.c-avatar--sm {
    width: 26px;
    height: 26px;
    font-size: 10px;
}

.c-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 23px;
    padding: 0 9px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.c-chip i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.c-chip--ok {
    border-color: rgba(var(--accent-rgb), 0.3);
    background: var(--accent-soft);
    color: var(--accent-hi);
}

.c-chip--alerta {
    border-color: rgba(245, 165, 36, 0.35);
    background: rgba(245, 165, 36, 0.1);
    color: #ffc05a;
}

.c-chip--ruim {
    border-color: rgba(var(--aviso-rgb), 0.4);
    background: rgba(var(--aviso-rgb), 0.1);
    color: #ff7a83;
}

.c-chip--mudo {
    color: var(--muted);
}

.c-abas {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.c-aba {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 14px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.c-aba:hover {
    color: var(--text);
}

.c-aba.is-ativo {
    background: var(--tile-hover);
    color: var(--text);
    box-shadow: inset 0 0 0 1px var(--line-strong);
}

.c-aba .c-badge {
    height: 18px;
    min-width: 18px;
    font-size: 10.5px;
}

.c-aba em {
    font-style: normal;
    color: var(--faint);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.c-barra {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.c-barra .c-abas {
    margin-bottom: 0;
}

.c-busca {
    position: relative;
    flex: 1;
    min-width: 220px;
    max-width: 460px;
}

.c-busca .c-ic {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.c-busca .c-input {
    padding-left: 40px;
}

.c-medidor {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.c-medidor span {
    display: block;
    height: 100%;
    width: var(--w, 0%);
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-base), var(--accent));
    transition: width 0.8s var(--ease);
}

.c-medidor--aperto span {
    background: linear-gradient(90deg, #b8741b, var(--amber));
}

.c-medidor--cheio span {
    background: linear-gradient(90deg, #a3161f, var(--aviso));
}

.c-medida {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 4px 0 10px;
}

.c-medida b {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.c-medida span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.c-pares {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    margin-top: 14px;
}

.c-par small {
    display: block;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
}

.c-par b {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    word-break: break-word;
}

.c-grafico {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 180px;
    padding-top: 22px;
}

.c-grafico__col {
    position: relative;
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 7px;
}

.c-grafico__barra {
    width: 100%;
    max-width: 42px;
    height: var(--h, 2%);
    min-height: 3px;
    border-radius: 7px 7px 3px 3px;
    background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.55), rgba(var(--accent-rgb), 0.14));
    transition: background 0.25s var(--ease), transform 0.3s var(--ease);
    transform-origin: bottom;
}

.c-grafico__col:hover .c-grafico__barra {
    background: linear-gradient(180deg, var(--accent), rgba(var(--accent-rgb), 0.3));
}

.c-grafico__col small {
    color: var(--faint);
    font-size: 11px;
    font-weight: 700;
}

.c-grafico__dica {
    position: absolute;
    bottom: calc(var(--h, 2%) + 30px);
    left: 50%;
    transform: translate(-50%, 4px);
    padding: 4px 8px;
    border-radius: 7px;
    background: #1e1e24;
    border: 1px solid var(--line-strong);
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.25s var(--ease);
}

.c-grafico__col:hover .c-grafico__dica {
    opacity: 1;
    transform: translate(-50%, 0);
}

.c-vazio {
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 42px 16px;
    color: var(--muted);
    text-align: center;
    font-size: 13.5px;
}

.c-vazio .c-ic {
    width: 30px;
    height: 30px;
    color: var(--faint);
}

.c-esqueleto {
    border-radius: var(--r-card);
    border: 1px solid var(--line);
    background: linear-gradient(90deg, #111114 0%, #17171b 45%, #111114 90%);
    background-size: 760px 100%;
    animation: cBrilho 1.4s linear infinite;
    min-height: 110px;
}

.c-carta {
    position: relative;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
}

.c-carta__capa {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0c0c0f;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.c-carta__capa img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease), opacity 0.3s var(--ease);
}

.c-carta:hover .c-carta__capa img {
    transform: scale(1.035);
}

.c-carta__capa .c-sem-capa {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--faint);
}

.c-carta__capa .c-chip {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(9, 9, 11, 0.78);
    backdrop-filter: blur(6px);
}

.c-carta__capa .c-chip + .c-chip {
    left: auto;
    right: 10px;
}

.c-carta__corpo {
    padding: 13px 14px 14px;
}

.c-carta__corpo b {
    display: block;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.c-carta__quem {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 9px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.c-carta__quem span {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.c-carta__info {
    display: flex;
    gap: 12px;
    margin-top: 9px;
    color: var(--faint);
    font-size: 11.5px;
    font-weight: 700;
}

.c-carta__info span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.c-den {
    padding: 16px 18px;
}

.c-den + .c-den {
    margin-top: 12px;
}

.c-den__quem {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.c-den__pessoa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 700;
    transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.c-den__pessoa:hover {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.05);
}

.c-den__seta {
    color: var(--faint);
    font-size: 12px;
    font-weight: 700;
}

.c-den__motivo {
    margin: 12px 0 0;
    padding: 11px 13px;
    border-left: 2px solid rgba(var(--aviso-rgb), 0.6);
    border-radius: 0 10px 10px 0;
    background: rgba(var(--aviso-rgb), 0.05);
    color: var(--text-soft);
    font-size: 13.5px;
    white-space: pre-wrap;
    word-break: break-word;
}

.c-den__acoes {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.c-den__acoes .c-den__hora {
    margin-left: auto;
    color: var(--faint);
    font-size: 12px;
    font-weight: 600;
}

.c-den.is-resolvida {
    opacity: 0.62;
}

.c-conversa {
    margin-top: 12px;
    padding: 10px;
    border-radius: 12px;
    background: #0c0c0f;
    border: 1px solid var(--line);
}

.c-msg {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 9px;
}

.c-msg.is-alvo {
    background: rgba(var(--aviso-rgb), 0.07);
    box-shadow: inset 0 0 0 1px rgba(var(--aviso-rgb), 0.3);
}

.c-msg__txt {
    flex: 1;
    min-width: 0;
}

.c-msg__txt b {
    font-size: 12.5px;
}

.c-msg__txt small {
    margin-left: 6px;
    color: var(--faint);
    font-size: 11px;
}

.c-msg__txt p {
    margin: 2px 0 0;
    color: var(--text-soft);
    font-size: 13px;
    white-space: pre-wrap;
    word-break: break-word;
}

.c-msg__txt p.is-apagada {
    color: var(--faint);
    font-style: italic;
}

.c-tabela {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.c-tabela th {
    padding: 0 10px 10px;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid var(--line);
}

.c-tabela td {
    padding: 11px 10px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
}

.c-tabela tr:last-child td {
    border-bottom: 0;
}

.c-tabela tbody tr {
    transition: background-color 0.2s var(--ease);
}

.c-tabela tbody tr.is-clica {
    cursor: pointer;
}

.c-tabela tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

.c-tabela td b {
    font-weight: 700;
}

.c-tabela td small {
    display: block;
    color: var(--muted);
    font-size: 11.5px;
}

.c-rolagem {
    overflow-x: auto;
}

.c-num {
    text-align: right !important;
}

.c-escuro {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(4, 4, 6, 0.62);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.26s var(--ease);
}

.c-escuro.is-aberto {
    opacity: 1;
}

.c-gaveta {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 41;
    width: min(560px, 100vw);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--line-strong);
    background: #0f0f12;
    box-shadow: -30px 0 80px -30px rgba(0, 0, 0, 0.8);
    transform: translateX(24px);
    opacity: 0;
    transition: transform 0.34s var(--ease), opacity 0.26s var(--ease);
}

.c-gaveta.is-aberto {
    transform: none;
    opacity: 1;
}

.c-gaveta__topo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.c-gaveta__topo h2 {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.c-gaveta__corpo {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.c-gaveta__pe {
    display: flex;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--line);
    background: #0d0d10;
    flex-wrap: wrap;
}

.c-gaveta__pe .c-btn {
    flex: 1;
}

.c-secao {
    margin-top: 20px;
}

.c-secao > h4 {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.c-capa-grande {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #0c0c0f;
    border: 1px solid var(--line);
}

.c-capa-grande img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.c-capa-grande .c-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(6px);
}

.c-itens {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 10px;
}

.c-item {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #0c0c0f;
    transition: border-color 0.2s var(--ease), transform 0.25s var(--ease);
}

.c-item:hover {
    border-color: var(--line-strong);
    transform: translateY(-1px);
}

.c-item__capa {
    aspect-ratio: 16 / 10;
    display: grid;
    place-items: center;
    color: var(--faint);
    background: #09090b;
    overflow: hidden;
}

.c-item__capa img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.c-item__nome {
    padding: 7px 8px 8px;
    font-size: 11.5px;
    font-weight: 700;
}

.c-item__nome span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.c-item__nome small {
    display: block;
    color: var(--faint);
    font-size: 10.5px;
    font-weight: 700;
}

.c-perfil {
    display: flex;
    align-items: center;
    gap: 14px;
}

.c-perfil b {
    display: block;
    font-size: 17px;
    font-weight: 800;
}

.c-perfil small {
    display: block;
    color: var(--muted);
    font-size: 12.5px;
}

.c-hist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.c-hist__item {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--line);
    font-size: 12.5px;
}

.c-hist__item b {
    font-weight: 700;
}

.c-hist__item small {
    display: block;
    color: var(--muted);
    font-size: 11.5px;
}

.c-hist__item > div {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.c-hist__item time {
    color: var(--faint);
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

.c-modal-fundo {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(4, 4, 6, 0.66);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.22s var(--ease);
}

.c-modal-fundo.is-aberto {
    opacity: 1;
}

.c-modal {
    width: min(440px, 100%);
    padding: 22px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: #111114;
    box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9);
    transform: translateY(8px) scale(0.985);
    transition: transform 0.3s var(--ease);
}

.c-modal-fundo.is-aberto .c-modal {
    transform: none;
}

.c-modal h3 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 800;
}

.c-modal p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 13.5px;
    white-space: pre-wrap;
}

.c-modal__botoes {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 6px;
}

.c-segredo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px dashed rgba(var(--accent-rgb), 0.4);
    background: var(--accent-soft);
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--accent-hi);
    word-break: break-all;
}

.c-segredo span {
    flex: 1;
}

.c-avisos {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.c-aviso {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 260px;
    max-width: 420px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: #16161a;
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
    font-size: 13.5px;
    font-weight: 600;
    pointer-events: auto;
    animation: cEntra 0.32s var(--ease) both;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.c-aviso .c-ic {
    color: var(--accent);
}

.c-aviso--erro .c-ic {
    color: #ff6b75;
}

.c-aviso.is-saindo {
    opacity: 0;
    transform: translateY(6px);
}

.c-chave {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.c-chave + .c-chave {
    margin-top: 8px;
}

.c-chave:hover {
    border-color: var(--line-strong);
}

.c-chave__ab {
    border-top: 1px solid var(--line);
    margin-top: 12px;
    padding-top: 12px;
}

.c-grupo {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 4px 14px;
    background: rgba(255, 255, 255, 0.015);
}

.c-grupo + .c-grupo {
    margin-top: 12px;
}

.c-chave-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
}

.c-chave-toggle + .c-chave-toggle {
    border-top: 1px solid var(--line);
}

.c-chave-toggle > div {
    flex: 1;
    min-width: 0;
}

.c-chave-toggle b {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
}

.c-chave-toggle small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.c-chave-toggle--sub {
    padding-left: 26px;
}

.c-chave-toggle--sub b {
    font-weight: 600;
    color: var(--text-soft);
}

.c-interruptor {
    position: relative;
    width: 42px;
    height: 24px;
    flex: none;
    border-radius: 999px;
    background: #26262c;
    border: 1px solid var(--line-strong);
    transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.c-interruptor::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #8a8a94;
    transition: transform 0.28s var(--ease), background-color 0.25s var(--ease);
}

.c-interruptor.is-ligado {
    background: rgba(var(--accent-rgb), 0.28);
    border-color: rgba(var(--accent-rgb), 0.5);
}

.c-interruptor.is-ligado::after {
    transform: translateX(18px);
    background: var(--accent);
}

.c-interruptor:disabled {
    opacity: 0.4;
}

.c-flutua {
    position: sticky;
    bottom: 16px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 12px 14px 12px 18px;
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    border-radius: 14px;
    background: rgba(17, 17, 20, 0.94);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.9);
    animation: cEntra 0.3s var(--ease) both;
}

.c-flutua > span {
    flex: 1;
    font-weight: 700;
}

.c-marcar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.c-marcar input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.c-formas {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.c-forma {
    height: 36px;
    padding: 0 14px;
    border-radius: 9px;
    border: 1px solid var(--line-strong);
    background: var(--tile);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s var(--ease);
}

.c-forma:hover {
    color: var(--text);
}

.c-forma.is-ativo {
    border-color: rgba(var(--accent-rgb), 0.5);
    background: var(--accent-soft);
    color: var(--accent-hi);
}

.c-duas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
}

.c-resultado {
    border-color: rgba(var(--accent-rgb), 0.35);
    background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.06), var(--card) 60%);
}

.c-servico {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.015);
}

.c-servico b {
    display: block;
    font-size: 13.5px;
}

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

.c-servico > div {
    flex: 1;
}

.c-ponto {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    flex: none;
}

.c-ponto::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(var(--accent-rgb), 0.35);
}

.c-ponto--fora {
    background: var(--aviso);
}

.c-ponto--fora::after {
    border-color: rgba(var(--aviso-rgb), 0.4);
}

.c-texto-mudo {
    color: var(--muted);
}

.c-precisa .c-linha__meio b {
    font-size: 13.5px;
}

.c-precisa__ic {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-soft);
    flex: none;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.c-linha:hover .c-precisa__ic {
    background: var(--accent-soft);
    color: var(--accent);
}

.c-badge {
    font-style: normal;
}

.c-linha__meio .c-origem {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    color: var(--faint);
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.c-origem .c-ic {
    width: 13px;
    height: 13px;
}

.c-origem span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.c-origem em {
    font-style: normal;
    color: var(--muted);
    font-weight: 600;
}

.c-linha__meio .c-origem--cupom,
.c-linha__meio .c-origem--link {
    color: var(--accent-hi);
}

.c-linha__meio .c-origem--central {
    color: var(--text-soft);
}

.c-abas--mini {
    margin-bottom: 12px;
}

.c-abas--mini .c-aba {
    height: 30px;
    padding: 0 11px;
    font-size: 12.5px;
}

.c-lista--rola {
    max-height: 720px;
    overflow-y: auto;
    padding-right: 10px;
    margin-right: -10px;
}

.c-linha[hidden] {
    display: none;
}

.c-esqueleto--alto {
    min-height: 320px;
}

.c-carta__capa img,
.c-capa-grande img {
    position: relative;
    z-index: 1;
}

.c-carta__capa .c-chip,
.c-capa-grande .c-btn {
    z-index: 2;
}

.c-capa-grande .c-sem-capa {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--faint);
}

.c-kpi--clica:hover {
    background: #131317;
}

.c-chave.c-linha--clica {
    cursor: pointer;
}

.c-chave .c-linha__meio b {
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    letter-spacing: 0.02em;
}

@media (max-width: 1100px) {
    .c-grade--2,
    .c-grade--3 {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 860px) {
    .c-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .c-side {
        position: sticky;
        top: 0;
        z-index: 10;
        height: auto;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        overflow-x: auto;
    }

    .c-side .c-marca {
        padding: 0 6px 0 0;
    }

    .c-side .c-marca div,
    .c-nav__grupo,
    .c-side__pe,
    .c-nav__trilho {
        display: none;
    }

    .c-nav {
        flex-direction: row;
        gap: 4px;
    }

    .c-nav__item {
        height: 38px;
        padding: 0 11px;
        white-space: nowrap;
    }

    .c-nav__item.is-ativo {
        background: var(--accent-soft);
    }

    .c-topo {
        position: static;
        padding: 16px;
    }

    .c-conteudo {
        padding: 18px 16px 50px;
    }

    .c-grade--meio,
    .c-duas {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
