:root {
    --fuschia: var(--sextary-bg);
    --button-bg: var(--sextary-bg);
    --button-text-color: #fff;
    --baby-blue: #f8faff;

    --primary-bg: #FA6F01;
    --primary-txt: #ffffff;
    --secondary-bg: #454545;
    --secondary-txt: #ffffff;
    --quinary-bg: #ebebeb;
    --quinary-txt: #454545;
    --sextary-bg: #00c8f8;
    --sextary-txt: #ffffff;
    --nonary-bg: #e61711;
    --nonary-txt: #ffffff;
}

.width-100 {width: 100%!important;}
.fw-100 {font-weight: 100!important;}
.fw-200 {font-weight: 200!important;}
.fw-300 {font-weight: 300!important;}
.fw-400 {font-weight: 400!important;}
.fw-500 {font-weight: 500!important;}
.fw-600 {font-weight: 600!important;}
.fw-700 {font-weight: 700!important;}
.fw-800 {font-weight: 800!important;}
.fw-900 {font-weight: 900!important;}
.font-size-45{font-size:45px!important; line-height: 60px!important;}
.font-size-35{font-size:35px!important; line-height: 54px!important;}
.font-size-27{font-size:27px!important; line-height: 38px!important;}
.font-size-24{font-size:24px!important; line-height: 34px!important;}
.font-size-22{font-size:22px!important; line-height: 30px!important;}
.font-size-20{font-size:20px!important; line-height: 28px!important;}
.font-size-18{font-size:18px!important; line-height: 26px!important;}
.font-size-16{font-size:16px!important; line-height: 24px!important;}
.font-size-14{font-size:14px!important; line-height: 22px!important;}
.font-size-13{font-size:13px!important; line-height: 30px!important;}

/*Loading Ajax*/
.waiting_for_ajax, .popup-ajax  {
    position: fixed;
    top: 50%;
    transform: translate(0, -50%);
    width: 100%;
    height: 100%;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 9999999999999999999;
    max-height: 100%;
    display: flex;
}
.popup-ajax {
    max-height: 100%;
    z-index: 999;
}
.waiting_for_ajax > div, .popup-ajax > div {
    opacity: 0.9;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgb(9 9 9 / 75%);
    width: 100%;
    border-radius: 10px;
    margin: auto;
}
.popup-ajax > div{
    max-width: 500px;
    justify-content: space-between;
    max-height: 530px;
    padding-top: 25px;
    padding-bottom: 25px;
}
.waiting_for_ajax > div.successfully, .popup-ajax > div.trigger-failed{
    opacity: 1;
    background: #eeeeee;
    position:relative;
}
.trigger-failed .request-assign {
    display: flex;
    justify-content: space-between;
}
.trigger-failed .request-assign > div {
    width: calc(50% - 10px);
    padding: 5px;
    border: 1px #b3b3b3 solid;
    border-radius: 5px;
}
.trigger-failed .request-assign > a {
    display: block;
    margin-right: 10px;
    margin-left: 10px;
    border: 2px #ababab dashed;
    padding-top: 5px;
    padding-bottom: 5px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 14px;
    color: var(--secondary-bg);
    transition: 0.3s all;
}
.trigger-failed .request-assign > a:hover {
    background: var(--primary-bg);
}
.waiting_for_ajax > .successfully .close-popup, .popup-ajax > .trigger-failed .close-popup {
    position: absolute;
    top: 5px;
    right: 5px;
    text-align: center;
    border-radius: 5px;
    font-weight: 800;
    color: var(--secondary-bg);
    cursor: pointer;
    transition: 0.1s all;
}
.waiting_for_ajax > .successfully .close-popup:hover, .popup-ajax > .trigger-failed .close-popup:hover {
    opacity: 0.7;
}
.waiting_for_ajax img {
    width: 200px;
    border-radius: 10px;
}
.close-popup i {
    font-size: 26px;
}
.waiting_for_ajax > div.successfully img, .popup-ajax .trigger-failed > img {
    width: 80px;
}
.waiting_for_ajax > div.successfully i, .popup-ajax .trigger-failed > i {
    font-size: 80px;
    color: #FF3931;
}
.waiting_for_ajax p, .popup-ajax p {
    font-size: 16px;
    color: #FFF ! Important;
    height: auto;
    margin-bottom: 0px;
    padding-bottom: 15px;
}
.waiting_for_ajax > div.successfully p, .popup-ajax > div.trigger-failed p {
    color: var(--secondary-bg)!important;
    font-weight: 400;
    text-transform: uppercase;
}
/*Ajax end*/

/*Switch*/
/*--------------------*/
.switch {
    position: relative;
    display: inline-block;
    width: 65px;
    height: 25px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 5px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #4199fd;
}

input:focus + .slider {
    box-shadow: 0 0 1px #4199fd;
}

input:checked + .slider:before {
    -webkit-transform: translateX(37px);
    -ms-transform: translateX(37px);
    transform: translateX(37px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.form-cs-wrapper{
    position: relative;
}
.form-cs-wrapper .form-cs-control :where(input, select, textarea, button) {
    width: 100%;
    max-width: 100%;
    padding: 5px 15px;
    margin: 0;
}
.form-cs-wrapper .form-cs-control .select2 button {
    width: auto;
}
.form-cs-wrapper .form-cs-control.row-horizontal {
    display: flex;
}
.form-cs-wrapper .form-cs-control label {
    display: block;
}

/*Float Label*/
.form-cs-wrapper .form-cs-control.floatLabel {
    position: relative;
}
.form-cs-wrapper .form-cs-control.floatLabel label {
    background: var(--primary-bg);
    color: var(--primary-txt);
    padding: 3px 15px;
    border-radius: 5px 5px 0px 0px;
    margin: 0;
}
.form-cs-wrapper .form-cs-control.floatLabel :where(input, select, textarea, button) {
    border-radius: 0px 0px 5px 5px;
    border-top: unset;
}



/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 40px;
    width: 40px;
    background-color: var(--quinary-bg);
    border-radius: 5px;
    border: 1px #969696 solid;
}
.checkmark.sq-30{
    height: 30px;
    width: 30px;
}
.checkmark.sq-50{
    height: 50px;
    width: 50px;
}
.checkmark.sq-60{
    height: 60px;
    width: 60px;
}
.checkmark + * {
    padding-left: 55px;
}
.checkmark.sq-30 + * {
    padding-left: 45px;
}
.checkmark.sq-50 + * {
    padding-left: 65px;
}
.checkmark.sq-60 + * {
    padding-left: 75px;
}

input:checked ~ .checkmark {
    background-color: var(--primary-bg);
}
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 0;
    right: 0;
    top: 4px;
    width: 14px;
    height: 22px;
    border: solid #fff;
    border-width: 0 4px 4px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    margin: auto;
}
.checkmark.sq-30:after{
    top: 3px;
    width: 10px;
    height: 16px;
    border-width: 0 3px 3px 0;
}
.checkmark.sq-50:after{
    top: 6px;
    width: 15px;
    height: 27px;
    border-width: 0 5px 5px 0;
}
.checkmark.sq-60:after{
    top: 7px;
    width: 20px;
    height: 34px;
    border-width: 0 6px 6px 0;
}
input:checked ~ .checkmark:after {
    display: block;
}

/*TABLE FILTER*/
.tf-filter-bar { display:flex; gap:8px; margin-bottom:12px; align-items:center; }
.tf-filter-btn {
    flex:1; display:flex; align-items:center; justify-content:center; gap:6px;
    padding:10px 12px; background:#fff; border:1px solid #d9e2ec; border-radius:10px;
    font-size:16px; font-weight:500; color:#52606d; cursor:pointer;
    transition:all .15s ease; font-family:inherit;
}
.tf-filter-btn:hover { border-color:#2ca6e0; color:#1f7fab; }
.tf-filter-btn.has-filter { background:#eaf7fd; border-color:#2ca6e0; color:#1f7fab; font-weight:700; }
.tf-filter-btn svg { width:16px; height:16px; }
.tf-filter-badge {
    background:#d64545; color:#fff; font-size:16px; font-weight:700; padding:0 6px;
    border-radius:8px; min-width:18px; height:18px; display:inline-flex;
    align-items:center; justify-content:center; line-height:1;
}

/* Drawer / modal */
.tf-drawer-mask {
    position:fixed; inset:0; background:rgba(31,41,51,.4); opacity:0; pointer-events:none;
    transition:opacity .25s ease; z-index:100; display:flex; align-items:center;
    justify-content:center; padding:20px;
}
.tf-drawer-mask.is-open { opacity:1; pointer-events:auto; }
.tf-drawer {
    position:relative; background:#fff; border-radius:16px; padding:24px 20px 20px;
    width:100%; max-width:400px; max-height:85vh; overflow-y:auto; opacity:0;
    transform:scale(.92); transition:opacity .25s ease, transform .25s cubic-bezier(.4,0,.2,1);
    box-shadow:0 20px 60px rgba(0,0,0,.25); z-index:101;
}
.tf-drawer.is-open { opacity:1; transform:scale(1); }
.tf-drawer-title { font-size:20px; font-weight:700; color:#1f2933; letter-spacing:2px; margin-bottom:18px; text-align:center; }
.tf-drawer-section { margin-bottom:22px; }
.tf-drawer-label {
    display:inline-block; font-size:16px; font-weight:500; color:#52606d; margin-bottom:8px;
    letter-spacing:.5px; padding:2px 8px; background:#f5f7fa; border-radius:4px;
}
.tf-type-presets { display:flex; flex-wrap:wrap; gap:6px; }
.tf-type-preset {
    flex:1 1 30%; padding:12px 8px; background:#f5f7fa; border:1px solid #d9e2ec;
    border-radius:8px; font-size:16px; color:#52606d; cursor:pointer;
    transition:all .15s ease; font-family:inherit; text-align:center; letter-spacing:.5px;
}
.tf-type-preset:hover { border-color:#2ca6e0; color:#1f7fab; }
.tf-type-preset.is-active { background:#2ca6e0; color:#fff; border-color:#2ca6e0; font-weight:700; }

/* Date Range */
.tf-date-presets { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:8px; }
.tf-date-preset {
    flex:1 1 22%; padding:12px 8px; background:#f5f7fa; border:1px solid #d9e2ec;
    border-radius:8px; font-size:16px; color:#52606d; cursor:pointer;
    transition:all .15s ease; font-family:inherit; text-align:center; letter-spacing:.5px;
}
.tf-date-preset:hover { border-color:#2ca6e0; color:#1f7fab; }
.tf-date-preset.is-active { background:#2ca6e0; color:#fff; border-color:#2ca6e0; font-weight:700; }
.tf-date-range { display:flex; flex-direction:column; gap:6px; }
.tf-date-input {
    width:100%; padding:10px 12px; border:1px solid #d9e2ec; border-radius:8px;
    font-size:16px; color:#1f2933; font-family:inherit; background:#fff;
}
.tf-date-input:focus { outline:none; border-color:#2ca6e0; }
.tf-date-separator { color:#8a9aa5; font-size:16px; text-align:center; letter-spacing:2px; }

.tf-drawer-actions { display:flex; gap:10px; margin-top:8px; }
.tf-drawer-btn {
    flex:1; height:46px; border-radius:10px; font-size:18px; font-weight:700;
    letter-spacing:2px; cursor:pointer; font-family:inherit; border:none; transition:all .15s ease;
}
.tf-drawer-btn.btn-reset { background:#f5f7fa; color:#52606d; border:1px solid #d9e2ec; }
.tf-drawer-btn.btn-reset:hover { background:#eaf0f5; }
.tf-drawer-btn.btn-apply { background:#2ca6e0; color:#fff; box-shadow:0 3px 0 #1f7fab; }
.tf-drawer-btn.btn-apply:hover { transform:translateY(-1px); box-shadow:0 4px 0 #1f7fab; }
.tf-drawer-btn.btn-apply:active { transform:translateY(2px); box-shadow:0 1px 0 #1f7fab; }

/* Sort menu */
.tf-sort-menu {
    position:fixed; background:#fff; border-radius:10px; box-shadow:0 8px 24px rgba(0,0,0,.12);
    padding:6px; min-width:160px; opacity:0; pointer-events:none; transform:translateY(-4px);
    transition:all .15s ease; z-index:50;
}
.tf-sort-menu.is-open { opacity:1; pointer-events:auto; transform:translateY(0); }
.tf-sort-item {
    display:block; width:100%; padding:10px 12px; background:none; border:none; font-size:16px;
    color:#1f2933; text-align:left; cursor:pointer; font-family:inherit; border-radius:8px;
    transition:background .15s ease;
}
.tf-sort-item:hover { background:#f5f7fa; }
.tf-sort-item.is-active { background:#eaf7fd; color:#1f7fab; font-weight:700; }
/*TABLE FILTER - END*/

table.dataTable thead th, table.dataTable thead td {
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    padding: 15px 10px;
    text-align: center;
}
.dataTables_length select, .dataTables_filter input[type="search"], .dataTables_filter select {
    border-radius: 5px;
    background: #fafafa;
    color: #666;
    border: 1px solid #ccc;
    padding: 10px 15px;
    box-sizing: border-box;
    max-width: 100%;
    outline: unset;
    line-height: 1.5;
}
.dataTables_wrapper label {
    text-transform: uppercase;
    margin-bottom: 15px;
}
.table-detail-wrapper {
    border: 2px var(--primary-bg) solid;
    border-radius: 5px;
    position: relative;
    top: -6px;
    padding: 10px;
    box-shadow: 2px 2px 5px rgb(0 0 0 / 20%);
    overflow-x: auto;
    margin-right: 10px;
}
.table-detail-wrapper table{
    text-align: center;
    width: auto !important;
    min-width: calc(100% - 1px);
    margin-bottom: 15px !important;
    margin-top: 15px !important;
}
.table-detail-wrapper button {
    margin-right: 10px !important;
    padding: 10px 15px !important;
}
.table-detail-wrapper p, .table-detail-wrapper span {
    font-size: inherit!important;
    margin: 0;
}
.table-detail-wrapper tr td {
    position: relative;
    text-align: center;
    min-width: 80px;
}
.table-detail-wrapper tr td > .edit-row {
    position: absolute;
    right: calc(100% + 0px);
    top: 55%;
    transform: translate(0, -50%);
    height: 30px;
}
.display-database-table-data .table-detail-wrapper {
    padding: 0;
    border: unset;
    margin: 0;
    box-shadow: unset;
    background: transparent;
    overflow-y: hidden;
    overflow-x: auto;
    border-radius: 0;
    margin-top: 50px;
}
.display-database-table-data table, .display-database-table-data td, .display-database-table-data th {
    border: 1px solid rgba(0, 0, 0, .1);
}
.display-database-table-data td, .display-database-table-data th {
    border-width: 0 1px 1px 0;
}
.display-database-table-data .table-detail-wrapper th {
    padding-right: 20px;
}

.display-database-table-data .table-detail-wrapper .dt-button-collection {
    max-height: calc(100% - 100px);
    overflow-y: auto;
}