
/* ===== Visual profissional v1.17 ===== */

:root {
    --bg: #08111f;
    --bg-2: #0d1b2f;
    --header: rgba(8, 17, 31, 0.96);
    --card: #142238;
    --card-2: #182940;
    --line: rgba(148, 163, 184, 0.20);
    --line-strong: rgba(56, 189, 248, 0.35);
    --text: #f8fafc;
    --text-soft: #cbd5e1;
    --muted: #94a3b8;
    --primary: #38bdf8;
    --primary-2: #0284c7;
    --success: #22c55e;
    --success-2: #15803d;
    --danger: #ef4444;
    --danger-2: #b91c1c;
    --warning: #f59e0b;
    --shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.14), transparent 32%),
        radial-gradient(circle at 90% 10%, rgba(34, 197, 94, 0.08), transparent 28%),
        linear-gradient(180deg, #0b1728 0%, #08111f 55%, #060d18 100%);
}

header {
    background: var(--header);
    border-bottom: 1px solid var(--line);
    padding: 22px 28px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
}

header h1 {
    margin: 0 0 20px;
    font-size: 28px;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.brand,
.brand-header {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: white !important;
    text-decoration: none !important;
}

.brand-header img {
    height: 42px;
    max-width: 150px;
    object-fit: contain;
    border-radius: 10px;
    background: white;
    padding: 3px;
}

.brand-icon {
    font-size: 30px;
}

nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 13px;
    border-radius: 999px;
    transition: 0.18s ease;
}

nav a:hover {
    color: white;
    background: rgba(56, 189, 248, 0.12);
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.22);
}

main {
    width: min(100%, 1500px);
    margin: 0 auto;
    padding: 30px 28px 50px;
}

h2 {
    font-size: 30px;
    margin: 0 0 24px;
    letter-spacing: -0.035em;
}

h3 {
    margin: 0 0 16px;
    color: #f8fafc;
    letter-spacing: -0.015em;
}

p {
    color: var(--text-soft);
    line-height: 1.55;
}

.hint {
    color: var(--muted);
    font-size: 13px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.card,
form {
    background:
        linear-gradient(180deg, rgba(24, 41, 64, 0.96), rgba(15, 28, 47, 0.96));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 22px;
}

.card:hover {
    border-color: rgba(56, 189, 248, 0.28);
}

.dashboard-link {
    display: block;
    color: inherit;
    text-decoration: none;
    min-height: 150px;
    transition: 0.18s ease;
}

.dashboard-link:hover {
    transform: translateY(-2px);
}

.dashboard-link span {
    display: inline-block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    margin-top: 8px;
}

.big {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.045em;
    color: white;
    margin: 10px 0;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: rgba(20, 34, 56, 0.98);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 20px 0 28px;
}

thead {
    background: rgba(8, 17, 31, 0.88);
}

th {
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

th,
td {
    padding: 15px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    text-align: left;
    vertical-align: middle;
}

td {
    color: #e5e7eb;
    font-size: 14px;
}

tbody tr {
    transition: background 0.16s ease;
}

tbody tr:hover {
    background: rgba(56, 189, 248, 0.06);
}

tbody tr:last-child td {
    border-bottom: 0;
}

label {
    display: block;
    margin: 15px 0 7px;
    color: #dbeafe;
    font-size: 14px;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    background: rgba(8, 17, 31, 0.78);
    color: var(--text);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 13px;
    padding: 13px 14px;
    outline: none;
    transition: 0.18s ease;
    font-size: 14px;
}

textarea {
    min-height: 92px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
    background: rgba(8, 17, 31, 0.95);
}

button,
.button,
.whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 8px 6px 8px 0;
    padding: 11px 16px;
    border: 0;
    border-radius: 13px;
    color: white !important;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    font-weight: 900;
    font-size: 14px;
    text-decoration: none !important;
    cursor: pointer;
    transition: 0.16s ease;
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.24);
}

button:hover,
.button:hover,
.whatsapp:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.whatsapp {
    background: linear-gradient(135deg, var(--success), var(--success-2));
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.24);
}

.danger-button {
    background: linear-gradient(135deg, var(--danger), var(--danger-2)) !important;
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.20) !important;
}

.danger-link {
    color: #ff6b6b !important;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.danger-link:hover {
    text-decoration: underline;
}

.danger-card {
    border-color: rgba(239, 68, 68, 0.48) !important;
    background:
        linear-gradient(180deg, rgba(127, 29, 29, 0.25), rgba(15, 28, 47, 0.96)) !important;
}

.alert {
    background: rgba(34, 197, 94, 0.13);
    border: 1px solid rgba(34, 197, 94, 0.36);
    color: #bbf7d0;
    padding: 14px 16px;
    border-radius: 15px;
    margin: 0 0 20px;
}

.alert p {
    margin: 0;
    color: #bbf7d0;
}

.search-card {
    max-width: none;
}

.search-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-row input {
    flex: 1;
}

.logo-preview {
    margin-top: 12px;
    padding: 14px;
    background: rgba(8, 17, 31, 0.7);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.logo-preview img {
    max-height: 80px;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

code {
    display: inline-block;
    background: rgba(8, 17, 31, 0.9);
    color: #7dd3fc;
    padding: 5px 8px;
    border-radius: 8px;
    border: 1px solid var(--line);
    margin: 3px;
}

.versao-sistema {
    position: fixed;
    top: 10px;
    right: 15px;
    background: rgba(0, 0, 0, 0.45);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: #cbd5e1;
    z-index: 99999;
    border: 1px solid rgba(255,255,255,0.12);
}

.rodape {
    width: 100%;
    text-align: center;
    padding: 18px 10px;
    margin-top: 40px;
    font-size: 13px;
    color: #94a3b8;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* Área do cliente */
.pedido-cliente-form {
    max-width: 980px;
    margin: 0 auto 30px;
}

.cliente-resumo-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    padding: 18px;
    margin-bottom: 18px;
    border-radius: 20px;
    border: 1px solid rgba(56, 189, 248, 0.28);
    background: rgba(15, 23, 42, 0.55);
}

.cliente-resumo-card div {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 12px 14px;
}

.cliente-label {
    display: block;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 5px;
}

.cliente-resumo-card strong {
    color: #f8fafc;
    font-size: 15px;
}

.mensagem-boas-vindas {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    margin: 0 0 22px;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(34, 197, 94, 0.08)),
        rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 18px 35px rgba(0,0,0,0.2);
}

.mensagem-icone {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.35);
    font-size: 26px;
    flex: 0 0 auto;
}

.mensagem-boas-vindas h3 {
    margin: 0 0 6px;
    font-size: 24px;
    color: #f8fafc;
}

.mensagem-boas-vindas p {
    margin: 0;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.45;
}

.prazo-info {
    margin: 12px 0;
    padding: 13px 15px;
    border-radius: 14px;
    background: rgba(56, 189, 248, 0.09);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #cbd5e1;
}

.prazo-info p {
    margin: 8px 0 0;
}

.aviso-whatsapp-pisca {
    color: #ff6b6b !important;
    font-weight: 900;
    font-size: 18px;
    background: rgba(255, 77, 77, 0.14);
    padding: 13px;
    border-radius: 12px;
    border-left: 5px solid #ff4d4d;
    animation: piscarLeve 1.4s infinite;
}

@keyframes piscarLeve {
    0% { opacity: 1; }
    50% { opacity: 0.58; }
    100% { opacity: 1; }
}

.bloqueado {
    opacity: 0.45;
    cursor: not-allowed;
}

.mensagem-bloqueio {
    display: none;
    color: #ff6b6b;
    font-weight: 900;
    margin-top: 12px;
}

/* Notificação flutuante */
.notificacao-novo-pedido {
    position: fixed !important;
    right: 22px !important;
    bottom: 22px !important;
    width: min(390px, calc(100vw - 40px));
    background: linear-gradient(135deg, #0f766e, #064e3b) !important;
    color: #ffffff !important;
    padding: 18px 48px 18px 18px !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 60px rgba(0,0,0,0.45) !important;
    z-index: 999999 !important;
    border: 1px solid rgba(255,255,255,0.22) !important;
    animation: notificacaoEntrada 0.25s ease-out;
    cursor: default;
}

.notificacao-titulo {
    font-weight: 900;
    font-size: 16px;
    margin-bottom: 7px;
}

.notificacao-texto {
    color: #dcfce7;
    margin-bottom: 12px;
    line-height: 1.4;
}

.notificacao-botao {
    display: inline-flex;
    background: rgba(255,255,255,0.16);
    color: white !important;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 900;
    text-decoration: none !important;
    cursor: pointer;
}

.fechar-notificacao {
    position: absolute !important;
    top: 8px !important;
    right: 10px !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 999px !important;
    background: rgba(0,0,0,0.28) !important;
    color: white !important;
    border: 0 !important;
    font-size: 18px !important;
    line-height: 28px !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
}

@keyframes notificacaoEntrada {
    from { transform: translateY(14px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Gráficos */
.grafico-linha {
    display: grid;
    grid-template-columns: 130px 1fr auto;
    gap: 12px;
    align-items: center;
    margin: 12px 0;
}

.barra-wrap {
    background: rgba(255,255,255,0.08);
    height: 16px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

.barra {
    height: 100%;
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    border-radius: 999px;
    min-width: 4px;
}

.barra.dinheiro {
    background: linear-gradient(135deg, #22c55e, #15803d);
}

/* Ajustes mobile */
@media (max-width: 800px) {
    header {
        padding: 18px;
    }

    main {
        padding: 22px 16px 40px;
    }

    nav {
        gap: 6px;
    }

    nav a {
        font-size: 13px;
        padding: 9px 11px;
    }

    h2 {
        font-size: 25px;
    }

    .search-row {
        display: block;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .big {
        font-size: 28px;
    }

    .mensagem-boas-vindas {
        align-items: flex-start;
    }

    .mensagem-boas-vindas h3 {
        font-size: 21px;
    }

    .grafico-linha {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}


/* ===== Premium UI v1.18 ===== */

body {
    background:
        radial-gradient(circle at 18% -10%, rgba(56, 189, 248, 0.18), transparent 30%),
        radial-gradient(circle at 82% 0%, rgba(34, 197, 94, 0.10), transparent 26%),
        linear-gradient(180deg, #07111f 0%, #091827 44%, #07111f 100%) !important;
}

.topbar-premium {
    position: sticky;
    top: 0;
    z-index: 10000;
    padding: 16px 24px;
    background: rgba(7, 17, 31, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 60px rgba(0,0,0,0.24);
}

.topbar-inner {
    width: min(100%, 1540px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 22px;
    align-items: center;
}

.brand-premium {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -0.045em;
    white-space: nowrap;
}

.brand-premium img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
    background: white;
    padding: 4px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.26);
}

.brand-fallback {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.28);
}

.menu-premium {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.menu-premium a {
    color: #a8b3c7 !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 850;
    padding: 10px 13px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: 0.18s ease;
}

.menu-premium a:hover {
    color: white !important;
    background: rgba(56, 189, 248, 0.13);
    border-color: rgba(56, 189, 248, 0.24);
    transform: translateY(-1px);
}

.topbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.version-pill,
.logout-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none !important;
    white-space: nowrap;
}

.version-pill {
    color: #94a3b8;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
}

.logout-pill {
    color: #f8fafc !important;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.22);
}

.logout-pill:hover {
    background: rgba(239, 68, 68, 0.2);
}

main {
    padding-top: 36px !important;
}

h2 {
    font-size: 34px !important;
    letter-spacing: -0.055em !important;
    margin-bottom: 26px !important;
}

.card,
form,
table {
    border-color: rgba(148, 163, 184, 0.18) !important;
    background:
        linear-gradient(180deg, rgba(24, 41, 64, 0.92), rgba(13, 27, 47, 0.92)) !important;
    box-shadow:
        0 22px 70px rgba(0,0,0,0.30),
        inset 0 1px 0 rgba(255,255,255,0.03) !important;
}

.card {
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.30) !important;
    box-shadow:
        0 28px 80px rgba(0,0,0,0.36),
        0 0 0 1px rgba(56,189,248,0.08) !important;
}

.dashboard-link {
    min-height: 170px !important;
}

.dashboard-link h3 {
    color: #eaf6ff !important;
}

.big {
    font-size: 38px !important;
}

button,
.button,
.whatsapp {
    border-radius: 14px !important;
    box-shadow:
        0 14px 34px rgba(2, 132, 199, 0.22),
        inset 0 1px 0 rgba(255,255,255,0.14) !important;
}

input,
select,
textarea {
    border-radius: 15px !important;
    background: rgba(4, 10, 20, 0.62) !important;
}

thead {
    background: rgba(4, 10, 20, 0.72) !important;
}

th {
    color: #d8e7f7 !important;
}

.notificacao-novo-pedido {
    border-radius: 20px !important;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.98), rgba(6, 78, 59, 0.98)) !important;
    box-shadow:
        0 28px 80px rgba(0,0,0,0.48),
        0 0 0 1px rgba(255,255,255,0.10) !important;
}

.rodape {
    background: rgba(4, 10, 20, 0.36);
}

@media (max-width: 1000px) {
    .topbar-inner {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .brand-premium,
    .topbar-actions {
        justify-content: center;
    }

    .menu-premium {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .topbar-premium {
        padding: 14px 12px;
    }

    .brand-premium {
        font-size: 18px;
        white-space: normal;
        text-align: center;
    }

    .menu-premium a {
        font-size: 12px;
        padding: 8px 10px;
    }

    h2 {
        font-size: 28px !important;
    }
}

/* ===== Dashboard SaaS Premium v1.20 ===== */
.dash-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 22px;
    padding: 26px;
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 26px;
    background:
        radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.18), transparent 38%),
        linear-gradient(135deg, rgba(24, 41, 64, 0.90), rgba(8, 17, 31, 0.92));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.dash-hero h2 {
    margin: 4px 0 8px !important;
}

.dash-hero p {
    margin: 0;
    max-width: 680px;
}

.eyebrow,
.kpi-label {
    display: inline-flex;
    align-items: center;
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.dash-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.secondary {
    background: rgba(15, 23, 42, 0.76) !important;
    border: 1px solid rgba(148, 163, 184, 0.24) !important;
    color: #e2e8f0 !important;
}

.compact {
    padding: 8px 11px !important;
    font-size: 12px !important;
    min-height: auto !important;
}

.premium-search {
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) minmax(320px, 1.3fr);
    align-items: end;
    gap: 18px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    gap: 16px;
    margin: 8px 0 24px;
}

.kpi-card {
    position: relative;
    overflow: hidden;
    min-height: 168px;
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(24, 41, 64, 0.94), rgba(11, 24, 43, 0.96));
    color: inherit;
    text-decoration: none;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.30);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.kpi-card::after {
    content: "";
    position: absolute;
    inset: auto -35px -55px auto;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
}

.kpi-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 30px 85px rgba(0, 0, 0, 0.38);
}

.kpi-feature {
    background:
        radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.25), transparent 34%),
        linear-gradient(180deg, rgba(14, 52, 82, 0.96), rgba(10, 24, 44, 0.97));
}

.kpi-card strong {
    display: block;
    margin: 18px 0 8px;
    color: #ffffff;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.kpi-card small {
    color: #cbd5e1;
    font-weight: 700;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.panel-card,
.table-card {
    padding: 22px !important;
}

.panel-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.panel-title-row h3 {
    margin: 0;
}

.panel-title-row a {
    color: var(--primary);
    font-weight: 900;
    font-size: 13px;
    text-decoration: none;
}

.mini-list {
    display: grid;
    gap: 10px;
}

.mini-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(8, 17, 31, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.13);
    color: inherit;
    text-decoration: none;
}

.mini-item:hover {
    border-color: rgba(56, 189, 248, 0.32);
}

.mini-item strong,
.mini-item span {
    display: block;
}

.mini-item span,
.mini-item small,
.muted-text {
    color: var(--muted);
}

.status-pill {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    color: #bae6fd;
    border: 1px solid rgba(56, 189, 248, 0.22);
    font-size: 12px;
    font-weight: 900;
}

.table-card table,
.clean-table {
    margin: 0 !important;
    box-shadow: none !important;
    background: rgba(8, 17, 31, 0.35) !important;
}

.empty-state {
    padding: 16px !important;
}

@media (max-width: 1180px) {
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 820px) {
    .dash-hero,
    .premium-search,
    .dashboard-layout {
        grid-template-columns: 1fr;
        display: grid;
    }

    .dash-actions {
        justify-content: flex-start;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }
}

/* v2.0 Auditoria / Governança */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}
.premium-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}
.premium-table th,
.premium-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: left;
    vertical-align: top;
}
.premium-table th {
    color: rgba(255,255,255,0.72);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.premium-table td {
    color: rgba(255,255,255,0.88);
}
.badge-soft {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.82);
    font-size: 12px;
}
.empty-state {
    text-align: center;
    color: rgba(255,255,255,0.55) !important;
    padding: 30px !important;
}

/* ===== Navbar SaaS Premium v2.0.1 ===== */
.saas-navbar {
    padding: 12px 22px !important;
    background:
        linear-gradient(90deg, rgba(7,17,31,0.96), rgba(4,13,24,0.94)) !important;
}

.saas-navbar-inner {
    width: min(100%, 1720px) !important;
    grid-template-columns: minmax(290px, auto) 1fr auto !important;
    gap: 18px !important;
}

.saas-brand {
    font-size: 20px !important;
    letter-spacing: -0.05em !important;
}

.saas-brand img,
.saas-brand .brand-fallback {
    width: 40px !important;
    height: 40px !important;
    border-radius: 13px !important;
}

.saas-menu {
    gap: 4px !important;
    flex-wrap: nowrap !important;
}

.saas-nav-link,
.saas-dropdown-button {
    min-height: 38px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 12px !important;
    border-radius: 13px !important;
    color: #aab7cc !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    letter-spacing: -0.01em;
    background: transparent;
    border: 1px solid transparent !important;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
}

.saas-nav-link:hover,
.saas-dropdown:hover .saas-dropdown-button,
.saas-nav-link.active,
.saas-dropdown-button.active {
    color: #f8fafc !important;
    background: rgba(56, 189, 248, 0.12) !important;
    border-color: rgba(56, 189, 248, 0.22) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    transform: translateY(-1px);
}

.saas-dropdown {
    position: relative;
    display: inline-flex;
}

.saas-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 245px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(9, 20, 35, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 26px 80px rgba(0,0,0,0.46);
    backdrop-filter: blur(18px);
    display: none;
    z-index: 20000;
}

.saas-dropdown:hover .saas-dropdown-menu,
.saas-dropdown:focus-within .saas-dropdown-menu {
    display: grid;
    gap: 4px;
}

.saas-dropdown-menu a {
    justify-content: flex-start !important;
    width: 100%;
    padding: 11px 12px !important;
    border-radius: 12px !important;
    color: #cbd5e1 !important;
    font-size: 13px !important;
}

.saas-dropdown-menu a:hover {
    background: rgba(56, 189, 248, 0.12) !important;
    color: #ffffff !important;
}

.saas-actions {
    gap: 8px !important;
}

.user-pill {
    display: inline-flex;
    align-items: center;
    max-width: 155px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-height: 32px;
    padding: 7px 11px;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 12px;
    font-weight: 900;
}

@media (max-width: 1200px) {
    .saas-navbar-inner {
        grid-template-columns: 1fr !important;
    }
    .saas-menu {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    .saas-actions {
        justify-content: center !important;
    }
}

/* v2.1 - Usuários e permissões */
.permission-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 24px;
}
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #7dd3fc;
    font-weight: 800;
    font-size: 12px;
}
.user-pill {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* v2.3 - Painel de configurações / integrações */
.settings-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 28px;
    margin-bottom: 22px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(14,165,233,.18), rgba(15,23,42,.94));
    border: 1px solid rgba(56,189,248,.22);
    box-shadow: 0 24px 70px rgba(0,0,0,.28);
}
.settings-hero h1 { margin: 4px 0 8px; font-size: 34px; }
.settings-hero p { margin: 0; color: #cbd5e1; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; color: #7dd3fc !important; font-weight: 900; font-size: 12px; }
.settings-form { margin-bottom: 90px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.settings-card {
    background: linear-gradient(180deg, rgba(30,41,59,.84), rgba(15,23,42,.94));
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 18px 50px rgba(0,0,0,.18);
}
.settings-card.wide-card { grid-column: 1 / -1; }
.settings-card h3 { margin: 6px 0 8px; font-size: 20px; }
.settings-card p { color: #aebdd0; }
.settings-icon { display:inline-flex; width: 38px; height: 38px; align-items:center; justify-content:center; border-radius: 14px; background: rgba(56,189,248,.12); border: 1px solid rgba(56,189,248,.22); }
.form-grid-2 { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.form-grid-3 { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.premium-preview { background: rgba(2,6,23,.35); border-radius: 18px; padding: 14px; border: 1px dashed rgba(148,163,184,.25); }
.sticky-save-bar {
    position: sticky;
    bottom: 16px;
    z-index: 50;
    margin-top: 22px;
    padding: 14px 16px;
    border-radius: 20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 16px;
    background: rgba(2,6,23,.92);
    border: 1px solid rgba(56,189,248,.24);
    box-shadow: 0 20px 60px rgba(0,0,0,.38);
    backdrop-filter: blur(14px);
}
.sticky-save-bar span { display:block; color:#94a3b8; font-size: 13px; margin-top: 3px; }
@media (max-width: 900px) {
    .settings-hero, .sticky-save-bar { flex-direction: column; align-items: stretch; }
    .settings-grid, .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
}

/* v2.4 - Logs de login e gestão de cliente ativo/inativo */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
}
.status-ok {
    background: rgba(34, 197, 94, .14);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, .28);
}
.status-warn {
    background: rgba(245, 158, 11, .14);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, .28);
}
.muted-small {
    margin-top: 6px;
    font-size: 12px;
    color: #94a3b8;
    max-width: 260px;
}
.inline-mini-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 4px 0 !important;
}
.inline-mini-form input[type="text"] {
    min-width: 180px;
    height: 34px;
    font-size: 12px;
    padding: 6px 9px;
}
.warning-button {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #111827 !important;
}
.disabled-button {
    opacity: .55;
    cursor: not-allowed;
    pointer-events: none;
}
.soft-card {
    background: rgba(15, 23, 42, .65);
    border: 1px solid rgba(148, 163, 184, .16);
}
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    align-items: end;
}
.page-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}
.eyebrow {
    color: #38bdf8;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .18em;
    margin: 0 0 6px;
}
.hero-subtitle {
    color: #94a3b8;
    margin-top: 6px;
}


/* v2.4.1 - barras de ação e botões de acesso à lixeira */
.action-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 24px 0;
    padding: 22px 24px;
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(15, 28, 47, 0.98), rgba(10, 20, 36, 0.96));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.20);
}

.action-toolbar h3 {
    margin: 0 0 6px;
    color: #f8fafc;
    font-size: 18px;
}

.action-toolbar p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.danger-access-button {
    background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
    box-shadow: 0 14px 30px rgba(239, 68, 68, 0.24) !important;
    text-transform: uppercase;
    letter-spacing: 0.035em;
}

.actions-cell {
    min-width: 360px;
}

.action-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 4px 0;
}

.primary-actions {
    margin-bottom: 8px;
}

.status-actions {
    align-items: stretch;
}

.clean-inline-form {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.inline-mini-form input {
    min-width: 180px;
    max-width: 230px;
    height: 38px;
    padding: 9px 12px;
    margin: 0;
}

.compact-button {
    min-height: 38px;
    padding: 9px 14px !important;
    margin: 0 !important;
    border-radius: 12px !important;
    white-space: nowrap;
}

.warning-button {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.22) !important;
    color: #07111f !important;
}

.disabled-button {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(0.3);
}

@media (max-width: 820px) {
    .action-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .toolbar-actions,
    .action-row,
    .clean-inline-form {
        width: 100%;
    }

    .toolbar-actions > *,
    .action-row > *,
    .clean-inline-form > button {
        flex: 1;
    }

    .inline-mini-form input {
        max-width: none;
        flex: 2;
    }
}


/* v2.5 - refinamento SaaS: botões compactos e lixeira em botão vermelho */
.toolbar-btn,
.trash-access-btn {
    min-height: 42px;
    padding: 10px 18px !important;
    margin: 0 !important;
    border-radius: 13px !important;
    text-decoration: none !important;
}

.trash-access-btn,
.danger-access-button {
    background: linear-gradient(135deg, #ff4d4d, #b91c1c) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 34px rgba(239, 68, 68, 0.28) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.actions-cell-wide {
    min-width: 560px;
}

.client-actions-inline,
.table-actions-inline {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.client-status-form,
.client-delete-form {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mini-button {
    min-height: 34px !important;
    padding: 7px 11px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    box-shadow: 0 8px 18px rgba(2, 132, 199, 0.18) !important;
}

.mini-input {
    width: 120px !important;
    min-width: 120px !important;
    height: 34px !important;
    padding: 7px 10px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    font-size: 12px !important;
}

.warning-button.mini-button,
.danger-button.mini-button {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.20) !important;
}

@media (max-width: 1180px) {
    .actions-cell-wide { min-width: 420px; }
    .client-actions-inline { flex-wrap: wrap; }
    .mini-input { width: 150px !important; min-width: 150px !important; }
}

@media (max-width: 760px) {
    .toolbar-actions { justify-content: stretch; }
    .toolbar-btn, .trash-access-btn { flex: 1; }
    .client-actions-inline,
    .table-actions-inline,
    .client-status-form,
    .client-delete-form { flex-wrap: wrap; }
    .mini-button { flex: 1 1 auto; }
    .mini-input { flex: 1 1 100%; width: 100% !important; }
}

/* ===== v2.6 - Meus pedidos + Checkout Pix mobile SaaS ===== */
.client-hero,
.checkout-shell {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
}

.eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.client-profile-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    background: linear-gradient(135deg, rgba(20,34,56,.95), rgba(10,20,35,.95));
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
}

.client-profile-card > div,
.order-kpis > div {
    background: rgba(8, 17, 31, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 14px;
    padding: 12px;
}

.muted-label,
.order-kpis span,
.copy-label {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 5px;
}

.client-orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 16px;
}

.client-order-card {
    background: linear-gradient(155deg, rgba(24, 41, 64, 0.98), rgba(9, 18, 32, 0.98));
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.client-order-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

.client-order-card.is-paid::before {
    background: linear-gradient(90deg, var(--success), transparent);
}

.client-order-card.is-pending::before {
    background: linear-gradient(90deg, var(--warning), transparent);
}

.order-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.order-card-top h3 {
    font-size: 26px;
    margin: 0;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.status-pill.success,
.checkout-status.success {
    background: rgba(34, 197, 94, .16);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, .35);
}

.status-pill.warning,
.checkout-status.warning {
    background: rgba(245, 158, 11, .16);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, .35);
}

.status-pill.neutral {
    background: rgba(148, 163, 184, .12);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, .22);
}

.order-kpis {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 10px;
    margin-bottom: 14px;
}

.order-kpis strong {
    color: #fff;
    font-size: 20px;
    letter-spacing: -.03em;
}

.order-details-list {
    display: grid;
    gap: 4px;
    margin-bottom: 14px;
}

.order-details-list p {
    margin: 0;
    font-size: 13px;
}

.payment-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(8, 17, 31, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    padding: 12px;
}

.pay-form-inline {
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.btn-pay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 16px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff !important;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(34, 197, 94, .18);
}

.paid-message {
    color: #86efac;
    font-weight: 800;
}

.empty-state-card,
.checkout-card {
    background: linear-gradient(155deg, rgba(24, 41, 64, 0.98), rgba(9, 18, 32, 0.98));
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.checkout-shell {
    align-items: stretch;
}

.checkout-main {
    flex: 1 1 680px;
}

.checkout-help {
    flex: 0 0 330px;
}

.back-link {
    display: inline-block;
    color: var(--muted);
    text-decoration: none;
    font-weight: 800;
    margin-bottom: 16px;
}

.checkout-subtitle {
    max-width: 620px;
}

.checkout-amount-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    background: rgba(8, 17, 31, .55);
    border: 1px solid rgba(148, 163, 184, .12);
    border-radius: 18px;
    padding: 16px;
    margin: 18px 0 12px;
}

.checkout-amount-box span {
    color: var(--muted);
    font-weight: 800;
}

.checkout-amount-box strong {
    color: white;
    font-size: 30px;
    letter-spacing: -.04em;
}

.checkout-status {
    display: inline-flex;
    padding: 10px 12px;
    border-radius: 999px;
    font-weight: 900;
    margin: 6px 0 18px;
}

.qr-premium-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 22px;
    padding: 18px;
    width: min(100%, 320px);
    margin: 0 auto 18px;
}

.qr-premium-box img {
    width: 100%;
    max-width: 260px;
    display: block;
}

.qr-empty {
    background: rgba(8, 17, 31, .55);
    color: var(--muted);
    min-height: 180px;
    text-align: center;
}

#pixCode {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    border-radius: 16px;
    background: #07111f;
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, .18);
    padding: 14px;
    font-size: 13px;
}

.checkout-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.checkout-help ol {
    padding-left: 20px;
    color: var(--text-soft);
    line-height: 1.8;
}

.secure-note {
    margin-top: 18px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(56, 189, 248, .10);
    color: #bae6fd;
    border: 1px solid rgba(56, 189, 248, .22);
    font-weight: 800;
}

@media (max-width: 760px) {
    main {
        padding: 18px 14px 36px;
    }

    .client-hero,
    .checkout-shell,
    .payment-strip,
    .checkout-amount-box {
        flex-direction: column;
    }

    .client-profile-card,
    .client-orders-grid,
    .order-kpis {
        grid-template-columns: 1fr;
    }

    .client-hero .button,
    .btn-pay,
    .checkout-actions .button,
    .checkout-actions .btn-pay {
        width: 100%;
    }

    .checkout-help {
        flex: 1 1 auto;
    }

    .order-card-top {
        align-items: center;
    }

    .checkout-amount-box {
        align-items: flex-start;
    }
}

/* v2.7.40 - Pix manual: dados do favorecido e WhatsApp de comprovante */
.pix-details-card,
.receipt-whatsapp-card {
    margin: 18px 0;
    background: rgba(8, 17, 31, .62);
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 18px;
    padding: 16px;
}

.pix-detail-row {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(148, 163, 184, .10);
}

.pix-detail-row:last-child {
    border-bottom: 0;
}

.pix-detail-row span,
.receipt-whatsapp-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.pix-detail-row strong,
.receipt-whatsapp-card strong {
    color: #fff;
    font-weight: 900;
    word-break: break-word;
}

.btn-copy-mini {
    border: 0;
    border-radius: 10px;
    padding: 8px 11px;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: white;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(14, 165, 233, .16);
}

.receipt-whatsapp-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: linear-gradient(135deg, rgba(34,197,94,.12), rgba(8,17,31,.68));
    border-color: rgba(34, 197, 94, .28);
}

.receipt-whatsapp-card div {
    display: grid;
    gap: 5px;
}

.receipt-whatsapp-card small {
    color: #fbbf24;
    font-weight: 800;
}

.btn-whatsapp-receipt {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff !important;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(34, 197, 94, .18);
    white-space: nowrap;
}

@media (max-width: 760px) {
    .pix-detail-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .btn-copy-mini,
    .btn-whatsapp-receipt {
        width: 100%;
    }

    .receipt-whatsapp-card {
        flex-direction: column;
        align-items: stretch;
    }
}


/* =========================================================
   v2.7.40 - Menu responsivo limpo
   Desktop: menu original
   Mobile: somente menu suspenso
   ========================================================= */

.mobile-menu-btn,
.mobile-overlay,
.mobile-drawer {
    display: none;
}

@media (max-width: 992px) {

    /* MOBILE: esconde menu desktop original */
    .topbar-premium .menu-premium,
    .topbar-premium .saas-menu,
    .topbar-premium .topbar-actions,
    .topbar-premium .saas-actions {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
        position: fixed !important;
        top: 14px !important;
        left: 14px !important;
        width: 46px !important;
        height: 46px !important;
        align-items: center !important;
        justify-content: center !important;
        border: 0 !important;
        border-radius: 14px !important;
        background: #132743 !important;
        color: #ffffff !important;
        font-size: 26px !important;
        font-weight: 900 !important;
        z-index: 99999 !important;
        cursor: pointer !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.36) !important;
    }

    .mobile-overlay {
        display: block !important;
        position: fixed !important;
        inset: 0 !important;
        background: rgba(0,0,0,0.62) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity .22s ease, visibility .22s ease !important;
        z-index: 99997 !important;
    }

    .mobile-overlay.active {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .mobile-drawer {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 0 !important;
        left: -306px !important;
        width: 292px !important;
        max-width: 84vw !important;
        height: 100vh !important;
        background: linear-gradient(180deg, #10233d 0%, #071525 100%) !important;
        border-right: 1px solid rgba(255,255,255,0.10) !important;
        box-shadow: 18px 0 42px rgba(0,0,0,0.50) !important;
        z-index: 99998 !important;
        transition: left .24s ease !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .mobile-drawer.active {
        left: 0 !important;
    }

    .mobile-drawer-header {
        height: 64px !important;
        flex: 0 0 64px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 14px !important;
        border-bottom: 1px solid rgba(255,255,255,0.10) !important;
        box-sizing: border-box !important;
    }

    .mobile-drawer-title {
        color: #fff !important;
        font-size: 20px !important;
        font-weight: 900 !important;
    }

    .mobile-drawer-close {
        width: 38px !important;
        height: 38px !important;
        border: 0 !important;
        border-radius: 12px !important;
        background: rgba(255,255,255,0.10) !important;
        color: #fff !important;
        font-size: 30px !important;
        line-height: 1 !important;
        cursor: pointer !important;
    }

    .mobile-drawer-nav {
        flex: 1 !important;
        overflow-y: auto !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding: 14px 12px 18px !important;
        box-sizing: border-box !important;
    }

    .mobile-drawer-link,
    .mobile-submenu-toggle {
        width: 100% !important;
        min-height: 46px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 11px 14px !important;
        border-radius: 14px !important;
        color: #f0f7ff !important;
        background: rgba(255,255,255,0.06) !important;
        border: 1px solid rgba(255,255,255,0.08) !important;
        text-decoration: none !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        box-sizing: border-box !important;
        cursor: pointer !important;
        text-align: left !important;
    }

    .mobile-drawer-link.active,
    .mobile-submenu-toggle.active {
        background: rgba(47,183,255,0.20) !important;
        border-color: rgba(47,183,255,0.36) !important;
    }

    .mobile-submenu-toggle span {
        font-size: 22px !important;
        transition: transform .2s ease !important;
    }

    .mobile-menu-group.open .mobile-submenu-toggle span {
        transform: rotate(90deg) !important;
    }

    .mobile-submenu {
        display: none !important;
        flex-direction: column !important;
        gap: 6px !important;
        margin-top: 7px !important;
        padding-left: 10px !important;
        box-sizing: border-box !important;
    }

    .mobile-menu-group.open .mobile-submenu {
        display: flex !important;
    }

    .mobile-submenu a {
        min-height: 40px !important;
        display: flex !important;
        align-items: center !important;
        padding: 9px 12px !important;
        border-radius: 12px !important;
        color: #d9ecff !important;
        background: rgba(0,0,0,0.18) !important;
        border: 1px solid rgba(255,255,255,0.055) !important;
        text-decoration: none !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        box-sizing: border-box !important;
    }

    .mobile-drawer-footer {
        margin-top: 10px !important;
        padding-top: 12px !important;
        border-top: 1px solid rgba(255,255,255,0.10) !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        align-items: center !important;
    }

    .mobile-drawer-footer span,
    .mobile-drawer-footer a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 34px !important;
        padding: 7px 11px !important;
        border-radius: 999px !important;
        background: rgba(255,255,255,0.07) !important;
        border: 1px solid rgba(255,255,255,0.09) !important;
        color: #eaf4ff !important;
        text-decoration: none !important;
        font-size: 13px !important;
        font-weight: 800 !important;
    }

    .mobile-drawer-footer a {
        background: rgba(255,70,70,0.16) !important;
        border-color: rgba(255,70,70,0.26) !important;
    }

    body.mobile-menu-open {
        overflow: hidden !important;
    }

    /* Header mobile compacto, mantendo logo/título */
    .topbar-premium,
    .saas-navbar {
        min-height: 68px !important;
    }

    .topbar-inner,
    .saas-navbar-inner {
        min-height: 68px !important;
        justify-content: center !important;
        padding-left: 76px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
    }

    .brand-premium,
    .saas-brand {
        margin: 0 auto !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .brand-premium img,
    .saas-brand img {
        max-width: 38px !important;
        max-height: 38px !important;
    }

    .brand-premium span,
    .saas-brand span {
        font-size: 15px !important;
        line-height: 1.15 !important;
    }
}


/* =========================================================
   v2.7.40 - Área Cliente: botão WhatsApp + consulta
   ========================================================= */

.cliente-auto-whatsapp-card {
    text-align: center;
}

.cliente-auto-whatsapp-card .whatsapp,
.cliente-auto-whatsapp-card .button {
    margin: 10px auto;
    display: inline-flex;
}


/* =========================================================
   v2.7.40 - Área Cliente: alterar pedido
   ========================================================= */

.alterar-pedido-cliente {
    margin-top: 10px;
    display: inline-flex;
    justify-content: center;
}


/* =========================================================
   v2.7.40 - Notificação de pedido alterado pelo cliente
   ========================================================= */

.cliente-auto-whatsapp-card {
    text-align: center;
}

.cliente-auto-whatsapp-card .whatsapp {
    margin: 10px auto;
    display: inline-flex;
}


/* =========================================================
   v2.7.40 - Agenda operacional: ENTREGAR / RETIRAR
   ========================================================= */

.agenda-operacional-table .agenda-tipo-agenda {
    margin-left: 14px;
    color: #ff2d2d;
    font-weight: 900;
    letter-spacing: .5px;
    text-transform: uppercase;
    white-space: nowrap;
}


/* =========================================================
   v2.7.40 - Datas da agenda em padrão brasileiro
   ========================================================= */

.agenda-data{
    white-space: nowrap !important;
    min-width: 95px;
}


/* =========================================================
   v2.7.40 - Regras finais da agenda
   ========================================================= */

.agenda-data {
    white-space: nowrap !important;
    min-width: 95px;
}

.agenda-operacional-table .agenda-tipo-agenda {
    margin-left: 14px;
    font-weight: 900;
    letter-spacing: .5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.agenda-operacional-table .agenda-entregar {
    color: #ff2d2d !important;
}

.agenda-operacional-table .agenda-retirar {
    color: #2fa8ff !important;
}


/* =========================================================
   v2.7.40 - Link direto WhatsApp cliente
   ========================================================= */

.whatsapp-direct-link{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-top:10px;
    padding:10px 16px;
    border-radius:12px;
    background:linear-gradient(135deg,#25d366,#1faa52);
    color:#ffffff !important;
    font-weight:700;
    text-decoration:none !important;
    transition:all .2s ease;
}

.whatsapp-direct-link:hover{
    transform:translateY(-1px);
    opacity:.95;
}


/* =========================================================
   v2.7.40 - Agenda com ID, horário e endereço ampliado
   ========================================================= */

.agenda-operacional-table th:nth-child(7),
.agenda-operacional-table td:nth-child(7) {
    min-width: 280px;
}

.agenda-operacional-table .agenda-horario,
.agenda-operacional-table .agenda-data {
    white-space: nowrap !important;
}


/* =========================================================
   v2.7.40 - Agenda sem horário, horário somente no pedido
   ========================================================= */

.agenda-operacional-table th:nth-child(6),
.agenda-operacional-table td:nth-child(6) {
    min-width: 320px;
}

.agenda-operacional-table .agenda-data {
    white-space: nowrap !important;
}

.agenda-operacional-table .agenda-horario {
    display: none !important;
}

/* =========================================================
   v2.7.40 - Configuração de e-mail e horário entregue
   ========================================================= */
.email-events-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 16px;
}
.email-event-card {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 16px;
    background: rgba(255,255,255,0.035);
}
@media (max-width: 900px) {
    .email-events-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   v2.7.52.3 - Detalhes do pedido premium
   ========================================================= */

.pedido-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.pedido-hero h2 {
    margin-bottom: 6px;
}

.pedido-hero p {
    color: var(--muted, #9fb3c8);
    margin: 0;
}

.pedido-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pedido-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(47,183,255,0.14);
    border: 1px solid rgba(47,183,255,0.30);
    color: #dff5ff;
    font-weight: 900;
    font-size: 13px;
}

.pedido-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 18px;
    align-items: start;
}

.pedido-main-column,
.pedido-side-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pedido-card {
    padding: 22px;
}

.pedido-card-title {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.pedido-card-title h3 {
    margin: 0;
}

.pedido-card-title span {
    color: var(--muted, #9fb3c8);
    font-size: 13px;
}

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

.pedido-info-grid div,
.pedido-finance-box div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
}

.pedido-info-grid small,
.pedido-finance-box small,
.pedido-note small {
    display: block;
    color: var(--muted, #9fb3c8);
    font-size: 12px;
    margin-bottom: 6px;
}

.pedido-info-grid strong,
.pedido-finance-box strong {
    display: block;
    color: #fff;
    word-break: break-word;
}

.pedido-whatsapp-link {
    margin-top: 10px;
    width: fit-content;
}

.pedido-address-box {
    padding: 18px;
    border-radius: 18px;
    background: rgba(47,183,255,0.08);
    border: 1px solid rgba(47,183,255,0.16);
    margin-bottom: 14px;
}

.pedido-address-box strong,
.pedido-address-box span {
    display: block;
}

.pedido-address-box span {
    margin-top: 6px;
    color: var(--muted, #9fb3c8);
}

.pedido-actions-inline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pedido-note {
    margin-top: 16px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.07);
}

.pedido-note p {
    margin: 0;
}

.pedido-status-form label {
    margin-top: 12px;
}

.pedido-status-form button {
    width: 100%;
    margin-top: 16px;
}

.pedido-finance-box {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.pedido-success {
    color: #8dffb1;
    font-weight: 700;
}

.pedido-table-section {
    margin-top: 18px;
}

.status-entregue {
    background: rgba(49, 220, 122, 0.16);
    border-color: rgba(49, 220, 122, 0.35);
}

.status-cancelado {
    background: rgba(120, 130, 145, 0.18);
    border-color: rgba(120, 130, 145, 0.34);
}

.status-solicitando-retirada {
    background: rgba(47, 168, 255, 0.18);
    border-color: rgba(47, 168, 255, 0.34);
}

.status-confirmado---solicitando-entrega,
.status-solicitado-via-whatsapp---solicitando-entrega {
    background: rgba(255, 68, 68, 0.16);
    border-color: rgba(255, 68, 68, 0.34);
}

@media (max-width: 980px) {
    .pedido-detail-grid {
        grid-template-columns: 1fr;
    }

    .pedido-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .pedido-hero-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .pedido-info-grid {
        grid-template-columns: 1fr;
    }

    .pedido-card-title {
        flex-direction: column;
    }
}


/* =========================================================
   v2.7.52.3 - Status primeiro no detalhe do pedido
   ========================================================= */

.pedido-status-top-wrap {
    margin-bottom: 18px;
}

.pedido-status-top-wrap .pedido-status-card {
    width: 100%;
}

.pedido-status-top-wrap .pedido-status-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
    align-items: end;
}

.pedido-status-top-wrap .pedido-status-form > *:nth-child(1),
.pedido-status-top-wrap .pedido-status-form > *:nth-child(2),
.pedido-status-top-wrap .pedido-status-form > *:nth-child(3),
.pedido-status-top-wrap .pedido-status-form > *:nth-child(4),
.pedido-status-top-wrap .pedido-status-form > *:nth-child(5),
.pedido-status-top-wrap .pedido-status-form > *:nth-child(6) {
    grid-column: 1;
}

.pedido-status-top-wrap .pedido-status-form button {
    grid-column: 2;
    grid-row: 1 / span 6;
    align-self: center;
    height: 54px;
}

.pedido-status-top-wrap .pedido-status-form label {
    margin-top: 0;
}

.pedido-status-top-wrap .pedido-status-form button {
    width: auto;
    min-width: 170px;
    margin-top: 0;
}

@media (max-width: 980px) {
    .pedido-status-top-wrap .pedido-status-form {
        grid-template-columns: 1fr;
    }

    .pedido-status-top-wrap .pedido-status-form button {
        width: 100%;
    }
}


/* =========================================================
   v2.7.52.3 - Ordem real do status no detalhe
   ========================================================= */

.pedido-status-form-vertical {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 260px !important;
    gap: 14px 18px !important;
    align-items: end !important;
}

.pedido-status-form-vertical .status-field {
    grid-column: 1 !important;
}

.pedido-status-form-vertical .status-field label {
    display: block !important;
    margin: 0 0 8px 0 !important;
}

.pedido-status-form-vertical .status-field select {
    width: 100% !important;
}

.pedido-status-form-vertical button {
    grid-column: 2 !important;
    grid-row: 1 / span 3 !important;
    align-self: center !important;
    width: 100% !important;
    height: 54px !important;
    margin: 0 !important;
}

@media (max-width: 760px) {
    .pedido-status-form-vertical {
        grid-template-columns: 1fr !important;
    }

    .pedido-status-form-vertical button {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
}


/* =========================================================
   v2.7.52.3 - Status forçado em ordem vertical
   ========================================================= */

.pedido-status-card-forcado {
    width: 100% !important;
}

.pedido-status-card-forcado .pedido-status-form-forcado {
    display: grid !important;
    grid-template-columns: minmax(320px, 520px) minmax(180px, 300px) !important;
    gap: 14px 28px !important;
    align-items: center !important;
}

.pedido-status-card-forcado .status-linha {
    display: grid !important;
    grid-template-columns: 170px minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: center !important;
    grid-column: 1 !important;
}

.pedido-status-card-forcado .status-linha:nth-child(1) {
    grid-row: 1 !important;
}

.pedido-status-card-forcado .status-linha:nth-child(2) {
    grid-row: 2 !important;
}

.pedido-status-card-forcado .status-linha:nth-child(3) {
    grid-row: 3 !important;
}

.pedido-status-card-forcado label {
    margin: 0 !important;
    white-space: nowrap !important;
}

.pedido-status-card-forcado select {
    width: 100% !important;
    min-width: 0 !important;
}

.pedido-status-card-forcado button {
    grid-column: 2 !important;
    grid-row: 1 / span 3 !important;
    align-self: center !important;
    width: 100% !important;
    height: 54px !important;
    margin: 0 !important;
}

@media (max-width: 900px) {
    .pedido-status-card-forcado .pedido-status-form-forcado {
        grid-template-columns: 1fr !important;
    }

    .pedido-status-card-forcado .status-linha {
        grid-template-columns: 1fr !important;
    }

    .pedido-status-card-forcado button {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
}


/* =========================================================
   v2.7.52.3 - Timeline, observações e filtros agenda
   ========================================================= */

.observacao-interna-form textarea {
    width: 100%;
    resize: vertical;
    min-height: 120px;
    border-radius: 16px;
    padding: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    color: #fff;
    outline: none;
}

.observacao-interna-form button {
    margin-top: 12px;
}

.pedido-timeline {
    position: relative;
    display: grid;
    gap: 14px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 12px;
    align-items: start;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    margin-top: 5px;
    background: #2fb7ff;
    box-shadow: 0 0 0 5px rgba(47,183,255,0.12);
}

.timeline-item strong {
    display: block;
    color: #fff;
}

.timeline-item small {
    display: block;
    margin-top: 4px;
    color: var(--muted, #9fb3c8);
}

.timeline-item p {
    margin: 7px 0 0;
    color: rgba(255,255,255,0.72);
    font-size: 13px;
    line-height: 1.45;
}

.agenda-filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 18px;
}

.agenda-filtro-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    color: rgba(255,255,255,0.80);
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
}

.agenda-filtro-link.ativo,
.agenda-filtro-link:hover {
    background: rgba(47,183,255,0.16);
    border-color: rgba(47,183,255,0.35);
    color: #fff;
}


/* =========================================================
   v2.7.52.3 - Contador 48h, agenda premium e ficha operacional
   ========================================================= */

.pedido-retirada-counter {
    margin-top: 16px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(47,183,255,0.10);
    border: 1px solid rgba(47,183,255,0.24);
}

.pedido-retirada-counter small,
.pedido-retirada-counter span {
    display: block;
    color: var(--muted, #9fb3c8);
}

.pedido-retirada-counter strong {
    display: block;
    margin: 6px 0;
    color: #fff;
    font-size: 20px;
}

.pedido-retirada-counter.urgente {
    background: rgba(255, 193, 7, 0.13);
    border-color: rgba(255, 193, 7, 0.32);
}

.pedido-retirada-counter.atrasado {
    background: rgba(255, 68, 68, 0.15);
    border-color: rgba(255, 68, 68, 0.38);
}

.agenda-operacional-table tr.agenda-row-entrega td {
    border-left: 4px solid #ff2d2d;
}

.agenda-operacional-table tr.agenda-row-retirada td {
    border-left: 4px solid #2fa8ff;
}

.agenda-operacional-table tr.agenda-row-atrasado td {
    background: rgba(255, 68, 68, 0.08);
}

.agenda-operacional-table tr.agenda-row-atrasado td:first-child::after {
    content: " ATRASADO";
    display: inline-flex;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 68, 68, 0.18);
    color: #ffb3b3;
    font-size: 11px;
    font-weight: 900;
}


/* =========================================================
   v2.7.52.3.2 - Redirecionamento automático pós-pedido
   ========================================================= */
.redirect-auto-info {
    margin-top: 22px;
    text-align: center;
    color: rgba(255,255,255,0.72);
    font-size: 14px;
}
.redirect-auto-info strong {
    color: #2fb7ff;
}


/* =========================================================
   v2.7.52.3 - Redirecionamento automático para Pix
   ========================================================= */
.redirect-auto-info {
    margin-top: 22px;
    text-align: center;
    color: rgba(255,255,255,0.72);
    font-size: 14px;
}
.redirect-auto-info strong {
    color: #2fb7ff;
}

/* =========================================================
   v2.7.52.3 - Obrigatório apenas no cadastro público do cliente
   ========================================================= */
.obrigatorio-label {
    color: #ff4d4f;
    font-size: 11px;
    font-weight: 800;
    margin-top: -3px;
    margin-bottom: 7px;
    letter-spacing: .3px;
    text-transform: uppercase;
}
.cliente-foto-card {
    margin: 18px 0;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
}
.camera-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}
#camera_cliente_video {
    width: 100%;
    max-width: 420px;
    margin-top: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.14);
}

/* =========================================================
   v2.7.52.3 - Foto cliente com botões limpos
   ========================================================= */
.foto-cliente-input-hidden {
    display: none !important;
}

.cliente-foto-card-clean {
    display: block;
}

.cliente-foto-actions {
    margin-top: 12px;
}

.foto-upload-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    border-color: rgba(34,197,94,0.35) !important;
    box-shadow: 0 12px 24px rgba(34,197,94,0.18) !important;
}

.foto-cliente-nome {
    margin-top: 10px;
    color: rgba(255,255,255,0.68);
    font-size: 13px;
}

#camera_cliente_video {
    width: 100%;
    max-width: 420px;
    margin-top: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.14);
}

/* =========================================================
   v2.7.52.3 - Cadastro público sem foto/documento + CPF válido
   ========================================================= */
.obrigatorio-label {
    color: #ff4d4f;
    font-size: 11px;
    font-weight: 800;
    margin-top: -3px;
    margin-bottom: 7px;
    letter-spacing: .3px;
    text-transform: uppercase;
}

/* =========================================================
   v2.7.52.3 - Cadastro cliente corrigido
   ========================================================= */

.required-label{
    color:#ff4d4f;
    font-size:11px;
    font-weight:800;
    margin-top:-3px;
    margin-bottom:6px;
    text-transform:uppercase;
    letter-spacing:.3px;
}

.premium-input{
    height:50px;
    border-radius:14px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    color:#fff;
}

.premium-input:focus{
    border-color:#2fb7ff;
    box-shadow:0 0 0 4px rgba(47,183,255,.12);
    background:rgba(255,255,255,.08);
    color:#fff;
}

.premium-btn{
    min-width:170px;
    height:50px;
    border-radius:14px;
    font-weight:800;
}

/* =========================================================
   v2.7.52.3 - Rua e número separados no cadastro do cliente
   ========================================================= */
.sem-numero-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 9px;
    color: rgba(255,255,255,.78);
    font-size: 13px;
    font-weight: 700;
}
.sem-numero-check input {
    width: 16px;
    height: 16px;
}

/* =========================================================
   v2.7.52.3 - Alerta de pedido persistente
   ========================================================= */
.notificacao-novo-pedido {
    position: fixed;
    right: 26px;
    bottom: 28px;
    z-index: 99999;
    width: min(390px, calc(100vw - 32px));
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, #137e6e 0%, #075f4f 100%);
    border: 1px solid rgba(120, 255, 220, .28);
    box-shadow: 0 22px 50px rgba(0,0,0,.42);
    color: #fff;
    cursor: pointer;
}
.notificacao-fechar {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.26);
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
}
.notificacao-titulo {
    font-weight: 900;
    font-size: 17px;
    margin-bottom: 10px;
    padding-right: 32px;
}
.notificacao-texto {
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 14px;
}
.notificacao-botao {
    border: 0;
    border-radius: 12px;
    padding: 10px 16px;
    background: rgba(255,255,255,.16);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}
@media (max-width: 640px) {
    .notificacao-novo-pedido {
        right: 12px;
        left: 12px;
        bottom: 14px;
        width: auto;
    }
}

/* =========================================================
   v2.7.52.3 - Status PIX no topo
   ========================================================= */
.pedido-status-topo{
    display:inline-block;
    margin-left:16px;
    color:#ff2b2b;
    font-size:28px;
    font-weight:900;
    text-transform:uppercase;
    vertical-align:middle;
}

/* =========================================================
   v2.7.52.3 - Alerta some após clique
   ========================================================= */
.notificacao-novo-pedido {
    cursor: pointer;
}

/* =========================================================
   v2.7.52.3 - Alerta refeito do zero
   ========================================================= */
.notificacao-novo-pedido-v24 {
    position: fixed;
    right: 26px;
    bottom: 28px;
    z-index: 99999;
    width: min(390px, calc(100vw - 32px));
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, #137e6e 0%, #075f4f 100%);
    border: 1px solid rgba(120,255,220,.28);
    box-shadow: 0 22px 50px rgba(0,0,0,.42);
    color: #fff;
    cursor: pointer;
}
.notificacao-v24-fechar {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.28);
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
}
.notificacao-v24-titulo {
    font-weight: 900;
    font-size: 17px;
    margin-bottom: 10px;
    padding-right: 34px;
}
.notificacao-v24-texto {
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 14px;
}
.notificacao-v24-botao {
    border: 0;
    border-radius: 12px;
    padding: 10px 16px;
    background: rgba(255,255,255,.16);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}
@media (max-width: 640px) {
    .notificacao-novo-pedido-v24 {
        right: 12px;
        left: 12px;
        bottom: 14px;
        width: auto;
    }
}

/* =========================================================
   v2.7.52.3 - Agenda status simples
   ========================================================= */
.agenda-status-entregar {
    color: #ff2d2d !important;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.agenda-status-retirar {
    color: #2f9bff !important;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* =========================================================
   v2.7.52.3.3 - Timeline completa preservando detalhe
   ========================================================= */
.pedido-timeline-card {
    margin-top: 22px;
}
.pedido-timeline-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.pedido-timeline-item {
    position: relative;
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
}
.pedido-timeline-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    margin-top: 4px;
    background: #2fb7ff;
    box-shadow: 0 0 0 5px rgba(47,183,255,.12);
    flex: 0 0 auto;
}
.pedido-timeline-content strong {
    display: block;
    color: #fff;
    font-size: 15px;
}
.pedido-timeline-content small {
    display: block;
    color: rgba(255,255,255,.55);
    margin-top: 3px;
}
.pedido-timeline-content p {
    margin: 8px 0 0;
    color: rgba(255,255,255,.75);
}
.timeline-entrega .pedido-timeline-dot {
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34,197,94,.12);
}
.timeline-contador .pedido-timeline-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 5px rgba(245,158,11,.14);
}
.timeline-status .pedido-timeline-dot {
    background: #ff4d4f;
    box-shadow: 0 0 0 5px rgba(255,77,79,.12);
}
.pedido-timeline-empty {
    color: rgba(255,255,255,.6);
}

/* =========================================================
   v2.7.52.3 - Detalhe do pedido mais compacto/profissional
   ========================================================= */
.pedido-hero {
    margin-bottom: 18px !important;
    padding: 22px 24px !important;
}

.pedido-hero h2 {
    margin-bottom: 6px !important;
}

.pedido-status-top-wrap {
    margin-bottom: 18px !important;
}

.pedido-status-card-forcado {
    padding: 18px 20px !important;
}

.pedido-status-form-compacto,
.pedido-status-form-forcado {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr auto !important;
    gap: 14px !important;
    align-items: end !important;
}

.pedido-status-form-compacto .status-linha,
.pedido-status-form-forcado .status-linha {
    margin: 0 !important;
}

.pedido-status-form-compacto label,
.pedido-status-form-forcado label {
    font-size: 12px !important;
    margin-bottom: 6px !important;
    opacity: .85;
}

.pedido-status-form-compacto select,
.pedido-status-form-forcado select {
    min-height: 44px !important;
}

.pedido-status-form-compacto button,
.pedido-status-form-forcado button {
    min-height: 44px !important;
    padding-inline: 22px !important;
    white-space: nowrap;
}

.pedido-detail-grid-compacto,
.pedido-detail-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.55fr) minmax(360px, .85fr) !important;
    gap: 18px !important;
    align-items: start !important;
}

.pedido-main-column,
.pedido-side-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.pedido-card {
    padding: 18px 20px !important;
    margin: 0 !important;
}

.pedido-card-title {
    margin-bottom: 14px !important;
}

.pedido-card-title h3 {
    font-size: 18px !important;
    margin: 0 !important;
}

.pedido-card-title span {
    font-size: 12px !important;
}

.pedido-info-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

.pedido-info-grid > div,
.pedido-finance-box > div {
    padding: 13px 14px !important;
    border-radius: 14px !important;
}

.pedido-info-grid small,
.pedido-finance-box small {
    font-size: 11px !important;
    letter-spacing: .5px;
}

.pedido-info-grid strong,
.pedido-finance-box strong {
    font-size: 15px !important;
    line-height: 1.25 !important;
}

.pedido-address-box {
    padding: 14px 16px !important;
    border-radius: 15px !important;
}

.pedido-actions-inline {
    margin-top: 12px !important;
    gap: 10px !important;
}

.pedido-note,
.pedido-retirada-counter {
    margin-top: 12px !important;
    padding: 14px !important;
    border-radius: 15px !important;
}

.observacao-interna-form textarea {
    min-height: 96px !important;
}

.pedido-table-section {
    margin-top: 18px !important;
    padding: 18px 20px !important;
}

.clean-table th,
.clean-table td {
    padding-top: 13px !important;
    padding-bottom: 13px !important;
}

.payment-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.06);
}

.payment-pago {
    color: #22c55e;
    background: rgba(34,197,94,.12);
    border-color: rgba(34,197,94,.22);
}

.payment-pendente {
    color: #f59e0b;
    background: rgba(245,158,11,.12);
    border-color: rgba(245,158,11,.22);
}

.payment-cancelado {
    color: #ff4d4f;
    background: rgba(255,77,79,.12);
    border-color: rgba(255,77,79,.22);
}

@media (max-width: 1100px) {
    .pedido-detail-grid-compacto,
    .pedido-detail-grid {
        grid-template-columns: 1fr !important;
    }

    .pedido-status-form-compacto,
    .pedido-status-form-forcado {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 720px) {
    .pedido-info-grid {
        grid-template-columns: 1fr !important;
    }

    .pedido-hero {
        padding: 18px !important;
    }

    .pedido-card {
        padding: 16px !important;
    }
}

/* =========================================================
   v2.7.52.3 - Financeiro profissional real
   ========================================================= */
.financeiro-hero {
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:18px;
    margin-bottom:20px;
}
.financeiro-hero h2 {
    margin:4px 0 4px;
    font-size:30px;
}
.financeiro-hero p {
    color:rgba(255,255,255,.65);
    margin:0;
}
.finance-dashboard{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:16px;
    margin-bottom:20px;
}
.finance-card{
    padding:20px;
    border-radius:20px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
}
.finance-card small{
    display:block;
    color:rgba(255,255,255,.62);
    margin-bottom:10px;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.6px;
}
.finance-card strong{
    color:#fff;
    font-size:26px;
    font-weight:900;
}
.finance-success{border-left:4px solid #22c55e;}
.finance-info{border-left:4px solid #0ea5e9;}
.finance-primary{border-left:4px solid #6366f1;}
.finance-warning{border-left:4px solid #f59e0b;}
.finance-danger{border-left:4px solid #ef4444;}
.finance-filtros{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:20px;
}
.finance-filter{
    display:inline-flex;
    text-decoration:none;
    border-radius:999px;
    padding:10px 16px;
    background:rgba(255,255,255,.06);
    color:#fff;
    font-weight:800;
    font-size:13px;
}
.finance-filter.active{
    background:#2563eb;
}
.financeiro-table-card{
    padding:18px 20px !important;
}
.finance-table td,
.finance-table th{
    vertical-align:middle;
}
.finance-status{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:90px;
    padding:7px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
    background:rgba(255,255,255,.06);
}
.finance-pago{
    background:rgba(34,197,94,.15);
    color:#22c55e;
}
.finance-pendente{
    background:rgba(245,158,11,.15);
    color:#f59e0b;
}
.finance-parcial{
    background:rgba(14,165,233,.15);
    color:#38bdf8;
}
.finance-cancelado{
    background:rgba(239,68,68,.15);
    color:#ef4444;
}
.finance-status.pedido{
    min-width:auto;
    color:rgba(255,255,255,.78);
}
.finance-actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}
.mini-btn{
    display:inline-flex;
    text-decoration:none;
    padding:7px 10px;
    border-radius:10px;
    font-size:11px;
    font-weight:900;
    color:#fff;
}
.mini-btn.primary{background:#2563eb;}
.mini-btn.whatsapp{background:#059669;}
.clean-table tbody tr:hover{
    background:rgba(255,255,255,.04);
}

/* =========================================================
   v2.7.52.3 - Fluxo de caixa
   ========================================================= */
.fluxo-dashboard{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:16px;
    margin-bottom:22px;
}
.fluxo-card{
    padding:22px;
    border-radius:22px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
}
.fluxo-card small{
    display:block;
    margin-bottom:10px;
    color:rgba(255,255,255,.62);
    text-transform:uppercase;
    font-size:12px;
}
.fluxo-card strong{
    font-size:30px;
    color:#fff;
}
.fluxo-card.success{border-left:4px solid #22c55e;}
.fluxo-card.warning{border-left:4px solid #f59e0b;}
.fluxo-card.danger{border-left:4px solid #ef4444;}
.fluxo-card.primary{border-left:4px solid #2563eb;}

.empty-state-finance{
    padding:30px;
    text-align:center;
    color:rgba(255,255,255,.6);
}

/* =========================================================
   v2.7.52.3.1 - Link visível para Fluxo de Caixa
   ========================================================= */
.financeiro-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
}
.financeiro-hero-actions,
.financeiro-top-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}
@media (max-width: 720px) {
    .financeiro-hero {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================
   v2.7.52.3 - Despesas funcionais
   ========================================================= */
.despesa-form-card {
    padding: 24px !important;
}
.despesa-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.despesa-form .full {
    grid-column: 1 / -1;
}
.despesa-form label {
    display: block;
    margin-bottom: 7px;
    color: rgba(255,255,255,.75);
    font-size: 13px;
    font-weight: 800;
}
.despesa-form input,
.despesa-form select,
.despesa-form textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    color: #fff;
    padding: 13px 14px;
    outline: none;
}
.despesa-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.saida-valor {
    color: #ef4444;
}
.mini-btn.danger {
    background: #dc2626;
}
@media (max-width: 760px) {
    .despesa-form {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   v2.7.52.3 - Financeiro período e CSV
   ========================================================= */
.finance-periodo-card {
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
    margin-bottom: 20px;
}
.finance-periodo-form {
    display: flex;
    gap: 12px;
    align-items: end;
    flex-wrap: wrap;
}
.finance-periodo-form label {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,.68);
    font-weight: 800;
    margin-bottom: 6px;
}
.finance-periodo-form input {
    min-height: 42px;
    border-radius: 13px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.22);
    color: #fff;
    padding: 0 12px;
}
.finance-resumo-formas {
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.07);
    margin-bottom: 20px;
}
.finance-formas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}
.finance-forma-card {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.07);
}
.finance-forma-card small {
    display: block;
    color: rgba(255,255,255,.62);
    font-size: 12px;
    margin-bottom: 8px;
}
.finance-forma-card strong {
    color: #fff;
    font-size: 20px;
}

/* =========================================================
   v2.7.52.3.1 - Card de data no final da página
   ========================================================= */
.finance-periodo-card-final {
    margin-top: 24px !important;
    margin-bottom: 0 !important;
    opacity: .96;
}

.finance-periodo-card-final::before {
    content: "Filtro de período";
    display: block;
    margin-bottom: 12px;
    color: rgba(255,255,255,.72);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .6px;
}

/* =========================================================
   v2.7.52.3 - PIX, Dinheiro e Cartão
   ========================================================= */
.payment-method-selector {
    margin-bottom: 16px;
}
.payment-method-selector label {
    display:block;
    margin-bottom:8px;
    color:rgba(255,255,255,.78);
    font-size:13px;
    font-weight:800;
}
.payment-method-grid {
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}
.payment-option {
    position:relative;
    min-width:120px;
    cursor:pointer;
}
.payment-option input {
    position:absolute;
    opacity:0;
}
.payment-option span {
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    border-radius:14px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    color:#fff;
    font-weight:900;
}
.payment-option input:checked + span {
    background:rgba(37,99,235,.18);
    border-color:rgba(37,99,235,.45);
}
.payment-pill {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:88px;
    padding:7px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
}
.payment-pix {
    background:rgba(16,185,129,.14);
    color:#10b981;
}
.payment-cartao {
    background:rgba(59,130,246,.14);
    color:#60a5fa;
}

/* =========================================================
   v2.7.52.3 - PIX, Dinheiro e Cartão
   ========================================================= */
.payment-dinheiro {
    background: rgba(245,158,11,.14);
    color: #f59e0b;
}

/* =========================================================
   v2.7.52.4 - Obrigatório discreto + apoio CEP
   ========================================================= */
.required-label{
    display:inline-flex;
    align-items:center;
    width:max-content;
    margin:0 0 0 6px;
    padding:2px 7px;
    border-radius:999px;
    background:rgba(239,68,68,.10);
    border:1px solid rgba(239,68,68,.22);
    color:#fca5a5;
    font-size:10px;
    line-height:1.2;
    font-weight:700;
    letter-spacing:.02em;
    text-transform:none;
    vertical-align:middle;
}
.cep-hint{
    display:block;
    margin-top:6px;
    color:rgba(255,255,255,.58);
    font-size:12px;
    line-height:1.35;
}

/* =========================================================
   v2.7.52.8 - Faturamento pago por forma
   ========================================================= */
.finance-pago---pix,
.finance-pago-pix {
    background: rgba(16,185,129,.14);
    color: #10b981;
}
.finance-pago---dinheiro,
.finance-pago-dinheiro {
    background: rgba(245,158,11,.14);
    color: #f59e0b;
}
.finance-pago---cartao,
.finance-pago-cartao {
    background: rgba(59,130,246,.14);
    color: #60a5fa;
}

/* =========================================================
   v2.8.3 - Área do motorista operacional mobile
   ========================================================= */
.motorista-mobile-panel{
    display:grid;
    gap:16px;
    margin:18px 0 28px;
}
.motorista-card-principal{
    border:1px solid rgba(148,163,184,.18);
}
.motorista-info-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin-top:10px;
}
.motorista-info-grid div,
.motorista-endereco-box{
    padding:12px;
    border-radius:16px;
    background:rgba(15,23,42,.54);
    border:1px solid rgba(148,163,184,.14);
}
.motorista-info-grid small,
.motorista-endereco-box small{
    display:block;
    color:rgba(226,232,240,.62);
    font-size:11px;
    margin-bottom:4px;
}
.motorista-info-grid strong,
.motorista-endereco-box strong{
    display:block;
    color:#fff;
    font-size:14px;
}
.motorista-endereco-box{margin-top:12px;}
.motorista-endereco-box span{display:block;color:rgba(226,232,240,.68);margin-top:4px;}
.motorista-action-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin-top:14px;
}
.motorista-action-grid .button{width:100%;justify-content:center;}
.motorista-form-stack{display:grid;gap:9px;}
.motorista-form-stack label{font-size:12px;font-weight:800;color:rgba(226,232,240,.72);}
.motorista-form-stack input,
.motorista-form-stack select,
.motorista-form-stack textarea{
    width:100%;
    border-radius:14px;
    border:1px solid rgba(148,163,184,.18);
    background:rgba(15,23,42,.64);
    color:#fff;
    padding:11px 12px;
}
.motorista-fotos-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(110px,1fr));
    gap:10px;
    margin-top:14px;
}
.motorista-fotos-grid a{
    display:block;
    text-decoration:none;
    color:rgba(226,232,240,.86);
    border:1px solid rgba(148,163,184,.16);
    border-radius:14px;
    overflow:hidden;
    background:rgba(15,23,42,.5);
}
.motorista-fotos-grid img{display:block;width:100%;height:92px;object-fit:cover;}
.motorista-fotos-grid span{display:block;padding:7px 9px;font-size:12px;text-transform:capitalize;}
.motorista-historico-card{margin-top:16px;}
.motorista-historico-lista{display:grid;gap:10px;margin-top:10px;}
.motorista-historico-item{
    display:block;
    padding:12px;
    border-radius:16px;
    background:rgba(15,23,42,.52);
    border:1px solid rgba(148,163,184,.15);
    color:#fff;
    text-decoration:none;
}
.motorista-historico-item span{display:block;color:rgba(226,232,240,.64);font-size:12px;margin-top:4px;}
@media (max-width: 720px){
    .motorista-info-grid,
    .motorista-action-grid{grid-template-columns:1fr;}
    .motorista-mobile-panel .card{padding:14px;}
}


/* Rota motorista */
.rota-motorista-card {
    margin: 16px 0 18px;
    padding: 18px;
}
.rota-motorista-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}
.rota-motorista-head h3 {
    margin: 4px 0 6px;
}
.rota-motorista-lista {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}
.rota-motorista-stop {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 4px 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    background: rgba(15, 23, 42, .45);
}
.rota-motorista-stop span {
    grid-row: span 2;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, .14);
    color: #86efac;
    font-weight: 800;
}
.rota-motorista-stop small {
    color: var(--muted, #94a3b8);
}
@media (max-width: 720px) {
    .rota-motorista-head .button { width: 100%; justify-content: center; }
}

/* Motorista v2.8.5 - GPS, ocorrências e offline */
.motorista-offline-banner{
    display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
    padding:12px 14px;margin:12px 0 16px;border-radius:18px;
    border:1px solid rgba(59,130,246,.28);background:rgba(15,23,42,.72);color:#e2e8f0;
}
.motorista-offline-banner strong{color:#fff}.motorista-offline-banner span{font-size:13px;color:rgba(226,232,240,.72)}
.motorista-required-note{display:block;margin:2px 0 10px;color:#fbbf24;font-size:12px;font-weight:700}
.motorista-mini-lista{display:grid;gap:8px;margin-top:12px}
.motorista-mini-lista div{padding:10px;border:1px solid rgba(148,163,184,.15);border-radius:14px;background:rgba(15,23,42,.42)}
.motorista-mini-lista strong{display:block;color:#fff;font-size:13px}.motorista-mini-lista span{display:block;color:rgba(226,232,240,.64);font-size:12px;margin-top:3px}
.motorista-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:16px}
.motorista-kpi-card small{display:block;color:rgba(226,232,240,.62);font-weight:800;text-transform:uppercase;font-size:11px;letter-spacing:.06em}
.motorista-kpi-card strong{display:block;font-size:26px;margin-top:8px;color:#fff}.motorista-kpi-card span{display:block;color:rgba(226,232,240,.65);font-size:12px;margin-top:3px}
@media (max-width:720px){.motorista-kpi-grid{grid-template-columns:1fr}.motorista-offline-banner .button{width:100%;justify-content:center}}
.motorista-admin-grid{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:18px}.filters-inline,.inline-form{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.filters-inline input,.inline-form input{border:1px solid #d7dee8;border-radius:12px;padding:10px 12px;background:#fff}.button.small{padding:8px 12px;font-size:.85rem}.audit-line{padding:10px 0;border-bottom:1px solid #edf1f6;color:#334155}.audit-line a{font-weight:800;color:#0f172a;text-decoration:none}.motorista-foto-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:12px}.motorista-foto-grid a{display:block;text-decoration:none;color:#475569}.motorista-foto-grid img{width:100%;height:92px;object-fit:cover;border-radius:14px;border:1px solid #e2e8f0}.status-pill{display:inline-flex;padding:5px 10px;border-radius:999px;background:#eef6ff;color:#1d4ed8;font-weight:800;font-size:.78rem}


/* v3.0.81-restaura-app-real - Menu mobile Administração corrigido */
@media (max-width: 992px) {
  .mobile-drawer {
    width: min(92vw, 390px) !important;
  }

  .mobile-drawer-nav {
    padding-bottom: 28px !important;
  }

  .mobile-admin-group {
    margin-top: 8px !important;
    padding: 10px !important;
    border-radius: 18px !important;
    background: rgba(14, 165, 233, .08) !important;
    border: 1px solid rgba(56, 189, 248, .20) !important;
  }

  .mobile-admin-group .mobile-submenu-toggle {
    background: linear-gradient(135deg, rgba(14,165,233,.25), rgba(37,99,235,.20)) !important;
    border-color: rgba(56,189,248,.35) !important;
    color: #fff !important;
    font-size: 16px !important;
  }

  .mobile-admin-group .mobile-submenu-toggle strong {
    font-size: 18px !important;
    transition: transform .2s ease !important;
  }

  .mobile-admin-group:not(.open) .mobile-submenu-toggle strong {
    transform: rotate(-90deg) !important;
  }

  .mobile-admin-submenu {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-top: 10px !important;
    padding: 0 !important;
  }

  .mobile-menu-group:not(.open) .mobile-admin-submenu {
    display: none !important;
  }

  .mobile-submenu-link,
  .mobile-submenu a {
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    padding: 11px 13px !important;
    border-radius: 13px !important;
    background: rgba(15, 23, 42, .72) !important;
    border: 1px solid rgba(148, 163, 184, .16) !important;
    color: #eaf6ff !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
  }

  .mobile-submenu-link:active,
  .mobile-submenu a:active {
    transform: scale(.99);
    background: rgba(14,165,233,.18) !important;
  }

  .mobile-drawer-footer {
    margin-top: 12px !important;
  }
}


/* v3.0.81-restaura-app-real - Menu mobile novo */
@media (max-width: 992px) {
  .mobile-menu-btn, .mobile-drawer, .mobile-overlay { display: none !important; }

  .mobile-menu-btn-v3035 {
    position: fixed !important; top: 14px !important; left: 14px !important; z-index: 10050 !important;
    width: 46px !important; height: 46px !important; border: 1px solid rgba(56,189,248,.35) !important;
    border-radius: 14px !important; background: linear-gradient(135deg,#0ea5ff,#2563eb) !important;
    color: #fff !important; font-size: 24px !important; font-weight: 900 !important;
  }

  .mobile-overlay-v3035 {
    position: fixed !important; inset: 0 !important; z-index: 10040 !important;
    background: rgba(2,6,23,.72) !important; backdrop-filter: blur(4px) !important;
    opacity: 0 !important; pointer-events: none !important; transition: opacity .2s ease !important;
  }
  .mobile-overlay-v3035.active { opacity: 1 !important; pointer-events: auto !important; }

  .mobile-drawer-v3035 {
    position: fixed !important; top: 0 !important; left: 0 !important; bottom: 0 !important; z-index: 10060 !important;
    width: min(92vw, 400px) !important;
    background: radial-gradient(circle at top left,rgba(14,165,255,.20),transparent 36%), linear-gradient(180deg,#071426,#020817) !important;
    border-right: 1px solid rgba(56,189,248,.22) !important; box-shadow: 20px 0 60px rgba(0,0,0,.45) !important;
    transform: translateX(-105%) !important; transition: transform .24s ease !important;
    display: flex !important; flex-direction: column !important;
  }
  .mobile-drawer-v3035.active { transform: translateX(0) !important; }
  body.mobile-menu-open-v3035 { overflow: hidden !important; }

  .mobile-drawer-header-v3035 {
    display: flex !important; align-items: center !important; justify-content: space-between !important;
    padding: 18px 16px !important; border-bottom: 1px solid rgba(148,163,184,.18) !important;
  }
  .mobile-drawer-header-v3035 strong { display:block !important; color:#fff !important; font-size:18px !important; font-weight:900 !important; }
  .mobile-drawer-header-v3035 span { display:block !important; color:#94a3b8 !important; font-size:12px !important; margin-top:3px !important; }
  .mobile-drawer-close-v3035 {
    width:42px !important; height:42px !important; border:1px solid rgba(148,163,184,.18) !important;
    border-radius:14px !important; background:rgba(15,23,42,.72) !important; color:#fff !important; font-size:30px !important;
  }

  .mobile-drawer-nav-v3035 { flex:1 !important; overflow-y:auto !important; padding:14px 12px 22px !important; display:grid !important; gap:9px !important; }

  .mobile-link-v3035, .mobile-section-title-v3035 {
    width:100% !important; min-height:48px !important; border-radius:15px !important;
    background:rgba(15,23,42,.68) !important; border:1px solid rgba(148,163,184,.16) !important;
    color:#f8fafc !important; display:flex !important; align-items:center !important; justify-content:space-between !important;
    padding:12px 14px !important; text-decoration:none !important; font-size:15px !important; font-weight:900 !important; box-sizing:border-box !important;
  }
  .mobile-link-v3035.active, .admin-title-v3035 {
    background:linear-gradient(135deg,rgba(14,165,255,.26),rgba(37,99,235,.22)) !important;
    border-color:rgba(56,189,248,.42) !important;
  }

  .mobile-section-v3035 { display:grid !important; gap:8px !important; }
  .mobile-section-content-v3035 {
    display:none !important; gap:7px !important; padding:8px !important; border-radius:16px !important;
    background:rgba(2,6,23,.34) !important; border:1px solid rgba(148,163,184,.12) !important;
  }
  .mobile-section-v3035.open .mobile-section-content-v3035 { display:grid !important; }
  .admin-content-v3035 { display:grid !important; }

  .mobile-section-content-v3035 a {
    min-height:42px !important; display:flex !important; align-items:center !important; padding:10px 13px !important;
    border-radius:13px !important; background:rgba(15,23,42,.72) !important; border:1px solid rgba(148,163,184,.14) !important;
    color:#dbeafe !important; text-decoration:none !important; font-size:14px !important; font-weight:800 !important;
  }

  .mobile-footer-v3035 {
    display:flex !important; align-items:center !important; justify-content:space-between !important; gap:8px !important;
    padding:14px 14px 18px !important; border-top:1px solid rgba(148,163,184,.16) !important; color:#cbd5e1 !important; font-size:12px !important;
  }
  .mobile-footer-v3035 a {
    color:#fff !important; text-decoration:none !important; font-weight:900 !important; background:rgba(239,68,68,.18) !important;
    border:1px solid rgba(239,68,68,.30) !important; padding:8px 11px !important; border-radius:12px !important;
  }
}
@media (min-width: 993px) {
  .mobile-menu-btn-v3035, .mobile-overlay-v3035, .mobile-drawer-v3035 { display:none !important; }
}
