﻿/* ==========================================================
   FORM LABELS
========================================================== */

.form-label {
    color: #334155;
    font-weight: 600 !important;
}

[class^="col-"] label {
    margin-bottom: 4px !important;
}

[class^="col-"] .validation-msg {
    float: right !important;
    color: #ff0000 !important;
}

/* ==========================================================
   FORM CONTROLS
========================================================== */

.form-control,
.form-select {
    border-radius: 8px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    transition: 0.2s;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59,130,246,0.25);
    }

.text-danger {
    font-size: 12px;
}

/* ==========================================================
   VALIDATION
========================================================== */

.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: none;
}

.form-select.is-invalid,
.form-control.is-invalid {
    background-image: none;
}

/* ==========================================================
   MODERN INPUTS
========================================================== */

.modern-input,
.modern-select,
.modern-textarea {
    border-radius: 6px !important;
}

/* ==========================================================
   DROPDOWNS
========================================================== */

.dropdown-menu[data-bs-popper] {
    top: 110% !important;
}

.dropend .dropdown-menu[data-bs-popper] {
    top: -5px !important;
}

.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-weight: normal;
}

/* ==========================================================
   CHECKBOX LIST DROPDOWN
========================================================== */

.ddl-cbl .dropdown-item {
    font-weight: normal;
    text-align: left;
    padding: 5px 10px;
}

.ddl-cbl .form-check-input {
    margin-right: 8px;
}

/* ==========================================================
   COMMON CHECKBOXES
========================================================== */

#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;
}

/* ==========================================================
   ENTRY TABLE FORM CONTROLS
========================================================== */

.entry_table {
    font-size: 0.9rem;
}

    .entry_table .table textarea {
        resize: none;
    }

    .entry_table .equal-height {
        height: 38px;
        padding: 0.375rem 0.75rem;
        font-size: 1rem;
        line-height: 1.5;
    }

    .entry_table .text-end {
        text-align: right;
    }

    .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;
        }

/* ==========================================================
   SECTION HEADER
========================================================== */

.div-header {
    background: linear-gradient(135deg, #f4f6f8, #e6eaee);
    color: #1f2937;
    padding: 8px 10px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-left: 4px solid #0d6efd;
    border-radius: 6px;
    display: flex;
    align-items: center;
}

/* ==========================================================
   PASSPORT / PROFILE IMAGES
========================================================== */

.passphoto-img {
    max-width: 40px !important;
    max-height: 36px !important;
    min-width: 40px !important;
    min-height: 36px !important;
}

/* ==========================================================
   RESPONSIVE FORMS
========================================================== */

@media (max-width: 768px) {

    .btn {
        min-height: 44px;
        padding: 0.5rem 0.75rem;
    }

    .form-control,
    .form-select {
        font-size: 14px;
    }
}
