/* ===================================================
   General Layout and Structure
=================================================== */
html, body {
    position: relative;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.portal-body {
    /* green light shade  */
    background-color: #f1f7e7;
    /* blue shade #1 */
    /* background-color: #336ca0; */
    /* blue shade #2 */
    /* background-color: #6691b9; */
    /* gray shade #1 */
    /* background-color: #83837a; */
}

.main-page {
    display: flex;
    flex-direction: column;
    top: 85px;
    margin-top: 85px;
    margin-left: 20%;
    margin-right: 20%;
    box-sizing: border-box;
    padding-top: 0px;
    padding-bottom: 0;
    margin-bottom: 0;
    position: sticky;
    align-items: flex-start;
    justify-self: center;
    justify-content: center;
}

.footer, footer {
    position: static;
    width: 60%;
    padding-top: 20px;
    padding-bottom: 20px;
    margin-left: 20%;
    margin-right: 20%;
    text-align: center;
    align-items: center;
    z-index: 3;
    clear: both;
}

.site-header {
    display: flex;
    width: 100%;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 2;
}

/* TODO:  */
.bg-image-container, .bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-color: var(--color-2-light-2);
    opacity: .2;
    z-index: -1;
}

.bg-image-container {
    background-image: url('/static/images/photo-electric-bus.png');
}


/* Flexbox container to center the overlay */
.overlay-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: auto;
    min-width: 100vw;
    padding-bottom: 20px;
    z-index: 1;
    /* overflow: scroll; */
    align-self: center;
}

.overlay {
    justify-self: center;
    align-self: center;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.95); /* Adjust the opacity as needed */
    margin-top: 60px;
    padding: 36px;
    min-width: min-content;
    width: 600px;
    max-width: 60%;
    height: auto;
    box-sizing: border-box;
    border-radius: 20px;
    opacity: 1;
    z-index: 1;
    position: relative;
    overflow: visible;
    word-wrap: break-word;
}

.dashboard-section {
    justify-self: center;
    width: 100% !important;
    box-sizing: border-box;
    height: auto;
    border-radius: 20px;
    z-index: 1;
    padding: 20px;
    margin-top: 40px;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    overflow: visible;
    word-wrap: break-word;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.05);
}

.dashboard-section .report-section {
    min-width: 500px;
    width: 84%;
    max-width: 1440px;
}


.content-container-dashboard {
    min-width: 500px;
    max-width: 1440px;
    width: fit-content;
    justify-self: center;
    margin-bottom: 60px;
    margin-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-sizing: border-box;
    opacity: 1;
    z-index: 1;
    text-align: center;
    padding-left: 4%;
    padding-right: 4%;
    padding-top: 0;
    word-wrap: break-word;
    white-space: normal;
    overflow: visible;
    /* position: relative; */
}

.overlay .content-container-dashboard {
    justify-self: center;
    justify-content: center;
    align-items: center;
    width: 500px;
    min-width: min-content;
    max-width: max-content;
}

container, .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding-left: 24px !important;
    padding-right: 24px !important;
}

/* Navigation */
.navbar-container, navbar-container {
    padding-top: 0;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding-bottom: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    position: static;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 4;
    vertical-align: middle;
    position: relative;
}

.navbar {
    top: 0;
    left: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.breadcrumb {
    background-color: rgba(255, 255, 255, 0);
    padding: 0;
    margin: 0;
    border-radius: 20px;
}

.breadcrumb-item {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    word-wrap: break-word;
    white-space: normal;
    overflow: visible;
    line-height: 1.15;
}

.row.logout {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.8);
    right: 0;
    top: 0;
    padding-left: 16px !important;
    padding-right: 16px !important;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    z-index: 10000;
}

.active-page {
    text-decoration: underline;
}

a[href="/logout"] {
    display: inline-block;
    position: relative;
    z-index: 10;
}

/* Outlines */
.sidebar-toggle {
    position: fixed;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.1);
    top: 126.75px;
    left: 0px;
    z-index: 1500;
    cursor: pointer;
    font-size: 24px;
    background-color: var(--color-text);
    opacity: 0.75;
    color: white;
    /* padding: 5px 10px; */
    padding: 12px;
    padding-left: 20px;
    border-radius:  0px 10px  10px 0px;
    transition: all 0.3s ease ease-in-out;
}

.page-outline-container {
    position: fixed;
    border-radius: 0 20px 20px 0;
    top: 126.75px;
    left: 0;
    width: 200px;
    min-height: fit-content;
    height: auto;
    background-color: color-mix(in srgb, var(--color-1-light-5) 25%, rgba(255, 255, 255, 0.8) 75%);
    backdrop-filter: blur(2px);
    overflow-y: auto;
    padding: 24px;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.1);
    transform: translateX(-100%); /* Hidden off-screen by default */
    transition: all 0.3s ease;
    z-index: 500; /* Make sure it is above the form content */
    word-wrap: normal;
    overflow: hidden;
    padding-right: 20px;
    transition: all 0.3s ease-in-out;
}

/* When the overlay is active (visible) */
.page-outline-container.outline-active {
    /* animate slide in */
    transform: translateX(0); /* Slide in from the left */
}

.page-outline {
    position: relative;
    margin-top: 50px;
    line-height: 1.25;
    left: 0;
}

.outline-title {
    color: var(--color-text);
    font-size: 1.5rem;
    padding-top: 4px;
    padding-bottom: 10px;
    text-align: left;
    font-weight: 300;
    border-bottom: 0.25px solid var(--color-text);
    margin-bottom: 20px;
}

a.outline-title:hover {
    color: var(--color-1);
    text-decoration: none !important;
}

.page-outline ul {
    transform: translateX(-6px);
    list-style: none;
    padding: 0;
    font-size: 0.9rem;
}

.page-outline ul li {
    border-radius: 20px;
    width: fit-content;
    padding: 6px 6px 8px 6px;
    /* border: 2px solid rgba(255, 255, 255, 0); */
}

.page-outline ul li:hover {
    /* border: 2px solid var(--color-1); */
    background-color: var(--color-1-light-5);
}

.page-outline ul li a {
    font-family: var(--font-family-p);
    text-decoration: none;
    color: var(--color-text);
}

/* on hover and click */
.page-outline ul li a:hover, .page-outline ul li a:active {
    color: var(--color-1);
    /* background-color: rgba(255, 255, 255, 0.1) */
    text-decoration: underline;
}
.page-outline ul li a.active {
    color: var(--color-1);
}


/* Notifications & Alerts */
.notification-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* height: 100%;
    background-color: rgba(255, 255, 255, 0.6); */
    z-index: 4999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.notification-container, .notification, .alert {
    font-family: var(--font-family-p);
    font-size: 1rem;
    /* letter-spacing: 2px; */
    /* text-transform: uppercase; */
    font-weight: 600;
}

.notification {
    color: white !important;
    padding: 20px !important;
    border-radius: 40px !important;
    bottom: 20px;
    left: 20px;
    width: auto !important;
    text-align: center;
    vertical-align: middle !important;
    height: auto !important;
}

.notification.success {
    color: white !important;
    background-color: var(--color-2-dark-2) !important;
}

.notification.visible {
    opacity: 1;
    z-index: 10000;
    color: white;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.notification.hide {
    display: none;
    opacity: 0;
}

.alert-message-box {
    margin-bottom: 0;
    text-align: left;
}

.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 5000;
    margin: 20px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 4999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.25s ease, transform 2s ease;
}

.loading-overlay.hidden {
    opacity: 0;
}

.loading-indicator {
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5000;
    background-color: var(--color-text);
    color: white;
    font-family: var(--font-family-btn);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 1.25rem;
    z-index: 5000;
    font-weight: 600;
    padding: 60px 120px;
    border-radius: 40px;
}

.loading-spinner {
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top: 6px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin-bottom: 20px; /* Space between spinner and text */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message-text {
    margin-bottom: 0;
    text-align: left;
    margin-left: 30px;
    padding-top: 10px;
    padding-bottom:10px;
}

/* Tables (general) */
table {
    width: inherit;
    font-family: var(--font-family-p);
    text-align: left;
    border-collapse: collapse;
    overflow-x: auto;
    overflow-y: scroll;
    margin: 0;
    padding: 0;
    background: white;
    vertical-align: middle;
}

thead tr th {
    font-family: var(--font-family-h2);
    font-size: 1.1rem;
    color: var(--color-1);
    font-weight: 400 !important;
    text-align: left;
    word-wrap: break-word;
    white-space: normal;
    overflow: visible;
    text-transform: uppercase;
    line-height: 1.05;
    padding: 20px 5px;
    border-bottom: var(--color-1) 2px solid !important;
    border-top: var(--color-1) 2px solid !important;
    vertical-align: middle !important;
    z-index: 1;
}

thead tr:first-child td {
    font-family: var(--font-family-p);
    font-size: 1.5rem;
    font-weight: 600;
    box-sizing: border-box;
}

tbody {
    font-family: var(--font-family-p);
    font-size: 0.9rem;
    color: black;
    font-weight: 400;
    text-align: left;
    border-bottom: .5px var(--color-1) solid;

}

tbody tr {
    vertical-align: middle;
}

tbody tr:last-child {
    border-bottom: var(--color-1) 2px solid;
}

tbody tr td {
    padding: 5px 5px;
    border-bottom: .5px var(--color-1) solid;
    vertical-align: middle !important; /* Ensure vertical alignment */
}

td:nth-child(1) {
    font-weight: 600;
    font-size: 1.1rem;
}

.table-hover tbody tr:hover {
    background-color: var(--color-1-light-5);
}

.btn-group {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 0;
    margin: 0;
}

.table-card {
    width: 100%;
    box-sizing: border-box;
    margin-top: 40px !important;
    margin-bottom: 40px !important;
}

.table-card tbody {
    color: var(--color-text);
    border-top: 1px solid var(--color-1-light-2) !important;
}

.table-card tbody tr td {
    border-bottom: 1px solid var(--color-1-light-2) !important;
}

.table-card tbody tr:last-child  {
    border-bottom: 0px solid var(--color-1-light-2) !important;
}

/* ===================================================
   Tooltip Styles
=================================================== */
.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip-container.icon-bg-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    border-radius: 25%;
    background-color: rgba(255, 255, 255, 1);
    opacity: 0;
    z-index: 5;
    transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.tooltip-container:hover .icon-bg-circle {
    opacity: 1;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.15s ease, background-color 0.15s ease;
}

.tooltip-container:active .icon-bg-circle {
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.75);
}

/* Tooltip Text */
.tooltip-container .tooltip-text {
    backdrop-filter: blur(5px);
    font-family: var(--font-family-p);
    font-size: 0.9rem;
    line-height: 125%;
    text-align: left;
    text-transform: none !important;
    height: fit-content;
    width: 200px;
    min-width: min-content;
    max-width: max-content;
    font-weight: 500;
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: #fff;
    padding: 14px;
    border-radius: 10px;
    position: absolute;
    bottom: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s;
    z-index: 10000;
}

.tooltip-container.report-summary-link .tooltip-text {
    bottom: 100%;
    left: 50%;
    /* transform: translateX(-50%); */
}

.tooltip-container:hover .tooltip-text, 
.tooltip-container:active .tooltip-text  {
    visibility: visible;
    opacity: 1;
}


.tooltip-container .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 10px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

.tooltip-text.wide {
    min-width: 200px;
    max-width: 600px;
}

.tooltip-text.extrawide {
    min-width: 400px;
    max-width: 650px;
}

.tooltip-container .tooltip-text.extrawide {
    transform: translateY(-102%) translateX(82%);
}


/* Leaflet */
.leaflet-container {
    background: 'gray10';
}

.leaflet-polyline {
    opacity: 1;
    stroke-width: 6px;
}


.grayscale-tiles {
    filter: brightness(90%) grayscale(50%) contrast(1.2);
    -webkit-filter: brightness(90%) grayscale(50%) contrast(1.2); 
}



.leaflet-control-attribution {
    padding: 4px 12px;
    background-color: rgba(255, 255, 255, 0.5) !important;
    border-radius: 20px 0 0 0;
    font-family: var(--font-family-p);
    color: var(--color-text);
    font-size: 0.5rem;
    line-height: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    color: var(--color-text);
    font-weight: 500;
}

.leaflet-control-attribution a {
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
}

.leaflet-control-legend.card {
    color: var(--color-text);
    background-color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-family-p);
    font-size: 0.8rem;
    line-height: 125%;
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);    
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    font-weight: 500;
    min-width: 80px;
    max-width: 100px;
    padding: 14px;
}

.leaflet-tooltip {
    overflow: visible;
    font-family: var(--font-family-p);
    font-size: 0.9rem;
    line-height: 125%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 300px;
    min-width: 150px;
    text-align: left;
    text-transform: none !important;
    border: none;
    font-weight: 500;
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);    
    backdrop-filter: blur(5px);
    color: white !important;
    padding: 10px 14px;
    border-radius: 10px;
    transition: opacity 0.15s ease-in-out;
    z-index: 10;    
    padding: 14px;
}

.leaflet-tooltip-content {
    text-align: left;
    text-transform: none !important;
    font-family: var(--font-family-p);
    font-size: 0.9rem;
    line-height: 125%;
    word-wrap: normal;
    min-width: 100px;
    max-width: 300px;
    height: auto;
    text-align: left;
    font-weight: 500;
}

/* General arrow styling */
.leaflet-tooltip:before {
    content: "";
    position: absolute;
    border-style: solid;
}

/* Specific direction styles */
.leaflet-tooltip-right:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before {
    border-color: transparent transparent transparent transparent; /* Reset */
}

/* Arrow pointing right */
.leaflet-tooltip-right:before {
    top: 50%;
    left: 1.5px;
    margin-top: -6px;
    border-color: transparent rgba(0, 0, 0, 0.9) transparent transparent;
}

/* Arrow pointing left */
.leaflet-tooltip-left:before {
    top: 50%;
    right: 1.5px;
    margin-top: -6px;
    border-color: transparent transparent transparent rgba(0, 0, 0, 0.9);
}

/* Arrow pointing top */
.leaflet-tooltip-top:before {
    left: 50%;
    bottom: 1.5px;
    margin-left: -6px;
    border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}

/* Arrow pointing bottom */
.leaflet-tooltip-bottom:before {
    left: 50%;
    top: 1.5px;
    margin-left: -6px;
    border-color: transparent transparent rgba(0, 0, 0, 0.9) transparent;
}






/* ===================================================
   Back to Top Button
=================================================== */
#backToTop {
    position: fixed;
    bottom: 60px;
    right: 60px;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--color-1) !important;
    border: 2px solid var(--color-1) !important;
    display: none;
    height: 50px;
    width: 50px;
    text-align: center;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 4px 8px #0000001a;
    transition: background-color 0.5s ease, border 0.5s ease, color 0.5s, opacity 0.5s ease, visibility 0.5s ease;
    visibility: hidden;
    opacity: 0;
}

#backToTop:hover {
    border: 2px solid var(--color-1) !important;
    background-color: var(--color-1);
    color: white !important;
}

#downloadReportPdf {
    position: fixed;
    top: 130px;
    right: 60px;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--color-1) !important;
    border: 2px solid var(--color-1) !important;
    display: flex;
    height: 50px;
    width: 50px;
    text-align: center;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 8px #0000001a;
    transition: background-color 0.5s ease, border 0.5s ease, color 0.5s, opacity 0.5s ease, visibility 0.5s ease;
    visibility: visible;
    opacity: 1;
}

#downloadReportPdf:hover {
    border: 2px solid var(--color-1) !important;
    background-color: var(--color-1);
    color: white !important;
}

/* ===================================================
   Logo Styles
=================================================== */
.logo {
    width: 75px;
    height: auto;
    align-items: center;
}

.logo-inline {
    width: 50px;
    height: auto;
    align-items: center;
}

/* ===================================================
   Icon Styles
=================================================== */
.icon-inline {
    padding-right: 2rem;
}

.icon-action {
    z-index: 5;
    position: relative;
}

.icon-info {
    color: var(--color-text);
    font-size: 1.5rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.icon-info:hover {
    color: var(--color-1);
}

.icon-bg {
    position: relative;
    /* transform: translate(-50%, -50%); */
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 0;
    z-index: 0.5;
    transition: opacity 0.5s ease, box-shadow 0.5s ease;
}

.overlay-text {
    font-family: var (--font-family-p);
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    z-index: 1;
    color: var(--color-text);
}

a i {
    text-shadow:
        -1px -1px 0 rgba(0, 0, 0, 0),
         1px -1px 0 rgba(0, 0, 0, 0),
        -1px  1px 0 rgba(0, 0, 0, 0),
         1px  1px 0 rgba(0, 0, 0, 0); /* Adjust the color (#000 for black) and size (1px) as needed */
}

.static-link {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    position: relative;
    top: 0;
    left: 0;
    z-index: 4;
    width: 100%;
    padding-top: 16px;
    padding-right: 24px;
    padding-left: 24px;
}

.static-link-group {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
    gap: 28px;
}

/* ===================================================
   Modal Styles
=================================================== */
/* .modal {
    z-index: 50000;
}

.modal-backdrop {
    z-index: 10000;
} */

.modal-title {
    text-align: center;
}

.close {
    position: absolute;
    top: 0;
    right: 16px;
    color: var(--color-text);
    font-size: 2rem;
    /* padding: 20px; */
    cursor: pointer;
    transition: color 0.5s ease;
}

.modal-header {
    display: flex;
    justify-content: center;
    /* justify-content: space-between; */
    align-items: center;
    height: 70px;
    padding: 16px;
}


.modal-content {
    border-radius: 20px;
}

.modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Modal Table */
.table-modal th, .table-modal td {
    text-align: center;
}

.table-modal td {
    font-size: 1rem !important;
    line-height: 1rem;
    vertical-align: middle;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* ===================================================
   Card Styles
=================================================== */
.card, card {
    border-radius: 20px;
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    overflow: visible;
}

.card-title, card-title {
    text-align: center !important;
}

.card-body, card-body {
    padding-bottom: 0px !important;
}

.card-header {
    background-color: inherit;
    margin-bottom: 20px;
    padding: 4px 0;
}

.card-small {
    padding: 16px !important;
    margin-bottom: 1rem !important;
    margin-top: 0 !important;
}

/* ===================================================
   DataTables Styles
=================================================== */
.dataTables_wrapper {
    font-family: var(--font-family-p);
    font-size: 14px;
    width: inherit;
    z-index: 1 !important;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border-radius: 10px;
    border: 1px solid var(--color-text);
}

.dataTables_wrapper .dataTables_filter input {
    padding: 3px 10px;
    margin: 8px;
}

.dataTables_wrapper .dataTables_length select {
    padding: 4px;
    margin: 4px;
    text-align: center;
}

.dataTables_wrapper .dataTables_info {
    padding-top: 20px;
    width: 100%;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 20px;
    padding-bottom: 20px;
}

.datatables_wrapper .dataTables_paginate .ellipsis {
    padding: 4em;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 50%;
    padding: 0.5em 0.9em;
    margin: 0.2em;
    border: 1px solid white;
    text-decoration: none;
    transition: background-color 0.5s ease;
}

.paginate_button:hover {
    background-color: var(--color-1-light-4);
    color: var(--color-1);
}

.paginate_button:active {
    border: 1px solid var(--color-1-light-1);
}

.paginate_button:focus {
    transition: background-color 0.3s ease, border 0.3s ease, color 0.3s ease;
    border: 1px solid var(--color-1) !important;
    background-color: var(--color-1-light-4);
}

.current, .current:hover, .current:active, .current:focus {
    background-color: var(--color-1);
    border: 1px solid var(--color-1);
    color: white;
}

.previous:hover, .next:hover {
    background-color: var(--color-1-light-4);
    border: 1px solid var(--color-1);
}

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background: none;
    position: relative;
    padding-right: 20px;
    transform: translateX(20px);
}

table.dataTable thead .sorting:before,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_desc:before {
    content: "\f0dc";
    padding-right: 100px;
    font-family: FontAwesome;
    position: absolute;
    top: 50%;
    transform: translateX(-20px) translateY(-50%);
    opacity: 0.5;
    display: inline-block;
    cursor: pointer;
}

table.dataTable thead .sorting_asc:before {
    content: "\f0de"; /* FontAwesome icon for ascending sort */
}

table.dataTable thead .sorting_desc:before {
   content: "\f0dd"; /* FontAwesome icon for descending sort */
}

table.dataTable thead tr th {
    vertical-align: middle; /* Align text vertically in the middle */
}

.sorting {
    z-index: 1;
}


/* ===================================================
   Typography and Text Styles
=================================================== */
h1, .h1 {
    font-family: var(--font-family-h1);
    font-size: 3rem;
    color: black;
    font-weight: 300;
    text-transform: uppercase;
    text-align: center;
    word-wrap: break-word;
    white-space: normal;
    overflow: visible;
    line-height: 1.15;
}

.h1-lg {
    font-size: 4rem;
}

h2, .h2 {
    font-family: var(--font-family-h2);
    font-size: 2rem;
    color: var(--color-2);
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
    word-wrap: break-word;
    white-space: normal;
    overflow: visible;
    line-height: 1.05;
}

h3, .h3 {
    font-family: var(--font-family-h3);
    font-size: 1.5rem;
    color: var(--color-1);
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
    word-wrap: break-word;
    white-space: normal;
    overflow: visible;
    line-height: 1.15;
}

h4, .h4 {
    font-family: var(--font-family-h4);
    font-size: 1.25rem;
    color: var(--color-1);
    font-weight: 550;
    text-align: left;
    word-wrap: break-word;
    white-space: normal;
    overflow: visible;
    line-height: 1.15;
}

fa-h4, .fa-h4 {
    font-size: 1.25rem;
}

h5, .h5 {
    font-family: var(--font-family-h4);
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 500;
    text-align: left;
    word-wrap: break-word;
    white-space: normal;
    overflow: visible;
    line-height: 1.15;
}

h6, .h6 {
    font-family: var(--font-family-h4);
    font-size: 0.75rem;
    color: var(--color-text);
    font-weight: 600;
    text-align: left;
    word-wrap: break-word;
    white-space: normal;
    overflow: visible;
    line-height: 1;
}

p {
    font-family: var(--font-family-p);
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 400;
    text-align: justify;
    word-wrap: break-word;
    white-space: normal;
    overflow: visible;
}

a {
    font-family: var(--font-family-p);
    color: var(--color-1);
    font-weight: 600;
    text-align: justify;
    word-wrap: break-word;
    white-space: normal;
    overflow: visible;
    cursor: pointer !important;
    transition: .3s color;
}

a:hover {
    color: var(--color-1-light-1);
}

a:active {
    color: var(--color-1-light-2);
}

.page-title .centered {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-title .left-aligned {
    text-align: left;
    align-items: left;
    display: flex;
    flex-direction: column;
    justify-content: left;
}


/* ===================================================
   Button Styles
=================================================== */
button, .button, .btn {
    font-family: var(--font-family-btn);
    box-shadow: none;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
    word-wrap: break-word;
    white-space: normal;
    overflow: hidden;
    margin: 10px 0 !important;
    text-transform: uppercase;
    letter-spacing: 4px;
    padding: 1rem 5rem;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.15s background-color, 0.15s border-color, 0.15s text-shadow;
    &:hover {
        background-color: none;
        box-shadow: none;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    }
    &:active {
        background-color: none;
        box-shadow: none;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    }
    &:focus {
        background-color: none;
        box-shadow: none;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
        outline: none;
    }
}



.btn-form {
    /* max-width: 30% !important; */
    height: 40px !important;
    padding: 8px 10px !important;
    font-size: 0.9rem !important;
    align-items: center;
    justify-content: center;
}

.btn-small {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 2px;
}

.btn-xs {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 2px;
    padding: 0.5rem 0.8rem !important;
}

.btn .btn-large {
    padding-left: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    width: auto;
}

.btn-large {
    width: 100%;
    box-sizing: border-box;
}

.btn-wide {
    width: 100%;
    margin: 0 !important;
}

.no-hover {
    pointer-events: none;
    cursor: default;
    background-color: inherit;
    border: none;
    box-shadow: none;
}

.no-hover:hover,
.no-hover:active,
.no-hover:focus {
    background-color: inherit;
    border: none;
    box-shadow: none;
    outline: none;
}


.btn-primary, .btn-secondary, .btn-danger, .btn-success {
    color: #fff;
    margin-top: 7%;
    margin-bottom: 7%;
    padding-left: 20px;
    padding-right: 20px;
    transition: .15s background-color, 0.15s border;
}

.btn-primary {
    background-color: var(--color-1);
    border: 2px solid var(--color-1);
}

.btn-primary:hover {
    background-color: var(--color-1-light-1);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    border: 2px solid var(--color-1);
}

.btn-primary:focus {
    background-color: var(--color-1-light-2) !important;
    border-color: var(--color-1-light-1);
}

.btn-primary:active {
    background-color: var(--color-1-light-2);
    border-color: var(--color-1-light-1);
}

.btn-secondary {
    background-color: var(--color-4);
    border: 2px solid var(--color-4);
}

.btn-secondary:hover {
    background-color: var(--color-4-light-1);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    border: 2px solid var(--color-4);
}

.btn-secondary:focus {
    background-color: var(--color-4-light-2) !important;
    border-color: var(--color-4-light-1);
}

.btn-secondary:active {
    background-color: var(--color-4-light-2);
    border-color: var(--color-4-light-1);
}

.btn-danger {
    background-color: var(--color-3);
    border-color: var(--color-3);
}

.btn-success {
    background-color: var(--color-2);
    border-color: var(--color-2);
    border: 2px solid var(--color-2);
}

.btn-success:hover {
    background-color: var(--color-2-light-1);
}

.btn-success:active {
    background-color: var(--color-2-light-2);
    border-color: var(--color-2-light-1);
}

.btn-success:focus {
    background-color: var(--color-2-light-2);
    border-color: var(--color-2-light-1);
}

.btn-inline {
    padding: 16px;
    border-radius: 20px;
    margin: 0;
    align-items: center;
    justify-content: center;
}

/* SELECT */

/* DEFAULT, unselected; or right after clicking */
.btn-select, .btn-select:focus {
    text-shadow: none;
    border: 2px solid var(--color-1-light-4);
    color: var(--color-1-dark-2);
    background-color: white;
    transition: background-color 0.15s ease-in-out, border 0.25s ease-in-out, color 0.15s ease, box-shadow 0.15s ease;
}
/* Unselected, on hover/click to select */
.btn-select:hover,
.btn-select:active, 
.btn-select:active:hover, 
.btn-select:active:focus {
    border-color: var(--color-1-dark-1);
    text-shadow: none;
}


/* SELECTED */
.btn-select.active, .btn-select.active:focus {
    background-color: var(--color-1-dark-1);
    border: 2px solid var(--color-1-dark-1);
    color: white;
}
/* Select, on hover/click to deselect */
.btn-select.active:hover, 
.btn-select.active:active, 
.btn-select.active:hover,
.btn-select.active:active:focus {
    background-color: white;
    color: var(--color-1-dark-1);
    border-color: var(--color-1-dark-1);
    text-shadow: none;
}





/* ===================================================
   Form Styles
=================================================== */
.label-required:after {
    content: " *";
    color: var(--color-1);
}

form, .form {
    display: flex;
    /* width: inherit;  */
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 20px;
    margin-left: 0;
    margin-right: 0;
}

.form-section, form-section {
    padding-top: 24px;
    padding-bottom: 24px;
    border-top: 2px solid var(--color-1);
}

.form-row, .form-subrow {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 2rem;
    margin-left: 0;
    margin-bottom: 0.25rem !important;
    justify-content: space-between;
    align-items: center;
}

.form-group {
    font-family: var(--font-family-p);
    /* font-size: 1rem; */
    /* color: var(--color-text); */
    flex: 1;
    /* font-weight: 400; */
    text-align: left;
    word-wrap: break-word;
    white-space: normal;
    overflow: visible;
}

.form-group:last-child {
    margin-right: 0; /* Removes the margin from the last form group */
}


.section {
    position: -webkit-sticky;
    position: sticky;
}

.form-header-1 {
    /* position: -webkit-sticky;
    position: sticky; */
    top: 0;
    margin-top: 4rem;
    margin-bottom: 1rem;
    color: var(--color-1);
}

.form-header-2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-1);
}

.form-check {
    padding-left: 0;
    margin-left: 0;
}

label, .label {
    font-weight: 500;
    /* font-size: 1rem; */
    width: 100%;
    box-sizing: border-box;
}


.toggle-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.25rem;
}

.toggle-container-with-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
    padding-bottom: 0.25rem;
    width: 100%;
    box-sizing: border-box;
}


input[type="checkbox"].tgl {
    display: none;
}

input[type="checkbox"].tgl + .tgl-btn {
    display: inline-block;
    width: 3em;
    height: 1.5em;
    background: #fbfbfb;
    border-radius: 1.5em;
    position: relative;
    cursor: pointer;
    border: 1px solid var(--color-1);
    transition: background 0.4s ease;
}

input[type="checkbox"].tgl + .tgl-btn:after {
    content: "";
    position: absolute;
    top: 1.25px;
    left: 1.5px;
    width: 1.2em;
    height: 1.2em;
    border-radius: 50%;
    background: var(--color-1);
    transition: left 0.3s ease, background 0.3s ease;
}

input[type="checkbox"].tgl:checked + .tgl-btn {
    background: var(--color-1-light-4);
}

input[type="checkbox"].tgl:checked + .tgl-btn:after {
    left: calc(100% - 1.5px);
    transform: translateX(-100%);
    background: var(--color-1);
}

input[type="checkbox"].tgl + .tgl-btn:active:after {
    width: 1.4em;
}

.form-control {
    border-radius: 20px;
    height: auto;
    padding: 0.5rem 1rem;
    color: var(--color-text) !important;
}

select.form-control {
    appearance: none; /* Remove default dropdown arrow */
    -webkit-appearance: none; /* Remove default dropdown arrow in Safari */
    -moz-appearance: none; /* Remove default dropdown arrow in Firefox */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000000' width='18px' height='18px'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    /* position: absolute; */
    /* right: 2rem; */
}

th a {
    color: inherit !important;
    font-size: inherit !important;
    text-transform: inherit !important;
    font-weight: inherit !important;
    font-family: inherit !important;
}


.label-required::after {
    content: " *";
    color: red;
    font-weight: bold;
}



/* ===================================================
   Utility Classes
=================================================== */

@media print {
    .no-print {
        display: none !important;
    }
}

.mobile {
    display: none;
}

.desktop {
    display: block;
}

.mobile-xs {
    display: none;
}

ul, ol {
    font-size: 1rem;
    text-align: left;
    font-family: var(--font-family-p);
}

.row, row {
    margin-left: 0;
    margin-right: 0;
    display: flex;
    width: 100%;
    flex-direction: row !important;
    box-sizing: border-box;
    justify-content: flex-start;
    align-items: center;
    gap: 4%;
    padding-left: 24px;
    padding-right: 24px;
    margin: 0;
    padding-top: 10px;
    padding-bottom: 10px;
}

.col, col {
    flex: 1;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.text-footer {
    color: var(--color-1);
    text-align: center;
    align-items: center;
    font-size: 0.9rem;
}

.extra-margin {
    margin-bottom: 33px;
}

.no-margin {
    margin: 0;
}

.valid-input {
    border: 2px solid var(--color-2);
}

.disabled {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}

.max-width-300 {
    width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.left-aligned {
    text-align: left !important;
    align-items: left;
}

.centered {
    width: 100%;
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

hr, .hr {
    border: solid 0.05px black;
    min-width: 300px;
    height: 0px;
}

.primary {
    color: var(--color-1) !important;
    /* z-index: 10; */
}

.danger {
    color: var(--color-3) !important;
    z-index: 10;
}

.danger:hover {
    color: white;
    fill: white;
    border: 0.5px solid var(--color-3) !important;
}

.danger:active {
    color: var(--color-3-light-2) !important;
}

.secondary {
    color: var(--color-text) !important;
    /* z-index: 10; */
}

.view:hover {
    color: var(--color-1) !important;
}

.view:active {
    color: var(--color-1-dark-1) !important;
}

.update:hover {
    color: var(--color-2) !important;
}

.update:active {
    color: var(--color-2-dark-1) !important;
}

.delete:hover {
    color: var(--color-3) !important;
}

.delete:active {
    color: var(--color-3-dark-1) !important;
}

.success {
    color: var(--color-2) !important;
    z-index: 10;
}

.row-mobile {
    box-sizing: border-box;
    display: flex !important;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100% !important;
    padding: 16px;
}

.group-border {
    border: 1px solid var(--color-1-light-3);
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin: 0;
}

/* ===================================================
   Custom Styles for Specific Objects
=================================================== */
.red-flag, .green-flag {
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 20px;
    min-width: min-content;
    width: 200px;
    max-width: max-content;
    min-height: min-content;
    max-height: max-content;
    box-sizing: content-box;
}

.red-flag {
    background-color: #FFF4F4;
    border: 0.1px solid hwb(0 0% 45%);
    color: darkred;

}

.green-flag {
    background-color: #F4F8F3;
    border: 0.1px solid var(--color-2-dark-2);
    color: var(--color-2-dark-2);
}

.icon-red-flag {
    color: darkred;
    font-size: 1.5rem;
    padding: 0.5rem 0;
}
.icon-green-flag {
    color: var(--color-2-dark-1);
    font-size: 1.5rem;
    padding: 0.5rem 0;
}

.icon-vehicle {
    color: inherit;
    /* font-size: 1.25rem; */
    padding-right: 1.2rem;
}

/* Same as vehicle title but for */
.vehicle-label {
    font-size: 0.9rem;
    font-family: var(--font-family-h4);
    font-weight: 600;
    min-width: min-content;
    max-width: max-content;
    width: 100%;
    padding: 4px 10px;
    word-break: normal;
    height: 100%;
}

.vehicle-title {
    /* border-radius: 40px; */
    vertical-align: middle;
    align-items: center;
    text-align: center;
    display: flex;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    line-height: 1;
    margin: 0;
    box-sizing: border-box;
    /* font-size: 1.rem; */
    /* gap: 100px; */
    font-family: var(--font-family-h4);
    color: var(--color-1);
    font-weight: 600;
    text-align: left;
    word-wrap: break-word;
    white-space: normal;
    overflow: visible;
}

.day-title {
    vertical-align: middle;
    align-items: center;
    text-align: center;
    display: flex;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    line-height: 1;
    margin: 0;
    box-sizing: border-box;
    font-family: var(--font-family-h4);
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 600;
    text-align: left;
    word-wrap: break-word;
    white-space: normal;
    overflow: visible;
}

.input[type="search"] {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--color-text);
    font-family: var(--font-family-p);
    font-size: 1rem;
    color: var(--color-text);
}


.baseline_fuel_price_override_container,
.clean_fuel_price_override_container {
    flex-direction: row;
    align-items: center;
    justify-content: center;
}


.vehicle {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 2rem !important;
    border-radius: 20px;
    padding: 40px;
    border: 0.5px solid var(--color-1-light-2);
}

.full-width {
    width: 100%;
    box-sizing: border-box;
}

/* .form-header-1 {
    background-color: rgba(255, 255, 255, 1);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    padding: 20px 4px 4px 4px;
    margin: 20px 0;
    color: var(--color-1);
    z-index: 1000;
}

.vehicle-number {
    position: -webkit-sticky;
    position: sticky;
    top: 50px;
    padding: 4px 4px 10px 4px;
    z-index: 999;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100%);
} */



/* ===================================================
   Responsive Adjustments
=================================================== */
@media (max-width: 1325px) {
    :root {
        font-size: 12px;
    }
}

@media (max-width: 1220px) {
    /* Layout */
    .content-container-dashboard {
        width: 96%;
        margin-bottom: 60px;
        padding-left: 2%;
        padding-right: 2%;
        padding-top: 0;
    }

    .dashboard-section {
        padding: 10px;
        margin-top: 10px;
        margin-bottom: 10px;
    }


    .row, row {
        padding: 4px 8px !important;
    }


    card, .card {
        padding: 10px;
    }

    table, .table {
        font-size: 0.75rem !important;
    }

    #backToTop {
        right: 20px;
        bottom: 40px;
    }

    #downloadReportPdf {
        right: 20px;
        top: 100px;
    }


    .icon-action {
        font-size: 1.75rem !important;
    }

    container, .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .desktop {
        display: none;
    }

    #myFleets th:nth-child(3), #myFleets td:nth-child(3),
        #myFleets th:nth-child(4), #myFleets td:nth-child(4) {
        display: none;

    }

}

@media (max-width: 610px) {
    .btn-small {
        padding: 0 10px !important; /* Reduce padding */
        font-size: 0.8rem !important; /* Smaller font */
    }

    .btn-wide div {
        padding: 5px; /* Reduce internal div padding */
    }

    .static-link {
        padding-top: 8px;
        padding-left: 8px;
        padding-right: 8px;
    }

    /* Specific Objects */
    #myFleets  th:nth-child(2), #myFleets td:nth-child(2), /* Fleet ID */
        #myFleets th:nth-child(3), #myFleets td:nth-child(3),
        #myFleets th:nth-child(4), #myFleets td:nth-child(4) {
        display: none;
    }

    #myScenarios th:nth-child(1), #myScenarios td:nth-child(1),
        #myScenarios th:nth-child(3), #myScenarios td:nth-child(3),
        #myScenarios th:nth-child(4), #myScenarios td:nth-child(4) {
        display: none;
    }

    .form-row {
        display: block; /* Stacks items vertically */
        width: 100%;
    }
    .form-group:last-child {
        margin-right: 0; /* Removes the margin from the last form group */
    }

    .mobile {
        display: block;
    }
}

@media (max-width: 550px) {
    .mobile-xs {
        display: block;
    }
    /* Layout */
    .content-container-dashboard {
        width: 98%;
    }

    .dashboard-section {
        width: 98%;
    }

    /* Specific Objects */
    #myFleets  th:nth-child(2), #myFleets td:nth-child(2) /* Fleet ID */,
        #myFleets th:nth-child(3), #myFleets td:nth-child(3),
        #myFleets th:nth-child(4), #myFleets td:nth-child(4),
        #myFleets th:nth-child(5), #myFleets td:nth-child(5) {
        display: none;
    }
    /* Text styles */
    :root {
        font-size: 11px;
    }

    .h1-lg {
        font-size: 2.2rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.6rem;
    }

    h4 {
        font-size: 1.2rem;
    }
    h5 {
        font-size: 1rem;
    }
}
