/* assets/css/theme.css — shared design tokens & components (Healthcare / Enterprise look).
   Load after Bootstrap so these rules win over its defaults. */

@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700&display=swap');

:root {
    --kpi-bg:            #f8fafc;
    --kpi-surface:       #ffffff;
    --kpi-border:        #e2e8f0;
    --kpi-text:          #1e293b;
    --kpi-text-muted:    #64748b;
    --kpi-navy:          #1e293b;
    --kpi-navy-2:        #334155;
    --kpi-radius:        10px;
    --kpi-shadow-sm:     0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
}

body {
    background-color: var(--kpi-bg);
    color: var(--kpi-text);
    font-family: 'Sarabun', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Strategy group header ---------- */
.strategy-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: linear-gradient(135deg, var(--kpi-navy) 0%, var(--kpi-navy-2) 100%);
    color: #f8fafc;
    padding: 12px 18px;
    margin-top: 24px;
    margin-bottom: 0;
    border-radius: var(--kpi-radius) var(--kpi-radius) 0 0;
    box-shadow: var(--kpi-shadow-sm);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: .01em;
}
.strategy-header::before {
    content: '';
    width: 4px;
    height: 1.1em;
    border-radius: 2px;
    background: #38bdf8;
    flex-shrink: 0;
}
/* The card that follows a header joins it visually */
.strategy-header + .card {
    border-radius: 0 0 var(--kpi-radius) var(--kpi-radius);
    overflow: hidden;
    box-shadow: var(--kpi-shadow-sm) !important;
}

/* ---------- Org-type soft pill badges ---------- */
.badge-org {
    display: inline-block;
    padding: 2px 9px;
    margin: 1px 0;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
    cursor: default;
}
.badge-org-hosp    { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.badge-org-dho     { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.badge-org-pcu     { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.badge-org-default { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }

/* ---------- Uniform square icon buttons (table action column) ---------- */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    font-size: .85rem;
    border-radius: 6px;
}
