@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Poppins:ital,wght@0,300;0,400;0,600;1,400&display=swap');

/* ===================== CSS VARIABLES ===================== */
:root {
    --white-color: #FFF;
    --white-smoke: #F5F7F8;
    --danger-color: #D80032;
    --darkgrey-color: #331D2C;
    --border-grey: #8f8f8f;
    --theme-color: #0043D8;
    --green-color:  #10793F;
    --grey-color: #EBEBEB;
    --btn-active-shadow: rgba(50, 50, 93, 0.25) 0 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0 18px 36px -18px inset;
    --sidebar-icon-size: 17px;
    --icon-size: 24px;
    --default-font-size: 14px;

    --sidebar-bg: var(--white-smoke);
    --sidebar-color: var(--darkgrey-color);
    --sidebar-active-bg: var(--theme-color);
    --sidebar-active-color: var(--white-color);
    --primary-bg: var(--white-color);
    --primary-color: var(--darkgrey-color);
    --disable-bg: var(--grey-color);

    /* Bootstrap Override Variables */
    --bs-offcanvas-width: 300px !important;
    --bs-border-radius: 0 !important;
    --bs-dropdown-link-color: var(--bs-dark) !important;
    --bs-body-bg: var(--sidebar-bg) !important;

    /* Font Sizes */
    --input-font-size: var(--default-font-size);
    --btn-font-size: 12px;
    --sidebar-text-font-size: 12px;
}

/* ===================== RESET / BASE ===================== */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-family: 'Poppins', sans-serif;
    font-size: var(--default-font-size);
}

main {
    min-height: calc(100vh - 65px);
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
}

h3 {
    font-size: 20px;
}

h1, h3, h5 {
    font-weight: 700;
}

h2 {
    font-weight: 600;
}

label {
    font-size: 14px;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    background-color: #6ea8fe;
    color: #343a40;
}

.table thead tr th {
    background-color: #0043D8 !important;
    color: white !important;
    text-align: center !important;
    vertical-align: middle !important;
}
.table tbody  tr td {
    text-align: center ;
    vertical-align: middle !important;
}
.table td svg {
    display: block;
    margin: 0 auto;
}
.table th span {
    display: inline-flex;
    align-items: center;
}

a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    font-size: 14px;
    cursor: pointer;
}

hr {
    border-color: var(--border-grey);
    margin-block: 0;
}

/* ===================== COLORS ===================== */
.primary-color {
    background-color: var(--white-color);
    color: var(--darkgrey-color);
}

.secondary-color {
    background-color: var(--theme-color);
    color: var(--white-color);
}

.success-color {
    background-color: var(--green-color);
    color: var(--white-color);
}

.danger-color {
    background-color: var(--danger-color);
    color: var(--white-color);
}

/* ===================== BUTTONS ===================== */
button {
    display: inline-block;
    padding-inline: 0;
    font-size: var(--btn-font-size);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: inherit;
}

/* Override bootstrap */
.btn {
    font-size: var(--default-font-size);
}

.btn-close {
    --bs-btn-close-focus-shadow: none;
}

/* Shared button base */
a.primary-btn,
a.border-btn,
a.danger-btn,
a.text-btn,
a.success-btn,
a.btn-refresh {
    font-size: var(--btn-font-size);
}

.primary-btn,
.border-btn,
.danger-btn,
.text-btn,
.success-btn,
.btn-refresh {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 80px;
    padding: 8px 13px;
}

/* Primary button */
.primary-btn {
    border-radius: 4px;
    background-color: var(--theme-color);
    color: var(--white-color);
    opacity: 1;
}

.primary-btn:hover,
.primary-btn:focus {
    box-shadow: var(--btn-active-shadow);
}

/* Danger button */
.danger-btn {
    border-radius: 4px;
    background-color: var(--danger-color);
    color: var(--white-color);
    opacity: 1;
}

.danger-btn:hover,
.danger-btn:focus {
    box-shadow: var(--btn-active-shadow);
}

/* Success button */
.success-btn {
    border-radius: 4px;
    background-color: var(--green-color);
    color: var(--white-color);
    opacity: 1;
}

.success-btn:hover,
.success-btn:focus {
    box-shadow: var(--btn-active-shadow);
}

/* Border button */
.border-btn {
    background-color: var(--white-color);
    border: 1px solid var(--darkgrey-color);
    opacity: 1;
}

.border-btn:hover,
.border-btn:focus {
    background-color: var(--white-smoke);
}

/* Refresh / Reset button */
.btn-refresh {
    border-radius: 4px;
    gap: 4px;
    background-color: #6c757d;
    color: var(--white-color);
    opacity: 1;
    min-width: unset;
}

/* Disabled states */
button[disabled] {
    opacity: 50%;
    cursor: not-allowed !important;
}

/* Button icon inside buttons */
.btn-icon {
    width: 18px;
}

.sort-icon {
    display: flex;
}

.sort-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Loader inside buttons */
.loader {
    border-radius: 50%;
    display: inline-block;
    border-top: 3px solid var(--darkgrey-color);
    border-right: 3px solid transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.primary-btn > .loader,
.danger-btn > .loader {
    border-top: 3px solid var(--white-color);
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===================== ICONS ===================== */
.icon,
.table-action-icon {
    object-fit: cover;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 100ms ease-in;
}

.icon {
    width: var(--icon-size);
}

.table-action-icon {
    width: var(--sidebar-icon-size);
}

.icon:hover,
.table-action-icon:hover {
    opacity: 1;
}

.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    background-color: #0043D8;
    border-radius: 6px;
}

/* ===================== TEXT HELPERS ===================== */
.danger-text {
    color: var(--danger-color);
}

.error-desc {
    color: var(--danger-color);
    font-size: 12px;
}

.required-field {
    color: var(--danger-color);
}

/* ===================== DROPDOWN ===================== */
.dropdown-menu {
    border: 1px solid var(--border-grey);
    box-shadow: rgba(0, 0, 0, 0.35) 0 5px 15px;
}

.dropdown-item {
    font-size: 14px;
}

.dropdown-toggle {
    font-size: var(--default-font-size);
}

.dropdown-toggle:after {
    margin-left: 0.8em;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--theme-color);
    color: var(--white-smoke);
}

/* ===================== MODAL ===================== */
/* z-index needed because of sidebar minimized z-index */
.modal {
    z-index: 1058 !important;
}

.modal-content {
    background-color: var(--white-smoke);
    border: none;
    border-radius: 0;
}

.modal-header {
    border-radius: 0;
    padding: 16px 22px;
}

.modal-header > .btn-close {
    filter: invert(100%);
}

.modal-body {
    padding: 16px 22px;
}

.modal-backdrop {
    z-index: 1057 !important;
}

/* ===================== FORM INPUTS ===================== */
.form-input {
    display: block;
    width: 100%;
    padding: 6px 12px;
    background-color: inherit;
    border: 1px solid var(--border-grey);
    border-radius: 4px;
    font-size: var(--input-font-size);
}

input[disabled] {
    border: none;
    background: var(--disable-bg);
}

.form-input:focus,
.select2-search__field[type=search]:focus {
    box-shadow: none;
    outline: 1px solid var(--darkgrey-color);
}

/* Form group */
.form-group {
    position: relative;
    margin-bottom: 16px;
}

/* Password wrapper */
.password-wrapper {
    display: flex;
    position: relative;
}

.password-wrapper > .form-input__eye {
    width: 18px;
    position: absolute;
    right: 10px;
    top: 8px;
    cursor: pointer;
    transition: transform 100ms ease-in;
}

.password-wrapper > .form-input__eye:hover {
    transform: scale(1.2);
}

/* Form Radio */
.form-group > div > .btn-check:checked + .btn {
    background: var(--theme-color);
    color: var(--white-color);
}

/* ===================== SELECT2 ===================== */
.select2-container {
    width: auto !important;
    min-width: 200px !important;
    display: block !important;
}

.select2-container:focus {
    outline: 1px solid var(--darkgrey-color);
}

.select2-container .select2-selection--single {
    border-radius: 0 !important;
    background-color: inherit !important;
    color: var(--darkgrey-color) !important;
    padding: 6px 12px !important;
    height: auto !important;
    border: 1px solid var(--border-grey) !important;
}

.select2-container .select2-selection--single[aria-disabled="true"] {
    background-color: var(--disable-bg) !important;
    border: none !important;
}

.select2-selection__rendered {
    font-size: var(--input-font-size);
    padding: 0 !important;
    line-height: inherit !important;
    color: var(--darkgrey-color);
    margin-inline: 0 0 !important;
    margin-block: 0 !important;
}

.select2-selection__arrow {
    height: 100% !important;
}

.select2-search__field[type=search] {
    display: block !important;
    width: 100% !important;
    padding: 6px 12px !important;
    background-color: inherit !important;
    border: 1px solid var(--border-grey) !important;
    border-radius: 0 !important;
    outline-offset: 0 !important;
    font-size: var(--input-font-size);
}

.select2-selection.select2-selection--multiple .select2-search__field[type=search] {
    margin: 0 !important;
    align-self: flex-start !important;
    border: none !important;
    padding: 0 !important;
    height: 21px !important;
}

.select2-container--default .select2-selection--multiple {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    width: 100% !important;
    padding: 6px 12px !important;
    background-color: inherit !important;
    border: 1px solid var(--border-grey) !important;
    border-radius: 0 !important;
    outline-offset: 0 !important;
    font-size: var(--input-font-size);
}

.select2-container--default .select2-selection--multiple[aria-disabled="true"] {
    background-color: var(--disable-bg) !important;
    border: none !important;
}

.select2-container--default .select2-selection--multiple[aria-disabled="true"] .select2-selection__choice {
    background-color: var(--disable-bg) !important;
    padding: 0 10px;
}

.select2-container--default .select2-selection--multiple[aria-disabled="true"] .select2-selection__choice__display {
    padding: 0;
}

.select2-selection__rendered {
    margin-inline: 0 0 !important;
    margin-block: 0 !important;
}

.select2-selection__choice {
    margin-inline: 0 10px !important;
    margin-block: 0 !important;
    background: var(--white-color) !important;
    border: none !important;
    outline: 1px solid var(--darkgrey-color) !important;
    border-radius: 0 !important;
}

/* For Option Hover */
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: var(--theme-color) !important;
    color: var(--white-color) !important;
}

/* For Option selected */
.select2-container--default .select2-results__option--selected {
    background-color: var(--darkgrey-color) !important;
    color: var(--white-color) !important;
}

/* for select2 dropdown box z-index because bootstrap modal z-index is 1055 */
.select2-dropdown {
    z-index: 1056 !important;
}

/* For Toast */
.toast-header {
    background-color: inherit;
    color: inherit;
    border: none;
    justify-content: space-between;
}

.toast-body {
    padding: 20px 16px !important;
    color: var(--darkgrey-color);
    background: var(--white-smoke);
    box-shadow: rgba(0, 0, 0, 0.45) 0 25px 20px -20px;
    border-left: 16px solid;
}

.toast-success {
    border-left-color: var(--green-color);
}

.toast-error {
    border-left-color: var(--danger-color);
}

.toast-body img {
    width: 32px;
    display: inline;
    margin-right: 16px;
}

.toast-header .close-btn {
    background: white;
}

/* Custom Component */
.error-box {
    background: var(--danger-color);
    padding: 20px 15px;
    margin-block-end: 16px;
    font-size: 12px;
    color: var(--white-color);
}

.error-image-wrapper {
    height: calc(100vh - 130px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.error-image {
    width: 300px;
}

.chip {
    width: min-content;
    height: min-content;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: normal;
    text-transform: capitalize;
}

.chip-empty {
    border: 1px solid var(--darkgrey-color);
}

.two-icon-width th:first-child,
.two-icon-width td:first-child {
    width: 37px !important;
    min-width: 37px !important;
    max-width: 37px !important;
}

/* For a lot of form field */
.form-fields-grid {
    display: grid;
    gap: 10px 15px;
    margin-bottom: 20px;
}

.form-two-column-grid {
    grid-template-columns: repeat(2, 1fr);
}

.form-two-column-grid label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-three-column-grid {
    grid-template-columns: repeat(3, 1fr);
}

.form-four-column-grid {
    grid-template-columns: repeat(4, 1fr);
}

@media only screen and (max-width: 48em) {
    .form-two-column-grid,
    .form-three-column-grid {
        grid-template-columns: 1fr;
    }
}

/* Accordion */
.accordion-item {
    background: var(--white-color);
    border: none !important;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 1rem;
}

.accordion-body {
    padding: 0 !important;
}

.accordion-button {
    font-size: inherit !important;
    padding: 5px 0 !important;
    background: var(--white-color) !important;
    border: none;
}

.accordion-button:not(.collapsed) {
    color: inherit !important;
    box-shadow: none !important;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-item {
    border: none !important;
}

.access-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem 1rem;
    margin-bottom: 2rem;
}

.access-item {
    height: 100%;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--white-smoke);
}

.access-item-header {
    text-transform: capitalize;
    padding-block-end: 1rem;
}

.form-group-check {
    padding-block: 5px;
}

.form-input-check {
    margin-inline-end: 8px;
}

.access-list label {
    cursor: pointer;
}
.status-btn {
    min-width: 80px;
    padding: 5px 10px;
    border: none;
    border-radius: 30px;
    color: white;
    cursor: default;
}
.status-active {
    background-color: #20c997;
    color: white;}
.status-inactive {
    background-color: #dc3545;
    color: white; }
.status-pending {
    background-color: #ffc107;
    color: #212529; }
.status-success {
    background-color: #28a745;
    color: white; }
.status-failed {
    background-color: #dc3545;
    color: white;
}
/* table action select page box*/
.action-list-size {
    margin-left: auto;
}
/*add for sys-setting text-left*/
.text-left {
    text-align: left !important;
    padding-left: 15px !important;
}