header, footer {
    background-color: rgb(7, 123, 196);
    color: white;
    text-align: center;
    padding: 10px;
}

header {
    position: sticky;
    top : 0;
    z-index: 1000;
}
header img {
    vertical-align: middle;
    margin-right: 10px;
}

.header_middle {
    display: flex;
    flex-direction: column; 
    align-items: center;
    align-content: center;
    text-align: center;
    justify-content: center;
    gap: 10px;
    margin: 10px;
}

.header_middle h1 {
    margin: 0;
}

.header_middle img {
    margin: 0;
}

.form-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-container > h1 {
    text-align: center;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group > label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}

.form-group > input[type="text"], input[type="number"], input[type="date"], input[type="password"], select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group > input[type="submit"] {
    width: 100%;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: Black;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.form-group > input[type="submit"]:hover {
    background-color: #00008B;
}

.logout-button {
    background-color: #000000;
    color: white;
    font-weight: bold;
    border-radius: 15px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

.logout-button:hover {
    background-color: #ffffff; 
    color: rgb(0, 0, 0); 
}

.index-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: bold;
    font-size: x-large;
    background-color: white;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: transparent;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 3;
}

.dropdown-content button {
    color: white;
    background-color: #0000CD;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    width: 100%;
    border: none;
    text-align: left;
    border-radius: 8px;
}

.dropdown-content button:hover {
    background-color: #00008B;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.header-button {
    background-color: #00008B;
    color: white;
    font-weight: bold;
    border-radius: 15px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

.header-button:hover {
    background-color: #0000CD;
}

@media (max-width: 768px) {
    .header_middle {
        flex-direction: column;
        gap: 5px;
    }
    .form-container {
        margin: 20px;
        padding: 15px;
    }

    .form-group > input[type="text"], input[type="number"], input[type="date"], input[type="password"], select {
        padding: 8px;
    }

    .form-group > input[type="submit"] {
        padding: 8px 16px;
        font-size: 14px;
    }

    .logout-button {
        padding: 8px 16px;
    }

    .header-button {
        padding: 8px 16px;
    }

    .dropdown-content button {
        padding: 10px 14px;
    }
}

.styled-table {
    border-collapse: collapse;
    margin: 0;
    font-size: 0.9em;
    font-family: 'Arial', sans-serif;
    min-width: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    text-align: center;
}


.styled-table thead {
    background-color: #000398;
    color: #ffffff;
    text-align: center;
    position: sticky;
    top: 120px;
    z-index: 999;
}

.styled-table th,
.styled-table td {
    padding: 12px 15px;
    text-align: center;
}

.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid #0026ff;
}

.styled-table tbody tr:hover {
    background-color: #f1f1f1;
}

.styled-table th {
    cursor: pointer;
}

.styled-table input[type="text"] {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
    position: sticky;
}

.item-main {
    padding: 0;
    margin: 0;
}

.green-theme-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.green-theme-container > h1 {
    text-align: center;
    color: #333;
}

.green-theme-container ul {
    list-style-type: none;
    padding: 0;
}

.green-theme-container li {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.green-theme-container li button {
    background-color: #32CD32; /* Lime Green */
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}

.green-theme-container li button:hover {
    background-color: #228B22; /* Forest Green */
}

.green-theme-container form button {
    width: 100%;
    padding: 10px 20px;
    background-color: #32CD32; /* Lime Green */
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.green-theme-container form button:hover {
    background-color: #228B22; /* Forest Green */
}

.red-theme-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.red-theme-container > h1 {
    text-align: center;
    color: #333;
}

.red-theme-container ul {
    list-style-type: none;
    padding: 0;
}

.red-theme-container li {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.red-theme-container li button {
    background-color: #FF6347; /* Tomato */
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}

.red-theme-container li button:hover {
    background-color: #FF4500; /* Orange Red */
}

.red-theme-container form button {
    width: 100%;
    padding: 10px 20px;
    background-color: #FF6347; /* Tomato */
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.red-theme-container form button:hover {
    background-color: #FF4500; /* Orange Red */
}

.comparison-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.comparison-set {
    border: 1px solid #ccc;
    padding: 12px;
    border-radius: 8px;
    background-color: #f9f9f9;
    min-width: 180px;
}

.comparison-set select {
    width: 100%;
    padding: 6px;
    font-size: 14px;
}

.comparison-submit {
    flex-basis: 100%;
    margin-top: 15px;
}

.comparison-submit button {
    padding: 8px 16px;
    font-size: 16px;
    background-color: #0077cc;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.comparison-submit button:hover {
    background-color: #005fa3;
}

.comparison-table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
}

.comparison-table th,
.comparison-table td {
    border: 1px solid #ccc;
    padding: 8px 12px;
    text-align: right;
}

.comparison-table th {
    background-color: #f0f0f0;
    font-weight: bold;
}

.comparison-table td:first-child,
.comparison-table th:first-child {
    text-align: left;
}

.dropdown-list {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    max-height: 150px;
    overflow-y: auto;
    width: 100%;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-list li {
    padding: 5px;
    cursor: pointer;
}

.dropdown-list li:hover {
    background: #eee;
}

.autocomplete-wrapper { position: relative; display: inline-block; width: 220px; }
.person-input { width: 100%; padding: 5px; box-sizing: border-box; }
.autocomplete-items { position: absolute; border: 1px solid #ccc; background: #fff; max-height: 200px; overflow-y: auto; z-index: 1000; width: 100%; }
.autocomplete-items div { padding: 5px; cursor: pointer; }
.autocomplete-items div:hover { background-color: #e9e9e9; }

.milk-main {
    background-color: #f7f7f7; /* Example for milk category page */
    padding: 20px;
}

.milk-container {
    max-width: 600px;
    margin: 50px auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 20px;
}

.milk-group {
    margin-bottom: 15px;
}

.milk-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.milk-group input[type="text"], 
.milk-group input[type="checkbox"], 
.milk-group input[type="submit"] {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.milk-group input[type="submit"] {
    background-color: #32CD32; /* You can assign milk a greenish button */
    color: white;
    cursor: pointer;
}

.milk-group input[type="submit"]:hover {
    background-color: #228B22;
}

.milk-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.milk-table th, .milk-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.milk-table th {
    background-color: #f0f8ff; /* light blue header for milk */
    cursor: pointer;
}

.milk-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Supplier page container */
.supplier-main {
    padding: 20px;
}

.supplier-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Supplier form group */
.supplier-group {
    margin-bottom: 15px;
}

.supplier-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.supplier-group input[type="text"],
.supplier-group input[type="number"],
.supplier-group input[type="submit"] {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.supplier-group input[type="submit"] {
    background-color: #007BFF; /* Blue */
    color: white;
    border: none;
    cursor: pointer;
}

.supplier-group input[type="submit"]:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

.supplier-main {
    border: 4px solid #007BFF; /* Blue frame */
    border-radius: 10px;        /* Rounded corners */
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;           /* Adjust width as needed */
    box-sizing: border-box;
}

.suppliers_main_logs {
    border: 4px solid #007bff; /* Blue frame for logs category */
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 1000px; /* Adjust to fit table nicely */
    box-sizing: border-box;
    overflow-x: auto; /* Allow horizontal scroll if table is wide */
}

.suppliers_container_logs .suppliers_styled_table th,
.suppliers_container_logs .suppliers_styled_table td {
    border-color: #007bff;
}

.suppliers_container_logs .suppliers_styled_table tbody tr:hover {
    background-color: #cce5ff; /* light blue hover */
}
.suppliers_styled_table {
    width: 100%;
    border-collapse: collapse;
}

.suppliers_styled_table th, .styled-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.suppliers_styled_table th {
    background-color: #007bff; /* Blue header for the logs table */
    color: white;
    cursor: pointer; /* Show it’s sortable */
}

.suppliers_styled_table tr:nth-child(even) {
    background-color: #e6f0ff; /* Light blue for alternate rows */
}

.suppliers_styled_table tr:hover {
    background-color: #cce0ff; /* Slightly darker blue on hover */
}

input[type="date"],
input[type="text"] {
    border: 2px solid #005f18;
    border-radius: 5px;
    padding: 5px;
}

.receive-milk-main {
    border: 4px solid #28a745; /* Green for receive-milk category */
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 700px;
    box-sizing: border-box;
    background-color: #f6fff7; /* light green background */
}

.receive-milk-container h1 {
    color: #28a745;
    text-align: center;
    margin-bottom: 20px;
}

.receive-milk-group input[type="text"],
.receive-milk-group input[type="number"],
.receive-milk-group input[type="date"],
.receive-milk-group select {
    border: 2px solid #28a745;
}

.receive-milk-group input:focus,
.receive-milk-group select:focus {
    border-color: #1e7e34;
    box-shadow: 0 0 5px #28a74550;
}

.receive-milk-group input[type="submit"] {
    background-color: #28a745;
}

.receive-milk-group input[type="submit"]:hover {
    background-color: #1e7e34;
}

.receive-milk-styled-table {
    border-collapse: collapse;
    width: 100%;
    font-family: Arial, sans-serif;
}

.receive-milk-styled-table th, .receive-milk-styled-table td {
    border: 1px solid #28a745;
    padding: 10px;
    text-align: left;
}

.receive-milk-styled-table th {
    background-color: #28a745;
    color: white;
    cursor: pointer;
}

.receive-milk-styled-table tbody tr:nth-child(even) {
    background-color: #e6f4ea; /* light green */
}

.receive-milk-styled-table tbody tr:nth-child(odd) {
    background-color: #f6fff7; /* slightly lighter green */
}

.receive-milk-styled-table tbody tr:hover {
    background-color: #c8e6c9; /* darker green on hover */
}

.receive-list-container form {
    position: sticky;
    top: 170px; /* start sticking just below header */
    background: white;
    padding: 10px;
    z-index: 100;
    border-bottom: 2px solid #ddd;
}

.receive-milk-styled-table-thead th {
    position: sticky;
    top: 290px; /* header (170px) + form (about 80px) */
    background: #28a745;
    z-index: 99;
    border-bottom: 2px solid #ccc;
}

/* Finished Goods Category */
.finishedgoods_main {
    padding: 30px;
    background-color: #e0f7fa; /* soft teal/light blue background */
    min-height: 100vh;
    font-family: Arial, sans-serif;
}

.finishedgoods_container {
    max-width: 100%;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px 30px;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.finishedgoods_container h1 {
    text-align: center;
    color: #00796b; /* teal heading color */
    margin-bottom: 25px;
    font-size: 28px;
}

.finishedgoods_group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.finishedgoods_group label {
    margin-bottom: 6px;
    font-weight: 600;
    color: #004d40; /* dark teal for labels */
}

.finishedgoods_group input[type="text"],
.finishedgoods_group input[type="number"],
.finishedgoods_group input[type="date"],
.finishedgoods_group select {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #b2dfdb; /* light teal border */
    font-size: 16px;
    transition: border 0.2s, box-shadow 0.2s;
}

.finishedgoods_group input[type="text"]:focus,
.finishedgoods_group input[type="number"]:focus,
.finishedgoods_group input[type="date"]:focus,
.finishedgoods_group select:focus {
    border-color: #00796b; /* teal focus border */
    box-shadow: 0 0 6px rgba(0, 121, 107, 0.2);
    outline: none;
}

.finishedgoods_group input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.finishedgoods_group input[type="submit"] {
    background-color: #00796b; /* teal submit button */
    color: #ffffff;
    font-weight: 600;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.finishedgoods_group input[type="submit"]:hover {
    background-color: #004d40; /* darker teal on hover */
}

/* Finished Goods Table */
.finishedgoods_table {
    min-width: 800px;
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: Arial, sans-serif;
}

.finishedgoods_table th, 
.finishedgoods_table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #b2dfdb; /* light teal divider */
}

.finishedgoods_table thead tr:first-child th {
    background-color: #00796b; /* teal header row */
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.finishedgoods_table thead tr:first-child th:hover {
    background-color: #004d40; /* darker teal on hover */
}

.finishedgoods_table thead tr:nth-child(2) th input {
    width: 95%;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #b2dfdb;
    font-size: 14px;
}

.finishedgoods_table tbody tr:hover {
    background-color: #e0f7fa; /* light teal highlight on hover */
}

.finishedgoods_table a {
    color: #00796b;
    text-decoration: none;
}

.finishedgoods_table a:hover {
    text-decoration: underline;
}

/* Sales Page Main Container */
.sales_main {
    padding: 20px;
    background-color: #fff3e0; /* soft warm background */
    min-height: 100vh;
    font-family: Arial, sans-serif;
}

.sales_container {
    /*max-width: 1200px;*/
    margin: 0 auto;
    background-color: #ffffff;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow-x: auto; /* 🚀 allows horizontal scroll if table too wide */
}

.sales_container h1 {
    text-align: center;
    margin-bottom: 25px;
    color: #ef6c00; /* dark orange heading */
}

/* Input Groups */
.sales_group {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;    /* allows wrap on small screens */
    gap: 12px;          /* 🔑 space between buttons/inputs */
    flex-direction: column; /* default for label+input groups */
}
/* When .sales_group contains only buttons you can override */
.sales_group.buttons {
    flex-direction: row;  /* arrange buttons horizontally */
}

.sales_group label,
.sales_group select {
    margin-bottom: 6px;
    font-weight: bold;
    color: #bf360c; /* slightly darker orange for labels */
}

.sales_group input[type="text"],
.sales_group input[type="number"],
.sales_group select {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ffcc80; /* soft orange border */
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.sales_group input[type="text"]:focus,
.sales_group input[type="number"]:focus,
.sales_group select:focus{
    border-color: #ef6c00;
}

/* Submit Button */
.sales_group input[type="submit"] {
    background-color: #ef6c00;
    color: #ffffff;
    font-weight: bold;
    padding: 12px 0;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.sales_group input[type="submit"]:hover {
    background-color: #d84315;
}

/* Sales Table Styling */
.sales_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    font-family: Arial, sans-serif;
    min-width: 800px; /* keeps structure, avoids squishing */
}

.sales_table thead {
    background-color: #ffb74d; /* light orange header */
    color: #ffffff;
}

.sales_table th,
.sales_table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ffd180; /* soft orange border */
}

.sales_table th {
    cursor: pointer;
    font-weight: bold;
    user-select: none;
}

.sales_table tbody tr:nth-child(even) {
    background-color: #fff3e0; /* soft alternating row color */
}

.sales_table tbody tr:hover {
    background-color: #ffe0b2; /* hover effect */
}

.sales_table a {
    text-decoration: none;
    color: #ef6c00; /* dark orange links */
    transition: color 0.3s;
}

.sales_table a:hover {
    color: #d84315; /* darker orange on hover */
}
.sales_group button {
    background-color: #efa300;
    color: #fff;
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    margin-right: 8px; /* small spacing between buttons */
}

.sales_group button:hover {
    background-color: #d84315;
}
/* Base look for all buttons */
.sales_group_buttons button,
.sales_group_buttons input[type="submit"] {
    color: #fff;
    font-weight: bold;
    padding: 8px 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.3s, transform 0.1s;
}

/* Individual colors */
.btn-add       { background-color: #ff9800; }  /* orange */
.btn-save      { background-color: #4caf50; }  /* green */
.btn-finalize  { background-color: #e53935; }  /* red */
.btn-print     { background-color: #2196f3; }  /* blue */

/* Hover darken */
.btn-add:hover      { background-color: #f57c00; }
.btn-save:hover     { background-color: #388e3c; }
.btn-finalize:hover { background-color: #c62828; }
.btn-print:hover    { background-color: #1976d2; }

.btn-addprod {
    background-color: #ff9800;   /* orange like “Νέος Πωλητής” */
    color: #fff;
    padding: 8px 15px;          /* larger size */
    border: none;
    border-radius: 10px;         /* pill shape */
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.btn-addprod:hover {
    background-color: #f57c00;
}

.btn-addprod:active {
    transform: scale(0.97);
}
.btn-remove {
    background-color: #ff3131;  /* neutral gray */
    color: #fff;
    padding: 10px 18px;         /* bigger than default */
    border: none;
    border-radius: 30px;        /* round shape like other buttons */
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.btn-remove:hover {
    background-color: #616161;
}

.btn-remove:active {
    transform: scale(0.95);
}
.date_input {
    padding: 12px 16px;
    border: 2px solid #ff9800;   /* orange border */
    border-radius: 30px;         /* rounded edges */
    font-size: 16px;
    font-weight: bold;
    color: #333;
    background-color: #fff;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.date_input:focus {
    border-color: #ef6c00;        /* darker orange on focus */
    box-shadow: 0 0 6px #ff9800;  /* subtle orange glow */
}

/* --- SHOPS SECTION --- */
.shops_main {
    padding: 20px;
    background-color: #f4faff; /* very light blue background */
    min-height: 100vh;
}

.shops_container {
    /*max-width: 1200px;*/
    margin: 0 auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow-x: auto;
}

/* Groups for form fields */
.shops_group {
    margin-bottom: 15px;
}

.shops_group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #005f73; /* deep teal */
}

.shops_group input,
.shops_group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #cce7f0;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Submit button */
.shops_group input[type="submit"] {
    background-color: #008cba; /* blue */
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.shops_group input[type="submit"]:hover {
    background-color: #005f73; /* darker teal on hover */
}

/* Table styles */
.shops_table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
    table-layout: auto;
}

.shops_table th,
.shops_table td {
    border: 1px solid #cce7f0;
    padding: 10px;
    text-align: left;
}

.shops_table thead {
    background-color: #008cba;
    color: #ffffff;
}

.shops_table tbody tr:nth-child(even) {
    background-color: #f0faff;
}

.shops_table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.shops_table tbody tr:hover {
    background-color: #e0f7fa; /* light teal highlight */
    cursor: pointer;
}

/* Responsive table */
@media (max-width: 768px) {
    .shops_table, 
    .shops_table thead, 
    .shops_table tbody, 
    .shops_table th, 
    .shops_table td, 
    .shops_table tr {
        display: block;
        width: 100%;
    }

    .shops_table thead {
        display: none;
    }

    .shops_table tr {
        margin-bottom: 15px;
        border: 1px solid #cce7f0;
        border-radius: 5px;
        padding: 10px;
        background: #ffffff;
    }

    .shops_table td {
        border: none;
        padding: 8px;
        text-align: right;
        position: relative;
    }

    .shops_table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        font-weight: bold;
        color: #005f73;
        text-align: left;
    }

    .shops_group button {
    background-color: #FF7043; /* distinct orange for shops */
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.shops_group button:hover {
    background-color: #E64A19; /* darker orange on hover */
}

}

/* ===== Expenses Styles ===== */
.expense_main {
    padding: 20px;
    background-color: #fff5f5; /* very light red background */
    min-height: 80vh;
    /*display: flex;
    justify-content: center;*/
}

.expense_container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.expense_container h1 {
    text-align: center;
    color: #c62828; /* strong red */
    margin-bottom: 20px;
}

.expense_group {
    margin-bottom: 15px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.expense_group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #6c3483; /* purple tone */
    min-width: 160px;
}

.expense_group input[type="text"],
.expense_group input[type="number"],
.expense_group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.expense_group input[type="checkbox"] {
    transform: scale(1.2);
    margin-left: 5px;
}

.expense_group input[type="submit"] {
    background-color: #e53935; /* red button */
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.expense_group input[type="submit"]:hover {
    background-color: #b71c1c; /* darker red */
}

.expense_item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fafafa;
    align-items: center;
}

/* Bigger select */
.expense_item select.expense-select {
    flex: 2.5;   /* double width */
    /*max-width: 10px;*/
}

/* Smaller inputs */
.expense_item input {
    flex: 1;   /* half width */
    padding: 6px 8px;
    border: 1px solid #bbb;
    border-radius: 4px;
}

.expense_table {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;   /* keeps columns aligned */
    display: block;        /* allows scroll */
    max-height: 800px;     /* adjust height as needed */
    overflow-y: auto;      /* vertical scroll */
}

/* Responsive adjustments for small screens */
@media (max-width: 1090px) {
    .expense_group {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .expense_table {
        font-size: 14px;       /* shrink text */
    }

    .expense_table th,
    .expense_table td {
        padding: 8px;          /* tighter padding */
        white-space: nowrap;   /* avoid wrapping, keep scrollable */
    }

    .expense_group label {
        min-width: auto;  /* remove fixed width */
        margin-bottom: 3px;
    }

    .expense_item {
        flex-direction: column;
        align-items: stretch;  /* full width fields */
        gap: 8px;
    }

    .expense_item select,
    .expense_item input,
    .expense_group input,
    .expense_group select {
        font-size: 16px;   /* bigger text */
        padding: 10px 12px; /* larger touch area */
    }

    .expense_item select.expense-select,
    .expense_item input {
        flex: none;
        width: 100%;  /* full width inputs */
    }

    .expense_group input[type="submit"],
    button {
        width: 100%; /* buttons full width */
    }

    .expense_group label {
        min-width: auto;          /* don’t force label width */
        margin-bottom: 4px;       /* add small spacing */
        font-size: 15px;
    }

    .expense_group input[type="submit"],
    .expense_container button {
        font-size: 16px;
        padding: 12px 18px;
    }
}

.expense_table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.expense_table thead tr:first-child {
    background-color: #8e44ad; /* purple tone for expenses */
    color: #fff;
}

.expense_table th {
    padding: 10px;
    text-align: left;
    cursor: pointer;
}

/* Filter row */
.expense_table thead tr:nth-child(2) {
    background-color: #f2e6f9; /* light purple */
}

.expense_table thead input {
    width: 95%;
    padding: 6px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Body */
.expense_table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

/* Row striping */
.expense_table tbody tr:nth-child(even) {
    background-color: #f9f6fb;
}

.expense_table tbody tr:nth-child(odd) {
    background-color: #fff;
}

/* Hover effect */
.expense_table tbody tr:hover {
    background-color: #e9d8f5;
}

/* Links inside table */
.expense_table a {
    color: #6c3483;
    text-decoration: none;
    font-weight: bold;
}

.expense_table a:hover {
    text-decoration: underline;
}

.expense_group input,
.expense_group select {
    padding: 6px 10px;
    border: 1px solid #aaa;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
    background-color: #fff;
}

/* Focus effect */
.expense_group input:focus,
.expense_group select:focus {
    border-color: #8e44ad;
    box-shadow: 0 0 5px rgba(142, 68, 173, 0.5);
}