: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);
}

* {
    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 .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;
}

.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-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-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-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-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: #9aa3b2;
}

.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: flex;
    align-items: baseline;
    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-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: 800;
}

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

.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 {
    min-width: 44px;
    border: 0;
    color: #fff !important;
    font-weight: 700;
    box-shadow: none;
}

.btn-password-generate:hover,
.btn-password-generate: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;
    }

    .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;
    }
}
