/* iDeliverd Mailbox — Customer Portal */
:root {
    --vm-primary: #1a5fd4;
    --vm-primary-dark: #154db0;
    --vm-primary-soft: #eaf1fd;
    --vm-navy: #0c2b5b;
    --vm-navy-2: #0f3368;
    --vm-nav-text: #c9d5ea;
    --vm-bg: #f3f5f9;
    --vm-border: #e3e7ee;
    --vm-text: #1c2434;
    --vm-muted: #6b7486;
    --vm-red: #e3051b;
    --vm-sidebar-width: 232px;
    --bs-primary: var(--vm-primary);
    --bs-primary-rgb: 26, 95, 212;
    --bs-link-color: var(--vm-primary);
    --bs-link-color-rgb: 26, 95, 212;
    --bs-link-hover-color: var(--vm-primary-dark);
    --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bs-border-radius: 8px;
}

body { background: var(--vm-bg); font-size: .9rem; color: var(--vm-text); }
a { text-decoration: none; }

/* ---------- Bootstrap overrides ---------- */
.btn { border-radius: 7px; font-weight: 500; }
.btn-primary {
    --bs-btn-bg: var(--vm-primary); --bs-btn-border-color: var(--vm-primary);
    --bs-btn-hover-bg: var(--vm-primary-dark); --bs-btn-hover-border-color: var(--vm-primary-dark);
    --bs-btn-active-bg: var(--vm-primary-dark); --bs-btn-active-border-color: var(--vm-primary-dark);
    --bs-btn-disabled-bg: #8fb0ea; --bs-btn-disabled-border-color: #8fb0ea;
}
.btn-outline-primary {
    --bs-btn-color: var(--vm-primary); --bs-btn-border-color: var(--vm-primary);
    --bs-btn-hover-bg: var(--vm-primary); --bs-btn-hover-border-color: var(--vm-primary);
    --bs-btn-active-bg: var(--vm-primary); --bs-btn-active-border-color: var(--vm-primary);
}
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: var(--vm-border); --bs-btn-hover-bg: #f5f7fb; --bs-btn-hover-border-color: #d6dce6; }
.text-primary { color: var(--vm-primary) !important; }
.bg-primary-soft { background: var(--vm-primary-soft) !important; }
.form-control, .form-select { border-color: #dde2ea; border-radius: 7px; padding: .55rem .8rem; font-size: .88rem; }
.form-control::placeholder { color: #a3abb9; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: #8fb0ea; box-shadow: 0 0 0 .2rem rgba(26, 95, 212, .12); }
.form-check-input:checked { background-color: var(--vm-primary); border-color: var(--vm-primary); }
.form-label { font-weight: 600; font-size: .82rem; color: #2b3445; margin-bottom: .4rem; }
.input-group-text { background: #fff; border-color: #dde2ea; color: #8a93a4; }
.page-link { color: var(--vm-primary); }
.active > .page-link, .page-link.active { background-color: var(--vm-primary); border-color: var(--vm-primary); }

/* ---------- Brand ---------- */
.brand-logo { display: block; width: auto; }
.brand-tile { background: #fff; border-radius: 8px; padding: 9px 12px; display: inline-flex; align-items: center; }

/* ---------- Layout ---------- */
/* !important: Bootstrap's .offcanvas-lg forces a transparent background on desktop. */
.portal-sidebar { width: var(--vm-sidebar-width); background: var(--vm-navy) !important; color: var(--vm-nav-text); --bs-offcanvas-width: var(--vm-sidebar-width); }
@media (min-width: 992px) {
    .portal-sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 1030; overflow-y: auto; }
    .portal-main { margin-left: var(--vm-sidebar-width); }
}
.sidebar-brand { padding: 16px 16px 14px; display: flex; align-items: center; justify-content: space-between; }
.portal-nav { padding: 6px 0 24px; }
.portal-nav .nav-link, .portal-nav .nav-btn {
    color: var(--vm-nav-text); padding: .72rem 1.35rem; display: flex; align-items: center; gap: .8rem;
    font-weight: 500; font-size: .875rem; border: 0; background: none; width: 100%; text-align: left;
    border-left: 3px solid transparent;
}
.portal-nav .nav-link i, .portal-nav .nav-btn i { font-size: 1.05rem; width: 20px; text-align: center; }
.portal-nav .nav-link:hover, .portal-nav .nav-btn:hover { color: #fff; background: var(--vm-navy-2); }
.portal-nav .nav-link.active { color: #fff; background: var(--vm-primary); border-left-color: #fff; }
.portal-nav .nav-link .badge { margin-left: auto; }

.portal-topbar { background: #fff; border-bottom: 1px solid var(--vm-border); height: 62px; position: sticky; top: 0; z-index: 1020; }
.icon-btn {
    width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center;
    color: #3a4456; position: relative; border: 0; background: transparent; font-size: 1.2rem;
}
.icon-btn:hover { background: #f1f4f9; }
.icon-btn .count {
    position: absolute; top: 5px; right: 4px; font-size: .6rem; min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px;
    background: var(--vm-red); color: #fff; display: grid; place-items: center; font-weight: 700;
}
.avatar {
    width: 36px; height: 36px; border-radius: 50%; background: var(--vm-primary); color: #fff;
    display: inline-grid; place-items: center; font-weight: 600; font-size: .9rem; flex-shrink: 0;
}
.avatar-lg { width: 64px; height: 64px; font-size: 1.5rem; }
.user-chip .name { font-weight: 600; font-size: .85rem; line-height: 1.15; }
.user-chip .plan { font-size: .74rem; color: var(--vm-muted); }

.portal-content { padding: 1.6rem 1.75rem; }
@media (max-width: 575.98px) { .portal-content { padding: 1rem; } }

.page-header { margin-bottom: 1.25rem; }
.page-header h1 { font-size: 1.35rem; font-weight: 700; margin: 0; color: #111a2b; }
.page-header .subtitle { color: var(--vm-muted); margin: .2rem 0 0; font-size: .86rem; }
.back-link {
    display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--vm-muted);
    background: #fff; border: 1px solid var(--vm-border); border-radius: 20px; padding: .25rem .75rem; margin-top: .5rem;
}
.back-link:hover { color: var(--vm-primary); border-color: #c9d6ee; }

/* ---------- Cards ---------- */
.card { border: 1px solid var(--vm-border); border-radius: 10px; box-shadow: 0 1px 2px rgba(16, 24, 40, .03); }
.card-header { background: #fff; border-bottom: 1px solid var(--vm-border); padding: .95rem 1.2rem; border-radius: 10px 10px 0 0 !important; }
.card-header h5, .card-title { font-size: .95rem; font-weight: 700; margin: 0; }
.card-body { padding: 1.2rem; }
.section-title { font-size: .95rem; font-weight: 700; margin-bottom: .9rem; color: #111a2b; }

/* Dashboard stat cards */
.stat-card { padding: 1rem 1.1rem; display: flex; flex-direction: column; height: 100%; }
.stat-card .stat-top { display: flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 600; color: #3a4456; }
.stat-card .stat-top i { font-size: .95rem; }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; margin: .45rem 0 .55rem; line-height: 1; color: #111a2b; }
.stat-card .stat-link { font-size: .78rem; font-weight: 600; color: var(--vm-primary); margin-top: auto; }
.stat-card .stat-link:hover { text-decoration: underline; }

.stat-icon { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; font-size: 1.2rem; }
.stat-value { font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.stat-label { color: var(--vm-muted); font-size: .8rem; font-weight: 500; }
.soft-primary { background: #eaf1fd; color: #1a5fd4; }
.soft-success { background: #e8f7ee; color: #16a34a; }
.soft-warning { background: #fff4e5; color: #ea8a0c; }
.soft-info { background: #e6f6fb; color: #0891b2; }
.soft-danger { background: #fdecee; color: #dc2626; }
.soft-purple { background: #f1ebfd; color: #7c3aed; }
.soft-secondary { background: #eef0f4; color: #4b5563; }
.text-warning-strong { color: #ea8a0c !important; }

.info-box { background: #f5f7fb; border: 1px solid var(--vm-border); border-radius: 8px; padding: .9rem 1rem; line-height: 1.6; font-size: .86rem; }

/* ---------- Status pills ---------- */
.pill { display: inline-block; font-size: .72rem; font-weight: 600; padding: .28rem .65rem; border-radius: 5px; line-height: 1.2; white-space: nowrap; }
.pill-primary { background: #eaf1fd; color: #1a5fd4; }
.pill-success { background: #e3f6ea; color: #15803d; }
.pill-warning { background: #fff1de; color: #d97706; }
.pill-info { background: #e3f1fd; color: #1d6fd8; }
.pill-purple { background: #f1ebfd; color: #7c3aed; }
.pill-danger { background: #fdecee; color: #dc2626; }
.pill-secondary { background: #eef0f4; color: #4b5563; }

/* ---------- Tables ---------- */
.table { --bs-table-hover-bg: #f8fafd; margin-bottom: 0; font-size: .86rem; }
.table > thead th { font-size: .78rem; color: #3a4456; font-weight: 600; background: #fff; border-bottom: 1px solid var(--vm-border); white-space: nowrap; padding: .8rem 1rem; }
.table > tbody td { padding: .85rem 1rem; vertical-align: middle; border-color: #eef1f5; }
.table tr.unread .sender { font-weight: 700; }
.btn-view { border: 1px solid #c9d6ee; color: var(--vm-primary); background: #fff; font-size: .78rem; padding: .3rem .95rem; border-radius: 6px; font-weight: 600; }
.btn-view:hover { background: var(--vm-primary); border-color: var(--vm-primary); color: #fff; }
.badge { font-weight: 600; padding: .4em .65em; border-radius: 5px; }

/* ---------- Tabs ---------- */
.seg-tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.seg-tabs .seg {
    min-width: 120px; text-align: center; padding: .5rem 1.1rem; border-radius: 7px; font-weight: 600; font-size: .82rem;
    background: #fff; border: 1px solid var(--vm-border); color: #3a4456;
}
.seg-tabs .seg.active { background: var(--vm-primary); border-color: var(--vm-primary); color: #fff; }
.seg-tabs .seg:not(.active):hover { border-color: #c9d6ee; color: var(--vm-primary); }

.line-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--vm-border); overflow-x: auto; flex-wrap: nowrap; }
.line-tabs .tab {
    padding: .6rem 1rem; font-weight: 600; font-size: .84rem; color: var(--vm-muted); border: 0; background: none;
    border-bottom: 2px solid transparent; white-space: nowrap; margin-bottom: -1px;
}
.line-tabs .tab.active { color: var(--vm-primary); border-bottom-color: var(--vm-primary); background: var(--vm-primary-soft); border-radius: 6px 6px 0 0; }
.nav-tabs-clean { border-bottom: 1px solid var(--vm-border); gap: .25rem; flex-wrap: nowrap; overflow-x: auto; }
.nav-tabs-clean .nav-link { border: 0; border-bottom: 2px solid transparent; color: var(--vm-muted); font-weight: 600; white-space: nowrap; padding: .65rem 1rem; }
.nav-tabs-clean .nav-link.active { color: var(--vm-primary); border-bottom-color: var(--vm-primary); background: var(--vm-primary-soft); }

.filter-pills { display: flex; gap: .4rem; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
.filter-pills .btn { white-space: nowrap; border-radius: 7px; font-size: .8rem; font-weight: 600; }

/* ---------- Mail ---------- */
.mail-thumb { width: 64px; height: 48px; border-radius: 6px; object-fit: cover; border: 1px solid var(--vm-border); background: #f3f5f9; flex-shrink: 0; }
.mail-thumb-lg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--vm-border); background: #f3f5f9; }
.thumb-strip { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.thumb-strip a { width: 74px; height: 56px; border-radius: 6px; border: 1px solid var(--vm-border); overflow: hidden; display: grid; place-items: center; background: #f6f8fb; color: #c0392b; font-size: 1.4rem; }
.thumb-strip img { width: 100%; height: 100%; object-fit: cover; }
.detail-list .row-item { display: flex; padding: .55rem 0; font-size: .86rem; }
.detail-list .row-item .k { width: 42%; color: #3a4456; font-weight: 500; }
.detail-list .row-item .v { flex: 1; color: #111a2b; }

.selected-mail { display: flex; gap: 1rem; align-items: center; }
.selected-mail img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--vm-border); }
.selected-mail .meta { font-size: .82rem; line-height: 1.7; color: #3a4456; }

.action-grid { display: flex; gap: .85rem; flex-wrap: wrap; }
.action-btn {
    width: 92px; display: flex; flex-direction: column; align-items: center; gap: .45rem; text-align: center;
    font-size: .76rem; font-weight: 600; line-height: 1.2; padding: .8rem .4rem; border-radius: 8px; border: 1px solid transparent;
    transition: transform .12s, box-shadow .12s;
}
.action-btn i { font-size: 1.15rem; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: #fff; }
.action-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(16, 24, 40, .08); }
.action-forward { background: #eaf1fd; color: #1a5fd4; } .action-forward i { background: #1a5fd4; }
.action-scan { background: #e6f6ec; color: #16a34a; } .action-scan i { background: #16a34a; }
.action-shred { background: #fdecee; color: #dc2626; } .action-shred i { background: #dc2626; }
.action-cheque { background: #f1ebfd; color: #7c3aed; } .action-cheque i { background: #7c3aed; }
.action-locker { background: #fff1de; color: #ea8a0c; } .action-locker i { background: #ea8a0c; }
.action-btn.disabled { opacity: .45; pointer-events: none; }

.notice-strip { display: flex; gap: .85rem; align-items: center; border-radius: 8px; padding: 1rem 1.1rem; font-size: .84rem; line-height: 1.5; }
.notice-strip i { font-size: 1.4rem; }
.notice-blue { background: #eaf1fd; color: #1e3a6b; border: 1px solid #d3e1f8; } .notice-blue i { color: var(--vm-primary); }
.notice-red { background: #fdecee; color: #7a1d1d; border: 1px solid #f7d2d6; } .notice-red i { color: #dc2626; }
.notice-green { background: #e8f7ee; color: #14532d; border: 1px solid #cdeed9; } .notice-green i { color: #16a34a; }

.form-narrow { max-width: 600px; }

.envelope-frame { background: #f9fafb; border: 1px dashed #d1d5db; border-radius: 10px; display: grid; place-items: center; min-height: 220px; overflow: hidden; }
.meta-list dt { color: var(--vm-muted); font-weight: 500; font-size: .8rem; }
.meta-list dd { font-weight: 500; margin-bottom: .85rem; }

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--vm-border); }
.timeline li { position: relative; padding: 0 0 1.1rem 2.25rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .dot { position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--vm-border); }
.timeline .when { font-size: .75rem; color: var(--vm-muted); }

.progress-steps { display: flex; justify-content: space-between; position: relative; margin: .5rem 0 0; }
.progress-steps::before { content: ''; position: absolute; top: 14px; left: 8%; right: 8%; height: 3px; background: var(--vm-border); }
.progress-steps .step { position: relative; text-align: center; flex: 1; font-size: .72rem; color: var(--vm-muted); font-weight: 500; }
.progress-steps .step .circle { width: 30px; height: 30px; border-radius: 50%; margin: 0 auto .4rem; background: #fff; border: 3px solid var(--vm-border); display: grid; place-items: center; font-size: .8rem; position: relative; z-index: 1; }
.progress-steps .step.done .circle { background: #16a34a; border-color: #16a34a; color: #fff; }
.progress-steps .step.current .circle { border-color: var(--vm-primary); color: var(--vm-primary); }
.progress-steps .step.done, .progress-steps .step.current { color: #111827; }

/* ---------- Activity / notifications ---------- */
.activity-item { display: flex; align-items: center; gap: .85rem; padding: .75rem 0; border-bottom: 1px solid #eef1f5; font-size: .85rem; }
.activity-item:last-child { border-bottom: 0; }
.activity-item .act-icon { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; font-size: .9rem; flex-shrink: 0; }
.activity-item .when { color: var(--vm-muted); font-size: .8rem; width: 110px; flex-shrink: 0; }
.activity-item .tag { width: 90px; text-align: right; font-size: .78rem; font-weight: 600; flex-shrink: 0; }
@media (max-width: 575.98px) { .activity-item .when { display: none; } }
.notif-dropdown { width: 360px; max-width: calc(100vw - 2rem); }
.notif-dropdown .list { max-height: 380px; overflow-y: auto; }
.notif-item { display: flex; gap: .75rem; padding: .75rem 1rem; color: inherit; border-bottom: 1px solid #f1f3f7; }
.notif-item:hover { background: #f8fafd; color: inherit; }
.notif-item.unread { background: #f3f7fe; }
.notif-item .stat-icon { width: 34px; height: 34px; font-size: .95rem; border-radius: 9px; }

/* ---------- Option cards (radio tiles) ---------- */
.option-card { cursor: pointer; display: block; margin: 0; }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card .option-body { border: 2px solid var(--vm-border); border-radius: 9px; padding: .85rem 1rem; height: 100%; transition: border-color .15s, background .15s; }
.option-card:hover .option-body { border-color: #c9d6ee; }
.option-card input:checked + .option-body { border-color: var(--vm-primary); background: var(--vm-primary-soft); }

.radio-row { border: 1px solid var(--vm-border); border-radius: 8px; padding: .75rem .9rem; }
.radio-row + .radio-row { margin-top: .6rem; }
.radio-row .form-check-label { font-weight: 500; font-size: .86rem; }
.address-box { background: #f5f7fb; border-radius: 6px; padding: .6rem .8rem; font-size: .8rem; color: #3a4456; margin-top: .5rem; display: flex; justify-content: space-between; gap: .75rem; align-items: center; }

/* ---------- Shop ---------- */
.product-card { overflow: hidden; }
.product-card .product-img { aspect-ratio: 4 / 3; background: #f3f5f9; display: grid; place-items: center; overflow: hidden; color: #9aa4b5; font-size: 2.5rem; }
.product-card .product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card .card-body { padding: .8rem .9rem 1rem; }
.product-card .name { font-weight: 600; font-size: .84rem; color: #111a2b; }
.product-card .price { font-weight: 700; font-size: .9rem; color: #111a2b; }
.btn-add { border: 1px solid #c9d6ee; color: var(--vm-primary); background: #fff; font-size: .75rem; padding: .3rem .6rem; font-weight: 600; border-radius: 6px; width: 100%; }
.btn-add:hover { background: var(--vm-primary); border-color: var(--vm-primary); color: #fff; }
.qty-input { max-width: 90px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--vm-border); border-radius: 7px; overflow: hidden; }
.stepper button { border: 0; background: #fff; width: 30px; height: 30px; color: #3a4456; }
.stepper button:hover { background: #f1f4f9; }
.stepper input { width: 40px; border: 0; text-align: center; font-weight: 600; font-size: .85rem; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #eef1f5; }
.cart-row img { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; border: 1px solid var(--vm-border); }
.size-tag { display: inline-block; font-size: .68rem; background: #eaf1fd; color: var(--vm-primary); border-radius: 4px; padding: .1rem .45rem; font-weight: 600; }

/* ---------- Plans ---------- */
.plan-card { position: relative; }
.plan-card.featured { border: 2px solid var(--vm-primary); }
.plan-card.current { border: 2px solid #16a34a; }
.plan-card .price { font-size: 1.8rem; font-weight: 800; }
.plan-card .ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }
.feature-list li { padding: .3rem 0; font-size: .86rem; }
.feature-list i { color: #16a34a; margin-right: .5rem; }

/* ---------- Support ---------- */
.message { max-width: 85%; }
.message .bubble { padding: .85rem 1rem; border-radius: 12px; white-space: pre-line; }
.message.mine { margin-left: auto; }
.message.mine .bubble { background: var(--vm-primary-soft); border: 1px solid #d3e1f8; }
.message.staff .bubble { background: #fff; border: 1px solid var(--vm-border); }
.ticket-row { display: flex; align-items: center; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid #eef1f5; font-size: .85rem; color: inherit; }
.ticket-row:last-child { border-bottom: 0; }
.ticket-row:hover { color: var(--vm-primary); }

/* ---------- Notices ---------- */
.notice-row { padding: 1rem 1.2rem; border-bottom: 1px solid #eef1f5; display: block; color: inherit; }
.notice-row:last-child { border-bottom: 0; }
.notice-row:hover { background: #fafbfd; color: inherit; }
.notice-row .title { font-weight: 700; font-size: .9rem; color: #111a2b; }
.notice-row .desc { color: var(--vm-muted); font-size: .82rem; margin-top: .2rem; }
.notice-item { border-left: 4px solid var(--vm-border); }
.notice-item.important { border-left-color: #dc2626; }

/* ---------- Settings list ---------- */
.settings-row {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%;
    border: 1px solid var(--vm-border); border-radius: 8px; padding: .85rem 1rem; background: #fff; color: #1c2434;
    font-weight: 500; font-size: .87rem; text-align: left;
}
.settings-row + .settings-row { margin-top: .6rem; }
.settings-row:hover { border-color: #c9d6ee; color: var(--vm-primary); }
.settings-row .sub { font-size: .76rem; color: var(--vm-muted); font-weight: 400; }
.btn-logout { background: #dc2626; border-color: #dc2626; color: #fff; }
.btn-logout:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }

/* ---------- Payments ---------- */
.pm-card { border: 1px solid var(--vm-border); border-radius: 9px; padding: .9rem 1rem; display: flex; align-items: center; gap: .9rem; }
.pm-card .pm-icon { width: 46px; height: 32px; border-radius: 6px; background: var(--vm-primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .72rem; }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 2.75rem 1rem; color: var(--vm-muted); }
.empty-state i { font-size: 2.6rem; color: #cfd6e1; display: block; margin-bottom: .7rem; }
.empty-state h6 { color: #374151; font-weight: 600; }

/* ---------- Auth ---------- */
.auth-wrapper { min-height: 100vh; display: flex; background: #fff; }
.auth-form-col { flex: 0 0 100%; display: flex; flex-direction: column; padding: 2rem 1.25rem; }
@media (min-width: 992px) { .auth-form-col { flex: 0 0 46%; padding: 2.5rem 4rem; } }
.auth-form { width: 100%; max-width: 380px; margin: 3.5rem 0 auto; }
@media (min-width: 992px) { .auth-form { margin-top: 4.5rem; } }
.auth-form h2 { font-size: 1.6rem; font-weight: 700; color: #111a2b; margin-bottom: .25rem; }
.auth-form .lead-muted { color: var(--vm-muted); margin-bottom: 1.6rem; }
.icon-input { position: relative; }
.icon-input > i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: #8a93a4; pointer-events: none; z-index: 5; }
.icon-input > .form-control { padding-left: 2.4rem; height: 44px; }
.icon-input .toggle-pass { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: #8a93a4; z-index: 5; }
.auth-divider { display: flex; align-items: center; gap: .75rem; color: #8a93a4; font-size: .8rem; margin: 1.5rem 0 1rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--vm-border); }
.btn-social { border: 1px solid #dde2ea; background: #fff; font-weight: 600; font-size: .85rem; height: 42px; display: flex; align-items: center; justify-content: center; gap: .5rem; color: #1c2434; }
.btn-social:hover { background: #f6f8fb; }
.auth-hero {
    flex: 1; position: relative; display: none; color: #fff; overflow: hidden;
    background: #0c2b5b url('../images/login-hero.svg') center / cover no-repeat;
}
@media (min-width: 992px) { .auth-hero { display: block; } }
.auth-hero .hero-text { position: absolute; top: 18%; left: 12%; max-width: 380px; }
.auth-hero h1 { font-size: 2.6rem; font-weight: 600; line-height: 1.2; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.auth-hero p { font-size: 1.15rem; opacity: .92; margin-top: 1.25rem; line-height: 1.5; }

.min-w-0 { min-width: 0; }
.cursor-pointer { cursor: pointer; }
.fw-semibold { font-weight: 600 !important; }
.small-muted { font-size: .8rem; color: var(--vm-muted); }

/* =====================================================================
   Admin panel additions (same design system as the customer portal)
   ===================================================================== */
.sidebar-role { margin: -4px 16px 10px; font-size: .72rem; color: #8ea3c7; font-weight: 600; letter-spacing: .02em; }
.portal-nav .nav-section { font-size: .66rem; text-transform: uppercase; letter-spacing: .09em; color: #7489ad; padding: 1rem 1.35rem .35rem; font-weight: 700; }
.admin .portal-nav .nav-link, .admin .portal-nav .nav-btn { padding: .55rem 1.35rem; font-size: .84rem; }

.kpi { padding: .95rem 1.05rem; display: flex; gap: .85rem; align-items: center; height: 100%; color: inherit; }
a.kpi:hover { color: inherit; box-shadow: 0 6px 16px rgba(16, 24, 40, .07); }
.kpi .stat-icon { width: 42px; height: 42px; font-size: 1.1rem; }
.kpi .v { font-size: 1.35rem; font-weight: 700; line-height: 1.1; color: #111a2b; }
.kpi .l { font-size: .76rem; color: var(--vm-muted); font-weight: 500; }

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.filter-bar .form-control, .filter-bar .form-select { height: 36px; padding-top: .35rem; padding-bottom: .35rem; font-size: .83rem; width: auto; }
.filter-bar .grow { flex: 1 1 220px; }

.count-tabs { display: flex; gap: .35rem; flex-wrap: wrap; }
.count-tabs a { padding: .38rem .8rem; border-radius: 7px; font-size: .8rem; font-weight: 600; color: #3a4456; background: #fff; border: 1px solid var(--vm-border); white-space: nowrap; }
.count-tabs a .n { color: var(--vm-muted); font-weight: 500; margin-left: .2rem; }
.count-tabs a.active { background: var(--vm-primary); border-color: var(--vm-primary); color: #fff; }
.count-tabs a.active .n { color: #dbe6fb; }

.table td .sub { font-size: .76rem; color: var(--vm-muted); }
.table-actions { display: flex; gap: .35rem; justify-content: flex-end; flex-wrap: nowrap; }
.btn-icon { width: 30px; height: 30px; padding: 0; display: inline-grid; place-items: center; border-radius: 6px; }

.spark-card { padding: .9rem 1rem .6rem; }
.spark-card .head { display: flex; justify-content: space-between; align-items: baseline; }
.spark-card .t { font-size: .8rem; font-weight: 600; color: #3a4456; }
.spark-card .v { font-size: 1.25rem; font-weight: 700; color: #111a2b; }
.spark-card .chart-box { position: relative; height: 70px; margin-top: .35rem; }

.money-row { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid #eef1f5; font-size: .86rem; }
.money-row:last-child { border-bottom: 0; }

.internal-note .bubble { background: #fff8e6 !important; border: 1px dashed #f0c36d !important; }
.form-section { border-top: 1px solid var(--vm-border); padding-top: 1.1rem; margin-top: 1.1rem; }
.req-type-pill { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .8rem; }
