@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root { 
    --dhl: #ed1c24; --bg: #f4f7fb; --white: #ffffff;
    --border: #e2e8f0; --text-main: #0f172a; --text-muted: #64748b;
    --input-bg: #f8fafc;
}

/* IMPEDE O SITE DE "SAMBAR" PARA OS LADOS */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
}

/* FORÇA OS PROJETOS A NÃO SEREM MAIORES QUE A TELA */
.projeto-card, .container-projetos, .camera-selector {
    max-width: 100vw !important;
    box-sizing: border-box;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }
body, html { height: 100%; background: var(--bg); color: var(--text-main); overflow: hidden;}
.hidden { display: none !important; }

/* TELA DE LOGIN */
.auth-wrapper { position: fixed; inset: 0; display: flex; z-index: 5000; background: var(--white); }
.login-split { display: flex; width: 100%; height: 100%; }
.login-visual { flex: 1.2; background: url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?q=80&w=2070&auto=format&fit=crop') center/cover; position: relative; display: flex; align-items: flex-end; padding: 60px; }
.login-visual::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.9) 100%); }
.visual-overlay { position: relative; z-index: 2; color: white; max-width: 600px; }
.visual-overlay h1 { font-size: 40px; font-weight: 800; line-height: 1.2; margin-bottom: 15px; }
.visual-overlay p { font-size: 16px; color: #cbd5e1; line-height: 1.6; }
.login-form-side { flex: 0.8; display: flex; align-items: center; justify-content: center; background: var(--white); padding: 40px; box-shadow: -10px 0 30px rgba(0,0,0,0.05); z-index: 5; }
.login-card-modern { width: 100%; max-width: 380px; display: flex; flex-direction: column; }
.login-logo-black { height: 40px; margin-bottom: 40px; object-fit: contain; align-self: flex-start; }
.form-header { margin-bottom: 35px; }
.form-header h3 { font-size: 28px; font-weight: 800; color: var(--text-main); }
.form-header p { font-size: 14px; color: var(--text-muted); margin-top: 5px; }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-size: 12px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; margin-bottom: 8px; letter-spacing: 0.5px; }
.input-with-icon { position: relative; display: flex; align-items: center; background: var(--input-bg); border: 2px solid var(--border); border-radius: 12px; transition: 0.3s; }
.input-with-icon i { position: absolute; left: 16px; color: #94a3b8; font-size: 16px; }
.input-with-icon input { width: 100%; padding: 16px 16px 16px 45px; border: none; background: transparent; outline: none; font-size: 14px; font-weight: 600; color: var(--text-main); }
.input-with-icon:focus-within { border-color: var(--dhl); background: var(--white); }
.btn-login-modern { width: 100%; padding: 18px; background: var(--dhl); color: white; border: none; border-radius: 12px; font-weight: 800; font-size: 15px; cursor: pointer; transition: 0.3s; margin-top: 10px; box-shadow: 0 4px 15px rgba(237, 28, 36, 0.2); }
.btn-login-modern:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(237, 28, 36, 0.3); }

/* HEADER E SIDEBAR */
.mini-logo { height: 35px !important; width: auto; object-fit: contain; }
.top-header { height: 70px; background: var(--white); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; padding: 0 30px; align-items: center; position: fixed; top: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.header-right-actions { display: flex; align-items: center; gap: 20px; }
.btn-support { background: var(--input-bg); border: 1px solid var(--border); color: var(--text-main); font-weight: 800; font-size: 13px; padding: 8px 18px; border-radius: 20px; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: 0.2s;}
.btn-support i { color: var(--dhl); font-size: 15px; }
.btn-support:hover { background: var(--white); border-color: var(--dhl); color: var(--dhl); box-shadow: 0 4px 10px rgba(237,28,36,0.1); }

.user-profile-badge { display: flex; align-items: center; background: var(--input-bg); border: 1px solid var(--border); border-radius: 30px; padding: 4px 6px 4px 4px; gap: 10px; transition: 0.2s;}
.user-avatar { width: 32px; height: 32px; background: var(--text-main); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.user-name { font-size: 13px; font-weight: 700; color: var(--text-main); padding-right: 5px; }
.btn-logout { background: transparent; border: none; color: var(--dhl); cursor: pointer; font-size: 15px; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.2s;}
.btn-logout:hover { background: #fee2e2; }

.main-app { height: 100vh; display: flex; flex-direction: column; padding-top: 70px; }
.app-body { display: flex; flex: 1; overflow: hidden; }

.sidebar { width: 320px; background: var(--white); border-right: 1px solid var(--border); overflow-y: auto; flex-shrink: 0; padding: 10px 0; transition: 0.3s; }
.asset-card { display: flex; align-items: center; padding: 12px; margin: 8px 15px; border: 1px solid var(--border); border-radius: 14px; cursor: pointer; gap: 14px; background: var(--white); transition: 0.2s;}
.asset-card.active { border-color: var(--dhl); background: #fff1f1; transform: translateX(5px);}
.asset-thumb-mini { width: 50px; height: 50px; border-radius: 10px; background: var(--input-bg); overflow: hidden; flex-shrink: 0; border: 1px solid var(--border); }
.asset-thumb-mini img { width: 100%; height: 100%; object-fit: cover; }
.proj-title { font-weight: 800; font-size: 13px; color: var(--text-main); display: block; }
.proj-city { font-size: 11px; color: var(--text-muted); font-weight: 600; }

/* VIEWPORT E TABS */
.viewport { flex: 1; overflow-y: auto; background: var(--bg); display: flex; flex-direction: column; position: relative; }
.project-top-bar { display: flex; align-items: center; gap: 15px; padding: 25px 40px 15px; background: var(--white); }
.project-top-bar h1 { font-size: 32px; font-weight: 900; color: var(--text-main); text-transform: uppercase; letter-spacing: -0.5px; margin: 0;}
.badge-local { background: var(--input-bg); color: var(--text-muted); padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; border: 1px solid var(--border); }

.tabs-navbar { display: flex; background: var(--white); border-bottom: 1px solid var(--border); padding: 0 40px; gap: 10px; overflow-x: auto; flex-shrink: 0; position: sticky; top: 0; z-index: 900; }
.tab-btn { font-size: 13px; font-weight: 800; color: var(--text-muted); cursor: pointer; padding: 15px; border-bottom: 3px solid transparent; display: flex; align-items: center; gap: 8px; white-space: nowrap; transition: 0.2s;}
.tab-btn.active { color: var(--dhl); border-bottom-color: var(--dhl); }
.tab-btn:hover:not(.active) { color: var(--text-main); }

/* WELCOME STATE */
.welcome-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 50vh; text-align: center; padding: 40px; }
.welcome-icon { font-size: 50px; color: var(--dhl); margin-bottom: 20px; animation: bounceLeft 2s infinite; }
@keyframes bounceLeft { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-15px); } }
.welcome-empty-state h2 { font-size: 24px; font-weight: 800; color: var(--text-main); margin-bottom: 10px; }
.welcome-empty-state p { font-size: 15px; color: var(--text-muted); font-weight: 500; max-width: 400px; line-height: 1.6; }

/* CONTROLES E BOTÕES DE CÂMERA COM STATUS */
.master-control-card { background: var(--white); border: 1px solid var(--border); border-radius: 20px; margin: 30px auto; padding: 25px 35px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); width: 90%; max-width: 1050px; }
.control-flex-panel { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: flex-start; gap: 20px; }
.control-block { display: flex; flex-direction: column; gap: 8px; }
.control-label { font-size: 10px; font-weight: 800; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }

.pill-group { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-start; }
.cam-btn { padding: 10px 20px; background: var(--input-bg); border: 1px solid var(--border); border-radius: 12px; font-size: 13px; font-weight: 800; color: var(--text-main); cursor: pointer; white-space: nowrap; transition: 0.2s; display: flex; align-items: center; gap: 8px;}
.day-chip { padding: 10px 20px; background: var(--input-bg); border: 1px solid var(--border); border-radius: 12px; font-size: 13px; font-weight: 800; color: var(--text-main); cursor: pointer; white-space: nowrap; transition: 0.2s;}
.cam-btn.active, .day-chip.active { background: var(--dhl); border-color: var(--dhl); color: white; }

.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; transition: 0.3s;}
.status-dot.grey { background: #94a3b8; }
.status-dot.green { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.8); animation: pulse-green 2s infinite; }
.status-dot.red { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.8); }
@keyframes pulse-green { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); } 70% { transform: scale(1.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); } }

.action-group { display: flex; align-items: center; background: var(--input-bg); border: 1.5px solid var(--border); border-radius: 14px; height: 46px; padding: 0 6px 0 16px; }
.calendar-icon { color: var(--dhl); margin-right: 10px; }
.date-input, .select-input, .comp-date, .comp-select { border: none; background: transparent; outline: none; font-size: 13px; font-weight: 700; color: var(--text-main); height: 100%; cursor: pointer;}
.v-line { width: 1.5px; height: 24px; background: var(--border); margin: 0 10px; }

.photo-count-badge { background: #e2e8f0; color: #334155; padding: 6px 12px; border-radius: 10px; font-size: 11px; font-weight: 800; display: flex; align-items: center; gap: 6px; margin-left: 10px;}
.photo-count-badge i { color: var(--text-muted); }

.btn-primary { background: var(--text-main); color: white; border: none; padding: 0 24px; border-radius: 10px; font-weight: 800; font-size: 12px; cursor: pointer; height: 36px; display: flex; align-items: center; gap: 8px; margin-left: 5px; transition: 0.3s;}
.btn-primary:hover { background: var(--dhl); }
.btn-dark { background: #1e293b; height: 46px; border-radius: 14px; margin-left: 0; padding: 0 20px;}
.btn-ia-color { background: linear-gradient(45deg, #0f172a, #3b82f6); height: 46px; margin-left: 0; border-radius: 14px; padding: 0 20px;}
.btn-ia-color:hover { opacity: 0.9; }
.days-status-line { margin-top: 25px; padding-top: 20px; border-top: 1px dashed var(--border); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

.compare-side-by-side { display: flex; gap: 15px; align-items: flex-end; flex-wrap: nowrap; }
.comp-input-group { display: flex; align-items: center; background: var(--input-bg); border: 1.5px solid var(--border); border-radius: 14px; height: 46px; padding: 0 6px 0 16px; }

/* GRID & CARREGAR MAIS */
.main-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; padding: 0 40px 10px; }
.img-card { background: var(--white); border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 4px 12px rgba(0,0,0,0.03); display: flex; flex-direction: column; cursor: pointer; transition: 0.2s;}
.img-card:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(0,0,0,0.08); border-color: var(--dhl);}
.img-card img, .img-card video { width: 100%; height: 210px; object-fit: cover; background: #000; }
.card-meta { padding: 12px; text-align: center; font-size: 12px; font-weight: 800; color: var(--text-main); background: #fdfdfd; display: flex; justify-content: center; gap: 8px;}
.loading-state { padding: 40px; font-size: 14px; font-weight: 700; color: var(--text-muted); grid-column: 1 / -1; text-align: center; width: 100%; }

.pagination-area { display: flex; justify-content: center; padding: 20px 40px 60px; }
.btn-load-more { background: var(--white); border: 2px solid var(--dhl); color: var(--dhl); font-weight: 800; font-size: 13px; padding: 12px 30px; border-radius: 30px; cursor: pointer; transition: 0.3s; display: flex; align-items: center; gap: 10px;}
.btn-load-more:hover { background: var(--dhl); color: white; box-shadow: 0 5px 15px rgba(237, 28, 36, 0.3);}

/* LIGHTBOX */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 9999; display: flex; flex-direction: column; }
.lightbox-toolbar { padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.5); }
.lb-title { color: white; font-weight: 800; font-size: 15px;}
.lb-controls { display: flex; gap: 10px; align-items: center; }
.lb-icon-btn { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; width: 40px; height: 40px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: 0.2s;}
.lb-icon-btn:hover { background: var(--dhl); border-color: var(--dhl); }
.btn-close-modal { background: rgba(237, 28, 36, 0.2); color: var(--dhl); border-color: var(--dhl); }
.v-line-light { width: 1px; height: 24px; background: rgba(255,255,255,0.2); margin: 0 5px; }
.lightbox-image-container { flex: 1; display: flex; justify-content: center; align-items: center; position: relative; overflow: hidden; }
#lightbox-img { max-width: 95%; max-height: 90%; object-fit: contain; cursor: grab; transition: transform 0.1s ease-out;}
#lightbox-img:active { cursor: grabbing; }
.lb-loading { color: white; font-size: 15px; font-weight: 600; display: flex; gap: 10px; align-items: center; position: absolute; z-index: 10;}
.zoom-hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color: white; font-size: 13px; font-weight: 600; pointer-events: none; background: rgba(0,0,0,0.6); padding: 10px 20px; border-radius: 20px; display: flex; align-items: center; gap: 8px;}

/* IA & COMPARADOR & RDO */
.comparator-view, .ia-report-view, .rdo-view { padding: 0 40px 40px; display: flex; flex-direction: column; align-items: center; width: 100%; }

/* =========================================
   9. MONITORAMENTO AO VIVO VMS (PREMIUM)
   ========================================= */
.live-view { padding: 20px; width: 100%; height: calc(100vh - 130px); display: flex; flex-direction: column; }

.vms-layout { display: flex; flex-direction: column; gap: 20px; width: 100%; height: 100%; max-width: 1600px; margin: 0 auto; }

/* -----------------------------------------
   LADO ESQUERDO: PLAYER E DVR
   ----------------------------------------- */
.vms-player-section { flex: 1; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); overflow-y: auto; }

.vms-video-wrapper { position: relative; width: 100%; padding-bottom: 56.25%; background: #000; border-radius: 12px; overflow: hidden; margin-bottom: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.vms-video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.vms-video-header { position: absolute; top: 15px; left: 15px; right: 15px; display: flex; justify-content: space-between; align-items: center; z-index: 10; pointer-events: none; }
.vms-live-badge { background: rgba(237, 28, 36, 0.9); color: white; padding: 6px 12px; border-radius: 20px; font-size: 11px; font-weight: 800; display: flex; align-items: center; gap: 8px; backdrop-filter: blur(4px); pointer-events: auto; }
.vms-live-badge .pulse-dot { width: 8px; height: 8px; background: white; border-radius: 50%; animation: pulse-white 1.5s infinite; }
@keyframes pulse-white { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); } 70% { box-shadow: 0 0 0 6px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

.vms-video-actions { display: flex; gap: 10px; pointer-events: auto; }
.vms-video-actions button { background: rgba(0,0,0,0.6); color: white; border: none; width: 35px; height: 35px; border-radius: 8px; cursor: pointer; backdrop-filter: blur(4px); transition: 0.2s; }
.vms-video-actions button:hover { background: var(--dhl); }

/* Controles DVR */
.vms-dvr-controls { padding: 0 10px; }
.vms-cam-title { font-size: 20px; font-weight: 900; color: var(--text-main); margin-bottom: 15px; }

.vms-timeline-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; align-items: center; }
.vms-time-btn { background: var(--input-bg); border: 1px solid var(--border); padding: 8px 16px; border-radius: 20px; font-size: 12px; font-weight: 700; color: var(--text-muted); cursor: pointer; transition: 0.2s; }
.vms-time-btn:hover { background: #e2e8f0; }
.vms-time-btn.active { background: #f97316; color: white; border-color: #f97316; }

.vms-date-picker { display: flex; align-items: center; gap: 8px; background: var(--input-bg); border: 1px solid var(--border); padding: 6px 12px; border-radius: 8px; font-weight: 700; font-size: 12px; color: var(--text-main); margin-left: auto; }
.vms-date-picker input { border: none; background: transparent; outline: none; font-weight: 700; color: var(--text-main); font-family: inherit; }

/* Régua do Tempo */
.vms-timeline-track { position: relative; padding: 20px 0; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.vms-track-progress { width: 100%; height: 8px; background: #fed7aa; border-radius: 4px; position: relative; }
.vms-track-progress::after { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 85%; background: #f97316; border-radius: 4px; }
.vms-track-marker { position: absolute; left: 85%; top: 5px; width: 2px; height: 30px; background: var(--text-main); transform: translateX(-50%); z-index: 5; }
.vms-marker-time { position: absolute; top: -25px; left: 50%; transform: translateX(-50%); background: var(--text-main); color: white; font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 4px; }
.vms-marker-time::after { content: ''; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); border-width: 4px 4px 0; border-style: solid; border-color: var(--text-main) transparent transparent transparent; }
.vms-track-labels { display: flex; justify-content: space-between; margin-top: 10px; font-size: 10px; font-weight: 700; color: var(--text-muted); }

/* Informações da Câmera */
.vms-cam-details h3 { font-size: 13px; font-weight: 800; color: var(--text-main); margin-bottom: 15px; text-transform: uppercase; }
.vms-detail-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-main); margin-bottom: 10px; font-weight: 500; }
.vms-detail-row i { color: var(--text-muted); margin-right: 8px; width: 16px; text-align: center; }
.vms-status-online { color: #10b981; font-weight: 800; display: flex; align-items: center; gap: 6px; }

/* -----------------------------------------
   LADO DIREITO: MAPA E LISTA FLUTUANTE
   ----------------------------------------- */
.vms-map-section { flex: 1; position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: #e2e8f0; min-height: 400px; }
.vms-map-iframe { width: 100%; height: 100%; position: absolute; top: 0; left: 0; }

/* Lista Flutuante (Glassmorphism) */
.vms-floating-list { position: absolute; top: 20px; right: 20px; width: 320px; max-height: calc(100% - 40px); background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.5); border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); display: flex; flex-direction: column; overflow: hidden; }

.vms-list-header { padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(0,0,0,0.05); }
.vms-list-header h3 { font-size: 14px; font-weight: 800; color: var(--text-main); margin: 0; }
.btn-minimize { background: var(--input-bg); border: none; width: 28px; height: 28px; border-radius: 50%; color: var(--text-muted); cursor: pointer; }

.vms-search-box { padding: 15px 20px; position: relative; }
.vms-search-box input { width: 100%; background: white; border: 1px solid var(--border); padding: 10px 15px 10px 35px; border-radius: 20px; font-size: 12px; font-weight: 600; outline: none; box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); }
.vms-search-box i { position: absolute; left: 32px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 12px; }

.vms-cam-items { flex: 1; overflow-y: auto; padding: 0 10px 15px; }
.vms-cam-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; margin-bottom: 8px; cursor: pointer; transition: 0.2s; border: 1px solid transparent; }
.vms-cam-card:hover { background: rgba(255,255,255,0.9); border-color: var(--border); }
.vms-cam-card.active { background: rgba(249, 115, 22, 0.1); border-color: #f97316; } 

.vms-cam-thumb { width: 60px; height: 40px; background: linear-gradient(45deg, #1e293b, #334155); border-radius: 6px; display: flex; justify-content: center; align-items: center; color: white; font-size: 12px; flex-shrink: 0; }
.vms-cam-card.active .vms-cam-thumb { background: #f97316; }

.vms-cam-info { flex: 1; overflow: hidden; }
.vms-cam-info h4 { font-size: 12px; font-weight: 800; color: var(--text-main); margin: 0 0 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vms-cam-info p { font-size: 10px; font-weight: 600; color: var(--text-muted); margin: 0; }

.vms-fav { color: #cbd5e1; cursor: pointer; font-size: 14px; padding: 5px; transition: 0.2s; }
.vms-fav:hover { color: #f59e0b; }

/* RESET RESPONSIVO AGRESSIVO */
/* ===================================================================== */
/* 📱 AJUSTE MOBILE DEFINITIVO - DHL                                     */
/* ===================================================================== */

@media (max-width: 768px) {
    /* 1. Bloqueia qualquer movimento lateral do site */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 2. MENU DE ABAS (O CULPADO): Força a quebra de linha */
    .tabs-navbar {
        display: flex !important;
        flex-wrap: wrap !important; /* Faz os botões descerem se não couberem */
        height: auto !important;
        padding: 10px !important;
        gap: 5px !important;
        justify-content: center !important;
    }

    .tab-btn {
        flex: 1 1 30% !important; /* 3 por linha no celular */
        min-width: 80px !important;
        font-size: 10px !important;
        padding: 10px 5px !important;
        white-space: normal !important; /* Permite o texto quebrar dentro do botão */
        text-align: center !important;
        height: auto !important;
    }

    /* 3. BOTÕES DE CÂMERA (BRITAGEM, ETC) */
    #camera-selector, .pill-group {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    .cam-btn {
        flex: 1 1 45% !important; /* 2 botões por linha */
        max-width: 48% !important;
        font-size: 11px !important;
    }

    /* 4. BARRA DE TELEMETRIA (DIAGNÓSTICO) */
    [id*="telemetry-bar"], .diagnostico-bar {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; /* Divide em 2 colunas fixas */
        gap: 10px !important;
        width: 100% !important;
        padding: 15px !important;
    }
}
/*ESQUECI A SENHA*/
#btn-forgot-pass:hover {
    color: var(--dhl) !important;
    text-decoration: underline !important;
}


/* ENGINE DO COMPARADOR - BLINDADO */
.image-compare-container { position: relative; width: 100%; max-width: 1200px; aspect-ratio: 16/9; background: #1e293b; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 2px solid var(--border); cursor: col-resize; user-select: none; }
.img-after, .img-before { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.img-before { clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%); z-index: 2; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: var(--dhl); transform: translateX(-50%); z-index: 10; pointer-events: none; }
.handle-arrows { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; background: var(--dhl); border-radius: 50%; border: 3px solid white; display: flex; align-items: center; justify-content: center; color: white; gap: 4px; font-size: 16px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.comp-label { position: absolute; top: 20px; padding: 8px 16px; background: rgba(0,0,0,0.7); color: white; font-weight: 800; font-size: 12px; border-radius: 8px; z-index: 5; backdrop-filter: blur(5px); }
.label-before { left: 20px; }
.label-after { right: 20px; }
.slider-hint { font-size: 14px; font-weight: 800; color: var(--text-muted); margin-bottom: 20px; display: flex; gap: 8px; align-items: center;}
/* IA REPORT */
.ia-loading-state { text-align: center; margin-top: 50px; }
.ia-pulse-icon { font-size: 50px; color: #3b82f6; animation: pulse 1.5s infinite; margin-bottom: 15px; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }
.ia-report-card { background: white; border: 1px solid var(--border); border-radius: 20px; width: 100%; max-width: 1000px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05);}
.ia-report-header { padding: 20px 30px; background: #f8fafc; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.ia-header-left { font-weight: 900; display: flex; align-items: center; gap: 10px; color: var(--text-main);}
.btn-secondary { padding: 10px 20px; border-radius: 8px; border: 1px solid var(--border); background: white; font-weight: 800; font-size: 12px; cursor: pointer; color: var(--text-main); transition: 0.2s;}
.btn-secondary:hover { background: var(--input-bg); }
.ia-evidence-grid { display: flex; gap: 20px; padding: 30px; }
.ia-evidence-box { flex: 1; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; position: relative; }
.ia-evidence-label { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.7); color: white; padding: 5px 10px; font-size: 11px; font-weight: 800; border-radius: 4px; }
.ia-evidence-box img { width: 100%; height: 200px; object-fit: cover; display: block;}
.ia-text-body { padding: 0 30px 30px; }
.ia-text-body h4 { margin-top: 20px; margin-bottom: 8px; font-size: 15px; color: var(--text-main); border-bottom: 2px solid var(--border); padding-bottom: 5px; display: inline-block;}
.ia-text-body p { font-size: 14px; color: var(--text-muted); line-height: 1.6; font-weight: 500;}

/* RDO DOCUMENTO */
.rdo-document { background: white; border: 1px solid var(--border); width: 100%; max-width: 900px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); padding: 50px; position: relative; }
.rdo-document::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: var(--dhl); }
.rdo-doc-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 30px; border-bottom: 2px solid var(--border); margin-bottom: 30px; }
.rdo-header-main { display: flex; align-items: center; gap: 20px; }
.rdo-doc-logo { height: 45px; }
.rdo-title-block h1 { font-size: 22px; font-weight: 900; color: #0f172a; text-transform: uppercase; margin: 0;}
.rdo-title-block p { font-size: 12px; color: var(--text-muted); margin: 0;}
.rdo-meta-block { text-align: right; background: var(--input-bg); padding: 15px; border-radius: 10px; border: 1px solid var(--border); }
.rdo-meta-item { font-size: 13px; color: var(--text-main); margin-bottom: 5px; }
.rdo-meta-item span { color: var(--text-muted); font-weight: 600; margin-right: 5px; }
.rdo-section { margin-bottom: 30px; }
.rdo-section-title { font-size: 14px; font-weight: 800; color: var(--text-main); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.rdo-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 30px; background: #fdfdfd; padding: 20px; border-radius: 10px; border: 1px solid var(--border); }
.rdo-info-grid p { font-size: 14px; color: var(--text-main); margin: 0;}
.rdo-info-grid span { color: var(--text-muted); font-weight: 600; margin-right: 8px; display: inline-block; width: 100px; }
.rdo-clima-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.clima-item { background: var(--input-bg); padding: 15px; border-radius: 8px; border: 1px solid var(--border); font-size: 13px; text-align: center; }
.clima-item span { display: block; color: var(--text-muted); font-weight: 600; margin-bottom: 5px; }
.rdo-row { display: flex; gap: 30px; }
.rdo-col { flex: 1; }
.flex-2 { flex: 2; } .flex-3 { flex: 3; }
.rdo-table { width: 100%; border-collapse: collapse; font-size: 13px; border: 1px solid var(--border); }
.rdo-table th { background: #f8fafc; text-align: left; padding: 12px; font-weight: 800; border-bottom: 2px solid var(--border); color: var(--text-main);}
.rdo-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text-main); font-weight: 500;}
.rdo-table tbody tr:nth-child(even) { background: #fdfdfd; }
.rdo-total-row td { font-weight: 800; background: #f1f5f9 !important; border-top: 2px solid var(--border); }
.rdo-text-box { background: #fdfdfd; border: 1px solid var(--border); padding: 20px; border-radius: 8px; font-size: 14px; line-height: 1.7; color: var(--text-main); font-weight: 500;}
.rdo-doc-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.rdo-doc-thumb { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.rdo-doc-thumb img { width: 100%; height: 120px; object-fit: cover; display: block;}
.rdo-doc-thumb p { padding: 8px; font-size: 11px; font-weight: 600; text-align: center; background: #fdfdfd; margin: 0; border-top: 1px solid var(--border); color: var(--text-muted);}
.rdo-doc-action-bar { margin-top: 40px; padding-top: 25px; border-top: 2px solid var(--border); display: flex; justify-content: center; }

/* FIX IMPRESSÃO */
@media print {
    body * { visibility: hidden; }
    .main-app, .main-app * { padding: 0 !important; margin: 0 !important; border: none !important; box-shadow: none !important; background: white !important; }
    .rdo-view, .rdo-view *, .rdo-document, .rdo-document * { visibility: visible; }
    .rdo-view { position: absolute; left: 0; top: 0; width: 100%; padding: 0 !important; margin: 0 !important; }
    .rdo-document { border: none !important; width: 100% !important; max-width: none !important; box-shadow: none !important; padding: 20px !important; }
    .rdo-document::before { display: none; }
    .tab-btn, .master-control-card, .sidebar, .top-header, .project-top-bar, .rdo-doc-action-bar { display: none !important; }
    .rdo-section-title { border-bottom: 2px solid black !important; }
    .rdo-table th { background-color: #f2f2f2 !important; }
}

/* RESPONSIVIDADE */
@media (max-width: 1024px) {
    .login-left-pane { display: none; } 
    .login-form-side { width: 100%; max-width: none; }
    .sidebar { width: 240px; }
    .btn-support span { display: none; }
}
@media (max-width: 850px) {
    .app-body { flex-direction: column; }
    .sidebar { width: 100%; max-height: 180px; border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
    .asset-list-vertical { display: flex; overflow-x: auto; }
    .asset-card { min-width: 250px; margin: 5px; }
    .project-top-bar { padding: 20px; flex-direction: column; align-items: flex-start; gap: 10px; }
    .master-control-card { width: 95%; margin: 20px auto; padding: 20px; }
    .compare-side-by-side { flex-direction: column; align-items: stretch; width: 100%; }
    .action-group, .comp-input-group { width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 10px;}
    .btn-primary { width: 100%; justify-content: center; margin-left: 0; margin-top: 10px;}
    .photo-count-badge { margin-left: 0; width: 100%; justify-content: center;}
    .image-compare-container { height: 350px; aspect-ratio: auto; }
    .rdo-row { flex-direction: column; gap: 20px; }
}

/* ===================================================================== */
/* REGRAS DE IMPRESSÃO (PDF) - OTIMIZADO PARA LAUDO IA E RDO             */
/* ===================================================================== */
@media print {
    /* 1. Esconde tudo que não deve ir para o papel (Menus, Controles, Botões) */
    .top-header, 
    .sidebar, 
    .project-top-bar, 
    .tabs-navbar, 
    .control-flex-panel, /* Esconde toda a barra de pesquisa de datas/câmeras */
    .ia-report-header button, 
    .rdo-doc-action-bar,
    .slider-hint,
    .btn-load-more {
        display: none !important;
    }

    /* 2. Destrava o limite da tela para a impressora ler o documento inteiro */
    body, html, #app, .main-app, .app-body, .viewport, #main-content-area {
        height: auto !important;
        width: 100% !important;
        overflow: visible !important;
        position: static !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        background-color: white !important;
    }

    /* 3. A REGRA DE OURO: Garante que abas ocultas continuem ocultas no PDF! */
    .hidden {
        display: none !important;
    }

    /* 4. Formatação limpa do Laudo de IA no papel */
    #ia-report-view, #ia-report-content {
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    /* Impede que as imagens fiquem cortadas na metade entre duas folhas */
    .ia-evidence-grid {
        display: flex !important;
        page-break-inside: avoid !important;
    }
    
    .ia-evidence-box {
        flex: 1 !important;
        page-break-inside: avoid !important;
    }

    .ia-evidence-box img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* 5. Margem padrão da folha A4 */
    @page {
        margin: 1.5cm;
        size: auto;
    }

}

/* =========================================
   10. PLANOS E UPSELL (BLOQUEIOS)
   ========================================= */
.tab-btn.locked {
    opacity: 0.6;
    position: relative;
    padding-right: 25px; /* Abre espaço para o cadeado */
}
.tab-btn.locked::after {
    content: '\f023'; /* Código do cadeado no FontAwesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: var(--dhl);
}
.tab-btn.locked:hover { color: var(--text-muted); border-bottom-color: transparent; }

/* Modal de Upsell (Propaganda) */
.upsell-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 9999; display: flex; justify-content: center; align-items: center; backdrop-filter: blur(5px); }
.upsell-card { background: white; border-radius: 20px; width: 90%; max-width: 450px; text-align: center; padding: 40px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); position: relative; overflow: hidden; }
.upsell-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: linear-gradient(90deg, #FFCC00, var(--dhl)); }
.upsell-icon { font-size: 50px; color: #cbd5e1; margin-bottom: 20px; }
.upsell-card h3 { font-size: 22px; font-weight: 900; color: var(--text-main); margin-bottom: 10px; }
.upsell-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 25px; line-height: 1.6; }
.btn-upgrade { background: var(--dhl); color: white; border: none; padding: 15px 30px; border-radius: 12px; font-weight: 800; font-size: 14px; cursor: pointer; width: 100%; transition: 0.2s; display: flex; justify-content: center; align-items: center; gap: 10px; }
.btn-upgrade:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(237, 28, 36, 0.2); }
.btn-close-upsell { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 20px; color: #94a3b8; cursor: pointer; }


/* =====================================================================
   CUSTOMIZAÇÃO DO CALENDÁRIO (FLATPICKR)
   ===================================================================== */
.flatpickr-day.has-photo {
    position: relative;
    font-weight: bold;
    color: var(--text-main);
}

.flatpickr-day.has-photo::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--dhl); /* Vermelho DHL */
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(237, 28, 36, 0.4);
}

/* Quando o dia com foto é selecionado, a bolinha fica branca para dar contraste */
.flatpickr-day.selected.has-photo::after {
    background-color: white;
}

/* =====================================================================
   ZENTRIO - FORÇA BRUTA DE CORES (SUBSTITUIÇÃO GLOBAL PARA AZUL FORTE)
   ===================================================================== */
:root {
    /* Engana o sistema antigo reescrevendo a variável principal */
    --dhl: #003B73 !important;           /* Deep Ocean (Corporativo) */
    --zentrio-primary: #003B73 !important;
    --zentrio-accent: #007BFF !important; /* Electric Blue (Destaque/Ação) */
    --zentrio-lime: #007BFF !important;   /* Para compatibilidade, Electric Blue no lugar do Lime */
    --zentrio-bg-main: #FFFFFF !important;
    --zentrio-bg-sub: #E6F0FF !important;  /* Ice Gray (Fundos Limpos) */
    --zentrio-border: #D1E6FF !important;   /* Cloud Gray (Bordas) */
    --zentrio-text-main: #003B73 !important; /* Texto principal (Deep Ocean) */
}

/* 1. Global: Textos, Fundo e Título */
body {
    background-color: var(--zentrio-bg-sub) !important;
    color: var(--zentrio-text-main) !important;
}

#txt-projeto-nome {
    color: var(--zentrio-primary) !important;
    font-weight: 900 !important;
}

/* 2. Ícones da Sidebar, Tela Vazia e Badge Local */
.asset-thumb-mini i, .welcome-icon i, .badge-local i {
    color: var(--zentrio-primary) !important;
}
.asset-card.active {
    border-left-color: var(--zentrio-primary) !important;
    background-color: #f8fafc !important;
}
.asset-card.active .proj-title {
    color: var(--zentrio-primary) !important;
}

/* 3. Abas e Navegação (Estilo Mestre dos Controles) */
#master-control-card {
    background-color: white !important;
    border-bottom: 3px solid var(--zentrio-accent) !important; /* Destaque em Electric Blue */
}
.tab-btn {
    color: var(--zentrio-text-main) !important;
}
.tab-btn.active {
    background-color: var(--zentrio-primary) !important;
    color: white !important;
}
.tab-btn.active i {
    color: white !important; /* Ícones brancos sobre fundo escuro */
}
.tab-btn:hover {
    color: var(--zentrio-accent) !important;
}

/* 4. Telemetria e Alertas */
#alerta-telemetria {
    color: var(--zentrio-primary) !important;
    background: var(--zentrio-bg-sub) !important;
    border: 1px solid var(--zentrio-accent) !important;
}

/* =====================================================================
   ZENTRIO DYNAMIC DARK THEME (Ativado via Toggle)
   ===================================================================== */
body.dark-theme {
    /* Paleta Cyber/Neon */
    --bg-dark-base: #060B19 !important;
    --bg-dark-panel: #0F172A !important;
    --bg-dark-input: #1E293B !important;
    --zentrio-neon: #00D4FF !important;
    --text-dark-main: #F8FAFC !important;
    --text-dark-muted: #94A3B8 !important;
    --border-dark: #1E293B !important;
    
    background-color: var(--bg-dark-base) !important;
    color: var(--text-dark-main) !important;
}

/* 🎨 SCROLLBARS ESCURAS (Mata as linhas brancas grossas) */
body.dark-theme ::-webkit-scrollbar { width: 8px !important; height: 8px !important; }
body.dark-theme ::-webkit-scrollbar-track { background: var(--bg-dark-base) !important; }
body.dark-theme ::-webkit-scrollbar-thumb { background: var(--bg-dark-input) !important; border-radius: 4px; }
body.dark-theme ::-webkit-scrollbar-thumb:hover { background: var(--zentrio-neon) !important; }

/* 🌑 FUNDO TOTAL: Cobre todos os "buracos brancos" da tela */
body.dark-theme,
body.dark-theme .main-app,
body.dark-theme .app-body,
body.dark-theme .viewport,
body.dark-theme #main-content-area,
body.dark-theme .main-grid,
body.dark-theme .comparator-view,
body.dark-theme .ia-report-view,
body.dark-theme .rdo-view,
body.dark-theme .live-view,
body.dark-theme .pagination-area {
    background-color: var(--bg-dark-base) !important;
}

/* Painéis Superiores */
/* 🌑 CORRIGE A BARRA BRANCA DAS CIDADES (Sobrescreve o JS) */
body.dark-theme #global-city-selector-wrapper {
    background-color: var(--bg-dark-panel) !important;
    border-bottom: 1px solid var(--border-dark) !important;
}
body.dark-theme .sidebar, 
body.dark-theme .project-top-bar, 
body.dark-theme .master-control-card, 
body.dark-theme .tabs-navbar, 
body.dark-theme #weather-widget,
body.dark-theme .welcome-empty-state {
    background-color: var(--bg-dark-panel) !important;
    border-color: var(--border-dark) !important;
    color: var(--text-dark-main) !important;
}

body.dark-theme .project-top-bar {
    border-bottom: 2px solid var(--zentrio-neon) !important;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.15) !important;
}

body.dark-theme #txt-projeto-nome { color: var(--text-dark-main) !important; }

/* 🚀 CARTÕES DA SIDEBAR (Fundo mais claro e textos MAIORES) */
body.dark-theme .asset-card {
    background-color: var(--bg-dark-panel) !important; /* Deixou de ser escuro total */
    border-color: var(--border-dark) !important;
    padding: 15px 12px !important; /* Dá mais espaço interno */
}
body.dark-theme .asset-card:hover, body.dark-theme .asset-card.active {
    background-color: var(--bg-dark-input) !important;
    border-left: 4px solid var(--zentrio-neon) !important;
}
/* Aumenta o tamanho dos textos na Sidebar */
body.dark-theme .asset-card .proj-title { 
    color: var(--text-dark-main) !important; 
    font-size: 15px !important; /* Letra Maior */
    font-weight: 800 !important;
}
body.dark-theme .asset-card .proj-city {
    color: var(--text-dark-muted) !important;
    font-size: 11px !important; /* Subtítulo Maior */
}
body.dark-theme .asset-thumb-mini { background-color: var(--bg-dark-input) !important; }
body.dark-theme .asset-thumb-mini i { color: var(--zentrio-neon) !important; font-size: 22px !important; }

/* =====================================================================
   AJUSTES GLOBAIS DE TAMANHO (LOGO E SIDEBAR) - CLARO E ESCURO
   ===================================================================== */

/* 1. Quebrando a trava antiga e forçando a Logo a crescer */
.top-header .mini-logo {
    height: 55px !important;
    max-height: none !important;
    width: auto !important;
}

/* 2. Unificando e aumentando a fonte da Sidebar para os DOIS temas */
.asset-card {
    padding: 18px 15px !important; /* Cartão mais alto e com mais respiro */
}

.asset-card .proj-title {
    font-size: 16px !important; /* Nome do projeto bem maior */
    font-weight: 900 !important; /* Mais gordinho/destacado */
}

.asset-card .proj-city {
    font-size: 12px !important; /* Subtítulo maior */
    margin-top: 4px !important;
}

.asset-thumb-mini i {
    font-size: 24px !important; /* Ícone do prédio maior para acompanhar a letra */
}

/* ===================================================================== */
/* 📱 AJUSTES DE RESPONSIVIDADE (MOBILE VIP - FORÇA BRUTA)               */
/* ===================================================================== */

@media (max-width: 768px) {
    
    /* 1. ANQUILAÇÃO TOTAL DAS BARRAS DE ROLAGEM NO CELULAR */
    ::-webkit-scrollbar {
        display: none !important;
        height: 0px !important;
        width: 0px !important;
    }
    * {
        scrollbar-width: none !important;
    }

    /* 2. SALVA O TEXTO DAS FOTOS (Impede de cair sobre os dias) */
    #photo-count-badge {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        text-align: center !important;
        margin-top: 15px !important;
        margin-bottom: 15px !important;
        clear: both !important;
    }

    /* 3. BOTÃO BUSCAR (Ocupa a tela toda para ficar fácil de clicar) */
    #btn-filter {
        width: 100% !important;
        margin-top: 10px !important;
    }

    /* 4. DIAS DO MÊS (01, 02...) (Quebram de linha perfeitamente) */
    #available-days {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin-top: 10px !important;
    }
    @media (max-width: 768px) {
    /* FORÇA O SITE A MORRER NA LARGURA DA TELA */
    html, body {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        position: relative !important;
    }

    /* AJUSTA OS BOTÕES DE CÂMERA (Britagem, etc) */
    /* Substitua pelo ID ou classe real se for diferente */
    .cam-btn, .camera-selector-container button {
        max-width: 140px !important; /* Limita o tamanho do botão */
        font-size: 11px !important;    /* Diminui um pouco a letra no mobile */
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}
}
@media (max-width: 768px) {
    /* 1. IMPEDE O SITE DE "SAMBAR" PARA OS LADOS */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative !important;
    }

    /* 2. FAZ A BARRA DE DIAGNÓSTICO QUEBRAR LINHA (IMPORTANTE!) */
    .diagnostico-bar, .status-container, .parametros-row { 
        display: flex !important;
        flex-wrap: wrap !important; /* Faz os itens descerem se não couberem */
        justify-content: center !important;
        gap: 10px !important;
        width: 100% !important;
    }

    /* 3. AJUSTA OS BOTÕES QUE ESTÃO EMPURRANDO A TELA */
    .cam-btn, .btn-acao {
        flex: 1 1 40% !important; /* Deixa os botões em 2 por linha no celular */
        min-width: 120px !important;
    }

    /* 4. AJUSTA OS CARDS DE PROJETO NO TOPO */
    .projeto-card {
        width: 90% !important;
        margin: 10px auto !important;
    }
}

/* CAMISA DE FORÇA PARA MOBILE */
@media (max-width: 768px) {
    /* 1. Impede o scroll lateral no corpo do site */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative !important;
    }

    /* 2. FORÇA O MENU DE ABAS A QUEBRAR LINHA */
    .tabs-container, .abas-menu, nav { 
        display: flex !important;
        flex-wrap: wrap !important; /* Mágica: se não couber, ele desce */
        width: 100% !important;
        justify-content: center !important;
    }

    /* 3. FORÇA O DIAGNÓSTICO A FICAR COMPACTO */
    .diagnostico-bar, .status-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; /* Divide em 2 colunas */
        gap: 10px !important;
        width: 95% !important;
        margin: 0 auto !important;
    }

    /* 4. BOTÕES DE CÂMERA (Britagem, etc) */
    .camera-selector, #camera-selector {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .cam-btn {
        flex: 1 1 40% !important; /* Garante 2 por linha */
        margin: 4px !important;
    }
}

@media (max-width: 768px) {
    /* 1. Força o menu a quebrar em várias linhas */
    .tabs-container, .abas-menu, nav, .menu-superior { 
        display: flex !important;
        flex-wrap: wrap !important; 
        justify-content: center !important;
        gap: 5px !important;
        width: 100% !important;
        padding: 10px 0 !important;
    } 

    /* 2. Deixa os botões do menu menores no celular */
    .tabs-container button, .tab-btn {
        flex: 1 1 auto !important;
        min-width: 100px !important;
        font-size: 12px !important;
        padding: 8px !important;
    }

    /* 3. Mata qualquer chance de o site ficar largo */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative !important;
    }
}

/* ===================================================================== */
/* 📱 AJUSTE EXCLUSIVO PARA TELA DE LOGIN (MOBILE)                       */
/* ===================================================================== */
@media (max-width: 768px) {
    /* Centraliza o formulário e remove o split lateral torto */
    .login-split {
        flex-direction: column !important;
        overflow-y: auto !important;
    }

    /* Esconde a imagem de fundo no mobile para o formulário aparecer */
    .login-visual {
        display: none !important;
    }

    /* Faz o lado do formulário ocupar a tela inteira */
    .login-form-side {
        flex: 1 !important;
        width: 100% !important;
        padding: 40px 20px !important;
        background: white !important;
    }

    /* GARANTE QUE A LOGO APAREÇA E FIQUE CENTRALIZADA */
    .login-logo-black {
    width: 420px !important; /* Aumentado de 250px para 320px */
    height: auto;
    display: block;
    margin: 0 auto 30px auto; /* Mantém centralizado com bom espaçamento */
    transition: transform 0.3s ease;

    }
}

/* Ajuste da Nova Logo Synvix */
.login-logo-black {
    width: 250px; /* Tamanho ideal para a marca aparecer bem */
    height: auto;
    display: block;
    margin: 0 auto 30px auto;
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.1)); /* Dá um leve destaque */
}

@media (max-width: 768px) {
    .login-logo-black {
        width: 380px !important; /* Um pouco menor no celular para caber o teclado */
        margin-bottom: 20px !important;
    }
}

/* ===================================================================== */
/* TEMA ESCURO (DARK MODE PREMIUM) */
/* ===================================================================== */

/* Fundo Geral */
body.dark-theme {
    background-color: #0f172a;
    color: #f8fafc;
}

/* Barras do Topo e Lateral */
.dark-theme .top-header,
.dark-theme .sidebar {
    background-color: #1e293b;
    border-color: #334155;
}

/* Cartões de Projeto (Lateral) */
.dark-theme .asset-card {
    background-color: #0f172a;
    border: 1px solid #334155;
}
.dark-theme .asset-card:hover {
    background-color: #334155;
}
.dark-theme .asset-card.active {
    background-color: var(--dhl, #FF6200);
    border-color: var(--dhl, #FF6200);
}
.dark-theme .asset-info .proj-title {
    color: #f8fafc;
}
.dark-theme .asset-info .proj-city {
    color: #94a3b8 !important;
}

/* Títulos e Textos Principais */
.dark-theme .project-top-bar h1,
.dark-theme .welcome-empty-state h2 {
    color: #f8fafc;
}
.dark-theme .welcome-empty-state p {
    color: #94a3b8;
}
.dark-theme .welcome-icon {
    color: #334155;
}

/* Abas (Imagens, Vídeos, RDO...) */
.dark-theme .tabs-navbar {
    background-color: #1e293b;
    border-bottom: 1px solid #334155;
}
.dark-theme .tab-btn {
    color: #94a3b8;
    background-color: transparent;
}
.dark-theme .tab-btn:hover {
    color: #f8fafc;
}
.dark-theme .tab-btn.active {
    color: var(--dhl, #FF6200);
    border-bottom: 3px solid var(--dhl, #FF6200);
    background-color: transparent !important; /* Remove o fundo azul estranho do print */
}

/* Painel de Controles Central */
.dark-theme .master-control-card {
    background-color: #1e293b;
    border: 1px solid #334155;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.dark-theme .control-label {
    color: #94a3b8;
}

/* Seletores de Câmera */
.dark-theme .cam-btn {
    background-color: #0f172a;
    color: #cbd5e1;
    border: 1px solid #334155;
}
.dark-theme .cam-btn.active {
    background-color: var(--dhl, #FF6200);
    color: #ffffff;
    border-color: var(--dhl, #FF6200);
}

/* Inputs de Data, Hora e Selects */
.dark-theme .date-input, 
.dark-theme .select-input, 
.dark-theme .comp-date, 
.dark-theme .comp-select {
    background-color: #0f172a;
    color: #f8fafc;
    border: 1px solid #334155;
}
.dark-theme .action-group {
    background-color: #0f172a;
    border: 1px solid #334155;
}

/* Cartões de Fotos e Vídeos no Grid */
.dark-theme .img-card {
    background-color: #1e293b;
    border: 1px solid #334155;
}
.dark-theme .card-meta {
    color: #cbd5e1;
}

/* Botões da Topbar (Ícone do Modo Escuro e Perfil) */
.dark-theme .btn-support {
    color: #cbd5e1;
}
.dark-theme .btn-support:hover {
    background-color: #334155;
}
.dark-theme .user-name {
    color: #f8fafc;
}
.dark-theme #weather-widget {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}
/* =====================================================================
   📱 RESPONSIVIDADE COMPLETA — REFATORAÇÃO DEFINITIVA
   Substitui os blocos mobile duplicados e conflitantes acima.
   Aplica layout fluido para mobile (≤ 600px), tablet (601–900px),
   desktop médio (901–1200px) e desktop grande (≥ 1201px).
   ===================================================================== */

/* -----------------------------------------------------------------------
   BASE RESET — garante que nada ultrapasse a viewport
   ----------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

img, video, iframe, canvas {
    max-width: 100%;
}

/* -----------------------------------------------------------------------
   DESKTOP GRANDE (≥ 1201px) — comportamento padrão já definido acima,
   apenas reforça alguns valores que podem ter sido sobrescritos.
   ----------------------------------------------------------------------- */
@media (min-width: 1201px) {
    .sidebar { width: 300px; }
    .master-control-card { max-width: 1100px; }
    .main-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}

/* -----------------------------------------------------------------------
   DESKTOP MÉDIO (901px – 1200px)
   ----------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .sidebar { width: 240px; }
    .master-control-card { width: 95%; padding: 20px 25px; }
    .main-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; padding: 0 25px 10px; }
    .project-top-bar { padding: 20px 25px 12px; }
    .tabs-navbar { padding: 0 25px; }
    .comparator-view, .ia-report-view, .rdo-view { padding: 0 25px 30px; }
    .btn-support span { display: none; }
}

/* -----------------------------------------------------------------------
   TABLET (601px – 900px)
   ----------------------------------------------------------------------- */
@media (max-width: 900px) {
    /* Layout principal vira coluna */
    .app-body {
        flex-direction: column;
    }

    /* Sidebar horizontal com scroll */
    .sidebar {
        width: 100%;
        max-height: 160px;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 8px 0;
        flex-shrink: 0;
    }
    .asset-list-vertical {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        padding: 0 10px;
        gap: 8px;
    }
    .asset-card {
        min-width: 220px;
        flex-shrink: 0;
        margin: 4px 0;
        transform: none !important;
    }

    /* Header */
    .top-header { padding: 0 15px; }
    .top-header img[alt="Synvix"] { width: 110px !important; }
    .header-right-actions { gap: 10px; }
    .btn-support span { display: none; }

    /* Topo do projeto */
    .project-top-bar {
        padding: 15px 20px 10px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .project-top-bar h1 { font-size: 22px; }

    /* Abas */
    .tabs-navbar {
        padding: 0 10px;
        gap: 4px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .tab-btn {
        flex: 1 1 calc(33% - 8px);
        min-width: 90px;
        font-size: 11px;
        padding: 12px 6px;
        white-space: normal;
        text-align: center;
        justify-content: center;
        border-bottom: 3px solid transparent;
    }

    /* Painel de controles */
    .master-control-card {
        width: 96%;
        margin: 15px auto;
        padding: 18px;
        border-radius: 14px;
    }
    .control-flex-panel {
        flex-direction: column;
        align-items: stretch;
    }
    .control-block { width: 100%; }
    .action-group, .comp-input-group {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
        height: auto;
        padding: 10px;
    }
    .date-input, .select-input { flex: 1 1 auto; }
    .btn-primary {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 8px;
        height: 42px;
    }
    .photo-count-badge {
        width: 100%;
        justify-content: center;
        margin: 8px 0 0;
    }
    .compare-side-by-side {
        flex-direction: column;
        gap: 12px;
    }
    .rdo-btns-mobile {
        flex-wrap: wrap;
        width: 100%;
    }
    .rdo-btns-mobile button {
        flex: 1 1 calc(50% - 5px);
        min-width: 120px;
        justify-content: center;
    }

    /* Grid de imagens */
    .main-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
        padding: 0 15px 10px;
    }

    /* Comparador */
    .image-compare-container {
        aspect-ratio: 4/3;
        border-radius: 10px;
    }
    .comparator-view, .ia-report-view, .rdo-view {
        padding: 0 15px 30px;
    }

    /* Câmeras */
    .pill-group { gap: 6px; }
    .cam-btn, .day-chip {
        flex: 1 1 calc(50% - 6px);
        max-width: none;
        justify-content: center;
    }

    /* Live VMS */
    .vms-layout { flex-direction: column; }
    .vms-map-section { min-height: 320px; }
    .vms-floating-list { position: relative; top: auto; right: auto; width: 100%; max-height: 300px; border-radius: 12px; margin-top: 10px; }

    /* IA Report */
    .ia-evidence-grid { flex-direction: column; }
    .ia-report-card { border-radius: 12px; }
    .ia-text-body { padding: 0 15px 20px; }

    /* RDO documento */
    .rdo-document { padding: 25px; }
    .rdo-doc-header { flex-direction: column; gap: 15px; }
    .rdo-meta-block { text-align: left; width: 100%; }
    .rdo-info-grid { grid-template-columns: 1fr; }
    .rdo-clima-grid { grid-template-columns: 1fr 1fr; }
    .rdo-doc-gallery { grid-template-columns: 1fr 1fr; }
    .rdo-row { flex-direction: column; }
}

/* -----------------------------------------------------------------------
   MOBILE (≤ 600px)
   ----------------------------------------------------------------------- */
@media (max-width: 600px) {
    /* Header compacto */
    .top-header { height: 56px; padding: 0 12px; }
    .top-header img[alt="Synvix"] { width: 90px !important; }
    .main-app { padding-top: 56px; }
    .user-name { display: none; }
    .btn-support { padding: 6px 10px; border-radius: 50%; }
    .header-right-actions { gap: 6px; }

    /* Sidebar horizontal mais compacta */
    .sidebar { max-height: 130px; }
    .asset-card { min-width: 180px; padding: 10px 10px !important; }
    .asset-card .proj-title { font-size: 12px !important; }
    .asset-card .proj-city { font-size: 10px !important; }
    .asset-thumb-mini { width: 38px; height: 38px; }

    /* Topo do projeto */
    .project-top-bar { padding: 12px 12px 8px; }
    .project-top-bar h1 { font-size: 17px; letter-spacing: -0.3px; }
    .badge-local { font-size: 11px; padding: 4px 10px; }

    /* Abas — 3 por linha */
    .tabs-navbar { padding: 6px 8px; gap: 4px; }
    .tab-btn {
        flex: 1 1 calc(33% - 4px);
        min-width: 70px;
        font-size: 9px;
        padding: 9px 4px;
        gap: 4px;
    }
    .tab-btn i { font-size: 12px; }

    /* Painel de controles */
    .master-control-card { width: 100%; margin: 10px 0; border-radius: 0; border-left: none; border-right: none; padding: 15px 12px; }
    .control-label { font-size: 9px; }
    .cam-btn, .day-chip {
        flex: 1 1 calc(50% - 4px);
        font-size: 10px;
        padding: 8px 10px;
    }
    .btn-primary { font-size: 11px; padding: 0 16px; }
    #rdo-date-picker { font-size: 12px; }

    /* Dias do mês */
    #available-days { gap: 5px; }
    #available-days .day-chip { flex: 0 0 auto; min-width: 44px; padding: 8px; font-size: 11px; }

    /* Grid — 1 coluna */
    .main-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 10px 10px;
    }
    .img-card img, .img-card video { height: 180px; }

    /* Comparador */
    .image-compare-container { aspect-ratio: 1/1; border-radius: 8px; }
    .comparator-view, .ia-report-view, .rdo-view { padding: 0 10px 20px; }
    .slider-hint { font-size: 12px; }

    /* Lightbox */
    .lightbox-toolbar { padding: 10px 12px; }
    .lb-title { font-size: 12px; max-width: 45vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .lb-icon-btn { width: 34px; height: 34px; font-size: 14px; }
    .zoom-hint { font-size: 11px; padding: 7px 14px; bottom: 15px; }

    /* Modal RDO */
    #modal-novo-rdo > div { margin-top: 0; border-radius: 0; min-height: 100vh; }
    #modal-novo-rdo > div > div:nth-child(2) {
        grid-template-columns: 1fr 1fr !important;
    }
    #modal-novo-rdo { padding: 0; align-items: flex-start; }

    /* Modal câmera */
    #modalConfigCamera > div { width: 96%; padding: 20px; }

    /* IA Report */
    .ia-evidence-box img { height: 160px; }
    .ia-text-body h4 { font-size: 13px; }
    .ia-text-body p { font-size: 12px; }
    .ia-report-header { padding: 15px; flex-direction: column; gap: 10px; }
    .ia-header-left { font-size: 13px; }

    /* RDO documento */
    .rdo-document { padding: 15px; }
    .rdo-clima-grid { grid-template-columns: 1fr; }
    .rdo-doc-gallery { grid-template-columns: 1fr; }
    .rdo-table { font-size: 11px; }
    .rdo-table th, .rdo-table td { padding: 8px 6px; }

    /* Paginação */
    .pagination-area { padding: 15px 10px 40px; }
    .btn-load-more { width: 100%; justify-content: center; }

    /* Formulário RDO — campos de hora/clima em 2 colunas */
    #modal-novo-rdo [style*="grid-template-columns: 1fr 1fr 1fr 1.2fr"] {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Botões de ação do RDO */
    .rdo-btns-mobile { width: 100%; }
    .rdo-btns-mobile button { width: 100%; justify-content: center; }

    /* Login — logo maior e bem visível */
    .login-visual { display: none !important; }
    .login-form-side { flex: 1; width: 100%; padding: 30px 20px; }
    .login-logo-black { width: 200px !important; margin: 0 auto 25px; }
    .form-header h3 { font-size: 22px; }
    .input-with-icon input { padding: 14px 14px 14px 40px; font-size: 13px; }
    .btn-login-modern { padding: 15px; font-size: 14px; }

    /* Timeline */
    .timeline-bar-wrapper { padding: 0 10px; }

    /* VMS ao vivo */
    .vms-cam-title { font-size: 15px; }
    .vms-dvr-controls { padding: 0 5px; }
    .vms-floating-list { width: 100%; }

    /* Modal perfil */
    #modal-perfil-cliente > div { width: 96%; padding: 20px; }
}

/* -----------------------------------------------------------------------
   MOBILE PEQUENO (≤ 380px) — phones antigos ou estreitos
   ----------------------------------------------------------------------- */
@media (max-width: 380px) {
    .tab-btn {
        flex: 1 1 calc(50% - 4px); /* 2 por linha se 3 não couber */
        font-size: 8px;
    }
    .cam-btn, .day-chip { font-size: 9px; padding: 7px 8px; }
    .project-top-bar h1 { font-size: 15px; }
}

/* -----------------------------------------------------------------------
   TOUCH — melhora área de toque para botões pequenos em dispositivos touch
   ----------------------------------------------------------------------- */
@media (hover: none) and (pointer: coarse) {
    .tab-btn,
    .cam-btn,
    .day-chip,
    .btn-primary,
    .lb-icon-btn,
    .btn-support,
    .btn-load-more {
        min-height: 44px; /* Padrão recomendado Apple/Google */
    }
    .asset-card { cursor: pointer; }
    /* Remove hover que "empurra" cards no touch */
    .img-card:hover { transform: none; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
}

/* =====================================================================
   🍔 HAMBÚRGUER + OVERLAY + SIDEBAR DRAWER (Mobile)
   ===================================================================== */

/* Agrupa logo + hambúrguer à esquerda */
.header-left-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Botão hambúrguer — escondido no desktop */
.btn-sidebar-toggle {
    display: none;
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    flex-shrink: 0;
}
.btn-sidebar-toggle:hover { background: var(--dhl); color: white; border-color: var(--dhl); }

/* Overlay escuro atrás do drawer */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 800;
    border: none;
    cursor: pointer;
    backdrop-filter: blur(2px);
}

/* -----------------------------------------------------------------------
   Mobile: Sidebar vira drawer lateral deslizante
   ----------------------------------------------------------------------- */
@media (max-width: 600px) {
    /* Mostra o hambúrguer */
    .btn-sidebar-toggle { display: flex; }

    /* Sidebar some do fluxo e se torna drawer */
    .app-body { position: relative; overflow: hidden; }

    .sidebar {
        position: fixed;
        top: 56px; /* altura do header mobile */
        left: 0;
        width: 280px !important;
        max-height: none !important;
        height: calc(100vh - 56px);
        z-index: 900;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-right: 1px solid var(--border);
        border-bottom: none;
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    /* Overlay visível quando sidebar aberta */
    .sidebar-overlay.visible {
        display: block;
    }

    /* Lista volta a ser vertical no drawer */
    .asset-list-vertical {
        display: block !important;
        overflow-x: visible;
        padding: 10px 0;
    }
    .asset-card {
        min-width: auto !important;
        margin: 6px 12px !important;
    }

    /* Esconde botão de suporte no mobile */
    .btn-suporte-desktop { display: none; }
}

/* Dark theme para o hambúrguer */
body.dark-theme .btn-sidebar-toggle {
    background: var(--bg-dark-input);
    border-color: var(--border-dark);
    color: var(--text-dark-main);
}
body.dark-theme .btn-sidebar-toggle:hover {
    background: var(--zentrio-neon);
    color: #0f172a;
}

/* ===================================================================== */
/* 📱 PATCH DE RESPONSIVIDADE SEGURA (NÃO APAGAR O CÓDIGO ACIMA)         */
/* ===================================================================== */
@media (max-width: 768px) {
    /* 1. Trava o site para não "sambar" para os lados */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    /* 2. Resolve o Formulário do RDO que ficava esmagado em 4 colunas */
    div[style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* 3. Transforma todas as tabelas em "Deslizáveis" com o dedo */
    .logistica-view table, .rdo-table, table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* 4. Garante que os modais e botões cabem no ecrã do telemóvel */
    .modal-content, #modal-novo-rdo > div, #modal-novo-contrato > div {
        width: 95% !important;
        margin: 5% auto !important;
        padding: 15px !important;
    }
}

/* ===================================================================== */
/* 📱 PATCH DE RESGATE: MENU DE PROJETOS NO TOPO (CARROSSEL HORIZONTAL)  */
/* ===================================================================== */
@media (max-width: 768px) {
    /* 1. Cancela a "gaveta invisível" e traz a barra para o topo */
    .sidebar {
        position: relative !important;
        top: 0 !important;
        transform: translateX(0) !important;
        width: 100% !important;
        height: auto !important;
        max-height: 150px !important;
        overflow-y: hidden !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border) !important;
        box-shadow: none !important;
        padding: 10px 0 !important;
        z-index: 10 !important;
        display: block !important;
        background: var(--bg-dark-panel, #ffffff) !important;
    }

    /* 2. Força os cartões a ficarem lado a lado (Carrossel Horizontal) */
    .asset-list-vertical {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important; /* Deslize suave no iPhone */
        gap: 12px !important;
        padding: 0 15px !important;
    }

    /* 3. Garante que os cartões não fiquem esmagados */
    .asset-card {
        flex: 0 0 auto !important;
        min-width: 200px !important;
        margin: 0 !important;
        transform: none !important;
    }

    /* 4. Corrige o fluxo do site para os itens descerem normalmente */
    .app-body {
        flex-direction: column !important;
    }
}