:root { color-scheme: light; --ink: #30271f; --muted: #7d7065; --paper: #fffaf1; --line: #ded1c0; --accent: #a94d35; --soft: #f4eadc; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(135deg, #f1e6d5, #fffaf2 48%, #ead9c4); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 36px 0 60px; }
.topbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.eyebrow { margin: 0 0 4px; color: var(--accent); font-size: 11px; letter-spacing: .18em; font-weight: 700; }
h1, h2 { margin: 0; letter-spacing: -.02em; } h1 { font-size: clamp(27px, 5vw, 42px); } h2 { font-size: 19px; }
.muted { color: var(--muted); margin: 5px 0 0; }
.panel { background: color-mix(in srgb, var(--paper) 92%, transparent); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 14px 34px rgba(75, 48, 27, .08); }
.auth-panel { max-width: 560px; padding: 24px; } .toolbar { padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.inline-form { display: flex; gap: 10px; margin-top: 16px; } .inline-form.compact { margin-top: 0; }
input, select { min-height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: #fffdf8; color: var(--ink); font: inherit; } input { flex: 1; min-width: 0; }
.button { min-height: 42px; border: 0; border-radius: 10px; padding: 0 18px; cursor: pointer; font: inherit; font-weight: 700; } .button.primary { color: #fff; background: var(--accent); } .button.secondary { color: var(--accent); background: var(--soft); } .button:hover { filter: brightness(.96); }
.stats { display: flex; gap: 24px; } .stats div { display: grid; gap: 1px; } .stats span { font-size: 22px; font-weight: 800; } .stats small { color: var(--muted); }
.table-panel { padding: 0 18px 18px; overflow: hidden; } .table-wrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; min-width: 760px; } th, td { text-align: left; padding: 13px 10px; border-bottom: 1px solid var(--line); vertical-align: top; } th { color: var(--muted); font-size: 12px; font-weight: 700; } td { max-width: 300px; }
.text-button { color: var(--accent); background: none; border: 0; padding: 4px 6px; cursor: pointer; font: inherit; } .text-button:hover { text-decoration: underline; } .text-button.danger { color: #a52f27; } .empty { text-align: center; color: var(--muted); padding: 40px; }
.message { min-height: 24px; margin: 10px 0 0; color: var(--muted); } .message.error { color: #a52f27; } .hidden { display: none !important; }
dialog { border: 0; border-radius: 18px; padding: 0; max-width: min(900px, calc(100% - 24px)); width: 100%; box-shadow: 0 24px 80px rgba(36, 22, 12, .28); } dialog::backdrop { background: rgba(38, 26, 18, .42); } .dialog-content { position: relative; padding: 24px; } .dialog-close { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 28px; cursor: pointer; color: var(--muted); } .dialog-form { display: grid; gap: 10px; margin-top: 16px; } .dialog-actions { display: flex; justify-content: flex-end; gap: 8px; } pre { max-height: 70vh; overflow: auto; white-space: pre-wrap; word-break: break-word; background: var(--soft); border-radius: 12px; padding: 14px; font-size: 12px; }
.detail-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0 16px; border-bottom: 1px solid var(--line); } .detail-toolbar .button { min-height: 34px; padding: 0 12px; font-size: 12px; }
.detail-readable { display: grid; gap: 14px; padding-top: 16px; } .detail-section { display: grid; gap: 10px; } .detail-section-title { color: var(--ink); font-size: 14px; font-weight: 800; } .detail-overview { padding: 14px; border-radius: 14px; background: var(--soft); } .detail-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 10px 18px; } .detail-field { display: grid; gap: 2px; min-width: 0; } .detail-field-label { color: var(--muted); font-size: 11px; } .detail-field strong { overflow-wrap: anywhere; }
.detail-category-tabs { display: flex; flex-wrap: wrap; gap: 7px; } .detail-category-tab { min-height: 32px; border: 1px solid var(--line); border-radius: 999px; padding: 0 13px; color: var(--muted); background: #fffdf8; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; } .detail-category-tab:hover, .detail-category-tab.active { color: #fff; border-color: var(--accent); background: var(--accent); }
.dish-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 10px; } .dish-card { min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px; background: #fffdf8; } .dish-name { font-weight: 800; overflow-wrap: anywhere; } .dish-quantity { margin-top: 5px; color: var(--accent); font-size: 16px; font-weight: 800; } .dish-meta { margin-top: 5px; color: var(--muted); font-size: 12px; }
.detail-order { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fffdf8; } .detail-order-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; } .detail-order-title { font-weight: 800; } .detail-order-time { color: var(--accent); font-weight: 700; white-space: nowrap; } .detail-order-location { color: var(--muted); font-size: 12px; } .detail-quantity-list { display: grid; gap: 5px; } .detail-quantity-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid color-mix(in srgb, var(--line) 65%, transparent); } .detail-quantity-name { min-width: 0; overflow-wrap: anywhere; } .detail-quantity-row strong { color: var(--accent); white-space: nowrap; } .detail-raw-text { display: grid; gap: 2px; padding-top: 6px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; } .detail-empty { padding: 14px; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
@media (max-width: 700px) { .shell { width: min(100% - 20px, 1180px); padding-top: 22px; } .topbar, .toolbar { align-items: stretch; flex-direction: column; } .inline-form.compact { width: 100%; } .stats { justify-content: space-between; } }
@media (max-width: 620px) { .dialog-content { padding: 20px 16px; } .detail-toolbar { align-items: flex-start; flex-direction: column; } .detail-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } .detail-order-head { align-items: flex-start; flex-direction: column; gap: 2px; } }
