/* ZUMO Partner — надстройка над zumo-id.css и zumo-admin.css */

.nav-org { padding: 4px 14px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.nav-org-name { font-weight: 800; font-size: 15px; overflow-wrap: anywhere; }
.nav-org-role { color: var(--muted); font-size: 13px; }
.nav-sub { padding: 14px 14px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.admin-nav a.nav-switch { margin-top: 14px; font-weight: 500; color: var(--muted); font-size: 14px; }

.notice.warn { background: var(--error-soft); color: var(--error); border-left-color: var(--error); }

/* Точки */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.store-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.store-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.store-cover { position: relative; aspect-ratio: 2 / 1; background: linear-gradient(135deg, var(--zumo-slate), var(--zumo-night)); }
.store-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.store-service { position: absolute; left: 12px; top: 12px; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 800; color: var(--zumo-ink); background: #fff; }
.store-service.svc-eats { background: var(--svc-eats); }
.store-service.svc-market { background: var(--svc-market); color: #fff; }
.store-body { padding: 14px 16px 16px; }
.store-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }

.status-card { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.status-card .hint { margin: 8px 0 0; }
.status-card .row-actions { margin: 0; }
.card + .card, .card + form.card, form.card { margin-bottom: 16px; }

.cover-preview { aspect-ratio: 2 / 1; max-width: 560px; border-radius: var(--radius-sm); background: var(--surface-2); display: grid; place-items: center; overflow: hidden; margin-bottom: 12px; }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.inline-upload { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

fieldset.plain { border: 0; margin: 0; padding: 0; min-width: 0; }
.field textarea { width: 100%; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: var(--radius-sm); padding: 12px 14px; font: inherit; font-size: 16px; resize: vertical; }
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--focus); }

.hours { display: grid; gap: 8px; margin-bottom: 8px; }
.hours-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hours-day { width: 120px; font-weight: 600; }
.hours-row input[type=time] { min-height: 40px; border: 1.5px solid var(--line); border-radius: 10px; padding: 6px 10px; font: inherit; background: var(--surface-2); color: var(--text); }
.hours-row .check { margin: 0 0 0 6px; }

/* Меню */
.menu-section { margin-bottom: 26px; }
.menu-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.menu-tools { display: flex; gap: 14px; align-items: center; font-size: 14px; }
.menu-tools form { display: flex; gap: 6px; }
.inline-edit summary { list-style: none; cursor: pointer; }
.inline-edit[open] { flex-basis: 100%; }
.product-thumb { position: relative; overflow: hidden; }
.product-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-thumb.large { width: 120px; height: 120px; border-radius: 16px; }
.product-row .list-title a { color: var(--text); text-decoration: none; }
.product-row .list-title a:hover { color: var(--accent-text); }

.toggle {
    min-width: 116px; border-radius: var(--radius-pill); border: 1.5px solid var(--line); padding: 7px 14px;
    background: var(--error-soft); color: var(--error); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.toggle.on { background: var(--ok-soft); color: var(--ok); }

@media (max-width: 860px) {
    .nav-org, .nav-sub { display: none; }
    .admin-nav a.nav-switch { margin-top: 0; }
    .hours-day { width: 100%; }
    .product-row { flex-wrap: wrap; }
}

.section-head a.button { color: var(--on-accent); }
.section-head { flex-wrap: wrap; }
.card > .section-title:first-child, .card > form > .section-title:first-child { margin-top: 0; }
@media (max-width: 520px) { .section-head a.button { width: 100%; text-align: center; } }

/* Заказы */
.admin-nav .count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 6px; border-radius: 11px; background: var(--error); color: #fff; font-size: 12px; font-weight: 800; }
.status-new { background: var(--error); color: #fff; }
.order-row.is-new { border-left: 4px solid var(--error); }
.order-row .list-link { display: flex; align-items: center; gap: 14px; width: 100%; color: var(--text); text-decoration: none; }
.order-num { flex: none; min-width: 64px; font-weight: 800; font-size: 17px; }
.order-items { width: 100%; border-collapse: collapse; font-size: 15px; }
.order-items td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.order-items .qty { width: 60px; color: var(--muted); text-align: right; padding-right: 16px; }
.order-items .sum { text-align: right; white-space: nowrap; font-weight: 600; }
.order-items .total td { font-weight: 800; border-bottom: 0; font-size: 17px; }
.order-actions .row-actions { justify-content: flex-start; }
.eta { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.eta input { width: 90px; }
.cancel-box { margin-top: 16px; }
.cancel-box summary { cursor: pointer; list-style: none; }
.checks { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 10px; }
