﻿:root {
    /* superfícies */
    --ink: #0d1a24;
    --ink-2: #152838;
    --ink-3: #1d3purple;
    --paper: #f5f7f8;
    --card: #fff;
    --line: #e2e8ec;
    --line-2: #eef2f5;
    /* texto */
    --text: #132030;
    --muted: #6b7d8d;
    --faint: #93a4b1;
    /* marca */
    --primary: #0f9aa8;
    --primary-dark: #0a7581;
    --primary-soft: #e6f6f8;
    /* semânticos */
    --ok: #15794b;
    --ok-bg: #e4f5ec;
    --warn: #9a6400;
    --warn-bg: #fdf0da;
    --crit: #a8303c;
    --crit-bg: #fceaec;
    --info: #5b4bb8;
    --info-bg: #edeaff;
    /* forma */
    --r: 6px;
    --r-lg: 10px;
    --side: 246px;
    --side-collapsed: 62px;
    --mono: "JetBrains Mono",ui-monospace,SFMono-Regular,Consolas,monospace;
    --sans: Inter,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}



* {
    box-sizing: border-box
}

html {
    -webkit-text-size-adjust: 100%
}

body {
    margin: 0;
    font-family: var(--sans);
    background: var(--paper);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased
}

a {
    text-decoration: none;
    color: inherit
}

button, input, select, textarea {
    font: inherit
}

h1, h2, h3 {
    margin: 0;
    letter-spacing: -.018em;
    font-weight: 650
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 3px
}

/* ───────── shell ───────── */
.app {
    display: grid;
    grid-template-columns: var(--side) minmax(0, 1fr);
    min-height: 100vh;
    width: 100%;
    transition: grid-template-columns .2s ease;
}

.side {
    background: var(--ink);
    color: #c8d6e0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid #000
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 19px 18px 17px;
    border-bottom: 1px solid #ffffff12;
    color: #fff
}

.logo, .logo-img {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    flex: 0 0 auto
}

.logo {
    /*background: var(--primary);*/
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    color: #fff
}

.logo-img {
    background: #fff;
    object-fit: contain;
    padding: 3px
}

.brand-txt {
    font-weight: 650;
    font-size: 14.5px;
    letter-spacing: -.015em;
    line-height: 1.15
}

    .brand-txt em {
        display: block;
        font-style: normal;
        font-size: 10px;
        font-weight: 500;
        letter-spacing: .14em;
        text-transform: uppercase;
        color: var(--primary)
    }

.nav {
    flex: 1;
    overflow-y: auto;
    padding: 14px 11px
}

.nav-eyebrow {
    display: block;
    padding: 15px 8px 6px;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: #5f7385
}

    .nav-eyebrow:first-child {
        padding-top: 3px
    }

.nav a {
    display: block;
    padding: 8px 10px;
    border-radius: 5px;
    color: #b3c4d1;
    font-size: 13.5px;
    font-weight: 500;
    position: relative;
    transition: background .12s,color .12s
}

    .nav a:hover {
        background: #ffffff0e;
        color: #fff
    }

    .nav a.ativo {
        background: #ffffff14;
        color: #fff;
        font-weight: 600
    }

        .nav a.ativo::before {
            content: "";
            position: absolute;
            left: -11px;
            top: 7px;
            bottom: 7px;
            width: 2px;
            background: var(--primary);
            border-radius: 0 2px 2px 0
        }

.nav-group {
    margin-top: 15px
}

    .nav-group > summary {
        padding: 5px 8px 6px;
        font-size: 9.5px;
        font-weight: 600;
        letter-spacing: .13em;
        text-transform: uppercase;
        color: #5f7385;
        cursor: pointer;
        list-style: none;
        display: flex;
        align-items: center;
        gap: 6px
    }

        .nav-group > summary::-webkit-details-marker {
            display: none
        }

        .nav-group > summary::after {
            content: "";
            width: 5px;
            height: 5px;
            margin-left: auto;
            border-right: 1.5px solid currentColor;
            border-bottom: 1.5px solid currentColor;
            transform: rotate(-45deg) translate(-1px,0);
            transition: transform .15s
        }

    .nav-group[open] > summary::after {
        transform: rotate(45deg) translate(-2px,-2px)
    }

    .nav-group > summary:hover {
        color: #9db0c0
    }

.side-user {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 14px;
    border-top: 1px solid #ffffff12;
    background: #00000030
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ffffff2b;
    flex: 0 0 auto
}

.side-user-txt {
    min-width: 0;
    flex: 1;
    line-height: 1.3
}

    .side-user-txt strong {
        display: block;
        font-size: 12.5px;
        color: #fff;
        font-weight: 600;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap
    }

    .side-user-txt span {
        font-size: 10px;
        color: #7c90a1;
        text-transform: capitalize
    }

.sair {
    font-size: 11px;
    color: #8ea3b3;
    padding: 5px 8px;
    border-radius: 5px;
    flex: 0 0 auto
}

    .sair:hover {
        background: #ffffff12;
        color: #fff
    }

.wrap {
    padding: 26px 30px 60px;
    max-width: 1680px;
    min-width: 0
}

/* ───────── cabeçalho de página ───────── */
.head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line)
}

    .head h1 {
        font-size: 23px
    }

.breadcrumb {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 7px
}

.sub {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 4px
}

.meta, small {
    font-size: 11.5px;
    color: var(--muted)
}

/* ───────── superfícies ───────── */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg)
}

.section, .box {
    padding: 18px 19px;
    margin-bottom: 16px
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px
}

    .section-head h2, .box h2 {
        font-size: 14px;
        letter-spacing: -.01em
    }

.form h2 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--faint);
    margin: 22px 0 13px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--line-2)
}

    .form h2:first-child {
        margin-top: 0
    }

/* ───────── métricas ───────── */
.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(178px,1fr));
    gap: 12px;
    margin-bottom: 20px
}

.metric {
    padding: 15px 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    position: relative;
    overflow: hidden
}

    .metric::after {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 2px;
        background: var(--line)
    }

    .metric span {
        font-size: 10px;
        font-weight: 600;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: var(--faint)
    }

    .metric strong {
        display: block;
        margin-top: 9px;
        font-family: var(--mono);
        font-size: 27px;
        font-weight: 500;
        letter-spacing: -.03em;
        font-variant-numeric: tabular-nums;
        line-height: 1
    }

    .metric.is-abertos::after {
        background: var(--primary)
    }

    .metric.is-andamento::after {
        background: var(--info)
    }

    .metric.is-aguardando::after {
        background: var(--warn)
    }

    .metric.is-horas::after {
        background: var(--ok)
    }

/* ───────── ASSINATURA: medidor de horas ───────── */
.gauge {
    margin-top: 10px
}

.gauge-track {
    height: 5px;
    border-radius: 3px;
    background: var(--line-2);
    overflow: hidden;
    display: flex
}

.gauge-fill {
    background: var(--ok);
    transition: width .35s ease
}

.gauge-over {
    background: var(--crit)
}

.gauge.is-alto .gauge-fill {
    background: var(--warn)
}

.gauge-legend {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-family: var(--mono);
    font-size: 10.5px;
    font-variant-numeric: tabular-nums;
    color: var(--muted)
}

    .gauge-legend b {
        color: var(--text);
        font-weight: 500
    }

/* ───────── dados monoespaçados ───────── */
.num, .doc, .tel, .hrs, .ticket-id {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em
}

.ticket-id {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--muted)
}

.hrs {
    font-weight: 500
}

/* ───────── botões ───────── */
.btn {
    border: 0;
    border-radius: var(--r);
    padding: 9px 15px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background .13s,border-color .13s,transform .06s
}

    .btn:active {
        transform: translateY(.5px)
    }

.btn-primary {
    background: var(--primary);
    color: #fff
}

    .btn-primary:hover {
        background: var(--primary-dark)
    }

.btn-light {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--text)
}

    .btn-light:hover {
        border-color: #c4d0d9;
        background: #fafcfd
    }

.btn-danger {
    background: #fff;
    border: 1px solid var(--crit-bg);
    color: var(--crit)
}

    .btn-danger:hover {
        background: var(--crit-bg)
    }

.full {
    width: 100%
}

/* ───────── formulários ───────── */
.form {
    padding: 22px 24px;
    margin-bottom: 18px;
    max-width: none
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(160px,1fr));
    gap: 10px;
    padding: 14px 15px;
    margin-bottom: 16px;
    align-items: end
}

.field, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 9px 11px;
    background: #fff;
    color: var(--text);
    outline: none;
    transition: border-color .13s,box-shadow .13s
}

    .field:hover, select:hover {
        border-color: #cbd6de
    }

    .field:focus, select:focus, textarea:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--primary-soft)
    }

    .field[type=number], .field[data-mask] {
        font-family: var(--mono);
        font-variant-numeric: tabular-nums
    }

.grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(258px,1fr));
    gap: 14px 16px
}

.group {
    margin-bottom: 14px
}

    .group label {
        display: block;
        font-size: 11.5px;
        font-weight: 600;
        color: #4a5b6b;
        margin-bottom: 6px
    }

    .group small {
        display: block;
        margin-top: 5px;
        font-size: 11px;
        color: var(--faint)
    }

.check {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 9px 0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer
}

    .check input {
        width: auto;
        accent-color: var(--primary)
    }

.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(196px,1fr));
    gap: 8px
}

.check-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    font-size: 13px;
    cursor: pointer;
    transition: border-color .13s,background .13s
}

    .check-card:hover {
        border-color: var(--primary);
        background: var(--primary-soft)
    }

    .check-card:has(input:checked) {
        border-color: var(--primary);
        background: var(--primary-soft);
        font-weight: 550
    }

    .check-card input {
        accent-color: var(--primary)
    }

.form-actions, .card-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap
}

.form-actions {
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line-2)
}

.validation, .erro, [data-valmsg-for] {
    display: block;
    color: var(--crit);
    font-size: 11.5px;
    margin-top: 5px
}

    .validation:empty, .erro:empty {
        display: none
    }

.action-stack {
    display: grid;
    gap: 8px
}

/* upload de foto */
.avatar-upload {
    display: flex;
    align-items: center;
    gap: 14px
}

.avatar-preview {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
    background: var(--line-2);
    flex: 0 0 auto
}

/* ───────── badges e status ───────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .05em;
    text-transform: uppercase;
    background: var(--primary-soft);
    color: var(--primary-dark)
}

.status-em_andamento {
    background: var(--info-bg);
    color: var(--info)
}

.status-aguardando_cliente {
    background: var(--warn-bg);
    color: var(--warn)
}

.status-resolvido {
    background: var(--ok-bg);
    color: var(--ok)
}

.status-cancelado {
    background: var(--crit-bg);
    color: var(--crit)
}

.status-fechado {
    background: #eef2f5;
    color: #5c6b79
}

.chip {
    display: inline-flex;
    padding: 3px 8px;
    margin: 0 4px 4px 0;
    border-radius: 4px;
    background: #f1f5f7;
    border: 1px solid var(--line);
    font-size: 11.5px;
    color: #48596a
}

.chip-inativo {
    opacity: .5;
    text-decoration: line-through
}

.prio-1 {
    color: var(--crit);
    font-weight: 650
}

.prio-2 {
    color: var(--warn);
    font-weight: 600
}

.prio-3 {
    color: var(--muted)
}

/* ───────── kanban ───────── */
.board {
    display: flex;
    gap: 11px;
    overflow-x: auto;
    align-items: flex-start;
    padding: 4px 0 12px
}

.col {
    flex: 0 0 292px;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    overflow: hidden;
    background: #eef1f3
}

.col-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #4a5b6b
}

.count {
    font-family: var(--mono);
    background: #f1f5f7;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1px 8px;
    font-size: 10.5px;
    color: var(--muted)
}

.col-body {
    height: 330px;
    overflow-y: auto;
    padding: 8px
}

.kcard {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 11px;
    margin-bottom: 8px;
    transition: border-color .13s,transform .1s
}

    .kcard:hover {
        border-color: var(--primary);
        transform: translateY(-1px)
    }

    .kcard strong {
        display: block;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.35;
        margin-bottom: 8px
    }

    .kcard .meta {
        display: flex;
        gap: 7px;
        flex-wrap: wrap;
        margin: 8px 0
    }

    .kcard footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid var(--line-2);
        margin-top: 9px;
        padding-top: 8px;
        font-family: var(--mono);
        font-size: 10.5px;
        color: var(--faint)
    }

/* ───────── tabelas ───────── */
.table-wrap {
    overflow: auto;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    background: #fff
}

table {
    width: 100%;
    border-collapse: collapse
}

th, td {
    text-align: left;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line-2);
    font-size: 13px
}

th {
    background: #fafcfd;
    color: var(--faint);
    font-size: 9.5px;
    font-weight: 650;
    letter-spacing: .11em;
    text-transform: uppercase;
    position: sticky;
    top: 0;
    z-index: 1
}

tbody tr:last-child td {
    border-bottom: 0
}

tbody tr:hover td {
    background: #fafcfd
}

td.num, td.hrs {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    text-align: right
}

/* ───────── detalhe do ticket ───────── */
.detail {
    display: grid;
    grid-template-columns: minmax(0,1fr) 344px;
    gap: 18px;
    align-items: start
}

.info {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line-2);
    font-size: 12.5px
}

    .info:last-child {
        border-bottom: 0
    }

    .info > span:first-child {
        color: var(--muted)
    }

    .info > span:last-child {
        font-weight: 550;
        text-align: right
    }

.hours {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 8px
}

    .hours div {
        text-align: center;
        background: #fafcfd;
        border: 1px solid var(--line);
        border-radius: var(--r);
        padding: 11px 6px
    }

    .hours strong {
        display: block;
        font-family: var(--mono);
        font-size: 17px;
        font-weight: 500;
        font-variant-numeric: tabular-nums;
        letter-spacing: -.02em
    }

    .hours span {
        display: block;
        margin-top: 3px;
        font-size: 9.5px;
        font-weight: 600;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--faint)
    }

.message {
    border: 1px solid var(--line);
    border-left: 2px solid var(--primary);
    background: #fff;
    border-radius: var(--r);
    padding: 12px 14px;
    margin: 9px 0;
    font-size: 13px
}

    .message header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 8px;
        font-size: 11.5px
    }

        .message header strong {
            font-size: 12.5px
        }

        .message header time {
            font-family: var(--mono);
            font-size: 10.5px;
            color: var(--faint)
        }

    .message.client {
        border-left-color: #8494a3;
        background: #fafbfc
    }

    .message.interno {
        border-left-color: var(--warn);
        background: #fffdf7
    }

.comment-form {
    margin-top: 16px
}

/* ───────── grades de cards ───────── */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(318px,1fr));
    gap: 13px
}

.project-card, .user-card {
    padding: 17px 18px;
    transition: border-color .13s
}

    .project-card:hover, .user-card:hover {
        border-color: #c9d5dd
    }

    .project-card h3, .user-card h3 {
        font-size: 15px;
        margin-bottom: 5px
    }

    .user-card p {
        margin: 3px 0;
        font-size: 12.5px;
        color: var(--muted)
    }

.user-card-head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 11px
}

    .user-card-head h3 {
        margin: 0
    }

.avatar-sm {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
    flex: 0 0 auto
}

.projetos {
    margin: 11px 0 0;
    padding-top: 11px;
    border-top: 1px solid var(--line-2);
    font-size: 12px;
    color: var(--muted)
}

.card .meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 11px
}

.card-actions {
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid var(--line-2)
}

    .card-actions .btn {
        padding: 7px 12px;
        font-size: 12px
    }

/* ───────── vazio / aviso ───────── */
.empty {
    padding: 44px 20px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: var(--r-lg);
    background: #fff
}

    .empty strong {
        display: block;
        color: var(--text);
        font-size: 14px;
        margin-bottom: 5px
    }

.notice {
    padding: 13px 15px;
    background: var(--warn-bg);
    border: 1px solid #f0dcb4;
    border-radius: var(--r);
    color: var(--warn);
    font-size: 12.5px
}

/* ───────── login ───────── */
.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--ink);
    font-family: var(--sans);
    margin: 0;
    color: var(--text)
}

.login-card {
    width: min(392px,calc(100% - 32px));
    background: #fff;
    padding: 34px 32px;
    border-radius: 14px;
    border: 1px solid #ffffff1a
}

    .login-card h1 {
        text-align: center;
        font-size: 19px;
        margin: 16px 0 4px
    }

    .login-card .sub {
        text-align: center;
        margin-bottom: 22px
    }

.login-logo {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    /*background: var(--primary);*/
    color: #fff;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .05em
}

/* ───────── responsivo geral ───────── */
@media(max-width:1100px) {
    .detail {
        grid-template-columns: 1fr
    }
}

@media(max-width:620px) {
    .head {
        flex-direction: column;
        align-items: flex-start
    }

    .hours {
        grid-template-columns: 1fr
    }

    .col {
        flex-basis: 84vw
    }

    .avatar-upload {
        flex-direction: column;
        align-items: flex-start
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        transition: none !important;
        animation: none !important
    }
}

.grupo-empresa {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--faint);
    margin: 26px 0 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--line)
}

    .grupo-empresa:first-of-type {
        margin-top: 0
    }

.editor {
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: #fff;
    overflow: hidden
}

    .editor:focus-within {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--primary-soft)
    }

.editor-bar {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 6px 8px;
    border-bottom: 1px solid var(--line-2);
    background: #fafcfd
}

    .editor-bar button {
        width: 28px;
        height: 26px;
        border: 0;
        background: none;
        border-radius: 4px;
        color: #4a5b6b;
        font-size: 12px;
        cursor: pointer
    }

        .editor-bar button:hover {
            background: var(--line-2);
            color: var(--text)
        }

    .editor-bar #btn-img {
        width: auto;
        padding: 0 9px;
        font-size: 11.5px;
        font-weight: 600
    }

.editor-sep {
    width: 1px;
    height: 16px;
    background: var(--line);
    margin: 0 5px
}

.editor-hint {
    margin-left: auto;
    font-size: 10.5px;
    color: var(--faint)
}

.editor-body {
    min-height: 190px;
    max-height: 520px;
    overflow-y: auto;
    padding: 13px 14px;
    outline: none;
    font-size: 14px;
    line-height: 1.6
}

    .editor-body:empty::before {
        content: attr(data-placeholder);
        color: var(--faint)
    }

    .editor-body img {
        max-width: 100%;
        height: auto;
        border-radius: var(--r);
        border: 1px solid var(--line);
        margin: 6px 0;
        display: block
    }

        .editor-body img.img-enviando {
            min-height: 60px;
            background: var(--line-2);
            opacity: .5
        }

    .editor-body ul, .editor-body ol {
        padding-left: 22px;
        margin: 8px 0
    }

    .editor-body p {
        margin: 0 0 9px
    }

.dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 26px 18px;
    border: 1.5px dashed var(--line);
    border-radius: var(--r-lg);
    background: #fafcfd;
    cursor: pointer;
    text-align: center;
    transition: border-color .13s,background .13s
}

    .dropzone:hover, .dropzone.is-over {
        border-color: var(--primary);
        background: var(--primary-soft)
    }

    .dropzone strong {
        font-size: 13px;
        font-weight: 600
    }

    .dropzone small {
        color: var(--muted)
    }

.filelist {
    list-style: none;
    margin: 10px 0 0;
    padding: 0
}

    .filelist li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 8px 11px;
        border: 1px solid var(--line);
        border-radius: var(--r);
        margin-bottom: 6px;
        font-size: 12.5px;
        background: #fff
    }

    .filelist .num {
        color: var(--muted);
        font-size: 11px;
        flex: 0 0 auto
    }

/* ============================
   NAVEGAÇÃO / SIDEBAR
   ============================ */

/* Links com ícones */
.nav a {
    display: flex;
    align-items: center;
    gap: 11px
}

.nav-icon {
    width: 20px;
    min-width: 20px;
    text-align: center;
    font-size: 17px;
    flex: 0 0 auto
}

.nav-label {
    white-space: nowrap
}

.nav-group summary {
    display: flex;
    align-items: center;
    gap: 11px
}

/* Botão hambúrguer e overlay: somente responsivo */
.menu-toggle,
.side-overlay,
.side-close {
    display: none
}

/* Botão de recolher sidebar no desktop */
.side-collapse {
    position: absolute;
    top: 38px;
    right: -13px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7dee5;
    border-radius: 50%;
    background: #fff;
    color: #334155;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: transform .2s ease, background .2s ease
}

    .side-collapse:hover {
        background: #f3f6f8
    }

/* ============================
   SIDEBAR RECOLHIDA - DESKTOP
   ============================ */

body.side-collapsed .app {
    grid-template-columns: var(--side-collapsed) minmax(0, 1fr);
}

body.side-collapsed .side {
    width: var(--side-collapsed);
}

body.side-collapsed .wrap {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
}

body.side-collapsed .brand-txt,
body.side-collapsed .nav-eyebrow,
body.side-collapsed .nav-label,
body.side-collapsed .side-user-txt,
body.side-collapsed .sair {
    display: none;
}

body.side-collapsed .brand {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

body.side-collapsed .nav {
    padding-left: 6px;
    padding-right: 6px;
}

    body.side-collapsed .nav a {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

body.side-collapsed .nav-icon {
    width: auto;
    min-width: 0;
}

body.side-collapsed .side-user {
    justify-content: center;
}

body.side-collapsed .side-collapse {
    transform: rotate(180deg);
}

/* ============================
   RESPONSIVO / OFF-CANVAS
   ============================ */
@media (max-width: 980px) {
    .app,
    body.side-collapsed .app {
        display: block
    }

    .side,
    body.side-collapsed .side {
        position: fixed;
        top: 0;
        left: 0;
        width: 282px;
        height: 100vh;
        padding: 22px 18px;
        transform: translateX(-100%);
        transition: transform .25s ease;
        overflow-y: auto;
        z-index: 1001;
        display: flex;
        flex-direction: column;
        box-sizing: border-box
    }

        .side.is-open {
            transform: translateX(0)
        }

    /* No mobile o collapse de desktop não interfere. */
    .side-collapse {
        display: none
    }

    /* Restaura os textos caso o usuário tenha deixado a sidebar recolhida no desktop. */
    body.side-collapsed .brand-txt,
    body.side-collapsed .nav-label,
    body.side-collapsed .side-user-txt,
    body.side-collapsed .sair {
        display: initial
    }

    body.side-collapsed .nav-eyebrow {
        display: block
    }

    body.side-collapsed .brand {
        justify-content: flex-start
    }

    body.side-collapsed .nav {
        padding: 14px 11px
    }

        body.side-collapsed .nav a {
            justify-content: flex-start;
            padding: 8px 10px;
            height: auto
        }

    body.side-collapsed .nav-icon {
        width: 20px;
        min-width: 20px;
        font-size: 17px
    }

    body.side-collapsed .nav-group {
        margin-top: 15px
    }

        body.side-collapsed .nav-group summary {
            justify-content: flex-start;
            padding: 5px 8px 6px;
            height: auto
        }

            body.side-collapsed .nav-group summary::after {
                display: block
            }

        body.side-collapsed .nav-group > a {
            display: flex
        }

    body.side-collapsed .side-user {
        justify-content: flex-start;
        padding: 12px 14px
    }

    /* Cabeçalho/logo dentro do painel */
    .side .brand {
        margin-top: 4px;
        margin-bottom: 28px;
        padding-right: 45px
    }

    .side .nav {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch
    }

        .side .nav > a,
        .side .nav-group {
            width: 100%;
            box-sizing: border-box
        }

    .side-user {
        margin-top: auto
    }

    /* Conteúdo ocupa a tela inteira */
    .wrap {
        padding: 26px 30px 60px;
        width: 100%;
        max-width: none;
        min-width: 0;
        margin: 0;
    }

    /* Botão hambúrguer */
    .menu-toggle {
        display: flex;
        position: fixed;
        top: 16px;
        left: 16px;
        width: 44px;
        height: 44px;
        padding: 0;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        border: 1px solid rgba(0,0,0,.08);
        border-radius: 9px;
        background: #fff;
        cursor: pointer;
        z-index: 1003;
        box-shadow: 0 2px 10px rgba(0,0,0,.08)
    }

        .menu-toggle span {
            display: block;
            width: 21px;
            height: 2px;
            background: #1f2937;
            border-radius: 2px;
            transition: transform .2s ease, opacity .2s ease
        }

        .menu-toggle.is-open span:nth-child(1) {
            transform: translateY(7px) rotate(45deg)
        }

        .menu-toggle.is-open span:nth-child(2) {
            opacity: 0
        }

        .menu-toggle.is-open span:nth-child(3) {
            transform: translateY(-7px) rotate(-45deg)
        }

    /* X dentro da sidebar */
    .side-close {
        display: flex;
        position: absolute;
        top: 18px;
        right: 16px;
        width: 34px;
        height: 34px;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255,255,255,.13);
        border-radius: 8px;
        background: rgba(255,255,255,.07);
        color: #fff;
        font-size: 20px;
        font-weight: 400;
        line-height: 1;
        cursor: pointer;
        z-index: 2;
        transition: background .2s ease
    }

        .side-close:hover {
            background: rgba(255,255,255,.15)
        }

    /* Overlay */
    .side-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15,23,42,.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s ease, visibility .25s ease;
        z-index: 1000
    }

        .side-overlay.is-open {
            opacity: 1;
            visibility: visible
        }

    body.menu-open {
        overflow: hidden
    }
}

@media (max-width: 600px) {
    .side,
    body.side-collapsed .side {
        width: min(82vw, 290px)
    }

    .wrap {
        padding: 72px 14px 20px
    }

    .menu-toggle {
        top: 12px;
        left: 12px;
        width: 42px;
        height: 42px
    }
}
