[data-bs-theme=light] {
    /* --bs-app-bg-color: #f4f4f4;
    --bs-app-blank-bg-color: #f4f4f4; */
    .alert-success {
        color: #17C653;
        border-color: rgba(23, 198, 83, 0.25);
        background-color: rgba(23, 198, 83, 0.080);
    }
}

.badge-light-primary {
    color:#006AE6 !important;
}

.merchant-health-card {
    border: 1px solid #eef1f4;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(28, 35, 43, 0.06);
}

.merchant-health-ring {
    --score: 0;
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background: conic-gradient(#22c55e calc(var(--score) * 1%), #e9edf2 0);
    padding: 5px;
    display: grid;
    place-items: center;
}

.merchant-health-ring__inner {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.merchant-health-ring__value {
    font-weight: 700;
    font-size: 18px;
    color: #111827;
}

.merchant-health-ring__label {
    font-size: 10px;
    color: #6b7280;
    margin-top: 2px;
}

.merchant-health-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    display: inline-block;
}

.merchant-history-card {
    border: 1px solid #eef1f4;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(28, 35, 43, 0.06);
}

.merchant-history-progress {
    position: relative;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.merchant-history-progress__bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--progress, 0%);
    background: #111827;
    border-radius: 999px;
}

.merchant-history-stat {
    flex: 1 1 0;
    background: #f8fafc;
    border: 1px solid #eef1f4;
    border-radius: 12px;
    padding: 12px 14px;
}

.merchant-history-stat__label {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #94a3b8;
    font-weight: 700;
}

.merchant-history-stat__value {
    font-size: 14px;
    color: #111827;
    font-weight: 700;
    margin-top: 4px;
}

.merchant-financial-card {
    border: 1px solid #eef1f4;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(28, 35, 43, 0.06);
}

.merchant-financial-divider {
    height: 1px;
    background: #eef1f4;
    margin: 16px 0;
}

.merchant-sparkline {
    width: 86px;
    height: 28px;
    display: block;
}

.merchant-notes-card {
    border: 1px solid #eef1f4;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(28, 35, 43, 0.06);
}

.merchant-note-card {
    border: 1px solid #f6e8b1;
    background: #fff9e6;
    border-radius: 12px;
    padding: 16px;
    min-height: 100%;
}

.merchant-note-card__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #b45309;
    font-weight: 700;
}

.merchant-action-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-size: 11px;
    color: #111827;
}

.merchant-action-card__icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    font-size: 18px;
    background: #fff;
}

.merchant-action-card__label {
    font-size: 11px;
}

.compliance-card {
    border: 1px solid #eef1f4;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(28, 35, 43, 0.06);
}

.compliance-shield {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #94a3b8;
    display: grid;
    place-items: center;
    font-size: 18px;
}

.compliance-pill {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.08em;
    padding: 6px 12px;
    border-radius: 999px;
}

.compliance-pill--success {
    background: #e7f7ec;
    color: #15803d;
}

.compliance-pill--warning {
    background: #fff4e5;
    color: #c2410c;
}

.compliance-pill--danger {
    background: #fde8e8;
    color: #b91c1c;
}

.compliance-score-ring {
    --score: 0;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: conic-gradient(#22c55e calc(var(--score) * 1%), #e9edf2 0);
    padding: 8px;
    display: grid;
    place-items: center;
}

.compliance-score-ring__inner {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.compliance-score-ring__value {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.compliance-score-ring__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    font-weight: 700;
}

.compliance-progress {
    position: relative;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.compliance-progress__bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--progress, 0%);
    background: #22c55e;
    border-radius: 999px;
}

.compliance-progress--blue .compliance-progress__bar {
    background: #2563eb;
}

.compliance-doc-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #eef1f4;
    flex-wrap: wrap;
}

.compliance-doc-row:last-child {
    border-bottom: 0;
}

.compliance-doc-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 18px;
}

.doc-icon-blue {
    background: #e8f1ff;
    color: #2563eb;
}

.doc-icon-amber {
    background: #fff4e5;
    color: #d97706;
}

.doc-icon-red {
    background: #fde8e8;
    color: #dc2626;
}

.compliance-assessment-card {
    border: 1px solid #eef1f4;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
}

.compliance-note-card {
    border: 1px solid #eef1f4;
    border-radius: 12px;
    padding: 16px 16px 16px 20px;
    background: #f8fafc;
    position: relative;
}

.compliance-note-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 999px;
    background: #111827;
}

.compliance-note-input {
    position: relative;
}

.compliance-note-textarea {
    padding-right: 56px;
    border-radius: 12px;
    border: 1px solid #eef1f4;
}

.compliance-note-send {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    display: grid;
    place-items: center;
    padding: 0;
}

.framework-toolbar-tabs, 
.select2,  
.form-control, 
.jetbrains-mono {
    font-family: "JetBrains Mono", SFMono-Regular, Menlo, monospace;
    /* font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum", "zero";
    letter-spacing: 0.06em; */
}

/* iOS 15.2++ */
body {
  padding-top: env(safe-area-inset-top);
}