:root {
    --asm-header: #18212f;
    --asm-surface: #ffffff;
    --asm-bg: #f4f6f9;
    --asm-text: #172033;
    --asm-muted: #687386;
    --asm-border: #d9dee8;
    --asm-bordo: #7a1f2b;
    --asm-green: #198754;
    --asm-gray: #6c757d;
    --asm-blue: #007bff;
    --asm-black: #000000;
    --asm-shadow: 0 8px 20px rgba(23, 32, 51, .08);
    --asm-sidebar-width: 216px;
}

.advanced-permissions-box {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
    background: #f8fafc;
}

.permission-group-card {
    height: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}

.permission-group-card .form-check {
    margin-bottom: 8px;
}

* {
    letter-spacing: 0;
}

body {
    font-family: Arial, "Noto Sans Hebrew", sans-serif;
    color: var(--asm-text);
    background: var(--asm-bg);
    min-height: 100vh;
}

.app-body {
    display: flex;
    flex-direction: column;
}

.app-header,
.app-footer {
    width: 100%;
    background: var(--asm-header);
    color: #fff;
}

.app-header .navbar {
    min-height: 68px;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
}

.navbar-brand-logo {
    width: auto;
    height: 40px;
    object-fit: contain;
    flex: 0 0 auto;
    border-radius: 6px;
    background: #fff;
    padding: 3px;
}

.app-header,
.app-main,
.app-footer,
.reminder-alert-strip {
    transition: margin-right .28s ease, width .28s ease;
}

.app-header .container-fluid {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-header .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    flex-grow: 1;
    justify-content: flex-end;
}

.app-header .navbar-toggler,
.app-header .navbar-nav {
    display: none !important;
}

.app-sidebar-toggle,
.app-sidebar-close {
    width: 44px;
    min-width: 44px;
    height: 40px;
    border: 0;
    border-radius: 7px;
    background: #111827;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(17, 24, 39, .18);
}

.app-sidebar-toggle {
    flex-direction: column;
    gap: 5px;
}

.app-sidebar-toggle span {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .18s ease, opacity .18s ease;
}

.app-sidebar-toggle:hover,
.app-sidebar-toggle:focus,
.app-sidebar-close:hover,
.app-sidebar-close:focus {
    background: var(--asm-blue);
    color: #fff;
}

.app-sidebar-open .app-sidebar-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.app-sidebar-open .app-sidebar-toggle span:nth-child(2) {
    opacity: 0;
}

.app-sidebar-open .app-sidebar-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.header-search-standalone {
    margin-inline-start: 2px;
    margin-inline-end: 0;
}

.header-notification-slot {
    margin-inline-start: 4px;
    margin-inline-end: auto;
}

.header-user-tools {
    margin-inline-start: auto;
}

.app-sidebar {
    position: fixed;
    inset-block: 0;
    right: 0;
    left: auto;
    width: var(--asm-sidebar-width);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    padding: 14px 12px;
    background: #121a27;
    color: #fff;
    border-left: 1px solid rgba(255, 255, 255, .08);
    box-shadow: -18px 0 38px rgba(15, 23, 42, .2);
    transform: translateX(108%);
    transition: transform .32s cubic-bezier(.22, 1, .36, 1), box-shadow .32s ease;
    will-change: transform;
}

.app-sidebar-open .app-sidebar {
    transform: translateX(0);
}

.app-sidebar-open-initial .app-sidebar {
    transform: translateX(0);
    transition: none;
}

.app-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.app-sidebar-title {
    font-size: .96rem;
    font-weight: 900;
}

.app-sidebar-subtitle {
    margin-top: 2px;
    color: rgba(255, 255, 255, .62);
    font-size: .82rem;
    font-weight: 700;
}

.app-sidebar-close {
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, .95);
    border-radius: 50%;
    background: #ffffff;
    color: #111827;
    font-size: .95rem;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
}

.app-sidebar-close:hover,
.app-sidebar-close:focus {
    background: #f8fafc;
    border-color: #ffffff;
    color: #000000;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .36);
    transform: translateY(-1px);
}

.app-sidebar-close i {
    color: #111827;
}

.app-sidebar-nav {
    display: grid;
    flex: 1 1 auto;
    align-content: start;
    grid-auto-rows: min-content;
    gap: 6px;
    overflow-y: auto;
    padding-bottom: 12px;
}

.app-sidebar-mobile-actions {
    display: none;
    gap: 8px;
    padding-top: 12px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.app-sidebar-link {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 6px;
    background: rgba(255, 255, 255, .11);
    color: rgba(255, 255, 255, .92);
    text-decoration: none;
    font-size: .92rem;
    font-weight: 800;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.app-sidebar-button {
    width: 100%;
    text-align: right;
}

.app-sidebar-link i {
    width: 20px;
    text-align: center;
    color: rgba(255, 255, 255, .8);
}

.app-sidebar-link:hover,
.app-sidebar-link:focus {
    background: rgba(0, 123, 255, .22);
    border-color: rgba(123, 178, 255, .55);
    color: #fff;
    transform: translateX(-2px);
}

.app-sidebar-link.active {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border-color: #87b7ff;
    color: #fff;
    box-shadow: 0 12px 24px rgba(13, 110, 253, .24);
}

.app-sidebar-link.active i {
    color: #fff;
}

.app-sidebar-logout {
    background: rgba(220, 53, 69, .18);
    border-color: rgba(255, 129, 143, .38);
}

.app-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1035;
    background: rgba(15, 23, 42, .42);
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s ease;
}

@media (min-width: 992px) {
    .app-sidebar-open-initial {
        overflow-x: hidden;
    }

    .app-sidebar-open {
        overflow-x: hidden;
    }

    .app-sidebar-open-initial .app-header,
    .app-sidebar-open-initial .app-footer,
    .app-sidebar-open .app-header,
    .app-sidebar-open .app-footer {
        width: auto;
        margin-right: var(--asm-sidebar-width);
    }

    .app-sidebar-open-initial .app-main,
    .app-sidebar-open-initial .reminder-alert-strip,
    .app-sidebar-open .app-main,
    .app-sidebar-open .reminder-alert-strip {
        margin-right: var(--asm-sidebar-width);
    }
}

@media (max-width: 991.98px) {
    .app-header .navbar {
        min-height: 64px;
    }

    .app-header .container-fluid {
        justify-content: space-between;
    }

    .app-header .navbar-collapse,
    .header-user-tools,
    .header-notification-slot,
    .header-search-standalone {
        display: none !important;
    }

    .navbar-brand {
        margin-inline-start: auto;
        font-size: 1rem;
        max-width: calc(100% - 58px);
        justify-content: flex-end;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .navbar-brand-logo {
        height: 34px;
    }

    .app-sidebar {
        width: min(82vw, 300px);
        padding-top: 16px;
    }

    .app-sidebar-mobile-actions {
        display: grid;
    }

    .app-sidebar-open .app-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .app-body.sidebar-mobile-locked {
        overflow: hidden;
    }
}

.app-header .navbar-nav {
    gap: 7px;
}

.app-header .navbar-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 6px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .9) !important;
    font-weight: 700;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.app-header .navbar-nav .nav-link i {
    margin: 0 !important;
    color: #fff;
}

.app-header .navbar-nav .nav-link:hover,
.app-header .navbar-nav .nav-link:focus {
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .28);
    color: #fff !important;
    transform: translateY(-1px);
}

.app-header .navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, .20);
    border-color: rgba(255, 255, 255, .44);
    color: #fff !important;
    box-shadow: inset 0 -3px 0 #fff, 0 7px 16px rgba(0, 0, 0, .16);
}

.app-header .navbar-nav .nav-link.active i {
    color: #fff;
}

.header-search-button {
    width: 38px;
    min-width: 38px;
    height: 38px;
    margin-inline: 8px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 6px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
}

.header-search-button:hover,
.header-search-button:focus {
    background: #000;
    border-color: #000;
    color: #fff;
}

.quick-search-modal-body {
    display: grid;
    gap: 12px;
}

.quick-search-box {
    position: relative;
}

.quick-search-box i {
    position: absolute;
    inset-inline-start: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa3b2;
    z-index: 1;
}

.quick-search-box .form-control {
    min-height: 44px;
    padding-inline-start: 38px;
    box-shadow: none;
}

.quick-search-results {
    display: none;
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid var(--asm-border);
    border-radius: 8px;
    background: #fff;
}

.quick-search-results.is-open {
    display: block;
}

.quick-search-item,
.quick-search-all,
.quick-search-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--asm-text);
    text-decoration: none;
    border-bottom: 1px solid var(--asm-border);
}

.quick-search-item:hover,
.quick-search-item:focus,
.quick-search-all:hover,
.quick-search-all:focus {
    background: #f4f6f9;
    color: var(--asm-text);
}

.quick-search-type {
    flex: 0 0 auto;
    min-width: 54px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #eef2f8;
    color: #405066;
    font-size: .78rem;
    font-weight: 800;
    text-align: center;
}

.quick-search-content {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.quick-search-content strong,
.quick-search-content small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-search-content small {
    color: var(--asm-muted);
}

.quick-search-all {
    justify-content: center;
    border-bottom: 0;
    font-weight: 800;
    color: var(--asm-blue);
}

.quick-search-empty {
    border-bottom: 0;
    color: var(--asm-muted);
}

.app-footer {
    margin-top: auto;
    padding: 18px 0;
    background: #eef2f8;
    border-top: 1px solid var(--asm-border);
    color: #687386;
}

.app-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-agency-credit {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-agency-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    flex: 0 0 46px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(23, 32, 51, .14);
    padding: 4px;
}

.footer-agency-text {
    color: #687386;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.5;
}

.footer-agency-text a {
    color: #687386;
    text-decoration: none;
    font-weight: 800;
}

.footer-agency-text a:hover,
.footer-agency-text a:focus {
    color: var(--asm-black);
    text-decoration: underline;
}

.footer-copyright {
    direction: ltr;
    color: #687386;
    font-size: .94rem;
    font-weight: 700;
    white-space: nowrap;
}

.footer-system-credit {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #687386;
    min-width: 0;
}

.footer-system-logo {
    width: 82px;
    height: 46px;
    object-fit: contain;
    flex: 0 0 82px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(23, 32, 51, .14);
    padding: 4px;
}

.footer-system-text {
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: left;
    white-space: nowrap;
}

.app-main {
    width: 90%;
    margin: 28px auto;
}

.page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.page-title-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.panel {
    background: var(--asm-surface);
    border: 1px solid var(--asm-border);
    border-radius: 8px;
    box-shadow: var(--asm-shadow);
}

.panel-body {
    padding: 20px;
}

.table {
    margin-bottom: 0;
    vertical-align: middle;
}

.table-responsive {
    overscroll-behavior-x: contain;
}

.heavy-table {
    min-width: 980px;
}

.leads-table {
    min-width: 1120px;
}

.reports-table,
.debts-table {
    min-width: 1040px;
}

.suppliers-table {
    min-width: 860px;
}

.billing-table {
    min-width: 1080px;
}

.payme-checkout-shell {
    display: grid;
    gap: 16px;
}

.payme-order-summary .panel-body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px;
}

.payme-summary-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #e8f0ff;
    color: var(--asm-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.payme-summary-amount {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.payme-frame-panel {
    overflow: hidden;
}

.payme-frame {
    width: 100%;
    min-height: 720px;
    border: 0;
    display: block;
    background: #fff;
}

.table thead th {
    color: var(--asm-muted);
    font-size: .86rem;
    font-weight: 700;
    border-bottom: 1px solid var(--asm-border);
    white-space: nowrap;
}

.lead-select-col {
    width: 44px;
}

.badge-status {
    background: #e8f0ff;
    color: #0a58ca;
    border: 1px solid #cfe0ff;
    font-weight: 700;
}

.status-color-badge {
    --status-color: #0d6efd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--status-color) 16%, #fff);
    border: 1px solid color-mix(in srgb, var(--status-color) 42%, #fff);
    color: color-mix(in srgb, var(--status-color) 72%, #111827);
    font-size: .82rem;
    font-weight: 800;
    white-space: nowrap;
}

.status-color-swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-block;
    margin-inline-end: 8px;
    border: 1px solid rgba(0, 0, 0, .12);
    vertical-align: middle;
}

.reminder-alert-strip {
    width: 100%;
    padding: 9px 0;
    background: #fff8e5;
    border-bottom: 1px solid #ffe1a6;
    color: #745000;
    font-weight: 800;
}

.reminder-alert-strip a {
    color: #7a1f2b;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-stat-card {
    min-height: 126px;
    padding: 18px;
    border: 1px solid var(--asm-border);
    border-radius: 8px;
    background: #fff;
    color: var(--asm-text);
    text-decoration: none;
    box-shadow: var(--asm-shadow);
    display: grid;
    align-content: space-between;
    gap: 10px;
}

.dashboard-stat-card i {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #e8f0ff;
    color: var(--asm-blue);
}

.dashboard-stat-card span {
    color: var(--asm-muted);
    font-weight: 800;
    font-size: .9rem;
}

.dashboard-stat-card strong {
    font-size: 1.8rem;
    line-height: 1;
}

.dashboard-stat-card:hover,
.dashboard-stat-card:focus {
    color: var(--asm-text);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(23, 32, 51, .13);
}

.health-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.health-summary-card {
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.health-summary-card span {
    color: var(--asm-muted);
    font-weight: 800;
}

.health-summary-card strong {
    font-size: 2rem;
    line-height: 1;
}

.dashboard-stat-danger i {
    background: #ffe4ea;
    color: #c92a3a;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.section-title-row a {
    color: var(--asm-blue);
    font-weight: 800;
    text-decoration: none;
}

.dashboard-list {
    display: grid;
    gap: 10px;
}

.dashboard-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--asm-border);
    border-radius: 8px;
    background: #fbfcfe;
    padding: 12px;
}

.dashboard-list-item.is-overdue {
    background: #fff3f5;
    border-color: #ffd2db;
}

.dashboard-status-list {
    display: grid;
    gap: 8px;
}

.dashboard-status-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--asm-border);
}

.dashboard-status-list > div:last-child {
    border-bottom: 0;
}

.chart-card .panel-body {
    min-height: 310px;
}

.chart-box {
    position: relative;
    height: 230px;
}

.chart-box.is-small {
    height: 190px;
}

.api-credentials-panel .form-control {
    font-weight: 700;
}

.api-access-state {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid var(--asm-border);
    background: #fbfcfe;
}

.api-access-state i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.api-access-state.is-enabled i {
    background: #e8f7ef;
    color: var(--asm-green);
}

.api-access-state.is-disabled i {
    background: #fff3f5;
    color: var(--asm-bordo);
}

.api-access-state strong,
.api-access-state span {
    display: block;
}

.api-access-state span {
    color: var(--asm-muted);
    font-weight: 700;
}

.api-key-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.btn-copy-action {
    background: #8cc63f;
    border-color: #8cc63f;
    color: #fff;
    font-weight: 800;
}

.btn-copy-action i {
    color: #fff;
}

.btn-copy-action:hover,
.btn-copy-action:focus {
    background: #000;
    border-color: #000;
    color: #fff;
}

.api-doc-tree .accordion-item {
    border: 1px solid var(--asm-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--asm-shadow);
}

.api-doc-tree .accordion-item + .accordion-item {
    margin-top: 10px;
}

.api-doc-tree .accordion-button {
    gap: 10px;
    font-weight: 800;
}

.api-doc-tree .accordion-button i {
    color: var(--asm-blue);
}

.api-endpoint-line {
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid var(--asm-border);
    border-radius: 8px;
    background: #f4f6f9;
    font-weight: 800;
}

.api-code-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.api-code-title {
    margin-bottom: 6px;
    color: var(--asm-muted);
    font-weight: 800;
}

.api-doc-tree pre {
    margin: 0;
    padding: 14px;
    border-radius: 8px;
    background: #111827;
    color: #f8fafc;
    overflow-x: auto;
}

.api-copy-code {
    position: relative;
}

.api-copy-code pre {
    padding-right: 48px;
}

.api-copy-code-button {
    position: absolute;
    top: 8px;
    right: 8px;
    left: auto;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 6px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.api-copy-code-button:hover,
.api-copy-code-button:focus {
    background: #8cc63f;
    border-color: #8cc63f;
    color: #fff;
}

.api-tools-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: 12px;
}

.api-tool-box {
    border: 1px solid var(--asm-border);
    border-radius: 8px;
    background: #fff;
    padding: 14px;
}

.api-current-ip,
.api-rate-note {
    color: var(--asm-muted);
    font-size: .82rem;
    font-weight: 700;
}

.api-test-result {
    min-height: 120px;
    max-height: 320px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    border-radius: 8px;
    background: #111827;
    color: #f8fafc;
    padding: 12px;
    font-family: Consolas, Monaco, monospace;
    font-size: .88rem;
}

.api-doc-tree code {
    color: inherit;
}

.api-sample-tabs .nav-tabs {
    border-bottom-color: var(--asm-border);
}

.api-sample-tabs .nav-link {
    color: var(--asm-muted);
    font-weight: 800;
}

.api-sample-tabs .nav-link.active {
    color: var(--asm-text);
}

.api-sample-tabs .tab-content {
    padding-top: 10px;
}

.api-field-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: 12px;
    border: 1px solid var(--asm-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--asm-border);
}

.api-field-list div {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
}

.api-field-list div > code {
    color: var(--asm-text);
    font-weight: 800;
}

.api-field-list span {
    color: var(--asm-muted);
    font-weight: 600;
}

[data-impersonate-user-row] {
    cursor: pointer;
}

.impersonate-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    direction: ltr;
}

.impersonate-modal-footer .btn-close-action {
    order: 1;
    direction: rtl;
}

.impersonate-modal-footer .btn-impersonate-action {
    order: 2;
    margin-left: auto;
    direction: rtl;
}

@media (max-width: 575.98px) {
    .impersonate-modal-footer {
        flex-wrap: nowrap;
    }

    .impersonate-modal-footer .btn {
        flex: 1 1 0;
        min-width: 0;
        padding-inline: 8px;
        white-space: nowrap;
    }

    .impersonate-submit-label {
        font-size: 0;
    }

    .impersonate-submit-label::after {
        content: 'התחבר בשם';
        font-size: 14px;
    }
}

.system-error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #f4f6fb;
}

.system-error-card {
    width: min(100%, 560px);
    border: 1px solid var(--asm-border);
    border-radius: 8px;
    background: #fff;
    padding: 28px;
    text-align: center;
    box-shadow: var(--asm-shadow);
}

.system-error-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #ffe4ea;
    color: var(--asm-bordo);
    font-size: 1.5rem;
    margin-bottom: 14px;
}

.system-error-card h1 {
    font-size: 1.55rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.system-error-card p {
    color: var(--asm-muted);
    margin-bottom: 14px;
}

.system-error-details {
    max-height: 130px;
    overflow: auto;
    margin-bottom: 18px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid var(--asm-border);
    color: #4b5563;
    padding: 10px 12px;
    text-align: left;
    font-size: .9rem;
}

.log-action-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .82rem;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
}

.log-user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.log-user-avatar {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    border-radius: 8px;
    background: #eef2f8;
    color: #405066;
}

.log-object-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f4f6f9;
    border: 1px solid var(--asm-border);
    color: #405066;
    font-weight: 700;
    white-space: nowrap;
}

.log-description {
    max-width: 520px;
    white-space: normal;
    line-height: 1.45;
}

.log-action-info {
    background: #d9f4ff;
    color: #00709c;
}

.log-action-error {
    background: #ffe4ea;
    color: #c92a3a;
}

.log-action-success {
    background: #def7e8;
    color: #087443;
}

.log-action-warning {
    background: #fff1cf;
    color: #9a6500;
}

.btn-action,
.btn-save-action,
.btn-close-action,
.btn-info-action,
.btn-excel-action,
.btn-impersonate-action,
.btn-delete-action,
.btn-danger-action {
    min-height: 38px;
    border: 0;
    border-radius: 6px;
    color: #fff !important;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 12px;
    box-shadow: 0 6px 14px rgba(23, 32, 51, .15);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn-action:hover,
.btn-action:focus,
.btn-action:active,
.btn-save-action:hover,
.btn-save-action:focus,
.btn-save-action:active,
.btn-close-action:hover,
.btn-close-action:focus,
.btn-close-action:active,
.btn-info-action:hover,
.btn-info-action:focus,
.btn-info-action:active,
.btn-excel-action:hover,
.btn-excel-action:focus,
.btn-excel-action:active,
.btn-impersonate-action:hover,
.btn-impersonate-action:focus,
.btn-impersonate-action:active,
.btn-delete-action:hover,
.btn-delete-action:focus,
.btn-delete-action:active,
.btn-danger-action:hover,
.btn-danger-action:focus,
.btn-danger-action:active {
    background: var(--asm-black) !important;
    border-color: var(--asm-black) !important;
    color: #fff !important;
    font-weight: 700;
    transform: translateY(-1px);
    filter: none;
    box-shadow: 0 9px 18px rgba(23, 32, 51, .2);
}

.btn-action:hover i,
.btn-action:focus i,
.btn-action:active i,
.btn-save-action:hover i,
.btn-save-action:focus i,
.btn-save-action:active i,
.btn-close-action:hover i,
.btn-close-action:focus i,
.btn-close-action:active i,
.btn-info-action:hover i,
.btn-info-action:focus i,
.btn-info-action:active i,
.btn-excel-action:hover i,
.btn-excel-action:focus i,
.btn-excel-action:active i,
.btn-impersonate-action:hover i,
.btn-impersonate-action:focus i,
.btn-impersonate-action:active i,
.btn-delete-action:hover i,
.btn-delete-action:focus i,
.btn-delete-action:active i,
.btn-danger-action:hover i,
.btn-danger-action:focus i,
.btn-danger-action:active i {
    color: #fff !important;
}

.btn-icon-only {
    width: 38px;
    padding: 8px;
}

.btn-delete-action {
    background: var(--asm-bordo);
    color: #fff !important;
}

.btn-delete-action i {
    color: #fff !important;
}

.btn-edit-action {
    background: var(--asm-green);
}

.btn-info-action {
    background: var(--asm-gray);
    color: #fff !important;
}

.btn-info-action i {
    color: #fff !important;
}

.btn-excel-action {
    background: #198754;
    color: #fff !important;
}

.btn-excel-action i {
    color: #fff !important;
}

.btn-impersonate-action {
    background: #fd7e14;
    color: #fff !important;
}

.btn-impersonate-action i {
    color: #fff !important;
}

.btn-save-action {
    background: var(--asm-blue);
}

.btn-close-action {
    background: var(--asm-black);
}

.btn-danger-action {
    background: #dc3545;
}

.btn-limit-disabled,
.btn-limit-disabled:hover,
.btn-limit-disabled:focus,
.btn-limit-disabled:active {
    background: var(--asm-gray) !important;
    cursor: not-allowed;
    opacity: .82;
    transform: none;
}

.account-menu-toggle {
    min-height: 34px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 7px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-weight: 700;
}

.account-menu-toggle:hover,
.account-menu-toggle:focus {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.account-dropdown {
    width: 300px;
    border: 1px solid var(--asm-border);
    border-radius: 10px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, .18);
    padding: 10px;
}

.account-dropdown-header,
.account-plan-block {
    padding: 4px 6px;
}

.account-plan-badge {
    background: #eaf4ff;
    color: #0b5ea8;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: .78rem;
    font-weight: 700;
}

.account-usage-row {
    font-size: .82rem;
    margin-top: 9px;
}

.account-usage-bar {
    height: 6px;
    margin-top: 5px;
    border-radius: 999px;
    background: #edf1f7;
    overflow: hidden;
}

.account-usage-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #111827;
}

.quota-usage-row {
    margin-top: 0;
    font-size: .9rem;
}

.quota-panel .account-usage-bar {
    height: 8px;
}

.account-dropdown .dropdown-item {
    border-radius: 7px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
}

.notification-menu-toggle {
    position: relative;
    min-width: 38px;
    justify-content: center;
}

.notification-count-badge {
    position: absolute;
    top: -7px;
    inset-inline-start: -7px;
    min-width: 19px;
    height: 19px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #c92a3a;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    border: 2px solid #111827;
}

.notification-dropdown {
    width: 360px;
    max-width: calc(100vw - 24px);
    border: 1px solid var(--asm-border);
    border-radius: 10px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, .18);
    padding: 10px;
}

.notification-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 6px 8px;
    border-bottom: 1px solid var(--asm-border);
    margin-bottom: 6px;
}

.notification-dropdown-header a {
    color: var(--asm-blue);
    font-weight: 800;
    text-decoration: none;
}

.notification-dropdown-item {
    display: grid;
    gap: 3px;
    padding: 10px 8px;
    border-radius: 8px;
    color: var(--asm-text);
    text-decoration: none;
    border: 1px solid transparent;
}

.notification-dropdown-item:hover,
.notification-dropdown-item:focus {
    background: #f5f8fc;
    color: var(--asm-text);
}

.notification-dropdown-item.is-unread {
    background: #fff8e5;
    border-color: #ffe1a6;
}

.notification-dropdown-item span {
    font-weight: 800;
}

.notification-dropdown-item small {
    color: var(--asm-muted);
    line-height: 1.35;
}

.notification-dropdown-item em,
.notification-empty {
    color: var(--asm-muted);
    font-size: .78rem;
    font-style: normal;
}

.notification-empty {
    padding: 12px 8px;
}

.system-health-line {
    min-height: 76px;
    border: 1px solid var(--asm-border);
    border-radius: 8px;
    background: #fbfcfe;
    padding: 13px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.system-health-line i {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #e8f0ff;
    color: var(--asm-blue);
}

.system-health-line.is-error {
    background: #fff3f5;
    border-color: #ffd2db;
}

.system-health-line.is-warning {
    background: #fff8e5;
    border-color: #ffe1a6;
}

.system-health-line.is-error i {
    background: #ffe4ea;
    color: #c92a3a;
}

.system-health-line.is-warning i {
    background: #fff1cf;
    color: #9a6500;
}

.system-health-line > span {
    font-weight: 800;
    color: var(--asm-muted);
    white-space: nowrap;
}

.subscription-current-panel {
    overflow: hidden;
}

.subscription-current-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(190px, .62fr) minmax(190px, .58fr);
    min-height: 154px;
}

.subscription-current-main,
.subscription-price-box,
.subscription-current-action {
    padding: 22px;
}

.subscription-current-main,
.subscription-price-box {
    border-inline-end: 1px solid var(--asm-border);
}

.subscription-current-main {
    display: grid;
    align-content: center;
    gap: 12px;
}

.subscription-kicker {
    color: var(--asm-muted);
    font-size: .84rem;
    font-weight: 800;
}

.subscription-current-title {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.subscription-current-title h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.subscription-current-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 8px;
    background: #e8f0ff;
    color: var(--asm-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.subscription-current-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.subscription-plan-key,
.subscription-state-badge,
.subscription-current-pill {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: .8rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.subscription-plan-key {
    background: #eef2f8;
    color: #405066;
}

.subscription-state-badge {
    border: 1px solid var(--asm-border);
    background: #fff;
    color: var(--asm-muted);
}

.subscription-state-badge.is-active,
.subscription-current-pill {
    background: #def7e8;
    border-color: #b8ebce;
    color: #087443;
}

.subscription-state-badge.is-manual {
    background: #fff1cf;
    border-color: #ffe1a6;
    color: #8a5c00;
}

.subscription-price-box {
    display: grid;
    align-content: center;
    gap: 4px;
    background: #fbfcfe;
}

.subscription-price-box span,
.subscription-price-box small {
    color: var(--asm-muted);
    font-weight: 800;
}

.subscription-price-box strong {
    color: var(--asm-text);
    font-size: 2rem;
    line-height: 1.05;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.subscription-current-action {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.subscription-current-action form,
.subscription-current-action .btn {
    width: 100%;
}

.subscription-current-action .btn {
    min-height: 44px;
}

.subscription-current-note {
    color: var(--asm-muted);
    font-size: .9rem;
    font-weight: 800;
    text-align: center;
}

.subscription-usage-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid var(--asm-border);
    background: #fbfcfe;
}

.subscription-usage-cell,
.subscription-feature-cell {
    min-height: 82px;
    padding: 14px 18px;
    border-inline-end: 1px solid var(--asm-border);
    display: grid;
    align-content: center;
    gap: 10px;
}

.subscription-usage-cell:last-child,
.subscription-feature-cell:last-child {
    border-inline-end: 0;
}

.subscription-usage-top,
.subscription-feature-cell {
    min-width: 0;
}

.subscription-usage-top {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 4px 8px;
    align-items: center;
}

.subscription-usage-top i,
.subscription-feature-cell i {
    color: var(--asm-blue);
}

.subscription-usage-top span,
.subscription-feature-cell span {
    color: var(--asm-muted);
    font-size: .86rem;
    font-weight: 800;
}

.subscription-usage-top strong {
    grid-column: 2;
    color: var(--asm-text);
    font-size: .95rem;
    overflow-wrap: anywhere;
}

.subscription-usage-bar {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f7;
}

.subscription-usage-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #172033;
}

.subscription-feature-cell {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
}

.subscription-feature-cell strong {
    font-size: .9rem;
    font-weight: 800;
    white-space: nowrap;
}

.subscription-feature-cell.is-enabled strong {
    color: #087443;
}

.subscription-feature-cell.is-disabled strong {
    color: #8b1e2d;
}

.subscription-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.subscription-section-heading h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
}

.subscription-section-heading span {
    color: var(--asm-muted);
    font-size: .9rem;
    font-weight: 700;
}

.subscription-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 14px;
}

.subscription-plan-card {
    min-height: 100%;
    padding: 18px;
    border: 1px solid var(--asm-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--asm-shadow);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.subscription-plan-card.is-current {
    border-color: #111827;
    box-shadow: inset 0 4px 0 #111827, var(--asm-shadow);
}

.subscription-plan-head {
    min-height: 50px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.subscription-plan-head h3 {
    margin: 0 0 7px;
    font-size: 1.08rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.subscription-plan-price {
    display: grid;
    grid-template-columns: auto auto;
    align-items: baseline;
    justify-content: start;
    gap: 6px;
}

.subscription-plan-price strong {
    font-size: 1.65rem;
    line-height: 1;
    font-weight: 800;
}

.subscription-plan-price span {
    color: var(--asm-muted);
    font-weight: 800;
}

.subscription-plan-discount {
    grid-column: 1 / -1;
    color: #087443;
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.35;
}

.subscription-plan-features {
    display: grid;
    gap: 0;
    margin-bottom: 4px;
}

.subscription-plan-features div {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    border-bottom: 1px solid #edf1f7;
}

.subscription-plan-features div:last-child {
    border-bottom: 0;
}

.subscription-plan-features i {
    color: #405066;
}

.subscription-plan-features span {
    color: var(--asm-muted);
    font-size: .88rem;
    font-weight: 600;
}

.subscription-plan-features strong {
    color: var(--asm-text);
    font-size: .9rem;
    font-weight: 600;
    text-align: left;
    overflow-wrap: anywhere;
}

.feature-state,
.subscription-feature-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.feature-state i,
.subscription-feature-state i {
    font-size: 1.05rem;
}

.feature-state.is-enabled,
.subscription-feature-state.is-enabled {
    color: #087443;
}

.feature-state.is-disabled,
.subscription-feature-state.is-disabled {
    color: #8b1e2d;
}

.feature-state i,
.subscription-plan-features .subscription-feature-state i {
    color: currentColor;
}

.plan-change-limit-summary {
    text-align: right;
}

.plan-change-limit-summary p {
    margin: 0 0 12px;
}

.plan-change-limit-summary table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

.plan-change-limit-summary th,
.plan-change-limit-summary td {
    padding: 8px;
    border-bottom: 1px solid #edf1f7;
}

.plan-change-limit-summary th {
    color: var(--asm-muted);
    font-weight: 700;
}

.plan-change-limit-summary .is-ok i {
    color: #087443;
}

.plan-change-limit-summary .is-overflow {
    color: #8b1e2d;
}

.limit-warning,
.limit-ok {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    font-weight: 700;
}

.limit-warning {
    background: #fff1f2;
    color: #8b1e2d;
}

.limit-ok {
    background: #def7e8;
    color: #087443;
}

.subscription-plan-action {
    margin-top: auto;
}

.subscription-current-plan-label {
    min-height: 42px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #b8ebce;
    border-radius: 6px;
    background: #def7e8;
    color: #087443;
    font-weight: 800;
}

.subscription-current-plan-label i {
    color: #087443;
}

.form-control,
.form-select {
    border-color: var(--asm-border);
    min-height: 42px;
}

.filter-row .form-label {
    font-size: .86rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.filter-row .form-control,
.filter-row .form-select,
.filter-row .btn-save-action {
    min-height: 40px;
}

.filter-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.filter-clear-link {
    min-height: 40px;
    border: 1px solid var(--asm-border);
    border-radius: 6px;
    background: #fff;
    color: var(--asm-text);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 11px;
    text-decoration: none;
}

.filter-clear-link:hover,
.filter-clear-link:focus {
    background: var(--asm-black);
    color: #fff;
    border-color: var(--asm-black);
}

.lead-bulk-toolbar .panel-body {
    padding: 14px;
}

.lead-bulk-grid {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) minmax(170px, 1fr) minmax(190px, 1fr) minmax(190px, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.lead-bulk-grid .form-label {
    font-size: .86rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.lead-bulk-submit {
    display: flex;
    align-items: end;
}

.lead-bulk-submit .btn {
    min-height: 42px;
    white-space: nowrap;
}

.report-action-stack .btn-icon-only {
    width: 36px;
    height: 36px;
}

@media (min-width: 992px) {
    .reminders-filter-row {
        display: grid;
        grid-template-columns:
            minmax(138px, 1.3fr)
            minmax(128px, 1.05fr)
            minmax(116px, .9fr)
            minmax(108px, .78fr)
            minmax(108px, .72fr)
            minmax(108px, .72fr)
            minmax(126px, .86fr);
        align-items: end;
    }

    .reminders-filter-row > * {
        width: auto !important;
        max-width: none;
    }

    .reminders-filter-row .form-control,
    .reminders-filter-row .form-select,
    .reminders-filter-row .btn-save-action,
    .reminders-filter-row .filter-clear-link {
        min-height: 38px;
        padding-inline: 8px;
        font-size: .92rem;
    }

    .reminders-filter-row .filter-actions {
        gap: 6px;
    }
}

.pagination-wrap {
    margin: 10px 0 4px;
}

.pagination-wrap .pagination {
    gap: 6px;
}

.pagination-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 16px 0 8px;
    color: var(--asm-muted);
    font-size: .9rem;
    font-weight: 700;
}

.pagination-summary span {
    color: var(--asm-text);
}

.billing-summary-grid .h4 {
    overflow-wrap: anywhere;
}

.panel-footer-note {
    border-top: 1px solid var(--asm-border);
    color: var(--asm-muted);
    font-size: .9rem;
    font-weight: 700;
    padding: 12px 16px;
    background: #fbfcfe;
}

.pagination-wrap .page-link {
    min-width: 38px;
    border: 1px solid var(--asm-border);
    border-radius: 6px;
    color: var(--asm-text);
    font-weight: 700;
    text-align: center;
    box-shadow: 0 5px 12px rgba(23, 32, 51, .07);
}

.pagination-wrap .page-link:hover,
.pagination-wrap .page-link:focus {
    background: var(--asm-black);
    border-color: var(--asm-black);
    color: #fff;
}

.pagination-wrap .page-item.active .page-link {
    background: var(--asm-black);
    border-color: var(--asm-black);
    color: #fff;
}

.pagination-wrap .page-item.disabled .page-link {
    color: #9aa3b2;
    background: #eef2f8;
    box-shadow: none;
}

.report-stat-card {
    padding: 18px;
}

.report-stat-number {
    margin-top: 8px;
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
}

.report-insights-grid .panel-body {
    min-height: 100%;
}

.mini-bar-list {
    display: grid;
    gap: 12px;
}

.mini-bar-item {
    display: grid;
    gap: 7px;
}

.mini-bar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.mini-bar-top > span,
.mini-bar-top > div {
    min-width: 0;
}

.mini-bar-top strong {
    flex: 0 0 auto;
    font-size: .95rem;
}

.mini-bar-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef2f8;
}

.mini-bar-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #172033, #405066);
}

.mini-bar-top .report-supplier-cell {
    flex: 1 1 auto;
    min-width: 0;
}

.mini-bar-top .supplier-logo-thumb,
.mini-bar-top .supplier-logo-empty {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
}

.report-supplier-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}

.report-status-badge {
    background: #eef2f8;
    border: 1px solid var(--asm-border);
    color: var(--asm-text);
    font-weight: 400;
}

.report-amount {
    white-space: nowrap;
    font-weight: 400;
}

.settings-fieldset {
    height: 100%;
    padding: 18px;
    border: 1px solid var(--asm-border);
    border-radius: 8px;
    background: #fbfcfe;
}

.settings-fieldset-title {
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--asm-border);
    font-size: 1rem;
    font-weight: 800;
    color: var(--asm-text);
}

.settings-action-cell {
    display: flex;
    align-items: flex-start;
    padding-top: 31px;
}

.settings-action-button {
    min-width: 142px;
}

.settings-status-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--asm-border);
    border-radius: 8px;
    background: #fff;
}

.settings-status-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.settings-status-option .form-check-input {
    margin: 0;
}

.settings-payme-sandbox-panel {
    display: grid;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--asm-border);
    border-radius: 8px;
    background: #fff;
}

.settings-payme-sandbox-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: var(--asm-text);
}

.settings-payme-sandbox-title i {
    color: #1d9a6c;
}

.settings-payme-sandbox-note {
    margin-top: 4px;
    color: var(--asm-muted);
    font-size: .9rem;
}

.settings-payme-test-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.settings-payme-test-card {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--asm-border);
    border-radius: 8px;
    background: #fbfcfe;
}

.settings-payme-test-card-title {
    font-weight: 800;
    color: var(--asm-text);
}

.settings-payme-test-card-number {
    font-family: var(--bs-font-monospace);
    font-size: 1rem;
    font-weight: 800;
    color: #0b4f7a;
    word-break: break-all;
}

.settings-payme-test-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.settings-payme-test-card-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #edf4fb;
    color: var(--asm-text);
    font-size: .82rem;
    font-weight: 700;
}

.settings-payme-test-card-note {
    color: #405066;
    font-size: .85rem;
    font-weight: 600;
}

.settings-payme-test-action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.settings-payme-test-action .btn-info-action,
.settings-payme-test-action .btn-info-action i {
    color: #fff !important;
}

.settings-payme-test-action .btn-info-action:disabled,
.settings-payme-test-action .btn-info-action.disabled {
    background: #5f6f85 !important;
    color: #fff !important;
    opacity: 1;
    box-shadow: 0 4px 10px rgba(23, 32, 51, .16);
    cursor: not-allowed;
}

.settings-payme-test-action .btn-info-action:disabled i,
.settings-payme-test-action .btn-info-action.disabled i {
    color: #fff !important;
}

.settings-payme-test-action .form-text {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #f0d98b;
    border-radius: 8px;
    background: #fff8df;
    color: #6f4b00;
    font-weight: 700;
}

.settings-logo-preview {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--asm-border);
    border-radius: 8px;
    background: #fff;
    color: var(--asm-muted);
    font-weight: 700;
}

.settings-logo-preview.is-empty {
    border-style: dashed;
    color: #9aa3b2;
}

.settings-logo-preview img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--asm-border);
    padding: 4px;
}

.password-generator-group .form-control {
    min-height: 42px;
}

.btn-password-generate,
.btn-password-tool {
    min-width: 44px;
    border: 0;
    color: #fff !important;
    font-weight: 700;
    box-shadow: none;
}

.btn-password-generate:hover,
.btn-password-generate:focus,
.btn-password-tool:hover,
.btn-password-tool:focus {
    background: var(--asm-black);
    color: #fff !important;
}

.password-strength-meter {
    height: 8px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef2f8;
}

.password-strength-meter span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #c92a3a;
    transition: width .18s ease, background .18s ease;
}

.password-strength-meter.is-weak span {
    width: 25%;
    background: #c92a3a;
}

.password-strength-meter.is-medium span {
    width: 50%;
    background: #fd7e14;
}

.password-strength-meter.is-strong span {
    width: 75%;
    background: #0d6efd;
}

.password-strength-meter.is-very-strong span {
    width: 100%;
    background: #198754;
}

.password-strength-label {
    margin-top: 5px;
}

.duplicate-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff1cf;
    color: #9a6500;
    font-weight: 800;
}

.duplicate-supplier-list {
    display: grid;
    gap: 10px;
}

.duplicate-supplier-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--asm-border);
    border-radius: 8px;
    background: #fbfcfe;
}

.duplicate-supplier-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.lead-supplier-history-list {
    display: grid;
    gap: 10px;
}

.lead-supplier-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--asm-border);
    border-radius: 8px;
    background: #fbfcfe;
}

.modal-content {
    border-radius: 8px;
    border: 0;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 32px);
    overflow: hidden;
}

.modal-content > form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: inherit;
}

.modal-header {
    position: relative;
    flex: 0 0 auto;
    min-height: 58px;
    padding: 16px 20px 16px 56px;
    background: #f7f9fc;
    border-bottom-color: var(--asm-border);
}

.modal-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.modal-footer {
    flex: 0 0 auto;
    background: #fff;
    border-top-color: var(--asm-border);
    box-shadow: 0 -8px 18px rgba(23, 32, 51, .06);
    z-index: 2;
}

.modal-header .modal-title {
    margin: 0;
    text-align: right;
}

.modal-header .btn-close {
    position: absolute;
    left: 18px;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 !important;
}

body.supplier-landing-modal-open #leadModal.show .modal-content {
    filter: brightness(.78);
    transform: scale(.985);
}

#supplierLandingPagesModal {
    z-index: 1070;
}

#supplierLandingPagesModal .modal-dialog {
    filter: drop-shadow(0 28px 54px rgba(0, 0, 0, .38));
}

#supplierLandingPagesModal .modal-content {
    border: 2px solid var(--asm-black);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .45);
}

#supplierLandingPagesModal .modal-header {
    background: var(--asm-black);
    color: #fff;
}

#supplierLandingPagesModal .modal-header .btn-close {
    filter: invert(1) grayscale(100%);
    opacity: 1;
}

.btn-help-action {
    min-height: 30px;
    border: 1px solid #b9dcff;
    border-radius: 6px;
    background: #eaf4ff;
    color: #0a58ca;
    font-size: .82rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 10px;
}

.btn-help-action i {
    color: #b42318;
}

.btn-help-action:hover,
.btn-help-action:focus {
    background: var(--asm-black);
    border-color: var(--asm-black);
    color: #fff;
}

.btn-help-action:hover i,
.btn-help-action:focus i {
    color: #fff;
}

.permissions-table {
    margin-bottom: 0;
}

.permissions-table thead th {
    background: #eef1f5;
    color: #687386;
    text-align: center;
}

.permissions-table thead th:first-child,
.permissions-table tbody td:first-child {
    text-align: right;
}

.permissions-table td {
    text-align: center;
    border-color: var(--asm-border);
    color: #2e3440;
}

.permission-yes {
    color: #2e7d32;
    font-weight: 800;
}

.permission-no {
    color: #b8bec9;
}

.supplier-logo-thumb,
.supplier-logo-preview img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--asm-border);
    box-shadow: 0 5px 12px rgba(23, 32, 51, .08);
    padding: 4px;
}

.supplier-logo-empty {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px dashed var(--asm-border);
    color: #9aa3b2;
    background: #f7f9fc;
}

.supplier-logo-preview {
    min-height: 48px;
    display: flex;
    align-items: center;
}

.supplier-landing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 10px;
}

.supplier-landing-list {
    display: grid;
    gap: 10px;
}

.supplier-landing-row {
    border: 1px solid var(--asm-border);
    border-radius: 8px;
    background: #fbfcfe;
    padding: 12px;
}

.supplier-landing-row .form-label {
    font-size: .84rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.supplier-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}

.supplier-check-item {
    border: 1px solid var(--asm-border);
    border-radius: 8px;
    padding: 10px 12px;
    background: #fbfcfe;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-height: 46px;
    margin: 0;
}

.supplier-check-item.form-check {
    padding-inline-start: 12px;
    padding-inline-end: 12px;
}

.supplier-check-item .form-check-input {
    float: none;
    flex: 0 0 auto;
    margin: 0;
}

.supplier-check-item .form-check-label {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    flex: 1 1 auto;
    font-weight: 700;
    line-height: 1.25;
}

.supplier-check-content {
    display: grid;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.supplier-check-top {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.supplier-landing-select {
    min-height: 34px;
    font-size: .82rem;
}

.supplier-landing-open-btn {
    width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    border: 1px solid #cfe0ff;
    border-radius: 6px;
    background: #eaf4ff;
    color: #0a58ca;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.supplier-landing-open-btn:hover,
.supplier-landing-open-btn:focus {
    background: var(--asm-black);
    border-color: var(--asm-black);
    color: #fff;
}

.supplier-landing-link-list {
    display: grid;
    gap: 10px;
}

.supplier-landing-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--asm-border);
    border-radius: 8px;
    background: #fbfcfe;
}

.lead-supplier-history-table {
    border: 1px solid var(--asm-border);
    border-radius: 8px;
    overflow: hidden;
}

.lead-supplier-history-table .table > :not(caption) > * > * {
    padding: 10px 12px;
}

.lead-supplier-history-table thead th {
    background: #f3f6fa;
    color: var(--asm-muted);
    font-size: .82rem;
    font-weight: 800;
    white-space: nowrap;
}

.lead-history-landing-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0a58ca;
    font-weight: 800;
    text-decoration: none;
}

.lead-history-landing-link:hover,
.lead-history-landing-link:focus {
    color: var(--asm-black);
}

.supplier-logo-mini {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 5px;
    background: #fff;
    border: 1px solid var(--asm-border);
    padding: 2px;
    flex: 0 0 auto;
}

.auth-body {
    min-height: 100vh;
    background: #111827;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    direction: ltr;
}

.auth-visual {
    flex: 0 0 70%;
    direction: rtl;
    background:
        linear-gradient(rgba(16, 24, 39, .36), rgba(16, 24, 39, .36)),
        url("../images/login-bg.svg") center/cover no-repeat,
        #18212f;
    color: #fff;
    display: flex;
    align-items: end;
    padding: 56px;
}

.auth-visual h1 {
    font-size: clamp(2rem, 4vw, 4.5rem);
    font-weight: 800;
    max-width: 720px;
}

.auth-form-area {
    flex: 0 0 30%;
    direction: rtl;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.auth-form {
    width: min(100%, 420px);
}

.auth-remember-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
    padding-right: 0;
    padding-left: 0;
}

.auth-remember-check .form-check-input {
    float: none;
    margin: 0;
    flex: 0 0 auto;
}

.auth-remember-check .form-check-label {
    margin: 0;
    font-weight: 700;
    color: var(--asm-text);
}

.auth-actions-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.empty-state {
    color: var(--asm-muted);
    padding: 42px 20px;
    text-align: center;
}

.note-item {
    border: 1px solid var(--asm-border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    background: #fbfcfe;
}

@media (max-width: 992px) {
    .app-main {
        width: 100%;
        padding: 0 12px;
    }

    .dashboard-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-shell {
        flex-direction: column;
    }

    .auth-visual,
    .auth-form-area {
        flex: 0 0 auto;
        width: 100%;
    }

    .auth-visual {
        min-height: 34vh;
        padding: 32px 24px;
    }

    .auth-form-area {
        min-height: 66vh;
    }

    .page-title {
        align-items: stretch;
        flex-direction: column;
    }

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

    .page-title > .btn,
    .page-title-actions .btn {
        width: 100%;
    }

    .lead-bulk-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .settings-payme-test-cards {
        grid-template-columns: 1fr;
    }

    .payme-order-summary .panel-body {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .payme-order-summary .btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .subscription-current-grid {
        grid-template-columns: 1fr 1fr;
    }

    .subscription-current-main {
        grid-column: 1 / -1;
        border-inline-end: 0;
        border-bottom: 1px solid var(--asm-border);
    }

    .subscription-price-box {
        border-inline-end: 1px solid var(--asm-border);
    }

    .subscription-usage-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .subscription-usage-grid > * {
        border-bottom: 1px solid var(--asm-border);
    }

    .subscription-usage-grid > *:nth-child(even) {
        border-inline-end: 0;
    }

    .subscription-usage-grid > *:last-child {
        border-bottom: 0;
    }

    .lead-bulk-submit {
        grid-column: 1 / -1;
    }

    .app-footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-system-text {
        text-align: center;
        white-space: normal;
    }
}

@media (max-width: 576px) {
    .dashboard-stat-grid {
        grid-template-columns: 1fr;
    }

    .footer-system-credit {
        display: none;
    }

    .health-summary-grid {
        grid-template-columns: 1fr;
    }

    .panel-body {
        padding: 16px;
    }

    .pagination-summary {
        align-items: center;
        flex-direction: column;
        gap: 4px;
    }

    .payme-frame {
        min-height: 620px;
    }

    .subscription-current-grid {
        grid-template-columns: 1fr;
    }

    .subscription-current-main,
    .subscription-price-box {
        border-inline-end: 0;
        border-bottom: 1px solid var(--asm-border);
    }

    .subscription-current-main,
    .subscription-price-box,
    .subscription-current-action {
        padding: 18px;
    }

    .subscription-current-title {
        align-items: flex-start;
    }

    .subscription-current-title h2 {
        font-size: 1.45rem;
    }

    .subscription-usage-grid,
    .subscription-plan-grid {
        grid-template-columns: 1fr;
    }

    .subscription-usage-cell,
    .subscription-feature-cell {
        border-inline-end: 0;
        border-bottom: 1px solid var(--asm-border);
    }

    .subscription-usage-cell:last-child,
    .subscription-feature-cell:last-child {
        border-bottom: 0;
    }

    .subscription-plan-features div {
        grid-template-columns: 24px minmax(0, 1fr);
        align-items: start;
        padding: 8px 0;
    }

    .subscription-plan-features strong {
        grid-column: 2;
        text-align: right;
    }

    .filter-actions {
        grid-template-columns: 1fr 44px;
    }

    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }

    .heavy-table {
        font-size: .9rem;
    }

    .lead-bulk-grid {
        grid-template-columns: 1fr;
    }

    .lead-bulk-submit .btn {
        width: 100%;
    }

    .settings-payme-test-action .btn {
        width: 100%;
    }

    .dashboard-list-item {
        align-items: stretch;
        flex-direction: column;
    }

    .duplicate-supplier-item {
        align-items: stretch;
        flex-direction: column;
    }

    .lead-supplier-history-item {
        align-items: stretch;
        flex-direction: column;
    }

    .api-key-row,
    .api-code-grid,
    .api-tools-grid,
    .api-field-list {
        grid-template-columns: 1fr;
    }

    .api-field-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .api-key-row .btn {
        width: 100%;
    }
}

/* DEV modern admin redesign */
:root {
    --asm-header: #ffffff;
    --asm-bg: #f3f6fb;
    --asm-surface: #ffffff;
    --asm-text: #152033;
    --asm-muted: #64748b;
    --asm-border: #dbe3ee;
    --asm-blue: #2563eb;
    --asm-green: #0f766e;
    --asm-bordo: #9f1239;
    --asm-gold: #b7791f;
    --asm-black: #111827;
    --asm-shadow: 0 10px 28px rgba(21, 32, 51, .08);
}

body {
    background: var(--asm-bg);
    color: var(--asm-text);
    font-size: .95rem;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--asm-border);
    color: var(--asm-text);
    box-shadow: 0 10px 28px rgba(21, 32, 51, .07) !important;
    backdrop-filter: blur(10px);
}

.app-header .navbar {
    min-height: 72px;
}

.app-header .container-fluid {
    gap: 12px;
}

.navbar-brand {
    color: var(--asm-text) !important;
    font-size: 1rem;
    letter-spacing: 0;
}

.navbar-brand i {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eef5ff;
    color: var(--asm-blue);
}

.navbar-brand-logo {
    height: 42px;
    border: 1px solid var(--asm-border);
    box-shadow: 0 6px 16px rgba(21, 32, 51, .08);
}

.navbar-toggler {
    border: 1px solid var(--asm-border);
    background: var(--asm-black);
    border-radius: 8px;
}

.app-header .navbar-nav {
    gap: 6px;
}

.app-header .navbar-nav .nav-link {
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #475569 !important;
    box-shadow: none;
}

.app-header .navbar-nav .nav-link i {
    color: #64748b;
}

.app-header .navbar-nav .nav-link:hover,
.app-header .navbar-nav .nav-link:focus {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: var(--asm-text) !important;
    transform: none;
}

.app-header .navbar-nav .nav-link:hover i,
.app-header .navbar-nav .nav-link:focus i {
    color: var(--asm-blue);
}

.app-header .navbar-nav .nav-link.active {
    background: #eaf2ff;
    border-color: #c9dcff;
    color: #1d4ed8 !important;
    box-shadow: inset 0 -2px 0 var(--asm-blue);
}

.app-header .navbar-nav .nav-link.active i {
    color: #1d4ed8;
}

.app-header .text-white-50 {
    color: #64748b !important;
}

.header-search-button,
.account-menu-toggle {
    border-color: var(--asm-border);
    background: #f8fafc;
    color: var(--asm-text);
    box-shadow: none;
}

.header-search-button:hover,
.header-search-button:focus,
.account-menu-toggle:hover,
.account-menu-toggle:focus {
    background: var(--asm-black);
    border-color: var(--asm-black);
    color: #fff;
}

.account-menu-toggle i {
    color: inherit;
}

.notification-count-badge {
    border-color: #fff;
    background: var(--asm-bordo);
}

.account-dropdown,
.notification-dropdown {
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(21, 32, 51, .16);
}

.dropdown-item.active,
.dropdown-item:active {
    background: #eaf2ff;
    color: #1d4ed8;
}

.app-main {
    width: 94%;
    max-width: none;
    margin: 26px auto 34px;
}

.page-title {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--asm-border);
}

.page-title h1 {
    color: var(--asm-text);
    font-size: 1.45rem;
    letter-spacing: 0;
}

.page-title .text-muted,
.text-muted {
    color: var(--asm-muted) !important;
}

.panel,
.dashboard-stat-card,
.subscription-plan-card,
.settings-fieldset,
.api-tool-box,
.note-item,
.duplicate-supplier-item,
.lead-supplier-history-item,
.dashboard-list-item {
    border-color: var(--asm-border);
    border-radius: 8px;
    box-shadow: var(--asm-shadow);
}

.panel {
    overflow: hidden;
}

.panel-body {
    padding: 22px;
}

.panel + .panel,
.row + .panel,
.panel + .row {
    margin-top: 14px;
}

.section-title-row {
    margin-bottom: 16px;
}

.section-title-row h2,
.settings-fieldset-title {
    color: var(--asm-text);
    font-size: 1.02rem;
}

.section-title-row a {
    color: var(--asm-blue);
}

.dashboard-stat-grid {
    gap: 16px;
}

.dashboard-stat-card {
    position: relative;
    min-height: 132px;
    padding: 18px 18px 16px;
    border-top: 3px solid var(--asm-blue);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.dashboard-stat-card:nth-child(2) {
    border-top-color: var(--asm-green);
}

.dashboard-stat-card:nth-child(3) {
    border-top-color: var(--asm-bordo);
}

.dashboard-stat-card:nth-child(4) {
    border-top-color: var(--asm-gold);
}

.dashboard-stat-card i,
.payme-summary-icon,
.system-health-line i,
.subscription-current-icon {
    background: #eef5ff;
    color: var(--asm-blue);
}

.dashboard-stat-card:nth-child(2) i {
    background: #e7f7f3;
    color: var(--asm-green);
}

.dashboard-stat-danger i,
.dashboard-stat-card:nth-child(3) i {
    background: #fff1f2;
    color: var(--asm-bordo);
}

.dashboard-stat-card:nth-child(4) i {
    background: #fff7e6;
    color: var(--asm-gold);
}

.dashboard-stat-card strong {
    color: var(--asm-text);
    font-size: 2rem;
}

.dashboard-stat-card:hover,
.dashboard-stat-card:focus {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(21, 32, 51, .13);
}

.chart-card .panel-body {
    min-height: 320px;
}

.chart-box {
    height: 238px;
}

.table-responsive {
    border-radius: 8px;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: #f8fafc;
    color: var(--asm-text);
}

.table > :not(caption) > * > * {
    padding: 12px 14px;
    border-bottom-color: #e8eef6;
}

.table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: .82rem;
    text-transform: none;
}

.table tbody tr {
    transition: background .12s ease;
}

.table tbody tr:hover {
    background: #f6f9fd;
}

.form-label {
    color: #334155;
    font-weight: 700;
}

.form-control,
.form-select {
    min-height: 41px;
    border-color: #d7e0ec;
    border-radius: 8px;
    color: var(--asm-text);
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: #9bbcff;
    box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .12);
}

.filter-row,
.lead-bulk-grid {
    align-items: end;
}

.filter-clear-link {
    border-radius: 8px;
}

.btn-action,
.btn-save-action,
.btn-close-action,
.btn-info-action,
.btn-excel-action,
.btn-impersonate-action,
.btn-delete-action,
.btn-danger-action,
.btn-copy-action {
    min-height: 39px;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(21, 32, 51, .12);
}

.btn-save-action {
    background: var(--asm-blue);
}

.btn-edit-action,
.btn-excel-action,
.btn-copy-action {
    background: var(--asm-green);
}

.btn-delete-action,
.btn-danger-action {
    background: var(--asm-bordo);
}

.btn-info-action {
    background: #64748b;
}

.btn-close-action {
    background: var(--asm-black);
}

.btn-impersonate-action {
    background: #c56a0a;
}

.badge-status,
.account-plan-badge,
.report-status-badge {
    background: #eaf2ff;
    border-color: #c9dcff;
    color: #1d4ed8;
}

.log-action-info {
    background: #e0f2fe;
    color: #0369a1;
}

.log-action-success {
    background: #dcfce7;
    color: #047857;
}

.log-action-warning {
    background: #fef3c7;
    color: #92400e;
}

.log-action-error {
    background: #ffe4e6;
    color: var(--asm-bordo);
}

.dashboard-list {
    gap: 11px;
}

.dashboard-list-item {
    background: #fff;
    box-shadow: none;
}

.dashboard-list-item.is-overdue {
    background: #fff7f8;
    border-color: #fecdd3;
}

.dashboard-status-list > div {
    padding: 11px 0;
}

.status-color-badge {
    border-radius: 8px;
}

.modal-content {
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(21, 32, 51, .22);
}

.modal-header {
    background: #f8fafc;
}

.modal-footer {
    background: #fbfdff;
}

.quick-search-results,
.api-test-result,
.api-doc-tree pre {
    border-radius: 8px;
}

.app-footer {
    background: #fff;
    color: #64748b;
}

.footer-agency-logo,
.footer-system-logo {
    border: 1px solid var(--asm-border);
    box-shadow: 0 8px 20px rgba(21, 32, 51, .08);
}

.auth-body {
    background: #f3f6fb;
}

.auth-shell {
    background: #fff;
}

.auth-visual {
    flex-basis: 58%;
    background:
        linear-gradient(rgba(15, 23, 42, .38), rgba(15, 23, 42, .52)),
        url("../images/login-bg.svg") center/cover no-repeat,
        #152033;
}

.auth-visual h1 {
    font-size: clamp(2rem, 3.4vw, 4rem);
    line-height: 1.08;
}

.auth-form-area {
    flex-basis: 42%;
    background: #ffffff;
}

.auth-form {
    padding: 28px;
    border: 1px solid var(--asm-border);
    border-radius: 8px;
    box-shadow: var(--asm-shadow);
}

.auth-form .h4,
.auth-form h1,
.auth-form h2 {
    color: var(--asm-text);
}

.empty-state {
    color: var(--asm-muted);
    background: #f8fafc;
    border: 1px dashed var(--asm-border);
    border-radius: 8px;
}

.reminder-alert-strip {
    background: #fff7e6;
    border-bottom-color: #fed7aa;
    color: #92400e;
}

@media (max-width: 1199.98px) {
    .app-header .navbar-nav .nav-link {
        padding-inline: 9px;
        font-size: .9rem;
    }
}

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

    .app-header .navbar-collapse {
        padding-top: 12px;
    }

    .app-header .navbar-nav {
        gap: 8px;
        padding-bottom: 10px;
    }

    .app-header .navbar-nav .nav-link,
    .header-search-button {
        width: 100%;
        justify-content: flex-start;
        margin-inline: 0;
    }

    .app-header .d-flex.align-items-center.gap-2 {
        align-items: stretch !important;
        flex-direction: column;
        width: 100%;
        color: var(--asm-muted) !important;
    }

    .app-header form,
    .app-header form .btn,
    .account-menu-toggle {
        width: 100%;
    }

    .app-main {
        width: 100%;
        padding: 0 14px;
        margin-top: 20px;
    }

    .auth-form {
        padding: 22px;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: .92rem;
    }

    .page-title h1 {
        font-size: 1.25rem;
    }

    .panel-body {
        padding: 16px;
    }

    .dashboard-stat-card {
        min-height: 112px;
    }

    .auth-form-area {
        padding: 20px 14px;
    }

    .auth-form {
        padding: 18px;
    }
}

/* DEV contrast pass */
:root {
    --asm-header: #111827;
    --asm-bg: #eef2f7;
    --asm-text: #0f172a;
    --asm-muted: #475569;
    --asm-border: #cbd5e1;
    --asm-blue: #1d4ed8;
    --asm-green: #047857;
    --asm-gold: #9a5b00;
    --asm-shadow: 0 12px 30px rgba(15, 23, 42, .12);
}

.app-header {
    background: #111827;
    border-bottom-color: #263244;
    color: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .24) !important;
    backdrop-filter: none;
}

.navbar-brand {
    color: #fff !important;
}

.navbar-brand i {
    background: #2563eb;
    color: #fff;
}

.navbar-brand-logo {
    border-color: rgba(255, 255, 255, .28);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}

.app-header .navbar-nav .nav-link {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .88) !important;
}

.app-header .navbar-nav .nav-link i {
    color: rgba(255, 255, 255, .78);
}

.app-header .navbar-nav .nav-link:hover,
.app-header .navbar-nav .nav-link:focus {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .28);
    color: #fff !important;
}

.app-header .navbar-nav .nav-link:hover i,
.app-header .navbar-nav .nav-link:focus i,
.app-header .navbar-nav .nav-link.active i {
    color: #fff;
}

.app-header .navbar-nav .nav-link.active {
    background: #2563eb;
    border-color: #5b8cff;
    color: #fff !important;
    box-shadow: inset 0 -2px 0 #bfdbfe, 0 8px 18px rgba(37, 99, 235, .28);
}

.app-header .text-white-50 {
    color: rgba(255, 255, 255, .72) !important;
}

.header-search-button,
.account-menu-toggle {
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.header-search-button:hover,
.header-search-button:focus,
.account-menu-toggle:hover,
.account-menu-toggle:focus {
    background: #2563eb;
    border-color: #5b8cff;
    color: #fff;
}

.page-title {
    border-bottom: 2px solid var(--asm-border);
}

.panel,
.dashboard-stat-card,
.subscription-plan-card,
.settings-fieldset,
.api-tool-box,
.note-item,
.duplicate-supplier-item,
.lead-supplier-history-item,
.dashboard-list-item {
    border-color: #c3cedc;
    box-shadow: var(--asm-shadow);
}

.dashboard-stat-card {
    border-top-width: 4px;
}

.dashboard-stat-card span,
.section-title-row span,
.small,
.form-text {
    color: var(--asm-muted);
}

.panel .text-muted,
.dashboard-list-item .text-muted {
    color: #526175 !important;
}

.table > :not(caption) > * > * {
    border-bottom-color: #d9e2ee;
}

.table thead th {
    background: #e5ebf4;
    border-bottom: 1px solid #c3cedc;
    color: #243247;
}

.table tbody tr:hover {
    background: #edf4ff;
}

.form-control,
.form-select {
    border-color: #c3cedc;
}

.badge-status,
.account-plan-badge,
.report-status-badge {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.dashboard-list-item {
    background: #fff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .06);
}

.modal-header {
    background: #eef2f7;
}

.empty-state {
    background: #f1f5f9;
}

.health-summary-grid > .panel {
    height: 100%;
    margin-top: 0;
}

.health-summary-card {
    min-height: 70px;
}

@media (max-width: 991.98px) {
    .app-header .d-flex.align-items-center.gap-2 {
        color: rgba(255, 255, 255, .72) !important;
    }
}

/* DEV design v2 */
:root {
    --asm-bg: #e8eef5;
    --asm-text: #111827;
    --asm-muted: #3f4f64;
    --asm-border: #bec9d8;
    --asm-blue: #155eef;
    --asm-green: #047857;
    --asm-bordo: #a1123f;
    --asm-gold: #a05a00;
    --asm-shadow: 0 14px 34px rgba(17, 24, 39, .13);
}

.app-header {
    background: #ffffff;
    border-top: 5px solid #155eef;
    border-bottom: 1px solid #b9c6d6;
    color: var(--asm-text);
    box-shadow: 0 12px 28px rgba(17, 24, 39, .14) !important;
}

.navbar-brand {
    color: var(--asm-text) !important;
}

.navbar-brand i {
    background: #155eef;
    color: #fff;
}

.navbar-brand-logo {
    border-color: #b9c6d6;
    box-shadow: 0 6px 16px rgba(17, 24, 39, .12);
}

.app-header .navbar-nav .nav-link {
    background: #eef3f9;
    border-color: #d4deea;
    color: #263449 !important;
}

.app-header .navbar-nav .nav-link i {
    color: #526175;
}

.app-header .navbar-nav .nav-link:hover,
.app-header .navbar-nav .nav-link:focus {
    background: #dde9ff;
    border-color: #9db9ff;
    color: #0f3ca8 !important;
}

.app-header .navbar-nav .nav-link:hover i,
.app-header .navbar-nav .nav-link:focus i {
    color: #155eef;
}

.app-header .navbar-nav .nav-link.active {
    background: #155eef;
    border-color: #155eef;
    color: #fff !important;
    box-shadow: 0 9px 18px rgba(21, 94, 239, .24);
}

.app-header .navbar-nav .nav-link.active i {
    color: #fff;
}

.app-header .text-white-50 {
    color: #4b5c72 !important;
}

.header-search-button,
.account-menu-toggle {
    border-color: #c4cfdd;
    background: #eef3f9;
    color: #263449;
}

.header-search-button:hover,
.header-search-button:focus,
.account-menu-toggle:hover,
.account-menu-toggle:focus {
    background: #155eef;
    border-color: #155eef;
    color: #fff;
}

.page-title {
    padding: 16px 18px;
    border: 1px solid #c5cfdd;
    border-inline-start: 5px solid #155eef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, .08);
}

.panel {
    border-color: #bac6d5;
    border-top: 3px solid #d7e0ec;
    background: #fff;
}

.panel-body {
    padding: 24px;
}

.dashboard-stat-card,
.health-summary-card,
.report-stat-card {
    background: #fff;
    border-color: #bac6d5;
    box-shadow: 0 12px 26px rgba(17, 24, 39, .11);
}

.dashboard-stat-card strong,
.health-summary-card strong,
.report-stat-number {
    color: #0f172a;
}

.table thead th {
    background: #dce5f0;
    color: #172033;
    border-bottom-color: #adbbcc;
}

.table > :not(caption) > * > * {
    border-bottom-color: #d1dbe8;
}

.form-control,
.form-select {
    border-color: #b7c4d5;
}

.form-control:focus,
.form-select:focus {
    border-color: #155eef;
    box-shadow: 0 0 0 .18rem rgba(21, 94, 239, .16);
}

.app-footer {
    background: #f8fafc;
    border-top-color: #bac6d5;
}

@media (max-width: 991.98px) {
    .app-header .d-flex.align-items-center.gap-2 {
        color: #4b5c72 !important;
    }
}

/* Tenant theme templates */
.theme-modern {
    color-scheme: light;
}

.theme-bold {
    --asm-bg: #e6edf5;
    --asm-text: #101828;
    --asm-muted: #344054;
    --asm-border: #aab8ca;
    --asm-blue: #0b4db3;
    --asm-green: #067647;
    --asm-bordo: #b42318;
    --asm-gold: #b76e00;
    --asm-shadow: 0 16px 34px rgba(16, 24, 40, .17);
}

.theme-bold .app-header {
    border-top-color: #0b4db3;
}

.theme-bold .page-title,
.theme-bold .panel,
.theme-bold .dashboard-stat-card,
.theme-bold .health-summary-card,
.theme-bold .settings-fieldset {
    border-color: #9eabbc;
    box-shadow: var(--asm-shadow);
}

.theme-bold .panel,
.theme-bold .dashboard-stat-card {
    border-top-color: #0b4db3;
}

.theme-bold .table thead th {
    background: #cfd9e7;
}

.theme-black-soft,
.theme-black-strong {
    color-scheme: dark;
    --asm-text: #f8fafc;
    --asm-muted: #d2d9e4;
    --asm-blue: #63a1ff;
    --asm-green: #44d39e;
    --asm-bordo: #ff7b93;
    --asm-gold: #f6c453;
}

.theme-black-soft {
    --asm-bg: #151922;
    --asm-surface: #202737;
    --asm-border: #4a5568;
    --asm-shadow: 0 16px 34px rgba(0, 0, 0, .24);
}

.theme-black-strong {
    --asm-bg: #05070c;
    --asm-surface: #101722;
    --asm-border: #536174;
    --asm-shadow: 0 18px 40px rgba(0, 0, 0, .34);
}

.theme-black-soft.app-body,
.theme-black-strong.app-body,
.theme-black-soft .app-main,
.theme-black-strong .app-main {
    background: var(--asm-bg);
    color: var(--asm-text);
}

.theme-black-soft .app-header,
.theme-black-strong .app-header {
    background: var(--asm-surface);
    border-top-color: var(--asm-blue);
    border-bottom-color: var(--asm-border);
    color: var(--asm-text);
}

.theme-black-soft .app-footer,
.theme-black-strong .app-footer,
.theme-black-soft .page-title,
.theme-black-strong .page-title,
.theme-black-soft .panel,
.theme-black-strong .panel,
.theme-black-soft .dashboard-stat-card,
.theme-black-strong .dashboard-stat-card,
.theme-black-soft .health-summary-card,
.theme-black-strong .health-summary-card,
.theme-black-soft .settings-fieldset,
.theme-black-strong .settings-fieldset,
.theme-black-soft .dashboard-list-item,
.theme-black-strong .dashboard-list-item,
.theme-black-soft .modal-content,
.theme-black-strong .modal-content,
.theme-black-soft .dropdown-menu,
.theme-black-strong .dropdown-menu,
.theme-black-soft .permission-group-card,
.theme-black-strong .permission-group-card,
.theme-black-soft .advanced-permissions-box,
.theme-black-strong .advanced-permissions-box {
    background: var(--asm-surface);
    border-color: var(--asm-border);
    color: var(--asm-text);
}

.theme-black-soft .modal-header,
.theme-black-strong .modal-header,
.theme-black-soft .modal-footer,
.theme-black-strong .modal-footer {
    background: #121926;
    border-color: var(--asm-border);
    color: var(--asm-text);
}

.theme-black-strong .modal-header,
.theme-black-strong .modal-footer {
    background: #090d14;
}

.theme-black-soft .navbar-brand,
.theme-black-strong .navbar-brand,
.theme-black-soft .app-header .navbar-nav .nav-link,
.theme-black-strong .app-header .navbar-nav .nav-link,
.theme-black-soft .account-menu-toggle,
.theme-black-strong .account-menu-toggle,
.theme-black-soft .header-search-button,
.theme-black-strong .header-search-button {
    color: var(--asm-text) !important;
}

.theme-black-soft .app-header .navbar-nav .nav-link,
.theme-black-strong .app-header .navbar-nav .nav-link,
.theme-black-soft .account-menu-toggle,
.theme-black-strong .account-menu-toggle,
.theme-black-soft .header-search-button,
.theme-black-strong .header-search-button {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .18);
}

.theme-black-soft .app-header .navbar-nav .nav-link.active,
.theme-black-strong .app-header .navbar-nav .nav-link.active {
    background: var(--asm-blue);
    border-color: #9cc3ff;
    color: #06111f !important;
    box-shadow: 0 10px 20px rgba(99, 161, 255, .24);
}

.theme-black-soft .app-header .navbar-nav .nav-link.active i,
.theme-black-strong .app-header .navbar-nav .nav-link.active i {
    color: #06111f;
}

.theme-black-soft .app-header .navbar-nav .nav-link:hover,
.theme-black-soft .app-header .navbar-nav .nav-link:focus,
.theme-black-strong .app-header .navbar-nav .nav-link:hover,
.theme-black-strong .app-header .navbar-nav .nav-link:focus {
    background: rgba(99, 161, 255, .18);
    border-color: var(--asm-blue);
    color: #ffffff !important;
}

.theme-black-soft .text-muted,
.theme-black-strong .text-muted,
.theme-black-soft .form-text,
.theme-black-strong .form-text,
.theme-black-soft .small,
.theme-black-strong .small,
.theme-black-soft .panel .text-muted,
.theme-black-strong .panel .text-muted,
.theme-black-soft .dashboard-list-item .text-muted,
.theme-black-strong .dashboard-list-item .text-muted {
    color: var(--asm-muted) !important;
}

.theme-black-soft .form-label,
.theme-black-strong .form-label,
.theme-black-soft .form-check-label,
.theme-black-strong .form-check-label,
.theme-black-soft .settings-fieldset-title,
.theme-black-strong .settings-fieldset-title {
    color: var(--asm-text);
}

.theme-black-soft .form-control,
.theme-black-soft .form-select,
.theme-black-strong .form-control,
.theme-black-strong .form-select {
    background: #0f1622;
    border-color: var(--asm-border);
    color: #ffffff;
}

.theme-black-strong .form-control,
.theme-black-strong .form-select {
    background: #070b12;
}

.theme-black-soft .form-control::placeholder,
.theme-black-strong .form-control::placeholder {
    color: #aab4c2;
}

.theme-black-soft .btn-close,
.theme-black-strong .btn-close {
    filter: invert(1) grayscale(100%);
    opacity: 1;
}

.theme-black-soft .btn-info-action,
.theme-black-strong .btn-info-action {
    background: #64748b;
    color: #ffffff !important;
}

.theme-black-soft .quick-search-results,
.theme-black-strong .quick-search-results,
.theme-black-soft .quick-search-item,
.theme-black-strong .quick-search-item,
.theme-black-soft .quick-search-all,
.theme-black-strong .quick-search-all,
.theme-black-soft .quick-search-empty,
.theme-black-strong .quick-search-empty {
    background: var(--asm-surface);
    border-color: var(--asm-border);
    color: var(--asm-text);
}

.theme-black-soft .quick-search-item:hover,
.theme-black-soft .quick-search-item:focus,
.theme-black-soft .quick-search-all:hover,
.theme-black-soft .quick-search-all:focus,
.theme-black-strong .quick-search-item:hover,
.theme-black-strong .quick-search-item:focus,
.theme-black-strong .quick-search-all:hover,
.theme-black-strong .quick-search-all:focus {
    background: rgba(99, 161, 255, .16);
    color: #ffffff;
}

.theme-black-soft .quick-search-type,
.theme-black-strong .quick-search-type {
    background: rgba(99, 161, 255, .18);
    color: #dbeafe;
}

.theme-black-soft .table,
.theme-black-strong .table {
    color: var(--asm-text);
}

.theme-black-soft .table thead th,
.theme-black-strong .table thead th {
    background: #121a27;
    border-bottom-color: var(--asm-border);
    color: #f8fafc;
}

.theme-black-strong .table thead th {
    background: #080c13;
}

.theme-black-soft .table > :not(caption) > * > *,
.theme-black-strong .table > :not(caption) > * > * {
    border-bottom-color: var(--asm-border);
    color: var(--asm-text);
}

.theme-black-soft .table tbody tr:hover,
.theme-black-strong .table tbody tr:hover {
    background: rgba(99, 161, 255, .12);
}

.theme-black-soft .empty-state,
.theme-black-strong .empty-state {
    background: rgba(255, 255, 255, .05);
    border-color: var(--asm-border);
    color: var(--asm-muted);
}

.theme-compact {
    --asm-bg: #edf2f7;
    --asm-shadow: 0 8px 18px rgba(17, 24, 39, .1);
    font-size: .9rem;
}

.theme-compact .app-header .navbar {
    min-height: 60px;
}

.theme-compact .app-main {
    margin-top: 18px;
}

.theme-compact .page-title {
    padding: 12px 14px;
    margin-bottom: 14px;
}

.theme-compact .panel-body,
.theme-compact .settings-fieldset {
    padding: 16px;
}

.theme-compact .dashboard-stat-card,
.theme-compact .health-summary-card {
    min-height: 92px;
    padding: 14px;
}

.theme-compact .table > :not(caption) > * > * {
    padding: 9px 10px;
}

.theme-compact .btn-action,
.theme-compact .btn-save-action,
.theme-compact .btn-close-action,
.theme-compact .btn-info-action,
.theme-compact .btn-excel-action,
.theme-compact .btn-impersonate-action,
.theme-compact .btn-delete-action,
.theme-compact .btn-danger-action {
    min-height: 34px;
    padding: 6px 10px;
}

.theme-soft {
    --asm-bg: #f2f5f9;
    --asm-text: #243247;
    --asm-muted: #607089;
    --asm-border: #d4deea;
    --asm-blue: #3366d6;
    --asm-green: #16846e;
    --asm-bordo: #b8325c;
    --asm-gold: #b7791f;
    --asm-shadow: 0 10px 24px rgba(71, 85, 105, .1);
}

.theme-soft .app-header {
    border-top-color: #8fb3ff;
}

.theme-soft .page-title,
.theme-soft .panel,
.theme-soft .dashboard-stat-card,
.theme-soft .health-summary-card,
.theme-soft .settings-fieldset,
.theme-soft .dashboard-list-item {
    border-color: #d4deea;
    box-shadow: var(--asm-shadow);
}

.theme-soft .panel,
.theme-soft .dashboard-stat-card {
    border-top-color: #c8d9ff;
}

.theme-soft .app-header .navbar-nav .nav-link,
.theme-soft .account-menu-toggle,
.theme-soft .header-search-button {
    background: #f5f8fc;
}

.theme-soft .app-header .navbar-nav .nav-link.active {
    background: #e9f1ff;
    border-color: #3366d6;
    color: #1f4fb8 !important;
    box-shadow: inset 0 -2px 0 #3366d6, 0 8px 16px rgba(51, 102, 214, .16);
}

.theme-soft .app-header .navbar-nav .nav-link.active i {
    color: #1f4fb8;
}

.theme-soft .app-header .navbar-nav .nav-link:hover,
.theme-soft .app-header .navbar-nav .nav-link:focus {
    background: #edf4ff;
    color: #1f4fb8 !important;
}

.theme-soft .table thead th {
    background: #edf3fa;
}

.app-header .navbar-toggler,
.app-header .navbar-nav {
    display: none !important;
}

.app-header .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    flex-grow: 1;
    justify-content: flex-end;
}

@media (min-width: 992px) {
    .app-sidebar-open-initial .app-main,
    .app-sidebar-open .app-main {
        width: auto;
        margin-right: calc(var(--asm-sidebar-width) + 3%);
        margin-left: 3%;
    }

    .app-sidebar-open-initial .reminder-alert-strip,
    .app-sidebar-open-initial .app-footer,
    .app-sidebar-open-initial .app-header,
    .app-sidebar-open .reminder-alert-strip,
    .app-sidebar-open .app-footer,
    .app-sidebar-open .app-header {
        width: auto;
        margin-right: var(--asm-sidebar-width);
    }
}

@media (max-width: 991.98px) {
    .app-header .navbar-collapse,
    .header-user-tools,
    .header-notification-slot,
    .header-search-standalone {
        display: none !important;
    }
}
