@import url('https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@3.31.0/dist/tabler-icons.min.css');

/* ============================================================
   mobile.css — estilos exclusivos para o layout mobile
   Colocar em: Ativos/mobile.css
   ============================================================ */

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

.m-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; position: fixed; top: 0; left: 0; right: 0; z-index: 100;
}
.m-nav {
    display: flex; overflow-x: auto; background: white;
    border-bottom: 0.5px solid #e5e7eb; scrollbar-width: none;
    position: fixed; top: 52px; left: 0; right: 0; z-index: 99;
}
.m-nav::-webkit-scrollbar { display: none; }
.m-nav-tab {
    padding: 10px 14px; font-size: 11px; font-weight: 500;
    color: #9ca3af; white-space: nowrap; border-bottom: 2px solid transparent;
    text-decoration: none; display: block;
}
.m-nav-tab.ativo { font-weight: 600; }
.m-content { padding: 12px; max-width: 480px; margin: 0 auto; padding-top: 108px; }
.m-sec {
    font-size: 10px; font-weight: 700; color: #9ca3af;
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-bottom: 8px; margin-top: 4px;
}
.m-g2 {
    display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px; margin-bottom: 12px;
}
.m-card {
    background: white; border-radius: 10px;
    border: 0.5px solid #e5e7eb; padding: 10px 12px;
}
.m-metric {
    background: #f8fafc; border-radius: 8px; padding: 10px 12px;
}
.m-metric-lbl { font-size: 11px; color: #9ca3af; margin-bottom: 4px; }
.m-metric-val { font-size: 16px; font-weight: 600; line-height: 1; }
.m-metric-sub { font-size: 10px; color: #9ca3af; margin-top: 3px; }
.m-bar {
    height: 3px; border-radius: 99px; background: #f3f4f6;
    overflow: hidden; margin-top: 6px;
}
.m-bar-fill { height: 100%; border-radius: 99px; }
.m-divider { height: 0.5px; background: #e5e7eb; margin: 10px 0; }
.m-chips {
    display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
    margin-bottom: 10px; padding-bottom: 2px;
}
.m-chips::-webkit-scrollbar { display: none; }
.m-chip {
    background: #f8fafc; border: 0.5px solid #e5e7eb; border-radius: 99px;
    padding: 5px 12px; font-size: 11px; color: #6b7280; white-space: nowrap; cursor: pointer;
}
.m-chip.sel { font-weight: 600; }
.m-list-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 0; border-bottom: 0.5px solid #f0f0f0;
}
.m-list-row:last-child { border-bottom: none; }
.m-list-nome { font-size: 12px; font-weight: 600; color: #1e293b; }
.m-list-sub { font-size: 10px; color: #9ca3af; }
.m-badge {
    font-size: 10px; font-weight: 600; padding: 2px 8px;
    border-radius: 99px; display: inline-block;
}
.m-ver-mais {
    text-align: center; padding: 8px 0; font-size: 11px;
    color: #185FA5; cursor: pointer;
}
.m-periodo {
    background: #E3F2FD; border-radius: 8px; padding: 7px 12px;
    font-size: 11px; color: #0C447C; display: flex;
    align-items: center; justify-content: space-between; margin-bottom: 10px;
}
.m-alerta {
    border-radius: 8px; padding: 10px 12px; margin-bottom: 10px;
    display: flex; gap: 8px; align-items: flex-start;
}
.m-sync-btn {
    background: rgba(255,255,255,0.2); border: 0.5px solid rgba(255,255,255,0.4);
    color: white; font-size: 10px; font-weight: 600; padding: 5px 10px;
    border-radius: 6px; cursor: pointer; text-decoration: none;
}
.m-empresa-card {
    background: white; border-radius: 10px;
    border: 0.5px solid #e5e7eb; padding: 10px 12px; margin-bottom: 8px;
}
.m-prod-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0; border-bottom: 0.5px solid #f0f0f0;
}
.m-prod-row:last-child { border-bottom: none; }
.m-prod-img {
    width: 40px; height: 40px; border-radius: 6px; object-fit: contain;
    background: #f8fafc; border: 0.5px solid #e5e7eb; flex-shrink: 0;
}

/* ── Drawer mobile (menu hamburguer) ─────────────────────── */
.m-drawer-overlay {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; background: rgba(0,0,0,0.4);
    z-index: 9998;
}
.m-drawer-overlay.aberto { display: block; }
.m-drawer {
    position: fixed; top: 0; left: -280px; width: 260px; height: 100%;
    background: white; z-index: 9999; transition: left 0.25s ease;
    box-shadow: 2px 0 12px rgba(0,0,0,0.15); overflow-y: auto; padding: 20px 16px;
}
.m-drawer.aberto { left: 0; }
.m-drawer-header { font-size: 16px; font-weight: 700; color: #1e293b; margin-bottom: 20px; }
.m-drawer-item {
    display: flex; align-items: center; gap: 10px; padding: 12px 8px;
    font-size: 14px; color: #374151; border-radius: 8px; text-decoration: none;
    margin-bottom: 4px;
}
.m-drawer-item:hover { background: #f8fafc; }
.m-drawer-item.ativo { background: #EAF3DE; color: #0F6E56; font-weight: 600; }