@font-face {
    font-family: 'LTRenovate';
    src: url('/lt_renovate/LTRenovate-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'LTRenovate';
    src: url('/lt_renovate/LTRenovate-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: bold;
}

* {
    font-family: LTRenovate;
    box-sizing: border-box; /* Apply box-sizing globally */
}

body {
    background-color: #111;
    color: white;
    margin: 0;
    padding: 0;
}

.container {
    width: 100vw;
    overflow: hidden;
}

h1 {
    background-color: #222;
    border-radius: 8px;
    text-align: center;
    margin: 0px;
}

a {
    color: white;
    text-decoration: none;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#nav-grid {
    display: flex;
    justify-content: space-between;
    gap: 6px;
}

#logo {
    height: 30px;
}

#logo-header {
    display: grid;
    grid-template-columns: 2fr 8fr 1fr 1fr;
    align-items: center;
    justify-items: stretch;
    background-color: #222;
    padding: 12px;
    margin-bottom: 12px;
}

#login-form {
    padding: 12px;
    text-align: center;
}

#login-form button {
    margin-top: 12px;
}

#logout-button, #jobs-button {
    font-size: 2em;
    padding: 12px;
    text-align: right;

}

nav {
    text-align: right;
    margin-top: auto;
    margin-bottom: auto;
    margin-right: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: end;
}

nav a, nav button {
    text-decoration: none;
    background: #222;
    color: white;
    padding: 6px;
    border-radius: 8px;
}

input, textarea {
    background: #222;
    color: white;
    border: none;
    border-radius: 8px;
}

#date-slider {
    color-scheme: dark;
}

.custom-date-input {
    position: relative;
    display: inline-block;
    cursor: pointer; /* Change cursor to indicate it's clickable */
}

.date-display {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    background-color: #fff;
    transition: border-color 0.3s;
}

.date-display:hover {
    border-color: #888; /* Change border color on hover */
}

.calendar-icon {
    margin-right: 8px; /* Space between icon and text */
}

/* Optional: Style the hidden date input when it receives focus */
input[type="date"]:focus + .date-display {
    border-color: #888;
}

.week-navigation {
    display: flex;
    justify-content: space-between;
    width:calc(100vw - 24px);
    position: absolute;
    bottom: 12px;
    left: 12px;
}

.day-schedule {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

#previous-week, #current-week, #next-week {
    border: none;
    border-radius: 6px;
    padding: 6px;
    background-color: #222;
    color: white;
}

#daily-view, #weekly-view {
    margin: 12px;
}

.day {
    background-color: #222;
    padding: 9px;
    border-radius: 8px;
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.day-title {
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    border-bottom: 2px solid white;
    padding-bottom: 5px;
}

.agent {
    margin-top: 15px;
    text-align: left;
    font-weight: bold;
}

.job-box-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-top: 10px;
}

@media (max-width: 700px) {
    .job-box-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.job-box {
    background-color: #02516f;
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
}
.job-box.complete {
    background-color: grey;
}


.job-box #make-text {
    font-size: 2dvh;
}

.job-box #city-text {
    font-size: 2dvh;
    font-weight: bold;
}

.job-box, .add-job {
    height: 7dvh;
}

.add-job {
    background-color: #444;
    color: lightgrey;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    font-size: 2.75em;
    line-height: 1em;
    cursor: pointer;
    border: none;
}

.add-job:hover {
    background-color: #555;
}

/* Popup styling */
.popup {
    position: fixed;
    overflow: scroll;
    max-height: 95dvh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #333;
    padding: 12px;
    border-radius: 8px;
    width: min(500px, 90vw);
    z-index: 1000;
    display: none;
    box-shadow: 12px 12px 12px #00000050;
}

.popup input[readonly] {
    background-color: #333;
    color: #222;
    cursor: not-allowed;
    text-transform: uppercase;
    border: none;
}

#existing-job-popup input#existing-agent-display,
#existing-job-popup select#existing-agent-select,
#existing-job-popup input#existing-date {
    display: inline-block;
    width: calc(50% - 5px);
    background: #02516f;
    color-scheme: dark;
    padding: 5px;
    margin: auto;
    border-radius: 8px;
}

#existing-job-popup select#existing-agent-select {
    border: none;
    font-size: 1.25em;
    padding: 8px 6px;
}



/* check the html for inline css display nones */ 
#new-job-popup #new-job-id, 
#new-job-popup #insurance-claim, 
#existing-job-popup #existing-job-id,
#existing-job-popup #existing-insurance-claim {
    display:none;
}

#new-job-popup #popup-content input, 
#popup-content textarea {
    margin-bottom: 10px;
    background: #222;
}

#popup-content {
    display: flex;
    flex-direction: column; 
}

#popup-content > div {
    display: flex; 
    align-items: center; 
    margin-bottom: 10px; 
}

#popup-content label {
/*  border: 1px solid white;*/
    font-size: 0.75em;
    text-align: right;
    border-radius: 6px;
    padding: 2px;
    width: 13%;
    margin-right: 6px; 
    flex-shrink: 0; 
}

#popup-content input, 
#popup-content textarea {
    width: 100%; 
    font-size: 1.25em;
    padding: 6px;
    color: white;
    background: #222;
    border-bottom: 1px solid #444;
}

#popup-content button {
    margin-bottom: 10px;
}

#contactSelect {
    margin-bottom: 12px;
    border-radius: 6px;
    text-transform: uppercase;
    width: 100%;
    font-size: 1.25em;
    padding: 6px;
    color: white;
    background: #222;
    border: none;
}

.popup-buttons {
    display: flex;
    justify-content: space-between;
}


.popup-buttons .save {
    background-color: #28a745;
    color: white;
}

.popup-buttons .delete {
    background-color: #e74c3c;
    color: white;
}

.popup-buttons .close {
    background-color: #555;
    color: white;
}

/* WEEKLY x DAILY BUTTON */

button#toggle-view {
    border: none;
    border-radius: 6px;
    padding: 10px;
    background-color: #222;
    color: white;
    margin-left: 12px;
}

/* WEEKLY VIEW */

.weekly-view {
    display: none; 
}

table {
    width: 100%;
    margin: auto;
    border-collapse: separate;
}

th,
td {
    padding: 10px;
    border: 2px solid none;
    text-align: left;
    border-radius: 6px;
    background-color: #222;
}

th {
    background-color: #02516f;
    color: white;
}