
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #1c1c1c;
    color: #e0e0e0;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.report-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
}


.logo {
    max-width: 640px;
}

.login-form {
    background-color: #2c2c2c;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #4d4d4d;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #1c1c1c;
    color: #e0e0e0;
}

input[type="button"], button {
    background-color: #932900;
    color: #e0e0e0;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

input[type="button"]:hover, button:hover, .custom-button:hover, .subsection label:hover {
    background-color: #651b00 !important;
}

.error {
    color: #9a2900;
    font-weight: bold;
}

h1 {
    margin-bottom: 30px;
}

input[type="button"] {
    font-size: 22px !important;
}
.qhseform  .subsection {
    background-color: #f6f6f6;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.1);
    padding:40px;
    margin:20px;

}

.subsection input[type="file"] {
    display: none; /* Hide the default file input */
}

.subsection label {
    display: inline-block;
    padding: 8px 15px;
    background-color: #932900;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}



/* Tooltip container */
.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black; /* Underline the text */
    cursor: help; /* Change the cursor to a help icon on hover */
}

/* Tooltip text */
.tooltiptext {
    visibility: hidden;
    width: 300px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 150%;
    left: 50%;
    margin-left: -150px; /* Use half of the width to center the tooltip */
    opacity: 0;
    transition: opacity 0.3s;
}

/* Show the tooltip text when hovering over the tooltip container */
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}


header {
    background-color: #541700;
    position:absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 64px;
    max-height: 64px;
    float:left;
    /*overflow:hidden;*

     */
    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    box-shadow: 0px 8px 8px rgba(0, 0, 0, 0.1);
    /*font-family: Leelawadee, serif;*/
    font-family: Calibri, serif;
    margin-bottom:100px;
}

header div {
    float:left;
}

.npsfont {
    height:64px;
    margin-right:100px;
}

.linksegment {
    font-size: 20px;
    height: 64px;
    width: 150px;
    /*margin-bottom:50px;*/
}

.linksegment a {
    display: flex;
    align-items: flex-end;
    justify-content: center; /* Center the text horizontally */
    height:43px;
    padding-bottom: 17px;
}

.selected {
    font-weight:bold;
    color:black;
}

.linksegment:hover {
    background-color: #932900;
    color: black;
    cursor:pointer;
}


.linksegmentdropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 150px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

.linksegmentdropdown-content a {
    color: black;
    padding: 5px 8px;
    text-decoration: none;
    display: block;
    height:22px;
}

.linksegmentdropdown-content a:hover {
    background-color: #932900;
}

.linksegment:hover .linksegmentdropdown-content {
    display: block;
}

#dashboardcontent {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
}

/* Style for each individual report */
.reportdiv {
    width: calc(80% - 20px); /* Adjust width as per your preference */
    margin-bottom: 20px;
    border: 1px solid #ccc;
    padding: 10px;
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.reportdiv:hover {
   background-color: #932900; /* Change color on hover */
}

/* Style for report type */
.reportdiv span.type {
    font-weight: bold;
    margin-bottom: 5px;
}

/* Style for report title */
.reportdiv .reporttitle {
   background-color: #932900;
    color: white;
    font-size: 24px;
    font-weight: bold;
    padding: 10px 20px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.subtitle {
    font-style: italic;
    float:right;
    font-size:16px;
    margin-top:-5px;
}

/* Style for images */
.reportdiv img, .reportdiv iframe{
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 5px;
}


.filterdiv {
    display: none;
    position: relative;
    width: 800px; /* Set the width of the container */
    margin: 20px auto; /* Center the container */
}

.filterdiv div {
    display: inline-block; /* Display as inline-block to place elements side by side */
    margin-right: 20px; /* Add space between each input group */
}

.filterdiv select {
    min-width:100px;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    display: inline-block; /* Display as inline-block */
    width: 150px; /* Set width of selects */
    margin-left: 10px; /* Add space between label and select */
}

.filterdiv label {
    display: inline-block; /* Display as inline-block */
    width: 100px; /* Set width of labels */
}

.content {
    padding-left: 8px;
    padding-right: 8px;
    margin: auto;
    max-width: 900px;
    min-height: 100%;
    margin-top:100px;
}


.qhseform {
    background-color: #343434;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display:none;
    overflow:auto;
}

.ghseheader {
   background-color: #932900;
    color: white;
    font-size: 24px;
    font-weight: bold;
    padding: 10px 20px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    height:30px;
}

.ghseheader span {
    text-transform: uppercase;
}


.qhseform input[type="text"] {
    width: calc(50% - 40px); /* Adjust width to your preference */
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    color:black !important;
}


/* Optional: Add hover effect */
.qhseform input[type="text"]:not(:disabled):hover {
   background-color: #932900;
}

/* Optional: Add focus effect */
.qhseform input[type="text"]:focus {
    outline: none;
   background-color: #932900;
    box-shadow: 0 0 4px rgba(175, 117, 76, 0.5);
}

.qhseform textarea {
    width: calc(100% - 40px); /* Adjust width to your preference */
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    color:black !important;
}

/* Optional: Add hover effect */
.qhseform textarea:not(:disabled):hover {
   background-color: #932900;
}

/* Optional: Add focus effect */
.qhseform textarea:focus {
    outline: none;
   background-color: #932900;
    box-shadow: 0 0 4px rgba(175, 117, 76, 0.5);
}

.qhseform input[type="datetime-local"], .qhseform input[type="date"] {
    width: calc(50% - 40px); /* Adjust width to your preference */
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    color:black !important;
}

/* Optional: Add hover effect */
.qhseform input[type="datetime-local"]:not(:disabled):hover, .qhseform input[type="date"]:not(:disabled):hover {
   background-color: #932900;
}

/* Optional: Add focus effect */
.qhseform input[type="datetime-local"]:focus, .qhseform input[type="date"]:focus {
    outline: none;
   background-color: #932900;
    box-shadow: 0 0 4px rgba(175, 117, 76, 0.5);
}

.qhseform select {
    width: calc(50% - 40px); /* Adjust width to your preference */
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.qhseform select:not(:disabled):hover {
   background-color: #932900;
}

/* Optional: Add focus effect */
.qhseform select:focus {
    outline: none;
   background-color: #932900;
    box-shadow: 0 0 4px rgba(175, 117, 76, 0.5);
}


.qhseform input[type="checkbox"]::before {
    content: "";
    display: inline-block;
    width: 14px; /* Adjust width and height as needed */
    height: 14px;
    background-color: #fff;
    border: 2px solid #333;
    border-radius: 4px;
    vertical-align: middle;
}

.qhseform input[type="checkbox"]:checked::before {
    background-color: #333;
    content:"\2713";
    color:white;
}


.qhseform label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    width:300px;
}

.charcount {
    float:right;
    font-size:12px;
    margin-right:40px
}

.formsegment {
    border-bottom:1px solid black;
    padding: 20px 10px 50px;
    min-height:50px;
}

.qhseform  .subsection {
    background-color: #515151;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.1);
    padding:40px;
    margin:20px;

}


/* Base styles for the button */
.qhseform button, .qhseform input[type="submit"], .qhseform .backbutton, .editbutton, .navibutton, .defaultbutton, .navideletebutton {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    border-radius: 4px;
   background-color: #932900; /* Default background color */
    color: #fff; /* Default text color */
    transition: background-color 0.3s, color 0.3s; /* Smooth transition for hover effect */
    user-select: none;
}


/* Hover effect */
.qhseform button:hover, .qhseform input[type="submit"]:hover, .qhseform .backbutton:hover, .subsection label:hover, .editbutton:hover, .defaultbutton:hover {
    background-color: #501700; /* Darker background color on hover */
}

/* Active effect */
.qhseform button:active, .qhseform input[type="submit"]:active, .qhseform .backbutton:active, .subsection label:active, .editbutton:active, .defaultbutton:active {
    background-color: #441200; /* Even darker background color when button is pressed */
}

/* Disabled state */
.qhseform button[disabled], .qhseform input[type="submit"][disabled], .qhseform .backbutton[disabled], .editbutton[disabled], .navibutton[disabled], .defaultbutton[disabled], .navideletebutton[disabled] {
    opacity: 0.5; /* Reduced opacity for disabled button */
    background-color:gray;
    pointer-events: none; /* Disable pointer events for disabled button */
}





.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
}

/* Modal content */
.all-modal-content {
    margin: 15% auto; /* 15% from the top and centered */
    padding: 5px;
    border: 1px solid #888;
    width: fit-content;
    border-radius: 3%;
    background-color: rgb(255, 251, 248);
}

.modal-content {
    padding:20px;
    width:fit-content;
    color: black;
}

.modal-content div {
    width:200px;
    margin:10px;
    padding:10px;

}


.modal-content submit:hover {
    cursor:pointer;
}

/* Style the close button */
.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.modal-close:hover,
.modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Style the overlay */
#modal-overlay {
    display: none;
    position: fixed;
    z-index: 999; /* Sit behind the modal */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
}


.green-box {
    width: fit-content;
    min-width:30%;
    height: fit-content;
    background-color: #4CAF50;
    color: white;
    padding: 20px;
    display: none;
    position: absolute;
    top: 1%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    line-height: 1.5;
    z-index: 1001;
    pointer-events: none;
    animation: slideIn 0.5s ease-out forwards, fadeOut 3s 2.5s forwards;
}

/* Basic table styling */
#usertable {
    border-collapse: collapse;
    width: 100%;
    max-width: 100%;
    border: 1px solid #dddddd;
}

/* Header row styling */
#usertable th {
    background-color: #d96f27;
    border: 1px solid #7c441d;
    color: white;
    padding: 8px;
    text-align: left;
}

/* Table cell styling */
#usertable td {
    border: 1px solid #dddddd;
    padding: 8px;
}

/* Alternate row background color */
#usertable tr:nth-child(even) {
    background-color: #f9f9f9;
}

#usertable tr:nth-child(odd) {
    background-color: white;
}


/* Hover effect */
#usertable tr:hover {
    background-color: #f2f2f2;
}

#usertable input[type="text"],
#usertable table input[type="email"],
.modal-content input[type="text"],
.modal-content select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

#usertable button{
    width: 100%;
    height:45px;
    padding:0;
    margin:0;
    background-color: #d96f27;
    border: 1px solid #7c441d;
    color: white;
    font-weight:bold;
}

#usertable button:hover{
    background-color: #da5d09;
}

#usertable .deletebutton{
    background-color: #da3939;
}

#usertable .deletebutton:hover{
    background-color: #da0909;
}

#usertable .deletebutton:disabled{
    background-color: #3a3a3a;
    color: #858585;
}

#usertable td:has(> button) {
    padding: 0 !important;
    margin: 0 !important;
}

#location:invalid {
    background-color: red;
}

#usertable th:nth-child(4) {
    min-width:200px;
}

.changed {
    background-color: yellow !important;
    color: black !important;
}


.asterisk {
    transform: translateY(-50%);
    position: absolute;
    display: inline-block;
}

.asterisk::after {
    content: '*';
    color: red;
}

@media (max-width: 970px) {
    .linksegment {
        width:fit-content;
        font-size:16px;
    }
    .npsfont {
        margin-right: 0;
        font-size:0;
    }
}

@media (max-width: 420px) {
    .linksegment {
        font-size:0;
    }
    .linksegmentdropdown-content a {
        font-size:5px !important;
    }
}