﻿
/*  -----------------------------DataTable - css------------------------------- */

/* Compact DataTable - headers and cells */

table.dataTable thead th,
table.dataTable tbody td,
table.dataTable tfoot td {
    font-size: 0.9em; /* Smaller font */
    padding: 4px 4px; /* Top/Bottom 2px, Left/Right 4px */
    /*vertical-align: middle;*/ /* Middle align content */
}

/* Optional: top-align headers only */
table.dataTable thead th {
    vertical-align: top !important;
    text-align: center !important;
    white-space: nowrap;
}

/* to chnage the datatable selected line style and color */
table.dataTable tbody tr.selected {
    background-color: #E6F0FF !important;
    color: #0056b3 !important;
    /*font-weight: 600;*/
}

table.dataTable tbody tr:hover {
    background-color: #f5f8ff;
}

/* Match row background behavior */
table.dataTable tfoot tr {
    background-color: inherit;
}

    /* Match hover feel (optional but nice) */
    table.dataTable tfoot tr:hover {
        background-color: #f5f8ff;
    }

.action_button {
    background-color: transparent !important; /* ✅ No background */
    padding: 0;
    margin: 0;
    display: flex; /* ✅ Flex for vertical/horizontal alignment */
    justify-content: center; /* ✅ Center horizontally */
    align-items: center; /* ✅ Center vertically */
    gap: 0px; /* ✅ Small gap between buttons */
}

    .action_button button {
        cursor: pointer;
    }

/* Transparent by default */
.dt-btn-edit,
.dt-btn-delete,
.dt-btn-vat,
.dt-btn-info {
    background-color: transparent !important;
    padding: 2px 3px;
}

    /* Optional hover feedback */
    .dt-btn-edit:hover {
        background-color: rgba(0, 255, 0, 0.1);
    }

    .dt-btn-delete:hover {
        background-color: rgba(255, 0, 0, 0.1);
    }

.dt-nowrap {
    white-space: nowrap;
}

/*Table sorting icon hiding*/
.no-sort::after {
    display: none !important;
}

.no-sort::before {
    display: none !important;
}

.no-sort {
    text-align: center;
    /* pointer-events: none !important;
    cursor: default !important;*/
}

/*.selected {
    color: darkorange;
}*/

.dataTables_scrollBody {
    min-height: 200px; /* Adjust as needed */
}

.text-wrap-500px {
    white-space: pre-line !important;
    max-width: 500px;
    min-width: 500px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.text-wrap-450px {
    white-space: pre-line !important;
    max-width: 450px;
    min-width: 450px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.text-wrap-400px {
    white-space: pre-line !important;
    max-width: 400px;
    min-width: 400px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.text-wrap-350px {
    white-space: pre-line !important;
    max-width: 350px;
    min-width: 350px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.text-wrap-300px {
    white-space: pre-line !important;
    max-width: 300px;
    min-width: 300px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.text-wrap-250px {
    white-space: pre-line !important;
    max-width: 250px;
    min-width: 250px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.text-wrap-200px {
    white-space: pre-line !important;
    max-width: 200px;
    min-width: 200px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.text-wrap-150px {
    white-space: pre-line !important;
    max-width: 150px;
    min-width: 150px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.text-wrap-120px {
    white-space: pre-line !important;
    max-width: 120px;
    min-width: 120px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.text-wrap-100px {
    white-space: pre-line !important;
    max-width: 100px;
    min-width: 100px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.text-wrap-90px {
    white-space: pre-line !important;
    max-width: 90px;
    min-width: 90px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.text-wrap-80px {
    white-space: pre-line !important;
    max-width: 80px;
    min-width: 80px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.text-wrap-70px {
    white-space: pre-line !important;
    max-width: 70px;
    min-width: 70px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.text-wrap-60px {
    white-space: pre-line !important;
    max-width: 60px;
    min-width: 60px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.text-wrap-50px {
    white-space: pre-line !important;
    max-width: 50px;
    min-width: 50px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.text-wrap-40px {
    white-space: pre-line !important;
    max-width: 40px;
    min-width: 40px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.text-wrap-30px {
    white-space: pre-line !important;
    max-width: 30px;
    min-width: 30px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.text-wrap-20px {
    white-space: pre-line !important;
    max-width: 20px;
    min-width: 20px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/*  -----------------------------DataTable - css------------------------------- */


/*----------------auto complete textbox style-----------------------*/

.ui-autocomplete {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: 1.2 !important; /* tighter line spacing */
    background-color: white !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.25rem !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1050 !important;
}

.ui-menu-item {
    padding: 0.25rem 0.5rem !important; /* reduce vertical padding */
    margin: 0 !important;
    line-height: 1.2 !important;
    font-size: inherit !important;
    color: #495057 !important;
}

.ui-menu-item-wrapper.ui-state-active {
    background-color: #007bff !important;
    color: #fff !important;
}

/*----------------auto complete textbox style-----------------------*/



/*
    .pre-line class is for display multiline textbox
*/
.pre-line {
    white-space: pre-line;
}

.facebook-btn {
    background-color: #3C589C;
    color: white;
}

.microsoft-btn {
    background-color: #0067b8;
    color: white;
}

.google-btn {
    background-color: #dd4b39;
    color: white;
}


/*for colapsable panel start*/

.collapse-arrow {
    transition: transform 0.2s ease;
}

.card.collapsed-card .collapse-arrow {
    transform: rotate(-90deg);
}

/*for colapsable panel end*/

/*for full size modal*/
.modal-custom-max {
    max-width: 95vw !important;
    width: 95vw;
}

/*To highlight textbox if worng value entered*/
.input-error {
    background-color: #fff3cd !important;
    border-color: #ffc107 !important;
}