﻿/******** 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);
}


/* ----------------------------------------------------------
   LAYOUT
---------------------------------------------------------- */

html, body {
    height: 100%;
    margin: 0;
    overflow: hidden; /* 🔥 important */
}

.app-wrapper {
    display: flex;
    height: calc(100vh - 85px); /* navbar + footer */
}

.navbar {
    height: 60px;
    flex-shrink: 0;
}

.footer {
    height: 25px;
    flex-shrink: 0;
}

.sidebar {
    width: 240px;
    background: #fff;
    border-right: 1px solid #ddd;
    overflow-y: auto; /* optional */
}

.content {
    flex: 1;
    padding: 10px;
    overflow-y: auto; /* ✅ scroll here only */
    background: #f5f7fa;
}

/******** Custom Styles **********************/

.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;
}

.required::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;
}

.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;
    }


.ddl-cbl .dropdown-item {
    font-weight: normal;
    text-align: left;
    padding: 5px 10px;
}

.ddl-cbl .form-check-input {
    margin-right: 8px;
}

.form-label {
    font-weight: normal !important;
}

[class^="col-"] label {
    margin-bottom: 4px !important;
}
[class^="col-"] .validation-msg {
    float: right !important;
    color: #ff0000 !important;
}
/********************** Modal **********************/
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: #b3c2d1;
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid #e2e8f0;
}

.modal-title {
    font-weight: 600;
    color: #1e293b;
}

.modal-body {
    padding: 16px;
}

/********************** Cards **********************/

.card {
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0px 4px 20px rgba(0,0,0,0.07);
}

    .card .card-header {
        border-radius: 14px 14px 0 0;
        font-weight: 400;
        background: rgb(248 250 252);
    }

    .card .card-body {
        scrollbar-width: thin;
    }

        .card .card-body::-webkit-scrollbar {
            width: 6px;
        }

        .card .card-body::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 4px;
        }



/* --------------------------------------------------
   TABLE STYLING
--------------------------------------------------*/

.table {
    border-collapse: separate;
    border-spacing: 0;
    background-color: #fff;
}

    .table th {
        font-weight: 500;
        font-size: 12px;
        padding: 5px 8px;
        background: linear-gradient(180deg, #eef2ff, #e0e7ff);
        color: #1f2937;
        text-align: left;
        border-bottom: 1px solid #c7d2fe;
        white-space: nowrap;
    }

    .table thead th {
        background: #f8fafc;
        border-bottom: 2px solid #e2e8f0;
        font-size: 12px;
        font-weight: 500;
        padding: 5px 8px;
        background: linear-gradient(180deg, #eef2ff, #e0e7ff);
        color: #1f2937;
        border-bottom: 1px solid #c7d2fe;
        white-space: nowrap;
    }

    .table td {
        padding: 5px 8px;
        font-size: 13px;
        color: #374151;
        border-bottom: 1px solid #e5e7eb;
        vertical-align: middle;
    }

    .table tbody tr {
        transition: 0.25s;
    }

        .table tbody tr:hover {
            background: #f1f5f9;
        }

    .table td .btn {
        padding: 4px 10px;
        border-radius: 6px;
        font-size: 0.8rem !important;
    }

    .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: 5px 10px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    text-align: center !important;
}

/********************** Entry table **********************/
.entry_table {
    font-size: 0.9rem;
}

    .entry_table .table thead th {
        font-size: 0.85rem !important;
        text-transform: uppercase !important;
        letter-spacing: 0.04em !important;
        vertical-align: middle !important;
        text-align: center !important;
    }

    .entry_table .table tbody td {
        vertical-align: middle !important;
        padding: 3px 5px !important;
    }

    .entry_table .table textarea {
        resize: none;
    }

    .entry_table .table-hover tbody tr:hover {
        background-color: #f8fafc;
    }

    .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;
    }
}
