.cart-grid-item .cart-grid-item-image {
    height: 356px !important;
}
.signature-image{width:100%!important;}
.text-danger {
    color: #0E4C80 !important;
}

.btn-info {
    background: #0E4C80;
    border: 1px solid #0E4C80;
}

.dashboard-view .dashboard-quick-widget-row {
    margin-bottom: 25px;
}

.dashboard-quick-widget-link {
    display: block;
}

.dashboard-quick-widget {
    border-radius: 12px;
    border: 1px solid rgba(14, 76, 128, 0.15);
    box-shadow: 0 8px 18px rgba(14, 76, 128, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-quick-widget .card-body {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
}

.dashboard-quick-widget-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: #0E4C80;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.dashboard-quick-widget-icon .icon,
.dashboard-quick-widget-icon i,
.dashboard-quick-widget-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2px;
    color: inherit;
}

.dashboard-quick-widget-text h6 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0E4C80 !important;
}

.dashboard-quick-widget-text span {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(14, 76, 128, 0.75) !important;
}

.dashboard-quick-widget-link:hover .dashboard-quick-widget,
.dashboard-quick-widget-link:focus .dashboard-quick-widget {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(14, 76, 128, 0.18);
}

.status-pill,
.status-pill:hover,
.status-pill:focus,
.status-pill:active {
    color: var(--status-pill-color) !important;
    background-color: transparent !important;
    border-color: var(--status-pill-color) !important;
}

#leads-day-wise-chart {
    height: 700px !important;
    width: 100% !important;
}

@media (max-width: 575.98px) {
    #ajaxModal .modal-dialog.mobile-friendly-modal {
        margin: 0;
        max-width: 100%;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: stretch;
    }

    #ajaxModal .modal-dialog.mobile-friendly-modal .modal-content {
        border-radius: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    #ajaxModal .modal-dialog.mobile-friendly-modal .modal-body {
        flex: 1 1 auto;
        overflow-y: auto;
    }

    #ajaxModal .modal-dialog.mobile-friendly-modal .modal-header,
    #ajaxModal .modal-dialog.mobile-friendly-modal .modal-footer {
        flex-shrink: 0;
    }

    .quick-add-dropdown .quick-add-mobile-actions {
        padding: 15px 20px 5px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .quick-add-dropdown .quick-add-mobile-btn {
        border-radius: 8px;
        font-weight: 600;
        text-transform: capitalize;
    }

    .quick-add-dropdown .quick-add-desktop-only {
        display: none !important;
    }

    .dashboard-view .dashboard-quick-widget-row {
        margin-bottom: 20px;
    }

    .dashboard-quick-widget-text h6 {
        font-size: 1rem;
    }

    .dashboard-quick-widget-text span {
        font-size: 0.8rem;
    }

    .dashboard-mobile-quick-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .dashboard-mobile-quick-btn {
        border-radius: 8px;
        font-weight: 600;
        text-transform: capitalize;
        display:none;
    }
}

/* Ensure Google Places suggestions render above Bootstrap modals. */
.pac-container {
    z-index: 2000 !important;
}

.recent-closed-won-widget {
    background: #ffffff;
    border-bottom: 1px solid rgba(14, 76, 128, 0.08);
    box-shadow: 0 10px 24px rgba(14, 76, 128, 0.08);
    margin-left: 250px;
    margin-top: 65px;
    padding: 16px 24px 18px;
    width: calc(100% - 250px);
    z-index: 1001;
}

.recent-closed-won-widget__row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: space-between;
}

.recent-closed-won-widget__summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 200px;
}

.recent-closed-won-widget__title {
    color: #0E4C80;
    font-size: 1rem;
    font-weight: 700;
}

.recent-closed-won-widget__subtitle {
    color: rgba(14, 76, 128, 0.65);
    font-size: 0.85rem;
}

.recent-closed-won-widget__badge {
    background: rgba(44, 140, 255, 0.12);
    border-radius: 999px;
    color: #0E4C80;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 6px 12px;
    text-transform: uppercase;
}

.recent-closed-won-widget__owner,
.recent-closed-won-widget__deal {
    align-items: center;
    display: flex;
    gap: 12px;
}

.recent-closed-won-widget__celebration {
    align-items: center;
    display: inline-flex;
}

.custom-field-select-value {
    text-transform: capitalize;
}

.recent-closed-won-widget__celebration-label {
    background: linear-gradient(120deg, rgba(255, 198, 0, 0.25), rgba(255, 120, 120, 0.25));
    border: 1px solid rgba(255, 150, 70, 0.45);
    border-radius: 999px;
    color: #a84f0e;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 6px 14px;
    text-transform: uppercase;
}

.recent-closed-won-widget__deal {
    justify-content: flex-end;
    text-align: right;
}

.recent-closed-won-widget__pill {
    background: rgba(14, 76, 128, 0.08);
    border-radius: 999px;
    color: #0E4C80;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    text-transform: capitalize;
}

.recent-closed-won-widget__avatar img {
    border-radius: 50%;
    box-shadow: 0 6px 14px rgba(14, 76, 128, 0.2);
    height: 44px;
    object-fit: cover;
    width: 44px;
}

.recent-closed-won-widget__name,
.recent-closed-won-widget__client {
    color: #0E4C80;
    font-weight: 600;
}

.recent-closed-won-widget__meta {
    color: rgba(14, 76, 128, 0.7);
    font-size: 0.85rem;
}

.recent-closed-won-widget__label {
    font-weight: 600;
}

.recent-closed-won-widget__empty {
    color: rgba(14, 76, 128, 0.7);
    font-size: 0.9rem;
    padding: 10px 0 6px;
}

.has-recent-closed-won-widget .page-container,
.has-recent-closed-won-widget .public-page-container {
    margin-top: 0;
}

.sidebar-toggled .recent-closed-won-widget {
    margin-left: 0;
    width: 100%;
}

@media (max-width: 767px) {
    .recent-closed-won-widget {
        margin-left: 0;
        padding: 12px 16px;
        width: 100%;
    }

    .recent-closed-won-widget__row {
        align-items: flex-start;
    }

    .recent-closed-won-widget__owner,
    .recent-closed-won-widget__deal,
    .recent-closed-won-widget__celebration {
        justify-content: flex-start;
        text-align: left;
        width: 100%;
    }
}

.client-info-workspace {
    background: linear-gradient(180deg, #f7fafc 0%, #edf4f8 100%);
    border-radius: 18px;
    margin-top: 16px;
}

.client-info-form {
    border-radius: 18px;
    overflow: hidden;
}

.client-info-shell {
    background: transparent;
}

.client-info-shell__header {
    background: linear-gradient(135deg, #ffffff 0%, #f4f9fc 100%);
    border: 1px solid rgba(14, 76, 128, 0.12);
    border-radius: 18px 18px 0 0;
    padding: 24px 28px 18px;
}

.client-info-shell__header h4 {
    color: #0E4C80;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.client-info-shell__body {
    padding: 22px 0 0;
}

.client-info-shell__footer {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(14, 76, 128, 0.12);
    border-radius: 0 0 18px 18px;
    border-top: 0;
    padding: 18px 28px 24px;
}

.client-info-tabs__header {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.client-info-tabs__nav {
    border-bottom: 0;
    gap: 10px;
    margin-bottom: 0;
    padding: 0 4px;
}

.client-info-tabs__nav .nav-link {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(14, 76, 128, 0.12);
    border-radius: 999px;
    color: rgba(14, 76, 128, 0.78);
    font-weight: 600;
    padding: 10px 18px;
}

.client-info-tabs__nav .nav-link.active,
.client-info-tabs__nav .nav-link:hover,
.client-info-tabs__nav .nav-link:focus {
    background: #0E4C80;
    border-color: #0E4C80;
    color: #ffffff;
}

.client-overview-grid {
    align-items: flex-start;
}

.client-overview-main,
.client-overview-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.client-info-top-actions {
    display: flex;
    flex-shrink: 0;
    justify-content: flex-end;
}

.client-field-grid {
    display: grid;
    gap: 14px;
}

.client-field-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.client-field-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.client-sidebar-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 90px;
}

.client-info-section-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(14, 76, 128, 0.12);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(14, 76, 128, 0.08);
    overflow: hidden;
}

.client-info-section-card__header {
    border-bottom: 1px solid rgba(14, 76, 128, 0.08);
    padding: 18px 22px 14px;
}

.client-info-section-card__header h5 {
    color: #0E4C80;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.client-info-section-card__header span {
    color: rgba(14, 76, 128, 0.65);
    display: block;
    font-size: 0.85rem;
    line-height: 1.45;
}

.client-info-section-card__body {
    padding: 20px 22px 4px;
}

.client-info-section-card--sidebar .client-info-section-card__body {
    padding-bottom: 10px;
}

.client-info-workspace .client-form-field,
.client-info-workspace .form-group[class*="custom_field_"] {
    background: #ffffff;
    border: 1px solid rgba(14, 76, 128, 0.14);
    border-radius: 14px;
    margin-bottom: 14px;
    padding: 14px 16px;
}

.client-info-workspace .client-form-field .row,
.client-info-workspace .form-group[class*="custom_field_"] .row {
    align-items: center;
}

.client-info-workspace .client-form-field > .row > [class*="col-"],
.client-info-workspace .form-group[class*="custom_field_"] > .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
}

.client-info-workspace .client-form-field > .row > label,
.client-info-workspace .form-group[class*="custom_field_"] > .row > label {
    color: #0E4C80;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.client-info-workspace .client-form-field .form-control,
.client-info-workspace .client-form-field .select2-choice,
.client-info-workspace .client-form-field .select2-choices,
.client-info-workspace .form-group[class*="custom_field_"] .form-control,
.client-info-workspace .form-group[class*="custom_field_"] .select2-choice,
.client-info-workspace .form-group[class*="custom_field_"] .select2-choices {
    background: #ffffff;
    border: 1px solid rgba(14, 76, 128, 0.22);
    border-radius: 10px;
    box-shadow: none;
    color: #153d5b;
    min-height: 42px;
}

.client-info-workspace textarea.form-control {
    min-height: 96px;
}

.client-info-workspace .client-form-field .select2-container,
.client-info-workspace .form-group[class*="custom_field_"] .select2-container {
    width: 100% !important;
}

.client-info-workspace .client-form-field .select2-container .select2-choice,
.client-info-workspace .client-form-field .select2-container .select2-choices,
.client-info-workspace .form-group[class*="custom_field_"] .select2-container .select2-choice,
.client-info-workspace .form-group[class*="custom_field_"] .select2-container .select2-choices {
    align-items: center;
    display: flex;
    padding: 4px 12px;
}

.client-info-workspace .client-form-field .select2-container .select2-choice .select2-chosen,
.client-info-workspace .form-group[class*="custom_field_"] .select2-container .select2-choice .select2-chosen,
.client-info-workspace .client-form-field .select2-container .select2-default,
.client-info-workspace .form-group[class*="custom_field_"] .select2-container .select2-default {
    color: #153d5b;
}

.client-info-workspace .client-form-field .select2-container .select2-arrow,
.client-info-workspace .form-group[class*="custom_field_"] .select2-container .select2-arrow {
    background: transparent;
    border-left: 1px solid rgba(14, 76, 128, 0.14);
}

.client-info-workspace .client-form-field .form-control:focus,
.client-info-workspace .form-group[class*="custom_field_"] .form-control:focus,
.client-info-workspace .client-form-field .select2-container-active .select2-choice,
.client-info-workspace .form-group[class*="custom_field_"] .select2-container-active .select2-choice,
.client-info-workspace .client-form-field .select2-container-active .select2-choices,
.client-info-workspace .form-group[class*="custom_field_"] .select2-container-active .select2-choices {
    background: #ffffff;
    border-color: rgba(14, 76, 128, 0.35);
    box-shadow: 0 0 0 3px rgba(14, 76, 128, 0.08);
}

.client-info-workspace .client-form-field .help,
.client-info-workspace .client-form-field .text-muted,
.client-info-workspace .form-group[class*="custom_field_"] .text-muted {
    color: rgba(14, 76, 128, 0.6) !important;
}

.client-info-workspace .tax-field-group.d-none,
.client-info-workspace .company-name-wrapper.d-none {
    display: none !important;
}

.client-meta-debug {
    background: linear-gradient(180deg, #f4f6f8 0%, #ebeff3 100%);
    border: 1px dashed rgba(14, 76, 128, 0.22);
    border-radius: 14px;
    margin-top: 16px;
    padding: 14px 16px;
}

.client-meta-debug__label {
    color: rgba(14, 76, 128, 0.68);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.client-meta-debug__input {
    background: rgba(255, 255, 255, 0.76) !important;
    color: rgba(14, 76, 128, 0.78);
}

.client-checkbox-row {
    align-items: flex-start;
    display: flex;
    gap: 12px;
}

.client-checkbox-row .form-check-input {
    margin-top: 3px;
}

.client-info-workspace .additional-address-row {
    background: #ffffff;
    border: 1px solid rgba(14, 76, 128, 0.16);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(14, 76, 128, 0.06);
}

.client-info-workspace .additional-address-row .card-body {
    padding: 18px;
}

.client-info-workspace .additional-address-row label {
    color: #0E4C80;
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.client-info-workspace .additional-address-row .form-control,
.client-info-workspace .additional-address-row .select2-choice {
    background: #ffffff;
    border: 1px solid rgba(14, 76, 128, 0.22);
    border-radius: 10px;
    box-shadow: none;
    color: #153d5b;
    min-height: 42px;
}

.client-info-workspace .additional-address-row .form-control:focus,
.client-info-workspace .additional-address-row .select2-container-active .select2-choice {
    border-color: rgba(14, 76, 128, 0.35);
    box-shadow: 0 0 0 3px rgba(14, 76, 128, 0.08);
}

.client-info-workspace .btn-default {
    border-color: rgba(14, 76, 128, 0.18);
}

@media (max-width: 1199.98px) {
    .client-sidebar-stack {
        position: static;
        top: auto;
    }
}

@media (max-width: 991.98px) {
    .client-info-shell__header,
    .client-info-shell__footer {
        border-radius: 16px;
    }

    .client-info-shell__footer {
        margin-top: 18px;
    }

    .client-info-tabs__nav {
        flex-wrap: wrap;
    }

    .client-info-tabs__header {
        align-items: stretch;
        flex-direction: column;
    }

    .client-info-top-actions {
        justify-content: flex-start;
    }

    .client-overview-sidebar {
        margin-top: 18px;
    }

    .client-field-grid--two,
    .client-field-grid--three {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .client-info-shell__header,
    .client-info-shell__footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .client-info-section-card__header,
    .client-info-section-card__body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .client-info-workspace .client-form-field,
    .client-info-workspace .form-group[class*="custom_field_"] {
        padding: 12px 14px;
    }

    .client-info-workspace .client-form-field > .row > label,
    .client-info-workspace .form-group[class*="custom_field_"] > .row > label {
        margin-bottom: 6px;
    }
}

.lead-make-client-modal .modal-dialog,
.lead-make-client-modal__dialog {
    max-width: min(1480px, calc(100vw - 40px));
    width: min(1480px, calc(100vw - 40px));
}

.lead-make-client-modal .modal-content {
    background: #f5f9fc;
    border: 0;
    border-radius: 22px;
    overflow: hidden;
}

.lead-make-client-modal .modal-body {
    padding: 24px 24px 10px;
}

.lead-make-client-modal .modal-footer {
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid rgba(14, 76, 128, 0.1);
    padding: 18px 24px 24px;
}

.lead-make-client-modal .client-info-workspace {
    background: transparent;
    border-radius: 0;
    margin-top: 0;
}

.lead-make-client-modal .client-info-form {
    border-radius: 0;
}

.lead-make-client-modal .client-info-shell__header {
    border-radius: 18px;
    margin-bottom: 18px;
}

.lead-make-client-modal .client-info-shell__footer {
    display: none;
}

.lead-make-client-modal .client-info-shell__body {
    padding-top: 0;
}

.lead-make-client-modal .client-overview-grid {
    --bs-gutter-x: 20px;
}

.lead-make-client-modal .client-overview-sidebar {
    margin-top: 0;
}

.lead-make-client-modal .client-sidebar-stack {
    position: static;
    top: auto;
}

.lead-make-client-modal .form-widget {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(14, 76, 128, 0.12);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(14, 76, 128, 0.08);
    margin-bottom: 18px;
    overflow: hidden;
    padding: 16px 18px 18px;
}

.lead-make-client-modal .widget-title {
    align-items: center;
    color: #0E4C80;
    font-size: 0.96rem;
    font-weight: 700;
    row-gap: 10px;
}

.lead-make-client-modal .progress {
    background: rgba(14, 76, 128, 0.08);
    border-radius: 999px;
    height: 8px;
    margin-top: 14px;
    overflow: hidden;
}

.lead-make-client-modal .progress-bar {
    background: linear-gradient(90deg, #0E4C80 0%, #2e7db0 100%);
}

.lead-make-client-modal .lead-migration-contacts {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(14, 76, 128, 0.12);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(14, 76, 128, 0.06);
    margin-bottom: 16px;
    overflow: hidden;
}

.lead-make-client-modal .lead-migration-contacts .settings-anchor {
    background: linear-gradient(135deg, #ffffff 0%, #f5f9fc 100%);
    color: #0E4C80;
    cursor: pointer;
    padding: 16px 18px;
}

.lead-make-client-modal .lead-migration-contacts .collapse {
    background: #ffffff;
}

@media (max-width: 991.98px) {
    .lead-make-client-modal .modal-dialog,
    .lead-make-client-modal__dialog {
        max-width: calc(100vw - 20px);
        width: calc(100vw - 20px);
    }

    .lead-make-client-modal .modal-body,
    .lead-make-client-modal .modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}
