/* ============================================================
   Gestión Dominios — Estilos propios
   Bootstrap 5 se encarga del 95%; aquí solo lo imprescindible.
   ============================================================ */

/* ── Layout sidebar ─────────────────────────────────────────── */
#app-wrapper {
    min-height: 100vh;
}

#sidebar {
    width: 240px;
    min-height: 100vh;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

#content {
    min-width: 0; /* evita desbordamiento en flex */
    background-color: #f8f9fa;
}

/* ── Sidebar nav links ───────────────────────────────────────── */
#sidebar .nav-link {
    color: #adb5bd;
    border-radius: 6px;
    padding: 0.45rem 0.75rem;
    font-size: 0.9rem;
    transition: background 0.15s, color 0.15s;
}

#sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

#sidebar .nav-link.active {
    background-color: #0d6efd;
    color: #fff;
}

#sidebar .nav-link i {
    width: 1.1em;
    text-align: center;
}

.nav-section-label {
    letter-spacing: 0.05em;
    font-size: 0.7rem;
}

.sidebar-brand {
    font-size: 1rem;
}

.sidebar-footer {
    font-size: 0.85rem;
}

/* ── Topbar ──────────────────────────────────────────────────── */
.topbar {
    height: 48px;
    min-height: 48px;
    font-size: 0.9rem;
}

/* ── Tarjetas de resumen (dashboard / facturación) ───────────── */
.stat-card {
    border-left: 4px solid;
    border-radius: 6px;
}

.stat-card.primary   { border-left-color: #0d6efd; }
.stat-card.success   { border-left-color: #198754; }
.stat-card.danger    { border-left-color: #dc3545; }
.stat-card.warning   { border-left-color: #ffc107; }
.stat-card.info      { border-left-color: #0dcaf0; }

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

/* ── Tablas ──────────────────────────────────────────────────── */
.table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
    font-size: 0.9rem;
}

/* Columnas de dinero alineadas a la derecha */
.text-money {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ── Formularios ─────────────────────────────────────────────── */
.form-label {
    font-size: 0.875rem;
    font-weight: 500;
}

/* ── Filtros ─────────────────────────────────────────────────── */
.filter-bar {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

/* ── Badges de estado ────────────────────────────────────────── */
.badge-propio  { background-color: #0d6efd; }
.badge-cliente { background-color: #6f42c1; }

/* ── Pantalla de login ───────────────────────────────────────── */
.login-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 400px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.login-logo {
    font-size: 2.5rem;
    color: #0d6efd;
}

/* ── Grupos de tabla en facturación ─────────────────────────── */
.group-header {
    background-color: #e9ecef;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.subtotal-row {
    background-color: #f8f9fa;
    font-weight: 500;
}

.total-row {
    background-color: #212529;
    color: #fff;
    font-weight: 700;
}

/* ── Utilidades ──────────────────────────────────────────────── */
.cursor-pointer { cursor: pointer; }
.fs-xs { font-size: 0.78rem; }
