﻿body {
        /* Use a system font stack to avoid runtime CDN font dependencies. */
        font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
        background-color: #f5f5f5;
    }
    img {
        max-width: 100%;
        height: auto;
    }
    .skip-link {
        position: absolute;
        left: -999px;
        top: auto;
        width: 1px;
        height: 1px;
        overflow: hidden;
        z-index: 1000;
    }
    .skip-link:focus {
        position: static;
        width: auto;
        height: auto;
        padding: 10px 14px;
        background: #fff;
        color: #000;
        border-radius: 8px;
        box-shadow: 0 0 0 3px rgba(0, 91, 170, 0.3);
        display: inline-block;
        margin: 10px;
    }
    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        border: 0;
    }
    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible {
        outline: 3px solid rgba(0, 91, 170, 0.4);
        outline-offset: 2px;
    }
.circle-container {
  position: relative;
  display: inline-block;
}

.circle-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #F2F2F2;
  border: 1px solid #CCCCCC;
  border-radius: 10px;
  box-sizing: border-box;
  z-index: 1;
  overflow: hidden;
}

.image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  margin: -2px;
}
.status-green {
    background-color: green;
    color: white;
}

.status-yellow {
    background-color: yellow;
    color: black;
}

.status-red {
    background-color: red;
    color: white;
}




    /* Adjust the spacing of the sidebar to fit the content */
    #wrapper {
        display: flex;
        min-height: 100vh;
    }

    .sidebar {
        padding-top: 70px;
        background: #0057A3 !important;
        color: white;
        width: 347px !important;
     
    }
    .sidebar--- {
        /* Keep sidebar in flow (for alignment) but sticky (for usability). */
        position: sticky;
        top: 0;
        width: 347px;
        flex: 0 0 347px;
        height: 100vh;
        overflow: hidden;
        z-index: 1030;
        /* Ensure any leftover area (e.g., scrollbar gutter/margins) matches sidebar background. */
        background: linear-gradient(
            180deg,
            var(--sidebar-bg, #0b3a67) 0%,
            #0a2f57 55%,
            var(--sidebar-bg-2, #08223e) 100%
        );
    }
    .sidebar--- .sidebar {
        height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        width: 100% !important; /* ensure sidebar content fills the aside container */
    }

    /* Hide the sidebar scrollbar strip while keeping scroll behavior (removes the visual "gap"). */
    .sidebar--- .sidebar {
        -ms-overflow-style: none; /* IE/Edge legacy */
        scrollbar-width: none; /* Firefox */
    }
    .sidebar--- .sidebar::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    /* Reduce perceived "empty strip" on the sidebar's right edge by removing right margins on items. */
    .sidebar--- .sidebar .nav-link,
    .sidebar--- .sidebar .sidebar-logout,
    .sidebar--- .sidebar .sidebar-section-title,
    .sidebar--- .sidebar .collapse-inner {
        margin-right: 0 !important;
    }
    #content-wrapper {
        margin-left: 0;
        min-height: 100vh;
        flex: 1 1 auto;
    }

    /* Avoid an artificial "gap" between sidebar and content (was caused by margins in the layout). */
    #content {
        margin: 0;
    }

    /* Apply different background colors to the menu items */
    .sidebar-divider {
        background-color: white;
    }

    .sidebar-heading {
        background-color: #005baa;
        color: white !important;
        padding: 1px;
    }
    
     .title-wrapper {
        background-color: blue;
        color: white;
        padding: 10px;
        margin-bottom: 10px;
    }

    .breadcrumbs-wrapper {
        background-color: blue;
        color: white;
        padding: 10px;
        margin-bottom: 20px;
    }

    .breadcrumbs-wrapper a {
        color: white;
    }
    
    

    .collapse-item {
        background-color: #456D73;/*005baa*/
    }

    /* Improve visibility for Actions and Add-ons */
    .sidebar-actions,
    .sidebar-addons {
        padding-top: 12px;
        border-top: 2px solid;
        background-color: #005baa;
        color: white;
        margin-top: 12px;
    }

    /* Redesigned navigation */
    .sidebar .nav-item {
        position: relative;
    }

    .sidebar .nav-link {
        padding: 5px;
        color: white;
        font-weight: bold;
        font-family: 'Poppins', sans-serif;
    }

    .sidebar .nav-link i {
        margin-right: 12px;
    }

    .sidebar .nav-link .icon-arrow {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
    }

    .sidebar .nav-link.collapsed .icon-arrow {
        transform: translateY(-50%) rotate(-90deg);
    }

    /* Additional features */

    /* Adjust the font size of the sidebar headings */
    .sidebar-heading {
        font-size: 18px;
        padding: 10px;
    }

    /* Set the font family to 'Poppins' for the entire page */
    body {
        font-family: 'Poppins', sans-serif;
    }

    /* Set a readable base font size for the entire page */
    body {
        font-size: 16px;
        line-height: 1.5;
    }

    /* Additional Bootstrap 6 features */

    /* Add Bootstrap classes for form controls */
    .form-control {
        border-color: #005baa;
        border-radius: 50px;
        color: white;
        background-color: #005baa;
    }

    .form-control:focus {
        border-color: #005baa;
        box-shadow: 0 0 0 0.25rem rgba(0, 91, 170, 0.25);
    }

    /* Add Bootstrap classes for form labels */
    .form-label {
        font-weight: bold;
        color: #212529;
    }

    /* Add Bootstrap classes for form inputs */
    .form-input-group {
        margin-bottom: 1rem;
    }

    /* Add Bootstrap classes for form buttons */
    .form-btn-primary {
        color: white;
        background-color: #007bff;
        border-color: #007bff;
        font-weight: bold;
    }

    .form-btn-primary:hover {
        background-color: #0069d9;
        border-color: #0062cc;
    }

    .form-btn-primary:active {
        background-color: #005cbf;
        border-color: #0056b3;
    }

    /* Add Bootstrap classes for responsive tables */
    .table {
        width: 100%;
        margin-bottom: 1rem;
        color: white;
        
 
       
    }

    .table thead th {
        background-color: white;
        color: blue;
        
        border: none;
    }

    .table-bordered {
       
        border-radius: 10px;
    }

    .table-bordered th,
    .table-bordered td {
      
        color: black;
    }

    .table-striped tbody tr:nth-of-type(odd) {
        background-color: rgba(255, 255, 255, 0.15);
    }

    .table-hover tbody tr:hover {
        background-color: rgba(255, 255, 255, 0.25);
    }

    @media (max-width: 768px) {
        .table {
            display: block;
            width: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }
    }

    /* Add Bootstrap utility classes for text color */
    .text-white {
        color: white !important;
    }

    .text-primary {
        color: #007bff !important;
    }

    /* Colors and Design */

    /* Add background color and padding to the content box */
    .content-box {
        background-color: #005baa;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    }

    /* Tab/Tour Styles */
    .nav-tabs .nav-link {
        background-color: black;
        /*color:#005baa;*/
        border: 20px solid white;
        border-radius: 0.5rem 0.5rem 0 0;
        font-weight: bold;
    }

    .nav-tabs .nav-link:hover {
        background-color:black;
        border-color:white;
    }

    .nav-tabs .nav-link.active {
        background-color: black;
        color: #005baa;
        border-color: #005baa;
     
    }

    /* Page Titles */
    .page-title {
        background-color: #005baa;
        color: white;
        padding: 10px;
        border-radius: 5px;
        margin-bottom: 20px;
    }

    /* Responsive Styles */
    @media (max-width: 767px) {
        /* Change content box shape to rectangle */
        .content-box {
            border-radius: 0;
        }
    }

    @media (min-width: 768px) and (max-width: 991px) {
        /* Change content box shape to rectangle */
        .content-box {
            border-radius: 0;
            background-color: white !important;
        }

        /* Adjust the width of the sidebar for medium-sized screens */
        .sidebar {
            width: 200px;
        }
    }

    @media (min-width: 992px) {
        /* Change content box shape to parallelogram */
        .content-box {
            border-radius: 10px 50px 10px 50px;
            transform: skew(-20deg);
        }
    }

    /* Additional Bootstrap 6 features */

    /* Add Bootstrap classes for alerts */
    .alert {
        border-color: #005baa;
        color: #005baa;
    }

    .alert-primary {
        background-color: #e7f1fd;
    }

    .alert-secondary {
        background-color: #f8f9fa;
    }

    .alert-success {
        background-color: #d1e7dd;
    }

    .alert-info {
        background-color: #d1ecf1;
    }

    .alert-warning {
        background-color: #fff3cd;
    }

    .alert-danger {
        background-color: #f8d7da;
    }

    .alert-light {
        background-color: #fefefe;
    }

    .alert-dark {
        background-color: #d6d8d9;
    }


.sidebar .nav-item .collapse-item {
    color: white !important;
    font-weight: bold;
}

.sidebar .nav-item .collapse-item:hover {
    color: black !important;
}

.nav-link {
    display: flex !important;
}

.sidebar-text {
    display: inline-flex !important;
    align-items: center;
    width: auto;
    max-width: 100%;
    font-size: 14px !important;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.sidebar .collapse-item,
.sidebar .collapse-item span {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Existing code */

/* Override the shape and color of the oval */
.content-box {
    border-radius: 50px;
    background-color: white;
}

/* Remove the blue border color */
.form-control {
    border-color: #005baa;
}

.form-control:focus {
    border-color: #005baa;
    box-shadow: 0 0 0 0.25rem rgba(0, 91, 170, 0.25);
}

/* Additional code for oval shape without blue color */
.form-control {
    background-color:white ;
    color: black;
    
  
}

.form-text {
    color:#005baa !important;
}


/* Keep the previous CSS styles */

/* Add new CSS rules */
/* Hide the navigation by default on smaller screens */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        text-align: center;
    }

    .nav-links.show {
        display: flex;
    }

    .sidebar-text {
        white-space: normal;
        word-break: break-word;
    }
}

    @media (max-width: 992px) {
        #wrapper {
            flex-direction: column;
        }
        .sidebar--- {
            position: relative;
            width: 100%;
            height: auto;
        }
        #content-wrapper {
            margin-left: 0;
        }
        .sidebar {
            width: 100% !important;
            padding-top: 15px;
            height: auto;
        }
    }

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Bootstrap 5 close buttons used in some views; approximate Bootstrap 4 styling. */
button.btn-close {
    background: transparent;
    border: 0;
    padding: 0.25rem 0.5rem;
    font-size: 1.5rem;
    line-height: 1;
    opacity: 0.6;
}
button.btn-close:hover { opacity: 0.85; }
button.btn-close::before { content: "\00d7"; } /* × */
button.btn-close.btn-close-white { color: #fff; opacity: 0.85; }

/* Bootstrap 5 utility compatibility (backend uses Bootstrap 4 via SB Admin). */
.opacity-75 { opacity: 0.75 !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
@media (min-width: 768px) {
    .text-md-end { text-align: right !important; }
}

/* Global responsive hardening for dashboard + all main-layout pages */
:root {
    --pfm-sidebar-width: clamp(248px, 19.5vw, 320px);
    --pfm-content-padding-x: clamp(0.75rem, 1.4vw, 1.35rem);
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

#wrapper {
    width: 100%;
    max-width: 100%;
    min-height: 100dvh;
    overflow-x: hidden;
}

.sidebar {
    width: var(--pfm-sidebar-width) !important;
    max-width: var(--pfm-sidebar-width);
}

.sidebar--- {
    position: sticky;
    top: 0;
    width: var(--pfm-sidebar-width);
    min-width: var(--pfm-sidebar-width);
    max-width: var(--pfm-sidebar-width);
    flex: 0 0 var(--pfm-sidebar-width);
    height: 100dvh;
}

#content-wrapper {
    margin-left: 0 !important;
    min-width: 0;
    width: auto;
    flex: 1 1 auto;
    overflow-x: hidden;
}

#content {
    min-width: 0;
    margin: 0;
    overflow-x: auto;
    padding-left: var(--pfm-content-padding-x);
    padding-right: var(--pfm-content-padding-x);
}

#content .container,
#content .container-fluid,
#content .row,
#content .card,
#content .modal-dialog {
    min-width: 0;
    max-width: 100%;
}

#content .table-responsive,
#content .grid-view {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

#content table {
    max-width: 100%;
}

#content img,
#content canvas,
#content svg,
#content iframe {
    max-width: 100%;
    height: auto;
}

@media (max-width: 1200px) and (min-width: 993px) {
    :root {
        --pfm-sidebar-width: clamp(220px, 24vw, 280px);
    }

    .sidebar {
        padding-top: 62px;
    }

    .sidebar .nav-link {
        padding: 4px 8px;
    }

    .sidebar-text {
        font-size: 13px !important;
    }

    #content {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

@media (max-width: 992px) {
    #wrapper {
        flex-direction: column;
    }

    .sidebar--- {
        position: fixed;
        top: 0;
        left: 0;
        width: min(86vw, 320px);
        min-width: 0;
        max-width: 320px;
        height: 100dvh;
        transform: translateX(-110%);
        transition: transform 0.25s ease;
        z-index: 1040;
    }

    .sidebar {
        width: 100% !important;
        max-width: none;
        padding-top: 60px;
        height: 100dvh;
    }

    #content-wrapper {
        width: 100%;
        min-height: 100dvh;
    }

    #content {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .sidebar-open .sidebar--- {
        transform: translateX(0);
    }

    body.sidebar-open {
        overflow: hidden;
    }
}

/* Independent scroll channels for main dashboard layout */
body.main-layout-shell {
    height: 100dvh;
    overflow: hidden;
}

body.main-layout-shell #wrapper {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
}

body.main-layout-shell .sidebar--- {
    height: 100dvh;
    overflow: hidden;
}

body.main-layout-shell .sidebar--- .sidebar {
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
}

body.main-layout-shell #content-wrapper {
    height: 100dvh;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

body.main-layout-shell #content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: auto;
    overflow-y: visible;
}

@media (max-width: 992px) {
    body.main-layout-shell {
        height: auto;
        overflow: auto;
    }

    body.main-layout-shell #wrapper,
    body.main-layout-shell #content-wrapper {
        height: auto;
        min-height: 100dvh;
    }
}
