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