﻿
.user-profile {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    margin-top: 0;
    margin-left: 20px;
    margin-right: 20px;
    gap: 66px;
}

/* left = ~33% */
.left-panel {
    flex: 1 1 0;
    min-width: 0; /* so it can shrink properly if needed */
    box-sizing: border-box;
}

/* right = ~67% */
.screen-right {
    flex: 2 1 0;
    min-width: 0;
    box-sizing: border-box;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin: 5px 0;
}

.scroll-box {
    height: 150px;
    overflow-y: scroll;
    border: 1px solid black;
    padding: 10px;
}



    .user-info p {
        font-size: 14px;
    }

.user-details{

}
    .user-details h2 {
        margin-top:10px;
    }
.licenses{
    margin-left:15px;
}
.assigned-tours {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 0px;
    margin-right: 0px;
    background-color: var(--active-bg);
    border-radius: 10px;
    width: 102%;
    padding: 10px;
    display: flex;
    flex-direction: column;
}
.assigned-tours ul{
    display:flex;
    flex-direction:row;
    justify-content: space-around;
}
.assigned-tours li{
    display:flex;
    flex-direction:column;
}
.assigned-tours h3{
    margin:0;
}

.recent-tour p {
    background-color: #d1ffd1;
    padding: 10px;
    margin-bottom: 5px;
}

.hours-on-shift {
    background-color: #d1ecff;
    padding: 10px;
    margin-top: 20px;
}
.user-profile-main-content .report-card-reports {
    padding: 10px;
    width: auto;
    background-color: var(--active-bg);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    border-radius: 10px;
    margin: 10px;
}
.report-card {
    display: flex;
    justify-content: space-between;
    background-color: #f1f1f1;
    
    margin-bottom: 10px;
}

    .report-card div {
        width: 48%;
        padding: 15px;
        background-color: #e0e0e0;
        text-align: center;
    }

.report-table-container-react {
    padding: 5px;
    display: inline-block;
    text-align: left;
    background-color: white;
    border: 2px solid black;
    height: 220px;
    justify-self: center;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
    max-width: 700px;
    vertical-align: top;
}

.report-table {
    max-height: 190px;
    width: 100%;
    overflow-y: auto;
    padding-right: 5px;
}

    .report-table table {
        width: 100%;
    }

    .report-table::-webkit-scrollbar {
        width: .5em;
    }

    .report-table::-webkit-scrollbar-track {
        background-color: transparent;
    }

    .report-table::-webkit-scrollbar-thumb {
        background-color: darkgrey;
        border-radius: 3px;
    }

.user-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: var(--active-bg);
    padding: 15px;
    width: 100%;
    border-radius: 10px;
}

.photo-name {
    display: flex;
    align-items: center;
}

.user-details h2 {
    margin-top: 0px;
}

.reports-review-container { /* Adds space around the container */
    font-family: Arial, sans-serif; /* Ensures a clean font */
}

    .reports-review-container h3 {
        margin-bottom: 10px; /* Space below the heading */
        font-size: 1.5em; /* Adjust heading size */
    }

.reports-table {
    width: 100%; /* Table spans the width of the container */
    border-collapse: collapse; /* Ensures no double borders */
    margin-top: 10px; /* Space between the heading and the table */
    border: 1px solid #ccc; /* Adds a border around the table */
}

    .reports-table th, .reports-table td {
        border: 1px solid #ddd; /* Adds borders to individual cells */
        padding: 10px; /* Adds padding inside cells */
        text-align: left; /* Aligns text to the left */
    }

    .reports-table th {
        background-color: #f4f4f4; /* Light gray background for headers */
        font-weight: bold; /* Makes headers bold */
        text-transform: capitalize; /* Capitalizes text */
    }

    .reports-table tr:nth-child(even) {
        background-color: #f9f9f9; /* Alternating row background color */
    }

    .reports-table tr:hover {
        background-color: #eaeaea; /* Highlight row on hover */
    }

.profile-photo {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #555;
    cursor: pointer;
    overflow: hidden;
    margin: 9px;
    margin-left: 0;
}

    .profile-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

.profile-initials {
    font-weight: bold;
    text-transform: uppercase;
}

.ReactModal__Overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75); /* Dark overlay */
    display: flex;
    justify-content: center;
    align-items: center;
}

.ReactModal__Content {
    position: relative;
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.info-detail-panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: fit-content;
    padding-left: 0px;
}

.user-info-detail {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
   
}

.info-detail-detial {
    display: flex;
    flex-direction: row;
    justify-content:space-around;
}
.info-detail-detial p{
    margin: 0;
}
.report-table-controls{ 
    display:flex; 
    flex-direction:row;
    justify-content:space-between;
}

.report-toggle-controls{
    display: flex;
    flex-direction:row;
}

.toggle-buttons{
    display:flex;
    gap:10px;
}
    .toggle-buttons button {
        margin: 0 5px;
        border: none;
        cursor: pointer;
        border-radius: 10px;
        background-color: #739b7b;
        color: white;
    }

        .toggle-buttons button.active {
            background-color: #41875c;
            color: white;
            font-weight: bold;
        }

        .toggle-buttons button:hover {
            background-color: #3b5540;
        }

.assign-tour-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: white;
    border: none;
    border-radius: 10px;
    height: fit-content;
    max-height: 200px;
    padding: 10px;
    width: 102%;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 0px;
    margin-right: 0px;
}
    .assign-tour-box button {
        align-self: flex-end;
        width: fit-content;
        border: none;
        border-radius: 10px;
    }
        .assign-tour-box button:hover {
            background-color: #3b5540;
        }
.assign-tour-header {
    display: flex;
    flex-direction: row;
    height: 10px;
    justify-content: space-between;
    align-items: center;
}

    .assign-tour-header button {
        background-color: #739b7b;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s;
        align-self: center;
    }
.assign-tour-list{
    overflow-y:auto;
    height:150px;
}

    .assign-tour-list::-webkit-scrollbar {
        width: .5em;
    }

        .assign-tour-list::-webkit-scrollbar-track {
            background-color: transparent;
        }

            .assign-tour-list::-webkit-scrollbar-thumb {
                background-color: darkgrey;
                border-radius: 3px;
            }
.date-range-selector {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.show-date-range-button {
    background-color: #739b7b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    align-self: flex-end;
}


.table-section{
    display: flex;
    flex-direction: row;
}

.metrics {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 40px;
    margin: 11px;
}

.info-and-passdown {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 10px;
    justify-content: center;
}

.screen-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.officer-profile {
    display: flex;
}

/* Under Review Reports Box */
.under-review-reports {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fafafa;
    font-family: Arial, sans-serif;
}

    .under-review-reports h3 {
        margin-bottom: 15px;
        font-size: 1.5em;
        color: #333;
        text-align: center;
    }

    /* Toggle Buttons Container */
    .under-review-reports .toggle-buttons {
        display: flex;
        gap: 10px;
        margin-bottom: 15px;
        justify-content: center;
    }

        /* Toggle Buttons */
        .under-review-reports .toggle-buttons button {
            flex: 1;
            border: none;
            padding: 8px 12px;
            border-radius: 5px;
            background-color: #739b7b;
            color: white;
            font-size: 14px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

            .under-review-reports .toggle-buttons button.active,
            .under-review-reports .toggle-buttons button:hover {
                background-color: #41875c;
                font-weight: bold;
            }

    /* Reports List Container */
    .under-review-reports .reports-list {
        max-height: 250px;
        overflow-y: auto;
    }

    /* Individual Report Summary */
    .under-review-reports .report-summary {
        border: 1px solid #ddd;
        padding: 10px;
        margin-bottom: 10px;
        border-radius: 4px;
        background-color: white;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

        .under-review-reports .report-summary:hover {
            background-color: #f0f0f0;
        }

        /* Report Summary Text Styling */
        .under-review-reports .report-summary p {
            margin: 4px 0;
            font-size: 14px;
            color: #555;
        }
.license-button {
    background: none;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-modal-content {
    display: flex;
    justify-content: center;
    flex-direction: column;
    justify-self: center;
}

.user-profile-home .photos-section {
    padding: 10px;
    background-color: var(--active-bg);
    border-radius: 10px;
    width: 97%;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 0px;
    margin-right: 0px;
}

.photos-toggle {
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.photos-container{
    overflow-y: auto;
    max-height: 200px;
}

.photos-container::-webkit-scrollbar {
    width: .5em;
}

.photos-container::-webkit-scrollbar-track {
    background-color: transparent;
}

.photos-container::-webkit-scrollbar-thumb {
    background-color: darkgrey;
    border-radius: 3px;
}
/* the grid itself */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    /* each thumbnail is 100px tall, so 5 rows → 5*100px + 4*gap */
    max-height: calc(5 * 100px + 4 * 0.5rem);
    padding-right: 0.5rem; /* give a bit of room for the scrollbar */
}

/* thumbnail styling */
.photo-thumbnail {
    width: 100px; /* fill its grid cell */
    height: 100px; /* fixed height */
    object-fit: cover; /* crop to square */
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.graphs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(250px, auto); /* adjust min height as needed */
    gap: 20px; /* spacing between graphs */
}

.user-profile-main-content .graph-item {
    /* optional: give each graph a border/card look */
    background: var(--active-bg);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.user-profile-home {
    display: flex;
    flex-direction: column;
}

.user-profile-officer-view {
    height:100%;
    padding-top:10px;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.user-profile-main-content {
    width: 100%;
    background: var(--fg);
    border-radius: 10px;
}

.user-info-officer-view {
    width: 31vw;
    background: var(--fg);
    border-radius: 10px;
    margin-left: 10px;
    overflow: hidden;
}

.user-info-detail{
    width: 100%;
}

.info-detail-detail{
    width: 100%;
}

.licenses {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-left: 35px;
    padding-right: 30px;
}

.photos-container-officer-view {
    overflow-y: auto;
    max-height: 360px;
    padding-left: 46px;
    padding-bottom: 20px;
}

/*.user-details-officer-view {
    width: 31vw;
    padding-left: 20px;
    background: var(--fg);
    border-radius: 10px;
    margin-left: 10px;
}*/

.sidebar-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* ← this is key */
}

    .sidebar-section h3 {
        margin: 0;
    }

    .sidebar-section:not(:last-child)::after {
        content: '';
        flex-basis: 100%; /* force it onto its own row */
        height: 1px;
        background: var(--border);
        margin: 15px -20px 0rem;
        padding: 0px 20px 0rem;
    }

    .sidebar-section > * {
        margin: 0;
    }

    .sidebar-section ul {
        display: flex;
    }

.sidebar > .sidebar-section:not(:first-child) {
    padding-top: 10px;
}

.tours-passdown{
    display:flex
}

.activity-alert{
    display:flex
}

.licenses {
    display: flex;
    justify-content: space-around;
    gap: 70px;
    width: 100%;
}

.user-profile-activity-report-wrapper .activity-report-creator-modal {
    display: flex;
    flex-direction: column;
    background: var(--active-bg);
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    height: 817px;
}
.user-profile-activity-report-wrapper .scrollable-content {
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    overflow-y: auto;
    padding: 10px;
    box-sizing: border-box;
    /* justify-content: space-between; */
    padding-bottom: 0;
    height: 100%;
}
.user-profile-activity-report-wrapper .entry-rows {
    overflow-y: auto;
    max-height: 500px;
}

.user-profile-activity-report-wrapper .passdown-entries {
    max-height: 500px;
}

.button-placeholder {
    display: flex;
    height: 100%;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    padding-top: 50px;
}

.user‐detail‐graphs {
    height: 100%;
}

    .user‐detail‐graphs .graphs-grid {
        height: 100%;
    }

    .user‐detail‐graphs .graph-item {
        height: 93%;
    }

.report-table-controls-user {
    display: flex;
    width:100%;
    justify-content:center;
    flex-direction: column;
    justify-content: space-between;
}

.button-row {
    display: grid;
    justify-content: space-around;
    width: 100%;
    grid-template-columns: 80px 80px 80px 80px;
}

.report-table-controls-user .toggle-control {
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
    padding-top: 10px;
}

.admin-profile {
    overflow-y: auto;
    display: flex;
    height: 100%;
}

.admin-main-content .group-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.admin-info {
    display: flex;
    flex-direction: column;
    width: 21%;
    /* align-items: center; */
    background: var(--active-bg);
    margin: 20px;
    border-radius: 10px;
}

