/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
    --primary: #013475;
    --while: #fff;
    --color: #444444;

    --defau-color-boder: #ebeef4;
    --color-boder: #cddfff;

    --background-hover: #f6f9ff;
    --color-hover: #4154f1;

    --thead-color-border: #e9ebec;
    --thead-background: #c0c0c0;
}

.fs-22 {
    font-size: 22px !important;
}
.fs-11 {
    font-size: 11px !important;
}
.fs-12 {
    font-size: 12px !important;
}
.fs-15 {
    font-size: 15px !important;
}
a {
    text-decoration: none;
}

.w-40px {
    width: 40px;
}
.min-w-100px {
    min-width: 100px;
}
.min-w-220px {
    min-width: 220px;
}

.img-search-empty {
    width: 150px;
    height: auto;
}

h4.title, h5.title, h6.title {
    font-weight: 600;
}

.bg-primary {
    background-color: var(--primary) !important;
}
.text-primary {
    color: var(--primary) !important;
}
.border-primary {
    border-color: var(--primary) !important;
}
.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}
.btn-secondary {
    color: var(--primary) !important;
    background-color: var(--color-boder) !important;
    border-color: var(--color-boder) !important;
}
.btn-hover {
    background-color: var(--color-hover) !important;
    border-color: var(--color-hover) !important;
    color: white;
}

.btn-reset {
    all: unset;
    display: inline-block;
    cursor: pointer;
}

/*--------------------------------------------------------------
# Toast
--------------------------------------------------------------*/
.toast {
    opacity: 1 !important;
}

/*--------------------------------------------------------------
# Table
--------------------------------------------------------------*/
.table-responsive {
    max-height: calc(100vh - 250px);
}
.table-responsive table {
    margin-bottom: 0;
}
.table-responsive table thead {
    position: sticky;
    top: -1px;
    z-index: 1;
    border-color: var(--thead-color-border);
    background-color: var(--thead-background) !important;
}
.table-responsive table thead th {
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}
.table-responsive table thead th p {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    white-space: nowrap;
    justify-content: center;
}
.table-responsive table thead th a {
    color: var(--thead-background);
}
.table-responsive table thead th {
    background-color: var(--color-boder) !important;
    padding: 12px;
    color: var(--primary);
}
.table-responsive .table-striped>tbody>tr:nth-of-type(odd)>*:not(.p-sticky) {
    --bs-table-bg-type: var(--background-hover);
}
.table-responsive table thead th.p-sticky {
    position: sticky;
    background-color: #9dbde8 !important;
}
.table-responsive table tbody td.p-sticky {
    position: sticky;
    background-color: var(--color-boder);
    font-weight: 600;
    color: var(--primary);
}
#pagination .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

/*--------------------------------------------------------------
# Form
--------------------------------------------------------------*/
input.form-control, input.select2-search__field {
    border-color: var(--color-boder) !important;
    border-radius: 4px !important;
}
input:focus {
    box-shadow: none !important;
    outline: none !important;
}

.input-group input {
    padding-left: 40px;
}
.input-group i {
    position: absolute;
    top: 10px;
    left: 15px;
    color: var(--primary);
}
.input-group:focus-within i {
    z-index: 5;
}

.flatpickr-calendar.animate.arrowBottom.arrowLeft {
    border: 1px solid var(--color-boder);
}

/*--------------------------------------------------------------
# Select2
--------------------------------------------------------------*/
.select2-container {
    max-width: 100% !important;
    width: 100% !important;
}
.select2-container .select2-selection--single {
    height: 38px !important;
    border-color: var(--color-boder) !important;
}
.select2-selection__rendered {
    padding-top: 4px;
}
.select2-container .select2-selection--single .select2-selection__arrow {
    top: 5px;
}
.select2-dropdown {
    border-color: var(--color-boder) !important;
}

span.select2 .select2-selection.select2-selection--multiple {
    border-color: var(--color-boder);
}
span.select2 .select2-selection__choice {
    border-color: var(--color-boder) !important;
    background-color: var(--color-boder) !important;
    color: var(--primary);
}
span.select2 .select2-selection__choice__remove {
    color: var(--primary) !important;
}

/*--------------------------------------------------------------
# File manager frame
--------------------------------------------------------------*/
#file-manager-frame {
    width: 100%;
    height: 100%;
    border: none;
}

