﻿.bg-mhd {
    color: #ffffff !important;
    background-color: #E28B29 !important;
    font: bold;
    vertical-align: middle;
}

.bg-gsi {
    color: #ffffff !important;
    background-color: #036bc6 !important;
    font: bold;
    vertical-align: middle;
}


.fc-holiday-notes {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
}

.fc-holiday-header {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.fc-holiday-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fc-holiday-item {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.fc-holiday-date {
    display: inline-block;
    min-width: 60px;
    padding: 4px 6px;
    border-radius: 3px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    margin-right: 8px;
}

.fc-holiday-title {
    font-size: 1.4rem;
    color: #333;
}




table.dataTable.fixedHeader-floating {
    margin-top: 0 !important;
    border-bottom: none !important;
}

@media (min-width: 1367px) {
    .card-body.stickyParent {
        overflow-x: visible; 
    }

    table.sticky thead {
        position: sticky;
        top: 74px;
        background: #e68a1d;
        color: #fff;
        z-index: 10;
        padding: 6px 8px;
        white-space: nowrap;
    }

    .modal table.sticky thead {
        position: sticky;
        top: 0px; 
        background: #e68a1d;
        color: #fff;
        z-index: 10;
        padding: 6px 8px;
        white-space: nowrap;
    }

/*    td.dt-control::before {
        content: "" !important;
        display: none !important;
    }*/

}

/* iPad Mini landscape */
@media (min-width: 1024px) and (max-width: 1366px) {
    .card-body.stickyParent {
        overflow-x: visible;
    }

    table.sticky thead {
        position: sticky;
        top: 74px; 
        background: #e68a1d;
        color: #fff;
        z-index: 10;
        padding: 6px 8px;
        white-space: nowrap;
    }

    .modal table.sticky thead {
        position: sticky;
        top: 0px;
        background: #e68a1d;
        color: #fff;
        z-index: 10;
        padding: 6px 8px;
        white-space: nowrap;
    }
/*    td.dt-control::before {
        content: "" !important;
        display: none !important;
    }*/



}

/* iPad Mini portrait */
@media (min-width: 768px) and (max-width: 1023px) {
    .card-body.stickyParent {
        overflow-x: visible;
    }

    table.sticky thead {
        position: sticky;
        top: 0px;
        background: #e68a1d;
        color: #fff;
        z-index: 10;
        padding: 6px 8px;
        white-space: nowrap;
    }

/*    td.dt-control::before {
        content: "" !important;
        display: none !important;
    }*/
}



/* Mobile */
@media (max-width: 767px) {
    #displayFirstName {
        padding-right: 163px;
    }


    .card-body.stickyParent {
        overflow-x: visible;
    }

    table.sticky thead {
        position: sticky;
        top: 0px;
        background: #e68a1d;
        color: #fff;
        z-index: 10;
        padding: 6px 8px;
        white-space: nowrap;
    }

    table.sticky td {
        font-size: 13px;
        padding: 6px;
    }


    td.dt-control {
        display: flex;
        align-items: center;
        justify-content: start;
        gap: 8px;
    }

    td.dt-control::before {
        content: "▶";
        font-size: 14px;
        color: #666;
        font-weight: bold;
    }

    tr.shown td.dt-control::before {
        content: "▼";
    }

}

.dataTables_paginate {
    float: right;
}

#tableData-uploadResult td {
    white-space: normal !important;
    word-break: break-word;
}

.table-fixed {
    table-layout: fixed;
    width: 100%;
}

.dataTables_filter {
    float: right;
}

td.dataTables_empty {
    text-align: center;
}

.tox-tinymce {
    border-color: var(--bs-gray-300) !important;
}

.blink {
    -webkit-animation: blink 1s step-end infinite;
    animation: blink 1s step-end infinite;
}

.tooltip {
    font-family: Montserrat, "Segoe UI", Arial, sans-serif;
}

@-webkit-keyframes blink {
    50% {
        visibility: hidden;
    }
}

@keyframes blink {
    50% {
        visibility: hidden;
    }
}

input[readonly] {
    background-color: var(--bs-light);
}

input[readonly]:focus {
    background-color: var(--bs-light);
}

.tox-tinymce--disabled .tox-editor-container .tox-sidebar-wrap .tox-edit-area .tox-edit-area__iframe {
    background-color: var(--bs-light);
}

a.disabled {
    pointer-events: none;
    cursor: default;
}


/*Loader*/
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1061;
}

#logo-mhd {
    display: block;
    position: relative;
    left: 50%;
    top: 50%;
    width: 70px;
    height: 51px;
    margin: -100px 0 0 -25px;
    z-index: 1061;
}

#loader {
    display: block;
    position: relative;
    left: 50%;
    top: 50%;
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #3498db;
    -webkit-animation: spin 2s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
    animation: spin 2s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */

    z-index: 1061;
}

    #loader:before {
        content: "";
        position: absolute;
        top: 5px;
        left: 5px;
        right: 5px;
        bottom: 5px;
        border-radius: 50%;
        border: 3px solid transparent;
        border-top-color: #e74c3c;
        -webkit-animation: spin 3s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
        animation: spin 3s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */
    }

    #loader:after {
        content: "";
        position: absolute;
        top: 15px;
        left: 15px;
        right: 15px;
        bottom: 15px;
        border-radius: 50%;
        border: 3px solid transparent;
        border-top-color: #f9c922;
        -webkit-animation: spin 1.5s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
        animation: spin 1.5s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */
    }

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg); /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(0deg); /* IE 9 */
        transform: rotate(0deg); /* Firefox 16+, IE 10+, Opera */
    }

    100% {
        -webkit-transform: rotate(360deg); /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(360deg); /* IE 9 */
        transform: rotate(360deg); /* Firefox 16+, IE 10+, Opera */
    }
}

@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg); /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(0deg); /* IE 9 */
        transform: rotate(0deg); /* Firefox 16+, IE 10+, Opera */
    }

    100% {
        -webkit-transform: rotate(360deg); /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(360deg); /* IE 9 */
        transform: rotate(360deg); /* Firefox 16+, IE 10+, Opera */
    }
}

#loader-wrapper .loader-section {
    position: fixed;
    top: 0;
    width: 50%;
    height: 100%;
    background: #222222;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; /* IE 8 */
    filter: alpha(opacity=50); /* IE 5-7 */
    -moz-opacity: 0.5; /* Netscape */
    -khtml-opacity: 0.5; /* Safari 1.x */
    opacity: 0.5; /* Good browsers */
    z-index: 1060;
    -webkit-transform: translateX(0); /* Chrome, Opera 15+, Safari 3.1+ */
    -ms-transform: translateX(0); /* IE 9 */
    transform: translateX(0); /* Firefox 16+, IE 10+, Opera */
}

    #loader-wrapper .loader-section.section-left {
        left: 0;
    }

    #loader-wrapper .loader-section.section-right {
        right: 0;
    }

/* Loaded */
.loaded #loader-wrapper .loader-section.section-left {
    opacity: 0;
    -webkit-transition: all 0.4s ease-out;
    transition: all 0.4s ease-out;
}

.loaded #loader-wrapper .loader-section.section-right {
    opacity: 0;
    -webkit-transition: all 0.4s ease-out;
    transition: all 0.4s ease-out;
}

.loaded #loader {
    opacity: 0;
    -webkit-transition: all 0.4s ease-out;
    transition: all 0.4s ease-out;
}

.loaded #logo-mhd {
    opacity: 0;
    -webkit-transition: all 0.4s ease-out;
    transition: all 0.4s ease-out;
}

.loaded #loader-wrapper {
    visibility: hidden;
    /*-webkit-transform: translateY(-100%);*/ /* Chrome, Opera 15+, Safari 3.1+ */
    /*-ms-transform: translateY(-100%);*/ /* IE 9 */
    /*transform: translateY(-100%);*/ /* Firefox 16+, IE 10+, Opera */

    -webkit-transition: all 0.1s 0.2s ease;
    transition: all 0.1s 0.2s ease;
}

.date-picker {
    background: url('/assets/media/icons/duotune/general/gen70.svg') no-repeat right 10px center;
    background-size: 18px 18px;
    padding-right: 35px;
}

.month-picker {
    background: url('/assets/media/icons/duotune/general/gen70.svg') no-repeat right 10px center;
    background-size: 18px 18px;
    padding-right: 35px;
}

.flatpickr-monthDropdown-months select {
    font-family: Montserrat, "Segoe UI", Arial, sans-serif !important;
}

.flatpickr-monthDropdown-month {
    font-family: Montserrat, "Segoe UI", Arial, sans-serif !important;
}

.month-wrapper input {
    padding-right: 30px;
}

.toast-bottom-right {
    right: 30px;
    bottom: 12px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

body[data-kt-app-sidebar-minimize="on"] .sidebar-search {
    display: none !important;
}

body[data-kt-app-sidebar-minimize="on"] .app-sidebar:hover .sidebar-search {
    display: block !important;
}

.month-grid.flatpickr-calendar {
    min-width: 360px; /* sesuaikan */
    max-width: none;
    box-sizing: border-box;
    padding: 8px;
}

.month-grid .flatpickr-rContainer,
.month-grid .flatpickr-innerContainer {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box;
    padding: 0;
}

.month-grid .flatpickr-monthSelect-months {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px;
    padding: 12px;
    box-sizing: border-box;
}

.month-grid .flatpickr-monthSelect-month {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    font-size: 1.1rem !important;
}

.month-grid.flatpickr-calendar {
    z-index: 20000 !important;
}