﻿/* Scroll css for datatable filtering */
/* Ensure good contrast and readability */
.dt-button-collection {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #212529 !important;
}

.dt-button-collection .dt-button {
    font-size: 13px !important;
    font-weight: 400 !important;
}

/* Add some spacing between the button and dropdown */
.dt-buttons .btn-group {
    position: relative !important;
    margin-right: 10px !important;
}

/* Hover effects for better UX */
.dt-button-collection .dt-button:hover {
    background-color: #007bff !important;
    color: black !important;
    cursor: pointer !important;
}

/* Active state styling */
.dt-button-collection .dt-button.active {
    background-color: #0056b3 !important;
    color: black !important;
    font-weight: 500 !important;
}

/* Employee Salary Profile Item Highlight */
.salary-item-label.highlighted {
    outline: 2px solid #007bff;
    outline-offset: 2px;
    border-radius: 3px;
    transition: outline 0.2s ease;
    background-color: rgba(0, 123, 255, 0.05);
}

/* Report Backup Save Selection Screenshot */
.screenshot {
    max-width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.note-text {
    background-color: #fef5e7;
    border-left: 4px solid #f39c12;
    padding: 12px 15px;
    font-size: 0.95rem;
    margin-top: 20px;
    border-radius: 4px;
}

/* Company Letter with Formal Styling */
.formal-letter {
    font-family: "Times New Roman", Times, serif;
    color: #222; /* dark gray for professional feel */
    font-size: 12pt;
    line-height: 1.6;
    padding: 40px;
    background-color: #fff;
}

.formal-letter img {
    max-height: 100px;
    margin-bottom: 20px;
}

.formal-letter p {
    margin: 10px 0;
}

.formal-letter strong {
    font-weight: 650;
    color: #000;
}

.formal-letter .signature {
    margin-top: 40px;
    font-weight: bold;
}

/* Circular badge style */
.badge-circle {
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 0.7rem;
    min-width: 20px;
}

/* Remove button size */
.btn-remove {
    padding: 0.4375rem 0.8rem;
}

/* Adjust the size of selected options in Select2 */
.select2-selection--multiple .select2-selection__choice {
    font-size: 90%; /* Reduce font size by 10% */
}

/*Override existing css*/
.select2-container--classic .select2-selection--multiple .select2-selection__choice, .select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin-top: 2px !important;
    margin-right: 2px !important;
}

/*Multiple input css*/
.select2-results__options[aria-multiselectable='true'] .select2-results__option:before {
    content: "";
    display: inline-block;
    position: relative;
    height: 20px;
    width: 20px;
    border: 1px solid #000000;
    border-radius: 4px;
    background-color: #fff;
    margin-right: 20px;
    vertical-align: middle;
}

.select2-results__options[aria-multiselectable='true'] .select2-results__option[aria-selected='true']:before {
    content: "✓"; /* Unicode checkmark */
    color: #fff;
    background-color: #666ee8;
    border: 1px solid #000000;
    text-align: center;
    line-height: 20px;
    font-size: 14px;
    font-weight: bold;
}

/* Style for highlighted options */
.select2-container.select2-container--default.select2-container--open .select2-results__option--highlighted[aria-selected] {
    background-color: #666ee8 !important;
    color: #fff !important;
}

/* Ensure the selected option text color remains visible */
.select2-container.select2-container--default.select2-container--open .select2-results__options[aria-multiselectable='true'] .select2-results__option[aria-selected=true] {
    background-color: #fff !important;
    color: #000 !important;
}

/*Extra small button size*/
.btn-ssm {
    font-size: 0.6rem;
    padding: 0.5rem 1rem;
}

/*Scrollable Dropdown Menu*/
.scrollable-menu {
    height: auto;
    max-height: 450px;
    overflow-x: hidden;
}

/*Customize Style on Html CheckBox*/
input[type='checkbox'] {
    width: 15px;
    height: 15px;
}

/*Password Toggle Icon*/
.has-icon-right .form-control {
    padding-left: 2rem;
}

.form-control-position-left {
    position: absolute;
    top: 1px;
    left: 0px;
    z-index: 2;
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    line-height: 3.2rem;
    text-align: center;
}

/*Flexbox css*/
.flexbox-container {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(300px, 1fr));
}

.flexbox-container.btm-border {
    border-bottom: 2px solid black;
}

/*Adjust date input square datepicker height*/
.form-group input[type="date"].form-control.date-square-sm {
    height: 2.04rem;
}

/*Adjust Selected Employee Profile Menu Option Display*/
.dropdown-menu .dropdown-item {
    padding: 0.5rem 1rem;
}

/*EmployeeTimesheet/InactiveStaffTimesheet Month Type select2 CSS*/
#timesheetCategoryType + .select2 .select2-selection__rendered {
    color: red;
    font-weight: bold;
}

/*TimeAttendanceUpload select2 CSS*/
#timeTecUploadCategoryType + .select2 .select2-selection__rendered {
    color: red;
    font-weight: bold;
}

/*Index Card Background*/
.card-bg-light-blue {
    background-color: #3AA6D8;
}

/*Custom padding between cards*/
.cards-margin-bottom {
    margin-bottom: 0.8rem !important;
}

/*Template content-wrapper resize padding*/
html body .content .content-wrapper {
    padding: 0.8rem 0.8rem 0;
}

/*Bootstrap modal-xl resize*/
.modal-xl {
    max-width: 82%;
    margin-left: 9%;
    margin-right: 9%;
}

/*Customize Scrollbar*/
::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

::-webkit-scrollbar:horizontal {
    height: 10px;
    width: auto;
}

::-webkit-scrollbar:vertical {
    height: auto;
    width: 5px;
}

::-webkit-scrollbar-track {
    background-color: #e4e4e4;
    border-radius: 100px;
}

::-webkit-scrollbar-thumb {
    background-color: #3AA6D8;
    border-radius: 100px;
}

/*Reduce Modal Header Padding*/
.modal-header {
    padding-bottom: 2px;
}

/*Scrollable Row*/
.scrollable-row {
    max-height: 23vh; /* max 55% of the viewport height */
    overflow-y: scroll;
}

/*Greater height of Scrollable Row Used under EmployeeSalaryProfileItem*/
.scrollable-row-greater-height {
    max-height: 45vh;
    overflow-y: scroll;
    overflow-x: hidden;
}

/*Scrollable Section*/
.scrollable-section {
    max-height: 60vh;
    overflow-y: scroll;
    overflow-x: hidden;
}

/*Used in most of the page with input field for complex condition*/
.custom-resize-and-position-material-icon {
    float: right;
    width: 10%;
}

/*Normal Table*/
table th {
    background-color: #3AA6D8;
    /*background-color: #055DA9;*/
}

/*Resize the font size of header and content in datatable*/
table.dataTable th {
    font-size: 0.8em;
    background-color: #3AA6D8;
    /*background-color: #055DA9;*/
}

table.dataTable td {
    font-size: 0.75em;
    color: black;
    padding-left: 0.5em;
}

/*Reduce the height of datatable th*/
table.dataTable thead th:first-child, table.dataTable thead th {
    white-space: nowrap;
    padding-left: 10px;
}

/*Reduce the height of datatable td*/
table.dataTable tbody td:first-child, table.dataTable tbody td {
    height: 30px;
    white-space: nowrap;
    padding: 2px 10px 2px 10px;
}

/*Larger normal checbox size*/
input.largerCheckbox {
    width: 15px;
    height: 15px;
}

/*Change the color of anchor tag in datatable -> not using since 11/8/2021 */
table.dataTable a {
    color: #673ab7;
}

/*Datatable hover color*/
table.dataTable tbody tr:hover {
    /*background-color: #86c5da;*/
    background-color: #d3d3d3;
}

/*Datatable If The Row of Employee Contain Incomplete Required Fields*/
table.dataTable tbody tr.custom-incomplete-require-field-row {
    background-color: #ff726f;
}

/*Datatable System Set Dim Color Row*/
table.dataTable tbody tr.custom-system-set-row {
    filter: brightness(80%);
}

/*Set tooltip always on the front*/
.tooltip {
    z-index: 9999999;
    font-size: 14px;
    word-wrap: break-word;
    width: 300px;
}

/*Used in Login icon*/
.custom-login-icons {
    width: 26px;
    height: 26px;
    padding-bottom: 6px;
    padding-right: 5px;
}

/*Used in _Layout side menu*/
.custom-menu-icons {
    width: 30px;
    height: 20px;
    padding-right: 10px;
}

.custom-navbar-menu-z-index {
    z-index: 9999999;
}

/*Used in index top cards menu*/
.custom-index-card-menu-icons {
    width: 45px;
    height: 45px;
}

.custom-title {
    font-weight: bold;
    margin: 0 auto;
}

/*Used inside Settings.cshtml only*/
.custom-side-scroll-menu {
    max-height: 82vh;
    overflow-y: auto;
}

.custom-info-paragraph {
    font-weight: bold;
}

.custom-info-paragraph-total {
    font-weight: bolder;
    color: black;
}

.custom-asterisk-span {
    color: red;
}

.custom-loading {
    display: flex;
    justify-content: center;
}

.custom-loading::after {
    content: "";
    width: 50px;
    height: 50px;
    border: 10px solid #dddddd;
    border-top-color: #cd00cd;
    border-radius: 50%;
    animation: loading 1s linear infinite;
}

@keyframes loading {
    to {
        transform: rotate(1turn);
    }
}

.custom-table-header {
    background-color: #3AA6D8;
}

.custom-table-header-data {
    color: white;
}

.scroll-body .modal-body {
    max-height: 62vh; /* max 62% of the viewport height */
    overflow-y: auto;
    overflow-x: hidden;
}

.details-view-scroll-body .modal-body {
    max-height: 76vh; /* max 76% of the viewport height */
    overflow-y: auto;
    overflow-x: hidden;
}

.long-scroll-body .modal-body {
    max-height: 55vh; /* max 55% of the viewport height */
    overflow-y: auto;
    overflow-x: hidden;
}

/* Datatable label color */
.dataTables_filter label {
    color: black;
}

th {
    border-top: 3px solid #dddddd;
    border-bottom: 3px solid #dddddd;
    border-right: 3px solid #dddddd;
}

th:first-child {
    border-left: 2px solid #dddddd;
}

td {
    border: 2px solid #dddddd;
}

.page-item.active .page-link {
    background-color: lightgrey !important;
    border: 1px solid black;
}

.page-link {
    color: black !important;
}

/*Used in Company.cshtml td*/
.custom-table-data-special-width {
    width: 270px;
}

/*Loading Progress Bar*/
.custom-transparent-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0); /* Transparent Background */
    z-index: 99999996;
    pointer-events: auto;
}

.custom-progress-loading-bar-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 9999997;
    top: 0;
}

.custom-progress-loading-bar-overlay-content {
    position: relative;
    top: 35%;
    width: 100%;
    text-align: center;
}

.custom-progress-loading-bar {
    position: relative;
    width: 500px;
    height: 3.0em;
    background-color: #111;
    border-radius: 1.5em;
    color: white;
}

.custom-progress-loading-bar::before {
    content: attr(data-label);
    display: flex;
    align-items: center;
    position: absolute;
    left: .5em;
    top: .5em;
    bottom: .5em;
    width: calc(var(--width, 0) * 1%);
    min-width: 2rem;
    max-width: calc(100% - 1em);
    background-color: #069;
    border-radius: 1em;
    padding: 1em;
}

/*Used as loading overlay screen when processing some page or data*/
.custom-loading-overlay {
    background: rgba( 26, 26, 26, 0.7 );
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 9999998;
    top: 0;
}

.custom-overlay-content {
    position: relative;
    top: 35%;
    width: 100%;
    text-align: center;
    margin-top: 26px;
}

.custom-overlay-content-text {
    color: #9880ff;
    font-family: Bookman, URW Bookman L, serif;
}

/*3 dots loading elastic*/
.custom-snippet {
    position: relative;
    border-radius: .25rem;
}

.custom-overlay-content .custom-snippet:before {
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    padding: 0 5px;
    content: attr(data-title);
    font-size: .75rem;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    color: white;
    background-color: rgb(255, 25, 100);
    border-radius: .25rem 0 .25rem 0;
}

.custom-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 3rem 0;
    margin: 0 -5%;
    overflow: hidden;
}

.custom-dot-elastic {
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 15px;
    background-color: #29bff0;
    color: #29bff0;
    animation: dotElastic 1s infinite linear;
}

.custom-dot-elastic::before, .custom-dot-elastic::after {
    content: '';
    display: inline-block;
    position: absolute;
    top: 0;
}

.custom-dot-elastic::before {
    left: -40px;
    width: 20px;
    height: 20px;
    border-radius: 15px;
    background-color: #29bff0;
    color: #29bff0;
    animation: dotElasticBefore 1s infinite linear;
}

.custom-dot-elastic::after {
    left: 40px;
    width: 20px;
    height: 20px;
    border-radius: 15px;
    background-color: #29bff0;
    color: #29bff0;
    animation: dotElasticAfter 1s infinite linear;
}

@keyframes dotElasticBefore {
    0% {
        transform: scale(1, 1);
    }

    25% {
        transform: scale(1, 1.5);
    }

    50% {
        transform: scale(1, 0.67);
    }

    75% {
        transform: scale(1, 1);
    }

    100% {
        transform: scale(1, 1);
    }
}

@keyframes dotElastic {
    0% {
        transform: scale(1, 1);
    }

    25% {
        transform: scale(1, 1);
    }

    50% {
        transform: scale(1, 1.5);
    }

    75% {
        transform: scale(1, 1);
    }

    100% {
        transform: scale(1, 1);
    }
}

@keyframes dotElasticAfter {
    0% {
        transform: scale(1, 1);
    }

    25% {
        transform: scale(1, 1);
    }

    50% {
        transform: scale(1, 0.67);
    }

    75% {
        transform: scale(1, 1.5);
    }

    100% {
        transform: scale(1, 1);
    }
}