body {
    font-family: 'Roboto', sans-serif;
    background-color: #e8eaf1;
}



#btnCaseUpdate, .caseButton {
    width: 100%;
    padding: 10px;
    margin-top: 20px;
}

.modal input.small,.modal select.small{
    width:33%;
    display: inline-block;
    float:left;
    margin:5px;
}


.flex-container{
    display: flex;
    justify-content: space-between;
}

.grey{
    background-color: #f1f1f1;
    padding: 15px;
    margin:10px 0px;
}
input{
    height:35px;

}

.box{
    flex: 1;
    margin: 0 10px;
    text-align: left;
}
/* Ensure the first and last boxes have no margin on the sides */
.box:first-child {
    margin-left: 0;
}

.box:last-child {
    margin-right: 0;
}

label {
    font-weight: bold;
}

.input_col_1 {
    width: 80%;
    float: left;
}

.input_col_2 {
    width: 20%;
    float: left;
}

#addToCaselineRow {
    border-collapse: separate;
    border: 1px solid grey;
    background-color: lightgray;


}

#addToCaselineTable {
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;

    min-width: 400px;
    max-width: 80%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

#addToCaselineRow th, #addToCaselineRow td {
    padding: 10px; /* Adds padding inside the cells */
}

#ADDITEM {
    min-width: 200px;
    padding: 10px;
    text-align: center;
}

#noteLabel {
    align: left;
}

#topBar {
    text-align: center;
    background-color: GhostWhite;
}

#caseListHeader {
    text-align: center;
    background-color: lavender;
}

#caseList ul {
    list-style-type: none; /* Removes list bullets */
    padding: 0;
    margin: 0;
    display: flex; /* Enables Flexbox */
    justify-content: center; /* Centers items horizontally */
    flex-wrap: wrap; /* Allows items to wrap in a new line if needed */
}

#caseList li {
    text-align: center;
    padding: 14px 16px;
    text-decoration: none; /* Removes the default hyperlink underline */
}

#errorMessage {
    background-color: lightcoral;
}

.caseDetailTable {
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;

    min-width: 400px;
    max-width: 100%;
    width: 100%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.caseDetailTable th {
    background-color: #009879;
    color: #ffffff;
    text-align: left;
}

.caseDetailTable th,
.caseDetailTable td {
    padding: 12px 15px;
}

.caseDetailTable tbody tr {
    border-bottom: 1px solid #dddddd;
    width: 100%;
}

.caseDetailTable tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.caseDetailTable tbody tr:last-of-type {
    border-bottom: 2px solid #009879;
}

footer {
    background-color: #009879;
    text-align: center;
    padding: 10px 0px;
    color: white;
}

/* Case Details */


.form-row {
    clear: both; /* Clear previous floats */
    margin-bottom: 10px; /* Add some space between rows */
    overflow: hidden; /* Clear the float inside the div */
}

.caseDetails label, .caseDetails .info, .caseDetails b {
    float: left; /* Float labels left */
    margin-right: 10px; /* Add space between label and input */
    display: block; /* Ensure labels take up the necessary space */
}

.caseDetails input, .caseDetails select {
    float: left; /* Float inputs/selects left */
    margin-right: 10px; /* Add space to the right of the input/select */
}

.caseDetails .info img {
    vertical-align: middle;
}

.caseDetails #totalExpenses, .caseDetails input[type="button"] {
    clear: both; /* Ensure these elements start on a new line */
    margin-top: 10px;
}

.phones {
    padding-left: 10px;
}

.no-bold {
    font-weight: normal;
}

.userMenu {
    margin-top: 20px;
    margin-bottom: 20px;
}

.userMenu a {
    text-decoration: none;
}

a.menu > span {
    display: block;
    font-weight: bold;
    text-decoration: none;
    margin-top: 5px;
}

fieldset {
    border: 2px solid #ccc;
    position: relative;
    background-color:white;
    border:white;
    border-radius:10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.35);
}

.modal-content legend{
    text-align: left;
}

legend {
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    padding: 5px 10px 5px 30px;
    position: relative;
    width: auto;
    cursor: pointer;
}

legend:before {
    content: '\f0d7';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

legend.collapsed:before {
    content: '\f0da'; /* FontAwesome icon code for right arrow */
}


.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 880px; /* Could be more or less, depending on screen size */
}

.modal-content-wide {
    width: 800px; /* Could be more or less, depending on screen size */
}

.modal-content legend {
    background-color: #009879;
    font-weight: bold;
    margin-left: -20px;
    width: 100%;
    color: #ffffff;

}

.modal-content legend:before {
    content: none;
}

.modal-content label {
font-weight: normal;
    margin-top: 10px;
    margin-bottom:5px;
}

.modal-content legend button {
    float: right;
}

.modal input,.modal select{
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border-color:lightgray;
}
.fullWidthButton {
    width: 100%;
    padding: 10px;
}

table.calendar {
    width: 100%;
    border-collapse: collapse;
    padding: 0px;
    margin: 0px;
}

table.calendar td {
    border: 1px solid black;
    border-collapse: collapse;
    padding: 0px;
    margin: 0px;
    width: 15%;
    vertical-align: top;
}

th.calendar {
    font-size: 2em;
    text-align: center;
}

table#caseDetailInfo {
    width: 100%;
border-collapse: collapse;
}

table#caseDetailInfo td {
padding: 10px;
}

.calendar-day-head {
    text-align: center;
    font-weight: bold;
    font-size: 1.5em;
}

#lastClosedDate {
    width: 100%;
    display: block;
}

.day-number {
    font-size: 1.5em;
    margin: 5px;
}

table.calendar tr.calendarToDoItem td {
    border: 0px;
}

.todos {
    border-collapse: collapse;
    font-size: 0.9em;


    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.todos th {
    background-color: #009879;
    color: #ffffff;
    text-align: left;
}

table.calendar.todos th,
table.calendar.todos td {
    padding: 10px !important;
}

.todos tbody tr {
    border-bottom: 1px solid #dddddd;
}

.todos tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}
#noteClientVisible{
    width:auto;
}
#notifyTable{
    width:100%;
}
#notifyTable tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

#notifyTable i {
    width: 30%;
    display: inline-block;
}

#notifyTable input{
    width:auto;
}

table.calendar td.calendarToDoItem {
    padding: 10px;
    border: 0px;
}


ol.vehicle-contacts {
    list-style-type: decimal;
    padding: 0;
    margin: 0;
}

.vehicle-contacts li {
    margin: 0px;
    padding: 0px;
}

.modal-content label {
    display: block;
    margin-top: 10px;
    font-size: 13px;
}

.modal-content button.action{
    width:100%;
    padding:10px;
    margin-top:10px;
}

#vehicleOptions {
    display: flex;
    align-items: center; /* Align items vertically in the center */
    gap: 20px; /* Add some space between the radio buttons */
}

#vehicleOptions label {
    display: flex;
    align-items: center;
}

#modalOptions {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */

}

#modalOptions label {
    display: flex;
    align-items: center;
}

label.underLabel{
    text-align: center;
float:none;
}

.circle{
    height:80px;
    width:80px;
    text-align: center;
    border-radius: 50%;
    border: 1px solid #E5E5E5;
display:    table-cell;

    vertical-align: middle;
    margin: 0 auto;
}

input.circle-input{
border:0px;
    text-align: center;
    width:100%;
    float:none;
}

.circleCell{
    text-align: center;
    width:100px;
}

.circle-container {
    display: inline-table;
    border-collapse: separate;
}

.red{
    border-color:red;
    border-width:4px;
}

.green{
    border-color:green;
    border-width:4px;
}

.border-right{
    border-right:1px solid grey;
}
.border-top{
    border-top:1px solid grey;
}

.alert{
    border:1px solid black;
    padding:5px;
    display: inline-block;
    background-color: red;
    color:white;
    margin-top:10px;
    font-weight: bold;
    border-radius:20px;
}

#calendarContainer{
    margin-bottom: 100px;
}

table.collapsed tbody{
    display: none;
}

.documentsTable th {
    background-color: #009879;
    color: #ffffff;
    text-align: left;
}

.documentsTable th,
.documentsTable td {
    padding: 5px 0px;
}


.folderTag:before{
    content: '\f0d7 ';
    font-family: 'Font Awesome 5 Free';
    margin: 5px 5px;
}

 .folderTag.collapsed:before {
    content: '\f0da ';
    font-family: 'Font Awesome 5 Free';
    margin: 5px 5px;
}

.calendar-day-display {
    border: 1px solid #cccccc;
    width: 100px;
    height:100px;
    text-align: center;

    background-color: #f9f9f9;
    float:left;
    margin:10px;
}

.month {
    font-size: 16px;
    color: #666666;
    padding: 5px 0;
    background-color: #e9e9e9;
    border-bottom: 1px solid #cccccc;
}

.day {
    font-size: 48px;
    color: #333333;
    padding: 15px 0;
}

.year {
    font-size: 16px;
    color: #666666;
    padding: 5px 0;
    background-color: #e9e9e9;
    border-top: 1px solid #cccccc;
}

.dateInputs{
    display: table-cell;
    vertical-align: middle;
    height: 100px;
}

.left{
    float:left;
    width:50%;
    display:block;
    text-align:left;
}

.right{
    float:right;
    width:50%;
    display:block;
    text-align: right;
}

.filesTable{
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.filesTable th, #filesTable td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
.filesTable th {
    background-color: #f2f2f2;
}

.folder {
    cursor: pointer;
    font-weight: bold;
}
.file {
    margin-left: 20px;
}
.folder::before {
    content: "📁 ";
}
.file::before {
    content: "📄 ";
}
.folder-contents {
    margin-left: 20px;
}

/* Fixed percentage widths */
.filesTable th:nth-child(1), .filesTable td:nth-child(1) {
    width: 30%;
}
.filesTable th:nth-child(2), .filesTable td:nth-child(2) {
    width: 35%;
}
.filesTable th:nth-child(3), .filesTable td:nth-child(3) {
    text-align: center;
    width: 5%;
}
.filesTable th:nth-child(4), .filesTable td:nth-child(4) {
    width: 10%;
}
.filesTable th:nth-child(5), .filesTable td:nth-child(5) {
    width: 10%;
}
.filesTable th:nth-child(6), .filesTable td:nth-child(6) {
    width: 10%;
}

/* Spinner styles */
.spinner-container {
    display: none; /* Hidden by default */
    position: fixed; /* Sit on top of the page content */
    z-index: 999; /* Ensure it's on top */
    left: 50%;
    top: 50%;
    width: 200px;
    padding: 20px;
    text-align: center;
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transform: translate(-50%, -50%); /* Center the spinner */
}

.spinner {
    margin: 0 auto 10px auto;
    width: 50px;
    height: 50px;
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3498db; /* Blue */
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Cursor pointer for icons */
.fa-download:hover,.fa-trash:hover,.fa-rotate-left:hover {
    cursor: pointer;

}
.fa-download,.fa-trash,.fa-rotate-left {
font-size:1.5em;
    padding:5px;
}

input#documentVisibility {
    width: auto;
}

/* Form styles */
fieldset.modal-content {
    border: 1px solid #ddd;
    padding: 20px;
}

fieldset.modal-content legend {
    font-size: 1.2em;
    font-weight: bold;
}

fieldset.modal-content input[type="text"],
fieldset.modal-content input[type="file"],
fieldset.modal-content select {
    margin-bottom: 10px;
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

fieldset.modal-content input[type="checkbox"] {
    margin-right: 10px;
}

fieldset.modal-content input[type="button"] {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

fieldset.modal-content input[type="button"]:hover {
    background-color: #45a049;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.toolbar{
    border:1px solid #ddd;
    display:inline-block;
    background:#F2F2F2;
}

#documentsToolBar{
    margin:5px;
}

.toolbar-button{
    font-size:1.5em;
    padding:5px;
    cursor: pointer;
}

/* Tooltip container */
.tooltip {
    position: relative;
    display: inline-block;
border:0px !important;
}

/* Tooltip text */
.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;

    /* Position the tooltip text */
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;

    /* Fade in tooltip */
    opacity: 0;
    transition: opacity 0.3s;
}

/* Tooltip arrow */
.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}