/* ==========================================================================
   DAXV SYSTEM V2 - MASTER STYLE (CANTINA)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');

/* ==========================================================================
   1. VARIÁVEIS E RESET
   ========================================================================== */
:root {
    --bg-primary:   #000000;
    --bg-secondary: #0d0d0d;
    --bg-card:      #141414;
    --bg-input:     #050505;
    --accent:       #f39c12;
    --success:      #2ecc71;
    --danger:       #e74c3c;
    --warning:      #f1c40f;
    --text-primary: #ffffff;
    --text-muted:   #888888;
    --border:       #222222;
    --font-main:    'Inter', -apple-system, sans-serif;
    --nav-height:   75px;
    --header-height: 60px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.5;
}

/* ==========================================================================
   2. LOGIN
   ========================================================================== */
.login-wrapper {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: radial-gradient(circle at center, #111 0%, #000 100%);
}

.login-box {
    width: 100%;
    max-width: 360px;
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.login-header img {
    max-width: 90px;
    display: block;
    margin: 0 auto 15px;
}

.login-header h1 {
    font-size: 16px;
    text-align: center;
    letter-spacing: 3px;
    font-weight: 900;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.login-header span {
    display: block;
    text-align: center;
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ==========================================================================
   3. MOBILE — LAYOUT GERAL (< 768px)
      Simulador de smartphone, bottom-nav, main-header, sector-view visíveis
   ========================================================================== */

/* App container mobile */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    background: var(--bg-primary);
    padding-bottom: var(--nav-height);
}

@media (max-width: 768px) {
    .desktop-sidebar,
    .desktop-topbar,
    .desktop-split-bar,
    .desktop-split-wrapper {
        display: none !important;
    }
}

/* Conteúdo principal mobile */
.app-content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    min-height: 0;
}

/* Cabeçalho Mobile */
.main-header {
    height: var(--header-height);
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.header-logo {
    font-weight: 900;
    letter-spacing: 2px;
    font-size: 16px;
    display: flex;
    align-items: center;
    color: #fff;
}

.badge-v2 {
    font-size: 9px;
    background: rgba(243,156,18,0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 3px 6px;
    border-radius: 6px;
    margin-left: 8px;
    letter-spacing: 1px;
}

.header-refresh {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.header-refresh:hover,
.header-refresh:active {
    background: rgba(46,204,113,0.15);
    color: var(--success);
    border-color: var(--success);
    transform: rotate(180deg);
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 4px 4px 4px 12px;
    border-radius: 30px;
    background: rgba(255,255,255,0.03);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.header-user:hover {
    background: rgba(231,76,60,0.05);
    border-color: rgba(231,76,60,0.2);
}

.user-details { display: flex; flex-direction: column; text-align: right; }
.user-name    { font-size: 11px; font-weight: 900; color: #fff; text-transform: uppercase; line-height: 1.2; }
.user-role    { font-size: 9px; font-weight: 700; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; }

.user-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 1px solid #333;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 12px;
}

.logout-btn {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(231,76,60,0.1);
    color: var(--danger);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; transition: all 0.3s ease;
}

.header-user:hover .logout-btn {
    background: var(--danger);
    color: #fff;
}

/* Content frame mobile */
.content-frame {
    padding: 15px 0;
    overflow-y: auto;
    flex: 1;
}

/* Sector views: VISÍVEIS no mobile como menu de cards */
.sector-view {
    padding: 20px;
    display: block;
}

/* Header de setor */
.sector-header h3 {
    font-size: 12px;
    font-weight: 900;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 20px 0;
    display: flex; align-items: center; gap: 10px;
}
.sector-header h3 i { color: var(--accent); }

/* View de conteúdo */
.view { padding: 0 20px; }
.single-view-container { width: 100%; }

/* View container */
#view-container { width: 100%; }

/* Navegação inferior (MOBILE) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: var(--nav-height);
    background: #050505;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 1000;
}

.nav-item {
    background: none; border: none;
    color: var(--text-muted);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 6px; flex: 1; transition: color 0.3s;
    cursor: pointer;
}
.nav-item i    { font-size: 22px; }
.nav-item span { font-size: 9px; font-weight: 800; letter-spacing: 0.5px; }
.nav-item.active { color: var(--accent); }

/* ==========================================================================
   4. COMPONENTES V2 (CARDS, GRIDS, FORMULÁRIOS)
   ========================================================================== */

/* Cards de ação (grade 2x2 do sector-view mobile) */
.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.action-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    height: 120px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 12px; color: var(--text-primary);
    cursor: pointer; transition: all 0.2s ease;
}
.action-card i    { font-size: 28px; color: var(--accent); }
.action-card span { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.action-card:active { transform: scale(0.95); background: #1a1a1a; border-color: var(--accent); }

/* Cards de conteúdo */
.v2-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    margin-top: 0 !important;
}

/* Títulos de seção */
.v1-title {
    font-size: 11px; font-weight: 900;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin: 0 0 20px 0;
    border-bottom: 1px solid var(--border);
    padding: 5px 0 10px;
    text-transform: uppercase;
    display: flex; align-items: center; gap: 8px;
}

/* Formulários */
.v1-form-group        { margin-bottom: 15px; }
.v1-form-group label  {
    display: block; font-size: 10px; font-weight: 700;
    color: #555; margin-bottom: 8px;
    letter-spacing: 0.5px; text-transform: uppercase;
}
.v1-form-group input,
.v1-form-group select,
.v1-form-group textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: #fff;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--font-main);
    transition: all 0.3s;
}
.v1-form-group input:focus { border-color: var(--accent); outline: none; background: #000; }
.v1-row { display: flex; gap: 15px; }

/* Botões */
.btn-v1-orange {
    background: var(--accent); color: #000;
    border: none; width: 100%; padding: 16px;
    border-radius: 10px; font-weight: 900; font-size: 13px;
    cursor: pointer; text-transform: uppercase; letter-spacing: 1px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: filter 0.2s;
}

.btn-v1-finalize {
    background: var(--accent); color: #000;
    font-family: var(--font-main); font-weight: 900;
    text-transform: uppercase; letter-spacing: 1px;
    border-radius: 12px; padding: 20px;
    box-shadow: 0 10px 20px rgba(243,156,18,0.2);
    border: none; width: 100%; cursor: pointer;
}
.btn-v1-orange:active, .btn-v1-finalize:active { transform: scale(0.97); filter: brightness(1.2); }

/* Seletores de tipo F/E */
.selector-grid { display: flex; gap: 10px; margin-bottom: 15px; }
.type-btn {
    flex: 1; background: var(--bg-input);
    border: 1px solid var(--border); color: var(--text-muted);
    padding: 15px; border-radius: 10px; font-weight: 900;
    font-size: 12px; cursor: pointer; transition: all 0.3s;
    text-transform: uppercase;
}
.type-btn.active {
    border-color: var(--accent); color: var(--accent);
    background: rgba(243,156,18,0.05);
    box-shadow: 0 0 15px rgba(243,156,18,0.1);
}

/* Botão outline danger */
.btn-outline-danger {
    background: transparent; border: 1px solid var(--danger);
    color: var(--danger); width: 100%; padding: 15px;
    border-radius: 10px; font-weight: 900; font-size: 12px;
    text-transform: uppercase; margin-top: 10px; cursor: pointer;
}

/* Totais e resumo */
.v1-total-box {
    background: var(--bg-input); padding: 18px;
    border-radius: 12px; display: flex;
    justify-content: space-between; align-items: center;
    margin: 20px 0; border: 1px dashed var(--border);
}
#display_valor_total { font-size: 22px; font-weight: 900; color: var(--accent); }
.v1-grand-total {
    text-align: right; font-size: 24px; font-weight: 900;
    color: var(--success); margin: 25px 0; letter-spacing: -1px;
}

#view-vendas { padding-bottom: 50px; }
.final-actions { margin-top: 30px; padding-top: 20px; border-top: 1px dashed var(--border); }
.search-item-row {
    background: #0a0a0a; border-left: 3px solid var(--accent);
    padding: 12px; border-radius: 4px; margin-bottom: 8px;
}

/* Fix iOS inputs */
input[type="date"],
input[type="number"],
input[type="text"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
}
input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0; cursor: pointer; }
input[type="date"]::-webkit-inner-spin-button         { display: none; }

/* ==========================================================================
   5. MODAIS (V2) — abrem sobre o body, por fora do painel, em sobreposição
   ========================================================================== */
.v2-modal {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 99999 !important;
    align-items: center !important;
    justify-content: center !important;
    overflow-y: auto !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

/* Garante que diálogos de alerta (SweetAlert2) apareçam sempre acima dos modais */
.swal2-container {
    z-index: 999999 !important;
}

.v2-modal-content {
    background: var(--bg-card);
    width: 90%; max-width: 440px;
    padding: 30px; border-radius: 18px;
    border-top: 5px solid var(--accent);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 25px 60px rgba(0,0,0,0.95);
    position: relative;
    margin: auto;
}

/* Feedback tátil e responsividade mobile para formulários de modal */
@media (max-width: 600px) {
    .v2-modal {
        padding: 10px !important;
    }
    
    .v2-modal-content {
        width: 96% !important;
        max-width: 100% !important;
        padding: 16px !important;
        max-height: 92vh !important;
        overflow-y: auto !important;
    }

    #modal-gestao-estoque div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}

.btn-v1-orange:active,
button:active {
    transform: scale(0.97);
    opacity: 0.88;
}

.v2-modal-content h3 { margin: 0 0 15px; font-size: 14px; letter-spacing: 1px; color: var(--accent); }
.v2-modal-body {
    color: #ccc; font-size: 14px; line-height: 1.6;
    max-height: 350px; overflow-y: auto; margin-bottom: 20px;
}
.v2-modal-body li { margin-bottom: 8px; list-style: none; position: relative; padding-left: 15px; }
.v2-modal-body li::before { content: "•"; position: absolute; left: 0; color: var(--accent); }

/* ==========================================================================
   6. AUTOCOMPLETE E PDV
   ========================================================================== */
.autocomplete-dropdown { box-shadow: 0 10px 25px rgba(0,0,0,0.8); border-radius: 8px; overflow: hidden; }
.autocomplete-item {
    padding: 12px 15px; border-bottom: 1px solid #222;
    cursor: pointer; transition: all 0.1s ease; color: var(--text-muted);
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover,
.autocomplete-item.active-nav {
    background: rgba(243,156,18,0.15);
    color: #fff;
    border-left: 4px solid var(--accent);
}

.btn-pdv-clicked {
    animation: pdvButtonPulse 0.3s ease-out;
    border-color: #2ecc71 !important;
    box-shadow: 0 0 15px rgba(46,204,113,0.5) !important;
    background: rgba(46,204,113,0.05) !important;
}
@keyframes pdvButtonPulse {
    0%   { transform: scale(1);    }
    50%  { transform: scale(0.95); }
    100% { transform: scale(1);    }
}

.pdv-floating-indicator {
    position: fixed; color: #2ecc71; font-size: 18px; font-weight: 900;
    pointer-events: none; z-index: 9999;
    text-shadow: 0 0 5px rgba(0,0,0,0.8);
    animation: floatUpFade 0.8s forwards ease-out;
}
@keyframes floatUpFade {
    0%   { transform: translateY(0);    opacity: 1; }
    100% { transform: translateY(-60px); opacity: 0; }
}

.btn-pdv-tamanho {
    background: #0f1013; border: 1px solid #333; color: #fff;
    font-size: 13px; font-weight: 900; padding: 12px 10px;
    border-radius: 8px; cursor: pointer; transition: 0.2s; text-transform: uppercase;
}
.btn-pdv-tamanho:hover {
    border-color: var(--accent); background: rgba(243,156,18,0.1);
    color: var(--accent); transform: translateY(-2px);
}

/* ==========================================================================
   7. SIDEBAR CASCATA (ACCORDION)
   ========================================================================== */
.sidebar-cascata-group  { display: flex; flex-direction: column; margin-bottom: 8px; }

.sidebar-cascata-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 16px;
    background: #121217; border: 1px solid #1f1f28; border-radius: 12px;
    color: #e0e0e8; font-size: 11px; font-weight: 800; letter-spacing: 1px;
    cursor: pointer; transition: all 0.2s ease; width: 100%;
}
.sidebar-cascata-header:hover { background: #191922; border-color: var(--accent); color: #fff; }

.cascata-title { display: flex; align-items: center; gap: 10px; }
.cascata-title i { font-size: 15px; color: var(--accent); }
.cascata-arrow  { font-size: 12px; color: var(--text-muted); transition: transform 0.25s ease; }

.sidebar-cascata-menu {
    display: flex; flex-direction: column; gap: 5px;
    padding: 8px 0 8px 12px;
    border-left: 2px solid rgba(243,156,18,0.3);
    margin: 6px 0 6px 14px;
}

.sidebar-sub-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    background: #14141c; border: 1px solid #20202c; border-radius: 8px;
    color: #b0b0cc; font-size: 10px; font-weight: 800; letter-spacing: 0.5px;
    cursor: pointer; transition: all 0.2s ease; text-align: left;
}
.sidebar-sub-item i { font-size: 12px; color: var(--accent); width: 16px; text-align: center; }
.sidebar-sub-item:hover {
    background: rgba(243,156,18,0.15); color: #fff;
    border-color: var(--accent); transform: translateX(4px);
}

/* ==========================================================================
   8. DESKTOP LAYOUT (>= 769px) — Sidebar + Split View
   ========================================================================== */
@media (min-width: 769px) {

    /* --- BODY E APP CONTAINER --- */
    body {
        background-color: #060608;
        overflow: hidden;
    }

    .app-container {
        display: flex !important;
        flex-direction: row !important;   /* sidebar + conteúdo lado a lado */
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        overflow: hidden !important;
        padding-bottom: 0 !important;
    }

    /* --- SIDEBAR DESKTOP (260px fixo à esquerda) --- */
    .desktop-sidebar {
        display: flex !important;
        flex-direction: column !important;
        width: 260px !important;
        min-width: 260px !important;
        height: 100vh !important;
        background: #09090c !important;
        border-right: 1px solid #1c1c24 !important;
        padding: 24px 18px !important;
        box-sizing: border-box !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 100;
        overflow-y: auto;
    }

    .sidebar-brand { padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
    .sidebar-logo  { font-size: 20px; font-weight: 900; color: #fff; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; }
    .sidebar-logo i { color: var(--accent); }
    .sidebar-subtitle { font-size: 8.5px; color: var(--text-muted); font-weight: 800; letter-spacing: 1.5px; display: block; margin-top: 4px; }

    .sidebar-user {
        display: flex; align-items: center; gap: 12px;
        background: #131318; padding: 12px 14px;
        border-radius: 12px; border: 1px solid #202028; margin-bottom: 25px;
    }
    .sidebar-avatar {
        width: 36px; height: 36px; border-radius: 10px;
        background: rgba(243,156,18,0.12); border: 1px solid var(--accent);
        color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 15px;
    }
    .sidebar-user-details { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
    .sidebar-user-name { display: block; font-size: 12px; font-weight: 900; color: #fff; text-transform: uppercase; }
    .sidebar-user-role { display: block; font-size: 9px; color: var(--accent); font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; }

    .sidebar-nav-title { font-size: 9px; color: var(--text-muted); font-weight: 900; letter-spacing: 1.5px; margin-bottom: 12px; padding-left: 5px; }
    .sidebar-nav       { display: flex; flex-direction: column; gap: 8px; flex: 1; overflow-y: auto; }

    .sidebar-footer {
        display: flex; gap: 8px;
        padding-top: 18px; border-top: 1px solid var(--border); margin-top: auto;
    }

    .sidebar-action-btn {
        flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
        padding: 10px 8px; background: #141418; border: 1px solid #252530;
        border-radius: 8px; color: #aaa; font-size: 10px; font-weight: 800;
        cursor: pointer; transition: all 0.2s ease;
    }
    .sidebar-action-btn:hover { background: #1e1e24; color: #fff; border-color: #444; }
    .sidebar-action-btn.danger:hover { background: rgba(231,76,60,0.15); color: var(--danger); border-color: var(--danger); }

    /* Toggle split: estado inativo */
    .sidebar-action-btn.split-toggle-accent.single-active {
        background: #141418 !important; border: 1px solid #22222e !important;
        color: #777788 !important; box-shadow: none !important;
    }
    .sidebar-action-btn.split-toggle-accent.single-active i { color: #555566 !important; }

    /* Toggle split: estado ativo */
    .sidebar-action-btn.split-toggle-accent.split-active {
        background: var(--accent) !important;
        border: 1px solid var(--accent) !important;
        color: #000 !important; font-weight: 900 !important;
        box-shadow: 0 4px 15px rgba(243,156,18,0.4) !important;
    }
    .sidebar-action-btn.split-toggle-accent.split-active i { color: #000 !important; }

    .pane-refresh-btn {
        display: inline-flex; align-items: center; justify-content: center;
        width: 28px; height: 28px; background: #1a1a24;
        border: 1px solid #28283a; border-radius: 7px;
        color: var(--accent); font-size: 11px; cursor: pointer; transition: all 0.2s ease;
    }
    .pane-refresh-btn:hover { background: rgba(243,156,18,0.2); border-color: var(--accent); color: #fff; }

    /* --- HEADER MOBILE: OCULTO NO DESKTOP --- */
    .main-header { display: none !important; }

    /* --- BOTTOM NAV: OCULTO NO DESKTOP --- */
    .bottom-nav { display: none !important; }

    /* --- WRAPPER DE CONTEÚDO --- */
    .app-content-wrapper {
        flex: 1 !important;
        width: calc(100vw - 260px) !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        height: 100vh !important;
        overflow: hidden !important;
        background: #0d0d12 !important;
    }

    /* --- BARRA DE TELA DIVIDIDA --- */
    .desktop-split-bar {
        display: none;           /* JS liga com style.display = 'flex' */
        align-items: center;
        justify-content: space-between;
        background: #111116;
        border-bottom: 1px solid #1e1e28;
        padding: 10px 25px;
        min-height: 54px;
        box-sizing: border-box;
        z-index: 90;
        width: 100%;
        flex-shrink: 0;
    }

    .split-mode-title { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 800; color: #e0e0e8; letter-spacing: 0.5px; }
    .split-panes-status { display: flex; align-items: center; gap: 12px; }

    .pane-badge {
        display: flex; align-items: center; gap: 6px;
        padding: 6px 12px; background: #161620; border: 1px solid #252536;
        border-radius: 8px; cursor: pointer; transition: all 0.2s ease; user-select: none;
    }
    .pane-indicator { font-size: 9px; color: var(--text-muted); font-weight: 800; }
    .pane-name      { font-size: 10px; color: #fff; font-weight: 900; letter-spacing: 0.5px; }
    .pane-target-icon { font-size: 10px; color: #555; margin-left: 4px; }
    .pane-badge.active { background: rgba(243,156,18,0.15) !important; border-color: var(--accent) !important; }
    .pane-badge.active .pane-target-icon { color: var(--accent) !important; }

    .split-close-btn {
        display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
        background: rgba(231,76,60,0.12); border: 1px solid rgba(231,76,60,0.4);
        border-radius: 8px; color: var(--danger); font-size: 9px; font-weight: 800;
        cursor: pointer; transition: all 0.2s ease;
    }
    .split-close-btn:hover { background: rgba(231,76,60,0.25); border-color: var(--danger); color: #fff; }

    /* Dual-Pane Split Screen Wrapper & Cards */
    .desktop-split-wrapper {
        display: none;
        flex-direction: row;
        gap: 20px;
        width: 100%;
        height: 100%;
        box-sizing: border-box;
    }

    .desktop-pane-card {
        flex: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        background: #111116 !important;
        border: 1px solid #1f1f2a !important;
        border-radius: 14px !important;
        overflow: hidden !important;
        transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    }

    .desktop-pane-card.active-pane {
        border-color: var(--accent) !important;
        box-shadow: 0 0 20px rgba(243, 156, 18, 0.15) !important;
    }

    .pane-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 16px !important;
        background: #161620 !important;
        border-bottom: 1px solid #222230 !important;
    }

    .pane-header-title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 11px;
        font-weight: 900;
        color: #fff;
        letter-spacing: 0.5px;
    }

    .pane-focus-tag {
        font-size: 8.5px;
        font-weight: 900;
        color: var(--accent);
        background: rgba(243, 156, 18, 0.15);
        padding: 3px 8px;
        border-radius: 6px;
        border: 1px solid rgba(243, 156, 18, 0.4);
        letter-spacing: 1px;
    }

    .pane-body {
        flex: 1 !important;
        padding: 18px !important;
        overflow-y: auto !important;
    }

    .content-frame {
        flex: 1 !important;
        padding: 25px 35px !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
    }

    /* No desktop, as seções da grid são substituídas pela navegação direta */
    .sector-view {
        display: none !important;
    }

    .single-view-container {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        min-height: 100% !important;
        box-sizing: border-box !important;
    }

    #view-container {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100% !important;
        box-sizing: border-box !important;
    }

    .v2-card, .view {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
    }

    /* Estiliza a barra de rolagem no Desktop */
    ::-webkit-scrollbar { width: 8px; }
    ::-webkit-scrollbar-track { background: #08080a; }
    ::-webkit-scrollbar-thumb { background: #22222d; border-radius: 10px; }
    ::-webkit-scrollbar-thumb:hover { background: var(--accent); }
}
