/* ============================================================
   SOLLAS THEME — fonte única de estilos globais
   Contém: variáveis, dark mode, tipografia, formulários,
           modais, list pages, KPIs, utilitários
   ============================================================ */

/* ── Variáveis ───────────────────────────────────────────── */
:root {
    --sollas-primary:       #1D9E75;
    --sollas-primary-hover: #168a65;
    --sollas-primary-light: rgba(29, 158, 117, 0.1);

    --sollas-bg:            #F8FAFC;
    --sollas-surface:       #FFFFFF;
    --sollas-card-shadow:   0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);

    --sollas-text-main:     #1E293B;
    --sollas-text-muted:    #64748B;
    --sollas-text-on-primary: #FFFFFF;

    --sollas-border:        #E2E8F0;
    --sollas-input-focus:   #1D9E75;

    --sollas-font:          'Plus Jakarta Sans', sans-serif;

    --sollas-radius-sm:     4px;
    --sollas-radius-md:     8px;
    --sollas-radius-lg:     12px;
}

/* ── Dark mode ───────────────────────────────────────────── */
[data-theme="dark"] {
    --sollas-bg:             #050B16;
    --sollas-surface:        #0D1B2E;
    --sollas-surface-raised: #111C2D;
    --sollas-card-shadow:    0 4px 20px rgba(0,0,0,0.7), 0 2px 6px rgba(0,0,0,0.5);
    --sollas-text-main:      #F1F5F9;
    --sollas-text-muted:     #8A9DC0;
    --sollas-border:         #1C2D42;
    --sollas-primary-light:  rgba(29, 158, 117, 0.18);
}

/* ============================================================
   SISTEMA DE BOTÕES UNIFICADO
   Um único conjunto de classes para toda a aplicação.
   Mude aqui e todos os botões mudam juntos.
   ============================================================ */

/* Botão primário — ação de criar/novo (premium pill) */
.btn-novo {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.2rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #fff;
    font-family: var(--sollas-font);
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .01em;
    box-shadow:
        0 2px 6px rgba(16,185,129,.3),
        0 8px 20px rgba(16,185,129,.22),
        inset 0 1px 0 rgba(255,255,255,.18),
        inset 0 -1px 0 rgba(0,0,0,.08);
    transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .18s;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.btn-novo::after {
    content: '';
    position: absolute;
    top: -50%; left: -60%;
    width: 40%; height: 200%;
    background: rgba(255,255,255,.18);
    transform: skewX(-20deg) translateX(-100%);
    transition: transform .5s ease;
}
.btn-novo:hover::after { transform: skewX(-20deg) translateX(500%); }
.btn-novo:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 4px 12px rgba(16,185,129,.38),
        0 14px 36px rgba(16,185,129,.28),
        inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-novo:active { transform: translateY(0) scale(.99); }

/* Botão secundário — voltar, cancelar, configurar */
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    height: 42px;
    background: var(--sollas-surface);
    color: var(--sollas-text-muted);
    border: 1.5px solid var(--sollas-border);
    border-radius: 999px;
    font-family: var(--sollas-font);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    text-decoration: none;
}
.btn-outline:hover { background: var(--sollas-bg); border-color: var(--sollas-primary); color: var(--sollas-primary); }

/* Botão de relatório/pdf — header das páginas de listagem */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 16px;
    height: 40px;
    border-radius: 10px;
    border: 1.5px solid var(--sollas-border);
    background: var(--sollas-surface);
    color: var(--sollas-text-main);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--sollas-font);
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
}
.btn-action:hover {
    background: var(--sollas-primary-light);
    border-color: var(--sollas-primary);
    color: var(--sollas-primary);
}
.btn-action.btn-pdf:hover {
    background: rgba(249,115,22,.08);
    border-color: rgba(249,115,22,.4);
    color: #F97316;
}
[data-theme="dark"] .btn-action {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.10);
    color: #CBD5E1;
}
[data-theme="dark"] .btn-action:hover {
    background: rgba(29,158,117,.1);
    border-color: var(--sollas-primary);
    color: var(--sollas-primary);
}
[data-theme="dark"] .btn-action.btn-pdf:hover {
    background: rgba(249,115,22,.1);
    border-color: rgba(249,115,22,.4);
    color: #F97316;
}

/* Botão de ação — ícone em tabelas/listas (editar, ver) */
.btn-acao {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 6px;
    color: var(--sollas-text-muted);
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
    padding: 0;
}
.btn-acao:hover { color: var(--sollas-primary); background: var(--sollas-primary-light); }

/* Botão de excluir — ícone vermelho */
.btn-acao-danger:hover { color: #ef4444 !important; background: rgba(239,68,68,0.1) !important; }

/* Botão de check/concluir — ícone verde */
.btn-acao-check:hover { color: var(--sollas-primary) !important; background: var(--sollas-primary-light) !important; }

/* Botão de confirmar exclusão — vermelho preenchido */
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 20px;
    height: 40px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--sollas-font);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-danger:hover { background: #dc2626; }

/* Dark mode overrides */
[data-theme="dark"] .btn-outline {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.10);
    color: #CBD5E1;
}
[data-theme="dark"] .btn-outline:hover {
    background: rgba(255,255,255,0.07);
    border-color: var(--sollas-primary);
    color: var(--sollas-primary);
}

/* ── Base ────────────────────────────────────────────────── */
body {
    font-family: var(--sollas-font);
    background-color: var(--sollas-bg);
    color: var(--sollas-text-main);
    margin: 0;
    padding: 0;
    transition: background-color 0.25s ease, color 0.25s ease;
}

[data-theme="dark"] body {
    background:
        radial-gradient(circle at 8%  12%, rgba(0,255,170,0.04)   0%, transparent 22%),
        radial-gradient(circle at 92% 10%, rgba(0,120,255,0.05)   0%, transparent 26%),
        radial-gradient(circle at 50% 90%, rgba(139,92,246,0.03)  0%, transparent 30%),
        var(--sollas-bg);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--sollas-text-main); }
p, span, label { font-weight: 500; }

.btn:focus, .form-control:focus {
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--sollas-primary-light);
    border-color: var(--sollas-primary);
}

/* ============================================================
   LIST PAGE LAYOUT  (.lp-*)
   Usado em: Produtos, Serviços, Usuários, Forma de Pagamento,
             Clientes, OS, Pedidos
   ============================================================ */

.lp-page {
    padding: 28px 28px 80px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Cabeçalho ───────────────────────────────────────────── */
.lp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.lp-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
/* lp-header-icon é um flex-row: [badge com SVG][linha decorativa] */
.lp-header-icon {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--sollas-primary);
    flex-shrink: 0;
}
/* Badge de 48×48 aplicado diretamente no SVG filho */
.lp-header-icon > svg {
    width: 30px;
    height: 30px;
    padding: 9px;
    background: var(--sollas-primary-light);
    border-radius: var(--sollas-radius-lg);
    box-sizing: content-box;
    flex-shrink: 0;
}
.lp-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--sollas-text-main);
    margin: 0;
    line-height: 1.1;
}
.lp-subtitle {
    font-size: 0.85rem;
    color: var(--sollas-text-muted);
    margin: .15rem 0 0;
    font-weight: 500;
}
.lp-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.lp-header-actions .dark-toggle {
    width: auto;
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    white-space: nowrap;
}
.lp-btn-novo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 22px;
    height: 42px;
    background: var(--sollas-primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-family: var(--sollas-font);
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, transform 0.1s;
}
.lp-btn-novo:hover  { background: var(--sollas-primary-hover); }
.lp-btn-novo:active { transform: scale(0.97); }

/* ── Cabeçalho — linha decorativa ────────────────────────── */
.lp-header-line {
    display: block;
    width: 2px;
    height: 36px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--sollas-primary) 0%, rgba(29,158,117,0) 100%);
    opacity: .6;
}

/* ── KPI / Stats ─────────────────────────────────────────── */
.lp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.lp-stat-card {
    background: var(--sollas-surface);
    border: 1px solid var(--sollas-border);
    border-radius: var(--sollas-radius-lg);
    padding: 1.25rem 1.25rem .9rem;
    box-shadow: var(--sollas-card-shadow);
    display: flex;
    flex-direction: column;
    gap: .6rem;
    transition: transform .2s, box-shadow .2s;
    overflow: hidden;
    position: relative;
}
.lp-stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.lp-stat-content { display: flex; flex-direction: row; align-items: center; gap: .9rem; }
.lp-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--sollas-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
/* Variantes de cor do ícone */
.lp-icon-green  { background: rgba(16,185,129,.14);  color: #10B981; box-shadow: 0 0 18px rgba(16,185,129,.22); }
.lp-icon-blue   { background: rgba(59,130,246,.14);  color: #3B82F6; box-shadow: 0 0 18px rgba(59,130,246,.22); }
.lp-icon-purple { background: rgba(139,92,246,.14);  color: #8B5CF6; box-shadow: 0 0 18px rgba(139,92,246,.22); }
.lp-icon-orange { background: rgba(245,158,11,.14);  color: #F59E0B; box-shadow: 0 0 18px rgba(245,158,11,.22); }
.lp-icon-red    { background: rgba(239,68,68,.10);   color: #EF4444; box-shadow: 0 0 18px rgba(239,68,68,.22); }

.lp-stat-info  { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.lp-stat-label { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--sollas-text-muted); }
.lp-stat-value { font-size: 1.6rem; font-weight: 700; letter-spacing: -.5px; color: var(--sollas-text-main); line-height: 1.1; }
.lp-stat-date  { font-size: 1.1rem; }
.lp-stat-sm    { font-size: 1.1rem; }
.lp-stat-sub   { font-size: .72rem; font-weight: 600; }

/* Variantes de cor do sub-texto */
.lp-sub-green  { color: #10B981; }
.lp-sub-blue   { color: #3B82F6; }
.lp-sub-purple { color: #8B5CF6; }
.lp-sub-orange { color: #F59E0B; }
.lp-sub-red    { color: #EF4444; }

/* Variantes de cor do valor */
.lp-val-green  { color: #10B981; }
.lp-val-blue   { color: #3B82F6; }
.lp-val-purple { color: #8B5CF6; }
.lp-val-orange { color: #F59E0B; }
.lp-val-red    { color: #EF4444; }

/* ── Sparkline (ApexCharts) ──────────────────────────────── */
.lp-sparkline-wrap { height: 52px; margin: 0 -.1rem -.1rem; }

/* ── Panel (container da tabela) ─────────────────────────── */
.lp-panel {
    background: var(--sollas-surface);
    border: 1px solid var(--sollas-border);
    border-radius: var(--sollas-radius-lg);
    box-shadow: var(--sollas-card-shadow), inset 0 1px 0 rgba(255,255,255,.04);
    overflow: hidden;
}

/* ── Card da tabela ──────────────────────────────────────── */
.lp-table-card {
    background: var(--sollas-surface);
    border-radius: 14px;
    border: 1px solid var(--sollas-border);
    overflow: hidden;
}
.lp-table-scroll { overflow-x: auto; width: 100%; }

/* ── Tabela ──────────────────────────────────────────────── */
.lp-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--sollas-font);
}
.lp-thead-labels th {
    padding: 16px 16px 8px;
    text-align: left;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sollas-text-muted);
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.lp-thead-labels th:first-child { padding-left: 24px; }
.lp-thead-labels th:last-child  { padding-right: 24px; }
.lp-filter-row th {
    padding: 0 8px 14px;
    border-bottom: 1px solid var(--sollas-border);
}
.lp-filter-row th:first-child { padding-left: 24px; }
.lp-filter-row th:last-child  { padding-right: 24px; }
.lp-filter-input {
    width: 100%;
    padding: .45rem .55rem .45rem .7rem;
    font-size: .8rem;
    font-family: var(--sollas-font);
    font-weight: 500;
    color: var(--sollas-text-main);
    background: var(--sollas-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--sollas-radius-sm);
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
    box-sizing: border-box;
    min-width: 0;
}
.lp-filter-input::placeholder { color: var(--sollas-text-muted); opacity: .6; }
.lp-filter-input:focus {
    border-color: var(--sollas-primary);
    background: rgba(29,158,117,.04);
    box-shadow: 0 0 0 3px rgba(29,158,117,.1);
}

/* Colunas comuns */
.col-nome    { min-width: 200px; }
.col-desc    { min-width: 200px; }
.col-unid    { width: 100px; }
.col-valor   { width: 130px; }
.col-status  { width: 100px; }
.col-data    { width: 130px; }
.col-email-u { min-width: 220px; }
.col-acoes   { width: 60px; text-align: right; }

/* Células */
.lp-table td {
    padding: 16px;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--sollas-border);
    vertical-align: middle;
}
.lp-table td:first-child { padding-left: 24px; }
.lp-table td:last-child  { padding-right: 24px; }
.lp-table tbody tr:last-child td { border-bottom: none; }

.lp-row { transition: background 0.1s; cursor: pointer; }
.lp-row:hover { background: var(--sollas-bg); }
.lp-row:hover .lp-acoes { opacity: 1; }

/* ── Nome com avatar ─────────────────────────────────────── */
.lp-nome-cell { display: flex; align-items: center; gap: 12px; }
.lp-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--sollas-primary);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.lp-avatar-pagto { background: linear-gradient(135deg, #6366F1, #4F46E5); }
.lp-nome-text { font-size: 0.9375rem; font-weight: 600; color: var(--sollas-text-main); }
.lp-muted { font-size: 0.875rem; color: var(--sollas-text-muted); }
.lp-valor { font-size: 0.9375rem; font-weight: 600; color: var(--sollas-text-main); }

/* ── Badge ───────────────────────────────────────────────── */
.lp-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 3px 10px;
}
.lp-badge.ativo   { background: var(--sollas-primary-light); color: var(--sollas-primary); }
.lp-badge.inativo { background: rgba(148,163,184,0.15); color: var(--sollas-text-muted); }

/* ── Ações ───────────────────────────────────────────────── */
.lp-acoes {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s;
}
.lp-acao-btn {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sollas-text-muted);
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}
.lp-acao-btn:hover         { color: var(--sollas-primary); background: var(--sollas-primary-light); }
.lp-acao-delete:hover      { color: #ef4444 !important; background: rgba(239,68,68,0.1) !important; }

/* ── Modal de confirmação de exclusão ────────────────────── */
.lp-confirm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(2px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lp-confirm-box {
    background: var(--sollas-surface);
    border: 1px solid var(--sollas-border);
    border-radius: 18px;
    padding: 36px 40px 32px;
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}
.lp-confirm-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(239,68,68,0.1);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}
.lp-confirm-title { font-size: 1.1rem; font-weight: 700; color: var(--sollas-text-main); margin: 0; }
.lp-confirm-sub   { font-size: 0.875rem; color: var(--sollas-text-muted); margin: 0 0 8px; }
.lp-confirm-actions { display: flex; gap: 10px; width: 100%; margin-top: 4px; }
.lp-confirm-cancel {
    flex: 1; height: 42px;
    border: 1.5px solid var(--sollas-border);
    background: none;
    border-radius: 10px;
    font-family: var(--sollas-font);
    font-size: 0.9rem; font-weight: 600;
    color: var(--sollas-text-muted);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.lp-confirm-cancel:hover { background: var(--sollas-bg); border-color: var(--sollas-text-muted); }
.lp-confirm-ok {
    flex: 1; height: 42px;
    background: #ef4444; border: none;
    border-radius: 10px;
    font-family: var(--sollas-font);
    font-size: 0.9rem; font-weight: 700;
    color: #fff; cursor: pointer;
    transition: background 0.15s;
}
.lp-confirm-ok:hover { background: #dc2626; }

/* ── Skeleton ────────────────────────────────────────────── */
.lp-skeleton-row td { padding: 20px 16px; }
.lp-skeleton-row td:first-child { padding-left: 24px; }
.lp-skel {
    display: inline-block;
    height: 13px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--sollas-border) 25%, var(--sollas-bg) 50%, var(--sollas-border) 75%);
    background-size: 200% 100%;
    animation: lp-shimmer 1.5s infinite;
}
@keyframes lp-shimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* ── Estado vazio ────────────────────────────────────────── */
.lp-empty-cell { padding: 64px 0 !important; }
.lp-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--sollas-border); }
.lp-empty p { font-size: 1rem; font-weight: 600; color: var(--sollas-text-muted); margin: 0; }
.lp-empty-btn {
    margin-top: 4px;
    padding: 9px 22px;
    background: var(--sollas-primary);
    color: #fff; border: none;
    border-radius: 999px;
    font-family: var(--sollas-font);
    font-size: 0.875rem; font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.lp-empty-btn:hover { background: var(--sollas-primary-hover); }

/* ── Rodapé ──────────────────────────────────────────────── */
.lp-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-top: 1px solid var(--sollas-border);
}
.lp-footer-count { font-size: 0.875rem; color: var(--sollas-text-muted); }

/* ── Paginação ───────────────────────────────────────────── */
.lp-pagination { display: flex; align-items: center; gap: 4px; }
.lp-page-btn {
    min-width: 34px; height: 34px;
    padding: 0 10px;
    background: none;
    border: 1.5px solid var(--sollas-border);
    border-radius: 8px;
    font-family: var(--sollas-font);
    font-size: 0.875rem; font-weight: 500;
    color: var(--sollas-text-muted);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.lp-page-btn:hover:not(:disabled) { color: var(--sollas-primary); border-color: var(--sollas-primary); }
.lp-page-btn.active { background: var(--sollas-primary); border-color: var(--sollas-primary); color: #fff; font-weight: 700; }
.lp-page-btn:disabled { opacity: 0.35; cursor: default; }

/* ── Dark mode — KPI cards ───────────────────────────────── */
[data-theme="dark"] .lp-stat-card   { background: #111C2D; border-color: #1C2D42; box-shadow: 0 4px 20px rgba(0,0,0,.4); }
[data-theme="dark"] .lp-icon-green  { background: rgba(16,185,129,.2);  box-shadow: 0 0 20px rgba(16,185,129,.25); }
[data-theme="dark"] .lp-icon-blue   { background: rgba(59,130,246,.2);  box-shadow: 0 0 20px rgba(59,130,246,.25); }
[data-theme="dark"] .lp-icon-purple { background: rgba(139,92,246,.2);  box-shadow: 0 0 20px rgba(139,92,246,.25); }
[data-theme="dark"] .lp-icon-orange { background: rgba(245,158,11,.2);  box-shadow: 0 0 20px rgba(245,158,11,.25); }
[data-theme="dark"] .lp-icon-red    { background: rgba(239,68,68,.2);   box-shadow: 0 0 20px rgba(239,68,68,.25); }
[data-theme="dark"] .lp-panel       { background: var(--sollas-surface); border-color: var(--sollas-border); }

/* ── Dark mode list page ─────────────────────────────────── */
[data-theme="dark"] .lp-filter-input { background: var(--sollas-bg); }
[data-theme="dark"] .lp-row:hover    { background: rgba(255,255,255,0.03); }
[data-theme="dark"] .lp-skel {
    background: linear-gradient(90deg, #334155 25%, #263548 50%, #334155 75%);
    background-size: 200% 100%;
}

/* ── Responsivo list page ────────────────────────────────── */
@media (max-width: 1100px) {
    .lp-stats { grid-template-columns: repeat(2, 1fr); }
    .lp-stat-card:nth-child(2) { border-right: none; }
    .lp-stat-card:nth-child(3) { border-top: 1px solid var(--sollas-border); }
    .lp-stat-card:nth-child(4) { border-top: 1px solid var(--sollas-border); }
}
@media (max-width: 768px) {
    .lp-title { font-size: 1.8rem; letter-spacing: -.5px; }
}
@media (max-width: 680px) {
    .lp-page { padding: 16px 16px 100px; }
    .lp-stats { grid-template-columns: repeat(2, 1fr); }
    .lp-btn-novo span { display: none; }
    .lp-subtitle { display: none; }
    .col-desc { display: none; }
}

/* ============================================================
   ESTRUTURA DIV-FLEX DAS PÁGINAS DE LISTA
   Structural layout classes shared across all list pages.
   Column-width classes (col-nome, col-numero, etc.) stay in
   each page's scoped CSS since widths differ per table.
   ============================================================ */

/* ── Header de colunas ──────────────────────────── */
.lp-list-header {
    display: flex;
    align-items: stretch;
    padding: .75rem 1.25rem;
    background: var(--sollas-bg);
    border-bottom: 1px solid var(--sollas-border);
    gap: 0;
}
.lp-lh-col {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding-right: .75rem;
}
.lp-lh-col:last-child { padding-right: 0; }
.lp-lh-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--sollas-text-muted);
    line-height: 1;
    padding-top: .15rem;
}

/* ── Filtro de coluna ────────────────────────────── */
.lp-filter-wrap { position: relative; width: 100%; }
.lp-fi-icon {
    position: absolute;
    left: .65rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sollas-text-muted);
    pointer-events: none;
    opacity: .65;
    flex-shrink: 0;
}

/* ── Body / Linhas ───────────────────────────────── */
.lp-list-body { display: flex; flex-direction: column; }
.lp-card-row {
    display: flex;
    align-items: center;
    padding: .85rem 1.25rem;
    background: linear-gradient(90deg,rgba(255,255,255,.015) 0%,rgba(255,255,255,.005) 100%);
    border-bottom: 1px solid var(--sollas-border);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
    position: relative;
}
.lp-card-row:last-child { border-bottom: none; }
.lp-card-row:hover {
    background: linear-gradient(90deg,rgba(29,158,117,.06) 0%,rgba(29,158,117,.02) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0,0,0,.08), 0 0 25px rgba(29,158,117,.04);
    z-index: 1;
}
.lp-cr-col { display: flex; align-items: center; overflow: hidden; }

/* ── Skeleton ────────────────────────────────────── */
.lp-skel-row {
    display: flex;
    align-items: center;
    padding: .85rem 1.25rem;
    border-bottom: 1px solid var(--sollas-border);
}

/* ── Wrapper de ações ────────────────────────────── */
.lp-acoes-wrap { display: flex; align-items: center; justify-content: flex-end; gap: .35rem; }

/* ── Rodapé ──────────────────────────────────────── */
.lp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    padding: .9rem 1.25rem;
    border-top: 1px solid var(--sollas-border);
}

/* ── Dark mode ───────────────────────────────────── */
[data-theme="dark"] .lp-list-header    { background: #060e1c; border-color: #1C2D42; }
[data-theme="dark"] .lp-card-row       { border-color: #1C2D42; background: transparent; }
[data-theme="dark"] .lp-card-row:hover { background: rgba(16,185,129,.04); box-shadow: none; }
[data-theme="dark"] .lp-skel-row       { border-color: #1C2D42; }
[data-theme="dark"] .lp-footer         { border-color: #1C2D42; }
[data-theme="dark"] .lp-filter-input   { background: var(--sollas-surface); border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .lp-filter-input:focus { background: rgba(29,158,117,.06); border-color: var(--sollas-primary); }

/* ============================================================
   CRUD COMPARTILHADO  (.crud-*, .form-*, .modal-*)
   Usado em: modais, páginas de detalhe, configurações
   ============================================================ */

/* ── Validação ───────────────────────────────────────────── */
.form-error {
    display: block;
    font-size: 0.75rem;
    color: #EF4444;
    margin-top: 4px;
    font-weight: 500;
}
.form-input.input-invalid,
.form-select.input-invalid,
.sollas-select.input-invalid,
.sollas-textarea.input-invalid {
    border-color: #EF4444 !important;
    background: #FFF5F5;
}
.form-input.input-invalid:focus,
.form-select.input-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
}

/* ── Page shell ─────────────────────────────────────────── */
.crud-page {
    padding: 32px 40px;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
}
.crud-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}
.crud-header-text h1 { font-size: 1.6rem; font-weight: 700; color: var(--sollas-text-main); margin: 0 0 4px; }
.crud-header-text p  { font-size: 0.875rem; color: var(--sollas-text-muted); margin: 0; }
.crud-header-actions { flex-shrink: 0; }

/* ── Search ──────────────────────────────────────────────── */
.crud-search { position: relative; margin-bottom: 20px; }
.crud-search svg {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--sollas-text-muted);
    pointer-events: none;
}
.crud-search input {
    width: 100%;
    padding: 11px 16px 11px 44px;
    background: var(--sollas-surface);
    border: 1.5px solid var(--sollas-border);
    border-radius: var(--sollas-radius-lg);
    font-family: var(--sollas-font);
    font-size: 0.875rem;
    color: var(--sollas-text-main);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.crud-search input:focus { border-color: var(--sollas-primary); box-shadow: 0 0 0 3px var(--sollas-primary-light); }
.crud-search input::placeholder { color: #94A3B8; }

/* ── Section header ──────────────────────────────────────── */
.crud-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.crud-section-header h2 { font-size: 1rem; font-weight: 600; color: var(--sollas-text-main); margin: 0; }

/* ── List ────────────────────────────────────────────────── */
.crud-list { display: flex; flex-direction: column; gap: 8px; }
.crud-item {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 18px;
    background: var(--sollas-surface);
    border: 1.5px solid var(--sollas-border);
    border-radius: var(--sollas-radius-lg);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
    text-decoration: none; color: inherit;
}
.crud-item:hover {
    border-color: var(--sollas-primary);
    box-shadow: 0 2px 12px rgba(29,158,117,0.1);
    transform: translateY(-1px);
}

/* ── Avatar ──────────────────────────────────────────────── */
.crud-avatar {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--sollas-primary), var(--sollas-primary-hover));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 700; color: #fff;
    flex-shrink: 0;
}
.crud-info  { flex: 1; min-width: 0; }
.crud-name  { font-size: 0.9375rem; font-weight: 600; color: var(--sollas-text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0 0 3px; }
.crud-sub   { font-size: 0.8125rem; color: var(--sollas-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.crud-meta  { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.crud-value { font-size: 0.875rem; font-weight: 600; color: var(--sollas-text-main); text-align: right; }

/* ── Badge ───────────────────────────────────────────────── */
.crud-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 999px;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
}
.crud-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.crud-badge.active   { background: rgba(29,158,117,0.1); color: var(--sollas-primary); }
.crud-badge.active::before { background: var(--sollas-primary); }
.crud-badge.inactive { background: #F1F5F9; color: #94A3B8; }
.crud-badge.inactive::before { background: #CBD5E1; }

.crud-chevron { color: #CBD5E1; flex-shrink: 0; transition: color 0.15s, transform 0.15s; }
.crud-item:hover .crud-chevron { color: var(--sollas-primary); transform: translateX(2px); }

/* ── Empty / Loading ─────────────────────────────────────── */
.crud-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 64px 32px;
    background: var(--sollas-surface);
    border: 1.5px dashed var(--sollas-border);
    border-radius: var(--sollas-radius-lg);
    text-align: center;
}
.crud-empty-icon {
    width: 56px; height: 56px; border-radius: 16px;
    background: var(--sollas-primary-light); color: var(--sollas-primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.crud-empty h3 { font-size: 1rem; font-weight: 600; margin: 0 0 6px; color: var(--sollas-text-main); }
.crud-empty p  { font-size: 0.875rem; color: var(--sollas-text-muted); margin: 0; }

.crud-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px; color: var(--sollas-text-muted); font-size: 0.875rem; }
.crud-loading-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sollas-primary); animation: crud-pulse 1.2s ease-in-out infinite; }
.crud-loading-dot:nth-child(2) { animation-delay: 0.2s; }
.crud-loading-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes crud-pulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40%            { transform: scale(1);   opacity: 1; }
}

/* ── Count pill ──────────────────────────────────────────── */
.crud-count {
    display: inline-flex; align-items: center;
    padding: 2px 10px;
    background: var(--sollas-primary-light); color: var(--sollas-primary);
    border-radius: 999px; font-size: 0.75rem; font-weight: 600;
}

/* ── Paginação crud ──────────────────────────────────────── */
.crud-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.page-btn {
    min-width: 36px; height: 36px; padding: 0 10px;
    border: 1.5px solid var(--sollas-border); border-radius: 8px;
    background: var(--sollas-surface); color: var(--sollas-text-main);
    font-size: 0.875rem; font-weight: 500; font-family: var(--sollas-font);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.page-btn:hover:not(:disabled):not(.active) { border-color: var(--sollas-primary); color: var(--sollas-primary); }
.page-btn.active { background: var(--sollas-primary); border-color: var(--sollas-primary); color: #fff; font-weight: 700; }
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.page-info { font-size: 0.8125rem; color: var(--sollas-text-muted); margin-left: 8px; white-space: nowrap; }

/* ── FAB mobile ──────────────────────────────────────────── */
.crud-fab {
    position: fixed; bottom: 24px; right: 24px;
    width: 56px; height: 56px; border-radius: 16px;
    background: var(--sollas-primary); color: #fff; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 4px 16px rgba(29,158,117,0.4);
    transition: transform 0.15s, box-shadow 0.15s;
}
.crud-fab:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(29,158,117,0.5); }

/* ── Responsivo crud ─────────────────────────────────────── */
@media (max-width: 640px) {
    .crud-page { padding: 20px 16px; }
    .crud-header { flex-direction: column; align-items: stretch; gap: 12px; }
    .crud-header .sollas-button { width: 100%; justify-content: center; }
    .crud-item  { gap: 10px; padding: 12px 14px; }
    .crud-meta  { flex-direction: column; align-items: flex-end; gap: 4px; }
    .crud-value { font-size: 0.8125rem; }
    .crud-avatar { width: 38px; height: 38px; font-size: 1rem; }
    .page-info { width: 100%; text-align: center; margin-left: 0; margin-top: 4px; }
}

/* ============================================================
   FORMULÁRIOS E MODAIS
   ============================================================ */

.modal-form { display: flex; flex-direction: column; gap: 18px; }
.modal-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-label {
    font-size: 0.75rem; font-weight: 600;
    color: var(--sollas-text-muted);
    text-transform: uppercase; letter-spacing: 0.05em;
}
.form-input {
    width: 100%; padding: 10px 14px;
    background: #F8FAFC;
    border: 1.5px solid var(--sollas-border);
    border-radius: var(--sollas-radius-md);
    font-family: var(--sollas-font); font-size: 0.9375rem;
    color: var(--sollas-text-main); outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    box-sizing: border-box;
}
.form-input:focus { border-color: var(--sollas-primary); background: #fff; box-shadow: 0 0 0 3px var(--sollas-primary-light); }
.form-input::placeholder { color: #94A3B8; font-weight: 400; }
.form-input[type="number"] { font-variant-numeric: tabular-nums; }
.form-hint { font-size: 0.75rem; color: #94A3B8; font-weight: 400; margin-top: 3px; display: block; }

.form-select,
.sollas-select,
.sollas-date-input {
    width: 100%; padding: 10px 14px;
    background: #F8FAFC;
    border: 1.5px solid var(--sollas-border);
    border-radius: var(--sollas-radius-md);
    font-family: var(--sollas-font); font-size: 0.9375rem;
    color: var(--sollas-text-main); outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    box-sizing: border-box; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer;
}
.sollas-date-input { background-image: none; padding-right: 14px; cursor: text; }
.form-select:focus, .sollas-select:focus, .sollas-date-input:focus {
    border-color: var(--sollas-primary); background-color: #fff; box-shadow: 0 0 0 3px var(--sollas-primary-light);
}

.form-toggle-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px; background: #F8FAFC;
    border: 1.5px solid var(--sollas-border); border-radius: var(--sollas-radius-md);
}
.form-toggle-label  { font-size: 0.9375rem; font-weight: 500; color: var(--sollas-text-main); }
.form-toggle-status { font-size: 0.8125rem; font-weight: 600; margin-left: 10px; }
.form-toggle-status.on  { color: var(--sollas-primary); }
.form-toggle-status.off { color: #94A3B8; }

/* ── Toggle switch ───────────────────────────────────────── */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: #CBD5E1; transition: 0.2s; cursor: pointer; }
.slider.round { border-radius: 999px; }
.slider.round:before {
    border-radius: 50%; content: '';
    position: absolute; width: 18px; height: 18px; left: 3px; bottom: 3px;
    background: #fff; transition: 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.switch input:checked + .slider { background: var(--sollas-primary); }
.switch input:checked + .slider:before { transform: translateX(20px); }

.link-btn {
    background: none; border: none;
    color: var(--sollas-primary); font-family: var(--sollas-font);
    font-size: 0.8125rem; font-weight: 600; cursor: pointer;
    padding: 0; text-decoration: underline; margin-top: 4px; display: inline;
}
.link-btn:hover { color: var(--sollas-primary-hover); }

/* ── Modal sections ──────────────────────────────────────── */
.modal-section {
    display: flex; flex-direction: column; gap: 12px;
    padding: 16px; background: var(--sollas-bg);
    border: 1.5px solid var(--sollas-border); border-radius: var(--sollas-radius-lg);
    transition: background 0.25s, border-color 0.25s;
}
.modal-section-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.6875rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em; color: var(--sollas-text-muted);
}
.modal-section-icon {
    display: flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 6px;
    background: var(--sollas-primary-light); color: var(--sollas-primary); flex-shrink: 0;
}
.modal-section-icon.blue { background: rgba(59,130,246,0.12); color: #3B82F6; }
.modal-section-hint   { font-size: 0.6875rem; color: #94A3B8; font-weight: 500; margin-left: auto; }
.modal-section-badge  { display: inline-flex; align-items: center; padding: 2px 8px; background: var(--sollas-primary-light); color: var(--sollas-primary); border-radius: 999px; font-size: 0.6875rem; font-weight: 700; }

/* ── Item list modal ─────────────────────────────────────── */
.modal-item-list { display: flex; flex-direction: column; gap: 8px; }
.modal-item-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    background: var(--sollas-surface);
    border: 1.5px solid var(--sollas-border);
    border-left: 3px solid var(--sollas-primary);
    border-radius: var(--sollas-radius-md);
}
.modal-item-row.blue { border-left-color: #3B82F6; }
.modal-item-info  { flex: 1; min-width: 0; }
.modal-item-name  { font-size: 0.875rem; font-weight: 600; color: var(--sollas-text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-item-desc  { font-size: 0.75rem; color: var(--sollas-text-muted); font-weight: 500; }
.modal-item-price { font-size: 0.875rem; font-weight: 700; color: var(--sollas-text-main); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.modal-item-remove {
    background: none; border: none; color: #CBD5E1; cursor: pointer;
    padding: 4px; border-radius: 4px; display: flex; align-items: center;
    transition: color 0.15s, background 0.15s; flex-shrink: 0;
}
.modal-item-remove:hover { color: #EF4444; background: #FEF2F2; }

.modal-item-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.qty-btn {
    width: 26px; height: 26px; border-radius: 6px;
    border: 1.5px solid var(--sollas-border); background: var(--sollas-surface);
    color: var(--sollas-text-main); font-size: 1rem; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: border-color 0.15s, background 0.15s; line-height: 1;
}
.qty-btn:hover { border-color: var(--sollas-primary); color: var(--sollas-primary); }
.qty-val { font-size: 0.875rem; font-weight: 700; color: var(--sollas-text-main); min-width: 20px; text-align: center; font-variant-numeric: tabular-nums; }

.modal-add-row { display: flex; gap: 8px; align-items: center; }
.modal-add-row .form-select { flex: 1; }
.modal-add-btn {
    display: flex; align-items: center; gap: 6px; padding: 10px 14px;
    background: var(--sollas-primary); color: #fff; border: none;
    border-radius: var(--sollas-radius-md); font-family: var(--sollas-font);
    font-size: 0.8125rem; font-weight: 700; cursor: pointer; white-space: nowrap;
    transition: background 0.15s, transform 0.1s; flex-shrink: 0;
}
.modal-add-btn:hover   { background: var(--sollas-primary-hover); }
.modal-add-btn:active  { transform: scale(0.97); }
.modal-add-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ── Financial summary ───────────────────────────────────── */
.modal-summary {
    background: var(--sollas-bg); border: 1.5px solid var(--sollas-border);
    border-radius: var(--sollas-radius-lg); padding: 16px;
    display: flex; flex-direction: column; gap: 8px;
}
.modal-summary-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; font-weight: 500; color: var(--sollas-text-muted); }
.modal-summary-row .value { font-weight: 600; color: var(--sollas-text-main); }
.modal-summary-row.discount .value { color: #EF4444; }
.modal-summary-divider { height: 1px; background: var(--sollas-border); margin: 4px 0; }
.modal-summary-total { display: flex; justify-content: space-between; align-items: center; font-size: 1.0625rem; font-weight: 800; color: var(--sollas-primary); padding-top: 4px; }
.discount-inline {
    width: 90px; padding: 4px 8px;
    border: 1.5px solid var(--sollas-border); border-radius: var(--sollas-radius-sm);
    font-family: var(--sollas-font); font-size: 0.875rem; text-align: right;
    color: var(--sollas-text-main); background: var(--sollas-surface); outline: none; font-variant-numeric: tabular-nums;
}
.discount-inline:focus { border-color: var(--sollas-primary); }

/* ── Section card ────────────────────────────────────────── */
.section-card { background: var(--sollas-surface); border: 1.5px solid var(--sollas-border); border-radius: var(--sollas-radius-lg); padding: 16px; transition: background 0.25s, border-color 0.25s; }
.section-title { font-size: 0.8125rem; font-weight: 700; color: var(--sollas-text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }

/* ── Finance grid ────────────────────────────────────────── */
.finance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.finance-item { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; background: var(--sollas-bg); border: 1.5px solid var(--sollas-border); border-radius: var(--sollas-radius-md); }
.finance-label { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--sollas-text-muted); }
.finance-value { font-size: 1rem; font-weight: 800; color: var(--sollas-text-main); font-variant-numeric: tabular-nums; }
.finance-value.paid { color: var(--sollas-primary); }
.finance-value.due  { color: #F59E0B; }

/* ── Status grid ─────────────────────────────────────────── */
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.status-btn {
    padding: 10px 12px; background: var(--sollas-surface);
    border: 1.5px solid var(--sollas-border); border-radius: var(--sollas-radius-md);
    font-family: var(--sollas-font); font-size: 0.8125rem; font-weight: 700;
    color: var(--sollas-text-muted); cursor: pointer; transition: all 0.15s; text-align: center;
}
.status-btn:hover:not(.active) { border-color: var(--sollas-primary); color: var(--sollas-primary); }
.status-btn.active              { background: var(--sollas-primary); border-color: var(--sollas-primary); color: #fff; }
.status-btn.active.pending      { background: #F59E0B; border-color: #F59E0B; }
.status-btn.active.ongoing      { background: #3B82F6; border-color: #3B82F6; }
.status-btn.active.completed    { background: var(--sollas-primary); border-color: var(--sollas-primary); }
.status-btn.active.delayed,
.status-btn.active.cancelled    { background: #EF4444; border-color: #EF4444; }

.status-warning {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 10px 12px; background: #FEF3C7;
    border: 1.5px solid #FDE68A; border-radius: var(--sollas-radius-md);
    font-size: 0.8125rem; font-weight: 500; color: #92400E; margin-bottom: 10px;
}
.status-warning svg { flex-shrink: 0; margin-top: 1px; }

/* ── Client card ─────────────────────────────────────────── */
.client-card { display: flex; align-items: center; gap: 14px; }
.client-avatar {
    width: 44px; height: 44px; border-radius: 10px;
    background: linear-gradient(135deg, var(--sollas-primary), var(--sollas-primary-hover));
    color: #fff; font-size: 1.1rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.client-data { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.client-data strong { font-size: 0.9375rem; font-weight: 700; color: var(--sollas-text-main); }
.client-data span   { font-size: 0.8125rem; color: var(--sollas-text-muted); font-weight: 500; }
.agenda-chip {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.75rem; color: #3B82F6; font-weight: 600;
    background: rgba(59,130,246,0.08); padding: 2px 8px; border-radius: 999px;
    margin-top: 2px; width: fit-content;
}

/* ── Item list detalhes ──────────────────────────────────── */
.item-list { display: flex; flex-direction: column; gap: 10px; }
.item-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--sollas-border); }
.item-row:last-child { border-bottom: none; padding-bottom: 0; }
.item-info  { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.item-name  { font-size: 0.875rem; font-weight: 600; color: var(--sollas-text-main); }
.item-desc  { font-size: 0.75rem; color: var(--sollas-text-muted); font-weight: 500; }
.item-price { font-size: 0.875rem; font-weight: 700; color: var(--sollas-text-main); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.item-price.paid { color: var(--sollas-primary); }

/* ── Sollas Button outline ───────────────────────────────── */
.sollas-button.outline { background: transparent; border: 1.5px solid var(--sollas-border); color: var(--sollas-text-muted); }
.sollas-button.outline:hover { border-color: var(--sollas-text-main); color: var(--sollas-text-main); background: var(--sollas-bg); }

/* ============================================================
   DARK MODE — overrides globais
   ============================================================ */
[data-theme="dark"] .form-input                  { background: var(--sollas-surface); border-color: var(--sollas-border); color: var(--sollas-text-main); }
[data-theme="dark"] .form-input:focus            { background: var(--sollas-surface-raised, #263548); border-color: var(--sollas-primary); }
[data-theme="dark"] .form-input::placeholder     { color: #475569; }
[data-theme="dark"] .form-select,
[data-theme="dark"] .sollas-select,
[data-theme="dark"] .sollas-date-input           { background-color: var(--sollas-surface); border-color: var(--sollas-border); color: var(--sollas-text-main); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); }
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .sollas-select:focus,
[data-theme="dark"] .sollas-date-input:focus     { background-color: var(--sollas-surface-raised, #263548); }
[data-theme="dark"] .form-toggle-row             { background: var(--sollas-surface); border-color: var(--sollas-border); }
[data-theme="dark"] .crud-item                   { background: var(--sollas-surface); border-color: var(--sollas-border); }
[data-theme="dark"] .crud-empty                  { background: var(--sollas-surface); border-color: var(--sollas-border); }
[data-theme="dark"] .modal-section               { background: var(--sollas-surface-raised, #263548); }
[data-theme="dark"] .modal-item-row              { background: var(--sollas-surface); border-color: var(--sollas-border); }
[data-theme="dark"] .modal-summary               { background: var(--sollas-surface-raised, #263548); border-color: var(--sollas-border); }
[data-theme="dark"] .section-card                { background: var(--sollas-surface); border-color: var(--sollas-border); }
[data-theme="dark"] .finance-item                { background: var(--sollas-surface-raised, #263548); border-color: var(--sollas-border); }
[data-theme="dark"] .qty-btn                     { background: var(--sollas-surface); border-color: var(--sollas-border); color: var(--sollas-text-main); }
[data-theme="dark"] .discount-inline             { background: var(--sollas-surface); border-color: var(--sollas-border); color: var(--sollas-text-main); }
[data-theme="dark"] .status-btn                  { background: var(--sollas-surface); border-color: var(--sollas-border); }
[data-theme="dark"] .slider                      { background: #334155; }
[data-theme="dark"] .lp-filter-input             { background: var(--sollas-surface); }
[data-theme="dark"] .lp-row:hover                { background: rgba(255,255,255,0.03); }
[data-theme="dark"] .lp-skel                     { background: linear-gradient(90deg,#334155 25%,#263548 50%,#334155 75%); background-size: 200% 100%; }
