/* ============================================================
   Catarse App — Basislayout
   Farben und Schriften wie catarsebuffet.com.br (website/src/assets/css/style.css)
   ============================================================ */

@font-face {
    font-family: "Fraunces";
    src: url("../fonts/fraunces-latin-Gr_N36C.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-latin-joy4ri1.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --cream: #faf7f2;
    --sand: #f2ece2;
    --card: #ffffff;
    --ink: #29211b;
    --muted: #7a6e62;
    --espresso: #221a13;
    --espresso-soft: #3a2e24;
    --terracotta: #a9502e;
    --terracotta-dark: #8a3f22;
    --brass: #c29a62;
    --line: #e6ddd0;
    --whatsapp: #1fae55;
    --danger: #a12d2d;
    --danger-bg: #fbeceb;
    --radius: 10px;
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta); text-underline-offset: 3px; }
a:hover { color: var(--terracotta-dark); }

h1, h2, h3 { line-height: 1.15; font-weight: 600; }
h1, h2 { font-family: var(--font-display); letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-bottom: .75rem; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }
.muted { color: var(--muted); }

.eyebrow {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: .6rem;
}

/* ============ Header / Navigation ============ */
.app-header {
    background: rgba(250, 247, 242, .95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}
.app-header__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: .6rem;
    padding-bottom: .6rem;
}
.brand img { width: 150px; }
.app-nav { display: flex; flex-wrap: nowrap; align-items: center; gap: 1.15rem; flex: 1; white-space: nowrap; }
.app-nav a, .app-nav__disabled {
    font-size: .92rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink);
    padding: .25rem 0;
    border-bottom: 2px solid transparent;
}
.app-nav a:hover { color: var(--terracotta); }
.app-nav a[aria-current="page"] { color: var(--terracotta); border-bottom-color: var(--terracotta); }
.app-nav__disabled { color: var(--muted); opacity: .6; cursor: default; }
.app-user { display: flex; align-items: center; gap: .75rem; font-size: .9rem; }
.app-user__name { color: var(--muted); }

.app-main { padding-top: 2rem; padding-bottom: 3rem; }

@media (max-width: 800px) {
    .app-header__inner { flex-wrap: wrap; }
    .app-nav { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; }
    .app-user { margin-left: auto; }
}

/* ============ Komponenten ============ */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.5rem;
}
.empty-state { text-align: center; padding: 3rem 1.5rem; }

.btn {
    display: inline-block;
    padding: .7rem 1.4rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font: inherit;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--espresso); color: #fff; }
.btn-primary:hover { background: var(--terracotta); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--terracotta); color: var(--terracotta); }
.btn-sm { padding: .35rem .8rem; font-size: .85rem; }
.btn-block { display: block; width: 100%; }

.alert { border-radius: var(--radius); padding: .75rem 1rem; margin-bottom: 1rem; font-size: .95rem; }
.alert-error { background: var(--danger-bg); color: var(--danger); border: 1px solid #efc9c6; }

.form { display: grid; gap: .4rem; }
.form label { font-weight: 600; font-size: .9rem; margin-top: .6rem; }
.form input[type="email"], .form input[type="password"], .form input[type="text"] {
    font: inherit;
    padding: .65rem .8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
}
.form input:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--brass); }
.form .checkbox { display: flex; align-items: center; gap: .5rem; font-weight: 400; margin: .4rem 0 .8rem; }
.form .btn { margin-top: .4rem; }

/* ============ Login ============ */
.page-login { background: var(--sand); }
.login { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.login__card {
    width: 100%;
    max-width: 400px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 2.25rem 2rem;
    box-shadow: 0 10px 30px rgba(34, 26, 19, .06);
}
.login__logo { width: 200px; margin: 0 auto 1.5rem; }
.login h1 { margin-bottom: .25rem; }
.login .muted { margin-bottom: 1rem; }

/* ============ Seiten, Tabellen, Formulare ============ */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.page-head h1 { margin-bottom: .35rem; }
.page-head .actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.small, small { font-size: .85rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.25rem; margin-bottom: 1.25rem; }
.card h2 { font-size: 1.2rem; margin: 0 0 .75rem; }
.card + .card { margin-top: 1.25rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin-bottom: 1rem; }
.facts dt { color: var(--muted); font-size: .9rem; }
.message { background: var(--sand); border-radius: var(--radius); padding: .75rem 1rem; white-space: pre-line; }

.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--sand); }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.badge { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--sand); color: var(--ink); white-space: nowrap; }
.badge--nova { background: #fbe7dc; color: var(--terracotta-dark); }
.badge--em_orcamento, .badge--rascunho { background: #f6edd9; color: #7a5a1d; }
.badge--proposta_enviada, .badge--enviada { background: #e5eef7; color: #2c4f75; }
.badge--aceita, .badge--evento_realizado { background: #e3efe1; color: #2f6b2a; }
.badge--recusada, .badge--expirada, .badge--substituida { background: #eee; color: #777; }

.filters { margin-bottom: 1.25rem; padding: 1rem 1.25rem; }
.filters__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .25rem 1rem; }
.filters__actions { display: flex; gap: .5rem; margin-top: .75rem; }

.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .8rem; }
.field > label { font-weight: 600; font-size: .88rem; }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea {
    font: inherit; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; }
.field__help { color: var(--muted); }
.field__errors { list-style: none; color: var(--danger); font-size: .85rem; }
.field--error input, .field--error select { border-color: var(--danger); }
.choices { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
.choice { display: inline-flex; align-items: center; gap: .4rem; font-weight: 400; font-size: .93rem; }
.form-card { padding: 1.5rem; }
.form-section { border: 0; margin-bottom: 1.25rem; }
.form-section legend { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: .75rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1rem; }
.form-actions { display: flex; gap: .5rem; justify-content: flex-end; }
.alert-success { background: #e3efe1; color: #2f6b2a; border: 1px solid #cfe3cb; }
.alert-info { background: #e5eef7; color: #2c4f75; border: 1px solid #cddcec; }
.alert-warning { background: #fbf1dc; color: #7a5a1d; border: 1px solid #f0dfb5; }

/* ============ Angebots-Editor ============ */
.editor__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; }
@media (max-width: 1000px) { .editor__grid { grid-template-columns: 1fr; } }
.editor__main > .card { margin-bottom: 1.25rem; }
.card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.card__head h2 { margin: 0; }
.sticky { position: sticky; top: 5rem; }
.checks { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.checks .field { flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: .45rem; }
.checks .field > label { font-weight: 400; }
.toolbar { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .5rem; }
.option--recommended { border-color: var(--brass); box-shadow: 0 0 0 2px rgba(194, 154, 98, .25); }
.variant { border-top: 1px dashed var(--line); margin-top: 1rem; padding-top: .9rem; }
.variant__head { display: flex; justify-content: space-between; margin-bottom: .5rem; }
details { margin: .5rem 0; }
summary { cursor: pointer; color: var(--terracotta); font-weight: 600; font-size: .9rem; }
summary h2.inline { display: inline; font-size: 1.2rem; color: var(--ink); }
.result { background: var(--sand); border-radius: var(--radius); padding: .8rem 1rem; margin-top: .6rem; }
.result__prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: .5rem; margin-bottom: .5rem; }
.result__prices .k { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.result__prices .v { display: block; font-weight: 700; font-variant-numeric: tabular-nums; }
.result__prices small { display: block; }
.v.neg { color: var(--danger); } .v.warn { color: #9a6a12; } .v.ok { color: #2f6b2a; }
.table.compact th, .table.compact td { padding: .35rem .5rem; font-size: .85rem; }
.menu-picker { display: flex; flex-wrap: wrap; gap: .4rem; }
.side-actions { display: flex; gap: .5rem; margin: 1rem 0 .5rem; }
.link { background: none; border: 0; color: var(--terracotta); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.danger { color: var(--danger) !important; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }
.text-block { border-top: 1px solid var(--line); padding-top: .75rem; margin-top: .75rem; }
.whatsapp-text { width: 100%; font: inherit; padding: .7rem; border: 1px solid var(--line); border-radius: var(--radius); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
[data-loading] { display: none; }
[busy] [data-loading] { display: block; }
.page-head form { display: inline; }

/* ============ Menü „Configurações“ ============ */
.app-nav__menu { position: relative; }
.app-nav__menu > summary { list-style: none; cursor: pointer; font-size: .92rem; font-weight: 500; color: var(--ink); padding: .25rem 0; }
.app-nav__menu > summary::-webkit-details-marker { display: none; }
.app-nav__menu > summary::after { content: " ▾"; font-size: .75em; color: var(--muted); }
.app-nav__menu[open] > summary, .app-nav__menu > summary:hover { color: var(--terracotta); }
.app-nav__dropdown { position: absolute; top: calc(100% + .4rem); left: 0; min-width: 190px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(34,26,19,.12); padding: .35rem; z-index: 60; display: flex; flex-direction: column; }
.app-nav__dropdown a { padding: .45rem .7rem; border-radius: 6px; border: 0 !important; }
.app-nav__dropdown a:hover { background: var(--sand); }
@media (max-width: 800px) { .app-nav { overflow: visible; flex-wrap: wrap; } .app-nav__dropdown { right: 0; left: auto; } }

/* ============ Events, Kalender, Compras, Contrato ============ */
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.calendar__head { background: var(--sand); padding: .45rem .6rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.calendar__day { background: var(--card); min-height: 108px; padding: .35rem .4rem; display: flex; flex-direction: column; gap: .25rem; }
.calendar__day.is-weekend { background: #fdfbf7; }
.calendar__day.is-other { background: #f7f3ec; color: var(--muted); }
.calendar__day.is-today .calendar__num { background: var(--terracotta); color: #fff; border-radius: 999px; width: 1.6rem; text-align: center; }
.calendar__num { font-size: .8rem; font-weight: 600; }
.cal-entry { display: block; font-size: .75rem; line-height: 1.25; padding: .25rem .35rem; border-radius: 6px; text-decoration: none; }
.cal-entry--event { background: var(--espresso); color: #f7f1e8; }
.cal-entry--event.is-done { background: #8e857b; }
.cal-entry--quote { background: #e5eef7; color: #2c4f75; border: 1px dashed #9db6d1; }
.cal-entry small { opacity: .8; }
.cal-dot { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; vertical-align: middle; }
.cal-dot--event { background: var(--espresso); } .cal-dot--quote { background: #e5eef7; border: 1px dashed #9db6d1; }
@media (max-width: 700px) { .calendar__day { min-height: 70px; } .cal-entry small { display: none; } }
.shopping-table { table-layout: fixed; width: 100%; }
.shopping-table__item { width: auto; }
.shopping-table__num { width: 7.5rem; }
.shopping-table__used { width: 22%; }
.shopping-table__check { width: 2.5rem; }
.shopping-table td:first-child { overflow-wrap: break-word; }
.shopping-cat__head th { color: var(--terracotta); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; padding-top: 1.1rem; border-bottom: 1px solid var(--line); background: transparent; }
@media (max-width: 600px) { .shopping-table { table-layout: auto; } .shopping-table col { width: auto; } .shopping-price, .shopping-used { display: none; } .shopping-table thead th { white-space: normal; font-size: .7rem; letter-spacing: .03em; } .shopping-table td.num { white-space: nowrap; } .table.shopping-table th, .table.shopping-table td { padding-left: .3rem; padding-right: .3rem; } .shopping-table .check, .shopping-table__check { display: none; } .card:has(> .shopping-table) { padding-left: .6rem; padding-right: .6rem; } .table.shopping-table td { font-size: .8rem; } }
.shopping-total { text-align: right; margin-top: 1rem; }
.check { width: 2rem; text-align: center; color: var(--muted); }
ul.plain { list-style: none; }
.contract-text { width: 100%; padding: .7rem; border: 1px solid var(--line); border-radius: var(--radius); }
.contract-preview h2 { font-size: 1.1rem; text-align: center; } .contract-preview h3 { font-size: 1rem; color: var(--terracotta); margin-top: 1rem; }
.contract-preview p { margin-bottom: .5rem; }
/* Dropdown button (e.g. "Cliente aceitou…"): looks like any .btn, menu opens below, right-aligned */
.action-menu { position: relative; display: inline-block; }
.action-menu > summary { list-style: none; user-select: none; }
.action-menu > summary::-webkit-details-marker { display: none; }
.action-menu > summary::after { content: "▾"; margin-left: .45rem; font-size: .8em; opacity: .8; }
.action-menu[open] > summary { background: var(--terracotta); }
.action-menu__dropdown { position: absolute; top: calc(100% + .4rem); right: 0; min-width: 280px; max-width: min(420px, 90vw); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(34,26,19,.12); padding: .35rem; z-index: 60; display: flex; flex-direction: column; }
.action-menu__dropdown form { margin: 0; }
@media (max-width: 600px) { .action-menu__dropdown { right: auto; left: 0; } }
.link-row { display: block; width: 100%; text-align: left; background: none; border: 0; padding: .55rem .7rem; font: inherit; font-size: .92rem; color: var(--ink); cursor: pointer; border-radius: 6px; line-height: 1.35; }
.link-row:hover { background: var(--sand); }
.link-row--split { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.link-row--split small { display: block; font-size: .8rem; }
.link-row--split b { white-space: nowrap; }
@media print { .app-header, .page-head .actions, .filters { display: none !important; } .card { border: 0; padding: 0; } body { background: #fff; } }

/* Pratos zeilenweise je Kategorie */
.dish-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem 1.25rem; }
.dish-section h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--terracotta); margin-bottom: .25rem; }
.dish-list { list-style: none; font-size: .9rem; }
.dish-list li { padding: .1rem 0; border-bottom: 1px dotted var(--line); }

/* Menü in einer Linie: alle Einträge gleiche Höhe und Grundlinie */
.app-nav > a, .app-nav__menu > summary { display: inline-flex; align-items: center; height: 2rem; padding: 0; line-height: 1; border-bottom: 2px solid transparent; }
.app-nav__menu { display: inline-flex; align-items: center; }
.app-nav__menu > summary::after { margin-left: .25rem; }
@media (max-width: 1150px) { .app-user__name { display: none; } .app-nav { gap: .2rem .9rem; flex-wrap: wrap; white-space: normal; } .app-nav > a, .app-nav__menu { white-space: nowrap; } }

/* Resumo im Editor */
.summary-list { list-style: none; margin: 0 0 .75rem; }
.summary-item { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.summary-item:last-child { border-bottom: 0; }
.summary-item__name { font-weight: 600; display: flex; gap: .35rem; align-items: baseline; }
.summary-item__name .star { color: var(--brass); }
.summary-variant { display: grid; grid-template-columns: 1fr auto; gap: .1rem .75rem; margin-top: .3rem; font-size: .86rem; }
.summary-variant .modality { color: var(--muted); }
.summary-variant .price { font-weight: 700; font-size: 1.05rem; text-align: right; font-variant-numeric: tabular-nums; }
.summary-variant .corridor, .summary-variant .ladder { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.summary-variant .ladder { text-align: right; }
.summary-variant .flag { grid-column: 1 / -1; font-size: .78rem; }
.summary-variant .flag--error { color: var(--danger); } .summary-variant .flag--warn { color: #9a6a12; }

/* Foto-Auswahl im Editor */
.photo-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; }
.photo-choice { position: relative; display: block; border-radius: 8px; overflow: hidden; border: 3px solid transparent; cursor: pointer; }
.photo-choice img { width: 100%; height: 86px; object-fit: cover; display: block; }
.photo-choice input { position: absolute; top: .35rem; left: .35rem; z-index: 1; }
.photo-choice.is-checked, .photo-choice:has(input:checked) { border-color: var(--terracotta); }

/* ============ Dashboard ============ */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.kpi { display: flex; flex-direction: column; gap: .15rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.kpi:hover { border-color: var(--terracotta); color: var(--ink); }
.kpi__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.kpi__value { font-family: var(--font-display); font-size: 2rem; font-weight: 600; line-height: 1.1; }
.kpi__hint { font-size: .85rem; color: var(--muted); }
.kpi--dark { background: var(--espresso); border-color: var(--espresso); color: #f7f1e8; }
.kpi--dark .kpi__label, .kpi--dark .kpi__hint { color: var(--brass); }
.kpi--dark:hover { color: #fff; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.25rem; align-items: start; }
.dash-grid .card + .card { margin-top: 0; }
.todo { list-style: none; }
.todo__item { padding: .5rem .6rem .5rem .9rem; border-left: 3px solid var(--line); margin-bottom: .35rem; background: var(--cream); border-radius: 0 8px 8px 0; font-size: .92rem; }
.todo__item a { color: var(--ink); text-decoration: none; }
.todo__item a:hover { color: var(--terracotta); }
.todo__item--error { border-left-color: var(--danger); }
.todo__item--warn { border-left-color: var(--brass); }
.todo__item--info { border-left-color: #9db6d1; }
.next-events { list-style: none; }
.next-event { display: grid; grid-template-columns: 3rem 1fr auto; gap: .75rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.next-events li:last-child .next-event { border-bottom: 0; }
.next-event__date { display: flex; flex-direction: column; align-items: center; background: var(--sand); border-radius: 8px; padding: .25rem 0; font-size: .7rem; text-transform: uppercase; color: var(--terracotta); }
.next-event__date b { font-size: 1.25rem; color: var(--ink); line-height: 1; }
.next-event__value { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .9rem; }

/* Dishes of an option in the quote editor */
.dish-editor { border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem .9rem; margin: .75rem 0; background: var(--sand, #faf6f0); }
.dish-editor__section h4 { margin: .5rem 0 .25rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.dish-editor__section ul { list-style: none; margin: 0; padding: 0; }
.dish-editor__item { display: flex; align-items: center; gap: .6rem; padding: .3rem 0; border-bottom: 1px dashed var(--line); }
.dish-editor__item:last-child { border-bottom: 0; }
.dish-editor__name { flex: 1; min-width: 0; }
.dish-editor__item--norecipe .dish-editor__name { color: var(--muted); }
.dish-editor__factor { display: inline-flex; align-items: center; gap: .2rem; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.dish-editor__factor input { width: 3.6rem; padding: .2rem .35rem; text-align: right; }
.dish-editor__item .link.danger { font-size: 1.15rem; line-height: 1; padding: 0 .25rem; }
.dish-editor__add { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.dish-editor__add select { flex: 1; min-width: 12rem; }
.editor__grid > * { min-width: 0; }
.dish-editor__add select { width: 100%; max-width: 100%; text-overflow: ellipsis; }

.add-variant { margin-top: .6rem; }
.add-variant > summary { cursor: pointer; }
.add-variant .toolbar { margin-top: .4rem; }

.label-short { display: none; }
@media (max-width: 600px) { .label-long { display: none; } .label-short { display: inline; } }
