html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
}

.surface-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.kpi-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    height: 100%;
}

.kpi-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.kpi-value {
    font-size: 1.65rem;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    margin-top: 0.35rem;
}

.kpi-sub {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.num-tabular {
    font-variant-numeric: tabular-nums;
}

.code-chip {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e293b;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.status-pill.success {
    background-color: #dcfce7;
    color: #166534;
}

.status-pill.warning {
    background-color: #fef3c7;
    color: #92400e;
}

.status-pill.danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-pill.info {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-pill.neutral {
    background-color: #f1f5f9;
    color: #475569;
}

.modal-backdrop-custom {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1040;
}

.modal-dialog-custom {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.22);
    width: 100%;
    max-width: 520px;
    overflow: hidden;
}

.table > :not(caption) > * > * {
    vertical-align: middle;
}

.validation-message {
    color: #dc2626;
    font-size: 0.82rem;
    margin-top: 0.25rem;
}
