.eos-toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background-color: #2baae1;
  color: white;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0;
  z-index: 9999;
  transition: all 0.4s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.eos-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.eos-toast.error {
  background-color: #d9534f;
}


#other_info {
  display: none !important;
}

  .parts-table-ss {
    display: none;
  }

.alert-box {
    padding: 12px 16px;
    border: 2px solid;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.alert-box.green {
    background-color: #f1fff1;
    border-color: #a0d6a0;
}

.alert-box.red {
    background-color: #ffe5e5;
    border-color: red;
}

.alert-box h1,
.alert-box h2,
.alert-box h3 {
    margin-top: 0.5em;
    margin-bottom: 0.25em;
    font-size: 1.1rem;
}

.alert-box p {
    margin: 0.4em 0;
}

.alert-box ol {
    padding-left: 1.2em;
    margin: 0.4em 0;
}

.alert-box li {
    margin-bottom: 0.25em;
}

.alert-box .fix-suggestion-box {
    white-space: pre-wrap;
    font-size: 0.85rem;
    margin-top: 5px;
}

.alert-box .timestamp {
    font-size: 0.7rem;
    color: #666;
}

/* Style the dropdown container */
.peripherals-checkbox select {
    height: 70%;
    width: 100%;
    padding: 0px;
    margin: 45px 5px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #f9f9f9;
    font-size: 1rem;
}

.title {
  font-size: 2rem;
  margin-bottom: 20px;
}

.construction-gif-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.construction-gif {
    max-width: 200px;
}
.mirror {
    transform: scaleX(-1);
}

#suggestion-box {
  padding: 12px;
  background-color: #f3f8ff;
  border-left: 4px solid #4a90e2;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 5px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-suggestion {
  background-color: #007bff;
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.btn-suggestion:hover {
  background-color: #0056b3;
}

.dots::after {
  content: '';
  animation: dots 1.2s steps(3, end) infinite;
}

@keyframes dots {
  0% { content: ''; }
  33% { content: '.'; }
  66% { content: '..'; }
  100% { content: '...'; }
}

#tone_selector {
  padding: 4px 8px;
  font-size: 0.9rem;
}

/* Style the dropdown container on hover */
.peripherals-checkbox select:hover {
    border-color: #888;
}

/* Style the dropdown options */
.peripherals-checkbox option {
    padding: 10px;
}

div.hg-rows div.hg-row div.hg-button.hg-standardBtn,
div.hg-rows div.hg-row div.hg-button.hg-functionBtn {
  background-color: #333333;
  color: white;
  border-color: black;
}

div.hg-rows div.hg-row div.hg-button.hg-standardBtn:active,
div.hg-rows div.hg-row div.hg-button.hg-functionBtn:active {
  background-color: #5c5a5a; /* Or any color you want */
}

.number_pad {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 10px;
}

.reserved {
    color: red;
}

.title-bar {
    display: flex; /* Set the title and logo to display in a row */
    justify-content: space-between; /* Distribute space evenly */
    align-items: center; /* Align items vertically in the center */
}

.title-bar img {
    display: none;
    margin: auto;
    margin-top: 50px;
    margin-bottom: 25px;
}

form {
    overflow: hidden;
    margin: auto;
    margin-bottom: 50px;
    width: 60%;
    padding: 10px;
    box-shadow: 0px 0px 10px 2px rgba(0,0,0,0.3);
    border-radius: 5px;
    background-color: rgba(245, 245, 245, 0.9); /* 60% opaque */
}

form input[type="viewMileage"] {
  background-color: #2a90b8;
  color: white;
  font-size: 0.9rem;
  border: 2px solid #93c7d8;
  cursor: pointer;
  border-radius: 4px;
    padding: 10px 20px;
    text-transform: uppercase;
    margin-top: 10px;
}

form input[type="button"]:hover,
form input[type="submit"]:hover,
form button[type="button"]:hover {
    background-color: #0f4b63;
}

.button-container {
  position: fixed;
  bottom: 5px;
  left: 5px;
}

#extraButtons {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-in-out;
}

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

.hidden {
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

#extraButtons:not(.hidden) {
    opacity: 1;
    visibility: visible;
    max-height: 1000px; /* Arbitrary large height to animate expansion */
}

.show-info-btn {
  background-color: #2a90b8;
  color: white;
  font-size: 0.9rem;
  border: 2px solid #93c7d8;
  cursor: pointer;
  border-radius: 4px;
  padding: 6px 12px;
  transition: 0.2s ease;
}

.show-info-btn:hover {
  background-color: #2a90b8 !important;
}

.shown {
  max-height: 400px !important;  /* You may need to adjust this value */
  overflow: auto;
  transition: max-height 0.3s ease-in-out;
}

.small-button {
  background-color: #2a90b8;
  color: white;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  padding: 1vw 2vw;
  text-transform: uppercase;
  font-weight: bold;
  width: auto;
  text-align: center;
  margin-top: 2px;

  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* subtle 3D shadow */
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.small-button:hover {
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4); /* stronger on hover */
  transform: translateY(-1px);
}

.small-button:active {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* pressed-in effect */
  transform: translateY(1px);
}

.options-button {
  background-color: #2a90b8;
  color: white;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  padding: 1vw 2vw;
  text-transform: uppercase;
  font-weight: bold;
  max-width: 20vw;
  width: auto;
  text-align: center;

  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* lifted shadow */
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.options-button:hover {
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4); /* float on hover */
  transform: translateY(-1px);
}

.options-button:active {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* pressed-in */
  transform: translateY(1px);
}

.form_button {
  background-color: #2a90b8;
  color: white;
  font-size: 0.9rem;
  border: 2px solid #93c7d8;
  cursor: pointer;
  border-radius: 4px;
    padding: 10px 20px;
    text-transform: uppercase;
    font-size: 1rem;
    margin-top: 15px;
    display: inline-block;
}

#loginform {
    width: 85%;
    overflow: hidden;
    margin-top: 50px;
    max-width: 300px;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


#loginform input[type="text"],
#loginform input[type="password"] {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}
#loginform input[type="submit"] {
    padding: 10px;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}
.logo-container img {
    height: 150px; /* Adjust the size as needed */
}

.welcome-message {
    background-color: rgba(150, 150, 150, 0.9);  /* white background with 80% opacity */
    color: white; /* white text */
    margin: 20px;
    margin-top: 0px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 2px rgba(0,0,0,0.3);
}

.welcome-message h2 {
    color: white; /* white text */
}

.welcome-message p {
    color: white; /* light gray text */
}

.table-outer-container {
    width: 100%;
    overflow-y: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* Add this line */
}

th, td {
    border: 1px solid #dddddd;
    text-align: left;
    font-size: 0.9rem;
}

th {
    background-color: #005AAB;
    color: white;
}


tr:nth-child(even) {
    background-color: #f3f4f6;
}

tr {
    background-color: #ffffff;
    width: 100%;
    position: relative;
}

/* New styles */
/* For copiers that are reserved but not ready */
.reserved-not-ready {
    background-color: #f2dfdc !important;
}

.reserved-not-ready:nth-child(even) {
    background-color: #f5d5d0 !important;
}

/* For copiers that are reserved and ready */
.reserved-and-ready {
    background-color: #def7dc !important;
}

.reserved-and-ready:nth-child(even) {
    background-color: #cefaca !important;
}

form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: black;
    display: block;
    margin-top: 10px;
    margin-bottom: 0%;
}

#workMileageForm {
    overflow: hidden;
    margin-top: 25px;
}

#reserveCopierForm {
    margin: auto;
    width: 40%;
    padding: 10px;
    box-shadow: 0px 0px 10px 2px rgba(0,0,0,0.3);
    border-radius: 5px;
    background-color: rgba(245, 245, 245, 0.8); /* 60% opaque */
}

#reserveCopierForm label {
    font-size: 1rem;
    color: #555555;
    display: block;
    margin-bottom: -25px; /* Adjust this value as needed */
    margin-top: 25px;
}

#reserveCopierForm input[type="text"] {
    width: 95%;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 3px;
    margin-bottom: 0px;
    font-size: 1rem;
}

#reserveCopierForm input[type="checkbox"] {
    margin-right: 15px;
    margin-bottom: -45px;
}

#reserveCopierForm input[type="submit"] {
  background-color: #2a90b8;
  color: white;
  font-size: 0.9rem;
  border: 2px solid #93c7d8;
  cursor: pointer;
  border-radius: 4px;
    padding: 10px 20px;
    text-transform: uppercase;
    margin-top: 10px;
}

#reserveCopierForm input[type="submit"]:hover {
    background-color: #0f4b63;
}

.peripherals-checkbox {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 15px;
}

.peripherals-checkbox div {
    background-color: #f2f2f2;
    border-radius: 3px;
    padding: 5px;
    display: flex;
    align-items: center;
}

.label-container {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    height: 100%; /* You might need to adjust this */
}

.label-title {
    font-size: 2rem;
    color: #333;
    font-weight: bold;
    padding-bottom: 10px;
}

.serial-input {
    width: 91% !important;
}

.instructions {
    height: fit-content;
    margin-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.9); /* add a background color */
    border-radius: 10px; /* round the corners */
    padding: 20px; /* add some padding */
    color: #333; /* Dark gray */
    font-size: 1rem;
}

.instructions-dark {
    height: fit-content;
    margin-top: 25px;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: rgba(106, 108, 105, 0.8);  /* 80% opacity */
    border-radius: 10px;
    padding: 20px;
    color: white;
    font-size: 1rem;
}

.instruction-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    justify-content: center;
    align-items: stretch; /* Make items take up full height */
}

.instruction-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #fff;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0px 0px 10px 2px rgba(0,0,0,0.3);
    transition: transform .2s;
    height: 90%;
}

.instruction-item:hover {
    transform: scale(1.05);
}

.instruction-item img {
    width: 50px;
     height: 50px;/* adjust as needed */
    margin-bottom: 10px; /* add some space between the image and the text */
}

.instruction-item p {
    margin-top: 10px;
    color: #555; /* Medium gray */
    line-height: 1.5; /* Increase line height for readability */
}

#radioContainer {
    margin-bottom: 25px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

input[type="radio"] {
    margin-top: 0px;
}

.tooltip {
    position: absolute;
    display: none;
    background-color: #c4def2;
    color: black;
    border-radius: 5px;
    padding: 5px;
    box-shadow: 0px 0px 10px 2px rgba(0,0,0,0.3);
    z-index: 1000;  /* High z-index to make sure it's on top */
}

.select-col {
    width: 20px;  /* Adjust as needed */
}
.content-container {
    display: flex;
    flex-direction: column;
}

.custom-section {
    background-color: #f0f0f0; /* Light gray background */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 0px 0px 10px 2px rgba(0,0,0,0.3); /* Shadow effect */
    padding: 20px; /* Some padding */
    margin: 20px 200px 20px 200px;
}

.cust-input, .notes-input {
    display: block; /* Make the input fields block elements */
    margin: auto; /* Center the input fields */
    width: 90%; /* Width of the input field */
    padding: 10px; /* Padding around the text */
    border: 1px solid #cccccc; /* Border around the input field */
    border-radius: 3px; /* Rounded corners */
    font-size: 1rem; /* Font size of the text */
}

.notes-input {
    height: 200px; /* Fixed height for the Notes textarea */
}

.centered-label {
    display: block;
    text-align: center;
}

#the-pics img {
    height: auto;
    max-width: fit-content;
}

#results {
    width: 40%;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.9);
    font-family: Arial, sans-serif;
    font-size: 1rem;
    color: black;
    white-space: pre-wrap; /* Preserve line breaks and spaces */
}

#knova_results {
    width: 40%;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.9);
    font-family: Arial, sans-serif;
    font-size: 1rem;
    color: black;
    white-space: pre-wrap; /* Preserve line breaks and spaces */
}

#more-text {
    width: 100%;
    max-width: 90%;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.9);
    font-family: Arial, sans-serif;
    font-size: 1rem;
    color: black;
    white-space: pre-wrap; /* Preserve line breaks and spaces */
}

.result {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.result h2 {
    margin-top: 20px;
    color: #333;
}

.result p {
    margin-left: 10px;
    color: #666;
}

.error {
    border: 1px solid #000;
    margin-bottom: 10px;
    padding: 10px;
}

#settings-button {
    margin-right -80px;
}

#calendar {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 99.5%;
    min-height: 100vh;
    grid-gap: 5px;
    background-color: #f0f0f0;
    padding: 5px;
}

.past-date {
    background-color: #7a7a7a;
    opacity: 0.3;
}

.month-name {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0px;
    background-color: #f2f2f2; /* adjust the color as needed */
    box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.3); /* adjust the shadow as needed */
    grid-column: span 5; /* makes the month name span all columns */
    height: fit-content;
    padding: 5px;
    border-radius: 5px;
}

#next-month {
    position: static;
    left: -15px;
}

.day, .day-name {
    text-align: center;
    transition: background-color 0.3s;
    border: 1px solid #e0e0e0; /* New */
    box-shadow: 0 2px 5px rgba(0,0,0,0.3); /* New */
    border-radius: 5px;
    font-family: 'Roboto', sans-serif; /* New */
}

.day-name {
    background-color: #002f67;
    color: #fff;
    padding: 5px;
    font-weight: 600;
    font-size: 1.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.day {
    background-color: #b8c2cf;
    color: #000;
    cursor: pointer;
    display: flex;
    flex-direction: column;

}

.day:hover {
    background-color: #5688c4;
    transform: scale(1.02);
}

.date {
    padding: 1px;
}

.event {
    overflow: auto;
    background-color: #fff;
    color: #000;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1px;
    min-height: 30px;
    max-height: max-content;
    font-size: 0.9rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    border-radius: 10px;
    width: 300px;
    padding: 20px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#event-select {
    width: 100%;
    height: 40px;
    margin-bottom: 20px;
    padding: 0 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#submit-event {
    padding: 10px 20px;
  background-color: #2a90b8;
  color: white;
  font-size: 0.9rem;
  border: 2px solid #93c7d8;
  cursor: pointer;
  border-radius: 4px;
    transition: background-color 0.3s ease;
}

#submit-event:hover {
    background-color: #0f4b63;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s forwards;
}

.slide-out-left {
    animation: slideOutLeft 0.5s forwards;
}

.slide-in-right {
    animation: slideInRight 0.5s forwards;
}

.slide-out-right {
    animation: slideOutRight 0.5s forwards;
}

.install {
    color: red;
    font-weight: bold;
}
.collection {
    color: green;
    font-weight: bold;
}
.holiday {
    color: blue;
    font-weight: bold;
}
.other-event {
    color: orange;
    font-weight: bold;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center; /* add this */
    justify-content: center; /* add this */
}

.modal-content {
    background-color: #fff;
    border-radius: 10px;
    width: 300px;
    padding: 20px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
}

/* Form Styling */
#event-form {
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 10px; /* Creates space between form elements */
}

#event-form select,
#event-form input[type="text"],
#event-form input[type="date"] {
    padding: 10px;
    font-size: 1rem;
}

#event-form button {
    padding: 10px;
    font-size: 1rem;
    background-color: #0095f6;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#event-form button:hover {
    background-color: #0076c6;
}

@media (min-width: 768px) {
    #event-form select,
    #event-form input[type="text"],
    #event-form input[type="date"],
    #event-form button {
        padding: 5px;
        font-size: 1.2rem;
    }
}

/* Form Styling */
#readingsForm {
    width: 90%;
    display: flex;
    flex-direction: column;
}

#readingsForm select,
#readingsForm input[type="text"],
#readingsForm input[type="date"] {
    padding: 10px;
    font-size: 1rem;
}

#contextMenu {
  position: absolute;
    background-color: #fff;
    border-radius: 10px;
    width: 250px;
    padding: 20px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hidden {
  display: none;
}

.visible {
    display: block; /* or flex/grid/etc., depending on layout */
}

.button-right-click {
  background-color: #2a90b8;
  color: white;
  font-size: 0.9rem;
  border: 2px solid #93c7d8;
  cursor: pointer;
  border-radius: 4px;
    padding: 10px 20px;
    text-transform: uppercase;
    margin-top: 10px;
}

ul {
    padding-inline-start: 0px;
}

.options-label {
    font-weight: bold;
    margin-bottom: 0px;
    font-size: 1.2rem;
    color: #555555;
}

.calendar-item {
    grid-column: span 4; /* Make it span across all 4 columns */
    background-color: #ffffff; /* A different background color to make it stand out */
    height: content; /* Allow it to resize based on content */
    padding: 15px; /* Slightly more padding */
    transition: background-color .9s ease, transform .9s ease; /* Transition for smooth color and transform changes */
}

.calendar-item:hover {
    background-color: #dae7f7; /* Change the background color on hover */
    transform: scale(1.02); /* Slightly enlarge the item on hover */
    animation: bounce 0.6s; /* Bounce animation */
}

/* Bounce animation */
@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.calendar-item img {
    width: 75px; /* Double the size of the image */
    height: 75px;
}

.calendar-item p {
    font-size: 1.3rem; /* Double the size of the text */
}

/* Hide mobile link by default */
.mobile-link {
    display: none;
}

.multiline {
  white-space: pre-line;
}
pre {
    margin: 5px;
    font-size: 0.9rem
}

a:-webkit-any-link {
    margin: 5px;
    color: -webkit-link;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem
}

.custom-search-input {
    font-weight: bold;
    font-size: large;
  width: 100%;
  padding: 5px;
  margin: 8px 0;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-radius: 4px;
}

.tech-input {
  width: 98%;
  padding: 12px 17px;
  margin: 5px;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-radius: 4px;
}

.button {
  width: 180px;
  background-color: #2a90b8;
  color: white;
  font-size: 0.9rem;
  border: 2px solid #93c7d8;
  cursor: pointer;
  border-radius: 4px;
  padding: 10px;  /* Using viewport width units for dynamic sizing */
  text-transform: uppercase; /* Corrected 'text-color' to 'color' */
  font-weight: bold;
  box-sizing: border-box;  /* Make sure padding and border are included in the total width */
  text-align: center;  /* Center the text horizontally */
  margin: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.outer-center {
  margin-top: -20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.inline-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #555;
  margin: 3px 0px 0px 0px;
  display: inline-block;
}

.inner-center {
  display: contents;
}

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

.center input {
    margin: 10px 10px;  /* add some horizontal margin between buttons */
}

.tech-textarea {
  width: 98%;
  height: 50px;
  padding: 12px 20px;
  margin: 5px;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-radius: 4px;
}

input[type="text" i] {
    border-radius: 5px;
}

#toggle-customer-info {
  background-color: #2a90b8;
  color: white;
  font-size: 0.9rem;
  border: 2px solid #93c7d8;
  cursor: pointer;
  border-radius: 4px;
  padding: 6px 12px;
}

.container {
  max-width: 800px;
  text-align: center;
  margin: 100px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#login-heading {
  text-align: center;
  margin-top: 150px;
  background: transparent;
  border-radius: 20px;
  max-width: 25%;
  margin: 0 auto;
}

body::before {
    content: "";
    position: fixed; /* Fixed position */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1; /* Place it behind the content */

    background-image: url('../images/main_bg10.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.9;
}

body {
    font-family: Arial, sans-serif;
    padding-top: 120px;
    margin-bottom: auto;
    background-color: #f3f4f6;
}

.tech-entry-fieldset {
    display: block;
    max-width: 80%;
    min-width: min-content;
    border: 1px solid #ccc;
    padding: 10px;
    margin: auto;
    max-height: 80vh;
    overflow-y: auto; /* Enable vertical scrolling */
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none;  /* For Internet Explorer and Edge */
  text-align: left;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 1rem;  /* Adjust font size */
  font-weight: bold;  /* Bold text */
  color: black;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

tech-entry-fieldsetSS {
    display: none;
}

.tech-entry-fieldset1 {
    max-width: 90%;
    min-width: min-content;
    border: 1px solid #ccc;
    padding: 10px;
    margin: auto;
    max-height: 80vh;
    overflow-y: auto; /* Enable vertical scrolling */
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none;  /* For Internet Explorer and Edge */
  text-align: left;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 1rem;  /* Adjust font size */
  font-weight: bold;  /* Bold text */
  color: black;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tech-entry-fieldset1 .tech-input,
.tech-entry-fieldset1 .tech-textarea {
    max-width: 100%; /* This makes sure these elements don't exceed the fieldset's width */
    /* Additional styles for input and textarea */
}

.number-input {
  display: inline-flex;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.minus, .plus {
  cursor: pointer;
  padding: 10px;
  width: 30px;
  background-color: #dfdfeb;
  border: none;
  font-size: 1.5rem;
  color: #333;
}

.minus:hover, .plus:hover {
  background-color: #bfc0e0;
}

.quantity {
  width: 60px;
  border: none;
  text-align: center;
}

#partsTable .in-stock-col,
#partsTable td:nth-child(6) {
    width: 5%;
    text-align: center;
}

#partsTable .part-col,
#partsTable td:nth-child(4) {
    width: 25%;
}

#partsTable .select-col,
#partsTable td:nth-child(1) {
    width: 4%;
    text-align: center;
}

#partsTable td:nth-child(2) {
    width: 15%;
}

#partsTable td:nth-child(3) {
    width: 15%;
}

#partsTable .in-stock-col,
#partsTable td:nth-child(6) {
    width: 5%;
    text-align: center;
}

#partsTable .quantity-col,
#partsTable td:nth-child(7) {
    width: 131px;
}

/* For Chrome, Safari, Edge, Opera */
.quantity::-webkit-inner-spin-button,
.quantity::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#copiersTable .reserved-col,
#copiersTable td:nth-child(6) {
    width: 8%;
    text-align: center;
}

.login-image-container {
    text-align: center;
}

legend {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
}

.customer-info-container {
    display: flex;
    justify-content: space-between;
}

.customer-info-left,
.customer-info-right {
    width: 45%; /* Adjust width as needed */
}

#notes {
    white-space: pre-wrap;       /* CSS 3 */
    white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
    white-space: -pre-wrap;      /* Opera 4-6 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;       /* Internet Explorer 5.5+ */
}

.forms-container {
    display: flex;
    align-items: start;
    justify-content: space-between;
    height: 100%; /* Adjust according to layout */
    position: relative;
}

.error-forms-container {
    display: flex;
    align-items: start;
    justify-content: space-between;
    height: 100%; /* Adjust according to layout */
    position: relative;
}

#addMachineForm {
    position: sticky; /* Make the form sticky */
    top: 100px; /* Distance from the top of the viewport */
    display: block; /* Always displayed */
    left: 0; /* Align to the left */
    z-index: 10; /* Ensure it's above other content */
    background-color: rgba(245, 245, 245, 0.9);
    max-width: 80%; /* Adjust as needed */
    margin-top: 0px; /* Optional: Space above the form */
    padding: 10px; /* Optional: Padding around the form content */
    box-shadow: 0px 0px 10px 2px rgba(0,0,0,0.3); /* Optional: Add shadow for better visibility */
}

#addMachineForm {
    transition: all 0.1s ease; /* Smooth transition for the form appearance */
}

#it_call_form,
#log_it_call_form {
    max-width: 48%;
    min-width: min-content;
    border: 1px solid #ccc;
    padding: 10px;
    margin: auto;
    background-color: rgba(245, 245, 245, 0.9);
    max-height: 80vh;
    overflow-y: auto; /* Enable vertical scrolling */
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none;  /* For Internet Explorer and Edge */
}
#it_call_form {
    margin-top: 0px;
}
.checkbox-label-container {
    display: flex;
}

#outstanding_calls_form {
    width: 43%; /* Adjust width as needed */
    border: 1px solid #ccc;
    padding: 10px;
    margin: auto; /* Space between forms */
    background-color: rgba(245, 245, 245, 0.9);
    max-height: 80vh;
    overflow-y: auto; /* Enable vertical scrolling */
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none;  /* For Internet Explorer and Edge */
}

#it_call_form::-webkit-scrollbar,
#outstanding_calls_form::-webkit-scrollbar,
#log_it_call_form::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Opera */
}

#outstanding_calls_form1 {
    width: 90%; /* Adjust width as needed */
    border: 1px solid #ccc;
    padding: 10px;
    margin: auto; /* Space between forms */
    background-color: rgba(245, 245, 245, 0.9);
    max-height: 80vh;
    overflow-y: auto; /* Enable vertical scrolling */
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none;  /* For Internet Explorer and Edge */
    margin-bottom: 10px;
}

#it_call_form::-webkit-scrollbar,
#outstanding_calls_form1`::-webkit-scrollbar,
#log_it_call_form::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Opera */
}

.left-panel1 {
    flex: 1 1 60%;
}

.right-panel1 {
    flex: 1 1 40%;
}

.outstanding-calls-table {
    width: 100%;
    color: black; /* Corrected property */
    border-collapse: collapse;
}

.editable {
    color: green;
    min-height: 20px; /* or any other suitable minimum height */
    min-width: 50px;  /* or any other suitable minimum width */
    display: inline-block; /* This makes sure the min-height is respected */
    padding: 4px; /* Optional, for better visual appearance */
    border: 1px solid transparent; /* Invisible border to maintain consistent size when editing */
}

.editable[contentEditable="true"] {
    border: 1px solid #aaa;
    background-color: #fff;
}

/* Ensure links are still clickable */
.editable[href]:empty::before {
    content: attr(href);
    color: grey; /* Optional: style for indicating an empty link */
}

/* Style for empty pre elements to indicate they are clickable */
.editable:empty::before {
    content: 'Double Click to edit';
    font-size: 0.8rem;
    color: grey; /* Optional: style for indicating emptiness */
}

.completed-calls-form {
    max-height: 80vh;
    width: 96%;
    color: black;
    border: 1px solid #ccc;
    padding: 10px;
    margin-left: 20px; /* Space between forms */
    margin-top: 0px;
    background-color: rgba(255, 255, 255, 0.9);
    position: sticky; /* Make the form sticky */
    top: 100px; /* Distance from the top of the viewport */
}

.completed-calls-table {
    width: 100%;
    border-collapse: collapse;
    color: black;
    table-layout: auto; /* Allows flexible column sizing */
    overflow-x: auto; /* Horizontal scroll for the table if needed */
}

.completed-calls-table th,
.completed-calls-table td {
    border: 1px solid #ddd;
    padding: 8px;
    color: black;
    text-align: left;
    white-space: nowrap; /* Adjusts text wrapping */
    overflow: hidden; /* Hides text that overflows */
    text-overflow: ellipsis; /* Adds ellipsis for overflowed text */
    min-width: 100px; /* Sets a minimum width for table cells */
}

.outstanding-calls-table th,
.outstanding-calls-table td {
    font-size: 0.9rem;
    border: 1px solid #ddd;
    padding: 8px;
    color: black;
    text-align: left;
    white-space: normal; /* Adjusts text wrapping */
    overflow: hidden; /* Hides text that overflows */
    text-overflow: ellipsis; /* Adds ellipsis for overflowed text */
    min-width: 100px; /* Sets a minimum width for table cells */
}

.outstanding-calls-table th {
    background-color: #f2f2f2; /* Header background */
}

.outstanding-calls-table td.long-text {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 0.9rem; /* Adjust line height as needed */
    max-height: 4.5rem; /* line-height * number of lines */
    white-space: normal;
}


.completed-calls-table th {
    background-color: #f2f2f2; /* Header background */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Modal Background */
.modal-excel {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    align-items: center;
    justify-content: center;
    display: flex; /* Centers the modal-content vertically and horizontally */
}

/* Modal Content */
.modal-content-excel {
    background-color: #fff;
    border-radius: 10px;
    width: 100%; /* Increase the width */
    max-width: 500px; /* Set a max-width for larger screens */
    padding: 20px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
    margin-top: 200px;
}

.modal-content-excel input[type="date"] {
    /* Basic styling for date inputs */
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px; /* Spacing after the input field */
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px; /* Spacing between buttons */
}

.modal-button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    flex-grow: 1; /* Makes the buttons take up equal space */
}

.modal-button:hover {
    background-color: #0056b3; /* Darker shade for hover effect */
}

.modal-close {
    background-color: #dc3545; /* Different color for the close button */
}

.modal-close:hover {
    background-color: #c82333; /* Darker shade for hover effect on close button */
}

.modal-excel-content form label,
.modal-excel-content form input {
    width: 100%; /* Full width for label and input */
    margin-bottom: 10px; /* Spacing between form elements */
}

/* Style for the close button */
.modal-excel-close {
    padding: 10px 20px;
    margin-top: 15px;
    border: none;
    border-radius: 5px;
    background-color: #007bff; /* Example button color, adjust as needed */
    color: white;
    cursor: pointer;
}

.modal-excel-close:hover {
    background-color: #0056b3; /* Darker shade for hover effect */
}

.hidden-column {
    display: none;
}

.max-width-column {
    max-width: 50px; /* Adjust as needed */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.checkbox-container {
    display: flex;
    justify-content: space-around; /* Adjusts space between checkboxes */
    align-items: center; /* Aligns items vertically in the center */
}

.checkbox-container > div {
    margin-right: 10px; /* Adds space between each checkbox */
}

.checkbox-container label {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Optional: If you want to align the text next to the checkbox */
.checkbox-container input[type="checkbox"] {
    margin-left: 23px;
    margin-right: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.priority-it-container {
    display: flex;
    align-items: center; /* Aligns items vertically in the center */
}

.priority-it-container select {
    margin-right: 10px;
    width: -webkit-fill-available;
}

.priority-it-container label {
    width: -webkit-fill-available;
    margin-left: 10px;
    margin-top: 0px;
}

.priority-it-container input[type="checkbox"] {
    margin-left: 30px;
}

#custom_notes {
    white-space: pre-wrap;
}

.call-times {
    display: flex;
}

.half-screen {
    width: 50%;
}

tech-entry-fieldset {
    display: block;
}

.flash-message-container {
    margin: 10px auto;
    width: 90%;
    max-width: 800px;
}

.flash-message {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.flash-message.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.desktop-only {
    display: block;
}
.mobile-only {
    display: none;
}

#status_selector {
    width: auto;
}

#addCopierForm {
    margin-top: -30px;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #d9534f;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  margin: 0 auto 10px auto;
  animation: spin 1s linear infinite;
}

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

button.delete-btn:focus {
    outline: thick solid red;
}

#call-history-box table.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-top: 10px;
}

#call-history-box th {
    background-color: #004085;
    color: white;
    padding: 8px;
    text-align: left;
}

#call-history-box td {
    background-color: #f9f9f9;
    padding: 10px;
    vertical-align: top;
    border-top: 1px solid #ddd;
}

#call-history-box tr:nth-child(even) td {
    background-color: #f0f0f0;
}

#call-history-box td div {
    margin-bottom: 4px;
}






























@media (max-width: 795px) {


  label[for="total_time"],
  #total_time {
    display: none;
  }

#status_selector {
    margin-right: 20px;
    width: 90px;
}

.checkbox-container label {
    margin-left: -5px;
}

.checkbox-container input[type="checkbox"] {
    margin-left: 4px;
    transform: scale(1.5);
}

#message_left {
    margin-left: 25px;
}

#called_no_answer {

}

  label.inline-label[for="issue_description"] {
    margin-top: 50px;
  }

.checkbox-container{
    position: absolute;
    left: 0px;
}

#outstanding_calls_form {
        margin-bottom: 65px;
        margin-top: 10px;
    width: 95%; /* Adjust width as needed */
}

#toggle-customer-info {
        width: 35%;
}

#it_call_form,
#log_it_call_form {
        max-width: 95%;
        width: 95%;
        min-width: -webkit-fill-available;
    border: 1px solid #ccc;
    padding: 10px;
    margin: auto;
    background-color: rgba(245, 245, 245, 0.9);
    max-height: 80vh;
    overflow-y: auto; /* Enable vertical scrolling */
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none;  /* For Internet Explorer and Edge */
      width: 100%;
}

#it_call_form {
    margin-top: -30px;
}
    .forms-container {
        position: relative;
      flex-direction: column;
          width: 100%;
          margin-top: 30px;
    }

#gpt_toggle {
    transform: scale(1.2);
    accent-color: #007BFF;
}

.radio-group {
    height: 33px;
    display: flex;
    gap: 20px;
    margin: 8px 0 16px;
}

.radio-option {
    display: flex;
    align-items: center;
    font-weight: 500;
    gap: 6px;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    transform: scale(1.2);
    accent-color: #007BFF;
    margin-bottom: 63px;
}

    #workMileageForm, #addCopierForm, #addPartsForm {
        max-height: 600px;
        width: 95%;
        overflow: hidden;
    }


#addCopierForm {
    margin-top: 0px;
}


  .title-bar {
    display: block;
    flex-direction: column;
    margin-top: 50px;
    align-items: center;
    text-align: center;
  }

  .title-bar img {
    display: block; /* ✅ Make the image visible on small screens */
  }

    form {
        margin: auto;
        width: 90%;
        padding: 10px;
        margin-bottom: 20px;
    }

    .centered-label {
        font-size: 0.9rem;
    }

    .desktop-only {
        display: none;
    }
    .mobile-only {
        display: block;
    }

.part-name {
  background-color: #dfeaf7;
  color: #2d3436;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  font-weight: 600;
  font-size: 0.75rem;
}


.part-no-mobile {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  font-size: 0.75rem;
  font-weight: bold;
  color: #007BBD;
  max-width: 100px;
  overflow: hidden;
  white-space: nowrap;
  padding: 4px;
  box-sizing: border-box;
}

/* When editing */
.part-no-mobile input {
  width: 90%;
  max-width: 90px;
  font-size: 0.75rem;
  text-align: center;
  box-sizing: border-box;
  padding: 4px;
  margin: auto;
  display: block;
}

#partsTableSS td.part-no-mobile {
  max-width: 100px;
  overflow: hidden;
  white-space: nowrap;
}

.part-no-input {
  width: 90%;
  max-width: 90px;
  text-align: center;
  font-size: 0.75rem;
  padding: 4px;
  box-sizing: border-box;
}

.tech-entry-fieldsetSS {
    display: block;
    max-width: 80%;
    min-width: min-content;
    border: 1px solid #ccc;
    padding: 10px;
    margin: auto;
    max-height: 80vh;
    overflow-y: auto; /* Enable vertical scrolling */
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none;  /* For Internet Explorer and Edge */
  text-align: left;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 1rem;  /* Adjust font size */
  font-weight: bold;  /* Bold text */
  color: black;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tech-entry-fieldsetSS .tech-input,
.tech-entry-fieldsetSS .tech-textarea {
    max-width: 100%; /* This makes sure these elements don't exceed the fieldset's width */
    /* Additional styles for input and textarea */
}

.tech-entry-fieldset{
        max-width: 95%;
        width: 100%;
        min-width: -webkit-fill-available;
}

  /* ====== General Layout ====== */
  body {
    margin-bottom: 65px;
    font-size: 1rem;
    padding-top: 85px;
  }

  form,
  #reserveCopierForm {
    width: 95%;
    margin: auto;
    padding: 10px;
  }

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

  .center input {
    margin: 10px;
  }

  .outer-center,
  .inner-center {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .inner-center {
    width: 100%;
  }

    .custom-section {
        margin-top: 10px;
    }

  .notes-input {
    height: 100px;
  }

  .login-image {
    width: 100%;
    height: auto;
  }

  /* ====== Button Styles ====== */
.button-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #007BBD;
    text-align: center;
    padding: 10px 0;
    z-index: 999;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.2);
}

.options-button {
    max-width: none;
    color: white;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 20px;
    cursor: pointer;
}

#extraButtons,
.extra-buttons {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

#extraButtons.shown,
.extra-buttons.shown {
  max-height: 300px;
  opacity: 1;
}

#extraButtons.hidden,
.extra-buttons.hidden {
  max-height: 0;
  opacity: 0;
}

.small-button {
    max-width: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

button[type="button"] {
    border-radius: 20px;
}

  /* ====== Table Styles ====== */
  #partsTable {
    display: none;
  }

  .parts-table-ss {
    display: block;
  }

#partsTableSS {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
}

#partsTableSS th,
#partsTableSS td {
    border-right: 1px solid #ccc;
    padding: 6px;
    vertical-align: top;
    white-space: normal;
}

#partsTableSS th:last-child,
#partsTableSS td:last-child {
    border-right: none;
}

/* Optional: allow manual resizing in some browsers */
#partsTableSS th {
    resize: horizontal;
    overflow: auto;
}

/* Optional: add horizontal lines for readability */
#partsTableSS tr {
    border-bottom: 1px solid #ddd;
}

/* Target the first column (checkboxes) */
#partsTableSS th:nth-child(1),
#partsTableSS td:nth-child(1) {
    width: 10px;
    text-align: center;
    vertical-align: middle;
}

#partsTableSS td:nth-child(1) .tech-input[type="checkbox"] {
  display: block;
  margin: 0 auto;
  transform: scale(1.2); /* or 2 for bigger */
  cursor: pointer;
}

#partsTableSS td:nth-child(2) {
  font-size: 0.75rem;
  color: #333;
  font-weight: bold;
  text-align: center;
  vertical-align: middle;
  line-height: 1.2;
  height: 100%;
  padding-top: 12px; /* optional: fine-tune alignment visually */
  padding-bottom: 12px;
}

/* ✅ Quantity Column (3rd column) - remove duplicate rules */
#partsTableSS td:nth-child(3) {
  text-align: center;
  font-size: 0.9rem;
  white-space: nowrap;
  max-width: 100px;
  overflow: hidden;
  vertical-align: middle;
}

#partsTableSS td:nth-child(4) {
  text-align: center;
  vertical-align: middle;
  padding-top: 12px;
  padding-bottom: 12px;
}

#partsTableSS td:nth-child(4) input[type="number"] {
  font-size: 1rem;
  width: 50px;
  text-align: center;
  padding: 6px 0;
}

/* Let the quantity input wrap safely */
.number-input {
  max-width: 100%;
  flex-wrap: nowrap;
  overflow: hidden;
  justify-content: space-around; /* more spacing */
}


/* Adjust the buttons to avoid cut-off */
.number-input button {
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 18px;
  flex-shrink: 0;
}

/* Tighter input field */
.number-input input {
  width: 40px;
  height: 28px;
  font-size: 16px;
  margin: 0 4px;
}


  .number-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .number-input input {
    width: 50px;
    font-size: 16px;
    text-align: center;
  }

  .number-input button {
    padding: 4px 8px;
    font-size: 16px;
  }

  /* ====== Misc Layout ====== */
  #results {
    width: 90%;
  }

  .mobile-link {
    display: inline;
  }

  .desktop-link {
    display: none;
  }

  .construction-gif {
    max-width: 100px;
  }

  .modal {
    display: none;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
  }

  .modal-content {
    background: #fff;
    border-radius: 10px;
    width: 300px;
    padding: 20px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #hidden-title {
    display: none;
  }

  .welcome-message {
    margin: 10px 20px 20px;
    font-size: 1rem;
  }

  h1 {
    font-size: 1.5rem;
    margin: 5px 0 10px;
  }

  th, td {
    font-size: 0.6rem;
  }

  table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
  }

  table th {
    width: 45px;
  }

  .table-outer-container,
  .table-container table {
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    display: block;
  }

  /* ====== Calendar & Instructions ====== */
  #calendar {
    grid-template-columns: repeat(5, 1fr);
    padding: 2px;
  }

  .month-name {
    font-size: 1rem;
  }

  .day, .day-name, .date {
    font-size: 0.8rem;
    padding: 5px;
  }

  .event {
    font-size: 0.3rem;
    height: 30px;
  }

  .instruction-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-content: center;
  }

  .calendar-item {
    grid-column: span 2;
  }

  .instruction-item {
    text-align: center;
  }

  .instruction-item img {
    width: 50px;
    height: 50px;
  }

  .instruction-item p {
    font-size: 0.8rem;
  }

  /* ====== Form Elements ====== */
  form label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
    margin-top: 5px;
  }

  input[type="radio"] {
    margin-top: 60px;
  }

  .construction-gif {
    max-width: 100px;
  }

  th.select-col {
    background-color: #9dd7f5;
    color: black;
    border-color: black;
    border-radius: 3px;
    text-align: center;
  }

  .logo-container img {
    width: 100%;
    height: auto;
    position: relative;
    top: 0;
  }

#partsTableSS td {
  min-height: 40px; /* or whatever gives a consistent row height */
}

}






@media screen and (min-width: 601px) and (max-width: 850px) {

    th, td {
        font-size: 0.6rem;
    }

    .event {
        font-size: 0.7rem;
        height: 30px;
    }

    #it_call_form {
        display: none;
    }

    #outstanding_calls_form {
        width: 98%;
    }

    #searchbox {
        display: none;
    }

}






@media (min-width: 601px) {
  #search-toggle {
    display: none;
  }
}
