/* Cabecalho de pagina */
.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}
.page-title { font-size: 22px; font-weight: 700; }
.page-subtitle { font-size: 13px; color: var(--text-muted); }

/* Grid */
.grid {
    display: grid;
    gap: 16px;
}
.grid-cards { grid-template-columns: repeat(4, 1fr); }
.grid-charts { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1200px) { .grid-charts { grid-template-columns: 1fr; } }
@media (max-width: 992px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-cards { grid-template-columns: 1fr; } }

/* Card */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 16px;
}
.card-header {
    padding: 12px 16px;
    background: #343A40;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}
.card-body { padding: 16px; }
.card-body.no-pad { padding: 0; }

/* InfoBox (cards de indicadores, reaproveita o HTML do desktop) */
.infoBox {
    display: flex;
    align-items: stretch;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    min-height: 95px;
}
.infoBox .info-box-icon {
    display: flex; align-items: center; justify-content: center;
    width: 70px; font-size: 28px;
}
.fb-inline-field-container { width: 100%; }

/* Tabela */
.table-container { overflow-x: auto; }
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.table thead th {
    background: #f7f9fb;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    white-space: nowrap;
}
.table tbody td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--border-color);
}
.table tbody tr:hover { background: #f9fbfd; }

/* Badges */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}
.badge-success { background: var(--color-success); }
.badge-warning { background: #E1A100; }
.badge-danger { background: var(--color-danger); }
.badge-modem { background: #00A65A; }

/* Alertas */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
}
.alert-danger { background: #FDECEA; color: #B02A37; border: 1px solid #F5C2C7; }

/* Botoes */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.15s;
}
.btn:hover { filter: brightness(0.95); }
.btn-primary { background: var(--color-primary); color: #fff; }

/* Grafico */
.chart { width: 100%; height: 240px; }
