@import url('https://fonts.bunny.net/css?family=poppins:400,500,600,700');

:root {
    --mhg-primary: #0092df;
    --mhg-primary-dark: #0075b2;
    --mhg-primary-soft: #e4f6fc;
    --mhg-navy: #1c244b;
    --mhg-surface: #ffffff;
    --mhg-canvas: #f3f5f8;
    --mhg-border: #e5e9f0;
    --mhg-muted: #6c757d;
    --mhg-danger: #ff4136;
    --mhg-sidebar-width: 264px;
    --bs-primary: #0092df;
    --bs-primary-rgb: 0, 146, 223;
    --bs-link-color: #0075b2;
    --bs-link-hover-color: #005c8c;
    --bs-body-font-family: 'Poppins', sans-serif;
    --bs-body-font-size: .9rem;
    --bs-body-color: #242a37;
    --bs-body-bg: #f3f5f8;
    --bs-border-color: #e5e9f0;
    --bs-border-radius: .65rem;
    --bs-border-radius-lg: .9rem;
}

* { scroll-margin-top: 90px; }
body { min-height: 100vh; background: var(--mhg-canvas); }
a { text-decoration: none; }
.app-shell { min-height: 100vh; }
.app-sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 1030; width: var(--mhg-sidebar-width);
    padding: 1.25rem 1rem; color: #fff;
    background: radial-gradient(circle at 12% 88%, rgb(0 146 223 / 24%), transparent 30%), linear-gradient(165deg, #1c244b 0%, #17203f 100%);
}
.app-main { min-width: 0; }
.app-topbar {
    position: sticky; top: 0; z-index: 1020; min-height: 70px;
    border-bottom: 1px solid rgb(28 36 75 / 8%); background: rgb(255 255 255 / 94%); backdrop-filter: blur(12px);
}
.app-content { width: 100%; max-width: 1600px; padding: 1.25rem; margin-inline: auto; }
.brand-mark {
    display: grid; width: 42px; height: 42px; color: #fff; font-size: .78rem; font-weight: 700;
    letter-spacing: .02em; place-items: center; border-radius: 14px; background: var(--mhg-primary);
    box-shadow: 0 10px 30px rgb(0 146 223 / 28%);
}
.brand-logo-panel {
    display: inline-flex; align-items: center; justify-content: center; width: 210px; padding: .4rem .55rem;
    border-radius: .75rem; background: #fff; box-shadow: 0 10px 30px rgb(0 0 0 / 14%);
}
.brand-logo { display: block; width: 100%; height: auto; }
.brand-logo-panel.compact { width: 145px; padding: .28rem .4rem; border-radius: .55rem; box-shadow: 0 5px 18px rgb(28 36 75 / 12%); }
.brand-logo-panel.login-logo { width: min(340px, 100%); padding: .6rem .8rem; }
.brand-title { color: #fff; font-size: 1rem; font-weight: 700; line-height: 1.15; }
.brand-subtitle { color: rgb(255 255 255 / 56%); font-size: .7rem; }
.sidebar-label {
    padding: 0 .75rem; margin: 1.4rem 0 .5rem; color: rgb(255 255 255 / 42%);
    font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.sidebar-nav { display: grid; gap: .3rem; }
.sidebar-link {
    display: flex; gap: .8rem; align-items: center; padding: .72rem .8rem; color: rgb(255 255 255 / 72%);
    font-weight: 500; border-radius: .7rem; transition: color .18s ease, background .18s ease, transform .18s ease;
}
.sidebar-link i { width: 1.3rem; font-size: 1.05rem; text-align: center; }
.sidebar-link:hover, .sidebar-link.active { color: #fff; background: rgb(255 255 255 / 11%); }
.sidebar-link:hover { transform: translateX(2px); }
.sidebar-link.active { box-shadow: inset 3px 0 var(--mhg-primary); }
.sidebar-user {
    padding: .85rem; margin-top: auto; border: 1px solid rgb(255 255 255 / 9%);
    border-radius: .8rem; background: rgb(255 255 255 / 6%);
}
.avatar {
    display: grid; flex: 0 0 auto; width: 36px; height: 36px; color: var(--mhg-navy); font-weight: 700;
    place-items: center; border-radius: 50%; background: var(--mhg-primary-soft);
}
.global-search { position: relative; width: min(440px, 42vw); }
.global-search i { position: absolute; top: 50%; left: .85rem; color: #8a93a3; transform: translateY(-50%); }
.global-search .form-control { padding-left: 2.4rem; border-color: transparent; background: var(--mhg-canvas); }
.page-title, h1, h2, h3 { color: var(--mhg-navy); font-weight: 700; letter-spacing: -.025em; }
.page-title { margin: 0; font-size: clamp(1.45rem, 2vw, 1.9rem); }
.page-kicker { margin-bottom: .25rem; color: var(--mhg-primary-dark); font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.page-subtitle { margin: .35rem 0 0; color: var(--mhg-muted); }
.card { border: 1px solid var(--mhg-border); box-shadow: 0 8px 30px rgb(28 36 75 / 5%); }
.card-header { padding: 1rem 1.1rem; border-bottom-color: var(--mhg-border); background: #fff; }
.card-body { padding: 1.1rem; }
.btn { font-weight: 600; }
.btn-primary {
    --bs-btn-bg: var(--mhg-primary); --bs-btn-border-color: var(--mhg-primary);
    --bs-btn-hover-bg: var(--mhg-primary-dark); --bs-btn-hover-border-color: var(--mhg-primary-dark);
    --bs-btn-active-bg: var(--mhg-primary-dark); --bs-btn-active-border-color: var(--mhg-primary-dark);
    box-shadow: 0 6px 18px rgb(0 146 223 / 16%);
}
.btn-soft-primary { color: var(--mhg-primary-dark); border-color: transparent; background: var(--mhg-primary-soft); }
.btn-soft-primary:hover { color: #fff; background: var(--mhg-primary); }
.form-control, .form-select, .input-group-text { min-height: 42px; border-color: #dce1e9; }
.form-control:focus, .form-select:focus { border-color: rgb(0 146 223 / 55%); box-shadow: 0 0 0 .22rem rgb(0 146 223 / 13%); }
.form-label { margin-bottom: .38rem; color: #3c4454; font-size: .82rem; font-weight: 600; }
.small-label { margin-bottom: .18rem; color: #7b8493; font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.table > :not(caption) > * > * { padding: .8rem .85rem; vertical-align: middle; border-bottom-color: #edf0f4; }
.table thead th { color: #727b8a; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; background: #fafbfc; }
.table-hover tbody tr { transition: background .15s ease; }
.table-hover tbody tr:hover { background: #f7fbfe; }
.badge { padding: .42rem .58rem; font-weight: 600; border-radius: 999px; }
.status-badge { display: inline-flex; gap: .38rem; align-items: center; border: 1px solid transparent; }
.status-badge::before { width: .42rem; height: .42rem; content: ''; border-radius: 50%; background: currentColor; }
.metric-card { position: relative; min-height: 126px; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.metric-card::after { position: absolute; right: -24px; bottom: -30px; width: 94px; height: 94px; content: ''; border-radius: 50%; background: var(--metric-color, var(--mhg-primary)); opacity: .08; }
.metric-card:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgb(28 36 75 / 9%); }
.metric-icon { display: grid; width: 38px; height: 38px; color: var(--metric-color, var(--mhg-primary)); font-size: 1.1rem; place-items: center; border-radius: .7rem; background: var(--mhg-primary-soft); }
.metric-value { color: var(--mhg-navy); font-size: 1.75rem; font-weight: 700; line-height: 1; }
.workflow-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.workflow-step {
    position: relative; display: flex; gap: .8rem; align-items: center; min-height: 92px; padding: .9rem;
    color: inherit; border: 1px solid var(--mhg-border); border-radius: .8rem; background: #fff;
    transition: border .18s ease, transform .18s ease, box-shadow .18s ease;
}
.workflow-step:hover { color: inherit; border-color: rgb(0 146 223 / 36%); box-shadow: 0 9px 24px rgb(28 36 75 / 8%); transform: translateY(-2px); }
.workflow-number { display: grid; flex: 0 0 auto; width: 34px; height: 34px; color: var(--mhg-primary-dark); font-weight: 700; place-items: center; border-radius: 50%; background: var(--mhg-primary-soft); }
.workflow-count { color: var(--mhg-navy); font-size: 1.3rem; font-weight: 700; line-height: 1; }
.empty-state { padding: 2.75rem 1.25rem; text-align: center; }
.empty-state-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 1rem; color: var(--mhg-primary); font-size: 1.45rem; place-items: center; border-radius: 1rem; background: var(--mhg-primary-soft); }
.onboarding-card { color: #fff; border: 0; background: radial-gradient(circle at 92% 15%, rgb(255 255 255 / 16%), transparent 26%), linear-gradient(120deg, var(--mhg-navy), #28366e); }
.onboarding-card h2, .onboarding-card h3 { color: #fff; }
.setup-list { display: grid; gap: .65rem; }
.setup-item { display: flex; gap: .75rem; align-items: center; padding: .7rem; color: rgb(255 255 255 / 82%); border-radius: .7rem; background: rgb(255 255 255 / 7%); }
.setup-item.done { opacity: .65; }
.setup-check { display: grid; flex: 0 0 auto; width: 30px; height: 30px; color: var(--mhg-navy); place-items: center; border-radius: 50%; background: #fff; }
.offcanvas.offcanvas-wide { width: min(680px, 100vw); }
.offcanvas-header { padding: 1.15rem 1.25rem; border-bottom: 1px solid var(--mhg-border); }
.offcanvas-body { padding: 1.25rem; }
.offcanvas-footer { position: sticky; bottom: 0; z-index: 2; padding: 1rem 1.25rem; border-top: 1px solid var(--mhg-border); background: rgb(255 255 255 / 96%); backdrop-filter: blur(8px); }
.quick-action-card { display: flex; gap: .85rem; align-items: center; padding: .9rem; color: inherit; border: 1px solid var(--mhg-border); border-radius: .8rem; transition: background .18s ease, border .18s ease; }
.quick-action-card:hover { color: inherit; border-color: rgb(0 146 223 / 32%); background: #f7fbfe; }
.quick-action-icon { display: grid; flex: 0 0 auto; width: 42px; height: 42px; color: var(--mhg-primary-dark); font-size: 1.1rem; place-items: center; border-radius: .7rem; background: var(--mhg-primary-soft); }
.request-item-row { padding: .85rem; border: 1px solid var(--mhg-border); border-radius: .75rem; background: #fafbfc; }
.mobile-record-card { border-bottom: 1px solid var(--mhg-border); }
.filter-card .card-body { padding: .85rem; }
.filter-toggle { color: var(--mhg-primary-dark); font-weight: 600; }
.money, code, .text-nowrap { white-space: nowrap; }
.text-bg-primary { color: #00689f !important; border-color: #b8e2f7 !important; background: #e4f6fc !important; }
.text-bg-info { color: #155b75 !important; border-color: #cae6f0 !important; background: #eaf7fb !important; }
.text-bg-warning { color: #755600 !important; border-color: #f7e19e !important; background: #fff8df !important; }
.text-bg-success { color: #12663d !important; border-color: #bfe7d2 !important; background: #e6f7ee !important; }
.text-bg-danger { color: #9b2922 !important; border-color: #ffd0cd !important; background: #fff0ef !important; }
.text-bg-secondary { color: #5f6875 !important; border-color: #dde1e7 !important; background: #f1f3f5 !important; }

@media (min-width: 992px) { .app-main { margin-left: var(--mhg-sidebar-width); } .app-content { padding: 1.65rem 2rem 2.5rem; } }
@media (max-width: 991.98px) { .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .app-topbar { min-height: 62px; } }
@media (max-width: 575.98px) { .app-content { padding: 1rem .75rem 5rem; } .workflow-grid { grid-template-columns: 1fr; } .metric-card { min-height: 112px; } .offcanvas.offcanvas-wide { width: 100vw; } .page-actions .btn { flex: 1 1 auto; } }
@media print { .app-sidebar, .app-topbar, .page-actions, .btn { display: none !important; } .app-main { margin: 0; } }
