/*
   ISP DESIGN SYSTEM v8.9 — LAYOUT DEFAULT
   ============================================================
   Extraido de app/views/layouts/default.php (linhas 638-1542)
   Cache-busting: ?v=1.0
*/

/* ── Sidebar session clock ── */
.sidebar-session-clock {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background .2s;
    cursor: default;
}
.sidebar-session-clock:hover { background: rgba(255,255,255,.06); }

.ssc-ring-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}
.ssc-ring-wrap svg { display: block; }
.ssc-ring-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    color: #5DCAA5;
    transition: color .5s;
    line-height: 1;
}
.ssc-info { display: flex; flex-direction: column; gap: 2px; }
.ssc-time {
    font-size: 18px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: .03em;
    color: rgba(255,255,255,.9);
    transition: color .5s;
    line-height: 1;
}
.ssc-status {
    font-size: 11px;
    color: rgba(255,255,255,.45);
    transition: color .5s;
}

/* estados sidebar */
.sidebar-session-clock.ssc-warning .ssc-time,
.sidebar-session-clock.ssc-warning .ssc-ring-inner { color: #EF9F27; }
.sidebar-session-clock.ssc-warning .ssc-status     { color: #BA7517; }

.sidebar-session-clock.ssc-critical .ssc-time,
.sidebar-session-clock.ssc-critical .ssc-ring-inner { color: #F09595; animation: ssc-pulse 1s infinite; }
.sidebar-session-clock.ssc-critical .ssc-status     { color: #F09595; }

@keyframes ssc-pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ── Topbar session clock ── */
.topbar-session-clock {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,.1);
    border: 0.5px solid rgba(255,255,255,.15);
    cursor: default;
    transition: background .2s;
    user-select: none;
}
.topbar-session-clock:hover { background: rgba(255,255,255,.18); }
.tsc-info  { display: flex; flex-direction: column; line-height: 1.25; }
.tsc-time  {
    font-size: 13px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    color: #fff;
    letter-spacing: .03em;
    transition: color .5s;
}
.tsc-label { font-size: 9px; color: rgba(255,255,255,.5); letter-spacing: .04em; text-transform: uppercase; }

.topbar-session-clock.ssc-warning  .tsc-time { color: #FAEEDA; }
.topbar-session-clock.ssc-critical .tsc-time { color: #F09595; animation: ssc-pulse 1s infinite; }

/* ──────────────────────────────────────────
   P0 - BUSCA AVANCADA — Chips de escopo + Kbd shortcut + Resultados globais
   ────────────────────────────────────────── */
.menu-search-kbd {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.55rem;
    font-family: 'JetBrains Mono', monospace;
    color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 1px 5px;
    pointer-events: none;
    transition: opacity .15s;
}
.menu-search-container:focus-within .menu-search-kbd { opacity: 0; }

.menu-search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0 0.9rem 0.4rem;
    animation: slideDownFilters .2s ease;
}
@keyframes slideDownFilters {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.msf-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.55);
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}
.msf-chip:hover {
    background: rgba(67,97,238,0.14);
    color: rgba(255,255,255,0.85);
    border-color: rgba(67,97,238,0.3);
}
.msf-chip.active {
    background: linear-gradient(135deg, rgba(67,97,238,0.32), rgba(114,9,183,0.28));
    border-color: rgba(67,97,238,0.5);
    color: #fff;
    box-shadow: 0 2px 6px rgba(67,97,238,0.25);
}
.msf-chip i { font-size: 0.6rem; }

.menu-search-results {
    margin: 4px 0.6rem 6px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    max-height: 380px;
    overflow-y: auto;
    animation: fadeInRecents 0.18s ease;
}
.menu-search-results::-webkit-scrollbar { width: 5px; }
.menu-search-results::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

.msr-group {
    padding: 6px 0 4px;
}
.msr-group-header {
    padding: 4px 12px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.32);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.msr-group-header span:last-child {
    color: rgba(255,255,255,0.18);
    font-weight: 500;
}
.msr-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.45rem 0.9rem;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.78rem;
    border-left: 2px solid transparent;
    transition: all .15s;
    cursor: pointer;
}
.msr-item:hover, .msr-item.kb-focused {
    background: rgba(67,97,238,0.14);
    color: #fff;
    border-left-color: #4361ee;
}
.msr-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(67,97,238,0.18);
    color: #a5b4fc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}
.msr-item-icon.clientes  { background: rgba(6,182,212,0.18);  color: #67e8f9; }
.msr-item-icon.faturas   { background: rgba(255,183,3,0.18);  color: #fcd34d; }
.msr-item-icon.os        { background: rgba(168,85,247,0.18); color: #c084fc; }
.msr-item-icon.menu      { background: rgba(46,204,113,0.18); color: #6ee7b7; }
.msr-item-text { flex: 1; min-width: 0; }
.msr-item-title {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}
.msr-item-sub {
    display: block;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.msr-item-arrow {
    color: rgba(255,255,255,0.2);
    font-size: 0.6rem;
    flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
    .menu-search-filters,
    .menu-search-results,
    .msf-chip { animation: none !important; transition: none !important; }
}

/* ──────────────────────────────────────────
   P1 — Foco de teclado nos resultados
   ────────────────────────────────────────── */
.sidebar-menu .nav-link.kb-focused {
    background: rgba(67, 97, 238, 0.18) !important;
    color: #a0aaff !important;
    border-left-color: #4361ee !important;
    outline: none;
}

/* ──────────────────────────────────────────
   P2 — Highlight de busca (exato e fuzzy)
   ────────────────────────────────────────── */
.menu-search-highlight {
    background: rgba(55, 138, 221, .28);
    color: inherit;
    border-radius: 2px;
    padding: 0 1px;
}
.menu-search-count.no-results { color: #E24B4A !important; }

/* Letras fuzzy individuais em amber */
.menu-fuzzy-highlight {
    background: rgba(239, 159, 39, 0.30);
    color: inherit;
    border-radius: 2px;
    padding: 0 1px;
}

/* ──────────────────────────────────────────
   P3 — Painel de recentes
   ────────────────────────────────────────── */
.menu-recents-panel {
    margin: 4px 8px 6px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    overflow: hidden;
    animation: fadeInRecents 0.18s ease;
}
@keyframes fadeInRecents {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.menu-recents-header {
    padding: 7px 12px 5px;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255,255,255,0.28);
    display: flex;
    align-items: center;
    gap: 5px;
}
.menu-recent-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0.42rem 0.9rem 0.42rem 1rem;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.775rem;
    border-left: 2px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.menu-recent-item:hover,
.menu-recent-item.kb-focused {
    background: rgba(67,97,238,0.14);
    color: rgba(255,255,255,0.9);
    border-left-color: #4361ee;
}
.menu-recent-icon {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.25);
    flex-shrink: 0;
}
.menu-recent-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.menu-recent-section {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.25);
    white-space: nowrap;
    flex-shrink: 0;
}
.menu-recents-clear {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    padding: 6px 12px;
    background: none;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.2);
    font-size: 0.65rem;
    cursor: pointer;
    transition: color 0.15s;
    margin-top: 2px;
}
.menu-recents-clear:hover { color: #E24B4A; }

/* ──────────────────────────────────────────
   P4 — Indicador de velocidade de digitacao
   ────────────────────────────────────────── */
.menu-search-input.typing-fast {
    border-color: rgba(93, 202, 165, 0.4) !important;
    transition: border-color 0.2s;
}
.menu-search-input.typing-slow {
    border-color: rgba(239, 159, 39, 0.3) !important;
    transition: border-color 0.3s;
}

/* ──────────────────────────────────────────
   P5 — Preview tooltip de navegacao por teclado
   ────────────────────────────────────────── */
.menu-nav-preview {
    position: fixed;
    z-index: 9999;
    min-width: 280px;
    max-width: 420px;
    background: rgba(12, 14, 35, 0.97);
    border: 1px solid rgba(130, 140, 255, 0.18);
    border-radius: 10px;
    padding: 12px 14px 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5),
                0 0 0 1px rgba(255,255,255,0.04);
    pointer-events: none;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.menu-nav-preview.visible {
    opacity: 1;
    transform: translateX(0);
}
.mnp-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}
.mnp-crumb {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
    white-space: nowrap;
}
.mnp-crumb-active {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.92);
}
.mnp-sep {
    font-size: 0.5rem;
    color: rgba(255,255,255,0.2);
}
.mnp-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-wrap: wrap;
}
.mnp-url {
    flex: 1;
    font-size: 0.65rem;
    font-family: 'JetBrains Mono', monospace;
    color: rgba(255,255,255,0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.mnp-badge {
    font-size: 0.6rem;
    padding: 0.1rem 0.4rem;
    border-radius: 20px;
    background: rgba(67,97,238,0.3);
    color: #a0aaff;
    font-weight: 600;
    flex-shrink: 0;
}
.mnp-hint {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.2);
    margin-left: auto;
    flex-shrink: 0;
}
.mnp-hint kbd {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.07);
    font-size: 0.6rem;
    font-family: 'JetBrains Mono', monospace;
    color: rgba(255,255,255,0.45);
}
/* Preview — tema claro */
[data-theme="light"] .menu-nav-preview {
    background: rgba(255,255,255,0.97);
    border-color: rgba(67,97,238,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.04);
}
[data-theme="light"] .mnp-crumb        { color: rgba(0,0,0,0.4); }
[data-theme="light"] .mnp-crumb-active { color: rgba(0,0,0,0.88); }
[data-theme="light"] .mnp-sep          { color: rgba(0,0,0,0.2); }
[data-theme="light"] .mnp-url          { color: rgba(0,0,0,0.25); }
[data-theme="light"] .mnp-hint         { color: rgba(0,0,0,0.3); }
[data-theme="light"] .mnp-hint kbd {
    border-color: rgba(0,0,0,0.15);
    background: rgba(0,0,0,0.05);
    color: rgba(0,0,0,0.45);
}

/* ──────────────────────────────────────────
   P6 — Badges visiveis e buscaveis
   ────────────────────────────────────────── */
.badge.badge-search-match {
    outline: 1.5px solid rgba(255,255,255,0.5);
    outline-offset: 1px;
    transform: scale(1.08);
    display: inline-block;
    transition: transform 0.15s;
}
.sidebar-menu li .badge { transition: opacity 0.15s; }
.badge .menu-search-highlight {
    background: rgba(255,255,255,0.35);
    color: inherit;
    border-radius: 2px;
    padding: 0 1px;
}
.badge .menu-fuzzy-highlight {
    background: rgba(255,255,255,0.25);
    color: inherit;
    border-radius: 2px;
    padding: 0 1px;
}

/* ──────────────────────────────────────────
   P7 — Animações de entrada em cascata
   ────────────────────────────────────────── */
.sidebar-menu li {
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.sidebar-menu li.menu-item-enter {
    animation: menuItemIn 0.22s ease both;
    animation-delay: var(--enter-delay, 0ms);
}
@keyframes menuItemIn {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}
.menu-header.menu-group-enter {
    animation: menuGroupIn 0.18s ease both;
    animation-delay: var(--enter-delay, 0ms);
}
@keyframes menuGroupIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.menu-search-count.count-pop {
    animation: countPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes countPop {
    from { transform: scale(0.85); opacity: 0.5; }
    to   { transform: scale(1);    opacity: 1; }
}
/* Estado vazio */
.menu-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 28px 16px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}
.menu-empty-state.menu-empty-visible {
    opacity: 1;
    transform: translateY(0);
}
.menu-empty-state > i {
    font-size: 1.6rem;
    color: rgba(255,255,255,0.1);
    margin-bottom: 4px;
}
.menu-empty-state > span {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.25);
}
.menu-empty-state > small {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.15);
    text-align: center;
    line-height: 1.4;
}
/* Respeita preferencia de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    .sidebar-menu li.menu-item-enter,
    .menu-header.menu-group-enter,
    .menu-search-count.count-pop,
    .menu-empty-state {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ──────────────────────────────────────────
   P8 — Toast de sincronizacao entre abas
   ────────────────────────────────────────── */
.sync-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
    background: rgba(12,14,35,0.95);
    border: 1px solid rgba(93,202,165,0.3);
    border-radius: 10px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.75);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}
.sync-toast.visible {
    opacity: 1;
    transform: translateY(0);
}
.sync-toast-icon { color: #5DCAA5; font-size: 0.9rem; }
[data-theme="light"] .sync-toast {
    background: rgba(255,255,255,0.97);
    color: rgba(0,0,0,0.7);
    border-color: rgba(29,158,117,0.3);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* ── RESTAURA DARK TECH — corrige views com CSS inline hardcoded ──
   Este bloco fica no <head> (antes do <body>), então sobrepoe
   qualquer regra !important das views individuais.               */
html[data-theme="dark"] body {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%) !important;
}
html[data-theme="dark"] .isp-header,
html[data-theme="dark"] body .isp-header {
    background: linear-gradient(180deg, rgba(26,26,46,0.98), rgba(22,33,62,0.95)) !important;
}

/* ──────────────────────────────────────────
   SIDEBAR COLLAPSE — Auto-close ao clicar link
   ────────────────────────────────────────── */
#sidebar.collapsed {
    width: 70px !important;
    min-width: 70px !important;
}

#sidebar.collapsed .sidebar-menu span,
#sidebar.collapsed .sidebar-header span,
#sidebar.collapsed .sidebar-brand-text,
#sidebar.collapsed .user-info {
    display: none !important;
}

#sidebar.collapsed .sidebar-menu li a,
#sidebar.collapsed .sidebar-user {
    justify-content: center;
    text-align: center;
}

#sidebar.collapsed .sidebar-menu li a i,
#sidebar.collapsed .sidebar-user i {
    margin: 0;
    font-size: 1.2rem;
}

#sidebar.collapsed ~ #mainContent,
#sidebar.collapsed ~ .main-content {
    margin-left: 70px;
}

/* Mobile: drawer open/close */
#sidebar.mobile-open {
    transform: translateX(0) !important;
    left: 0 !important;
}

/* Hover expand no desktop */
body.hover-expanded #sidebar:not(.collapsed) {
    width: 240px !important;
}

html[data-theme="dark"] .isp-panel,
html[data-theme="dark"] body .isp-panel {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.12) !important;
}
html[data-theme="dark"] .isp-panel-header {
    background: rgba(255,255,255,0.05) !important;
    border-bottom-color: rgba(255,255,255,0.12) !important;
}
html[data-theme="dark"] .isp-panel-footer {
    background: rgba(0,0,0,0.2) !important;
    border-top-color: rgba(255,255,255,0.08) !important;
}
html[data-theme="dark"] .card {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.12) !important;
}
html[data-theme="dark"] .card-header {
    background: rgba(255,255,255,0.05) !important;
    border-bottom-color: rgba(255,255,255,0.12) !important;
}
html[data-theme="dark"] .card-footer {
    background: rgba(0,0,0,0.2) !important;
    border-top-color: rgba(255,255,255,0.08) !important;
}
html[data-theme="dark"] .card-body { color: #fff !important; }
html[data-theme="dark"] .table {
    background: transparent !important;
    border-color: rgba(255,255,255,0.08) !important;
}
html[data-theme="dark"] .table thead th {
    background: rgba(255,255,255,0.04) !important;
    color: rgba(255,255,255,0.70) !important;
    border-bottom-color: rgba(255,255,255,0.10) !important;
}
html[data-theme="dark"] .table td { color: #fff !important; border-color: rgba(255,255,255,0.06) !important; }
html[data-theme="dark"] .table-hover tbody tr:hover,
html[data-theme="dark"] body tr:hover { background: rgba(99,102,241,0.06) !important; }
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] select,
html[data-theme="dark"] input:not([type=checkbox]):not([type=radio]),
html[data-theme="dark"] textarea { background: rgba(255,255,255,0.06) !important; border-color: rgba(255,255,255,0.15) !important; color: #fff !important; }
html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus { border-color: #4361ee !important; box-shadow: 0 0 0 3px rgba(67,97,238,0.25) !important; }
html[data-theme="dark"] .btn-primary { background: linear-gradient(135deg, #4361ee 0%, #7209b7 100%) !important; border-color: transparent !important; color: #fff !important; }
html[data-theme="dark"] .btn-primary:hover { background: linear-gradient(135deg, #3651d4 0%, #5a0896 100%) !important; }
html[data-theme="dark"] .btn-secondary { background: rgba(255,255,255,0.08) !important; border-color: rgba(255,255,255,0.15) !important; color: #fff !important; }
html[data-theme="dark"] .btn-outline-primary { background: transparent !important; border-color: #4361ee !important; color: #4361ee !important; }
html[data-theme="dark"] .btn-outline-primary:hover { background: #4361ee !important; color: #fff !important; }
html[data-theme="dark"] .modal-content { background: #1a1a2e !important; border-color: rgba(255,255,255,0.12) !important; }
html[data-theme="dark"] .modal-header { background: rgba(255,255,255,0.05) !important; border-bottom-color: rgba(255,255,255,0.12) !important; color: #fff !important; }
html[data-theme="dark"] .modal-body { color: #fff !important; }
html[data-theme="dark"] .modal-footer { background: rgba(0,0,0,0.2) !important; border-top-color: rgba(255,255,255,0.10) !important; }
html[data-theme="dark"] .alert-success { background: rgba(6,214,160,0.15) !important; color: #06d6a0 !important; border-left-color: #06d6a0 !important; }
html[data-theme="dark"] .alert-danger { background: rgba(239,71,111,0.15) !important; color: #ef476f !important; border-left-color: #ef476f !important; }
html[data-theme="dark"] .alert-warning { background: rgba(255,183,3,0.15) !important; color: #ffb703 !important; border-left-color: #ffb703 !important; }
html[data-theme="dark"] .alert-info { background: rgba(6,182,212,0.15) !important; color: #06b6d4 !important; border-left-color: #06b6d4 !important; }
html[data-theme="dark"] .page-link { background: rgba(255,255,255,0.06) !important; border-color: rgba(255,255,255,0.12) !important; color: rgba(255,255,255,0.80) !important; }
html[data-theme="dark"] .page-item.active .page-link { background: linear-gradient(135deg, #4361ee 0%, #7209b7 100%) !important; color: #fff !important; }
html[data-theme="dark"] .dropdown-menu { background: #1a1a2e !important; border-color: rgba(255,255,255,0.12) !important; }
html[data-theme="dark"] .dropdown-item { color: rgba(255,255,255,0.85) !important; }
html[data-theme="dark"] .dropdown-item:hover { background: rgba(67,97,238,0.20) !important; color: #fff !important; }
html[data-theme="dark"] .badge.bg-primary { background: rgba(67,97,238,0.20) !important; color: #a5b4fc !important; }
html[data-theme="dark"] .badge.bg-success { background: rgba(6,214,160,0.20) !important; color: #06d6a0 !important; }
html[data-theme="dark"] .badge.bg-danger { background: rgba(239,71,111,0.20) !important; color: #ef476f !important; }
html[data-theme="dark"] .badge.bg-warning { background: rgba(255,183,3,0.20) !important; color: #ffb703 !important; }
html[data-theme="dark"] .toast { background: #1a1a2e !important; color: #fff !important; }
html[data-theme="dark"] .toast-header { background: rgba(255,255,255,0.05) !important; color: #fff !important; border-bottom-color: rgba(255,255,255,0.10) !important; }
html[data-theme="dark"] .progress { background: rgba(255,255,255,0.08) !important; }
html[data-theme="dark"] .progress-bar { background: linear-gradient(90deg, #4361ee, #7209b7) !important; }
html[data-theme="dark"] .nav-tabs .nav-link { color: rgba(255,255,255,0.70) !important; }
html[data-theme="dark"] .nav-tabs .nav-link.active { color: #4361ee !important; border-bottom-color: #4361ee !important; }
html[data-theme="dark"] .nav-pills .nav-link.active { background: linear-gradient(135deg, #4361ee 0%, #7209b7 100%) !important; color: #fff !important; }
html[data-theme="dark"] .nav-pills .nav-link { color: rgba(255,255,255,0.72) !important; }
html[data-theme="dark"] .spinner-overlay { background: rgba(0,0,0,0.72) !important; }
html[data-theme="dark"] .spinner-content { background: #1a1a2e !important; border-color: rgba(255,255,255,0.12) !important; color: #fff !important; }
html[data-theme="dark"] .loading-overlay { background: rgba(0,0,0,0.82) !important; }
html[data-theme="dark"] .isp-input,
html[data-theme="dark"] .isp-select { background: rgba(255,255,255,0.06) !important; border-color: rgba(255,255,255,0.15) !important; color: #fff !important; }
html[data-theme="dark"] .isp-input:focus,
html[data-theme="dark"] .isp-select:focus { border-color: #4361ee !important; box-shadow: 0 0 0 3px rgba(67,97,238,0.25) !important; }
html[data-theme="dark"] .isp-toast { background: #24243e !important; color: #fff !important; border-left-color: #06d6a0 !important; }
html[data-theme="dark"] #logFloating { background: linear-gradient(135deg, #1a1a2e, #16213e) !important; }
html[data-theme="dark"] #logHeader { background: rgba(255,255,255,0.05) !important; }
html[data-theme="dark"] .glass-card,
html[data-theme="dark"] .card-glass { background: rgba(26,26,46,0.85) !important; border-color: rgba(255,255,255,0.12) !important; }
html[data-theme="dark"] a { color: #a5b4fc !important; }
html[data-theme="dark"] a:hover { color: #fff !important; }

/* ── TEMA WINDOWS DARK — OVERRIDE GLOBAL ──
   Cores neutras do Windows 11 para切换 entre temas.   */
html[data-theme="windows"] body {
    background: #202020 !important;
}
html[data-theme="windows"] body,
html[data-theme="windows"] .isp-panel,
html[data-theme="windows"] .isp-header { background: #2b2b2b !important; }
html[data-theme="windows"] .isp-panel-header { background: #323232 !important; }
html[data-theme="windows"] .isp-panel-footer { background: #252525 !important; }
html[data-theme="windows"] .card { background: #2b2b2b !important; }
html[data-theme="windows"] .card-header { background: #323232 !important; color: #fff !important; }
html[data-theme="windows"] .card-footer { background: #252525 !important; }
html[data-theme="windows"] .table { background: #2b2b2b !important; }
html[data-theme="windows"] .table thead th { background: #323232 !important; color: rgba(255,255,255,0.85) !important; }
html[data-theme="windows"] .table td { color: #fff !important; }
html[data-theme="windows"] .table-hover tbody tr:hover { background: rgba(255,255,255,0.05) !important; }
html[data-theme="windows"] .form-control,
html[data-theme="windows"] .form-select,
html[data-theme="windows"] select,
html[data-theme="windows"] input:not([type=checkbox]):not([type=radio]),
html[data-theme="windows"] textarea { background: rgba(255,255,255,0.05) !important; border-color: rgba(255,255,255,0.15) !important; color: #fff !important; }
html[data-theme="windows"] .form-control:focus,
html[data-theme="windows"] .form-select:focus { border-color: #4cc2ff !important; box-shadow: 0 0 0 2px rgba(76,194,255,0.25) !important; }
html[data-theme="windows"] .btn-primary { background: #4cc2ff !important; background-image: none !important; border-color: #4cc2ff !important; color: #1a1a1a !important; }
html[data-theme="windows"] .btn-primary:hover { background: #6ccfff !important; }
html[data-theme="windows"] .btn-secondary { background: #3a3a3a !important; border-color: rgba(255,255,255,0.15) !important; color: #fff !important; }
html[data-theme="windows"] .btn-outline-primary { background: transparent !important; border-color: #4cc2ff !important; color: #4cc2ff !important; }
html[data-theme="windows"] .btn-outline-primary:hover { background: #4cc2ff !important; color: #1a1a1a !important; }
html[data-theme="windows"] .modal-content { background: #2b2b2b !important; }
html[data-theme="windows"] .modal-header { background: #323232 !important; color: #fff !important; }
html[data-theme="windows"] .modal-body { color: #fff !important; }
html[data-theme="windows"] .modal-footer { background: #252525 !important; }
html[data-theme="windows"] .alert-success { background: rgba(46,204,113,0.15) !important; color: #2ecc71 !important; }
html[data-theme="windows"] .alert-danger { background: rgba(231,76,60,0.15) !important; color: #e74c3c !important; }
html[data-theme="windows"] .alert-warning { background: rgba(243,156,18,0.15) !important; color: #f39c12 !important; }
html[data-theme="windows"] .alert-info { background: rgba(76,194,255,0.15) !important; color: #4cc2ff !important; }
html[data-theme="windows"] .page-link { background: #323232 !important; border-color: rgba(255,255,255,0.10) !important; color: rgba(255,255,255,0.85) !important; }
html[data-theme="windows"] .page-item.active .page-link { background: #4cc2ff !important; color: #1a1a1a !important; }
html[data-theme="windows"] .dropdown-menu { background: #2b2b2b !important; color: #fff !important; }
html[data-theme="windows"] .dropdown-item { color: rgba(255,255,255,0.85) !important; }
html[data-theme="windows"] .dropdown-item:hover { background: rgba(76,194,255,0.18) !important; }
html[data-theme="windows"] .badge.bg-primary { background: rgba(76,194,255,0.18) !important; color: #4cc2ff !important; }
html[data-theme="windows"] .badge.bg-success { background: rgba(46,204,113,0.18) !important; color: #2ecc71 !important; }
html[data-theme="windows"] .badge.bg-danger { background: rgba(231,76,60,0.18) !important; color: #e74c3c !important; }
html[data-theme="windows"] .badge.bg-warning { background: rgba(243,156,18,0.18) !important; color: #f39c12 !important; }
html[data-theme="windows"] .toast { background: #2b2b2b !important; color: #fff !important; }
html[data-theme="windows"] .toast-header { background: #323232 !important; color: #fff !important; }
html[data-theme="windows"] .progress { background: rgba(255,255,255,0.08) !important; }
html[data-theme="windows"] .progress-bar { background: #4cc2ff !important; }
html[data-theme="windows"] .nav-tabs .nav-link { color: rgba(255,255,255,0.70) !important; }
html[data-theme="windows"] .nav-tabs .nav-link.active { color: #4cc2ff !important; border-bottom-color: #4cc2ff !important; }
html[data-theme="windows"] .nav-pills .nav-link.active { background: #4cc2ff !important; color: #1a1a1a !important; }
html[data-theme="windows"] .nav-pills .nav-link { color: rgba(255,255,255,0.72) !important; }
html[data-theme="windows"] .spinner-overlay { background: rgba(0,0,0,0.72) !important; }
html[data-theme="windows"] .spinner-content { background: #2b2b2b !important; color: #fff !important; }
html[data-theme="windows"] .loading-overlay { background: rgba(0,0,0,0.82) !important; }
html[data-theme="windows"] .isp-input,
html[data-theme="windows"] .isp-select { background: rgba(255,255,255,0.06) !important; border-color: rgba(255,255,255,0.15) !important; color: #fff !important; }
html[data-theme="windows"] .isp-input:focus,
html[data-theme="windows"] .isp-select:focus { border-color: #4cc2ff !important; box-shadow: 0 0 0 3px rgba(76,194,255,0.2) !important; }
html[data-theme="windows"] .isp-toast { background: #2b2b2b !important; color: #fff !important; }
html[data-theme="windows"] #logFloating { background: linear-gradient(135deg, #1a1a2e, #16213e) !important; }
html[data-theme="windows"] #logHeader { background: rgba(255,255,255,0.05) !important; }
html[data-theme="windows"] .glass-card,
html[data-theme="windows"] .card-glass { background: rgba(31,31,31,0.85) !important; border-color: rgba(255,255,255,0.10) !important; }
html[data-theme="windows"] a { color: #4cc2ff !important; }
html[data-theme="windows"] a:hover { color: #6ccfff !important; }

/* ── CLASSES LEGADAS — Dark Tech v8.7 compat ──
   Garante estilo consistente em views que ainda usam
   btn-isp-info, btn-isp-refresh, btn-fechar, queue-badge,
   badge-info-custom, isp-act-btn, isp-code-user. */.btn-fechar { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: #fff !important; padding: 7px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.btn-fechar:hover { background: rgba(255,255,255,0.14); }
.queue-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 5px; font-size: .6rem; font-weight: 700; background: rgba(67,97,238,0.15); color: #a5b4fc; border: 1px solid rgba(67,97,238,0.25); }
.queue-badge-default { background: rgba(67,97,238,0.15); color: #a5b4fc; border-color: rgba(67,97,238,0.25); }
.queue-badge-success { background: rgba(46,204,113,0.15); color: #2ecc71; border-color: rgba(46,204,113,0.25); }
.queue-badge-warning { background: rgba(255,183,3,0.15); color: #ffb703; border-color: rgba(255,183,3,0.25); }
.queue-badge-danger  { background: rgba(239,71,111,0.15); color: #ef476f; border-color: rgba(239,71,111,0.25); }
.queue-badge-info    { background: rgba(6,182,212,0.15); color: #06b6d4; border-color: rgba(6,182,212,0.25); }
.queue-badge-purple  { background: rgba(114,9,183,0.15); color: #a855f7; border-color: rgba(114,9,183,0.25); }
.badge-info-custom { display: inline-block; background: rgba(6,182,212,0.15); color: #06b6d4; border: 1px solid rgba(6,182,212,0.3); border-radius: 12px; padding: 2px 10px; font-size: .6rem; font-weight: 700; }.isp-act-btn.btn-danger, .isp-act-btn.btn-error { background: rgba(231,76,60,0.2); border-color: rgba(231,76,60,0.4); color: #ef476f; }
.isp-act-btn.btn-danger:hover, .isp-act-btn.btn-error:hover { background: rgba(231,76,60,0.3); color: #fff; }.isp-act-btn.btn-primary { background: rgba(67,97,238,0.2); border-color: rgba(67,97,238,0.4); color: #4361ee; }
.isp-act-btn.btn-primary:hover { background: rgba(67,97,238,0.3); color: #fff; }
.isp-act-btn.btn-sm { padding: 3px 7px; font-size: .6rem; }
.isp-code-user { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); padding: 2px 6px; border-radius: 4px; color: #a5b4fc; font-family: monospace; }

/* ── STAT CARDS — Dark Tech v8.7 ULTRA PREMIUM ──
   Padrao unico usado em TODAS as views do sistema.
   Inspirado no Dashboard Executivo: border-left colorido,
   valor com gradiente de texto, icone em quadrado colorido.
   Usa !important para sobrescrever CSS interno das views
   e garantir consistencia visual em todo o sistema.
   Suporta variantes:
     .stat-card           (base)
     .stat-card-primary   / .card-primary
     .stat-card-success   / .card-success
     .stat-card-warning   / .card-warning
     .stat-card-danger    / .card-danger
     .stat-card-info      / .card-info
     .stat-card-purple    / .card-purple
     .card-total          / .card-connect / .card-static
     .kpi-card / .info-card / .small-box  (aliases)            */
.stat-card, .kpi-card, .info-card, .small-box, .metric-card, .card-box, .stat-box, .num-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03)) !important;
    border: 1px solid var(--isp-border, rgba(255,255,255,0.12)) !important;
    border-left: 4px solid var(--isp-primary, #4361ee) !important;
    border-radius: var(--isp-radius-lg, 16px) !important;
    padding: 1.25rem 1.4rem !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
    position: relative;
    overflow: hidden;
    color: #fff !important;
    transition: all .25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    min-height: 110px !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    font-family: var(--isp-sans, "Segoe UI", system-ui, -apple-system, sans-serif) !important;
}
.stat-card:hover, .kpi-card:hover, .info-card:hover, .small-box:hover, .metric-card:hover, .card-box:hover, .stat-box:hover, .num-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5) !important;
    border-color: rgba(255,255,255,0.25) !important;
}
/* Barra lateral colorida — padrao principal */
.stat-card::before, .kpi-card::before, .info-card::before, .small-box::before,
.metric-card::before, .card-box::before, .stat-box::before, .num-card::before {
    display: none !important;
    content: none !important;
}
/* Variantes — cada uma com sua cor na barra lateral */
.stat-card-primary, .card-primary,
.stat-card.card-primary { border-left-color: #4a9eff !important; }
.stat-card-success, .card-success,
.stat-card.card-success { border-left-color: #3fb950 !important; }
.stat-card-warning, .card-warning,
.stat-card.card-warning { border-left-color: #ffb703 !important; }
.stat-card-danger, .card-danger,
.stat-card.card-danger  { border-left-color: #f85149 !important; }
.stat-card-info, .card-info,
.stat-card.card-info    { border-left-color: #58a6ff !important; }
.stat-card-purple, .card-purple,
.stat-card.card-purple  { border-left-color: #a371f7 !important; }
.stat-card.card-total   { border-left-color: #4a9eff !important; }
.stat-card.card-connect { border-left-color: #58a6ff !important; }
.stat-card.card-static  { border-left-color: #ffb703 !important; }
.stat-card.card-dynamic { border-left-color: #3fb950 !important; }

/* Valor numerico dentro do card — com gradiente de texto */
.stat-card .stat-value, .stat-card .value,
.kpi-card .stat-value, .info-card .stat-value, .small-box .stat-value,
.metric-card .stat-value, .metric-card .metric-value, .card-box .stat-value, .stat-box .stat-value, .num-card .stat-value {
    font-size: 2rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    background: linear-gradient(180deg, #ffffff 0%, #d0d0d0 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin-bottom: 4px !important;
}
/* Label */
.stat-card .stat-label, .stat-card .label,
.kpi-card .stat-label, .info-card .stat-label, .small-box .stat-label,
.metric-card .stat-label, .metric-card .metric-label, .card-box .stat-label, .stat-box .stat-label, .num-card .stat-label {
    font-size: .7rem !important;
    text-transform: uppercase !important;
    color: rgba(255,255,255,0.7) !important;
    letter-spacing: .07em !important;
    font-weight: 600 !important;
    margin-bottom: 0.4rem !important;
}
/* Footer / subtexto */
.stat-card .stat-footer, .stat-card .footer,
.kpi-card .stat-footer, .info-card .stat-footer, .small-box .stat-footer,
.metric-card .stat-footer, .card-box .stat-footer, .stat-box .stat-footer, .num-card .stat-footer {
    margin-top: 8px !important;
    font-size: var(--isp-font-xs, .6rem) !important;
    color: var(--isp-text-dim, rgba(255,255,255,0.5)) !important;
    padding-top: 8px !important;
    border-top: 1px solid var(--isp-border, rgba(255,255,255,0.12)) !important;
}
/* Sub / small text */
.stat-card .stat-sub, .stat-card .sub,
.kpi-card .stat-sub, .info-card .stat-sub, .small-box .stat-sub,
.metric-card .stat-sub, .card-box .stat-sub, .stat-box .stat-sub, .num-card .stat-sub {
    font-size: .75rem !important;
    color: rgba(255,255,255,0.6) !important;
    opacity: .85 !important;
    margin-top: .25rem !important;
}
/* Icone padrao em quadrado colorido */
.stat-card .stat-icon, .stat-card .icon,
.kpi-card .stat-icon, .info-card .stat-icon, .small-box .stat-icon,
.metric-card .stat-icon, .card-box .stat-icon, .stat-box .stat-icon, .num-card .stat-icon {
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--isp-radius, 8px) !important;
    background: rgba(74,158,255,0.15) !important;
    color: #4a9eff !important;
    font-size: 1.4rem !important;
    flex-shrink: 0 !important;
    transition: all .25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.stat-card:hover .stat-icon, .kpi-card:hover .stat-icon, .info-card:hover .stat-icon, .small-box:hover .stat-icon,
.metric-card:hover .stat-icon, .card-box:hover .stat-icon, .stat-box:hover .stat-icon, .num-card:hover .stat-icon {
    transform: scale(1.05) !important;
}
/* Cor do icone segue a variante */
.stat-card-primary .stat-icon, .stat-card.card-primary .stat-icon { background: rgba(74,158,255,0.15) !important; color: #4a9eff !important; }
.stat-card-success .stat-icon, .stat-card.card-success .stat-icon { background: rgba(63,185,80,0.15) !important; color: #3fb950 !important; }
.stat-card-warning .stat-icon, .stat-card.card-warning .stat-icon { background: rgba(255,183,3,0.15) !important; color: #ffb703 !important; }
.stat-card-danger .stat-icon, .stat-card.card-danger .stat-icon   { background: rgba(248,81,73,0.15) !important; color: #f85149 !important; }
.stat-card-info .stat-icon, .stat-card.card-info .stat-icon       { background: rgba(88,166,255,0.15) !important; color: #58a6ff !important; }
.stat-card-purple .stat-icon, .stat-card.card-purple .stat-icon   { background: rgba(163,113,247,0.15) !important; color: #a371f7 !important; }

/* ── MODAL EXPORTAR — Dark Tech v8.7 ULTRA PREMIUM ──
   Padrao unico para todos os modais de exportar do sistema. */
.isp-modal {
    background: var(--isp-bg3, #24243e) !important;
    border: 1px solid var(--isp-border, rgba(255,255,255,0.12)) !important;
    border-radius: var(--isp-radius-lg, 16px) !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5) !important;
}
.isp-modal .modal-content {
    background: var(--isp-bg3, #24243e) !important;
    border: 1px solid var(--isp-border, rgba(255,255,255,0.12)) !important;
    border-radius: var(--isp-radius-lg, 16px) !important;
    box-shadow: none !important;
}
.isp-modal .modal-header {
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)) !important;
    border-bottom: 1px solid var(--isp-border, rgba(255,255,255,0.12)) !important;
    border-radius: var(--isp-radius-lg, 16px) 16px 0 0 !important;
    padding: 1rem 1.25rem !important;
}
.isp-modal .modal-header .modal-title {
    font-size: .9rem !important;
    font-weight: 700 !important;
    color: #fff !important;
}
.isp-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%) !important;
    opacity: .6 !important;
}
.isp-modal .btn-close:hover { opacity: 1 !important; }
.isp-modal .modal-body {
    padding: 1.25rem !important;
    color: #fff !important;
}
.isp-modal .modal-footer {
    border-top: 1px solid var(--isp-border, rgba(255,255,255,0.12)) !important;
    padding: .9rem 1.25rem !important;
}
/* Label padrao do form no modal */
.isp-form-label {
    font-size: .65rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .07em !important;
    color: rgba(255,255,255,0.6) !important;
    margin-bottom: .5rem !important;
    display: block !important;
}
/* Grid de formatos de exportacao */
.isp-export-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: .6rem !important;
}
.isp-export-opt {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: .4rem !important;
    padding: .75rem .5rem !important;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    border-radius: var(--isp-radius, 8px) !important;
    cursor: pointer !important;
    transition: all .2s ease !important;
    text-align: center !important;
}
.isp-export-opt:hover {
    background: rgba(255,255,255,0.09) !important;
    border-color: rgba(255,255,255,0.2) !important;
    transform: translateY(-2px) !important;
}
.isp-export-opt.selected {
    background: rgba(74,158,255,0.15) !important;
    border-color: #4a9eff !important;
    box-shadow: 0 0 15px rgba(74,158,255,0.25) !important;
}
.isp-export-opt-icon {
    font-size: 1.6rem !important;
    line-height: 1 !important;
}
.isp-export-opt-label {
    font-size: .7rem !important;
    font-weight: 700 !important;
    color: #fff !important;
}
.isp-export-opt-desc {
    font-size: .55rem !important;
    color: rgba(255,255,255,0.5) !important;
    line-height: 1.3 !important;
}
/* Botoes do modal — v8.7 */
.isp-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: .4rem !important;
    padding: .5rem 1rem !important;
    border-radius: var(--isp-radius, 8px) !important;
    font-size: .75rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    border: 1px solid transparent !important;
    transition: all .2s ease !important;
    text-decoration: none !important;
}
.isp-btn-primary {
    background: #4a9eff !important;
    border-color: #4a9eff !important;
    color: #fff !important;
}
.isp-btn-primary:hover {
    background: #58a6ff !important;
    border-color: #58a6ff !important;
    transform: translateY(-1px) !important;
}
.isp-btn-ghost {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.15) !important;
    color: #fff !important;
}
.isp-btn-ghost:hover {
    background: rgba(255,255,255,0.14) !important;
    border-color: rgba(255,255,255,0.25) !important;
    color: #fff !important;
}

/* ── Global Toggle Bloqueio (v8.9) ── */
.isp-toggle-bloqueio {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 44px !important;
    height: 22px !important;
    background-color: rgba(239, 71, 111, 0.4) !important;
    border: 2px solid rgba(239, 71, 111, 0.6) !important;
    border-radius: 11px !important;
    cursor: pointer !important;
    position: relative !important;
    transition: all 0.25s ease !important;
    display: inline-block !important;
    vertical-align: middle !important;
}
.isp-toggle-bloqueio::before {
    content: '' !important;
    position: absolute !important;
    top: 1px !important;
    left: 1px !important;
    width: 16px !important;
    height: 16px !important;
    background: #ef476f !important;
    border-radius: 50% !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}
.isp-toggle-bloqueio:checked {
    background-color: rgba(6, 214, 160, 0.4) !important;
    border-color: rgba(6, 214, 160, 0.6) !important;
}
.isp-toggle-bloqueio:checked::before {
    transform: translateX(22px) !important;
    background: #06d6a0 !important;
}
.isp-toggle-bloqueio:hover {
    box-shadow: 0 0 8px rgba(67, 97, 238, 0.5) !important;
}
.isp-toggle-bloqueio:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.3) !important;
}
.isp-toggle-bloqueio:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Tooltip elegante para toggle */
.isp-toggle-bloqueio[title] {
    position: relative;
}
.isp-toggle-bloqueio[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(36, 36, 62, 0.98);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-family: inherit;
    white-space: nowrap;
    z-index: 9999;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    pointer-events: none;
    animation: tooltipFadeIn 0.15s ease;
}
.isp-toggle-bloqueio[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(36, 36, 62, 0.98);
    z-index: 9999;
}
@keyframes tooltipFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(4px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Global Table Compact Mode (v8.9) ── */
.isp-table-compacta,
.isp-table-compacta th,
.isp-table-compacta td,
table.isp-table-compacta th,
table.isp-table-compacta td {
    font-size: 12px !important;
    padding: 6px 8px !important;
    line-height: 1.4 !important;
}
.isp-table-compacta .isp-badge {
    font-size: 10px !important;
    padding: 2px 6px !important;
}
.isp-table-compacta .form-check-input,
.isp-table-compacta input[type="checkbox"] {
    width: 36px !important;
    height: 18px !important;
}
.isp-table-compacta .isp-btn {
    padding: 4px 8px !important;
    font-size: 11px !important;
}
