/* =========================================================
   DB PDV · core / layout, cards, botões, formulários e componentes
   Arquivo separado por área para facilitar manutenção.
   ========================================================= */

.app-body {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 306px;
    background: var(--sidebar);
    color: #f9eee6;
    padding: 26px 18px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.brand,
.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 900;
}

.brand-bolt {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
    color: #fff;
    font-weight: 900;
}

.nav-groups {
    display: grid;
    gap: 26px;
}

.nav-group {
    display: grid;
    gap: 8px;
}

.nav-group > span {
    color: #aa958c;
    font-weight: 800;
    padding-left: 4px;
}

.nav-group a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 8px;
    color: #ecded6;
    font-size: 20px;
    font-weight: 650;
}

.nav-group a b {
    width: 18px;
    text-align: center;
}

.nav-group a.active,
.nav-group a:hover {
    background: var(--sidebar-soft);
    color: #fff;
}

.logout {
    margin-top: auto;
    color: #f8e9df;
    font-size: 18px;
    font-weight: 700;
}

.main {
    margin-left: 306px;
    min-height: 100vh;
}

.bar {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 249, 239, .8);
}

.icon-btn {
    border: 0;
    background: transparent;
    font-size: 25px;
    cursor: pointer;
    color: var(--text);
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 38px 34px 24px;
}

.page-head h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1.05;
    letter-spacing: 0;
}

.page-head p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 22px;
}

.btn {
    border: 0;
    border-radius: 8px;
    min-height: 48px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 23, 20, .10);
}

.btn.orange {
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
}

.btn.cream {
    color: var(--text);
    background: #fff9ef;
    border: 1px solid var(--line);
}

.btn.danger {
    color: #fff;
    background: var(--danger);
}

.btn.full {
    width: 100%;
}

.btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.toast {
    margin: 0 34px 18px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #fff4df;
    border: 1px solid #ffd7a7;
    color: #9a4300;
    font-weight: 800;
}

.toast.success {
    color: #087443;
    background: #effdf4;
    border-color: #b9efcc;
}

.toast.danger {
    color: #b31626;
    background: #fff1f3;
    border-color: #ffcbd1;
}

.card,
.metrics article {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.card {
    margin: 0 34px 26px;
    padding: 28px;
}

.card h2 {
    margin: 0 0 22px;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    padding: 10px 34px 28px;
}

.metrics.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metrics article {
    min-height: 124px;
    padding: 24px 28px;
    position: relative;
}

.metrics span {
    display: block;
    color: var(--muted);
    font-size: 18px;
}

.metrics strong {
    display: block;
    margin-top: 10px;
    font-size: 32px;
}

.metrics small {
    color: var(--muted);
    font-size: 15px;
}

.metrics i {
    position: absolute;
    right: 28px;
    top: 26px;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--orange);
    color: #fff;
    font-style: normal;
    font-weight: 900;
}

.metrics i.teal {
    background: var(--teal);
}

.metrics i.green {
    background: var(--green);
}

.metrics i.gold {
    background: var(--gold);
}

.dash-grid,
.report-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 28px;
    padding: 0 34px 30px;
}

.dash-grid .card,
.report-grid .card {
    margin: 0;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}

.card-head h2 {
    margin: 0;
}

.card-head a,
.empty a {
    color: var(--orange);
    font-weight: 800;
}

.empty {
    text-align: center;
    color: var(--muted);
    font-size: 20px;
    padding: 46px 20px;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff7ef;
    border: 1px solid var(--line);
    color: var(--text);
    font-weight: 850;
}

.pill.open,
.pill.active {
    background: #effdf4;
    color: #087443;
}

.toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    margin: 0 34px 22px;
}

.toolbar form {
    min-width: 0;
}

.list-card {
    padding: 0;
    overflow: hidden;
}

.list-card table th,
.list-card table td {
    padding-left: 24px;
    padding-right: 24px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(0, 0, 0, .74);
    display: none;
    place-items: center;
    padding: 22px;
}

.modal.open {
    display: grid;
}

.modal-box {
    width: min(900px, 100%);
    max-height: 92vh;
    overflow: auto;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
}

.modal-box.small {
    width: min(520px, 100%);
}

.modal-box h2 {
    margin: 0 0 24px;
}

.close {
    position: absolute;
    right: 22px;
    top: 18px;
    border: 0;
    background: transparent;
    font-size: 30px;
    color: var(--muted);
    cursor: pointer;
}

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

.span-2 {
    grid-column: span 2;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 26px;
}

.swatch {
    width: 18px;
    height: 18px;
    display: inline-block;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 10px;
}


.cash-center {
    width: min(620px, calc(100% - 68px));
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.cash-icon {
    width: 86px;
    height: 86px;
    margin: 14px auto 20px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 40px;
}

.stack-form {
    display: grid;
    gap: 18px;
    text-align: left;
}

.actions-row {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin: 0 34px 24px;
}

.balance-band,
.trial-band {
    margin: 0 34px 26px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
    color: #fff;
    padding: 28px;
    box-shadow: var(--shadow);
}

.balance-band span,
.trial-band span {
    display: block;
    font-size: 20px;
}

.balance-band strong {
    display: block;
    font-size: 64px;
    margin-top: 10px;
}

.green-text {
    color: var(--green);
}

.danger-text {
    color: var(--danger);
}

.orange-text {
    color: var(--orange);
}

.muted {
    color: var(--muted);
}

.plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    padding: 8px 34px 40px;
}

.plan {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 36px;
    box-shadow: var(--shadow);
}

.plan.featured {
    border: 2px solid var(--orange);
}

.popular {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--orange);
    color: #fff;
    border-radius: 999px;
    padding: 6px 16px;
    font-weight: 900;
}

.price {
    font-size: 46px;
    font-weight: 900;
    margin: 20px 0 26px;
}

.price small {
    font-size: 20px;
    color: var(--muted);
}

.plan ul {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    display: grid;
    gap: 16px;
    color: #3c302b;
    font-size: 19px;
}

.plan li {
    color: #2d9d58;
}

.settings-card {
    max-width: 980px;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 106px;
    gap: 12px;
}


/* Refinamento DB PDV */
:root {
    --shadow: 0 10px 30px rgba(38, 24, 18, .10);
    --radius: 14px;
}

.brand-bolt {
    border-radius: 14px;
    font-size: 14px;
    letter-spacing: 0;
}

.brand strong,
.auth-logo strong {
    letter-spacing: 0;
}

.sidebar {
    width: 280px;
    padding: 22px 16px;
}

.main {
    margin-left: 280px;
}

.nav-group a {
    min-height: 40px;
    font-size: 16px;
    font-weight: 800;
}

.nav-group > span {
    font-size: 14px;
}

.page-head {
    padding: 30px 28px 18px;
}

.page-head h1 {
    font-size: clamp(28px, 3.2vw, 38px);
}

.page-head p {
    font-size: clamp(15px, 1.7vw, 20px);
}

.bar {
    height: 64px;
    padding: 0 28px;
}

.metrics {
    gap: 16px;
    padding: 8px 28px 22px;
}

.metrics article {
    min-height: 112px;
    padding: 20px;
    border-radius: 14px;
}

.metrics span {
    font-size: 15px;
}

.metrics strong {
    font-size: clamp(24px, 2.4vw, 30px);
}

.metrics i {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    right: 18px;
    top: 22px;
}

.card {
    margin-left: 28px;
    margin-right: 28px;
    padding: 22px;
    border-radius: 14px;
}

.dash-grid,
.report-grid {
    padding-left: 28px;
    padding-right: 28px;
    gap: 20px;
}

.btn {
    min-height: 42px;
    border-radius: 12px;
    padding: 0 18px;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(255, 105, 8, .18);
}

input,
select,
textarea {
    min-height: 44px;
    border-radius: 12px;
}

.row-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.row-actions form {
    margin: 0;
}

.row-actions .btn {
    min-height: 36px;
    padding: 0 12px;
}

.pill.blocked,
.pill.canceled {
    background: #fff1f3;
    color: var(--danger);
}

.report-filter {
    margin: 0 28px 18px;
    display: grid;
    grid-template-columns: 180px 180px auto auto 1fr;
    gap: 12px;
    align-items: end;
}

.logo-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fffaf3;
}

.logo-preview img {
    max-width: 92px;
    max-height: 62px;
    object-fit: contain;
}

.receipt-logo {
    display: block;
    max-width: 120px;
    max-height: 70px;
    object-fit: contain;
    margin: 0 auto 8px;
}

.auth-wrap {
    min-height: 100vh;
    padding: 22px;
    gap: 18px;
}

.auth-card {
    width: min(520px, 100%);
    padding: 26px;
}

.auth-card h1 {
    margin-top: 22px;
    font-size: 28px;
}

.auth-card p {
    font-size: 16px;
    margin-bottom: 20px;
}

.stack-form {
    gap: 14px;
}


/* =========================================================
   DB PDV · core / ajustes operacionais compartilhados
   Arquivo separado por área para facilitar manutenção.
   ========================================================= */


/* Rodada de refinamento operacional */
body {
    font-size: 14px;
}

.sidebar {
    width: 248px;
    padding: 18px 12px;
}

.main {
    margin-left: 248px;
}

.brand {
    font-size: 22px;
}

.brand-bolt {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 13px;
}

.nav-groups {
    gap: 18px;
}

.nav-group {
    gap: 5px;
}

.nav-group > span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0;
    opacity: .78;
}

.nav-group a {
    min-height: 36px;
    padding: 0 10px;
    font-size: 14px;
    border-radius: 10px;
}

.nav-group a b {
    width: 16px;
    font-size: 13px;
}

.logout {
    font-size: 14px;
}

.main {
    background: linear-gradient(180deg, #fffaf2 0%, #fff7ec 100%);
}

.bar {
    height: 56px;
    padding: 0 22px;
}

.page-head {
    padding: 24px 24px 14px;
}

.page-head h1 {
    font-size: clamp(24px, 2.6vw, 32px);
}

.page-head p {
    font-size: clamp(14px, 1.35vw, 17px);
}

.metrics {
    padding: 6px 24px 18px;
    gap: 12px;
}

.metrics article {
    min-height: 94px;
    padding: 16px;
}

.metrics span {
    font-size: 13px;
}

.metrics strong {
    font-size: clamp(20px, 2vw, 26px);
}

.metrics small {
    font-size: 12px;
}

.metrics i {
    width: 38px;
    height: 38px;
    right: 14px;
    top: 16px;
}

.cash-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cash-metrics article strong {
    font-size: clamp(17px, 1.7vw, 23px);
}

.card {
    margin-left: 24px;
    margin-right: 24px;
    padding: 18px;
}

.card h2 {
    font-size: 20px;
    margin-bottom: 14px;
}

.dash-grid,
.report-grid {
    padding-left: 24px;
    padding-right: 24px;
}

th,
td {
    padding: 11px 10px;
}

th {
    font-size: 12px;
}

input,
select,
textarea {
    min-height: 38px;
    font-size: 14px;
}

label {
    font-size: 13px;
}

.btn {
    min-height: 38px;
    font-size: 14px;
    border-radius: 10px;
}

.balance-band {
    margin-left: 24px;
    margin-right: 24px;
    padding: 22px;
}

.balance-band strong {
    font-size: clamp(38px, 5vw, 58px);
}

.product-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-cell img,
.product-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex: 0 0 auto;
}

.product-thumb {
    display: grid;
    place-items: center;
    background: #fff0dc;
    color: var(--orange);
    font-weight: 900;
    font-size: 12px;
}

.product-tile {
    min-height: 132px;
    gap: 8px;
}

.product-tile img {
    width: 100%;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    background: #fff2e4;
}

.product-tile strong {
    font-size: 14px;
}

.product-tile span {
    font-size: 17px;
}

.product-tile small {
    font-size: 12px;
}

.toolbar-summary {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    color: var(--muted);
}

.toolbar-summary strong {
    color: var(--text);
    font-size: 22px;
}

.alert-card {
    border-color: #ffd3aa;
    background: #fff8ed;
}

.stock-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stock-chips span {
    border-radius: 999px;
    padding: 7px 10px;
    background: #fff;
    border: 1px solid var(--line);
    color: #8a3c00;
    font-weight: 800;
}

.pdv {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
}

.pdv-mode .bar {
    height: 54px;
}

.cart h2 {
    font-size: 18px;
}

.totals strong {
    font-size: 20px;
}

.modal-box {
    padding: 24px;
}

.modal-box h2 {
    font-size: 22px;
}

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

@media (max-width: 900px) {
    .sidebar {
        width: 220px;
    }

    .main {
        margin-left: 220px;
    }
}

@media (max-width: 720px) {
    .main {
        margin-left: 0;
    }

    .sidebar {
        width: auto;
    }

    .cash-metrics,
    .metrics {
        grid-template-columns: 1fr;
    }

    .page-head,
    .metrics,
    .dash-grid,
    .report-grid,
    .pdv {
        padding-left: 12px;
        padding-right: 12px;
    }

    .card,
    .toolbar,
    .balance-band,
    .trial-band,
    .actions-row,
    .report-filter {
        margin-left: 12px;
        margin-right: 12px;
    }
}

@media (max-width: 1180px) {
    .metrics,
    .feature-grid,
    .plans {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero,
    .split-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .sidebar {
        width: 230px;
    }

    .main {
        margin-left: 230px;
    }

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

    .cart {
        height: auto;
        position: static;
    }

    .report-filter {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .sidebar {
        position: static;
        width: auto;
        border-radius: 0;
    }

    .main {
        margin-left: 0;
    }

    .site-header {
        height: auto;
        padding: 16px;
        align-items: flex-start;
        gap: 12px;
        flex-direction: column;
    }

    .site-header nav {
        width: 100%;
        gap: 8px;
        flex-wrap: wrap;
    }

    .hero {
        padding: 40px 18px;
    }

    .hero-preview {
        min-height: 320px;
        grid-template-columns: 82px 1fr;
    }

    .site-section {
        padding: 42px 18px;
    }

    .metrics,
    .metrics.three,
    .feature-grid,
    .plans,
    .form-grid,
    .pdv-search,
    .report-filter {
        grid-template-columns: 1fr;
    }

    .page-head,
    .metrics,
    .dash-grid,
    .report-grid,
    .pdv {
        padding-left: 16px;
        padding-right: 16px;
    }

    .card,
    .toolbar,
    .balance-band,
    .trial-band,
    .actions-row,
    .report-filter {
        margin-left: 16px;
        margin-right: 16px;
    }

    .page-head {
        padding-top: 22px;
    }

    .span-2 {
        grid-column: auto;
    }

    .list-card {
        overflow-x: auto;
    }

    th,
    td {
        white-space: nowrap;
    }
}



.master-impersonation-bar {
    position: sticky;
    top: 0;
    z-index: 90;
    min-height: 46px;
    margin-left: 306px;
    padding: 0 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #1f1512;
    color: #fff7ef;
    font-size: 13px;
    font-weight: 650;
}

.master-impersonation-bar a {
    min-height: 30px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #ff6908;
    color: white;
    font-weight: 760;
}

@media (max-width: 920px) {
    .master-impersonation-bar {
        margin-left: 0;
        padding: 10px 14px;
        flex-wrap: wrap;
    }
}

/* Assinatura · aviso global discreto */
.subscription-top-alert {
    margin: 0 34px 18px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-radius: 18px;
    border: 1px solid rgba(245, 158, 11, .24);
    background: linear-gradient(135deg, rgba(255, 248, 231, .96), rgba(255, 255, 255, .86));
    box-shadow: 0 12px 28px rgba(37, 23, 20, .045);
}

.subscription-top-alert.danger {
    border-color: rgba(220, 38, 38, .22);
    background: linear-gradient(135deg, rgba(255, 241, 242, .96), rgba(255, 255, 255, .88));
}

.subscription-top-alert strong,
.subscription-top-alert span {
    display: block;
}

.subscription-top-alert strong {
    color: #2b1b16;
    font-size: 14px;
    font-weight: 650;
    margin-bottom: 2px;
}

.subscription-top-alert span {
    color: #76685f;
    font-size: 13px;
    line-height: 1.42;
}

.subscription-top-alert .btn {
    flex: 0 0 auto;
    min-height: 38px;
    border-radius: 12px;
    font-size: 13px;
}

@media (max-width: 720px) {
    .subscription-top-alert {
        margin-left: 10px;
        margin-right: 10px;
        align-items: stretch;
        flex-direction: column;
    }

    .subscription-top-alert .btn {
        width: 100%;
    }
}

/* Assinatura · estado bloqueado no layout */
.app-body.subscription-restricted .page-head .btn.orange[href*="pdv"] { display: none; }
.subscription-top-alert.danger {
    border-color: rgba(220, 38, 38, .24);
    background: linear-gradient(135deg, rgba(255, 241, 241, .96), rgba(255, 250, 247, .96));
}


/* =========================================================
   DB PDV · Padrão definitivo de interface compacta
   Aplicar em todas as telas comuns do sistema:
   fontes menores, menos negrito, cards mais compactos.
   ========================================================= */

body:not(.pdv-mode) .page-head {
    padding-top: 30px !important;
    padding-bottom: 18px !important;
    gap: 18px !important;
}

body:not(.pdv-mode) .page-head h1 {
    font-size: clamp(23px, 1.8vw, 30px) !important;
    line-height: 1.12 !important;
    font-weight: 580 !important;
    letter-spacing: -.025em !important;
}

body:not(.pdv-mode) .page-head p {
    margin-top: 5px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    font-weight: 400 !important;
}

body:not(.pdv-mode) .card,
body:not(.pdv-mode) .metrics article,
body:not(.pdv-mode) .settings-card,
body:not(.pdv-mode) .report-card,
body:not(.pdv-mode) .report-kpi,
body:not(.pdv-mode) .card-soft {
    border-radius: 18px !important;
    box-shadow: 0 10px 28px rgba(37, 23, 20, .045) !important;
}

body:not(.pdv-mode) .card {
    padding: 22px !important;
}

body:not(.pdv-mode) .card h2,
body:not(.pdv-mode) .card-head h2,
body:not(.pdv-mode) .settings-card h2,
body:not(.pdv-mode) .report-card h3,
body:not(.pdv-mode) .reports-toolbar h2 {
    font-size: clamp(17px, 1.45vw, 21px) !important;
    line-height: 1.18 !important;
    font-weight: 580 !important;
    letter-spacing: -.018em !important;
}

body:not(.pdv-mode) h1,
body:not(.pdv-mode) h2,
body:not(.pdv-mode) h3,
body:not(.pdv-mode) h4 {
    font-weight: 580 !important;
}

body:not(.pdv-mode) strong,
body:not(.pdv-mode) b {
    font-weight: 600;
}

body:not(.pdv-mode) .metrics {
    gap: 14px !important;
    padding-top: 6px !important;
    padding-bottom: 22px !important;
}

body:not(.pdv-mode) .metrics article {
    min-height: 92px !important;
    padding: 16px 18px !important;
}

body:not(.pdv-mode) .metrics span {
    font-size: 13px !important;
    font-weight: 430 !important;
}

body:not(.pdv-mode) .metrics strong {
    margin-top: 6px !important;
    font-size: clamp(20px, 1.55vw, 26px) !important;
    line-height: 1.05 !important;
    font-weight: 580 !important;
    letter-spacing: -.03em !important;
}

body:not(.pdv-mode) .metrics small,
body:not(.pdv-mode) .muted,
body:not(.pdv-mode) small {
    font-weight: 400 !important;
}

body:not(.pdv-mode) .btn,
body:not(.pdv-mode) button.btn,
body:not(.pdv-mode) a.btn {
    min-height: 40px !important;
    padding-inline: 16px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    line-height: 1.15 !important;
    font-weight: 600 !important;
    box-shadow: 0 8px 18px rgba(37, 23, 20, .06) !important;
}

body:not(.pdv-mode) input,
body:not(.pdv-mode) select,
body:not(.pdv-mode) textarea {
    font-size: 14px !important;
    font-weight: 400 !important;
}

body:not(.pdv-mode) table th {
    font-size: 12px !important;
    font-weight: 600 !important;
}

body:not(.pdv-mode) table td {
    font-size: 13px !important;
    font-weight: 400 !important;
}

body:not(.pdv-mode) .toast {
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 14px !important;
}

.sidebar .brand,
.sidebar .auth-logo {
    font-size: 18px !important;
    font-weight: 650 !important;
}

.nav-group > span {
    font-size: 13px !important;
    font-weight: 580 !important;
}

.nav-group a {
    min-height: 40px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 12px !important;
}

.nav-group a.active {
    font-weight: 580 !important;
}

.logout {
    font-size: 14px !important;
    font-weight: 580 !important;
}

@media (max-width: 720px) {
    body:not(.pdv-mode) .page-head {
        padding: 22px 14px 14px !important;
    }

    body:not(.pdv-mode) .page-head h1 {
        font-size: 24px !important;
    }

    body:not(.pdv-mode) .page-head p {
        font-size: 13.5px !important;
    }

    body:not(.pdv-mode) .card,
    body:not(.pdv-mode) .settings-card {
        padding: 18px !important;
    }
}

/* Central de notificações: botão superior compacto */
.bar-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.notification-bell {
    position: relative;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid rgba(229, 216, 205, .9);
    border-radius: 14px;
    background: rgba(255, 253, 250, .82);
    color: var(--text, #241512);
    font-size: 13px;
    font-weight: 560;
    box-shadow: 0 10px 24px rgba(42, 24, 16, .05);
}

.notification-bell.has-unread {
    border-color: rgba(255, 107, 15, .36);
    background: rgba(255, 107, 15, .08);
    color: #e65a00;
}

.notification-bell em {
    min-width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    padding: 0 6px;
    border-radius: 999px;
    background: #ff6b0f;
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 650;
}

@media (max-width: 720px) {
    .notification-bell span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .notification-bell::before {
        content: "•";
        font-size: 24px;
        line-height: 1;
    }
}


/* WhatsApp contextual por módulo */
.btn-whatsapp,
a.btn-whatsapp,
button.btn-whatsapp {
    background: linear-gradient(135deg, #1fae5b, #118743) !important;
    border-color: rgba(17, 135, 67, .24) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(31, 174, 91, .16);
    font-weight: 650;
}

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

.whatsapp-disabled,
.btn.whatsapp-disabled,
span.whatsapp-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(40, 24, 18, .22) !important;
    background: rgba(255, 255, 255, .62) !important;
    color: rgba(40, 24, 18, .48) !important;
    cursor: not-allowed;
    box-shadow: none !important;
    font-weight: 550;
}

.catalog-wa-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 12px;
    background: #128743;
    color: #fff !important;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}
