.custom-card-header {
    padding: 0.5rem 1rem !important;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    /* border-radius: 8px; */
}

.btn-xs {
    padding: 5px 5px !important;
}

.overlay-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.75);
    z-index: 50;
}

.bootstrap-tagsinput {
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    display: inline-block;
    padding: 4px 6px;
    color: #555;
    vertical-align: middle;
    border-radius: 4px;
    max-width: 100%;
    line-height: 22px;
    cursor: text;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: unset !important;
}

.select2-container--default .select2-selection--single {
    height: 2.5rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 30% !important;
}

.select2-container--default .select2-selection--multiple {
    height: 2.5rem !important;
}

.bootstrap-tagsinput input {
    border: none;
    box-shadow: none;
    outline: none;
    background-color: transparent;
    padding: 0 6px;
    margin: 0;
    width: auto;
    max-width: inherit;
}

.bootstrap-tagsinput.form-control input::-moz-placeholder {
    color: #777;
    opacity: 1;
}

.bootstrap-tagsinput.form-control input:-ms-input-placeholder {
    color: #777;
}

.bootstrap-tagsinput.form-control input::-webkit-input-placeholder {
    color: #777;
}

.bootstrap-tagsinput input:focus {
    border: none;
    box-shadow: none;
}

.bootstrap-tagsinput .tag {
    margin-right: 2px;
    background-color: lightgray;
    padding: 2px 8px;
    border-radius: 8px;
    color: black;
}

.bootstrap-tagsinput .tag [data-role="remove"] {
    margin-left: 8px;
    cursor: pointer;
}

.bootstrap-tagsinput .tag [data-role="remove"]:after {
    content: "x";
    padding: 0px 2px;
}

.bootstrap-tagsinput .tag [data-role="remove"]:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.bootstrap-tagsinput .tag [data-role="remove"]:hover:active {
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

.btn-blue {
    background-color: #529bfc;
    color: white;

}

.btn-blue:hover {
    background-color: #529bfc;
    color: white;

}

.codex-menu .submenu-list a {
    -webkit-padding-start: 0px !important;
    padding-inline-start: 0px !important;
    padding: 0px 0px !important;
}

.codex-menu li>a {
    /* padding: 0px 0px  !important; */
}

.innerCarrData {
    position: absolute;
    top: 100%;
    /* just below the button */
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* max-width: 80%; */
    /* max-height: 250px; */
    overflow-y: auto;
    z-index: 1000;
}

.bg-gray {
    background-color: #edede9;
}

.img-circular {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: #edede9 4px solid;
    padding: 10px;
}

.floating-button-group {
    padding: 15px;
    border-radius: 10px;
    position: fixed;
    bottom: 95px;
    right: 35px;
    display: flex;
    background-color: black;
    justify-content: flex-end;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #8392a5;
}

.select2-container--default .select2-selection--single {
    background-color: #fff;
    border: 1px solid #e5e5e5 !important;
    border-radius: 4px;
}

.sorting-icons .bi-caret-down-fill {
    margin-top: -5px;
}

.user-card {
    position: relative;
    overflow: hidden;
    /* keeps ribbon inside */
}

.ribbon {
    position: absolute;
    top: 24px;
    left: -30px;
    transform: rotate(-45deg);
    background: #212529;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    width: 140px;
    line-height: 20px;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}
.cursor-pointer{
    cursor: pointer;
}
.text-blue{
    color:#0d6efd !important;
}
.d-cards {
    position: relative;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    background: white;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.d-cards:hover {
    transform: translateY(-3px);
}

.card-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.watermark-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 100px;
    pointer-events: none;
    z-index: 0;
}

.card-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    color: #2d3748;
}

.card-label {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    color: #4a5568;
    margin-top: 0.25rem;
}

.card-content {
    position: relative;
    z-index: 1;
}

/* Violet Card */
.d-card-violet {
    border: 1px solid #e9d5ff;
    box-shadow: rgba(123, 44, 191, 0.12) 0px 2px 4px 0px, rgba(123, 44, 191, 0.32) 0px 2px 16px 0px;
}

.d-card-violet .card-icon-circle {
    background-color: rgba(123, 44, 191, 0.1);
    color: #7b2cbf;
}

.d-card-violet .watermark-icon {
    color: rgba(123, 44, 191, 0.08);
}

/* Blue Card */
.d-card-blue {
    border: 1px solid #dbeafe;
    box-shadow: rgba(13, 110, 253, 0.12) 0px 2px 4px 0px, rgba(13, 110, 253, 0.32) 0px 2px 16px 0px;
}

.d-card-blue .card-icon-circle {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.bg-blue {
    background-color: #15283c !important;
    /* background-image: linear-gradient(to top, #a3bded 0%, #6991c7 100%) !important; */
}

.d-card-blue .watermark-icon {
    color: rgba(13, 110, 253, 0.08);
}

/* Green Card */
.d-card-green {
    border: 1px solid #d1fae5;
    box-shadow: rgba(25, 135, 84, 0.12) 0px 2px 4px 0px, rgba(25, 135, 84, 0.32) 0px 2px 16px 0px;
}

.d-card-green .card-icon-circle {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.d-card-primary {
    /* border: 1px solid lightgray; */
    box-shadow: 0 0 20px 5px rgba(5, 23, 34, .05);
}

.d-card-green .watermark-icon {
    color: rgba(25, 135, 84, 0.08);
}

/* Orange Card */
.d-card-orange {
    border: 1px solid #fed7aa;
    box-shadow: rgba(253, 126, 20, 0.12) 0px 2px 4px 0px, rgba(253, 126, 20, 0.32) 0px 2px 16px 0px;
}

.d-card-orange .card-icon-circle {
    background-color: rgba(253, 126, 20, 0.1);
    color: #fd7e14;
}

.d-card-orange .watermark-icon {
    color: rgba(253, 126, 20, 0.08);
}

@media (max-width: 768px) {
    .card-value {
        font-size: 1.5rem;
    }

    .watermark-icon {
        font-size: 80px;
    }
}

.financial-card {
    background: white;
    border-radius: 12px;
    padding: 1.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.financial-card:hover {
    transform: translateY(-4px);
}

.financial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.card-header-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a5568;
    margin: 0;
}

.card-amount {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.card-projection {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #718096;
    margin-top: 0.75rem;
}

.projection-amount {
    font-weight: 600;
    color: #4a5568;
}

.projection-label {
    color: #a0aec0;
}

/* Receivables Card - Green */
.card-receivables {
    border: 1px solid #d1fae5;
    box-shadow: rgba(16, 185, 129, 0.08) 0px 2px 8px 0px, rgba(16, 185, 129, 0.12) 0px 1px 4px 0px;
}

.card-receivables::before {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.card-receivables .card-icon {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.card-receivables .card-amount {
    color: #10b981;
}

/* Payables Card - Red */
.card-payables {
    border: 1px solid #fee2e2;
    box-shadow: rgba(239, 68, 68, 0.08) 0px 2px 8px 0px, rgba(239, 68, 68, 0.12) 0px 1px 4px 0px;
}

.card-payables::before {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

.card-payables .card-icon {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.card-payables .card-amount {
    color: #ef4444;
}

/* Gross Profit Card - Blue */
.card-profit {
    border: 1px solid #dbeafe;
    box-shadow: rgba(59, 130, 246, 0.08) 0px 2px 8px 0px, rgba(59, 130, 246, 0.12) 0px 1px 4px 0px;
}

.card-profit::before {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
}

.card-profit .card-icon {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.card-profit .card-amount {
    color: #3b82f6;
}

@media (max-width: 768px) {
    .card-amount {
        font-size: 1.85rem;
    }
}

.amount-section {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.amount-box {
    text-align: center;
    flex: 1;
}

.amount-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 8px;
}

.amount-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #212529;
}