﻿/* WebAsha CRM enterprise polish layer. Keeps template structure intact. */

:root {
    --webasha-divider: #edf2f7;
    --webasha-border: #dbe3ef;
    --webasha-bg: #f4f7fb;
    --webasha-navy: #0f172a;
    --webasha-teal: #10b981;
    --webasha-shadow-soft: 0 8px 22px rgba(15, 23, 42, 0.04);
    --webasha-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

body .border:not(.border-primary):not(.border-secondary):not(.border-success):not(.border-info):not(.border-warning):not(.border-danger):not(.border-dark),
body .b-light,
.modal .border:not(.border-primary):not(.border-secondary):not(.border-success):not(.border-info):not(.border-warning):not(.border-danger):not(.border-dark) {
    border-color: var(--webasha-divider) !important;
}

body .border-top:not(.border-primary):not(.border-secondary):not(.border-success):not(.border-info):not(.border-warning):not(.border-danger):not(.border-dark),
body .border-bottom:not(.border-primary):not(.border-secondary):not(.border-success):not(.border-info):not(.border-warning):not(.border-danger):not(.border-dark),
body .border-start:not(.border-primary):not(.border-secondary):not(.border-success):not(.border-info):not(.border-warning):not(.border-danger):not(.border-dark),
body .border-end:not(.border-primary):not(.border-secondary):not(.border-success):not(.border-info):not(.border-warning):not(.border-danger):not(.border-dark),
.modal .border-top,
.modal .border-bottom,
.modal .border-start,
.modal .border-end {
    border-color: var(--webasha-divider) !important;
}

.modal-header,
.modal-footer,
.card-header,
.card-footer,
.user-group .border-bottom,
.user-group .border-top,
.media-ui .border-bottom,
.media-ui .border-top,
.dm-page-content .border-bottom,
.dm-page-content .border-top,
.contents .border-bottom,
.contents .border-top,
.crm-action-modal__body .border-bottom,
.crm-action-modal__body .border-top,
hr {
    border-color: var(--webasha-divider) !important;
}

.crm-combo-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--webasha-border, #e2e8f0);
    border-radius: 14px;
    background: #f8fafc;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}

.crm-combo-item__main {
    min-width: 0;
}

.crm-combo-item__header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.crm-combo-item__badges {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    flex: 0 0 auto;
}

.crm-combo-item__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 180px));
    gap: 14px;
    margin-top: 14px;
}

.crm-combo-item__meta span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.crm-combo-item__meta strong {
    display: block;
    margin-top: 3px;
    font-size: 18px;
    line-height: 1.25;
}

.crm-combo-item__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    max-width: 260px;
}

.crm-combo-item__actions .btn {
    min-height: 36px;
    padding: 0 16px;
    font-size: 12px;
    line-height: 36px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.crm-combo-item__actions .btn i {
    margin-right: 5px;
    font-size: 13px;
    line-height: 1;
}

.crm-combo-item__actions form {
    margin: 0;
}

.crm-combo-course-select + .select2-container {
    width: 100% !important;
}

.crm-combo-course-select + .select2-container .select2-selection--multiple {
    min-height: 44px;
    border: 1px solid var(--border-light, #e3e6ef);
    border-radius: 4px;
    background: var(--color-white, #fff);
    padding: 4px 10px;
}

.crm-combo-course-select + .select2-container .select2-selection--multiple .select2-selection__choice {
    min-height: 26px;
    margin-top: 4px;
    border: 0;
    border-radius: 4px;
    background: rgba(var(--color-primary-rgba), .12);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
}

.crm-combo-course-select + .select2-container .select2-selection--multiple .select2-search__field {
    min-height: 28px;
    margin-top: 4px;
    font-size: 14px;
}

html[data-theme="dark"] .crm-combo-course-select + .select2-container .select2-selection--multiple {
    background: #111827;
    border-color: #263449;
}

html[data-theme="dark"] .crm-combo-item {
    background: #111827;
    border-color: #263449;
}

@media (max-width: 1399.98px) {
    .crm-combo-item {
        grid-template-columns: 1fr;
    }

    .crm-combo-item__actions {
        max-width: none;
        justify-content: flex-start;
        padding-top: 14px;
        border-top: 1px solid var(--webasha-border, #e2e8f0);
    }
}

@media (max-width: 575.98px) {
    .crm-combo-item {
        padding: 15px;
    }

    .crm-combo-item__header {
        display: block;
    }

    .crm-combo-item__badges {
        justify-content: flex-start;
        margin-top: 10px;
    }

    .crm-combo-item__meta {
        grid-template-columns: 1fr;
    }

    .crm-combo-item__actions .btn {
        flex: 1 1 auto;
    }
}

body,
.crm-app {
    text-rendering: geometricPrecision;
}

.side-menu .contents,
.crm-content {
    background: var(--webasha-bg);
}

.contents .user-group.media-ui,
.contents .card,
.crm-content .crm-card,
.crm-action-modal__body .user-group.media-ui,
.crm-action-modal__body .card {
    border: 1px solid var(--webasha-border);
    border-radius: 14px;
    box-shadow: var(--webasha-shadow-soft);
    padding: 12px;
}

.contents .user-group.media-ui,
.crm-action-modal__body .user-group.media-ui {
    overflow: hidden;
}

.contents .user-group.media-ui:hover,
.contents .card:hover {
    box-shadow: var(--webasha-shadow);
}

.contents .form-control:not([type="file"]),
.contents .form-select,
.modal .form-control:not([type="file"]),
.modal .form-select,
.modal select,
.modal input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.modal textarea,
.crm-action-modal__body .form-control:not([type="file"]),
.crm-action-modal__body .form-select,
.crm-action-modal__body select,
.crm-action-modal__body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.crm-action-modal__body textarea {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--webasha-border);
    border-radius: 4px;
    background-color: #fff;
    color: var(--webasha-navy);
    font-size: 14px;
    line-height: 42px;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.contents textarea.form-control,
.modal textarea.form-control,
.crm-action-modal__body textarea {
    min-height: 112px;
    padding-top: 12px;
    padding-bottom: 12px;
    line-height: 1.55;
}

.contents .form-control::placeholder,
.modal .form-control::placeholder,
.crm-action-modal__body .form-control::placeholder {
    color: #8c90a4;
}

.contents .form-control:focus,
.contents .form-select:focus,
.modal .form-control:focus,
.modal .form-select:focus,
.modal input:focus,
.modal textarea:focus,
.modal select:focus,
.crm-action-modal__body .form-control:focus,
.crm-action-modal__body .form-select:focus,
.crm-action-modal__body input:focus,
.crm-action-modal__body textarea:focus,
.crm-action-modal__body select:focus {
    border-color: var(--color-primary, #8231d3);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgba, 130, 49, 211), 0.12);
    outline: 0;
}

.contents input[type="file"].form-control,
.modal input[type="file"].form-control,
.crm-action-modal__body input[type="file"].form-control {
    min-height: 44px;
    border: 1px solid var(--webasha-border);
    border-radius: 4px;
    background: #fff;
    color: var(--webasha-navy);
    line-height: 1.45;
}

.contents .input-container.icon-left .form-control,
.modal .input-container.icon-left .form-control,
.crm-action-modal__body .input-container.icon-left .form-control,
.contents .with-icon .form-control,
.modal .with-icon .form-control,
.crm-action-modal__body .with-icon .form-control {
    padding-left: 44px;
}

.contents .input-container.icon-right .form-control,
.modal .input-container.icon-right .form-control,
.crm-action-modal__body .input-container.icon-right .form-control {
    padding-right: 44px;
}

.contents .input-container .input-icon,
.modal .input-container .input-icon,
.crm-action-modal__body .input-container .input-icon,
.contents .with-icon > span:first-child,
.modal .with-icon > span:first-child,
.crm-action-modal__body .with-icon > span:first-child {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #6b7390;
    pointer-events: none;
    transform: translateY(-50%);
}

.contents .with-icon,
.modal .with-icon,
.crm-action-modal__body .with-icon {
    position: relative;
}

.contents .input-container .input-icon.icon-left,
.modal .input-container .input-icon.icon-left,
.crm-action-modal__body .input-container .input-icon.icon-left,
.contents .with-icon > span:first-child,
.modal .with-icon > span:first-child,
.crm-action-modal__body .with-icon > span:first-child {
    left: 16px;
}

.contents .input-container .input-icon.icon-right,
.modal .input-container .input-icon.icon-right,
.crm-action-modal__body .input-container .input-icon.icon-right {
    right: 16px;
}

.contents .input-container .input-icon img,
.modal .input-container .input-icon img,
.crm-action-modal__body .input-container .input-icon img {
    width: 16px;
    height: 16px;
}

.contents label,
.crm-action-modal__body label {
    color: var(--webasha-navy);
    font-size: 13px;
    font-weight: 600;
}

.contents .btn,
.crm-action-modal .btn,
.crm-action-modal__body .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    border-radius: 8px;
    font-weight: 600;
}

.contents .table,
.crm-action-modal__body .table {
    color: var(--webasha-navy);
    border-color: #edf2f7;
}

.contents .table thead th,
.crm-action-modal__body .table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
    color: var(--webasha-navy);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    border-top: 0;
    border-bottom: 1px solid #edf2f7;
}

.contents .table td,
.contents .table th,
.crm-action-modal__body .table td,
.crm-action-modal__body .table th {
    padding: 15px 18px;
    border-color: #edf2f7 !important;
    vertical-align: middle;
}

.contents .table > :not(caption) > * > *,
.crm-action-modal__body .table > :not(caption) > * > * {
    border-bottom-color: #edf2f7 !important;
}

.contents .table-responsive,
.crm-action-modal__body .table-responsive {
    border: 1px solid var(--webasha-border);
    border-radius: 12px;
    overflow: auto;
}

.contents .table-responsive .table,
.crm-action-modal__body .table-responsive .table {
    margin-bottom: 0;
}

.contents .table tbody tr,
.crm-action-modal__body .table tbody tr {
    transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.contents .table tbody tr:hover,
.crm-action-modal__body .table tbody tr:hover {
    background: #f8fafc;
}

.contents .border-bottom,
.crm-action-modal__body .border-bottom {
    border-bottom-color: #edf2f7 !important;
}

.contents .border-top,
.crm-action-modal__body .border-top {
    border-top-color: #edf2f7 !important;
}

.contents .table td:last-child .d-flex,
.crm-action-modal__body .table td:last-child .d-flex {
    flex-wrap: nowrap;
}

.contents .btn.btn-sm,
.crm-action-modal__body .btn.btn-sm {
    min-height: 34px;
    padding-right: 12px;
    padding-left: 12px;
}

.contents .btn.btn-sm:has(i:only-child),
.crm-action-modal__body .btn.btn-sm:has(i:only-child) {
    /* width: 100px;
    min-width: 36px; */
    padding-right: 0;
    padding-left: 0;
}

.contents .project-progree-breadcrumb {
    margin-bottom: 22px;
}

.contents .breadcrumb-main {
    gap: 14px;
}

.contents .breadcrumb-title {
    color: var(--webasha-navy);
    letter-spacing: 0;
}

.contents .sub-title {
    color: var(--webasha-muted);
}

.contents .project-top-wrapper {
    align-items: center;
    gap: 14px;
    padding: 0;
    margin-bottom: 24px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.contents .project-top-left,
.contents .project-top-right {
    align-items: center;
    gap: 12px;
}

.contents .project-tap {
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 0;
    border-radius: 6px;
    box-shadow: none;
}

.contents .project-tap .nav {
    flex-wrap: nowrap;
}

.contents .project-tap .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    min-height: 38px;
    padding: 8px 16px;
    color: #8c90a4;
    background: transparent;
    border-radius: 0;
    font-size: 13px;
    font-weight: 500;
}

.contents .project-tap .nav-item + .nav-item .nav-link {
    border-left: 1px solid #f1f2f6;
}

.contents .project-tap .nav-link.active,
.contents .project-tap .nav-link:hover {
    color: #8231d3;
    background: transparent;
}

.contents .project-search {
    min-width: min(352px, 100%);
    background: #fff;
    border: 1px solid var(--webasha-border, #e2e8f0);
    border-radius: 999px;
    box-shadow: none;
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    overflow: hidden;
}

.contents .project-search .user-member__form {
    min-height: 38px;
    padding: 0;
    width: 100%;
    display: flex;
    align-items: center;
}

.contents .project-search > img,
.contents .project-search .user-member__form > img,
.contents .project-search > .svg,
.contents .project-search .user-member__form > .svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    opacity: .72;
}

.contents .project-search .form-control {
    min-height: 38px;
    width: 100%;
    min-width: 0;
    padding: 0;
    background: transparent;
    line-height: 38px;
    color: var(--color-dark);
}

.contents .project-search .form-control::placeholder {
    color: var(--color-light);
    opacity: 1;
}

.contents .project-search:focus-within {
    box-shadow: 0 0 0 3px rgba(130, 49, 211, .10);
}

.contents .crm-lead-toolbar {
    align-items: stretch;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--webasha-border, #e2e8f0);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(146, 153, 184, .08);
}

.contents .crm-lead-toolbar .project-top-left {
    width: 100%;
    align-items: stretch;
    gap: 14px;
    flex-wrap: nowrap !important;
    margin-top: 0 !important;
    margin-bottom: 12px;
}

.contents .crm-lead-toolbar .project-tap {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    margin: 0 !important;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--webasha-border, #e2e8f0);
    border-radius: 8px;
    scrollbar-width: thin;
}

.contents .crm-lead-toolbar .project-tap .nav {
    width: max-content;
    min-width: max-content;
    max-width: none;
    flex-wrap: nowrap !important;
    align-items: center;
}

.contents .crm-lead-toolbar .project-tap .nav-item {
    flex: 0 0 auto;
}

.contents .crm-lead-toolbar .project-tap .nav-link {
    min-width: auto;
    white-space: nowrap;
    padding: 8px 14px;
}

.contents .crm-lead-toolbar .project-search {
    flex: 1 1 420px;
    min-width: 280px;
    margin-left: 0 !important;
}

.contents .crm-lead-toolbar .project-top-right {
    width: 100%;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 0;
}

.contents .crm-lead-toolbar .project-category {
    margin-right: 0 !important;
}

.contents .crm-lead-toolbar .project-category > .d-flex {
    gap: 8px;
}

.contents .crm-lead-toolbar .project-category__select .form-control {
    min-width: 160px;
    min-height: 42px;
    border-radius: 6px;
}

.contents .crm-lead-toolbar .btn {
    flex: 0 0 auto;
    min-height: 42px;
    margin-left: 0 !important;
}

.crm-filter-card {
    overflow: hidden;
}

.crm-filter-form {
    padding: 16px;
}

.crm-filter-grid {
    display: grid;
    grid-template-columns:
        minmax(260px, 1.45fr)
        minmax(170px, 1fr)
        minmax(170px, 1fr)
        minmax(96px, .55fr)
        minmax(96px, .55fr)
        minmax(105px, .58fr)
        minmax(105px, .58fr)
        minmax(210px, .8fr);
    gap: 12px;
    align-items: end;
}

.crm-filter-field {
    min-width: 0;
}

.crm-filter-field label {
    display: block;
    margin-bottom: 8px !important;
    font-size: 13px !important;
    white-space: nowrap;
}

.crm-filter-field .form-control,
.crm-filter-field .project-search {
    height: 40px;
    min-height: 40px;
}

.crm-filter-field .project-search .form-control {
    height: auto;
    min-height: 34px;
    line-height: 34px;
}

.crm-filter-actions {
    display: grid;
    grid-template-columns: minmax(104px, 1fr) minmax(94px, auto);
    gap: 8px;
}

.crm-filter-actions .btn {
    height: 40px;
    min-height: 40px;
    padding: 0 14px;
    margin: 0;
    font-size: 13px;
    white-space: nowrap;
}

.crm-filter-actions .btn i {
    margin-right: 4px;
}

.crm-pricing-matrix .user-group-people {
    padding: 16px 22px 12px;
}

.crm-pricing-matrix .table {
    min-width: 1120px;
}

.crm-pricing-matrix .table thead th {
    padding: 12px 10px;
    background: #f8fafc;
}

.crm-pricing-matrix .table tbody td {
    padding: 14px 10px;
    vertical-align: middle;
    border-top: 1px solid var(--webasha-border, #e2e8f0);
}

.crm-pricing-matrix .userDatatable-content {
    font-size: 13px;
    line-height: 1.45;
}

.crm-pricing-matrix .userDatatable-content strong,
.crm-pricing-matrix .userDatatable-content.fw-600 {
    font-size: 13px;
    line-height: 1.35;
}

.crm-pricing-matrix .dm-tag {
    padding: 3px 8px;
    font-size: 11px;
    line-height: 1.4;
}

.crm-mini-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.crm-mini-actions--end {
    justify-content: flex-end;
    max-width: 250px;
    margin-left: auto;
}

.crm-mini-actions .btn,
.crm-mini-actions form .btn {
    min-height: 32px;
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
    line-height: 32px;
    border-radius: 8px;
    white-space: nowrap;
}

.crm-mini-actions form {
    margin: 0;
}

.crm-quote-view-modal .modal-content {
    overflow: hidden;
}

.crm-quote-view-modal .modal-body {
    background: #f8fafc;
}

.crm-quote-view-modal__frame {
    display: block;
    width: 100%;
    height: min(74vh, 760px);
    min-height: 520px;
    border: 0;
    background: #fff;
}

.crm-package-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.crm-package-card {
    min-height: 100%;
    padding: 18px;
    border: 1px solid var(--webasha-border, #e2e8f0);
    border-radius: 14px;
    background: #f8fafc;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.crm-package-card .public-course-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--webasha-green, #10b981);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.crm-package-card__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--webasha-border, #e2e8f0);
}

.crm-package-card__meta div {
    padding: 12px;
    border-radius: 10px;
    background: #fff;
}

.crm-package-card__meta span {
    display: block;
    color: var(--webasha-muted, #64748b);
    font-size: 12px;
    font-weight: 600;
}

.crm-package-card__meta strong {
    display: block;
    margin-top: 4px;
    color: var(--webasha-navy, #0f172a);
    font-size: 15px;
    line-height: 1.3;
}

.crm-package-card > .btn {
    margin-top: 14px;
}

.crm-scholarship-payment-link {
    padding: 14px;
    background: #f8fafc;
    border: 1px solid var(--webasha-border, #e2e8f0);
    border-radius: 12px;
}

.crm-scholarship-payment-link > span {
    display: block;
    margin-bottom: 8px;
    color: var(--webasha-muted, #64748b);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.crm-scholarship-payment-link > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.crm-scholarship-payment-link code {
    flex: 1 1 auto;
    min-width: 0;
    padding: 9px 11px;
    color: var(--webasha-navy, #0f172a);
    background: #fff;
    border: 1px solid var(--webasha-border, #e2e8f0);
    border-radius: 8px;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.crm-package-card--empty {
    grid-column: 1 / -1;
    background: #fff;
}

.contents .project-category__select .form-control {
    min-width: 190px;
    min-height: 40px;
    border-radius: 6px;
}

.contents .dm-pagination {
    flex-wrap: wrap;
    gap: 0;
}

.crm-template-pagination {
    width: 100%;
    gap: 16px;
}

.crm-template-pagination .dm-page {
    max-width: 100%;
    overflow-x: auto;
}

.crm-template-pagination .dm-pagination {
    align-items: center;
    margin: 0;
    padding: 0;
}

.crm-template-pagination .dm-pagination__item {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.crm-template-pagination .dm-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    margin: 0;
    color: #5a5f7d;
    background: #fff;
    border: 1px solid #e3e6ef;
    border-right: 0;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.crm-template-pagination .dm-pagination__link:first-child {
    border-radius: 6px 0 0 6px;
}

.crm-template-pagination .dm-pagination__link:last-child {
    border-right: 1px solid #e3e6ef;
    border-radius: 0 6px 6px 0;
}

.crm-template-pagination .dm-pagination__link:hover,
.crm-template-pagination .dm-pagination__link.active {
    color: #fff;
    background: #8231d3;
    border-color: #8231d3;
}

.crm-template-pagination .dm-pagination__link.disabled {
    color: #adb4d2;
    background: #fff;
    cursor: not-allowed;
}

.crm-template-pagination .page-number {
    line-height: 1;
}

.contents .form-group,
.crm-action-modal__body .form-group {
    position: relative;
}

.contents input[type="file"].form-control,
.crm-action-modal__body input[type="file"].form-control {
    height: auto;
    padding: 10px 12px;
    background: #fff;
}

.contents input[readonly],
.contents input:disabled,
.contents select:disabled,
.crm-action-modal__body input[readonly],
.crm-action-modal__body input:disabled,
.crm-action-modal__body select:disabled {
    color: #64748b;
    background: #f8fafc;
    cursor: not-allowed;
}

.contents .text-danger.fs-13,
.crm-action-modal__body .text-danger.fs-13 {
    display: block;
    margin-top: 6px;
    font-weight: 600;
}

.contents .button-group,
.crm-action-modal__body .button-group {
    gap: 10px;
}

.contents .media.align-items-start,
.crm-action-modal__body .media.align-items-start {
    min-width: 0;
}

.contents .media-body,
.crm-action-modal__body .media-body {
    min-width: 0;
}

.contents .media-body p,
.contents .media-body span,
.crm-action-modal__body .media-body p,
.crm-action-modal__body .media-body span {
    overflow-wrap: anywhere;
}

.crm-responsive-table td[data-label] {
    /* overflow-wrap: anywhere; */
}

.contents .text-center.py-40,
.contents .text-center.py-30,
.crm-action-modal__body .text-center.py-40,
.crm-action-modal__body .text-center.py-30 {
    margin: 8px;
    padding: 34px 22px !important;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.98));
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
}

.contents .text-center.py-40 i,
.contents .text-center.py-30 i,
.crm-action-modal__body .text-center.py-40 i,
.crm-action-modal__body .text-center.py-30 i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 2px;
    color: var(--webasha-teal) !important;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 999px;
}

.contents .text-center.py-40 h6,
.contents .text-center.py-30 h6,
.crm-action-modal__body .text-center.py-40 h6,
.crm-action-modal__body .text-center.py-30 h6 {
    color: var(--webasha-navy) !important;
    font-size: 15px;
    font-weight: 700;
}

.contents .text-center.py-40 p,
.contents .text-center.py-30 p,
.crm-action-modal__body .text-center.py-40 p,
.crm-action-modal__body .text-center.py-30 p {
    max-width: 430px;
    margin-right: auto;
    margin-left: auto;
    color: var(--webasha-muted) !important;
}

.crm-action-modal .modal-dialog {
    max-width: min(1180px, calc(100vw - 48px));
}

.crm-action-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
}

.crm-action-modal .modal-header,
.crm-action-modal .modal-footer {
    position: sticky;
    z-index: 4;
    background: #fff;
}

.crm-action-modal .modal-header {
    top: 0;
    min-height: 70px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--webasha-border);
}

.crm-action-modal .modal-title {
    color: var(--webasha-navy);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0;
}

.crm-action-modal .modal-header .close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    color: #64748b;
    background: #f1f5f9;
    border: 0;
    border-radius: 999px;
    opacity: 1;
}

.crm-action-modal .modal-header .close:hover {
    color: var(--webasha-navy);
    background: #e2e8f0;
}

.crm-action-modal .modal-body {
    padding: 0;
    background: var(--webasha-bg);
}

.crm-action-modal__body {
    min-height: 380px;
    padding: 26px 24px;
}

.crm-action-modal__page {
    max-width: 100%;
}

.crm-action-modal__page > .row {
    margin-right: -12px;
    margin-left: -12px;
}

.crm-action-modal__page > .row > [class*="col-"] {
    padding-right: 12px;
    padding-left: 12px;
}

.crm-action-modal__body .project-top-wrapper {
    align-items: center;
    padding: 12px 14px;
    margin: 0 0 18px;
    background: #fff;
    border: 1px solid var(--webasha-border);
    border-radius: 14px;
    box-shadow: var(--webasha-shadow-soft);
}

.crm-action-modal__body .project-tap {
    padding: 4px;
    background: #f8fafc;
    border: 1px solid var(--webasha-border);
    border-radius: 10px;
    box-shadow: none;
}

.crm-action-modal__body .project-tap .nav-link,
.crm-action-modal__body .project-tap a {
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
}

.crm-action-modal__body .project-top-left,
.crm-action-modal__body .project-top-right {
    gap: 10px;
}

.crm-action-modal__body .badge,
.crm-action-modal__body .media-badge,
.contents .badge,
.contents .media-badge {
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
}

.crm-action-modal__body .user-group.media-ui {
    margin-bottom: 0;
}

.crm-action-modal__body .user-group .media {
    align-items: flex-start;
    padding: 24px;
}

.crm-action-modal__body .user-group .border-bottom {
    border-color: var(--webasha-border) !important;
}

.crm-action-modal__body .user-group .d-flex.justify-content-between {
    gap: 16px;
    align-items: flex-start;
}

.crm-action-modal__body .user-group .d-flex.justify-content-between > span,
.crm-action-modal__body .user-group .d-flex.justify-content-between > p {
    min-width: 10px;
    color: var(--color-white);
}

.crm-action-modal__body .user-group .d-flex.justify-content-between > .wh-46,
.crm-action-modal__body .user-group .d-flex.justify-content-between > .crm-attendance-stat-icon,
.contents .user-group .d-flex.justify-content-between > .crm-attendance-stat-icon {
    min-width: 46px;
    max-width: 46px;
    color: #fff;
}

.crm-action-modal__body .user-group .d-flex.justify-content-between strong,
.crm-action-modal__body .user-group .d-flex.justify-content-between .fw-500,
.crm-action-modal__body .user-group .d-flex.justify-content-between .fw-600 {
    text-align: right;
    overflow-wrap: anywhere;
}

.crm-action-modal__body .form-group {
    margin-bottom: 20px;
}

.crm-action-modal__body .button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.crm-list-workspace {
    padding-bottom: 10px;
}

.crm-page-heading .breadcrumb-main {
    align-items: center;
}

.crm-page-heading .action-btn {
    align-items: center;
}

.crm-stat-grid {
    margin-top: 2px;
}

.crm-stat-card {
    min-height: 168px;
    padding: 24px !important;
}

.crm-stat-card .media {
    padding: 0 !important;
}

.crm-stat-card__value {
    margin-top: 18px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
}

.crm-stat-card .user-group-progress-top {
    margin-top: 18px;
}

.crm-attendance-stat-card {
    min-height: 150px;
    padding: 22px !important;
}

.crm-attendance-stat-card .crm-stat-card__value {
    margin-top: 0;
}

.crm-attendance-workspace .user-group.media-ui--early .media,
.crm-action-modal__body .crm-attendance-workspace .user-group.media-ui--early .media {
    padding: 0 !important;
}

.crm-attendance-stat-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
}

.crm-attendance-session-card {
    padding: 0 !important;
    overflow: hidden;
}

.crm-attendance-session-header {
    gap: 14px;
    padding: 22px 25px 18px;
}

.crm-attendance-workspace .progress-wrap,
.crm-action-modal__body .crm-attendance-workspace .progress-wrap {
    gap: 10px;
}

.crm-attendance-workspace .progress,
.crm-action-modal__body .crm-attendance-workspace .progress {
    flex: 1 1 auto;
    min-width: 0;
}

.crm-attendance-workspace .progress-percentage,
.crm-action-modal__body .crm-attendance-workspace .progress-percentage {
    flex: 0 0 auto;
    margin-left: 0;
    white-space: nowrap;
}

.crm-attendance-table td,
.crm-attendance-table th {
    vertical-align: middle;
}

.crm-attendance-empty {
    margin: 14px;
    border: 1px dashed rgba(130, 49, 211, 0.22);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.68);
}

.crm-attendance-filter-toolbar {
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap !important;
}

.crm-attendance-filter-toolbar .project-top-left,
.crm-attendance-filter-toolbar .project-top-right {
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap !important;
    margin-top: 0 !important;
}

.crm-attendance-filter-toolbar .project-top-left {
    flex: 1 1 auto;
    min-width: 0;
}

.crm-attendance-filter-toolbar .project-top-right {
    flex: 0 0 auto;
    margin-left: auto;
}

.crm-attendance-filter-toolbar .project-search,
.crm-attendance-filter-toolbar .project-category,
.crm-attendance-filter-toolbar .btn {
    margin: 0 !important;
}

.crm-attendance-filter-toolbar .project-search {
    flex: 0 0 315px;
    width: 315px;
    max-width: 315px;
}

.crm-attendance-filter-toolbar .project-category__select .form-control {
    min-width: 170px;
}

.crm-list-toolbar {
    align-items: center;
    flex-wrap: nowrap !important;
    gap: 14px;
}

.crm-list-toolbar .project-top-left,
.crm-list-toolbar .project-top-right {
    align-items: center;
    flex-wrap: nowrap !important;
    margin-top: 0 !important;
}

.crm-list-toolbar .project-top-left {
    flex: 1 1 auto;
    min-width: 0;
}

.crm-list-toolbar .project-top-right {
    flex: 0 0 auto;
    margin-left: auto;
}

.crm-list-toolbar .project-tap {
    flex: 0 0 auto;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.crm-list-toolbar .project-tap .nav {
    flex-wrap: nowrap;
}

.crm-list-toolbar .project-tap .nav-link {
    min-width: 86px;
}

.crm-search-control {
    flex: 0 1 360px;
    width: 352px;
    min-width: 260px;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.crm-list-toolbar .project-category {
    margin-top: 0;
    margin-bottom: 0;
}

.crm-list-toolbar .project-category__select .form-control {
    width: 222px;
}

.crm-list-toolbar .project-top-right .btn {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.crm-list-toolbar .project-icon-selected {
    display: flex;
    align-items: center;
}

.crm-list-toolbar .icon-list-social__link {
    width: 40px;
    height: 40px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(146, 153, 184, 0.18);
}

.crm-table-card {
    padding: 0 !important;
}

.crm-table-card__header {
    gap: 14px;
    padding: 22px 24px 18px;
}

.crm-table-card__footer {
    padding: 18px 24px 22px !important;
}

.crm-template-table-wrap {
    border: 0 !important;
    border-radius: 0 !important;
}

.crm-template-table {
    table-layout: auto;
}

.crm-template-table thead th {
    padding: 14px 18px;
    white-space: nowrap;
}

.crm-template-table tbody td {
    padding: 16px 18px;
}

.crm-template-table tbody tr:last-child td {
    border-bottom: 0;
}

.crm-student-cell {
    gap: 14px;
    min-width: 220px;
}

.crm-student-avatar {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(130, 49, 211, 0.2);
}

.crm-student-cell__meta {
    min-width: 0;
}

.crm-student-cell__meta strong,
.crm-template-table td strong {
    overflow-wrap: anywhere;
}

.crm-row-actions {
    min-width: 124px;
}

.crm-student-profile-card {
    padding: 0 !important;
    overflow: hidden;
}

.crm-student-profile-card__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 24px 24px;
    text-align: center;
    border-bottom: 1px solid var(--webasha-border);
}

.crm-student-profile-card__avatar {
    width: 86px;
    height: 86px;
    margin-bottom: 16px;
    font-size: 28px;
    font-weight: 700;
    box-shadow: 0 16px 34px rgba(130, 49, 211, 0.24);
}

.crm-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 24px;
}

.crm-detail-tile {
    min-height: 102px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid var(--webasha-border);
    border-radius: 12px;
}

.crm-detail-tile--wide {
    grid-column: 1 / -1;
}

.crm-detail-tile span {
    display: block;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.crm-detail-tile strong {
    color: #0f172a;
    font-size: 15px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.crm-public-admission {
    min-height: 100vh;
    background: var(--crm-bg, #f4f7fb);
    padding: 32px 16px;
}

.crm-public-admission__container {
    width: min(1000px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

.crm-public-admission__header,
.crm-public-admission-card,
.crm-public-admission-help {
    border: 1px solid var(--crm-border, #e2e8f0);
    border-radius: 16px;
    background: var(--crm-surface, #fff);
    box-shadow: var(--crm-shadow, 0 18px 40px rgba(15, 23, 42, .08));
}

.crm-public-admission__header {
    padding: 28px;
    text-align: center;
}

.crm-public-admission__brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--crm-text, #0f172a);
    text-align: left;
}

.crm-public-admission__brand img {
    width: 76px;
    height: auto;
}

.crm-public-admission__brand strong,
.crm-public-admission__brand span {
    display: block;
}

.crm-public-admission__brand strong {
    font-size: 16px;
    line-height: 1.2;
}

.crm-public-admission__brand span {
    color: var(--crm-muted, #64748b);
    font-size: 12px;
}

.crm-public-admission__header h1 {
    margin: 14px 0 8px;
    color: var(--crm-text, #0f172a);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
}

.crm-public-admission__header p {
    width: min(680px, 100%);
    margin: 0 auto;
    color: var(--crm-muted, #64748b);
    font-size: 15px;
    line-height: 1.7;
}

.crm-public-admission__status {
    margin: 0 auto;
}

.crm-public-admission-card {
    padding: 0;
    overflow: hidden;
}

.crm-public-admission-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--crm-border, #e2e8f0);
}

.crm-public-admission-card__header h2 {
    margin: 0;
    color: var(--crm-text, #0f172a);
    font-size: 20px;
    line-height: 1.25;
}

.crm-public-admission-card__header p {
    margin: 6px 0 0;
    color: var(--crm-muted, #64748b);
    font-size: 13px;
}

.crm-public-admission-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 24px;
}

.crm-public-admission-details div {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--crm-border, #e2e8f0);
    border-radius: 12px;
    background: #f8fafc;
}

.crm-public-admission-details span,
.crm-public-admission-feedback span,
.crm-public-admission-field label {
    display: block;
    color: var(--crm-muted, #64748b);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.crm-public-admission-details strong {
    display: block;
    margin-top: 7px;
    color: var(--crm-text, #0f172a);
    font-size: 15px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.crm-public-admission-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 24px;
}

.crm-public-admission-progress div {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--crm-border, #e2e8f0);
    border-radius: 12px;
    background: #f8fafc;
    color: var(--crm-muted, #64748b);
}

.crm-public-admission-progress span {
    display: inline-flex;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef2ff;
    color: var(--crm-primary, #8231d3);
}

.crm-public-admission-progress strong {
    color: inherit;
    font-size: 13px;
    line-height: 1.3;
}

.crm-public-admission-progress .is-done {
    border-color: rgba(0, 170, 85, .2);
    background: rgba(0, 170, 85, .08);
    color: #059669;
}

.crm-public-admission-progress .is-done span {
    background: #00aa55;
    color: #fff;
}

.crm-public-admission-letter {
    padding: 24px;
    color: var(--crm-text, #0f172a);
    line-height: 1.75;
    overflow-wrap: anywhere;
    word-break: normal;
}

.crm-public-admission-letter h1,
.crm-public-admission-letter h2,
.crm-public-admission-letter h3,
.crm-public-admission-letter h4 {
    margin: 0 0 14px;
    color: var(--crm-text, #0f172a);
    line-height: 1.25;
}

.crm-public-admission-letter h3 {
    font-size: 20px;
}

.crm-public-admission-letter p,
.crm-public-admission-letter div,
.crm-public-admission-letter blockquote,
.crm-public-admission-letter ul,
.crm-public-admission-letter ol {
    max-width: 100%;
    margin-bottom: 14px;
}

.crm-public-admission-letter ul,
.crm-public-admission-letter ol {
    padding-left: 24px;
}

.crm-public-admission-letter li {
    margin-bottom: 6px;
}

.crm-public-admission-letter a {
    color: var(--crm-primary, #8231d3);
    text-decoration: underline;
}

.crm-public-admission-checklist {
    display: grid;
    gap: 10px;
    padding: 24px 24px 0;
}

.crm-public-admission-checklist label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid var(--crm-border, #e2e8f0);
    border-radius: 10px;
    background: #f8fafc;
    color: var(--crm-text, #0f172a);
    line-height: 1.5;
}

.crm-public-admission-checklist input {
    flex: 0 0 auto;
    margin-top: 4px;
}

.crm-public-admission-field {
    padding: 18px 24px 0;
}

.crm-public-admission-field label {
    margin-bottom: 8px;
}

.crm-public-admission-field label span {
    color: var(--crm-muted, #64748b);
    font-weight: 600;
    text-transform: none;
}

.crm-public-admission-field .crm-input {
    width: 100%;
    min-height: 112px;
    border: 1px solid var(--crm-border, #e2e8f0);
    border-radius: 10px;
    background: var(--crm-surface, #fff);
    color: var(--crm-text, #0f172a);
    padding: 12px 14px;
    outline: none;
    resize: vertical;
}

.crm-public-admission-submit {
    margin: 18px 24px 24px;
}

.crm-public-admission-confirmed {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 24px;
    padding: 16px;
    border: 1px solid rgba(0, 170, 85, .2);
    border-radius: 12px;
    background: rgba(0, 170, 85, .08);
    color: #059669;
}

.crm-public-admission-confirmed i {
    font-size: 26px;
}

.crm-public-admission-confirmed strong,
.crm-public-admission-confirmed span {
    display: block;
}

.crm-public-admission-feedback {
    margin: 0 24px 24px;
    padding: 16px;
    border: 1px solid var(--crm-border, #e2e8f0);
    border-radius: 12px;
    background: #f8fafc;
}

.crm-public-admission-feedback p {
    margin: 8px 0 0;
    color: var(--crm-text, #0f172a);
}

.crm-public-admission-help {
    padding: 18px 22px;
    color: var(--crm-text, #0f172a);
}

.crm-public-admission-help strong,
.crm-public-admission-help span {
    display: block;
}

.crm-public-admission-help span {
    margin-top: 5px;
    color: var(--crm-muted, #64748b);
    font-size: 13px;
}

@media (max-width: 991.98px) {
    .crm-public-admission {
        padding: 22px 14px;
    }

    .crm-public-admission-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .crm-public-admission-progress {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .crm-public-admission {
        padding: 16px 10px;
    }

    .crm-public-admission__header,
    .crm-public-admission-card__header,
    .crm-public-admission-details,
    .crm-public-admission-progress,
    .crm-public-admission-letter {
        padding: 18px;
    }

    .crm-public-admission__brand {
        align-items: center;
        text-align: center;
        flex-direction: column;
    }

    .crm-public-admission-card__header {
        display: block;
    }

    .crm-public-admission-card__header .crm-login-badge {
        margin-top: 12px;
    }

    .crm-public-admission-details,
    .crm-public-admission-progress {
        grid-template-columns: 1fr;
    }

    .crm-public-admission-checklist {
        padding: 18px 18px 0;
    }

    .crm-public-admission-field {
        padding: 16px 18px 0;
    }

    .crm-public-admission-submit {
        width: calc(100% - 36px);
        margin: 18px;
    }

    .crm-public-admission-confirmed,
    .crm-public-admission-feedback {
        margin: 18px;
    }
}

.crm-lead-form-card {
    padding: 0 !important;
}

.crm-form-section__header {
    gap: 12px;
    padding: 22px 24px 18px;
}

.crm-form-section__body {
    padding: 22px 24px 24px;
}

.crm-student-form-card {
    padding: 0 !important;
    overflow: hidden;
}

.crm-student-form-card .form-group label {
    color: var(--webasha-navy);
    font-size: 13px;
    font-weight: 700;
}

.crm-student-form-card .form-control {
    min-height: 44px;
}

.crm-student-form-card textarea.form-control {
    min-height: 118px;
}

.crm-student-upload-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.crm-student-upload-item {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid var(--webasha-border);
    border-radius: 12px;
}

.crm-student-upload-item__body {
    min-width: 0;
    flex: 1 1 auto;
}

.crm-student-upload-item .form-control[type="file"] {
    width: 100%;
    min-height: 42px;
    padding: 7px 12px;
}

.crm-student-picker-search {
    max-width: 520px;
}

.crm-holiday-row {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(260px, 1fr) 44px;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.crm-holiday-control-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    width: 100%;
}

.crm-holiday-list {
    min-width: 0;
}

.crm-holiday-date {
    width: 100%;
    min-width: 0;
}

.crm-holiday-reason {
    width: 100%;
    min-width: 0;
}

.crm-holiday-remove {
    width: 44px;
    min-width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.crm-holiday-add-btn {
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    padding-left: 16px;
    padding-right: 16px;
}

.crm-student-picker-card {
    min-height: 84px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.crm-student-picker-card:hover {
    border-color: rgba(130, 49, 211, 0.28) !important;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.crm-student-picker-card input[type="checkbox"] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    accent-color: #8231d3;
}

.crm-lead-form .form-control {
    min-height: 44px;
}

.crm-lead-form textarea.form-control {
    min-height: 118px;
}

.crm-phone-group {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.crm-phone-group .crm-phone-code {
    padding-right: 10px;
    padding-left: 10px;
    text-align: center;
    font-weight: 700;
}

.crm-whatsapp-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    color: var(--webasha-navy);
    background: #f8fafc;
    border: 1px solid var(--webasha-border);
    border-radius: 8px;
    cursor: pointer;
}

.crm-whatsapp-toggle input {
    width: 16px;
    height: 16px;
    accent-color: #8231d3;
}

.crm-whatsapp-toggle span {
    font-size: 13px;
    font-weight: 600;
}

.crm-whatsapp-fields.is-hidden {
    display: none;
}

.crm-lead-form-card--optional {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%) !important;
}

.crm-form-actions {
    gap: 10px;
}

.crm-lead-profile-card {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
}

.crm-lead-profile-card__header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 24px 18px;
    border-bottom: 1px solid var(--webasha-border);
}

.crm-lead-profile-card__avatar {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    margin: 0;
    box-shadow: 0 10px 24px rgba(130, 49, 211, 0.24);
}

.crm-lead-profile-card__email {
    max-width: 100%;
    margin-top: 8px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.crm-lead-profile-card__details {
    padding: 8px 24px 18px;
}

.crm-lead-profile-row {
    display: grid;
    grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
    align-items: center;
    min-height: 46px;
    padding: 12px 0;
}

.crm-lead-profile-row span {
    color: #64748b !important;
    font-size: 14px;
    font-weight: 500;
}

.crm-lead-profile-row strong {
    color: #0f172a !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    text-align: right;
    overflow-wrap: anywhere;
}

.crm-offer-widget-card {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
}

.crm-offer-widget-card__header {
    gap: 10px;
    padding: 22px 24px 18px;
}

.crm-offer-widget-card__body {
    padding: 22px 24px 24px;
}

.crm-offer-widget-card .row {
    margin-right: -10px;
    margin-left: -10px;
}

.crm-offer-widget-card .row > [class*="col-"] {
    padding-right: 10px;
    padding-left: 10px;
}

.crm-offer-list {
    display: grid;
    gap: 12px;
}

.crm-offer-list__item {
    padding: 16px;
    background: #f8fafc;
    border: 1px solid var(--webasha-border) !important;
    border-radius: 12px;
}

.crm-offer-list__icon {
    flex: 0 0 46px;
}

.crm-kanban-board {
    gap: 0;
    scroll-snap-type: x proximity;
}

.crm-kanban-column {
    scroll-snap-align: start;
}

.crm-kanban-column__inner {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.crm-kanban-column__header {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
}

.crm-kanban-column__body {
    max-height: 68vh;
    overflow-y: auto;
}

.crm-kanban-card {
    color: inherit;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.crm-kanban-card:hover {
    color: inherit;
    border-color: rgba(16, 185, 129, 0.38) !important;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.09);
    transform: translateY(-2px);
}

.crm-action-modal .modal-footer {
    bottom: 0;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--webasha-border);
    box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.04);
}

.crm-action-modal .modal-footer .btn {
    margin: 0;
}

.crm-finance-account-page .project-progree-breadcrumb {
    margin-bottom: 18px;
}

.crm-finance-kpi-card {
    min-height: 150px;
    padding-right: 22px !important;
    padding-left: 22px !important;
}

.crm-finance-kpi-card .media,
.crm-finance-kpi-card .media-body {
    min-width: 0;
}

.crm-finance-kpi-card .fs-24 {
    display: block;
    max-width: calc(100% - 56px);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.crm-finance-kpi-card .wh-46 {
    flex: 0 0 46px;
}

.crm-finance-panel {
    overflow: hidden;
}

.crm-detail-list {
    display: grid;
    gap: 0;
}

.crm-detail-row {
    display: grid;
    grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 44px;
    padding: 10px 0;
    border-bottom: 1px solid var(--webasha-divider);
}

.crm-detail-row:last-child {
    border-bottom: 0;
}

.crm-detail-row strong {
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
}

.crm-finance-payment-form .form-control,
.crm-finance-payment-form select,
.crm-finance-payment-form textarea {
    min-height: 48px;
    border-color: var(--webasha-border, #e2e8f0);
    border-radius: 8px;
    box-shadow: none;
}

.crm-finance-payment-form textarea {
    min-height: 96px;
}

.crm-action-modal__body .crm-finance-account-page {
    padding: 0;
}

.crm-action-modal__body .crm-finance-account-page .project-progree-breadcrumb {
    display: none;
}

.crm-action-modal__body .crm-finance-kpis {
    margin-right: -8px;
    margin-bottom: 8px;
    margin-left: -8px;
}

.crm-action-modal__body .crm-finance-kpis > [class*="col-"] {
    padding-right: 8px;
    padding-left: 8px;
    margin-bottom: 16px !important;
}

.crm-action-modal__body .crm-finance-kpi-card {
    min-height: 132px;
    padding: 18px !important;
}

.crm-action-modal__body .crm-finance-kpi-card .media {
    padding: 0;
}

.crm-action-modal__body .crm-finance-kpi-card h6 {
    margin-bottom: 8px !important;
    font-size: 13px;
}

.crm-action-modal__body .crm-finance-kpi-card .fs-24 {
    font-size: 21px !important;
}

.crm-action-modal__body .crm-finance-kpi-card .user-group-progress-top {
    margin-top: 13px;
}

.crm-action-modal__body .crm-finance-kpi-card .progress-wrap {
    gap: 10px;
}

.crm-action-modal__body .crm-finance-kpi-card .progress {
    min-width: 0;
}

.crm-action-modal__body .crm-finance-panel {
    box-shadow: none;
}

.crm-action-modal__body .crm-finance-panel > .border-bottom {
    padding: 18px 20px 14px !important;
    margin-bottom: 0 !important;
}

.crm-action-modal__body .crm-finance-panel > .px-25 {
    padding: 18px 20px !important;
}

.crm-action-modal__body .crm-detail-row {
    min-height: 42px;
    padding: 9px 0;
}

.crm-action-modal__body .crm-finance-payment-form .form-group {
    margin-bottom: 16px;
}

.crm-action-modal__body .crm-finance-payment-form .form-control,
.crm-action-modal__body .crm-finance-payment-form select {
    min-height: 46px;
}

.crm-action-modal__body .crm-finance-payment-form .btn {
    min-height: 42px;
    padding: 9px 16px;
}

@media (max-width: 575.98px) {
    .crm-finance-kpi-card .fs-24 {
        max-width: none;
        font-size: 19px !important;
    }

    .crm-finance-kpi-card .d-flex.align-items-center.justify-content-between {
        gap: 12px;
    }

    .crm-detail-row {
        grid-template-columns: 1fr;
        gap: 4px;
        align-items: flex-start;
    }

    .crm-detail-row strong {
        text-align: left;
    }

    .crm-action-modal__body .crm-finance-kpi-card {
        min-height: auto;
    }
}

.crm-confirm-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
}

.crm-confirm-modal .modal-header,
.crm-confirm-modal .modal-footer {
    padding: 16px 20px;
    border-color: var(--webasha-border);
}

.crm-confirm-modal .modal-body {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 22px 20px;
}

.crm-confirm-modal .close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    color: #64748b;
    background: #f1f5f9;
    border: 0;
    border-radius: 999px;
    opacity: 1;
}

.crm-confirm-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    color: #b91c1c;
    background: #fee2e2;
    border-radius: 999px;
    font-size: 24px;
}

.crm-confirm-modal__message {
    color: var(--webasha-navy);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
}

.crm-page-hero {
    padding: 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
}

.crm-page-hero__inner {
    gap: 18px;
    min-height: 118px;
    padding: 24px 26px !important;
}

.crm-page-hero__copy {
    min-width: 0;
    flex: 1 1 460px;
}

.crm-page-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.crm-page-hero__title {
    color: var(--webasha-navy) !important;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.crm-page-hero__subtitle {
    max-width: 780px;
    color: var(--webasha-muted) !important;
    line-height: 1.55;
}

.crm-page-hero__actions {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.crm-kpi-row {
    align-items: stretch;
}

.crm-kpi-card {
    position: relative;
    min-height: 128px;
    padding: 22px !important;
    overflow: hidden;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.crm-kpi-card::after {
    position: absolute;
    right: -32px;
    top: -38px;
    width: 112px;
    height: 112px;
    content: "";
    background: rgba(130, 49, 211, 0.07);
    border-radius: 999px;
}

.crm-kpi-card:hover {
    border-color: rgba(130, 49, 211, 0.24);
    transform: translateY(-2px);
}

.crm-kpi-card .media {
    position: relative;
    z-index: 1;
    gap: 16px;
    padding: 0 !important;
}

.crm-kpi-card__label {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
}

.crm-kpi-card__value {
    margin-top: 8px;
    color: var(--webasha-navy) !important;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
}

.crm-kpi-card__caption {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.crm-kpi-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 999px;
    font-size: 18px;
}

.crm-kpi-card__progress {
    position: relative;
    z-index: 1;
    gap: 12px;
    margin-top: 18px;
}

.crm-kpi-card__progress .progress {
    height: 5px;
    background: #edf2f7;
    border-radius: 999px;
}

.crm-kpi-card__progress .progress-bar {
    border-radius: 999px;
}

.crm-kpi-card__progress .progress-percentage {
    margin-left: 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.crm-sales-panel {
    overflow: hidden;
}

.crm-sales-quick-actions {
    gap: 10px;
    row-gap: 10px;
}

.crm-sales-quick-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    white-space: nowrap;
}

.crm-sales-work-grid,
.crm-sales-activity-grid,
.crm-sales-target-grid {
    display: grid;
    gap: 12px;
}

.crm-sales-work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.crm-sales-activity-grid,
.crm-sales-target-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.crm-sales-mini-card,
.crm-sales-activity-card,
.crm-sales-target-grid > div {
    border: 1px solid #edf2f7;
    border-radius: 10px;
    background: #f8fafc;
}

.crm-sales-mini-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.crm-sales-mini-card:hover,
.crm-sales-kpi-card:hover {
    border-color: rgba(130, 49, 211, 0.28);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.crm-sales-mini-card strong,
.crm-sales-mini-card small,
.crm-sales-kpi-card span,
.crm-sales-kpi-card strong,
.crm-sales-target-grid span,
.crm-sales-target-grid strong,
.crm-sales-activity-card i,
.crm-sales-activity-card strong,
.crm-sales-activity-card span {
    display: block;
}

.crm-sales-mini-card strong,
.crm-sales-activity-card strong {
    font-size: 18px;
    line-height: 1.1;
}

.crm-sales-mini-card small,
.crm-sales-activity-card span,
.crm-sales-target-grid span {
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
}

.crm-sales-target-grid > div,
.crm-sales-activity-card {
    padding: 12px;
}

.crm-sales-target-grid strong {
    margin-top: 3px;
    color: var(--webasha-navy);
    font-size: 13px;
    font-weight: 700;
}

.crm-sales-kpi-card {
    height: 100%;
    padding: 22px;
    color: inherit;
    border: 1px solid #e5edf5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.crm-sales-kpi-card__value strong {
    color: var(--webasha-navy);
    font-size: 20px;
    line-height: 1.2;
}

.crm-sales-kpi-card__value span {
    margin-top: 2px;
    color: #8231d3;
    font-size: 13px;
    font-weight: 700;
}

.crm-sales-kpi-card .progress,
.crm-sales-aging-row .progress {
    height: 5px;
    border-radius: 999px;
    background: #eef2f7;
}

.crm-sales-aging-list,
.crm-sales-funnel {
    display: grid;
    gap: 10px;
}

.crm-sales-aging-row {
    display: grid;
    grid-template-columns: minmax(90px, 1fr) auto;
    gap: 8px 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
}

.crm-sales-aging-row:last-child {
    border-bottom: 0;
}

.crm-sales-aging-row span {
    color: #5a5f7d;
    font-size: 13px;
}

.crm-sales-aging-row strong {
    color: var(--webasha-navy);
}

.crm-sales-aging-row .progress {
    grid-column: 1 / -1;
}

.crm-sales-funnel__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    background: #f8fafc;
}

.crm-sales-funnel__row span {
    color: var(--webasha-navy);
    font-weight: 600;
}

.crm-sales-funnel__row strong,
.crm-sales-funnel__row small {
    color: #8231d3;
    font-weight: 700;
}

.crm-sales-activity-card i {
    margin-bottom: 7px;
    font-size: 18px;
}

.crm-offer-page .crm-kpi-card,
.crm-offer-panel {
    border-color: #dbe3ef;
}

.crm-offer-workspace {
    align-items: stretch;
}

.crm-offer-panel {
    padding: 0 !important;
}

.crm-offer-panel > .user-group-people {
    padding: 22px 24px 18px !important;
}

.crm-offer-panel form.p-25 {
    padding: 22px 24px 24px !important;
}

.crm-offer-panel--form .crm-offer-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 18px;
}

.crm-offer-panel--form .crm-offer-form-grid > .form-group {
    margin-bottom: 0;
}

.crm-offer-panel--form .crm-offer-form-grid > .row,
.crm-offer-panel--form .crm-offer-form-grid > .crm-offer-row,
.crm-offer-panel--form .crm-offer-form-grid > .crm-offer-compact-row,
.crm-offer-panel--form .crm-offer-form-grid > .crm-offer-price-summary,
.crm-offer-panel--form .crm-offer-form-grid > .bg-lighter,
.crm-offer-panel--form .crm-offer-form-grid > button {
    grid-column: 1 / -1;
}

.crm-offer-panel--form .crm-offer-form-grid > button {
    width: auto !important;
    justify-self: start;
    min-width: 190px;
}

.crm-offer-panel--form .form-control {
    min-height: 44px;
}

.crm-offer-lead-select {
    position: relative;
}

.crm-offer-lead-select .crm-input-icon {
    position: relative;
}

.crm-offer-lead-select .crm-input-icon > i {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 2;
    color: #8231d3;
    transform: translateY(-50%);
}

.crm-offer-lead-select .crm-input-icon .form-control {
    padding-left: 42px !important;
}

.crm-offer-lead-select__menu {
    position: absolute;
    top: 48px;
    right: 0;
    left: 0;
    z-index: 40;
    max-height: 280px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #dce6f1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
}

.crm-offer-lead-select__option {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid #edf2f7;
    background: transparent;
    color: #5a5f7d;
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.crm-offer-lead-select__option:last-child {
    border-bottom: 0;
}

.crm-offer-lead-select__option:hover,
.crm-offer-lead-select__option:focus {
    color: var(--webasha-navy);
    background: rgba(130, 49, 211, 0.08);
    outline: none;
}

.crm-offer-lead-select__option strong,
.crm-offer-lead-select__option span {
    display: block;
    line-height: 1.35;
}

.crm-offer-lead-select__option strong {
    margin-bottom: 4px;
    color: var(--webasha-navy);
    font-size: 13px;
    font-weight: 700;
}

.crm-offer-lead-select__option span {
    color: #64748b;
    font-size: 12px;
}

.crm-offer-lead-select__empty {
    padding: 14px;
    color: #64748b;
    font-size: 13px;
}

.crm-quote-workflow .user-group-people {
    padding: 18px 24px !important;
}

.crm-quote-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 18px;
}

.crm-quote-form-grid .form-group {
    margin-bottom: 0;
}

.crm-quote-form-grid__wide {
    grid-column: span 2;
}

.crm-quote-history-table th,
.crm-quote-history-table td {
    white-space: nowrap;
}

.crm-quote-history-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.crm-quote-history-row:hover {
    background: rgba(130, 49, 211, 0.04);
}

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

.crm-quote-detail-grid > div,
.crm-quote-public-link {
    padding: 14px;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    background: #f8fafc;
}

.crm-quote-detail-grid span {
    display: block;
    color: #64748b;
    font-size: 12px;
}

.crm-quote-detail-grid strong {
    display: block;
    margin-top: 4px;
    color: var(--webasha-navy);
    font-size: 13px;
    word-break: break-word;
}

.crm-quote-public-link code {
    display: block;
    color: #5a5f7d;
    white-space: normal;
    word-break: break-all;
}

.crm-quote-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.crm-quote-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    margin: 0;
    padding: 9px 13px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #5a5f7d;
    font-size: 13px;
    font-weight: 600;
}

.crm-quote-check input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #8231d3;
}

.crm-quote-submit-bar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px -24px -24px;
    padding: 14px 24px;
    border-top: 1px solid #edf2f7;
    border-radius: 0 0 10px 10px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
}

.crm-offer-panel--form label.btn {
    min-height: 58px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.crm-offer-panel--form label.btn:has(input:checked) {
    border-color: rgba(130, 49, 211, 0.32);
    background: rgba(130, 49, 211, 0.08);
    color: var(--webasha-navy);
}

.crm-offer-row {
    display: grid;
    gap: 16px 18px;
    align-items: start;
}

.crm-offer-row .form-group {
    margin-bottom: 0;
}

.crm-offer-row--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.crm-offer-row--lead-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.crm-offer-row--operations {
    grid-template-columns: minmax(180px, 1fr) minmax(300px, 1.45fr) minmax(150px, 0.7fr) minmax(210px, 1fr);
}

.crm-offer-row--closing {
    grid-template-columns: minmax(160px, 0.8fr) minmax(180px, 0.9fr) minmax(260px, 1.25fr) auto;
    align-items: end;
}

.crm-offer-pricing-type {
    min-width: 0;
}

.crm-offer-segment {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.crm-offer-segment__item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    margin-bottom: 0;
    cursor: pointer;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.crm-offer-segment__item:hover,
.crm-offer-segment__item:has(input:checked) {
    background: rgba(130, 49, 211, 0.08);
    border-color: rgba(130, 49, 211, 0.35);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.crm-offer-segment__item input {
    flex: 0 0 auto;
}

.crm-offer-segment__item strong,
.crm-offer-segment__item small {
    display: block;
    line-height: 1.25;
}

.crm-offer-segment__item strong {
    color: var(--webasha-navy);
    font-size: 13px;
    font-weight: 700;
}

.crm-offer-segment__item small {
    color: #64748b;
    font-size: 11px;
    margin-top: 2px;
}

.crm-offer-price-summary {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 54%, rgba(16, 185, 129, 0.08) 100%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.crm-offer-price-summary__metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, auto));
    gap: 12px;
    align-items: stretch;
}

.crm-offer-price-summary__metrics > div {
    min-width: 120px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 10px;
}

.crm-offer-price-summary__metrics span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.crm-offer-price-summary__metrics strong {
    display: block;
    margin-top: 4px;
    color: var(--webasha-navy);
    font-size: 15px;
    font-weight: 800;
}

.crm-offer-price-summary__final {
    border-color: rgba(16, 185, 129, 0.28) !important;
    background: rgba(16, 185, 129, 0.08) !important;
}

.crm-offer-price-summary__final strong {
    color: #0f766e;
    font-size: 18px;
}

.crm-offer-price-summary__badges {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.crm-offer-submit {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
}

.crm-offer-submit .btn {
    min-height: 44px;
    white-space: nowrap;
}

.crm-offer-compact-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px 18px;
}

.crm-offer-compact-row .form-group {
    margin-bottom: 0;
}

.crm-offer-panel .form-group {
    margin-bottom: 18px;
}

.crm-offer-panel .bg-lighter.radius-xl {
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
}

.crm-offer-panel--links .table-responsive {
    border-right: 0;
    border-left: 0;
}

.crm-offer-filter-form .row {
    row-gap: 6px;
}

.crm-offer-filter-form .form-control {
    min-height: 42px;
}

.crm-offer-filter-form .btn {
    min-height: 42px;
}

.crm-offer-table {
    min-width: 1180px;
}

.crm-offer-table .userDatatable-content strong {
    color: var(--webasha-navy);
}

.crm-offer-table input[readonly] {
    min-width: 230px;
    height: 34px;
    min-height: 34px;
    font-size: 12px;
}

.crm-offer-table .btn-xs {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
}

.certificate-admin-actions .btn-xs {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
}

.certificate-admin-actions form {
    margin: 0;
}

.gap-5 {
    gap: 1rem !important;
}

.crm-offer-table .dm-tag {
    margin-top: 2px;
    margin-bottom: 2px;
}

.crm-offer-card-list {
    display: grid;
    gap: 14px;
    padding: 20px;
}

.crm-offer-track-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(210px, 1.15fr) minmax(250px, 1.3fr) minmax(140px, 0.75fr) minmax(140px, 0.8fr) minmax(220px, 1.1fr) minmax(190px, 0.95fr);
    gap: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.crm-offer-track-card:hover {
    transform: translateY(-1px);
    border-color: rgba(130, 49, 211, 0.22);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}

.crm-offer-track-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    content: "";
    background: #8231d3;
}

.crm-offer-track-card.is-paid::before,
.crm-offer-track-card.is-active::before {
    background: #10b981;
}

.crm-offer-track-card.is-hot::before,
.crm-offer-track-card.is-verify::before {
    background: #f59e0b;
}

.crm-offer-track-card.is-expired::before {
    background: #ef4444;
}

.crm-offer-track-card > div {
    min-width: 0;
    padding: 18px 20px;
    border-right: 1px solid #edf2f7;
}

.crm-offer-track-card > div:last-child {
    border-right: 0;
}

.crm-offer-track-card__customer {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.crm-offer-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, #8231d3, #5f63f2);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(130, 49, 211, 0.2);
}

.crm-copy-token {
    padding: 0;
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    background: transparent;
    border: 0;
}

.crm-offer-amount {
    display: block;
    color: var(--webasha-navy);
    font-size: 16px;
    font-weight: 800;
}

.crm-offer-url {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    max-width: 330px;
    min-height: 34px;
    padding: 7px 10px;
    margin-top: 10px;
    color: #5f63f2;
    font-size: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.crm-offer-url span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crm-offer-url button {
    padding: 0;
    color: #5f63f2;
    background: transparent;
    border: 0;
}

.crm-offer-card-label {
    display: block;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.crm-offer-timeline {
    padding: 0;
    margin: 0 0 8px;
    list-style: none;
}

.crm-offer-timeline li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
    color: #64748b;
    font-size: 12px;
}

.crm-offer-timeline li span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--webasha-navy);
    font-weight: 700;
}

.crm-offer-timeline li i {
    color: #94a3b8;
}

.crm-offer-timeline li.is-done i {
    color: #10b981;
}

.crm-offer-timeline li strong {
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    text-align: right;
}

.crm-offer-primary-actions,
.crm-offer-secondary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.crm-offer-primary-actions {
    margin-bottom: 10px;
}

.crm-offer-primary-actions .btn,
.crm-offer-secondary-actions .btn {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 12px;
}

.crm-payment-queue {
    padding: 0 !important;
    border-color: #dbe3ef;
}

.crm-payment-queue > .user-group-people {
    padding: 22px 24px 18px !important;
}

.crm-payment-queue__list {
    display: grid;
    gap: 12px;
    padding: 20px;
}

.crm-payment-card {
    display: grid;
    grid-template-columns: minmax(230px, 1.2fr) minmax(230px, 1.2fr) minmax(150px, 0.75fr) minmax(150px, 0.75fr) minmax(250px, auto);
    gap: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dbe3ef;
    border-left: 4px solid #f59e0b;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.055);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.crm-payment-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.095);
}

.crm-payment-card > div {
    min-width: 0;
    padding: 18px 20px;
    border-right: 1px solid #edf2f7;
}

.crm-payment-card > div:last-child {
    border-right: 0;
}

.crm-payment-card__customer {
    display: flex;
    gap: 14px;
    align-items: center;
}

.crm-payment-card__amount strong {
    display: block;
    color: #0f766e;
    font-size: 18px;
    font-weight: 800;
}

.crm-payment-card__meta strong {
    display: block;
    color: var(--webasha-navy);
    font-size: 14px;
    font-weight: 800;
}

.crm-payment-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.crm-payment-card__actions .btn {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 12px;
}

.crm-payment-proof-modal .modal-content,
.crm-payment-verify-modal .modal-content {
    overflow: hidden;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.crm-payment-proof-modal .modal-header,
.crm-payment-proof-modal .modal-footer,
.crm-payment-verify-modal .modal-header,
.crm-payment-verify-modal .modal-footer {
    padding: 18px 22px;
    border-color: #e2e8f0;
}

.crm-payment-proof-modal .modal-body {
    padding: 0;
    background: #f1f5f9;
}

.crm-payment-proof-frame {
    display: block;
    width: 100%;
    height: min(72vh, 760px);
    border: 0;
    background: #fff;
}

.crm-payment-confirm-box {
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.crm-payment-confirm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.crm-payment-confirm-grid > div {
    padding: 14px;
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 10px;
}

.crm-payment-confirm-grid span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.crm-payment-confirm-grid strong {
    display: block;
    margin-top: 4px;
    color: var(--webasha-navy);
    font-size: 14px;
}

.crm-offer-review-modal .modal-content {
    overflow: hidden;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.crm-offer-review-modal .modal-header,
.crm-offer-review-modal .modal-footer {
    padding: 18px 22px;
    border-color: #e2e8f0;
}

.crm-offer-review-modal .modal-body {
    background: #f8fafc;
}

.crm-review-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.crm-review-section {
    min-width: 0;
    padding: 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.crm-review-section__head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #edf2f7;
}

.crm-review-section__head > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    color: #8231d3;
    background: rgba(130, 49, 211, 0.1);
    border-radius: 12px;
}

.crm-review-section__head h6 {
    margin-bottom: 3px;
    color: var(--webasha-navy);
    font-weight: 700;
}

.crm-review-section__head p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

.crm-review-detail-grid,
.crm-review-data-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.crm-review-detail-grid > div,
.crm-review-data-list > div {
    min-width: 0;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 10px;
}

.crm-review-detail-grid > .span-2 {
    grid-column: 1 / -1;
}

.crm-review-detail-grid span,
.crm-review-data-list span {
    display: block;
    margin-bottom: 5px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.crm-review-detail-grid strong,
.crm-review-data-list strong {
    display: block;
    overflow-wrap: anywhere;
    color: var(--webasha-navy);
    font-size: 13px;
    font-weight: 700;
}

.crm-copy-field {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    margin-top: 8px;
    padding: 0 9px;
    color: #8231d3;
    background: rgba(130, 49, 211, .08);
    border: 1px solid rgba(130, 49, 211, .16);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.crm-document-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.crm-document-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 12px;
}

.crm-document-card__preview {
    display: grid;
    place-items: center;
    min-height: 92px;
    overflow: hidden;
    color: #8231d3;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.crm-document-card__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.crm-document-card__preview i {
    font-size: 30px;
}

.crm-document-card__preview span {
    font-size: 12px;
    font-weight: 800;
}

.crm-document-card h6 {
    margin-bottom: 4px;
    color: var(--webasha-navy);
    font-weight: 700;
}

.crm-document-card p {
    margin-bottom: 10px;
    color: #64748b;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.crm-review-timeline {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.crm-review-timeline li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    color: #64748b;
    font-size: 12px;
}

.crm-review-timeline i {
    color: #94a3b8;
}

.crm-review-timeline li.is-done i {
    color: #10b981;
}

.crm-review-timeline span {
    color: var(--webasha-navy);
    font-weight: 700;
}

.crm-review-timeline strong {
    color: #64748b;
    font-size: 11px;
    text-align: right;
}

.crm-review-note-box {
    min-height: 116px;
    padding: 14px;
    color: var(--webasha-navy);
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    overflow-wrap: anywhere;
}

.crm-proof-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(58vh, 560px);
    overflow: hidden;
    background: #e2e8f0;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
}

.crm-proof-preview img {
    display: block;
    max-width: 100%;
    max-height: min(58vh, 560px);
    object-fit: contain;
}

.crm-proof-preview iframe {
    display: block;
    width: 100%;
    height: min(58vh, 560px);
    border: 0;
    background: #fff;
}

.crm-proof-preview__fallback {
    display: grid;
    gap: 10px;
    place-items: center;
    padding: 35px;
    color: #64748b;
    text-align: center;
}

.crm-proof-preview__fallback i {
    color: #8231d3;
    font-size: 36px;
}

.crm-review-modal-footer {
    gap: 8px;
}

.crm-review-modal-footer form {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin: 0;
}

.crm-review-reject-form {
    flex: 1 1 340px;
    justify-content: flex-end;
}

.crm-review-reject-form .form-control {
    max-width: 290px;
    min-height: 34px;
    font-size: 12px;
}

.certificate-details-accordion {
    border: 0;
}

.certificate-details-card {
    overflow: hidden;
    border: 1px solid var(--webasha-border);
    border-radius: 10px;
    background: #fff;
}

.certificate-details-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 58px;
    padding: 12px 18px;
    color: var(--webasha-navy);
    text-align: left;
    background: #fff;
    border: 0;
    border-bottom: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.certificate-details-toggle:hover,
.certificate-details-toggle[aria-expanded="true"] {
    color: var(--color-primary, #8231d3);
    background: rgba(var(--color-primary-rgba, 130, 49, 211), 0.06);
    border-bottom-color: var(--webasha-divider);
}

.certificate-details-toggle__content {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.certificate-details-toggle__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    color: var(--color-primary, #8231d3);
    background: rgba(var(--color-primary-rgba, 130, 49, 211), 0.1);
    border-radius: 8px;
}

.certificate-details-toggle__title,
.certificate-details-toggle__meta {
    display: block;
}

.certificate-details-toggle__title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.certificate-details-toggle__meta {
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}

.certificate-details-toggle__arrow {
    flex: 0 0 auto;
    color: #8c90a4;
    font-size: 18px;
    transition: transform 0.2s ease;
}

.certificate-details-toggle[aria-expanded="true"] .certificate-details-toggle__arrow {
    transform: rotate(180deg);
}

.certificate-details-panel {
    padding: 18px 18px 0;
    background: #fff;
}

.crm-scholarship-approve-modal {
    z-index: 10050 !important;
}

.crm-scholarship-approve-modal .modal-dialog {
    max-width: min(620px, calc(100vw - 28px));
    position: relative;
    z-index: 10051;
}

.crm-scholarship-approve-modal .modal-content {
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

.crm-scholarship-approve-modal .modal-header {
    align-items: flex-start;
    gap: 16px;
    padding: 20px 22px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.crm-scholarship-approve-modal__title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.crm-scholarship-approve-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgba), 0.1);
    border: 1px solid rgba(var(--color-primary-rgba), 0.18);
    border-radius: 12px;
    font-size: 20px;
}

.crm-scholarship-approve-modal .modal-title {
    color: var(--webasha-navy);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
}

.crm-modal-icon-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.2s ease;
}

.crm-modal-icon-close:hover {
    color: #fff;
    background: #ef4444;
    border-color: #ef4444;
}

.crm-scholarship-approve-modal .modal-body {
    padding: 22px;
    background: #f8fafc;
}

.crm-scholarship-approve-modal .crm-payment-confirm-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.crm-scholarship-approve-modal__notice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 14px;
    padding: 12px 14px;
    color: #0f766e;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.crm-scholarship-approve-modal__notice i {
    margin-top: 1px;
    font-size: 17px;
}

.crm-scholarship-approve-modal .crm-payment-confirm-grid > div {
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.crm-scholarship-approve-modal .modal-footer {
    gap: 10px;
    padding: 16px 22px 20px;
    background: #fff;
}

.crm-scholarship-approve-modal .modal-footer form {
    margin: 0;
}

.crm-scholarship-approve-modal .modal-footer .btn {
    min-height: 34px;
    padding: 7px 13px;
}

.crm-offer-hero .dm-tag {
    min-height: 32px;
    padding: 7px 12px;
}

.crm-offer-hero .btn {
    min-height: 38px;
}

html[data-theme="dark"] .side-menu .contents,
html[data-theme="dark"] .crm-content,
html[data-theme="dark"] .crm-action-modal .modal-body {
    background: #0f172a;
}

html[data-theme="dark"] .crm-action-modal .modal-header,
html[data-theme="dark"] .crm-action-modal .modal-footer,
html[data-theme="dark"] .crm-action-modal__body .project-top-wrapper,
html[data-theme="dark"] .crm-action-modal__body .user-group.media-ui,
html[data-theme="dark"] .contents .user-group.media-ui,
html[data-theme="dark"] .contents .card {
    color: #e2e8f0;
    background: #111827;
    border-color: #263449;
}

html[data-theme="dark"] .crm-action-modal .modal-title,
html[data-theme="dark"] .contents label,
html[data-theme="dark"] .crm-action-modal__body label {
    color: #f8fafc;
}

html[data-theme="dark"] .crm-lead-profile-card__header,
html[data-theme="dark"] .crm-lead-profile-row.border-bottom {
    border-color: #263449 !important;
}

html[data-theme="dark"] .crm-lead-profile-row span {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .crm-lead-profile-row strong {
    color: #f8fafc !important;
}

html[data-theme="dark"] .crm-action-modal__body .project-tap,
html[data-theme="dark"] .contents .project-top-wrapper,
html[data-theme="dark"] .contents .project-search,
html[data-theme="dark"] .contents .table-responsive,
html[data-theme="dark"] .crm-template-pagination .dm-pagination__link,
html[data-theme="dark"] .crm-detail-tile,
html[data-theme="dark"] .crm-offer-list__item,
html[data-theme="dark"] .crm-kanban-card,
html[data-theme="dark"] .contents .table thead th,
html[data-theme="dark"] .crm-action-modal__body .table thead th {
    background: #172033;
    border-color: #263449;
    color: #cbd5e1;
}

html[data-theme="dark"] .crm-template-pagination .dm-pagination__link:hover,
html[data-theme="dark"] .crm-template-pagination .dm-pagination__link.active {
    color: #fff;
    background: #8231d3;
    border-color: #8231d3;
}

html[data-theme="dark"] .crm-template-pagination .dm-pagination__link.disabled {
    color: #64748b;
    background: #111827;
}

html[data-theme="dark"] .contents .project-tap,
html[data-theme="dark"] .contents .project-search,
html[data-theme="dark"] .crm-kanban-column__header {
    background: #111827;
    border-color: #263449;
}

html[data-theme="dark"] .crm-attendance-empty {
    background: #0b1220;
    border-color: #334155;
}

html[data-theme="dark"] .contents .project-tap .nav-link.active,
html[data-theme="dark"] .contents .project-tap .nav-link:hover,
html[data-theme="dark"] .contents .table tbody tr:hover {
    color: #f8fafc;
    background: #1e293b;
}

html[data-theme="dark"] .crm-package-card {
    background: #172033;
    border-color: #263449;
}

html[data-theme="dark"] .crm-package-card__meta,
html[data-theme="dark"] .crm-package-card__meta div {
    border-color: #263449;
}

html[data-theme="dark"] .crm-package-card__meta div {
    background: #111827;
}

html[data-theme="dark"] .crm-package-card__meta strong {
    color: #f8fafc;
}

html[data-theme="dark"] .crm-offer-segment__item,
html[data-theme="dark"] .crm-offer-lead-select__menu,
html[data-theme="dark"] .crm-offer-price-summary__metrics > div {
    color: #e2e8f0;
    background: #101827;
    border-color: #334155;
}

html[data-theme="dark"] .crm-offer-segment__item:hover,
html[data-theme="dark"] .crm-offer-lead-select__option:hover,
html[data-theme="dark"] .crm-offer-lead-select__option:focus,
html[data-theme="dark"] .crm-offer-segment__item:has(input:checked) {
    background: rgba(130, 49, 211, 0.18);
    border-color: rgba(130, 49, 211, 0.5);
}

html[data-theme="dark"] .crm-offer-segment__item strong,
html[data-theme="dark"] .crm-offer-lead-select__option strong,
html[data-theme="dark"] .crm-offer-price-summary__metrics strong,
html[data-theme="dark"] .crm-offer-price-summary h5 {
    color: #f8fafc;
}

html[data-theme="dark"] .crm-offer-segment__item small,
html[data-theme="dark"] .crm-offer-lead-select__option span,
html[data-theme="dark"] .crm-offer-lead-select__empty,
html[data-theme="dark"] .crm-offer-price-summary__metrics span {
    color: #94a3b8;
}

html[data-theme="dark"] .crm-offer-lead-select__option {
    border-color: #263449;
}

html[data-theme="dark"] .crm-quote-detail-grid > div,
html[data-theme="dark"] .crm-quote-public-link {
    border-color: #263449;
    background: #111827;
}

html[data-theme="dark"] .crm-quote-detail-grid strong {
    color: #f8fafc;
}

html[data-theme="dark"] .crm-quote-history-row:hover {
    background: rgba(130, 49, 211, 0.14);
}

html[data-theme="dark"] .crm-quote-check,
html[data-theme="dark"] .crm-quote-submit-bar {
    border-color: #263449;
    background: rgba(17, 24, 39, 0.96);
    color: #cbd5e1;
}

html[data-theme="dark"] .crm-offer-price-summary {
    background: linear-gradient(135deg, #101827 0%, #0f172a 58%, rgba(15, 118, 110, 0.16) 100%);
    border-color: #263449;
}

html[data-theme="dark"] .crm-offer-price-summary__final {
    background: rgba(15, 118, 110, 0.2) !important;
    border-color: rgba(45, 212, 191, 0.26) !important;
}

html[data-theme="dark"] .crm-offer-track-card {
    background: #111827;
    border-color: #263449;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .crm-offer-track-card > div {
    border-color: #263449;
}

html[data-theme="dark"] .crm-offer-track-card h6,
html[data-theme="dark"] .crm-offer-amount,
html[data-theme="dark"] .crm-offer-timeline li span {
    color: #f8fafc;
}

html[data-theme="dark"] .crm-offer-url {
    background: #0b1220;
    border-color: #334155;
}

html[data-theme="dark"] .crm-payment-proof-modal .modal-content,
html[data-theme="dark"] .crm-payment-verify-modal .modal-content,
html[data-theme="dark"] .crm-payment-proof-modal .modal-header,
html[data-theme="dark"] .crm-payment-proof-modal .modal-footer,
html[data-theme="dark"] .crm-payment-verify-modal .modal-header,
html[data-theme="dark"] .crm-payment-verify-modal .modal-footer {
    color: #e2e8f0;
    background: #111827;
    border-color: #263449;
}

html[data-theme="dark"] .crm-payment-proof-modal .modal-body {
    background: #0f172a;
}

html[data-theme="dark"] .crm-payment-confirm-box,
html[data-theme="dark"] .crm-payment-confirm-grid > div {
    background: #101827;
    border-color: #334155;
}

html[data-theme="dark"] .crm-payment-confirm-grid strong,
html[data-theme="dark"] .crm-payment-confirm-box h6 {
    color: #f8fafc;
}

html[data-theme="dark"] .crm-offer-review-modal .modal-content,
html[data-theme="dark"] .crm-offer-review-modal .modal-header,
html[data-theme="dark"] .crm-offer-review-modal .modal-footer {
    color: #e2e8f0;
    background: #111827;
    border-color: #263449;
}

html[data-theme="dark"] .crm-offer-review-modal .modal-body {
    background: #0f172a;
}

html[data-theme="dark"] .crm-review-section,
html[data-theme="dark"] .crm-review-detail-grid > div,
html[data-theme="dark"] .crm-review-data-list > div,
html[data-theme="dark"] .crm-document-card,
html[data-theme="dark"] .crm-document-card__preview,
html[data-theme="dark"] .crm-review-note-box {
    background: #101827;
    border-color: #334155;
}

html[data-theme="dark"] .crm-review-section__head {
    border-color: #263449;
}

html[data-theme="dark"] .crm-review-section__head h6,
html[data-theme="dark"] .crm-review-detail-grid strong,
html[data-theme="dark"] .crm-review-data-list strong,
html[data-theme="dark"] .crm-document-card h6,
html[data-theme="dark"] .crm-review-timeline span,
html[data-theme="dark"] .crm-review-note-box {
    color: #f8fafc;
}

html[data-theme="dark"] .crm-document-card p {
    color: #94a3b8;
}

html[data-theme="dark"] .crm-proof-preview {
    background: #0b1220;
    border-color: #334155;
}

html[data-theme="dark"] .crm-scholarship-approve-modal .modal-content,
html[data-theme="dark"] .crm-scholarship-approve-modal .modal-header,
html[data-theme="dark"] .crm-scholarship-approve-modal .modal-footer {
    color: #e2e8f0;
    background: #111827;
    border-color: #263449;
}

html[data-theme="dark"] .crm-scholarship-approve-modal .modal-body {
    background: #0f172a;
}

html[data-theme="dark"] .crm-scholarship-approve-modal .modal-title {
    color: #f8fafc;
}

html[data-theme="dark"] .crm-scholarship-approve-modal__icon {
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.18);
    border-color: rgba(196, 181, 253, 0.25);
}

html[data-theme="dark"] .crm-modal-icon-close {
    color: #e2e8f0;
    background: #1e293b;
    border-color: #334155;
}

html[data-theme="dark"] .crm-scholarship-approve-modal__notice {
    color: #99f6e4;
    background: rgba(15, 118, 110, 0.22);
    border-color: rgba(45, 212, 191, 0.24);
}

html[data-theme="dark"] .crm-scholarship-approve-modal .crm-payment-confirm-box,
html[data-theme="dark"] .crm-scholarship-approve-modal .crm-payment-confirm-grid > div {
    background: #101827;
    border-color: #334155;
    box-shadow: none;
}

html[data-theme="dark"] .contents .form-control,
html[data-theme="dark"] .contents .form-select,
html[data-theme="dark"] .modal .form-control,
html[data-theme="dark"] .modal .form-select,
html[data-theme="dark"] .modal input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
html[data-theme="dark"] .modal textarea,
html[data-theme="dark"] .modal select,
html[data-theme="dark"] .crm-action-modal__body .form-control,
html[data-theme="dark"] .crm-action-modal__body .form-select,
html[data-theme="dark"] .crm-action-modal__body input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] .crm-action-modal__body textarea,
html[data-theme="dark"] .crm-action-modal__body select {
    color: #f8fafc;
    background: #0b1220;
    border-color: #334155;
}

html[data-theme="dark"] .certificate-details-card,
html[data-theme="dark"] .certificate-details-toggle,
html[data-theme="dark"] .certificate-details-panel {
    color: #f8fafc;
    background: #0b1220;
    border-color: #334155;
}

html[data-theme="dark"] .certificate-details-toggle:hover,
html[data-theme="dark"] .certificate-details-toggle[aria-expanded="true"] {
    background: rgba(139, 92, 246, 0.16);
    border-bottom-color: #334155;
}

html[data-theme="dark"] .certificate-details-toggle__meta,
html[data-theme="dark"] .certificate-details-toggle__arrow {
    color: #94a3b8;
}

html[data-theme="dark"] .crm-whatsapp-toggle {
    color: #f8fafc;
    background: #0b1220;
    border-color: #334155;
}

html[data-theme="dark"] .contents input[readonly],
html[data-theme="dark"] .contents input:disabled,
html[data-theme="dark"] .contents select:disabled,
html[data-theme="dark"] .crm-action-modal__body input[readonly],
html[data-theme="dark"] .crm-action-modal__body input:disabled,
html[data-theme="dark"] .crm-action-modal__body select:disabled {
    color: #94a3b8;
    background: #101827;
}

html[data-theme="dark"] .contents .text-center.py-40,
html[data-theme="dark"] .contents .text-center.py-30,
html[data-theme="dark"] .crm-action-modal__body .text-center.py-40,
html[data-theme="dark"] .crm-action-modal__body .text-center.py-30 {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(17, 24, 39, 0.98));
    border-color: #334155;
}

html[data-theme="dark"] .crm-action-modal .modal-header .close {
    color: #cbd5e1;
    background: #1e293b;
}

html[data-theme="dark"] .crm-confirm-modal .modal-content,
html[data-theme="dark"] .crm-confirm-modal .modal-header,
html[data-theme="dark"] .crm-confirm-modal .modal-footer,
html[data-theme="dark"] .crm-confirm-modal .modal-body {
    color: #e2e8f0;
    background: #111827;
    border-color: #263449;
}

html[data-theme="dark"] .crm-confirm-modal__message {
    color: #f8fafc;
}

html[data-theme="dark"] .crm-page-hero,
html[data-theme="dark"] .crm-offer-panel .bg-lighter.radius-xl {
    background: #111827 !important;
}

html[data-theme="dark"] .crm-page-hero__title,
html[data-theme="dark"] .crm-kpi-card__value,
html[data-theme="dark"] .crm-offer-table .userDatatable-content strong {
    color: #f8fafc !important;
}

html[data-theme="dark"] .crm-page-hero__subtitle,
html[data-theme="dark"] .crm-kpi-card__label,
html[data-theme="dark"] .crm-kpi-card__caption,
html[data-theme="dark"] .crm-kpi-card__progress .progress-percentage {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .crm-kpi-card::after {
    background: rgba(130, 49, 211, 0.13);
}

html[data-theme="dark"] .crm-kpi-card__progress .progress {
    background: #263449;
}

html[data-theme="dark"] .crm-sales-mini-card,
html[data-theme="dark"] .crm-sales-activity-card,
html[data-theme="dark"] .crm-sales-target-grid > div,
html[data-theme="dark"] .crm-sales-funnel__row {
    background: #101827;
    border-color: #263449;
}

html[data-theme="dark"] .crm-sales-kpi-card,
html[data-theme="dark"] .crm-sales-aging-row {
    border-color: #263449;
}

html[data-theme="dark"] .crm-sales-mini-card small,
html[data-theme="dark"] .crm-sales-activity-card span,
html[data-theme="dark"] .crm-sales-target-grid span,
html[data-theme="dark"] .crm-sales-aging-row span {
    color: #94a3b8;
}

html[data-theme="dark"] .crm-sales-kpi-card__value strong,
html[data-theme="dark"] .crm-sales-target-grid strong,
html[data-theme="dark"] .crm-sales-aging-row strong,
html[data-theme="dark"] .crm-sales-funnel__row span,
html[data-theme="dark"] .crm-sales-activity-card strong {
    color: #f8fafc;
}

html[data-theme="dark"] .crm-sales-kpi-card .progress,
html[data-theme="dark"] .crm-sales-aging-row .progress {
    background: #263449;
}

html[data-theme="dark"] .crm-offer-panel,
html[data-theme="dark"] .crm-offer-panel .bg-lighter.radius-xl {
    border-color: #263449;
}

html[data-theme="dark"] .crm-student-profile-card__hero {
    border-color: #263449;
}

html[data-theme="dark"] .crm-student-upload-item {
    background: #101827;
    border-color: #263449;
}

html[data-theme="dark"] .crm-student-form-card .form-group label {
    color: #e2e8f0;
}

html[data-theme="dark"] .crm-student-picker-card:hover {
    border-color: rgba(130, 49, 211, 0.5) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .crm-detail-tile strong {
    color: #f8fafc;
}

html[data-theme="dark"] .crm-detail-tile span {
    color: #94a3b8;
}

html[data-theme="dark"] .crm-lead-form-card--optional {
    background: #111827 !important;
}

html[data-theme="dark"] .crm-confirm-modal .close {
    color: #cbd5e1;
    background: #1e293b;
}

@media (max-width: 991px) {
    .crm-action-modal .modal-dialog {
        max-width: calc(100vw - 20px);
    }

    .crm-action-modal__body {
        padding: 18px 14px;
    }

    .crm-action-modal__body .project-top-wrapper {
        align-items: flex-start;
    }

    .crm-attendance-filter-toolbar,
    .crm-attendance-filter-toolbar .project-top-left,
    .crm-attendance-filter-toolbar .project-top-right {
        flex-wrap: wrap !important;
    }

    .crm-attendance-filter-toolbar .project-top-right {
        margin-left: 0;
    }

    .crm-attendance-filter-toolbar .project-search,
    .crm-attendance-filter-toolbar .project-category,
    .crm-attendance-filter-toolbar .project-category__select,
    .crm-attendance-filter-toolbar .project-category__select .form-control {
        flex: 1 1 220px;
        width: 100%;
        max-width: none;
    }

    .crm-list-toolbar {
        flex-wrap: wrap !important;
    }

    .crm-list-toolbar .project-top-left,
    .crm-list-toolbar .project-top-right {
        width: 100%;
    }

    .crm-list-toolbar .project-top-left {
        flex-wrap: wrap !important;
    }

    .crm-lead-toolbar .project-top-right {
        flex-wrap: wrap !important;
    }

    .crm-lead-toolbar .project-search,
    .crm-lead-toolbar .project-category,
    .crm-lead-toolbar .project-category > .d-flex,
    .crm-lead-toolbar .project-category__select,
    .crm-lead-toolbar .project-category__select .form-control {
        flex: 1 1 220px;
        width: 100%;
        max-width: none;
    }

    .crm-search-control {
        flex: 1 1 320px;
        width: auto;
    }

    .crm-sales-work-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .crm-offer-panel--form .crm-offer-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .crm-quote-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .crm-offer-row--three,
    .crm-offer-row--lead-meta,
    .crm-offer-row--operations,
    .crm-offer-row--closing {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .crm-offer-submit {
        justify-content: flex-start;
    }

    .crm-offer-price-summary {
        display: block;
    }

    .crm-offer-price-summary__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 14px;
    }

    .crm-offer-compact-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .crm-offer-track-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .crm-offer-track-card > div {
        border-right: 0;
        border-bottom: 1px solid #edf2f7;
    }

    .crm-offer-track-card > div:nth-last-child(-n+2) {
        border-bottom: 0;
    }

    .crm-payment-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .crm-payment-card > div {
        border-right: 0;
        border-bottom: 1px solid #edf2f7;
    }

    .crm-payment-card > div:nth-last-child(-n+2) {
        border-bottom: 0;
    }

    .crm-review-modal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .crm-holiday-control-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .crm-holiday-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
    }

    .crm-holiday-add-btn {
        justify-self: start;
    }

    .crm-action-modal .modal-dialog {
        width: 100%;
        max-width: 100%;
        height: 100%;
        margin: 0;
    }

    .crm-action-modal .modal-content {
        min-height: 100vh;
        border-radius: 0;
    }

    .crm-action-modal .modal-header,
    .crm-action-modal .modal-footer {
        padding: 14px 16px;
    }

    .crm-action-modal__body .project-top-wrapper {
        display: block;
    }

    .crm-action-modal__body .project-top-right {
        margin-top: 12px;
    }

    .crm-action-modal__body .project-tap {
        overflow-x: auto;
        white-space: nowrap;
    }

    .crm-action-modal__body .user-group .media {
        padding: 18px;
    }

    .crm-action-modal__body .user-group .d-flex.justify-content-between {
        gap: 6px;
    }

    .crm-action-modal__body .user-group .d-flex.justify-content-between > span,
    .crm-action-modal__body .user-group .d-flex.justify-content-between > p {
        min-width: 94px;
    }

    .crm-action-modal .modal-footer {
        justify-content: stretch;
    }

    .crm-action-modal .modal-footer .btn {
        flex: 1 1 auto;
    }

    .contents .project-top-wrapper {
        padding: 12px;
    }

    .contents .project-top-left,
    .contents .project-top-right,
    .contents .project-search {
        width: 100%;
    }

    .contents .project-tap {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }

    .contents .project-category,
    .contents .project-category > .d-flex,
    .contents .project-category__select,
    .contents .project-category__select .form-control {
        width: 100%;
    }

    .contents .project-top-right .btn {
        width: 100%;
        margin-left: 0 !important;
    }

    .crm-page-heading .breadcrumb-main {
        align-items: flex-start;
    }

    .crm-page-heading .action-btn,
    .crm-page-heading .action-btn .btn {
        width: 100%;
    }

    .crm-stat-card {
        min-height: 150px;
        padding: 20px !important;
    }

    .crm-page-hero__inner {
        align-items: flex-start !important;
        min-height: auto;
        padding: 20px !important;
    }

    .crm-page-hero__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .crm-page-hero__actions .btn {
        flex: 1 1 160px;
    }

    .crm-kpi-card {
        min-height: 118px;
    }

    .crm-sales-work-grid,
    .crm-sales-activity-grid,
    .crm-sales-target-grid {
        grid-template-columns: 1fr;
    }

    .crm-sales-kpi-card {
        padding: 18px;
    }

    .crm-quote-form-grid,
    .crm-quote-detail-grid {
        grid-template-columns: 1fr;
    }

    .crm-quote-form-grid__wide {
        grid-column: auto;
    }

    .crm-quote-submit-bar {
        position: static;
        display: block;
        margin: 18px 0 0;
        padding: 0;
        border-top: 0;
        background: transparent;
    }

    .crm-quote-submit-bar .btn {
        width: 100%;
        margin-bottom: 8px;
    }

    .crm-sales-quick-actions {
        width: 100%;
        justify-content: flex-start;
        margin-top: 12px;
    }

    .crm-sales-quick-actions .btn {
        flex: 1 1 170px;
        justify-content: center;
    }

    .crm-sales-funnel__row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .crm-sales-funnel__row small {
        grid-column: 1 / -1;
    }

    .crm-list-toolbar .crm-search-control {
        min-width: 100%;
    }

    .crm-table-card__header,
    .crm-table-card__footer {
        padding-right: 18px !important;
        padding-left: 18px !important;
    }

    .crm-template-pagination {
        justify-content: flex-start !important;
    }

    .crm-template-pagination .dm-page {
        width: 100%;
    }

    .crm-template-table tbody td {
        padding: 10px 0;
    }

    .crm-student-cell {
        min-width: 0;
    }

    .crm-row-actions {
        min-width: 0;
    }

    .crm-detail-grid {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .crm-form-section__header,
    .crm-form-section__body {
        padding-right: 18px;
        padding-left: 18px;
    }

    .crm-student-upload-row {
        grid-template-columns: 1fr;
    }

    .crm-form-actions {
        justify-content: stretch !important;
    }

    .crm-form-actions .btn {
        flex: 1 1 auto;
    }

    .crm-phone-group {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .crm-whatsapp-toggle {
        width: 100%;
    }

    .contents .table-responsive,
    .crm-action-modal__body .table-responsive {
        border: 0;
        border-radius: 0;
        overflow: visible;
    }

    .contents .crm-responsive-table,
    .crm-action-modal__body .crm-responsive-table {
        display: block;
        min-width: 0 !important;
    }

    .contents .crm-responsive-table thead,
    .crm-action-modal__body .crm-responsive-table thead {
        display: none;
    }

    .contents .crm-responsive-table tbody,
    .contents .crm-responsive-table tr,
    .contents .crm-responsive-table td,
    .crm-action-modal__body .crm-responsive-table tbody,
    .crm-action-modal__body .crm-responsive-table tr,
    .crm-action-modal__body .crm-responsive-table td {
        display: block;
        width: 100%;
    }

    .contents .crm-responsive-table tr,
    .crm-action-modal__body .crm-responsive-table tr {
        padding: 14px;
        margin-bottom: 12px;
        background: #fff;
        border: 1px solid var(--webasha-border);
        border-radius: 14px;
        box-shadow: var(--webasha-shadow-soft);
    }

    .contents .crm-responsive-table td,
    .crm-action-modal__body .crm-responsive-table td {
        display: grid;
        grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
        gap: 12px;
        padding: 10px 0;
        border: 0;
        border-bottom: 1px solid var(--webasha-border);
    }

    .contents .crm-responsive-table td:last-child,
    .crm-action-modal__body .crm-responsive-table td:last-child {
        border-bottom: 0;
    }

    .contents .crm-responsive-table td::before,
    .crm-action-modal__body .crm-responsive-table td::before {
        content: attr(data-label);
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.4;
        text-transform: uppercase;
    }

    .contents .crm-responsive-table td[data-label=""],
    .crm-action-modal__body .crm-responsive-table td[data-label=""] {
        grid-template-columns: 1fr;
    }

    .contents .crm-responsive-table td[data-label=""]::before,
    .crm-action-modal__body .crm-responsive-table td[data-label=""]::before {
        display: none;
    }

    .contents .crm-responsive-table td:last-child .d-flex,
    .crm-action-modal__body .crm-responsive-table td:last-child .d-flex {
        justify-content: flex-start !important;
        flex-wrap: wrap;
    }

    html[data-theme="dark"] .contents .crm-responsive-table tr,
    html[data-theme="dark"] .crm-action-modal__body .crm-responsive-table tr {
        background: #111827;
        border-color: #263449;
    }

    html[data-theme="dark"] .contents .crm-responsive-table td,
    html[data-theme="dark"] .crm-action-modal__body .crm-responsive-table td {
        border-color: #263449;
    }

    .crm-lead-profile-card__header {
        padding: 20px 18px 16px;
    }

    .crm-lead-profile-card__details {
        padding: 6px 18px 16px;
    }

    .crm-lead-profile-row {
        grid-template-columns: 1fr;
        gap: 4px;
        min-height: auto;
        padding: 11px 0;
    }

    .crm-lead-profile-row strong {
        text-align: left;
    }

    .crm-offer-widget-card__header,
    .crm-offer-widget-card__body {
        padding-right: 18px;
        padding-left: 18px;
    }

    .crm-offer-table {
        min-width: 0;
    }

    .crm-offer-table input[readonly] {
        min-width: 0;
        width: 100%;
    }

    .crm-offer-panel--form .crm-offer-form-grid {
        grid-template-columns: 1fr;
    }

    .crm-offer-row--three,
    .crm-offer-row--lead-meta,
    .crm-offer-row--operations,
    .crm-offer-row--closing,
    .crm-offer-segment,
    .crm-offer-price-summary__metrics {
        grid-template-columns: 1fr;
    }

    .crm-offer-submit .btn {
        width: 100%;
    }

    .crm-offer-compact-row {
        grid-template-columns: 1fr;
    }

    .crm-offer-card-list {
        padding: 14px;
    }

    .crm-offer-track-card {
        grid-template-columns: 1fr;
    }

    .crm-offer-track-card > div {
        padding: 16px;
        border-right: 0;
        border-bottom: 1px solid #edf2f7;
    }

    .crm-offer-track-card > div:nth-last-child(-n+2) {
        border-bottom: 1px solid #edf2f7;
    }

    .crm-offer-track-card > div:last-child {
        border-bottom: 0;
    }

    .crm-offer-primary-actions .btn,
    .crm-offer-secondary-actions .btn,
    .crm-offer-primary-actions form,
    .crm-offer-secondary-actions form {
        flex: 1 1 135px;
    }

    .crm-offer-primary-actions .btn,
    .crm-offer-secondary-actions .btn {
        width: 100%;
    }

    .crm-offer-panel--form .crm-offer-form-grid > button {
        width: 100% !important;
    }

    .crm-payment-card {
        grid-template-columns: 1fr;
    }

    .crm-payment-card > div {
        padding: 16px;
        border-right: 0;
        border-bottom: 1px solid #edf2f7;
    }

    .crm-payment-card > div:last-child {
        border-bottom: 0;
    }

    .crm-payment-card__actions {
        justify-content: flex-start;
    }

    .crm-payment-card__actions .btn,
    .crm-payment-card__actions form {
        flex: 1 1 135px;
    }

    .crm-payment-card__actions .btn {
        width: 100%;
    }

    .crm-review-detail-grid,
    .crm-review-data-list,
    .crm-document-grid {
        grid-template-columns: 1fr;
    }

    .crm-document-card {
        grid-template-columns: 1fr;
    }

    .crm-review-modal-footer,
    .crm-review-modal-footer form {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .crm-review-modal-footer .btn,
    .crm-review-reject-form .form-control {
        width: 100%;
        max-width: none;
    }

    .crm-offer-panel > .user-group-people,
    .crm-offer-panel form.p-25 {
        padding-right: 18px !important;
        padding-left: 18px !important;
    }

    .crm-offer-list__item {
        display: block;
    }

    .crm-offer-list__icon {
        margin-bottom: 12px;
    }

    .crm-package-grid {
        grid-template-columns: 1fr;
    }

    .crm-package-card__meta {
        grid-template-columns: 1fr;
    }
}

