/*
Author: Afford Motors
Website: https://affordmotors.com/
Developer: Siddhu Singh
Contact: siddhukol@gmail.com
*/

.swal-icon-no-border{
    border: 0;
}
.swal2-popup.swal2-toast{
    padding: 0 !important;
    width: fit-content !important;
}
body.swal2-toast-shown .swal2-container.swal2-center{
    width: max-content;
}
.swal2-popup.swal2-toast .swal2-title{
    font-size: 14px !important;
    color: #000 !important;
    margin: 5px 5px !important;
}
.swal2-title{font-weight: 400 !important;}
.swal2-icon{border:0 !important}
.choices{margin-bottom: 0px !important;}
#back-to-top{display: none !important;}
.custom-toast-popup {
    width: 90% !important;
    max-width: 600px !important;         /* Adjust max size for larger screens */
    padding: 24px 30px !important;
    border-radius: 10px;
    box-sizing: border-box;
    text-align: center;
}

.custom-toast-title {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.custom-toast-button {
    padding: 10px 24px;
    font-size: 16px;
    background-color: #107658 !important;
    color: #fff;
    border-radius: 4px;
    margin: 5px !important;
    padding: 10px 24px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

@media (max-width: 480px) {
    .custom-toast-popup {
        width: 60% !important;
        max-width: 400px !important;  
        padding: 20px 15px;
        font-size: 15px;
    }

    .custom-toast-button {
        width: 100%;
        font-size: 15px;
    }
    .custom-toast-title {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 8px;
    }
}
.highlight {
    background-color: yellow;
    font-weight: bold;
}
.custom-tooltip {
    position: relative;
    cursor: pointer;
}
.custom-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 1000;
}
.custom-tooltip:hover::after {
    opacity: 1;
}
li.assigned-executive-items:hover{
    background-color: #e4e7ea;
    border: 1px solid #e4e7ea;
    border-radius: 5px;
    cursor: pointer;
}
li.assigned-executive-items.active{
    background-color: #e4e7ea;
    border: 1px solid #e4e7ea;
    border-radius: 5px;
    cursor: pointer;
}
.form-control.is-valid, .was-validated .form-control:valid{
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2328a745' viewBox='0 0 16 16'%3e%3ccircle cx='8' cy='8' r='6'/%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4.5 8.5l2.5 2.5 4.5-4.5'/%3e%3c/svg%3e") !important;
}
.image-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 0.5rem;
}

/* Spinner animation */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top: 4px solid #107658;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.auth-one-bg .bg-overlay{
    background: linear-gradient(to right, #e3df4c, #e239c1) !important;
    opacity: .5 !important;
}

.avatar-sm-custom {
    width: 7rem !important;
    height: 5rem !important;
    overflow: hidden; /* ensures image won't overflow */
    border-radius: 0.5rem; /* optional - keeps corners rounded */
    position: relative;
}

.avatar-sm-custom img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ensures image covers area without distortion */
    object-position: center; /* centers the image nicely */
    display: block;
}

.profile-wid-bg{
    height: 260px !important;
}

@media (max-width: 575.98px) {
    .profile-wid-bg {
        height: 360px !important;
    }
}

.manager-dashboard-card {
    height: 100%;
}

.manager-dashboard-card.manager-card-auto {
    height: auto;
}

.manager-dashboard-card .card-header {
    min-height: 64px;
    padding: 1rem 1.25rem;
}

.manager-dashboard-card .card-body {
    padding: 1rem 1.25rem;
}

.manager-dashboard-table th,
.manager-dashboard-table td {
    vertical-align: middle;
    white-space: nowrap;
}

.manager-dashboard-table td:first-child,
.manager-dashboard-table th:first-child {
    white-space: normal;
}

.manager-dashboard-table .progress {
    min-width: 110px;
}

.manager-user-meta {
    min-width: 170px;
}

.manager-chart-wrap {
    min-height: 320px;
}

.manager-mini-table td,
.manager-mini-table th {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

@media (max-width: 1399.98px) {
    .manager-dashboard-table th,
    .manager-dashboard-table td {
        white-space: normal;
    }
}

@media (max-width: 991.98px) {
    .manager-dashboard-card .card-header {
        min-height: auto;
    }

    .manager-chart-wrap {
        min-height: 280px;
    }
}

@media (max-width: 767.98px) {
    .manager-dashboard-card .card-header,
    .manager-dashboard-card .card-body {
        padding: 0.9rem;
    }

    .manager-user-meta {
        min-width: 0;
    }

    .manager-chart-wrap {
        min-height: 240px;
    }
}
