:root {
    --color-primary: #1d7874;
    --color-secondary: #3f3f3f;
    --color-accent: #fbb13c;
    --color-border: #dcdcdc;
    --color-bg: #f6f6f6;
    --color-white: #ffffff;
    --color-success: #1f8a70;
    --color-warning: #d9534f;
    font-family: "Segoe UI", Tahoma, sans-serif;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-secondary);
    font-family: inherit;
    line-height: 1.5;
}

.site-header,
.site-footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 1rem 2rem;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
}

.site-nav {
    margin-top: 0.5rem;
    display: flex;
    gap: 1rem;
}

.site-nav a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
}

main {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1rem 4rem;
}

.panel {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

h2, h3 {
    color: var(--color-primary);
    margin-top: 0;
}

.flash-messages {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.flash {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    background: var(--color-accent);
    color: #2f2f2f;
}

.flash.error {
    background: #f8d7da;
    color: #721c24;
}

.flash.success {
    background: #d7f8e4;
    color: #0f5132;
}

.flash.info {
    background: #d1ecf1;
    color: #0c5460;
}

.order-form .form-field {
    margin-bottom: 1rem;
}

.order-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.4rem;
}

.order-form input,
.order-form select,
.controls button,
.order-form button {
    width: 100%;
    padding: 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    font-size: 1rem;
    box-sizing: border-box;
}

.order-form input[type="number"] {
    max-width: 120px;
}

.menu-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-section h3 {
    margin-bottom: 0.75rem;
}

.menu-section-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-entry {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    background: var(--color-white);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.menu-entry-summary {
    display: flex;
    flex: 1 1 260px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
}

.menu-entry-name {
    font-size: 1.15rem;
    font-weight: 600;
}

.menu-entry-description {
    display: block;
    font-size: 0.95rem;
    color: #616161;
    margin-top: 0.3rem;
}

.menu-entry-text {
    flex: 1 1 220px;
}

.menu-entry-price {
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}

.menu-entry-controls {
    display: flex;
    flex: 1 0 260px;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.menu-entry-field {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.menu-entry-field label {
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

.menu-entry-field input {
    width: auto;
}

.menu-entry-field input[type="number"] {
    width: 4.5rem;
}

.menu-entry-field.comment {
    flex: 1 1 220px;
}

.menu-entry-field.comment input {
    width: 100%;
}

.order-total {
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
}

button.primary {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    cursor: pointer;
}

button.secondary {
    background: var(--color-white);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    cursor: pointer;
}

button.secondary.warning {
    border-color: var(--color-warning);
    color: var(--color-warning);
}

button.primary:disabled,
button.secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.notice {
    padding: 0.75rem 1rem;
    background: #f1f1f1;
    border-radius: 6px;
}

.notice.warning {
    background: #fff2f2;
    color: #ad2e24;
}

.notice.success {
    background: #d7f8e4;
    color: #0f5132;
}

.order-summary ul,
.items-summary,
.people-list {
    list-style: none;
    padding: 0;
}

.order-summary li,
.items-summary li {
    display: flex;
    gap: 0.6rem;
}

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

.orders-table th,
.orders-table td {
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.actions a {
    text-decoration: none;
    display: inline-block;
    padding: 0.6rem 1rem;
    border-radius: 6px;
}

.actions .primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.actions .secondary {
    background: var(--color-white);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.controls form {
    flex: 1 1 200px;
}

.site-footer {
    text-align: center;
    font-size: 0.9rem;
}
