html,
body {
    height: 100vh;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f5f5f5;
}

/* Header */
.header-top {
    background: var(--header-bg, #696B8B);
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: white;
    font-size: 1.25rem;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.9rem;
}

.logout-btn {
    background: white;
    color: var(--header-bg, #4a4a6a);
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: #f0f0f0;
}


/* Content Area */
.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* padding: 1rem 2rem; */
    /* padding-bottom: 60px; */
    /* space for fixed footer */
}

.content-box {
    flex: 1;
    background: white;
    border-radius: 4px;
    padding: 0.5rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* Footer */
.footer-custom {
    /* position: fixed; */
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--footer-bg);
    color: white;
    padding: 0.7rem;
    text-align: center;
    font-size: 0.875rem;
    /* z-index: 100; */
}

.footer-custom a {
    color: #999;
    text-decoration: none;
}

.footer-custom a:hover {
    color: white;
}

/* Select2 adjustments */
.select2-container--default .select2-selection--single {
    height: 35px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 35px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 35px !important;
}


/* ===== Multiple select ===== */
.select2-container--default .select2-selection--multiple {
    min-height: 35px !important;
}


/* ===============================
   CUSTOM LOADER (Scoped)
================================ */
.customloader {
    text-align: center;
}


/* ===============================
   Scoped Loader for .customloader
================================ */
.customloader .loader {
    width: 60px;
    height: 60px;
    border: 6px solid #696B8B;
    border-bottom-color: #FF3D00;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: customloader-rotation 1s linear infinite;
}

@keyframes customloader-rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* ==================== ATLAS THEME BREADCRUMB (SLIM) ==================== */

/* Container */
.breadcrumb-container {
    margin-bottom: 0.75rem;
    margin-top: 0;
    width: 100%;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

/* Breadcrumb navigation */
.breadcrumb-atlas {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    padding: 0 0.625rem;
    margin: 0;
    position: relative;
    width: 100%;
    background: white;
}

/* Breadcrumb items */
.breadcrumb-item-atlas {
    display: flex;
    align-items: center;
    position: relative;
}

/* Breadcrumb links/buttons */
.breadcrumb-item-atlas a,
.breadcrumb-item-atlas button {
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
    cursor: pointer;
    border: none;
    background: none;
}

.breadcrumb-item-atlas a:hover,
.breadcrumb-item-atlas button:hover {
    color: #5b6f8c;
    background-color: rgba(91, 111, 140, 0.1);
    transform: translateX(2px);
}

.breadcrumb-item-atlas a:focus,
.breadcrumb-item-atlas button:focus {
    outline: none;
}

.breadcrumb-item-atlas a:active,
.breadcrumb-item-atlas button:active {
    color: #5b6f8c;
    transform: translateX(1px);
}

/* Active/current item */
.breadcrumb-item-atlas.active,
.breadcrumb-item-atlas.active span {
    color: #6b7280;
    font-weight: 500;
    padding: 0.15rem 0.4rem;
    font-size: 0.875rem;
}

/* Separator styling */
.breadcrumb-separator-atlas {
    color: #6b7280;
    font-weight: bold;
    margin: 0 0.25rem;
    font-size: 1.5rem;
    user-select: none;
    transition: all 0.3s ease;
    margin-top: -5px !important;
}

/* Container hover state - focused */
.breadcrumb-container:hover {
    border-color: #5b6f8c;
    box-shadow: 0 0 0 2px rgba(91, 111, 140, 0.1);
}

/* Separator color change on container hover */
.breadcrumb-container:hover .breadcrumb-separator-atlas {
    color: #5b6f8c;
    opacity: 1;
}

/* Focus states for accessibility */
.breadcrumb-item-atlas a:focus-visible,
.breadcrumb-item-atlas button:focus-visible {
    outline: 2px solid #5b6f8c;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Responsive behavior */
@media (max-width: 768px) {
    .breadcrumb-container {
        margin-bottom: 0.5rem;
    }

    .breadcrumb-atlas {
        padding: 0 0.5rem;
    }

    .breadcrumb-item-atlas a,
    .breadcrumb-item-atlas button,
    .breadcrumb-item-atlas.active {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
}

.app-navbar-scope .navbar-custom {
    background: var(--navigation-bg);
    padding: 0;
    min-height: 3.5vh;
}

.app-navbar-scope .navbar-custom .navbar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    width: 100%;
    align-items: stretch;
    margin: 0;
    padding: 0;
}

.app-navbar-scope .navbar-nav > li {
    margin: 0;
    display: flex;
    align-items: stretch;
    position: relative;
}

.app-navbar-scope .navbar-custom .nav-link {
    color: #fff;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.6rem;
    margin: 0;
    height: 100%;
}

.app-navbar-scope .navbar-custom .nav-link:hover {
    color: #fff;
}

.app-navbar-scope .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
    padding: 0.3rem 0.5rem;
    margin: 0;
}

.app-navbar-scope .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,255%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.app-navbar-scope .dropdown-hover,
.app-navbar-scope .dropend-hover {
    position: relative;
    display: flex;
    align-items: stretch;
}

.app-navbar-scope .dropdown-icon-small {
    font-size: 0.7rem;
    width: 10px;
    transition: transform 0.3s ease;
    margin: 0;
    padding: 0;
}

.app-navbar-scope .dropdown-hover:hover .dropdown-icon-small {
    transform: rotate(180deg);
}

.app-navbar-scope .dropend-hover:hover > a .dropdown-icon-small {
    transform: rotate(90deg);
}

.app-navbar-scope .dropdown-menu-custom {
    background: var(--navigation-bg);
    border: none;
    padding: 0;
    min-width: 140px;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 2000;
    margin: 0;
    list-style: none;
    overflow: visible;
}

.app-navbar-scope .dropend-hover {
    overflow: visible;
}

.app-navbar-scope .dropend-hover > .dropdown-menu-custom {
    left: 100%;
    top: 0;
    overflow: visible;
}

.app-navbar-scope .dropdown-menu-custom {
    outline: 1px solid rgba(255,255,255,0.15);
}

.app-navbar-scope .dropdown-menu-custom .dropdown-menu-custom {
    overflow: visible;
}

.app-navbar-scope .dropdown-menu-custom > li {
    margin: 0;
    padding: 0;
    display: flex;
    position: relative;
    overflow: visible;
}

.app-navbar-scope .dropdown-menu-custom > li > .dropdown-item {
    color: #fff;
    padding: 0.3rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    background: transparent;
    margin: 0;
    font-size: 0.7rem;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
    width: 100%;
}

.app-navbar-scope .dropdown-menu-custom > li > .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.app-navbar-scope .dropdown-menu-custom > li:last-child > .dropdown-item {
    border-bottom: none;
}

.app-navbar-scope .dropdown-menu-custom > li > a {
    color: #fff;
    padding: 0.3rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    background: transparent;
    font-size: 0.8rem;
    margin: 0;
    text-decoration: none;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.app-navbar-scope .dropdown-menu-custom > li > a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.app-navbar-scope .dropdown-menu-custom > li:last-child > a {
    border-bottom: none;
}

.app-navbar-scope .dropdown-menu {
    position: absolute !important;
    transform: none !important;
    float: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.app-navbar-scope .dropdown-menu-custom {
    border-radius: 0 !important;
}

.app-navbar-scope .navbar-custom .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.app-navbar-scope [data-nav-item].hidden {
    display: none !important;
}

.app-navbar-scope .more-dropdown {
    margin-left: auto;
}

.app-navbar-scope #moreBtn {
    cursor: pointer;
    color: #fff;
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: transparent;
    border: none;
    margin: 0;
    height: 100%;
}

.app-navbar-scope #moreBtn:hover {
    color: #fff;
}

.app-navbar-scope #moreMenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--navigation-bg);
    min-width: 140px;
    z-index: 2000;
    list-style: none;
    margin: 0;
    padding: 0;
    border: none;
    display: none;
}

.app-navbar-scope #moreMenu.show {
    display: block;
}

.app-navbar-scope #moreMenu > li {
    display: flex;
    position: relative;
    margin: 0;
    padding: 0;
}

.app-navbar-scope #moreMenu > li > a {
    color: #fff;
    padding: 0.3rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    background: transparent;
    width: 100%;
    text-decoration: none;
    font-size: 0.8rem;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.app-navbar-scope #moreMenu > li > a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.app-navbar-scope #moreMenu > li:last-child > a {
    border-bottom: none;
}

/*#navbarItems > li.nav-item {
    display: none;
}

#navbarItems > li.nav-item:nth-child(-n+5) {
    display: flex;
}*/




.chart-container {
    width: 100%;
    height: 280px;
    position: relative;
}

canvas {
    max-width: 100% !important;
}

.app-navbar-scope .dropend-hover {
    overflow: visible;
    position: relative;
}

.app-navbar-scope .dropend-hover > .dropdown-menu-custom {
    position: absolute;
    top: 0;
    overflow: visible;
}

.app-navbar-scope .dropend-hover > .dropdown-menu-custom {
    overflow: visible !important;
    clip-path: none !important;
}

/* Ensure no ancestor clips the deeply nested menus */
.app-navbar-scope .dropdown-menu-custom {
    overflow: visible !important;
    clip-path: none !important;
}

.app-navbar-scope .dropend-hover {
    overflow: visible !important;
}

.app-navbar-scope .dropdown-menu-custom {
    overflow: visible !important;
    clip-path: none !important;
}

/* Ensure z-index doesn't trap nested menus */
.app-navbar-scope .dropdown-menu-custom {
    z-index: 2000;
}

.app-navbar-scope .dropdown-menu-custom .dropdown-menu-custom {
    z-index: 2001;
}

.app-navbar-scope .dropdown-menu-custom .dropdown-menu-custom .dropdown-menu-custom {
    z-index: 2002;
}

.app-navbar-scope .dropdown-menu-custom .dropdown-menu-custom .dropdown-menu-custom .dropdown-menu-custom {
    z-index: 2003;
}

.app-navbar-scope .dropdown-menu-custom .dropdown-menu-custom .dropdown-menu-custom .dropdown-menu-custom .dropdown-menu-custom {
    z-index: 2004;
}

form .form-label {
    font-weight: bold;
}

#moreContainer #moreLessText {
    background-color: #fff6bf !important;
    padding: 0 5px;
    color: var(--header-bg, #4a4a6a) !important;
    border-radius: 1px;;
}

.app-navbar-scope .nav-link {
    color: #fff;
    font-size: 0.8rem;
    padding: 0.2rem 0.3rem;
    margin: 0;
    height: 100%;
}

.app-navbar-scope .navbar-custom .nav-link {
    font-size: 0.8rem;
}

.tableheader {
    color: black;
    background: var(--header-bg) !important;
}

.content-wrapper .card,
.content-wrapper .form-control,
.content-wrapper .btn,
.content-wrapper .form-select {
    border-radius: 0 !important;
}

/* jquery-ui.min.css points its .ui-icon sprites at assets/css/images/ui-icons_*.png,
   which was never carried over from the CI app — every .ui-icon (datepicker prev/next
   arrows included) renders as an empty but still-clickable box. Draw simple arrow
   glyphs instead of trying to source the missing sprite. */
.ui-datepicker-prev .ui-icon,
.ui-datepicker-next .ui-icon {
    background-image: none !important;
    text-indent: 0 !important;
    font-size: 0;
}

.ui-datepicker-prev .ui-icon::before,
.ui-datepicker-next .ui-icon::before {
    display: inline-block;
    font-size: 12px;
    line-height: 1;
}

.ui-datepicker-prev .ui-icon::before {
    content: "\25C0";
}

.ui-datepicker-next .ui-icon::before {
    content: "\25B6";
}
/* Legacy table styles for report/search forms (wp-list-table / widefat / hastable) */
.wp-list-table.widefat,
table.hastable {
    border-collapse: collapse;
    border: 1px solid #c3c3c3;
    margin-bottom: 10px;
}

.wp-list-table.widefat thead th,
.wp-list-table.widefat tfoot th,
table.hastable thead th,
table.hastable tfoot th,
.wp-list-table th.manage-column {
    background: var(--header-bg, #4a4a6a);
    color: #fff;
    border-bottom: 1px solid #c3c3c3;
    padding: 6px 10px;
    font-weight: 600;
}

.wp-list-table.widefat td,
table.hastable td {
    border-bottom: 1px solid #ddd;
    padding: 6px 10px;
    vertical-align: middle;
}

.wp-list-table.widefat td.column1,
table.hastable td.column1 {
    font-weight: 600;
    color: #333;
    background: #f9f9f9;
    width: 30%;
    white-space: nowrap;
}

.wp-list-table.widefat td.not-found,
table.hastable td.not-found {
    background: #fff6bf;
    color: #8a6d3b;
    text-align: center;
    font-weight: normal;
}

/* Form wrap container */
.form-wrap {
    padding: 4px;
}

/* Portlet header (section titles) */
.portlet-header {
    background: #e0e0e0;
    padding: 6px 10px;
    font-weight: 700;
    color: #333;
    border: 1px solid #c3c3c3;
    margin-bottom: 6px;
}

/* Form tables (location selection) */
table.form_1.form-wrap {
    border-collapse: collapse;
    border: 1px solid #c3c3c3;
    margin-top: 10px;
}

table.form_1.form-wrap td {
    padding: 4px 8px;
    border-bottom: 1px solid #ddd;
}

table.form_1.form-wrap td.column1 {
    font-weight: 600;
    color: #333;
    background: #f9f9f9;
    white-space: nowrap;
}

/* Legacy submit button for report forms */
#pre_survey input[type="submit"] {
    background: #f6f6f6;
    color: #000;
    border: 1px solid #000;
    border-radius: 4px;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 14px;
    margin: 10px 0;
}

#pre_survey input[type="submit"]:hover {
    background: #f6f6f6;
} 



