﻿.select2 {
    width: 100% !important;
}
.logoContainer {
    font-size: 30px;
    font-weight: 800;
    color: #1E40AF;
}
    .logoContainer span {
        color: #F59E0B;
    }

.select2-container .select2-selection--single {
    height: calc(2.375rem + 2px) !important;
    padding: 0rem 0.30rem !important;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: calc(2.375rem - 2px) !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: calc(2.375rem) !important;
    top: 2px;
}

.invoice-table {
    min-width: 1000px;
}
.setting-table {
    min-width: 600px;
}

.table-responsive {
    overflow-x: auto;
    position: relative;
}

.table thead th.sticky-col,
.table tbody td.sticky-col {
    position: sticky !important;
    right: 0;
    background: #fff; /* Keep column visible */
    z-index: 5;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1); /* Optional small shadow */
}
.footer-row .badge {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.2rem 0.4rem;
}

.footer-row i {
    font-size: 0.85rem;
}

.footer-row .text-body {
    font-size: 0.75rem;
}

#pageLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.loader-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
}

.loader-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* Sortable header */
th.sortable {
    position: relative;
    cursor: pointer;
    user-select: none;
    padding-right: 22px; /* space for arrows */
    white-space: nowrap;
}

    /* Icon container */
    th.sortable .sort-icons {
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 10px;
        line-height: 10px;
        color: #adb5bd; /* muted */
    }

        /* Default (inactive) */
        th.sortable .sort-icons::before {
            content: "▲\A▼";
            white-space: pre;
        }

    /* Active ASC */
    th.sortable.asc .sort-icons::before {
        content: "▲";
        color: #212529;
        font-weight: 600;
    }

    /* Active DESC */
    th.sortable.desc .sort-icons::before {
        content: "▼";
        color: #212529;
        font-weight: 600;
    }

    /* Hover feedback */
    th.sortable:hover .sort-icons {
        color: #495057;
    }
/* Base container */
/*.ui-datepicker {
    width: 280px;
    padding: 14px;
    border-radius: 10px;
    border: 0;
    background: #fff;
    font-family: inherit;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}*/

/* Header */
/*.ui-datepicker-header {
    background: #696cff;*/ /* Sneat primary */
    /*color: #fff;
    border-radius: 8px;
    padding: 10px;
    border: 0;
}

.ui-datepicker-title {
    font-weight: 600;
    font-size: 14px;
}*/

/* Prev / Next */
/*.ui-datepicker-prev,
.ui-datepicker-next {
    top: 10px;
    cursor: pointer;
}

    .ui-datepicker-prev span,
    .ui-datepicker-next span {
        filter: brightness(0) invert(1);
    }*/

/* Calendar table */
/*.ui-datepicker table {
    width: 100%;
    margin-top: 10px;
}

.ui-datepicker th {
    font-size: 12px;
    font-weight: 600;
    color: #696cff;
    padding: 6px 0;
}*/

/* Day cells */
/*.ui-datepicker td {
    padding: 4px;
}

    .ui-datepicker td a {
        text-align: center;
        padding: 8px 0;
        border: 0;
        color: #696cff;
        transition: all 0.2s ease;
    }*/

        /* Hover */
        /*.ui-datepicker td a:hover {
            background: #e7e7ff;
            color: #696cff;
        }*/

/* Today */
/*.ui-datepicker-today a {
    background: #f1f1f2;
    font-weight: 600;
}*/

/* Selected */
/*.ui-datepicker-current-day a {
    background: #696cff;
    color: #fff;
}*/
.ui-state-highlight {
    background: #ccd7fa !important;
    border: 1px solid #c5c5c5 !important;
}
/* Month / Year dropdowns */
.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
    border-radius: 6px;
    margin: 0px 3px !important;
    border: none;
    padding: 4px 6px;
    font-weight: 500;
}

/* Button panel */
/*.ui-datepicker-buttonpane {
    border-top: 1px solid #ebeef0;
    margin-top: 8px;
    padding-top: 8px;
}

    .ui-datepicker-buttonpane button {
        background: #696cff;
        border: 0;
        color: #fff;
        padding: 6px 14px;
        font-weight: 500;
    }

        .ui-datepicker-buttonpane button:hover {
            background: #696cff;
        }*/

/* From Uiverse.io by AqFox */
.spinner {
    width: 56px;
    height: 56px;
    display: grid;
    border: 4px solid transparent;
    border-radius: 50%;
    border-right-color: #004dff; /* Blue */
    animation: spin 1s infinite linear;
}

    .spinner::before,
    .spinner::after {
        content: "";
        grid-area: 1/1;
        border: inherit;
        border-radius: 50%;
    }

    /* Second ring */
    .spinner::before {
        margin: 2px;
        border-right-color: #00b894; /* Green */
        animation: spin 2s infinite linear;
    }

    /* Third ring */
    .spinner::after {
        margin: 8px;
        border-right-color: #ff9f43; /* Orange */
        animation: spin 3s infinite linear;
    }

@keyframes spin {
    100% {
        transform: rotate(1turn);
    }
}
/* Red border only when invalid */
.input-validation-error {
    border-color: #dc3545 !important;
}
    .input-validation-error + .input-group-text {
        border-color: #dc3545 !important;
    }
    select.input-validation-error + .select2-container .select2-selection--single {
        border-color: #dc3545 !important;
    }
