﻿@charset 'utf-8';
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    --color-primary: #4F46E5;
    --color-primary-hover: #4338CA;
    --color-primary-soft: #EEF2FF;
    --color-secondary: #0F172A;
    --color-accent: #10B981;
    --color-background: #F0F2F5;
    --color-border: #E2E8F0;
    --color-font: oklch(37.2% 0.044 257.287);
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --shadow-subtle: 0 1px 3px 0 rgba(0, 0, 0, 0.02), 0 1px 2px -1px rgba(0, 0, 0, 0.02);
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.02), 0 4px 6px -4px rgba(0, 0, 0, 0.02);
    --shadow-floating: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --header-backgroung: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    color: var(--color-font);
    /*color: rgba(0, 0, 0, 0.05);*/
}

body {
    min-height: 100dvh;
    background-color: var(--color-background) !important;
}

input[type="password"] {
    letter-spacing: 0.3em;
}


.place-content-center {
    place-content: center;
}

.place-item-center {
    place-items: center;
}


/* ══════════════════════════════
   Página: Login
══════════════════════════════ */
.login-main {
    display: flex;
    min-height: 100dvh;
}

/* Painel esquerdo — identidade visual */
.login-brand-panel {
    display: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 60%, #0f172a 100%);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    flex: 0 0 42%;
}

.login-brand-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.login-brand-logo {
    width: 110px;
    margin-bottom: 1.75rem;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4));
}

.login-brand-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.login-brand-subtitle {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    max-width: 260px;
}

/* Círculos decorativos */
.login-brand-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    z-index: 1;
}

.login-brand-circle-1 {
    width: 320px;
    height: 320px;
    top: -80px;
    right: -100px;
}

.login-brand-circle-2 {
    width: 220px;
    height: 220px;
    bottom: 60px;
    left: -60px;
}

.login-brand-circle-3 {
    width: 140px;
    height: 140px;
    bottom: -40px;
    right: 40px;
}

/* Painel direito — formulário */
.login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-background);
    padding: 2rem 1.25rem;
}

.login-form-card {
    background: #ffffff;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-floating);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
}

.login-form-header {
    margin-bottom: 1.75rem;
}

.login-form-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-secondary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.login-form-subtitle {
    font-size: 0.875rem;
    color: #64748B;
}

/* Alerta de erro */
.login-alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 0.75rem;
    color: var(--np-red);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.login-alert i {
    flex-shrink: 0;
    font-size: 1rem;
}

/* Campos */
.login-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.login-input-group {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--color-border);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.login-input-group:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.login-floating {
    flex: 1;
    min-width: 0;
}

.login-floating .form-control {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent;
}

.login-floating .form-control:focus {
    border: none !important;
    box-shadow: none !important;
}

.login-input-icon {
    flex-shrink: 0;
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--color-border);
    color: #94A3B8;
    font-size: 1rem;
    order: -1;
}

.login-toggle-btn {
    flex-shrink: 0;
    width: 48px;
    background: transparent;
    border: none;
    border-left: 1px solid var(--color-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    font-size: 1rem;
    transition: color 0.15s, background 0.15s;
    padding: 0;
}

.login-toggle-btn:hover {
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

/* Botão entrar */
.login-submit-btn {
    display: block;
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: #ffffff;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
}

.login-submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #ffffff;
}

.login-submit-btn:active {
    transform: translateY(0);
}

/* Forçar cor branca no botão e alerta */
.login-submit-btn,
.login-submit-btn * {
    color: #ffffff;
}

.login-alert,
.login-alert * {
    color: var(--np-red);
}

/* Logo mobile — oculto no desktop pois o painel lateral já exibe */
.login-form-logo-mobile {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.login-form-logo-mobile img {
    width: 90px;
}

/* Desktop: exibe o painel de marca e oculta o logo dentro do card */
@media (min-width: 992px) {
    .login-brand-panel {
        display: flex;
    }

    .login-form-logo-mobile {
        display: none;
    }
}

/* Mobile: card centralizado sem painel lateral */
@media (max-width: 991px) {
    .login-form-card {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }
}

/* MASTERPAGE */
.main-container {
    min-height: 100dvh;
}

.al-right {
    text-align: right
}

.main-header {
    display: none;
}

.header-height {
    height: 70px;
}

.header-logo {
    max-height: 55px;
}

.nav-item {
    border-bottom: 1px dotted !important;
    font-size: 0.9em !important;
}

.menu-item {
    padding: 2px 0;
    list-style: none;
}

.dropdown-item {
    font-size: 0.9em !important;
}

.text-align-center {
    text-align: center;
}

.modal-background {
    background-color: #000;
    opacity: 0.7;
}

.main-menu {
    display: flex;
    flex-direction: column;
    width: 260px;
    min-height: 100dvh;
    background: linear-gradient(to bottom, #0f172a, #1e293b, #0f172a);
    box-shadow: 4px 0 24px rgba(0,0,0,0.35);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    overflow-y: auto;
}

.main-menu {
    color: #ffffff;
}

.main-menu .main-menu-header {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.main-menu .main-menu-header .header-logo {
    filter: brightness(1.15);
}

.main-menu .main-menu-nav {
    flex: 1;
    padding: 1rem 0.75rem;
}

.main-menu .main-menu-footer {
    padding: 0.75rem 0.75rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.main-menu .menu-nav-link,
.main-menu .menu-logout-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    transition: background 0.2s, color 0.2s;
    width: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
}

.main-menu .menu-nav-link:hover,
.main-menu .menu-logout-link:hover {
    background: #DC2626;
    color: #ffffff;
    text-decoration: none;
}

.main-menu .menu-nav-link.active {
    background: #C0392B;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(192,57,43,0.45);
    text-decoration: none;
    font-weight: 700;
    border-radius: 0.75rem;
}

.main-menu .menu-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: #ffffff;
    border-radius: 0.75rem 0 0 0.75rem;
}

.main-menu .menu-nav-link,
.main-menu .menu-nav-link *,
.main-menu .menu-logout-link,
.main-menu .menu-logout-link *,
.main-menu .main-menu-footer * {
    color: #ffffff;
}

.main-menu .menu-nav-link i {
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.main-menu .menu-logout-link:hover i {
    transform: rotate(12deg);
}

.main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    position: relative;
}

.glass-card {
    padding: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.1), inset 0 0 20px 10px rgba(255, 255, 255, 1);
    position: relative;
    overflow: hidden;
}

    .glass-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.8), transparent );
    }

    .glass-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 1px;
        height: 100%;
        background: linear-gradient( 180deg, rgba(255, 255, 255, 0.8), transparent, rgba(255, 255, 255, 0.3) );
    }

.totalizador-container {
    height: 200px;
}

.pedido-totalizador {
    font-size: 0.9em !important;
    background-color: oklch(20.8% 0.042 265.755);
    padding: 10px;
    color: #fff !important;
    height: 150px;
}

.fonte-verde {
    color: oklch(76.5% 0.177 163.223);
    font-weight: bold;
}

.fonte-branca {
    color: #fff;
    font-weight: bold;
}

.admin-list-header {
    display: flex;
    background-color: #f9f9f9;
    border-top: 1px solid #1E6CB0;
    padding-top: 5px;
    padding-bottom: 5px;
    border-bottom: 1px dotted #1E6CB0 !important;
    font-weight: bold;
    font-size: 0.8em;
    flex-wrap: wrap;
    text-wrap: wrap;
    /*height: 100%;*/
}

.pedido-lista-card {
    display: flex;
    place-content: center;
    flex-wrap: wrap;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-card);
    font-size: 0.8em !important;
}

.titulo-lista {
    display: none;
}

.font-size-08{
    font-size: 0.8em !important;
}

.text-align-right {
    text-align: right;
}

.button-full-width {
    width: 100% !important;
}

.toast-body {
    color: #fff !important;
}

/* ========================================
   CARD PRINCIPAL DE RECEITA - CSS COMPLETO
   ======================================== */
/* Container do Card */
.revenue-card {
    /* Layout */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem; /* 32px */
    /* Visual */
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(48px);
    -webkit-backdrop-filter: blur(48px);
    /*border: 1px solid #ffffff;*/
    border-radius: 1.5rem; /* 24px */
    box-shadow: 0 25px 50px -12px rgba(199, 210, 254, 0.3);
    /* Posicionamento */
    position: relative;
    overflow: hidden;
    /* Transição */
    transition: all 0.3s ease;
}

    /* Efeitos de blur decorativos */
    .revenue-card::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 20rem; /* 320px */
        height: 20rem; /* 320px */
        background: rgba(199, 210, 254, 0.5); /* indigo-100/50 */
        border-radius: 50%;
        filter: blur(96px);
        margin-right: -5rem;
        margin-top: -5rem;
        transition: all 0.7s ease;
    }

    .revenue-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 16rem; /* 256px */
        height: 16rem; /* 256px */
        background: rgba(239, 246, 255, 0.4); /* blue-50/40 */
        border-radius: 50%;
        filter: blur(96px);
        margin-left: -5rem;
        margin-bottom: -5rem;
        transition: all 0.7s ease;
    }

    /* Hover no card */
    .revenue-card:hover::before {
        background: rgba(199, 210, 254, 0.6);
    }

/* Conteúdo interno */
.revenue-card-content {
    position: relative;
    z-index: 10;
}

/* Badge de Crescimento */
.growth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; /* 8px */
    padding: 0.375rem 1rem; /* 6px 16px */
    background-color: #4f46e5; /* indigo-600 */
    color: #ffffff;
    font-size: 0.625rem; /* 10px */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(199, 210, 254, 0.5), 0 4px 6px -4px rgba(199, 210, 254, 0.5);
}

    .growth-badge svg {
        width: 0.75rem; /* 12px */
        height: 0.75rem; /* 12px */
    }

/* Seção de Receita */
.revenue-section {
    margin-top: 3rem; /* 48px */
}

/* Label da Receita */
.revenue-label {
    display: block;
    font-size: 0.625rem; /* 10px */
    font-weight: 700;
    color: #94a3b8; /* slate-400 */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem; /* 8px */
}

/* Container do Valor */
.revenue-value-container {
    display: flex;
    align-items: baseline;
    gap: 0.5rem; /* 8px */
}

/* Símbolo de Moeda */
.currency-symbol {
    font-size: 1.25rem; /* 20px */
    font-weight: 700;
    color: rgba(79, 70, 229, 0.4); /* indigo-600 com 40% opacidade */
}

/* Valor da Receita */
.revenue-amount {
    font-size: 3rem; /* 48px */
    font-weight: 900;
    color: #0f172a; /* slate-900 */
    letter-spacing: -0.05em;
}

/* Seção de Performance (barra de progresso) */
.performance-section {
    position: relative;
    z-index: 10;
    margin-top: 3rem; /* 48px */
}

.performance-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.625rem; /* 10px */
    font-weight: 700;
    margin-bottom: 0.75rem; /* 12px */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b; /* slate-500 */
}

.performance-percentage {
    color: #4f46e5; /* indigo-600 */
}

/* Barra de Progresso */
.progress-bar-container {
    height: 0.5rem; /* 8px */
    width: 100%;
    background-color: #f1f5f9; /* slate-100 */
    border-radius: 9999px;
    overflow: hidden;
    padding: 0.125rem; /* 2px */
    border: 1px solid #f8fafc; /* slate-50 */
}

.progress-bar-fill {
    height: 100%;
    background-color: #4f46e5; /* indigo-600 */
    border-radius: 9999px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: width 1.5s ease;
    animation: progressAnimation 1.5s ease 0.5s forwards;
}

@keyframes progressAnimation {
    from {
        width: 0;
    }

    to {
        width: 92%;
    }
}

/* Responsivo - Telas médias e maiores (768px+) */
@media (min-width: 768px) {
    .revenue-amount {
        font-size: 3.75rem; /* 60px */
    }

    .revenue-card {
        grid-column: span 2;
        grid-row: span 2;
    }
}

/* Responsivo - Telas grandes (1024px+) */
@media (min-width: 1024px) {
    .revenue-card {
        grid-row: span 2;
    }
}







/* ========================================
   PEDIDO CARD - Consulta de Pedidos
   ======================================== */
.pedido-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 20px;
}

.pedido-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.pedido-card-numero {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.pedido-card-badge {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 999px;
}

.badge-concluido {
    color: #15803d;
    background-color: #dcfce7;
}

.badge-pendente {
    color: #b45309;
    background-color: #fef3c7;
}

.badge-confirmado {
    color: #1d4ed8;
    background-color: #dbeafe;
}

.badge-separacao {
    color: #6d28d9;
    background-color: #ede9fe;
}

.badge-devolvido {
    color: #374151;
    background-color: #f3f4f6;
}

.badge-em-transito {
    color: #4338ca;
    background-color: #e0e7ff;
}

.badge-cancelado {
    color: #b91c1c;
    background-color: #fee2e2;
}

.pedido-card-cliente {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 4px;
}

.pedido-card-hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 12px 0;
}

.pedido-card-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pedido-card-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pedido-card-label {
    font-size: 0.9rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pedido-card-label i {
    font-size: 1rem;
    color: #94a3b8;
}

.pedido-card-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
}

.pedido-card-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pedido-card-total-label {
    font-size: 0.9rem;
    color: #64748b;
}

.pedido-card-total-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #16a34a;
    letter-spacing: -0.02em;
}

/* ========================================
   STEP WIZARD – Novo Pedido
   ======================================== */
.steps-wizard {
    display: flex;
    align-items: center;
}

.step-wizard-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.step-wizard-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    background-color: #e2e8f0;
    color: #94a3b8;
    border: 2px solid #e2e8f0;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.step-wizard-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: #94a3b8;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.step-wizard-line {
    flex: 1;
    height: 2px;
    background-color: #e2e8f0;
    margin: 0 8px;
    margin-bottom: 26px;
    transition: background-color 0.3s ease;
}

.step-wizard-line-done {
    background-color: var(--color-accent);
}

/* Step ativo */
.step-wizard-item-active .step-wizard-circle {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.step-wizard-item-active .step-wizard-label {
    color: var(--color-primary);
    font-weight: 700;
}

/* Step concluído */
.step-wizard-item-done .step-wizard-circle {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.step-wizard-item-done .step-wizard-label {
    color: var(--color-accent);
    font-weight: 600;
}

/* Card cliente selecionado */
.cliente-selecionado-card {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
}

/* Totalizador: altura fixa, não cresce com o conteúdo da coluna vizinha */
.totalizador-container {
    height: auto !important;
}

.pedido-totalizador {
    height: auto !important;
    min-height: 170px;
}

/* ========================================
   CLIENTE CARD – Consulta de Clientes
   ======================================== */
.cliente-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 20px;
    transition: box-shadow 0.2s ease;
}

.cliente-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.cliente-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cliente-card-codigo {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.cliente-card-razao {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.35;
    margin-bottom: 3px;
}

.cliente-card-fantasia {
    font-size: 0.85rem;
    color: #64748b;
}

.cliente-card-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cliente-card-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

/* Status badges para clientes */
.badge-ativo {
    color: #15803d;
    background-color: #dcfce7;
}

.badge-inativo {
    color: #b91c1c;
    background-color: #fee2e2;
}

/* Botão alinhado à altura do form-floating */
.btn-height-input {
    height: 58px;
}

/* Empty state – estado vazio / inicial */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.empty-state p {
    font-size: 1rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 4px;
}

.empty-state small {
    font-size: 0.82rem;
    color: #cbd5e1;
}

/* ========================================
   NOVO PEDIDO – Redesign (np-)
   ======================================== */
:root {
    --np-red:        #DC2626;
    --np-red-hover:  #B91C1C;
    --np-red-bg:     #FEF2F2;
    --np-red-border: #FECACA;
}

.consulta-total-label {
    font-size: 0.85rem;
}

.np-fator-erro {
    display: block;
    font-size: 0.72rem;
    color: #DC2626;
    min-height: 1rem;
    margin-top: 0.2rem;
}

.np-input-invalido {
    border-color: #DC2626 !important;
    background-color: #FEF2F2 !important;
}

.np-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.np-back-btn {
    color: #64748b;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.25rem;
    line-height: 1;
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.np-back-btn:hover { color: #1e293b; }

.np-page-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.np-subtitle {
    font-size: 0.875rem;
    color: #94a3b8;
    display: block;
    margin-top: 0.15rem;
}

/* Barra de progresso */
.np-progress {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.np-progress-segment {
    flex: 1;
    height: 0.375rem;
    border-radius: 0.25rem;
    background: #e2e8f0;
    transition: background 0.3s ease;
}

.np-progress-segment-fill {
    background: var(--np-red);
}

/* Card de conteúdo */
.np-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #f1f5f9;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.np-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.25rem;
}

/* Campo de busca de cliente */
.np-search-wrapper {
    position: relative;
    margin-bottom: 1.25rem;
}

.np-search-icon-lbl {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
}

.np-search-input {
    display: block;
    width: 100%;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 0.625rem;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    font-size: 0.9rem;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s;
}

.np-search-input:focus  { border-color: #94a3b8; }
.np-search-input::placeholder { color: #94a3b8; }

/* Grid de seleção de cliente */
.np-client-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.np-client-card {
    border: 1.5px solid #E2E8F0;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    transition: border-color 0.15s, background 0.15s;
    user-select: none;
}

.np-client-card:hover { border-color: #94a3b8; }

.np-client-card-selected {
    border-color: var(--np-red) !important;
    background: var(--np-red-bg);
}

.np-client-card-hidden  { display: none; }
.np-client-off-page     { display: none; }

.np-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.np-pag-btn {
    border: 1.5px solid #E2E8F0;
    border-radius: 0.5rem;
    background: #fff;
    padding: 0.25rem 0.65rem;
    cursor: pointer;
    color: #475569;
    transition: border-color 0.15s, color 0.15s;
}

.np-pag-btn:hover:not(:disabled) {
    border-color: var(--np-red);
    color: var(--np-red);
}

.np-pag-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.np-pag-info {
    font-size: 0.85rem;
    color: #64748b;
    min-width: 7rem;
    text-align: center;
}

.np-client-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.15rem;
}

.np-client-region {
    font-size: 0.8rem;
    color: #94a3b8;
}

.np-client-check {
    color: var(--np-red);
    font-size: 1.1rem;
    opacity: 0;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

.np-client-card-selected .np-client-check { opacity: 1; }

/* Alerta de validação */
.np-alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: #FEF2F2;
    border: 1px solid var(--np-red-border);
    border-radius: 0.5rem;
    color: var(--np-red);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Navegação entre steps */
.np-nav {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.np-btn-next {
    appearance: none;
    -webkit-appearance: none;
    background: var(--np-red);
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.np-btn-next:hover { background: var(--np-red-hover); }

.np-btn-back {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    color: #64748b;
    border: 1.5px solid #E2E8F0;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.np-btn-back:hover {
    border-color: #94a3b8;
    color: #1e293b;
}

@media (max-width: 767px) {
    .np-client-grid { grid-template-columns: 1fr; }
    .np-page-title  { font-size: 1.3rem; }
    .np-nav         { flex-direction: column-reverse; }
    .np-btn-next, .np-btn-back { width: 100%; text-align: center; }
}

/* Totalizador de pedido */
.np-totalizador {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: #fff8f8;
    border: 1px solid #fecaca;
    border-radius: 0.75rem;
}

.np-totalizador-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
}

.np-totalizador-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

.np-totalizador-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.np-totalizador-total {
    font-size: 1.35rem;
    color: #DC2626;
}

.np-totalizador-separator {
    width: 1px;
    height: 2.5rem;
    background: #fecaca;
}

@media (max-width: 576px) {
    .np-totalizador {
        justify-content: space-around;
        gap: 0.5rem;
    }

    .np-totalizador-item {
        align-items: center;
    }
}

/* Bottom Navigation */
.bottom-nav {
    display: none;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    text-decoration: none;
    color: #94a3b8;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease;
}

.bottom-nav-item i,
.bottom-nav-item span {
    color: inherit;
}

.bottom-nav-item i {
    font-size: 1.25rem;
}

.bottom-nav-item span {
    font-size: 0.7rem;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--color-primary);
}

/* ── Produto / Cliente search dropdown ──────────────────────────────────── */
.produto-search-wrapper,
.cliente-search-wrapper,
.cliente-consulta-search-wrapper {
    position: relative;
}

.produto-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    max-height: 280px;
    overflow-y: auto;
}

.produto-dropdown.ativo {
    display: block;
}

.produto-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #f2f2f2;
    font-size: 0.85rem;
}

.produto-dropdown-item:last-child {
    border-bottom: none;
}

.produto-dropdown-item:hover {
    background-color: #f8f9fa;
}

.produto-dropdown-sku {
    font-weight: 700;
    color: #444;
    min-width: 70px;
    white-space: nowrap;
}

.produto-dropdown-nome {
    flex: 1;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.produto-dropdown-preco {
    color: #198754;
    font-weight: 600;
    white-space: nowrap;
}

.produto-dropdown-vazio {
    padding: 0.75rem;
    color: #6c757d;
    font-size: 0.85rem;
    text-align: center;
}

/* Aplica regras APENAS para dispositivos menores que um tablet vertical */
@media (max-width: 767px) {
    .main-header {
        display: flex;
        flex-wrap: wrap;
        place-items: center;
        height: 70px;
        background-color: var(--header-backgroung);
    }

    .container-fluid {
        height: 60px;
        display: flex;
        flex-wrap: wrap;
        place-items: center;
    }

        .container-fluid i {
            font-size: 1.2em;
        }

    .main-menu {
        display: none;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding-bottom: 72px;
    }

    .admin-list-header {
        display: none !important;
    }

    .titulo-lista {
        display: flex;
        font-weight: bold;
    }

    .bottom-nav {
        display: flex;
        align-items: center;
        justify-content: space-around;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background-color: #ffffff;
        border-top: 1px solid var(--color-border);
        z-index: 50;
    }
}

/* ── Pedido Card — clicável ──────────────────────────────────────────────── */
.pedido-card {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.pedido-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.18);
    text-decoration: none;
    color: inherit;
}

/* ── Detalhe Pedido ──────────────────────────────────────────────────────── */
.detalhe-loading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem;
    color: var(--color-secondary);
    font-size: 1rem;
}

.detalhe-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.detalhe-page-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.detalhe-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--color-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.detalhe-back-btn:hover {
    background: var(--color-background);
    border-color: var(--color-primary);
    color: var(--color-primary);
    text-decoration: none;
}

.detalhe-page-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.detalhe-page-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.detalhe-header-date {
    font-size: 0.85rem;
    color: #64748b;
}

/* ── Grid de Cards de Informações ── */
.detalhe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.detalhe-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.detalhe-card-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.detalhe-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detalhe-info-destaque {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-secondary);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0.25rem;
}

.detalhe-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.detalhe-info-label {
    color: #64748b;
    white-space: nowrap;
}

.detalhe-info-value {
    color: var(--color-secondary);
    font-weight: 500;
    text-align: right;
}

.detalhe-info-value-wrap {
    word-break: break-all;
    white-space: normal;
}

.detalhe-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 2px solid var(--color-border);
}

.detalhe-total-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-secondary);
}

.detalhe-total-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-accent);
}

/* ── Observação ── */
.detalhe-observacao {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-xl);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.detalhe-observacao-texto {
    display: block;
    font-size: 0.9rem;
    color: #92400e;
    margin-top: 0.5rem;
    line-height: 1.5;
}

/* ── Seção de Itens ── */
.detalhe-itens-section {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
    margin-bottom: 2rem;
}

.detalhe-itens-header {
    margin-bottom: 1rem;
}

.detalhe-itens-table-wrapper {
    overflow-x: auto;
    display: block;
}

.detalhe-itens-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.detalhe-itens-table thead tr {
    border-bottom: 2px solid var(--color-border);
}

.detalhe-itens-table th {
    padding: 0.65rem 0.75rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    white-space: nowrap;
}

.detalhe-itens-table th.col-qtd,
.detalhe-itens-table th.col-preco,
.detalhe-itens-table th.col-subtotal {
    text-align: right;
}

.detalhe-item-row {
    border-bottom: 1px solid var(--color-border);
    transition: background 0.1s;
}

.detalhe-item-row:last-child {
    border-bottom: none;
}

.detalhe-item-row:hover {
    background: var(--color-background);
}

.detalhe-itens-table td {
    padding: 0.75rem;
    color: var(--color-secondary);
    vertical-align: middle;
}

.detalhe-itens-table td.col-qtd,
.detalhe-itens-table td.col-preco,
.detalhe-itens-table td.col-subtotal {
    text-align: right;
}

.detalhe-produto-id {
    font-weight: 600;
    color: var(--color-secondary);
    font-size: 0.875rem;
}

.detalhe-qtd-badge {
    display: inline-block;
    background: #e0e7ff;
    color: #3730a3;
    border-radius: 0.375rem;
    padding: 0.15rem 0.55rem;
    font-weight: 600;
    font-size: 0.8rem;
}

.detalhe-preco-praticado {
    color: var(--color-accent);
    font-weight: 600;
}

.detalhe-subtotal {
    font-weight: 700;
    color: var(--color-secondary);
}

.detalhe-itens-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--color-border);
}

.detalhe-itens-footer-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detalhe-itens-footer-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-accent);
}

/* ── Cards mobile para itens ── */
.detalhe-itens-cards {
    display: none;
}

.detalhe-item-card {
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    padding: 0.9rem;
    margin-bottom: 0.75rem;
}

.detalhe-item-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.detalhe-item-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.detalhe-item-card-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.4rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--color-border);
}

@media (max-width: 767px) {
    .detalhe-itens-table-wrapper {
        display: none;
    }

    .detalhe-itens-cards {
        display: block;
    }

    .detalhe-page-title {
        font-size: 1.2rem;
    }

    .detalhe-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Alertas variantes ── */
.np-alert-danger {
    background: #FEF2F2;
    border-color: var(--np-red-border);
    color: var(--np-red);
}

.np-alert-success {
    background: #F0FDF4;
    border: 1px solid #86EFAC;
    color: #166534;
}

/* ══════════════════════════════
   Página: Alterar Senha
══════════════════════════════ */
.alterar-senha-page {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding-bottom: 2rem;
}

.alterar-senha-card {
    background: #fff;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-floating);
    width: 100%;
    max-width: 460px;
    overflow: hidden;
}

/* Cabeçalho com gradiente */
.alterar-senha-card-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    padding: 2rem 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.alterar-senha-card-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 28px;
    background: #fff;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.alterar-senha-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
}

.alterar-senha-icon {
    font-size: 1.75rem;
    color: #fff !important;
}

.alterar-senha-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff !important;
    margin: 0 0 0.25rem;
}

.alterar-senha-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0;
}

/* Corpo do card */
.alterar-senha-card-body {
    padding: 0.5rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

/* Alertas internos */
.alterar-senha-alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.alterar-senha-alert-danger {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: var(--np-red);
}

.alterar-senha-alert-success {
    background: #F0FDF4;
    border: 1px solid #86EFAC;
    color: #166534;
}

/* Rótulo de seção */
.alterar-senha-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary) !important;
    margin-bottom: -0.25rem;
}

/* Divisor entre seções */
.alterar-senha-divider-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.25rem 0;
}

.alterar-senha-divider-section::before,
.alterar-senha-divider-section::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.alterar-senha-divider-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary) !important;
    white-space: nowrap;
}

/* Campo com botão de visibilidade */
.alterar-senha-input-group {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--color-border);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: border-color 0.15s;
}

.alterar-senha-input-group:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.alterar-senha-floating {
    flex: 1;
    min-width: 0;
}

.alterar-senha-floating .form-control {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent;
}

.alterar-senha-floating .form-control:focus {
    border: none !important;
    box-shadow: none !important;
}

.alterar-senha-toggle-btn {
    flex-shrink: 0;
    width: 48px;
    background: transparent;
    border: none;
    border-left: 1px solid var(--color-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8 !important;
    font-size: 1rem;
    transition: color 0.15s, background 0.15s;
    padding: 0;
}

.alterar-senha-toggle-btn:hover {
    background: var(--color-primary-soft);
    color: var(--color-primary) !important;
}

/* Indicador de força de senha */
.alterar-senha-strength {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: -0.25rem;
}

.alterar-senha-strength-track {
    flex: 1;
    height: 4px;
    background: var(--color-border);
    border-radius: 99px;
    overflow: hidden;
}

.alterar-senha-strength-bar {
    height: 100%;
    width: 0;
    border-radius: 99px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-fraca  { background: #EF4444; }
.strength-media  { background: #F59E0B; }
.strength-boa    { background: #3B82F6; }
.strength-forte  { background: var(--color-accent); }

.alterar-senha-strength-text {
    font-size: 0.72rem;
    font-weight: 600;
    min-width: 36px;
    text-align: right;
    color: #64748B !important;
}

/* Botão de submit */
.alterar-senha-submit-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: #fff !important;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-top: 0.5rem;
    transition: opacity 0.15s, transform 0.1s;
}

.alterar-senha-submit-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    color: #fff !important;
}

.alterar-senha-submit-btn:active {
    transform: translateY(0);
}

@media (max-width: 576px) {
    .alterar-senha-card {
        max-width: 100%;
        border-radius: var(--radius-xl);
    }

    .alterar-senha-card-header {
        padding: 1.5rem 1.5rem 2rem;
    }

    .alterar-senha-card-body {
        padding: 0.5rem 1.25rem 1.25rem;
    }
}

/* ══════════════════════════════════════════
   Dashboard / Home
══════════════════════════════════════════ */

/* Cabeçalho da página */
.dash-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.dash-page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0;
}

.dash-year-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1.5px solid var(--color-border);
    border-radius: 0.625rem;
    padding: 0.35rem 0.75rem;
}

.dash-year-icon {
    color: var(--color-primary);
    font-size: 0.9rem;
}

.dash-year-select {
    border: none;
    outline: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-secondary);
    background: transparent;
    cursor: pointer;
}

/* KPI Cards */
.dash-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.dash-kpi-card {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid transparent;
}

.dash-kpi-receita  { border-left-color: var(--color-primary); }
.dash-kpi-pedidos  { border-left-color: var(--color-accent);  }
.dash-kpi-ticket   { border-left-color: #F59E0B;              }
.dash-kpi-clientes { border-left-color: #06B6D4;              }

.dash-kpi-icon {
    width: 42px;
    height: 42px;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.dash-kpi-receita  .dash-kpi-icon { background: var(--color-primary-soft); color: var(--color-primary); }
.dash-kpi-pedidos  .dash-kpi-icon { background: #ECFDF5;                   color: var(--color-accent);  }
.dash-kpi-ticket   .dash-kpi-icon { background: #FFFBEB;                   color: #F59E0B;              }
.dash-kpi-clientes .dash-kpi-icon { background: #ECFEFF;                   color: #06B6D4;              }

.dash-kpi-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dash-kpi-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94A3B8;
    white-space: nowrap;
}

.dash-kpi-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card de gráfico base */
.dash-chart-card {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.dash-chart-full {
    width: 100%;
}

.dash-chart-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.dash-chart-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Linha com 2 colunas */
.dash-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 0;
}

/* ── Gráfico de Barras Verticais (Vendas por Mês) ── */
.dash-vbar-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.35rem;
    height: 180px;
    padding-bottom: 2rem;
    position: relative;
}

.dash-vbar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.dash-vbar-col:hover .dash-vbar-tooltip {
    opacity: 1;
    transform: translateY(-4px);
}

.dash-vbar-tooltip {
    position: absolute;
    top: -52px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-secondary);
    color: #fff;
    font-size: 0.68rem;
    padding: 0.35rem 0.6rem;
    border-radius: 0.4rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 10;
    text-align: center;
}

.dash-vbar-tooltip small {
    display: block;
    opacity: 0.75;
}

.dash-vbar-track {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
}

.dash-vbar-fill {
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    border-radius: 0.35rem 0.35rem 0 0;
    transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-height: 2px;
}

.dash-vbar-label {
    position: absolute;
    bottom: -1.5rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: #94A3B8;
    white-space: nowrap;
}

/* ── Donut (Status) ── */
.dash-donut-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.dash-donut-container {
    position: relative;
    flex-shrink: 0;
    width: 130px;
    height: 130px;
}

.dash-donut {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--color-border);
}

.dash-donut-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dash-donut-total {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1;
}

.dash-donut-total-label {
    font-size: 0.62rem;
    font-weight: 600;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dash-donut-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.dash-donut-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.dash-donut-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--color-border);
}

.dash-donut-legend-label {
    flex: 1;
    color: #64748B;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-donut-legend-count {
    font-weight: 700;
    color: var(--color-secondary);
    min-width: 24px;
    text-align: right;
}

.dash-donut-legend-pct {
    font-size: 0.72rem;
    color: #94A3B8;
    min-width: 32px;
    text-align: right;
}

/* ── Barras Horizontais (Rankings) ── */
.dash-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.dash-ranking-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.dash-ranking-meta {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.dash-ranking-pos {
    width: 20px;
    height: 20px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-ranking-name {
    flex: 1;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.dash-ranking-name-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dash-ranking-sub {
    font-size: 0.7rem;
    color: #94A3B8;
}

.dash-ranking-value {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.dash-hbar-track {
    height: 6px;
    background: var(--color-border);
    border-radius: 99px;
    overflow: hidden;
}

.dash-hbar-fill {
    height: 100%;
    width: 0;
    border-radius: 99px;
    transition: width 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dash-hbar-primary { background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover)); }
.dash-hbar-accent  { background: linear-gradient(90deg, var(--color-accent), #059669);                    }
.dash-hbar-purple  { background: linear-gradient(90deg, #8B5CF6, #6D28D9);                                }

/* Garante que os cards não deixem conteúdo vazar */
.dash-chart-card {
    overflow: hidden;
}

/* O gráfico de barras verticais rola internamente se necessário,
   evitando que as 12 colunas causem scroll na página */
.dash-vbar-chart {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;          /* Firefox */
}

.dash-vbar-chart::-webkit-scrollbar {
    display: none;                  /* Chrome / Safari */
}

.dash-vbar-col {
    min-width: 28px;                /* largura mínima por mês */
}

/* ── Responsividade ── */
@media (max-width: 1100px) {
    .dash-kpi-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dash-kpi-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-row-2 {
        grid-template-columns: 1fr;
    }

    .dash-vbar-chart {
        height: 140px;
    }

    .dash-donut-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .dash-donut-container {
        width: 110px;
        height: 110px;
    }

    .dash-ranking-name {
        white-space: normal;
        word-break: break-word;
    }
}

@media (max-width: 576px) {
    /* Cabeçalho da página */
    .dash-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* KPI cards */
    .dash-kpi-row {
        grid-template-columns: 1fr;
        gap: 0.625rem;
    }

    .dash-kpi-card {
        padding: 0.875rem 0.75rem;
        gap: 0.625rem;
    }

    .dash-kpi-icon {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .dash-kpi-label {
        font-size: 0.65rem;
    }

    .dash-kpi-value {
        font-size: 0.88rem;
        white-space: normal;
        word-break: break-all;
    }

    /* Cards de gráfico */
    .dash-chart-card {
        padding: 1rem 0.875rem;
    }

    /* Barras verticais */
    .dash-vbar-chart {
        height: 120px;
        gap: 0.2rem;
        padding-bottom: 1.75rem;
    }

    .dash-vbar-col {
        min-width: 22px;
    }

    .dash-vbar-label {
        font-size: 0.6rem;
    }

    /* Donut */
    .dash-donut-wrapper {
        gap: 1rem;
    }

    .dash-donut-container {
        width: 100px;
        height: 100px;
        align-self: center;
    }

    .dash-donut-hole {
        width: 58px;
        height: 58px;
    }

    .dash-donut-legend {
        width: 100%;
    }

    .dash-donut-item {
        gap: 0.4rem;
    }

    .dash-donut-legend-label {
        white-space: normal;
        word-break: break-word;
    }

    /* Rankings */
    .dash-ranking-meta {
        flex-wrap: wrap;
    }

    .dash-ranking-value {
        font-size: 0.75rem;
    }
}