﻿/******** Global Font **********************/

@font-face {
    font-family: 'Poppins';
    src: url('/dist/fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('/dist/fonts/Poppins-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('/dist/fonts/Poppins-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


body {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 13px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-main);
    color: var(--text-main);
}

/******** Custom Styles **********************/

.float-right {
    float: right !important;
}

.bg-primary {
    background-color: #2c3c87 !important;
}

.no-scroll {
    scrollbar-width: none !important; /* Firefox */
}

    .no-scroll::-webkit-scrollbar {
        display: none; /* Chrome, Edge, Safari */
    }

.no-width {
    width: auto !important;
}

.grid-header {
    padding: 8px !important;
    background-color: #d0d4d7 !important;
    color: #000 !important;
    text-align: center !important;
    font-weight: bold !important;
}

th {
    font-weight: normal !important;
    font-size: 14px !important;
}

.required::after {
    content: "*";
    color: red;
    margin-left: 5px;
    font-size: 1em;
    font-weight: 600;
}

.required-label::after {
    content: "*";
    color: red;
    margin-left: 5px;
    font-size: 1em;
    font-weight: 600;
}

.font-bold {
    font-weight: 600 !important;
}

.suggestion-list-box {
    position: absolute;
    z-index: 1000;
    background-color: white;
    border-radius: 0.25rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-height: 150px;
    overflow-y: auto;
    min-width: 100%;
    display: none;
    margin: 0;
    padding: 0;
    border: none;
}

    .suggestion-list-box .list-group-item {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        color: black;
        cursor: pointer;
        padding: 0.25rem 0.5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        border: none;
        margin: 0;
    }

        .suggestion-list-box .list-group-item:hover {
            background-color: whitesmoke;
            color: #111;
        }

.confirm-box {
    top: 50px;
    max-width: 450px;
    min-height: 250px;
    padding: 15px;
    border-radius: 0.25rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

    .confirm-box h5 {
        text-align: center;
        font-weight: 600;
        font-size: 1.3rem;
    }

    .confirm-box .message {
        color: #000dff;
        font-weight: 400;
        font-size: 1rem;
        text-align: center;
    }

    .confirm-box .question {
        color: #808080;
        font-weight: 400;
        font-size: 1rem;
        text-align: center;
    }


.markdown > table thead th, .table thead th {
    font-weight: 500 !important;
    text-transform: none !important;
}

.custom-bordered-table td, .custom-bordered-table th {
    border: 1px solid #ddd !important;
}

.card-table tr td:first-child, .card-table tr th:first-child {
    padding-left: 5px !important;
}

.card-table tr td:last-child, .card-table tr th:last-child {
    padding-right: 5px !important;
}

#ckbCheckAll {
    display: inline-block !important;
    margin: 0 auto !important;
    transform: scale(1.2) !important;
}

#select_emp {
    display: inline-block !important;
    margin: 0 auto !important;
    transform: scale(1.2) !important;
}

.passphoto-img {
    max-width: 40px !important;
    max-height: 36px !important;
    min-width: 40px !important;
    min-height: 36px !important;
}

.modal-header {
    background-color: #007bff;
    color: white;
}

.font-14 {
    font-size: 14px !important;
}

.font-20 {
    font-size: 20px !important;
}

.br-bottom-20 {
    border-bottom-left-radius: 1rem !important;
    border-bottom-right-radius: 1rem !important;
}

.btn-outline-white {
    background-color: white;
    color: #1a1a1a;
    border: 1px solid #d0d0d0;
}

    .btn-outline-white:hover,
    .btn-check:checked + .btn-outline-white {
        background-color: #f0f0f0;
        border-color: #007bff;
        color: #007bff;
        font-weight: 600;
    }

.data-list-error-td {
    background: #fff0eb !important;
    text-align: center !important;
    color: #ff0000 !important;
    font-weight: 500 !important;
}

.ddl-cbl .dropdown-item {
    font-weight: normal;
    text-align: left;
    padding: 5px 10px;
}

.ddl-cbl .form-check-input {
    margin-right: 8px;
}


label:not(.required)::after {
    content: "";
}


/********************** Table Style **********************/

.table {
    border-collapse: separate;
    border-spacing: 0;
    background-color: #fff;
}

    .table th {
        font-weight: 600;
        font-size: 14px;
        padding: 10px 12px;
        background: linear-gradient(180deg, #eef2ff, #e0e7ff);
        color: #1f2937;
        text-align: left;
        border-bottom: 1px solid #c7d2fe;
        white-space: nowrap;
    }

    .table td {
        padding: 8px 12px;
        font-size: 13px;
        color: #374151;
        border-bottom: 1px solid #e5e7eb;
        vertical-align: middle;
    }

    .table tbody tr:hover {
        background-color: #f9fafb;
    }

.table-striped tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.table td:first-child,
.table th:first-child {
    border-left: 3px solid #6366f1;
}

.horizontal th {
    text-align: center !important;
}

.header-td {
    background: linear-gradient(135deg, #f4f6f8, #e6eaee) !important;
    color: #1f2937 !important;
    padding: 8px 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    text-align: center !important;
}


/********************** Entry table Style **********************/

.entry_table .table {
    font-size: 0.9rem;
}

    .entry_table .table th {
        vertical-align: middle;
    }

    .entry_table .table td {
        vertical-align: middle;
        padding: 0px 2px;
    }

.entry_table .btn-square {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.entry_table .totals-section {
    font-size: 0.9rem;
    color: #333;
}

    .entry_table .totals-section .fw-bold {
        font-weight: 600;
    }

    .entry_table .totals-section .form-control-sm {
        width: 100px;
    }

.entry_table .text-end {
    text-align: right;
}

.entry_table button .btn-success {
    background-color: #28a745;
    border: none;
}

.entry_table button .btn-danger {
    background-color: #dc3545;
    border: none;
}

.entry_table .equal-height {
    height: 38px;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
}

/********************* Gridview Container Style *********************/

.gv-container {
    min-height: auto;
    margin: 0px;
    overflow: scroll !important;
    scrollbar-width: thin;
    /*border-radius: 0.5rem;*/
    /*border: 1px solid #dee2e6;*/
    padding: 0 !important;
}

.gvc-150 {
    max-height: 150px !important;
}

.gvc-200 {
    max-height: 200px !important;
}

.gvc-250 {
    max-height: 250px !important;
}

.gvc-300 {
    max-height: 300px !important;
}

.gvc-350 {
    max-height: 350px !important;
}

.gvc-400 {
    max-height: 400px !important;
}

.gvc-450 {
    max-height: 450px !important;
}

.gvc-500 {
    max-height: 500px !important;
}

.table-gv {
    font-size: 0.75rem;
    border-collapse: separate;
    border-spacing: 0;
    white-space: nowrap;
    margin: 0 !important;
}

    .table-gv th,
    .table-gv td {
        padding: 0.28rem 0.45rem;
        vertical-align: middle;
        border: .5px solid #dee2e6;
        font-size: 0.75rem !important;
    }

    .table-gv th {
        position: sticky;
        top: 0;
        z-index: 2;
        background-color: #f3f3f3 !important;
        color: #495057 !important;
        font-weight: bold !important;
    }

    .table-gv td {
        background-color: #fff;
    }

    .table-gv tr:hover {
        background-color: #f1f3f5 !important;
    }


/* ================= Utilities ================= */

.u-text-center {
    text-align: center !important;
}

.u-text-right {
    text-align: right !important;
}

.u-fw-500 {
    font-weight: 500 !important;
}

.u-fw-600 {
    font-weight: 600 !important;
}

.u-fs-12 {
    font-size: 12px !important;
}

.u-fs-14 {
    font-size: 14px !important;
}

.u-fs-20 {
    font-size: 20px !important;
}

.u-mt-1 {
    margin-top: .25rem !important;
}

.u-mt-2 {
    margin-top: .5rem !important;
}

.u-mt-3 {
    margin-top: 1rem !important;
}

/********************* Media Style *********************/

@media (min-width:360px) {
    .thank-you h1 {
        font-size: 4.5em;
    }

    .thank-you .go-home {
        margin-bottom: 20px;
    }
}

@media (min-width:600px) {
    .thank-you .content {
        max-width: 1000px;
        margin: 0 auto;
    }

    .thank-you .wrapper-1 {
        height: initial;
        max-width: 620px;
        margin: 0 auto;
        margin-top: 50px;
        box-shadow: 4px 8px 40px 8px rgba(88, 146, 255, 0.2);
    }
}

@media (max-width: 768px) {
    .gv-container {
        overflow-x: auto;
    }

    .table, .table-gv {
        font-size: 12px;
    }

    .btn {
        min-height: 44px;
        padding: 0.5rem 0.75rem;
    }

    .form-control {
        font-size: 14px;
    }
}

