/* Login Page CSS */
body.login-page {
    /* More dynamic and slightly darker gradient for better depth perception */
    background: linear-gradient(135deg, #e0f2f7 0%, #c8e6c9 100%);
    display: flex;
    /* Use flexbox to center the content */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* Ensure it takes full viewport height */
    margin: 0;
}

.login-box {
    /* Add a subtle 3D effect with multiple box shadows */
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2),
        /* Main shadow for depth */
        0px 0px 0px 10px rgba(255, 255, 255, 0.1) inset;
    /* Inner shadow for a raised effect */
    border-radius: 15px;
    /* Softer rounded corners */
    overflow: hidden;
    /* Ensures shadows and borders are contained */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    /* Smooth transitions */
    perspective: 1000px;
    /* For potential 3D transforms later */
    background: transparent;
    /* Make sure the box itself doesn't hide the background */
}

.login-box:hover {
    transform: translateY(-5px);
    /* Slight lift on hover */
    box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.3),
        0px 0px 0px 10px rgba(255, 255, 255, 0.15) inset;
}

.login-logo a {
    color: #343a40;
    /* Darker text for better contrast */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    /* Subtle text shadow for 3D effect */
    font-size: 2.5rem;
    /* Slightly larger logo */
    transition: color 0.3s ease;
}

.login-logo a:hover {
    color: #007bff;
    /* Highlight on hover */
}

.card {
    border: none;
    /* Remove default card border */
    border-radius: 12px;
    /* Match login-box border-radius, slightly smaller */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* Soft shadow for the card itself */
    background: rgba(255, 255, 255, 0.95);
    /* Slightly transparent white for a frosted glass effect */
    backdrop-filter: blur(5px);
    /* Frosted glass effect */
}

.card-body {
    padding: 2.5rem;
    /* More padding inside the card */
}

.login-box-msg {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
 
.input-group .form-control {
    border-radius: 8px;
    /* Rounded corners for input fields */
    border: 1px solid #ced4da;
    /* Default border */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    /* Inner shadow for depth */
    transition: all 0.3s ease;
}

.input-group .form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25), inset 0 1px 3px rgba(0, 0, 0, 0.1);
    /* Focus glow and inner shadow */
}

.input-group-append .input-group-text {
    border-radius: 0 8px 8px 0;
    /* Match input field rounding */
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-left: none;
    /* Remove left border to merge with input */
    color: #495057;
}

 .login-box .btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    /* Gradient for the button */
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
    /* Button shadow */
    transition: all 0.3s ease;
    font-size: 1.1rem;
    padding: 0.75rem 1.25rem;
}

.login-box .btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
    transform: translateY(-2px);
    /* Slight lift on hover */
}

.icheck-primary input:checked+label::before {
    background-color: #007bff;
    /* Primary color for checked checkbox */
    border-color: #007bff;
}

a {
    color: #007bff;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.alert {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Login Page CSS */


/* General Styles */
.btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    /* Gradient for the button */
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 8px rgba(0, 123, 255, 0.3);
    /* Button shadow */
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    box-shadow: 0 8px 10px rgba(0, 123, 255, 0.4);
    transform: translateY(-2px);
    /* Slight lift on hover */
} 
table {
    font-size: 12px !important;
    line-height: 12px !important;
    font-weight: 500 !important;
}

table td{
    vertical-align: middle !important;
    padding-left: 0.5em !important;
    padding: 0.25em !important;
}

table td label,
table th label {
    padding-left: 0.5em !important;
    margin-top: 0.5em !important;
}

table i {
    font-size: 12px !important;
}

table thead {
    background-color: #17a2b8 !important;
    color: #fff !important;
    padding: 3px !important;
}

table thead .id_column {
    width: 6% !important;
}

table thead th {
    padding: 0.5em !important;
    vertical-align: middle !important;
}

table .btn {
    padding: 0.4em !important;
    line-height: 1 !important;
    font-size: inherit !important;
}

.nav-treeview>.nav-item>.nav-link {
    line-height: 1;
    font-size: 0.8em;

}

.nav-item.has-treeview.menu-open>ul>li.nav-item.has-treeview>ul {
    padding-left: 1em;
}

.nav-treeview .nav-treeview a.nav-link {
    width: calc(250px - 1rem * 2)!important;
}

.variation-fieldset legend {
    width: auto;
}

.variation-fieldset {
    border: 1px dashed maroon;
    padding: 2em 1em;
    margin: 1em 0;
}

.form-group span.text-danger {
    font-size: 12px;
    font-weight: 600;
}


.error-border {
    border-color: red !important;
}

input::placeholder {
    font-size: 12px;
    /* Adjust this value to decrease the size */
    color: #6c757d;
    /* Optional: Change the placeholder color */
}

input::-moz-placeholder {
    font-size: 12px;
}

input::-ms-input-placeholder {
    font-size: 12px;
}

.success_alert_custom {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    width: 300px;
    height: auto;
    background-color: rgba(76, 175, 80, 0.9);
    border: 1px solid green;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    font-size: 12px;
    animation: fadeOut 3s forwards;
}

.error_alert_custom {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    width: 300px;
    height: auto;
    background-color: rgba(198, 0, 0, 0.9);
    border: 1px solid rgb(255, 0, 0);
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    font-size: 12px;
    animation: fadeOut 3s forwards;
}

/* Info Alert Customization */
.info_alert_custom {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    width: 300px;
    height: auto;
    background-color: rgba(33, 150, 243, 0.9);
    /* Blue background */
    border: 1px solid rgb(33, 150, 243);
    /* Blue border */
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    font-size: 12px;
    animation: fadeOut 3s forwards;
}

/* Warning Alert Customization */
.warning_alert_custom {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    width: 300px;
    height: auto;
    background-color: rgba(255, 152, 0, 0.9);
    /* Orange background */
    border: 1px solid rgb(255, 152, 0);
    /* Orange border */
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    font-size: 12px;
    animation: fadeOut 3s forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        visibility: visible;
    }

    99% {
        opacity: 1;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

.alert-success {
    animation: fadeOut 3s forwards;
    /* Matches the timeout duration */
}

.alert-danger {
    animation: fadeOut 3s forwards;
    /* If you want the same effect for errors */
}

.alert-info {
    animation: fadeOut 3s forwards;
    /* Animation for info */
}

.alert-warning {
    animation: fadeOut 3s forwards;
    /* Animation for warning */
}

/* // ===NOTIFICATION CSS=== */


input,
textarea,
select {
    font-size: 1em !important;
}

.select2-results__option {
    font-size: 0.8em !important;
}

.select2-selection__choice {
    padding: 3px 8px !important;
}

.select2-container {
    width: 100% !important;
}

/* //=== REQUIRED FIELD STAR MARK === */
.required-asterisk {
    color: red;
    margin-left: 4px;
    font-size: 0.9em;
}

/* // Form Approval CSS */
.approval-form {
    display: inline-block;
    margin-bottom: 0;
    width: 100%;
}

.approval-select {
    font-weight: 600;
}

.approval-select.pending {
    background-color: #ffe494;
    /* Light Yellow */
    color: #665c00;
    /* Dark Yellow text */
}

.approval-select.approved {
    background-color: #8fffa9;
    /* Light Green */
    color: #006600;
    /* Dark Green text */
}

.approval-select.rejected {
    background-color: #ffa9b0;
    /* Light Red */
    color: #660000;
    /* Dark Red text */
}

.approval-select option {
    background-color: #fff;
}


/* // Posting Status CSS */
.posting-form {
    display: inline-block;
    margin-bottom: 0;
    width: 100%;
}

.posting-select {
    font-weight: 600;
}

.posting-select.unposted {
    background-color: #ffe494;
    /* Light Yellow */
    color: #665c00;
    /* Dark Yellow text */
}

.posting-select.posted {
    background-color: #8fffa9;
    /* Light Green */
    color: #006600;
    /* Dark Green text */
}

.posting-select option {
    background-color: #fff;
}


/* // PRODUCTION ITEM EXCEPTION */
.exception-items .form-check {
    display: inline-block;
    margin-right: 20px;
}

.exception-items .form-check label {
    font-size: 12px;
}

.item-heading {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: green;
}

.exception-items h5 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: red;

}

#statement_div label {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

.exception-items input[type="radio"] {
    font-size: 14px;
}

.exception-items {
    display: flex;
    align-items: center;
    gap: 20px;
}