.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;
    font-size: 14px;
    font-weight: 400;
}

.btn-xs i {
    /* padding: 5px 5px !important; */
    font-size: 14px !important;
    font-weight: 400 !important;
}

/* Custom CSS to force wrapping within table cells */
.table-wrap-content th,
.table-wrap-content td {
    white-space: normal !important;
    word-wrap: break-word !important;
    /* overflow-wrap: anywhere !important; */
    max-width: 250px;
}

.table-responsive .table-wrap-content td {
    white-space: normal !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;
}

.loss-td td {
    color: #e3291d !important;
}

.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 {
    min-height: 2.5rem !important;
}

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

.select2-container--default .select2-selection--multiple {
    min-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;
    z-index: 3;
    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;
}

.mode {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    transition:
        background-color .25s ease,
        color .25s ease,
        box-shadow .25s ease,
        transform .15s ease;
    border: 1px solid transparent;
    cursor: default;
}

/* ------------------------------
   INDIVIDUAL STATUS COLORS
--------------------------------*/

/* OPEN - RED */
.mode.open {
    background-color: #d50c1f;
    color: #fff;
}

.mode.open:hover {
    background-color: #b20a1a;
    box-shadow: 0 2px 6px rgba(213, 12, 31, 0.36);
}

/* CANCELLED - DARK */
.mode.cancelled {
    background-color: #23272b;
    color: #fff;
}

.mode.cancelled:hover {
    background-color: #1b1f22;
    box-shadow: 0 2px 6px rgba(35, 39, 43, 0.35);
}

/* INVOICED - ORANGE */
.mode.invoiced {
    background-color: #e67c0e;
    color: white;
}

.mode.invoiced:hover {
    background-color: #cc6d0d;
    box-shadow: 0 2px 6px rgba(230, 124, 14, 0.35);
    cursor: pointer;
}

/* COMPLETED - YELLOW */
.mode.completed {
    background-color: #ffff00fc;
    color: #000;
}

.mode.completed:hover {
    background-color: #f5f204;
    box-shadow: 0 2px 6px rgba(255, 255, 0, 0.4);
}

/* PAID */
.mode.paid,
.mode.paidf {
    background-color: #28a745;
    color: #fff;
}

.mode.paid:hover,
.mode.paidf:hover {
    background-color: #218838;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.35);
}

/* GENERATE INVOICE - BLUE */
.mode.generate-invoice {
    background-color: #306ebb;
    color: white;
}

.mode.generate-invoice:hover {
    background-color: #255fa6;
    box-shadow: 0 2px 6px rgba(48, 110, 187, 0.35);
    cursor: pointer;
}

/* PRE-PAY - GREY */
.mode.pre-pay {
    background-color: #6c757d;
    color: #fff;
}

.mode.pre-pay:hover {
    background-color: #5c636a;
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.35);
}

/* PROCESSED - OUTLINED GREEN */
.mode.processed {
    background-color: #fff;
    color: #28a745;
    border: 1px solid #28a745;
}

.mode.processed:hover {
    background-color: #28a745;
    color: #fff;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.35);
}

.cursor-pointer {
    cursor: pointer;
}

.card-icon-circle-gen {
    background-color: var(--primary-lightest-color);
    color: var(--primary-main-color);
}

.card-icon-circle-loss {
    background-color: rgba(255, 228, 228);
    ;
    color: #d9534f;
}

#loadShipperSelect2,
#load_number_carrier {
    height: 40px;
}

.dashboard-stats-container {
    position: relative;
}

.dashboard-more-stats {
    display: none;
    position: absolute;
    background-color: white;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
    top: 100%;
    left: 0;
    padding: 10px 10px;
    z-index: 1000;
    min-width: 300px;
}

.toggle-stats:hover+.dashboard-more-stats,
.dashboard-more-stats:hover {
    display: block;
}

.dashboard-more-stats .card {
    margin-top: 0;
}

.json-card {
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    margin-left: 20px;
    margin-bottom: 10px;
}

.json-header {
    background-color: #f8f9fa;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    font-weight: 600;
}

.json-body {
    padding: 10px 15px;
}

.indent-line {
    border-left: 2px solid #e0e0e0;
    margin-left: 15px;
    padding-left: 15px;
}