/* ============================================================
   MAXELETRO - CSS Global de Configuração
   Ajuste aqui as cores e fontes do sistema
   ============================================================ */

:root {
    /* ---------- SIDEBAR ---------- */
    --sidebar-fundo: #c1eff2;
    --sidebar-fundo-simples: #f0efe9;
    --sidebar-texto: #332f27;
    --sidebar-texto-hover: #282626;
    --sidebar-item-hover-fundo: #a0e4f9;
    --sidebar-item-ativo-fundo: #f7e285;
    --sidebar-item-ativo-texto: #000000;
    --sidebar-titulo: #6943e8;
    --sidebar-marca-fundo: #f7c0c0;
    --sidebar-borda:  #282626;
    /* ---------- FONTE ---------- */
    --fonte-principal: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --fonte-tamanho-base: 12px;
    --fonte-peso-titulo: 700;
}

/* ============================================================
   APLICAÇÃO DA FONTE GLOBAL
   ============================================================ */
html,
body,
body :not(i):not([class^="bi"]):not([class*=" bi"]):not([class^="fa"]):not([class*=" fa"]):not([class^="pe-7s"]):not([class*=" pe-7s"]) {
    font-family: var(--fonte-principal) !important;
}

body {
    font-size: var(--fonte-tamanho-base);
}

/* ============================================================
   SIDEBAR - Fundo
   ============================================================ */
.app-container .app-sidebar,
.app-sidebar {
    background: var(--sidebar-fundo-simples);
    background-image: var(--sidebar-fundo);
}

.app-sidebar .app-sidebar__inner {
    background: transparent;
}

/* Marca / logo dentro do sidebar */
.app-sidebar .app-header__logo,
.app-header__logo {
    background: var(--sidebar-marca-fundo);
    border-bottom: 1px solid var(--sidebar-borda);
}

.app-header__logo .brand-text {
    color: #4a3f2a;
    font-weight: var(--fonte-peso-titulo);
}

/* ============================================================
   SIDEBAR - Cabeçalhos de seção
   ============================================================ */
.app-sidebar .app-sidebar__heading {
    color: var(--sidebar-titulo);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 20px 6px;
}

/* ============================================================
   SIDEBAR - Itens do menu
   ============================================================ */
.app-sidebar .vertical-nav-menu li a {
    color: var(--sidebar-texto);
    border-radius: 8px;
    margin: 2px 8px;
    padding: 0 14px 0 45px;
    height: 2.4rem;
    line-height: 2.4rem;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.app-sidebar .vertical-nav-menu li a .metismenu-icon,
.app-sidebar .vertical-nav-menu li a > .metismenu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 5px;
    top: 50%;
    margin-top: -17px;
    height: 34px;
    width: 34px;
    line-height: 34px;
    font-size: 1.1rem;
    opacity: 0.7;
    color: var(--sidebar-texto);
}

.app-sidebar .vertical-nav-menu li a:hover {
    color: var(--sidebar-texto-hover);
    background: var(--sidebar-item-hover-fundo);
}

.app-sidebar .vertical-nav-menu li a.mm-active {
    color: var(--sidebar-item-ativo-texto);
    background: var(--sidebar-item-ativo-fundo);
    font-weight: 600;
}

.app-sidebar .vertical-nav-menu ul > li > a {
    color: var(--sidebar-texto);
    opacity: 0.85;
    padding-left: 45px;
}

.app-sidebar .vertical-nav-menu ul > li > a:hover {
    color: var(--sidebar-texto-hover);
    opacity: 1;
}

/* ============================================================
   SIDEBAR - Scrollbar
   ============================================================ */
.app-sidebar .scrollbar-sidebar {
    height: 100%;
    overflow-y: auto;
}

.scrollbar-sidebar::-webkit-scrollbar {
    width: 6px;
}

.scrollbar-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.scrollbar-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 3px;
}

.scrollbar-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* ============================================================
   HEADER (TOPO) - Fundo azul com textos brancos
   ============================================================ */
.app-container .app-header,
.app-header {
    background: #3f6ad8;
}

.app-header__logo {
    background: #2f55b0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.app-header__logo .brand-text {
    color: #ffffff;
}

.app-header-left .header-menu .nav-link {
    color: #ffffff;
}

.app-header-left .header-menu .nav-link:hover,
.app-header-left .header-menu .nav-link.active {
    color: #ffffff;
    opacity: 0.85;
}

.app-header .header-user-info .widget-heading {
    color: #ffffff;
    opacity: 1;
    font-weight: 700;
}

.app-header .header-user-info .widget-subheading {
    color: #ffffff;
    opacity: 1;
    font-size: 0.8rem;
}

.app-header .hamburger-inner,
.app-header .hamburger-inner::before,
.app-header .hamburger-inner::after {
    background-color: #ffffff;
}

/* ============================================================
   INPUTS - Caixa alta (letras maiúsculas)
   ============================================================ */
.form-control,
.form-select {
    text-transform: uppercase;
    font-size: 12px;
}

.form-label {
    font-size: 12px;
}

.form-text {
    font-size: 12px;
}

.btn {
    font-size: 12px;
}

.app-main {
    font-size: 12px;
}

/* Email e senha não devem ser transformados (senha é case-sensitive) */
input[type="email"].form-control,
input[type="password"].form-control {
    text-transform: none;
}

/* ============================================================
   LISTAGENS - Tabelas (dados em caixa alta, negrito, 14px)
   ============================================================ */
.card .table th,
.card .table td {
    font-family: var(--fonte-principal) !important;
    font-size: 12px;
    font-weight: 700;
}

/* Conteúdo das células em caixa alta */
.card .table td {
    text-transform: uppercase;
}

/* Coluna Estoque (Produtos) */
.table .col-estoque,
.table .col-estoque .badge {
    font-size: 12px;
}
