.est-stack { display: grid; gap: 15px; }
.est-form { max-width: 860px; }
.est-span { grid-column: 1 / -1; }
.est-table { overflow-x: auto; }
.est-nowrap { white-space: nowrap; }
.est-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.est-top { margin-top: 14px; }
.est-muted { color: var(--muted); }

.est-nav-badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#submenus a { display: flex; align-items: center; gap: 8px; }

.est-tanks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.est-tank-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; display: grid; gap: 8px; }
.est-tank-card.alerta { border-color: #fca5a5; background: #fef2f2; }
.est-tank-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.est-bar-bg { width: 100%; height: 12px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.est-bar-fill { height: 100%; border-radius: 999px; transition: width .2s; }

.est-state {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
    background: #e0f2fe;
    color: #0369a1;
}
.est-state.abierto { background: #dcfce7; color: #166534; }
.est-state.cerrado { background: #f1f5f9; color: #475569; }
.est-state.alerta { background: #fee2e2; color: #991b1b; }
.est-state.flota { background: #fef3c7; color: #92400e; }
.est-state.particular { background: #dbeafe; color: #1d4ed8; }

.est-facts dt, .est-balance dt { color: var(--muted); font-size: 13px; }
.est-facts dd, .est-balance dd { margin: 3px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.est-balance {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    border-top: 1px solid var(--line);
    padding: 12px 0 0;
    margin-bottom: 0;
}
.est-total { text-align: right; font-size: 18px; font-weight: 700; }

.est-print main { max-width: 520px; margin: auto; padding: 20px; }
.est-print-nav { margin-bottom: 16px; }
@media print {
    body.est-print { background: white; color: #000; }
    .est-print .panel { border: 0; box-shadow: none; padding: 0; }
    .est-print-nav { display: none; }
}
