@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/painel/public-sans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/painel/plex-mono-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/painel/plex-mono-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
    color-scheme: light;

    --pv-bg: #f3f3f7;
    --pv-surface: #ffffff;
    --pv-surface-2: #f8f9fa;
    --pv-sidebar: #21252b;
    --pv-sidebar-ink: #16191d;

    --pv-ink: #21252b;          /* titulos */
    --pv-text: #495057;         /* corpo */
    --pv-muted: #6a6d78;        /* apoio */
    --pv-faint: #6f7280;        /* icones inativos */

    --pv-line: #eff0f2;         /* divisorias */
    --pv-border: #e9ebec;       /* bordas de input/card */
    --pv-border-strong: #9aa0a9;

    --pv-primary: #2c3038;
    --pv-primary-hover: #16191d;
    --pv-danger: #c04832;
    --pv-danger-hover: #a63c28;
    --pv-danger-bg: rgba(192, 72, 50, .1);
    --pv-ok: #2f6b4d;
    --pv-ok-bg: rgba(47, 107, 77, .12);

    --pv-radius: 10px;
    --pv-radius-sm: 8px;
    --pv-radius-xs: 7px;
    --pv-shadow-card: 0 1px 2px rgba(56, 65, 74, .14);
    --pv-shadow-pop: 0 12px 30px rgba(0, 0, 0, .28);

    --pv-sidebar-w: 250px;
    --pv-sidebar-w-collapsed: 74px;
    --pv-header-h: 64px;

    --pv-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --pv-sans: 'Public Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
/* reset local */
body.pv-body {
    margin: 0;
    background: var(--pv-bg);
    color: var(--pv-text);
    font-family: var(--pv-sans);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
.pv-body * { box-sizing: border-box; }
.pv-body a { text-decoration: none; }
.pv-body a:not([class]) { color: var(--pv-primary); }
.pv-body img { max-width: 100%; }
.pv-body input,
.pv-body select,
.pv-body textarea,
.pv-body button { font-family: inherit; }
.pv-body ::placeholder { color: var(--pv-muted); }
.pv-body :focus-visible { outline: 2px solid var(--pv-primary); outline-offset: 2px; }
.pv-body input:not([type=checkbox]):not([type=radio]):not([type=file]):focus-visible,
.pv-body select:focus-visible,
.pv-body textarea:focus-visible {
    outline: none;
    border-color: var(--pv-border-strong);
    box-shadow: 0 0 0 3px rgba(44, 48, 56, .08);
}
.pv-body [hidden] { display: none !important; }
.pv-body ::-webkit-scrollbar { width: 8px; height: 8px; }
.pv-body ::-webkit-scrollbar-thumb { background: rgba(135, 138, 153, .38); border-radius: 8px; }
@keyframes pv-slide { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@keyframes pv-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pv-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .pv-body *, .pv-body *::before, .pv-body *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
/* shell */
.pv-shell { display: flex; align-items: stretch; min-height: 100vh; }
.pv-sidebar {
    width: var(--pv-sidebar-w);
    flex: 0 0 var(--pv-sidebar-w);
    background: var(--pv-sidebar);
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}
.pv-collapsed .pv-sidebar {
    width: var(--pv-sidebar-w-collapsed);
    flex-basis: var(--pv-sidebar-w-collapsed);
}
.pv-brand {
    height: var(--pv-header-h);
    flex: 0 0 var(--pv-header-h);
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    overflow: hidden;
}
.pv-collapsed .pv-brand { justify-content: center; padding: 0; }
.pv-brand-name {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
}
.pv-collapsed .pv-brand-name { display: none; }
.pv-nav {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px 10px 20px;
}
.pv-nav-group { margin-bottom: 14px; }
.pv-nav-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
    padding: 6px 12px 8px;
    white-space: nowrap;
}
.pv-collapsed .pv-nav-label {
    height: 1px;
    margin: 6px 12px 10px;
    padding: 0;
    background: rgba(255, 255, 255, .12);
    color: transparent;
    font-size: 0;
    overflow: hidden;
}
.pv-nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border-radius: var(--pv-radius-sm);
    background: transparent;
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
    overflow: hidden;
    text-decoration: none;
    white-space: nowrap;
}
.pv-nav-item:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.pv-nav-item.is-active { background: rgba(255, 255, 255, .13); color: #fff; }
.pv-nav-item i { font-size: 17px; width: 20px; text-align: center; flex: 0 0 auto; }
.pv-collapsed .pv-nav-item { justify-content: center; padding: 0; }
.pv-collapsed .pv-nav-item > span { display: none; }
.pv-sidebar-foot {
    flex: 0 0 auto;
    padding: 12px 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, .07);
}
.pv-sitelink {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 42px;
    padding: 0 12px;
    border-radius: var(--pv-radius-sm);
    background: rgba(255, 255, 255, .07);
    color: #fff;
    font-size: 13.5px;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
}
.pv-sitelink:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.pv-sitelink i { font-size: 16px; width: 20px; text-align: center; flex: 0 0 auto; }
.pv-collapsed .pv-sitelink { justify-content: center; padding: 0; }
.pv-collapsed .pv-sitelink span { display: none; }
/* main / header */
.pv-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; position: relative; }
.pv-main.pv-loading::after {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 2px;
    z-index: 90;
    background: var(--pv-primary);
    animation: pv-progress 1.2s ease-in-out infinite;
    transform-origin: left;
}
@keyframes pv-progress {
    0% { transform: scaleX(0); opacity: 1; }
    60% { transform: scaleX(.85); opacity: 1; }
    100% { transform: scaleX(1); opacity: .2; }
}
.pv-main.pv-loading .pv-content { opacity: .55; transition: opacity .12s; }
.pv-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--pv-surface);
    box-shadow: var(--pv-shadow-card);
}
.pv-header-bar {
    height: var(--pv-header-h);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
}
.pv-iconbtn {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border: 0;
    border-radius: var(--pv-radius-sm);
    background: transparent;
    color: var(--pv-text);
    font-size: 21px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.pv-iconbtn:hover { background: var(--pv-bg); color: var(--pv-ink); }
.pv-iconbtn--sutil { width: 36px; height: 36px; font-size: 18px; color: var(--pv-muted); }
.pv-iconbtn--sutil:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pv-iconbtn--sutil g { display: none; }
.pv-iconbtn--sutil[data-modo="auto"] g[data-i="auto"], .pv-iconbtn--sutil[data-modo="claro"] g[data-i="claro"], .pv-iconbtn--sutil[data-modo="escuro"] g[data-i="escuro"] { display: inline; }
.pv-tema-fixo { position: fixed; top: 12px; right: 12px; z-index: 5; }
.pv-header-right { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.pv-user {
    height: 42px;
    padding: 0 10px 0 6px;
    border: 0;
    border-radius: var(--pv-radius-sm);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: inherit;
}
.pv-user:hover { background: var(--pv-bg); }
.pv-avatar {
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: var(--pv-ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 600;
    flex: 0 0 auto;
}
.pv-user-meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.pv-user-meta b { font-size: 13px; font-weight: 600; color: var(--pv-ink); }
.pv-user-meta small { font-size: 12px; color: var(--pv-muted); }
/* mobile drawer */
.pv-drawer-scrim {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(22, 25, 29, .45);
    animation: pv-fade .16s ease both;
}
.pv-drawer {
    position: fixed;
    top: 0; inset-inline-start: 0; bottom: 0;
    z-index: 50;
    width: min(86vw, 304px);
    background: var(--pv-surface);
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 44px rgba(22, 25, 29, .3);
    animation: pv-slide .2s ease both;
}
.pv-drawer-head {
    flex: 0 0 auto;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px 0 18px;
    border-bottom: 1px solid var(--pv-line);
}
.pv-drawer-head span {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--pv-ink);
}
.pv-drawer .pv-nav { padding: 8px 10px 14px; }
.pv-drawer .pv-nav-label {
    color: var(--pv-muted);
    background: none;
    height: auto;
    font-size: 10.5px;
    padding: 12px 12px 6px;
}
.pv-drawer .pv-nav-item {
    color: var(--pv-ink);
    min-height: 48px;
    font-size: 15px;
}
.pv-drawer .pv-nav-item:hover { background: var(--pv-bg); color: var(--pv-ink); }
.pv-drawer .pv-nav-item.is-active { background: var(--pv-bg); }
.pv-drawer-foot {
    flex: 0 0 auto;
    padding: 10px 12px 14px;
    border-top: 1px solid var(--pv-line);
}
.pv-drawer-foot a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    border-radius: 9px;
    background: var(--pv-bg);
    color: var(--pv-ink);
    font-size: 14px;
    font-weight: 600;
}
/* content area */
.pv-content { flex: 1 1 auto; padding: 22px 16px 34px; }
.pv-wrap,
.pv-wrap.pv-w-form,
.pv-wrap.pv-w-list,
.pv-wrap.pv-w-wide { max-width: 1000px; margin: 0 auto; }
/* buttons */
.pv-btn {
    height: 38px;
    padding: 0 15px;
    border: 1px solid var(--pv-border);
    border-radius: var(--pv-radius-xs);
    background: var(--pv-surface);
    color: var(--pv-ink);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
    white-space: nowrap;
}
.pv-btn:hover { background: var(--pv-bg); color: var(--pv-ink); }
.pv-btn i { font-size: 16px; }
.pv-btn-primary {
    border-color: transparent;
    background: var(--pv-primary);
    color: #fff;
}
.pv-btn-primary:hover { background: var(--pv-primary-hover); color: #fff; }
.pv-btn-ghost { border-color: transparent; background: transparent; }
.pv-btn-ghost:hover { background: var(--pv-bg); }
.pv-btn:disabled { opacity: .5; cursor: not-allowed; }
/* cards */
.pv-card {
    background: var(--pv-surface);
    border-radius: var(--pv-radius);
    box-shadow: var(--pv-shadow-card);
    overflow: hidden;
}
.pv-card-pad { padding: 20px; }
.pv-card + .pv-card { margin-top: 16px; }
.pv-hr { height: 1px; background: var(--pv-line); border: 0; margin: 0; }
/* forms */
.pv-field > label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--pv-ink);
    margin-bottom: 6px;
}
.pv-hint { font-size: 11.5px; color: var(--pv-muted); margin-top: 6px; }
.pv-input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--pv-border);
    border-radius: var(--pv-radius-sm);
    padding: 0 12px;
    font-size: 14px;
    color: var(--pv-ink);
    background: var(--pv-surface);
}
.pv-input:focus {
    outline: none;
    border-color: var(--pv-border-strong);
    box-shadow: 0 0 0 3px rgba(44, 48, 56, .08);
}
/* file upload */
.pv-thumb {
    border-radius: var(--pv-radius-sm);
    border: 1px solid var(--pv-line);
    background: repeating-linear-gradient(135deg, #fff, #fff 5px, #f1f2f4 5px, #f1f2f4 10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c3c6cc;
}
/* rows for settings screens (canal / rede / integracao / cor) */
.pv-settings-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f4f5f6;
    flex-wrap: wrap;
}
.pv-settings-row:last-child { border-bottom: 0; }
.pv-settings-row .pv-settings-meta { min-width: 0; flex: 1 1 130px; }
.pv-settings-row .pv-settings-meta b { display: block; font-size: 13.5px; font-weight: 600; color: var(--pv-ink); }
.pv-settings-row .pv-settings-meta small { display: block; font-size: 11.5px; color: var(--pv-muted); }
.pv-settings-row code { font-family: var(--pv-mono); font-size: 12px; color: var(--pv-muted); }
@media (max-width: 560px) {
    .pv-settings-row .pv-settings-meta { flex: 1 1 0; }
}
.pv-color-swatch {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border: 1px solid var(--pv-border);
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    background: transparent;
}
.pv-color-swatch::-webkit-color-swatch-wrapper { padding: 2px; }
.pv-color-swatch::-webkit-color-swatch { border: 0; border-radius: 6px; }
.pv-color-hex {
    width: 124px;
    max-width: 160px;
    flex: 0 0 auto;
    height: 38px;
    border: 1px solid var(--pv-border);
    border-radius: 7px;
    padding: 0 10px;
    font-size: 13.5px;
    font-family: var(--pv-mono);
    color: var(--pv-ink);
    background: var(--pv-surface);
}
/* sticky save bar */
.pv-savebar {
    position: sticky;
    bottom: 0;
    z-index: 25;
    background: var(--pv-surface);
    box-shadow: 0 -1px 2px rgba(56, 65, 74, .14);
}
.pv-savebar-in {
    max-width: 1000px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
}
.pv-savebar-in .pv-btn { height: 40px; }
@media (max-width: 720px) {
    .pv-savebar-in {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 8px;
        padding: 10px 14px;
    }
    .pv-savebar-in .pv-btn { height: 46px; }
}
/* tables (list screens) */
/* confirm modal + toast */
.pv-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 70;
    background: var(--pv-ink);
    color: #fff;
    padding: 11px 16px;
    border-radius: var(--pv-radius-sm);
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--pv-shadow-pop);
    animation: pv-up .2s ease both;
    max-width: calc(100vw - 32px);
}
.pv-toast.pv-toast-success { background: var(--pv-ok); }
.pv-toast.pv-toast-danger { background: var(--pv-danger); }
.pv-toast.pv-toast-info { background: var(--pv-ink); }
.pv-toast i { font-size: 16px; flex: 0 0 auto; }
/* responsive: collapse the shell into a top bar + drawer */
.pv-only-narrow { display: none; }
@media (max-width: 1079px) {
    .pv-sidebar { display: none; }
    .pv-only-wide { display: none !important; }
    .pv-only-narrow { display: flex; }
    .pv-savebar-in,
    .pv-wrap.pv-w-form,
    .pv-wrap.pv-w-list,
    .pv-wrap.pv-w-wide { max-width: 760px; }
}
@media (min-width: 1080px) {
    .pv-drawer, .pv-drawer-scrim { display: none; }
}
/* phones: page-head action and list search go full width */
@media (max-width: 640px) {
    .pv-content { padding: 18px 14px 30px; }
}
body.pv-lock { overflow: hidden; }
/* Alvos de toque, "Sair" visível, formulários largos */
/* Área clicável mínima sem mudar o desenho */
.pv-brand-name { display: inline-block; padding-block: 6px; }
/* "Sair" como ação própria, no lugar do texto miúdo sob o nome */
.pv-user { cursor: default; }
.pv-user:hover { background: transparent; }
.pv-sair { padding: 0; border: 0; background: none; font: inherit; font-size: 12px; color: var(--pv-muted); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.pv-sair:hover { color: var(--pv-ink); }
.pv-sair:focus-visible { outline: 2px solid var(--pv-ink); outline-offset: 2px; border-radius: 3px; }
