:root {
    --primary: #032161;
    --mmc-teal: #032161;
    --mmc-cyan: #04befb;
    --mmc-border: #dbe8f4;
    --bs-primary: #032161;
    --bs-primary-rgb: 3, 33, 97;
    --bs-link-color: #032161;
    --bs-link-hover-color: #03558b;
}

body.mmc-app { background: #f5f9fd; color: #142b4f; }
.mmc-header { border-bottom: 2px solid #04befb; box-shadow: 0 4px 18px #0321610d; }
.mmc-nav-container { padding-top: 10px; padding-bottom: 10px; }
.mmc-brand.mmc-brand-named { flex: 0 0 205px; width: 205px; gap: 2px; }
.mmc-brand-named .mmc-logo { display: block; width: 190px; max-width: 190px; height: auto; max-height: 77px; object-fit: contain; }
.mmc-brand-name { color: #032161; font-size: 9px; letter-spacing: .055em; }
.mmc-user strong, .page-header h4, .mmc-section-title { color: #032161; }
.mmc-main-menu .nav-link:hover { color: #032161; background: #eef9ff; }
.mmc-main-menu .nav-link.active { color: #032161; background: #e9f8ff; border-color: #b9eafa; box-shadow: inset 0 -2px #04befb; }
.mmc-main-menu .nav-link.active i { color: #0378b0; }
.mmc-master-toggle:hover, .dropdown-item:hover { background: #eaf8ff; color: #032161; }

.btn-primary {
    --bs-btn-bg: #032161;
    --bs-btn-border-color: #032161;
    --bs-btn-hover-bg: #03418b;
    --bs-btn-hover-border-color: #03418b;
    --bs-btn-active-bg: #021949;
    --bs-btn-active-border-color: #021949;
    --bs-btn-disabled-bg: #36517f;
    --bs-btn-disabled-border-color: #36517f;
}
.btn-outline-primary {
    --bs-btn-color: #032161;
    --bs-btn-border-color: #032161;
    --bs-btn-hover-bg: #032161;
    --bs-btn-hover-border-color: #032161;
    --bs-btn-active-bg: #021949;
    --bs-btn-active-border-color: #021949;
}
.text-primary { color: #032161 !important; }
.bg-primary { background-color: #032161 !important; }
.border-primary { border-color: #04befb !important; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid #04befb; outline-offset: 3px; }
.form-control:focus, .form-select:focus { border-color: #049fdb; box-shadow: 0 0 0 3px #04befb33; }
.form-check-input:checked { background-color: #032161; border-color: #032161; }
.form-check-input:focus { border-color: #04befb; box-shadow: 0 0 0 3px #04befb33; }

.page-header { border-bottom-color: #dceaf5; }
.table { --bs-table-hover-bg: #eaf7ff; }
.table thead th { background: #edf7fc; color: #315575; border-bottom-color: #dbe9f4; }
.table-card, .purchase-table-wrap { border-color: #dce9f4; }
.card-header.bg-primary { color: #032161 !important; background: #ecf8ff !important; }
.card-header { background: #f6fbfe; }
.modal-content { border-top-color: #04befb; }
.modal-header { background: #f4faff; }
.chart-surface { border-top-color: #c8efff; }
.chart-surface h5, .mmc-stat h3, .mmc-total { color: #032161 !important; }
.mmc-stat .bi { color: #048cbd; }

.summary-card { background: #eff8ff; border-color: #d6eafb; color: #032161; }
.summary-card .summary-icon { background: #d7f4ff; color: #032161; }
.summary-card.tone-teal { background: #e9faff; border-color: #c9effb; color: #02618a; }
.summary-card.tone-teal .summary-icon { background: #c6f0ff; color: #025578; }
.summary-card.tone-purple { background: #f0f5ff; border-color: #dce8fc; color: #032161; }
.summary-card.tone-purple .summary-icon { background: #dfeeff; color: #032161; }
.segmented-control { background: #e8f5fc; }
.segmented-control a.active, .segmented-control a:hover { color: #032161; }
.batch-link { background: #e9f8ff; color: #032161; }
.fefo-label { color: #02618a; }
.sale-method:nth-child(2) { border-color: #032161; background: #edf5ff; color: #032161; }
.sale-method:nth-child(3) { border-color: #04befb; background: #e9faff; color: #02618a; }
.sale-modal .mmc-total { background: #eaf9ff !important; border-color: #b9ebfd !important; }
.sale-modal .mmc-total h1 { color: #032161; }
.mmc-toast-stack .mmc-notification { border-left-color: #032161; }
.mmc-toast-stack .toast-icon { color: #032161; }

.mmc-login-premium { background: #032161; }
.mmc-login-premium::before { background: #03216166; }
.auth-logo { width: 260px; height: auto; max-width: 100%; padding: 10px; background: #f7f7f7; }
.auth-brand-rule, .auth-panel::before { background: #04befb; }
.auth-panel { box-shadow: 0 24px 80px #03216145; }
.auth-eyebrow, .auth-heading h2 { color: #032161; }
.auth-input:focus-within { border-color: #049fdb; box-shadow: 0 0 0 3px #04befb33; }
.auth-input button:hover { background: #eaf8ff; color: #032161; }
.auth-submit { background: #032161; border-color: #032161; }
.auth-submit:hover { background: #03418b; border-color: #03418b; }
.auth-input button:focus-visible, .auth-submit:focus-visible { outline-color: #04befb; }
@media (max-width: 575.98px) {
    .mmc-brand.mmc-brand-named { flex-basis: 175px; width: 175px; }
    .mmc-brand-named .mmc-logo { width: 165px; max-width: 165px; }
    .auth-logo { width: 230px; height: auto; }
}
