* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    overflow-y: scroll;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f7f7f8;
    color: #1f1f1f;
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0 18px;
    color: var(--muted, #6b7280);
    font-size: 14px;
    line-height: 1.45;
    cursor: pointer;
}

.consent-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    flex: 0 0 auto;
}

.form-field .consent-checkbox {
    display: flex;
    width: fit-content;
    max-width: 620px;
    align-items: flex-start;
    justify-content: flex-start;
    justify-self: start;
    gap: 10px;
    margin: 8px 0 0;
    font-weight: 600;
}

.form-field .consent-checkbox input {
    width: 18px;
    min-width: 18px;
    height: 18px;
    padding: 0;
}

.form-field .consent-checkbox span {
    display: inline;
    max-width: 520px;
}

.top-header {
    height: 80px;
    padding: 0 24px;
    background-color: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: start;
}

.logo-image {
    width: 102px;
    height: 102px;
    object-fit: contain;
    margin-left: 0;
}

.logo-icon {
    font-size: 34px;
}

.logo h1 {
    font-size: 22px;
    margin-bottom: 4px;
    text-align: center;
}

.logo p {
    font-size: 20px;
    color: #666666;
}

nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 44px;
}

/* Korisnik bira dva pojedinačna jela za svoj obrok */
.custom-meal-section {
    margin-top: 0;
    border: 1px solid var(--line, #e7e5e4);
    border-radius: 10px;
    padding: 24px;
    background-color: #ffffff;
    box-shadow: var(--shadow-sm, 0 8px 20px rgba(0, 0, 0, 0.05));
}

.custom-meal-section > p {
    margin: 6px 0 20px;
    color: var(--muted, #78716c);
}

.custom-meal-grid {
    margin-bottom: 20px;
}

.custom-choice-card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.custom-choice-card.selected-custom-meal {
    border: 2px solid var(--primary, #695140);
    box-shadow: 0 10px 26px rgba(81, 61, 48, 0.18);
}

.custom-choice-badge {
    align-self: flex-start;
    margin-bottom: 8px;
    border-radius: 999px;
    padding: 5px 9px;
    background-color: var(--accent-soft, #fff7d6);
    color: var(--primary-dark, #513d30);
    font-size: 11px;
    font-weight: 800;
}

.custom-choice-card .select-custom-meal {
    background-color: var(--primary, #695140);
}

.custom-choice-card.selected-custom-meal .select-custom-meal {
    background-color: #2f855a;
}

.custom-meal-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 18px 18px;
}

.custom-choice-card .custom-meal-quantity button {
    width: 36px;
    margin: 0;
    padding: 8px;
    background-color: #ffffff;
    color: var(--primary, #695140);
    border: 1px solid var(--line, #e7e5e4);
    box-shadow: none;
}

.custom-meal-quantity span {
    min-width: 28px;
    font-weight: 800;
    text-align: center;
}

.custom-meal-selectors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.custom-meal-selectors label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

.custom-meal-selectors select {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line, #e7e5e4);
    border-radius: 7px;
    background-color: #ffffff;
    font: inherit;
}

#customMealPreview {
    display: grid;
    gap: 10px;
    margin: 20px 0;
}

.custom-meal-preview-row,
.custom-meal-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px;
    border-radius: 7px;
    background-color: #fafaf9;
}

.custom-meal-preview-row div {
    display: grid;
    gap: 4px;
}

.custom-meal-preview-row span {
    color: var(--muted, #78716c);
    font-size: 12px;
}

.custom-meal-total {
    background-color: var(--accent-soft, #fff7d6);
    font-size: 18px;
}

.custom-meal-error {
    color: #b91c1c;
}

#addCustomMealButton {
    padding: 13px 20px;
    border: 0;
    border-radius: 7px;
    background-color: var(--primary, #695140);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 650px) {
    .custom-meal-selectors {
        grid-template-columns: 1fr;
    }
}

/* Kombinovana jela */
.meal-components-editor {
    grid-column: 1 / -1;
    border: 1px solid var(--line, #e7e5e4);
    border-radius: 9px;
    padding: 16px;
    background-color: #fafaf9;
}

.meal-form-details {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.meal-form-details.hidden {
    display: none;
}

.meal-image-uploader {
    display: grid;
    gap: 8px;
    grid-column: 1 / -1;
    border: 1px solid var(--line, #e7e5e4);
    border-radius: 10px;
    padding: 12px;
    background-color: #ffffff;
}

.meal-image-uploader label {
    font-weight: 700;
    color: var(--text, #1c1917);
}

.meal-image-uploader input[type="file"] {
    width: 100%;
}

.meal-image-uploader small {
    color: #78716c;
}

.meal-image-preview {
    width: 150px !important;
    height: 105px !important;
    border: 1px solid var(--line, #e7e5e4);
    border-radius: 10px;
    overflow: hidden;
    background-color: #fafaf9;
}

.meal-image-preview img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    .meal-form-details {
        grid-template-columns: 1fr;
    }
}

.meal-components-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.meal-components-heading p {
    margin-top: 4px;
    color: #78716c;
    font-size: 13px;
}

.admin-form .add-component-button {
    width: auto;
    flex: 0 0 auto;
    background-color: #2563eb;
}

.meal-components-list {
    display: grid;
    gap: 10px;
}

.meal-component-row {
    display: grid;
    grid-template-columns: auto 1fr 1.35fr 0.95fr 0.95fr 0.75fr 110px;
    align-items: center;
    gap: 9px;
}

.meal-component-row input,
.meal-component-row select {
    min-width: 0;
    width: 100%;
}

.component-image-upload {
    display: grid;
    grid-template-columns: auto 34px;
    align-items: center;
    gap: 6px;
}

.component-image-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line, #e7e5e4);
    border-radius: 8px;
    background-color: #ffffff;
    color: var(--primary, #695140);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.component-image-button input {
    display: none;
}

.component-image-preview {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--line, #e7e5e4);
}

.component-image-status {
    grid-column: 1 / -1;
    min-height: 14px;
    color: #78716c;
    font-size: 11px;
}

.component-position {
    color: var(--primary, #695140);
    font-size: 13px;
    white-space: nowrap;
}

.admin-form .remove-component-button {
    border: 1px solid #fecaca;
    background-color: #ffffff;
    box-shadow: none;
    color: #b91c1c;
}

.admin-meal-component {
    margin-top: 5px;
    color: #78716c;
    font-size: 12px;
}

.meal-components {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

.meal-number-badge {
    align-self: flex-start;
    margin-bottom: 7px;
    border-radius: 999px;
    padding: 4px 8px;
    background-color: var(--accent-soft, #fff7d6);
    color: var(--primary-dark, #513d30);
    font-size: 11px;
    font-weight: 800;
}

.single-meal-weight {
    margin-top: 8px;
    font-size: 12px !important;
    font-weight: 700;
}

.meal-component {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px dashed var(--line, #e7e5e4);
    padding-bottom: 6px;
}

.meal-component-main {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.meal-component-main strong {
    color: var(--ink, #292524);
    font-size: 13px;
}

.meal-component-main small,
.meal-component-price {
    color: var(--muted, #78716c);
    font-size: 11px;
}

.meal-component-price {
    white-space: nowrap;
}

.meal-total-price {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 13px;
}

.meal-total-price span {
    color: var(--muted, #78716c);
    font-size: 12px;
}

.meal-total-price strong {
    color: var(--primary-dark, #513d30);
    font-size: 21px;
}

@media (max-width: 650px) {
    .meal-components-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .meal-component-row {
        grid-template-columns: 1fr;
    }
}

nav a {
    text-decoration: none;
    color: #111111;
    font-weight: 600;
    padding: 28px 0;
}

nav a.active {
    color: #ff7900;
    border-bottom: 3px solid #ff7900;
}

.user-area {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 600;
}

.cart-icon {
    font-size: 24px;
}

.page-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 40px;
    display: grid;
    grid-template-columns: 1fr 390px;
    gap: 30px;
}

.menu-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.catering-page {
    width: min(940px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 70px;
}

.catering-heading {
    margin-bottom: 28px;
}

.catering-label {
    margin-bottom: 8px;
    color: #ff7900;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.catering-heading h1 {
    margin-bottom: 10px;
    font-size: 34px;
}

.catering-heading > p:last-child {
    max-width: 680px;
    color: #666666;
    font-size: 17px;
    line-height: 1.5;
}

.catering-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 28px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    font-size: 14px;
    font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
    background-color: #ffffff;
    font: inherit;
}

.form-field textarea {
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: #ff7900;
    outline: 2px solid rgba(255, 121, 0, 0.14);
}

.full-width {
    grid-column: 1 / -1;
}

.catering-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555555;
    font-size: 14px;
}

.pickup-options {
    display: flex;
    gap: 24px;
    padding: 16px;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
}

.pickup-options legend {
    padding: 0 6px;
    font-size: 14px;
    font-weight: 700;
}

.pickup-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.pickup-options input {
    width: 18px;
    height: 18px;
    accent-color: #ff7900;
}

.pickup-note {
    width: 100%;
    color: #666666;
    font-size: 13px;
    line-height: 1.45;
}

.catering-consent input {
    width: 18px;
    height: 18px;
    accent-color: #ff7900;
}

.catering-submit {
    padding: 14px 20px;
    border: 0;
    border-radius: 7px;
    background-color: #ff7900;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.catering-submit:hover {
    background-color: #e96d00;
}

.catering-success {
    padding: 13px;
    border: 1px solid #b7e4c7;
    border-radius: 7px;
    background-color: #edf9f1;
    color: #18753a;
    font-weight: 700;
}

@media (max-width: 900px) {
    .top-header nav {
        gap: 18px;
    }

    .catering-form {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }

    .pickup-options {
        flex-direction: column;
        gap: 12px;
    }
}

.welcome {
    margin-bottom: 0;
}

.welcome h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.welcome p {
    font-size: 17px;
    color: #555555;
}

.menu-heading {
    margin-bottom: 22px;
}

.menu-heading h2 {
    font-size: 24px;
    margin-bottom: 14px;
}

.category-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.order-schedule {
    display: grid;
    width: min(100%, 460px);
    grid-template-columns: minmax(150px, 1fr) minmax(170px, 1fr);
    grid-template-rows: auto auto;
    align-items: end;
    gap: 6px 12px;
    padding: 10px 12px;
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.order-schedule label {
    color: #555555;
    font-size: 13px;
    font-weight: 700;
}

.order-schedule label:first-of-type {
    grid-column: 1;
    grid-row: 1;
}

.order-schedule #orderDate {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
}

.order-schedule label:last-of-type {
    grid-column: 2;
    grid-row: 1;
}

.order-schedule .delivery-time-selects {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
}

.order-schedule input,
.order-schedule select {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 700;
    background-color: #ffffff;
}

.delivery-time-selects {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 7px;
}

@media (max-width: 1200px) {
    .menu-top-row {
        align-items: stretch;
        flex-direction: column;
    }

    .order-schedule {
        width: 100%;
        max-width: 500px;
    }
}

.delivery-time-selects span {
    font-weight: 900;
}

@media (max-width: 900px) {
    .menu-top-row {
        flex-direction: column;
    }

    .order-schedule {
        width: 100%;
        grid-template-columns: auto 1fr;
    }
}

.category-tab {
    border: 1px solid #dddddd;
    background-color: #ffffff;
    color: #333333;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.category-tab.active {
    background-color: #ff7900;
    border-color: #ff7900;
    color: #ffffff;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.food-card {
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.food-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.food-info {
    padding: 16px 18px 8px;
}

.food-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.food-info p {
    color: #666666;
    margin-bottom: 10px;
}

.price {
    color: #ff7900 !important;
    font-size: 18px;
    font-weight: 700;
}

.food-card button {
    width: calc(100% - 36px);
    margin: 8px 18px 18px;
    padding: 13px;
    border: none;
    border-radius: 8px;
    background-color: #ff7900;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.cart {
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    padding: 26px;
    min-height: 420px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.cart h2 {
    font-size: 24px;
    margin-bottom: 26px;
}

.cart-list {
    list-style: none;
    border-bottom: 1px solid #eeeeee;
    margin-bottom: 22px;
}

.cart-list li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border-top: 1px solid #eeeeee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    font-size: 22px;
}

.cart-total strong {
    font-size: 24px;
}

.company-autocomplete {
    position: relative;
    width: 100%;
}

.company-autocomplete .order-input {
    width: 100%;
}

.company-suggestions {
    position: absolute;
    z-index: 30;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid var(--line, #e7e5e4);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(41, 37, 36, 0.16);
}

.company-suggestion {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    padding: 11px 13px;
    border: 0;
    border-bottom: 1px solid var(--line, #e7e5e4);
    background: #fff;
    color: var(--text, #292524);
    text-align: left;
    cursor: pointer;
}

.company-suggestion:last-child {
    border-bottom: 0;
}

.company-suggestion:hover,
.company-suggestion:focus {
    outline: none;
    background: var(--accent-soft, #f8f4e8);
}

.company-suggestion strong {
    font-size: 14px;
}

.company-suggestion span {
    color: var(--muted, #78716c);
    font-size: 12px;
}

.order-button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 8px;
    background-color: #ff7900;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    opacity: 0.9;
}

.simple-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px;
}

.simple-page h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.simple-page > p {
    color: #666666;
    margin-bottom: 30px;
}

.orders-list {
    display: grid;
    gap: 18px;
}

.order-card {
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    padding: 22px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.order-card h3 {
    margin-bottom: 8px;
}

.order-card p {
    margin-bottom: 8px;
    color: #555555;
}

.status-paid {
    color: #1f9d55 !important;
    font-weight: 700;
}

.status-cancelled {
    color: #e3342f !important;
    font-weight: 700;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 30px;
}

.contact-info,
.contact-form {
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    padding: 26px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    margin-bottom: 18px;
}

.contact-info p {
    margin-bottom: 14px;
}

.contact-form {
    display: grid;
    gap: 12px;
}

.contact-form label {
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
}

.contact-form button {
    margin-top: 8px;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background-color: #ff7900;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background-color: #f7f7f8;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    display: grid;
    gap: 14px;
}

.login-card h1 {
    font-size: 30px;
}

.login-card p {
    color: #666666;
}

.login-card label {
    font-weight: 700;
}

.login-card input,
.login-card select {
    padding: 13px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    font-size: 15px;
    background-color: #ffffff;
}

.login-card button {
    margin-top: 8px;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background-color: #ff7900;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.login-help {
    font-size: 13px;
    line-height: 1.6;
}

.admin-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 250px 1fr;
    background-color: #f7f7f8;
}

.admin-sidebar {
    background-color: #111827;
    color: #ffffff;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
}

.admin-sidebar h2 {
    font-size: 24px;
    margin-bottom: 34px;
}

.admin-nav {
    position: static;
    transform: none;
    width: auto;
    display: grid;
    gap: 8px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #d1d5db;
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 8px;
    font-weight: 600;
}

.admin-nav a.active,
.admin-nav a:hover {
    background-color: #1f4fa3;
    color: #ffffff;
    border-bottom: none;
}

.logout-button {
    position: fixed;
    left: 22px;
    bottom: 18px;
    z-index: 1000;
    padding: 14px 16px;
    border: 1px solid #374151;
    border-radius: 8px;
    background-color: #111827;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.22);
}

.logout-button:hover {
    background-color: #1f2937;
}

.group-custom-actions {
    display: none;
}

.admin-main {
    padding: 32px;
    overflow-x: auto;
}

.admin-header {
    margin-bottom: 24px;
}

.admin-header h1 {
    font-size: 32px;
    margin-bottom: 6px;
}

.admin-header p {
    color: #666666;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card {
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.stat-card p {
    color: #666666;
    margin-bottom: 10px;
}

.stat-card h2 {
    font-size: 30px;
}

.upcoming-orders-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.upcoming-orders-panel {
    min-width: 0;
    border: 1px solid var(--line, #e7e5e4);
    border-radius: 10px;
    padding: 22px;
    background-color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.upcoming-orders-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.upcoming-orders-heading h2 {
    margin-top: 3px;
    color: #292524;
    font-size: 20px;
}

.upcoming-label {
    color: #78716c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.upcoming-total {
    display: grid;
    flex: 0 0 48px;
    min-width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background-color: var(--primary, #695140);
    color: #ffffff;
    font-size: 21px;
}

.company-order-groups {
    display: grid;
    gap: 10px;
}

.company-order-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--company-border);
    border-left-width: 5px;
    border-radius: 8px;
    padding: 13px 14px;
    background-color: var(--company-bg);
    color: var(--company-text);
}

.company-order-name {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}

.company-order-name strong {
    overflow-wrap: anywhere;
}

.company-color-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background-color: var(--company-border);
}

.company-order-counts {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.company-order-counts span {
    border: 1px solid color-mix(in srgb, var(--company-border) 45%, transparent);
    border-radius: 999px;
    padding: 5px 9px;
    background-color: rgba(255, 255, 255, 0.64);
    font-size: 12px;
    white-space: nowrap;
}

.upcoming-empty {
    border: 1px dashed #d6d3d1;
    border-radius: 8px;
    padding: 22px 14px;
    background-color: #fafaf9;
    color: #78716c;
    text-align: center;
}

.admin-section {
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.section-title h2,
.admin-section h2 {
    font-size: 24px;
}

.admin-action-button {
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    background-color: #ff7900;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 14px;
    background-color: #f3f4f6;
    color: #374151;
    font-size: 14px;
}

.admin-table td {
    padding: 14px;
    border-bottom: 1px solid #eeeeee;
    vertical-align: middle;
}

.admin-table img {
    width: 58px;
    height: 42px;
    object-fit: cover;
    border-radius: 6px;
    background-color: #eeeeee;
}

.admin-table button {
    padding: 8px 12px;
    margin-right: 6px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    background-color: #ffffff;
    color: #111111;
    font-weight: 600;
    cursor: pointer;
}

.admin-table button:hover {
    background-color: #f3f4f6;
}

.admin-table button:last-child {
    color: #e3342f;
}

@media (max-width: 1000px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        min-height: auto;
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .upcoming-orders-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .admin-main {
        padding: 20px;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .company-order-card,
    .company-order-counts {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-table {
        min-width: 700px;
    }
}
.admin-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}

.admin-form input,
.admin-form select {
    padding: 12px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
}

.admin-form button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: #ff7900;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.admin-search {
    margin-bottom: 16px;
}

.admin-search input {
    width: 100%;
    max-width: 520px;
    padding: 12px 14px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
}

.admin-nav-badge {
    display: grid;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 12px;
    background-color: #d64545;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.new-order-row {
    background-color: #fffbeb;
    box-shadow: inset 4px 0 0 var(--accent);
}

.new-order-row:hover {
    background-color: #fff7d6 !important;
}

.new-order-label {
    display: inline-block;
    margin: 0 8px 6px 0;
    padding: 4px 7px;
    border-radius: 5px;
    background-color: var(--accent);
    color: #3f3128;
    font-size: 10px;
    font-weight: 900;
}

.order-seen-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 112px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background-color: #ffffff;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.order-seen-control input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.new-order-row .order-seen-control {
    border-color: var(--accent);
    background-color: var(--accent-soft);
    color: var(--primary);
}

.orders-toolbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
}

.orders-toolbar label {
    display: grid;
    gap: 6px;
    color: #555555;
    font-size: 13px;
    font-weight: 700;
}

.orders-toolbar input,
.orders-toolbar select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    background-color: #ffffff;
    font-family: inherit;
    font-size: 14px;
}

.orders-toolbar .admin-action-button {
    height: 42px;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .orders-toolbar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .orders-toolbar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .admin-form {
        grid-template-columns: 1fr;
    }
}
.empty-message {
    grid-column: 1 / -1;
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    padding: 24px;
    color: #666666;
    text-align: center;
}
.cart-list li {
    align-items: center;
}

.cart-controls {
    display: inline-flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 104px;
    white-space: nowrap;
}

.cart-controls button {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    margin: 0;
    border: 1px solid #dddddd;
    border-radius: 6px;
    background-color: #ffffff;
    color: #111111;
    font-weight: 700;
    cursor: pointer;
}

.cart-controls span {
    min-width: 20px;
    flex: 0 0 auto;
    text-align: center;
    font-weight: 700;
}

.cart-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px minmax(88px, auto);
    align-items: center;
    column-gap: 12px;
}

.cart-list li > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.cart-list li > strong:last-child {
    justify-self: end;
    white-space: nowrap;
}
.order-status {
    padding: 8px 10px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    background-color: #ffffff;
    font-family: inherit;
    font-weight: 700;
}
.order-status {
    padding: 8px 10px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    background-color: #ffffff;
    font-family: inherit;
    font-weight: 700;
    margin-right: 8px;
}

.admin-table .order-status + button {
    background-color: #0dff00;
    color: #ffffff;
    border-color: #0dff00;
}
.status-received {
    color: #ff7900 !important;
    font-weight: 700;
}

.status-preparing {
    color: #1f4fa3 !important;
    font-weight: 700;
}

.status-delivered {
    color: #1f9d55 !important;
    font-weight: 700;
}

.status-cancelled {
    color: #e3342f !important;
    font-weight: 700;
}
.small-logout-button {
    padding: 8px 12px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    background-color: #ffffff;
    color: #111111;
    font-weight: 700;
    cursor: pointer;
}

.small-logout-button:hover {
    background-color: #f3f4f6;
}

.hidden {
    display: none !important;
}
.cancel-button {
    background-color: #e3342f !important;
    color: #ffffff !important;
    border: 1px solid #e3342f !important;
}
.clear-cart-button {
    width: 100%;
    padding: 13px;
    border: 1px solid #e3342f;
    border-radius: 8px;
    background-color: #ffffff;
    color: #e3342f;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 10px;
}

.clear-cart-button:hover {
    background-color: #fff5f5;
}
.cart-note {
    margin-top: 12px;
    color: #666666;
    font-size: 14px;
}
.order-note {
    width: 100%;
    padding: 12px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    resize: vertical;
    margin-bottom: 10px;
}

.order-note-preview {
    margin-top: 6px;
    color: #666666;
    font-size: 14px;
}

.order-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    margin-bottom: 10px;
}

.payment-options {
    min-width: 0;
    margin: 0 0 12px;
    padding: 12px;
    border: 1px solid #dddddd;
    border-radius: 8px;
}

.payment-options legend {
    padding: 0 5px;
    font-size: 14px;
    font-weight: 700;
}

.payment-options legend span {
    color: #c62828;
}

.payment-option,
.company-invoice-toggle {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 0;
    cursor: pointer;
}

.payment-option input,
.company-invoice-toggle input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 0;
    accent-color: #8a6a3f;
}

.payment-option.is-disabled {
    color: #888888;
    cursor: not-allowed;
}

.payment-option small {
    font-size: 12px;
}

.payment-options-message {
    margin: 4px 0;
    color: #666666;
    font-size: 14px;
}

.payment-options-error {
    color: #b42318;
}

.company-invoice-toggle {
    margin: 0 0 10px;
    font-weight: 700;
}

.company-invoice-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.company-invoice-toggle:has(input:checked) + .company-invoice-fields {
    display: grid !important;
}

.checkout-payment-section {
    margin-bottom: 18px;
}

.checkout-payment-section .company-invoice-fields {
    margin-top: 5px;
}

@media (max-width: 620px) {
    .company-invoice-fields {
        grid-template-columns: 1fr;
    }
}

/* Final group-order shortcut: nav keeps text, floating plus stays bottom-left */
.group-orders-floating-button {
    position: fixed !important;
    left: 18px !important;
    right: auto !important;
    bottom: 18px !important;
    z-index: 950 !important;
    display: grid !important;
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    place-items: center !important;
    padding: 0 !important;
    border: 2px solid var(--accent, #c7a76c) !important;
    border-radius: 50% !important;
    background: var(--primary, #695140) !important;
    color: #ffffff !important;
    box-shadow: 0 16px 34px rgba(81, 61, 48, 0.28) !important;
    font-size: 34px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

.group-orders-floating-button:hover {
    background: var(--primary-dark, #513d30) !important;
    transform: translateY(-2px);
}

.group-orders-floating-button .group-order-shortcut-hint {
    top: auto;
    right: auto;
    bottom: calc(100% + 12px);
    left: 0;
}

.group-orders-floating-button .group-order-shortcut-hint::before {
    top: auto;
    right: auto;
    bottom: -7px;
    left: 22px;
    border: 0;
    border-right: 1px solid var(--line, #e6ddd4);
    border-bottom: 1px solid var(--line, #e6ddd4);
}

@media (max-width: 620px) {
    .group-orders-floating-button {
        left: 14px !important;
        bottom: 14px !important;
        width: 54px !important;
        height: 54px !important;
        min-width: 54px !important;
        font-size: 32px !important;
    }

    .group-orders-floating-button .group-order-shortcut-hint {
        max-width: 210px;
        white-space: normal;
    }
}

.user-area {
    position: relative;
}

.profile-button {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background-color: #ffffff;
    font: inherit;
    font-weight: 700;
    color: #111111;
    cursor: pointer;
}

.profile-button:hover {
    border-color: #eeeeee;
    background-color: #f9fafb;
}

.user-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #dddddd;
    background-color: #f3f4f6;
}

.profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 300px;
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    padding: 18px;
    display: grid;
    gap: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    z-index: 50;
}

.profile-avatar-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
}

.profile-avatar-image {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #dddddd;
    background-color: #f3f4f6;
}

.profile-menu label {
    font-size: 13px;
    font-weight: 700;
    color: #333333;
}

.profile-menu input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
}

.profile-menu input[type="file"] {
    padding: 9px;
    font-size: 13px;
    background-color: #f9fafb;
}

.profile-menu button {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

#saveProfileButton {
    background-color: #ff7900;
    color: #ffffff;
}

.profile-menu .small-logout-button {
    background-color: #ffffff;
    color: #e3342f;
    border: 1px solid #e3342f;
}

.profile-menu .small-logout-button:hover {
    background-color: #fff5f5;
}

/* Modern visual refresh */
:root {
    --primary: #695140;
    --primary-dark: #513d30;
    --accent: #dac485;
    --accent-soft: #fbf7eb;
    --ink: #171717;
    --muted: #667085;
    --line: #e5dfd8;
    --surface: #ffffff;
    --surface-soft: #f7f5f1;
    --green: #16855b;
    --red: #d64545;
    --shadow-sm: 0 2px 10px rgba(28, 25, 23, 0.05);
    --shadow-md: 0 12px 30px rgba(28, 25, 23, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    background-color: var(--surface-soft);
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.45;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
input,
select,
textarea {
    transition: border-color 160ms ease, background-color 160ms ease,
        color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

button:hover {
    opacity: 1;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(218, 196, 133, 0.42);
    outline-offset: 2px;
}

.top-header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: 76px;
    padding: 0 clamp(18px, 3vw, 42px);
    border-bottom-color: rgba(231, 229, 228, 0.9);
    background-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 12px rgba(28, 25, 23, 0.03);
}

.logo {
    min-width: 235px;
    gap: 10px;
}

.logo-image {
    width: 86px;
    height: 70px;
}

.logo p {
    color: #4a4a46;
    font-size: 16px;
    font-weight: 650;
}

.top-header nav {
    gap: clamp(22px, 3vw, 46px);
}

.top-header nav a {
    position: relative;
    padding: 27px 0 24px;
    color: #3f3f3b;
    font-size: 14px;
    font-weight: 700;
}

.top-header nav a::after {
    position: absolute;
    right: 0;
    bottom: 14px;
    left: 0;
    height: 3px;
    border-radius: 3px;
    background-color: transparent;
    content: "";
}

.top-header nav a:hover {
    color: var(--primary);
}

.top-header nav a.active {
    border-bottom: 0;
    color: var(--primary);
}

.top-header nav a.active::after {
    background-color: var(--accent);
}

.cart-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background-color: #fafafa;
    font-size: 18px;
}

.profile-button {
    min-height: 44px;
    padding: 5px 8px 5px 5px;
    border-color: var(--line);
    border-radius: 22px;
    background-color: var(--surface);
    box-shadow: var(--shadow-sm);
    font-size: 14px;
}

.profile-button:hover {
    border-color: #d6d3d1;
    background-color: #fafaf9;
}

.user-avatar {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
}

.profile-menu {
    border-color: var(--line);
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.page-layout {
    max-width: 1440px;
    padding: 40px clamp(22px, 4vw, 56px) 70px;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 32px;
}

.welcome h2 {
    margin-bottom: 7px;
    font-size: clamp(25px, 2.3vw, 32px);
    line-height: 1.2;
}

.welcome p,
.simple-page > p,
.catering-heading > p:last-child {
    color: var(--muted);
}

.menu-top-row {
    align-items: center;
    margin-bottom: 34px;
}

.order-schedule {
    padding: 12px 14px;
    border-color: var(--line);
    background-color: var(--surface);
    box-shadow: var(--shadow-sm);
}

.order-schedule input,
.order-input,
.order-note,
.contact-form input,
.contact-form textarea,
.login-card input,
.form-field input,
.form-field select,
.form-field textarea,
.profile-menu input {
    border-color: #d6d3d1;
    background-color: #ffffff;
    color: var(--ink);
}

.order-schedule input:focus,
.order-input:focus,
.order-note:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.login-card input:focus,
.profile-menu input:focus {
    border-color: var(--primary);
    outline: 3px solid rgba(218, 196, 133, 0.3);
}

.menu-heading {
    margin-bottom: 24px;
}

.menu-heading h2 {
    margin-bottom: 16px;
    font-size: 22px;
}

.category-tabs {
    gap: 9px;
}

.category-tab {
    padding: 9px 15px;
    border-color: var(--line);
    border-radius: 7px;
    color: #57534e;
    font-size: 14px;
}

.category-tab:hover {
    border-color: var(--accent);
    background-color: var(--accent-soft);
    color: var(--primary);
}

.category-tab.active {
    border-color: var(--primary);
    background-color: var(--primary);
    box-shadow: 0 5px 14px rgba(105, 81, 64, 0.2);
}

.menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.food-card {
    display: flex;
    width: 100%;
    max-width: 360px;
    min-width: 0;
    flex-direction: column;
    border-color: var(--line);
    background-color: var(--surface);
    box-shadow: var(--shadow-sm);
}

.food-card {
    position: relative;
}

.fasting-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    border: 1px solid #86efac;
    border-radius: 999px;
    padding: 6px 10px;
    background-color: #dcfce7;
    color: #166534;
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.16);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.food-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.food-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
    object-position: center;
    background-color: #f5f1eb;
}

.food-info {
    display: flex;
    min-height: 128px;
    flex: 1;
    flex-direction: column;
    padding: 17px 18px 8px;
}

.food-info h3 {
    font-size: 17px;
    line-height: 1.3;
}

.food-info p {
    color: var(--muted);
    font-size: 14px;
}

.food-info .price {
    margin-top: auto;
    color: var(--primary-dark) !important;
}

.food-card button,
.order-button,
.contact-form button,
.login-card button,
.catering-submit,
#saveProfileButton,
.admin-action-button,
.admin-form button {
    border-radius: 7px;
    background-color: var(--primary);
    box-shadow: 0 6px 16px rgba(105, 81, 64, 0.18);
}

.food-card button:hover,
.order-button:hover,
.contact-form button:hover,
.login-card button:hover,
.catering-submit:hover,
#saveProfileButton:hover,
.admin-action-button:hover,
.admin-form button:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 8px 20px rgba(81, 61, 48, 0.22);
    transform: translateY(-1px);
}

.cart {
    position: sticky;
    top: 100px;
    align-self: start;
    border-color: var(--line);
    padding: 24px;
    background-color: var(--surface);
    box-shadow: var(--shadow-md);
}

.cart h2 {
    margin-bottom: 20px;
    font-size: 21px;
}

.cart-list {
    margin-bottom: 18px;
}

.cart-list li {
    gap: 12px;
    padding: 14px 0;
    font-size: 14px;
}

.cart-controls button {
    width: 30px;
    height: 30px;
    border-color: var(--line);
    background-color: #fafaf9;
}

.cart-controls button:hover {
    border-color: var(--accent);
    background-color: var(--accent-soft);
    color: var(--primary);
}

.cart-total {
    padding: 3px 0;
    font-size: 18px;
}

.cart-total strong {
    font-size: 21px;
}

.order-input,
.order-note {
    margin-bottom: 9px;
    border-radius: 7px;
    font-size: 14px;
}

.clear-cart-button {
    border-color: #fecaca;
    border-radius: 7px;
    color: var(--red);
}

.clear-cart-button:hover {
    border-color: #fca5a5;
    background-color: #fff1f2;
}

.cart-note {
    padding: 10px 12px;
    border-radius: 7px;
    background-color: #f8faf9;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.simple-page,
.catering-page {
    width: min(1100px, calc(100% - 40px));
    max-width: none;
    padding: 48px 0 72px;
}

.simple-page h2,
.catering-heading h1 {
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.15;
}

.simple-page > p {
    max-width: 680px;
    margin-bottom: 30px;
    font-size: 16px;
}

.orders-list {
    gap: 14px;
}

.order-card {
    align-items: flex-start;
    border-color: var(--line);
    padding: 22px 24px;
    background-color: var(--surface);
    box-shadow: var(--shadow-sm);
}

.order-card:hover {
    border-color: #d6d3d1;
    box-shadow: var(--shadow-md);
}

.order-card > div:last-child {
    min-width: 130px;
    text-align: right;
}

.order-card h3 {
    font-size: 18px;
}

.order-card p {
    color: var(--muted);
    font-size: 14px;
}

.order-note-preview {
    color: var(--muted);
}

.status-received,
.status-preparing,
.status-delivered,
.status-cancelled,
.status-paid {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 9px;
    border-radius: 6px;
    background-color: #f5f5f4;
    font-size: 12px;
}

.status-received {
    background-color: var(--accent-soft);
}

.status-preparing {
    background-color: #eff6ff;
}

.status-delivered,
.status-paid {
    background-color: #ecfdf5;
}

.status-cancelled {
    background-color: #fff1f2;
}

.contact-layout {
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: 20px;
}

.contact-info,
.contact-form,
.catering-form {
    border-color: var(--line);
    padding: 28px;
    background-color: var(--surface);
    box-shadow: var(--shadow-sm);
}

.contact-info {
    background-color: var(--primary);
    color: #ffffff;
}

.contact-info h3 {
    font-size: 22px;
}

.contact-info p {
    color: #f4eee8;
    line-height: 1.6;
}

.contact-form {
    gap: 10px;
}

.contact-form label,
.form-field label {
    color: #3f3f3b;
    font-size: 13px;
}

.catering-page {
    width: min(980px, calc(100% - 40px));
}

.catering-heading {
    margin-bottom: 26px;
}

.catering-label {
    letter-spacing: 0;
}

.catering-form {
    gap: 18px;
}

.pickup-options {
    flex-wrap: wrap;
    border-color: var(--line);
    background-color: #fafaf9;
}

.pickup-options label {
    min-height: 36px;
}

.pickup-note {
    padding-top: 4px;
    border-top: 1px solid var(--line);
}

.catering-consent {
    padding: 4px 0;
}

.login-page {
    background-color: var(--surface-soft);
}

.login-page::before {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(34vw, 440px);
    background-color: var(--primary);
    content: "";
}

.login-card {
    position: relative;
    z-index: 1;
    max-width: 440px;
    border-color: var(--line);
    border-top: 4px solid var(--primary);
    padding: 36px;
    box-shadow: 0 18px 50px rgba(28, 25, 23, 0.14);
}

.login-card h1 {
    font-size: 32px;
}

.login-card label {
    margin-top: 2px;
    color: #3f3f3b;
    font-size: 13px;
}

.login-card a {
    color: var(--primary-dark);
    font-weight: 700;
}

.login-help:last-child {
    padding: 11px 12px;
    border-radius: 7px;
    background-color: #f5f7f6;
    color: var(--muted);
}

/* Admin refresh */
.admin-layout {
    background-color: #f3f5f4;
}

.admin-sidebar {
    background-color: #3f3128;
}

.admin-nav a.active,
.admin-nav a:hover {
    background-color: var(--primary);
}

.admin-main {
    padding: 34px;
}

.stat-card,
.admin-section {
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.stat-card:first-child {
    border-top: 3px solid var(--primary);
}

.stat-card:nth-child(2) {
    border-top: 3px solid #2563eb;
}

.stat-card:nth-child(3) {
    border-top: 3px solid var(--green);
}

.stat-card:nth-child(4) {
    border-top: 3px solid #db2777;
}

.admin-table th {
    background-color: #f5f7f6;
    color: #52525b;
}

.admin-table tbody tr:hover {
    background-color: #fafaf9;
}

.admin-table .order-status + button {
    border-color: var(--primary);
    background-color: var(--primary);
}

.admin-section-description {
    margin-top: 5px;
    color: var(--muted);
    font-size: 14px;
}

.admin-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.catering-admin-table {
    min-width: 1080px;
}

.catering-admin-table td {
    min-width: 150px;
    vertical-align: top;
}

.catering-admin-table td:nth-child(4) {
    min-width: 240px;
}

.catering-message {
    max-width: 340px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.municipality-settings-table {
    min-width: 760px;
}

.municipality-minimum-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.municipality-minimum-control input {
    width: 150px;
    padding: 10px 12px;
    border: 1px solid var(--line, #e7e5e4);
    border-radius: 7px;
    font: inherit;
    font-weight: 700;
}

.municipality-minimum-control span {
    color: var(--muted, #78716c);
    font-weight: 700;
}

.settings-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.settings-option {
    display: flex;
    min-height: 145px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 9px;
    padding: 24px;
    border: 1px solid var(--line, #e7e5e4);
    border-radius: 12px;
    background: #fff;
    color: var(--text, #292524);
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    transition: 0.18s ease;
}

.settings-option:hover,
.settings-option:focus {
    outline: none;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(81, 61, 48, 0.12);
}

.settings-option strong {
    color: var(--primary);
    font-size: 22px;
}

.settings-option span {
    color: var(--muted, #78716c);
    line-height: 1.5;
}

.settings-panel {
    padding-top: 4px;
}

.settings-back-button {
    padding: 10px 15px;
    border: 1px solid var(--line, #e7e5e4);
    border-radius: 7px;
    background: #fff;
    color: var(--primary);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.settings-back-button:hover {
    border-color: var(--primary);
    background: var(--accent-soft, #f8f4e8);
}

@media (max-width: 720px) {
    .settings-menu {
        grid-template-columns: 1fr;
    }
}

.settings-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.settings-status {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #166534;
    font-weight: 700;
}

.settings-status.is-inactive {
    background: #fef2f2;
    color: #991b1b;
}

.users-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(200px, 280px);
    gap: 12px;
    margin-bottom: 18px;
}

.users-toolbar input,
.users-toolbar select {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--line, #e7e5e4);
    border-radius: 8px;
    background: #fff;
    font: inherit;
}

.users-admin-table {
    min-width: 900px;
}

.new-companies-panel {
    margin-top: 32px;
    padding-top: 26px;
    border-top: 1px solid var(--line, #e7e5e4);
}

.new-companies-table {
    min-width: 620px;
}

.new-companies-count {
    display: inline-flex;
    min-width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}

@media (max-width: 720px) {
    .users-toolbar {
        grid-template-columns: 1fr;
    }
}

/* KMN brand details */
.top-header {
    border-bottom-color: rgba(218, 196, 133, 0.48);
}

.logo-image {
    mix-blend-mode: multiply;
}

.catering-label,
.price {
    color: var(--primary) !important;
}

.pickup-options input,
.catering-consent input {
    accent-color: var(--primary);
}

.profile-button:hover,
.food-card:hover,
.order-card:hover {
    border-color: var(--accent);
}

.cart-note,
.login-help:last-child,
.admin-table th {
    background-color: var(--accent-soft);
}

.stat-card:first-child {
    border-top-color: var(--accent);
}

.profile-menu {
    width: 210px;
    padding: 10px;
}

.profile-menu-link {
    display: block;
    padding: 11px 12px;
    border-radius: 7px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.profile-menu-link:hover,
.profile-menu-link.active {
    background-color: var(--accent-soft);
    color: var(--primary);
}

.profile-menu .small-logout-button {
    margin-top: 4px;
    padding: 10px 12px;
    text-align: left;
}

.profile-page {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 72px;
}

.profile-page-heading {
    margin-bottom: 28px;
}

.profile-page-label {
    margin-bottom: 7px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.profile-page-heading h1 {
    margin-bottom: 8px;
    font-size: 36px;
}

.profile-page-heading > p:last-child,
.profile-photo-section p {
    color: var(--muted);
}

.profile-settings {
    display: grid;
    gap: 20px;
}

.profile-photo-section,
.profile-data-section {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
    background-color: var(--surface);
    box-shadow: var(--shadow-sm);
}

.profile-photo-section {
    display: flex;
    align-items: center;
    gap: 24px;
}

.profile-page-avatar {
    width: 118px;
    height: 118px;
    flex: 0 0 118px;
    border: 3px solid var(--accent);
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--surface-soft);
}

.profile-photo-section h2,
.profile-data-section h2 {
    margin-bottom: 7px;
    font-size: 20px;
}

.profile-upload-button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 14px;
    border: 1px solid var(--primary);
    border-radius: 7px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.profile-upload-button:hover {
    background-color: var(--accent-soft);
}

.profile-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.profile-form-grid input[readonly] {
    background-color: #f5f3ef;
    color: #78716c;
    cursor: not-allowed;
}

.profile-save-button {
    margin-top: 22px;
    padding: 13px 20px;
    border: 0;
    border-radius: 7px;
    background-color: var(--primary);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(105, 81, 64, 0.18);
}

.profile-save-button:hover {
    background-color: var(--primary-dark);
}

@media (max-width: 620px) {
    .profile-page {
        width: min(100% - 28px, 980px);
        padding: 32px 0 52px;
    }

    .profile-photo-section {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-form-grid {
        grid-template-columns: 1fr;
    }

    .profile-form-grid .full-width {
        grid-column: auto;
    }
}

/* Centered notifications */
.notification-open {
    overflow: hidden;
}

.notification-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    padding: 20px;
    place-items: center;
    background-color: rgba(36, 27, 22, 0.48);
    opacity: 0;
    backdrop-filter: blur(4px);
    transition: opacity 180ms ease;
}

.notification-overlay.is-visible {
    opacity: 1;
}

.notification-modal {
    width: min(430px, 100%);
    padding: 30px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--accent);
    border-radius: 8px;
    background-color: var(--surface);
    box-shadow: 0 24px 70px rgba(36, 27, 22, 0.26);
    text-align: center;
    transform: translateY(12px) scale(0.98);
    transition: transform 180ms ease;
}

.notification-overlay.is-visible .notification-modal {
    transform: translateY(0) scale(1);
}

.notification-symbol {
    display: grid;
    width: 54px;
    height: 54px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 50%;
    background-color: var(--accent-soft);
    color: var(--primary);
    font-size: 26px;
    font-weight: 800;
}

.notification-success {
    border-top-color: #2f855a;
}

.notification-success .notification-symbol {
    background-color: #ecfdf5;
    color: #18794e;
}

.notification-warning {
    border-top-color: var(--accent);
}

.notification-danger {
    border-top-color: #d64545;
}

.notification-danger .notification-symbol {
    background-color: #fff1f2;
    color: #c93636;
}

.notification-modal h2 {
    margin-bottom: 9px;
    font-size: 23px;
}

.notification-modal p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
    white-space: pre-wrap;
}

.notification-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.notification-button {
    min-width: 118px;
    padding: 11px 17px;
    border-radius: 7px;
    font-weight: 700;
    cursor: pointer;
}

.notification-button-primary {
    border: 1px solid var(--primary);
    background-color: var(--primary);
    color: #ffffff;
}

.notification-button-primary:hover {
    background-color: var(--primary-dark);
}

.additional-meals-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(36, 27, 22, 0.48);
    opacity: 0;
    backdrop-filter: blur(4px);
    transition: opacity 180ms ease;
}

.additional-meals-overlay.is-visible {
    opacity: 1;
}

.additional-meals-modal {
    width: min(94vw, 760px);
    max-height: 90vh;
    overflow: auto;
    padding: 28px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--accent);
    border-radius: 10px;
    background-color: var(--surface);
    box-shadow: 0 24px 70px rgba(36, 27, 22, 0.26);
}

.additional-meals-modal h2 {
    margin: 0 0 8px;
    color: var(--text);
}

.additional-meals-modal p {
    margin: 0 0 22px;
    color: var(--muted);
}

.additional-meals-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.additional-meal-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.additional-meal-card:has(input:checked) {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.additional-meal-card:hover {
    transform: translateY(-2px);
}

.additional-meal-card input {
    width: 18px;
    height: 18px;
}

.additional-meal-card img {
    width: 100%;
    height: 120px;
    border-radius: 10px;
    object-fit: cover;
}

.additional-meal-card strong {
    color: var(--text);
}

.additional-meal-card span {
    color: var(--primary);
    font-weight: 800;
}

.additional-meals-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.additional-meals-actions button {
    border: 0;
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 800;
    cursor: pointer;
}

.additional-meals-secondary {
    background: #f3f4f6;
    color: #374151;
}

.additional-meals-primary {
    background: var(--primary);
    color: #ffffff;
}

@media (max-width: 760px) {
    .additional-meals-overlay {
        align-items: flex-end;
        padding: 12px;
    }

    .additional-meals-modal {
        width: 100%;
        max-height: 86vh;
        padding: 20px 16px 16px;
        border-radius: 18px 18px 12px 12px;
    }

    .additional-meals-modal h2 {
        font-size: 22px;
    }

    .additional-meals-modal p {
        margin-bottom: 16px;
        font-size: 14px;
    }

    .additional-meals-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .additional-meal-card {
        grid-template-columns: 72px minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        padding: 10px;
    }

    .additional-meal-card input {
        grid-column: 3;
        grid-row: 1 / span 3;
    }

    .additional-meal-card img {
        grid-column: 1;
        grid-row: 1 / span 3;
        width: 72px;
        height: 64px;
    }

    .additional-meal-card strong,
    .additional-meal-card span {
        grid-column: 2;
    }

    .additional-meals-actions {
        flex-direction: column;
        margin-top: 16px;
    }

    .additional-meals-actions button {
        width: 100%;
    }
}

.notification-danger .notification-button-primary {
    border-color: #d64545;
    background-color: #d64545;
}

.notification-danger .notification-button-primary:hover {
    background-color: #b83232;
}

.notification-button-secondary {
    border: 1px solid var(--line);
    background-color: #ffffff;
    color: var(--ink);
}

.notification-button-secondary:hover {
    background-color: var(--surface-soft);
}

/* Cart page and mobile floating cart */
.cart-icon {
    position: relative;
    color: var(--ink);
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    display: grid;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    place-items: center;
    border: 2px solid #ffffff;
    border-radius: 10px;
    background-color: var(--primary);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.checkout-page {
    width: min(1050px, calc(100% - 40px));
    margin: 0 auto;
    padding: 42px 0 72px;
}

.checkout-heading {
    margin-bottom: 26px;
}

.checkout-heading a {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.checkout-heading h1 {
    margin-bottom: 8px;
    font-size: clamp(28px, 3vw, 38px);
}

.checkout-heading p {
    color: var(--muted);
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
    gap: 22px;
    align-items: start;
}

.checkout-cart {
    position: static;
    display: block;
}

.checkout-details {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 26px;
    background-color: var(--surface);
    box-shadow: var(--shadow-sm);
}

.checkout-details h2 {
    margin-bottom: 22px;
    font-size: 21px;
}

.checkout-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
    margin-bottom: 20px;
}

.checkout-form input,
.checkout-form textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #d6d3d1;
    border-radius: 7px;
    background-color: #ffffff;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
    border-color: var(--primary);
    outline: 3px solid rgba(218, 196, 133, 0.3);
}

@media (max-width: 480px) {
    .notification-modal {
        padding: 26px 20px 22px;
    }

    .notification-actions {
        flex-direction: column-reverse;
    }

    .notification-button {
        width: 100%;
    }
}

@media (max-width: 820px) {
    .page-layout > .cart {
        display: none;
    }

    .menu-top-row .order-schedule {
        display: none;
    }

    .top-header .cart-icon {
        position: fixed;
        right: 18px;
        bottom: 20px;
        z-index: 60;
        display: grid;
        width: 58px;
        height: 58px;
        place-items: center;
        border: 2px solid var(--accent);
        border-radius: 50%;
        background-color: var(--primary);
        color: #ffffff;
        box-shadow: 0 12px 28px rgba(81, 61, 48, 0.32);
        font-size: 23px;
    }

    .top-header .cart-icon:hover {
        background-color: var(--primary-dark);
        transform: translateY(-2px);
    }

    .top-header .cart-count {
        top: -4px;
        right: -3px;
        background-color: #d64545;
    }

    .checkout-page {
        width: min(100% - 28px, 1050px);
        padding: 30px 0 100px;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-cart {
        display: block;
        min-height: 0;
    }
}

@media (max-width: 560px) {
    .checkout-form {
        grid-template-columns: 1fr;
    }

    .checkout-form .full-width {
        grid-column: auto;
    }

    .checkout-details,
    .checkout-cart {
        padding: 20px 17px;
    }
}

.group-orders-floating-button {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;
    padding: 13px 18px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 16px 32px rgba(76, 54, 40, 0.22);
}

.group-orders-floating-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.group-order-layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 380px);
    gap: 26px;
    align-items: start;
}

.group-order-layout .menu-section {
    min-width: 0;
}

.group-order-layout .menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.group-order-layout .category-tabs {
    margin-bottom: 16px;
}

.group-order-cart {
    width: 100%;
    position: sticky;
    top: 92px;
    overflow: visible;
}

.group-participant-fields {
    display: grid;
    gap: 12px;
    margin: 0 0 20px;
    padding: 14px;
    border: 1px solid var(--line, #e7e5e4);
    border-radius: 14px;
    background: #fbfaf8;
}

.group-participant-title {
    margin: 0 0 2px;
    color: var(--primary-dark, #513d30);
    font-size: 14px;
    font-weight: 900;
}

.group-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.group-participant-fields label {
    color: var(--text, #1c1917);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.group-participant-fields input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 12px 13px;
    border: 1px solid var(--line, #e7e5e4);
    border-radius: 10px;
    background: #fff;
    color: var(--text, #1c1917);
    font: inherit;
    font-weight: 700;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.group-participant-fields input:focus {
    border-color: var(--accent, #c9a969);
    box-shadow: 0 0 0 3px rgba(201, 169, 105, 0.18);
}

.worker-form {
    margin-bottom: 20px;
}

.worker-permissions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    grid-column: 1 / -1;
}

.worker-permissions label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
}

.group-participants-picker {
    max-width: 620px;
    margin: 14px 0 10px;
}

.group-order-cart .cart-list {
    display: grid;
    gap: 0;
}

.group-cart-item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 16px 0 !important;
}

.group-cart-item-name {
    min-width: 0;
    color: var(--text, #1c1917);
    font-weight: 700;
    line-height: 1.3;
    word-break: normal;
}

.group-cart-controls {
    display: inline-grid;
    grid-template-columns: 34px 30px 34px;
    align-items: center;
    justify-items: center;
    gap: 6px;
    white-space: nowrap;
}

.group-cart-controls button {
    width: 34px;
    height: 30px;
    border: 1px solid var(--line, #e7e5e4);
    border-radius: 7px;
    background: #fff;
    color: var(--primary, #695140);
    font-weight: 800;
    cursor: pointer;
}

.group-cart-controls strong {
    min-width: 30px;
    text-align: center;
}

.group-cart-item-price {
    min-width: 94px;
    color: var(--primary-dark, #513d30);
    font-size: 16px;
    text-align: right;
    white-space: nowrap;
}

.group-order-cart .clear-cart-button,
.group-order-cart .order-button,
.group-order-cart .order-note {
    width: 100%;
}

.group-custom-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
    padding: 6px 0 12px;
}

.group-custom-actions .order-button {
    width: auto;
    min-width: 260px;
    min-height: 0;
    padding: 14px 22px;
    border: 0;
    border-radius: 8px;
}

@media (max-width: 1180px) {
    .group-order-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .group-order-cart {
        position: static;
    }
}

@media (max-width: 520px) {
    .group-cart-item {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }

    .group-cart-controls {
        justify-self: start;
    }

    .group-cart-item-price {
        text-align: left;
    }

    .group-custom-actions .order-button {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 820px) {
    .group-orders-floating-button {
        right: 16px;
        bottom: 16px;
        padding: 12px 15px;
        font-size: 14px;
    }
}

@media (max-width: 1120px) {
    .top-header {
        height: auto;
        min-height: 76px;
        flex-wrap: wrap;
        padding-bottom: 10px;
    }

    .top-header nav {
        position: static;
        order: 3;
        width: 100%;
        transform: none;
        justify-content: center;
    }

    .top-header nav a {
        padding: 10px 0 7px;
    }

    .top-header nav a::after {
        bottom: 0;
    }

    .page-layout {
        grid-template-columns: minmax(0, 1fr) 340px;
    }

    .menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .top-header {
        padding: 6px 16px 10px;
    }

    .logo {
        min-width: 0;
    }

    .logo-image {
        width: 68px;
        height: 58px;
    }

    .logo p {
        display: none;
    }

    .profile-button #userName {
        display: none;
    }

    .user-area {
        gap: 8px;
    }

    .cart-icon {
        display: none;
    }

    .top-header nav {
        justify-content: flex-start;
        gap: 24px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .top-header nav::-webkit-scrollbar {
        display: none;
    }

    .top-header nav a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .page-layout {
        padding: 28px 18px 55px;
        grid-template-columns: 1fr;
    }

    .cart {
        position: static;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .profile-menu {
        position: fixed;
        top: 82px;
        right: 16px;
        left: 16px;
        width: auto;
    }
}

@media (max-width: 620px) {
    .menu-top-row {
        align-items: stretch;
    }

    .order-schedule {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
    }

    .order-schedule label:first-of-type {
        grid-column: 1;
        grid-row: 1;
    }

    .order-schedule #orderDate {
        grid-column: 1;
        grid-row: 2;
    }

    .order-schedule label:last-of-type {
        grid-column: 1;
        grid-row: 3;
    }

    .order-schedule .delivery-time-selects {
        grid-column: 1;
        grid-row: 4;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .food-card img {
        aspect-ratio: 16 / 10;
        height: auto;
    }

    .simple-page,
    .catering-page {
        width: min(100% - 28px, 1100px);
        padding: 32px 0 52px;
    }

    .contact-info,
    .contact-form,
    .catering-form,
    .login-card {
        padding: 22px 18px;
    }

    .order-card {
        flex-direction: column;
    }

    .order-card > div:last-child {
        width: 100%;
        text-align: left;
    }

    .pickup-options {
        flex-direction: column;
        gap: 10px;
    }

    .login-page {
        padding: 18px;
    }

    .login-page::before {
        right: 0;
        bottom: auto;
        width: 100%;
        height: 160px;
    }
}

.mobile-menu-toggle {
    display: none;
}

.mobile-profile-link {
    display: none;
}

.cart-focus-pulse {
    box-shadow: 0 0 0 4px rgba(188, 159, 101, 0.28), 0 22px 50px rgba(83, 62, 46, 0.16);
    transition: box-shadow 0.25s ease;
}

.checkout-page {
    width: min(100% - 40px, 1180px);
    margin: 0 auto;
    padding: 42px 0 70px;
}

.checkout-card {
    padding: 28px;
    border: 1px solid var(--line, #e6ddd4);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(83, 62, 46, 0.08);
}

.checkout-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.checkout-title-row h2 {
    margin: 2px 0 0;
}

.back-to-menu-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid var(--line, #e6ddd4);
    border-radius: 12px;
    color: var(--primary-dark, #513d30);
    background: #fff;
    text-decoration: none;
    font-weight: 800;
}

.checkout-schedule {
    margin-bottom: 22px;
}

.stat-card-warning {
    border-top: 4px solid #d89b2b;
    background: #fffaf0;
}

.admin-attempts-panel {
    margin-top: 24px;
}

.packing-items {
    margin: 0;
    padding-left: 18px;
}

.packing-items li + li {
    margin-top: 8px;
}

.packing-done-button {
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    color: #ffffff;
    background: #2f7d4a;
    font-weight: 800;
    cursor: pointer;
}

.packing-undo-button {
    margin-top: 8px;
    border: 1px solid #b9aea4;
    border-radius: 8px;
    padding: 7px 10px;
    background: #ffffff;
    cursor: pointer;
}

.packed-order-row {
    background: #dff3e5;
}

.packed-order-row > td {
    background: #dff3e5 !important;
    border-color: #a9d6b6;
}

.packing-packed-status {
    display: inline-block;
    border-radius: 999px;
    padding: 6px 10px;
    color: #155b2f;
    background: #bde5c8;
    font-weight: 900;
}

.cart-success-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 2000;
    max-width: min(420px, calc(100vw - 32px));
    padding: 13px 18px;
    border: 1px solid #9dceb0;
    border-radius: 12px;
    color: #155b2f;
    background: #e5f7ea;
    box-shadow: 0 12px 30px rgba(21, 91, 47, 0.2);
    font-weight: 800;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cart-success-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.reset-local-link {
    display: block;
    margin-top: 14px;
    padding: 11px 14px;
    border-radius: 9px;
    color: #155b2f;
    background: #e5f7ea;
    font-weight: 800;
    text-align: center;
}

.password-requirements {
    line-height: 1.5;
}

@media (max-width: 820px) {
    .cart-success-toast {
        bottom: 88px;
    }
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
    gap: 22px;
    align-items: start;
}

.checkout-cart-panel {
    position: static;
    width: 100%;
}

.checkout-details {
    display: grid;
    gap: 14px;
}

.checkout-details h3 {
    margin: 0 0 4px;
}

.cart-list li {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
}

.cart-list li .cart-item-name {
    display: block;
    min-width: 0;
    width: 100%;
    color: var(--text, #222);
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: normal;
}

.cart-list li .cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.cart-list li .cart-controls {
    flex: 0 0 auto;
}

.cart-list li .cart-item-price {
    flex: 0 0 auto;
    white-space: nowrap;
    color: var(--primary-dark, #513d30);
    font-weight: 900;
}

@media (max-width: 520px) {
    .cart-list li .cart-item-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 820px) {
    .top-header {
        position: sticky;
        top: 0;
        z-index: 80;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        min-height: 72px;
        padding: 8px 14px;
    }

    .top-header .logo {
        flex: 1 1 auto;
    }

    .top-header .user-area {
        margin-left: auto;
        order: 2;
    }

    .top-header .profile-button {
        display: none;
    }

    .mobile-menu-toggle {
        order: 3;
        display: inline-flex;
        width: 46px;
        height: 46px;
        margin-left: 8px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        border: 1px solid var(--line, #e6ddd4);
        border-radius: 14px;
        background: #fff;
        color: var(--primary, #6d4f3b);
        box-shadow: 0 10px 26px rgba(83, 62, 46, 0.1);
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        width: 21px;
        height: 2px;
        border-radius: 99px;
        background: currentColor;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .top-header.mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .top-header.mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .top-header.mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .top-header nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 14px;
        left: 14px;
        order: 4;
        display: none;
        width: auto;
        padding: 10px;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 4px;
        overflow: visible;
        transform: none;
        border: 1px solid var(--line, #e6ddd4);
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 22px 55px rgba(83, 62, 46, 0.18);
    }

    .top-header.mobile-menu-open nav {
        display: flex;
    }

    .top-header nav a {
        width: 100%;
        display: block;
        padding: 14px 13px;
        border-radius: 12px;
        color: var(--text, #222);
        text-align: left;
        white-space: normal;
    }

    .top-header nav a.active,
    .top-header nav a:hover {
        background: #f6efe6;
        color: var(--primary-dark, #4f392b);
    }

    .top-header nav a::after {
        display: none;
    }

    .top-header .cart-icon {
        position: fixed;
        right: 18px;
        bottom: 18px;
        z-index: 75;
        display: grid !important;
        width: 54px;
        height: 54px;
        place-items: center;
        border-radius: 18px;
        background: var(--primary, #6d4f3b);
        color: #fff;
        box-shadow: 0 16px 34px rgba(83, 62, 46, 0.25);
        text-decoration: none;
    }

    .page-layout > .cart {
        display: block !important;
        position: static;
        width: 100%;
        margin-top: 16px;
    }
}

@media (max-width: 1180px) {
    .top-header {
        position: sticky;
        top: 0;
        z-index: 80;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        min-height: 72px;
        padding: 8px 14px;
    }

    .top-header .logo {
        flex: 1 1 auto;
    }

    .top-header .user-area {
        margin-left: auto;
        order: 2;
    }

    .top-header .profile-button {
        display: none;
    }

    .mobile-menu-toggle {
        order: 3;
        display: inline-flex;
    }

    .top-header nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 14px;
        left: 14px;
        order: 4;
        display: none;
        width: auto;
        padding: 10px;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 4px;
        overflow: visible;
        transform: none;
        border: 1px solid var(--line, #e6ddd4);
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 22px 55px rgba(83, 62, 46, 0.18);
    }

    .top-header.mobile-menu-open nav {
        display: flex;
    }

    .top-header nav a {
        width: 100%;
        display: block;
        padding: 14px 13px;
        border-radius: 12px;
        text-align: left;
        white-space: normal;
    }

    .top-header nav a::after {
        display: none;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .checkout-page {
        width: min(100% - 24px, 1180px);
        padding: 26px 0 58px;
    }

    .checkout-card {
        padding: 18px;
    }

    .checkout-title-row {
        align-items: stretch;
        flex-direction: column;
    }

    .back-to-menu-link {
        width: 100%;
    }
}

@media (max-width: 820px) {
    .page-layout > .cart {
        display: none !important;
    }
}

/* Mobile fixes: delivery date and group-order shortcut */
.top-header nav a.group-order-shortcut {
    position: relative;
    display: inline-grid;
    width: 42px;
    height: 42px;
    min-width: 42px;
    place-items: center;
    padding: 0;
    border: 2px solid var(--accent, #c7a76c);
    border-radius: 50%;
    background: var(--primary, #695140);
    color: #ffffff;
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(81, 61, 48, 0.24);
}

.top-header nav a.group-order-shortcut.active,
.top-header nav a.group-order-shortcut:hover {
    background: var(--primary-dark, #513d30);
    color: #ffffff;
    transform: translateY(-1px);
}

.top-header nav a.group-order-shortcut::after {
    display: none;
}

.group-order-shortcut-hint {
    position: absolute;
    top: calc(100% + 10px);
    right: -10px;
    z-index: 1500;
    width: max-content;
    max-width: 220px;
    padding: 9px 12px;
    border: 1px solid var(--line, #e6ddd4);
    border-radius: 14px;
    background: #ffffff;
    color: var(--primary-dark, #513d30);
    box-shadow: 0 16px 40px rgba(83, 62, 46, 0.18);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    pointer-events: none;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.group-order-shortcut-hint::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 22px;
    width: 12px;
    height: 12px;
    border-top: 1px solid var(--line, #e6ddd4);
    border-left: 1px solid var(--line, #e6ddd4);
    background: #ffffff;
    transform: rotate(45deg);
}

.group-order-shortcut-hint.is-hidden {
    opacity: 0;
    transform: translateY(-4px);
}

@media (max-width: 620px) {
    .order-schedule,
    .checkout-schedule {
        width: 100%;
        max-width: 100%;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto auto;
        overflow: hidden;
    }

    .order-schedule #orderDate,
    .order-schedule .delivery-time-selects,
    .order-schedule input,
    .order-schedule select {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .order-schedule #orderDate {
        font-size: 16px;
        display: block;
        box-sizing: border-box;
        min-inline-size: 0;
        inline-size: 100%;
    }

    .checkout-card,
    .checkout-schedule {
        min-width: 0;
        box-sizing: border-box;
    }

    .delivery-time-selects {
        grid-template-columns: minmax(0, 1fr);
    }

    .top-header nav a.group-order-shortcut {
        width: 100%;
        height: auto;
        min-height: 44px;
        border-radius: 13px;
        justify-content: center;
        font-size: 24px;
    }

    .group-order-shortcut-hint {
        top: auto;
        right: 8px;
        bottom: calc(100% + 10px);
    }

    .group-order-shortcut-hint::before {
        top: auto;
        bottom: -7px;
        right: 24px;
        border: 0;
        border-right: 1px solid var(--line, #e6ddd4);
        border-bottom: 1px solid var(--line, #e6ddd4);
    }
}
.verification-page {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f7f3ed;
    color: #241f1b;
    display: grid;
    min-height: 100vh;
    place-items: center;
}

.verification-card {
    width: min(92vw, 480px);
    box-sizing: border-box;
    background: #fff;
    border-top: 5px solid #c7a76c;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
    padding: 34px;
    text-align: center;
}

.verification-card h1 {
    margin: 0 0 12px;
    font-size: 28px;
}

/* Mobile polish pass */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.top-header,
.page-layout,
.menu-section,
.cart,
.checkout-page,
.checkout-card,
.checkout-layout,
.checkout-cart-panel,
.checkout-details,
.simple-page,
.catering-page,
.profile-page,
.login-card,
.food-card,
.group-order-layout,
.group-order-cart {
    min-width: 0;
}

.food-card img,
.custom-choice-card img,
.group-order-layout .food-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    max-height: none;
    object-fit: cover;
    object-position: center;
    background: #f5f1eb;
}

.group-orders-floating-button {
    right: auto;
    left: 22px;
    display: inline-grid;
    width: 56px;
    height: 56px;
    place-items: center;
    padding: 0;
    border: 2px solid var(--accent, #c7a76c);
    border-radius: 50%;
    font-size: 32px;
    line-height: 1;
}

.group-orders-floating-button .group-order-shortcut-hint {
    right: auto;
    left: 0;
    bottom: calc(100% + 10px);
    top: auto;
}

.group-orders-floating-button .group-order-shortcut-hint::before {
    right: auto;
    left: 20px;
    top: auto;
    bottom: -7px;
    border: 0;
    border-right: 1px solid var(--line, #e6ddd4);
    border-bottom: 1px solid var(--line, #e6ddd4);
}

@media (min-width: 821px) {
    .mobile-menu-toggle {
        display: none !important;
    }

    .top-header nav {
        display: flex !important;
    }
}

@media (max-width: 820px) {
    .top-header {
        width: 100%;
        min-height: 72px;
        padding: 8px 14px;
    }

    .top-header .logo {
        min-width: 0;
        flex: 1 1 auto;
    }

    .top-header .logo-image {
        width: 64px;
        height: 54px;
        flex: 0 0 auto;
    }

    .top-header nav {
        max-height: calc(100vh - 96px);
        overflow-y: auto;
    }

    .top-header .cart-icon {
        right: 18px;
        bottom: 18px;
    }

    .group-orders-floating-button {
        left: 18px;
        right: auto;
        bottom: 18px;
    }

    .page-layout {
        width: 100%;
        padding: 22px 14px 92px;
        gap: 20px;
    }

    .menu-top-row,
    .menu-heading {
        gap: 16px;
    }

    .category-tabs {
        display: flex;
        width: 100%;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .category-tabs::-webkit-scrollbar {
        display: none;
    }

    .category-tab {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .food-card {
        max-width: none;
    }

    .page-layout > .cart {
        display: none !important;
    }

    .checkout-page {
        width: 100%;
        padding: 18px 14px 92px;
    }

    .checkout-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .checkout-cart-panel,
    .checkout-details,
    .checkout-card {
        width: 100%;
    }

    .group-order-layout {
        grid-template-columns: minmax(0, 1fr);
        padding: 22px 14px 92px;
    }

    .group-order-layout .menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .group-order-cart {
        position: static;
        width: 100%;
    }
}

@media (max-width: 620px) {
    input,
    select,
    textarea,
    button {
        max-width: 100%;
    }

    .order-schedule,
    .checkout-schedule,
    .profile-form-grid,
    .catering-form,
    .login-card,
    .simple-page,
    .catering-page {
        width: 100%;
        max-width: 100%;
    }

    .order-schedule {
        padding: 12px;
    }

    .order-schedule input[type="date"],
    .checkout-schedule input[type="date"] {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        font-size: 16px;
    }

    .delivery-time-selects {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .delivery-time-selects select {
        min-width: 0;
        width: 100%;
    }

    .menu-grid,
    .group-order-layout .menu-grid,
    .custom-meal-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .food-info {
        min-height: auto;
    }

    .cart-list li .cart-item-bottom {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .cart-list li .cart-controls {
        order: 1;
    }

    .cart-list li .cart-item-price {
        order: 2;
        margin-left: auto;
    }

    .group-cart-item {
        grid-template-columns: minmax(0, 1fr);
    }

    .group-cart-controls {
        justify-self: stretch;
        justify-content: space-between;
    }

    .group-cart-item-price {
        text-align: left;
    }
}

.verification-card p {
    margin: 0 0 24px;
    color: #6b7280;
    line-height: 1.5;
}

.verification-card a {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 9px;
    background: #6f4f3a;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.verification-symbol {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    margin-bottom: 18px;
    font-size: 28px;
    font-weight: 800;
}

.verification-symbol.is-success {
    background: #dcfce7;
    color: #166534;
}

.verification-symbol.is-error {
    background: #fff7ed;
    color: #9a3412;
}

.company-color-gold { --company-bg: #fff7d6; --company-border: #d4a72c; --company-text: #6b4f00; }
.company-color-blue { --company-bg: #dbeafe; --company-border: #3b82f6; --company-text: #1e3a8a; }
.company-color-green { --company-bg: #dcfce7; --company-border: #22c55e; --company-text: #14532d; }
.company-color-pink { --company-bg: #fce7f3; --company-border: #ec4899; --company-text: #831843; }
.company-color-purple { --company-bg: #ede9fe; --company-border: #8b5cf6; --company-text: #4c1d95; }
.company-color-orange { --company-bg: #ffedd5; --company-border: #f97316; --company-text: #7c2d12; }
.company-color-cyan { --company-bg: #cffafe; --company-border: #06b6d4; --company-text: #164e63; }
.company-color-red { --company-bg: #fee2e2; --company-border: #ef4444; --company-text: #7f1d1d; }
