/*
 * Tema do painel (21/10/2026) — menu lateral e topo no mesmo estilo do painel inicial novo:
 * fundo branco, texto cinza-escuro, roxo da marca como destaque, cor do setor só num ponto ao lado do título.
 * Carregado por último (layouts/partials/css) para vencer o preto/verde-neon do pos_conectwp.css.
 * Só telas com menu lateral (body.sidebar-mini) — o PDV usa outro topo e não é afetado.
 */
body.sidebar-mini {
    --tp-roxo: #6d28d9;
    --tp-roxo-cl: #f3effe;
    --tp-roxo-md: #ddd6fe;
    --tp-txt: #1f2937;
    --tp-sub: #6b7280;
    --tp-borda: #ecebf3;
    --tp-fundo: #ffffff;
}

/* ───────── Menu lateral (v2, 22/10/2026) ─────────
 * Fundo escuro em gradiente (índigo → roxo), ícone de cada item numa bolinha com a cor do SETOR
 * (--setor vem do li.header e é copiado para os itens do setor por resources/views/layouts/partials/sidebar.blade.php),
 * item ativo = pílula roxa com brilho, submenu com guia à esquerda, busca no topo e botão Recolher no rodapé.
 */
body.sidebar-mini { --mn-txt: #c9cdf2; --mn-fraco: rgba(255,255,255,.45); --mn-roxo: #7c3aed; --mn-roxo2: #a855f7; }
body.sidebar-mini .main-sidebar,
body.sidebar-mini .left-side {
    background: radial-gradient(120% 60% at 0% 0%, rgba(124,58,237,.35) 0%, rgba(124,58,237,0) 60%),
                linear-gradient(180deg, #1e1b4b 0%, #24124f 45%, #36106a 100%) !important;
    border-right: 0 !important;
    box-shadow: 4px 0 24px rgba(30,27,75,.18) !important;
}
body.sidebar-mini .main-sidebar .sidebar { padding-bottom: 70px; }
body.sidebar-mini .sidebar-menu > li > a,
body.sidebar-mini .sidebar a { color: var(--mn-txt) !important; text-shadow: none !important; }
body.sidebar-mini .sidebar-menu > li > a {
    margin: 2px 10px !important;
    padding: 7px 10px !important;
    border-radius: 12px !important;
    border: 0 !important;
    font-weight: 500;
    font-size: 13.5px;
    display: flex !important;
    align-items: center;
    gap: 10px;
    transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
body.sidebar-mini .sidebar-menu > li > a > span:not(.pull-right-container) { flex: 1; }
body.sidebar-mini .sidebar-menu > li > a > i:first-child,
body.sidebar-mini .sidebar-menu > li > a > .fa:first-child {
    width: 30px; height: 30px; line-height: 30px; flex: none;
    border-radius: 9px; text-align: center; font-size: 14px;
    color: color-mix(in srgb, var(--setor, #a78bfa) 55%, #ffffff) !important;
    background: color-mix(in srgb, var(--setor, #a78bfa) 22%, transparent);
    transition: transform .2s, background .2s, color .2s;
}
body.sidebar-mini .sidebar-menu > li:hover > a {
    background: rgba(255,255,255,.07) !important;
    color: #fff !important;
    transform: translateX(3px);
}
body.sidebar-mini .sidebar-menu > li:hover > a > i:first-child { transform: scale(1.08); }
body.sidebar-mini .sidebar-menu > li.menu-open > a { background: rgba(255,255,255,.06) !important; color: #fff !important; }
body.sidebar-mini .sidebar-menu > li.active > a {
    background: linear-gradient(90deg, var(--mn-roxo), var(--mn-roxo2)) !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(124,58,237,.45);
    transform: none;
}
body.sidebar-mini .sidebar-menu > li.active > a > i:first-child {
    background: rgba(255,255,255,.22); color: #fff !important;
}
/* Títulos de setor = DIVISÓRIAS (22/10/2026, usuário: "não confundir com menu"): faixa com fundo na cor do setor,
   barra à esquerda, maiúsculas fortes, mais espaço acima e uma linha separando do grupo anterior — não é clicável */
body.sidebar-mini .sidebar-menu > li.header,
body.sidebar-mini .sidebar-menu > li.header[data-setor] {
    position: relative;
    background: linear-gradient(90deg, color-mix(in srgb, var(--setor, #a78bfa) 45%, transparent), color-mix(in srgb, var(--setor, #a78bfa) 12%, transparent)) !important;
    color: #ffffff !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1.6px !important;
    margin: 26px 10px 8px !important;
    padding: 8px 12px 8px 14px !important;
    border-radius: 8px !important;
    border-left: 4px solid color-mix(in srgb, var(--setor, #a78bfa) 70%, #ffffff) !important;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: default;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
body.sidebar-mini .sidebar-menu > li.header[data-setor]::before {
    /* linha que separa do grupo de cima */
    content: ''; position: absolute; left: -10px; right: -10px; top: -14px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
}
body.sidebar-mini .sidebar-menu > li.header[data-setor]::after {
    content: ''; flex: 1; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--setor, #a78bfa) 55%, #ffffff), transparent);
}
body.sidebar-mini .sidebar-menu > li.header:first-child { margin-top: 12px !important; }
body.sidebar-mini .sidebar-menu > li.header:first-child::before { display: none; }
/* Submenu */
body.sidebar-mini .sidebar-menu .treeview-menu {
    background: transparent !important;
    padding: 4px 0 8px 0 !important;
    margin: 0 10px 0 34px !important;
    border-left: 1px solid rgba(255,255,255,.12);
}
body.sidebar-mini .sidebar-menu .treeview-menu > li > a {
    color: rgba(201,205,242,.85) !important;
    padding: 6px 10px 6px 14px !important;
    font-size: 13px;
    border: 0 !important;
    border-radius: 0 10px 10px 0 !important;
    position: relative;
    transition: background .2s, color .2s, padding .2s;
}
body.sidebar-mini .sidebar-menu .treeview-menu > li > a > i { color: rgba(201,205,242,.55) !important; }
body.sidebar-mini .sidebar-menu .treeview-menu > li > a:hover {
    color: #fff !important;
    background: rgba(255,255,255,.06) !important;
    padding-left: 18px !important;
}
body.sidebar-mini .sidebar-menu .treeview-menu > li.active > a {
    color: #fff !important;
    background: rgba(167,139,250,.22) !important;
    font-weight: 600;
}
body.sidebar-mini .sidebar-menu .treeview-menu > li.active > a::before {
    content: ''; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px;
    background: #c4b5fd; box-shadow: 0 0 8px #a78bfa;
}
body.sidebar-mini .sidebar-menu .treeview-menu > li.active > a > i { color: #ddd6fe !important; }
body.sidebar-mini .sidebar-menu li > a > .pull-right-container > .fa-angle-left,
body.sidebar-mini .sidebar-menu li > a > .pull-right-container > i { color: var(--mn-fraco) !important; transition: transform .25s; }
body.sidebar-mini .sidebar-menu li > a > .pull-right-container { position: static !important; margin-left: auto; }
body.sidebar-mini .main-sidebar ::-webkit-scrollbar { width: 6px; }
body.sidebar-mini .main-sidebar ::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 6px; }

/* Busca no menu */
body.sidebar-mini .menu-busca { position: relative; margin: 14px 12px 4px; }
body.sidebar-mini .menu-busca i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--mn-fraco); font-size: 12px; }
body.sidebar-mini .menu-busca input {
    width: 100%; height: 36px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.07); color: #fff; padding: 0 30px 0 32px; font-size: 13px; outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
body.sidebar-mini .menu-busca input::placeholder { color: var(--mn-fraco); }
body.sidebar-mini .menu-busca input:focus { border-color: #a78bfa; background: rgba(255,255,255,.1); box-shadow: 0 0 0 3px rgba(167,139,250,.2); }
body.sidebar-mini .menu-busca kbd {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1);
    color: var(--mn-fraco); border: 0; box-shadow: none; font-size: 10px; padding: 2px 5px; border-radius: 5px;
}
body.sidebar-mini .menu-sem-resultado { color: var(--mn-fraco); font-size: 12.5px; padding: 10px 22px; display: none; }

/* Botão Recolher / Expandir (rodapé fixo do menu) */
body.sidebar-mini .menu-recolher {
    position: fixed; bottom: 0; left: 0; width: 230px; z-index: 850;
    display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px;
    background: rgba(30,27,75,.92); backdrop-filter: blur(6px);
    border: 0; border-top: 1px solid rgba(255,255,255,.08);
    color: var(--mn-txt); font-size: 13px; font-weight: 600; cursor: pointer;
    transition: width .3s, color .2s, background .2s;
}
body.sidebar-mini .menu-recolher:hover { color: #fff; background: rgba(46,16,101,.96); }
body.sidebar-mini .menu-recolher i {
    width: 30px; height: 30px; line-height: 30px; text-align: center; border-radius: 9px; flex: none;
    background: rgba(167,139,250,.2); color: #ddd6fe; transition: transform .3s;
}
body.sidebar-mini.sidebar-collapse .menu-recolher { width: 50px; padding: 0 10px; }
body.sidebar-mini.sidebar-collapse .menu-recolher span,
body.sidebar-mini.sidebar-collapse .menu-busca { display: none; }
body.sidebar-mini.sidebar-collapse .menu-recolher i { transform: rotate(180deg); }
@media (max-width: 767px) {
    body.sidebar-mini .menu-recolher { display: none; }
}

/* Menu recolhido (só ícones): itens centralizados e a janela flutuante escura */
body.sidebar-mini.sidebar-collapse .sidebar-menu > li > a { margin: 3px 6px !important; padding: 7px 4px !important; justify-content: center; }
body.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a { transform: none; }
body.sidebar-mini.sidebar-collapse .sidebar-menu > li.header {
    /* recolhido: a divisória vira um traço na cor do setor entre os grupos de ícones */
    display: block !important; width: auto !important;
    margin: 14px 10px 6px !important; padding: 0 !important; height: 4px; border: 0 !important; border-radius: 4px !important;
    font-size: 0 !important; background: var(--setor, #a78bfa) !important; box-shadow: 0 0 8px color-mix(in srgb, var(--setor, #a78bfa) 60%, transparent);
}
body.sidebar-mini.sidebar-collapse .sidebar-menu > li.header::before,
body.sidebar-mini.sidebar-collapse .sidebar-menu > li.header::after { display: none; }
body.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > span:not(.pull-right),
body.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > .treeview-menu {
    background: #2a1660 !important;
    color: #fff !important;
    box-shadow: 12px 12px 32px rgba(17,10,50,.35);
    border-radius: 0 12px 12px 0;
    width: 230px !important;
}
body.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > span:not(.pull-right) {
    padding: 10px 16px !important; font-weight: 600; border-radius: 0 12px 0 0;
}
body.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > .treeview-menu {
    margin: 0 !important; padding: 6px 8px 8px !important; border-left: 0; border-radius: 0 0 12px 0;
}

/* ───────── Topo ───────── */
body.sidebar-mini .main-header .navbar,
body.sidebar-mini .main-header .navbar-static-top {
    background: #fff !important;
    background-image: none !important;
    border-bottom: 1px solid var(--tp-borda) !important;
    box-shadow: 0 1px 2px rgba(17, 24, 39, .03) !important;
    min-height: 56px;
}
body.sidebar-mini .main-header .logo {
    background: #fff !important;
    background-image: none !important;
    border-right: 1px solid var(--tp-borda) !important;
    border-bottom: 1px solid var(--tp-borda) !important;
    color: var(--tp-txt) !important;
    height: 56px !important;
}
body.sidebar-mini .main-header .logo .logo-lg {
    color: var(--tp-txt) !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}
body.sidebar-mini .main-header .logo img.logo-img {
    border-radius: 10px !important;
    border: 0 !important;
    box-shadow: none !important;
}
body.sidebar-mini .main-header .sidebar-toggle {
    color: var(--tp-sub) !important;
    background: transparent !important;
    text-shadow: none !important;
}
body.sidebar-mini .main-header .sidebar-toggle:hover { color: var(--tp-roxo) !important; }
/* Textos soltos do topo (Ambiente, data) vinham com color:#fff inline */
body.sidebar-mini .main-header .navbar-custom-menu > div[style] {
    color: var(--tp-sub) !important;
    text-shadow: none !important;
    font-size: 13px;
}
body.sidebar-mini .main-header .navbar-custom-menu > div[style] strong { color: var(--tp-txt) !important; }
/* Botões do topo como chips claros; o PDV vira o botão principal */
body.sidebar-mini .main-header .navbar-custom-menu > .btn,
body.sidebar-mini .main-header .navbar-custom-menu > a.btn {
    background: #f6f5fb !important;
    border: 1px solid var(--tp-borda) !important;
    color: #4b5563 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    text-shadow: none !important;
    min-width: 36px;
    height: 36px;
    margin-top: 10px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .15s;
}
body.sidebar-mini .main-header .navbar-custom-menu > .btn:hover,
body.sidebar-mini .main-header .navbar-custom-menu > a.btn:hover {
    background: var(--tp-roxo-cl) !important;
    border-color: var(--tp-roxo-md) !important;
    color: var(--tp-roxo) !important;
}
body.sidebar-mini .main-header .navbar-custom-menu > .btn i,
body.sidebar-mini .main-header .navbar-custom-menu > a.btn i { color: inherit !important; }
body.sidebar-mini .main-header .navbar-custom-menu > a.btn[title="PDV"] {
    background: var(--tp-roxo) !important;
    border-color: var(--tp-roxo) !important;
    color: #fff !important;
    padding: 0 14px !important;
    box-shadow: 0 4px 12px rgba(109, 40, 217, .25) !important;
}
body.sidebar-mini .main-header .navbar-custom-menu > a.btn[title="PDV"]:hover { background: #5b21b6 !important; color: #fff !important; }
/* Sino e usuário */
body.sidebar-mini .main-header .navbar .nav > li > a {
    color: #4b5563 !important;
    background: transparent !important;
    text-shadow: none !important;
}
body.sidebar-mini .main-header .navbar .nav > li > a:hover,
body.sidebar-mini .main-header .navbar .nav > li.open > a {
    background: #f6f5fb !important;
    color: var(--tp-roxo) !important;
}
body.sidebar-mini .main-header .navbar .nav > li.user-menu > a span {
    font-weight: 600;
    color: var(--tp-txt) !important;
}
body.sidebar-mini .main-header .navbar .nav > li.user-menu > a .user-image {
    border-radius: 50%;
    border: 2px solid var(--tp-roxo-md);
}
body.sidebar-mini .main-header .navbar .nav > li > a .label {
    border-radius: 999px !important;
    background: #ef4444 !important;
}
body.sidebar-mini .main-header .dropdown-menu {
    border: 1px solid var(--tp-borda) !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 32px rgba(17, 24, 39, .12) !important;
    overflow: hidden;
}
body.sidebar-mini .main-header .user-menu .user-header {
    background: linear-gradient(135deg, #6d28d9, #8b5cf6) !important;
}

/* Fundo cinza translúcido que o tema antigo punha nos itens do topo (usuário, sino) */
body.sidebar-mini .main-header .navbar-nav > li,
body.sidebar-mini .main-header .navbar-nav > li.user-menu,
body.sidebar-mini .main-header .navbar-nav > li.notifications-menu {
    background: transparent !important;
}

/* ───────── Área de conteúdo ─────────
   O tema antigo emoldurava o conteúdo (borda bege 4px + sombra interna + cantos): agora fundo neutro, sem moldura. */
body.sidebar-mini .wrapper,
body.sidebar-mini .content-wrapper {
    background: #f4f5fb !important;
}
body.sidebar-mini .content-wrapper {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ═════════════════════ Telas internas (21/10/2026) ═════════════════════
   Mesmo visual do painel: título limpo, caixas brancas com cantos e sombra suave, tabela com cabeçalho cinza-claro,
   campos com borda fina e foco roxo. Só dentro de .content-wrapper das telas com menu (o PDV não é afetado). */
body.sidebar-mini .content-wrapper { font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif; color: #1f2937; }
body.sidebar-mini .content-wrapper * { text-shadow: none !important; }

/* Título da tela (era a faixa amarela) */
body.sidebar-mini .content-wrapper .content-header {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 20px 22px 4px !important;
    margin: 0 !important;
    text-align: left !important;
}
body.sidebar-mini .content-wrapper .content-header h1 {
    color: #1f2937 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    text-align: left !important;
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
}
body.sidebar-mini .content-wrapper .content-header h1 small {
    color: #6b7280 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}
body.sidebar-mini .content-wrapper .content-header .breadcrumb { background: transparent !important; }
/* banner azul próprio da tela (Naturezas de Operação, Painel do contador): o título continua branco */
body.sidebar-mini .content-wrapper .content-header .nat-header h1 { color: #fff !important; }
body.sidebar-mini .content-wrapper .content-header .nat-header p { color: rgba(255,255,255,.75) !important; }
body.sidebar-mini .content-wrapper > .content,
body.sidebar-mini .content-wrapper .content { padding: 14px 22px 26px; }

/* Caixas (box / widget / card) */
body.sidebar-mini .content-wrapper .box,
body.sidebar-mini .content-wrapper .card {
    background: #fff !important;
    background-image: none !important;
    border: 1px solid #ecebf3 !important;
    border-top: 1px solid #ecebf3 !important;
    border-left: 1px solid #ecebf3 !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 8px 24px rgba(17, 24, 39, .05) !important;
    margin-bottom: 18px;
}
body.sidebar-mini .content-wrapper .box:hover { border-top-color: #ecebf3 !important; }
body.sidebar-mini .content-wrapper .box-header,
body.sidebar-mini .content-wrapper .card-header {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-bottom: 1px solid #f1f0f6 !important;
    padding: 14px 18px !important;
    color: #1f2937 !important;
    border-radius: 16px 16px 0 0 !important;
}
body.sidebar-mini .content-wrapper .box-header .box-title,
body.sidebar-mini .content-wrapper .box-title {
    color: #1f2937 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}
body.sidebar-mini .content-wrapper .box-header > .fa,
body.sidebar-mini .content-wrapper .box-header > i { color: #6d28d9 !important; }
body.sidebar-mini .content-wrapper .box-body,
body.sidebar-mini .content-wrapper .card-body {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-top: 0 !important;
    margin-top: 0 !important;
    padding: 16px 18px !important;
    color: #1f2937 !important;
    font-weight: 400;
    border-radius: 0 0 16px 16px !important;
}
body.sidebar-mini .content-wrapper .box-footer { background: transparent !important; border-top: 1px solid #f1f0f6 !important; border-radius: 0 0 16px 16px !important; }
body.sidebar-mini .content-wrapper .box.box-solid > .box-header { background: transparent !important; color: #1f2937 !important; }

/* Rótulos e campos */
body.sidebar-mini .content-wrapper .form-group { color: #374151 !important; margin-bottom: 12px; }
body.sidebar-mini .content-wrapper label {
    color: #374151 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin-bottom: 5px;
}
body.sidebar-mini .content-wrapper .form-control,
body.sidebar-mini .content-wrapper .select2-container--default .select2-selection--single,
body.sidebar-mini .content-wrapper .select2-container--default .select2-selection--multiple,
body.sidebar-mini .content-wrapper .dataTables_filter input,
body.sidebar-mini .content-wrapper .dataTables_length select {
    border: 1px solid #e3e1ee !important;
    border-radius: 10px !important;
    background-color: #fff !important;
    box-shadow: none !important;
    color: #1f2937 !important;
    min-height: 38px;
    font-size: 13.5px;
}
body.sidebar-mini .content-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 36px !important; color: #1f2937 !important; }
body.sidebar-mini .content-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow { height: 36px !important; }
body.sidebar-mini .content-wrapper .form-control:focus,
body.sidebar-mini .content-wrapper .select2-container--focus .select2-selection,
body.sidebar-mini .content-wrapper .select2-container--open .select2-selection,
body.sidebar-mini .content-wrapper .dataTables_filter input:focus {
    border-color: #a78bfa !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, .15) !important;
    outline: none;
}
body.sidebar-mini .content-wrapper .input-group-addon {
    background: #f8f7fc !important;
    border: 1px solid #e3e1ee !important;
    color: #6b7280 !important;
    border-radius: 10px !important;
}
body.sidebar-mini .content-wrapper .input-group .form-control:not(:last-child) { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
body.sidebar-mini .content-wrapper .input-group .input-group-addon:first-child { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; border-right: 0 !important; }
body.sidebar-mini .content-wrapper .input-group .input-group-addon:first-child + .form-control,
body.sidebar-mini .content-wrapper .input-group .input-group-addon:first-child + .select2-container .select2-selection { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }

/* Tabelas */
body.sidebar-mini .content-wrapper .table > thead > tr > th,
body.sidebar-mini .content-wrapper table.dataTable thead th,
body.sidebar-mini .content-wrapper table.dataTable thead td {
    background: #f8f7fc !important;
    background-image: none !important;
    color: #6b7280 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: .4px;
    border: 0 !important;
    border-bottom: 1px solid #ecebf3 !important;
    padding: 11px 10px !important;
    vertical-align: middle;
}
body.sidebar-mini .content-wrapper .table > thead > tr > th:first-child { border-top-left-radius: 10px; }
body.sidebar-mini .content-wrapper .table > thead > tr > th:last-child { border-top-right-radius: 10px; }
body.sidebar-mini .content-wrapper .table > tbody > tr > td,
body.sidebar-mini .content-wrapper .table > tfoot > tr > td {
    border: 0 !important;
    border-top: 1px solid #f1f0f6 !important;
    color: #374151 !important;
    font-size: 13px;
    padding: 10px !important;
    vertical-align: middle;
    background: transparent !important;
}
body.sidebar-mini .content-wrapper .table-striped > tbody > tr:nth-of-type(odd) > td,
body.sidebar-mini .content-wrapper .table-striped > tbody > tr:nth-of-type(odd) { background: #fcfcfe !important; }
body.sidebar-mini .content-wrapper .table-striped > tbody > tr:nth-of-type(even) > td { background: #fff !important; }
body.sidebar-mini .content-wrapper .table-hover > tbody > tr:hover > td,
body.sidebar-mini .content-wrapper table.dataTable tbody tr:hover > td { background: #f6f5fb !important; }
body.sidebar-mini .content-wrapper .table-bordered { border: 0 !important; }
body.sidebar-mini .content-wrapper .table > tfoot > tr > td,
body.sidebar-mini .content-wrapper .table > tfoot > tr > th,
body.sidebar-mini .content-wrapper .footer-total td { background: #f8f7fc !important; font-weight: 700; color: #1f2937 !important; }
body.sidebar-mini .content-wrapper .table a:not(.btn) { color: #6d28d9 !important; }
body.sidebar-mini .content-wrapper .table img { border-radius: 8px; }

/* DataTables: mostrar, buscar, botões de exportar, paginação */
body.sidebar-mini .content-wrapper .dataTables_wrapper .dataTables_length,
body.sidebar-mini .content-wrapper .dataTables_wrapper .dataTables_filter,
body.sidebar-mini .content-wrapper .dataTables_wrapper .dataTables_info { color: #6b7280 !important; font-size: 13px; }
body.sidebar-mini .content-wrapper .dt-buttons .btn,
body.sidebar-mini .content-wrapper .dt-buttons .dt-button {
    background: #fff !important;
    background-image: none !important;
    border: 1px solid #e3e1ee !important;
    color: #4b5563 !important;
    border-radius: 9px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 6px 10px !important;
    box-shadow: none !important;
    margin: 0 4px 6px 0;
}
body.sidebar-mini .content-wrapper .dt-buttons .btn:hover,
body.sidebar-mini .content-wrapper .dt-buttons .dt-button:hover { background: #f3effe !important; border-color: #ddd6fe !important; color: #6d28d9 !important; }
body.sidebar-mini .content-wrapper .dt-buttons .btn i { color: inherit !important; }
body.sidebar-mini .content-wrapper .pagination > li > a,
body.sidebar-mini .content-wrapper .pagination > li > span,
body.sidebar-mini .content-wrapper .dataTables_paginate .paginate_button {
    border: 1px solid #e3e1ee !important;
    background: #fff !important;
    color: #4b5563 !important;
    border-radius: 9px !important;
    margin: 0 2px;
    box-shadow: none !important;
    font-weight: 600;
}
body.sidebar-mini .content-wrapper .pagination > .active > a,
body.sidebar-mini .content-wrapper .pagination > .active > span,
body.sidebar-mini .content-wrapper .dataTables_paginate .paginate_button.current,
body.sidebar-mini .content-wrapper .dataTables_paginate .paginate_button.active > a {
    background: #6d28d9 !important;
    border-color: #6d28d9 !important;
    color: #fff !important;
}

/* Abas */
body.sidebar-mini .content-wrapper .nav-tabs-custom {
    background: #fff !important;
    border: 1px solid #ecebf3 !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 8px 24px rgba(17, 24, 39, .05) !important;
    overflow: hidden;
}
body.sidebar-mini .content-wrapper .nav-tabs-custom > .nav-tabs {
    background: #fff !important;
    border-bottom: 1px solid #f1f0f6 !important;
    padding: 6px 10px 0;
}
body.sidebar-mini .content-wrapper .nav-tabs-custom > .nav-tabs > li { border-top: 0 !important; margin-bottom: -1px; }
body.sidebar-mini .content-wrapper .nav-tabs-custom > .nav-tabs > li > a,
body.sidebar-mini .content-wrapper .nav-tabs > li > a {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    color: #6b7280 !important;
    font-weight: 600;
    border-radius: 0 !important;
    box-shadow: none !important;
}
body.sidebar-mini .content-wrapper .nav-tabs-custom > .nav-tabs > li.active > a,
body.sidebar-mini .content-wrapper .nav-tabs > li.active > a {
    color: #6d28d9 !important;
    border-bottom-color: #6d28d9 !important;
    background: transparent !important;
}
body.sidebar-mini .content-wrapper .nav-tabs-custom > .tab-content { background: #fff !important; padding: 16px 18px; }

/* Botões */
body.sidebar-mini .content-wrapper .btn {
    border-radius: 10px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    background-image: none !important;
}
body.sidebar-mini .content-wrapper .btn-primary { background: #6d28d9 !important; border-color: #6d28d9 !important; color: #fff !important; }
body.sidebar-mini .content-wrapper .btn-primary:hover { background: #5b21b6 !important; border-color: #5b21b6 !important; }
body.sidebar-mini .content-wrapper .btn-default { background: #fff !important; border: 1px solid #e3e1ee !important; color: #374151 !important; }
body.sidebar-mini .content-wrapper .btn-default:hover { background: #f6f5fb !important; color: #6d28d9 !important; }
body.sidebar-mini .content-wrapper .btn-success { background: #16a34a !important; border-color: #16a34a !important; color: #fff !important; }
body.sidebar-mini .content-wrapper .btn-danger { background: #dc2626 !important; border-color: #dc2626 !important; color: #fff !important; }
body.sidebar-mini .content-wrapper .btn-warning { background: #f59e0b !important; border-color: #f59e0b !important; color: #fff !important; }
body.sidebar-mini .content-wrapper .btn-info { background: #0ea5e9 !important; border-color: #0ea5e9 !important; color: #fff !important; }

/* Menus suspensos e modais (abrem fora do .content-wrapper) */
body.sidebar-mini .dropdown-menu {
    border: 1px solid #ecebf3 !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 32px rgba(17, 24, 39, .12) !important;
    padding: 6px !important;
}
body.sidebar-mini .dropdown-menu > li > a { border-radius: 8px; color: #374151 !important; padding: 7px 12px; }
body.sidebar-mini .dropdown-menu > li > a:hover { background: #f3effe !important; color: #6d28d9 !important; }
body.sidebar-mini .modal-content {
    border: 0 !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 60px rgba(17, 24, 39, .25) !important;
    overflow: hidden;
}
body.sidebar-mini .modal-header {
    background: #fff !important;
    background-image: none !important;
    border-bottom: 1px solid #f1f0f6 !important;
    color: #1f2937 !important;
}
body.sidebar-mini .modal-header .modal-title { color: #1f2937 !important; font-weight: 700; text-shadow: none !important; }
body.sidebar-mini .modal-footer { border-top: 1px solid #f1f0f6 !important; background: #fcfcfe !important; }

/* Ajustes finos: fundo laranja antigo atrás do cabeçalho da tabela (vazava pelos cantos de cada coluna) e
   fundo/sublinhado azul que o tema antigo punha nas abas */
body.sidebar-mini .content-wrapper .table > thead,
body.sidebar-mini .content-wrapper .table > thead > tr { background: transparent !important; background-image: none !important; }
body.sidebar-mini .content-wrapper .table > thead > tr > th { border-radius: 0 !important; }
body.sidebar-mini .content-wrapper .table > thead > tr > th:first-child { border-top-left-radius: 10px !important; }
body.sidebar-mini .content-wrapper .table > thead > tr > th:last-child { border-top-right-radius: 10px !important; }
body.sidebar-mini .content-wrapper .nav-tabs > li,
body.sidebar-mini .content-wrapper .nav-tabs > li.active {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

/* Configurações (abas laterais pos-tab): cartão branco, aba ativa roxa, conteúdo sem o fundo verde/listras */
body.sidebar-mini .content-wrapper div.pos-tab-container {
    border: 1px solid #ecebf3 !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 8px 24px rgba(17, 24, 39, .05) !important;
    overflow: visible;
}
body.sidebar-mini .content-wrapper div.pos-tab-menu div.list-group > a {
    border: 0 !important;
    border-bottom: 1px solid #f4f3f8 !important;
    color: #4b5563 !important;
    background: #fff !important;
    font-weight: 600;
    font-size: 13px;
    padding: 11px 16px !important;
    border-radius: 0 !important;
}
body.sidebar-mini .content-wrapper div.pos-tab-menu div.list-group > a:first-child { border-top-left-radius: 16px !important; }
body.sidebar-mini .content-wrapper div.pos-tab-menu div.list-group > a:hover { background: #f6f5fb !important; color: #1f2937 !important; }
body.sidebar-mini .content-wrapper div.pos-tab-menu div.list-group > a.active,
body.sidebar-mini .content-wrapper div.pos-tab-menu div.list-group > a.active .fa {
    background: #f3effe !important;
    color: #6d28d9 !important;
    border-left: 3px solid #6d28d9 !important;
}
body.sidebar-mini .content-wrapper div.pos-tab-menu div.list-group > a.active:after { display: none !important; }
body.sidebar-mini .content-wrapper div.pos-tab-content {
    background: #fff !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #1f2937 !important;
    font-weight: 400 !important;
    margin-top: 0 !important;
    padding: 18px 20px !important;
}

/* Células de título dentro de tabelas (relatórios) e textos pequenos com fonte mono do tema antigo */
body.sidebar-mini .content-wrapper .table > tbody > tr > th {
    background: #fbfbfd !important;
    color: #374151 !important;
    font-weight: 600 !important;
    font-size: 13px;
    border: 0 !important;
    border-top: 1px solid #f1f0f6 !important;
}
body.sidebar-mini .content-wrapper small { font-family: inherit !important; }

/* Barras de rolagem discretas */
body.sidebar-mini ::-webkit-scrollbar { width: 8px; height: 8px; }
body.sidebar-mini ::-webkit-scrollbar-track { background: transparent; }
body.sidebar-mini ::-webkit-scrollbar-thumb { background: #dcd8ea; border-radius: 8px; }
body.sidebar-mini ::-webkit-scrollbar-thumb:hover { background: #c4b5fd; }

/* ───────── Zebrado leve e igual em todas as tabelas (21/10/2026) ─────────
 * Linhas ímpares #f8f7fc (o tom do cabeçalho), pares brancas, realce lilás no hover.
 * Linhas com cor própria (danger/warning/success/info ou background em linha) ficam como estão.
 */
body.sidebar-mini .content-wrapper table > tbody > tr:nth-of-type(odd):not(.danger):not(.warning):not(.success):not(.info):not([style*="background"]) > td {
    background-color: #f8f7fc !important;
}
body.sidebar-mini .content-wrapper table > tbody > tr:nth-of-type(even):not(.danger):not(.warning):not(.success):not(.info):not([style*="background"]) > td {
    background-color: #ffffff !important;
}
body.sidebar-mini .content-wrapper table > tbody > tr:nth-of-type(n):hover:not(.danger):not(.warning):not(.success):not(.info):not([style*="background"]) > td {
    background-color: #f3effe !important;
}

/* Logo do topo esquerdo emenda com o menu escuro (22/10/2026) */
body.sidebar-mini .main-header .logo {
    background: #1e1b4b !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
}
body.sidebar-mini .main-header .logo .logo-lg { color: #fff !important; }
body.sidebar-mini .main-header .sidebar-toggle {
    font-size: 18px !important; width: 40px; height: 40px; line-height: 40px; padding: 0 !important;
    margin: 8px 6px; text-align: center; border-radius: 10px;
    transition: background .2s, color .2s;
}
body.sidebar-mini .main-header .sidebar-toggle:hover { background: #f3effe !important; color: var(--tp-roxo) !important; }
