/* ==========================================================================
   SANITIX SYSTEM - PREMIUM CSS DESIGN SYSTEM
   ========================================================================== */

/* ============================================================================
   SISTEMA DE MODAIS POPUP (.modal-overlay, .hidden)
   ============================================================================ */
.hidden {
    display: none !important;
}

/* Ocultação global incondicional de elementos de navegação móvel legados no Desktop / Notebook */
.manager-mobile-bottom-nav,
.manager-mobile-fab,
.manager-mobile-drawer-overlay,
.manager-mobile-quick-menu,
#manager-mobile-bottom-nav,
#manager-mobile-fab,
#manager-mobile-drawer,
#manager-mobile-quick-menu {
    display: none !important;
}

.modal-overlay {
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.hidden {
    display: none !important;
}

.modal-card {
    box-sizing: border-box;
    background: var(--color-bg-card, #1e293b);
    border: 1px solid var(--color-card-border, rgba(255, 255, 255, 0.12));
    border-radius: var(--border-radius-lg, 12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 229, 230, 0.15);
    width: 100%;
    max-width: 650px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalPop 0.25s ease-out;
}

.modal-card > form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--color-card-border, rgba(255, 255, 255, 0.08));
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
}

.modal-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--color-text-secondary, #94a3b8);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--color-danger, #ef4444);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    max-height: 55vh;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--color-card-border, rgba(255, 255, 255, 0.08));
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

/* ============================================================================
   SIMULADOR DE CELULAR (PHONE MOCKUP FRAME)
   ============================================================================ */
.phone-mockup-frame {
    width: 380px;
    max-width: 95vw;
    height: 780px;
    max-height: 90vh;
    background: #000000;
    border: 12px solid #1e293b;
    border-radius: 28px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 229, 230, 0.2);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    animation: modalPop 0.3s ease-out;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-mockup-frame.wide-mode {
    width: 980px;
}


.phone-mockup-topbar {
    height: 36px;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
}

.phone-camera-notch {
    width: 100px;
    height: 18px;
    background: #0f172a;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.phone-mockup-screen {
    flex: 1;
    background: #0b0f19;
    overflow: hidden;
}

.phone-home-bar {
    height: 16px;
    background: #000000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.phone-home-bar::after {
    content: '';
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
}
.phone-home-bar:hover::after {
    background: var(--color-primary, #00e5e6);
}
.sidebar-menu-group {
    margin-bottom: 12px;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 6px;
    border-left: 3px solid transparent;
}

.dropdown-toggle:hover {
    background: rgba(0, 229, 230, 0.1);
    color: var(--color-primary, #00e5e6);
}

.dropdown-toggle span {
    flex: 1;
    text-align: left;
}

.submenu-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    color: var(--color-text-secondary, #94a3b8);
}

.dropdown-toggle.collapsed .submenu-arrow {
    transform: rotate(-90deg);
}

.sidebar-submenu {
    list-style: none;
    padding: 0 0 0 12px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-height: 600px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.sidebar-submenu.collapsed {
    max-height: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.subnav-btn {
    padding: 8px 12px;
    font-size: 0.82rem;
    border-left: 2px solid rgba(255,255,255,0.05);
}
.workspace-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: calc(100vh - 65px);
    background: var(--color-bg-deep, #0b0f19);
    overflow: hidden;
}

.admin-panel {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: calc(100vh - 65px);
    overflow: hidden;
    position: relative;
}

.admin-sidebar {
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    height: 100%;
    background: var(--color-bg-sidebar, #0f172a);
    border-right: 1px solid var(--color-card-border, rgba(255, 255, 255, 0.08));
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 20;
}

.sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 6px;
}
.sidebar-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
.sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 230, 0.3);
    border-radius: 4px;
}
.sidebar-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary, #00e5e6);
}

.sidebar-category {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted, #64748b);
    margin: 18px 8px 8px 8px;
}
.sidebar-category:first-child {
    margin-top: 4px;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--color-card-border, rgba(255, 255, 255, 0.08));
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.75rem;
    color: var(--color-text-secondary, #94a3b8);
}

.admin-content {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    padding: 24px 28px;
    background: var(--color-bg-deep, #0b0f19);
}

.tab-pane {
    display: none !important;
}
.tab-pane.active {
    display: block !important;
}

.nav-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--color-text-secondary, #94a3b8);
    padding: 10px 14px;
    border-radius: var(--border-radius-sm, 6px);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.nav-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}
.nav-btn.active {
    background: linear-gradient(90deg, rgba(0, 229, 230, 0.15), rgba(0, 112, 255, 0.15));
    border-left: 3px solid var(--color-primary, #00e5e6);
    color: var(--color-primary, #00e5e6);
    font-weight: 700;
}

/* Design Tokens & Custom Variables */
:root {
    color-scheme: dark;
    --font-header: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Curated HSL Color Scheme */
    --color-bg-deep: hsl(222, 47%, 7%);
    --color-bg-base: hsl(222, 47%, 11%);
    --color-card-bg: hsla(217, 33%, 17%, 0.8);
    --color-bg-card: hsla(217, 33%, 17%, 0.8);
    --color-card-border: rgba(255, 255, 255, 0.15);
    
    --color-primary: hsl(180, 100%, 45%);       /* Sterile Cyan Glow */
    --color-primary-hover: hsl(180, 100%, 38%);
    --color-primary-rgb: 0, 229, 230;
    
    --color-secondary: hsl(210, 100%, 55%);     /* Electric Blue */
    --color-secondary-hover: hsl(210, 100%, 45%);
    --color-secondary-rgb: 0, 112, 255;

    --color-success: hsl(142, 70%, 45%);        /* Emerald Green */
    --color-success-glow: rgba(16, 185, 129, 0.2);
    
    --color-warning: hsl(38, 92%, 50%);         /* Warm Amber */
    --color-warning-glow: rgba(245, 158, 11, 0.2);
    
    --color-danger: hsl(350, 80%, 55%);         /* Coral Red */
    --color-danger-glow: rgba(239, 68, 68, 0.2);

    --color-text-primary: hsl(210, 40%, 98%);
    --color-text-secondary: hsl(215, 16%, 80%);
    --color-text-muted: hsl(215, 12%, 60%);

    --glass-blur: 16px;
    --border-radius-lg: 16px;
    --border-radius-md: 10px;
    --border-radius-sm: 6px;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* Base Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg-deep);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Força ícones nativos (como o calendário) a ficarem claros no dark mode */
input[type="date"], input[type="time"] {
    color-scheme: dark;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.9;
    cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-deep);
}
::-webkit-scrollbar-thumb {
    background: hsl(215, 20%, 25%);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: hsl(215, 20%, 35%);
}

/* Header Area */
.app-header {
    height: 70px;
    background: var(--color-bg-base);
    border-bottom: 1px solid var(--color-card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--color-bg-deep);
    box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.35);
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(90deg, #ffffff, var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.logo-text span {
    font-size: 11px;
    color: var(--color-text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
    color: var(--color-text-secondary);
}

.pulse-green {
    width: 8px;
    height: 8px;
    background-color: var(--color-success);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGlow 1.6s infinite;
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Layout Workspace */
.workspace-container {
    display: block;
    position: relative;
    height: calc(100vh - 70px);
    overflow: hidden;
}

@media (max-width: 1200px) {
    .workspace-container {
        height: auto;
        overflow: auto;
    }
    .admin-panel {
        height: auto !important;
    }
}

/* ==========================================================================
   DESKTOP ADMIN PANEL (LEFT)
   ========================================================================== */
.admin-panel {
    display: flex;
    height: 100%;
    overflow: hidden;
}

/* Sidebar Navigation */
.admin-sidebar {
    width: 220px;
    background: var(--color-bg-base);
    border-right: 1px solid var(--color-card-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 12px;
}

.sidebar-category {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    padding: 12px 16px 4px 16px;
    margin-top: 10px;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-btn {
    width: 100%;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.nav-btn i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text-primary);
}

.nav-btn.active {
    background: rgba(var(--color-primary-rgb), 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(var(--color-primary-rgb), 0.2);
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 11px;
    color: var(--color-text-muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.finance-locked {
    color: var(--color-warning);
    background: rgba(245, 158, 11, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    cursor: not-allowed;
}

/* Content Pane */
.admin-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    background-color: var(--color-bg-deep);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   DASHBOARD TILES / MÉTRIQUES
   ========================================================================== */
.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stats-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--border-radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s cubic-bezier(0.22,1,0.36,1), border-color 0.35s ease;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.025);
    border-color: rgba(0, 240, 255, 0.25);
    box-shadow: 0 12px 32px -8px rgba(0, 240, 255, 0.18), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--color-bg-deep);
}

.bg-cyan { background: var(--color-primary); box-shadow: 0 0 15px rgba(0, 229, 230, 0.25); }
.bg-green { background: var(--color-success); box-shadow: 0 0 15px rgba(16, 185, 129, 0.25); }
.bg-yellow { background: var(--color-warning); box-shadow: 0 0 15px rgba(245, 158, 11, 0.25); }
.bg-orange { background: var(--color-danger); box-shadow: 0 0 15px rgba(239, 68, 68, 0.25); }

.stat-info h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
}

.stat-info p {
    font-size: 13px;
    color: var(--color-text-secondary);
}

/* Dashboard Main Row (Mapa + Painel de Detalhes) */
.dashboard-main-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .dashboard-main-row {
        grid-template-columns: 1fr;
    }
}

/* General Cards */
.card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(var(--glass-blur));
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-card-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header.justify-between {
    justify-content: space-between;
}

.card-header h2 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h2 i {
    color: var(--color-primary);
}

.card-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.card-description {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

/* interactive Map component */
.map-wrapper {
    background-color: #0d1321;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.simulated-map {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    background-color: #0b0f19;
}

.map-svg {
    width: 100%;
    height: 100%;
}

.map-district-text {
    fill: rgba(255,255,255,0.12);
    font-family: var(--font-header);
    font-size: 13px;
    font-weight: 500;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.map-pin {
    cursor: pointer;
    transition: var(--transition-fast);
}

.map-pin circle.outer-ring {
    fill: none;
    opacity: 0.8;
    transform-origin: center;
    animation: beaconPulse 2s infinite ease-out;
}

.map-pin:hover circle.inner-dot {
    r: 10px;
    filter: brightness(1.2);
}

@keyframes beaconPulse {
    0% {
        r: 6px;
        opacity: 0.8;
        stroke-width: 1px;
    }
    100% {
        r: 22px;
        opacity: 0;
        stroke-width: 4px;
    }
}

/* Map Status Indicator Colors */
.status-color-limpo {
    fill: var(--color-success);
    stroke: var(--color-success);
}
.status-color-pendente {
    fill: var(--color-warning);
    stroke: var(--color-warning);
}
.status-color-manutencao {
    fill: var(--color-danger);
    stroke: var(--color-danger);
}
.status-color-disponivel {
    fill: var(--color-secondary);
    stroke: var(--color-secondary);
}

.map-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.legend-item {
    font-size: 12px;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.legend-dot.status-limpo { background-color: var(--color-success); }
.legend-dot.status-pendente { background-color: var(--color-warning); }
.legend-dot.status-manutencao { background-color: var(--color-danger); }
.legend-dot.status-disponivel { background-color: var(--color-secondary); }

/* Detail Card and empty states */
.detail-card {
    border-left: 3px solid var(--color-primary);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text-secondary);
}

.empty-state i {
    font-size: 40px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.pulse-icon {
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Telemetry detail elements */
.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.detail-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-primary);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    width: fit-content;
    text-transform: uppercase;
}

.badge-success { background: var(--color-success); color: #ffffff; border: 1px solid var(--color-success); }
.badge-warning { background: var(--color-warning); color: #000000; border: 1px solid var(--color-warning); }
.badge-danger { background: var(--color-danger); color: #ffffff; border: 1px solid var(--color-danger); }
.badge-info { background: var(--color-secondary); color: #ffffff; border: 1px solid var(--color-secondary); }

.detail-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.info-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: var(--border-radius-md);
    padding: 12px;
}

.info-box span {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.info-box p {
    font-size: 14px;
    font-weight: 600;
}

.detail-section-title {
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    padding-bottom: 4px;
}

/* QR Code Display Card */
.admin-qr-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--border-radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-bottom: 20px;
}

.qr-box-admin {
    width: 140px;
    height: 140px;
    background-color: #fff;
    padding: 10px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.qr-box-admin svg {
    width: 100%;
    height: 100%;
}

.btn-open-portal {
    background: rgba(255,255,255,0.05);
    color: var(--color-text-primary);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-open-portal:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ==========================================================================
   TABLES & FILTERS
   ========================================================================== */
.table-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-input {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-input i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
}

.search-input input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-md);
    padding: 11px 16px 11px 40px;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: var(--transition-fast);
}

.search-input input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 229, 230, 0.15);
    background-color: rgba(255, 255, 255, 0.05);
}

.filter-select select, .form-group select, .form-group input {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-md);
    padding: 11px 16px;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    cursor: pointer;
    transition: var(--transition-fast);
    min-width: 160px;
}

.pulse-icon {
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Telemetry detail elements */
.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.detail-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-primary);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    width: fit-content;
    text-transform: uppercase;
}

.badge-success { background: var(--color-success); color: #ffffff; border: 1px solid var(--color-success); }
.badge-warning { background: var(--color-warning); color: #000000; border: 1px solid var(--color-warning); }
.badge-danger { background: var(--color-danger); color: #ffffff; border: 1px solid var(--color-danger); }
.badge-info { background: var(--color-secondary); color: #ffffff; border: 1px solid var(--color-secondary); }

.detail-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.info-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: var(--border-radius-md);
    padding: 12px;
}

.info-box span {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.info-box p {
    font-size: 14px;
    font-weight: 600;
}

.detail-section-title {
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    padding-bottom: 4px;
}

/* QR Code Display Card */
.admin-qr-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--border-radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-bottom: 20px;
}

.qr-box-admin {
    width: 140px;
    height: 140px;
    background-color: #fff;
    padding: 10px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.qr-box-admin svg {
    width: 100%;
    height: 100%;
}

.btn-open-portal {
    background: rgba(255,255,255,0.05);
    color: var(--color-text-primary);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-open-portal:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ==========================================================================
   TABLES & FILTERS
   ========================================================================== */
.table-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-input {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-input i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
}

.search-input input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-md);
    padding: 11px 16px 11px 40px;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: var(--transition-fast);
}

.search-input input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 229, 230, 0.15);
    background-color: rgba(255, 255, 255, 0.05);
}

.filter-select select, .form-group select, .form-group input:not([type="checkbox"]):not([type="radio"]) {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-md);
    padding: 11px 16px;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    cursor: pointer;
    transition: var(--transition-fast);
    min-width: 160px;
}

select option {
    background-color: var(--color-bg-base);
    color: var(--color-text-primary);
}

.filter-select select:focus, .form-group select:focus, .form-group input:not([type="checkbox"]):not([type="radio"]):focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 229, 230, 0.12), 0 0 12px rgba(0, 229, 230, 0.08);
}

/* ===== VALIDAÇÃO VISUAL EM TEMPO REAL ===== */
.form-group input:not([type="checkbox"]):not([type="radio"]):not(:placeholder-shown):valid {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.08);
}

.form-group input:not([type="checkbox"]):not([type="radio"]):not(:placeholder-shown):invalid {
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

.form-group select:valid:not([value=""]) {
    border-color: rgba(16, 185, 129, 0.3);
}

@keyframes shakeSubtle {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-3px); }
    40% { transform: translateX(3px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
}

.form-group input:not([type="checkbox"]):not([type="radio"]):invalid:focus {
    animation: shakeSubtle 0.4s ease;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.custom-table th {
    background-color: rgba(255, 255, 255, 0.02);
    padding: 16px 20px;
    font-weight: 600;
    color: var(--color-text-secondary);
    border-bottom: 1px solid var(--color-card-border);
}

.custom-table td {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12); /* Clearer row separation */
    color: var(--color-text-primary);
}

.custom-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.06); /* More visible hover state */
}

/* Timeline of service logs */
.log-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    padding-left: 20px;
}

.log-timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.08);
}

.log-item {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: var(--border-radius-md);
    padding: 16px;
    transition: var(--transition-smooth);
}

.log-item:hover {
    border-color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.02);
}

.log-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 20px;
    width: 9px;
    height: 9px;
    background-color: var(--color-primary);
    border: 3px solid var(--color-bg-deep);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-primary);
}

.log-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.log-item-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text-primary);
}

.log-item-time {
    font-size: 11px;
    color: var(--color-text-muted);
}

.log-item-body {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 16px;
    font-size: 13px;
    color: var(--color-text-secondary);
}

.log-checklist-results {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.log-checklist-results li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.log-checklist-results i {
    color: var(--color-success);
}

.log-photos-container {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.log-photo-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-sm);
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: zoom-in;
    transition: var(--transition-fast);
}

.log-photo-thumb:hover {
    transform: scale(1.1);
    border-color: var(--color-primary);
}

.log-signature-display {
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
    margin-top: 10px;
    padding-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.log-signature-img {
    height: 35px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-sm);
}

/* Buttons Styles */
.btn {
    background-color: var(--color-primary);
    color: var(--color-bg-deep);
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius-md);
    font-family: var(--font-header);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.btn:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 229, 230, 0.25);
}

.btn-secondary {
    background-color: rgba(var(--color-secondary-rgb), 0.1) !important;
    color: var(--color-secondary) !important;
    border: 1px solid rgba(var(--color-secondary-rgb), 0.25) !important;
}

.btn-secondary:hover {
    background-color: var(--color-secondary-hover) !important;
    color: #ffffff !important;
    box-shadow: 0 5px 15px rgba(var(--color-secondary-rgb), 0.25) !important;
}

.btn-action {
    border-radius: var(--border-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: rgba(255,255,255,0.05);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-action:hover {
    background-color: rgba(var(--color-primary-rgb), 0.1);
    color: var(--color-primary);
}


/* ==========================================================================
   MOBILE SIMULATOR PANEL */

/* Elementos exclusivos do mobile: ocultos e sem capturar cliques no desktop por padrão */
#btn-mobile-toggle,
.sidebar-mobile-header,
.sidebar-backdrop {
    display: none !important;
    pointer-events: none !important;
}

/* ==========================================================================
   DESKTOP ADMIN PANEL (LEFT)
   ========================================================================== */
.mobile-simulator-section {
    background-color: var(--color-bg-base);
    border-left: 1px solid var(--color-card-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: fixed;
    top: 70px;
    right: 0;
    width: 400px;
    height: calc(100vh - 70px);
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(100%);
    overflow-y: auto;
}

.mobile-simulator-section.active {
    transform: translateX(0);
    pointer-events: auto;
}

@media (max-width: 500px) {
    .mobile-simulator-section {
        width: 100% !important;
    }
}

.simulator-title {
    text-align: center;
    margin-bottom: 20px;
}

.simulator-title h3 {
    font-size: 16px;
    color: var(--color-text-primary);
}

.simulator-title p {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* Smartphone Shell Container */
.smartphone-frame {
    width: 320px;
    height: 640px;
    background-color: #000;
    border: 10px solid #222e3f;
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 229, 230, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.phone-notch {
    width: 140px;
    height: 18px;
    background-color: #000;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 120;
}

.phone-screen {
    flex: 1;
    background-color: #0a0e17;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: 30px; /* Space for status bar */
}

.phone-status-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    z-index: 110;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    pointer-events: none;
}

.phone-status-bar .icons {
    display: flex;
    gap: 4px;
    align-items: center;
}

.phone-home-indicator {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    z-index: 120;
    pointer-events: none;
}

.app-view-container {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.phone-screen-pane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    animation: phoneSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-screen-pane.active {
    display: flex;
}

@keyframes phoneSlide {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0);
    pointer-events: auto; opacity: 1; }
}

/* Smartphone Login Screen */
.phone-login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    padding: 20px;
}

.phone-login-logo i {
    font-size: 44px;
    color: var(--color-primary);
    margin-bottom: 12px;
    filter: drop-shadow(0 0 10px rgba(0,229,230,0.4));
}

.phone-login-logo h2 {
    font-size: 24px;
    font-weight: 700;
}

.phone-login-logo p {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.phone-form {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group-phone {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group-phone label {
    font-size: 11px;
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 13px;
}

.input-with-icon input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    padding: 10px 12px 10px 34px;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
    transition: var(--transition-fast);
}

.input-with-icon input:focus {
    border-color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.08);
}

.btn-phone {
    background-color: var(--color-primary);
    color: var(--color-bg-deep);
    border: none;
    padding: 12px;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.btn-phone:hover {
    background-color: var(--color-primary-hover);
}

.btn-phone.btn-success {
    background-color: var(--color-success);
    color: #fff;
}
.btn-phone.btn-success:hover {
    background-color: hsl(142, 70%, 38%);
}

.phone-footer-info {
    padding: 16px 24px;
    text-align: center;
    font-size: 10px;
    color: var(--color-text-muted);
}

/* App Header (Internal Screens) */
.phone-app-header {
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tech-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-profile .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
}

.tech-profile h4 {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.1;
}

.tech-profile span {
    font-size: 9px;
    color: var(--color-text-muted);
}

.logout-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition-fast);
}

.logout-btn:hover {
    color: var(--color-danger);
}

.phone-app-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 70px; /* Leave space for bottom bar */
}

.section-title-phone {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title-phone h3 {
    font-size: 13px;
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.route-info-banner {
    background-color: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.1);
    color: #eab308;
    padding: 8px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 10px;
    line-height: 1.3;
}

/* Route List elements */
.phone-route-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.phone-route-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-md);
    padding: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.phone-route-card:hover {
    border-color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.route-card-tag {
    position: absolute;
    right: 0;
    top: 0;
    padding: 2px 8px;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom-left-radius: 8px;
}

.route-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.route-card-id {
    font-weight: 700;
    font-size: 12px;
    color: var(--color-primary);
}

.route-card-client {
    font-size: 11px;
    font-weight: 600;
}

.route-card-address {
    font-size: 10px;
    color: var(--color-text-muted);
}

.route-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
    font-size: 9px;
    color: var(--color-text-muted);
}

/* Bottom Tab Navigation in Phone */
.phone-app-footer {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    height: 52px;
    background-color: #0f172a;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
}

.footer-tab {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 10px;
    font-family: var(--font-body);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
    flex: 1;
}

.footer-tab i {
    font-size: 16px;
}

.footer-tab:hover, .footer-tab.active {
    color: var(--color-primary);
}

.scan-circle {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-bg-deep) !important;
    margin-top: -16px;
    box-shadow: 0 4px 10px rgba(0, 229, 230, 0.35);
    transition: var(--transition-smooth);
}

.scan-circle i {
    font-size: 18px;
}

.footer-tab:hover .scan-circle {
    transform: scale(1.1);
}

/* Screen Navbar Header */
.phone-navbar {
    height: 46px;
    background-color: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 12px;
}

.phone-navbar h3 {
    font-size: 13px;
    font-weight: 600;
}

.back-btn {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.back-btn:hover {
    color: var(--color-text-primary);
}

/* Simulated QR Scanner Frame */
.scanner-viewport {
    flex: 1;
    position: relative;
    background-color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.scanner-laser {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--color-danger);
    box-shadow: 0 0 12px var(--color-danger);
    top: 50%;
    animation: scannerScan 2s infinite ease-in-out;
    z-index: 5;
}

@keyframes scannerScan {
    0%, 100% { top: 15%; }
    50% { top: 85%; }
}

.scanner-corners {
    width: 180px;
    height: 180px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    border-radius: 8px;
}

.scanner-corners::before, .scanner-corners::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: var(--color-primary);
    border-style: solid;
}

.scanner-corners::before {
    top: -2px; left: -2px;
    border-width: 3px 0 0 3px;
}

.scanner-corners::after {
    bottom: -2px; right: -2px;
    border-width: 0 3px 3px 0;
}

.scanner-text-overlay {
    position: absolute;
    bottom: 24px;
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scanner-controls {
    background-color: #0f172a;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.scanner-controls label {
    font-size: 11px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.select-wrapper {
    width: 100%;
}

.select-wrapper select {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    outline: none;
}

/* Custom Styles for Inputs and Selects inside Phone Simulator (prevent light theme/browser overrides) */
.phone-screen input[type="text"],
.phone-screen input[type="number"],
.phone-screen input[type="password"],
.phone-screen select,
.phone-screen textarea {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-radius: var(--border-radius-sm) !important;
    padding: 10px !important;
    font-size: 13px !important;
    font-family: var(--font-body) !important;
    outline: none !important;
    height: auto !important;
}
.phone-screen input[type="text"]::placeholder,
.phone-screen input[type="number"]::placeholder,
.phone-screen input[type="password"]::placeholder,
.phone-screen textarea::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Ensure select options render correctly in dark mode/light mode */
select option {
    background-color: #0f172a;
    color: #ffffff;
}
body.light-theme select option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}


/* Checklist Details & Forms in Mobile */
.phone-checklist-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.os-toilet-banner {
    background-color: rgba(var(--color-primary-rgb), 0.05);
    border: 1px solid rgba(var(--color-primary-rgb), 0.1);
    border-radius: var(--border-radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.os-toilet-id {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-primary);
    background-color: rgba(var(--color-primary-rgb), 0.1);
    padding: 6px 10px;
    border-radius: var(--border-radius-sm);
}

.os-toilet-details {
    font-size: 11px;
}

.os-toilet-details p {
    font-weight: 500;
}

.os-toilet-details p i {
    color: var(--color-text-muted);
}

.checklist-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checklist-section {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-md);
    padding: 12px;
}

.checklist-section h4 {
    font-size: 11px;
    color: var(--color-primary);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 4px;
}

.section-desc {
    font-size: 10px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    line-height: 1.3;
}

/* Checkbox Custom Style */
.check-container {
    display: block;
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 11px;
    user-select: none;
    color: var(--color-text-secondary);
}

.check-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.check-container:hover input ~ .checkmark {
    background-color: rgba(255, 255, 255, 0.1);
}

.check-container input:checked ~ .checkmark {
    background-color: var(--color-success);
    border-color: var(--color-success);
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
}

.check-container input:checked ~ .checkmark::after {
    display: block;
}

.check-container .checkmark::after {
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Radio Custom Option */
.radio-group-phone {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.radio-group-phone label {
    font-size: 11px;
    color: var(--color-text-secondary);
}

.radio-options {
    display: flex;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    cursor: pointer;
}

/* Photo Simulator Grid */
.photo-simulator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.photo-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.photo-preview {
    aspect-ratio: 4/3;
    background-color: rgba(0,0,0,0.25);
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: var(--border-radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--color-text-muted);
    overflow: hidden;
    position: relative;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mock-photo-select {
    width: 100%;
    font-size: 9px;
    padding: 4px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: #fff;
    outline: none;
    cursor: pointer;
}

/* Digital Signature Canvas and Box */
.signature-area {
    position: relative;
    background-color: #080c14;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

#signature-canvas {
    display: block;
    background-color: #080c14;
    cursor: crosshair;
}

.btn-clear-sig {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--color-danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
    font-size: 9px;
    font-family: var(--font-body);
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-clear-sig:hover {
    background-color: var(--color-danger);
    color: #fff;
}

/* Success View Mobile */
.success-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.success-icon-wrapper {
    width: 64px;
    height: 64px;
    background-color: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--color-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--color-success);
    margin-bottom: 20px;
    animation: scaleCheck 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleCheck {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-screen h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.success-screen p {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    line-height: 1.4;
}

/* Submission listing screen in phone */
.submission-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--border-radius-md);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    margin-bottom: 8px;
}

.submission-info h4 {
    color: var(--color-primary);
}


/* ==========================================================================
   MODALS & OVERLAYS (ADMIN / SCANNER PORTAL)
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-card-border);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    animation: modalReveal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

@keyframes modalReveal {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
}

.close-modal-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.close-modal-btn:hover {
    color: var(--color-text-primary);
}

.modal-body {
    padding: 24px;
}

/* Forms Fields Admin Modals */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.form-group input:not([type="checkbox"]):not([type="radio"]), .form-group select {
    width: 100%;
}

.dual-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-help-text {
    font-size: 11px;
    color: var(--color-text-muted);
}

.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* Public QR Code Portal Specific Styles */
.qr-portal-content {
    max-width: 420px;
    border: 1px solid rgba(var(--color-primary-rgb), 0.3);
    box-shadow: 0 0 30px rgba(0, 229, 230, 0.15);
}

.portal-badge {
    background-color: rgba(0, 229, 230, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(0, 229, 230, 0.2);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.text-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portal-toilet-code {
    font-size: 32px;
    font-family: var(--font-header);
    font-weight: 800;
    color: #fff;
    margin: 12px 0 4px;
    letter-spacing: -0.01em;
}

.portal-certified-tag {
    font-size: 11px;
    color: var(--color-success);
    background-color: var(--color-success-glow);
    padding: 2px 10px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
    margin-bottom: 20px;
}

.portal-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--border-radius-lg);
    padding: 16px;
    width: 100%;
    margin-bottom: 16px;
    text-align: left;
}

.portal-meta-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
    border-bottom: 1px dashed rgba(255,255,255,0.04);
    padding-bottom: 8px;
}

.portal-meta-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.portal-meta-item span.label {
    color: var(--color-text-secondary);
}

.portal-meta-item span.value {
    font-weight: 600;
}

/* User Feedback stars */
.feedback-section {
    width: 100%;
    margin-top: 10px;
}

.feedback-section h4 {
    font-size: 13px;
    margin-bottom: 8px;
}

.stars-rating {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 14px;
}

.stars-rating i {
    font-size: 26px;
    color: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: var(--transition-fast);
}

.stars-rating i:hover, .stars-rating i.active {
    color: #f59e0b;
    transform: scale(1.15);
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.5));
}

.feedback-text-area {
    width: 100%;
    background-color: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: var(--border-radius-md);
    padding: 10px;
    font-family: var(--font-body);
    font-size: 12px;
    outline: none;
    resize: none;
    height: 60px;
    margin-bottom: 14px;
}

.feedback-text-area:focus {
    border-color: var(--color-primary);
}

/* ==========================================================================
   MONITORAMENTO DE EQUIPES E TÉCNICOS EM CAMPO
   ========================================================================== */
.tech-monitor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.tech-card {
    background-color: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--color-card-border);
    border-radius: var(--border-radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition-smooth);
}

.tech-card:hover {
    border-color: var(--color-primary-hover);
    background-color: rgba(255, 255, 255, 0.03);
}

.tech-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tech-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-card-title img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--color-secondary);
}

.tech-card-title h3 {
    font-size: 14px;
    font-weight: 700;
}

.tech-card-title span {
    font-size: 11px;
    color: var(--color-text-muted);
}

.tech-card-progress {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tech-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
}

.tech-progress-bar {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.tech-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-route-stops {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.tech-stop-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.tech-stop-pill.completed {
    background-color: rgba(16, 185, 129, 0.08);
    color: var(--color-success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.tech-stop-pill.pending {
    background-color: rgba(245, 158, 11, 0.08);
    color: var(--color-warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Custom Leaflet Map Styling */
.leaflet-container {
    background-color: var(--color-bg-deep) !important;
}

.leaflet-bar {
    border: 1px solid var(--color-card-border) !important;
    box-shadow: none !important;
}

.leaflet-bar a {
    background-color: var(--color-bg-base) !important;
    color: var(--color-text-primary) !important;
    border-bottom: 1px solid var(--color-card-border) !important;
}

.leaflet-bar a:hover {
    background-color: var(--color-card-bg) !important;
    color: var(--color-primary) !important;
}

/* Custom Marker Styling in Leaflet */
.leaflet-custom-pin {
    background: none !important;
    border: none !important;
}

.map-pin-leaflet {
    position: relative;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-pin-leaflet .inner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    z-index: 2;
    border: 1.5px solid #0b0f19;
    box-shadow: 0 0 8px currentColor, 0 0 16px currentColor;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.map-pin-leaflet:hover .inner-dot {
    transform: scale(1.3);
    box-shadow: 0 0 12px currentColor, 0 0 24px currentColor;
}

/* ESTILOS DO PINO DE CLUSTER (AGRUPADOR OPERACIONAL) */
.map-pin-leaflet.cluster-pin .inner-dot {
    width: 18px !important;
    height: 18px !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #0f172a !important;
}

.map-pin-leaflet .inner-dot.status-color-limpo { background-color: var(--color-success); }
.map-pin-leaflet .inner-dot.status-color-pendente { background-color: var(--color-warning); }
.map-pin-leaflet .inner-dot.status-color-manutencao { background-color: var(--color-danger); }
.map-pin-leaflet .inner-dot.status-color-disponivel { background-color: var(--color-primary); }

.map-pin-leaflet .outer-ring {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid currentColor;
    animation: beaconPulse 1.5s infinite ease-out;
    z-index: 1;
}

/* Color schemes for Leaflet custom pins */
.status-color-limpo {
    color: var(--color-success);
}
.status-color-pendente {
    color: var(--color-warning);
}
.status-color-manutencao {
    color: var(--color-danger);
}
.status-color-disponivel {
    color: var(--color-primary);
}

@keyframes beaconPulse {
    0% {
        transform: scale(0.6);
        opacity: 1;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* ==========================================================================
   DESPACHO & KANBAN GRID STYLING
   ========================================================================== */
.despacho-kanban-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    align-items: start;
    margin-top: 15px;
}

.kanban-column {
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-card-border);
    border-radius: var(--border-radius-lg);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 520px;
    transition: var(--transition-smooth);
    position: relative;
}

.kanban-column.drag-over {
    background-color: rgba(0, 229, 230, 0.04) !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 20px rgba(0, 229, 230, 0.08);
}

.kanban-column-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-card-border);
}

.kanban-column-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--color-secondary);
}

.kanban-column-info {
    flex-grow: 1;
}

.kanban-column-info h3 {
    font-size: 14px;
    font-weight: 700;
}

.kanban-column-info span {
    font-size: 11px;
    color: var(--color-text-muted);
}

.kanban-column-stats {
    font-size: 11px;
    text-align: right;
    color: var(--color-text-secondary);
    font-weight: 600;
}

.kanban-cards-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 420px;
}

/* Kanban Cards */
.kanban-card {
    background-color: #0b0f19; /* Fundo sólido ultra-escuro para contraste absoluto */
    border: 1px solid rgba(0, 240, 255, 0.18); /* Delicada borda traçada em ciano neon */
    border-radius: 8px;
    padding: 14px; /* Mais espaço interno */
    cursor: grab;
    transition: var(--transition-smooth);
    user-select: none;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6); /* Sombra intensa para destacar tridimensionalidade */
}

.kanban-card:active {
    cursor: grabbing;
}

.kanban-card.dragging {
    opacity: 0.4;
    border-color: var(--color-primary) !important;
}

.kanban-card:hover {
    border-color: rgba(0, 240, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.22);
}

.kanban-card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 6px;
}

.kanban-card-client {
    font-size: 12px;
    color: #fbbf24; /* Amarelo/Amber Neon para destaque operacional instantâneo */
    margin-bottom: 4px;
    font-weight: 700;
}

.kanban-card-address {
    font-size: 11px;
    color: #ffffff; /* Texto branco puro para contraste perfeito sobre o fundo ultra-escuro */
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}

.kanban-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 8px;
    margin-top: 8px;
}

/* Status colors for card accents */
.kanban-card.status-limpo {
    border-left: 5px solid var(--color-success) !important;
}
.kanban-card.status-pendente {
    border-left: 5px solid var(--color-warning) !important;
}
.kanban-card.status-manutencao {
    border-left: 5px solid var(--color-danger) !important;
}
.kanban-card.status-atendimento {
    border-left: 5px solid var(--color-primary) !important;
    animation: cardGlowPulse 2s infinite ease-in-out;
}

@keyframes cardGlowPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 229, 230, 0.1);
        border-color: var(--color-primary-hover);
    }
    50% {
        box-shadow: 0 0 15px rgba(0, 229, 230, 0.3);
        border-color: var(--color-primary);
    }
}

/* ==========================================================================
   SANITIX - FASE 2 PREMIUM ADDITIONS (WHITE LABEL & LOGISTICS)
   ========================================================================== */

/* Seção de Impressão */
#print-section {
    display: none;
}

@media print {
    body * {
        visibility: hidden !important;
    }
    #print-section, #print-section * {
        visibility: visible !important;
    }
    #print-section {
        display: block !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        background: #ffffff !important;
        color: #000000 !important;
        padding: 0 !important;
        margin: 0 !important;
        z-index: 9999999 !important;
    }
}

/* Recibo de Limpeza Estilizado */
.receipt-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    color: #333;
    font-family: 'Inter', sans-serif;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.receipt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #333;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.receipt-logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.receipt-logo-icon {
    width: 36px;
    height: 36px;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border-radius: 6px;
}

.receipt-title {
    text-align: right;
}

.receipt-title h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
    color: #111;
}

.receipt-title p {
    font-size: 11px;
    color: #666;
}

.receipt-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.receipt-card {
    border: 1px solid #eee;
    background: #fdfdfd;
    padding: 15px;
    border-radius: 6px;
}

.receipt-card h3 {
    font-size: 11px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}

.receipt-card p {
    font-size: 13px;
    line-height: 1.5;
    color: #333;
}

.receipt-checklist {
    margin-bottom: 25px;
}

.receipt-checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.receipt-checklist-item i {
    color: #10b981;
    font-size: 16px;
}

.receipt-signature-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
}

.receipt-signature-img {
    border: 1px solid #eee;
    border-radius: 4px;
    background: #f9f9f9;
    padding: 5px;
    max-width: 250px;
}

/* Layout das Etiquetas de QR Code */
.qr-labels-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
    background: #fff;
}

.qr-label-card {
    border: 2px dashed #bbb;
    border-radius: 10px;
    padding: 20px;
    background: #fff;
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    page-break-inside: avoid;
}

.qr-label-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    width: 100%;
    justify-content: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.qr-label-logo-icon {
    width: 24px;
    height: 24px;
    background: #000;
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.qr-label-logo-text {
    font-size: 14px;
    font-weight: 700;
    color: #000;
}

.qr-label-image {
    width: 140px;
    height: 140px;
    margin: 10px 0;
}

.qr-label-id {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #000;
    margin-bottom: 4px;
}

.qr-label-model {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
}

.qr-label-footer-help {
    font-size: 9px;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 6px;
    width: 100%;
}

/* Indicador de Capacidade de Tanque (Truck Load) */
.truck-capacity-bar-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-top: 6px;
    border: 1px solid rgba(255,255,255,0.05);
}

.truck-capacity-bar {
    height: 100%;
    width: 0%;
    background: var(--color-primary);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.truck-capacity-bar.warning {
    background: var(--color-warning);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.truck-capacity-bar.danger {
    background: var(--color-danger);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

/* Ocorrências e Alertas Críticos no Admin */
.incident-alert-banner {
    background: linear-gradient(90deg, rgba(239,68,68,0.15) 0%, rgba(0,0,0,0.1) 100%);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--border-radius-lg);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    animation: alertBorderPulse 2s infinite ease-in-out;
}

@keyframes alertBorderPulse {
    0%, 100% { border-color: rgba(239, 68, 68, 0.25); box-shadow: 0 0 10px rgba(239, 68, 68, 0.05); }
    50% { border-color: rgba(239, 68, 68, 0.6); box-shadow: 0 0 20px rgba(239, 68, 68, 0.2); }
}

.incident-alert-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.incident-alert-icon {
    width: 40px;
    height: 40px;
    background: var(--color-danger);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--color-bg-deep);
    animation: beaconPulseRed 1.5s infinite ease-out;
}

@keyframes beaconPulseRed {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Pins de Ocorrência */
.outer-ring.status-color-manutencao, .inner-dot.status-color-manutencao {
    background-color: var(--color-danger) !important;
}

/* Outros ajustes premium */
.btn-print-lote {
    background: rgba(var(--color-primary-rgb), 0.1) !important;
    color: var(--color-primary) !important;
    border: 1px solid rgba(var(--color-primary-rgb), 0.2) !important;
}

.btn-print-lote:hover {
    background: var(--color-primary) !important;
    color: var(--color-bg-deep) !important;
}

/* Modo Exclusivo de Visualização do Portal do Cidadão */
body.portal-only-mode {
    background-color: #0b0f19 !important;
    overflow: auto !important;
}

body.portal-only-mode .app-container {
    display: none !important; /* Esconde painel administrador e celular simulado */
}

body.portal-only-mode #modal-qr-portal {
    display: flex !important;
    position: static !important;
    width: 100vw;
    min-height: 100vh;
    padding: 15px;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    backdrop-filter: none !important;
}

body.portal-only-mode #modal-qr-portal .modal-content {
    width: 100% !important;
    max-width: 440px !important;
    margin: auto;
    border-radius: 16px !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6) !important;
}

body.portal-only-mode #modal-qr-portal .close-modal-btn {
    display: none !important; /* Esconde o botão de fechar para o cidadão */
}

/* =========================================================
   AGENDA SEMANAL (STRIP CALENDAR)
   ========================================================= */
.strip-calendar::-webkit-scrollbar {
    display: none;
}
.strip-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 55px;
    height: 70px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-card-border);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}
.strip-day.active {
    background: var(--color-primary-glow);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 229, 230, 0.2);
}
.strip-day .day-name {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}
.strip-day .day-num {
    font-size: 18px;
    font-weight: 700;
}
.strip-day .day-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: transparent;
    margin-top: 4px;
}
.strip-day.has-visits .day-dot {
    background: var(--color-warning);
}
.strip-day.active.has-visits .day-dot {
    background: var(--color-primary);
}

/* =========================================================
   CALENDÁRIO DO GESTOR
   ========================================================= */
.calendar-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}
.calendar-nav-buttons, .calendar-view-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
}
.calendar-grid-container {
    width: 100%;
}
.calendar-header-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    color: var(--color-text-secondary);
    margin-bottom: 10px;
    font-size: 14px;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}
.calendar-day {
    background: var(--color-bg-light);
    border: 1px solid var(--color-card-border);
    border-radius: var(--border-radius-sm);
    min-height: 100px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all var(--transition-fast);
    cursor: pointer;
}
.calendar-day:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary-glow);
}
.calendar-day.today {
    border-color: var(--color-primary);
    background: rgba(0, 229, 230, 0.05);
}
.calendar-day.dimmed {
    opacity: 0.4;
}
.cal-day-num {
    font-weight: 600;
    font-size: 14px;
    text-align: right;
    margin-bottom: 5px;
    color: var(--color-text-secondary);
}
.calendar-day.today .cal-day-num {
    color: var(--color-primary);
}
.cal-badge {
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}
.cal-badge-entrega { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid #3b82f6; }
.cal-badge-retirada { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid #f59e0b; }
.cal-badge-limpeza { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid #ef4444; }

/* Visão de Semana (Modifica o Grid) */
.calendar-grid.week-view {
    /* Mantém 7 colunas, mas aumenta altura mínima e mostra mais detalhes */
}
.calendar-grid.week-view .calendar-day {
    min-height: 300px;
}

/* Itens de Checkbox do Contrato */
.contract-toilet-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 11px !important;
    color: #fff !important;
    margin: 0 !important;
    transition: background 0.2s !important;
}
.contract-toilet-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}
.contract-toilet-item input[type="checkbox"] {
    margin: 0 !important;
    width: 16px !important;
    height: 16px !important;
    accent-color: var(--color-primary) !important;
}

/* NEW EQUIPMENT TOGGLE STYLES */
.equipment-toggle-label {
    display: block;
    cursor: pointer;
    margin-bottom: 0;
}
.equipment-toggle-box:has(.contract-toilet-checkbox:checked) {
    background: rgba(0, 229, 230, 0.15);
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.equipment-toggle-box {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-secondary);
    font-size: 11px;
    transition: all 0.2s ease;
}
.equipment-toggle-box:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* NEW DAY CHECKBOX STYLES */
.day-checkbox-label {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    cursor: pointer !important;
}
.day-checkbox-input {
    display: none !important;
}
.day-checkbox-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0 12px;
    height: 32px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-secondary);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.day-checkbox-input:checked + .day-checkbox-box {
    background: rgba(0, 229, 230, 0.15);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Demo Drawer Section */
.demo-drawer-section {
    background-color: var(--color-bg-base);
    border-right: 1px solid var(--color-card-border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 30px;
    position: fixed;
    top: 70px;
    left: 0;
    width: 380px;
    height: calc(100vh - 70px);
    z-index: 1000;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(-100%);
    pointer-events: none;
    overflow-y: auto;
}

.demo-drawer-section.active {
    transform: translateX(0);
    pointer-events: auto;
}

@media (max-width: 500px) {
    .demo-drawer-section {
        width: 100% !important;
    }
}

/* Tabela de OS Actions */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn {
    height: 32px;
    width: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* --- FORCED STYLES FOR BUTTONS AND CHECKBOXES --- */
.btn-success {
    background-color: var(--color-success) !important;
    color: var(--color-bg-deep) !important;
}

.btn-success:hover {
    background-color: hsl(142, 70%, 38%) !important;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.25) !important;
}

.btn-danger {
    background-color: transparent !important;
    border: 1px solid var(--color-danger) !important;
    color: var(--color-danger) !important;
}

.btn-danger:hover {
    background-color: rgba(239, 68, 68, 0.1) !important;
    box-shadow: none !important;
}

.os-toilet-cb, .os-type-cb, .contract-service-cb {
    width: 16px !important;
    height: 16px !important;
    accent-color: var(--color-primary) !important;
    cursor: pointer !important;
    margin: 0 !important;
    display: inline-block !important;
}

/* --- FIX CHECKBOXES INSIDE FORM GROUPS --- */
.form-group input[type="checkbox"], 
.os-toilet-cb, 
.os-type-cb, 
.contract-service-cb {
    width: 16px !important;
    height: 16px !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 10px 0 0 !important;
    background: transparent !important;
    border: none !important;
    display: inline-block !important;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    cursor: pointer !important;
}

#os-type-container label, #os-toilet-container label, #contract-services-container label, #os-toilet-container label {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

/* ==========================================================================
   MODAL DE CONFIRMACAO DE EXCLUSAO
   ========================================================================== */
#modal-delete-confirm {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.15s ease;
}
#modal-delete-confirm.active {
    display: flex;
}
.delete-modal-content {
    background: var(--color-surface);
    border: 1px solid rgba(239,68,68,0.4);
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(239,68,68,0.2), 0 0 0 1px rgba(239,68,68,0.1);
    animation: slideUp 0.2s ease;
}
.delete-modal-icon {
    width: 56px; height: 56px;
    background: rgba(239,68,68,0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px; color: #f87171;
    border: 1px solid rgba(239,68,68,0.3);
}
.delete-modal-title {
    font-size: 18px; font-weight: 700; color: #fff;
    text-align: center; margin-bottom: 6px;
}
.delete-modal-subtitle {
    font-size: 13px; color: var(--color-text-muted);
    text-align: center; margin-bottom: 20px;
    font-family: monospace; background: rgba(255,255,255,0.04);
    padding: 6px 12px; border-radius: 6px;
}
.delete-modal-impacts {
    background: rgba(239,68,68,0.06);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 24px;
}
.delete-modal-impacts h4 {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: #f87171;
    margin: 0 0 10px;
    display: flex; align-items: center; gap: 6px;
}
.delete-modal-impacts ul {
    margin: 0; padding: 0 0 0 4px; list-style: none;
}
.delete-modal-impacts ul li {
    font-size: 12px; color: var(--color-text-secondary);
    padding: 3px 0;
    display: flex; align-items: center; gap: 8px;
}
.delete-modal-impacts ul li::before {
    content: ''; width: 6px; height: 6px;
    border-radius: 50%; background: #f87171;
    flex-shrink: 0;
}
.delete-modal-no-impact {
    font-size: 12px; color: var(--color-success);
    display: flex; align-items: center; gap: 6px;
}
.delete-modal-actions {
    display: flex; gap: 12px;
}
.delete-modal-actions .btn-cancel-delete {
    flex: 1; padding: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; color: var(--color-text-secondary);
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: 0.2s; font-family: inherit;
}
.delete-modal-actions .btn-cancel-delete:hover {
    background: rgba(255,255,255,0.1); color: #fff;
}
.delete-modal-actions .btn-confirm-delete {
    flex: 2; padding: 10px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border: none; border-radius: 8px; color: #fff;
    font-size: 14px; font-weight: 700; cursor: pointer;
    transition: 0.2s; font-family: inherit;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.delete-modal-actions .btn-confirm-delete:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 16px rgba(239,68,68,0.4);
}

/* ==========================================================================
   AUDITORIA - BADGES E TABELA
   ========================================================================== */
.audit-badge {
    font-size: 10px; font-weight: 700; padding: 2px 8px;
    border-radius: 4px; text-transform: uppercase; letter-spacing: 0.06em;
    display: inline-flex; align-items: center; gap: 4px;
}
.audit-badge.create   { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.audit-badge.edit     { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.audit-badge.delete   { background: rgba(239,68,68,0.15);  color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.audit-badge.complete { background: rgba(99,102,241,0.15); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.3); }
.audit-filters {
    display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px;
}
.audit-filters select {
    background: var(--color-surface); border: 1px solid rgba(255,255,255,0.1);
    color: var(--color-text-primary); border-radius: 8px;
    padding: 8px 12px; font-size: 12px; font-family: inherit; cursor: pointer;
}

/* ==========================================================================
   MENSAGENS DE ERRO INLINE
   ========================================================================== */
.field-error-msg {
    font-size: 11px; color: #f87171;
    margin-top: 4px;
    display: flex; align-items: center; gap: 5px;
    animation: slideUp 0.15s ease;
}
.field-error-msg i { font-size: 10px; }
input.input-error,
select.input-error,
textarea.input-error {
    border-color: #f87171 !important;
    box-shadow: 0 0 0 2px rgba(239,68,68,0.15) !important;
}

/* ==========================================================================
   TELEMETRIA E ROTA DE IA FLUIDA NO LEAFLET
   ========================================================================== */
.leaflet-interactive-route {
    stroke-dasharray: 8 12;
    animation: flowRoute 25s linear infinite;
    filter: drop-shadow(0 0 4px rgba(0, 240, 255, 0.6));
    transition: stroke 0.3s ease, stroke-width 0.3s ease;
}

@keyframes flowRoute {
    to {
        stroke-dashoffset: -1000;
    }
}

/* ==========================================================================
   DASHBOARD FINANCEIRO VISUAL - GRÁFICOS ANALÍTICOS PREMIUM
   ========================================================================== */

/* Responsive grid para os gráficos */
.finance-charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .finance-charts-grid {
        grid-template-columns: 1fr !important;
    }
    #finance-charts-grid {
        grid-template-columns: 1fr !important;
    }
}

.fin-chart-card {
    min-height: 280px;
}

/* --- GRÁFICO DE BARRAS: Receita Mensal --- */
.fin-bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    height: 200px;
    padding-top: 10px;
}

.fin-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    justify-content: flex-end;
}

.fin-bar {
    width: 100%;
    max-width: 48px;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, var(--color-primary) 0%, rgba(0, 229, 230, 0.35) 100%);
    position: relative;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    min-height: 4px;
    box-shadow: 0 0 12px rgba(0, 229, 230, 0.15);
    animation: finBarGrow 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fin-bar:hover {
    box-shadow: 0 0 20px rgba(0, 229, 230, 0.35);
    filter: brightness(1.15);
    transform: scaleY(1.03);
    transform-origin: bottom;
}

.fin-bar-value {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.fin-bar-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

@keyframes finBarGrow {
    from { transform: scaleY(0); opacity: 0.3; }
    to   { transform: scaleY(1); opacity: 1; }
}

/* --- GRÁFICO DONUT: Status das Faturas --- */
.fin-donut-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 10px 0;
}

.fin-donut-ring {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.fin-donut-ring:hover {
    transform: scale(1.05);
}

.fin-donut-center {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--color-bg-deep);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.fin-donut-center-number {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.fin-donut-center-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fin-donut-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fin-donut-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--color-text-secondary);
}

.fin-donut-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.fin-donut-legend-value {
    font-weight: 700;
    color: #fff;
    margin-left: auto;
    padding-left: 12px;
}

/* --- PROGRESS BARS: Composição de Despesas --- */
.fin-expense-row {
    margin-bottom: 18px;
}

.fin-expense-row:last-child {
    margin-bottom: 0;
}

.fin-expense-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.fin-expense-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.fin-expense-label i {
    width: 16px;
    text-align: center;
    font-size: 14px;
}

.fin-expense-value {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.fin-expense-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.fin-expense-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.fin-expense-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
    border-radius: 0 5px 5px 0;
}

.fin-expense-fill.fill-insumos {
    background: linear-gradient(90deg, var(--color-primary), rgba(0, 229, 230, 0.6));
    box-shadow: 0 0 8px rgba(0, 229, 230, 0.3);
}

.fin-expense-fill.fill-combustivel {
    background: linear-gradient(90deg, var(--color-warning), rgba(245, 158, 11, 0.6));
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.fin-expense-fill.fill-manutencao {
    background: linear-gradient(90deg, var(--color-danger), rgba(239, 68, 68, 0.6));
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

.fin-expense-pct {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 4px;
    text-align: right;
}

/* --- MINI KPIs SECUNDÁRIOS --- */
.fin-kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.fin-kpi-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s ease;
}

.fin-kpi-card:hover {
    border-color: rgba(0, 240, 255, 0.2);
    background: rgba(0, 240, 255, 0.02);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.fin-kpi-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
}

.fin-kpi-card-header i {
    font-size: 14px;
}

.fin-kpi-card-value {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1;
}

.fin-kpi-card-sub {
    font-size: 11px;
    color: var(--color-text-muted);
}

/* ==========================================================================
   MÓDULO FINANCEIRO SAAS - FASE 1
   ========================================================================== */

#tab-financeiro .stat-card {
    transition: var(--transition-smooth);
}

#tab-financeiro .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

#tab-financeiro .stat-info h3 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 2px;
}

#tab-financeiro .stat-info p {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
}

/* Custom Table Badges for Billing */
.custom-table .badge-success {
    background-color: rgba(16, 185, 129, 0.08) !important;
    color: var(--color-success) !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

.custom-table .badge-warning {
    background-color: rgba(245, 158, 11, 0.08) !important;
    color: var(--color-warning) !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
}

.custom-table .badge-danger {
    background-color: rgba(239, 68, 68, 0.08) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
}

/* Recibo Estilizado para Faturas */
.receipt-container {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

@media print {
    body * {
        visibility: hidden !important;
    }
    #invoice-detail-print-area, #invoice-detail-print-area * {
        visibility: visible !important;
    }
    #invoice-detail-print-area {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        background: #fff !important;
        color: #333 !important;
    }
}

/* ========================================= */
/* TABS DO PORTAL DO CLIENTE */
/* ========================================= */
.tabs-header {
    display: flex;
    gap: 15px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 20px;
}
.tab-btn {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tab-btn:hover {
    color: var(--color-text-main);
}
.tab-btn.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}
.portal-tab-content {
    animation: fadeIn 0.3s ease;
}

/* Custom premium layout structure for 2-column financial dashboard charts */
.fin-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

@media (max-width: 1024px) {
    .fin-charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1025px) {
    .span-2-desktop {
        grid-column: span 2;
    }
}

/* Custom visual layout for settings forms with vibrant neon accents */
.form-section-card {
    background: rgba(0, 240, 255, 0.015);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 24px rgba(0, 240, 255, 0.05);
    transition: var(--transition-smooth);
}
.form-section-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 30px rgba(0, 240, 255, 0.18), 0 0 10px rgba(0, 240, 255, 0.1);
}
.form-section-title-premium {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
    border-bottom: 1.5px solid rgba(0, 240, 255, 0.3);
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-section-title-premium i {
    color: var(--color-primary);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}
.form-group-premium {
    margin-bottom: 20px;
}
.form-group-premium:last-child {
    margin-bottom: 0;
}
.form-label-premium {
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    display: block;
    margin-bottom: 8px;
}
.form-desc-premium {
    font-size: 11.5px;
    color: hsl(215, 25%, 75%);
    margin-top: 6px;
    display: block;
    line-height: 1.5;
}

/* Vibrant focus states for fields ONLY in the configurations screen */
.form-section-card .form-control {
    background: rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(0, 240, 255, 0.25) !important;
    transition: var(--transition-smooth);
}
.form-section-card .form-control:hover {
    border-color: rgba(0, 240, 255, 0.6) !important;
}
.form-section-card .form-control:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.35) !important;
    background: rgba(0, 0, 0, 0.55) !important;
}

/* ==========================================================================
   RESPONSIVIDADE PREMIUM PARA TELA DO GESTOR (TABLETS E CELULARES)
   ========================================================================== */
@media (max-width: 1024px) {
    /* Exibir botão hambúrguer no topo */
    #btn-sidebar-toggle {
        display: flex !important;
    }

    /* Transformar sidebar em gaveta (drawer) */
    .admin-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 290px !important;
        max-width: 86vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 10005 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        background: #0b1329 !important;
        box-shadow: 15px 0 45px rgba(0, 0, 0, 0.9) !important;
        border-right: 1px solid rgba(0, 229, 230, 0.35) !important;
    }
    .admin-sidebar.active,
    .admin-sidebar.open {
        transform: translateX(0) !important;
    }

    /* Otimizar container de conteúdo administrativo */
    .admin-content {
        padding: 15px !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Ajustar layout do workspace para evitar bugs de scroll */
    .workspace-container {
        height: calc(100vh - 70px) !important;
        overflow: hidden !important;
    }
    .admin-panel {
        height: 100% !important;
        width: 100% !important;
    }
}

/* ==========================================================================
   CARDS DE ORDEM DE SERVIÇO (PLANEJAMENTO)
   ========================================================================== */
.allocation-os-card {
    background: #0b0f19;
    border: 1px solid rgba(0, 240, 255, 0.18);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}
.allocation-os-card:hover {
    border-color: rgba(0, 240, 255, 0.6);
}
.allocation-os-card.has-alert {
    border-color: var(--color-danger);
}
.allocation-os-card.has-alert:hover {
    border-color: #ef4444;
}

.allocation-os-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.allocation-os-type-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #0f172a;
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.allocation-os-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.allocation-os-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.allocation-os-id {
    font-size: 14px;
    font-weight: 800;
    color: var(--color-primary);
    margin: 0;
    font-family: var(--font-header);
}

.allocation-os-client {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: #fbbf24;
    font-weight: 700;
    margin: 0;
}
.allocation-os-client i {
    color: var(--color-secondary);
    width: 14px;
}

.allocation-os-location {
    font-size: 11px;
    color: #ffffff;
    font-weight: 600;
    margin: 0;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.allocation-os-location i {
    color: var(--color-primary);
    width: 14px;
    margin-right: 4px;
}

.allocation-os-card-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.allocation-os-card-right .quick-assign-select {
    background: #0f172a;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    outline: none;
    max-width: 130px;
    cursor: pointer;
}

.allocation-os-card-right .btn-reschedule {
    background: rgba(59, 130, 246, 0.25);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.allocation-os-action-btn {
    cursor: pointer;
    padding: 6px;
    font-size: 13px;
    transition: 0.2s;
}
.allocation-os-action-btn.btn-incident {
    color: #f87171;
}
.allocation-os-action-btn.btn-incident:hover {
    color: #ef4444;
}
.allocation-os-action-btn.btn-remove {
    color: #94a3b8;
}
/* Forçar tabela horizontal limpa e elegante no Desktop (>768px) */
@media (min-width: 769px) {
    #tab-os .table-responsive thead {
        display: table-header-group !important;
    }
    #tab-os .table-responsive tbody tr {
        display: table-row !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
    }
    #tab-os .table-responsive td {
        display: table-cell !important;
        padding: 16px 18px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        text-align: left !important;
    }
    #tab-os .table-responsive td::before {
        display: none !important;
        content: "" !important;
    }
}

@media (max-width: 768px) {
    /* Ajustes finos no header do app */
    .app-header {
        padding: 0 12px !important;
        height: 56px !important;
        min-height: 56px !important;
        max-height: 56px !important;
        overflow: hidden !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-bottom: 1px solid rgba(0, 229, 230, 0.2) !important;
    }

    /* BOTÃO HAMBÚRGUER DO MENU LATERAL NO CELULAR */
    .logo-area {
        display: flex !important;
        align-items: center !important;
        position: relative !important;
        z-index: 1001 !important;
    }

    #btn-mobile-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
        border-radius: 8px !important;
        background: rgba(0, 229, 230, 0.15) !important;
        border: 1px solid rgba(0, 229, 230, 0.4) !important;
        color: #00e5e6 !important;
        font-size: 1.1rem !important;
        cursor: pointer !important;
        margin-right: 8px !important;
        flex-shrink: 0 !important;
        padding: 0 !important;
        pointer-events: auto !important;
        position: relative !important;
        z-index: 1002 !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    /* SIDEBAR OFF-CANVAS DESLIZANTE NO MOBILE COM TODOS OS SUBMENUS */
    .admin-sidebar,
    .sidebar,
    #app-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 290px !important;
        max-width: 86vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: #0b1329 !important;
        border-right: 1px solid rgba(0, 229, 230, 0.35) !important;
        box-shadow: 15px 0 45px rgba(0, 0, 0, 0.9) !important;
        z-index: 10005 !important;
        display: flex !important;
        flex-direction: column !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .admin-sidebar.open,
    .admin-sidebar.active,
    #app-sidebar.open,
    #app-sidebar.active {
        transform: translateX(0) !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* OVERLAY / BACKDROP ESCURO AO ABRIR O MENU LATERAL */
    .sidebar-backdrop {
        display: none !important;
        pointer-events: none !important;
    }

    .sidebar-backdrop.active,
    .sidebar-backdrop.open,
    #sidebar-backdrop.active,
    #sidebar-backdrop.open {
        display: block !important;
        pointer-events: auto !important;
        position: fixed !important;
        inset: 0 !important;
        background: rgba(0, 0, 0, 0.75) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        z-index: 10002 !important;
    }

    /* CABEÇALHO DO MENU LATERAL NO CELULAR */
    .sidebar-mobile-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 14px 16px !important;
        border-bottom: 1px solid rgba(0, 229, 230, 0.25) !important;
        background: rgba(15, 23, 42, 0.98) !important;
        flex-shrink: 0 !important;
    }

    .sidebar-scroll {
        flex: 1 !important;
        overflow-y: auto !important;
        padding: 14px 12px 60px 12px !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* SUBMENUS RETRÁTEIS COM ACCORDION NO MOBILE */
    .sidebar-menu-group {
        margin-bottom: 8px !important;
    }

    .dropdown-toggle {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 12px !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 8px !important;
        color: #ffffff !important;
        font-weight: 700 !important;
        font-size: 0.82rem !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
    }

    .dropdown-toggle .submenu-arrow {
        transition: transform 0.25s ease !important;
        font-size: 0.75rem !important;
        color: #94a3b8 !important;
    }

    .dropdown-toggle.collapsed .submenu-arrow {
        transform: rotate(-90deg) !important;
    }

    .sidebar-submenu {
        list-style: none !important;
        padding: 4px 0 4px 6px !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        transition: all 0.25s ease !important;
    }

    .sidebar-submenu.collapsed {
        display: none !important;
    }

    .subnav-btn {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 10px 12px !important;
        border-radius: 6px !important;
        border: 1px solid transparent !important;
        background: transparent !important;
        color: #94a3b8 !important;
        font-size: 0.82rem !important;
        font-weight: 500 !important;
        cursor: pointer !important;
        text-align: left !important;
        transition: all 0.2s ease !important;
    }

    .subnav-btn:hover {
        background: rgba(255, 255, 255, 0.05) !important;
        color: #ffffff !important;
    }

    .subnav-btn.active {
        background: rgba(0, 229, 230, 0.14) !important;
        border-color: rgba(0, 229, 230, 0.35) !important;
        color: #00e5e6 !important;
        font-weight: 700 !important;
    }

    /* Container de trabalho com rolagem natural da página */
    .workspace-container {
        height: auto !important;
        min-height: calc(100vh - 56px) !important;
        overflow: visible !important;
    }

    .admin-panel {
        height: auto !important;
        min-height: unset !important;
        overflow: visible !important;
    }

    /* Ocultar elementos secundários e botões de simulação do header no celular */
    .status-indicator,
    .desktop-only,
    .demo-simulation-control,
    #btn-toggle-demo,
    #btn-toggle-phone,
    #btn-toggle-client,
    .manager-mobile-bottom-nav,
    .manager-mobile-fab,
    .manager-mobile-drawer-overlay,
    .manager-mobile-quick-menu,
    #manager-mobile-bottom-nav,
    #manager-mobile-fab,
    #manager-mobile-drawer,
    #manager-mobile-quick-menu {
        display: none !important;
    }

    .logo-text span {
        display: none !important;
    }
    .logo-text h1 {
        font-size: 1.05rem !important;
        margin: 0 !important;
    }
    .logo-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.9rem !important;
    }

    /* Ocultar elementos desnecessários do header direto no mobile */
    .app-header .branch-selector-wrapper,
    .app-header .user-profile-chip {
        display: none !important;
    }

    /* Ajuste de scroll e min-width do Calendário */
    #calendar-grid-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    #calendar-grid, 
    #calendar-grid-container > div:first-child {
        min-width: 700px !important;
    }
}

/* ==========================================================================
   FAROL MULTICOLORIDO PULSANTE PARA PINS DE MAPA LEAFLET
   ========================================================================== */
.cluster-toilet-ping {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cluster-ping-inner {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    position: relative;
    background: #0f172a;
    border: 3px solid var(--cluster-main-color, #10b981);
    box-shadow: 0 0 16px var(--cluster-main-color, #10b981);
    transition: all 0.3s ease;
}

.cluster-ping-inner.farol-animated {
    animation: farolColorPulse 4s infinite ease-in-out;
}

.cluster-ping-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 2px solid var(--cluster-main-color, #10b981);
    opacity: 0.7;
    animation: clusterRingExpand 2.2s infinite ease-out;
}

@keyframes clusterRingExpand {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.65);
        opacity: 0;
    }
}

@keyframes farolColorPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8), 0 0 20px rgba(16, 185, 129, 0.9);
        border-color: #10b981;
    }
    25% {
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0.6), 0 0 24px rgba(245, 158, 11, 0.9);
        border-color: #f59e0b;
    }
    50% {
        box-shadow: 0 0 0 14px rgba(239, 68, 68, 0.6), 0 0 25px rgba(239, 68, 68, 0.95);
        border-color: #ef4444;
    }
    75% {
        box-shadow: 0 0 0 10px rgba(2, 132, 199, 0.6), 0 0 22px rgba(2, 132, 199, 0.9);
        border-color: #0284c7;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8), 0 0 20px rgba(16, 185, 129, 0.9);
        border-color: #10b981;
    }
}
    
    /* Planejamento & IA: Rolagem global na tela toda e empilhar colunas */
    #tab-planejamento {
        height: 100% !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    #tab-planejamento .card {
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
    }
    #tab-planejamento .card-body {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        overflow: visible !important;
    }
    #tab-planejamento .card-body > div:first-child {
        border-right: none !important;
        border-bottom: 1px solid var(--color-card-border) !important;
        height: auto !important;
        overflow: visible !important;
        padding-bottom: 15px !important;
    }
    #tab-planejamento .card-body > div:last-child {
        height: auto !important;
        overflow: visible !important;
    }
    #allocation-list-container {
        height: auto !important;
        overflow-y: visible !important;
        max-height: none !important;
        flex: none !important;
    }
    .allocation-tab {
        padding: 12px 10px !important;
        font-size: 11px !important;
    }

    /* Despacho & Kanban: Empilhar colunas */
    .despacho-kanban-grid {
        grid-template-columns: 1fr !important;
    }
    .kanban-column {
        min-height: auto !important;
    }

    /* Empilhar cabeçalhos de cartões com botões */
    .card-header.justify-between {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    .card-header.justify-between > div:last-child {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 8px !important;
    }
    .card-header.justify-between > div:last-child .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Empilhar barras de filtros */
    .filter-bar {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* Empilhar fotos e recibos nos logs de limpeza */
    .log-item-body {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .log-item-body > div:last-child {
        align-items: flex-start !important;
        margin-top: 10px !important;
        padding-top: 10px !important;
        border-top: 1px dashed rgba(255, 255, 255, 0.08) !important;
        width: 100% !important;
    }
    .log-photos-container {
        justify-content: flex-start !important;
    }

    /* Responsivo para os cards de OS no planejamento */
    .allocation-os-card {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 12px !important;
    }
    
    .allocation-os-card-left {
        justify-content: space-between !important;
        width: 100% !important;
        display: flex !important;
    }
    
    .allocation-os-card-info {
        border-top: 1px dashed rgba(255, 255, 255, 0.08) !important;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.08) !important;
        padding: 8px 0 !important;
        gap: 6px !important;
        width: 100% !important;
        display: flex !important;
    }
    
    .allocation-os-location {
        white-space: normal !important;
        line-height: 1.3 !important;
    }
    
    .allocation-os-card-right {
        justify-content: space-between !important;
        width: 100% !important;
        gap: 10px !important;
        display: flex !important;
    }
    
    .allocation-os-card-right .quick-assign-select {
        max-width: none !important;
        flex: 1 !important;
    }
    
    .allocation-os-card-right .btn-reschedule {
        flex: 1 !important;
        text-align: center !important;
    }

    /* Ordens de Serviço: Layout responsivo em cartões apenas no Mobile (<=768px) */
    @media (max-width: 768px) {
        #tab-os .table-responsive thead {
            display: none !important;
        }
        
        #tab-os .table-responsive tbody tr {
            display: block !important;
            background: #0b0f19 !important;
            border: 1px solid rgba(0, 240, 255, 0.15) !important;
            border-radius: 8px !important;
            padding: 12px !important;
            margin-bottom: 12px !important;
            box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
        }
        
        #tab-os .table-responsive td {
            display: flex !important;
            justify-content: space-between !important;
            align-items: center !important;
            padding: 8px 0 !important;
            border-bottom: 1px dashed rgba(255, 255, 255, 0.05) !important;
            text-align: right !important;
            font-size: 12px !important;
        }
        
        #tab-os .table-responsive td:last-child {
            border-bottom: none !important;
        }
        
        #tab-os .table-responsive td::before {
            font-weight: 700 !important;
            color: var(--color-text-secondary) !important;
            font-size: 11px !important;
            text-transform: uppercase !important;
            text-align: left !important;
            margin-right: 15px !important;
        }
        
        #tab-os .table-responsive td:nth-of-type(1)::before { content: "Código OS" !important; }
        #tab-os .table-responsive td:nth-of-type(2)::before { content: "Cliente / Obra" !important; }
        #tab-os .table-responsive td:nth-of-type(3)::before { content: "Banheiro" !important; }
        #tab-os .table-responsive td:nth-of-type(4)::before { content: "Tipo de Serviço" !important; }
        #tab-os .table-responsive td:nth-of-type(5)::before { content: "Técnico" !important; }
        #tab-os .table-responsive td:nth-of-type(6)::before { content: "Data Prevista" !important; }
        #tab-os .table-responsive td:nth-of-type(7)::before { content: "Status" !important; }
        #tab-os .table-responsive td:nth-of-type(8)::before { content: "Prioridade" !important; }
        #tab-os .table-responsive td:nth-of-type(9)::before { content: "Ações" !important; }
    }

    /* Calendário: Otimização Mobile */
    #tab-calendario {
        height: 100% !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    #tab-calendario .card {
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
    }
    #tab-calendario .card-body {
        height: auto !important;
        overflow: visible !important;
        padding: 12px !important;
    }
    #tab-calendario .calendar-legend-details {
        display: none !important;
    }
    #tab-calendario .card-header > div:last-child {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 10px !important;
    }
    #calendar-grid-container {
        height: auto !important;
        overflow-y: visible !important;
}

/* Grid de 2 Dashboards por Linha para o Painel Financeiro */
.fin-dash-grid-2cols {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
}
@media (max-width: 1024px) {
    .fin-dash-grid-2cols {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   VISÃO DESKTOP (>768px): TABELAS HORIZONTAIS COMPLETAS E ESTRUTURA WIDESCREEN
   ========================================================================== */
@media (min-width: 769px) {
    #tab-financeiro-receitas .table-responsive thead,
    #tab-financeiro-despesas .table-responsive thead,
    #tab-financeiro-conciliacao .table-responsive thead,
    #tab-equipamentos .table-responsive thead,
    #tab-clientes .table-responsive thead,
    #tab-tecnicos .table-responsive thead,
    #tab-veiculos .table-responsive thead,
    #tab-descartes .table-responsive thead,
    #tab-auditoria .table-responsive thead,
    #tab-contratos .table-responsive thead,
    #tab-sla .table-responsive thead,
    #tab-logs .table-responsive thead,
    #tab-empresa .table-responsive thead,
    #tab-usuarios .table-responsive thead {
        display: table-header-group !important;
    }
    #tab-financeiro-receitas .table-responsive tbody tr,
    #tab-financeiro-despesas .table-responsive tbody tr,
    #tab-financeiro-conciliacao .table-responsive tbody tr,
    #tab-equipamentos .table-responsive tbody tr,
    #tab-clientes .table-responsive tbody tr,
    #tab-tecnicos .table-responsive tbody tr,
    #tab-veiculos .table-responsive tbody tr,
    #tab-descartes .table-responsive tbody tr,
    #tab-auditoria .table-responsive tbody tr,
    #tab-contratos .table-responsive tbody tr,
    #tab-sla .table-responsive tbody tr,
    #tab-logs .table-responsive tbody tr,
    #tab-empresa .table-responsive tbody tr,
    #tab-usuarios .table-responsive tbody tr {
        display: table-row !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
    }
    #tab-financeiro-receitas .table-responsive td,
    #tab-financeiro-despesas .table-responsive td,
    #tab-financeiro-conciliacao .table-responsive td,
    #tab-equipamentos .table-responsive td,
    #tab-clientes .table-responsive td,
    #tab-tecnicos .table-responsive td,
    #tab-veiculos .table-responsive td,
    #tab-descartes .table-responsive td,
    #tab-auditoria .table-responsive td,
    #tab-contratos .table-responsive td,
    #tab-sla .table-responsive td,
    #tab-logs .table-responsive td,
    #tab-empresa .table-responsive td,
    #tab-usuarios .table-responsive td {
        display: table-cell !important;
        padding: 14px 16px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        text-align: left !important;
    }
    #tab-financeiro-receitas .table-responsive td::before,
    #tab-financeiro-despesas .table-responsive td::before,
    #tab-financeiro-conciliacao .table-responsive td::before,
    #tab-equipamentos .table-responsive td::before,
    #tab-clientes .table-responsive td::before,
    #tab-tecnicos .table-responsive td::before,
    #tab-veiculos .table-responsive td::before,
    #tab-descartes .table-responsive td::before,
    #tab-auditoria .table-responsive td::before,
    #tab-contratos .table-responsive td::before,
    #tab-sla .table-responsive td::before,
    #tab-logs .table-responsive td::before,
    #tab-empresa .table-responsive td::before,
    #tab-usuarios .table-responsive td::before {
        display: none !important;
        content: "" !important;
    }

    /* Rastreamento de Equipamentos no Desktop (Mapa Amplo + Barra Lateral) */
    #tab-rastreamento-equipamentos .gps-map-sidebar-row {
        display: flex !important;
        flex-direction: row !important;
        height: 560px !important;
        min-height: 560px !important;
        width: 100% !important;
    }
    #tab-rastreamento-equipamentos #gps-widescreen-map {
        flex: 1 1 auto !important;
        height: 560px !important;
        min-height: 560px !important;
        width: auto !important;
    }
    #tab-rastreamento-equipamentos .gps-sidebar-panel {
        width: 340px !important;
        min-width: 340px !important;
        max-width: 340px !important;
        height: 560px !important;
        border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-top: none !important;
    }

    /* Cards KPI no Desktop (Preservação 100% Horizontal) */
    #tab-dashboard .stats-card-container {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 15px !important;
        margin-bottom: 20px !important;
    }
    #tab-indicadores .stats-card-container {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
        gap: 12px !important;
        margin-bottom: 24px !important;
    }
    #tab-contratos .stats-card-container {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 15px !important;
        margin-bottom: 20px !important;
    }
    #tab-financeiro-dash .stats-card-container {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 18px !important;
        margin-bottom: 25px !important;
    }
    #tab-rastreamento-equipamentos .kpi-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 16px !important;
        margin-bottom: 20px !important;
    }
    #tab-usuarios .kpi-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 15px !important;
        margin-bottom: 20px !important;
    }
    .stats-card-container .stat-card:nth-child(5) {
        grid-column: auto !important;
    }

    /* Ordens de Serviço no Desktop */
    #tab-os .pane-header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    #tab-os .pane-header > div:last-child {
        display: flex !important;
        gap: 15px !important;
        align-items: center !important;
        width: auto !important;
    }
    #tab-os .pane-header button {
        width: auto !important;
    }
    #tab-os .pane-header button:last-child {
        grid-column: auto !important;
    }

    /* Calendário Operacional no Desktop */
    #tab-calendario .pane-header {
        display: block !important;
    }
    #tab-calendario .cal-top-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    #tab-calendario .cal-title-section {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 14px !important;
    }
    #tab-calendario .cal-header-actions {
        display: flex !important;
        gap: 10px !important;
        align-items: center !important;
        width: auto !important;
    }
    #tab-calendario .cal-controls-row {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    #tab-calendario #calendar-current-label {
        min-width: 200px !important;
        font-size: 1.15rem !important;
    }

    /* Contratos no Desktop */
    #tab-contratos .pane-header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    #tab-contratos .contract-header-actions {
        display: flex !important;
        gap: 12px !important;
        align-items: center !important;
        width: auto !important;
    }
    #tab-contratos .contract-view-switch {
        grid-column: auto !important;
        width: auto !important;
    }
    #tab-contratos .contract-new-btn {
        grid-column: auto !important;
        width: auto !important;
    }
    #tab-contratos .stats-card-container {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 15px !important;
        margin-bottom: 20px !important;
    }

    /* Indicadores no Desktop */
    #tab-indicadores .pane-header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    #tab-indicadores .stats-card-container {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
        gap: 12px !important;
        margin-bottom: 24px !important;
    }
    #tab-indicadores .grid-2x2-charts {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    #tab-indicadores .grid-2x2-charts > .card:nth-child(3) {
        grid-column: span 2 !important;
    }

    /* Receitas & Faturas no Desktop */
    #tab-financeiro-receitas .pane-header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    #tab-financeiro-receitas .receitas-header-actions {
        display: flex !important;
        gap: 10px !important;
        align-items: center !important;
        width: auto !important;
    }
    #tab-financeiro-receitas .receitas-new-btn {
        grid-column: auto !important;
        width: auto !important;
    }

    /* Header no Desktop */
    .app-header {
        height: 70px !important;
        padding: 0 30px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    .logo-area {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        max-width: none !important;
    }
    .logo-icon {
        width: 40px !important;
        height: 40px !important;
    }
    .logo-text h1 {
        font-size: 20px !important;
        max-width: none !important;
    }
    .logo-text span {
        display: block !important;
    }
    .branch-selector-wrapper {
        display: flex !important;
        max-width: none !important;
        height: auto !important;
    }
    .branch-selector-wrapper select {
        max-width: none !important;
        font-size: 13px !important;
    }
    .header-actions {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
    .user-profile-chip {
        display: flex !important;
    }
    .user-profile-chip > div {
        display: flex !important;
    }
    #btn-header-logout span {
        display: inline !important;
    }
    .btn-text-hide-mobile {
        display: inline !important;
    }
    #btn-mobile-header-actions,
    .mobile-header-quick-panel {
        display: none !important;
    }
}

/* ==========================================================================
   VISÃO MOBILE (<=768px): CARTÕES TOUCH ERGONÔMICOS E REORGANIZAÇÃO DE GRIDS
   ========================================================================== */
@media (max-width: 768px) {
    /* ==========================================================================
       TOP HEADER MOBILE TOUCH LIMPO COM DESTAQUE PARA NOME DA EMPRESA
       ========================================================================== */
    .app-header {
        height: 58px !important;
        padding: 0 12px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
        box-sizing: border-box !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 100 !important;
        background: var(--color-bg-base) !important;
    }

    .logo-area {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: calc(100% - 95px) !important;
    }

    #btn-mobile-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        padding: 0 !important;
        font-size: 15px !important;
        border-radius: 8px !important;
        background: rgba(0, 240, 255, 0.1) !important;
        border: 1px solid rgba(0, 240, 255, 0.3) !important;
        color: var(--color-primary) !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
    }

    .logo-icon {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        font-size: 13px !important;
        border-radius: 6px !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .logo-text {
        min-width: 0 !important;
        overflow: hidden !important;
        flex: 1 !important;
    }

    .logo-text h1 {
        font-size: 0.95rem !important;
        font-weight: 800 !important;
        margin: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.2 !important;
        max-width: 100% !important;
        color: #ffffff !important;
    }

    .logo-text span {
        display: none !important;
    }

    /* OCULTAR ELEMENTOS POLUÍDOS DO TOPO NO MOBILE */
    .branch-selector-wrapper,
    .user-profile-chip,
    #btn-header-notifications,
    #btn-header-chamados,
    .demo-simulation-control,
    .status-indicator,
    .desktop-only {
        display: none !important;
    }

    .header-actions {
        display: flex !important;
        align-items: center !important;
        gap: 0 !important;
        flex-shrink: 0 !important;
    }

    /* BOTÃO AÇÕES EXCLUSIVO MOBILE NO TOPO */
    #btn-mobile-header-actions {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        height: 36px !important;
        padding: 0 12px !important;
        border-radius: 8px !important;
        font-weight: 700 !important;
        font-size: 0.8rem !important;
        border: 1px solid rgba(0, 229, 230, 0.4) !important;
        background: rgba(0, 229, 230, 0.12) !important;
        color: var(--color-primary) !important;
        flex-shrink: 0 !important;
    }

    /* ==========================================================================
       PAINEL EXPANSÍVEL DE AÇÕES MOBILE (ESTILO FILTROS AVANÇADOS)
       ========================================================================== */
    .mobile-header-quick-panel {
        display: none;
        position: sticky !important;
        top: 58px !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 99 !important;
        background: rgba(11, 15, 25, 0.98) !important;
        backdrop-filter: blur(14px) !important;
        border-bottom: 1px solid rgba(0, 229, 230, 0.3) !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7) !important;
        padding: 14px 16px !important;
        box-sizing: border-box !important;
        animation: slideDownMobilePanel 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-header-quick-panel.active {
        display: block !important;
    }

    @keyframes slideDownMobilePanel {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-quick-panel-inner {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .mobile-branch-select-box select {
        width: 100% !important;
        height: 40px !important;
        background: rgba(15, 23, 42, 0.9) !important;
        border: 1px solid rgba(0, 229, 230, 0.3) !important;
        border-radius: 8px !important;
        color: #ffffff !important;
        padding: 0 12px !important;
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        outline: none !important;
        box-sizing: border-box !important;
    }

    .mobile-quick-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .mobile-quick-btn {
        height: 40px !important;
        font-size: 0.8rem !important;
        font-weight: 700 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.06) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        color: #e2e8f0 !important;
        box-sizing: border-box !important;
    }

    .mobile-quick-footer {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding-top: 10px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        width: 100% !important;
    }

    .mobile-quick-user-info {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }
    /* 1. ESTRUTURA GERAL DAS TABELAS EM CARD VIEW */
    #tab-os .card,
    #tab-contratos .card,
    #tab-financeiro-receitas .card,
    #tab-financeiro-despesas .card {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    #tab-os .card-body,
    #tab-contratos .card-body,
    #tab-financeiro-receitas .card-body,
    #tab-financeiro-despesas .card-body {
        padding: 0 !important;
    }

    #tab-os .table-responsive,
    #tab-contratos .table-responsive,
    #tab-financeiro-receitas .table-responsive,
    #tab-financeiro-despesas .table-responsive {
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    #tab-os .table-responsive thead,
    #tab-financeiro-receitas .table-responsive thead,
    #tab-financeiro-despesas .table-responsive thead,
    #tab-financeiro-conciliacao .table-responsive thead,
    #tab-equipamentos .table-responsive thead,
    #tab-clientes .table-responsive thead,
    #tab-tecnicos .table-responsive thead,
    #tab-veiculos .table-responsive thead,
    #tab-descartes .table-responsive thead,
    #tab-auditoria .table-responsive thead,
    #tab-contratos .table-responsive thead,
    #tab-sla .table-responsive thead,
    #tab-logs .table-responsive thead,
    #tab-empresa .table-responsive thead,
    #tab-usuarios .table-responsive thead {
        display: none !important;
    }
    
    #tab-os .table-responsive tbody tr,
    #tab-financeiro-receitas .table-responsive tbody tr,
    #tab-financeiro-despesas .table-responsive tbody tr,
    #tab-financeiro-conciliacao .table-responsive tbody tr,
    #tab-equipamentos .table-responsive tbody tr,
    #tab-clientes .table-responsive tbody tr,
    #tab-tecnicos .table-responsive tbody tr,
    #tab-veiculos .table-responsive tbody tr,
    #tab-descartes .table-responsive tbody tr,
    #tab-auditoria .table-responsive tbody tr,
    #tab-contratos .table-responsive tbody tr,
    #tab-sla .table-responsive tbody tr,
    #tab-logs .table-responsive tbody tr,
    #tab-empresa .table-responsive tbody tr,
    #tab-usuarios .table-responsive tbody tr {
        display: block !important;
        background: rgba(15, 23, 42, 0.85) !important;
        backdrop-filter: blur(8px) !important;
        border: 1px solid rgba(0, 229, 230, 0.22) !important;
        border-radius: 12px !important;
        padding: 12px 14px !important;
        margin-bottom: 10px !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.4) !important;
    }
    
    #tab-os .table-responsive td,
    #tab-financeiro-receitas .table-responsive td,
    #tab-financeiro-despesas .table-responsive td,
    #tab-financeiro-conciliacao .table-responsive td,
    #tab-equipamentos .table-responsive td,
    #tab-clientes .table-responsive td,
    #tab-tecnicos .table-responsive td,
    #tab-veiculos .table-responsive td,
    #tab-descartes .table-responsive td,
    #tab-auditoria .table-responsive td,
    #tab-contratos .table-responsive td,
    #tab-sla .table-responsive td,
    #tab-logs .table-responsive td,
    #tab-empresa .table-responsive td,
    #tab-usuarios .table-responsive td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 6px 0 !important;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.06) !important;
        text-align: right !important;
        font-size: 12px !important;
        max-width: 100% !important;
        word-break: break-word !important;
    }
    
    #tab-os .table-responsive td:last-child,
    #tab-financeiro-receitas .table-responsive td:last-child,
    #tab-financeiro-despesas .table-responsive td:last-child,
    #tab-financeiro-conciliacao .table-responsive td:last-child,
    #tab-equipamentos .table-responsive td:last-child,
    #tab-clientes .table-responsive td:last-child,
    #tab-tecnicos .table-responsive td:last-child,
    #tab-veiculos .table-responsive td:last-child,
    #tab-descartes .table-responsive td:last-child,
    #tab-auditoria .table-responsive td:last-child,
    #tab-contratos .table-responsive td:last-child,
    #tab-sla .table-responsive td:last-child,
    #tab-logs .table-responsive td:last-child,
    #tab-empresa .table-responsive td:last-child,
    #tab-usuarios .table-responsive td:last-child {
        border-bottom: none !important;
        padding-top: 8px !important;
        justify-content: flex-end !important;
        gap: 6px !important;
    }
    
    #tab-os .table-responsive td::before,
    #tab-financeiro-receitas .table-responsive td::before,
    #tab-financeiro-despesas .table-responsive td::before,
    #tab-financeiro-conciliacao .table-responsive td::before,
    #tab-equipamentos .table-responsive td::before,
    #tab-clientes .table-responsive td::before,
    #tab-tecnicos .table-responsive td::before,
    #tab-veiculos .table-responsive td::before,
    #tab-descartes .table-responsive td::before,
    #tab-auditoria .table-responsive td::before,
    #tab-contratos .table-responsive td::before,
    #tab-sla .table-responsive td::before,
    #tab-logs .table-responsive td::before,
    #tab-empresa .table-responsive td::before,
    #tab-usuarios .table-responsive td::before {
        font-weight: 700 !important;
        color: var(--color-text-secondary) !important;
        font-size: 11px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        text-align: left !important;
        margin-right: 12px !important;
        flex-shrink: 0 !important;
    }

    #tab-os .table-responsive td:nth-of-type(1)::before { content: "Código OS" !important; }
    #tab-os .table-responsive td:nth-of-type(2)::before { content: "Cliente / Obra" !important; }
    #tab-os .table-responsive td:nth-of-type(3)::before { content: "Banheiro" !important; }
    #tab-os .table-responsive td:nth-of-type(4)::before { content: "Tipo de Serviço" !important; }
    #tab-os .table-responsive td:nth-of-type(5)::before { content: "Técnico" !important; }
    #tab-os .table-responsive td:nth-of-type(6)::before { content: "Data Prevista" !important; }
    #tab-os .table-responsive td:nth-of-type(7)::before { content: "Status" !important; }
    #tab-os .table-responsive td:nth-of-type(8)::before { content: "Prioridade" !important; }
    #tab-os .table-responsive td:nth-of-type(9)::before { content: "Ações" !important; }

    /* Ocultar pseudo-rótulo em mensagens de estado vazio (colspan) */
    .table-responsive td[colspan]::before {
        display: none !important;
        content: "" !important;
    }
    .table-responsive td[colspan] {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        padding: 20px 10px !important;
    }

    /* RASTREAMENTO DE EQUIPAMENTOS NO MOBILE: MAPA INTEGRAL + LISTA VERTICAL ABAIXO */
    #tab-rastreamento-equipamentos .gps-map-sidebar-row {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: unset !important;
        width: 100% !important;
    }

    #tab-rastreamento-equipamentos #gps-widescreen-map {
        width: 100% !important;
        height: 380px !important;
        min-height: 380px !important;
        flex: none !important;
        border-radius: 10px 10px 0 0 !important;
        z-index: 1 !important;
    }

    #tab-rastreamento-equipamentos .gps-sidebar-panel {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 360px !important;
        border-left: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 0 0 10px 10px !important;
    }

    /* 2. GRIDS DE CARDS KPI 2x2 NO MOBILE - APENAS NAS TELAS ESPECÍFICAS DE DASHBOARDS */
    #tab-dashboard .stats-card-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        margin-bottom: 14px !important;
        overflow-x: visible !important;
        width: 100% !important;
    }

    #tab-dashboard .stats-card-container .stat-card {
        padding: 10px 12px !important;
        gap: 10px !important;
        min-width: 0 !important;
        border-radius: 10px !important;
        display: flex !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }

    #tab-dashboard .stats-card-container .stat-card .stat-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 15px !important;
        flex-shrink: 0 !important;
        border-radius: 8px !important;
    }

    #tab-dashboard .stats-card-container .stat-card .stat-info {
        min-width: 0 !important;
        flex: 1 !important;
        overflow: hidden !important;
    }

    #tab-dashboard .stats-card-container .stat-card .stat-info h3 {
        font-size: 1.15rem !important;
        font-weight: 700 !important;
        margin: 0 !important;
        line-height: 1.1 !important;
    }

    #tab-dashboard .stats-card-container .stat-card .stat-info p {
        font-size: 0.72rem !important;
        color: var(--color-text-secondary) !important;
        margin-top: 2px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.1 !important;
    }

    /* O 5º card de Telemetria ocupa 2 colunas para fechar o grid 2x2 com simetria */
    #tab-dashboard .stats-card-container .stat-card:nth-child(5) {
        grid-column: span 2 !important;
    }

    /* TELA EXCLUSIVA: ORDENS DE SERVIÇO (#tab-os) NO CELULAR */
    #tab-os .pane-header {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        gap: 6px !important;
        height: auto !important;
        min-height: unset !important;
        padding-bottom: 8px !important;
        margin-bottom: 10px !important;
    }

    #tab-os .pane-header > div:first-child {
        flex: 0 0 auto !important;
        height: auto !important;
        min-height: unset !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #tab-os .pane-header > div:first-child h2 {
        margin: 0 0 2px 0 !important;
        font-size: 1.2rem !important;
    }

    #tab-os .pane-header > div:first-child p {
        margin: 0 !important;
        font-size: 0.75rem !important;
        color: var(--color-text-secondary) !important;
    }

    #tab-os .pane-header > div:last-child {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        margin-top: 4px !important;
    }

    #tab-os .pane-header button {
        margin: 0 !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 8px !important;
        font-size: 0.76rem !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        min-height: 38px !important;
        box-sizing: border-box !important;
        line-height: 1.2 !important;
    }

    /* O botão "+ Criar Nova OS" ocupa a linha inteira abaixo em destaque */
    #tab-os .pane-header button:last-child {
        grid-column: span 2 !important;
        padding: 10px 12px !important;
        font-size: 0.82rem !important;
        font-weight: 700 !important;
    }

    /* TELA EXCLUSIVA: CALENDÁRIO OPERACIONAL (#tab-calendario) NO CELULAR */
    #tab-calendario .pane-header {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        gap: 8px !important;
        height: auto !important;
        min-height: unset !important;
        margin-bottom: 12px !important;
        padding-bottom: 0 !important;
    }

    #tab-calendario .pane-header > div:first-child {
        flex: 0 0 auto !important;
        height: auto !important;
        min-height: unset !important;
    }

    #tab-calendario .cal-top-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    #tab-calendario .cal-title-section {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }

    #tab-calendario .cal-title-section h2 {
        font-size: 1.2rem !important;
        margin: 0 !important;
    }

    #tab-calendario .cal-projections-badge {
        font-size: 0.72rem !important;
        padding: 5px 10px !important;
        border-radius: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        line-height: 1.25 !important;
    }

    #tab-calendario .cal-header-actions {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
    }

    #tab-calendario .cal-header-actions button {
        margin: 0 !important;
        width: 100% !important;
        height: 38px !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 0 6px !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
    }

    #tab-calendario .cal-controls-card .card-body {
        padding: 12px 10px !important;
    }

    #tab-calendario .cal-controls-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    /* Linha de Navegação de Data no Celular */
    #tab-calendario .cal-nav-group {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        width: 100% !important;
    }

    #tab-calendario .cal-nav-prev,
    #tab-calendario .cal-nav-next {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.95rem !important;
        flex-shrink: 0 !important;
        padding: 0 !important;
        border-radius: 8px !important;
    }

    #tab-calendario #calendar-current-label {
        min-width: 0 !important;
        flex: 1 !important;
        font-size: 0.92rem !important;
        font-weight: 800 !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    #tab-calendario .cal-today-btn {
        height: 36px !important;
        padding: 0 12px !important;
        font-size: 0.78rem !important;
        font-weight: 700 !important;
        flex-shrink: 0 !important;
        border-radius: 8px !important;
        margin-left: 0 !important;
    }

    /* Grupos de Visões e Filtros em largura total */
    #tab-calendario .cal-views-group,
    #tab-calendario .cal-filters-group > div {
        width: 100% !important;
        display: flex !important;
        gap: 4px !important;
        box-sizing: border-box !important;
        padding: 4px !important;
    }

    #tab-calendario .cal-views-group .btn,
    #tab-calendario .cal-filters-group .btn {
        flex: 1 !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        padding: 7px 2px !important;
        text-align: center !important;
        justify-content: center !important;
        min-height: 34px !important;
        border-radius: 8px !important;
    }

    /* Container Dinâmico do Calendário com Scroll Horizontal Suave caso necessário (semana/mês) */
    #tab-calendario #manager-calendar-render-area {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 10px !important;
    }

    /* TELA EXCLUSIVA: CONTRATOS & SLAS (#tab-contratos) NO CELULAR */
    #tab-contratos .pane-header {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        gap: 8px !important;
        height: auto !important;
        min-height: unset !important;
        margin-bottom: 12px !important;
        padding-bottom: 8px !important;
    }

    #tab-contratos .pane-header > div:first-child {
        flex: 0 0 auto !important;
        height: auto !important;
        min-height: unset !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #tab-contratos .pane-header > div:first-child h2 {
        font-size: 1.2rem !important;
        margin: 0 0 2px 0 !important;
    }

    #tab-contratos .pane-header > div:first-child p {
        font-size: 0.75rem !important;
        margin: 0 !important;
        color: var(--color-text-secondary) !important;
    }

    #tab-contratos .contract-header-actions {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        margin-top: 4px !important;
    }

    /* Alternador de Visualização (Tabela / Cards) */
    #tab-contratos .contract-view-switch {
        grid-column: span 2 !important;
        width: 100% !important;
        display: flex !important;
        gap: 4px !important;
        padding: 3px !important;
        box-sizing: border-box !important;
    }

    #tab-contratos .contract-view-switch button {
        flex: 1 !important;
        height: 34px !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        border-radius: 6px !important;
    }

    /* Botões de Ação Secundários */
    #tab-contratos .contract-shortcut-cal,
    #tab-contratos .contract-filter-btn {
        margin: 0 !important;
        width: 100% !important;
        height: 38px !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 0 6px !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
    }

    /* Botão Principal "+ Novo Contrato" em Destaque */
    #tab-contratos .contract-new-btn {
        grid-column: span 2 !important;
        margin: 0 !important;
        width: 100% !important;
        height: 42px !important;
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
    }

    /* KPI CARDS DE CONTRATOS EM GRID 2X2 NO CELULAR */
    #tab-contratos .stats-card-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        margin-bottom: 14px !important;
    }

    #tab-contratos .stats-card-container .stat-card {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        padding: 8px 10px !important;
        border-radius: 8px !important;
        min-height: 72px !important;
        box-sizing: border-box !important;
    }

    #tab-contratos .stats-card-container .stat-card-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        font-size: 0.7rem !important;
        font-weight: 700 !important;
        color: #94a3b8 !important;
        width: 100% !important;
    }

    #tab-contratos .stats-card-container .stat-card-value {
        font-size: 1.15rem !important;
        font-weight: 800 !important;
        margin: 2px 0 !important;
        line-height: 1.1 !important;
    }

    #tab-contratos .stats-card-container .stat-card-subtext {
        font-size: 0.65rem !important;
        color: #64748b !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.1 !important;
    }

    /* TELA EXCLUSIVA: GRÁFICOS & INDICADORES (#tab-indicadores) NO CELULAR */
    #tab-indicadores .pane-header {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        gap: 8px !important;
        height: auto !important;
        min-height: unset !important;
        margin-bottom: 12px !important;
        padding-bottom: 8px !important;
    }

    #tab-indicadores .pane-header > div:first-child {
        flex: 0 0 auto !important;
        height: auto !important;
        min-height: unset !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #tab-indicadores .pane-header > div:first-child h2 {
        font-size: 1.2rem !important;
        margin: 0 0 2px 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    #tab-indicadores .pane-header > div:first-child p {
        font-size: 0.75rem !important;
        margin: 0 !important;
        color: var(--color-text-secondary) !important;
    }

    #tab-indicadores .pane-header > div:last-child {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        margin-top: 4px !important;
    }

    #tab-indicadores .pane-header > div:last-child button {
        margin: 0 !important;
        width: 100% !important;
        height: 38px !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
    }

    /* GRID DE KPIS OPERACIONAIS (2 COLUNAS COMPACTAS NO CELULAR) */
    #tab-indicadores .stats-card-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        margin-bottom: 16px !important;
    }

    #tab-indicadores .stats-card-container .stat-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 8px 10px !important;
        border-radius: 8px !important;
        min-height: 68px !important;
        box-sizing: border-box !important;
    }

    #tab-indicadores .stats-card-container .stat-icon {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 14px !important;
        flex-shrink: 0 !important;
    }

    #tab-indicadores .stats-card-container .stat-info {
        min-width: 0 !important;
        flex: 1 !important;
        overflow: hidden !important;
    }

    #tab-indicadores .stats-card-container .stat-info h3.kpi-value {
        font-size: 1.15rem !important;
        font-weight: 800 !important;
        margin: 0 !important;
        line-height: 1.1 !important;
    }

    #tab-indicadores .stats-card-container .stat-info p {
        font-size: 0.68rem !important;
        color: var(--color-text-secondary) !important;
        margin: 1px 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.1 !important;
    }

    #tab-indicadores .stats-card-container .stat-info .badge {
        font-size: 8.5px !important;
        padding: 1px 4px !important;
        margin-top: 1px !important;
    }

    /* GRID DE GRÁFICOS: 1 COLUNA 100% LARGURA NO CELULAR */
    #tab-indicadores .grid-2x2-charts {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        width: 100% !important;
    }

    #tab-indicadores .grid-2x2-charts > .card {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 14px !important;
        border-radius: 10px !important;
        grid-column: span 1 !important;
    }

    #tab-indicadores .grid-2x2-charts .card-header {
        padding-bottom: 8px !important;
        margin-bottom: 10px !important;
    }

    #tab-indicadores .grid-2x2-charts .card-header h2 {
        font-size: 0.92rem !important;
        font-weight: 700 !important;
    }

    #tab-indicadores .grid-2x2-charts .card-body {
        padding: 0 !important;
    }

    /* Sub-grid de Desfecho Operacional dentro do Card 3 */
    #tab-indicadores .grid-2x2-charts .card-body[style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    /* TELA EXCLUSIVA: RECEITAS & FATURAS (#tab-financeiro-receitas) NO CELULAR */
    #tab-financeiro-receitas .pane-header {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        gap: 8px !important;
        height: auto !important;
        min-height: unset !important;
        margin-bottom: 12px !important;
        padding-bottom: 8px !important;
    }

    #tab-financeiro-receitas .pane-header > div:first-child {
        flex: 0 0 auto !important;
        height: auto !important;
        min-height: unset !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #tab-financeiro-receitas .pane-header > div:first-child h2 {
        font-size: 1.2rem !important;
        margin: 0 0 2px 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    #tab-financeiro-receitas .pane-header > div:first-child p {
        font-size: 0.75rem !important;
        margin: 0 !important;
        color: var(--color-text-secondary) !important;
    }

    #tab-financeiro-receitas .receitas-header-actions {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        margin-top: 4px !important;
    }

    #tab-financeiro-receitas .receitas-cut-btn,
    #tab-financeiro-receitas .receitas-filter-btn {
        margin: 0 !important;
        width: 100% !important;
        height: 38px !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
    }

    /* Botão Principal "+ Emitir Fatura" em Destaque */
    #tab-financeiro-receitas .receitas-new-btn {
        grid-column: span 2 !important;
        margin: 0 !important;
        width: 100% !important;
        height: 42px !important;
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
    }

    /* 3. ROTULAGEM PRECISA POR SUB-ABA (PSEUDO-ELEMENTOS ::before) */

    /* Tab: Faturas & Receitas (8 Colunas) */
    #tab-financeiro-receitas .table-responsive td:nth-of-type(1)::before { content: "Nº Fatura" !important; }
    #tab-financeiro-receitas .table-responsive td:nth-of-type(2)::before { content: "Cliente" !important; }
    #tab-financeiro-receitas .table-responsive td:nth-of-type(3)::before { content: "Emissão" !important; }
    #tab-financeiro-receitas .table-responsive td:nth-of-type(4)::before { content: "Vencimento" !important; }
    #tab-financeiro-receitas .table-responsive td:nth-of-type(5)::before { content: "Valor Total" !important; }
    #tab-financeiro-receitas .table-responsive td:nth-of-type(6)::before { content: "Forma Pgto." !important; }
    #tab-financeiro-receitas .table-responsive td:nth-of-type(7)::before { content: "Status" !important; }
    #tab-financeiro-receitas .table-responsive td:nth-of-type(8)::before { content: "Ações" !important; }

    /* Tab: Despesas (Realizado - 6 Colunas) */
    #tab-financeiro-despesas .table-responsive td:nth-of-type(1)::before { content: "Data" !important; }
    #tab-financeiro-despesas .table-responsive td:nth-of-type(2)::before { content: "Categoria" !important; }
    #tab-financeiro-despesas .table-responsive td:nth-of-type(3)::before { content: "Descrição" !important; }
    #tab-financeiro-despesas .table-responsive td:nth-of-type(4)::before { content: "Valor" !important; }
    #tab-financeiro-despesas .table-responsive td:nth-of-type(5)::before { content: "Status" !important; }
    #tab-financeiro-despesas .table-responsive td:nth-of-type(6)::before { content: "Ações" !important; }

    /* Tab: Conciliação */
    tbody#concil-services-table-body td:nth-of-type(1)::before { content: "Cliente" !important; }
    tbody#concil-services-table-body td:nth-of-type(2)::before { content: "OS" !important; }
    tbody#concil-services-table-body td:nth-of-type(3)::before { content: "Tipo Serviço" !important; }
    tbody#concil-services-table-body td:nth-of-type(4)::before { content: "Data" !important; }
    tbody#concil-services-table-body td:nth-of-type(5)::before { content: "Ação" !important; }
    
    tbody#concil-toilets-table-body td:nth-of-type(1)::before { content: "Cliente" !important; }
    tbody#concil-toilets-table-body td:nth-of-type(2)::before { content: "Qtd. Equipamentos" !important; }
    tbody#concil-toilets-table-body td:nth-of-type(3)::before { content: "Detalhe" !important; }
    tbody#concil-toilets-table-body td:nth-of-type(4)::before { content: "Ação" !important; }

    /* Tab: Equipamentos (8 Colunas) */
    #tab-equipamentos .table-responsive td:nth-of-type(1)::before { content: "ID Equipamento" !important; }
    #tab-equipamentos .table-responsive td:nth-of-type(2)::before { content: "Modelo / Tipo" !important; }
    #tab-equipamentos .table-responsive td:nth-of-type(3)::before { content: "Cliente Vinculado" !important; }
    #tab-equipamentos .table-responsive td:nth-of-type(4)::before { content: "Local Instalação" !important; }
    #tab-equipamentos .table-responsive td:nth-of-type(5)::before { content: "Técnico" !important; }
    #tab-equipamentos .table-responsive td:nth-of-type(6)::before { content: "Status" !important; }
    #tab-equipamentos .table-responsive td:nth-of-type(7)::before { content: "Última Limpeza" !important; }
    #tab-equipamentos .table-responsive td:nth-of-type(8)::before { content: "Ações" !important; }

    /* Tab: Clientes & Locais (7 Colunas) */
    #tab-clientes .table-responsive td:nth-of-type(1)::before { content: "Razão Social" !important; }
    #tab-clientes .table-responsive td:nth-of-type(2)::before { content: "CNPJ / CPF" !important; }
    #tab-clientes .table-responsive td:nth-of-type(3)::before { content: "Telefone / Contato" !important; }
    #tab-clientes .table-responsive td:nth-of-type(4)::before { content: "Endereço Principal" !important; }
    #tab-clientes .table-responsive td:nth-of-type(5)::before { content: "Cabines Alocadas" !important; }
    #tab-clientes .table-responsive td:nth-of-type(6)::before { content: "Status" !important; }
    #tab-clientes .table-responsive td:nth-of-type(7)::before { content: "Ações" !important; }

    /* Tab: Técnicos de Campo (7 Colunas) */
    #tab-tecnicos .table-responsive td:nth-of-type(1)::before { content: "ID / Matrícula" !important; }
    #tab-tecnicos .table-responsive td:nth-of-type(2)::before { content: "Nome & CNH" !important; }
    #tab-tecnicos .table-responsive td:nth-of-type(3)::before { content: "Telefone / Contato" !important; }
    #tab-tecnicos .table-responsive td:nth-of-type(4)::before { content: "Veículo Vinculado" !important; }
    #tab-tecnicos .table-responsive td:nth-of-type(5)::before { content: "Carga de Trabalho" !important; }
    #tab-tecnicos .table-responsive td:nth-of-type(6)::before { content: "Status" !important; }
    #tab-tecnicos .table-responsive td:nth-of-type(7)::before { content: "Ações" !important; }

    /* Tab: Veículos (6 Colunas) */
    #tab-veiculos .table-responsive td:nth-of-type(1)::before { content: "Placa" !important; }
    #tab-veiculos .table-responsive td:nth-of-type(2)::before { content: "Modelo / Tipo" !important; }
    #tab-veiculos .table-responsive td:nth-of-type(3)::before { content: "Capacidade" !important; }
    #tab-veiculos .table-responsive td:nth-of-type(4)::before { content: "Quilometragem" !important; }
    #tab-veiculos .table-responsive td:nth-of-type(5)::before { content: "Status" !important; }
    #tab-veiculos .table-responsive td:nth-of-type(6)::before { content: "Ações" !important; }

    /* Tab: Descartes / Estações ETE (7 Colunas) */
    #tab-descartes .table-responsive td:nth-of-type(1)::before { content: "Estação ETE" !important; }
    #tab-descartes .table-responsive td:nth-of-type(2)::before { content: "CNPJ / Razão Social" !important; }
    #tab-descartes .table-responsive td:nth-of-type(3)::before { content: "Licença (LO)" !important; }
    #tab-descartes .table-responsive td:nth-of-type(4)::before { content: "Cidade / UF" !important; }
    #tab-descartes .table-responsive td:nth-of-type(5)::before { content: "Custo por MTR" !important; }
    #tab-descartes .table-responsive td:nth-of-type(6)::before { content: "Status" !important; }
    #tab-descartes .table-responsive td:nth-of-type(7)::before { content: "Ações" !important; }

    /* Tab: Auditoria do Sistema (6 Colunas) */
    #tab-auditoria .table-responsive td:nth-of-type(1)::before { content: "Data / Hora" !important; }
    #tab-auditoria .table-responsive td:nth-of-type(2)::before { content: "Usuário" !important; }
    #tab-auditoria .table-responsive td:nth-of-type(3)::before { content: "Módulo" !important; }
    #tab-auditoria .table-responsive td:nth-of-type(4)::before { content: "Ação Realizada" !important; }
    #tab-auditoria .table-responsive td:nth-of-type(5)::before { content: "Entidade ID" !important; }
    #tab-auditoria .table-responsive td:nth-of-type(6)::before { content: "IP / Dispositivo" !important; }

    /* Tab: Contratos (9 Colunas) */
    #tab-contratos .table-responsive td:nth-of-type(1)::before { content: "Nº Contrato" !important; }
    #tab-contratos .table-responsive td:nth-of-type(2)::before { content: "Cliente" !important; }
    #tab-contratos .table-responsive td:nth-of-type(3)::before { content: "Qtd Cabines" !important; }
    #tab-contratos .table-responsive td:nth-of-type(4)::before { content: "Dias da Rota" !important; }
    #tab-contratos .table-responsive td:nth-of-type(5)::before { content: "Frequência" !important; }
    #tab-contratos .table-responsive td:nth-of-type(6)::before { content: "Mensalidade" !important; }
    #tab-contratos .table-responsive td:nth-of-type(7)::before { content: "Vigência" !important; }
    #tab-contratos .table-responsive td:nth-of-type(8)::before { content: "Status" !important; }
    #tab-contratos .table-responsive td:nth-of-type(9)::before { content: "Ações" !important; }

    /* Tab: Contratos & SLAs (7 Colunas) */
    #tab-sla .table-responsive td:nth-of-type(1)::before { content: "Contrato / OS" !important; }
    #tab-sla .table-responsive td:nth-of-type(2)::before { content: "Cliente" !important; }
    #tab-sla .table-responsive td:nth-of-type(3)::before { content: "Cabines" !important; }
    #tab-sla .table-responsive td:nth-of-type(4)::before { content: "Prazo SLA" !important; }
    #tab-sla .table-responsive td:nth-of-type(5)::before { content: "Tempo Restante" !important; }
    #tab-sla .table-responsive td:nth-of-type(6)::before { content: "Status SLA" !important; }
    #tab-sla .table-responsive td:nth-of-type(7)::before { content: "Ação Imediata" !important; }

    /* Tab: Logs de Limpeza (7 Colunas) */
    #tab-logs .table-responsive td:nth-of-type(1)::before { content: "Data / Hora" !important; }
    #tab-logs .table-responsive td:nth-of-type(2)::before { content: "OS / Cabine" !important; }
    #tab-logs .table-responsive td:nth-of-type(3)::before { content: "Cliente / Local" !important; }
    #tab-logs .table-responsive td:nth-of-type(4)::before { content: "Técnico" !important; }
    #tab-logs .table-responsive td:nth-of-type(5)::before { content: "Comprovante" !important; }
    #tab-logs .table-responsive td:nth-of-type(6)::before { content: "Assinatura" !important; }
    #tab-logs .table-responsive td:nth-of-type(7)::before { content: "Coordenadas GPS" !important; }

    /* Tab: Minha Empresa / Filiais (8 Colunas) */
    #tab-empresa .table-responsive td:nth-of-type(1)::before { content: "Logo" !important; }
    #tab-empresa .table-responsive td:nth-of-type(2)::before { content: "Filial / Empresa" !important; }
    #tab-empresa .table-responsive td:nth-of-type(3)::before { content: "CNPJ" !important; }
    #tab-empresa .table-responsive td:nth-of-type(4)::before { content: "Cidade / UF" !important; }
    #tab-empresa .table-responsive td:nth-of-type(5)::before { content: "Tipo" !important; }
    #tab-empresa .table-responsive td:nth-of-type(6)::before { content: "Cores da Marca" !important; }
    #tab-empresa .table-responsive td:nth-of-type(7)::before { content: "Status" !important; }
    #tab-empresa .table-responsive td:nth-of-type(8)::before { content: "Ações" !important; }

    /* Tab: Gestão de Usuários (6 Colunas) */
    #tab-usuarios .table-responsive td:nth-of-type(1)::before { content: "Usuário" !important; }
    #tab-usuarios .table-responsive td:nth-of-type(2)::before { content: "Papel (RBAC)" !important; }
    #tab-usuarios .table-responsive td:nth-of-type(3)::before { content: "Filial" !important; }
    #tab-usuarios .table-responsive td:nth-of-type(4)::before { content: "Vínculo" !important; }
    #tab-usuarios .table-responsive td:nth-of-type(5)::before { content: "Status" !important; }
    #tab-usuarios .table-responsive td:nth-of-type(6)::before { content: "Ações" !important; }

    /* 4. BOTÕES E CABEÇALHOS RESPONSIVOS NO MOBILE */
    .card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    
    .card-header > div:last-child {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    .card-header > div:last-child .btn {
        flex: 1 1 calc(50% - 8px) !important;
        min-width: 130px !important;
        justify-content: center !important;
        margin-left: 0 !important;
    }

    .filter-bar,
    .filters-row {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }
    
    .filter-bar > *,
    .filters-row > * {
        max-width: none !important;
        width: 100% !important;
    }

    #tab-empresa .grid-2col {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    #tab-empresa .form-section-card div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    #tab-empresa .form-section-card div[style*="display: flex; gap: 10px"] {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    #tab-empresa .form-section-card div[style*="display: flex; gap: 10px"] > button {
        flex: 1 !important;
        justify-content: center !important;
    }
    #tab-empresa .form-section-card div[style*="display: flex; gap: 10px"] > input {
        width: 100% !important;
        flex: none !important;
    }
}

/* ==========================================================================
   FORÇAR VISÃO MOBILE DO GESTOR VIA PARÂMETRO DA URL (?view=mobile)
   ========================================================================== */
body.force-mobile-view #btn-sidebar-toggle {
    display: flex !important;
}

body.force-mobile-view .admin-sidebar {
    position: fixed !important;
    top: 70px !important;
    left: 0 !important;
    width: 280px !important;
    height: calc(100vh - 70px) !important;
    z-index: 9999 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: var(--color-bg-base) !important;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.7) !important;
    border-right: 1px solid var(--color-card-border) !important;
}

body.force-mobile-view .admin-sidebar.active {
    transform: translateX(0) !important;
}

body.force-mobile-view .admin-content {
    padding: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
}

body.force-mobile-view .workspace-container {
    height: calc(100vh - 70px) !important;
    overflow: hidden !important;
}

body.force-mobile-view .admin-panel {
    height: 100% !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

body.force-mobile-view .app-header {
    padding: 0 15px !important;
    height: 60px !important;
}

body.force-mobile-view .admin-sidebar {
    top: 60px !important;
    height: calc(100vh - 60px) !important;
}

body.force-mobile-view .workspace-container {
    height: calc(100vh - 60px) !important;
}

body.force-mobile-view .status-indicator {
    display: none !important;
}

body.force-mobile-view .logo-text span {
    display: none !important;
}

body.force-mobile-view .logo-text h1 {
    font-size: 16px !important;
}

body.force-mobile-view .fin-charts-grid {
    grid-template-columns: 1fr !important;
}

body.force-mobile-view .stats-card-container {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
}

body.force-mobile-view .stat-card {
    padding: 14px !important;
}

body.force-mobile-view .card-mobile-access {
    display: none !important;
}

body.force-mobile-view .modal-content {
    width: 95% !important;
    padding: 16px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
}

body.force-mobile-view #btn-toggle-demo,
body.force-mobile-view #btn-toggle-phone,
body.force-mobile-view #btn-toggle-client {
    display: none !important;
}

body.force-mobile-view #calendar-grid-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}
body.force-mobile-view #calendar-grid, 
body.force-mobile-view #calendar-grid-container > div:first-child {
    min-width: 700px !important;
}

body.force-mobile-view #tab-planejamento {
    height: 100% !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}
body.force-mobile-view #tab-planejamento .card {
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
}
body.force-mobile-view #tab-planejamento .card-body {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    overflow: visible !important;
}
body.force-mobile-view #tab-planejamento .card-body > div:first-child {
    border-right: none !important;
    border-bottom: 1px solid var(--color-card-border) !important;
    height: auto !important;
    overflow: visible !important;
    padding-bottom: 15px !important;
}
body.force-mobile-view #tab-planejamento .card-body > div:last-child {
    height: auto !important;
    overflow: visible !important;
}
body.force-mobile-view #allocation-list-container {
    height: auto !important;
    overflow-y: visible !important;
    max-height: none !important;
    flex: none !important;
}
body.force-mobile-view .allocation-tab {
    padding: 12px 10px !important;
    font-size: 11px !important;
}

body.force-mobile-view .despacho-kanban-grid {
    grid-template-columns: 1fr !important;
}
body.force-mobile-view .kanban-column {
    min-height: auto !important;
}

body.force-mobile-view .card-header.justify-between {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
}
body.force-mobile-view .card-header.justify-between > div:last-child {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
}
body.force-mobile-view .card-header.justify-between > div:last-child .btn {
    width: 100% !important;
    justify-content: center !important;
}

body.force-mobile-view .filter-bar {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
}

body.force-mobile-view .log-item-body {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
}
body.force-mobile-view .log-item-body > div:last-child {
    align-items: flex-start !important;
    margin-top: 10px !important;
    padding-top: 10px !important;
    border-top: 1px dashed rgba(255, 255, 255, 0.08) !important;
    width: 100% !important;
}
body.force-mobile-view .log-photos-container {
    justify-content: flex-start !important;
}

/* Forçar responsividade dos cards de OS na visualização forçada do celular */
body.force-mobile-view .allocation-os-card {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 12px !important;
    display: flex !important;
}

body.force-mobile-view .allocation-os-card-left {
    justify-content: space-between !important;
    width: 100% !important;
    display: flex !important;
}

body.force-mobile-view .allocation-os-card-info {
    border-top: 1px dashed rgba(255, 255, 255, 0.08) !important;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08) !important;
    padding: 8px 0 !important;
    gap: 6px !important;
    width: 100% !important;
    display: flex !important;
}

body.force-mobile-view .allocation-os-location {
    white-space: normal !important;
    line-height: 1.3 !important;
}

body.force-mobile-view .allocation-os-card-right {
    justify-content: space-between !important;
    width: 100% !important;
    gap: 10px !important;
    display: flex !important;
}

body.force-mobile-view .allocation-os-card-right .quick-assign-select {
    max-width: none !important;
    flex: 1 !important;
}

body.force-mobile-view .allocation-os-card-right .btn-reschedule {
    flex: 1 !important;
    text-align: center !important;
}

/* Forçar visualização responsiva de cartões na tela de OS */
body.force-mobile-view #tab-os .table-responsive thead {
    display: none !important;
}

body.force-mobile-view #tab-os .table-responsive tbody tr {
    display: block !important;
    background: #0b0f19 !important;
    border: 1px solid rgba(0, 240, 255, 0.15) !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
}

body.force-mobile-view #tab-os .table-responsive td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 0 !important;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05) !important;
    text-align: right !important;
    font-size: 12px !important;
}

body.force-mobile-view #tab-os .table-responsive td:last-child {
    border-bottom: none !important;
}

body.force-mobile-view #tab-os .table-responsive td::before {
    font-weight: 700 !important;
    color: var(--color-text-secondary) !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    text-align: left !important;
    margin-right: 15px !important;
}

body.force-mobile-view #tab-os .table-responsive td:nth-of-type(1)::before { content: "Código OS" !important; }
body.force-mobile-view #tab-os .table-responsive td:nth-of-type(2)::before { content: "Cliente / Obra" !important; }
body.force-mobile-view #tab-os .table-responsive td:nth-of-type(3)::before { content: "Banheiro" !important; }
body.force-mobile-view #tab-os .table-responsive td:nth-of-type(4)::before { content: "Tipo de Serviço" !important; }
body.force-mobile-view #tab-os .table-responsive td:nth-of-type(5)::before { content: "Técnico" !important; }
body.force-mobile-view #tab-os .table-responsive td:nth-of-type(6)::before { content: "Data Prevista" !important; }
body.force-mobile-view #tab-os .table-responsive td:nth-of-type(7)::before { content: "Status" !important; }
body.force-mobile-view #tab-os .table-responsive td:nth-of-type(8)::before { content: "Prioridade" !important; }
body.force-mobile-view #tab-os .table-responsive td:nth-of-type(9)::before { content: "Ações" !important; }

/* Forçar visualização responsiva do Calendário */
body.force-mobile-view #tab-calendario {
    height: 100% !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}
body.force-mobile-view #tab-calendario .card {
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
}
body.force-mobile-view #tab-calendario .card-body {
    height: auto !important;
    overflow: visible !important;
    padding: 12px !important;
}
body.force-mobile-view #tab-calendario .calendar-legend-details {
    display: none !important;
}
body.force-mobile-view #tab-calendario .card-header > div:last-child {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 10px !important;
}
body.force-mobile-view #calendar-grid-container {
    height: auto !important;
    overflow-y: visible !important;
}

/* Forçar visualização responsiva de cartões na tela de Receitas & Faturas */
body.force-mobile-view #tab-financeiro-receitas .filters-row {
    flex-direction: column !important;
    gap: 10px !important;
}
body.force-mobile-view #tab-financeiro-receitas .filters-row > * {
    max-width: none !important;
    width: 100% !important;
}

body.force-mobile-view #tab-financeiro-receitas .table-responsive thead {
    display: none !important;
}

body.force-mobile-view #tab-financeiro-receitas .table-responsive tbody tr {
    display: block !important;
    background: #0b0f19 !important;
    border: 1px solid rgba(0, 240, 255, 0.15) !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
}

body.force-mobile-view #tab-financeiro-receitas .table-responsive td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 0 !important;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05) !important;
    text-align: right !important;
    font-size: 12px !important;
}

body.force-mobile-view #tab-financeiro-receitas .table-responsive td:last-child {
    border-bottom: none !important;
}

body.force-mobile-view #tab-financeiro-receitas .table-responsive td::before {
    font-weight: 700 !important;
    color: var(--color-text-secondary) !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    text-align: left !important;
    margin-right: 15px !important;
}

body.force-mobile-view #tab-financeiro-receitas .table-responsive td:nth-of-type(1)::before { content: "Nº Fatura" !important; }
body.force-mobile-view #tab-financeiro-receitas .table-responsive td:nth-of-type(2)::before { content: "Cliente" !important; }
body.force-mobile-view #tab-financeiro-receitas .table-responsive td:nth-of-type(3)::before { content: "Emissão" !important; }
body.force-mobile-view #tab-financeiro-receitas .table-responsive td:nth-of-type(4)::before { content: "Vencimento" !important; }
body.force-mobile-view #tab-financeiro-receitas .table-responsive td:nth-of-type(5)::before { content: "Valor Total" !important; }
body.force-mobile-view #tab-financeiro-receitas .table-responsive td:nth-of-type(6)::before { content: "Status" !important; }
body.force-mobile-view #tab-financeiro-receitas .table-responsive td:nth-of-type(7)::before { content: "Método Pgto." !important; }
body.force-mobile-view #tab-financeiro-receitas .table-responsive td:nth-of-type(8)::before { content: "Ações" !important; }

/* Forçar visualização responsiva de cartões na tela de Despesas */
body.force-mobile-view #tab-financeiro-despesas .card-header > div:last-child {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 10px !important;
}
body.force-mobile-view #tab-financeiro-despesas .card-header > div:last-child .btn {
    flex: 1 !important;
    min-width: 120px !important;
    justify-content: center !important;
    margin-left: 0 !important;
}

body.force-mobile-view #tab-financeiro-despesas .table-responsive thead {
    display: none !important;
}

body.force-mobile-view #tab-financeiro-despesas .table-responsive tbody tr {
    display: block !important;
    background: #0b0f19 !important;
    border: 1px solid rgba(0, 240, 255, 0.15) !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
}

body.force-mobile-view #tab-financeiro-despesas .table-responsive td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 0 !important;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05) !important;
    text-align: right !important;
    font-size: 12px !important;
}

body.force-mobile-view #tab-financeiro-despesas .table-responsive td:last-child {
    border-bottom: none !important;
}

body.force-mobile-view #tab-financeiro-despesas .table-responsive td::before {
    font-weight: 700 !important;
    color: var(--color-text-secondary) !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    text-align: left !important;
    margin-right: 15px !important;
}

body.force-mobile-view #tab-financeiro-despesas .table-responsive td:nth-of-type(1)::before { content: "Data" !important; }
body.force-mobile-view #tab-financeiro-despesas .table-responsive td:nth-of-type(2)::before { content: "Descrição" !important; }
body.force-mobile-view #tab-financeiro-despesas .table-responsive td:nth-of-type(3)::before { content: "Categoria" !important; }
body.force-mobile-view #tab-financeiro-despesas .table-responsive td:nth-of-type(4)::before { content: "Doc. Ref" !important; }
body.force-mobile-view #tab-financeiro-despesas .table-responsive td:nth-of-type(5)::before { content: "Valor" !important; }
body.force-mobile-view #tab-financeiro-despesas .table-responsive td:nth-of-type(6)::before { content: "Status" !important; }
body.force-mobile-view #tab-financeiro-despesas .table-responsive td:nth-of-type(7)::before { content: "Ações" !important; }

/* Forçar visualização responsiva de cartões na tela de Conciliação */
body.force-mobile-view #tab-financeiro-conciliacao .dashboard-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
}
body.force-mobile-view #tab-financeiro-conciliacao .dashboard-header .btn {
    width: 100% !important;
    justify-content: center !important;
}

body.force-mobile-view #tab-financeiro-conciliacao .glass-panel {
    flex-direction: column !important;
    gap: 12px !important;
    padding: 16px !important;
}
body.force-mobile-view #tab-financeiro-conciliacao .glass-panel > div:last-child {
    width: 100% !important;
}
body.force-mobile-view #tab-financeiro-conciliacao .glass-panel p {
    max-width: 100% !important;
}
body.force-mobile-view #tab-financeiro-conciliacao .glass-panel > div:last-child > div {
    grid-template-columns: 1fr !important;
}

body.force-mobile-view #tab-financeiro-conciliacao .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
}

body.force-mobile-view #tab-financeiro-conciliacao .table-responsive {
    padding: 8px 0 0 0 !important;
}
body.force-mobile-view #tab-financeiro-conciliacao .table-responsive thead {
    display: none !important;
}

body.force-mobile-view #tab-financeiro-conciliacao .table-responsive tbody tr {
    display: block !important;
    background: #0b0f19 !important;
    border: 1px solid rgba(0, 240, 255, 0.15) !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
}

body.force-mobile-view #tab-financeiro-conciliacao .table-responsive td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 0 !important;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05) !important;
    text-align: right !important;
    font-size: 12px !important;
}

body.force-mobile-view #tab-financeiro-conciliacao .table-responsive td:last-child {
    border-bottom: none !important;
}

body.force-mobile-view #tab-financeiro-conciliacao .table-responsive td::before {
    font-weight: 700 !important;
    color: var(--color-text-secondary) !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    text-align: left !important;
    margin-right: 15px !important;
}

/* Table 1: Serviços Realizados */
body.force-mobile-view tbody#concil-services-table-body td:nth-of-type(1)::before { content: "Cliente" !important; }
body.force-mobile-view tbody#concil-services-table-body td:nth-of-type(2)::before { content: "OS" !important; }
body.force-mobile-view tbody#concil-services-table-body td:nth-of-type(3)::before { content: "Tipo Serviço" !important; }
body.force-mobile-view tbody#concil-services-table-body td:nth-of-type(4)::before { content: "Data" !important; }
body.force-mobile-view tbody#concil-services-table-body td:nth-of-type(5)::before { content: "Ação" !important; }

/* Table 2: Banheiros Não Faturados */
body.force-mobile-view tbody#concil-toilets-table-body td:nth-of-type(1)::before { content: "Cliente" !important; }
body.force-mobile-view tbody#concil-toilets-table-body td:nth-of-type(2)::before { content: "Qtd. Equipamentos" !important; }
body.force-mobile-view tbody#concil-toilets-table-body td:nth-of-type(3)::before { content: "Detalhe" !important; }
body.force-mobile-view tbody#concil-toilets-table-body td:nth-of-type(4)::before { content: "Ação" !important; }

/* Forçar visualização responsiva de cartões na tela de Equipamentos */
body.force-mobile-view #tab-equipamentos .card-header > div:last-child {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 10px !important;
}
body.force-mobile-view #tab-equipamentos .card-header > div:last-child .btn {
    flex: 1 !important;
    justify-content: center !important;
    margin-left: 0 !important;
}

body.force-mobile-view #tab-equipamentos .filter-bar {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
}

body.force-mobile-view #tab-equipamentos .table-responsive thead {
    display: none !important;
}

body.force-mobile-view #tab-equipamentos .table-responsive tbody tr {
    display: block !important;
    background: #0b0f19 !important;
    border: 1px solid rgba(0, 240, 255, 0.15) !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
}

body.force-mobile-view #tab-equipamentos .table-responsive td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 0 !important;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05) !important;
    text-align: right !important;
    font-size: 12px !important;
}

body.force-mobile-view #tab-equipamentos .table-responsive td:last-child {
    border-bottom: none !important;
}

body.force-mobile-view #tab-equipamentos .table-responsive td::before {
    font-weight: 700 !important;
    color: var(--color-text-secondary) !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    text-align: left !important;
    margin-right: 15px !important;
}

body.force-mobile-view #tab-equipamentos .table-responsive td:nth-of-type(1)::before { content: "ID Equipamento" !important; }
body.force-mobile-view #tab-equipamentos .table-responsive td:nth-of-type(2)::before { content: "Modelo / Tipo" !important; }
body.force-mobile-view #tab-equipamentos .table-responsive td:nth-of-type(3)::before { content: "Cliente Vinculado" !important; }
body.force-mobile-view #tab-equipamentos .table-responsive td:nth-of-type(4)::before { content: "Local Instalação" !important; }
body.force-mobile-view #tab-equipamentos .table-responsive td:nth-of-type(5)::before { content: "Técnico" !important; }
body.force-mobile-view #tab-equipamentos .table-responsive td:nth-of-type(6)::before { content: "Status" !important; }
body.force-mobile-view #tab-equipamentos .table-responsive td:nth-of-type(7)::before { content: "Última Higienização" !important; }
body.force-mobile-view #tab-equipamentos .table-responsive td:nth-of-type(8)::before { content: "Ações" !important; }

/* Forçar visualização responsiva de cartões na tela de Clientes */
body.force-mobile-view #tab-clientes .card-header .btn {
    width: 100% !important;
    justify-content: center !important;
    margin-top: 10px !important;
}

body.force-mobile-view #tab-clientes .filter-bar {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
}

body.force-mobile-view #tab-clientes .table-responsive thead {
    display: none !important;
}

body.force-mobile-view #tab-clientes .table-responsive tbody tr {
    display: block !important;
    background: #0b0f19 !important;
    border: 1px solid rgba(0, 240, 255, 0.15) !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
}

body.force-mobile-view #tab-clientes .table-responsive td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 0 !important;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05) !important;
    text-align: right !important;
    font-size: 12px !important;
}

body.force-mobile-view #tab-clientes .table-responsive td:last-child {
    border-bottom: none !important;
}

body.force-mobile-view #tab-clientes .table-responsive td::before {
    font-weight: 700 !important;
    color: var(--color-text-secondary) !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    text-align: left !important;
    margin-right: 15px !important;
}

body.force-mobile-view #tab-clientes .table-responsive td:nth-of-type(1)::before { content: "Nome do Cliente" !important; }
body.force-mobile-view #tab-clientes .table-responsive td:nth-of-type(2)::before { content: "Contato / Telefone" !important; }
body.force-mobile-view #tab-clientes .table-responsive td:nth-of-type(3)::before { content: "Local / Endereço" !important; }
body.force-mobile-view #tab-clientes .table-responsive td:nth-of-type(4)::before { content: "Sanitários Alocados" !important; }
body.force-mobile-view #tab-clientes .table-responsive td:nth-of-type(5)::before { content: "Status" !important; }
body.force-mobile-view #tab-clientes .table-responsive td:nth-of-type(6)::before { content: "Ações" !important; }

/* Forçar visualização responsiva de cartões na tela de Técnicos */
body.force-mobile-view #tab-tecnicos .card-header .btn {
    width: 100% !important;
    justify-content: center !important;
    margin-top: 10px !important;
}

body.force-mobile-view #tab-tecnicos .filter-bar {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
}

body.force-mobile-view #tab-tecnicos .table-responsive thead {
    display: none !important;
}

body.force-mobile-view #tab-tecnicos .table-responsive tbody tr {
    display: block !important;
    background: #0b0f19 !important;
    border: 1px solid rgba(0, 240, 255, 0.15) !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
}

body.force-mobile-view #tab-tecnicos .table-responsive td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 0 !important;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05) !important;
    text-align: right !important;
    font-size: 12px !important;
}

body.force-mobile-view #tab-tecnicos .table-responsive td:last-child {
    border-bottom: none !important;
}

body.force-mobile-view #tab-tecnicos .table-responsive td::before {
    font-weight: 700 !important;
    color: var(--color-text-secondary) !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    text-align: left !important;
    margin-right: 15px !important;
}

body.force-mobile-view #tab-tecnicos .table-responsive td:nth-of-type(1)::before { content: "Avatar" !important; }
body.force-mobile-view #tab-tecnicos .table-responsive td:nth-of-type(2)::before { content: "Nome Completo" !important; }
body.force-mobile-view #tab-tecnicos .table-responsive td:nth-of-type(3)::before { content: "Veículo / Placa" !important; }
body.force-mobile-view #tab-tecnicos .table-responsive td:nth-of-type(4)::before { content: "ID de Acesso" !important; }
body.force-mobile-view #tab-tecnicos .table-responsive td:nth-of-type(5)::before { content: "Ações" !important; }

/* Forçar visualização responsiva de cartões na tela de Veículos */
body.force-mobile-view #tab-veiculos .card-header .btn {
    width: 100% !important;
    justify-content: center !important;
    margin-top: 10px !important;
}

body.force-mobile-view #tab-veiculos .filter-bar {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
}

body.force-mobile-view #tab-veiculos .table-responsive thead {
    display: none !important;
}

body.force-mobile-view #tab-veiculos .table-responsive tbody tr {
    display: block !important;
    background: #0b0f19 !important;
    border: 1px solid rgba(0, 240, 255, 0.15) !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
}

body.force-mobile-view #tab-veiculos .table-responsive td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 0 !important;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05) !important;
    text-align: right !important;
    font-size: 12px !important;
}

body.force-mobile-view #tab-veiculos .table-responsive td:last-child {
    border-bottom: none !important;
}

body.force-mobile-view #tab-veiculos .table-responsive td::before {
    font-weight: 700 !important;
    color: var(--color-text-secondary) !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    text-align: left !important;
    margin-right: 15px !important;
}

body.force-mobile-view #tab-veiculos .table-responsive td:nth-of-type(1)::before { content: "ID" !important; }
body.force-mobile-view #tab-veiculos .table-responsive td:nth-of-type(2)::before { content: "Modelo / Nome" !important; }
body.force-mobile-view #tab-veiculos .table-responsive td:nth-of-type(3)::before { content: "Placa" !important; }
body.force-mobile-view #tab-veiculos .table-responsive td:nth-of-type(4)::before { content: "Especificações" !important; }
body.force-mobile-view #tab-veiculos .table-responsive td:nth-of-type(5)::before { content: "Ações" !important; }

/* Forçar visualização responsiva de cartões na tela de Descartes */
body.force-mobile-view #tab-descartes .card-header .btn {
    width: 100% !important;
    justify-content: center !important;
    margin-top: 10px !important;
}

body.force-mobile-view #tab-descartes .table-responsive thead {
    display: none !important;
}

body.force-mobile-view #tab-descartes .table-responsive tbody tr {
    display: block !important;
    background: #0b0f19 !important;
    border: 1px solid rgba(0, 240, 255, 0.15) !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
}

body.force-mobile-view #tab-descartes .table-responsive td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 0 !important;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05) !important;
    text-align: right !important;
    font-size: 12px !important;
}

body.force-mobile-view #tab-descartes .table-responsive td:last-child {
    border-bottom: none !important;
}

body.force-mobile-view #tab-descartes .table-responsive td::before {
    font-weight: 700 !important;
    color: var(--color-text-secondary) !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    text-align: left !important;
    margin-right: 15px !important;
}

body.force-mobile-view #tab-descartes .table-responsive td:nth-of-type(1)::before { content: "ID" !important; }
body.force-mobile-view #tab-descartes .table-responsive td:nth-of-type(2)::before { content: "Nome da Estação" !important; }
body.force-mobile-view #tab-descartes .table-responsive td:nth-of-type(3)::before { content: "CNPJ / Razão Social" !important; }
body.force-mobile-view #tab-descartes .table-responsive td:nth-of-type(4)::before { content: "Licença (LO)" !important; }
body.force-mobile-view #tab-descartes .table-responsive td:nth-of-type(5)::before { content: "Endereço" !important; }
body.force-mobile-view #tab-descartes .table-responsive td:nth-of-type(6)::before { content: "Ações" !important; }

/* Forçar visualização responsiva da tela de Configurações da Empresa */
body.force-mobile-view #tab-empresa .grid-2col {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
}
body.force-mobile-view #tab-empresa .form-section-card div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
}
body.force-mobile-view #tab-empresa .form-section-card div[style*="display: flex; gap: 10px"] {
    flex-wrap: wrap !important;
    gap: 10px !important;
}
body.force-mobile-view #tab-empresa .form-section-card div[style*="display: flex; gap: 10px"] > button {
    flex: 1 !important;
    justify-content: center !important;
}
body.force-mobile-view #tab-empresa .form-section-card div[style*="display: flex; gap: 10px"] > input {
    width: 100% !important;
    flex: none !important;
}

/* Forçar visualização responsiva de cartões na tela de Auditoria */
body.force-mobile-view #tab-auditoria .card-header .btn {
    width: 100% !important;
    justify-content: center !important;
    margin-top: 10px !important;
}

body.force-mobile-view #tab-auditoria .table-responsive thead {
    display: none !important;
}

body.force-mobile-view #tab-auditoria .table-responsive tbody tr {
    display: block !important;
    background: #0b0f19 !important;
    border: 1px solid rgba(0, 240, 255, 0.15) !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
}

body.force-mobile-view #tab-auditoria .table-responsive td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 0 !important;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05) !important;
    text-align: right !important;
    font-size: 12px !important;
}

body.force-mobile-view #tab-auditoria .table-responsive td:last-child {
    border-bottom: none !important;
}

body.force-mobile-view #tab-auditoria .table-responsive td::before {
    font-weight: 700 !important;
    color: var(--color-text-secondary) !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    text-align: left !important;
    margin-right: 15px !important;
}

body.force-mobile-view #tab-auditoria .table-responsive td:nth-of-type(1)::before { content: "Data/Hora" !important; }
body.force-mobile-view #tab-auditoria .table-responsive td:nth-of-type(2)::before { content: "Ação" !important; }
body.force-mobile-view #tab-auditoria .table-responsive td:nth-of-type(3)::before { content: "Entidade" !important; }
body.force-mobile-view #tab-auditoria .table-responsive td:nth-of-type(4)::before { content: "ID" !important; }
body.force-mobile-view #tab-auditoria .table-responsive td:nth-of-type(5)::before { content: "Descrição" !important; }
body.force-mobile-view #tab-auditoria .table-responsive td:nth-of-type(6)::before { content: "Usuário" !important; }

/* Forçar visualização responsiva de cartões na tela de Contratos */
body.force-mobile-view #tab-contratos .card-header .btn {
    width: 100% !important;
    justify-content: center !important;
    margin-top: 10px !important;
}

body.force-mobile-view #tab-contratos .filter-bar {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
}

body.force-mobile-view #tab-contratos .table-responsive thead {
    display: none !important;
}

body.force-mobile-view #tab-contratos .table-responsive tbody tr {
    display: block !important;
    background: #0b0f19 !important;
    border: 1px solid rgba(0, 240, 255, 0.15) !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
}

body.force-mobile-view #tab-contratos .table-responsive td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 0 !important;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05) !important;
    text-align: right !important;
    font-size: 12px !important;
    max-width: none !important;
    overflow: visible !important;
    white-space: normal !important;
}

body.force-mobile-view #tab-contratos .table-responsive td:last-child {
    border-bottom: none !important;
}

body.force-mobile-view #tab-contratos .table-responsive td::before {
    font-weight: 700 !important;
    color: var(--color-text-secondary) !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    text-align: left !important;
    margin-right: 15px !important;
}

body.force-mobile-view #tab-contratos .table-responsive td:nth-of-type(1)::before { content: "Cód. Contrato" !important; }
body.force-mobile-view #tab-contratos .table-responsive td:nth-of-type(2)::before { content: "Cliente" !important; }
body.force-mobile-view #tab-contratos .table-responsive td:nth-of-type(3)::before { content: "Equipamentos" !important; }
body.force-mobile-view #tab-contratos .table-responsive td:nth-of-type(4)::before { content: "SLA / Vigência" !important; }
body.force-mobile-view #tab-contratos .table-responsive td:nth-of-type(5)::before { content: "Valor Recorrente" !important; }
body.force-mobile-view #tab-contratos .table-responsive td:nth-of-type(6)::before { content: "Status" !important; }
body.force-mobile-view #tab-contratos .table-responsive td:nth-of-type(7)::before { content: "Ações" !important; }

/* ==========================================================================
   LIGHT THEME INTERFACE OVERRIDES
   ========================================================================== */
body.light-theme {
    --color-bg-deep: #f8fafc;        /* Slate 50 */
    --color-bg-base: #f1f5f9;        /* Slate 100 */
    --color-card-bg: #ffffff;        /* Pure White */
    --color-bg-card: #ffffff;
    --color-card-border: #e2e8f0;    /* Slate 200 */
    --color-text-primary: #0f172a;   /* Slate 900 */
    --color-text-secondary: #475569; /* Slate 600 */
    --color-text-muted: #94a3b8;     /* Slate 400 */
}

/* Light Theme Card Overrides */
body.light-theme .card,
body.light-theme .form-section-card,
body.light-theme .stat-card,
body.light-theme .chart-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .card-header {
    border-bottom: 1px solid #f1f5f9 !important;
}

body.light-theme .card-header h2,
body.light-theme .card-header h3 {
    color: #0f172a !important;
}

/* Light Theme Inputs and Fields */
body.light-theme input,
body.light-theme select,
body.light-theme textarea {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

body.light-theme input::placeholder,
body.light-theme textarea::placeholder {
    color: #94a3b8 !important;
}

body.light-theme .form-label-premium {
    color: #334155 !important;
}

body.light-theme .form-desc-premium {
    color: #64748b !important;
}

/* Light Theme Sidebar Menu */
body.light-theme {
    color-scheme: light;
}

body.light-theme .sidebar {
    background-color: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.03) !important;
}

body.light-theme .sidebar .logo-text h1,
body.light-theme .sidebar .logo-text span {
    color: #0f172a !important;
}

body.light-theme .sidebar a {
    color: #475569 !important;
}

body.light-theme .sidebar a:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

body.light-theme .sidebar a.active {
    background-color: rgba(var(--color-primary-rgb), 0.08) !important;
    color: var(--color-primary) !important;
}

/* Light Theme Tables */
body.light-theme .custom-table th {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

body.light-theme .custom-table td {
    color: #334155 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.light-theme .custom-table tr:hover {
    background-color: #f8fafc !important;
}

/* Header & Workspace Containers */
body.light-theme header.top-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}

body.light-theme header.top-header h2 {
    color: #0f172a !important;
}

/* Quick Fix for hardcoded background divs in panels */
body.light-theme div[style*="background: rgba(0,0,0,0.15)"],
body.light-theme div[style*="background: rgba(0, 0, 0, 0.15)"],
body.light-theme div[style*="background: rgba(0,0,0,0.2)"] {
    background: #f8fafc !important;
}

body.light-theme .phone-frame {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* ==========================================================================
   MOBILE HIGH-CONTRAST (SOLID VIBRANT COLORS)
   ========================================================================== */
body.force-mobile-view .btn-secondary {
    background-color: var(--color-secondary) !important;
    color: #ffffff !important;
    border-color: var(--color-secondary) !important;
    box-shadow: 0 4px 12px rgba(var(--color-secondary-rgb), 0.3) !important;
}

body.force-mobile-view select,
body.force-mobile-view .form-control {
    background-color: var(--color-bg-base) !important;
    color: var(--color-text-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    appearance: auto !important;
}

body.force-mobile-view .allocation-os-card .os-icon {
    background-color: var(--color-primary) !important;
    color: #111 !important;
}

body.force-mobile-view #btn-optimize-route-ia {
    background-color: var(--color-primary) !important;
    color: #0f172a !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 229, 230, 0.4) !important;
}

body.force-mobile-view #btn-toggle-theme {
    background-color: var(--color-bg-base) !important;
    border: 1px solid var(--color-card-border) !important;
}

/* FIX UNIVERSAL DE CLIQUE EM ÍCONES (POINTER-EVENTS) */
button i, .nav-btn i, .btn i, [data-target] i, a i {
    pointer-events: none !important;
}

/* ==========================================================================
   KANBAN BOARD ULTRA-PREMIUM (ALTURA UNIFORME & ROLAGEM INTERNA PERFEITA)
   ========================================================================== */
.kanban-board {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
    height: calc(100vh - 165px) !important;
    min-height: 580px !important;
    align-items: stretch !important;
}

@media (max-width: 1200px) {
    .kanban-board {
        display: flex !important;
        overflow-x: auto !important;
        gap: 16px !important;
        height: 560px !important;
    }
    .kanban-column {
        min-width: 290px !important;
        width: 290px !important;
    }
}

.kanban-column {
    width: 100% !important;
    min-width: 0 !important;
    background: rgba(11, 15, 25, 0.92) !important;
    border: 1px solid rgba(0, 240, 255, 0.2) !important;
    border-radius: 14px !important;
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
}

.kanban-column .column-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 14px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    margin-bottom: 14px !important;
    flex-shrink: 0 !important;
}

.kanban-cards-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    overflow-y: auto !important;
    padding-right: 6px !important;
    flex: 1 1 auto !important;
    height: 100% !important;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary, #00e5e6) rgba(0,0,0,0.4);
}

.kanban-cards-container::-webkit-scrollbar {
    width: 6px;
}
.kanban-cards-container::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
    border-radius: 3px;
}
/* ==========================================================================
   MODO TV GESTÃO À VISTA (OVERLAY EM TELA CHEIA FIXA GARANTIDO)
   ========================================================================== */
#tab-despacho.tv-mode-active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    background: #070a12 !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

#tab-despacho.tv-mode-active .kanban-board {
    height: calc(100vh - 100px) !important;
    max-height: none !important;
}

/* KANBAN CARDS ULTRA-PREMIUM */
.kanban-card {
    background-color: #0b0f19 !important;
    border: 1px solid rgba(0, 240, 255, 0.2) !important;
    border-radius: 10px !important;
    padding: 15px !important;
    cursor: grab !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    user-select: none !important;
    position: relative !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6) !important;
}

.kanban-card:hover {
    border-color: rgba(0, 240, 255, 0.7) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.25) !important;
}

.kanban-card-title {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-weight: 800 !important;
    font-size: 0.88rem !important;
    color: var(--color-primary, #00e5e6) !important;
    margin-bottom: 8px !important;
}

.kanban-card-client {
    font-size: 0.88rem !important;
    color: #fbbf24 !important; /* Amber Neon ultra legível */
    margin-bottom: 6px !important;
    font-weight: 800 !important;
}

.kanban-card-address {
    font-size: 0.78rem !important;
    color: #ffffff !important; /* Texto branco puro */
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 10px !important;
}

.kanban-card-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-top: 10px !important;
    margin-top: 10px !important;
    font-size: 0.75rem !important;
    color: #94a3b8 !important;
}

.btn-icon-sm {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--color-text-primary);
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}
.btn-icon-sm:hover {
    background: rgba(255,255,255,0.15);
}
.btn-icon-sm svg, .btn-icon-sm i {
    width: 14px;
    height: 14px;
}


/* =========================================================
   PREMIUM AESTHETICS UPGRADE
   ========================================================= */

:root {
    --color-bg-deep: #09090b; /* Very dark zinc */
    --color-bg-base: #18181b; 
    --color-primary: #06b6d4; /* Cyan */
    --color-primary-hover: #0891b2;
    --color-secondary: #8b5cf6; /* Violet/Purple for gradients */
    --color-card-bg: rgba(24, 24, 27, 0.7);
    --color-card-border: rgba(255, 255, 255, 0.08);
}

body {
    background: radial-gradient(circle at 15% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
                var(--color-bg-deep);
    background-attachment: fixed;
}

.app-header {
    background: rgba(9, 9, 11, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border: none;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-hover), #7c3aed);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    transform: translateY(-1px);
}

.table-wrapper {
    background: rgba(24, 24, 27, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius-lg);
}

tbody tr {
    transition: var(--transition-smooth);
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: scale(1.002);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.modal-content {
    background: rgba(24, 24, 27, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(6, 182, 212, 0.1);
}

.form-control {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-control:focus {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.badge {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
\n
/* Status Badges */
.badge-green {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-blue {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-orange {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-red {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
\n
/* =========================================================
   PREMIUM CUSTOM SCROLLBARS
   ========================================================= */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2); 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: rgba(6, 182, 212, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 182, 212, 0.6);
}

.form-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    margin: 10px 0 5px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 700;
}
\n
/* Fix for forms inside modal-card to propagate flex constraints */
.modal-card form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* PREMIUM ACTION BUTTONS */
@keyframes pulse-neon {
    0% { box-shadow: 0 0 0 0 rgba(0, 229, 230, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 229, 230, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 229, 230, 0); }
}

@keyframes pulse-warning {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.btn-pulse-primary {
    animation: pulse-neon 2s infinite;
}
.btn-pulse-primary:hover {
    animation: none;
    filter: brightness(1.2);
}

.btn-pulse-warning {
    animation: pulse-warning 2s infinite;
}
.btn-pulse-warning:hover {
    animation: none;
    filter: brightness(1.2);
}

/* Advanced Filters Panel */
.advanced-filters-panel {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    background: rgba(20, 30, 45, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}
.advanced-filters-panel.active {
    display: grid;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.filter-group label {
    font-size: 12px;
    color: var(--color-text-secondary);
}
.filter-group input, .filter-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}
.filter-group input:focus, .filter-group select:focus {
    border-color: var(--color-primary);
}

/* Calendar View Toggle Buttons */
.cal-view-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cal-view-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}
.cal-view-btn.active {
    background: var(--color-primary, #0ea5e9);
    color: #fff;
    border-color: var(--color-primary, #0ea5e9);
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.3);
}

/* ============================================================================
   ESTILIZAÇÃO DE CONTRATOS & DIAS DA SEMANA
   ============================================================================ */
.day-checkbox-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-card-border, rgba(255,255,255,0.1));
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    transition: all 0.2s ease;
    user-select: none;
}
.day-checkbox-btn:hover {
    background: rgba(0, 229, 230, 0.1);
    border-color: var(--color-primary, #00e5e6);
    color: #fff;
}
.day-checkbox-btn input[type="checkbox"] {
    accent-color: var(--color-primary, #00e5e6);
    width: 14px;
    height: 14px;
    cursor: pointer;
}
.day-checkbox-btn input[type="checkbox"]:checked + span {
    color: var(--color-primary, #00e5e6);
    font-weight: 700;
}

.contract-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.contract-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-card-border, rgba(255, 255, 255, 0.12));
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.contract-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 229, 230, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 229, 230, 0.15);
}

.contract-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}
.contract-code-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--color-primary, #00e5e6);
    display: flex;
    align-items: center;
    gap: 8px;
}

.day-pill-list {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.day-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: #64748b;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.day-pill.active {
    background: rgba(0, 229, 230, 0.15);
    color: #00e5e6;
    border-color: rgba(0, 229, 230, 0.4);
    box-shadow: 0 0 8px rgba(0, 229, 230, 0.2);
}

/* Custom Animated Cluster Marker Pin */
.cluster-toilet-ping {
    background: transparent;
    border: none;
}
.cluster-ping-inner {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.92);
    border: 3px solid var(--cluster-main-color, #00e5e6);
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--cluster-main-color, #00e5e6), 0 0 30px rgba(0, 0, 0, 0.8);
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.cluster-ping-inner:hover {
    transform: scale(1.18);
}
.cluster-ping-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid var(--cluster-main-color, #00e5e6);
    animation: clusterPulse 1.8s infinite cubic-bezier(0.4, 0, 0.6, 1);
    pointer-events: none;
}

@keyframes clusterPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.9;
        box-shadow: 0 0 0 0 var(--cluster-main-color, #00e5e6);
    }
    70% {
        transform: scale(1.35);
        opacity: 0;
        box-shadow: 0 0 0 14px transparent;
    }
    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}


 

/* ==========================================================================
   GAVETA DE TELEMETRIA (DRAWER)
   ========================================================================== */
.drawer-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 9999;
    display: flex; justify-content: flex-end;
    opacity: 1; transition: opacity 0.3s ease;
}
.drawer-overlay.hidden {
    opacity: 0; pointer-events: none;
}
.drawer-panel {
    width: 400px; max-width: 100vw; background: var(--color-surface);
    height: 100%; box-shadow: -4px 0 15px rgba(0,0,0,0.3);
    display: flex; flex-direction: column;
    transform: translateX(0); transition: transform 0.3s ease;
}
.drawer-overlay.hidden .drawer-panel {
    transform: translateX(100%);
}
.drawer-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; border-bottom: 1px solid var(--color-border);
    background: rgba(255,255,255,0.02);
}
.drawer-title-group h3 { margin: 0; font-size: 1.1rem; }
.drawer-close {
    background: none; border: none; color: var(--color-text-secondary);
    font-size: 1.5rem; cursor: pointer; transition: color 0.2s;
}
.drawer-close:hover { color: var(--color-error); }
.drawer-body {
    padding: 20px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 20px;
}
.drawer-section h4 { margin: 0 0 12px 0; font-size: 0.95rem; border-bottom: 1px solid var(--color-border); padding-bottom: 4px; }
.drawer-footer {
    padding: 16px 20px; border-top: 1px solid var(--color-border); background: rgba(255,255,255,0.02);
}
.drawer-photo-mock {
    width: 80px; height: 80px; background: #334155; border-radius: 6px;
    display: flex; justify-content: center; align-items: center; font-size: 1.5rem; border: 1px dashed #475569;
}

.badge-patio, .badge-no-patio { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-locado { background: rgba(14, 165, 233, 0.15); color: #0ea5e9; border: 1px solid rgba(14, 165, 233, 0.3); }
.badge-manutencao { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-inativo { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }

/* CALENDAR VIEW TOGGLES & FILTERS - PREMIUM PROMINENT STYLING */
.cal-view-btn, .cal-filter-btn {
    background: transparent;
    color: var(--color-text-secondary, #94a3b8);
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cal-view-btn:hover, .cal-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-1px);
}
.cal-view-btn.active {
    background: linear-gradient(135deg, #00e5e6, #0284c7) !important;
    color: #000 !important;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(0, 229, 230, 0.4);
}
.cal-filter-btn.active#btn-cal-filter-all {
    background: linear-gradient(135deg, #00e5e6, #0284c7) !important;
    color: #000 !important;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(0, 229, 230, 0.4);
}
.cal-filter-btn.active#btn-cal-filter-reais {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #fff !important;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}
.cal-filter-btn.active#btn-cal-filter-projecoes {
    background: linear-gradient(135deg, #a855f7, #7c3aed) !important;
    color: #fff !important;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4);
}


/* ====================================================
   PREMIUM MINHA EMPRESA & WHITE LABEL STUDIO STYLES
   ==================================================== */
.empresa-cockpit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.empresa-kpi-card {
    background: var(--color-bg-card, rgba(15, 23, 42, 0.75));
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.empresa-kpi-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-primary);
}

.empresa-kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(2, 132, 199, 0.15);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.empresa-kpi-info {
    flex: 1;
}

.empresa-kpi-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-secondary, #94a3b8);
    margin-bottom: 4px;
}

.empresa-kpi-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary, #f8fafc);
}

/* WHITE LABEL LIVE STUDIO */
.whitelabel-studio-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

@media (max-width: 992px) {
    .whitelabel-studio-layout {
        grid-template-columns: 1fr;
    }
}

.whitelabel-preview-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.whitelabel-preview-header-bar {
    background: #1e293b;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.preview-address-bar {
    flex: 1;
    background: #0f172a;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 0.75rem;
    color: #94a3b8;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.whitelabel-live-app {
    padding: 16px;
    background: #0b1120;
    min-height: 240px;
}

.whitelabel-live-navbar {
    height: 44px;
    border-radius: 8px;
    background: var(--color-primary, #0284c7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: background 0.3s ease;
}

.whitelabel-live-logo-img {
    max-height: 24px;
    max-width: 100px;
    object-fit: contain;
}

.whitelabel-live-card-body {
    margin-top: 14px;
    background: #1e293b;
    border-radius: 8px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.05);
}

.whitelabel-live-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    background: var(--color-primary, #0284c7);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    transition: background 0.3s ease;
}

.whitelabel-live-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    background: var(--color-secondary, #10b981);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 6px;
}

/* COLOR PALETTE PRESETS */
.color-presets-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.preset-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-chip:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.chip-swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
}

/* ============================================================================
   SISTEMA UNIVERSAL DE COMBOBOX / SELECTS PADRONIZADOS ULTRAPREMIUM
   ============================================================================ */

/* 1. SELETOR GLOBAL DE FILIAIS (#global-branch-select / Tela 1 ➔ Tela 2 Ultra) */
.branch-selector-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(0, 240, 255, 0.3) !important;
    border-radius: 99px !important;
    padding: 5px 14px !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), 0 0 10px rgba(0, 240, 255, 0.1) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    cursor: pointer !important;
}

.branch-selector-wrapper:hover {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.3) !important;
    transform: translateY(-1px) !important;
}

.branch-selector-wrapper i {
    color: #38bdf8 !important;
    font-size: 0.95rem !important;
    flex-shrink: 0 !important;
}

.branch-selector-wrapper select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #f8fafc !important;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    padding-right: 22px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%3C38bdf8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right center !important;
    background-size: 12px !important;
}

.branch-selector-wrapper select option {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    padding: 10px !important;
    font-weight: 600 !important;
}

/* 2. ESTILIZAÇÃO GENERALIZADA DE SELECTS E COMBOBOXES DO SISTEMA */
select,
select.form-control,
.form-group select,
.filter-group select,
.advanced-filters-panel select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
    border-radius: 10px !important;
    color: #f8fafc !important;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    padding: 8px 30px 8px 12px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%3C38bdf8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

select:hover,
select.form-control:hover,
.form-group select:hover,
.filter-group select:hover {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25) !important;
}

select:focus,
select.form-control:focus,
.form-group select:focus,
.filter-group select:focus {
    outline: none !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.4) !important;
}

select option,
select.form-control option,
.form-group select option {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    padding: 10px !important;
    font-weight: 600 !important;
}

/* 3. PILL CONTAINERS DE FILTROS (TELA 2 ESTILO PREMIUM) */
.filter-combobox-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    border-radius: 99px !important;
    padding: 4px 12px !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.2s ease !important;
}

.filter-combobox-pill:hover {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.25) !important;
}

.filter-combobox-pill i {
    color: #38bdf8 !important;
    font-size: 0.85rem !important;
}

.filter-combobox-pill select {
    border: none !important;
    background-color: transparent !important;
    padding: 4px 22px 4px 4px !important;
    box-shadow: none !important;
}

/* 4. CAMPO DE BUSCA ULTRA-PREMIUM (.search-input-wrapper / Imagens 2 e 3 Ajustadas) */
.search-input-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.search-input-wrapper i {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #38bdf8 !important;
    font-size: 0.9rem !important;
    pointer-events: none !important;
    transition: color 0.2s ease !important;
    z-index: 2 !important;
}

.search-input-wrapper input,
input.search-pill-input {
    width: 100% !important;
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
    border-radius: 99px !important;
    color: #f8fafc !important;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    padding: 9px 16px 9px 40px !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.25s ease !important;
}

.search-input-wrapper input::placeholder,
input.search-pill-input::placeholder {
    color: #94a3b8 !important;
    font-size: 0.82rem !important;
}

.search-input-wrapper input:hover,
input.search-pill-input:hover {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25) !important;
}

.search-input-wrapper input:focus,
input.search-pill-input:focus {
    outline: none !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.35) !important;
}

.search-input-wrapper:focus-within i {
    color: #00f0ff !important;
}

/* UNIFIED OPERATIONAL FILTERS (CENTRAL OPERACIONAL & CAMPO) */
.op-filter-bar {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.85)) !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
    border-radius: 12px !important;
    padding: 10px 16px !important;
    margin-bottom: 18px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    align-items: center !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.3s ease !important;
}

.op-filter-bar .form-control,
.op-filter-bar input,
.op-filter-bar select {
    background: rgba(10, 15, 29, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
    font-size: 0.82rem !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}

.op-filter-bar input:focus,
.op-filter-bar select:focus {
    border-color: #00e5e6 !important;
    box-shadow: 0 0 10px rgba(0, 229, 230, 0.3) !important;
    outline: none !important;
}

.op-filter-active-badge {
    animation: pulse-op-badge 2s infinite ease-in-out;
}

@keyframes pulse-op-badge {
    0%, 100% { opacity: 0.9; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}



/* ============================================================================
   SANITIX SAAS — PADRÃO SISTÊMICO DE UX PARA CABEÇALHOS E FILTROS RETRÁTEIS
   ============================================================================ */
.pane-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
    margin-bottom: 18px !important;
}

.pane-header > div:first-child {
    flex: 1 1 320px !important;
    min-width: 0 !important;
}

.pane-header h2 {
    font-family: 'Outfit', system-ui, sans-serif !important;
    font-size: clamp(1.15rem, 2vw, 1.4rem) !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.25 !important;
}

.pane-subtitle {
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 0.82rem !important;
    color: #94a3b8 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    max-width: 720px !important;
}

.pane-actions,
.pane-header .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-left: auto !important;
}

.advanced-filters-panel,
.op-filter-bar {
    width: 100% !important;
    max-width: 100% !important;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.92)) !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    margin-top: 10px !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35) !important;
    overflow: hidden !important;
    transition: all 0.3s ease-in-out !important;
}

.op-filter-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 12px !important;
    align-items: center !important;
    width: 100% !important;
}

.op-filter-bar .form-control,
.op-filter-bar input,
.op-filter-bar select,
.advanced-filters-panel input,
.advanced-filters-panel select {
    background: rgba(10, 15, 29, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #f8fafc !important;
    font-size: 0.82rem !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    height: 36px !important;
}

.op-filter-bar input:focus,
.op-filter-bar select:focus,
.advanced-filters-panel input:focus,
.advanced-filters-panel select:focus {
    border-color: #00e5e6 !important;
    box-shadow: 0 0 12px rgba(0, 229, 230, 0.3) !important;
    outline: none !important;
}

/* ============================================================================
   SANITIX SAAS — BLOCO RESPONSIVO MOBILE ZUMBI ISOLADO NA QUARENTENA
   Consulte: archive/legacy_mobile_styles_quarantine.css (487 linhas preservadas)
   ============================================================================ */

@media screen and (max-width: 480px) {
    .portal-kpi-grid,
    .dashboard-kpi-row {
        grid-template-columns: 1fr !important;
    }

    .pane-header h2 {
        font-size: 1.1rem !important;
    }
}


/* ============================================================================
   SANITIX SAAS — RESPONSIVIDADE ULTRA KANBAN MOBILE (88VW + SCROLL SNAP)
   ============================================================================ */
@media screen and (max-width: 992px) {
    .kanban-mobile-tabs {
        display: flex !important;
        width: 100% !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .kanban-board { display: flex !important; flex-direction: column !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 14px !important;
        padding-bottom: 16px !important;
        width: 100% !important;
    }

    .kanban-column {
        scroll-snap-align: start !important;
        min-width: 88vw !important;
        max-width: 88vw !important;
        width: 88vw !important;
        flex-shrink: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .kanban-cards-container {
        max-height: 60vh !important;
        overflow-y: auto !important;
        padding-right: 4px !important;
    }
}


/* ============================================================================
   SANITIX SAAS — KANBAN EMPILHADO VERTICALMENTE NO CELULAR (UM ABAIXO DO OUTRO)
   ============================================================================ */

.kanban-mobile-tabs {
    display: none !important;
}

@media screen and (max-width: 992px) {
    /* QUADRO KANBAN EMPILHADO EM 1 COLUNA 100% NO CELULAR */
    .kanban-board {
        display: flex !important;
        flex-direction: column !important;
        overflow-x: visible !important;
        white-space: normal !important;
        gap: 20px !important;
        width: 100% !important;
    }

    .kanban-column {
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        flex-shrink: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        margin-bottom: 10px !important;
    }

    .column-header {
        white-space: normal !important;
        font-size: 0.95rem !important;
        padding: 14px 16px !important;
    }

    .kanban-cards-container {
        max-height: none !important;
        overflow-y: visible !important;
        padding: 10px 0 !important;
    }
}


/* ============================================================================
   SANITIX SAAS — RESPONSIVIDADE ESTRITA PARA KANBAN E 20 ABAS (MAX-WIDTH: 992PX)
   ============================================================================ */

/* KANBAN BOARD DESKTOP (> 992PX) */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    min-height: 500px;
}

.kanban-mobile-tabs {
    display: none !important;
}

@media screen and (max-width: 992px) {
    /* QUADRO KANBAN EMPILHADO VERTICALMENTE NO CELULAR (UM ABAIXO DO OUTRO) */
    .kanban-board {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        overflow-x: visible !important;
        white-space: normal !important;
        gap: 20px !important;
        width: 100% !important;
    }

    .kanban-column {
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        flex-shrink: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        margin-bottom: 14px !important;
    }

    .column-header {
        white-space: normal !important;
        font-size: 0.95rem !important;
        padding: 12px 16px !important;
        border-radius: 10px !important;
    }

    .kanban-cards-container {
        max-height: none !important;
        overflow-y: visible !important;
        padding: 10px 0 !important;
    }

    /* MATRIZ DE FILTROS E BUSCA EM TODAS AS TELAS */
    .filters-row,
    .filter-group-row,
    .pane-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .pane-header > div {
        width: 100% !important;
    }

    /* ADAPTAÇÃO DE FORMULÁRIOS DAS 20 ABAS */
    .form-row,
    .form-grid {
        grid-template-columns: 1fr !important;
    }

    /* 01. TAB-DASHBOARD & TELEMETRIA */
    .allocation-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    #dashboard-map {
        height: 360px !important;
        border-radius: 12px !important;
    }

    .portal-kpi-grid,
    .dashboard-kpi-row {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    /* 02. TAB-INDICADORES */
    .fin-chart-grid,
    .grid-2-cols,
    .grid-3-cols,
    .grid-4-cols {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    /* 04. TAB-PLANEJAMENTO & IA */
    .transfer-grid {
        grid-template-columns: 1fr !important;
        height: auto !important;
        min-height: auto !important;
        gap: 14px !important;
    }

    .transfer-col {
        height: 380px !important;
        margin-bottom: 12px !important;
    }

    /* 05. TAB-OS (ORDENS DE SERVIÇO) */
    #os-advanced-filters,
    .advanced-filters-panel {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* 06. TAB-CALENDARIO GESTOR */
    .calendar-grid-wrapper,
    #calendar {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
    }

    .fc-toolbar {
        flex-direction: column !important;
        gap: 8px !important;
        align-items: center !important;
    }

    /* 07 A 09. TABELAS (CONTRATOS, SLA, LOGS) */
    .table-responsive {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        margin-bottom: 14px !important;
        border-radius: 8px !important;
    }

    .custom-table,
    .data-table {
        width: 100% !important;
        min-width: 0 !important;
    }

    .custom-table th,
    .custom-table td,
    .data-table th,
    .data-table td {
        padding: 10px 12px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
    }

    /* 07.1 AJUSTE RESPONSIVO MOBILE EXCLUSIVO: TODAS AS 15 TABELAS EM CARD VIEW TOUCH 100% FLUIDO */
    #tab-contratos .card,
    body.force-mobile-view #tab-contratos .card,
    #tab-os .card,
    body.force-mobile-view #tab-os .card,
    #tab-sla .card,
    body.force-mobile-view #tab-sla .card,
    #tab-logs .card,
    body.force-mobile-view #tab-logs .card,
    #tab-financeiro-receitas .card,
    body.force-mobile-view #tab-financeiro-receitas .card,
    #tab-financeiro-despesas .card,
    body.force-mobile-view #tab-financeiro-despesas .card,
    #tab-financeiro-conciliacao .card,
    body.force-mobile-view #tab-financeiro-conciliacao .card,
    #tab-equipamentos .card,
    body.force-mobile-view #tab-equipamentos .card,
    #tab-clientes .card,
    body.force-mobile-view #tab-clientes .card,
    #tab-tecnicos .card,
    body.force-mobile-view #tab-tecnicos .card,
    #tab-veiculos .card,
    body.force-mobile-view #tab-veiculos .card,
    #tab-descartes .card,
    body.force-mobile-view #tab-descartes .card,
    #tab-usuarios .card,
    body.force-mobile-view #tab-usuarios .card,
    #tab-empresa .card,
    body.force-mobile-view #tab-empresa .card,
    #tab-auditoria .card,
    body.force-mobile-view #tab-auditoria .card,
    #tab-contratos .card-body,
    body.force-mobile-view #tab-contratos .card-body,
    #tab-os .card-body,
    body.force-mobile-view #tab-os .card-body,
    #tab-sla .card-body,
    body.force-mobile-view #tab-sla .card-body,
    #tab-logs .card-body,
    body.force-mobile-view #tab-logs .card-body,
    #tab-financeiro-receitas .card-body,
    body.force-mobile-view #tab-financeiro-receitas .card-body,
    #tab-financeiro-despesas .card-body,
    body.force-mobile-view #tab-financeiro-despesas .card-body,
    #tab-financeiro-conciliacao .card-body,
    body.force-mobile-view #tab-financeiro-conciliacao .card-body,
    #tab-equipamentos .card-body,
    body.force-mobile-view #tab-equipamentos .card-body,
    #tab-clientes .card-body,
    body.force-mobile-view #tab-clientes .card-body,
    #tab-tecnicos .card-body,
    body.force-mobile-view #tab-tecnicos .card-body,
    #tab-veiculos .card-body,
    body.force-mobile-view #tab-veiculos .card-body,
    #tab-descartes .card-body,
    body.force-mobile-view #tab-descartes .card-body,
    #tab-usuarios .card-body,
    body.force-mobile-view #tab-usuarios .card-body,
    #tab-empresa .card-body,
    body.force-mobile-view #tab-empresa .card-body,
    #tab-auditoria .card-body,
    body.force-mobile-view #tab-auditoria .card-body {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #tab-contratos .table-responsive,
    body.force-mobile-view #tab-contratos .table-responsive,
    #tab-os .table-responsive,
    body.force-mobile-view #tab-os .table-responsive,
    #tab-sla .table-responsive,
    body.force-mobile-view #tab-sla .table-responsive,
    #tab-logs .table-responsive,
    body.force-mobile-view #tab-logs .table-responsive,
    #tab-financeiro-receitas .table-responsive,
    body.force-mobile-view #tab-financeiro-receitas .table-responsive,
    #tab-financeiro-despesas .table-responsive,
    body.force-mobile-view #tab-financeiro-despesas .table-responsive,
    #tab-financeiro-conciliacao .table-responsive,
    body.force-mobile-view #tab-financeiro-conciliacao .table-responsive,
    #tab-equipamentos .table-responsive,
    body.force-mobile-view #tab-equipamentos .table-responsive,
    #tab-clientes .table-responsive,
    body.force-mobile-view #tab-clientes .table-responsive,
    #tab-tecnicos .table-responsive,
    body.force-mobile-view #tab-tecnicos .table-responsive,
    #tab-veiculos .table-responsive,
    body.force-mobile-view #tab-veiculos .table-responsive,
    #tab-descartes .table-responsive,
    body.force-mobile-view #tab-descartes .table-responsive,
    #tab-usuarios .table-responsive,
    body.force-mobile-view #tab-usuarios .table-responsive,
    #tab-empresa .table-responsive,
    body.force-mobile-view #tab-empresa .table-responsive,
    #tab-auditoria .table-responsive,
    body.force-mobile-view #tab-auditoria .table-responsive {
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #tab-contratos table,
    body.force-mobile-view #tab-contratos table,
    #tab-os table,
    body.force-mobile-view #tab-os table,
    #tab-sla table,
    body.force-mobile-view #tab-sla table,
    #tab-logs table,
    body.force-mobile-view #tab-logs table,
    #tab-financeiro-receitas table,
    body.force-mobile-view #tab-financeiro-receitas table,
    #tab-financeiro-despesas table,
    body.force-mobile-view #tab-financeiro-despesas table,
    #tab-financeiro-conciliacao table,
    body.force-mobile-view #tab-financeiro-conciliacao table,
    #tab-equipamentos table,
    body.force-mobile-view #tab-equipamentos table,
    #tab-clientes table,
    body.force-mobile-view #tab-clientes table,
    #tab-tecnicos table,
    body.force-mobile-view #tab-tecnicos table,
    #tab-veiculos table,
    body.force-mobile-view #tab-veiculos table,
    #tab-descartes table,
    body.force-mobile-view #tab-descartes table,
    #tab-usuarios table,
    body.force-mobile-view #tab-usuarios table,
    #tab-empresa table,
    body.force-mobile-view #tab-empresa table,
    #tab-auditoria table,
    body.force-mobile-view #tab-auditoria table,
    #tab-contratos table.custom-table,
    body.force-mobile-view #tab-contratos table.custom-table,
    #tab-os table.custom-table,
    body.force-mobile-view #tab-os table.custom-table,
    #tab-sla table.custom-table,
    body.force-mobile-view #tab-sla table.custom-table,
    #tab-logs table.custom-table,
    body.force-mobile-view #tab-logs table.custom-table,
    #tab-financeiro-receitas table.custom-table,
    body.force-mobile-view #tab-financeiro-receitas table.custom-table,
    #tab-financeiro-despesas table.custom-table,
    body.force-mobile-view #tab-financeiro-despesas table.custom-table,
    #tab-financeiro-conciliacao table.custom-table,
    body.force-mobile-view #tab-financeiro-conciliacao table.custom-table,
    #tab-equipamentos table.custom-table,
    body.force-mobile-view #tab-equipamentos table.custom-table,
    #tab-clientes table.custom-table,
    body.force-mobile-view #tab-clientes table.custom-table,
    #tab-tecnicos table.custom-table,
    body.force-mobile-view #tab-tecnicos table.custom-table,
    #tab-veiculos table.custom-table,
    body.force-mobile-view #tab-veiculos table.custom-table,
    #tab-descartes table.custom-table,
    body.force-mobile-view #tab-descartes table.custom-table,
    #tab-usuarios table.custom-table,
    body.force-mobile-view #tab-usuarios table.custom-table,
    #tab-empresa table.custom-table,
    body.force-mobile-view #tab-empresa table.custom-table,
    #tab-auditoria table.custom-table,
    body.force-mobile-view #tab-auditoria table.custom-table,
    #tab-contratos .custom-table,
    body.force-mobile-view #tab-contratos .custom-table,
    #tab-os .custom-table,
    body.force-mobile-view #tab-os .custom-table,
    #tab-sla .custom-table,
    body.force-mobile-view #tab-sla .custom-table,
    #tab-logs .custom-table,
    body.force-mobile-view #tab-logs .custom-table,
    #tab-financeiro-receitas .custom-table,
    body.force-mobile-view #tab-financeiro-receitas .custom-table,
    #tab-financeiro-despesas .custom-table,
    body.force-mobile-view #tab-financeiro-despesas .custom-table,
    #tab-financeiro-conciliacao .custom-table,
    body.force-mobile-view #tab-financeiro-conciliacao .custom-table,
    #tab-equipamentos .custom-table,
    body.force-mobile-view #tab-equipamentos .custom-table,
    #tab-clientes .custom-table,
    body.force-mobile-view #tab-clientes .custom-table,
    #tab-tecnicos .custom-table,
    body.force-mobile-view #tab-tecnicos .custom-table,
    #tab-veiculos .custom-table,
    body.force-mobile-view #tab-veiculos .custom-table,
    #tab-descartes .custom-table,
    body.force-mobile-view #tab-descartes .custom-table,
    #tab-usuarios .custom-table,
    body.force-mobile-view #tab-usuarios .custom-table,
    #tab-empresa .custom-table,
    body.force-mobile-view #tab-empresa .custom-table,
    #tab-auditoria .custom-table,
    body.force-mobile-view #tab-auditoria .custom-table {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        display: block !important;
        box-sizing: border-box !important;
        table-layout: fixed !important;
        border-collapse: separate !important;
    }

    #tab-contratos thead,
    body.force-mobile-view #tab-contratos thead,
    #tab-os thead,
    body.force-mobile-view #tab-os thead,
    #tab-sla thead,
    body.force-mobile-view #tab-sla thead,
    #tab-logs thead,
    body.force-mobile-view #tab-logs thead,
    #tab-financeiro-receitas thead,
    body.force-mobile-view #tab-financeiro-receitas thead,
    #tab-financeiro-despesas thead,
    body.force-mobile-view #tab-financeiro-despesas thead,
    #tab-financeiro-conciliacao thead,
    body.force-mobile-view #tab-financeiro-conciliacao thead,
    #tab-equipamentos thead,
    body.force-mobile-view #tab-equipamentos thead,
    #tab-clientes thead,
    body.force-mobile-view #tab-clientes thead,
    #tab-tecnicos thead,
    body.force-mobile-view #tab-tecnicos thead,
    #tab-veiculos thead,
    body.force-mobile-view #tab-veiculos thead,
    #tab-descartes thead,
    body.force-mobile-view #tab-descartes thead,
    #tab-usuarios thead,
    body.force-mobile-view #tab-usuarios thead,
    #tab-empresa thead,
    body.force-mobile-view #tab-empresa thead,
    #tab-auditoria thead,
    body.force-mobile-view #tab-auditoria thead,
    #tab-contratos .table-responsive thead,
    body.force-mobile-view #tab-contratos .table-responsive thead,
    #tab-os .table-responsive thead,
    body.force-mobile-view #tab-os .table-responsive thead,
    #tab-sla .table-responsive thead,
    body.force-mobile-view #tab-sla .table-responsive thead,
    #tab-logs .table-responsive thead,
    body.force-mobile-view #tab-logs .table-responsive thead,
    #tab-financeiro-receitas .table-responsive thead,
    body.force-mobile-view #tab-financeiro-receitas .table-responsive thead,
    #tab-financeiro-despesas .table-responsive thead,
    body.force-mobile-view #tab-financeiro-despesas .table-responsive thead,
    #tab-financeiro-conciliacao .table-responsive thead,
    body.force-mobile-view #tab-financeiro-conciliacao .table-responsive thead,
    #tab-equipamentos .table-responsive thead,
    body.force-mobile-view #tab-equipamentos .table-responsive thead,
    #tab-clientes .table-responsive thead,
    body.force-mobile-view #tab-clientes .table-responsive thead,
    #tab-tecnicos .table-responsive thead,
    body.force-mobile-view #tab-tecnicos .table-responsive thead,
    #tab-veiculos .table-responsive thead,
    body.force-mobile-view #tab-veiculos .table-responsive thead,
    #tab-descartes .table-responsive thead,
    body.force-mobile-view #tab-descartes .table-responsive thead,
    #tab-usuarios .table-responsive thead,
    body.force-mobile-view #tab-usuarios .table-responsive thead,
    #tab-empresa .table-responsive thead,
    body.force-mobile-view #tab-empresa .table-responsive thead,
    #tab-auditoria .table-responsive thead,
    body.force-mobile-view #tab-auditoria .table-responsive thead {
        display: none !important;
    }

    #tab-contratos tbody,
    body.force-mobile-view #tab-contratos tbody,
    #tab-os tbody,
    body.force-mobile-view #tab-os tbody,
    #tab-sla tbody,
    body.force-mobile-view #tab-sla tbody,
    #tab-logs tbody,
    body.force-mobile-view #tab-logs tbody,
    #tab-financeiro-receitas tbody,
    body.force-mobile-view #tab-financeiro-receitas tbody,
    #tab-financeiro-despesas tbody,
    body.force-mobile-view #tab-financeiro-despesas tbody,
    #tab-financeiro-conciliacao tbody,
    body.force-mobile-view #tab-financeiro-conciliacao tbody,
    #tab-equipamentos tbody,
    body.force-mobile-view #tab-equipamentos tbody,
    #tab-clientes tbody,
    body.force-mobile-view #tab-clientes tbody,
    #tab-tecnicos tbody,
    body.force-mobile-view #tab-tecnicos tbody,
    #tab-veiculos tbody,
    body.force-mobile-view #tab-veiculos tbody,
    #tab-descartes tbody,
    body.force-mobile-view #tab-descartes tbody,
    #tab-usuarios tbody,
    body.force-mobile-view #tab-usuarios tbody,
    #tab-empresa tbody,
    body.force-mobile-view #tab-empresa tbody,
    #tab-auditoria tbody,
    body.force-mobile-view #tab-auditoria tbody,
    #tab-contratos .table-responsive tbody,
    body.force-mobile-view #tab-contratos .table-responsive tbody,
    #tab-os .table-responsive tbody,
    body.force-mobile-view #tab-os .table-responsive tbody,
    #tab-sla .table-responsive tbody,
    body.force-mobile-view #tab-sla .table-responsive tbody,
    #tab-logs .table-responsive tbody,
    body.force-mobile-view #tab-logs .table-responsive tbody,
    #tab-financeiro-receitas .table-responsive tbody,
    body.force-mobile-view #tab-financeiro-receitas .table-responsive tbody,
    #tab-financeiro-despesas .table-responsive tbody,
    body.force-mobile-view #tab-financeiro-despesas .table-responsive tbody,
    #tab-financeiro-conciliacao .table-responsive tbody,
    body.force-mobile-view #tab-financeiro-conciliacao .table-responsive tbody,
    #tab-equipamentos .table-responsive tbody,
    body.force-mobile-view #tab-equipamentos .table-responsive tbody,
    #tab-clientes .table-responsive tbody,
    body.force-mobile-view #tab-clientes .table-responsive tbody,
    #tab-tecnicos .table-responsive tbody,
    body.force-mobile-view #tab-tecnicos .table-responsive tbody,
    #tab-veiculos .table-responsive tbody,
    body.force-mobile-view #tab-veiculos .table-responsive tbody,
    #tab-descartes .table-responsive tbody,
    body.force-mobile-view #tab-descartes .table-responsive tbody,
    #tab-usuarios .table-responsive tbody,
    body.force-mobile-view #tab-usuarios .table-responsive tbody,
    #tab-empresa .table-responsive tbody,
    body.force-mobile-view #tab-empresa .table-responsive tbody,
    #tab-auditoria .table-responsive tbody,
    body.force-mobile-view #tab-auditoria .table-responsive tbody {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    #tab-contratos .table-responsive tbody tr,
    body.force-mobile-view #tab-contratos .table-responsive tbody tr,
    #tab-os .table-responsive tbody tr,
    body.force-mobile-view #tab-os .table-responsive tbody tr,
    #tab-sla .table-responsive tbody tr,
    body.force-mobile-view #tab-sla .table-responsive tbody tr,
    #tab-logs .table-responsive tbody tr,
    body.force-mobile-view #tab-logs .table-responsive tbody tr,
    #tab-financeiro-receitas .table-responsive tbody tr,
    body.force-mobile-view #tab-financeiro-receitas .table-responsive tbody tr,
    #tab-financeiro-despesas .table-responsive tbody tr,
    body.force-mobile-view #tab-financeiro-despesas .table-responsive tbody tr,
    #tab-financeiro-conciliacao .table-responsive tbody tr,
    body.force-mobile-view #tab-financeiro-conciliacao .table-responsive tbody tr,
    #tab-equipamentos .table-responsive tbody tr,
    body.force-mobile-view #tab-equipamentos .table-responsive tbody tr,
    #tab-clientes .table-responsive tbody tr,
    body.force-mobile-view #tab-clientes .table-responsive tbody tr,
    #tab-tecnicos .table-responsive tbody tr,
    body.force-mobile-view #tab-tecnicos .table-responsive tbody tr,
    #tab-veiculos .table-responsive tbody tr,
    body.force-mobile-view #tab-veiculos .table-responsive tbody tr,
    #tab-descartes .table-responsive tbody tr,
    body.force-mobile-view #tab-descartes .table-responsive tbody tr,
    #tab-usuarios .table-responsive tbody tr,
    body.force-mobile-view #tab-usuarios .table-responsive tbody tr,
    #tab-empresa .table-responsive tbody tr,
    body.force-mobile-view #tab-empresa .table-responsive tbody tr,
    #tab-auditoria .table-responsive tbody tr,
    body.force-mobile-view #tab-auditoria .table-responsive tbody tr,
    #tab-contratos .custom-table tbody tr,
    body.force-mobile-view #tab-contratos .custom-table tbody tr,
    #tab-os .custom-table tbody tr,
    body.force-mobile-view #tab-os .custom-table tbody tr,
    #tab-sla .custom-table tbody tr,
    body.force-mobile-view #tab-sla .custom-table tbody tr,
    #tab-logs .custom-table tbody tr,
    body.force-mobile-view #tab-logs .custom-table tbody tr,
    #tab-financeiro-receitas .custom-table tbody tr,
    body.force-mobile-view #tab-financeiro-receitas .custom-table tbody tr,
    #tab-financeiro-despesas .custom-table tbody tr,
    body.force-mobile-view #tab-financeiro-despesas .custom-table tbody tr,
    #tab-financeiro-conciliacao .custom-table tbody tr,
    body.force-mobile-view #tab-financeiro-conciliacao .custom-table tbody tr,
    #tab-equipamentos .custom-table tbody tr,
    body.force-mobile-view #tab-equipamentos .custom-table tbody tr,
    #tab-clientes .custom-table tbody tr,
    body.force-mobile-view #tab-clientes .custom-table tbody tr,
    #tab-tecnicos .custom-table tbody tr,
    body.force-mobile-view #tab-tecnicos .custom-table tbody tr,
    #tab-veiculos .custom-table tbody tr,
    body.force-mobile-view #tab-veiculos .custom-table tbody tr,
    #tab-descartes .custom-table tbody tr,
    body.force-mobile-view #tab-descartes .custom-table tbody tr,
    #tab-usuarios .custom-table tbody tr,
    body.force-mobile-view #tab-usuarios .custom-table tbody tr,
    #tab-empresa .custom-table tbody tr,
    body.force-mobile-view #tab-empresa .custom-table tbody tr,
    #tab-auditoria .custom-table tbody tr,
    body.force-mobile-view #tab-auditoria .custom-table tbody tr {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        background: rgba(15, 23, 42, 0.92) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(0, 229, 230, 0.28) !important;
        border-radius: 12px !important;
        padding: 12px 14px !important;
        margin-bottom: 12px !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45) !important;
        overflow: hidden !important;
    }

    #tab-contratos .table-responsive td,
    body.force-mobile-view #tab-contratos .table-responsive td,
    #tab-os .table-responsive td,
    body.force-mobile-view #tab-os .table-responsive td,
    #tab-sla .table-responsive td,
    body.force-mobile-view #tab-sla .table-responsive td,
    #tab-logs .table-responsive td,
    body.force-mobile-view #tab-logs .table-responsive td,
    #tab-financeiro-receitas .table-responsive td,
    body.force-mobile-view #tab-financeiro-receitas .table-responsive td,
    #tab-financeiro-despesas .table-responsive td,
    body.force-mobile-view #tab-financeiro-despesas .table-responsive td,
    #tab-financeiro-conciliacao .table-responsive td,
    body.force-mobile-view #tab-financeiro-conciliacao .table-responsive td,
    #tab-equipamentos .table-responsive td,
    body.force-mobile-view #tab-equipamentos .table-responsive td,
    #tab-clientes .table-responsive td,
    body.force-mobile-view #tab-clientes .table-responsive td,
    #tab-tecnicos .table-responsive td,
    body.force-mobile-view #tab-tecnicos .table-responsive td,
    #tab-veiculos .table-responsive td,
    body.force-mobile-view #tab-veiculos .table-responsive td,
    #tab-descartes .table-responsive td,
    body.force-mobile-view #tab-descartes .table-responsive td,
    #tab-usuarios .table-responsive td,
    body.force-mobile-view #tab-usuarios .table-responsive td,
    #tab-empresa .table-responsive td,
    body.force-mobile-view #tab-empresa .table-responsive td,
    #tab-auditoria .table-responsive td,
    body.force-mobile-view #tab-auditoria .table-responsive td,
    #tab-contratos .custom-table td,
    body.force-mobile-view #tab-contratos .custom-table td,
    #tab-os .custom-table td,
    body.force-mobile-view #tab-os .custom-table td,
    #tab-sla .custom-table td,
    body.force-mobile-view #tab-sla .custom-table td,
    #tab-logs .custom-table td,
    body.force-mobile-view #tab-logs .custom-table td,
    #tab-financeiro-receitas .custom-table td,
    body.force-mobile-view #tab-financeiro-receitas .custom-table td,
    #tab-financeiro-despesas .custom-table td,
    body.force-mobile-view #tab-financeiro-despesas .custom-table td,
    #tab-financeiro-conciliacao .custom-table td,
    body.force-mobile-view #tab-financeiro-conciliacao .custom-table td,
    #tab-equipamentos .custom-table td,
    body.force-mobile-view #tab-equipamentos .custom-table td,
    #tab-clientes .custom-table td,
    body.force-mobile-view #tab-clientes .custom-table td,
    #tab-tecnicos .custom-table td,
    body.force-mobile-view #tab-tecnicos .custom-table td,
    #tab-veiculos .custom-table td,
    body.force-mobile-view #tab-veiculos .custom-table td,
    #tab-descartes .custom-table td,
    body.force-mobile-view #tab-descartes .custom-table td,
    #tab-usuarios .custom-table td,
    body.force-mobile-view #tab-usuarios .custom-table td,
    #tab-empresa .custom-table td,
    body.force-mobile-view #tab-empresa .custom-table td,
    #tab-auditoria .custom-table td,
    body.force-mobile-view #tab-auditoria .custom-table td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 0 !important;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.08) !important;
        text-align: right !important;
        font-size: 11.5px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    #tab-contratos .table-responsive td::before,
    body.force-mobile-view #tab-contratos .table-responsive td::before,
    #tab-os .table-responsive td::before,
    body.force-mobile-view #tab-os .table-responsive td::before,
    #tab-sla .table-responsive td::before,
    body.force-mobile-view #tab-sla .table-responsive td::before,
    #tab-logs .table-responsive td::before,
    body.force-mobile-view #tab-logs .table-responsive td::before,
    #tab-financeiro-receitas .table-responsive td::before,
    body.force-mobile-view #tab-financeiro-receitas .table-responsive td::before,
    #tab-financeiro-despesas .table-responsive td::before,
    body.force-mobile-view #tab-financeiro-despesas .table-responsive td::before,
    #tab-financeiro-conciliacao .table-responsive td::before,
    body.force-mobile-view #tab-financeiro-conciliacao .table-responsive td::before,
    #tab-equipamentos .table-responsive td::before,
    body.force-mobile-view #tab-equipamentos .table-responsive td::before,
    #tab-clientes .table-responsive td::before,
    body.force-mobile-view #tab-clientes .table-responsive td::before,
    #tab-tecnicos .table-responsive td::before,
    body.force-mobile-view #tab-tecnicos .table-responsive td::before,
    #tab-veiculos .table-responsive td::before,
    body.force-mobile-view #tab-veiculos .table-responsive td::before,
    #tab-descartes .table-responsive td::before,
    body.force-mobile-view #tab-descartes .table-responsive td::before,
    #tab-usuarios .table-responsive td::before,
    body.force-mobile-view #tab-usuarios .table-responsive td::before,
    #tab-empresa .table-responsive td::before,
    body.force-mobile-view #tab-empresa .table-responsive td::before,
    #tab-auditoria .table-responsive td::before,
    body.force-mobile-view #tab-auditoria .table-responsive td::before,
    #tab-contratos .custom-table td::before,
    body.force-mobile-view #tab-contratos .custom-table td::before,
    #tab-os .custom-table td::before,
    body.force-mobile-view #tab-os .custom-table td::before,
    #tab-sla .custom-table td::before,
    body.force-mobile-view #tab-sla .custom-table td::before,
    #tab-logs .custom-table td::before,
    body.force-mobile-view #tab-logs .custom-table td::before,
    #tab-financeiro-receitas .custom-table td::before,
    body.force-mobile-view #tab-financeiro-receitas .custom-table td::before,
    #tab-financeiro-despesas .custom-table td::before,
    body.force-mobile-view #tab-financeiro-despesas .custom-table td::before,
    #tab-financeiro-conciliacao .custom-table td::before,
    body.force-mobile-view #tab-financeiro-conciliacao .custom-table td::before,
    #tab-equipamentos .custom-table td::before,
    body.force-mobile-view #tab-equipamentos .custom-table td::before,
    #tab-clientes .custom-table td::before,
    body.force-mobile-view #tab-clientes .custom-table td::before,
    #tab-tecnicos .custom-table td::before,
    body.force-mobile-view #tab-tecnicos .custom-table td::before,
    #tab-veiculos .custom-table td::before,
    body.force-mobile-view #tab-veiculos .custom-table td::before,
    #tab-descartes .custom-table td::before,
    body.force-mobile-view #tab-descartes .custom-table td::before,
    #tab-usuarios .custom-table td::before,
    body.force-mobile-view #tab-usuarios .custom-table td::before,
    #tab-empresa .custom-table td::before,
    body.force-mobile-view #tab-empresa .custom-table td::before,
    #tab-auditoria .custom-table td::before,
    body.force-mobile-view #tab-auditoria .custom-table td::before {
        font-weight: 700 !important;
        color: var(--color-text-secondary, #94a3b8) !important;
        font-size: 10.5px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        text-align: left !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        margin-right: 12px !important;
        max-width: 130px !important;
    }

    #tab-contratos .table-responsive td > *:not(::before),
    body.force-mobile-view #tab-contratos .table-responsive td > *:not(::before),
    #tab-os .table-responsive td > *:not(::before),
    body.force-mobile-view #tab-os .table-responsive td > *:not(::before),
    #tab-sla .table-responsive td > *:not(::before),
    body.force-mobile-view #tab-sla .table-responsive td > *:not(::before),
    #tab-logs .table-responsive td > *:not(::before),
    body.force-mobile-view #tab-logs .table-responsive td > *:not(::before),
    #tab-financeiro-receitas .table-responsive td > *:not(::before),
    body.force-mobile-view #tab-financeiro-receitas .table-responsive td > *:not(::before),
    #tab-financeiro-despesas .table-responsive td > *:not(::before),
    body.force-mobile-view #tab-financeiro-despesas .table-responsive td > *:not(::before),
    #tab-financeiro-conciliacao .table-responsive td > *:not(::before),
    body.force-mobile-view #tab-financeiro-conciliacao .table-responsive td > *:not(::before),
    #tab-equipamentos .table-responsive td > *:not(::before),
    body.force-mobile-view #tab-equipamentos .table-responsive td > *:not(::before),
    #tab-clientes .table-responsive td > *:not(::before),
    body.force-mobile-view #tab-clientes .table-responsive td > *:not(::before),
    #tab-tecnicos .table-responsive td > *:not(::before),
    body.force-mobile-view #tab-tecnicos .table-responsive td > *:not(::before),
    #tab-veiculos .table-responsive td > *:not(::before),
    body.force-mobile-view #tab-veiculos .table-responsive td > *:not(::before),
    #tab-descartes .table-responsive td > *:not(::before),
    body.force-mobile-view #tab-descartes .table-responsive td > *:not(::before),
    #tab-usuarios .table-responsive td > *:not(::before),
    body.force-mobile-view #tab-usuarios .table-responsive td > *:not(::before),
    #tab-empresa .table-responsive td > *:not(::before),
    body.force-mobile-view #tab-empresa .table-responsive td > *:not(::before),
    #tab-auditoria .table-responsive td > *:not(::before),
    body.force-mobile-view #tab-auditoria .table-responsive td > *:not(::before),
    #tab-contratos .custom-table td > *:not(::before),
    body.force-mobile-view #tab-contratos .custom-table td > *:not(::before),
    #tab-os .custom-table td > *:not(::before),
    body.force-mobile-view #tab-os .custom-table td > *:not(::before),
    #tab-sla .custom-table td > *:not(::before),
    body.force-mobile-view #tab-sla .custom-table td > *:not(::before),
    #tab-logs .custom-table td > *:not(::before),
    body.force-mobile-view #tab-logs .custom-table td > *:not(::before),
    #tab-financeiro-receitas .custom-table td > *:not(::before),
    body.force-mobile-view #tab-financeiro-receitas .custom-table td > *:not(::before),
    #tab-financeiro-despesas .custom-table td > *:not(::before),
    body.force-mobile-view #tab-financeiro-despesas .custom-table td > *:not(::before),
    #tab-financeiro-conciliacao .custom-table td > *:not(::before),
    body.force-mobile-view #tab-financeiro-conciliacao .custom-table td > *:not(::before),
    #tab-equipamentos .custom-table td > *:not(::before),
    body.force-mobile-view #tab-equipamentos .custom-table td > *:not(::before),
    #tab-clientes .custom-table td > *:not(::before),
    body.force-mobile-view #tab-clientes .custom-table td > *:not(::before),
    #tab-tecnicos .custom-table td > *:not(::before),
    body.force-mobile-view #tab-tecnicos .custom-table td > *:not(::before),
    #tab-veiculos .custom-table td > *:not(::before),
    body.force-mobile-view #tab-veiculos .custom-table td > *:not(::before),
    #tab-descartes .custom-table td > *:not(::before),
    body.force-mobile-view #tab-descartes .custom-table td > *:not(::before),
    #tab-usuarios .custom-table td > *:not(::before),
    body.force-mobile-view #tab-usuarios .custom-table td > *:not(::before),
    #tab-empresa .custom-table td > *:not(::before),
    body.force-mobile-view #tab-empresa .custom-table td > *:not(::before),
    #tab-auditoria .custom-table td > *:not(::before),
    body.force-mobile-view #tab-auditoria .custom-table td > *:not(::before) {
        max-width: calc(100% - 130px) !important;
        text-align: right !important;
        word-break: break-word !important;
        white-space: normal !important;
    }

    #tab-contratos .table-responsive td:last-child,
    body.force-mobile-view #tab-contratos .table-responsive td:last-child,
    #tab-os .table-responsive td:last-child,
    body.force-mobile-view #tab-os .table-responsive td:last-child,
    #tab-sla .table-responsive td:last-child,
    body.force-mobile-view #tab-sla .table-responsive td:last-child,
    #tab-logs .table-responsive td:last-child,
    body.force-mobile-view #tab-logs .table-responsive td:last-child,
    #tab-financeiro-receitas .table-responsive td:last-child,
    body.force-mobile-view #tab-financeiro-receitas .table-responsive td:last-child,
    #tab-financeiro-despesas .table-responsive td:last-child,
    body.force-mobile-view #tab-financeiro-despesas .table-responsive td:last-child,
    #tab-financeiro-conciliacao .table-responsive td:last-child,
    body.force-mobile-view #tab-financeiro-conciliacao .table-responsive td:last-child,
    #tab-equipamentos .table-responsive td:last-child,
    body.force-mobile-view #tab-equipamentos .table-responsive td:last-child,
    #tab-clientes .table-responsive td:last-child,
    body.force-mobile-view #tab-clientes .table-responsive td:last-child,
    #tab-tecnicos .table-responsive td:last-child,
    body.force-mobile-view #tab-tecnicos .table-responsive td:last-child,
    #tab-veiculos .table-responsive td:last-child,
    body.force-mobile-view #tab-veiculos .table-responsive td:last-child,
    #tab-descartes .table-responsive td:last-child,
    body.force-mobile-view #tab-descartes .table-responsive td:last-child,
    #tab-usuarios .table-responsive td:last-child,
    body.force-mobile-view #tab-usuarios .table-responsive td:last-child,
    #tab-empresa .table-responsive td:last-child,
    body.force-mobile-view #tab-empresa .table-responsive td:last-child,
    #tab-auditoria .table-responsive td:last-child,
    body.force-mobile-view #tab-auditoria .table-responsive td:last-child,
    #tab-contratos .custom-table td:last-child,
    body.force-mobile-view #tab-contratos .custom-table td:last-child,
    #tab-os .custom-table td:last-child,
    body.force-mobile-view #tab-os .custom-table td:last-child,
    #tab-sla .custom-table td:last-child,
    body.force-mobile-view #tab-sla .custom-table td:last-child,
    #tab-logs .custom-table td:last-child,
    body.force-mobile-view #tab-logs .custom-table td:last-child,
    #tab-financeiro-receitas .custom-table td:last-child,
    body.force-mobile-view #tab-financeiro-receitas .custom-table td:last-child,
    #tab-financeiro-despesas .custom-table td:last-child,
    body.force-mobile-view #tab-financeiro-despesas .custom-table td:last-child,
    #tab-financeiro-conciliacao .custom-table td:last-child,
    body.force-mobile-view #tab-financeiro-conciliacao .custom-table td:last-child,
    #tab-equipamentos .custom-table td:last-child,
    body.force-mobile-view #tab-equipamentos .custom-table td:last-child,
    #tab-clientes .custom-table td:last-child,
    body.force-mobile-view #tab-clientes .custom-table td:last-child,
    #tab-tecnicos .custom-table td:last-child,
    body.force-mobile-view #tab-tecnicos .custom-table td:last-child,
    #tab-veiculos .custom-table td:last-child,
    body.force-mobile-view #tab-veiculos .custom-table td:last-child,
    #tab-descartes .custom-table td:last-child,
    body.force-mobile-view #tab-descartes .custom-table td:last-child,
    #tab-usuarios .custom-table td:last-child,
    body.force-mobile-view #tab-usuarios .custom-table td:last-child,
    #tab-empresa .custom-table td:last-child,
    body.force-mobile-view #tab-empresa .custom-table td:last-child,
    #tab-auditoria .custom-table td:last-child,
    body.force-mobile-view #tab-auditoria .custom-table td:last-child {
        border-bottom: none !important;
        padding-top: 10px !important;
        padding-bottom: 2px !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    #tab-contratos .table-responsive td:last-child > div,
    body.force-mobile-view #tab-contratos .table-responsive td:last-child > div,
    #tab-os .table-responsive td:last-child > div,
    body.force-mobile-view #tab-os .table-responsive td:last-child > div,
    #tab-sla .table-responsive td:last-child > div,
    body.force-mobile-view #tab-sla .table-responsive td:last-child > div,
    #tab-logs .table-responsive td:last-child > div,
    body.force-mobile-view #tab-logs .table-responsive td:last-child > div,
    #tab-financeiro-receitas .table-responsive td:last-child > div,
    body.force-mobile-view #tab-financeiro-receitas .table-responsive td:last-child > div,
    #tab-financeiro-despesas .table-responsive td:last-child > div,
    body.force-mobile-view #tab-financeiro-despesas .table-responsive td:last-child > div,
    #tab-financeiro-conciliacao .table-responsive td:last-child > div,
    body.force-mobile-view #tab-financeiro-conciliacao .table-responsive td:last-child > div,
    #tab-equipamentos .table-responsive td:last-child > div,
    body.force-mobile-view #tab-equipamentos .table-responsive td:last-child > div,
    #tab-clientes .table-responsive td:last-child > div,
    body.force-mobile-view #tab-clientes .table-responsive td:last-child > div,
    #tab-tecnicos .table-responsive td:last-child > div,
    body.force-mobile-view #tab-tecnicos .table-responsive td:last-child > div,
    #tab-veiculos .table-responsive td:last-child > div,
    body.force-mobile-view #tab-veiculos .table-responsive td:last-child > div,
    #tab-descartes .table-responsive td:last-child > div,
    body.force-mobile-view #tab-descartes .table-responsive td:last-child > div,
    #tab-usuarios .table-responsive td:last-child > div,
    body.force-mobile-view #tab-usuarios .table-responsive td:last-child > div,
    #tab-empresa .table-responsive td:last-child > div,
    body.force-mobile-view #tab-empresa .table-responsive td:last-child > div,
    #tab-auditoria .table-responsive td:last-child > div,
    body.force-mobile-view #tab-auditoria .table-responsive td:last-child > div,
    #tab-contratos .custom-table td:last-child > div,
    body.force-mobile-view #tab-contratos .custom-table td:last-child > div,
    #tab-os .custom-table td:last-child > div,
    body.force-mobile-view #tab-os .custom-table td:last-child > div,
    #tab-sla .custom-table td:last-child > div,
    body.force-mobile-view #tab-sla .custom-table td:last-child > div,
    #tab-logs .custom-table td:last-child > div,
    body.force-mobile-view #tab-logs .custom-table td:last-child > div,
    #tab-financeiro-receitas .custom-table td:last-child > div,
    body.force-mobile-view #tab-financeiro-receitas .custom-table td:last-child > div,
    #tab-financeiro-despesas .custom-table td:last-child > div,
    body.force-mobile-view #tab-financeiro-despesas .custom-table td:last-child > div,
    #tab-financeiro-conciliacao .custom-table td:last-child > div,
    body.force-mobile-view #tab-financeiro-conciliacao .custom-table td:last-child > div,
    #tab-equipamentos .custom-table td:last-child > div,
    body.force-mobile-view #tab-equipamentos .custom-table td:last-child > div,
    #tab-clientes .custom-table td:last-child > div,
    body.force-mobile-view #tab-clientes .custom-table td:last-child > div,
    #tab-tecnicos .custom-table td:last-child > div,
    body.force-mobile-view #tab-tecnicos .custom-table td:last-child > div,
    #tab-veiculos .custom-table td:last-child > div,
    body.force-mobile-view #tab-veiculos .custom-table td:last-child > div,
    #tab-descartes .custom-table td:last-child > div,
    body.force-mobile-view #tab-descartes .custom-table td:last-child > div,
    #tab-usuarios .custom-table td:last-child > div,
    body.force-mobile-view #tab-usuarios .custom-table td:last-child > div,
    #tab-empresa .custom-table td:last-child > div,
    body.force-mobile-view #tab-empresa .custom-table td:last-child > div,
    #tab-auditoria .custom-table td:last-child > div,
    body.force-mobile-view #tab-auditoria .custom-table td:last-child > div {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        max-width: 100% !important;
    }

    #tab-contratos .pane-header > div:last-child,
    body.force-mobile-view #tab-contratos .pane-header > div:last-child,
    #tab-os .pane-header > div:last-child,
    body.force-mobile-view #tab-os .pane-header > div:last-child,
    #tab-sla .pane-header > div:last-child,
    body.force-mobile-view #tab-sla .pane-header > div:last-child,
    #tab-logs .pane-header > div:last-child,
    body.force-mobile-view #tab-logs .pane-header > div:last-child,
    #tab-financeiro-receitas .pane-header > div:last-child,
    body.force-mobile-view #tab-financeiro-receitas .pane-header > div:last-child,
    #tab-financeiro-despesas .pane-header > div:last-child,
    body.force-mobile-view #tab-financeiro-despesas .pane-header > div:last-child,
    #tab-financeiro-conciliacao .pane-header > div:last-child,
    body.force-mobile-view #tab-financeiro-conciliacao .pane-header > div:last-child,
    #tab-equipamentos .pane-header > div:last-child,
    body.force-mobile-view #tab-equipamentos .pane-header > div:last-child,
    #tab-clientes .pane-header > div:last-child,
    body.force-mobile-view #tab-clientes .pane-header > div:last-child,
    #tab-tecnicos .pane-header > div:last-child,
    body.force-mobile-view #tab-tecnicos .pane-header > div:last-child,
    #tab-veiculos .pane-header > div:last-child,
    body.force-mobile-view #tab-veiculos .pane-header > div:last-child,
    #tab-descartes .pane-header > div:last-child,
    body.force-mobile-view #tab-descartes .pane-header > div:last-child,
    #tab-usuarios .pane-header > div:last-child,
    body.force-mobile-view #tab-usuarios .pane-header > div:last-child,
    #tab-empresa .pane-header > div:last-child,
    body.force-mobile-view #tab-empresa .pane-header > div:last-child,
    #tab-auditoria .pane-header > div:last-child,
    body.force-mobile-view #tab-auditoria .pane-header > div:last-child,
    #tab-contratos .pane-header .header-actions,
    body.force-mobile-view #tab-contratos .pane-header .header-actions,
    #tab-os .pane-header .header-actions,
    body.force-mobile-view #tab-os .pane-header .header-actions,
    #tab-sla .pane-header .header-actions,
    body.force-mobile-view #tab-sla .pane-header .header-actions,
    #tab-logs .pane-header .header-actions,
    body.force-mobile-view #tab-logs .pane-header .header-actions,
    #tab-financeiro-receitas .pane-header .header-actions,
    body.force-mobile-view #tab-financeiro-receitas .pane-header .header-actions,
    #tab-financeiro-despesas .pane-header .header-actions,
    body.force-mobile-view #tab-financeiro-despesas .pane-header .header-actions,
    #tab-financeiro-conciliacao .pane-header .header-actions,
    body.force-mobile-view #tab-financeiro-conciliacao .pane-header .header-actions,
    #tab-equipamentos .pane-header .header-actions,
    body.force-mobile-view #tab-equipamentos .pane-header .header-actions,
    #tab-clientes .pane-header .header-actions,
    body.force-mobile-view #tab-clientes .pane-header .header-actions,
    #tab-tecnicos .pane-header .header-actions,
    body.force-mobile-view #tab-tecnicos .pane-header .header-actions,
    #tab-veiculos .pane-header .header-actions,
    body.force-mobile-view #tab-veiculos .pane-header .header-actions,
    #tab-descartes .pane-header .header-actions,
    body.force-mobile-view #tab-descartes .pane-header .header-actions,
    #tab-usuarios .pane-header .header-actions,
    body.force-mobile-view #tab-usuarios .pane-header .header-actions,
    #tab-empresa .pane-header .header-actions,
    body.force-mobile-view #tab-empresa .pane-header .header-actions,
    #tab-auditoria .pane-header .header-actions,
    body.force-mobile-view #tab-auditoria .pane-header .header-actions,
    #tab-contratos .card-header > div:last-child,
    body.force-mobile-view #tab-contratos .card-header > div:last-child,
    #tab-os .card-header > div:last-child,
    body.force-mobile-view #tab-os .card-header > div:last-child,
    #tab-sla .card-header > div:last-child,
    body.force-mobile-view #tab-sla .card-header > div:last-child,
    #tab-logs .card-header > div:last-child,
    body.force-mobile-view #tab-logs .card-header > div:last-child,
    #tab-financeiro-receitas .card-header > div:last-child,
    body.force-mobile-view #tab-financeiro-receitas .card-header > div:last-child,
    #tab-financeiro-despesas .card-header > div:last-child,
    body.force-mobile-view #tab-financeiro-despesas .card-header > div:last-child,
    #tab-financeiro-conciliacao .card-header > div:last-child,
    body.force-mobile-view #tab-financeiro-conciliacao .card-header > div:last-child,
    #tab-equipamentos .card-header > div:last-child,
    body.force-mobile-view #tab-equipamentos .card-header > div:last-child,
    #tab-clientes .card-header > div:last-child,
    body.force-mobile-view #tab-clientes .card-header > div:last-child,
    #tab-tecnicos .card-header > div:last-child,
    body.force-mobile-view #tab-tecnicos .card-header > div:last-child,
    #tab-veiculos .card-header > div:last-child,
    body.force-mobile-view #tab-veiculos .card-header > div:last-child,
    #tab-descartes .card-header > div:last-child,
    body.force-mobile-view #tab-descartes .card-header > div:last-child,
    #tab-usuarios .card-header > div:last-child,
    body.force-mobile-view #tab-usuarios .card-header > div:last-child,
    #tab-empresa .card-header > div:last-child,
    body.force-mobile-view #tab-empresa .card-header > div:last-child,
    #tab-auditoria .card-header > div:last-child,
    body.force-mobile-view #tab-auditoria .card-header > div:last-child {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
        margin-top: 6px !important;
    }

    #tab-contratos .pane-header > div:last-child button,
    body.force-mobile-view #tab-contratos .pane-header > div:last-child button,
    #tab-os .pane-header > div:last-child button,
    body.force-mobile-view #tab-os .pane-header > div:last-child button,
    #tab-sla .pane-header > div:last-child button,
    body.force-mobile-view #tab-sla .pane-header > div:last-child button,
    #tab-logs .pane-header > div:last-child button,
    body.force-mobile-view #tab-logs .pane-header > div:last-child button,
    #tab-financeiro-receitas .pane-header > div:last-child button,
    body.force-mobile-view #tab-financeiro-receitas .pane-header > div:last-child button,
    #tab-financeiro-despesas .pane-header > div:last-child button,
    body.force-mobile-view #tab-financeiro-despesas .pane-header > div:last-child button,
    #tab-financeiro-conciliacao .pane-header > div:last-child button,
    body.force-mobile-view #tab-financeiro-conciliacao .pane-header > div:last-child button,
    #tab-equipamentos .pane-header > div:last-child button,
    body.force-mobile-view #tab-equipamentos .pane-header > div:last-child button,
    #tab-clientes .pane-header > div:last-child button,
    body.force-mobile-view #tab-clientes .pane-header > div:last-child button,
    #tab-tecnicos .pane-header > div:last-child button,
    body.force-mobile-view #tab-tecnicos .pane-header > div:last-child button,
    #tab-veiculos .pane-header > div:last-child button,
    body.force-mobile-view #tab-veiculos .pane-header > div:last-child button,
    #tab-descartes .pane-header > div:last-child button,
    body.force-mobile-view #tab-descartes .pane-header > div:last-child button,
    #tab-usuarios .pane-header > div:last-child button,
    body.force-mobile-view #tab-usuarios .pane-header > div:last-child button,
    #tab-empresa .pane-header > div:last-child button,
    body.force-mobile-view #tab-empresa .pane-header > div:last-child button,
    #tab-auditoria .pane-header > div:last-child button,
    body.force-mobile-view #tab-auditoria .pane-header > div:last-child button,
    #tab-contratos .pane-header > div:last-child .btn,
    body.force-mobile-view #tab-contratos .pane-header > div:last-child .btn,
    #tab-os .pane-header > div:last-child .btn,
    body.force-mobile-view #tab-os .pane-header > div:last-child .btn,
    #tab-sla .pane-header > div:last-child .btn,
    body.force-mobile-view #tab-sla .pane-header > div:last-child .btn,
    #tab-logs .pane-header > div:last-child .btn,
    body.force-mobile-view #tab-logs .pane-header > div:last-child .btn,
    #tab-financeiro-receitas .pane-header > div:last-child .btn,
    body.force-mobile-view #tab-financeiro-receitas .pane-header > div:last-child .btn,
    #tab-financeiro-despesas .pane-header > div:last-child .btn,
    body.force-mobile-view #tab-financeiro-despesas .pane-header > div:last-child .btn,
    #tab-financeiro-conciliacao .pane-header > div:last-child .btn,
    body.force-mobile-view #tab-financeiro-conciliacao .pane-header > div:last-child .btn,
    #tab-equipamentos .pane-header > div:last-child .btn,
    body.force-mobile-view #tab-equipamentos .pane-header > div:last-child .btn,
    #tab-clientes .pane-header > div:last-child .btn,
    body.force-mobile-view #tab-clientes .pane-header > div:last-child .btn,
    #tab-tecnicos .pane-header > div:last-child .btn,
    body.force-mobile-view #tab-tecnicos .pane-header > div:last-child .btn,
    #tab-veiculos .pane-header > div:last-child .btn,
    body.force-mobile-view #tab-veiculos .pane-header > div:last-child .btn,
    #tab-descartes .pane-header > div:last-child .btn,
    body.force-mobile-view #tab-descartes .pane-header > div:last-child .btn,
    #tab-usuarios .pane-header > div:last-child .btn,
    body.force-mobile-view #tab-usuarios .pane-header > div:last-child .btn,
    #tab-empresa .pane-header > div:last-child .btn,
    body.force-mobile-view #tab-empresa .pane-header > div:last-child .btn,
    #tab-auditoria .pane-header > div:last-child .btn,
    body.force-mobile-view #tab-auditoria .pane-header > div:last-child .btn,
    #tab-contratos .pane-header .header-actions .btn,
    body.force-mobile-view #tab-contratos .pane-header .header-actions .btn,
    #tab-os .pane-header .header-actions .btn,
    body.force-mobile-view #tab-os .pane-header .header-actions .btn,
    #tab-sla .pane-header .header-actions .btn,
    body.force-mobile-view #tab-sla .pane-header .header-actions .btn,
    #tab-logs .pane-header .header-actions .btn,
    body.force-mobile-view #tab-logs .pane-header .header-actions .btn,
    #tab-financeiro-receitas .pane-header .header-actions .btn,
    body.force-mobile-view #tab-financeiro-receitas .pane-header .header-actions .btn,
    #tab-financeiro-despesas .pane-header .header-actions .btn,
    body.force-mobile-view #tab-financeiro-despesas .pane-header .header-actions .btn,
    #tab-financeiro-conciliacao .pane-header .header-actions .btn,
    body.force-mobile-view #tab-financeiro-conciliacao .pane-header .header-actions .btn,
    #tab-equipamentos .pane-header .header-actions .btn,
    body.force-mobile-view #tab-equipamentos .pane-header .header-actions .btn,
    #tab-clientes .pane-header .header-actions .btn,
    body.force-mobile-view #tab-clientes .pane-header .header-actions .btn,
    #tab-tecnicos .pane-header .header-actions .btn,
    body.force-mobile-view #tab-tecnicos .pane-header .header-actions .btn,
    #tab-veiculos .pane-header .header-actions .btn,
    body.force-mobile-view #tab-veiculos .pane-header .header-actions .btn,
    #tab-descartes .pane-header .header-actions .btn,
    body.force-mobile-view #tab-descartes .pane-header .header-actions .btn,
    #tab-usuarios .pane-header .header-actions .btn,
    body.force-mobile-view #tab-usuarios .pane-header .header-actions .btn,
    #tab-empresa .pane-header .header-actions .btn,
    body.force-mobile-view #tab-empresa .pane-header .header-actions .btn,
    #tab-auditoria .pane-header .header-actions .btn,
    body.force-mobile-view #tab-auditoria .pane-header .header-actions .btn,
    #tab-contratos .card-header > div:last-child .btn,
    body.force-mobile-view #tab-contratos .card-header > div:last-child .btn,
    #tab-os .card-header > div:last-child .btn,
    body.force-mobile-view #tab-os .card-header > div:last-child .btn,
    #tab-sla .card-header > div:last-child .btn,
    body.force-mobile-view #tab-sla .card-header > div:last-child .btn,
    #tab-logs .card-header > div:last-child .btn,
    body.force-mobile-view #tab-logs .card-header > div:last-child .btn,
    #tab-financeiro-receitas .card-header > div:last-child .btn,
    body.force-mobile-view #tab-financeiro-receitas .card-header > div:last-child .btn,
    #tab-financeiro-despesas .card-header > div:last-child .btn,
    body.force-mobile-view #tab-financeiro-despesas .card-header > div:last-child .btn,
    #tab-financeiro-conciliacao .card-header > div:last-child .btn,
    body.force-mobile-view #tab-financeiro-conciliacao .card-header > div:last-child .btn,
    #tab-equipamentos .card-header > div:last-child .btn,
    body.force-mobile-view #tab-equipamentos .card-header > div:last-child .btn,
    #tab-clientes .card-header > div:last-child .btn,
    body.force-mobile-view #tab-clientes .card-header > div:last-child .btn,
    #tab-tecnicos .card-header > div:last-child .btn,
    body.force-mobile-view #tab-tecnicos .card-header > div:last-child .btn,
    #tab-veiculos .card-header > div:last-child .btn,
    body.force-mobile-view #tab-veiculos .card-header > div:last-child .btn,
    #tab-descartes .card-header > div:last-child .btn,
    body.force-mobile-view #tab-descartes .card-header > div:last-child .btn,
    #tab-usuarios .card-header > div:last-child .btn,
    body.force-mobile-view #tab-usuarios .card-header > div:last-child .btn,
    #tab-empresa .card-header > div:last-child .btn,
    body.force-mobile-view #tab-empresa .card-header > div:last-child .btn,
    #tab-auditoria .card-header > div:last-child .btn,
    body.force-mobile-view #tab-auditoria .card-header > div:last-child .btn {
        flex: 1 1 calc(50% - 8px) !important;
        min-width: 120px !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 12px !important;
        padding: 8px 10px !important;
    }

    /* 10. TAB-FINANCEIRO-DASH (DRE 360) */
    #dash-bottom-split-row {
        flex-direction: column !important;
        gap: 14px !important;
    }

    #dash-bottom-split-row > div {
        width: 100% !important;
        min-width: 100% !important;
    }

    /* 11 A 14. FINANCEIRO (RECEITAS, DESPESAS, CONFIG, CONCILIAÇÃO) */
    #form-financial-config .form-row,
    .financial-config-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* 15 A 20. RECURSOS (EQUIPAMENTOS, CLIENTES, TÉCNICOS, VEÍCULOS, DESCARTES, EMPRESA) */
    .resource-card-grid,
    .tech-cards-grid,
    .client-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

@media screen and (max-width: 480px) {
    .portal-kpi-grid,
    .dashboard-kpi-row {
        grid-template-columns: 1fr !important;
    }

    .pane-header h2 {
        font-size: 1.1rem !important;
    }
}


/* ============================================================================
   SANITIX SAAS — QUADRO KANBAN DEFINITIVO (DESKTOP & MOBILE RESPONSIVO)
   ============================================================================ */

.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    min-height: 500px;
}

.kanban-mobile-tabs {
    display: none !important;
}

@media screen and (max-width: 992px) {
    /* 1. CABEÇALHO DA ABA DESPACHO NO CELULAR */
    #tab-despacho .pane-header,
    body.force-mobile-view #tab-despacho .pane-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        width: 100% !important;
        margin-bottom: 12px !important;
        padding-bottom: 10px !important;
    }

    #tab-despacho .pane-header > div:first-child,
    body.force-mobile-view #tab-despacho .pane-header > div:first-child {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
        width: 100% !important;
    }

    #tab-despacho .pane-header h2,
    body.force-mobile-view #tab-despacho .pane-header h2 {
        font-size: 1.15rem !important;
        margin: 0 !important;
        line-height: 1.25 !important;
    }

    #tab-despacho .pane-header span,
    body.force-mobile-view #tab-despacho .pane-header span {
        font-size: 0.72rem !important;
        padding: 2px 8px !important;
        border-radius: 8px !important;
    }

    #tab-despacho .pane-header > div:last-child,
    body.force-mobile-view #tab-despacho .pane-header > div:last-child {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        width: 100% !important;
    }

    /* Botão Criar OS ocupa linha inteira */
    #tab-despacho .pane-header button[onclick*="modal-os"],
    body.force-mobile-view #tab-despacho .pane-header button[onclick*="modal-os"] {
        grid-column: span 2 !important;
        min-height: 42px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        order: -1 !important;
    }

    /* Ocultar Modo TV no smartphone */
    #tab-despacho .pane-header button[onclick*="toggleTVMode"],
    body.force-mobile-view #tab-despacho .pane-header button[onclick*="toggleTVMode"] {
        display: none !important;
    }

    /* Botões Gerar Ordens e Filtros Avançados */
    #tab-despacho .pane-header button[onclick*="generateNightlyRoutineOrders"],
    #tab-despacho .pane-header button[onclick*="despacho-advanced-filters"],
    body.force-mobile-view #tab-despacho .pane-header button[onclick*="generateNightlyRoutineOrders"],
    body.force-mobile-view #tab-despacho .pane-header button[onclick*="despacho-advanced-filters"] {
        min-height: 38px !important;
        font-size: 12px !important;
        padding: 6px 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* 2. BARRA DE NAVEGAÇÃO TEMPORAL NO CELULAR */
    #tab-despacho .kanban-temporal-navigator,
    #tab-planejamento .kanban-temporal-navigator,
    body.force-mobile-view #tab-despacho .kanban-temporal-navigator,
    body.force-mobile-view #tab-planejamento .kanban-temporal-navigator {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 12px !important;
        margin-bottom: 12px !important;
    }

    #tab-despacho .kanban-temporal-navigator > div:first-child,
    body.force-mobile-view #tab-despacho .kanban-temporal-navigator > div:first-child {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }

    #tab-despacho .kanban-date-btn-group,
    body.force-mobile-view #tab-despacho .kanban-date-btn-group {
        display: flex !important;
        width: 100% !important;
        gap: 3px !important;
        background: rgba(15, 23, 42, 0.7) !important;
        padding: 3px !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
    }

    #tab-despacho .kanban-date-nav-btn,
    body.force-mobile-view #tab-despacho .kanban-date-nav-btn {
        flex: 1 1 0 !important;
        justify-content: center !important;
        padding: 8px 4px !important;
        font-size: 12px !important;
        min-height: 36px !important;
        text-align: center !important;
    }

    #tab-despacho .kanban-temporal-navigator > div:first-child > div:last-child,
    body.force-mobile-view #tab-despacho .kanban-temporal-navigator > div:first-child > div:last-child {
        display: flex !important;
        width: 100% !important;
        gap: 8px !important;
    }

    #tab-despacho #kanban-date-picker,
    #tab-planejamento #planning-date-picker,
    body.force-mobile-view #tab-despacho #kanban-date-picker,
    body.force-mobile-view #tab-planejamento #planning-date-picker {
        flex: 1 1 50% !important;
        width: 50% !important;
        height: 38px !important;
        min-height: 38px !important;
        font-size: 12.5px !important;
        padding: 4px 8px !important;
    }

    #tab-despacho #btn-kanban-all-dates,
    #tab-planejamento #btn-planning-all-dates,
    body.force-mobile-view #tab-despacho #btn-kanban-all-dates,
    body.force-mobile-view #tab-planejamento #btn-planning-all-dates {
        flex: 1 1 50% !important;
        width: 50% !important;
        height: 38px !important;
        min-height: 38px !important;
        font-size: 12px !important;
        justify-content: center !important;
        white-space: nowrap !important;
        padding: 4px 8px !important;
    }

    #tab-despacho .kanban-date-display-badge,
    body.force-mobile-view #tab-despacho .kanban-date-display-badge {
        width: 100% !important;
        box-sizing: border-box !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 0.8rem !important;
        padding: 8px 12px !important;
        border-radius: 10px !important;
        white-space: normal !important;
        line-height: 1.3 !important;
    }

    /* 3. FILTROS AVANÇADOS NO CELULAR (INICIA FECHADO POR PADRÃO, EXPANDINDO AO CLICAR EM FILTRO) */
    #despacho-advanced-filters,
    body.force-mobile-view #despacho-advanced-filters {
        display: none !important;
        flex-direction: column !important;
        gap: 10px !important;
        padding: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 10px !important;
    }

    #despacho-advanced-filters.active,
    body.force-mobile-view #despacho-advanced-filters.active {
        display: flex !important;
        animation: filterSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    }

    #despacho-advanced-filters.hidden,
    body.force-mobile-view #despacho-advanced-filters.hidden {
        display: none !important;
    }

    #despacho-advanced-filters .filter-group,
    body.force-mobile-view #despacho-advanced-filters .filter-group {
        width: 100% !important;
        min-width: 100% !important;
    }

    #despacho-advanced-filters input,
    #despacho-advanced-filters select,
    #despacho-advanced-filters button,
    body.force-mobile-view #despacho-advanced-filters input,
    body.force-mobile-view #despacho-advanced-filters select,
    body.force-mobile-view #despacho-advanced-filters button {
        width: 100% !important;
        height: 40px !important;
        min-height: 40px !important;
        font-size: 13px !important;
        box-sizing: border-box !important;
    }

    /* 4. ATALHOS RÁPIDOS DE COLUNA (BARRA DE ABAS EXCLUSIVAS FIXA NO TOPO) */
    #tab-despacho .kanban-mobile-tabs,
    body.force-mobile-view #tab-despacho .kanban-mobile-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 6px 2px 8px 2px !important;
        margin-bottom: 12px !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 25 !important;
        background: rgba(11, 15, 25, 0.96) !important;
        backdrop-filter: blur(10px) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    #tab-despacho .kanban-mobile-tabs .btn,
    body.force-mobile-view #tab-despacho .kanban-mobile-tabs .btn {
        flex: 1 1 auto !important;
        min-height: 38px !important;
        padding: 6px 10px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    #tab-despacho .kanban-mobile-tabs .btn.active,
    body.force-mobile-view #tab-despacho .kanban-mobile-tabs .btn.active {
        box-shadow: 0 0 14px rgba(0, 229, 230, 0.35) !important;
        transform: translateY(-1px) !important;
        opacity: 1 !important;
        border-width: 1.5px !important;
    }

    /* 5. QUADRO KANBAN NO CELULAR — MODO ABA EXCLUSIVA (EXIBE APENAS A COLUNA ATIVA) */
    #tab-despacho .kanban-board,
    body.force-mobile-view #tab-despacho .kanban-board {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        overflow-x: visible !important;
        white-space: normal !important;
        gap: 0 !important;
        width: 100% !important;
    }

    /* No celular, colunas inativas ficam ocultas para foco total na aba selecionada */
    #tab-despacho .kanban-column,
    body.force-mobile-view #tab-despacho .kanban-column {
        display: none !important;
    }

    /* Apenas a coluna da aba ativa é renderizada em largura total */
    #tab-despacho .kanban-column.mobile-tab-active,
    body.force-mobile-view #tab-despacho .kanban-column.mobile-tab-active {
        display: flex !important;
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        flex-shrink: 0 !important;
        flex-direction: column !important;
        margin-bottom: 10px !important;
        background: rgba(15, 23, 42, 0.45) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 12px !important;
        padding: 10px !important;
        box-sizing: border-box !important;
        animation: fadeIn 0.2s ease-out !important;
    }

    #tab-despacho .column-header,
    body.force-mobile-view #tab-despacho .column-header {
        white-space: normal !important;
        font-size: 0.92rem !important;
        font-weight: 800 !important;
        padding: 10px 14px !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin-bottom: 8px !important;
    }

    #tab-despacho .kanban-cards-container,
    body.force-mobile-view #tab-despacho .kanban-cards-container {
        max-height: none !important;
        overflow-y: visible !important;
        padding: 4px 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    /* 6. CARDS DE OS NO CELULAR */
    #tab-despacho .kanban-card,
    body.force-mobile-view #tab-despacho .kanban-card {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 14px !important;
        border-radius: 10px !important;
        background: rgba(30, 41, 59, 0.75) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
        margin-bottom: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
    }

    #tab-despacho .kanban-card-title,
    body.force-mobile-view #tab-despacho .kanban-card-title {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        font-size: 0.88rem !important;
        font-weight: 800 !important;
        color: #fff !important;
    }

    #tab-despacho .kanban-card-client,
    body.force-mobile-view #tab-despacho .kanban-card-client {
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        color: #e2e8f0 !important;
        word-break: break-word !important;
    }

    #tab-despacho .kanban-card-address,
    body.force-mobile-view #tab-despacho .kanban-card-address {
        font-size: 0.76rem !important;
        color: #94a3b8 !important;
        word-break: break-word !important;
        line-height: 1.3 !important;
    }

    #tab-despacho .kanban-card-footer,
    body.force-mobile-view #tab-despacho .kanban-card-footer {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        font-size: 0.76rem !important;
        padding-top: 6px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        margin-top: 2px !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
    }
}


/* ============================================================================
   SANITIX SAAS — RESPONSIVIDADE MOBILE PARA KPIS, MAPAS E PAINEIS LATERAIS
   ============================================================================ */

/* KPI GRID DESKTOP (> 992PX): 4 COLUNAS LADO A LADO */
.kpi-grid,
.kpi-gps-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
}

/* MAPA + SIDEBAR DESKTOP: FLEX ROW LADO A LADO */
.gps-map-sidebar-row {
    display: flex !important;
    flex-direction: row !important;
    height: 560px !important;
    min-height: 560px !important;
    width: 100% !important;
}

#gps-widescreen-map {
    flex: 1 1 auto !important;
    height: 560px !important;
    min-height: 560px !important;
    width: auto !important;
    z-index: 1 !important;
}

/* SIDEBAR DESKTOP: 340PX FIXA */
.gps-sidebar-panel {
    width: 340px !important;
    min-width: 340px !important;
    max-width: 340px !important;
    height: 560px !important;
    display: flex !important;
    flex-direction: column !important;
}

@media screen and (max-width: 992px) {
    /* KPI GRID: DE 4 COLUNAS PARA 2 COLUNAS NO CELULAR */
    .kpi-grid,
    .kpi-gps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .kpi-card {
        padding: 14px !important;
    }

    .kpi-value {
        font-size: 1.5rem !important;
    }

    /* MAPA + PAINEL LATERAL: EMPILHAR VERTICALMENTE NO CELULAR */
    .gps-map-sidebar-row {
        flex-direction: column !important;
        height: auto !important;
    }

    /* CARD PAI DO MAPA: PERMITIR OVERFLOW NO MOBILE */
    .gps-map-card-container {
        overflow: visible !important;
    }

    #gps-widescreen-map {
        height: 300px !important;
        min-height: 300px !important;
        width: 100% !important;
        flex: none !important;
    }

    .gps-sidebar-panel {
        width: 100% !important;
        border-left: none !important;
        border-top: 1px solid rgba(255,255,255,0.1) !important;
        max-height: 320px !important;
        flex: none !important;
    }

    /* STAT CARDS E KPI GRIDS GERAIS EM TODAS AS TELAS */
    .stat-card-grid,
    .stat-cards-row {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    /* DASHBOARD MAP HEIGHT */
    #dashboard-map {
        height: 300px !important;
        min-height: 300px !important;
    }
}

@media screen and (max-width: 480px) {
    .kpi-grid,
    .kpi-gps-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================================
   SANITIX — PAINEL DE FILTROS AVANÇADOS RETRÁTIL & PADRONIZADO (100% DAS TELAS)
   ============================================================================ */
.advanced-filters-panel {
    display: none;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    padding: 18px 22px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 12px;
    margin-bottom: 22px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.advanced-filters-panel.active {
    display: flex !important;
    animation: filterSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes filterSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.advanced-filters-panel .filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 190px;
}

.advanced-filters-panel .filter-group label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin: 0;
}

.advanced-filters-panel .filter-group select,
.advanced-filters-panel .filter-group input[type="text"],
.advanced-filters-panel .filter-group input[type="date"] {
    height: 38px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.85rem;
    color: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.advanced-filters-panel .filter-group select:focus,
.advanced-filters-panel .filter-group input[type="text"]:focus,
.advanced-filters-panel .filter-group input[type="date"]:focus {
    border-color: #00e5e6;
    box-shadow: 0 0 12px rgba(0, 229, 230, 0.25);
    background: rgba(0, 0, 0, 0.5);
}

.advanced-filters-panel .filter-group select option {
    background: #0f172a;
    color: #ffffff;
}

@media (max-width: 768px) {
    .advanced-filters-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 16px;
    }

    .advanced-filters-panel .filter-group {
        width: 100%;
        min-width: 100%;
    }
}

/* ============================================================================
   SANITIX SAAS — MOBILE APP EXPERIENCE & RESPONSIVE ADAPTATIONS (ONLY <= 768px)
   GARANTIA TOTAL: NENHUMA ALTERAÇÃO AFETA TELAS DESKTOP (>= 769px)
   ============================================================================ */

/* 1. COMPONENTES MÓVEIS NATIVOS (OCULTOS POR PADRÃO EM TELAS GRANDES/DESKTOP) */
.manager-mobile-bottom-nav,
.manager-mobile-fab,
.manager-mobile-drawer-overlay,
.manager-mobile-quick-menu {
    display: none !important;
}

/* 2. REGRAS EXCLUSIVAS PARA SMARTPHONES E TABLETS (MAX-WIDTH: 768px) */
@media (max-width: 768px) {
    /* Exibir barra de navegação inferior estilo App Nativo */
    .manager-mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 64px !important;
        background: rgba(15, 23, 42, 0.96) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-top: 1px solid rgba(0, 229, 230, 0.25) !important;
        box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.7) !important;
        z-index: 9999 !important;
        justify-content: space-around !important;
        align-items: center !important;
        padding: 0 4px !important;
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    }

    .manager-mobile-nav-btn {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        border: none !important;
        color: #94a3b8 !important;
        font-size: 0.68rem !important;
        font-weight: 600 !important;
        gap: 4px !important;
        padding: 6px 10px !important;
        border-radius: 10px !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        flex: 1 !important;
        max-width: 72px !important;
    }

    .manager-mobile-nav-btn i {
        font-size: 1.15rem !important;
        transition: transform 0.2s ease, color 0.2s ease !important;
    }

    .manager-mobile-nav-btn.active {
        color: #00e5e6 !important;
        font-weight: 800 !important;
        background: rgba(0, 229, 230, 0.1) !important;
    }

    .manager-mobile-nav-btn.active i {
        color: #00e5e6 !important;
        transform: translateY(-2px) scale(1.1) !important;
    }

    /* Floating Action Button (FAB) de Criação Rápida */
    .manager-mobile-fab {
        display: flex !important;
        position: fixed !important;
        bottom: 76px !important;
        right: 18px !important;
        width: 52px !important;
        height: 52px !important;
        border-radius: 50% !important;
        background: linear-gradient(135deg, #00e5e6, #0284c7) !important;
        color: #0f172a !important;
        box-shadow: 0 10px 25px rgba(0, 229, 230, 0.4), 0 0 15px rgba(0, 229, 230, 0.2) !important;
        border: 2px solid #ffffff !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.35rem !important;
        z-index: 9998 !important;
        cursor: pointer !important;
        transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease !important;
    }

    .manager-mobile-fab:active {
        transform: scale(0.92) !important;
    }

    /* Menu Rápido de Ações do FAB */
    .manager-mobile-quick-menu {
        position: fixed !important;
        bottom: 136px !important;
        right: 18px !important;
        background: rgba(15, 23, 42, 0.98) !important;
        border: 1px solid #00e5e6 !important;
        border-radius: 16px !important;
        padding: 10px !important;
        box-shadow: 0 20px 50px rgba(0,0,0,0.85), 0 0 20px rgba(0,229,230,0.2) !important;
        z-index: 9998 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        min-width: 220px !important;
        backdrop-filter: blur(16px) !important;
        animation: mobileQuickMenuIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    }

    @keyframes mobileQuickMenuIn {
        from { opacity: 0; transform: translateY(15px) scale(0.95); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .manager-mobile-quick-item {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 10px 14px !important;
        border-radius: 10px !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        color: #ffffff !important;
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        cursor: pointer !important;
        text-align: left !important;
        transition: background 0.2s ease, border-color 0.2s ease !important;
    }

    .manager-mobile-quick-item:active {
        background: rgba(0, 229, 230, 0.15) !important;
        border-color: #00e5e6 !important;
        color: #00e5e6 !important;
    }

    /* Menu Gaveta (Drawer) Mobile para Módulos Secundários */
    .manager-mobile-drawer-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(5, 10, 20, 0.8) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        z-index: 100000 !important;
        display: flex !important;
        justify-content: flex-end !important;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease !important;
    }

    .manager-mobile-drawer-overlay.active {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .manager-mobile-drawer-panel {
        width: 82% !important;
        max-width: 320px !important;
        height: 100% !important;
        background: #0f172a !important;
        border-left: 1px solid rgba(0, 229, 230, 0.25) !important;
        box-shadow: -10px 0 30px rgba(0,0,0,0.8) !important;
        display: flex !important;
        flex-direction: column !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .manager-mobile-drawer-overlay.active .manager-mobile-drawer-panel {
        transform: translateX(0) !important;
    }

    .manager-mobile-drawer-header {
        padding: 18px 20px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        background: rgba(0, 0, 0, 0.3) !important;
    }

    .manager-mobile-drawer-body {
        flex: 1 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 14px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
    }

    .manager-drawer-item {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 12px 16px !important;
        border-radius: 10px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        color: #cbd5e1 !important;
        font-size: 0.88rem !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
    }

    .manager-drawer-item:active,
    .manager-drawer-item.active {
        background: rgba(0, 229, 230, 0.15) !important;
        border-color: #00e5e6 !important;
        color: #00e5e6 !important;
        font-weight: 700 !important;
    }

    /* Ajustes estruturais fluidos do container e painéis no celular */
    .admin-panel {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        position: static !important;
    }

    .admin-content {
        padding: 12px 14px 40px 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .tab-pane {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Eliminação do vão de 320px no topo: título ocupa apenas a altura do texto */
    .pane-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        margin-bottom: 14px !important;
    }

    .pane-header > div:first-child {
        flex: 0 0 auto !important;
        height: auto !important;
        min-height: auto !important;
        width: 100% !important;
    }

    .pane-actions,
    .pane-header .header-actions {
        margin-left: 0 !important;
        width: 100% !important;
        display: flex !important;
        gap: 10px !important;
    }

    .allocation-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        width: 100% !important;
    }

    /* Modais centralizados normalmente no celular (Tela Inicial, Login, Confirmações) */
    .modal-overlay {
        box-sizing: border-box !important;
        padding: 16px !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    .modal-card {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 480px !important;
        max-height: 90vh !important;
        border-radius: 16px !important;
        border: 1px solid var(--color-primary, #00e5e6) !important;
        margin: auto !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        animation: modalPop 0.25s ease-out !important;
    }

    .modal-card > form {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .modal-header {
        padding: 16px 20px !important;
        flex-shrink: 0 !important;
    }

    .modal-body {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 16px 20px !important;
    }

    .modal-footer {
        padding: 14px 20px !important;
        flex-shrink: 0 !important;
        background: rgba(15, 23, 42, 0.98) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    /* -------------------------------------------------------------------------
       MODAL DE CONTRATOS (#modal-contract) — EDIÇÃO MOBILE FLUIDA & ERGONÔMICA
       ------------------------------------------------------------------------- */
    #modal-contract .modal-card,
    body.force-mobile-view #modal-contract .modal-card {
        width: 95vw !important;
        max-width: 520px !important;
        max-height: 94vh !important;
        height: 94vh !important;
        border-radius: 16px !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        margin: auto !important;
    }

    #modal-contract form#form-contract,
    body.force-mobile-view #modal-contract form#form-contract {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
        height: 100% !important;
    }

    #modal-contract .modal-header,
    body.force-mobile-view #modal-contract .modal-header {
        padding: 12px 16px !important;
        flex-shrink: 0 !important;
    }

    #modal-contract .modal-header h3,
    body.force-mobile-view #modal-contract .modal-header h3 {
        font-size: 0.95rem !important;
        white-space: normal !important;
        line-height: 1.3 !important;
    }

    #modal-contract .modal-body,
    body.force-mobile-view #modal-contract .modal-body {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 14px 12px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    #modal-contract .form-row-2,
    #modal-contract .form-row-3,
    body.force-mobile-view #modal-contract .form-row-2,
    body.force-mobile-view #modal-contract .form-row-3 {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        width: 100% !important;
    }

    #modal-contract .form-group,
    body.force-mobile-view #modal-contract .form-group {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
    }

    #modal-contract .form-group label,
    body.force-mobile-view #modal-contract .form-group label {
        font-size: 0.8rem !important;
        color: #e2e8f0 !important;
        font-weight: 600 !important;
    }

    #modal-contract .form-control,
    #modal-contract input[type="text"],
    #modal-contract input[type="number"],
    #modal-contract input[type="date"],
    #modal-contract select,
    body.force-mobile-view #modal-contract .form-control,
    body.force-mobile-view #modal-contract input[type="text"],
    body.force-mobile-view #modal-contract input[type="number"],
    body.force-mobile-view #modal-contract input[type="date"],
    body.force-mobile-view #modal-contract select {
        width: 100% !important;
        box-sizing: border-box !important;
        min-height: 42px !important;
        height: 42px !important;
        font-size: 13.5px !important;
        padding: 8px 12px !important;
        border-radius: 8px !important;
    }

    #modal-contract .day-checkbox-btn,
    body.force-mobile-view #modal-contract .day-checkbox-btn {
        flex: 1 1 calc(25% - 6px) !important;
        min-width: 60px !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 7px 4px !important;
        font-size: 11px !important;
    }

    #modal-contract #contract-toilets-checklist,
    body.force-mobile-view #modal-contract #contract-toilets-checklist {
        max-height: 180px !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #modal-contract .modal-footer,
    body.force-mobile-view #modal-contract .modal-footer {
        flex-shrink: 0 !important;
        position: sticky !important;
        bottom: 0 !important;
        background: #0f172a !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding: 12px 14px !important;
        display: flex !important;
        justify-content: space-between !important;
        gap: 10px !important;
        z-index: 10 !important;
    }

    #modal-contract .modal-footer .btn,
    body.force-mobile-view #modal-contract .modal-footer .btn {
        flex: 1 !important;
        min-height: 44px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
    }

    /* Form rows no mobile empilham verticalmente */
    .form-row-2,
    .form-row-3,
    .form-row-4 {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* Grid de KPIs no Dashboard em 2 colunas ergonômicas no celular */
    .stats-card-container,
    .dashboard-kpis-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .stat-card {
        padding: 12px 14px !important;
    }

    .stat-value {
        font-size: 1.25rem !important;
    }

    .stat-label {
        font-size: 0.72rem !important;
    }

    /* Tabelas operacionais com rolagem touch suave */
    .table-responsive {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 10px !important;
    }

    /* Ajuste de botões para toque mínimo de 44px */
    .btn,
    .btn-sm,
    .btn-icon-sm {
        min-height: 42px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* ==========================================================================
   BARRA DE NAVEGAÇÃO TEMPORAL DO KANBAN & SELETOR DE PERÍODO GLOBAL
   ========================================================================== */
.kanban-temporal-navigator {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.8));
    border: 1px solid rgba(0, 229, 230, 0.22);
    border-radius: 12px;
    padding: 8px 16px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

@media (min-width: 1024px) {
    .kanban-temporal-navigator {
        flex-wrap: nowrap !important;
    }
}

.kanban-temporal-navigator:hover {
    border-color: rgba(0, 229, 230, 0.4);
    box-shadow: 0 8px 32px rgba(0, 229, 230, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.kanban-date-btn-group {
    display: inline-flex;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    padding: 2px;
    gap: 2px;
}

.kanban-date-nav-btn {
    padding: 6px 14px;
    font-weight: 700;
    font-size: 0.82rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.kanban-date-nav-btn:hover {
    background: rgba(0, 229, 230, 0.12);
    color: #00e5e6;
}

.kanban-date-nav-btn.active {
    background: linear-gradient(135deg, #00e5e6, #0284c7);
    color: #09131f;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0, 229, 230, 0.35);
}

#kanban-date-picker {
    height: 34px;
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(0, 229, 230, 0.3) !important;
    color: #f8fafc !important;
    border-radius: 8px !important;
    transition: all 0.2s ease;
}

#kanban-date-picker:focus {
    border-color: #00e5e6 !important;
    box-shadow: 0 0 12px rgba(0, 229, 230, 0.35) !important;
    outline: none !important;
}

.kanban-date-display-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #f1f5f9;
    background: rgba(0, 229, 230, 0.08);
    border: 1px solid rgba(0, 229, 230, 0.28);
    padding: 6px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0, 229, 230, 0.12);
    letter-spacing: 0.2px;
    white-space: nowrap;
    flex-shrink: 0;
}

.kanban-date-display-badge .date-pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00e5e6;
    box-shadow: 0 0 8px #00e5e6;
    animation: dotPulse 2s infinite ease-in-out;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

@media (max-width: 768px) {
    .kanban-temporal-navigator {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 12px;
        gap: 10px;
    }
    .kanban-date-display-badge {
        justify-content: center;
        font-size: 0.78rem;
    }
}

/* ==========================================================================
   EXTRATO ANALÍTICO DE MEDIÇÃO DE HIGIENIZAÇÕES (PAY-PER-CLEAN) & IMPRESSÃO A4
   ========================================================================== */
.extrato-medicao-sheet {
    background-color: #ffffff !important;
    color: #0f172a !important;
    width: 100% !important;
    max-width: 860px !important;
    padding: 36px 44px !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    border: 1px solid #cbd5e1 !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.extrato-medicao-sheet * {
    box-sizing: border-box !important;
}

.extrato-medicao-sheet table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 16px 0 !important;
}

.extrato-medicao-sheet th {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    padding: 8px 10px !important;
    border: 1px solid #cbd5e1 !important;
    text-align: left !important;
}

.extrato-medicao-sheet td {
    padding: 8px 10px !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
    font-size: 11.5px !important;
    vertical-align: middle !important;
}

.extrato-medicao-sheet tr:nth-child(even) td {
    background: #f8fafc !important;
}

.extrato-photo-thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    transition: transform 0.2s;
}

.extrato-photo-thumb:hover {
    transform: scale(1.8);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

@media print {
    body * {
        visibility: hidden !important;
    }
    #modal-extrato-medicao, #modal-extrato-medicao * {
        visibility: visible !important;
    }
    #modal-extrato-medicao {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }
    #modal-extrato-medicao .modal-card {
        border: none !important;
        box-shadow: none !important;
        max-width: 100% !important;
        width: 100% !important;
        background: transparent !important;
    }
    #modal-extrato-medicao .modal-header,
    #modal-extrato-medicao .modal-footer {
        display: none !important;
    }
    .extrato-medicao-sheet {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        max-width: 100% !important;
    }
}

/* ============================================================================
   MODAIS DE RECUPERAÇÃO E ALTERAÇÃO DE SENHA DO GESTOR (PRIORIDADE MÁXIMA)
   ============================================================================ */
#modal-gestor-forgot-password,
#modal-gestor-set-new-password {
    z-index: 100000000 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    background: rgba(5, 10, 20, 0.96) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
}

#modal-gestor-forgot-password:not(.hidden),
#modal-gestor-set-new-password:not(.hidden) {
    display: flex !important;
}

#modal-gestor-forgot-password .modal-card,
#modal-gestor-set-new-password .modal-card {
    border-radius: 20px !important;
    border-top: 1.5px solid #00e5e6 !important;
    border: 1.5px solid #00e5e6 !important;
    max-height: 90vh !important;
    margin: auto !important;
    box-shadow: 0 25px 60px rgba(0,0,0,0.9), 0 0 35px rgba(0, 229, 230, 0.25) !important;
}

/* ==========================================================================
   GAVETA LATERAL DE TELEMETRIA (PREMIUM SLIDE-OVER DRAWER)
   ========================================================================== */
.drawer-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(5, 10, 20, 0.65) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 99999 !important;
    display: flex !important;
    justify-content: flex-end !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.25s ease, visibility 0.25s ease !important;
}

.drawer-overlay.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
}

.drawer-panel {
    width: 440px !important;
    max-width: 90vw !important;
    height: 100vh !important;
    background: #0b1120 !important;
    border-left: 1.5px solid rgba(0, 229, 230, 0.35) !important;
    box-shadow: -15px 0 45px rgba(0, 0, 0, 0.9) !important;
    display: flex !important;
    flex-direction: column !important;
    color: #fff !important;
    position: relative !important;
    animation: drawerSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes drawerSlideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.drawer-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 18px 24px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(0, 229, 230, 0.08) !important;
}

.drawer-title-group h3 {
    margin: 0 !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #fff !important;
}

.drawer-close {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important;
    width: 34px !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.drawer-close:hover {
    background: rgba(239, 68, 68, 0.25) !important;
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

.drawer-body {
    padding: 22px !important;
    overflow-y: auto !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.drawer-section {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 16px !important;
}

.drawer-section h4 {
    margin: 0 0 12px 0 !important;
    font-size: 0.82rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    color: #00e5e6 !important;
    font-weight: 800 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding-bottom: 6px !important;
}

.progress-bar-container {
    width: 100% !important;
    height: 10px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 5px !important;
    overflow: hidden !important;
    margin: 8px 0 4px 0 !important;
}

.progress-bar-fill {
    height: 100% !important;
    border-radius: 5px !important;
    transition: width 0.4s ease !important;
}

.drawer-footer {
    padding: 18px 24px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(0, 0, 0, 0.4) !important;
}

.drawer-photo-mock {
    width: 70px !important;
    height: 70px !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border-radius: 8px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 1.4rem !important;
    border: 1px dashed rgba(255, 255, 255, 0.2) !important;
}

/* ==========================================================================
   MODAL LIGHTBOX HD DE FOTOS (TELEMETRIA, MEDIÇÕES, ORDENS)
   ========================================================================== */
#modal-photo-viewer {
    z-index: 999999 !important;
}

.lightbox-card {
    background: #090e1a !important;
    border: 1.5px solid rgba(0, 229, 230, 0.4) !important;
    border-radius: 16px !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 229, 230, 0.2) !important;
    animation: zoomInModal 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes zoomInModal {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.lightbox-header {
    padding: 14px 20px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.lightbox-body {
    padding: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #000 !important;
    max-height: calc(85vh - 120px) !important;
    overflow: hidden !important;
}

.lightbox-img {
    max-width: 100% !important;
    max-height: 70vh !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    transition: transform 0.2s ease !important;
}

.lightbox-footer {
    padding: 12px 20px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 0.8rem !important;
    color: #94a3b8 !important;
}

.telemetry-photo-thumb {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.telemetry-photo-thumb:hover {
    transform: scale(1.08);
    border-color: #00e5e6;
    box-shadow: 0 0 12px rgba(0, 229, 230, 0.4);
}

/* =============================================================================
   AVISO ELEGANTE DE ORIENTAÇÃO PAISAGEM MOBILE (ONLY MOBILE LANDSCAPE <= 550px)
   GARANTIA TOTAL: NENHUM IMPACTO EM DESKTOPS OU MONITORES WIDESCREEN
   ============================================================================= */
.landscape-orientation-overlay {
    display: none !important;
}

@media screen and (orientation: landscape) and (max-height: 550px) and (max-width: 1024px) {
    .landscape-orientation-overlay {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(11, 17, 32, 0.97) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        z-index: 9999999 !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 16px !important;
        text-align: center !important;
        color: #ffffff !important;
    }

    .landscape-orientation-content {
        max-width: 440px !important;
        padding: 22px 28px !important;
        background: linear-gradient(145deg, #131c31, #0b1120) !important;
        border: 1.5px solid rgba(0, 229, 230, 0.35) !important;
        border-radius: 18px !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 229, 230, 0.2) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .landscape-phone-icon {
        font-size: 2.2rem !important;
        color: #00e5e6 !important;
        margin-bottom: 10px !important;
        animation: animRotatePhone 2s ease-in-out infinite alternate !important;
    }

    @keyframes animRotatePhone {
        0% { transform: rotate(90deg) scale(0.95); }
        50% { transform: rotate(0deg) scale(1.05); }
        100% { transform: rotate(0deg) scale(1); }
    }
}







/* BOTÃO RETORNO AO INÍCIO EXCLUSIVO MOBILE NO TOPO */
#btn-mobile-back {
    display: none !important;
}

@media (max-width: 768px) {
    #btn-mobile-back {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 12px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
        background: rgba(0, 229, 230, 0.15) !important;
        border: 1px solid rgba(0, 229, 230, 0.45) !important;
        color: #00e5e6 !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
    }
    #btn-mobile-back:active {
        background: rgba(0, 229, 230, 0.3) !important;
        transform: scale(0.96);
    }
}

body.force-mobile-view #btn-mobile-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    background: rgba(0, 229, 230, 0.15) !important;
    border: 1px solid rgba(0, 229, 230, 0.45) !important;
    color: #00e5e6 !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
}

/* Mobile Login Modal Polish */
@media (max-width: 768px) {
    #modal-auth-login {
        padding: 12px !important;
        box-sizing: border-box !important;
    }
    #modal-auth-login .modal-card {
        padding: 24px 18px !important;
        border-radius: 16px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}
