/* ============================================================
   Mobile Money Aggregator Theme
   Bootstrap 5 – Black & Red palette
   ============================================================ */

:root {
    --mm-black: #0a0a0a;
    --mm-black-soft: #141414;
    --mm-black-elev: #1e1e1e;
    --mm-red: #e10600;
    --mm-red-dark: #a30400;
    --mm-red-soft: #ff3b30;
    --mm-white: #ffffff;
    --mm-muted: #9ca3af;
    --mm-border: #2a2a2a;
    --mm-bg: #f5f6f8;
    --mm-card-bg: #ffffff;
    --mm-text: #111827;
    --mm-text-muted: #6b7280;
}

* { box-sizing: border-box; }

html, body {
    background: var(--mm-bg);
    color: var(--mm-text);
    font-family: "Inter", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.925rem;
    letter-spacing: 0.01em;
    min-height: 100vh;
}

a { color: var(--mm-red); text-decoration: none; }
a:hover { color: var(--mm-red-dark); }

/* ----------------- Layout Shell ----------------- */
#wrapper {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

#content-wrapper {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--mm-bg);
    min-height: 100vh;
}

#content {
    flex: 1 1 auto;
    padding: 0;
    min-width: 0;
}

.container-fluid {
    padding: 1.5rem 2rem;
    max-width: 100%;
}

/* ----------------- Sidebar ----------------- */
.mm-sidebar {
    width: 250px;
    background: linear-gradient(180deg, var(--mm-black) 0%, var(--mm-black-soft) 100%);
    color: #d4d4d8;
    padding: 0;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid var(--mm-border);
    flex-shrink: 0;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}
.mm-sidebar .navbar-nav { width: 100%; padding-bottom: 1.5rem; }

.mm-sidebar::-webkit-scrollbar { width: 6px; }
.mm-sidebar::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

.mm-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.25rem 1.25rem;
    color: var(--mm-white);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--mm-border);
    text-decoration: none;
}
.mm-brand:hover { color: var(--mm-white); }

.mm-brand-mark {
    width: 34px; height: 34px;
    background: var(--mm-red);
    border-radius: 8px;
    display: grid; place-items: center;
    color: var(--mm-white);
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(225, 6, 0, 0.35);
}

.mm-sidebar .sidebar-heading {
    padding: 1rem 1.25rem 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.mm-sidebar .nav-item { list-style: none; }

.mm-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #cbd5e1;
    padding: 0.6rem 1.25rem;
    border-left: 3px solid transparent;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.15s ease;
    background: transparent;
}
.mm-sidebar .nav-link i { width: 18px; text-align: center; color: #9ca3af; }
.mm-sidebar .nav-link:hover,
.mm-sidebar .nav-link.active {
    background: rgba(225, 6, 0, 0.08);
    color: var(--mm-white);
    border-left-color: var(--mm-red);
}
.mm-sidebar .nav-link:hover i,
.mm-sidebar .nav-link.active i { color: var(--mm-red); }

.mm-sidebar .nav-link.collapsed::after {
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: auto;
    font-size: 0.75rem;
    opacity: 0.6;
    transition: transform 0.2s;
}
.mm-sidebar .nav-link[aria-expanded="true"]::after { transform: rotate(180deg); }

.mm-sidebar .collapse-inner {
    background: rgba(255,255,255,0.02);
    border-left: 3px solid var(--mm-red-dark);
    margin: 0.25rem 1.25rem 0.5rem 1.25rem;
    padding: 0.4rem 0;
    border-radius: 6px;
}
.mm-sidebar .collapse-item {
    display: block;
    padding: 0.45rem 1rem;
    color: #94a3b8;
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 4px;
    margin: 0 0.4rem;
}
.mm-sidebar .collapse-item:hover {
    background: rgba(225, 6, 0, 0.15);
    color: var(--mm-white);
}
.mm-sidebar .collapse-header {
    font-size: 0.7rem;
    color: #6b7280;
    padding: 0.25rem 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mm-sidebar hr {
    border-color: var(--mm-border);
    margin: 0.75rem 1rem;
    opacity: 1;
}

/* ----------------- Topbar ----------------- */
.mm-topbar {
    background: var(--mm-white);
    border-bottom: 1px solid #e5e7eb;
    padding: 0.7rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.mm-topbar .mm-wallet {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: var(--mm-black);
    color: var(--mm-white);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}
.mm-topbar .mm-wallet .mm-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mm-red); }

.mm-topbar .mm-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    color: var(--mm-text);
    cursor: pointer;
}
.mm-topbar .mm-user:hover { background: #f3f4f6; }
.mm-topbar .mm-user .avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--mm-black);
    color: var(--mm-white);
    display: grid; place-items: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.mm-topbar .btn-toggle {
    border: none;
    background: transparent;
    color: var(--mm-black);
    font-size: 1.1rem;
}

/* ----------------- Cards ----------------- */
.card {
    border: 1px solid #eceef1;
    border-radius: 12px;
    background: var(--mm-card-bg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.card .card-header {
    background: var(--mm-white);
    border-bottom: 1px solid #f0f1f4;
    font-weight: 600;
    padding: 0.9rem 1.1rem;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.card .card-body { padding: 1.25rem; }

/* Stat cards */
.stat-card {
    border-radius: 12px;
    padding: 1.25rem;
    color: var(--mm-white);
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.stat-card .stat-label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    opacity: 0.75;
    margin-bottom: 0.35rem;
    font-weight: 600;
}
.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.stat-card .stat-sub {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    opacity: 0.8;
}
.stat-card .stat-icon {
    position: absolute;
    right: 0.9rem;
    top: 0.9rem;
    font-size: 1.75rem;
    opacity: 0.2;
}
.stat-card.black { background: linear-gradient(135deg, #0a0a0a, #2b2b2b); }
.stat-card.red   { background: linear-gradient(135deg, #e10600, #a30400); }
.stat-card.outline-black {
    background: var(--mm-white);
    color: var(--mm-text);
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.stat-card.outline-black .stat-label { color: var(--mm-text-muted); opacity: 1; }
.stat-card.outline-black .stat-value { color: var(--mm-black); }
.stat-card.outline-black .stat-icon  { color: var(--mm-red); opacity: 0.9; }
.stat-card.outline-red {
    background: var(--mm-white);
    color: var(--mm-text);
    border: 1px solid #fde2e2;
    border-left: 4px solid var(--mm-red);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.stat-card.outline-red .stat-label { color: var(--mm-red); opacity: 1; }
.stat-card.outline-red .stat-value { color: var(--mm-black); }
.stat-card.outline-red .stat-icon  { color: var(--mm-red); opacity: 0.85; }

/* ----------------- Buttons ----------------- */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
    transition: all 0.15s ease;
}
.btn-primary,
.btn-info {
    background: var(--mm-red);
    border-color: var(--mm-red);
    color: var(--mm-white);
}
.btn-primary:hover,
.btn-info:hover,
.btn-primary:focus,
.btn-info:focus {
    background: var(--mm-red-dark);
    border-color: var(--mm-red-dark);
    color: var(--mm-white);
    box-shadow: 0 0 0 0.2rem rgba(225,6,0,0.25);
}
.btn-dark { background: var(--mm-black); border-color: var(--mm-black); }
.btn-dark:hover { background: #222; border-color: #222; }

.btn-outline-dark {
    color: var(--mm-black);
    border-color: var(--mm-black);
}
.btn-outline-dark:hover { background: var(--mm-black); color: var(--mm-white); }

.btn-outline-danger {
    color: var(--mm-red);
    border-color: var(--mm-red);
}
.btn-outline-danger:hover {
    background: var(--mm-red);
    color: var(--mm-white);
}

/* ----------------- Tables ----------------- */
.table {
    margin-bottom: 0;
    color: var(--mm-text);
}
.table thead th {
    background: var(--mm-black);
    color: var(--mm-white);
    border-bottom: none;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    padding: 0.8rem 0.9rem;
    white-space: nowrap;
}
/* All links inside table headers must stay white —
   overrides the global a { color: var(--mm-red) } rule */
.table thead th a,
.table thead th a:hover,
.table thead th a:visited,
.kv-sort-link,
.kv-sort-link:hover {
    color: var(--mm-white) !important;
}
/* Sort indicator arrows — white neutral, white active */
.kv-sort-icon { display: none; }
.kv-sort-link::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.65em;
    margin-left: 5px;
    opacity: 0.4;
    content: "\f0dc"; /* fa-sort neutral */
}
.kv-sort-link.asc::after  { content: "\f0de"; opacity: 1; color: var(--mm-white); }
.kv-sort-link.desc::after { content: "\f0dd"; opacity: 1; color: var(--mm-white); }

/* Legacy Yii site.css a.asc / a.desc sort arrows — also keep white */
.table thead th a.asc::after,
.table thead th a.desc::after {
    color: var(--mm-white) !important;
    opacity: 1;
}

.table tbody td {
    padding: 0.75rem 0.9rem;
    border-top: 1px solid #f1f2f4;
    font-size: 0.88rem;
    vertical-align: middle;
}
.table-striped tbody tr:nth-of-type(odd) { background: #fafafa; }
.table-hover tbody tr:hover { background: #fff3f2; }

/* ----------------- Badges ----------------- */
.badge {
    border-radius: 6px;
    padding: 0.35em 0.65em;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
}
.badge.bg-success { background: #0f9d58 !important; }
.badge.bg-danger,
.badge.bg-info { background: var(--mm-red) !important; color: #fff !important; }
.badge.bg-dark { background: var(--mm-black) !important; }
.badge.bg-warning { background: #f59e0b !important; color: #fff !important; }

/* ----------------- Forms ----------------- */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--mm-red);
    box-shadow: 0 0 0 0.2rem rgba(225,6,0,0.15);
}

/* ----------------- Misc ----------------- */
.page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 1.25rem 0;
}
.page-title h1 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--mm-black);
    margin: 0;
}
.page-title .subtitle {
    color: var(--mm-text-muted);
    font-size: 0.85rem;
    margin-top: 0.15rem;
}

.section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mm-text-muted);
    margin: 1.5rem 0 0.75rem;
}

.sticky-footer {
    padding: 1rem;
    background: var(--mm-white);
    border-top: 1px solid #e5e7eb;
    color: var(--mm-text-muted);
    font-size: 0.8rem;
}

.scroll-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    display: none;
    width: 2.5rem; height: 2.5rem;
    background: var(--mm-black);
    color: var(--mm-white) !important;
    border-radius: 50%;
    place-items: center;
    text-align: center;
    line-height: 2.5rem;
    z-index: 1000;
}
.scroll-to-top:hover { background: var(--mm-red); }

/* Alert flash messages */
.alert {
    border-radius: 8px;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
}
.alert-success { background: #dcfce7; color: #166534; }
.alert-danger, .alert-error { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef3c7; color: #92400e; }
.alert-info { background: #e0f2fe; color: #075985; }
.alert.fade-out { opacity: 0; transition: opacity 1s; }

/* Modern mini-chart card */
.mini-chart-card { min-height: 340px; }

/* Responsive */
@media (max-width: 768px) {
    .mm-sidebar {
        position: fixed;
        left: -260px;
        top: 0; bottom: 0;
        z-index: 1040;
        transition: left 0.25s ease;
    }
    .mm-sidebar.mm-show { left: 0; }
    .mm-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 1039;
        display: none;
    }
    .mm-backdrop.show { display: block; }
    .container-fluid { padding: 1rem; }
}

/* Hide the legacy SB-admin pieces in favour of the new theme */
.topbar-divider { display: none; }

/* ============================================================
   Bootstrap 3 / 4 → 5 compatibility shims
   The Yii widgets in this project still emit BS4 markup; these
   rules keep old class names rendering correctly under BS5.
   ============================================================ */

/* Spacing utilities (BS4 -> BS5) */
.ml-0 { margin-left: 0 !important; }
.ml-1 { margin-left: 0.25rem !important; }
.ml-2 { margin-left: 0.5rem !important; }
.ml-3 { margin-left: 1rem !important; }
.ml-4 { margin-left: 1.5rem !important; }
.ml-5 { margin-left: 3rem !important; }
.ml-auto { margin-left: auto !important; }
.mr-0 { margin-right: 0 !important; }
.mr-1 { margin-right: 0.25rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.mr-3 { margin-right: 1rem !important; }
.mr-4 { margin-right: 1.5rem !important; }
.mr-5 { margin-right: 3rem !important; }
.mr-auto { margin-right: auto !important; }
.pl-0 { padding-left: 0 !important; }
.pl-1 { padding-left: 0.25rem !important; }
.pl-2 { padding-left: 0.5rem !important; }
.pl-3 { padding-left: 1rem !important; }
.pl-4 { padding-left: 1.5rem !important; }
.pl-5 { padding-left: 3rem !important; }
.pr-0 { padding-right: 0 !important; }
.pr-1 { padding-right: 0.25rem !important; }
.pr-2 { padding-right: 0.5rem !important; }
.pr-3 { padding-right: 1rem !important; }
.pr-4 { padding-right: 1.5rem !important; }
.pr-5 { padding-right: 3rem !important; }

/* Responsive variants commonly used by SB-Admin */
@media (min-width: 576px) { .ml-sm-2{margin-left:.5rem!important}.mr-sm-2{margin-right:.5rem!important}.ml-sm-auto{margin-left:auto!important}.mr-sm-auto{margin-right:auto!important} }
@media (min-width: 768px) { .ml-md-2{margin-left:.5rem!important}.mr-md-2{margin-right:.5rem!important}.ml-md-3{margin-left:1rem!important}.mr-md-3{margin-right:1rem!important}.ml-md-auto{margin-left:auto!important}.mr-md-auto{margin-right:auto!important} }
@media (min-width: 992px) { .ml-lg-2{margin-left:.5rem!important}.mr-lg-2{margin-right:.5rem!important}.ml-lg-auto{margin-left:auto!important}.mr-lg-auto{margin-right:auto!important} }

/* Float utilities */
.float-left  { float: left !important; }
.float-right { float: right !important; }

/* Form group spacing */
.form-group { margin-bottom: 1rem; }

/* SB-Admin form inputs */
.form-control-user {
    border-radius: 8px !important;
    padding: 0.7rem 1rem !important;
    font-size: 0.9rem !important;
}
.btn-user {
    border-radius: 8px !important;
    padding: 0.55rem 1rem !important;
    font-size: 0.9rem !important;
}
.btn-block { display: block; width: 100%; }

/* Legacy close button (BS4) — style it like btn-close */
.close {
    float: right;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
    background: transparent;
    border: 0;
    padding: 0 .5rem;
    cursor: pointer;
}
.close:hover { opacity: .9; }

/* SB-Admin text utilities */
.text-gray-100 { color: #f3f4f6 !important; }
.text-gray-200 { color: #e5e7eb !important; }
.text-gray-300 { color: #d1d5db !important; }
.text-gray-400 { color: #9ca3af !important; }
.text-gray-500 { color: #6b7280 !important; }
.text-gray-600 { color: #4b5563 !important; }
.text-gray-700 { color: #374151 !important; }
.text-gray-800 { color: #1f2937 !important; }
.text-gray-900 { color: #111827 !important; }
.text-primary { color: var(--mm-red) !important; }
.text-info    { color: var(--mm-red) !important; }
.text-danger  { color: var(--mm-red) !important; }
.text-warning { color: #f59e0b !important; }
.text-success { color: #0f9d58 !important; }

/* Gradient backgrounds now map to brand palette */
.bg-gradient-info,
.bg-gradient-primary,
.bg-gradient-success,
.bg-gradient-warning,
.bg-gradient-danger {
    background: linear-gradient(135deg, var(--mm-black) 0%, var(--mm-red) 100%) !important;
    color: #fff !important;
}
.bg-info { background-color: var(--mm-red) !important; color: #fff !important; }
.bg-primary { background-color: var(--mm-black) !important; color: #fff !important; }
.bg-dark { background-color: var(--mm-black) !important; color: #fff !important; }

/* SB-Admin card accent borders remapped to the palette */
.border-left-primary { border-left: 4px solid var(--mm-black) !important; }
.border-left-secondary { border-left: 4px solid #6b7280 !important; }
.border-left-success { border-left: 4px solid #0f9d58 !important; }
.border-left-info    { border-left: 4px solid var(--mm-red) !important; }
.border-left-warning { border-left: 4px solid #f59e0b !important; }
.border-left-danger  { border-left: 4px solid var(--mm-red) !important; }

/* No gutters (BS4) */
.no-gutters { margin-right: 0; margin-left: 0; }
.no-gutters > [class^="col-"],
.no-gutters > [class*=" col-"] { padding-right: 0; padding-left: 0; }

/* Shadow alias */
.shadow-lg { box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important; }
.shadow    { box-shadow: 0 2px 10px rgba(0,0,0,0.06) !important; }

/* Font weight aliases (SB-Admin used font-weight-*) */
.font-weight-bold   { font-weight: 700 !important; }
.font-weight-bolder { font-weight: 800 !important; }
.font-weight-light  { font-weight: 300 !important; }

/* Sidebar-toggle button placeholder from SB-Admin */
#sidebarToggle {
    width: 2.2rem; height: 2.2rem;
    background: var(--mm-red);
    border: none;
    color: #fff;
    display: none;
}

/* Login / auth pages – constrain size */
.bg-login-image {
    background: linear-gradient(135deg, #0a0a0a 0%, #e10600 100%);
    min-height: 380px;
    border-radius: 0;
}
.site-login, .site-register, .site-forgotpass, .site-otp, .site-contact {
    max-width: 440px;
    margin: 0 auto;
}
.site-login .card,
.site-register .card,
.site-forgotpass .card,
.site-otp .card,
.site-contact .card {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.site-login h1, .site-register h1, .site-forgotpass h1, .site-otp h1, .site-contact h1 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--mm-black);
    text-align: center;
    margin-bottom: 1rem;
}
.site-login .col-xl-10,
.site-login .col-lg-12,
.site-login .col-md-9 {
    max-width: 100%;
}

/* Kartik widgets / yii2-grid styling */
.kv-grid-table,
.grid-view table {
    width: 100%;
}
/* Ensure all grid header links are white regardless of global a{} colour */
.grid-view thead th a,
.grid-view thead th a:hover,
.kv-grid-table thead th a,
.kv-grid-table thead th a:hover {
    color: var(--mm-white) !important;
}
.grid-view .summary { color: var(--mm-text-muted); font-size: 0.85rem; margin-bottom: 0.5rem; }
.grid-view .pagination {
    margin: 0.75rem 0;
    display: flex;
    gap: 0.25rem;
    list-style: none;
    padding: 0;
}
.grid-view .pagination .page-link {
    border-radius: 6px;
    border: 1px solid #d1d5db;
    color: var(--mm-black);
    padding: 0.3rem 0.7rem;
    font-size: 0.85rem;
}
.grid-view .pagination .active .page-link {
    background: var(--mm-red);
    border-color: var(--mm-red);
    color: #fff;
}

/* Generic view wrappers some controllers add */
.site-index, .user-index, .transactions-index, .outbox-index,
.inbox-index, .report-index, .sentsms-index, .contactgroup-index,
.servicecodes-index, .ussdsession-index, .transactionlog-index,
.accountcredential-index, .paymentaccount-index, .permission-index,
.permissiongroup-index, .company-index, .sendername-index,
.bulkoutbox-index, .bulksentsms-index, .bulksms-index, .smsunit-index {
    background: transparent;
}

/* Make datatables / bootstrap tables blend with the theme */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border-radius: 6px;
    border: 1px solid #d1d5db;
    padding: 0.3rem 0.6rem;
}

/* Ensure form-check used by BS5 works with old "custom-checkbox" markup */
.custom-control { position: relative; padding-left: 1.75rem; display: block; min-height: 1.25rem; }
.custom-control-input {
    position: absolute;
    left: 0;
    width: 1rem;
    height: 1rem;
    margin-top: 0.25rem;
}
.custom-control-label { margin-bottom: 0; cursor: pointer; }

/* BS4 input-group append/prepend compat */
.input-group-append,
.input-group-prepend {
    display: flex;
    align-items: stretch;
}
.input-group-append .input-group-text,
.input-group-prepend .input-group-text {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    padding: 0 0.75rem;
    display: flex;
    align-items: center;
}
.input-group-prepend .input-group-text { border-right: 0; border-radius: 8px 0 0 8px; }
.input-group-append  .input-group-text { border-left:  0; border-radius: 0 8px 8px 0; }

/* BS4 sr-only -> BS5 visually-hidden */
.sr-only {
    position: absolute !important;
    width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important;
    overflow: hidden !important; clip: rect(0,0,0,0) !important;
    white-space: nowrap !important; border: 0 !important;
}

/* BS4 custom-select */
.custom-select {
    display: block;
    width: 100%;
    padding: 0.55rem 2rem 0.55rem 0.8rem;
    background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='none' stroke='%23111' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 0.75rem center/10px 6px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Breadcrumb styling */
.breadcrumb {
    background: transparent;
    padding: 0.5rem 0;
    font-size: 0.85rem;
}
.breadcrumb-item + .breadcrumb-item::before { color: var(--mm-text-muted); }

