/* CapitalStore - capa visual corporativa */
:root {
    --cs-primary: #1e3a8a;
    --cs-primary-700: #1d4ed8;
    --cs-primary-soft: #eff6ff;
    --cs-bg: #f3f6fb;
    --cs-surface: #ffffff;
    --cs-border: #e5e7eb;
    --cs-text: #111827;
    --cs-muted: #64748b;
    --cs-success: #15803d;
    --cs-warning: #b45309;
    --cs-danger: #b91c1c;
    --cs-info: #0369a1;
}

html { background: var(--cs-bg); }
body { background: var(--cs-bg); color: var(--cs-text); }

.cs-app-header {
    background: linear-gradient(135deg, #172554 0%, #1d4ed8 100%);
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.cs-brand-mark {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: .85rem;
    background: rgba(255,255,255,.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.cs-icon {
    width: 1.15rem;
    min-width: 1.15rem;
    text-align: center;
    line-height: 1;
}

.cs-sidebar {
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.cs-sidebar-title {
    color: #334155;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.sidebar-link {
    border: 1px solid transparent;
    color: #334155;
}
.sidebar-link:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #1d4ed8;
}
.sidebar-link.bg-blue-100,
.sidebar-link.cs-active {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #1d4ed8 !important;
}

.cs-card, .bg-white.shadow, .bg-white.shadow-md, .bg-white.shadow-lg {
    border: 1px solid var(--cs-border);
    box-shadow: 0 14px 35px rgba(15, 23, 42, .07) !important;
}

.cs-kpi {
    border: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1rem;
    padding: 1rem;
}
.cs-kpi .cs-kpi-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #1d4ed8;
}

table {
    border-collapse: separate !important;
    border-spacing: 0;
}
thead th {
    background: #f8fafc !important;
    color: #475569 !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: .025em;
    font-size: .70rem !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
tbody tr:hover { background: #f8fafc; }
td, th { vertical-align: middle; }

button, .btn, a[class*="bg-blue"], input[type="submit"] {
    transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, border-color .12s ease;
}
button:hover, .btn:hover, input[type="submit"]:hover { transform: translateY(-1px); }

input, select, textarea {
    border-color: #cbd5e1 !important;
}
input:focus, select:focus, textarea:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .13) !important;
}

.cs-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    padding: .25rem .6rem;
    font-size: .72rem;
    font-weight: 700;
    border: 1px solid transparent;
    white-space: nowrap;
}
.cs-badge-pendiente { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.cs-badge-aprobado { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.cs-badge-confirmado { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.cs-badge-rechazado { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.cs-badge-neutral { background: #f8fafc; color: #475569; border-color: #e2e8f0; }

.cs-login-shell {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .16), transparent 35%),
        radial-gradient(circle at bottom right, rgba(30, 58, 138, .14), transparent 35%),
        #f3f6fb;
}
.cs-login-card {
    border: 1px solid rgba(226, 232, 240, .95);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .14) !important;
}

@media (max-width: 768px) {
    .cs-responsive-table { overflow-x: auto; }
    table { min-width: 760px; }
}
