﻿table.dataTable > thead > tr > th,
table.dataTable > thead > tr > td,
table.dataTable > tbody > tr > td {
    border: none !important;
}

table.dataTable > thead > tr > th,
table.dataTable > tbody > tr > td
{
    background-color: #fbfbfb;
}

table.dataTable {
    border-spacing: 0 15px;
    border-collapse: separate;
}


table.dataTable > thead > tr > th {
    padding-block: 8px;
}

table.dataTable > tbody > tr > td{
    padding-block: 12px;
}

table.dataTable > tbody > tr > td:first-child,
table.dataTable > thead > tr > th:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    padding-left: 24px;
}

table.dataTable > tbody > tr > td:last-child,
table.dataTable > thead > tr > th:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    padding-right: 24px;
}

table.dataTable thead th.sorting_asc:after {
    content: "\f0de";
}

table.dataTable thead th.sorting_desc:after {
    content: "\f0dd";
}

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled {
    background-image: none !important;
}

.dt-search {
    display: none;
}


select{
    outline:none;
}

select option:hover,
select option:checked {
/*    background-color: yellow;*/
}


.dt-paging nav {
    border: 1px solid #F3F4F6 !important;
    border-radius: 9999px;
    padding-block: 4px;
    display: flex;
    align-items: center;
}

div.dt-container .dt-paging .dt-paging-button,
div.dt-container .dt-paging .dt-paging-button.disabled {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    font-size: larger;
    margin: 0 !important;
    padding: 0 !important;
    color: #C4975F !important;
}

div.dt-container .dt-paging .dt-paging-button.current {
    color: #3C5B58 !important;
}

div.dt-container .dt-paging .dt-paging-button:hover {
    cursor: pointer !important;
    color: #C4975F !important;
}

html[dir="rtl"] .select2-container--default .select2-selection--multiple .select2-selection__choice {
    border: unset !important;
    border-radius: 999px !important;
    color: #0C7946 !important;
    background-color: rgba(12, 121, 70, 0.1) !important;
    padding-left: 13px !important;
}
html[dir="ltr"] .select2-container--default .select2-selection--multiple .select2-selection__choice {
    border: unset !important;
    border-radius: 999px !important;
    color: #0C7946 !important;
    background-color: rgba(12, 121, 70, 0.1) !important;
    padding-left: 4px !important;
    padding-right: 13px !important;
}

html[dir="rtl"] .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #0C7946 !important;
    border-left: 0 !important;
}
html[dir="ltr"] .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #0C7946 !important;
    left: unset !important;
    right: 0 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    border-right: unset !important;
}

.select2-container--default .select2-selection--multiple {
    background-color: #fff !important;
    height: auto !important;
    border-color: rgb(209 213 219 / var(--tw-border-opacity));
    padding-left: calc(0.75rem - 5px);
    padding-right: 0.75rem;
    padding-top: calc(0.5rem - 5px);
    padding-bottom: 0.5rem;
    vertical-align: middle;
    border-radius: 0.5rem;
    text-align: start !important;
}



.select2-container--default.select2-container--disabled .select2-selection--multiple {
    background-color: #fff !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    /*    border-width: 5px;*/
    border-color: rgb(154, 170, 168) !important;
}

div.dt-container .dt-length, div.dt-container .dt-search, div.dt-container .dt-info, div.dt-container .dt-processing, div.dt-container .dt-paging {
    color: #ABAEB3;
}

div.dt-layout-cell.dt-layout-end > div > label {
    margin-inline-end: 10px;
}

div.dt-container div.dt-layout-row:has(div.dt-paging) {
    justify-content: center;
}

div.dt-container div.dt-layout-row div.dt-layout-cell.dt-layout-end {
    margin-left: unset;
}

div.dt-container div.dt-layout-row div.dt-layout-cell.dt-layout-start {
    margin-right: unset;
/*    margin-inline-end: auto*/
}

.select2-selection--multiple {
    position: relative;
}
    .select2-selection--multiple::before {
        content: '';
    position: absolute;
    inset-inline-end: 12px;
    top: 50%;
    transform: translateY(-50%); /* Center vertically */
    width: 10px; /* Adjust size */
    height: 10px;
    background-image: url('../images/arrow-down.png'); /* Replace with your SVG file */
    background-size: contain;
    background-repeat: no-repeat;
    }
html[dir="rtl"] .select2-selection--multiple::before {
/*    transform: rotate(-90deg) translateX(65%) !important;*/
/*    transform-origin: center;*/
}

.select2-container--default .select2-search--inline .select2-search__field::placeholder {
    font-family: 'Majalla Bold';
    line-height: normal;
    vertical-align:middle;
    height:24px;
    
       
}

.select2-container .select2-search--inline .select2-search__field {
    height:24px;

}

.select2-container--default.select2-container--disabled .select2-selection--single {
    cursor: default !important;
}
.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__rendered {
    color: rgb(112 121 139 / var(--tw-text-opacity)) !important;
}

/* Default LTR Styles */
input [type="date"] {
    text-align: left; /* Align text to the left */
    direction: ltr; /* Ensure LTR layout */
    position: relative;
}

div.dt-container .dt-input{
    outline:none !important;
    
}

div.dt-container select.dt-input {
    outline: none !important;
}

.ql-font-majalla {
    font-family: "Majalla";
}

/* For Webkit Browsers (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 12px; /* Scrollbar width */
    height: 12px; /* Scrollbar height (for horizontal scrollbar) */
}

::-webkit-scrollbar-thumb {
    background: #3C5B58B2; /* Scrollbar thumb color */
    border-radius: 6px; /* Rounded edges */
}

    ::-webkit-scrollbar-thumb:hover {
        background: #3C5B58B2; /* Thumb color on hover */
    }

::-webkit-scrollbar-track {
    background: #F5F5F5; /* Track color */
    border-radius: 6px; /* Rounded edges */
}

/* For Firefox */
html {
    scrollbar-color: #3C5B58B2 #F5F5F5; /* Thumb color, Track color */
    scrollbar-width: thin; /* Options: auto, thin, none */
}

/* Default styles for single select */
.select2-container--default .select2-selection--single {
    background-color: white; /* Same background as multiple */
    border-color: rgb(209 213 219 / var(--tw-border-opacity)); /* Same border */
    border-radius: 0.5rem; /* Consistent border radius */
    height: calc(2.5rem); /* Match height with multiple */
    padding-left: calc(0.75rem - 5px); /* Same padding as multiple */
    padding-right: 0.75rem;
    display: flex;
    align-items: center; /* Vertically align content */
    position: relative;
    box-sizing: border-box; /* Ensure consistent box model */
    text-align: start !important; /* Align text based on layout direction */
}

/* Focus state for single select */
.select2-container--default .select2-selection--single:focus {
    outline: none; /* Remove default focus outline */
    border-color: rgb(154, 170, 168) !important; /* Consistent focus border */
}

/* Placeholder styling for single select */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    font-family: 'Majalla Bold'; /* Retain font styling */
    color: #9CA3AF; /* Lighter gray placeholder */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Rendered text styling */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal; /* Consistent text alignment */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 0; /* Remove padding to avoid shifting */
}

/* Remove default arrow from select2 single */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none;
}
.select2-container--default .select2-selection--single {
    background-color: white !important;
}
/* Custom arrow for single select (LTR) */
.select2-container--default .select2-selection--single::before {
    content: '';
    position: absolute;
    right: 12px; /* Position on the right for LTR */
    top: 50%;
    transform: translateY(-50%);
    width: 10px; /* Arrow size */
    height: 10px;
    background-image: url('../images/arrow-down.png'); /* Replace with arrow icon */
    background-size: contain;
    background-repeat: no-repeat;
}

/* RTL styles for single select */
html[dir="rtl"] .select2-container--default .select2-selection--single::before {
    content: '';
    position: absolute;
    left: 12px; /* Move arrow to the leftmost side for RTL */
    right: unset; /* Remove right-side positioning */
    top: 50%;
    transform: translateY(-50%);
    width: 10px; /* Arrow size */
    height: 10px;
    background-image: url('../images/arrow-down.png'); /* Same arrow */
    background-size: contain;
    background-repeat: no-repeat;
}

/* Disabled state for single select */
.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: rgb(250, 251, 252 / var(--tw-bg-opacity));
    cursor: not-allowed;
    color: #ABAEB3; /* Match disabled color */
}

/* Placeholder styling for multiple select */
.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
    font-family: 'Majalla Bold'; /* Retain font styling */
    color: rgba(171, 174, 179, 0.6); /* Lighter gray placeholder */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.select2-container--default .select2-results > .select2-results__options {
    font-family: 'Majalla' !important;
}


/* Consistent appearance for both single and multiple */
.select2-container--default .select2-selection--multiple,
.select2-container--default .select2-selection--single {
    background-color: rgb(251 251 251 / var(--tw-bg-opacity));
    border-color: rgb(209 213 219 / var(--tw-border-opacity));
    height: calc(2.85rem); /* Same height */
    border-radius: 0.5rem; /* Same border radius */
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    text-align: start !important;
}

/* Focus state for both */
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: rgb(154, 170, 168) !important;
}

.swal2-container .swal2-confirm:focus,
.swal2-container .swal2-confirm:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

button:focus {
    outline: none;
    box-shadow: none;
}


/*Published/Completed/Accepted/Approved*/
.approved-chip {
    background-color: #DEF2E8;
    color: #0C7946;
}

/*Pending/Awaiting*/
.pending-chip {
    background-color: #EEE2D2;
    color:#C4975F
}

/*Rejected/Deleted/Stopped/Cancelled*/
.rejected-chip {
    background-color: #FBECED;
    color: #CF4757;
}

.returned-chip {
    background-color:#E9F1FF;
    color: #4564B2;
}

.draft-chip {
    background-color: #EEEEEE;
    color: #4B5563;
}

.chip {
    font-family: 'Majalla Bold';
    width: max-content;
    padding-left: 1rem; /* 16px */
    padding-right: 1rem; /* 16px */
   border-radius: 9999px;
}

input, textarea, select {
    background-color: #fff !important;
}

input:disabled, textarea:disabled, select:disabled {
    background-color: #F3F4F6 !important; /* azm-cf-gray-200 */
}