﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

.divider-text:before,
.divider-text:after {
    color: white;
    content: "";
    flex: 1;
    border-bottom: 1px solid #555;
    margin: auto 0.25rem;
    box-shadow: 0 -2px;
}
.fomr-container {
    
    background: rgba(0,0,0,.02);
    border: 1px solid #ccc;
    padding: 7px;
    margin: 0 auto;
}
.form-style input, .form-style select {
    /*margin: 15px 0;*/
    height: 25px !important;
    padding: 0 10px;
}


a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}



.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

html {
    position: relative;
    min-height: 100%;
}



.badge {
    background-color: rgba(189, 116, 24, 0.6);
    color: white;
}

.text-warning {
    color: #BD7418 !important;
}

.text-secondary {
    color: #425F4B !important;
}

.text-primary {
    color: #192E2F !important;
}

.text-success {
    color: #4b7147 !important;
}

.bg-primary {
    background-color: #192E2F !important;
}

.bg-secondary {
    background-color: #3A595C !important;
}

bg-success {
    background-color: #4b7147 !important;
}



.card {
    border-color: #425F4B !important;
}



/* btn-outline-primary */



.btn-outline-primary {
    color: #192E2F;
    border-color: #192E2F;
}



    .btn-outline-primary:hover {
        color: #fff;
        background-color: #192E2F;
        border-color: #192E2F;
    }



    .btn-check:focus + .btn-outline-primary, .btn-outline-primary:focus {
        box-shadow: 0 0 0 0.25rem rgba(25, 46, 47, 0.5);
    }



    .btn-check:checked + .btn-outline-primary,
    .btn-check:active + .btn-outline-primary, .btn-outline-primary:active, .btn-outline-primary.active, .btn-outline-primary.dropdown-toggle.show {
        color: #fff;
        background-color: #192E2F;
        border-color: #192E2F;
    }



        .btn-check:checked + .btn-outline-primary:focus,
        .btn-check:active + .btn-outline-primary:focus, .btn-outline-primary:active:focus, .btn-outline-primary.active:focus, .btn-outline-primary.dropdown-toggle.show:focus {
            box-shadow: 0 0 0 0.25rem rgba(25, 46, 47, 0.5);
        }



    .btn-outline-primary:disabled, .btn-outline-primary.disabled {
        color: #192E2F;
        background-color: transparent;
    }


.btn-outline-warning {
    color: #C07b24;
    border-color: #C07b24;
}



    .btn-outline-warning:hover {
        color: #fff;
        background-color: #C07b24;
        border-color: #C07b24;
    }



    .btn-check:focus + .btn-outline-warning, .btn-outline-warning:focus {
        box-shadow: 0 0 0 0.25rem rgba(25, 46, 47, 0.5);
    }



    .btn-check:checked + .btn-outline-warning,
    .btn-check:active + .btn-outline-warning, .btn-outline-warning:active, .btn-outline-warning.active, .btn-outline-warning.dropdown-toggle.show {
        color: #fff;
        background-color: #C07b24;
        border-color: #C07b24;
    }



        .btn-check:checked + .btn-outline-warning:focus,
        .btn-check:active + .btn-outline-warning:focus, .btn-outline-warning:active:focus, .btn-outline-warning.active:focus, .btn-outline-warning.dropdown-toggle.show:focus {
            box-shadow: 0 0 0 0.25rem rgba(25, 46, 47, 0.5);
        }



    .btn-outline-warning:disabled, .btn-outline-warning.disabled {
        color: #C07b24;
        background-color: transparent;
    }



.btn-outline-secondary {
    color: #134b5f;
    border-color: #134b5f;
}



    .btn-outline-secondary:hover {
        color: #fff;
        background-color: #134b5f;
        border-color: #134b5f;
    }



    .btn-check:focus + .btn-outline-secondary, .btn-outline-secondary:focus {
        box-shadow: 0 0 0 0.25rem rgba(25, 46, 47, 0.5);
    }



    .btn-check:checked + .btn-outline-secondary,
    .btn-check:active + .btn-outline-secondary, .btn-outline-secondary:active, .btn-outline-secondary.active, .btn-outline-secondary.dropdown-toggle.show {
        color: #fff;
        background-color: #134b5f;
        border-color: #134b5f;
    }



        .btn-check:checked + .btn-outline-secondary:focus,
        .btn-check:active + .btn-outline-secondary:focus, .btn-outline-secondary:active:focus, .btn-outline-secondary.active:focus, .btn-outline-secondary.dropdown-toggle.show:focus {
            box-shadow: 0 0 0 0.25rem rgba(25, 46, 47, 0.5);
        }



    .btn-outline-secondary:disabled, .btn-outline-secondary.disabled {
        color: #134b5f;
        background-color: transparent;
    }




/* btn-primary */



.btn-primary {
    color: #fff;
    background-color: #192E2F;
    border-color: #192E2F;
}



    .btn-primary:hover {
        color: #fff;
        background-color: #445f5e;
        border-color: #445f5e;
    }



    .btn-check:focus + .btn-primary, .btn-primary:focus {
        color: #fff;
        background-color: #445f5e;
        border-color: #445f5e;
        box-shadow: 0 0 0 0.25rem rgba(60, 60, 60, 0.5);
    }



    .btn-check:checked + .btn-primary,
    .btn-check:active + .btn-primary, .btn-primary:active, .btn-primary.active,
    .show > .btn-primary.dropdown-toggle {
        color: #fff;
        background-color: #445f5e;
        border-color: #445f5e;
    }



        .btn-check:checked + .btn-primary:focus,
        .btn-check:active + .btn-primary:focus, .btn-primary:active:focus, .btn-primary.active:focus,
        .show > .btn-primary.dropdown-toggle:focus {
            box-shadow: 0 0 0 0.25rem rgba(60, 60, 60, 0.5);
        }



    .btn-primary:disabled, .btn-primary.disabled {
        color: #fff;
        background-color: #445f5e;
        border-color: #445f5e;
    }


.btn-danger {
    color: #fff;
    background-color: #CA1929;
    border-color: #CA1929;
}



    .btn-danger:hover {
        color: #fff;
        background-color: #b84743;
        border-color: #ae423f;
    }



    .btn-check:focus + .btn-danger, .btn-danger:focus {
        color: #fff;
        background-color: #d9534f;
        ;
        border-color: #d9534f;
        ;
        box-shadow: 0 0 0 0.25rem rgba(223, 109, 105, 0.5);
    }



    .btn-check:checked + .btn-danger,
    .btn-check:active + .btn-danger, .btn-danger:active, .btn-danger.active,
    .show > .btn-danger.dropdown-toggle {
        color: #fff;
        background-color: #b84743;
        border-color: #b84743;
    }



        .btn-check:checked + .btn-danger:focus,
        .btn-check:active + .btn-danger:focus, .btn-danger:active:focus, .btn-danger.active:focus,
        .show > .btn-danger.dropdown-toggle:focus {
            box-shadow: 0 0 0 0.25rem rgba(223, 109, 105, 0.5);
        }



    .btn-danger:disabled, .btn-danger.disabled {
        color: #fff;
        background-color: #b84743;
        border-color: #b84743;
    }





.btn-secondary {
    color: #fff;
    background-color: #134b5f;
    border-color: #134b5f;
}



    .btn-secondary:hover {
        color: #fff;
        background-color: #1a6985;
        border-color: #1a6985;
    }



    .btn-check:focus + .btn-secondary, .btn-secondary:focus {
        color: #fff;
        background-color: #1a6985;
        border-color: #1a6985;
        box-shadow: 0 0 0 0.25rem rgba(60, 60, 60, 0.5);
    }



    .btn-check:checked + .btn-secondary,
    .btn-check:active + .btn-secondary, .btn-secondary:active, .btn-secondary.active,
    .show > .btn-secondary.dropdown-toggle {
        color: #fff;
        background-color: #1a6985;
        border-color: #1a6985;
    }



        .btn-check:checked + .btn-secondary:focus,
        .btn-check:active + .btn-secondary:focus, .btn-secondary:active:focus, .btn-secondary.active:focus,
        .show > .btn-secondary.dropdown-toggle:focus {
            box-shadow: 0 0 0 0.25rem rgba(60, 60, 60, 0.5);
        }



    .btn-secondary:disabled, .btn-secondary.disabled {
        color: #fff;
        background-color: #1a6985;
        border-color: #1a6985;
    }




.btn-warning {
    color: #fff;
    background-color: #BD7418;
    border-color: #BD7418;
}



    .btn-warning:hover {
        color: #fff;
        background-color: #c6883a;
        border-color: #c6883a;
    }



    .btn-check:focus + .btn-warning, .btn-warning:focus {
        color: #fff;
        background-color: #c6883a;
        border-color: #c6883a;
        box-shadow: 0 0 0 0.25rem rgba(60, 60, 60, 0.5);
    }



    .btn-check:checked + .btn-warning,
    .btn-check:active + .btn-warning, .btn-warning:active, .btn-warning.active,
    .show > .btn-warning.dropdown-toggle {
        color: #fff;
        background-color: #c6883a;
        border-color: #c6883a;
    }



        .btn-check:checked + .btn-warning:focus,
        .btn-check:active + .btn-warning:focus, .btn-warning:active:focus, .btn-warning.active:focus,
        .show > .btn-warning.dropdown-toggle:focus {
            box-shadow: 0 0 0 0.25rem rgba(60, 60, 60, 0.5);
        }



    .btn-warning:disabled, .btn-warning.disabled {
        color: #fff;
        background-color: #c6883a;
        border-color: #c6883a;
    }





.btn-outline-success {
    color: #4b7147;
    border-color: #4b7147;
}



    .btn-outline-success:hover {
        color: #fff;
        background-color: #4b7147;
        border-color: #4b7147;
    }



    .btn-check:focus + .btn-outline-success, .btn-outline-success:focus {
        box-shadow: 0 0 0 0.25rem rgba(25, 46, 47, 0.5);
    }



    .btn-check:checked + .btn-outline-success,
    .btn-check:active + .btn-outline-success, .btn-outline-success:active, .btn-outline-success.active, .btn-outline-success.dropdown-toggle.show {
        color: #fff;
        background-color: #4b7147;
        border-color: #4b7147;
    }



        .btn-check:checked + .btn-outline-success:focus,
        .btn-check:active + .btn-outline-success:focus, .btn-outline-success:active:focus, .btn-outline-success.active:focus, .btn-outline-success.dropdown-toggle.show:focus {
            box-shadow: 0 0 0 0.25rem rgba(25, 46, 47, 0.5);
        }



    .btn-outline-success:disabled, .btn-outline-success.disabled {
        color: #4b7147;
        background-color: transparent;
    }




/* btn-primary */



.btn-success {
    color: #fff;
    background-color: #4b7147;
    border-color: #4b7147;
}



    .btn-success:hover {
        color: #fff;
        background-color: #578553;
        border-color: #578553;
    }



    .btn-check:focus + .btn-success, .btn-success:focus {
        color: #fff;
        background-color: #578553;
        border-color: #578553;
        box-shadow: 0 0 0 0.25rem rgba(60, 60, 60, 0.5);
    }



    .btn-check:checked + .btn-success,
    .btn-check:active + .btn-success, .btn-success:active, .btn-success.active,
    .show > .btn-success.dropdown-toggle {
        color: #fff;
        background-color: #578553;
        border-color: #578553;
    }



        .btn-check:checked + .btn-success:focus,
        .btn-check:active + .btn-success:focus, .btn-success:active:focus, .btn-success.active:focus,
        .show > .btn-success.dropdown-toggle:focus {
            box-shadow: 0 0 0 0.25rem rgba(60, 60, 60, 0.5);
        }



    .btn-success:disabled, .btn-success.disabled {
        color: #fff;
        background-color: #578553;
        border-color: #578553;
    }








.IndexDiv {
    position: fixed;
    background: linear-gradient(to right,#C4E0E0,#C4E0F9);
    top: 8%;
    left: 0;
    min-height: 85%;
    min-width: 100%;
}



.GrTable table {
    width: 100%
}

.GrTable thead {
    width: calc(100%-1em);
}

.GrTable tbody {
    display: block;
    height: 130px;
    overflow-y: scroll;
    overflow-x: hidden;
}

    .GrTable thead, .GrTable tbody tr {
        display: table;
        width: 98%;
        table-layout: fixed;
    }

.GrTable thead, .GrTable tbody, .GrTable td {
    border: none !important;
}

.PackTotal {
    background-image: none;
}

.WeightTotal {
    background-image: none;
}

.FreightTotal {
    background-image: none;
}
.modal-body {
    padding: 20px; /* Adjust padding as necessary */
}

.control-label {
    margin-bottom: 5px; /* Adjust margin for better spacing */
}

.table-border-top {
    border-top: 2px solid #000;
}
.text-right {
    text-align: right;
}
.modal-dialog {
    max-width: 80%; /* Adjust this to your desired width */
}

/* Make the modal body scrollable */
.modal-body {
    max-height: 60vh; /* 60% of the viewport height, adjust as needed */
    overflow-y: auto; /* Add vertical scrolling if content overflows */
}

#detailsTable tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

#detailsTable th, #detailsTable td {
    vertical-align: middle;
}

#detailsTable input.form-control-sm {
    height: 28px;
    padding: 2px 6px;
}

#grandTotal {
    background-color: #fffbe6;
    color: #000;
    font-weight: bold;
}

/* Compact form controls for Challan Entry */
.compact-form .form-control,
.compact-form .form-select {
    height: 30px !important;
    padding: 2px 6px !important;
    font-size: 0.875rem; /* slightly smaller text */
}

.compact-form label {
    font-size: 0.9rem;
    margin-bottom: 2px;
}




.dataTables_wrapper .top {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 6px;
}

.dataTables_wrapper .bottom {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 6px;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 4px;
    border: 1px solid #ccc;
    padding: 4px 8px;
    width: 200px;
}

.dataTables_wrapper .dataTables_length select {
    border-radius: 4px;
    padding: 4px;
    border: 1px solid #ccc;
}

.btn-group .btn {
    border-radius: 6px;
    margin: 0 2px;
}

table.dataTable thead {
    background-color: #198754;
    color: white;
}

table.dataTable tbody tr:hover {
    background-color: #e8f5e9;
}


/* ==========================================================
   🌟 FABRICO MASTER STYLESHEET
   Includes: Navbar, Login Page, Register Page, Modals, etc.
   ========================================================== */


/* ==========================================================
   🧭 NAVBAR & LOGO STYLING
   ========================================================== */

/* FABRICO Logo in Navbar */
/* FABRICO Logo */
.fabrico-logo {
    height: 85px !important; /* increased size */
    width: auto !important;
    margin-top: -4px; /* small visual centering adjustment */
    transform: scale(1.15); /* slightly enlarge it */
    transform-origin: left center;
    transition: transform 0.3s ease;
    image-rendering: -webkit-optimize-contrast; /* sharper look */
}

    .fabrico-logo:hover {
        transform: scale(1.25);
        transform-origin: left center;
    }

/* Responsive Logo Sizes */
/* Responsive adjustments */
@media (max-width: 992px) {
    .navbar {
        min-height: 75px !important;
    }

    .fabrico-logo {
        height: 65px !important;
        transform: none;
    }
}

@media (max-width: 576px) {
    .navbar {
        min-height: 65px !important;
    }

    .fabrico-logo {
        height: 55px !important;
    }
}

/* Navbar Layout */
.navbar {
    min-height: 90px !important; /* slightly taller navbar */
    display: flex;
    align-items: center;
    padding: 0.4rem 1rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

    .navbar-brand span {
        font-size: 1.4rem;
        font-weight: 600;
        color: #fff;
    }

/* Navbar Links */
.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    color: #fff !important;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 6px;
    }

/* User Info */
.navbar-text {
    color: #fff !important;
    font-weight: 500;
    margin-right: 1rem;
}

    .navbar-text.badge {
        background: rgba(255, 255, 255, 0.15);
        padding: 5px 12px;
        border-radius: 6px;
    }

/* ==========================================================
   🔐 LOGIN PAGE STYLING
   ========================================================== */

body.login-page {
    background: linear-gradient(135deg, #0099cc 0%, #006699 100%);
    height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
    transition: background 0.3s ease;
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: fadeIn 0.6s ease;
}

.login-header {
    background: #0099cc;
    color: white;
    text-align: center;
    padding: 1.2rem 1rem;
}

    .login-header img {
        height: 65px;
        margin-bottom: 0.4rem;
    }

    .login-header h2 {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
        font-weight: 600;
    }

    .login-header p {
        font-size: 0.9rem;
        opacity: 0.9;
    }

.login-body {
    padding: 1.3rem 1.5rem;
}

.form-floating > label {
    color: #555;
    font-size: 0.9rem;
}

.form-control {
    height: 42px;
    font-size: 0.9rem;
}

.form-check-label {
    font-size: 0.85rem;
}

.btn-login {
    background: #0099cc;
    border: none;
    font-weight: 600;
    padding: 0.6rem;
    transition: 0.3s;
    font-size: 0.95rem;
    color: white;
}

    .btn-login:hover {
        background: #0077aa;
    }

.links a {
    text-decoration: none;
    color: #0099cc;
    font-size: 0.85rem;
}

    .links a:hover {
        text-decoration: underline;
    }

.login-footer {
    color: #eee;
    font-size: 0.8rem;
    margin-top: 10px;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    body.login-page {
        background: linear-gradient(135deg, #00334d 0%, #001a26 100%);
    }

    .login-card {
        background: #1e1e1e;
        color: #ddd;
    }

    .login-header {
        background: #004d73;
    }

    .form-control {
        background: #2a2a2a;
        color: #eee;
        border: 1px solid #444;
    }

    .btn-login {
        background: #0077aa;
    }

        .btn-login:hover {
            background: #0099cc;
        }

    .links a {
        color: #66ccff;
    }

    .login-footer {
        color: #aaa;
    }
}


/* ==========================================================
   🧾 REGISTER PAGE STYLING
   ========================================================== */

body.register-page {
    background: linear-gradient(135deg, #0099cc 0%, #006699 100%);
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    overflow-y: auto;
    font-family: 'Segoe UI', sans-serif;
}

.register-card {
    width: 100%;
    max-width: 760px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.6s ease;
    margin: 2rem auto;
}

.register-header {
    background: #0099cc;
    color: white;
    text-align: center;
    padding: 1.2rem 1rem;
}

    .register-header img {
        height: 60px;
        margin-bottom: 0.3rem;
    }

    .register-header h2 {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
        font-weight: 600;
    }

    .register-header p {
        font-size: 0.85rem;
        opacity: 0.9;
    }

.register-body {
    padding: 1.2rem 1.8rem;
}

/* Floating Labels */
.form-floating {
    position: relative;
    margin-bottom: 0.75rem !important;
}

    .form-floating > .form-control,
    .form-floating > .form-select {
        height: 34px !important;
        min-height: 34px !important;
        padding: 0.4rem 0.6rem 0.2rem 0.6rem !important;
        font-size: 0.85rem;
        line-height: 1.2;
        border-radius: 6px;
        border: 1px solid #ccc;
        box-shadow: none !important;
    }

    .form-floating > label {
        position: absolute;
        top: 4px;
        left: 10px;
        padding: 0 4px;
        font-size: 0.75rem;
        color: #777;
        transition: all 0.15s ease-in-out;
        background-color: white;
        pointer-events: none;
    }

    .form-floating > .form-control:focus ~ label,
    .form-floating > .form-control:not(:placeholder-shown) ~ label {
        top: -8px;
        left: 8px;
        font-size: 0.7rem;
        color: #0099cc;
        background-color: white;
    }

    /* Input Focus */
    .form-floating > .form-control:focus,
    .form-floating > .form-select:focus {
        border-color: #0099cc !important;
        box-shadow: 0 0 0 0.1rem rgba(0, 153, 204, 0.25) !important;
        outline: none;
    }

/* Custom Dropdown Arrow */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='gray' d='M2 5l6 6 6-6H2z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
}

/* Buttons */
.btn-register {
    background: #0099cc;
    border: none;
    font-weight: 600;
    padding: 0.45rem;
    transition: 0.3s;
    font-size: 0.9rem;
    color: white;
    border-radius: 6px;
    width: 100%;
}

    .btn-register:hover {
        background: #0077aa;
    }

/* Register Footer */
.login-footer {
    color: #eee;
    font-size: 0.8rem;
    margin-top: 10px;
    background: #006699;
    padding: 5px 0;
    width: 100%;
    text-align: center;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .register-card {
        margin: 1rem;
        max-width: 95%;
    }

    .register-body {
        padding: 1rem 1.2rem;
    }

    .register-header img {
        height: 50px;
    }

    .register-header h2 {
        font-size: 1rem;
    }
}


/* ==========================================================
   📊 MODALS & TABLE STYLING (Rate History, etc.)
   ========================================================== */

#rateHistoryModal .form-label {
    font-size: 0.9rem;
}

#rateHistoryModal .btn {
    font-size: 0.85rem;
}


/* --- Page Header (Card Header / Section Title) --- */
/* ==================== FABRICO Themed Table + Header ==================== */

/* --- Page Header (Card Header / Section Title) --- */
.card-header,
.page-header,
h4, h5.page-title {
    background: linear-gradient(135deg, #0099cc, #006699);
    color: #fff !important;
    text-align: center;
    font-weight: 600;
    font-size: 1.3rem;
    padding: 0.8rem 1rem;
    border-radius: 8px 8px 0 0;
    border: none;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* --- Create Button --- */
.btn-primary,
.btn-create {
    background: linear-gradient(135deg, #0099cc, #0077aa) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

    .btn-primary:hover,
    .btn-create:hover {
        background: linear-gradient(135deg, #00b5e2, #0088bb) !important;
        transform: translateY(-1px);
    }

/* --- DataTable Header --- */
table.dataTable thead th {
    background: linear-gradient(135deg, #0099cc, #006699);
    color: #fff !important;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    border-bottom: 2px solid #006699;
    letter-spacing: 0.3px;
}

/* --- DataTable Row Hover --- */
table.dataTable tbody tr:hover {
    background-color: rgba(0, 153, 204, 0.05);
}

/* --- Pagination Buttons --- */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #0099cc !important;
    border: 1px solid #ccc !important;
    border-radius: 4px;
    margin: 0 2px;
    transition: 0.2s;
}

    .dataTables_wrapper .dataTables_paginate .paginate_button.current {
        background: #0099cc !important;
        color: #fff !important;
        border-color: #0099cc !important;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
        background: #0077aa !important;
        color: white !important;
    }

/* --- Search & Dropdown Inputs --- */
.dataTables_filter input,
.dataTables_length select {
    border-radius: 4px;
    border: 1px solid #ccc;
    padding: 5px 8px;
    font-size: 0.9rem;
}

/* --- Action Buttons (Edit/Delete/History) --- */
.btn-group .btn {
    border-radius: 4px !important;
    padding: 4px 6px !important;
}

.btn-primary i,
.btn-info i,
.btn-danger i {
    font-size: 0.95rem;
}




/* ==================== FABRICO Page Header Style ==================== */
.page-header {
    background: linear-gradient(135deg, #0099cc, #006699);
    color: #fff;
    text-align: center;
    padding: 0.8rem 0; /* reduced height from py-3 (~1.5rem) */
    border-radius: 10px 10px 0 0;
    font-weight: 600;
    font-size: 1.4rem;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 0; /* clean edge to card body */
}

    .page-header h2 {
        font-size: 1.35rem;
        margin: 0;
        letter-spacing: 0.3px;
    }

/* Optional smaller variants for compact cards */
.page-header-sm {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}


.navbar-nav .nav-link {
    font-weight: 500;
    margin-right: 10px;
    transition: color 0.3s;
}

    .navbar-nav .nav-link:hover {
        color: #ffffff;
        text-decoration: underline;
    }



/* 🌟 Hero Section */
.hero-banner {
    position: relative;
    overflow: hidden;
    height: 450px;
}

.hero-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.15));
}

.hero-content {
    z-index: 2;
    max-width: 90%;
    text-align: center;
}

.text-shadow {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* ✨ Animations */
.fade-in {
    animation: fadeInHero 1.2s ease-in-out;
}

@keyframes fadeInHero {
    from {
        opacity: 0;
        transform: scale(1.05);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 🎨 Buttons */
.btn-light:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* 📱 Responsive */
@media (max-width: 768px) {
    .hero-banner {
        height: 300px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 8px 18px;
    }
}
/* 💬 Request a Quote Section */
form input,
form textarea {
    border: 1px solid #d1d1d1;
    border-radius: 10px;
    box-shadow: none !important;
}

    form input:focus,
    form textarea:focus {
        border-color: #0dcaf0;
        box-shadow: 0 0 5px rgba(13, 202, 240, 0.3);
    }

.table-light.fw-bold td {
    font-size: 1rem;
    background-color: #f5f5f5 !important;
}
/* Supplier - Blue */
.type-supplier:checked {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

/* Contractor - Orange */
.type-contractor:checked {
    background-color: #fd7e14 !important;
    border-color: #fd7e14 !important;
}

/* Purchaser - Green */
.type-purchaser:checked {
    background-color: #198754 !important;
    border-color: #198754 !important;
}
.btn-action {
    border-radius: 10px !important;
    padding: 6px 10px;
    font-size: 14px;
    margin-right: 6px;
    border-width: 1.5px !important;
}

/* Colors */
.btn-green {
    color: white;
    border-color: #22c55e;
    background: #22c55e;
}

    .btn-green:hover {
        background: #16a34a;
    }

.btn-red {
    color: white;
    border-color: #dc2626;
    background: #dc2626;
}

    .btn-red:hover {
        background: #b91c1c;
    }

.btn-blue {
    color: white;
    border-color: #3b82f6;
    background: #3b82f6;
}

    .btn-blue:hover {
        background: #2563eb;
    }

.btn-orange {
    color: white;
    border-color: #f59e0b;
    background: #f59e0b;
}

    .btn-orange:hover {
        background: #d97706;
    }

.btn-pink {
    color: white;
    border-color: #ec4899;
    background: #ec4899;
}

    .btn-pink:hover {
        background: #db2777;
    }

/* HERO SLIDER */
.hero-img {
    height: 72vh;
    object-fit: cover;
    filter: brightness(82%);
}

#heroCarousel {
    margin-bottom: 50px;
}


.carousel-caption {
    bottom: 35%;
}

    .carousel-caption h1 {
        font-size: 3.5rem;
        font-weight: 800;
        text-shadow: 2px 2px 6px #000;
    }

    .carousel-caption p {
        font-size: 1.4rem;
        margin-bottom: 20px;
        text-shadow: 1px 1px 4px #000;
    }

/* SECTION SPACING */
.section-padding {
    padding: 70px 0;
}

/* CORE AREA IMAGE */
.core-img {
    height: 250px;
    object-fit: cover;
    border-radius: 6px 6px 0 0;
}
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    width: 100%; /* important */
}

footer {
    flex-shrink: 0;
    width: 100%;
}

/* ==========================================================
   END OF FABRICO SITE.CSS
   ========================================================== */

.gallery-img {
    width: 100%;
    height: 250px; /* You can change height as you prefer */
    object-fit: cover; /* Crop edges but keep quality */
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#detailsTable td {
    vertical-align: top;
}

#detailsTable select,
#detailsTable input {
    width: 100%;
}
#detailsTable .unit {
    background-color: #f8f9fa;
    font-weight: 600;
}
