﻿/* ==============================================
   GLOBAL STYLES
   ============================================== */

body {
    font-size: 0.9rem;
}

.bodyx {
    font-size: 0.8rem;
}

.readonly {
    background-color: #e9ecef !important;
}

#notifications {
    position: fixed;
    top: 5px;
    right: 0;
    z-index: 9999;
    min-width: 250px;
}


<style >
/* 1. Force fixed height to match Bootstrap sm input */
.select2-container--default .select2-selection--multiple {
    height: 31px !important;
    min-height: 31px !important;
    padding: 0 4px !important; /* Minimal padding */
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    overflow: hidden; /* Hide extra items if they overflow */
}

/* 2. Container for pills and search box */
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
}

/* 3. Style the Pill (Choice) */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0 6px 0 20px; /* Right padding for text, Left padding for X */
    margin: 1px 4px 1px 0;
    height: 23px; /* Fixed height for pill */
    line-height: 23px;
    font-size: 0.75rem;
    position: relative; /* For absolute positioning of X */
}

/* 4. Fix the X button (Remove) - Absolute position it */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: white;
    position: absolute;
    left: 4px; /* Fix to left side of pill */
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    border: none;
}

    .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
        background: transparent;
        color: #ddd;
    }

/* 5. Placeholder positioning */
.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
    line-height: 29px; /* Vertically center placeholder */
    color: #6c757d;
    margin-left: 4px;
}

/* Hide placeholder if any item is selected */
.select2-container--default .select2-selection--multiple:has(.select2-selection__choice) .select2-selection__placeholder {
    display: none;
}

/* 6. Search Input Field */
.select2-search--inline .select2-search__field {
    height: 29px !important;
    margin: 0 !important;
    padding: 0 4px !important;
    line-height: 29px;
}

</style >
/* ==============================================
   Navigation brand icon
   ============================================== */
#mainNav .navbar-brand {
    color: #ffffff !important;
}

    #mainNav .navbar-brand i {
        color: #00d4ff !important;
    }

    #mainNav .navbar-brand:hover i {
        color: #00ffff !important;
    }

/* Logout button styling */
#mainNav .btn-link {
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none;
    padding: 0.5rem 1rem;
}

    #mainNav .btn-link:hover {
        color: #ffffff !important;
    }



/* ==============================================
   Home page header
   ============================================== */
header.masthead {
    padding-top: 10.5rem;
    padding-bottom: 6rem;
    text-align: center;
    color: #fff;
    background-image: url("../assets/img/landing/bg1.jpg");
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-position: center center;
    background-size: cover;
}

    header.masthead .masthead-subheading {
        font-size: 1.5rem;
        font-style: italic;
        line-height: 1.5rem;
        margin-bottom: 25px;
        font-family: "Roboto Slab", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    }

    header.masthead .masthead-heading {
        font-size: 3.25rem;
        font-weight: 700;
        line-height: 3.25rem;
        margin-bottom: 2rem;
        font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    }

@media (min-width: 768px) {
    header.masthead {
        padding-top: 17rem;
        padding-bottom: 12.5rem;
    }

        header.masthead .masthead-subheading {
            font-size: 2.25rem;
            font-style: italic;
            line-height: 2.25rem;
            margin-bottom: 2rem;
        }

        header.masthead .masthead-heading {
            font-size: 4.5rem;
            font-weight: 700;
            line-height: 4.5rem;
            margin-bottom: 4rem;
        }
}



/* ==============================================
   Heading Contact Section
   ============================================== */

section#contact {
    background-color: #212529;
    background-image: url("../assets/img/landing/map-image.png");
    background-repeat: no-repeat;
    background-position: center;
}

    section#contact .section-heading {
        color: #fff;
    }

    section#contact form#contactForm .form-group {
        margin-bottom: 1.5rem;
    }

        section#contact form#contactForm .form-group input,
        section#contact form#contactForm .form-group textarea {
            padding: 1.25rem;
        }

            section#contact form#contactForm .form-group input.form-control {
                height: auto;
            }

    section#contact form#contactForm .form-group-textarea {
        height: 100%;
    }

        section#contact form#contactForm .form-group-textarea textarea {
            height: 100%;
            min-height: 10rem;
        }

    section#contact form#contactForm p.help-block {
        margin: 0;
    }

    section#contact form#contactForm .form-control:focus {
        border-color: #ffc800;
        box-shadow: none;
    }

    section#contact form#contactForm ::-webkit-input-placeholder {
        font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
        font-weight: 700;
        color: #ced4da;
    }

    section#contact form#contactForm :-moz-placeholder {
        font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
        font-weight: 700;
        color: #ced4da;
    }

    section#contact form#contactForm ::-moz-placeholder {
        font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
        font-weight: 700;
        color: #ced4da;
    }

    section#contact form#contactForm :-ms-input-placeholder {
        font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
        font-weight: 700;
        color: #ced4da;
    }



/* ==============================================
   CAROUSEL
   ============================================== */

.carousel-item:after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
}

/* ==============================================
   DASHBOARD STYLES
   ============================================== */

.overviewIcons {
    max-height: 140px !important;
}

@media screen and (min-width: 1181px) {
    .p-90px {
        padding: 30px 90px 30px 90px !important;
    }
}

.staticDashboardCircle {
    width: 120px;
    line-height: 120px;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    border: 1px solid #999999;
    margin: 0 auto;
    height: 80px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .staticDashboardCircle:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

/* (kept as you had it; note: looks like it should be ".staticDashboard p") */
staticDashboard p {
    font-size: 1.2rem;
    font-weight: bold;
}

@media (max-width: 576px) {
    .staticDashboardCircle {
        width: 70px;
        height: 70px;
    }
}

/* ==============================================
   SIDEBAR - BASE STYLES
   ============================================== */

.sidebar-brand {
    padding: 0.8rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.brand-link {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

    .brand-link:hover {
        color: inherit;
        background-color: rgba(255, 255, 255, 0.05) !important;
    }

.brand-image {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    min-width: 33px;
    text-align: center;
    transition: margin 0.3s ease;
}

.brand-text {
    white-space: nowrap;
    transition: opacity 0.3s ease, width 0.3s ease;
    overflow: hidden;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
}

    .nav-link p {
        margin: 0;
        white-space: nowrap;
        transition: opacity 0.3s ease, width 0.3s ease;
        overflow: hidden;
    }

.nav-icon {
    margin-right: 0.75rem;
    width: 1.6rem;
    text-align: center;
    font-size: 1.1rem;
    transition: margin 0.3s ease;
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* ==============================================
   SIDEBAR - EXPANDED STATE (Default)
   ============================================== */

body:not(.sidebar-collapse) .app-sidebar {
    width: 250px !important;
}


/* IMPORTANT: do NOT set .app-main margin-left; AdminLTE handles layout */



/* ==============================================
   FORM INPUT STYLES
   ============================================== */

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

/* ==============================================
   MODAL STYLES
   ============================================== */

.nmodal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    isolation: isolate;
}

.nmodal-content {
    width: 85%;
    min-width: 700px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    padding: 24px;
    position: relative;
    z-index: 10000;
}

.nmodal-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eaeaea;
}

.nmodal-body {
    margin-bottom: 24px;
}

    .nmodal-body p {
        margin: 8px 0;
        line-height: 1.5;
    }

    .nmodal-body table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
    }

    .nmodal-body th,
    .nmodal-body td {
        border: 1px solid #000;
        padding: 10px;
        text-align: left;
    }

    .nmodal-body th {
        background-color: #f8f8f8;
    }

.nmodal-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eaeaea;
}

    .nmodal-footer button {
        margin: 0 8px;
        padding: 8px 16px;
    }

/* ==============================================
   PRINT/PDF STYLES
   ============================================== */

@media print {
    .nmodal {
        position: relative;
        background-color: transparent;
        height: auto;
        display: block;
        width: 100%;
        z-index: 1;
    }

    .nmodal-content {
        width: 100%;
        min-width: 0;
        max-width: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        z-index: 1;
        page-break-before: always;
    }

    .nmodal * {
        font-size: 80% !important;
    }

    .nmodal-body {
        margin-right: 0;
        padding-right: 0;
    }

        .nmodal-body table {
            width: 98%;
            margin-right: 0;
        }

        .nmodal-body th,
        .nmodal-body td {
            padding: 5px;
        }

    .nmodal-footer {
        display: none;
    }

    .nmodal-header {
        margin-bottom: 10px;
        padding-bottom: 5px;
    }

    .nmodal-body p {
        margin: 5px 0;
        line-height: 1.3;
    }

    @page {
        size: landscape;
    }
}

/* ==============================================
   SIDEBAR - COLLAPSED STATE (ICON ONLY) - DESKTOP
   ============================================== */
/* ===== AdminLTE icon-only collapse (keep icons visible) ===== */
@media (min-width: 992px) {
    body.sidebar-mini .app-sidebar {
        width: 4.6rem !important;
        min-width: 4.6rem !important;
    }

        body.sidebar-mini .app-sidebar .brand-text,
        body.sidebar-mini .app-sidebar .nav-link > p {
            display: none !important;
        }

        body.sidebar-mini .app-sidebar .nav-link {
            justify-content: center !important;
            padding-left: 0 !important;
            padding-right: 0 !important;
        }

            body.sidebar-mini .app-sidebar .nav-link > .nav-icon,
            body.sidebar-mini .app-sidebar .brand-image {
                width: 3rem !important;
                min-width: 3rem !important;
                margin: 0 !important;
                display: inline-flex !important;
                justify-content: center !important;
            }
}

/* ==============================================
   SIDEBAR - TRANSITIONS
   ============================================== */

.app-sidebar,
.brand-text,
.nav-link p {
    transition: all 0.3s ease-in-out !important;
}

/* ==============================================
   SIDEBAR - MOBILE (SLIDE IN/OUT)
   ============================================== */

@media (max-width: 991.98px) {
    .app-sidebar {
        position: fixed !important;
        top: 0;
        left: -250px !important;
        height: 100vh;
        z-index: 1040;
        width: 250px !important;
        transition: left 0.3s ease-in-out !important;
    }

    body.sidebar-open .app-sidebar {
        left: 0 !important;
    }

    body.sidebar-open::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1039;
        animation: fadeIn 0.3s;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .app-main {
        margin-left: 0 !important;
        width: 100% !important;
    }

    /* if body.sidebar-collapse accidentally exists on mobile, keep full width */
    body.sidebar-collapse .app-sidebar {
        width: 250px !important;
    }
}
