html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, header ol, header ul, header li,
footer ol, footer ul, footer li,
fieldset, form, label, legend,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: inherit;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
    color: var(--color-general);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: inherit;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

:root {
    --blue: #09000D;
    --blue-light: #eef1ff;
    --ink: #14162b;
    --ink-soft: #6b7080;
    --line: #eceef3;
    --bg: #f6f7fb;
    --white: #ffffff;
    --danger: #e5484d;
    --radius: 14px;
    --sidebar-w: 260px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
/*    background: var(--bg);*/
    color: var(--ink);
}

.app {
    display: flex;
    min-height: 100vh;
}

.border-general {
    background: #ffffff;
    border: 1px solid #e4e7ec;
}
.header-general{
    padding:20px;
    border-radius:15px;
}
/* ============ ASIDE ============ */
.aside {
    width: var(--sidebar-w);
    background: var(--white);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    padding: 10px 16px;
    flex-shrink: 0;
    transition: margin-left 0.25s ease;
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 10000;
    top: 0;
    overflow-y: auto;
}

.aside__brand {
    display: flex;
    align-items: center;
    justify-content:space-between;
    gap: 10px;
    padding: 0 6px 22px;
}
    .aside__brand .logo-name-holder {
        display: flex;
        align-items: center;
    }

    .brand__logo {
        width: 50px;
        height: 30px;
        border-radius: 8px;
        background: var(--blue);
        color: white;
        display: grid;
        place-items: center;
        font-weight: 700;
    }
.aside__brand .logo-name-holder img {
    max-width: 40px;
    max-height:40px;
    object-fit:contain;
    margin-right:10px;
}
.brand__name {
    font-weight: 700;
    font-size: 18px;
}

.aside__search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 12px;
}
@media (max-width: 650px) {
    .aside__search {
        display:none;
    }
    }

    .aside__search input {
        border: none;
        background: transparent;
        outline: none;
        flex: 1;
        font-size: 13px;
        color: var(--ink);
    }

    .aside__search kbd {
        font-size: 11px;
        color: var(--ink-soft);
    }

    .icon {
        width: 16px;
        height: 16px;
        color: var(--ink-soft);
    }

    .aside__label {
        font-size: 11px;
        letter-spacing: 0.06em;
        color: var(--ink-soft);
        margin: 6px 6px 8px;
        text-transform: uppercase;
    }

    .nav {
        flex: 1;
        overflow-y: auto;
    }

    .nav__list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
        width: 100%;
    }

    .nav__list--bottom {
        border-top: 1px solid var(--line);
        padding-top: 12px;
        margin-top: 12px;
    }

    .nav__link,
    .nav__toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        border: none;
        background: none;
        font: inherit;
        text-align: left;
        cursor: pointer;
        color: var(--ink);
        text-decoration: none;
        padding: 10px 12px;
        border-radius: 10px;
        font-size: 14px;
    }

    button.header_menu-btn {
        background: none;
        outline: none;
        border: none;
    }

    .nav__link:hover,
    .nav__toggle:hover {
        background: var(--bg);
    }

    .nav__link--active {
        background: var(--blue-light);
        color: var(--blue);
        font-weight: 600;
    }

    .nav__link--active {
        position: relative;
        margin-left: 8px;
        width: calc(100% - 8px);
        background: var(--blue-light);
        color: var(--blue);
        font-weight: 600;
    }

        .nav__link--active::after {
            content: "";
            position: absolute;
            left: -8px;
            top: 50%;
            width: 3px;
            height: 30px;
            background: var(--blue);
            border-radius: 3px;
            transform: translateY(-50%);
        }

    .nav__icon {
        width: 18px;
        display: inline-flex;
        justify-content: center;
        font-size: 15px;
    }

    .badge {
        margin-left: auto;
        background: var(--danger);
        color: white;
        font-size: 11px;
        border-radius: 999px;
        padding: 1px 7px;
    }

    .nav__chevron {
        margin-left: auto;
        font-size: 11px;
        color: var(--ink-soft);
        transition: transform 0.2s ease;
    }

    .nav__item--dropdown.is-open .nav__chevron {
        transform: rotate(180deg);
    }

    .nav__submenu {
        list-style: none;
        margin: 2px 0 4px;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.2s ease;
    }

    .nav__item--dropdown.is-open .nav__submenu {
        max-height: 200px;
    }

    .nav__submenu a {
        display: block;
        padding: 8px 12px 8px 40px;
        font-size: 13.5px;
        color: var(--ink-soft);
        text-decoration: none;
        border-radius: 8px;
    }

        .nav__submenu a:hover {
            background: var(--bg);
            color: var(--ink);
        }

    /* ============ HEADER ============ */
    .app__main {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        margin-left: var(--sidebar-w);
    }

    .header {
        height: 55px;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 0 24px;
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .header__menu-btn {
        display: none;
        border: none;
        background: none;
        font-size: 20px;
        cursor: pointer;
    }

    .header__menu-btn {
        display: none;
        border: none;
        background: none;
        font-size: 20px;
        cursor: pointer;
    }

    .header__title {
        font-size: 20px;
        margin: 0;
        font-weight: 700;
    }

    .header__actions {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .icon-btn {
        position: relative;
        width: 38px;
        height: 38px;
        border-radius: 999px;
        border: 1px solid var(--line);
        background: var(--white);
        cursor: pointer;
        font-size: 16px;
    }

        .icon-btn .dot {
            position: absolute;
            top: 7px;
            right: 8px;
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--danger);
            border: 1.5px solid var(--white);
        }

    .profile-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        border: none;
        background: none;
        cursor: pointer;
        padding: 4px;
    }

    .avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: var(--blue);
        border: 2px solid var(--blue);
        color: white;
        display: grid;
        place-items: center;
        font-size: 12px;
        font-weight: 700;
        object-fit: cover;
    }

    .chevron {
        color: var(--ink-soft);
        font-size: 11px;
    }

    /* dropdown panels (header) */
    .dropdown {
        position: relative;
    }

    .dropdown__panel {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        min-width: 300px;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: 12px;
        box-shadow: 0 12px 28px rgba(20, 22, 43, 0.1);
        padding: 8px;
        display: none;
        flex-direction: column;
        z-index: 30;
    }

        .dropdown__panel.is-open {
            display: flex;
        }

    .dropdown__title {
        font-size: 12px;
        color: var(--ink-soft);
        margin: 4px 8px 6px;
    }

    .dropdown__row {
        padding: 9px 10px;
        border-radius: 8px;
        font-size: 13.5px;
        text-decoration: none;
        color: var(--ink);
    }

        .dropdown__row:hover {
            background: var(--bg);
        }

    .dropdown__row--danger {
        color: var(--danger);
    }

    /* ============ CONTENT ============ */


    .content__placeholder {
        color: var(--ink-soft);
        font-size: 14px;
    }

    .aside.is-closed {
        margin-left: calc(-1 * var(--sidebar-w));
    }

    .app__main.is-closed {
        margin-left: 0px;
    }

    .nav_menu-btn {
        background: none;
        border: none;
        outline: none;
    }

    .nav_menu-btn {
        display: none;
    }

        .nav_menu-btn.is-closed {
            display: flex;
        }

    .nav__menu-btn {
        display: none;
    }
    /* ============ RESPONSIVE ============ */
    @media (max-width: 1100px) {
        .nav_menu-btn {
            display: none;
        }

        .header_menu-btn {
            display: none;
        }

        .aside.is-closed {
            margin-left: unset;
        }

        .header__menu-btn {
            display: block;
        }

        .nav__menu-btn {
            display: block;
        }

        .app__main {
            margin-left: 0px;
        }

        .aside {
            position: fixed;
            inset: 0 auto 0 0;
            z-index: 40;
            margin-left: calc(-1 * var(--sidebar-w));
            box-shadow: 0 0 0 rgba(0,0,0,0);
        }

            .aside.is-open {
                margin-left: 0;
                box-shadow: 0 0 40px rgba(0,0,0,0.15);
            }
    }


    .top-statistics {
        display: flex;
        flex-wrap: wrap;
        gap: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .statistic-container {
        flex: 1 1 200px;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 0.75rem;
        padding: 1.25rem 1.5rem;
        box-shadow: 0 1px 2px rgba(0,0,0,0.04);
        transition: box-shadow 0.15s ease;
    }

        .statistic-container:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        }

    .header-stat p {
        margin: 0;
        font-size: 0.85rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: #6b7280;
    }

    .amount-large p {
        margin: 0.25rem 0 0;
        font-size: 2rem;
        font-weight: 700;
        color: #111827;
    }

    /* Optional: color-code by role */
    .statistic-container--superuser {
        border-left: 4px solid #dc2626;
    }

    .statistic-container--admin {
        border-left: 4px solid #09000D;
    }

    .statistic-container--manager {
        border-left: 4px solid #16a34a;
    }

    .statistic-container--user {
        border-left: 4px solid #9333ea;
    }

    .desription-and-action {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid #e5e7eb;
    }

        .desription-and-action h1 {
            margin: 0;
            font-size: 1.35rem;
            font-weight: 700;
            color: #111827;
        }

        .desription-and-action a#register {
            text-decoration: none;
        }

        .desription-and-action button {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: #09000D;
            color: #fff;
            border: none;
            border-radius: 0.5rem;
            padding: 0.6rem 1.25rem;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.15s ease, box-shadow 0.15s ease;
        }

            .desription-and-action button:hover {
                background: #09000D;
                box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
            }

            .desription-and-action button:active {
                background: #2A2130;
            }

    .btn-add-user {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: #09000D;
        color: #fff;
        text-decoration: none;
        border-radius: 0.5rem;
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
        font-weight: 600;
        transition: background 0.15s ease, box-shadow 0.15s ease;
    }

        .btn-add-user:hover {
            background: #09000D;
            color: #fff;
            box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
        }

    .home-stats-holder {
        display: flex;
        flex-wrap: wrap;
    }

    .home-stat {
        background: #ffffff;
        flex: 1 1 calc(33.333% - 20px);
        min-width: 220px;
        margin: 10px;
        margin-left: 0px;
        padding: 20px;
        border-radius: 12px;
        border: 1px solid #eeeeee;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transition: all 0.25s ease;
        text-decoration: none;
    }

        .home-stat:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
            color: inherit;
        }

    /* Revenue card */

    .revenue-stat {
        background: #09000D;
        border: none;
        color: #ffffff;
    }

        .revenue-stat .stat-header {
            color: #ffffff;
        }

            .revenue-stat .stat-header i {
                color: #ffffff;
            }

        .revenue-stat .stat p {
            color: #ffffff;
        }

        .revenue-stat .stat-description p {
            color: rgba(255, 255, 255, 0.75);
        }

    .stat-header {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
    }

        .stat-header i {
            color: #5d8de9;
        }

        .stat-header p {
            font-weight: 700;
        }

    .stat {
        font-size: 23px;
        margin-bottom: 10px;
    }

    .stat-description p {
        color: #b3b5b7;
        font-size: 14px;
    }

    .main-heading {
        display: flex;
    }

        .main-heading h1 {
            font-weight: 700;
            font-size: 25px;
        }

    .activity-table-container {
        width: 100%;
        overflow-x: auto;
        background: #fff;
        border-radius: 12px;
        border: 1px solid #e9ecef;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    }

    .activity-table {
        width: 100% !important;
        min-width: 1100px;
        border-collapse: collapse;
        font-size: 14px;
    }

        .activity-table thead {
            background: #f8f9fa;
        }

            .activity-table thead th {
                padding: 15px 16px;
                text-align: left;
                font-size: 12px;
                font-weight: 600;
                color: #6c757d;
                text-transform: uppercase;
                letter-spacing: .4px;
                border-bottom: 1px solid #e9ecef;
            }

        .activity-table tbody td {
            padding: 15px 16px;
            border-bottom: 1px solid #f0f0f0;
            vertical-align: middle;
        }

        .activity-table tbody tr:hover {
            background: #f8fafc;
        }

    /* USER */

    .activity-user {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .activity-avatar {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 50%;
        background: #eef2ff;
        color: #09000D;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 13px;
    }

    .activity-user-info {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .activity-user-name {
        font-weight: 600;
        color: #212529;
    }

    .activity-user-email {
        font-size: 12px;
        color: #868e96;
        margin-top: 2px;
    }

    /* ACTION */

    .activity-action {
        font-weight: 600;
        color: #212529;
        white-space: nowrap;
    }

    /* ENTITY */

    .activity-entity {
        display: inline-block;
        padding: 4px 9px;
        border-radius: 6px;
        background: #f1f3f5;
        color: #495057;
        font-size: 12px;
        font-weight: 500;
    }

    /* DETAILS */

    .activity-details {
        display: block;
        max-width: 250px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: #6c757d;
    }

    /* IP */

    .ip-address {
        font-family: monospace;
        font-size: 12px;
        color: #6c757d;
        white-space: nowrap;
    }

    /* DATE */

    .activity-date {
        display: flex;
        flex-direction: column;
        white-space: nowrap;
        font-weight: 500;
    }

        .activity-date small {
            margin-top: 3px;
            color: #868e96;
            font-size: 11px;
            font-weight: 400;
        }

    /* LOG LEVEL */

    .log-level {
        display: inline-block;
        padding: 4px 9px;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 600;
        text-transform: capitalize;
    }

        .log-level.info {
            background: #e7f5ff;
            color: #1971c2;
        }

        .log-level.warning {
            background: #fff3bf;
            color: #e67700;
        }

        .log-level.error {
            background: #ffe3e3;
            color: #c92a2a;
        }

        .log-level.critical {
            background: #ffdeeb;
            color: #a61e4d;
        }


    /* =========================================
   GLOBAL DATATABLE STYLING
   ========================================= */

    .dataTables_wrapper {
        width: 100%;
        background: #ffffff;
        border-radius: 12px;
        overflow: hidden;
    }

        /* -------------------------
   TOP CONTROLS
   ------------------------- */

        .dataTables_wrapper .dataTables_length,
        .dataTables_wrapper .dataTables_filter {
            padding: 16px 18px;
        }

        /* Show X entries */

        .dataTables_wrapper .dataTables_length {
            color: #555;
            font-size: 14px;
        }

            .dataTables_wrapper .dataTables_length label {
                display: flex;
                align-items: center;
                gap: 8px;
                margin: 0;
            }

            /* Number dropdown */

            .dataTables_wrapper .dataTables_length select {
                min-width: 65px;
                height: 40px;
                padding: 6px 30px 6px 10px;
                border: 1px solid #dfe3e8;
                border-radius: 6px;
                background: #fff;
                color: #343a40;
                font-size: 14px;
                outline: none;
                cursor: pointer;
            }

                .dataTables_wrapper .dataTables_length select:focus {
                    border-color: #09000D;
                    box-shadow: 0 0 0 2px rgba(79, 109, 245, 0.12);
                }

        /* Search */

        .dataTables_wrapper .dataTables_filter {
            text-align: right;
        }

            .dataTables_wrapper .dataTables_filter label {
                display: flex;
                align-items: center;
                justify-content: flex-end;
                margin: 0;
                font-size: 0;
            }

            /* Search input */

            .dataTables_wrapper .dataTables_filter input {
                width: 250px;
                height: 42px;
                padding: 8px 14px;
                border: 1px solid #dfe3e8;
                border-radius: 7px;
                outline: none;
                background: #fff;
                color: #343a40;
                font-size: 14px;
                transition: all 0.2s ease;
            }

                .dataTables_wrapper .dataTables_filter input::placeholder {
                    color: #9aa0a6;
                }

                .dataTables_wrapper .dataTables_filter input:focus {
                    border-color: #09000D;
                    box-shadow: 0 0 0 3px rgba(79, 109, 245, 0.10);
                }

        /* -------------------------
   TABLE
   ------------------------- */

        .dataTables_wrapper table.dataTable {
            width: 100% !important;
            border-collapse: collapse !important;
        }

            .dataTables_wrapper table.dataTable thead th {
                background: #f8f9fb;
                color: #68707d;
                font-size: 12px;
                font-weight: 600;
                text-transform: uppercase;
                letter-spacing: 0.4px;
                padding: 14px 16px;
                border-bottom: 1px solid #e5e7eb;
            }

            .dataTables_wrapper table.dataTable tbody td {
                padding: 14px 16px;
                border-bottom: 1px solid #f0f1f3;
                color: #343a40;
                vertical-align: middle;
            }

            .dataTables_wrapper table.dataTable tbody tr {
                transition: background 0.15s ease;
            }

                .dataTables_wrapper table.dataTable tbody tr:hover {
                    background: #f8faff;
                }

                .dataTables_wrapper table.dataTable tbody tr:last-child td {
                    border-bottom: none;
                }

        /* -------------------------
   BOTTOM INFORMATION
   ------------------------- */

        .dataTables_wrapper .dataTables_info {
            padding: 16px 18px;
            color: #7b818a;
            font-size: 13px;
        }

        /* -------------------------
   PAGINATION
   ------------------------- */

        .dataTables_wrapper .dataTables_paginate {
            padding: 12px 18px;
        }

            .dataTables_wrapper .dataTables_paginate .paginate_button {
                min-width: 34px;
                height: 34px;
                margin-left: 4px;
                padding: 7px 10px !important;
                border: 1px solid transparent !important;
                border-radius: 6px !important;
                color: #555 !important;
                background: transparent !important;
                cursor: pointer;
                transition: all 0.15s ease;
            }

                .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
                    background: #f1f3f9 !important;
                    border-color: #e2e5ec !important;
                    color: #333 !important;
                }

                /* Active page */

                .dataTables_wrapper .dataTables_paginate .paginate_button.current {
                    background: #09000D !important;
                    border-color: #09000D !important;
                    color: #fff !important;
                }

                /* Disabled */

                .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
                    opacity: 0.4;
                    cursor: default;
                }

                    .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
                        background: transparent !important;
                        border-color: transparent !important;
                    }

        /* -------------------------
   REMOVE DATATABLES DEFAULT
   ------------------------- */

        .dataTables_wrapper table.dataTable.no-footer {
            border-bottom: none;
        }

        .dataTables_wrapper table.dataTable thead > tr > th {
            border-bottom: 1px solid #e5e7eb;
        }

    /* -------------------------
   RESPONSIVE
   ------------------------- */

    @media (max-width: 768px) {

        .dataTables_wrapper .dataTables_length,
        .dataTables_wrapper .dataTables_filter {
            padding: 12px 15px;
        }

        .dataTables_wrapper .dataTables_filter {
            text-align: left;
        }

            .dataTables_wrapper .dataTables_filter label {
                justify-content: flex-start;
            }

            .dataTables_wrapper .dataTables_filter input {
                width: 100%;
                max-width: 300px;
            }

        .dataTables_wrapper .dataTables_info {
            padding: 12px 15px;
        }

        .dataTables_wrapper .dataTables_paginate {
            padding: 12px 15px;
            text-align: left;
        }
    }

    /* =========================================
   DATATABLES 2
   ========================================= */

    .dt-container {
        width: 100%;
    }

        /* Top row */

        .dt-container .dt-layout-row:first-child {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px 18px;
            min-height: 70px;
        }

        /* Length */

        .dt-container .dt-length {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #555;
            font-size: 14px;
        }

            .dt-container .dt-length select {
                height: 40px;
                min-width: 65px;
                padding: 5px 28px 5px 10px;
                border: 1px solid #dfe3e8;
                border-radius: 6px;
                background: #fff;
                outline: none;
                cursor: pointer;
                font-size: 14px;
            }

                .dt-container .dt-length select:focus {
                    border-color: #09000D;
                    box-shadow: 0 0 0 3px rgba(79, 109, 245, 0.1);
                }

        /* Search */

        .dt-container .dt-search {
            display: flex;
            align-items: center;
        }

            .dt-container .dt-search label {
                display: none;
            }

            .dt-container .dt-search input {
                width: 250px;
                height: 42px;
                padding: 8px 14px;
                border: 1px solid #dfe3e8;
                border-radius: 7px;
                outline: none;
                font-size: 14px;
                color: #343a40;
            }

                .dt-container .dt-search input::placeholder {
                    color: #9aa0a6;
                }

                .dt-container .dt-search input:focus {
                    border-color: #09000D;
                    box-shadow: 0 0 0 3px rgba(79, 109, 245, 0.1);
                }

        /* Bottom */

        .dt-container .dt-layout-row:last-child {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 18px;
        }

        /* Information */

        .dt-container .dt-info {
            color: #7b818a;
            font-size: 13px;
        }

        /* Pagination */

        .dt-container .dt-paging {
            display: flex;
            align-items: center;
            gap: 4px;
        }

            .dt-container .dt-paging button {
                min-width: 34px;
                height: 34px;
                padding: 5px 9px;
                border: 1px solid transparent;
                border-radius: 6px;
                background: transparent;
                color: #555;
                cursor: pointer;
                transition: all 0.15s ease;
            }

                .dt-container .dt-paging button:hover {
                    background: #f1f3f9;
                    border-color: #e2e5ec;
                }

                .dt-container .dt-paging button.current {
                    background: #09000D;
                    border-color: #09000D;
                    color: white;
                }

                .dt-container .dt-paging button.disabled {
                    opacity: 0.4;
                    cursor: default;
                }

    @media (max-width: 768px) {

        .dt-container .dt-layout-row:first-child {
            flex-direction: column;
            align-items: stretch;
            gap: 12px;
            padding: 15px;
        }

        .dt-container .dt-search input {
            width: 100%;
        }

        .dt-container .dt-layout-row:last-child {
            flex-direction: column;
            align-items: flex-start;
            gap: 12px;
            padding: 12px 15px;
        }
    }


    /* =========================================
   COMPANY PAGE
   ========================================= */

    .company-page {
        width: 100%;
        padding: 25px 0;
    }


    /* =========================================
   PAGE HEADER
   ========================================= */

    .company-page-header {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 20px;
        margin-bottom: 25px;
    }

        .company-page-header h2 {
            margin: 6px 0 4px;
            font-size: 28px;
            font-weight: 700;
            color: #171b2d;
        }

        .company-page-header p {
            margin: 0;
            color: #8b919d;
            font-size: 14px;
        }

    .page-breadcrumb {
        display: flex;
        align-items: center;
        gap: 7px;
        color: #8b919d;
        font-size: 12px;
    }

        .page-breadcrumb i {
            font-size: 9px;
        }


    /* =========================================
   CREATE BUTTON
   ========================================= */

    .create-company-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 11px 18px;
        background: #09000D;
        color: #ffffff;
        border-radius: 8px;
        border: none;
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
        box-shadow: 0 4px 10px rgba(79, 109, 245, 0.2);
        transition: all 0.2s ease;
    }

        .create-company-btn:hover {
            background: #405bd6;
            color: #ffffff;
            transform: translateY(-1px);
            box-shadow: 0 6px 14px rgba(79, 109, 245, 0.25);
        }

        .create-company-btn i {
            font-size: 16px;
        }


    /* =========================================
   TABLE CARD
   ========================================= */

    .company-table-card {
        background: #ffffff;
        border-radius: 12px;
        border: 1px solid #edf0f4;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        overflow: hidden;
    }


    /* =========================================
   TABLE HEADER
   ========================================= */

    .company-table-header {
        padding: 20px 22px;
        border-bottom: 1px solid #edf0f4;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

        .company-table-header h5 {
            margin: 0 0 4px;
            color: #171b2d;
            font-size: 16px;
            font-weight: 650;
        }

        .company-table-header p {
            margin: 0;
            color: #9298a3;
            font-size: 13px;
        }


    /* =========================================
   TABLE
   ========================================= */

    .company-table-wrapper {
        width: 100%;
        overflow-x: auto;
    }

    .company-table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin: 0 !important;
    }

        .company-table thead th {
            padding: 14px 20px !important;
            background: #f8f9fb !important;
            color: #727986 !important;
            border: none !important;
            border-bottom: 1px solid #e9ecf1 !important;
            font-size: 11px !important;
            font-weight: 650 !important;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            white-space: nowrap;
        }

        .company-table tbody td {
            padding: 17px 20px !important;
            border: none !important;
            border-bottom: 1px solid #f0f2f5 !important;
            color: #343844;
            font-size: 14px;
            vertical-align: middle;
        }

        .company-table tbody tr {
            transition: background 0.15s ease;
        }

            .company-table tbody tr:hover {
                background: #f9faff !important;
            }

            .company-table tbody tr:last-child td {
                border-bottom: none !important;
            }


        /* =========================================
   COMPANY NAME
   ========================================= */

        .company-table tbody td:first-child {
            font-weight: 600;
            color: #202435;
        }


        /* =========================================
   EMAIL
   ========================================= */

        .company-table tbody td:nth-child(2) {
            color: #6f7682;
        }


        /* =========================================
   PHONE
   ========================================= */

        .company-table tbody td:nth-child(3) {
            color: #6f7682;
        }


        /* =========================================
   ACTION BUTTONS
   ========================================= */

        .company-table .btn {
            border-radius: 6px !important;
            padding: 7px 11px !important;
            font-size: 12px !important;
            font-weight: 500;
            box-shadow: none !important;
        }

        .company-table .btn-primary {
            background: #eef2ff !important;
            color: #09000D !important;
            border: 1px solid #e0e6ff !important;
        }

            .company-table .btn-primary:hover {
                background: #09000D !important;
                color: #ffffff !important;
            }


    /* =========================
           Merchant Details Page
           ========================= */

    .company-page {
        --primary: #09000D;
        --primary-dark: #2A2130;
        --success: #1cc88a;
        --danger: #e74a3b;
        --warning: #f6c23e;
        --text: #2d3748;
        --muted: #718096;
        --border: #edf0f5;
        --surface: #ffffff;
        --background: #f7f9fc;
        color: var(--text);
    }

    /* Header */
    .company-hero {
        position: relative;
        overflow: hidden;
        border: 0;
        border-radius: 18px;
        background: linear-gradient( 135deg, var(--primary) 0%, var(--primary-dark) 100% );
        box-shadow: 0 10px 35px rgba(34, 74, 190, 0.18);
    }

        .company-hero::before {
            content: "";
            position: absolute;
            width: 300px;
            height: 300px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.06);
            top: -150px;
            right: -80px;
        }

        .company-hero::after {
            content: "";
            position: absolute;
            width: 180px;
            height: 180px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.04);
            bottom: -100px;
            left: 25%;
        }

    .company-hero-content {
        position: relative;
        z-index: 2;
    }

    .company-logo {
        width: 88px;
        height: 88px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.6);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        overflow: hidden;
    }

        .company-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            padding: 8px;
        }

        .company-logo i {
            font-size: 2.5rem;
            color: var(--primary);
        }

    .company-name {
        font-size: 1.75rem;
        font-weight: 700;
        letter-spacing: -0.5px;
    }

    .company-meta {
        color: rgba(255, 255, 255, 0.78);
        font-size: 0.875rem;
    }

    .company-code {
        background: rgba(255, 255, 255, 0.16);
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.18);
        padding: 5px 10px;
        border-radius: 7px;
        font-weight: 600;
    }

    .status-badge {
        padding: 5px 10px;
        border-radius: 7px;
        font-size: 0.75rem;
        font-weight: 600;
    }

    .hero-edit-btn {
        border: 0;
        border-radius: 10px;
        padding: 10px 18px;
        font-weight: 600;
        transition: all 0.2s ease;
    }

        .hero-edit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
        }

    /* Cards */
    .modern-card {
        background: var(--surface) !important;
        border: 1px solid var(--border) !important;
        text-decoration: none;
        border-radius: 15px;
        box-shadow: 0 4px 18px rgba(30, 42, 60, 0.05);
        overflow: hidden;
        transition: box-shadow 0.2s ease, transform 0.2s ease;
    }

        .modern-card:hover {
            box-shadow: 0 8px 25px rgba(30, 42, 60, 0.08);
        }

    .modern-card-header {
        padding: 17px 20px;
        background: #fff;
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .section-title {
        display: flex;
        align-items: center;
        gap: 9px;
        font-size: 0.95rem;
        font-weight: 700;
        color: #344054;
        margin: 0;
    }

        .section-title i {
            color: var(--primary);
            font-size: 1.05rem;
        }

    .section-count {
        color: #98a2b3;
        font-weight: 500;
    }

    .modern-card-body {
        padding: 20px;
    }

    /* Location */
    .company-details-list {
        margin: 0;
    }

        .company-details-list dt {
            color: #98a2b3;
            font-size: 0.78rem;
            font-weight: 500;
            margin-bottom: 8px;
        }

        .company-details-list dd {
            color: #344054;
            font-size: 0.875rem;
            font-weight: 600;
            margin-bottom: 18px;
            word-break: break-word;
        }

            .company-details-list dd:last-child {
                margin-bottom: 0;
            }

    /* Website */
    .website-card {
        padding: 16px 20px;
    }

    .website-icon {
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        background: #eef3ff;
        color: var(--primary);
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .website-link {
        color: #344054;
        font-weight: 600;
        font-size: 0.875rem;
        text-decoration: none;
    }

        .website-link:hover {
            color: var(--primary);
        }

    /* Financial */
    .financial-total {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        margin-bottom: 18px;
    }

    .financial-label {
        color: var(--muted);
        font-size: 0.8rem;
    }

    .financial-value {
        font-size: 1.35rem;
        font-weight: 700;
        color: #344054;
    }

    .financial-row {
        padding: 12px 0;
        border-bottom: 1px solid #f1f3f6;
    }

        .financial-row:last-of-type {
            border-bottom: 0;
        }

    .financial-amount {
        font-size: 0.9rem;
        font-weight: 700;
    }

        .financial-amount.paid {
            color: var(--success);
        }

        .financial-amount.outstanding {
            color: var(--danger);
        }

    .financial-progress {
        height: 9px;
        border-radius: 20px;
        background: #edf1f7;
        overflow: hidden;
    }

        .financial-progress .progress-bar {
            border-radius: 20px;
            background: linear-gradient( 90deg, #1cc88a, #17a673 );
        }

    .collection-label {
        font-size: 0.75rem;
        color: #98a2b3;
        margin-top: 7px;
    }

    /* Buttons */
    .btn-modern {
        border-radius: 9px;
        font-size: 0.8rem;
        font-weight: 600;
        padding: 8px 13px;
        transition: all 0.2s ease;
    }

        .btn-modern:hover {
            transform: translateY(-1px);
        }

    .btn-primary-modern {
        background: var(--primary);
        border-color: var(--primary);
    }

    /* Tables */
    .modern-table {
        margin: 0;
        border-collapse: separate;
        border-spacing: 0;
    }

        .modern-table thead th {
            background: #f8fafc;
            color: #667085;
            border-bottom: 1px solid var(--border);
            border-top: 0;
            padding: 13px 18px;
            font-size: 0.72rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.4px;
            white-space: nowrap;
        }

        .modern-table tbody td {
            padding: 14px 18px;
            border-bottom: 1px solid #f2f4f7;
            vertical-align: middle;
            font-size: 0.84rem;
        }

        .modern-table tbody tr:last-child td {
            border-bottom: 0;
        }

        .modern-table tbody tr {
            transition: background 0.15s ease;
        }

            .modern-table tbody tr:hover {
                background: #fafbff;
            }

    .file-icon {
        width: 34px;
        height: 34px;
        border-radius: 8px;
        background: #f1f4fa;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #667085;
        margin-right: 9px;
    }

    .file-name {
        font-weight: 600;
        color: #344054;
    }

    .document-type {
        display: inline-block;
        padding: 5px 9px;
        border-radius: 6px;
        background: #f5f7fa;
        border: 1px solid #e9edf2;
        color: #667085;
        font-size: 0.72rem;
        font-weight: 600;
    }

    .date-text {
        color: #98a2b3;
        font-size: 0.78rem;
    }

    .download-btn {
        width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        border: 1px solid #e4e7ec;
        color: #667085;
        background: #fff;
        transition: all 0.2s ease;
    }

        .download-btn:hover {
            color: var(--primary);
            border-color: #cbd6f5;
            background: #f6f8ff;
        }

    /* Payment */
    .payment-amount {
        font-weight: 700;
        color: #344054;
    }

    .payment-status {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 5px 9px;
        border-radius: 20px;
        font-size: 0.7rem;
        font-weight: 700;
    }

        .payment-status::before {
            content: "";
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: currentColor;
        }

    .payment-paid {
        background: #ecfdf3;
        color: #039855;
    }

    .payment-pending {
        background: #fffaeb;
        color: #b54708;
    }

    .payment-other {
        background: #f2f4f7;
        color: #667085;
    }

    /* Empty states */
    .empty-state {
        padding: 45px 20px;
        text-align: center;
        color: #98a2b3;
    }

    .empty-state-icon {
        width: 55px;
        height: 55px;
        border-radius: 14px;
        background: #f5f7fa;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 12px;
        font-size: 1.6rem;
        color: #98a2b3;
    }

    .empty-state-title {
        font-weight: 600;
        color: #667085;
        font-size: 0.9rem;
    }

    /* Footer link */
    .card-footer-modern {
        padding: 13px 18px;
        background: #fff;
        border-top: 1px solid var(--border);
        text-align: right;
    }

    .view-all-link {
        color: var(--primary);
        font-size: 0.78rem;
        font-weight: 600;
        text-decoration: none;
    }

        .view-all-link:hover {
            text-decoration: underline;
        }

    /* Responsive */
    @media (max-width: 991.98px) {
        .company-name {
            font-size: 1.45rem;
        }

        .company-hero-content {
            align-items: flex-start !important;
        }
    }

    @media (max-width: 575.98px) {
        .company-logo {
            width: 68px;
            height: 68px;
        }

        .company-name {
            font-size: 1.25rem;
        }

        .modern-card-header {
            padding: 15px;
        }

        .modern-card-body {
            padding: 16px;
        }

        .modern-table thead th,
        .modern-table tbody td {
            padding-left: 13px;
            padding-right: 13px;
        }

        .hero-edit-btn {
            width: 100%;
        }
    }


    /* =========================================================
           COMPANY FORM
           ========================================================= */

    .company-form-page {
        --primary: #09000D;
        --primary-dark: #2A2130;
        --text: #344054;
        --muted: #667085;
        --border: #e4e7ec;
        --soft-border: #edf0f5;
        --background: #f7f9fc;
        --surface: #ffffff;
        color: var(--text);
    }

    /* ---------------------------------------------------------
           Page Header
           --------------------------------------------------------- */

    .company-form-header {
        position: relative;
        overflow: hidden;
        border-radius: 18px;
        background: linear-gradient( 135deg, var(--primary) 0%, var(--primary-dark) 100% );
        box-shadow: 0 10px 30px rgba(34, 74, 190, 0.16);
    }

        .company-form-header::before {
            content: "";
            position: absolute;
            width: 320px;
            height: 320px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.055);
            right: -100px;
            top: -190px;
        }

        .company-form-header::after {
            content: "";
            position: absolute;
            width: 200px;
            height: 200px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.035);
            left: 35%;
            bottom: -150px;
        }

    .company-form-header-content {
        position: relative;
        z-index: 2;
        padding: 25px 30px;
    }

    .header-icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.18);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.45rem;
    }

    .header-title {
        font-size: 1.45rem;
        font-weight: 700;
        letter-spacing: -0.3px;
    }

    .header-subtitle {
        color: rgba(255, 255, 255, 0.72);
        font-size: 0.82rem;
        margin-top: 2px;
    }

    .mode-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 7px 11px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: #fff;
        font-size: 0.72rem;
        font-weight: 600;
    }

    /* ---------------------------------------------------------
           Form Sections
           --------------------------------------------------------- */

    .form-section {
        background: var(--surface);
        border: 1px solid var(--soft-border);
        border-radius: 15px;
        box-shadow: 0 4px 16px rgba(30, 42, 60, 0.045);
        overflow: hidden;
    }

        .form-section + .form-section {
            margin-top: 20px;
        }

    .form-section-header {
        padding: 17px 21px;
        border-bottom: 1px solid var(--soft-border);
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .section-icon {
        width: 36px;
        height: 36px;
        border-radius: 9px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #eef3ff;
        color: var(--primary);
        flex-shrink: 0;
    }

    .section-heading {
        margin: 0;
        font-size: 0.92rem;
        font-weight: 700;
        color: var(--text);
    }

    .section-description {
        margin: 2px 0 0;
        color: #98a2b3;
        font-size: 0.74rem;
    }

    .form-section-body {
        padding: 22px;
    }

    /* ---------------------------------------------------------
           Form Controls
           --------------------------------------------------------- */

    .form-floating > .form-control {
        min-height: 56px;
        height: 56px;
        border-radius: 9px;
        border: 1px solid var(--border);
        box-shadow: none;
        font-size: 0.875rem;
        color: var(--text);
        transition: all 0.2s ease;
    }

        .form-floating > .form-control:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.10);
        }

    .form-floating > label {
        color: #98a2b3;
        font-size: 0.82rem;
    }

    .form-control:disabled,
    .form-control[readonly] {
        background-color: #f8fafc;
        color: #667085;
        cursor: not-allowed;
    }

    .field-label {
        display: block;
        margin-bottom: 7px;
        color: #667085;
        font-size: 0.77rem;
        font-weight: 600;
    }

        .field-label i {
            color: var(--primary);
            margin-right: 4px;
        }

    .form-control-file {
        min-height: 46px;
        border-radius: 9px;
        border: 1px solid var(--border);
        font-size: 0.82rem;
        padding: 10px 12px;
        background: #fff;
    }

        .form-control-file:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.10);
        }

    .form-text {
        color: #98a2b3;
        font-size: 0.7rem;
        line-height: 1.4;
        margin-top: 6px;
    }

    .text-danger.small {
        font-size: 0.72rem;
        margin-top: 5px;
        display: block;
    }

    /* ---------------------------------------------------------
           Branding Upload Cards
           --------------------------------------------------------- */

    .upload-card {
        height: 100%;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: #fbfcfe;
        padding: 16px;
    }

    .upload-card-title {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--text);
        font-size: 0.82rem;
        font-weight: 700;
        margin-bottom: 13px;
    }

        .upload-card-title i {
            color: var(--primary);
        }

    .upload-area {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .preview-box {
        width: 92px;
        height: 92px;
        border: 1px solid #e1e6ee;
        border-radius: 10px;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        flex-shrink: 0;
    }

    .letterhead-preview {
        width: 120px;
        height: 92px;
    }

    .preview-box img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 7px;
    }

    .preview-placeholder {
        color: #b8c0cc;
        font-size: 1.7rem;
    }

    .upload-input-area {
        flex-grow: 1;
        min-width: 0;
    }

    .remove-image-btn {
        width: 34px;
        height: 34px;
        border-radius: 8px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    /* ---------------------------------------------------------
           Notes
           --------------------------------------------------------- */

    .notes-wrapper {
        position: relative;
    }

        .notes-wrapper textarea {
            border: 1px solid var(--border);
            border-radius: 9px;
            font-size: 0.875rem;
        }

            .notes-wrapper textarea:focus {
                border-color: var(--primary);
                box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.10);
            }

    /* ---------------------------------------------------------
           Validation
           --------------------------------------------------------- */

    .validation-summary {
        border-radius: 10px;
        padding: 12px 15px;
        background: #fff5f5;
        border: 1px solid #ffd6d6;
        font-size: 0.8rem;
    }

    /* ---------------------------------------------------------
           Action Bar
           --------------------------------------------------------- */

    .form-actions {
        margin-top: 20px;
        background: #fff;
        border: 1px solid var(--soft-border);
        border-radius: 15px;
        padding: 15px 18px;
        box-shadow: 0 4px 16px rgba(30, 42, 60, 0.045);
    }

    .btn-form-primary {
        min-height: 42px;
        border-radius: 9px;
        padding: 9px 19px;
        font-size: 0.82rem;
        font-weight: 600;
        background: var(--primary);
        border-color: var(--primary);
        transition: all 0.2s ease;
    }

        .btn-form-primary:hover {
            background: var(--primary-dark);
            border-color: var(--primary-dark);
            transform: translateY(-1px);
            box-shadow: 0 5px 13px rgba(78, 115, 223, 0.20);
        }

    .btn-form-secondary {
        min-height: 42px;
        border-radius: 9px;
        padding: 9px 19px;
        font-size: 0.82rem;
        font-weight: 600;
    }

    /* ---------------------------------------------------------
           Responsive
           --------------------------------------------------------- */

    @media (max-width: 767.98px) {
        .company-form-header-content {
            padding: 20px;
        }

        .header-title {
            font-size: 1.2rem;
        }

        .form-section-body {
            padding: 17px;
        }

        .upload-area {
            align-items: flex-start;
        }

        .preview-box {
            width: 75px;
            height: 75px;
        }

        .letterhead-preview {
            width: 100px;
            height: 75px;
        }

        .form-actions {
            padding: 13px;
        }

            .form-actions .btn {
                width: 100%;
            }
    }

    /* =========================================================
           DOCUMENT FORM
           ========================================================= */

    .document-page {
        --primary: #09000D;
        --primary-dark: #2A2130;
        --text: #344054;
        --muted: #667085;
        --light-muted: #98a2b3;
        --border: #e4e7ec;
        --soft-border: #edf0f5;
        --background: #f7f9fc;
        --surface: #ffffff;
        color: var(--text);
    }


    /* =========================================================
           HEADER
           ========================================================= */

    .document-header {
        position: relative;
        overflow: hidden;
        border-radius: 18px;
        background: linear-gradient( 135deg, var(--primary) 0%, var(--primary-dark) 100% );
        box-shadow: 0 10px 30px rgba(34, 74, 190, 0.16);
    }


        .document-header::before {
            content: "";
            position: absolute;
            width: 320px;
            height: 320px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.055);
            right: -110px;
            top: -180px;
        }


        .document-header::after {
            content: "";
            position: absolute;
            width: 190px;
            height: 190px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.035);
            left: 40%;
            bottom: -145px;
        }


    .document-header-content {
        position: relative;
        z-index: 2;
        padding: 25px 30px;
    }


    .document-header-icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        background: rgba(255,255,255,.14);
        border: 1px solid rgba(255,255,255,.16);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.45rem;
    }


    .document-header-title {
        font-size: 1.45rem;
        font-weight: 700;
        letter-spacing: -.3px;
    }


    .document-header-subtitle {
        color: rgba(255,255,255,.72);
        font-size: .82rem;
        margin-top: 3px;
    }


    .document-mode {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 7px 11px;
        border-radius: 8px;
        background: rgba(255,255,255,.12);
        border: 1px solid rgba(255,255,255,.14);
        color: white;
        font-size: .72rem;
        font-weight: 600;
    }


    /* =========================================================
           CARDS
           ========================================================= */

    .document-card {
        background: var(--surface);
        border: 1px solid var(--soft-border);
        border-radius: 15px;
        box-shadow: 0 4px 16px rgba(30,42,60,.045);
        overflow: hidden;
    }


    .document-card-header {
        padding: 17px 21px;
        border-bottom: 1px solid var(--soft-border);
        display: flex;
        align-items: center;
        gap: 12px;
    }


    .document-card-icon {
        width: 36px;
        height: 36px;
        border-radius: 9px;
        background: #eef3ff;
        color: var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }


    .document-card-title {
        margin: 0;
        font-size: .92rem;
        font-weight: 700;
        color: var(--text);
    }


    .document-card-subtitle {
        margin: 2px 0 0;
        font-size: .74rem;
        color: var(--light-muted);
    }


    .document-card-body {
        padding: 22px;
    }


    /* =========================================================
           UPLOAD AREA
           ========================================================= */

    .upload-zone {
        position: relative;
        border: 1.5px dashed #cbd5e1;
        border-radius: 13px;
        background: #fafbfc;
        padding: 28px 22px;
        text-align: center;
        transition: all .2s ease;
        cursor: pointer;
    }


        .upload-zone:hover,
        .upload-zone.dragover {
            border-color: var(--primary);
            background: #f7f9ff;
        }


    .upload-icon {
        width: 55px;
        height: 55px;
        border-radius: 14px;
        background: #eef3ff;
        color: var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 12px;
        font-size: 1.55rem;
    }


    .upload-title {
        font-size: .9rem;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 4px;
    }


    .upload-description {
        font-size: .75rem;
        color: var(--light-muted);
        margin-bottom: 15px;
    }


    .upload-input {
        max-width: 460px;
        margin: auto;
        text-align: left;
    }


        .upload-input input {
            border-radius: 9px;
            border: 1px solid var(--border);
            font-size: .8rem;
            padding: 10px;
        }


            .upload-input input:focus {
                border-color: var(--primary);
                box-shadow: 0 0 0 3px rgba(78,115,223,.10);
            }


    /* =========================================================
           CURRENT DOCUMENT
           ========================================================= */

    .current-document {
        margin-top: 16px;
        padding: 13px;
        border-radius: 10px;
        background: #f8fafc;
        border: 1px solid var(--soft-border);
    }


    .current-document-icon {
        width: 40px;
        height: 40px;
        border-radius: 9px;
        background: white;
        border: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary);
        font-size: 1.15rem;
        flex-shrink: 0;
    }


    .current-document-name {
        font-size: .82rem;
        font-weight: 700;
        color: var(--text);
        word-break: break-word;
    }


    .current-document-meta {
        color: var(--light-muted);
        font-size: .7rem;
        margin-top: 2px;
    }


    /* =========================================================
           FORM FIELDS
           ========================================================= */

    .field-label {
        display: block;
        margin-bottom: 7px;
        color: var(--muted);
        font-size: .77rem;
        font-weight: 600;
    }


        .field-label i {
            color: var(--primary);
            margin-right: 4px;
        }


    .document-input {
        border: 1px solid var(--border);
        border-radius: 9px;
        min-height: 45px;
        font-size: .84rem;
        box-shadow: none;
        transition: all .2s ease;
    }


        .document-input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(78,115,223,.10);
        }


    textarea.document-input {
        min-height: 120px;
        resize: vertical;
    }


    .validation-error {
        display: block;
        font-size: .7rem;
        margin-top: 5px;
    }


    /* =========================================================
           DOCUMENT PREVIEW
           ========================================================= */

    .preview-card {
        position: sticky;
        top: 20px;
    }


    .preview-container {
        min-height: 470px;
        background: #f1f3f6;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 18px;
        overflow: hidden;
    }


    .preview-placeholder {
        text-align: center;
        color: var(--light-muted);
    }


    .preview-placeholder-icon {
        width: 65px;
        height: 65px;
        border-radius: 15px;
        background: #e9edf3;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 12px;
        font-size: 1.8rem;
    }


    .preview-placeholder-title {
        font-size: .85rem;
        font-weight: 600;
        color: var(--muted);
    }


    .preview-placeholder-text {
        font-size: .72rem;
        margin-top: 3px;
    }


    .preview-image {
        max-width: 100%;
        max-height: 430px;
        object-fit: contain;
        background: white;
        box-shadow: 0 4px 15px rgba(0,0,0,.08);
    }


    .preview-pdf {
        width: 100%;
        height: 460px;
        border: 0;
        background: white;
    }


    .office-preview {
        text-align: center;
    }


    .office-preview-icon {
        width: 75px;
        height: 75px;
        border-radius: 15px;
        background: #eef3ff;
        color: var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 15px;
        font-size: 2.2rem;
    }


    .preview-file-name {
        font-size: .82rem;
        font-weight: 700;
        color: var(--text);
        word-break: break-word;
        max-width: 280px;
        margin: auto;
    }


    /* =========================================================
           PREVIEW FOOTER
           ========================================================= */

    .preview-footer {
        padding: 12px 17px;
        border-top: 1px solid var(--soft-border);
        background: white;
    }


    .preview-footer-text {
        color: var(--light-muted);
        font-size: .7rem;
    }


    /* =========================================================
           ACTIONS
           ========================================================= */

    .document-actions {
        margin-top: 20px;
        padding: 15px 18px;
        background: white;
        border: 1px solid var(--soft-border);
        border-radius: 15px;
        box-shadow: 0 4px 16px rgba(30,42,60,.045);
    }


    .btn-document-primary {
        min-height: 42px;
        border-radius: 9px;
        padding: 9px 19px;
        font-size: .82rem;
        font-weight: 600;
        background: var(--primary);
        border-color: var(--primary);
        transition: all .2s ease;
    }


        .btn-document-primary:hover {
            background: var(--primary-dark);
            border-color: var(--primary-dark);
            transform: translateY(-1px);
            box-shadow: 0 5px 13px rgba(78,115,223,.20);
        }


    .btn-document-secondary {
        min-height: 42px;
        border-radius: 9px;
        padding: 9px 19px;
        font-size: .82rem;
        font-weight: 600;
    }


    /* =========================================================
           RESPONSIVE
           ========================================================= */

    @media (max-width: 991.98px) {
        .preview-card {
            position: static;
        }

        .preview-container {
            min-height: 350px;
        }
    }


    @media (max-width: 767.98px) {
        .document-header-content {
            padding: 20px;
        }

        .document-header-title {
            font-size: 1.2rem;
        }

        .document-card-body {
            padding: 17px;
        }

        .preview-container {
            min-height: 300px;
        }

        .document-actions .btn {
            width: 100%;
        }
    }

    .register-page {
        --primary: #09000D;
        --primary-dark: #2A2130;
        --text: #344054;
        --muted: #667085;
        --light-muted: #98a2b3;
        --border: #e4e7ec;
        --soft-border: #edf0f5;
        --background: #f7f9fc;
        --surface: #ffffff;
    }

    .register-card {
        max-width: 850px;
        margin-bottom: 40px;
        border: 1px solid var(--soft-border);
        border-radius: 18px;
        overflow: hidden;
        background: var(--surface);
        box-shadow: 0 15px 40px rgba(30, 42, 60, .08);
    }

    /* Header */
    .register-header {
        position: relative;
        overflow: hidden;
        background: linear-gradient(135deg, #09000D 0%, #2A2130 100%);
    }

        .register-header::before {
            content: "";
            position: absolute;
            width: 330px;
            height: 330px;
            border-radius: 50%;
            background: rgba(255,255,255,.06);
            right: -110px;
            top: -190px;
        }

        .register-header::after {
            content: "";
            position: absolute;
            width: 190px;
            height: 190px;
            border-radius: 50%;
            background: rgba(255,255,255,.04);
            left: 42%;
            bottom: -145px;
        }

    .register-header-content {
        position: relative;
        z-index: 2;
        padding: 28px 30px;
    }

    .register-header-icon {
        width: 54px;
        height: 54px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,.13);
        border: 1px solid rgba(255,255,255,.16);
        color: white;
        font-size: 1.45rem;
        flex-shrink: 0;
    }

    .register-title {
        color: white;
        font-size: 1.45rem;
        font-weight: 700;
        letter-spacing: -.3px;
        margin: 0;
    }

    .register-subtitle {
        color: rgba(255,255,255,.72);
        font-size: .78rem;
        margin-top: 4px;
    }

    .admin-tag {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        margin-left: 8px;
        padding: 5px 9px;
        border-radius: 7px;
        background: rgba(255,255,255,.13);
        border: 1px solid rgba(255,255,255,.14);
        color: white;
        font-size: .65rem;
        font-weight: 600;
        letter-spacing: .06em;
        text-transform: uppercase;
        vertical-align: middle;
    }

    /* Body */
    .register-body {
        padding: 28px;
        background: #fff;
    }

    .register-intro {
        text-align: center;
        margin-bottom: 25px;
    }

    .register-intro-title {
        color: var(--text);
        font-size: .95rem;
        font-weight: 700;
        margin-bottom: 4px;
    }

    .register-intro-text {
        color: var(--light-muted);
        font-size: .75rem;
        margin: 0;
    }

    /* Sections */
    .register-section {
        border: 1px solid var(--soft-border);
        border-radius: 14px;
        overflow: hidden;
        margin-bottom: 20px;
        background: #fff;
    }

    .register-section-header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 15px 18px;
        border-bottom: 1px solid var(--soft-border);
        background: #fafbfc;
    }

    .register-section-icon {
        width: 35px;
        height: 35px;
        border-radius: 9px;
        background: #eef3ff;
        color: var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .register-section-title {
        margin: 0;
        font-size: .86rem;
        font-weight: 700;
        color: var(--text);
    }

    .register-section-description {
        margin: 2px 0 0;
        color: var(--light-muted);
        font-size: .7rem;
    }

    .register-section-body {
        padding: 20px;
    }

    /* Form */
    .form-group {
        margin-bottom: 16px;
    }

    .field-label {
        display: block;
        margin-bottom: 7px;
        color: var(--muted);
        font-size: .74rem;
        font-weight: 600;
    }

        .field-label i {
            color: var(--primary);
            margin-right: 5px;
        }

    .register-input,
    .register-select {
        min-height: 44px;
        border: 1px solid var(--border);
        border-radius: 9px;
        color: var(--text);
        font-size: .82rem;
        box-shadow: none;
        transition: all .2s ease;
    }

        .register-input::placeholder {
            color: #b0b8c4;
        }

        .register-input:focus,
        .register-select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(78,115,223,.10);
        }

    .validation-error {
        display: block;
        margin-top: 5px;
        font-size: .68rem;
    }

    /* Password fields */
    .password-wrapper {
        position: relative;
    }

        .password-wrapper .register-input {
            padding-right: 44px;
        }

    .password-toggle {
        position: absolute;
        right: 0;
        top: 0;
        width: 44px;
        height: 44px;
        border: 0;
        background: transparent;
        color: #98a2b3;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

        .password-toggle:hover {
            color: var(--primary);
        }

    /* Separator */
    .section-divider {
        height: 1px;
        background: var(--soft-border);
        margin: 4px 0 22px;
    }

    /* Role */
    .role-info {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        margin-top: 6px;
        color: var(--light-muted);
        font-size: .67rem;
    }

        .role-info i {
            color: var(--primary);
            margin-top: 1px;
        }

    /* Submit */
    .register-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        margin-top: 8px;
        padding-top: 20px;
        border-top: 1px solid var(--soft-border);
    }

    .register-security {
        color: var(--light-muted);
        font-size: .7rem;
    }

        .register-security i {
            color: #22a06b;
            margin-right: 4px;
        }

    .btn-register {
        min-height: 44px;
        padding: 9px 25px;
        border-radius: 9px;
        background: var(--primary);
        border: 1px solid var(--primary);
        color: white;
        font-size: .8rem;
        font-weight: 600;
        transition: all .2s ease;
    }

        .btn-register:hover {
            background: var(--primary-dark);
            border-color: var(--primary-dark);
            color: white;
            transform: translateY(-1px);
            box-shadow: 0 7px 16px rgba(78,115,223,.22);
        }

    /* External Login */
    .external-section {
        margin-top: 25px;
        padding-top: 22px;
        border-top: 1px solid var(--soft-border);
    }

    .external-title {
        text-align: center;
        color: var(--muted);
        font-size: .73rem;
        font-weight: 600;
        margin-bottom: 15px;
        text-transform: uppercase;
        letter-spacing: .08em;
    }

        .external-title::before,
        .external-title::after {
            content: "";
            display: inline-block;
            vertical-align: middle;
            width: 70px;
            height: 1px;
            background: var(--border);
            margin: 0 10px;
        }

    .btn-external {
        min-height: 40px;
        padding: 8px 18px;
        border-radius: 8px;
        border: 1px solid var(--border);
        color: var(--text);
        background: white;
        font-size: .76rem;
        font-weight: 600;
        transition: all .2s ease;
    }

        .btn-external:hover {
            border-color: #cbd5e1;
            background: #f8fafc;
            transform: translateY(-1px);
        }

    .external-empty {
        max-width: 560px;
        margin: auto;
        padding: 13px 15px;
        border-radius: 9px;
        background: #f8fafc;
        color: var(--light-muted);
        font-size: .7rem;
        text-align: center;
    }

        .external-empty a {
            color: var(--primary);
            text-decoration: none;
        }

            .external-empty a:hover {
                text-decoration: underline;
            }

    /* Responsive */
    @media (max-width: 767.98px) {
        .register-card {
            margin: 15px 10px 30px;
            border-radius: 14px;
        }

        .register-header-content {
            padding: 22px 20px;
        }

        .register-header-icon {
            width: 46px;
            height: 46px;
            font-size: 1.2rem;
        }

        .register-title {
            font-size: 1.15rem;
        }

        .admin-tag {
            display: block;
            width: fit-content;
            margin: 5px 0 0;
        }

        .register-body {
            padding: 18px;
        }

        .register-section-body {
            padding: 16px;
        }

        .register-actions {
            flex-direction: column;
            align-items: stretch;
        }

        .register-security {
            text-align: center;
        }

        .btn-register {
            width: 100%;
        }

        .external-title::before,
        .external-title::after {
            width: 30px;
        }
    }


    /* =========================================================
   OMS COMPANY SWITCHER
   Scoped specifically to avoid conflicts with Merchant pages
   ========================================================= */

    .oms-company-switcher {
        width: 380px;
        max-width: 100%;
        background: #ffffff;
        border: 1px solid #e8ebef;
        border-radius: 8px;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(20, 22, 43, 0.08);
    }

    .oms-company-switcher__header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 15px;
        margin-bottom: 18px;
    }

    .oms-company-switcher__eyebrow {
        display: block;
        margin-bottom: 4px;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 1px;
        color: #8a94a6;
    }

    .oms-company-switcher__title {
        margin: 0;
        color: #171b2d;
        font-size: 17px;
        font-weight: 700;
    }

    .oms-company-switcher__subtitle {
        margin: 5px 0 0;
        color: #8b919d;
        font-size: 12px;
        line-height: 1.5;
    }

    .oms-company-switcher__icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        background: #eef2ff;
        color: #09000D;
        font-size: 17px;
    }


    /* Merchant list */

    .oms-company-switcher__list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }


    /* Merchant option */

    .oms-company-option {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 11px 12px;
        border: 1px solid #e6e9ef;
        border-radius: 11px;
        background: #ffffff;
        text-align: left;
        cursor: pointer;
        transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    }

        .oms-company-option:hover {
            background: #f9faff;
            border-color: #cfd6e4;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(20, 22, 43, 0.05);
        }


    /* Active company */

    .oms-company-option--active {
        background: #f7f9ff;
        border-color: #09000D;
        box-shadow: 0 0 0 2px rgba(79, 109, 245, 0.08);
    }


    /* Merchant logo */

    .oms-company-option__logo {
        width: 40px;
        height: 40px;
        min-width: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        background: #eef2ff;
        color: #09000D;
        font-size: 15px;
        font-weight: 700;
    }

    .oms-company-option--active
    .oms-company-option__logo {
        background: #09000D;
        color: #ffffff;
    }


    /* Merchant information */

    .oms-company-option__info {
        flex: 1;
        min-width: 0;
    }

    .oms-company-option__name {
        color: #202435;
        font-size: 13.5px;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .oms-company-option__meta {
        display: flex;
        align-items: center;
        gap: 5px;
        margin-top: 3px;
        color: #9298a3;
        font-size: 11px;
    }

        .oms-company-option__meta i {
            font-size: 10px;
        }


    /* Status */

    .oms-company-option__status {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 52px;
        color: #a0a6b1;
    }

    .oms-company-option__active {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 4px 7px;
        border-radius: 20px;
        background: #ecfdf3;
        color: #15803d;
        font-size: 10px;
        font-weight: 600;
    }

        .oms-company-option__active span {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #22c55e;
        }


    /* Focus */

    .oms-company-option:focus-visible {
        outline: 3px solid rgba(79, 109, 245, 0.18);
        outline-offset: 2px;
    }


    /* Mobile */

    @media (max-width: 480px) {

        .oms-company-switcher {
            width: 100%;
            padding: 16px;
            border-radius: 14px;
        }

        .oms-company-switcher__title {
            font-size: 16px;
        }

        .oms-company-option {
            padding: 10px;
        }
    }


    .form-floating > .select2-container {
        padding-top: 1.625rem;
        padding-bottom: 0.625rem;
    }

        .form-floating > .select2-container + label {
            opacity: 1;
        }


    .access-denied-page {
        min-height: calc(100vh - 120px);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px 20px;
    }

    .access-denied-card {
        width: 100%;
        max-width: 680px;
        background: #ffffff;
        border: 1px solid #e9ecef;
        border-radius: 20px;
        padding: 48px;
        text-align: center;
        box-shadow: 0 15px 45px rgba(15, 23, 42, 0.08);
    }

    .access-denied-icon {
        width: 86px;
        height: 86px;
        margin: 0 auto 24px;
        border-radius: 50%;
        background: #fff4f4;
        color: #dc3545;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 38px;
    }

    .access-denied-code {
        display: inline-block;
        margin-bottom: 14px;
        padding: 6px 14px;
        border-radius: 30px;
        background: #f8f9fa;
        color: #6c757d;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: .5px;
    }

    .access-denied-card h1 {
        margin-bottom: 12px;
        color: #212529;
        font-size: 32px;
        font-weight: 700;
    }

    .access-denied-description {
        max-width: 520px;
        margin: 0 auto 30px;
        color: #6c757d;
        font-size: 16px;
        line-height: 1.7;
    }

    .access-denied-info {
        text-align: left;
        background: #f8f9fa;
        border: 1px solid #edf0f2;
        border-radius: 14px;
        padding: 20px;
        margin-bottom: 28px;
    }

    .access-denied-info-title {
        display: flex;
        align-items: center;
        gap: 9px;
        margin-bottom: 12px;
        color: #343a40;
        font-size: 14px;
        font-weight: 700;
    }

    .access-denied-info ul {
        margin: 0;
        padding-left: 20px;
        color: #6c757d;
        font-size: 14px;
        line-height: 1.8;
    }

    .access-denied-actions {
        display: flex;
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .access-denied-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-width: 150px;
        padding: 11px 20px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        transition: all .2s ease;
    }

    .access-denied-btn-primary {
        background: #212529;
        color: #ffffff;
    }

        .access-denied-btn-primary:hover {
            background: #343a40;
            color: #ffffff;
            transform: translateY(-1px);
        }

    .access-denied-btn-secondary {
        background: #ffffff;
        color: #495057;
        border: 1px solid #dee2e6;
    }

        .access-denied-btn-secondary:hover {
            background: #f8f9fa;
            color: #212529;
            border-color: #ced4da;
        }

    .access-denied-help {
        margin-top: 26px;
        color: #adb5bd;
        font-size: 13px;
    }

    @media (max-width: 576px) {
        .access-denied-page {
            padding: 25px 15px;
        }

        .access-denied-card {
            padding: 35px 22px;
            border-radius: 16px;
        }

            .access-denied-card h1 {
                font-size: 26px;
            }

        .access-denied-icon {
            width: 72px;
            height: 72px;
            font-size: 32px;
        }

        .access-denied-actions {
            flex-direction: column;
        }

        .access-denied-btn {
            width: 100%;
        }
    }


    .register-confirmation {
        min-height: calc(100vh - 120px);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px 20px;
    }

    .confirmation-content {
        width: 100%;
        max-width: 560px;
        text-align: center;
    }

    .confirmation-icon {
        width: 72px;
        height: 72px;
        margin: 0 auto 22px;
        border-radius: 50%;
        background: #f0fdf4;
        color: #198754;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 32px;
    }

    .confirmation-content h1 {
        margin-bottom: 12px;
        color: #212529;
        font-size: 30px;
        font-weight: 700;
        letter-spacing: -.3px;
    }

    .confirmation-message {
        max-width: 480px;
        margin: 0 auto 25px;
        color: #6c757d;
        font-size: 15px;
        line-height: 1.7;
    }

    .confirmation-info {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        max-width: 480px;
        margin: 0 auto 25px;
        padding: 15px 18px;
        text-align: left;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 10px;
    }

        .confirmation-info i {
            margin-top: 2px;
            color: #6c757d;
            font-size: 17px;
        }

        .confirmation-info p {
            margin: 0;
            color: #6c757d;
            font-size: 13px;
            line-height: 1.6;
        }

    .confirmation-actions {
        margin-top: 10px;
    }

    .confirmation-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px 22px;
        border-radius: 9px;
        background: #212529;
        color: #fff;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        transition: all .2s ease;
    }

        .confirmation-btn:hover {
            background: #343a40;
            color: #fff;
            transform: translateY(-1px);
        }

    .confirmation-footer {
        margin-top: 22px;
        color: #adb5bd;
        font-size: 12px;
    }

    @media (max-width: 576px) {
        .register-confirmation {
            min-height: calc(100vh - 80px);
            padding: 30px 18px;
        }

        .confirmation-content h1 {
            font-size: 25px;
        }

        .confirmation-message {
            font-size: 14px;
        }

        .confirmation-info {
            padding: 14px;
        }

        .confirmation-btn {
            width: 100%;
        }
    }

    .toast-notification {
        position: fixed;
        top: 24px;
        right: 24px;
        padding: 12px 20px;
        border-radius: 6px;
        color: #fff;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.3s, transform 0.3s;
        z-index: 9999;
    }

        .toast-notification.show {
            opacity: 1;
            transform: translateY(0);
        }

    .toast-error {
        background: #d9534f;
    }

    .toast-success {
        background: #5cb85c;
    }


    /* =========================
               Mobile
               ========================= */

    @media (max-width: 768px) {
        .users-header {
            align-items: flex-start;
            padding: 18px;
        }

        .users-toolbar {
            flex-direction: column;
            align-items: stretch;
            padding: 14px 18px;
        }

        .users-search {
            max-width: none;
        }

        .users-filter {
            width: 100%;
        }

        .users-footer {
            align-items: flex-start;
            flex-direction: column;
        }

        .users-pagination {
            width: 100%;
            justify-content: center;
        }
    }

    .authorization-page {
        min-height: 100vh;
        padding: 10px 0 40px;
    }

    /* Page Header */

    .authorization-page-header {
        margin-bottom: 28px;
    }

    .authorization-page-title {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .authorization-page-icon {
        width: 52px;
        height: 52px;
        border-radius: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #09000D, #09000D);
        color: #fff;
        font-size: 22px;
        box-shadow: 0 8px 20px rgba(79, 70, 229, .18);
    }

    .authorization-page-title h1 {
        margin: 0;
        font-size: 28px;
        font-weight: 700;
        color: #1e293b;
        letter-spacing: -.4px;
    }

    .authorization-page-title p {
        margin: 4px 0 0;
        color: #64748b;
        font-size: 14px;
    }


    /* Cards */

    .authorization-card {
        height: 100%;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
        transition: all .2s ease;
    }

        .authorization-card:hover {
            box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
            transform: translateY(-1px);
        }

    .authorization-card-header {
        min-height: 92px;
        padding: 20px 22px;
        border-bottom: 1px solid #eef2f7;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
    }

    .authorization-card-heading {
        display: flex;
        align-items: center;
        gap: 13px;
    }

        .authorization-card-heading h2 {
            margin: 0;
            font-size: 17px;
            font-weight: 700;
            color: #1e293b;
        }

        .authorization-card-heading p {
            margin: 3px 0 0;
            font-size: 13px;
            color: #64748b;
        }


    /* Card Icons */

    .authorization-card-icon {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        border-radius: 13px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 19px;
    }

    .authorization-card-icon-primary {
        background: #eef2ff;
        color: #09000D;
    }

    .authorization-card-icon-purple {
        background: #f5f3ff;
        color: #09000D;
    }


    /* Status */

    .authorization-status {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 6px 10px;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 700;
        white-space: nowrap;
    }

        .authorization-status span {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            display: inline-block;
        }

    .authorization-status-active {
        color: #15803d;
        background: #f0fdf4;
    }

        .authorization-status-active span {
            background: #22c55e;
        }

    .authorization-status-warning {
        color: #b45309;
        background: #fffbeb;
    }

        .authorization-status-warning span {
            background: #f59e0b;
        }


    /* Card Body */

    .authorization-card-body {
        padding: 24px;
    }


    /* Description */

    .authorization-description {
        display: flex;
        gap: 10px;
        padding: 13px 14px;
        background: #f8fafc;
        border: 1px solid #eef2f7;
        border-radius: 11px;
        margin-bottom: 22px;
    }

        .authorization-description i {
            color: #09000D;
            margin-top: 2px;
        }

        .authorization-description p {
            margin: 0;
            color: #64748b;
            font-size: 13px;
            line-height: 1.6;
        }


    /* Existing Code Status */

    .authorization-code-status {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        margin-bottom: 22px;
    }

    .authorization-status-item {
        flex: 1;
        min-width: 160px;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px;
        background: #f8fafc;
        border: 1px solid #eef2f7;
        border-radius: 11px;
    }

    .authorization-status-item-icon {
        width: 34px;
        height: 34px;
        border-radius: 9px;
        background: #eef2ff;
        color: #09000D;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .authorization-status-item span,
    .authorization-status-item strong {
        display: block;
    }

    .authorization-status-item span {
        font-size: 11px;
        color: #64748b;
        margin-bottom: 2px;
    }

    .authorization-status-item strong {
        font-size: 12px;
        color: #334155;
    }


    /* Forms */

    .authorization-form {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .authorization-field label {
        display: block;
        margin-bottom: 7px;
        font-size: 13px;
        font-weight: 600;
        color: #334155;
    }

    .authorization-input {
        position: relative;
    }

        .authorization-input i {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: #94a3b8;
            font-size: 15px;
            z-index: 2;
        }

        .authorization-input input {
            width: 100%;
            height: 46px;
            padding: 0 14px 0 40px;
            border: 1px solid #dbe2ea;
            border-radius: 10px;
            background: #fff;
            color: #1e293b;
            font-size: 13px;
            outline: none;
            transition: all .2s ease;
        }

            .authorization-input input::placeholder {
                color: #94a3b8;
            }

            .authorization-input input:focus {
                border-color: #09000D;
                box-shadow: 0 0 0 3px rgba(99, 102, 241, .10);
            }

    .text-danger {
        display: block;
        margin-top: 5px;
        font-size: 12px;
    }


    /* Buttons */

    .authorization-primary-btn {
        border: 0;
        min-height: 45px;
        padding: 0 18px;
        border-radius: 10px;
        background: #09000D;
        color: #fff;
        font-size: 13px;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        cursor: pointer;
        transition: all .2s ease;
    }

        .authorization-primary-btn:hover {
            background: #2A2130;
            color: #fff;
            transform: translateY(-1px);
            box-shadow: 0 6px 14px rgba(79, 70, 229, .18);
        }

    .authorization-purple-btn {
        background: #09000D;
    }

        .authorization-purple-btn:hover {
            background: #6d28d9;
        }


    /* Signature Preview */

    .signature-preview {
        margin-bottom: 22px;
        border: 1px solid #e2e8f0;
        border-radius: 13px;
        overflow: hidden;
    }

    .signature-preview-header {
        padding: 12px 14px;
        background: #f8fafc;
        border-bottom: 1px solid #eef2f7;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

        .signature-preview-header span,
        .signature-preview-header strong {
            display: block;
        }

        .signature-preview-header span {
            color: #64748b;
            font-size: 11px;
            margin-bottom: 2px;
        }

        .signature-preview-header strong {
            color: #334155;
            font-size: 13px;
        }

        .signature-preview-header > i {
            color: #22c55e;
            font-size: 18px;
        }

    .signature-image-container {
        min-height: 140px;
        padding: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
    }

    .signature-image {
        max-width: 100%;
        max-height: 120px;
        object-fit: contain;
    }


    /* Empty Signature */

    .signature-empty {
        display: flex;
        align-items: center;
        gap: 13px;
        padding: 16px;
        margin-bottom: 22px;
        background: #f8fafc;
        border: 1px dashed #cbd5e1;
        border-radius: 12px;
    }

    .signature-empty-icon {
        width: 42px;
        height: 42px;
        flex-shrink: 0;
        border-radius: 11px;
        background: #f5f3ff;
        color: #09000D;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
    }

    .signature-empty strong {
        display: block;
        font-size: 13px;
        color: #334155;
        margin-bottom: 3px;
    }

    .signature-empty p {
        margin: 0;
        font-size: 12px;
        color: #64748b;
        line-height: 1.5;
    }


    /* File Upload */

    .signature-upload {
        position: relative;
        min-height: 78px;
        padding: 14px;
        border: 1px dashed #cbd5e1;
        border-radius: 11px;
        background: #f8fafc;
        display: flex;
        align-items: center;
        gap: 12px;
        overflow: hidden;
        transition: all .2s ease;
    }

        .signature-upload:hover {
            border-color: #09000D;
            background: #faf9ff;
        }

        .signature-upload > i {
            width: 38px;
            height: 38px;
            border-radius: 9px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f5f3ff;
            color: #09000D;
            font-size: 18px;
            flex-shrink: 0;
        }

        .signature-upload strong,
        .signature-upload span {
            display: block;
        }

        .signature-upload strong {
            color: #334155;
            font-size: 12px;
            margin-bottom: 3px;
        }

        .signature-upload span {
            color: #64748b;
            font-size: 11px;
        }

        .signature-upload input[type="file"] {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            cursor: pointer;
        }


    /* Alerts */

    .authorization-alert {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 14px;
        border-radius: 11px;
        margin-bottom: 20px;
    }

    .authorization-alert-icon {
        flex-shrink: 0;
        font-size: 17px;
        margin-top: 1px;
    }

    .authorization-alert strong {
        display: block;
        font-size: 13px;
        margin-bottom: 3px;
    }

    .authorization-alert p {
        margin: 0;
        font-size: 12px;
        line-height: 1.5;
    }

    .authorization-alert-success {
        background: #f0fdf4;
        border: 1px solid #bbf7d0;
        color: #166534;
    }

    .authorization-alert-warning {
        background: #fffbeb;
        border: 1px solid #fde68a;
        color: #92400e;
    }


    /* Responsive */

    @media (max-width: 767px) {
        .authorization-page {
            padding-top: 5px;
        }

        .authorization-page-title h1 {
            font-size: 23px;
        }

        .authorization-page-title p {
            font-size: 13px;
        }

        .authorization-card-header {
            align-items: flex-start;
            flex-direction: column;
        }

        .authorization-card-body {
            padding: 18px;
        }

        .authorization-code-status {
            flex-direction: column;
        }

        .authorization-status-item {
            min-width: 100%;
        }

        .authorization-primary-btn {
            width: 100%;
        }
    }



    @media (max-width: 700px) {
        .recovery-codes-card {
            padding: 18px;
        }

        .recovery-code-grid {
            grid-template-columns: 1fr;
        }

        .recovery-section-header {
            align-items: flex-start;
            flex-direction: column;
        }
    }

    @media (max-width: 480px) {
        .recovery-codes-header {
            align-items: flex-start;
        }

            .recovery-codes-header h3 {
                font-size: 21px;
            }

            .recovery-codes-header p {
                line-height: 1.5;
            }
    }


    @media (max-width: 750px) {
        .authenticator-links {
            grid-template-columns: 1fr;
        }

        .authenticator-setup-box {
            flex-direction: column;
            align-items: stretch;
        }

        .setup-divider {
            width: 100%;
            height: 1px;
        }

            .setup-divider span {
                top: 50%;
            }

        .qr-section {
            min-width: 0;
        }
    }

    @media (max-width: 480px) {
        .authenticator-card {
            padding: 18px;
        }

        .authenticator-header {
            align-items: flex-start;
        }

            .authenticator-header h3 {
                font-size: 21px;
            }

        .setup-step {
            gap: 10px;
        }

        .authenticator-code-input {
            letter-spacing: 5px;
        }
    }

    /* MOBILE */

    @media (max-width: 480px) {
        .authenticator-verification-card {
            padding: 16px;
        }

        .verification-card-header {
            align-items: flex-start;
        }

        .verification-input {
            letter-spacing: 5px;
            font-size: 16px !important;
        }

            .verification-input::placeholder {
                letter-spacing: 4px;
            }
    }

    /* MOBILE */

    @media (max-width: 700px) {
        .security-status-card {
            align-items: flex-start;
            flex-direction: column;
        }

        .security-enabled-badge {
            margin-left: 55px;
        }

        .security-section-header {
            align-items: flex-start;
            flex-direction: column;
        }

        .security-action {
            align-items: flex-start;
            flex-wrap: wrap;
        }

        .security-action-content {
            min-width: calc(100% - 48px);
        }

        .security-action-button {
            margin-left: 47px;
        }

        .authenticator-body {
            align-items: flex-start;
            flex-direction: column;
        }

        .authenticator-buttons {
            width: 100%;
            margin-left: 47px;
        }
    }

    @media (max-width: 480px) {
        .two-factor-header {
            align-items: flex-start;
        }

            .two-factor-header h3 {
                font-size: 21px;
            }

        .security-status-card,
        .security-section-header,
        .security-actions,
        .authenticator-body {
            padding-left: 15px;
            padding-right: 15px;
        }

        .authenticator-buttons {
            margin-left: 0;
            flex-direction: column;
        }

            .authenticator-buttons a,
            .security-primary-button {
                width: 100%;
            }
    }


    /* RESPONSIVE */

    @media (max-width: 750px) {
        .reset-steps {
            grid-template-columns: 1fr;
        }

        .reset-action-area {
            align-items: flex-start;
            flex-direction: column;
        }

        .reset-authenticator-button {
            width: 100%;
        }
    }

    @media (max-width: 480px) {
        .reset-authenticator-header {
            align-items: flex-start;
        }

            .reset-authenticator-header h3 {
                font-size: 21px;
            }

        .reset-warning,
        .reset-process {
            margin: 15px;
        }

        .reset-action-area {
            padding: 15px;
        }

        .reset-action-text {
            align-items: flex-start;
        }
    }

    /* RESPONSIVE */

    @media (max-width: 750px) {
        .generate-recovery-points {
            grid-template-columns: 1fr;
        }

        .generate-recovery-action {
            align-items: flex-start;
            flex-direction: column;
        }

        .generate-recovery-button {
            width: 100%;
        }
    }

    @media (max-width: 480px) {
        .generate-recovery-header {
            align-items: flex-start;
        }

            .generate-recovery-header h3 {
                font-size: 21px;
            }

        .generate-recovery-warning {
            margin: 15px;
        }

        .generate-recovery-info {
            padding: 15px;
        }

        .generate-recovery-authenticator {
            margin: 0 15px 15px;
        }

        .generate-recovery-action {
            padding: 15px;
        }

        .generate-recovery-action-text {
            align-items: flex-start;
        }
    }

    @keyframes omsStatusIn {
        from {
            opacity: 0;
            transform: translateY(-4px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }


    @media (max-width: 480px) {
        .oms-status-message {
            padding: 12px;
            gap: 10px;
        }

        .oms-status-icon {
            width: 32px;
            height: 32px;
        }

        .oms-status-title {
            font-size: 11px;
        }

        .oms-status-text {
            font-size: 11px;
        }
    }



    /* =========================================================
       RESPONSIVE
    ========================================================= */

    @media (max-width: 1050px) {

        .users-filter-form {
            grid-template-columns: 1fr 1fr;
        }

        .users-search-field {
            grid-column: span 2;
        }

        .users-filter-action {
            grid-column: span 2;
        }

        .users-apply-button {
            width: 100%;
        }
    }

    @media (max-width: 700px) {

        .users-management-header {
            align-items: flex-start;
        }

        .users-management-total {
            display: none;
        }

        .users-filter-form {
            grid-template-columns: 1fr;
        }

        .users-search-field,
        .users-filter-action {
            grid-column: auto;
        }

        .users-pagination-container {
            align-items: flex-start;
            flex-direction: column;
        }
    }

    @media (max-width: 480px) {

        .users-management-header h1 {
            font-size: 21px;
        }

        .users-management-header p {
            font-size: 11px;
        }

        .users-role-card,
        .users-filter-header,
        .users-filter-form,
        .users-table-header {
            padding-left: 15px;
            padding-right: 15px;
        }

        .users-filter-form {
            padding-top: 15px;
            padding-bottom: 15px;
        }

        .users-table-header {
            align-items: flex-start;
        }
    }

    @keyframes usersStatusIn {
        from {
            opacity: 0;
            transform: translateY(-4px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }



    /* =========================================================
           RESPONSIVE
        ========================================================= */

    @media (max-width: 900px) {
        .profile-card {
            grid-template-columns: 220px minmax(0, 1fr);
        }

        .profile-preview-section {
            padding-left: 17px;
            padding-right: 17px;
        }

        .profile-form-section {
            padding: 22px;
        }

        .profile-image,
        .profile-image-wrapper {
            width: 130px;
            height: 130px;
        }
    }


    @media (max-width: 750px) {
        .profile-card {
            grid-template-columns: 1fr;
        }

        .profile-preview-section {
            border-right: 0;
            border-bottom: 1px solid #e2e8f0;
        }

        .profile-preview-header {
            max-width: 400px;
        }

        .profile-photo-hint {
            max-width: 300px;
        }

        .profile-card-footer {
            grid-column: auto;
        }
    }


    @media (max-width: 600px) {
        .profile-field-group {
            grid-template-columns: 1fr;
            gap: 0;
        }

        .profile-card-footer {
            align-items: stretch;
            flex-direction: column;
        }

        .profile-save-button {
            width: 100%;
        }
    }


    @media (max-width: 480px) {
        .profile-header {
            align-items: flex-start;
        }

            .profile-header h3 {
                font-size: 21px;
            }

            .profile-header p {
                font-size: 11px;
            }

        .profile-form-section {
            padding: 20px 15px;
        }

        .profile-preview-section {
            padding: 22px 15px;
        }

        .profile-card-footer {
            padding: 15px;
        }
    }

    /* ---------- RESPONSIVE ---------- */

    @media (max-width: 700px) {
        .email-section {
            padding: 20px;
        }

        .email-divider {
            margin: 0 20px;
        }

        .email-current-box {
            align-items: flex-start;
            flex-wrap: wrap;
        }

        .email-status-badge {
            margin-left: 53px;
        }

        .email-verify-button {
            width: 100%;
            margin-top: 4px;
        }

        .email-action-area {
            align-items: stretch;
            flex-direction: column;
        }

        .email-action-info {
            align-items: flex-start;
        }

        .email-save-button {
            width: 100%;
        }
    }

    @media (max-width: 480px) {
        .email-header {
            align-items: flex-start;
        }

        .email-header-icon {
            width: 46px;
            height: 46px;
            border-radius: 12px;
            font-size: 18px;
        }

        .email-header h3 {
            font-size: 18px;
        }

        .email-header p {
            font-size: 11px;
        }

        .email-section {
            padding: 17px;
        }

        .email-divider {
            margin: 0 17px;
        }

        .email-section-header {
            margin-bottom: 16px;
        }

        .email-current-box {
            padding: 13px;
        }

        .email-status-badge {
            margin-left: 0;
        }
    }

    /* ---------- RESPONSIVE ---------- */

    @media (max-width: 700px) {
        .change-password-content {
            padding: 20px;
        }

        .password-action-area {
            align-items: stretch;
            flex-direction: column;
        }

        .password-save-button {
            width: 100%;
        }
    }

    @media (max-width: 480px) {
        .change-password-header {
            align-items: flex-start;
        }

        .change-password-header-icon {
            width: 46px;
            height: 46px;
            border-radius: 12px;
            font-size: 18px;
        }

        .change-password-header h3 {
            font-size: 18px;
        }

        .change-password-header p {
            font-size: 11px;
        }

        .change-password-content {
            padding: 17px;
        }

        .password-security-banner {
            align-items: flex-start;
        }
    }


    /* =========================================
   ADMIN DROPDOWN TREE
   ========================================= */

    .nav__item--dropdown {
        position: relative;
    }

    /* Submenu container */
    .nav__submenu {
        position: relative;
        margin: 2px 0 6px 0;
        padding: 4px 0 4px 28px;
        list-style: none;
    }

    /* Main vertical gray line */
    .is-open .nav__submenu::before {
        content: "";
        position: absolute;
        left: 14px;
        top: 0;
        bottom: 0;
        width: 1px;
        background: #dfe3e8;
    }

    /* Individual submenu items */
    .nav__submenu > li {
        position: relative;
        margin: 2px 0;
    }

    /* Horizontal connector for each item */
    .is-open .nav__submenu > li::before {
        content: "";
        position: absolute;
        left: -14px;
        top: 50%;
        width: 14px;
        height: 1px;
        background: #dfe3e8;
        transform: translateY(-50%);
    }

    /* Inner dropdown links */
    .nav__submenu > li > a {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 38px;
        padding: 8px 12px;
        border-radius: 8px;
        color: var(--ink-soft);
        font-size: 13px;
        font-weight: 500;
        text-decoration: none;
        transition: background .18s ease, color .18s ease;
    }

        /* Hover */
        .nav__submenu > li > a:hover {
            background: var(--bg);
            color: var(--blue);
        }

        /* Active inner link */
        .nav__submenu > li > a.nav__link--active {
            background: var(--blue-light);
            color: var(--blue);
            font-weight: 600;
        }

    .date-range-filter {
        display: inline-flex;
        align-items: center;
        height: 36px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
        padding: 6px 15px;
    }

    .date-range-display {
        height: 100%;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 0 12px;
        border: 0;
        background: transparent;
        color: #475569;
        font-family: inherit;
        font-size: 11px;
        font-weight: 500;
        cursor: default;
    }

        .date-range-display i {
            color: #64748b;
            font-size: 12px;
        }

    .date-range-divider {
        width: 1px;
        height: 20px;
        background: #e2e8f0;
    }

    .date-range-preset {
        height: 100%;
        min-width: 125px;
        padding: 0 10px;
        border: 0;
        outline: none;
        background: #fff;
        color: #334155;
        font-family: inherit;
        font-size: 11px;
        font-weight: 600;
        cursor: pointer;
    }

        .date-range-preset:focus {
            box-shadow: none;
        }


    /* =========================================
   CUSTOM DATE PANEL
   ========================================= */

    .custom-date-panel {
        display: none;
        width: 360px;
        margin-top: 8px;
        padding: 16px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(15, 23, 42, .10), 0 3px 8px rgba(15, 23, 42, .05);
        animation: datePanelIn .16s ease-out;
    }

        .custom-date-panel.show {
            display: block;
            position: absolute;
        }

    .custom-date-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        padding-bottom: 13px;
        margin-bottom: 14px;
        border-bottom: 1px solid #eef2f7;
    }

        .custom-date-header strong {
            display: block;
            margin-bottom: 3px;
            color: #334155;
            font-size: 12px;
            font-weight: 700;
        }

        .custom-date-header span {
            display: block;
            color: #94a3b8;
            font-size: 10px;
        }

    .custom-date-close {
        width: 27px;
        height: 27px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 0;
        border-radius: 7px;
        background: #f8fafc;
        color: #94a3b8;
        cursor: pointer;
    }

        .custom-date-close:hover {
            background: #f1f5f9;
            color: #475569;
        }


    /* Date fields */
    #dateRangeForm {
        position: relative;
    }

    .custom-date-fields {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .custom-date-field label {
        display: block;
        margin-bottom: 6px;
        color: #475569;
        font-size: 10px;
        font-weight: 600;
    }

    .custom-date-input {
        position: relative;
    }

        .custom-date-input i {
            position: absolute;
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
            color: #94a3b8;
            font-size: 12px;
            pointer-events: none;
        }

        .custom-date-input input {
            width: 100%;
            height: 36px;
            padding: 0 8px 0 30px;
            border: 1px solid #dbe2ea;
            border-radius: 8px;
            background: #fff;
            color: #334155;
            font-family: inherit;
            font-size: 10px;
            outline: none;
            transition: all .18s ease;
        }

            .custom-date-input input:focus {
                border-color: #818cf8;
                box-shadow: 0 0 0 3px rgba(99, 102, 241, .09);
            }


    /* Footer */

    .custom-date-footer {
        display: flex;
        justify-content: flex-end;
        gap: 7px;
        margin-top: 15px;
        padding-top: 13px;
        border-top: 1px solid #eef2f7;
    }

    .custom-date-cancel,
    .custom-date-apply {
        height: 32px;
        padding: 0 12px;
        border-radius: 7px;
        font-family: inherit;
        font-size: 10px;
        font-weight: 600;
        cursor: pointer;
    }

    .custom-date-cancel {
        border: 1px solid #e2e8f0;
        background: #fff;
        color: #64748b;
    }

        .custom-date-cancel:hover {
            background: #f8fafc;
        }

    .custom-date-apply {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        border: 0;
        background: #09000D;
        color: #fff;
    }

        .custom-date-apply:hover {
            background: #4338ca;
        }

    @keyframes datePanelIn {
        from {
            opacity: 0;
            transform: translateY(-4px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }


    /* Mobile */

    @media (max-width: 600px) {

        .custom-date-panel {
            width: min(360px, calc(100vw - 30px));
        }

        .custom-date-fields {
            grid-template-columns: 1fr;
        }
    }




    /* Responsive */

    @media (max-width: 700px) {
        .workflow-types-page {
            padding: 16px;
        }

        .workflow-types-header {
            align-items: flex-start;
        }

        .workflow-types-count {
            display: none;
        }

        .workflow-create-form {
            flex-direction: column;
            align-items: stretch;
        }

        .workflow-create-button {
            width: 100%;
        }
    }

    @media (max-width: 500px) {
        .workflow-types-header-icon {
            width: 46px;
            height: 46px;
        }

        .workflow-types-title h2 {
            font-size: 18px;
        }

        .workflow-create-card {
            padding: 14px;
        }

        .workflow-table-header {
            padding: 13px;
        }

        .workflow-table thead th,
        .workflow-table tbody td {
            padding-left: 12px;
            padding-right: 12px;
        }
    }

    a {
        text-decoration: none;
    }


    :root {
        --pp-navy: #0d1424;
        --pp-navy-2: #111a2d;
        --pp-gold: #d9a441;
        --pp-gold-soft: #f8efd9;
        --pp-blue: #09000D;
        --pp-blue-soft: #edf3fb;
        --pp-text: #172033;
        --pp-muted: #6f7b91;
        --pp-border: #e4e9f1;
        --pp-bg: #f5f7fa;
        --pp-success: #21865b;
        --pp-success-soft: #e9f7f0;
        --pp-danger: #c94b4b;
        --pp-danger-soft: #fff1f1;
        --pp-radius: 14px;
    }

    .account-page {
        min-height: calc(100vh - 70px);
        padding: 28px 15px 50px;
        color: var(--pp-text);
    }

    .account-container {
        max-width: 1180px;
        margin: 0 auto;
    }

    /* Header */

    .account-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 20px;
        margin-bottom: 26px;
    }

    .account-heading {
        display: flex;
        align-items: center;
        gap: 15px;
    }
        .account-heading.spaced{
            justify-content:space-between;
            flex-wrap:wrap;
        }

        .account-icon {
            width: 48px;
            height: 48px;
            border-radius: 13px;
            background: var(--pp-navy);
            color: var(--pp-gold);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
        }

    .account-title {
        margin: 0;
        font-size: 26px;
        font-weight: 700;
        letter-spacing: -0.4px;
        color: var(--pp-navy);
    }

    .account-subtitle {
        margin: 4px 0 0;
        color: var(--pp-muted);
        font-size: 14px;
    }

    .account-statuses {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .pp-status {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        border-radius: 999px;
        padding: 7px 11px;
        font-size: 12px;
        font-weight: 600;
        border: 1px solid transparent;
    }

    .pp-status-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: currentColor;
    }

    .pp-status-sandbox {
        color: #946b13;
        background: var(--pp-gold-soft);
        border-color: #f0dfb5;
    }

    .pp-status-live {
        color: var(--pp-success);
        background: var(--pp-success-soft);
        border-color: #cdebdc;
    }

    .pp-status-disabled {
        color: var(--pp-danger);
        background: var(--pp-danger-soft);
        border-color: #f4d0d0;
    }

    /* Cards */

    .pp-card {
        background: #fff;
        border: 1px solid var(--pp-border);
        border-radius: var(--pp-radius);
        box-shadow: 0 2px 8px rgba(13, 20, 36, 0.035);
        margin-bottom: 20px;
        overflow: hidden;
    }

    .pp-card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 22px;
        border-bottom: 1px solid var(--pp-border);
        gap: 15px;
    }

    .pp-card-title-wrap {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .pp-card-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: var(--pp-blue-soft);
        color: var(--pp-blue);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
    }

    .pp-card-title {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
        color: var(--pp-navy);
    }

    .pp-card-description {
        margin: 2px 0 0;
        color: var(--pp-muted);
        font-size: 12px;
    }

    .pp-card-body {
        padding: 22px;
    }

    /* Account overview */

    .overview-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1px;
        background: var(--pp-border);
        border: 1px solid var(--pp-border);
        border-radius: 11px;
        overflow: hidden;
    }

    .overview-item {
        background: #fff;
        padding: 17px 18px;
    }

    .overview-label {
        color: var(--pp-muted);
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .55px;
        font-weight: 600;
        margin-bottom: 6px;
    }

    .overview-value {
        font-size: 14px;
        font-weight: 600;
        color: var(--pp-text);
        word-break: break-word;
    }

    /* Keys */

    .key-notice {
        display: flex;
        align-items: flex-start;
        gap: 11px;
        padding: 13px 15px;
        border: 1px solid #e5eaf2;
        background: #f8fafc;
        border-radius: 10px;
        margin-bottom: 18px;
        color: var(--pp-muted);
        font-size: 13px;
        line-height: 1.5;
    }

        .key-notice i {
            color: var(--pp-blue);
            margin-top: 2px;
        }

    .key-table-wrap {
        border: 1px solid var(--pp-border);
        border-radius: 11px;
        overflow-x: auto;
    }

    .key-table {
        width: 100%;
        margin: 0;
        border-collapse: collapse;
    }

        .key-table th {
            background: #f8fafc;
            color: var(--pp-muted);
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: .45px;
            font-weight: 700;
            padding: 13px 15px;
            border-bottom: 1px solid var(--pp-border);
            white-space: nowrap;
        }

        .key-table td {
            padding: 15px;
            border-bottom: 1px solid var(--pp-border);
            vertical-align: middle;
            font-size: 13px;
        }

        .key-table tr:last-child td {
            border-bottom: 0;
        }

        .key-table tr.revoked {
            opacity: .55;
        }

    .key-code {
        display: inline-flex;
        align-items: center;
        background: #f4f7fb;
        border: 1px solid #e3e9f1;
        border-radius: 7px;
        padding: 6px 9px;
        color: #33415c;
        font-family: "SFMono-Regular", Consolas, monospace;
        font-size: 12px;
        white-space: nowrap;
    }

    .key-status {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        font-weight: 600;
    }

        .key-status.active {
            color: var(--pp-success);
        }

        .key-status.revoked {
            color: var(--pp-danger);
        }

        .key-status.expiring {
            color: #a47512;
        }

    .key-status-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
    }

    .key-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
        margin-top: 18px;
    }

    /* Forms */

    .pp-label {
        display: block;
        font-size: 12px;
        font-weight: 600;
        color: #354158;
        margin-bottom: 7px;
    }

    .pp-input {
        border: 1px solid #dbe2ec;
        border-radius: 9px;
        min-height: 43px;
        font-size: 13px;
        padding: 9px 12px;
        box-shadow: none !important;
        transition: border-color .15s ease, box-shadow .15s ease;
    }

        .pp-input:focus {
            border-color: #8ba6cc;
            box-shadow: 0 0 0 3px rgba(49, 93, 155, .09) !important;
        }

    .pp-select {
        min-height: 40px;
        border: 1px solid #dbe2ec;
        border-radius: 8px;
        font-size: 12px;
        color: var(--pp-text);
        background-color: #fff;
    }

    /* Buttons */

    .pp-btn {
        border-radius: 8px;
        min-height: 40px;
        padding: 8px 15px;
        font-size: 13px;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: all .15s ease;
    }

    .pp-btn-primary {
        background: var(--pp-navy);
        border: 1px solid var(--pp-navy);
        color: #fff;
    }

        .pp-btn-primary:hover {
            background: #17233a;
            border-color: #17233a;
            color: #fff;
            transform: translateY(-1px);
        }

    .pp-btn-gold {
        background: var(--pp-gold);
        border: 1px solid var(--pp-gold);
        color: #fff;
    }

        .pp-btn-gold:hover {
            background: #c79431;
            border-color: #c79431;
            color: #fff;
        }

    .pp-btn-outline {
        background: #fff;
        border: 1px solid #d8dfeb;
        color: #344159;
    }

        .pp-btn-outline:hover {
            background: #f7f9fc;
            border-color: #bdc7d7;
            color: var(--pp-navy);
        }

    .pp-btn-danger {
        background: #fff;
        border: 1px solid #e4bebe;
        color: var(--pp-danger);
    }

        .pp-btn-danger:hover {
            background: var(--pp-danger-soft);
            border-color: #d99c9c;
            color: #b83e3e;
        }

    /* Empty keys */

    .empty-state {
        text-align: center;
        padding: 36px 20px;
        border: 1px dashed #d8e0eb;
        border-radius: 11px;
        background: #fafbfd;
    }

    .empty-state-icon {
        width: 44px;
        height: 44px;
        margin: 0 auto 12px;
        border-radius: 12px;
        background: var(--pp-blue-soft);
        color: var(--pp-blue);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
    }

    .empty-state h6 {
        margin-bottom: 5px;
        font-weight: 700;
        color: var(--pp-navy);
    }

    .empty-state p {
        margin-bottom: 16px;
        color: var(--pp-muted);
        font-size: 13px;
    }

    /* Webhook */

    .webhook-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        align-items: end;
    }

    .webhook-secret {
        margin-top: 14px;
        padding: 12px 14px;
        border-radius: 9px;
        background: #f8fafc;
        border: 1px solid var(--pp-border);
    }

        .webhook-secret .form-check-label {
            color: #47536a;
            font-size: 13px;
        }

    /* Danger */

    .danger-card {
        border-color: #efd3d3;
    }

        .danger-card .pp-card-header {
            background: #fffafa;
        }

        .danger-card .pp-card-icon {
            background: var(--pp-danger-soft);
            color: var(--pp-danger);
        }

    .danger-description {
        color: var(--pp-muted);
        font-size: 13px;
        margin-bottom: 18px;
    }

    .disabled-info {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 13px 15px;
        border-radius: 9px;
        background: var(--pp-danger-soft);
        color: #9d4b4b;
        font-size: 13px;
        margin-bottom: 15px;
    }

    @@media (max-width: 900px) {
        .account-container {
            padding: 0 18px;
        }

        .overview-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @@media (max-width: 650px) {
        .account-header {
            flex-direction: column;
        }

        .overview-grid {
            grid-template-columns: 1fr;
        }

        .webhook-grid {
            grid-template-columns: 1fr;
        }

        .pp-card-header {
            align-items: flex-start;
        }

        .account-title {
            font-size: 22px;
        }
    }

    .mch-filters {
        --f-bg: #ffffff;
        --f-border: #d9dee7;
        --f-border-hover: #b8c0cf;
        --f-text: #1f2937;
        --f-muted: #6b7280;
        --f-accent: #09000D;
        --f-accent-ring: rgba(37, 99, 235, 0.18);
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        padding: 12px;
        background: #ffffff;
        border-radius: 12px;
        color-scheme: light;
    }

        .mch-filters select,
        .mch-filters button {
            height: 38px;
            font: inherit;
            font-size: 0.875rem;
            color: var(--f-text);
            background-color: var(--f-bg);
            border: 1px solid var(--f-border);
            border-radius: 8px;
            transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
        }

        /* Selects */
        .mch-filters select {
            min-width: 160px;
            padding: 0 34px 0 12px;
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
        }

            /* Highlight a select when a filter is applied */
            .mch-filters select:not(:has(option[value='']:checked)) {
                border-color: var(--f-accent);
                background-color: #eff5ff;
                font-weight: 500;
            }

        /* Reset button */
        .mch-filters button {
            padding: 0 16px;
            font-weight: 500;
            color: var(--f-muted);
            cursor: pointer;
        }

            .mch-filters button:hover {
                color: var(--f-text);
                background-color: #f3f4f6;
            }

            .mch-filters button:active {
                transform: translateY(1px);
            }

            /* Shared hover and focus */
            .mch-filters select:hover,
            .mch-filters button:hover {
                border-color: var(--f-border-hover);
            }

            .mch-filters select:focus-visible,
            .mch-filters button:focus-visible {
                outline: none;
                border-color: var(--f-accent);
                box-shadow: 0 0 0 3px var(--f-accent-ring);
            }

    /* Mobile: selects and reset fill the row */
    @media (max-width: 600px) {
        .mch-filters select,
        .mch-filters button {
            flex: 1 1 100%;
        }
    }


    .mch-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 20px;
    }

        .mch-filters select {
            height: 36px;
            padding: 0 10px;
            border: 1px solid #dbe2ea;
            border-radius: 9px;
            background: #fff;
            color: #334155;
            font-size: 11px;
        }

        .mch-filters button {
            height: 36px;
            padding: 0 14px;
            border: 1px solid #dbe2ea;
            border-radius: 9px;
            background: #fff;
            color: #09000D;
            font-size: 11px;
            font-weight: 650;
            cursor: pointer;
        }

    .mch-merchant {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mch-avatar {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        background: #eef2ff;
        color: #09000D;
        font-size: 12px;
        font-weight: 700;
    }

    .mch-name {
        color: #334155;
        font-size: 12px;
        font-weight: 650;
    }

    .mch-sub {
        color: #94a3b8;
        font-size: 9px;
    }

    .mch-badge {
        display: inline-flex;
        align-items: center;
        padding: 3px 9px;
        border-radius: 999px;
        font-size: 9px;
        font-weight: 700;
        white-space: nowrap;
    }

    .mch-green {
        background: #f0fdf4;
        color: #15803d;
    }

    .mch-amber {
        background: #fff7ed;
        color: #c2410c;
    }

    .mch-red {
        background: #fef2f2;
        color: #dc2626;
    }

    .mch-grey {
        background: #f1f5f9;
        color: #64748b;
    }

    .mch-blue {
        background: #eef2ff;
        color: #09000D;
    }



    .oms-dashboard {
        --primary: #09000D;
        --primary-dark: #2A2130;
        --text: #1e293b;
        --muted: #64748b;
        --border: #e2e8f0;
        --background: #f8fafc;
        --surface: #ffffff;
    }

    /* =========================
           DASHBOARD HEADER
           ========================= */

    .oms-dashboard-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        margin-bottom: 10px;
    }

    .oms-dashboard-title {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .oms-dashboard-icon {
        width: 52px;
        height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
        background: linear-gradient(135deg, var(--primary), #09000D);
        color: #fff;
        font-size: 22px;
        box-shadow: 0 8px 20px rgba(79, 70, 229, .22);
    }

    .oms-dashboard-title h1 {
        margin: 0;
        font-size: 20px;
        font-weight: 700;
        letter-spacing: -.5px;
        color: var(--text);
    }

    .oms-dashboard-title p {
        margin: 4px 0 0;
        color: var(--muted);
        font-size: 13px;
    }

    /* =========================
           COMPANY SWITCHER
           ========================= */

    .oms-switch-company-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 15px;
        border: 1px solid var(--primary);
        border-radius: 20px;
        background: var(--primary);
        color: #fff;
        font-size: 13px;
        font-weight: 600;
        transition: all .2s ease;
        margin-left: 10px;
    }

        .oms-switch-company-btn:hover {
            background: #f8fafc;
            border-color: #cbd5e1;
            color: #334155;
            transform: translateY(-1px);
        }

    /* =========================
           STATISTICS CARD
           ========================= */

    .oms-statistics-card {
        margin-bottom: 28px;
    }

    .oms-statistics-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
    }

    .oms-statistics-title {
        margin: 0;
        color: var(--text);
        font-size: 17px;
        font-weight: 700;
    }

    .oms-statistics-subtitle {
        margin-top: 3px;
        color: var(--muted);
        font-size: 13px;
    }

    /* =========================
           STAT GRID
           ========================= */

    .oms-stat-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .main-metrics-left-larger .oms-stat-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .oms-stat-card {
        position: relative;
        overflow: hidden;
        min-height: 150px;
        padding: 20px;
        border: 1px solid var(--border);
        border-radius: 15px;
        background: #fff;
        text-decoration: none;
        transition: all .2s ease;
    }

        .oms-stat-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(15, 23, 42, .08);
        }

        .oms-stat-card::after {
            content: "";
            position: absolute;
            width: 110px;
            height: 110px;
            right: -35px;
            bottom: -45px;
            border-radius: 50%;
            opacity: .35;
        }

    /* Header */
    .oms-stat-card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px;
    }

    .oms-metric-number {
        padding: 10px;
    }

    .oms-stat-label {
        margin: 0;
        color: var(--muted);
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .55px;
    }

    .oms-stat-icon {
        width: 39px;
        height: 39px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        font-size: 17px;
    }

    /* Number */
    .oms-stat-value {
        margin: 0;
        color: #0f172a;
        font-size: 30px;
        font-weight: 750;
        line-height: 1;
        letter-spacing: -1px;
    }

    .oms-stat-description {
        margin-top: 9px;
        color: #94a3b8;
        font-size: 11px;
    }

    /* =========================
           COMPANIES
           ========================= */

    .oms-stat-companies {
        background: linear-gradient(145deg, #fff, #f8fafc);
    }

        .oms-stat-companies .oms-stat-icon {
            background: #f1f5f9;
            color: #475569;
        }

        .oms-stat-companies::after {
            background: #cbd5e1;
        }

    /* =========================
           USERS
           ========================= */

    .oms-stat-users {
        background: linear-gradient(145deg, #fff, #fffbeb);
    }

        .oms-stat-users .oms-stat-icon {
            background: #fef3c7;
            color: #d97706;
        }

        .oms-stat-users::after {
            background: #fde68a;
        }

    /* =========================
           NOTIFICATIONS
           ========================= */

    .oms-stat-notifications {
        background: linear-gradient(145deg, #fff, #f0fdf4);
    }

        .oms-stat-notifications .oms-stat-icon {
            background: #dcfce7;
            color: #16a34a;
        }

        .oms-stat-notifications::after {
            background: #bbf7d0;
        }

    /* =========================
           ACTIVITY CARD
           ========================= */

    .oms-activity-card {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 8px 30px rgba(15, 23, 42, .05);
    }

    .oms-activity-header {
        padding: 21px 24px;
        border-bottom: 1px solid var(--border);
    }

        .oms-activity-header h5 {
            margin: 0;
            font-size: 17px;
            font-weight: 700;
            color: var(--text);
        }

        .oms-activity-header p {
            margin: 4px 0 0;
            color: var(--muted);
            font-size: 13px;
        }

    .oms-activity-table {
        padding: 0 20px 20px;
        /* overflow-x: auto; */
    }

    div.dt-container div.dt-layout-row {
        overflow: auto;
    }
    /* =========================
           RESPONSIVE
           ========================= */

    @@media (max-width: 1100px) {
        .oms-stat-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @@media (max-width: 768px) {

        .oms-dashboard-header {
            align-items: flex-start;
            flex-direction: column;
        }

        .oms-switch-company-btn {
            width: 100%;
            justify-content: center;
        }

        .oms-dashboard-title h1 {
            font-size: 22px;
        }

        .oms-statistics-card {
            padding: 18px;
        }

        .oms-activity-header {
            padding: 18px;
        }
    }

    @@media (max-width: 520px) {

        .oms-stat-grid {
            grid-template-columns: 1fr;
        }

        .oms-dashboard-icon {
            width: 47px;
            height: 47px;
        }
    }

    .left-header-side {
        display: flex;
    }

    /* =========================
       REVENUE CARD (compact style)
       ========================= */
    .oms-metric-card {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: auto;
        padding: 0px;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: #fff;
        transition: all .2s ease;
    }

        .oms-metric-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
        }

    .oms-metric-card--blue .oms-metric-icon {
        background: #eaf0ff;
        color: #09000D;
    }

    .oms-metric-top {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 10px;
    }

    .oms-metric-icon {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        font-size: 17px;
    }

    .oms-metric-info {
        flex: 1;
        min-width: 0;
    }

    .oms-metric-label {
        margin: 0 0 4px;
        color: var(--muted);
        font-size: 13px;
        font-weight: 500;
    }

    .oms-metric-value-row {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .oms-metric-value {
        margin-right: 10px;
        color: #0f172a;
        font-size: 20px;
        font-weight: 750;
        letter-spacing: -.5px;
    }

    .oms-metric-badge {
        display: inline-flex;
        align-items: center;
        gap: 2px;
        font-size: 12px;
        font-weight: 700;
    }

        .oms-metric-badge.trend-up {
            color: #16a34a;
        }

        .oms-metric-badge.trend-down {
            color: #dc2626;
        }

        .oms-metric-badge.trend-flat {
            color: #64748b;
        }

    .oms-metric-bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 14px;
        padding: 10px;
        border-top: 1px solid var(--border);
    }

    .oms-metric-bottom-text {
        color: var(--muted);
        font-size: 12px;
    }

    .oms-metric-info-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        border: none;
        background: transparent;
        color: #94a3b8;
        font-size: 13px;
        cursor: pointer;
        transition: background .15s ease, color .15s ease;
    }

        .oms-metric-info-btn:hover {
            background: #eaf0ff;
            color: #09000D;
        }

    /* Modal summary */
    .oms-metric-summary-row {
        display: flex;
        justify-content: space-between;
        padding: 10px 0;
        border-bottom: 1px solid var(--border);
        font-size: 14px;
    }

        .oms-metric-summary-row:last-child {
            border-bottom: none;
        }

        .oms-metric-summary-row span:first-child {
            color: var(--muted);
        }

        .oms-metric-summary-row span:last-child {
            font-weight: 600;
            color: var(--text);
        }

    .main-metrics {
        display: flex;
        justify-content: space-between;
    }

        .main-metrics .main-metrics-left-larger {
            flex-basis: calc(100% - 300px);
        }

        .main-metrics .main-metric-actions {
            flex-basis: 280px;
        }

    .metrics-overview-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }

    .pp-kyc-banner {
        display: flex;
        align-items: center;
        gap: 14px;
        width: 100%;
        padding: 16px 20px;
        border-radius: 16px;
        background-color: #F7F7F8;
        border: 1px solid #E9EAEC;
        margin-bottom: 24px;
        box-sizing: border-box;
    }

    .pp-kyc-icon {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background-color: #FFFFFF;
        border: 1px solid #E9EAEC;
        color: #16181D;
        font-size: 16px;
    }

    .pp-kyc-text {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        line-height: 1.3;
    }

        .pp-kyc-text strong {
            font-size: 14px;
            font-weight: 600;
            color: #16181D;
        }

        .pp-kyc-text span {
            font-size: 13px;
            color: #7A7D85;
        }

    .pp-kyc-btn {
        flex-shrink: 0;
        display: inline-block;
        font-size: 13px;
        font-weight: 600;
        padding: 10px 22px;
        border-radius: 10px;
        background-color: #16181D;
        color: #FFFFFF !important;
        white-space: nowrap;
        transition: opacity 0.15s ease;
    }

        .pp-kyc-btn:hover {
            opacity: 0.85;
            color: #FFFFFF !important;
        }

    @media (max-width: 550px) {
        .pp-kyc-banner {
            flex-wrap: wrap;
            flex-direction:column;
        }

        .pp-kyc-btn {
            width: 100%;
            text-align: center;
            margin-top: 4px;
        }
    }

    .info-container {
        display: flex;
        align-items: center;
    }

    .balances-holder {
        display: flex;
        justify-content: space-between;
        background: white;
        padding: 15px;
        border-radius: 15px;
        margin-bottom: 20px;
    }

    .icon-holder {
        display: inline-flex;
    }

    .icon-shadow {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #ffffff;
        border: 1px solid #d9dee5;
        border-radius: 6px;
        color: #1f3a5f;
        font-size: 1.2rem;
        box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 10px rgba(16, 24, 40, .08);
    }

    .main-account-balances-total {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 150px;
        min-width: 200px;
        flex-basis: 35%;
        margin-right: 20px;
    }



    .bottom-balance-details .balance-heading {
        margin: 0 0 6px;
        font-size: 16px;
        font-weight: 500;
        color: #667085;
    }

    .bottom-balance-details p {
        margin: 0;
        font-size: 26px;
        font-weight: 700;
        line-height: 1.1;
        letter-spacing: -0.02em;
        color: #1f3a5f;
        font-variant-numeric: tabular-nums;
    }

    @@media (max-width: 600px) {
        .bottom-balance-details p {
            font-size: 28px;
        }
    }

    .balance-split {
        max-width: 380px;
        padding: 8px;
        background: #f8fafc;
        border-radius: 12px;
        color: #1a2433;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex-basis: 30%;
    }

    .balance-split-title {
        margin: 0 0 18px;
        font-size: 16px;
        font-weight: 600;
        color: #1a2433;
    }

    .balance-split-legend {
        list-style: none;
        margin: 0 0 32px;
        padding: 0;
    }

        .balance-split-legend li {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
            font-size: 14px;
            color: #475467;
            font-variant-numeric: tabular-nums;
        }

        .balance-split-legend .dot {
            width: 10px;
            height: 10px;
            margin-right: 10px;
            border-radius: 50%;
            flex: 0 0 auto;
        }

    .dot-available {
        background: #1b8f5a;
    }

    .dot-pending {
        background: #e58a12;
    }

    .balance-split-foot {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        margin-bottom: 10px;
    }

    .balance-split-total {
        font-size: 14px;
        font-weight: 600;
        letter-spacing: -0.01em;
        color: #1f3a5f;
        font-variant-numeric: tabular-nums;
    }

    .balance-split-pct {
        font-size: 14px;
        font-weight: 600;
        color: #667085;
    }

    .balance-split-track {
        height: 8px;
        background: #dde2e8;
        border-radius: 999px;
        overflow: hidden;
    }

    .balance-split-fill {
        height: 100%;
        background: #1b8f5a;
        border-radius: 999px;
    }

    .method-list {
        list-style: none;
        margin: 0 0 5px;
        padding: 0;
    }

    .method-row {
        display: flex;
        align-items: center;
        padding: 4px 0;
    }

        .method-row:first-child {
            padding-top: 0;
        }

    .method-icon {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        margin-right: 14px;
        background: #ffffff;
        border: 1px solid #d9dee5;
        border-radius: 10px;
        color: #1f3a5f;
        font-size: 18px;
        box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 3px 8px rgba(16, 24, 40, .06);
    }

    .method-name {
        flex: 1 1 auto;
        font-size: 15px;
        font-weight: 600;
        color: #1a2433;
    }

    .method-amount {
        margin-right: 16px;
        font-size: 14px;
        color: #475467;
        font-variant-numeric: tabular-nums;
    }

    .method-pct {
        min-width: 40px;
        text-align: right;
        font-size: 14px;
        font-weight: 600;
        color: #667085;
        font-variant-numeric: tabular-nums;
    }

    .Quick-Metrics-overview {
        background: white;
        padding: 10px;
        border-radius: 8px;
    }

    .overview-metric {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px;
        margin-top: 10px;
        background: #f8fafc;
        border-radius: 10px;
    }

    .Quick-Metrics-overview .overview-metric-left {
        display: flex;
        align-items: center;
    }

    .Quick-Metrics-overview {
        background: #ffffff;
        padding: 14px;
        border: 1px solid #e4e7ec;
        border-radius: 12px;
        box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
        font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    }

    .overview-metric {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 14px;
        margin-top: 10px;
        background: #f8fafc;
        border: 1px solid #e9edf2;
        border-radius: 10px;
        transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
    }

        .overview-metric:first-child {
            margin-top: 0;
        }

        .overview-metric:hover {
            background: #ffffff;
            border-color: #d9dee5;
            box-shadow: 0 2px 8px rgba(16, 24, 40, .06);
        }

    .Quick-Metrics-overview .overview-metric-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .overview-metric-left p {
        margin: 0;
        font-size: 15px;
        font-weight: 500;
        color: #475467;
    }

    /* compact version of the raised icon tile */
    .overview-metric .icon-shadow {
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-radius: 10px;
    }

    .overview-metric-amount p {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
        line-height: 1;
        letter-spacing: -0.01em;
        color: #1f3a5f;
        font-variant-numeric: tabular-nums;
    }

    .Quick-Metrics-overview-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 4px 4px 14px;
        margin-bottom: 14px;
        border-bottom: 1px solid #e4e7ec;
    }

        .Quick-Metrics-overview-header h5 {
            position: relative;
            margin: 0;
            padding-left: 12px;
            font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
            font-size: 17px;
            font-weight: 600;
            letter-spacing: -0.01em;
            color: #1a2433;
        }

            /* short navy marker to the left of the title */
            .Quick-Metrics-overview-header h5::before {
                content: "";
                position: absolute;
                left: 0;
                top: 50%;
                width: 3px;
                height: 16px;
                transform: translateY(-50%);
                background: #1f3a5f;
                border-radius: 2px;
            }

    .chart-card {
        background: #ffffff;
        border: 1px solid #e4e7ec;
        border-radius: 12px;
        padding: 20px;
    }

    .chart-wrap {
        position: relative;
        height: 300px; /* required when maintainAspectRatio is false */
    }

    .chart-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* header button: active merchant + plus */
    .oms-merchant-btn {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        max-width: 280px;
        margin-top: 10px;
        padding: 6px 8px 6px 6px;
        border: 1px solid #dbe2ea;
        border-radius: 14px;
        background: #fff;
        color: #1e293b;
        text-align: left;
        cursor: pointer;
        transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
        justify-content: space-between;
    }

        .oms-merchant-btn:hover {
            border-color: var(--primary, #09000D);
            box-shadow: 0 4px 14px rgba(15,23,42,.08);
            transform: translateY(-1px);
        }

        .oms-merchant-btn:focus-visible {
            outline: 2px solid var(--primary, #09000D);
            outline-offset: 2px;
        }

    .oms-merchant-btn__avatar {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        background: var(--primary, #09000D);
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        margin-right: 10px;
    }

    .oms-merchant-btn__text {
        display: flex;
        flex-direction: column;
        min-width: 0;
        line-height: 1.25;
    }

    .oms-merchant-btn__name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: #1e293b;
        font-size: 13px;
        font-weight: 650;
    }

    .oms-merchant-btn__meta {
        display: flex;
        align-items: center;
        gap: 6px;
        color: #94a3b8;
        font-size: 10px;
    }

    .oms-merchant-btn__add {
        width: 26px;
        height: 26px;
        flex: 0 0 26px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: #f1f5f9;
        color: #475569;
        font-size: 13px;
        transition: background .15s ease, color .15s ease;
    }

    .oms-merchant-btn:hover .oms-merchant-btn__add {
        background: var(--primary, #09000D);
        color: #fff;
    }

    /* environment tag (button + modal rows) */
    .oms-env {
        display: inline-block;
        padding: 1px 6px;
        border-radius: 999px;
        font-size: 9px;
        font-weight: 700;
    }

    .oms-env--prod {
        background: #eef2ff;
        color: #09000D;
    }

    .oms-env--sandbox {
        background: #fff7ed;
        color: #c2410c;
    }

    /* modal footer: add merchant */
    .oms-company-switcher__footer {
        padding: 10px 0px;
        border-top: 1px solid #eef2f7;
    }

    .oms-company-add {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 12px;
        border: 1px dashed #cbd5e1;
        border-radius: 12px;
        color: #475569;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        transition: border-color .15s ease, color .15s ease, background .15s ease;
    }

        .oms-company-add:hover {
            border-color: var(--primary, #09000D);
            background: #f8fafc;
            color: var(--primary, #09000D);
        }

    .oms-company-add__icon {
        width: 34px;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        background: #f1f5f9;
    }

    @media (max-width: 768px) {
        .oms-merchant-btn {
            max-width: 190px;
        }

        .oms-merchant-btn__meta {
            display: none;
        }
    }

    table.dataTable {
        border: 1px solid #efefef;
        border-radius: 10px;
    }

        table.dataTable > thead > tr > th, table.dataTable > thead > tr > td {
            border-radius: 10px 0px 0px 0px;
        }

        table.dataTable thead > tr > th.dt-orderable-asc .dt-column-order:before, table.dataTable thead > tr > th.dt-orderable-asc .dt-column-order:after, table.dataTable thead > tr > th.dt-orderable-desc .dt-column-order:before, table.dataTable thead > tr > th.dt-orderable-desc .dt-column-order:after, table.dataTable thead > tr > th.dt-ordering-asc .dt-column-order:before, table.dataTable thead > tr > th.dt-ordering-asc .dt-column-order:after, table.dataTable thead > tr > th.dt-ordering-desc .dt-column-order:before, table.dataTable thead > tr > th.dt-ordering-desc .dt-column-order:after, table.dataTable thead > tr > td.dt-orderable-asc .dt-column-order:before, table.dataTable thead > tr > td.dt-orderable-asc .dt-column-order:after, table.dataTable thead > tr > td.dt-orderable-desc .dt-column-order:before, table.dataTable thead > tr > td.dt-orderable-desc .dt-column-order:after, table.dataTable thead > tr > td.dt-ordering-asc .dt-column-order:before, table.dataTable thead > tr > td.dt-ordering-asc .dt-column-order:after, table.dataTable thead > tr > td.dt-ordering-desc .dt-column-order:before, table.dataTable thead > tr > td.dt-ordering-desc .dt-column-order:after {
            left: 0;
            opacity: .25;
            line-height: 9px;
            font-size: .8em;
            color: black;
        }

    /* ===== Aside thin scrollbar ===== */
    .aside,
    .aside .nav {
        --sb-thumb: rgba(148, 163, 184, 0.35);
        --sb-thumb-hover: rgba(148, 163, 184, 0.65);
        scrollbar-width: thin; /* Firefox */
        scrollbar-color: transparent transparent; /* Firefox: hidden until hover */
    }

        .aside:hover,
        .aside .nav:hover {
            scrollbar-color: var(--sb-thumb) transparent;
        }

        /* Chromium / Safari / Edge */
        .aside::-webkit-scrollbar,
        .aside .nav::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }

        .aside::-webkit-scrollbar-track,
        .aside .nav::-webkit-scrollbar-track {
            background: transparent;
        }

        .aside::-webkit-scrollbar-thumb,
        .aside .nav::-webkit-scrollbar-thumb {
            background-color: transparent;
            border-radius: 999px;
            transition: background-color .2s ease;
        }

        .aside:hover::-webkit-scrollbar-thumb,
        .aside .nav:hover::-webkit-scrollbar-thumb {
            background-color: var(--sb-thumb);
        }

        .aside::-webkit-scrollbar-thumb:hover,
        .aside .nav::-webkit-scrollbar-thumb:hover {
            background-color: var(--sb-thumb-hover);
        }

    .oms-activity-page-header, .oms-log-page-header {
        background: white !important;
        margin-bottom: 20px;
        padding: 15px;
        border-radius: 15px;
    }

    .oms-activity-page {
        padding: 15px 0 40px !important;
    }


    .mca-page {
        max-width: 560px;
        margin: 0 auto;
        padding: 28px 0 48px;
    }

    .mca-back {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 14px;
        color: #64748b;
        font-size: 12px;
        text-decoration: none;
    }

        .mca-back:hover {
            color: var(--primary, #09000D);
        }

    .mca-card {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 18px;
        box-shadow: 0 8px 30px rgba(15,23,42,.05);
        overflow: hidden;
    }

    .mca-head {
        display: flex;
        gap: 14px;
        padding: 24px 24px 18px;
        border-bottom: 1px solid #eef2f7;
    }

    .mca-icon {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
        background: linear-gradient(135deg, var(--primary, #09000D), #09000D);
        color: #fff;
        font-size: 20px;
    }

    .mca-eyebrow {
        display: block;
        margin-bottom: 3px;
        color: #94a3b8;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .09em;
    }

    .mca-head h1 {
        margin: 0;
        color: #0f172a;
        font-size: 20px;
        font-weight: 700;
        letter-spacing: -.02em;
    }

    .mca-head p {
        margin: 4px 0 0;
        color: #64748b;
        font-size: 13px;
    }

    .mca-form {
        padding: 22px 24px 24px;
    }

    .mca-field {
        margin-bottom: 18px;
    }

        .mca-field label {
            display: block;
            margin-bottom: 6px;
            color: #334155;
            font-size: 12px;
            font-weight: 650;
        }

    .mca-input-wrapper {
        position: relative;
    }

        .mca-input-wrapper > i {
            position: absolute;
            top: 50%;
            left: 13px;
            transform: translateY(-50%);
            color: #94a3b8;
            font-size: 15px;
            pointer-events: none;
        }

    .mca-input {
        width: 100%;
        height: 46px;
        padding: 0 13px 0 38px;
        border: 1px solid #dbe2ea;
        border-radius: 11px;
        outline: none;
        background: #fff;
        color: #1e293b;
        font-size: 14px;
        transition: border-color .15s ease, box-shadow .15s ease;
    }

        .mca-input:focus {
            border-color: var(--primary, #09000D);
            box-shadow: 0 0 0 4px rgba(22,101,140,.12);
        }

        .mca-input.input-validation-error {
            border-color: #dc2626;
        }

    .mca-text-error {
        display: block;
        margin-top: 5px;
        color: #dc2626;
        font-size: 12px;
    }

    .mca-error:not(:empty) {
        margin-bottom: 14px;
        padding: 10px 14px;
        border: 1px solid #fecaca;
        border-radius: 10px;
        background: #fef2f2;
        color: #b91c1c;
        font-size: 12px;
    }

    .mca-error ul {
        margin: 0;
        padding-left: 16px;
    }

    .mca-next {
        margin: 4px 0 22px;
        padding: 14px 16px;
        border-radius: 12px;
        background: #f8fafc;
        color: #475569;
        font-size: 12px;
    }

        .mca-next strong {
            display: block;
            margin-bottom: 6px;
            color: #1e293b;
            font-size: 12px;
        }

        .mca-next ol {
            margin: 0;
            padding-left: 18px;
        }

        .mca-next li + li {
            margin-top: 3px;
        }

    .mca-actions {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .mca-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        height: 44px;
        padding: 0 22px;
        border: 0;
        border-radius: 11px;
        background: var(--primary, #09000D);
        color: #fff;
        font-size: 14px;
        font-weight: 650;
        cursor: pointer;
        transition: opacity .15s ease;
    }

        .mca-btn:hover {
            opacity: .9;
        }

        .mca-btn:disabled {
            opacity: .6;
            cursor: not-allowed;
        }

    .mca-cancel {
        color: #64748b;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
    }

        .mca-cancel:hover {
            color: #1e293b;
        }

    .tm-page {
        max-width: 1180px;
        margin: 0 auto;
        padding: 24px 0 56px;
    }

    .tm-card {
        padding: 36px;
        background: #fff;
        border: 1px solid #e9e9ee;
        border-radius: 26px;
    }

    .tm-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 22px;
    }

        .tm-top h1 {
            margin: 0;
            color: #0b0b0f;
            font-size: 28px;
            font-weight: 800;
            letter-spacing: -.03em;
        }

    /* buttons */
    .tm-btn-dark, .tm-btn-outline, .tm-btn-danger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        line-height: 1;
        cursor: pointer;
        white-space: nowrap;
        transition: opacity .15s ease, background .15s ease;
    }

    .tm-btn-dark {
        height: 38px;
        padding: 0 16px;
        border: 0;
        background: #1f1f23;
        color: #fff;
    }

        .tm-btn-dark:hover {
            opacity: .88;
        }

    .tm-btn-outline {
        height: 32px;
        padding: 0 11px;
        border: 1px solid #e3e3e8;
        background: #fff;
        color: #17171c;
        font-size: 13px;
    }

        .tm-btn-outline:hover {
            background: #f6f6f8;
        }

    .tm-btn-danger {
        height: 32px;
        padding: 0 11px;
        border: 0;
        background: #ff2d3f;
        color: #fff;
        font-size: 13px;
    }

        .tm-btn-danger:hover {
            background: #e01f31;
        }

        .tm-btn-dark:disabled, .tm-btn-outline:disabled, .tm-btn-danger:disabled {
            opacity: .55;
            cursor: not-allowed;
        }

    /* alerts */
    .tm-alert {
        margin-bottom: 16px;
        padding: 11px 14px;
        border-radius: 10px;
        font-size: 13px;
    }

    .tm-alert-ok {
        border: 1px solid #bbf7d0;
        background: #f0fdf4;
        color: #166534;
    }

    .tm-alert-err {
        border: 1px solid #fecaca;
        background: #fef2f2;
        color: #b91c1c;
    }

    /* "Team members" divider */
    .tm-divider {
        display: flex;
        align-items: center;
        gap: 28px;
        margin: 14px 0 22px;
        color: #6b6b76;
        font-size: 16px;
    }

        .tm-divider::before, .tm-divider::after {
            content: "";
            flex: 1;
            height: 1px;
            background: #e4e4e9;
        }

    .tm-divider-gap {
        margin-top: 40px;
    }

    /* table */
    .tm-table-wrap {
        overflow-x: auto;
    }

    .tm-table {
        width: 100%;
        border-collapse: collapse;
        min-width: 680px;
    }

        .tm-table th {
            padding: 12px 0;
            border-bottom: 1px solid #e9e9ee;
            color: #17171c;
            font-size: 16px;
            font-weight: 500;
            text-align: left;
        }

        .tm-table td {
            padding: 14px 16px 14px 0;
            border-bottom: 0px;
            border-top: 1px solid #e9e9ee;
            color: #6b6b76;
            font-size: 16px;
            vertical-align: middle;
        }

        .tm-table tr:last-child td {
            border-bottom: 0;
        }

    .tm-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
    }

    .tm-pill {
        display: inline-block;
        margin: 2px 6px 2px 0;
        padding: 4px 10px;
        border: 1px solid #e3e3e8;
        border-radius: 999px;
        background: #fff;
        color: #3f3f49;
        font-size: 12px;
        font-weight: 500;
    }

    .tm-pill-owner {
        border-color: #c7d2fe;
        background: #eef2ff;
        color: #4f46e5;
    }

    .tm-pill-warn {
        border-color: #fed7aa;
        background: #fff7ed;
        color: #c2410c;
    }

    .tm-none {
        color: #9a9aa5;
        font-size: 14px;
    }

    .tm-you {
        margin-left: 8px;
        padding: 2px 8px;
        border-radius: 999px;
        background: #f1f1f4;
        color: #6b6b76;
        font-size: 11px;
        font-weight: 600;
    }

    /* modals */
    .tm-modal {
        border: 0;
        border-radius: 18px;
        overflow: hidden;
    }

    .tm-modal-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 22px;
        border-bottom: 1px solid #eef0f3;
    }

        .tm-modal-head h5 {
            margin: 0;
            color: #0b0b0f;
            font-size: 17px;
            font-weight: 700;
        }

    .tm-modal-body {
        padding: 20px 22px;
    }

    .tm-modal-foot {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        padding: 14px 22px 18px;
    }

        .tm-modal-foot .tm-btn-dark, .tm-modal-foot .tm-btn-outline {
            height: 38px;
            padding: 0 16px;
            font-size: 14px;
        }

    .tm-label {
        display: block;
        margin-bottom: 6px;
        color: #17171c;
        font-size: 13px;
        font-weight: 600;
    }

    .tm-label-gap {
        margin-top: 18px;
    }

    .tm-input {
        width: 100%;
        height: 44px;
        padding: 0 12px;
        border: 1px solid #dcdce2;
        border-radius: 10px;
        outline: none;
        font-size: 14px;
    }

        .tm-input:focus {
            border-color: #1f1f23;
            box-shadow: 0 0 0 3px rgba(31,31,35,.1);
        }

    .tm-hint {
        margin: 14px 0 0;
        color: #8b8b96;
        font-size: 12px;
    }

    .tm-check {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 8px;
        padding: 10px 12px;
        border: 1px solid #e9e9ee;
        border-radius: 10px;
        cursor: pointer;
    }

        .tm-check:hover {
            background: #fafafb;
        }

        .tm-check input {
            margin-top: 3px;
        }

        .tm-check strong {
            display: block;
            color: #17171c;
            font-size: 14px;
        }

        .tm-check small {
            display: block;
            color: #8b8b96;
            font-size: 12px;
        }

        .tm-check.is-locked {
            opacity: .55;
            cursor: not-allowed;
        }

    @media (max-width: 640px) {
        .tm-card {
            padding: 20px;
            border-radius: 18px;
        }

        .tm-top h1 {
            font-size: 30px;
        }

        .tm-divider {
            gap: 14px;
        }
    }

    .tm-pill-more {
        border: 1px dashed currentColor;
        background: transparent;
        cursor: pointer;
    }

        .tm-pill-more:hover {
            background: rgba(0, 0, 0, 0.05);
        }

    .bs-title {
        font-size: 2rem;
        font-weight: 700;
        margin: 1.2rem 0 1.2rem;
    }

    .bs-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        margin-bottom: 1.25rem;
    }

    .bs-form {
        margin-bottom: 1.5rem;
    }

    .bs-label {
        display: block;
        color: #8a8a8a;
        font-size: .95rem;
        margin-bottom: .5rem;
    }

    .bs-label-strong {
        color: #111;
    }

    .bs-input {
        width: 100%;
        padding: .85rem 1rem;
        border: 1px solid #e3e3e3;
        border-radius: 12px;
        font-size: 1rem;
        background: #fff;
        color: #222;
    }

        .bs-input:disabled {
            color: #6b6b6b;
            background: #fff;
            cursor: default;
        }

        .bs-input:focus {
            outline: none;
            border-color: #999;
            box-shadow: 0 0 0 3px rgba(0,0,0,.05);
        }

    .bs-hint {
        display: block;
        margin-top: .35rem;
        color: #999;
        font-size: .8rem;
    }

    .bs-btn {
        margin-top: .75rem;
        padding: .4rem .9rem;
        border: 0;
        border-radius: 8px;
        background: #f1f1f1;
        font-size: .9rem;
        cursor: pointer;
    }

        .bs-btn:hover {
            background: #e6e6e6;
        }

    @media (max-width: 640px) {
        .bs-row {
            grid-template-columns: 1fr;
        }
    }

    .md-hero-badges {
        display: flex;
        flex-wrap: wrap;
        gap: .5rem;
        margin: -.5rem 0 1.75rem;
    }

    .md-badge {
        --b-bg: #f1f1f1;
        --b-fg: #555;
        --b-dot: #9a9a9a;
        display: inline-flex;
        align-items: center;
        gap: .45rem;
        padding: .3rem .75rem .3rem .6rem;
        border-radius: 999px;
        background: var(--b-bg);
        color: var(--b-fg);
        font-size: .8rem;
        font-weight: 600;
        letter-spacing: .01em;
        line-height: 1.2;
        box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--b-dot) 22%, transparent);
        white-space: nowrap;
    }

        /* status dot */
        .md-badge::before {
            content: "";
            width: .5rem;
            height: .5rem;
            border-radius: 50%;
            background: var(--b-dot);
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--b-dot) 20%, transparent);
        }

    .md-green {
        --b-bg: #ecfdf3;
        --b-fg: #067647;
        --b-dot: #12b76a;
    }

    .md-red {
        --b-bg: #fef3f2;
        --b-fg: #b42318;
        --b-dot: #f04438;
    }

    .md-amber {
        --b-bg: #fffaeb;
        --b-fg: #b54708;
        --b-dot: #f79009;
    }

    .md-blue {
        --b-bg: #eff8ff;
        --b-fg: #175cd3;
        --b-dot: #2e90fa;
    }

    .md-grey {
        --b-bg: #f4f4f5;
        --b-fg: #52525b;
        --b-dot: #a1a1aa;
    }

    /* optional: gentle pulse on live-ish states */
    .md-green::before,
    .md-blue::before {
        animation: md-pulse 2.4s ease-in-out infinite;
    }

    @keyframes md-pulse {
        0%, 100% {
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--b-dot) 20%, transparent);
        }

        50% {
            box-shadow: 0 0 0 5px color-mix(in srgb, var(--b-dot) 8%, transparent);
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .md-badge::before {
            animation: none;
        }
    }

    .bs-code {
        text-align: center;
        letter-spacing: .5em;
        font-size: 1.5rem;
        font-weight: 600;
    }

    .bs-btn-dark,
    .bs-btn-light {
        padding: .6rem 1.2rem;
        border-radius: 10px;
        font-size: .95rem;
        font-weight: 600;
        cursor: pointer;
        transition: background .15s ease;
    }

    .bs-btn-dark {
        border: 0;
        background: #000;
        color: #fff;
    }

        .bs-btn-dark:hover {
            background: #262626;
        }

    .bs-btn-light {
        border: 1px solid #e3e3e3;
        background: #fff;
        color: #222;
    }

        .bs-btn-light:hover {
            background: #f5f5f5;
        }

    .md-head-actions {
        display: flex;
        align-items: center;
        gap: .75rem;
    }

    .md-actions {
        white-space: nowrap;
        text-align: right;
    }

    .bs-gap {
        margin-top: 1rem;
    }

    .bs-btn-sm {
        padding: .35rem .75rem;
        font-size: .85rem;
    }

    .bs-btn-danger {
        border: 1px solid #fecdca;
        background: #fff;
        color: #b42318;
        border-radius: 10px;
        font-weight: 600;
        cursor: pointer;
    }

        .bs-btn-danger:hover {
            background: #fef3f2;
        }

    .bs-btn-red {
        padding: .6rem 1.2rem;
        border: 0;
        border-radius: 10px;
        background: #b42318;
        color: #fff;
        font-weight: 600;
        cursor: pointer;
    }

        .bs-btn-red:hover {
            background: #912018;
        }

    .tm-head-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

.aside__search input[type="search"] {
    -webkit-appearance: none;
    appearance: none;
}

    .aside__search input[type="search"]::-webkit-search-cancel-button,
    .aside__search input[type="search"]::-webkit-search-decoration {
        -webkit-appearance: none;
        display: none;
    }


/* Transaction status badges.
   Scoped to #tblTransactions so they can't change the colours of the activity log levels. */

#tblTransactions .log-level {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    border: 1px solid transparent;
}

    /* small status dot */
    #tblTransactions .log-level::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
    }

    /* Completed */
    #tblTransactions .log-level.success {
        color: #0f7a3d;
        background: #e7f6ee;
        border-color: #bfe6cf;
    }

    /* Waiting on us or the customer */
    #tblTransactions .log-level.pending {
        color: #8a6100;
        background: #fff6dd;
        border-color: #f3e0a2;
    }

    /* Sent to the provider, no answer yet */
    #tblTransactions .log-level.processing {
        color: #0b5cad;
        background: #e6f1fc;
        border-color: #b9d8f5;
    }

        #tblTransactions .log-level.processing::before {
            animation: txn-pulse 1.2s ease-in-out infinite;
        }

    /* Failed */
    #tblTransactions .log-level.failed {
        color: #b42318;
        background: #fdeceb;
        border-color: #f5c2be;
    }

    /* Money returned */
    #tblTransactions .log-level.reversed {
        color: #6b3fa0;
        background: #f1eafa;
        border-color: #d9c7ef;
    }

    /* Customer never approved / timed out */
    #tblTransactions .log-level.expired {
        color: #5f6b7a;
        background: #eef1f4;
        border-color: #d5dbe1;
    }

    /* Cancelled on purpose */
    #tblTransactions .log-level.cancelled {
        color: #6b7280;
        background: #f3f4f6;
        border-color: #e0e3e8;
        text-decoration: line-through;
        text-decoration-thickness: 1px;
    }

@keyframes txn-pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.25;
    }
}

@media (prefers-reduced-motion: reduce) {
    #tblTransactions .log-level.processing::before {
        animation: none;
    }
}

#tblTransactions th,
#tblTransactions td {
    white-space: nowrap !important;
    padding: 8px 12px !important;
    vertical-align: middle !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
}

#tblTransactions small {
    display: block;
    font-size: 11px !important;
    line-height: 1.2 !important;
}

#tblTransactions td.txn-amount,
#tblTransactions td.txn-net {
    font-size: 14px !important;
    font-variant-numeric: tabular-nums;
}

#tblTransactions td.txn-net {
    color: #0f7a3d;
}

/* ===== Toolbar ===== */
.txn-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 20px;
}

.txn-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid #d5dbe3;
    border-radius: 10px;
    background: #fff;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

    .txn-filter-btn:hover {
        border-color: #09000D;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
    }

.txn-filter-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #09000D;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

.txn-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.txn-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px 4px 10px;
    border-radius: 999px;
    background: #eef3ff;
    color: #2A2130;
    font-size: 12px;
    font-weight: 500;
}

.txn-chip-label {
    color: #5b6b8c;
    font-weight: 600;
}

.txn-chip-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 14px;
    cursor: pointer;
}

    .txn-chip-x:hover {
        background: rgba(37, 99, 235, .15);
    }

.txn-clear-all {
    border: 0;
    background: none;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

    .txn-clear-all:hover {
        color: #b42318;
    }

/* ===== Modal ===== */
.txn-modal .modal-content {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .25);
}

.txn-modal .modal-header {
    align-items: flex-start;
    padding: 22px 24px 14px;
    border-bottom: 1px solid #eef0f4;
}

.txn-modal .modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.txn-modal-sub {
    margin: 2px 0 0;
    font-size: 13px;
    color: #6b7280;
}

.txn-modal .modal-body {
    padding: 8px 24px 20px;
}

.txn-modal .modal-footer {
    justify-content: space-between;
    padding: 14px 24px 20px;
    border-top: 1px solid #eef0f4;
}

/* sections */
.txn-section {
    padding: 18px 0;
    border-bottom: 1px dashed #e5e8ee;
}

    .txn-section.mb-0 {
        border-bottom: 0;
        padding-bottom: 4px;
    }

.txn-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6b7280;
}

    .txn-section-title i {
        color: #09000D;
        font-size: 15px;
    }

/* fields */
.txn-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.txn-input.form-select,
.txn-input.form-control {
    height: 42px;
    border: 1px solid #d5dbe3;
    border-radius: 10px;
    font-size: 14px;
    color: #111827;
    background-color: #fff;
}

    .txn-input.form-select:focus,
    .txn-input.form-control:focus {
        border-color: #09000D;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
    }

.txn-input:disabled {
    background-color: #f3f4f6;
    color: #6b7280;
}

.txn-group .input-group-text {
    border: 1px solid #d5dbe3;
    border-right: 0;
    border-radius: 10px 0 0 10px;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
}

.txn-group .form-control {
    border-radius: 0 10px 10px 0;
}

/* validation: show the message only when the field is flagged */
.d-block-if-invalid {
    display: none;
}

.is-invalid ~ .d-block-if-invalid,
.input-group:has(.is-invalid) ~ .d-block-if-invalid {
    display: block;
}

.txn-input.is-invalid {
    border-color: #dc3545;
}

/* date presets */
.txn-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.txn-preset {
    padding: 5px 12px;
    border: 1px solid #d5dbe3;
    border-radius: 999px;
    background: #fff;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}

    .txn-preset:hover {
        border-color: #09000D;
        color: #09000D;
    }

    .txn-preset.active {
        border-color: #09000D;
        background: #09000D;
        color: #fff;
    }

/* buttons */
.txn-btn-primary {
    height: 42px;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    background: #09000D;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

    .txn-btn-primary:hover {
        background: #09000D;
        color: #fff;
    }

.txn-btn-ghost {
    height: 42px;
    padding: 0 14px;
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
}

    .txn-btn-ghost:hover {
        color: #111827;
    }

@media (max-width: 576px) {
    .txn-modal .modal-body {
        padding: 4px 16px 16px;
    }

    .txn-modal .modal-header,
    .txn-modal .modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.modal {
    z-index: 10055;
}
.dt-scroll-body thead{
    display: none;
}

.dt-scroll-body table{
    border-radius:0px 0px 10px 10px ;
}

/* ---- Sandbox guide on a sandbox account's Manage page (_SandboxGuide) ---- */
.sbx-guide { border-left: 4px solid #F59E0B; }
.sbx-guide-h { margin: 20px 0 6px; font-weight: 600; }
.sbx-guide-p { margin: 0 0 8px; font-size: 13px; }
.sbx-guide-muted { margin-top: 12px; color: #6B7280; }
.sbx-guide code { font-size: 12px; background: rgba(0,0,0,.05); padding: 1px 5px; border-radius: 4px; }
.sbx-guide-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sbx-guide-table th, .sbx-guide-table td { padding: 6px 8px; border-bottom: 1px solid #E5E7EB; text-align: left; vertical-align: top; }
.sbx-guide-table th { font-weight: 600; color: #6B7280; font-size: 12px; }
@media (max-width: 640px) { .sbx-guide-table { display: block; overflow-x: auto; } }
