body {
  font-family: "Roboto", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f2f5;
  color: #333;
  line-height: 1.6;
  height: 100%;
  display: flex;
  flex-direction: column;
}

header {
  background-color: black;
  padding: 15px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar {
  background-color: black;
  padding: 1rem 0;

}

.navbar-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  gap: 30px;
}

/* Navbar Links */
.navbar-menu .nav-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px;
    position: relative;
    transition: color 0.3s;
}

/* Underline effect on hover */
.navbar-menu .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: #FF0000; /* Set underline color */
    transition: width 0.3s ease, left 0.3s ease;
}

/* Expand underline on hover */
.navbar-menu .nav-link:hover::after,
.navbar-menu .nav-link.active::after {
    width: 100%;
}

/* Dropdown Menu Links */
.dropdown-content .nav-link {
    display: inline-block;
    padding: 10px;
    text-align: left;
    transition: color 0.3s;
    position: relative;

}

/* Underline effect for dropdown links */
.dropdown-content .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    transition: width 0.3s ease-in-out;
}

/* Expand underline on hover */
.dropdown-content .nav-link:hover::after {
    width: 100%;
}

/* Underline effect for dropdown links */
.dropdown-content .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #FF0000;
    transition: width 0.3s ease, left 0.3s ease;
}

/* Expand underline on hover */
.dropdown-content .nav-link:hover::after {
    width: 100%;
}

/* Show the dropdown content on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Prevent underline on the dropdown button */
#orders-dropdown-btn::after {
    display: none !important;
}

.inventory-page {
  display: flex;
  height: 100vh;
}

/* Prevent scrolling ONLY for home.html */
.home-page {
  overflow: auto;
  width: 100%;
  min-height: 100vh;
}

.sidebar {
  width: 30%;
  margin: 10px auto;
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar h3 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.6rem;
  color: #343a40;
  font-weight: bold;
}

.sidebar ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  margin-bottom: 10px;
}

.sidebar ul li a {
  text-decoration: none;
  color: black;
  font-size: 1.2rem;
  font-weight: 500;
}


.sidebar ul li a.active {
  font-weight: bold;
  color: white;
}





/* Hide the Floating Button on Desktop */
.floating-categories-btn {
    display: none; /* Button is only needed on mobile */
}

/* Mobile-Specific Styles */
@media (max-width: 1200px) {
    /* Completely Hide Sidebar by Default */
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        width: 75%;
        height: 100%;
        transition: left 0.3s ease-in-out;
        z-index: 1000;
        padding: 20px;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    }

    .sidebar.active {
        left: 0; /* Slide in when activated */
    }

    /* Floating Categories Button (Only for Mobile) */
    .floating-categories-btn {
        display: block;
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: red;
        color: white;
        border: none;
        padding: 12px 15px;
        font-size: 16px;
        border-radius: 25px;
        cursor: pointer;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
        transition: background 0.3s;
        z-index: 1100;
    }


    /* Overlay to Close Sidebar */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        display: none;
        z-index: 999;
    }

    .sidebar.active ~ .sidebar-overlay {
        display: block;
    }
}

a.button, button {
    margin-top: 2rem;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}

a.button:hover, button:hover {
    background-color: red;
    color: white;
}

/* New Order Styling*/
.order-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
}

.form-and-basket {
  width: 60%;
  display: flex;
  gap: 2rem;
}

.price-quantity-container {
    display: flex;
    flex-direction: column;
}

.price-quantity-container .form-group {
    width: 100%;
}

.form-container,
.basket-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 60%; /* Adjusts for side-by-side layout */
    padding: 20px;
    max-width: 600px;
}

.form-container {
    max-width: 400px;
}

.new-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    overflow-x: auto;
}

.new-order-table th,
.new-order-table td {
  border: 1px solid #ddd;
  padding: 0.5rem;
  text-align: center;
}

.new-order-table th {
  background-color: #f4f4f4;
  font-weight: bold;
}

.new-order-table tr:hover {
  background-color: #f1f1f1;
}

.inventory-remove-button {
  margin: 0 auto;
  /* Ensure the button behaves as a block element so margin auto works */
  display: block;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  background-color: gray;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

/* New Order Styling*/

/* Customer Form Styling */
.update-form-container {
  max-width: 600px;
  width: 60%;
  margin: 25px auto 10px;
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: initial;
}

/* Customer Form Styling */


.section-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.styled-form .form-group {
  margin-bottom: 1rem;
}

.styled-form .form-group label {
  display: block;
  margin-bottom: 0.5rem;
}

.styled-form .form-group input {
  width: 80%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 8px;
  display: inline-block;
  font-size: 18px;
}

.form-group {
  margin-bottom: 5%;
}

.customer-form input[type="text"],
.customer-form input[type="number"],
.customer-form input[type="email"],
.customer-form select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

.proceed-button {
  display: block;
  margin: 1.5rem auto;
  padding: 0.7rem 1.5rem;
  background-color: #343a40;
  color: white;
  text-decoration: none;
  text-align: center;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.proceed-button:hover {
  background-color: red;
}

.inventory-container {
  display: flex;
  gap: 20px;
  padding: 5px;
  margin-top: 90px;
  background-color: #f7f9fc;
  border-radius: 8px;
  overflow-y: auto;
}

.main-content {
  width: 120%;
  margin: 10px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.main-content h3 {
  font-size: 1.4rem;
  color: #343a40;
  margin-bottom: 15px;
}



.filter-buttons {
    display: flex; /* Aligns buttons horizontally */
    gap: 10px; /* Adds spacing between buttons */
    align-items: center; /* Ensures buttons are vertically aligned */
    margin-bottom: 10px; /* Adds spacing below */
}

.filter-button {
    padding: 10px 15px;
    font-size: 14px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.filter-button:hover {
    background-color: #0056b3;
}



/* Filter Section */
#filterSection {
    display: none;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.filter-dropdown {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-dropdown button {
    background-color: #3498db;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease-in-out;
}

.filter-dropdown button:hover {
    background-color: #2980b9;
}

/* Filter Menu */
.filter-menu {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    display: none;
}

.filter-group {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.filter-group label {
    font-weight: bold;
}

.filter-group select {
    padding: 6px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Floating Filter Button */
.floating-filter-btn {
    position: fixed;
    top: 150px;
    right: 20px;
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 20px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
    z-index: 1100;
}

.floating-filter-btn:hover {
    background-color: #2980b9;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .search-bar-container {
        justify-content: center;
    }

    .floating-filter-btn {
        bottom: 70px;
        top: auto;
        font-size: 14px;
        padding: 8px 12px;
    }

}


/* Search Bar Styling */
.search-bar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}


.search-bar-container label {
    margin-right: 8px;
    font-weight: bold;
    font-size: 17px;
}


#inventorySearch {
  border: 1px solid #aaa;
  border-radius: 3px;
  padding: 5px;
  background-color: transparent;
  margin-left: 3px;
  width: 400px;
  max-width: 50%;
}

#inventorySearch:focus {
    border-color: #3498db;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.5);
}


.delete-button {
    background-color: #dc3545;
    margin: 10px;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease-in-out;
}

.delete-button:hover {
    background-color: #c82333;
}



#total_products_label {
  margin: 5px;
  font-size: 14px;
  font-weight: bold;
  color: #444;
}

.document-item {
    background-color: #f9f9f9;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 850px; /* Ensures uniform width with the search bar */
}

.document-item table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* Ensures uniform column sizes */
}

.document-item table td {
  padding: 6px;
  vertical-align: top;
  border-bottom: 1px solid #e9ecef;
  text-align: center;
}

.document-item table td:first-child {
  font-weight: bold;
  color: #495057;
}

.document-item table td:last-child {
  color: #212529;
}

.document-item table tr:last-child td {
  border-bottom: none;
}


@media (max-width: 1200px) {
    .document-item {
        width: 90%;
    }
}




.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown content (initially hidden) */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%; /* Position it below the parent link */
    background-color: #3a3a3a; /* Matching navbar background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 10px;
    margin: 0;
    z-index: 1000;
}


.map-button {
  background: none;
  border: none;
  font-size: 24px; /* Slightly larger */
  cursor: pointer;
  padding: 5px;
  transition: all 0.3s ease-in-out;
}

/* Hover effect for the active button */
.map-button:hover {
  color: #1e90ff; /* Bright blue for hover effect */
  transform: scale(1.2); /* Slight zoom effect */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* Disabled button styling */
.map-button.disabled {
  color: grey;
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

/* Tooltip for disabled button */
.map-button.disabled::after {
  content: "Δεν υπάρχει τοποθεσία";
  position: absolute;
  background-color: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 12px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  transform: translateY(-30px);
}

/* Show tooltip on hover */
.map-button.disabled:hover::after {
  visibility: visible;
  opacity: 1;
}

/* Search Bar */
.category-search {
  width: 90%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
}

/* Category List - Fixed height to prevent container size changes */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  height: 100vh; /* Fixed height */
  overflow-y: auto; /* Enable vertical scrolling */
}

.category-item {
    background: #ffffff;
    margin-bottom: 10px;
    transition: background 0.3s ease-in-out;
}

.category-item:hover {
    background: #e9ecef;
}

.category-item a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    color: white;
    display: block;
}

.category-item a.active {
    font-weight: bold;
    color: white;
    background-color: #c82333;
    padding: 8px;
    border-radius: 6px;
}

/* Active Category */
.collection-link.active {
  color: white;
  border-radius: 5px;
  font-size: 1.35rem;
}



.collection-header {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}




/* Pagination Container - Single Clean Border */
.pagination {
  display: flex;
  justify-content: center; /* Centering the pagination */
  align-items: center;
  margin: 20px 0;
  padding: 10px;
  list-style: none;
}

/* Pagination Buttons */
.pagination a,
.pagination span {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 15px;
    margin: 0 5px;
    border: none; /* No border for individual buttons */
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

/* Hover Effect */
.pagination a:hover {
    background-color: #007bff;
    color: white;
}

/* Active Page - Highlight */
.pagination .active span {
    background-color: #0056b3;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    pointer-events: none;
    box-shadow: 0px 0px 5px rgba(0, 91, 187, 0.5);
}

/* Disabled Buttons */
.pagination .disabled span {
    cursor: not-allowed;
    background-color: transparent;
}

/* Show full text by default */
.pagination .full-text {
    display: inline;
}

.pagination .short-text {
    display: none;
}

/* Mobile (≤600px) - Show only "<" and ">" */
@media (max-width: 600px) {

    .pagination a, .pagination span {
        font-size: 0.9rem;
        padding: 6px 10px;
    }

    .pagination .full-text {
        display: none;
    }

    .pagination .short-text {
        display: inline;
    }
}



.search-container {
  text-align: right;
  margin-bottom: 1rem;
}

.search-container form {
  display: inline-block;
}

.search-container input[type="text"] {
  padding: 0.5rem;
  width: 300px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.search-container button {
  padding: 0.5rem 1rem;
  background-color: gray;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.search-container button:hover {
  background-color: red;
}

.inventory-table-container {
  flex: 1;
  overflow-x: auto;
  margin-top: 1rem;
}

.inventory-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
}

.inventory-table th,
.inventory-table td {
  border: 1px solid #ddd;
  padding: 0.5rem;
  text-align: center;
}

.inventory-table th {
  background-color: #f4f4f4;
  font-weight: bold;
}

.inventory-table tr:hover {
  background-color: #f1f1f1;
}

.inventory-remove-button {
  margin: 0 auto;
  /* Ensure the button behaves as a block element so margin auto works */
  display: block;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  background-color: gray;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

.content {
  text-align: center;
}

.home-container {
    min-height: calc(100vh - 60px); /* Adjust for the header height */
    display: flex;
    flex-direction: column;
}

.home-container h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.image-placeholder {
  width: 50%;
  height: 300px;
  background-color: lightgray;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: black;
  border: 1px solid gray;
}

button {
  margin-top: 0;
  font-size: 1rem;
  background-color: gray;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
}

button:hover {
  background-color: red;
  color: white;
}

.directions-button {
  width: 150px;
  padding: 10px;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  background-color: gray;
  color: white;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

.directions-button:hover {
  background-color: red;
  color: white;
}

.directions-button:active {
  background-color: red; /* Darker red for click effect */
}

/* Disabled Button */
.directions-button.disabled {
  background-color: lightgray;
  color: darkgray;
  cursor: not-allowed;
  border: none;
  pointer-events: none;
}

/* Center the delivery requirements */
.order-card1 div {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px; /* Space between text and icon */
}

/* Center the next button */
#nextButton {
  margin-top: 20px;
  width: 200px; /* Make it wider for better alignment */
  text-align: center;
}

.order-card1 {
  width: 600px; /* Set a max width for better layout */
  max-width: 70%;
  margin: 100px auto; /* Center the card horizontally and add spacing from top */
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center; /* Center all text inside */
  display: flex;
  flex-direction: column;
  align-items: center; /* Ensures all items inside are centered */
}

.order-card1 p {
  font-size: 18px;
  margin: 8px 0;
  text-align: center;
}

hr {
  border: none; /* Remove default border */
  height: 2px; /* Make it thicker */
  background-color: #ccc; /* Set visible color */
  width: 90%; /* Make it slightly shorter than full width */
  margin: 20px auto; /* Add spacing and center */
}

.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: white;
    box-sizing: border-box; /* Ensures padding doesn’t affect width/height */
    background-color: gray; /* Gray background */
    border: 2px solid transparent; /* Consistent border */
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s ease-in-out, border 0.2s;
    outline: none; /* Removes default button outline */
    width: 120px; /* Set a fixed width (adjust as needed) */
    height: 45px; /* Set a fixed height (adjust as needed) */

}


.button-primary a {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensures it fills the button container */
    height: 100%;
}

/* Hover Effect */
.button-primary:hover {
  background-color: red;
  border-color: red;
  transform: scale(1.05);
}

/* Active (click) effect */
.button-primary:active {
  background-color: darkred;
  transform: scale(0.98);
}

/* Ensure <a> and <button> look identical */
.button-primary,
.button-primary:link,
.button-primary:visited {
  display: inline-block;
  text-decoration: none;
  line-height: normal;
  border: 1px solid transparent; /* Same border for both */
}

/* Force <button> to behave like <a> */
button.button-primary {
  border: none;
  appearance: none; /* Remove browser styling */
  font-family: inherit;
}

/* Only target the text inside the label */
.requirement-label span {
  display: inline-block;
  width: 170px; /* Fixed width ensures all text spans align vertically */
  margin: 0;
  text-align: left !important;
  line-height: 1.2;
}

/* General Notification Badge */
.notification-badge {
  position: absolute;
  top: 5px;
  right: -12px;
  background: red;
  color: white;
  font-size: 12px;
  font-weight: bold;
  width: 18px;
  height: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  text-align: center;
  line-height: 18px;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
}

/* Adjust position for the header badge */
#header-draft-badge {
  top: -8px;
  right: -10px;
}

/* Adjust position for the dropdown badge */
#dropdown-draft-badge {
  position: relative;
  top: -2px;
  left: 5px;
  font-size: 11px;
  width: 16px;
  height: 16px;
  line-height: 16px;
}

.remove-button.loading {
  background-color: #d9534f !important; /* Darker red */
  color: white;
  cursor: not-allowed;
  opacity: 0.8;
}

.home-container {
  padding: 20px 20px 20px; /* Top padding to clear fixed navbar */
  box-sizing: border-box;
  min-height: calc(100vh - 80px); /* Adjust for navbar height */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* General layout for the dashboard */
.dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;

}

/* First row: Two equal sections */
.dashboard-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  width: 80%;
  max-width: 2000px;
  align-items: flex-start;
  height: auto;
  min-height: 250px; /* Ensures the row does not expand too much */
  margin: 0 auto; /* Centers it horizontally */
}

/* Orders Count Panel and Table should take equal space */
.orders-count-panel,
.home-table-container {
  flex: 1 ;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
  height: 250px; /* Adjust height to limit space */
  overflow-y: auto; /* Enable vertical scrolling */
}

.orders-table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  text-align: center;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.orders-table th {
  font-size: 20px;
  padding: 10px;
  border: 1px solid #ddd;
}

.orders-table td {
  font-size: 17px;
  padding: 10px;
  border: 1px solid #ddd;
}

.orders-table thead {
  background-color: #007bff;
  color: white;
  font-weight: bold;
}

.orders-table thead th:first-child {
  visibility: hidden; /* Hide the first table header */
  border: none;
}

.orders-table tbody td:first-child {
  font-weight: bold; /* Make first column labels stand out */
  text-align: left; /* Align left for better readability */
  padding-left: 15px; /* Add spacing */
}

.orders-table tbody tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* Home Orders Table Styles */
.home-table-container th,
.home-table-container td {
  font-size: 15px;

}

/* Second row: Charts - They will be in a single row */
.charts-container {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap; /* Allows wrapping on smaller screens */
  max-width: 2000px;
}

/* Styling for charts */
.chart-container {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 300px; /* Set width for Pie Charts */
  max-height: 300px;
  padding: 15px;
}

/* Histogram should take more space */
.chart-container.histogram {
  flex: 1;
  width: auto; /* Slightly bigger Histogram*/
  max-width: 700px;
  height: 300px;
}

/* Ensure FullCalendar event titles are centered */
.fc-event-title.fc-sticky {
  text-align: center !important;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

h2#fc-dom-1 {
  margin-right: 150px; /* Centers the Date */
}

/* Flash Message Container (Stays on Top) */
.flash-container {
  position: fixed;
  top: 80px; /* Below navbar */
  right: 20px; /* Align to right */
  z-index: 9999; /* Ensure on top */
  display: flex;
  flex-direction: column;
  gap: 10px; /* Space between messages */
  width: 320px; /* Keep inside screen */
  max-width: 90%;
}

/* Flash Message Style */
.flash-message {
  padding: 15px 20px;
  border-radius: 8px; /* Rounded corners */
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15); /* Soft shadow */
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
  opacity: 1;
  transform: translateX(0);
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px; /* Space between icon & text */
  overflow-wrap: break-word; /* Prevent text overflow */
}

/* Flash Message Colors */
.flash-success {
  background: linear-gradient(to right, #28a745, #218838);
  color: white;
  border-left: 5px solid #1e7e34;
}

.flash-error {
  background: linear-gradient(to right, #dc3545, #c82333);
  color: white;
  border-left: 5px solid #a71d2a;
}

.flash-warning {
  background: linear-gradient(to right, #ffc107, #e0a800);
  color: black;
  border-left: 5px solid #d39e00;
}

/* Slide-In Animation */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Slide-Out Animation */
@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Apply Slide-In */
.flash-message {
  animation: slideIn 0.5s ease-out;
}

/* Auto Remove Flash Messages After 5s */
.flash-message.fade-out {
  animation: slideOut 0.5s ease-in forwards;
}

/* Close Button */
.flash-message .close-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.3s;
}

.flash-message .close-btn:hover {
  opacity: 0.7;
}

.document_add_radio_buttons_group {
  display: flex;
  flex-direction: column; /* Align items in a vertical column */
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
}

.document_add_radio_buttons_group label {
  display: flex;
  align-items: center;
  gap: 10px; /* Space between radio button and text */
  font-size: 1rem;
  width: 300px; /* Set a fixed width for labels to align */
  justify-content: flex-start; /* Ensure left alignment inside the container */
}

.document_add_radio_buttons_group input[type="radio"] {
  width: 16px;
  height: 16px;
}

.radio_button_box-group {
  display: flex;
  flex-direction: column; /* Align items in a vertical column */
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 10px;
}

.radio_button_box-group label {
  display: flex;
  align-items: center;
  gap: 10px; /* Space between radio button and text */
  font-size: 1rem;
  width: 100px; /* Set a fixed width for labels to align */
  justify-content: flex-start; /* Ensure left alignment inside the container */
}

/* Ensure the table auto-adjusts column widths */
.pending-orders-table {
    width: 100%;
    table-layout: auto; /* Allows columns to size dynamically */
    border-collapse: collapse;
}

/* Ensure text does not overflow */
.pending-orders-table th,
.pending-orders-table td {
    padding: 10px;
    text-align: center;
    white-space: nowrap; /* Prevents text wrapping */
}

/* Make specific columns smaller */
.pending-orders-table th:nth-child(1),
.pending-orders-table td:nth-child(1), /* ID Column */
.pending-orders-table th:nth-child(3),
.pending-orders-table td:nth-child(3), /* Quantity Column */
.pending-orders-table th:nth-child(4),
.pending-orders-table td:nth-child(4) /* Balance Column */ {
    width: 12%; /* Set smaller width for numbers */
    min-width: 80px;
}

/* Allow text columns to expand */
.pending-orders-table th:nth-child(2),
.pending-orders-table td:nth-child(2) /* Customer Name Column */ {
    width: auto; /* Expands to fit content */
    min-width: 200px; /* Ensures readability */
}

/* Ensure buttons fit properly */
.pending-orders-table th:last-child,
.pending-orders-table td:last-child {
    width: 18%; /* Adjust button space */
     /* Keeps buttons in one row */
}


.pending-orders-table td button {
  padding: 3px 6px; /* Adjust button padding to reduce button height */
  font-size: 12px; /* Reduce font size for smaller buttons */
  background: #ff0000;
}

.pending-orders-table td button:hover {
  background: #6e0000;
}

.pending-orders-table th,
.pending-orders-table td {
  border: 1px solid #afafaf;
  font-size: 20px;
  padding: 8px;
  text-align: center;
  line-height: 0.7; /* Adjust line height to control text spacing */
}

.pending-orders-table th {
  background-color: #f4f4f4;
  font-weight: bold;
}

.pending-orders-table tr:hover {
  background: #f1f5ff;
}

.reschedule-form {
  margin-top: 10px;
}

/* === Mobile Navigation === */
.menu-toggle {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: white;
  padding: 10px 15px;
  background: none;
  border: none;
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 1003; /* Keep it above everything */
  transition: transform 0.3s ease-in-out;
}

/* Search box in order pages */

.search-form-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

}
#search-input {
  width: 500px;
  padding: 12px;
  font-size: 16px;
  border: 2px solid #ced4da;
  border-radius: 6px;
  margin-right: 10px;
}

#search-input:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
  outline: none;
}
.pac-container {
  z-index: 10000 !important; /* Ensure the dropdown appears above the modal!! */
  width: 600px !important; /* Adjust width */
}


/* Employee - partial_delivery */
.basket-list {
    list-style-type: none;
    padding: 0;
}

.basket-item {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.basket-item-detail {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 16px;
}

.basket-item-label {
    font-weight: bold;
    min-width: 100px;
    text-align: left;
}

.basket-item-value {
    flex-grow: 1;
    text-align: left;
}

.basket-item p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: block;
    max-width: 100%;
}


.checkbox-container {
    display: flex;
    align-items: center;
    font-size: 16px;
}

.checkbox-container input {
    margin-right: 10px;
}

#delivery_comments {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
}
/* Employee - partial_delivery */


@media (max-width: 1200px) {


    #header-draft-badge {
        position: relative;
        top: 0;
        left: 5px; /* Moves the badge closer to the text */
        transform: none;
        display: inline-block;
        font-size: 11px;
        width: 16px;
        height: 16px;
        line-height: 16px;
        vertical-align: middle; /* Aligns badge with text */
    }

    .navbar-menu .dropdown a {
        display: flex;
        align-items: center;
        gap: 5px; /* Ensures spacing between text and badge */
    }


    #orders-dropdown-content {

        max-height: 300px; /* Adjust height as needed */
        overflow-y: auto;  /* Enables vertical scrolling */
        scrollbar-width: thin; /* Optional: Adjust scrollbar appearance for Firefox */
        scrollbar-color: #ccc transparent; /* Optional: Adjust scrollbar color */
    }

    .dropdown-content {
        width: 160px;
    }

    .navbar-menu .nav-link::after {
        display: none; /* Completely hide the underline */
        content: none;
    }

    .menu-toggle {
        display: flex; /* Ensure it's visible */
        position: absolute;
        top: 50%;
        left: 15px;
        transform: translateY(-50%); /* Centers vertically */
        z-index: 1003;
    }

    /* Change icon when menu is open */
    .menu-toggle.active {
        transform: rotate(90deg); /* Small animation effect */
    }

    /* Mobile Menu Styling */
    .navbar-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh; /* Set to full viewport height */
        background: #111;
        box-shadow: 4px 0px 10px rgba(0, 0, 0, 0.5);
        padding-top: 20px; /* Push first menu item down */
        padding-bottom: 20px; /* Ensure space at the bottom */
        z-index: 1002;
        transition: left 0.4s ease-in-out;
        border-radius: 0px 15px 15px 0px;
        overflow-y: auto; /* Enables scrolling */
        max-height: calc(100vh - 20px); /* Prevents overflow */
    }

    /* Show Menu */
    .navbar-menu.active {
        left: 0;
    }

    /* Navigation Items */
    .navbar-menu li {
        text-align: left;
        padding: 10px 20px;
    }

    .navbar-menu li a {
        display: block;
        padding: 12px;
        font-size: 18px;
        color: white;
        text-decoration: none;
        border-radius: 5px;
        transition: background 0.3s ease;
    }

    .navbar-menu li a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    /* Active Link */
    .navbar-menu li a.active {
        background: red;
        color: white;
        font-weight: bold;
    }
  
  /* Search box in order pages */
  .search-form-container {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  #search-input {
    margin-bottom: 15px;
    width: auto;
    margin-right: 0;
  }

  .DetailsModal {
    font-size: 0.85rem;
  }
  .pending-orders-table {
    width: 100%;
    table-layout: fixed; /* or auto, depending on preference */
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }
  .pending-orders-table th,
  .pending-orders-table td {
    font-size: 0.9rem; /* smaller text on mobile */
    white-space: normal;
    padding: 6px; /* Increase padding */
    line-height: 1.4; /* Increase line height for better spacing */
  }

  .pending-orders-table tbody td {
    font-size: 1rem !important;
    text-align: center;
  }

  .pending-orders-table td:last-child button {
    display: inline-block;
    width: 52px; /* Set a fixed width for all buttons */
    text-align: center;
    margin-bottom: 5px;
  }

  .modal-content {
    max-width: 95%;
    width: auto;
    margin: 20px auto; /* Some breathing room */
  }
  /* Target all tables within the details modal */
  #detailsModal .modal-body table {
    font-size: 0.6rem; /* Smaller font size */
    line-height: 1.4; /* Reduced line height */
  }
  /* Optional: Adjust table header and cell padding if needed */
  #detailsModal .modal-body th,
  #detailsModal .modal-body td {
    padding: 10px;
    line-height: 1.4;
  }

  #editModal table td,
  #editModal table th {
    border: 1px solid #ccc; /* Ensure consistent border */
    padding: 8px; /* Add padding for spacing */
    vertical-align: middle; /* Align text and inputs properly */
  }

  .pac-container {
    z-index: 10000 !important; /* Ensure the dropdown appears above the modal!! */
    width: 70% !important;
    max-width: 300px; /* Adjust width */
  }

/* Employee - partial_delivery & more */
  .order-card1 {
  max-width: 80%; /* Set a max width for better layout */
}





#delivery_comments {
  width: 95%;
}

.checkbox-container {
    display: flex;
    align-items: center;
    font-size: 18px;
}

.checkbox-container input {
        width: 16px;
        height: 16px;
}

.form-radio1 {
    display: flex;
    align-items: center; /* Ensures vertical alignment */
    font-size: 18px;
    margin-right: 15px;
    cursor: pointer;
    gap: 8px; /* Adds spacing between the radio button and text */
}

.form-radio1 input {
    width: 18px;
    height: 18px;
    margin: 0;
    vertical-align: middle; /* Ensures it aligns properly */
}


.form-group1 {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px; /* Moves the radio buttons slightly down */
}

.form-actions1 {
    flex-wrap: wrap;
    justify-content: center;
}
/* Employee - partial_delivery & more */

  
/* New Order Styling*/
.form-container, .basket-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
}

    .order-page {
        max-width:100%;
        display: flex;
        flex-direction:column;
    }

    .button {
        font-size: 0.9em;
    }

    .form-and-basket {
      flex-wrap: wrap;
      flex-direction: column;
    }
    .form-container {
        order: 1;
    }
    .basket-container {
        order: 2;
    }

    .new-order-table {
        display: block;
        overflow-x: auto;
        font-size: 1em;
        width: 100%;

    }

    .new-order-table th, .new-order-table td {
        font-size: 0.7em;
        padding: 4px;
    }

    .new-order-table th {
        padding: 6px;
    }

    .new-order-remove-button {
        margin: 0 auto;
        display: block;
        font-size: 0.7rem;
        padding: 0.3rem 0.7rem;
        background-color: gray;
        border: none;
        color: white;
        border-radius: 5px;
        cursor: pointer;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .styled-form .form-group label {
        font-size: 1rem;
    }

    .styled-form .form-group input {
      width: 50%;
      padding: 0.5rem;
      border: 1px solid #ddd;
      border-radius: 5px;
    }
/* New Order Styling*/

/* Customer Form Styling */
.update-form-container {
    width: 85%
}

}


.details-short {
    display: none;
}
/* Responsive Design */
@media (max-width: 1200px) {
  .details-full {
      display: none;
    }
    .details-short {
      display: inline;
    }
    .modal-content {
        max-width: 95%;
    }
}



/* Page Header Styling */
.page-header {
    background-color: #f8f9fa; /* Light gray background */
    padding: 2px;
    text-align: center;
    margin-top: 60px; /* Adjusted to avoid overlap */
    border-bottom: 2px solid #ddd;
}

@media (max-width: 1200px){
            /* Page Header Styling */
    .page-header {
        margin-top: 30px; /* Adjusted to avoid overlap */
    }
}

.orders-container {
    max-width: 95%; /* Prevents the table from stretching across the screen */
    margin: 30px auto; /* Centers the box */
    background: white; /* Box background */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Adds a soft shadow */
    border: 1px solid rgba(0, 0, 0, 0.2);
}


#perPageForm {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    gap: 5px;
}

#per_page {
    padding: 8px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ccc;
    cursor: pointer;
    background: white;
    transition: all 0.3s;
}

#per_page:hover {
    border-color: #3498db;
}



@media (max-width: 560px) {
    .pending-orders-table th {
        position: relative;
        font-size: 0; /* Hides the existing header text */
    }

    .pending-orders-table th::before {
        font-size: 14px; /* Set readable text size */
        font-weight: bold;
        content: attr(data-label); /* Uses the data-label attribute as the header text */
    }

    .pending-orders-table:not(.draft-orders-container .pending-orders-table) th:nth-child(1)::before { content: "ID"; }
    .pending-orders-table:not(.draft-orders-container .pending-orders-table) th:nth-child(2)::before { content: "Όνομα"; }
    .pending-orders-table:not(.draft-orders-container .pending-orders-table) th:nth-child(3)::before { content: "#"; }
    .pending-orders-table:not(.draft-orders-container .pending-orders-table) th:nth-child(4)::before { content: "Τελ. Υπ."; }
    .pending-orders-table:not(.draft-orders-container .pending-orders-table) th:nth-child(5)::before { content: "Ενέργειες"; }



        /* Draft Orders Table - Different Header Names */
    .draft-orders-container .pending-orders-table th:nth-child(1)::before { content: "ID"; }
    .draft-orders-container .pending-orders-table th:nth-child(2)::before { content: "Όνομα"; }
    .draft-orders-container .pending-orders-table th:nth-child(3)::before { content: "Συν. Υπ."; }
    .draft-orders-container .pending-orders-table th:nth-child(4)::before { content: "Ενέργειες"; }

    /* Make specific columns smaller */
    .pending-orders-table:not(.draft-orders-container .pending-orders-table) th:nth-child(3),
    .pending-orders-table:not(.draft-orders-container .pending-orders-table) td:nth-child(3)/* Quantity Column */
     {
        width: 10%; /* Set smaller width for numbers */
    }

    .draft-orders-container .pending-orders-table th:nth-child(3),
    .draft-orders-container .pending-orders-table td:nth-child(3){
        width: 20%;
    }


    .pending-orders-table:not(.draft-orders-container .pending-orders-table) th:nth-child(4),
    .pending-orders-table:not(.draft-orders-container .pending-orders-table) td:nth-child(4) {
        width:20%;
        min-width: 150px;

    }

    /* Allow text columns to expand */
    .pending-orders-table:not(.draft-orders-container .pending-orders-table) th:nth-child(2),
    .pending-orders-table:not(.draft-orders-container .pending-orders-table) td:nth-child(2) /* Customer Name Column */ {
        width: auto; /* Expands to fit content */
        min-width: 200px; /* Ensures readability */
    }

    /* Ensure buttons fit properly */
    .pending-orders-table:not(.draft-orders-container .pending-orders-table) th:last-child,
    .pending-orders-table:not(.draft-orders-container .pending-orders-table) td:last-child {
        width: 20%; /* Adjust button space */
         /* Keeps buttons in one row */
    }



}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure it covers the full screen */
}

.content {
    flex: 1; /* Pushes the footer down */
    display: flex;
    flex-direction: column;
}


/* Fix footer positioning */
.footer {
    background-color: black;
    color: white;
    text-align: center;
    padding: 5px 0;
    font-size: 12px;
    width: 100%;
    position: relative; /* Prevents floating */
    bottom: 0;
}


.order-card {
    width: 90%;
    max-width: 800px; /* Prevent it from stretching too much */
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 10px auto; /* Center the card */
}



.basket-details {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    word-wrap: break-word;
}



@media (max-width: 1200px) {
    .order-card {
        width: 95%;
        max-width: 90%;
    }


    .basket-details {
        width: 100%;
    }
}
