/* BARBAROS — orders-smart.css: focus strip, next-action hints, keyboard focus, density, empty state
   Class names avoid card/-tag/-box/block/badge/-chip/status (legacy wildcard painters). */

/* focus strip */
html[data-buld-theme] body #panel-all-orders .os-focus { margin: 0 0 14px; padding: 12px 16px 12px; border-radius: var(--p-card-radius); background: var(--p-card-bg); border: 1px solid var(--p-card-border); }
html[data-buld-theme="light"] body #panel-all-orders .os-focus { box-shadow: var(--bx-shadow-1); }
html[data-buld-theme] .os-focus__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
html[data-buld-theme] .os-focus__title { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--buld-ink-3); }
html[data-buld-theme] .os-focus__title svg { width: 15px; height: 15px; color: var(--buld-cta); }
html[data-buld-theme] .os-focus__head > strong { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--buld-ink-1); font-variant-numeric: tabular-nums; line-height: 1; }
html[data-buld-theme] .os-focus__sub { font-size: 13px; color: var(--buld-ink-3); }
html[data-buld-theme] .os-focus__today { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--buld-ink-3); font-variant-numeric: tabular-nums; }
html[data-buld-theme] .os-focus__today i { display: block; width: 90px; height: 5px; border-radius: 5px; background: var(--buld-elevated); overflow: hidden; }
html[data-buld-theme] .os-focus__today b { display: block; height: 100%; width: var(--p, 0%); background: var(--buld-success); border-radius: 5px; transition: width var(--bx-dur-layout) var(--bx-ease); }
html[data-buld-theme] .os-focus__tools { display: flex; align-items: center; gap: 6px; margin-inline-start: 10px; }
html[data-buld-theme] .os-density { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--buld-elevated); }
html[data-buld-theme] body .os-density button { width: 28px; height: 26px; border: 0; border-radius: 7px; background: transparent; color: var(--buld-ink-3); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
html[data-buld-theme] body .os-density button.on { background: var(--p-card-bg); color: var(--buld-ink-1); box-shadow: var(--bx-shadow-1); }
html[data-buld-theme] .os-density svg { width: 14px; height: 14px; }
html[data-buld-theme] .os-focus__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
html[data-buld-theme] body .os-focus__item { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--buld-hairline); background: transparent; color: var(--buld-ink-1); font: inherit; cursor: pointer; text-align: start; transition: border-color var(--bx-dur-hover) var(--bx-ease), background var(--bx-dur-hover) var(--bx-ease), transform var(--bx-dur-hover) var(--bx-ease); }
html[data-buld-theme] body .os-focus__item:hover { background: var(--buld-hover); transform: translateY(-1px); }
html[data-buld-theme] body .os-focus__item.is-zero { opacity: .55; }
html[data-buld-theme] body .os-focus__item.on { border-color: var(--buld-cta); background: var(--buld-cta-soft); }
html[data-buld-theme] .os-focus__ico { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
html[data-buld-theme] .os-focus__ico svg { width: 15px; height: 15px; }
html[data-buld-theme] .os-focus__item[data-tone="info"] .os-focus__ico { background: var(--buld-cta-soft); color: var(--buld-cta); }
html[data-buld-theme] .os-focus__item[data-tone="warning"] .os-focus__ico { background: var(--buld-warning-soft, rgba(194,65,12,.12)); color: var(--buld-warning); }
html[data-buld-theme] .os-focus__item[data-tone="success"] .os-focus__ico { background: var(--buld-success-soft, rgba(20,174,92,.14)); color: var(--buld-success); }
html[data-buld-theme] .os-focus__item[data-tone="danger"] .os-focus__ico { background: var(--buld-danger-soft, rgba(211,58,43,.14)); color: var(--buld-danger); }
html[data-buld-theme] .os-focus__lab { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-buld-theme] .os-focus__item b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { html[data-buld-theme] .os-focus__row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { html[data-buld-theme] .os-focus__row { grid-template-columns: repeat(2, 1fr); } html[data-buld-theme] .os-focus__today { display: none; } }

/* next action under the status pill */
html[data-buld-theme] #panel-all-orders .status-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
html[data-buld-theme] body #panel-all-orders .os-next { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 500; color: var(--buld-ink-3); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; background: transparent; border: 0; padding: 0; }
html[data-buld-theme] #panel-all-orders .os-next svg { width: 12px; height: 12px; flex-shrink: 0; }
html[data-buld-theme] #panel-all-orders .os-next[data-tone="warning"] { color: var(--buld-warning); }
html[data-buld-theme] #panel-all-orders .os-next[data-tone="danger"] { color: var(--buld-danger); }
html[data-buld-theme] #panel-all-orders .os-next[data-tone="success"] { color: var(--buld-success); }
html[data-buld-theme] #panel-all-orders .yaya-scope .table-row.is-risky .customer-name::after { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--buld-danger); margin-inline-start: 6px; vertical-align: middle; }

/* keyboard focus */
html[data-buld-theme] #panel-all-orders .yaya-scope .table-row.is-focus { background: var(--buld-cta-soft); box-shadow: inset 3px 0 0 var(--buld-cta); }
html[data-buld-theme="light"] #panel-all-orders .yaya-scope .table-row.is-focus { background: var(--buld-cta-soft); }

/* density */
html[data-buld-theme] #panel-all-orders[data-density="compact"] .yaya-scope .table-row { min-height: 52px; padding-top: 6px; padding-bottom: 6px; }
html[data-buld-theme] #panel-all-orders[data-density="compact"] .yaya-scope .product-img { width: 30px; height: 30px; }
html[data-buld-theme] #panel-all-orders[data-density="compact"] .yaya-scope .customer-avatar { width: 26px; height: 26px; font-size: 10px; }
html[data-buld-theme] #panel-all-orders[data-density="compact"] .os-next, html[data-buld-theme] #panel-all-orders[data-density="compact"] .ord-date, html[data-buld-theme] #panel-all-orders[data-density="compact"] .product-sku { display: none; }
html[data-buld-theme] #panel-all-orders[data-density="comfortable"] .yaya-scope .product-img { width: 44px; height: 44px; border-radius: 10px; }
html[data-buld-theme] #panel-all-orders[data-density="comfortable"] .yaya-scope .table-row { min-height: 70px; }

/* table clarity: phone as plain tabular text, hover copy affordance */
html[data-buld-theme] body #panel-all-orders .yaya-scope .phone-chip { background: transparent; border: 1px solid transparent; padding: 0 8px 0 0; font-family: inherit; font-size: 13px; font-weight: 500; color: var(--buld-ink-1); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
html[data-buld-theme] body #panel-all-orders .yaya-scope .phone-chip:hover { background: var(--buld-hover); padding-inline-start: 8px; border-color: var(--buld-hairline); }
html[data-buld-theme] body #panel-all-orders .yaya-scope .phone-chip svg { color: var(--buld-ink-4); width: 13px; height: 13px; }
html[data-buld-theme] body #panel-all-orders .yaya-scope .table-head { position: sticky; top: 0; z-index: 2; }

/* empty state */
html[data-buld-theme] body #panel-all-orders .os-empty { padding: 56px 24px; }
html[data-buld-theme] body #panel-all-orders .os-empty strong { font-size: 15px; font-weight: 600; color: var(--buld-ink-1); }
html[data-buld-theme] body #panel-all-orders .os-empty p { margin: 0 0 12px; font-size: 13px; color: var(--buld-ink-3); }

/* shortcuts sheet */
html[data-buld-theme] .os-keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
html[data-buld-theme] .os-keys li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--buld-hairline); font-size: 13.5px; color: var(--buld-ink-2); }
html[data-buld-theme] .os-keys kbd { min-width: 64px; display: inline-flex; justify-content: center; padding: 4px 8px; border-radius: 7px; border: 1px solid var(--buld-divider); background: var(--buld-elevated); color: var(--buld-ink-1); font: inherit; font-size: 12px; font-weight: 600; }
html[data-buld-theme] .os-keys__note { margin: 14px 0 0; font-size: 12.5px; color: var(--buld-ink-3); line-height: 1.5; }
