:root {
  --sop-purple-950: #160a28;
  --sop-purple-900: #24113f;
  --sop-purple-800: #321858;
  --sop-purple-700: #54249a;
  --sop-purple-600: #7135cf;
  --sop-purple-500: #8748eb;
  --sop-purple-100: #efe6ff;
  --sop-purple-50: #f7f3ff;
  --sop-ink: #272231;
  --sop-muted: #746e7d;
  --sop-line: #e6e1eb;
  --sop-surface: #ffffff;
  --sop-canvas: #f3f1f6;
  --sop-green: #149b69;
  --sop-green-soft: #e6f7f1;
  --sop-yellow: #db8a08;
  --sop-yellow-soft: #fff5df;
  --sop-red: #d83c59;
  --sop-red-soft: #fff0f3;
  --sop-blue: #3977cc;
  --sop-blue-soft: #eef5ff;
  --sop-sidebar: 112px;
  --sop-topbar: 92px;
  --sop-shadow: 0 10px 30px rgba(39, 23, 59, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body.sop-body {
  margin: 0;
  min-width: 320px;
  background: var(--sop-canvas);
  color: var(--sop-ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
svg { display: block; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
[hidden] { display: none !important; }

.sop-app { min-height: 100vh; }

.sop-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  display: flex;
  width: var(--sop-sidebar);
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 22px 118px, rgba(255,255,255,.1) 0 1px, transparent 1.5px),
    radial-gradient(circle at 91px 44px, rgba(197,153,255,.2) 0 1px, transparent 1.5px),
    linear-gradient(165deg, var(--sop-purple-800), var(--sop-purple-950) 72%);
  box-shadow: 8px 0 30px rgba(27, 11, 48, .16);
  transition: width .22s ease, transform .22s ease;
}

.sop-sidebar::after {
  content: "";
  position: absolute;
  inset: auto -55px -70px auto;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(185, 126, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(155, 86, 236, .04), 0 0 0 58px rgba(155, 86, 236, .025);
  pointer-events: none;
}

.sop-brand {
  display: flex;
  height: 74px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.sop-brand img { width: 56px; height: 30px; object-fit: contain; }
.sop-brand span { display: none; font-size: 18px; font-weight: 800; }

.sop-nav {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  padding: 7px 9px 12px;
}

.sop-nav-item {
  position: relative;
  display: flex;
  min-height: 94px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 6px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #a99cba;
  background: transparent;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}

.sop-nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.sop-nav-item.is-active {
  color: #fff;
  border-color: rgba(211, 175, 255, .18);
  background: linear-gradient(145deg, rgba(150,91,231,.45), rgba(255,255,255,.1));
  box-shadow: inset 3px 0 0 #bb86ff, 0 8px 20px rgba(7,2,16,.18);
}
.sop-nav-item.is-active::before {
  content: "";
  position: absolute;
  left: -10px;
  width: 4px;
  height: 38px;
  border-radius: 0 4px 4px 0;
  background: #b674ff;
  box-shadow: 0 0 15px rgba(182,116,255,.75);
}

.sop-nav-icon { position: relative; display: grid; width: 30px; height: 30px; place-items: center; }
.sop-nav-icon svg { width: 28px; height: 28px; }
.sop-nav-label { font-size: 12px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.sop-nav-count {
  position: absolute;
  top: 10px;
  right: 9px;
  display: grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  padding: 0 5px;
  border: 2px solid var(--sop-purple-900);
  border-radius: 999px;
  color: #fff;
  background: var(--sop-red);
  font-size: 10px;
  line-height: 1;
}
.sop-nav-count[data-empty="true"] { display: none; }
.sop-nav-history { margin-top: auto; }

.sop-sidebar-footer { position: relative; z-index: 1; padding: 12px 10px 18px; border-top: 1px solid rgba(255,255,255,.08); }
.sop-help-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px;
  border: 0;
  color: #aa9cba;
  background: transparent;
  font-size: 11px;
}
.sop-help-button:hover { color: #fff; }
.sop-help-button svg { width: 21px; height: 21px; }

.sop-stage { min-height: 100vh; margin-left: var(--sop-sidebar); transition: margin-left .22s ease; }

.sop-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  min-height: var(--sop-topbar);
  grid-template-columns: minmax(260px, 1fr) auto minmax(340px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 14px 26px;
  border-bottom: 1px solid var(--sop-line);
  background: rgba(255,255,255,.96);
  box-shadow: 0 4px 20px rgba(44, 27, 61, .045);
  backdrop-filter: blur(14px);
}

.sop-store-block { display: flex; min-width: 0; align-items: center; gap: 12px; }
.sop-store-block > div { min-width: 0; }
.sop-eyebrow { display: block; margin-bottom: 3px; color: var(--sop-purple-600); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.sop-store-block h1 { overflow: hidden; margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.sop-store-block p { margin: 4px 0 0; color: var(--sop-muted); font-size: 11px; }
.sop-mobile-menu { display: none; width: 42px; height: 42px; place-items: center; flex: 0 0 auto; border: 1px solid var(--sop-line); border-radius: 12px; color: var(--sop-purple-700); background: #fff; }
.sop-mobile-menu svg { width: 21px; }

.sop-store-status {
  display: flex;
  min-width: 205px;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid #dce9e4;
  border-radius: 13px;
  color: var(--sop-ink);
  background: #f9fffc;
  transition: .18s ease;
}
.sop-store-status:hover { border-color: #a9d8c7; box-shadow: 0 5px 16px rgba(24,133,95,.08); }
.sop-store-status > i { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--sop-green); box-shadow: 0 0 0 4px rgba(20,155,105,.11); }
.sop-store-status > span { display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: flex-start; }
.sop-store-status small { color: var(--sop-muted); font-size: 9px; font-weight: 600; }
.sop-store-status strong { max-width: 160px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.sop-store-status > svg { width: 18px; height: 18px; color: #85808a; }
.sop-store-status.is-closed { border-color: #f1c6ce; background: #fff8f9; }
.sop-store-status.is-closed > i { background: var(--sop-red); box-shadow: 0 0 0 4px rgba(216,60,89,.11); }
.sop-store-status.is-loading > i { background: #a7a2ad; box-shadow: 0 0 0 4px rgba(120,114,127,.11); }

.sop-top-actions { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 8px; }
.sop-admin-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid #d9d3df;
  border-radius: 12px;
  color: #4c4356;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: .18s ease;
}
.sop-admin-link:hover { border-color: #c4a5ec; color: var(--sop-purple-700); background: var(--sop-purple-50); }
.sop-admin-link svg { width: 17px; height: 17px; }
.sop-icon-button {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #51495a;
  background: #f4f1f7;
  transition: .18s ease;
}
.sop-icon-button:hover { border-color: #d9c9ed; color: var(--sop-purple-700); background: var(--sop-purple-50); }
.sop-icon-button svg { width: 20px; height: 20px; }
.sop-alert-badge { position: absolute; top: -6px; right: -5px; display: grid; min-width: 20px; height: 20px; place-items: center; padding: 0 5px; border: 2px solid #fff; border-radius: 999px; color: #fff; background: var(--sop-red); font-size: 9px; }

.starby-logged-user-badge { display: flex; max-width: 190px; align-items: center; gap: 7px; padding: 5px 9px; border: 1px solid var(--sop-line); border-radius: 12px; background: #fff; }
.starby-logged-user-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; color: var(--sop-purple-700); background: var(--sop-purple-100); font-size: 0; }
.starby-logged-user-icon::before { content: ""; width: 15px; height: 15px; border: 1.8px solid currentColor; border-radius: 50% 50% 44% 44%; }
.starby-logged-user-badge > span:last-child { min-width: 0; }
.starby-logged-user-badge strong, .starby-logged-user-badge small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.starby-logged-user-badge strong { font-size: 10px; }
.starby-logged-user-badge small { margin-top: 2px; color: var(--sop-muted); font-size: 9px; }
.starby-admin-logout { min-height: 38px; padding: 0 10px; border: 0; color: #8c4553; background: transparent; font-size: 11px; font-weight: 700; }

.sop-main { padding-bottom: 44px; }

.sop-alert-strip {
  display: flex;
  max-width: 1480px;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px auto 0;
  padding: 9px 12px 9px 15px;
  border: 1px solid #d9c5f3;
  border-radius: 12px;
  color: #5e536b;
  background: #faf7ff;
}
.sop-alert-strip > div { display: flex; align-items: center; gap: 10px; }
.sop-alert-strip svg { width: 18px; height: 18px; color: var(--sop-purple-600); }
.sop-alert-strip span { font-size: 10px; }
.sop-alert-strip strong { color: #43384f; }
.sop-alert-strip button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 8px; color: #fff; background: var(--sop-purple-600); font-size: 10px; font-weight: 800; }

.sop-orders { width: min(1480px, calc(100% - 36px)); margin: 14px auto 0; }
.sop-loading-state, .sop-empty-state {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.sop-loading-state strong { margin-top: 18px; font-size: 15px; }
.sop-loading-state small { margin-top: 6px; color: var(--sop-muted); }
.sop-spinner { width: 34px; height: 34px; border: 3px solid #e3d8f1; border-top-color: var(--sop-purple-600); border-radius: 50%; animation: sopSpin .75s linear infinite; }

.sop-empty-art { position: relative; width: 186px; height: 128px; margin-bottom: 18px; color: var(--sop-purple-700); }
.sop-empty-art::before { content: ""; position: absolute; inset: 6px 28px 20px; border: 2px solid #d6c8e7; border-radius: 50%; }
.sop-empty-art .desk { position: absolute; left: 34px; right: 34px; bottom: 29px; height: 5px; border-radius: 5px; background: currentColor; }
.sop-empty-art .screen { position: absolute; left: 51px; bottom: 34px; width: 48px; height: 38px; border: 5px solid currentColor; border-radius: 5px; transform: skew(8deg); background: #fff; }
.sop-empty-art .bag { position: absolute; right: 41px; bottom: 34px; width: 35px; height: 27px; border-radius: 4px; background: linear-gradient(145deg, #a868f2, var(--sop-purple-600)); box-shadow: inset 0 -7px 0 rgba(255,255,255,.12); }
.sop-empty-art .bag::before { content: ""; position: absolute; left: 8px; top: -8px; width: 17px; height: 11px; border: 3px solid var(--sop-purple-700); border-bottom: 0; border-radius: 10px 10px 0 0; }
.sop-empty-art .star { position: absolute; right: 16px; top: 22px; width: 11px; height: 11px; border-radius: 50%; background: #d9b5ff; box-shadow: -139px 27px 0 -3px #b77af7, -20px 79px 0 -2px #e2c7ff; }
.sop-empty-state h3 { margin: 0; font-size: 21px; letter-spacing: -.025em; }
.sop-empty-state p { max-width: 430px; margin: 8px 0 0; color: var(--sop-muted); font-size: 13px; line-height: 1.6; }
.sop-empty-state button { min-height: 40px; margin-top: 20px; padding: 0 16px; border: 1px solid #b79bd8; border-radius: 10px; color: var(--sop-purple-700); background: #fff; font-size: 11px; font-weight: 800; }

.sop-order-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 14px; align-items: start; }
.sop-order-card {
  overflow: hidden;
  border: 1px solid #dfdae5;
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--sop-shadow);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.sop-order-card:hover { border-color: #cdb7e6; box-shadow: 0 14px 35px rgba(47,27,68,.11); }
.sop-order-card.is-new { animation: sopCardIn .34s ease both; }
.sop-order-card.is-late { border-color: #efbdc7; }

.sop-order-head { display: flex; min-height: 68px; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid #eeeaf1; }
.sop-order-id { min-width: 0; flex: 1; }
.sop-order-id > div { display: flex; align-items: center; gap: 8px; }
.sop-order-id strong { font-size: 17px; letter-spacing: -.02em; }
.sop-status-badge { display: inline-flex; min-height: 22px; align-items: center; padding: 0 8px; border-radius: 999px; color: var(--sop-purple-700); background: var(--sop-purple-100); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.sop-status-badge.status-feito { color: #8a5a06; background: var(--sop-yellow-soft); }
.sop-status-badge.status-retirado { color: #2b64a9; background: var(--sop-blue-soft); }
.sop-status-badge.status-entregue { color: #147d58; background: var(--sop-green-soft); }
.sop-status-badge.status-cancelado { color: #b82d47; background: var(--sop-red-soft); }
.sop-order-id > small { display: block; margin-top: 4px; color: var(--sop-muted); font-size: 10px; }
.sop-order-timer { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.sop-order-timer strong { color: #3f3946; font-size: 12px; font-variant-numeric: tabular-nums; }
.sop-order-timer small { color: var(--sop-muted); font-size: 9px; }
.sop-order-timer.warn strong { color: var(--sop-yellow); }
.sop-order-timer.late strong { color: var(--sop-red); }

.sop-cancel-request { display: grid; grid-template-columns: auto 1fr; gap: 9px; margin: 12px 16px 0; padding: 11px; border: 1px solid #f1bbc5; border-radius: 11px; color: #8e283b; background: var(--sop-red-soft); }
.sop-cancel-request svg { width: 20px; }
.sop-cancel-request strong { display: block; font-size: 11px; }
.sop-cancel-request p { margin: 3px 0 8px; font-size: 10px; line-height: 1.4; }
.sop-cancel-request div div { display: flex; gap: 6px; }
.sop-cancel-request button { min-height: 29px; padding: 0 9px; border: 0; border-radius: 7px; color: #fff; background: var(--sop-red); font-size: 9px; font-weight: 800; }
.sop-cancel-request button.secondary { border: 1px solid #dda5af; color: #963347; background: #fff; }

.sop-order-overview { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 15px 16px; }
.sop-customer h3 { margin: 0; font-size: 14px; letter-spacing: -.015em; }
.sop-customer p { display: flex; align-items: flex-start; gap: 7px; margin: 7px 0 0; color: #6e6775; font-size: 10px; line-height: 1.42; }
.sop-customer p svg { width: 14px; height: 14px; flex: 0 0 auto; color: #8c55cc; }
.sop-order-value { min-width: 128px; text-align: right; }
.sop-order-value > span { display: block; color: var(--sop-muted); font-size: 9px; }
.sop-order-value > strong { display: block; margin-top: 3px; font-size: 19px; letter-spacing: -.035em; }
.sop-payment-pill { display: inline-flex !important; min-height: 22px; align-items: center; margin-top: 7px; padding: 0 8px; border-radius: 7px; color: #645a6e !important; background: #f3f0f5; font-size: 9px !important; font-weight: 700; }

.sop-order-meta { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 13px; }
.sop-meta-pill { display: inline-flex; min-height: 25px; align-items: center; gap: 5px; padding: 0 8px; border: 1px solid #ebe6ef; border-radius: 7px; color: #716a78; background: #faf9fb; font-size: 9px; }
.sop-meta-pill strong { color: #494151; }

.sop-cancellation-history { margin: 0 16px 13px; padding: 11px 12px; border: 1px solid #efc2ca; border-radius: 10px; color: #8f2b3f; background: var(--sop-red-soft); }
.sop-cancellation-history strong { display: block; font-size: 11px; }
.sop-cancellation-history p { margin: 5px 0 0; color: #9f4658; font-size: 10px; line-height: 1.45; }

.sop-order-items { border-top: 1px solid #eeeaf1; }
.sop-items-toggle { display: flex; width: 100%; min-height: 43px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; border: 0; color: #4c4553; background: #fbfafc; font-size: 10px; font-weight: 800; text-align: left; }
.sop-items-toggle span { display: flex; align-items: center; gap: 7px; }
.sop-items-toggle b { display: grid; min-width: 20px; height: 20px; place-items: center; padding: 0 5px; border-radius: 999px; color: var(--sop-purple-700); background: var(--sop-purple-100); font-size: 9px; }
.sop-items-toggle svg { width: 17px; height: 17px; transition: transform .18s ease; }
.sop-order-card.is-expanded .sop-items-toggle > svg { transform: rotate(180deg); }
.sop-items-content { display: none; padding: 2px 16px 13px; background: #fbfafc; }
.sop-order-card.is-expanded .sop-items-content { display: block; }
.sop-item { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; padding: 8px 0; border-top: 1px dashed #e5dfe9; font-size: 10px; }
.sop-item:first-child { border-top: 0; }
.sop-item > b { color: var(--sop-purple-700); }
.sop-item strong { display: block; font-size: 10px; }
.sop-item small { display: block; margin-top: 4px; color: var(--sop-muted); line-height: 1.4; }
.sop-item-price { color: #635b6b; white-space: nowrap; }
.sop-order-note { margin: 2px 0 8px; padding: 8px 10px; border-left: 3px solid #d6b3fa; border-radius: 0 7px 7px 0; color: #685d73; background: #f7f0ff; font-size: 9px; line-height: 1.45; }

.sop-order-actions { display: flex; flex-wrap: wrap; gap: 7px; padding: 11px 13px; border-top: 1px solid #eeeaf1; background: #fff; }
.sop-action { display: inline-flex; min-height: 35px; align-items: center; justify-content: center; gap: 6px; padding: 0 11px; border: 1px solid #dcd6e2; border-radius: 9px; color: #574f60; background: #fff; font-size: 9px; font-weight: 800; transition: .16s ease; }
.sop-action:hover { border-color: #bfa0df; color: var(--sop-purple-700); }
.sop-action svg { width: 14px; height: 14px; }
.sop-action.primary { order: -3; border-color: transparent; color: #fff; background: linear-gradient(145deg, var(--sop-purple-500), var(--sop-purple-700)); box-shadow: 0 6px 14px rgba(91,40,160,.18); }
.sop-action.success { order: -3; border-color: transparent; color: #fff; background: var(--sop-green); box-shadow: 0 6px 14px rgba(20,155,105,.16); }
.sop-action.danger { color: #b92f49; border-color: #edc4cc; background: #fff8f9; }
.sop-action.whatsapp { color: #147a4f; border-color: #b9e1d1; background: #f4fcf8; }
.sop-action:disabled { cursor: wait; opacity: .55; transform: none; }

.sop-history-summary { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.sop-history-summary article { min-height: 86px; padding: 14px; border: 1px solid #dfdae5; border-radius: 13px; background: #fff; box-shadow: 0 7px 20px rgba(39,23,59,.045); }
.sop-history-summary span { color: var(--sop-muted); font-size: 9px; font-weight: 700; }
.sop-history-summary strong { display: block; margin-top: 6px; font-size: 19px; letter-spacing: -.03em; }

/* Lista + detalhes: o mesmo padrão visual em todas as etapas da operação. */
.sop-master-detail { display: grid; grid-template-columns: 310px minmax(0,1fr); gap: 14px; align-items: start; min-height: 590px; }
.sop-compact-list { display: flex; max-height: calc(100vh - 235px); flex-direction: column; gap: 9px; overflow: auto; padding: 1px 5px 14px 1px; scrollbar-color: #c9b3df transparent; scrollbar-width: thin; }
.sop-compact-card { position: relative; display: flex; width: 100%; min-height: 122px; flex: 0 0 auto; flex-direction: column; gap: 6px; overflow: hidden; padding: 15px; border: 1px solid #ddd6e5; border-radius: 14px; color: var(--sop-ink); background: #fff; box-shadow: 0 6px 20px rgba(44,25,64,.055); text-align: left; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.sop-compact-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: transparent; }
.sop-compact-card:hover { border-color: #bfa4db; box-shadow: 0 10px 25px rgba(44,25,64,.1); }
.sop-compact-card.is-selected { border-color: #8f56cb; background: linear-gradient(135deg,#fff 55%,#faf5ff); box-shadow: 0 10px 28px rgba(96,47,148,.14); }
.sop-compact-card.is-selected::before { background: linear-gradient(180deg,var(--sop-purple-500),var(--sop-purple-800)); }
.sop-compact-card.is-late { border-color: #e7aebb; }
.sop-compact-card.is-late::before { background: var(--sop-red); }
.sop-compact-card.is-new { animation: sopCardIn .34s ease both; }
.sop-compact-number { overflow: hidden; color: #34273f; font-size: 20px; line-height: 1.1; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.sop-compact-customer { overflow: hidden; color: #4f4657; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.sop-compact-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; border-top: 1px solid #eeeaf1; }
.sop-compact-clock { display: inline-flex; align-items: center; gap: 6px; color: #504657; font-variant-numeric: tabular-nums; }
.sop-compact-clock svg { width: 17px; height: 17px; color: var(--sop-purple-700); }
.sop-compact-clock strong { font-size: 11px; }
.sop-compact-clock.warn strong { color: var(--sop-yellow); }
.sop-compact-clock.late strong { color: var(--sop-red); }
.sop-compact-mode { display: inline-flex; min-height: 23px; align-items: center; padding: 0 8px; border-radius: 999px; color: var(--sop-purple-700); background: var(--sop-purple-100); font-size: 8px; letter-spacing: .03em; }

.sop-detail-pane { min-width: 0; overflow: hidden; border: 1px solid #dcd5e4; border-radius: 16px; background: #fff; box-shadow: 0 10px 32px rgba(44,25,64,.075); }
.sop-detail-header { display: grid; min-height: 91px; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #ece7ef; background: linear-gradient(135deg,#fff,#fcf9ff); }
.sop-detail-order-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(145deg,var(--sop-purple-500),var(--sop-purple-800)); box-shadow: 0 8px 18px rgba(94,44,151,.2); }
.sop-detail-order-icon svg { width: 23px; height: 23px; }
.sop-detail-title { min-width: 0; }
.sop-detail-title > span { display: block; color: #2f2637; font-size: 23px; font-weight: 800; line-height: 1; letter-spacing: -.045em; }
.sop-detail-title h3 { overflow: hidden; margin: 6px 0 0; font-size: 14px; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.sop-detail-chat { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border: 1px solid #d0b9e8; border-radius: 9px; color: var(--sop-purple-700); background: #fff; font-size: 9px; font-weight: 800; }
.sop-detail-chat:hover { border-color: var(--sop-purple-500); background: var(--sop-purple-50); }
.sop-detail-chat svg { width: 15px; height: 15px; }

.sop-detail-body { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 13px; background: #f8f6fa; }
.sop-detail-section { overflow: hidden; border: 1px solid #e2dce7; border-radius: 12px; background: #fff; }
.sop-detail-section > header { display: flex; min-height: 57px; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border-bottom: 1px solid #eeeaf1; background: #fff; }
.sop-detail-section > header span { display: block; color: var(--sop-purple-600); font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.sop-detail-section > header h4 { margin: 3px 0 0; color: #3f3648; font-size: 12px; }
.sop-detail-section > header > b { display: inline-flex; min-height: 23px; align-items: center; padding: 0 8px; border-radius: 999px; color: var(--sop-purple-700); background: var(--sop-purple-100); font-size: 8px; }
.sop-detail-section > header > svg { width: 18px; height: 18px; color: var(--sop-purple-600); }
.sop-detail-items-list { padding: 3px 13px; }
.sop-detail-item { display: grid; min-height: 67px; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px dashed #e6e0ea; }
.sop-detail-item:last-child { border-bottom: 0; }
.sop-detail-item figure { display: grid; width: 48px; height: 48px; place-items: center; overflow: hidden; margin: 0; border-radius: 10px; color: var(--sop-purple-700); background: linear-gradient(145deg,#f6edff,#e6d5f7); }
.sop-detail-item figure img { width: 100%; height: 100%; object-fit: cover; }
.sop-detail-item figure span { display: grid; width: 100%; height: 100%; place-items: center; }
.sop-detail-item figure svg { width: 20px; height: 20px; }
.sop-detail-item > div { min-width: 0; }
.sop-detail-item > div strong { display: block; color: #443b4d; font-size: 10px; line-height: 1.4; }
.sop-detail-item > div small { display: block; margin-top: 4px; color: var(--sop-muted); font-size: 8px; line-height: 1.45; }
.sop-detail-item > b { color: #4c4355; font-size: 10px; white-space: nowrap; }
.sop-detail-note { margin: 10px 0 12px; padding: 14px 16px; border: 1px solid rgba(139, 92, 246, .28); border-left: 5px solid #8b5cf6; border-radius: 16px; background: linear-gradient(135deg,#fbf7ff,#f2e7ff); box-shadow: 0 10px 22px rgba(124,58,237,.10); }
.sop-detail-note strong { color: #5b21b6; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.sop-detail-note p { margin: 8px 0 0; color: #3f3552; font-size: 13px; line-height: 1.55; font-weight: 700; }
.sop-detail-empty { margin: 20px 0; color: var(--sop-muted); font-size: 10px; text-align: center; }
.sop-detail-totals { padding: 10px 13px 12px; border-top: 1px solid #eeeaf1; background: #fcfbfd; }
.sop-detail-totals p { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 4px 0; color: #756b7d; font-size: 9px; }
.sop-detail-totals p strong { color: #4a4152; }
.sop-detail-totals p.total { margin-top: 6px; padding-top: 9px; border-top: 1px solid #e3dce8; color: #352d3d; font-size: 11px; font-weight: 800; }
.sop-detail-totals p.total strong { color: var(--sop-purple-700); font-size: 16px; }
.sop-detail-information { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.sop-detail-information dl { margin: 0; padding: 5px 13px 10px; }
.sop-detail-information dl > div { padding: 8px 0; }
.sop-detail-information dl > div + div { border-top: 1px dashed #e8e2eb; }
.sop-detail-information dt { color: var(--sop-muted); font-size: 8px; }
.sop-detail-information dd { margin: 3px 0 0; color: #4b4253; font-size: 9px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.sop-fulfillment-content { display: flex; min-height: 82px; flex-direction: column; justify-content: center; padding: 13px; }
.sop-fulfillment-content span { color: var(--sop-muted); font-size: 8px; }
.sop-fulfillment-content strong { margin-top: 5px; color: #43394b; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.sop-fulfillment-content strong:first-child { margin-top: 0; font-size: 13px; }
.sop-detail-cancellation .sop-cancellation-history { margin: 0; }
.sop-detail-pane > .sop-order-actions { position: sticky; bottom: 0; min-height: 59px; align-items: center; justify-content: flex-end; padding: 11px 14px; border-top-color: #dfd8e4; box-shadow: 0 -7px 20px rgba(45,25,65,.05); }
.sop-detail-pane > .sop-order-actions .sop-action { min-height: 37px; padding-inline: 14px; }

.sop-toast { position: fixed; right: 20px; bottom: 20px; z-index: 1000; max-width: 360px; padding: 12px 15px; border-radius: 11px; color: #fff; background: #2c2037; box-shadow: 0 14px 40px rgba(0,0,0,.24); font-size: 11px; font-weight: 600; opacity: 0; pointer-events: none; transform: translateY(12px); transition: .2s ease; }
.sop-toast.is-visible { opacity: 1; transform: none; }
.sop-toast[data-kind="success"] { background: #107a52; }
.sop-toast[data-kind="error"] { background: #ac2943; }

.sop-new-order { position: fixed; top: 108px; right: 20px; z-index: 900; display: grid; width: min(430px, calc(100vw - 28px)); grid-template-columns: auto 1fr auto auto; align-items: center; gap: 11px; padding: 12px; border: 1px solid #d7b7f8; border-radius: 14px; color: #fff; background: linear-gradient(145deg, var(--sop-purple-800), var(--sop-purple-950)); box-shadow: 0 18px 50px rgba(35,13,59,.32); animation: sopPopupIn .28s ease both; }
.sop-new-order-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: #fff; background: rgba(187,134,255,.2); }
.sop-new-order-icon svg { width: 20px; }
.sop-new-order span { display: block; color: #cba8f5; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.sop-new-order strong { display: block; margin-top: 3px; font-size: 11px; }
.sop-new-order > button:not(.sop-popup-close) { min-height: 34px; padding: 0 11px; border: 0; border-radius: 8px; color: var(--sop-purple-900); background: #fff; font-size: 9px; font-weight: 800; }
.sop-popup-close { width: 28px; height: 28px; border: 0; color: #cbbddd; background: transparent; font-size: 20px; }

.sop-overlay { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(16,7,28,.58); backdrop-filter: blur(7px); }
.sop-overlay.is-open { animation: sopFadeIn .18s ease; }
.sop-drawer { position: absolute; inset: 0 0 0 auto; width: min(440px, 100%); overflow: auto; color: var(--sop-ink); background: #fff; box-shadow: -20px 0 60px rgba(20,9,36,.22); animation: sopDrawerIn .23s ease; }
.sop-modal { width: min(650px, 100%); max-height: min(760px, calc(100vh - 36px)); overflow: hidden; border: 1px solid rgba(215,191,241,.7); border-radius: 20px; color: var(--sop-ink); background: #fff; box-shadow: 0 30px 90px rgba(20,9,36,.3); animation: sopModalIn .22s ease; }
.sop-drawer > header, .sop-modal > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 23px 18px; border-bottom: 1px solid var(--sop-line); background: linear-gradient(135deg, #fff, #faf5ff); }
.sop-drawer header span, .sop-modal header span { color: var(--sop-purple-600); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.sop-drawer header h2, .sop-modal header h2 { margin: 4px 0 0; font-size: 21px; letter-spacing: -.03em; }
.sop-drawer header p, .sop-modal header p { margin: 5px 0 0; color: var(--sop-muted); font-size: 11px; line-height: 1.45; }
.sop-close { display: grid; width: 36px; height: 36px; place-items: center; flex: 0 0 auto; border: 0; border-radius: 10px; color: #fff; background: var(--sop-red); font-size: 24px; line-height: 1; }
.sop-summary-content { padding: 18px; }
.sop-summary-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.sop-summary-grid article { min-height: 98px; padding: 14px; border: 1px solid var(--sop-line); border-radius: 13px; background: #fff; }
.sop-summary-grid span { color: var(--sop-muted); font-size: 9px; font-weight: 700; }
.sop-summary-grid strong { display: block; margin-top: 8px; font-size: 22px; letter-spacing: -.04em; }
.sop-summary-grid small { display: block; margin-top: 5px; color: #8a838f; font-size: 9px; }
.sop-summary-grid article.is-purple { color: #fff; border-color: transparent; background: linear-gradient(145deg, var(--sop-purple-600), var(--sop-purple-800)); }
.sop-summary-grid article.is-purple span, .sop-summary-grid article.is-purple small { color: #e1cff6; }
.sop-summary-section { margin-top: 18px; }
.sop-summary-section h3 { margin: 0 0 10px; font-size: 12px; }
.sop-progress-row { margin-top: 10px; }
.sop-progress-row > div { display: flex; justify-content: space-between; gap: 8px; color: var(--sop-muted); font-size: 9px; }
.sop-progress-row i { display: block; height: 6px; margin-top: 6px; overflow: hidden; border-radius: 999px; background: #eee9f2; }
.sop-progress-row b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sop-purple-500), var(--sop-purple-700)); }

.sop-modal-body { max-height: calc(100vh - 250px); overflow: auto; padding: 18px 22px; }
.sop-settings-section + .sop-settings-section { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--sop-line); }
.sop-settings-section h3 { margin: 0 0 10px; font-size: 12px; }
.sop-setting-row { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; }
.sop-setting-row + .sop-setting-row { border-top: 1px solid #f0edf2; }
.sop-setting-row > span { min-width: 0; }
.sop-setting-row strong, .sop-setting-row small { display: block; }
.sop-setting-row strong { font-size: 11px; }
.sop-setting-row small { margin-top: 4px; color: var(--sop-muted); font-size: 9px; line-height: 1.4; }
.sop-setting-row input { position: absolute; opacity: 0; pointer-events: none; }
.sop-setting-row > i { position: relative; width: 42px; height: 24px; flex: 0 0 auto; border-radius: 999px; background: #cfc9d4; transition: .18s ease; }
.sop-setting-row > i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: transform .18s ease; }
.sop-setting-row input:checked + i { background: var(--sop-purple-600); }
.sop-setting-row input:checked + i::after { transform: translateX(18px); }
.sop-field { display: block; margin-top: 12px; }
.sop-field > span { display: block; margin-bottom: 6px; color: #514959; font-size: 10px; font-weight: 700; }
.sop-field input, .sop-field select, .sop-field textarea { width: 100%; padding: 11px 12px; border: 1px solid #dcd6e2; border-radius: 10px; outline: none; color: var(--sop-ink); background: #fff; font-size: 11px; resize: vertical; }
.sop-field input:focus, .sop-field select:focus, .sop-field textarea:focus { border-color: #a96eea; box-shadow: 0 0 0 3px rgba(135,72,235,.09); }
.sop-field > small { display: block; margin-top: 5px; color: var(--sop-muted); font-size: 8px; }
.sop-modal > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--sop-line); background: #faf9fb; }
.sop-button { min-height: 39px; padding: 0 15px; border-radius: 9px; font-size: 10px; font-weight: 800; }
.sop-button.secondary { border: 1px solid #d9d3df; color: #5c5464; background: #fff; }
.sop-button.primary { border: 0; color: #fff; background: linear-gradient(145deg, var(--sop-purple-500), var(--sop-purple-700)); box-shadow: 0 7px 16px rgba(91,40,160,.18); }
.sop-button:disabled { cursor: wait; opacity: .55; }
.sop-feedback { min-height: 18px; margin: 10px 0 0; color: var(--sop-muted); font-size: 10px; }
.sop-feedback.success { color: var(--sop-green); }
.sop-feedback.error { color: var(--sop-red); }
.sop-driver-modal { width: min(480px, 100%); }
.sop-shortcuts-modal { width: min(500px, 100%); }
.sop-shortcuts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 20px 22px 23px; }
.sop-shortcuts-grid span { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--sop-line); border-radius: 10px; color: #5f5766; font-size: 10px; }
.sop-shortcuts-grid kbd { display: grid; min-width: 28px; height: 28px; place-items: center; border: 1px solid #d5c5e8; border-radius: 7px; color: var(--sop-purple-700); background: var(--sop-purple-50); font-size: 10px; font-weight: 800; box-shadow: none; }

/* Login e diálogos independentes do painel Admin. */
.starby-login-screen { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 15%, #51268b, transparent 35%), linear-gradient(145deg, #23103d, #0f071b); }
.starby-login-shell { width: min(940px,100%); overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 24px; background: #fff; box-shadow: 0 35px 100px rgba(0,0,0,.4); }
.starby-login-showcase { display: none; }
.starby-login-panel { position: relative; max-width: 480px; margin: auto; padding: 38px; }
.starby-login-mobile-brand img { display: block; width: 130px; height: 58px; object-fit: contain; margin: auto; filter: brightness(.25); }
.starby-login-title { margin-top: 22px; text-align: center; }
.starby-login-title > span { color: var(--sop-purple-600); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.starby-login-title h2 { margin: 7px 0 0; font-size: 25px; }
.starby-login-title p { margin: 7px 0 0; color: var(--sop-muted); font-size: 12px; }
.starby-login-form { margin-top: 24px; }
.starby-login-form label { display: block; margin-top: 13px; color: #514959; font-size: 10px; font-weight: 700; }
.starby-login-input { display: flex; height: 46px; align-items: center; gap: 8px; margin-top: 6px; padding: 0 12px; border: 1px solid #dcd6e2; border-radius: 11px; }
.starby-login-input input { min-width: 0; flex: 1; border: 0; outline: 0; }
.starby-login-input button { border: 0; background: transparent; }
.starby-login-error { color: var(--sop-red); font-size: 10px; }
.starby-login-submit { display: flex; width: 100%; height: 46px; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; border: 0; border-radius: 11px; color: #fff; background: linear-gradient(145deg,var(--sop-purple-500),var(--sop-purple-700)); font-weight: 800; }
.starby-forgot-password { display: block; margin: 13px auto 0; border: 0; color: var(--sop-purple-700); background: transparent; font-size: 10px; font-weight: 700; }
.starby-login-security { margin: 18px 0 0; color: var(--sop-muted); font-size: 9px; text-align: center; }
.starby-login-home-icon { position: absolute; top: 16px; right: 16px; color: var(--sop-purple-700); text-decoration: none; }

.starby-ui-layer { position: fixed; inset: 0; z-index: 5000; display: none; align-items: center; justify-content: center; padding: 18px; background: rgba(16,7,28,.62); backdrop-filter: blur(7px); }
.starby-ui-layer.open { display: flex; }
.starby-ui-card { width: min(440px,100%); padding: 24px; border: 1px solid #d7c0ed; border-radius: 18px; color: var(--sop-ink); background: #fff; box-shadow: 0 30px 90px rgba(20,9,36,.3); text-align: center; }
.starby-ui-icon { display: grid; width: 50px; height: 50px; place-items: center; margin: 0 auto 14px; border-radius: 14px; color: var(--sop-purple-700); background: var(--sop-purple-100); font-size: 22px; font-weight: 900; }
.starby-ui-card[data-kind="danger"] .starby-ui-icon, .starby-ui-card[data-kind="warning"] .starby-ui-icon { color: var(--sop-red); background: var(--sop-red-soft); }
.starby-ui-title { margin: 0; font-size: 19px; }
.starby-ui-message { margin: 10px 0 0; color: var(--sop-muted); font-size: 11px; line-height: 1.55; white-space: pre-line; }
.starby-ui-input { width: 100%; margin-top: 15px; padding: 11px; border: 1px solid #dcd6e2; border-radius: 10px; outline: none; }
.starby-ui-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 19px; }
.starby-ui-btn { min-height: 38px; padding: 0 14px; border-radius: 9px; font-size: 10px; font-weight: 800; }
.starby-ui-btn.secondary { border: 1px solid #d9d3df; color: #5c5464; background: #fff; }
.starby-ui-btn.primary { border: 0; color: #fff; background: var(--sop-purple-600); }
.starby-ui-btn.danger { border: 0; color: #fff; background: var(--sop-red); }

/* Chat de pedidos na identidade Starby. */
.order-chat-layer { position: fixed; inset: 0; z-index: 4000; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(16,7,28,.62); backdrop-filter: blur(7px); }
.order-chat-layer.show { display: flex; }
.order-chat-window { display: grid; width: min(470px,100%); height: min(650px,90vh); grid-template-rows: auto 1fr auto; overflow: hidden; border: 1px solid #d3b7ed; border-radius: 19px; background: #fff; box-shadow: 0 30px 90px rgba(20,9,36,.3); }
.order-chat-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--sop-line); background: linear-gradient(135deg,#fff,#faf5ff); }
.order-chat-head h3 { margin: 0; font-size: 16px; }
.order-chat-head p { margin: 3px 0 0; color: var(--sop-muted); font-size: 10px; }
.order-chat-head button { display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 9px; color: #fff; background: var(--sop-red); font-size: 20px; }
.order-chat-messages { display: flex; min-height: 0; flex-direction: column; gap: 8px; overflow: auto; padding: 15px; background: #f7f5f9; }
.order-chat-message { max-width: 82%; align-self: flex-start; padding: 9px 11px; border-radius: 12px 12px 12px 3px; color: #4a4252; background: #fff; box-shadow: 0 3px 10px rgba(36,17,63,.07); font-size: 11px; }
.order-chat-message.mine { align-self: flex-end; border-radius: 12px 12px 3px 12px; color: #fff; background: var(--sop-purple-600); }
.order-chat-message small { display: block; margin-top: 4px; opacity: .7; font-size: 8px; }
.order-chat-compose { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; border-top: 1px solid var(--sop-line); }
.order-chat-compose textarea { min-height: 42px; max-height: 100px; padding: 10px; border: 1px solid #dcd6e2; border-radius: 10px; outline: none; resize: none; }
.order-chat-compose button { padding: 0 15px; border: 0; border-radius: 10px; color: #fff; background: var(--sop-purple-600); font-size: 10px; font-weight: 800; }
.order-chat-empty { margin: auto; color: var(--sop-muted); font-size: 11px; }

body.sop-sidebar-mini { --sop-sidebar: 76px; }
body.sop-sidebar-mini .sop-brand img { width: 44px; }
body.sop-sidebar-mini .sop-nav-label, body.sop-sidebar-mini .sop-help-button span { display: none; }
body.sop-sidebar-mini .sop-nav-item { min-height: 68px; }
body.sop-sidebar-mini .sop-nav-count { top: 6px; right: 5px; }

@keyframes sopSpin { to { transform: rotate(360deg); } }
@keyframes sopPulse { 50% { opacity: .35; } }
@keyframes sopCardIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes sopPopupIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes sopFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sopDrawerIn { from { transform: translateX(30px); opacity: .7; } to { transform: none; opacity: 1; } }
@keyframes sopModalIn { from { transform: translateY(10px) scale(.985); opacity: .7; } to { transform: none; opacity: 1; } }

@media (max-width: 1240px) {
  .sop-topbar { grid-template-columns: minmax(220px,1fr) auto auto; gap: 12px; padding-inline: 20px; }
  .starby-logged-user-badge { display: none; }
  .sop-order-grid { grid-template-columns: 1fr; }
  .sop-master-detail { grid-template-columns: 280px minmax(0,1fr); }
}

@media (max-width: 980px) {
  :root { --sop-sidebar: 88px; }
  .sop-nav-label { font-size: 10px; }
  .sop-nav-item { min-height: 82px; }
  .sop-topbar { grid-template-columns: minmax(180px,1fr) auto; }
  .sop-store-status { grid-column: 2; grid-row: 1; min-width: 190px; }
  .sop-top-actions { grid-column: 1 / -1; display: none; }
  .sop-history-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sop-master-detail { grid-template-columns: 260px minmax(0,1fr); }
  .sop-detail-header { grid-template-columns: auto minmax(0,1fr) auto; }
  .sop-detail-header > .sop-status-badge { grid-column: 2; justify-self: start; }
  .sop-detail-chat { grid-column: 3; grid-row: 1 / span 2; }
  .sop-detail-information { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --sop-topbar: 76px; }
  .sop-sidebar { width: 250px; transform: translateX(-102%); }
  body.sop-mobile-menu-open .sop-sidebar { transform: none; }
  body.sop-mobile-menu-open::after { content: ""; position: fixed; inset: 0; z-index: 90; background: rgba(16,7,28,.5); }
  .sop-stage { margin-left: 0; }
  .sop-brand { justify-content: flex-start; padding: 0 19px; }
  .sop-brand span { display: inline; }
  .sop-nav { padding-inline: 10px; }
  .sop-nav-item { min-height: 58px; flex-direction: row; justify-content: flex-start; padding: 8px 13px; }
  .sop-nav-label { display: inline; font-size: 12px; }
  .sop-nav-count { position: static; margin-left: auto; border-color: transparent; }
  .sop-nav-history { margin-top: 0; }
  .sop-help-button { justify-content: flex-start; padding-inline: 13px; font-size: 12px; }
  .sop-mobile-menu { display: grid; }
  .sop-topbar { position: sticky; min-height: 76px; grid-template-columns: minmax(0,1fr) auto; padding: 10px 13px; }
  .sop-eyebrow, .sop-store-block p { display: none; }
  .sop-store-block h1 { font-size: 15px; }
  .sop-store-status { min-width: 0; padding: 9px 10px; }
  .sop-store-status small { display: none; }
  .sop-store-status strong { max-width: 100px; font-size: 10px; }
  .sop-store-status > svg { display: none; }
  .sop-alert-strip { width: calc(100% - 28px); align-items: flex-start; flex-direction: column; margin-top: 12px; }
  .sop-alert-strip button { width: 100%; }
  .sop-orders { width: calc(100% - 28px); margin-top: 12px; }
  .sop-master-detail { grid-template-columns: 1fr; }
  .sop-compact-list { display: grid; max-height: none; grid-auto-columns: minmax(245px,80vw); grid-auto-flow: column; overflow-x: auto; overflow-y: hidden; padding-bottom: 7px; }
  .sop-compact-card { min-height: 122px; }
  .sop-detail-header { grid-template-columns: auto minmax(0,1fr); padding: 14px; }
  .sop-detail-header > .sop-status-badge { grid-column: 2; }
  .sop-detail-chat { grid-column: 1 / -1; grid-row: auto; width: 100%; }
  .sop-detail-body { padding: 9px; }
  .sop-detail-pane > .sop-order-actions { justify-content: stretch; }
  .sop-order-overview { grid-template-columns: 1fr; }
  .sop-order-value { padding-top: 12px; border-top: 1px dashed #e4dfe7; text-align: left; }
  .sop-order-actions .sop-action { flex: 1 1 calc(50% - 5px); }
  .sop-order-actions .sop-action.primary, .sop-order-actions .sop-action.success { flex-basis: 100%; }
  .sop-history-summary { grid-template-columns: 1fr 1fr; }
  .sop-new-order { top: 88px; right: 14px; grid-template-columns: auto 1fr auto; }
  .sop-new-order > button:not(.sop-popup-close) { grid-column: 2; justify-self: start; }
  .sop-popup-close { grid-column: 3; grid-row: 1 / span 2; }
  .sop-modal { max-height: calc(100vh - 20px); border-radius: 16px; }
  .sop-modal-body { max-height: calc(100vh - 225px); padding-inline: 16px; }
  .sop-modal > footer { padding-inline: 16px; }
  .sop-shortcuts-grid { grid-template-columns: 1fr; }
  .sop-drawer { width: 100%; }
}

@media (max-width: 420px) {
  .sop-store-status > span { display: none; }
  .sop-store-status { min-width: 38px; justify-content: center; }
  .sop-history-summary { grid-template-columns: 1fr; }
  .sop-order-head { align-items: flex-start; }
  .sop-order-id > div { align-items: flex-start; flex-direction: column; gap: 4px; }
  .sop-order-actions .sop-action { flex-basis: 100%; }
  .sop-summary-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .sop-sidebar, .sop-topbar, .sop-alert-strip, .sop-order-actions { display: none !important; }
  .sop-stage { margin: 0; }
  .sop-orders { width: 100%; margin: 0; }
  .sop-order-card { break-inside: avoid; box-shadow: none; }
}


/* 2026-08-05 — refinamentos solicitados na central de operação */
.sop-topbar {
  grid-template-columns: minmax(250px, 1fr) minmax(165px, 210px) auto;
  gap: 14px;
}

.sop-top-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 8px;
}

.sop-store-status {
  min-width: 180px;
  cursor: default;
  pointer-events: none;
}

.sop-store-status:hover {
  border-color: #dce9e4;
  box-shadow: none;
}

.sop-store-status > span {
  justify-content: center;
}

.sop-store-status small {
  font-size: 8px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sop-store-status strong {
  max-width: none;
}

.sop-icon-button.is-sound-on {
  color: #8a5a06;
  border-color: #f0d39a;
  background: var(--sop-yellow-soft);
}

.sop-icon-button.is-sound-on:hover {
  color: #8a5a06;
  border-color: #e7c47b;
  background: #ffefc8;
}

.sop-icon-button.is-sound-off {
  color: #b82d47;
  border-color: #efc2ca;
  background: var(--sop-red-soft);
}

.sop-icon-button.is-sound-off:hover {
  color: #b82d47;
  border-color: #e5a8b5;
  background: #ffe8ed;
}

.sop-detail-header {
  grid-template-columns: auto minmax(0,1fr) auto;
}

.sop-detail-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.sop-detail-chat {
  min-width: 160px;
}

.sop-detail-close {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #efc2ca;
  border-radius: 10px;
  color: var(--sop-red);
  background: #fff8f9;
  transition: .18s ease;
}

.sop-detail-close:hover {
  border-color: #e29baa;
  background: #ffeef2;
}

.sop-detail-close svg {
  width: 15px;
  height: 15px;
}

.sop-empty-selection {
  display: grid;
  min-height: 590px;
  place-items: center;
  padding: 24px;
}

.sop-empty-selection-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 360px;
  text-align: center;
}

.sop-empty-selection-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 22px;
  color: var(--sop-purple-700);
  background: linear-gradient(145deg, #f6edff, #ebdefb);
}

.sop-empty-selection-icon svg {
  width: 28px;
  height: 28px;
}

.sop-empty-selection-card h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -.03em;
}

.sop-empty-selection-card p {
  margin: 0;
  color: var(--sop-muted);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .sop-topbar {
    grid-template-columns: minmax(200px,1fr) auto;
  }

  .sop-store-status {
    grid-column: 2;
    grid-row: 1;
  }

  .sop-top-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .sop-detail-header {
    grid-template-columns: auto minmax(0,1fr);
  }

  .sop-detail-header-actions {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .sop-detail-chat {
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .sop-top-actions {
    display: none;
  }

  .sop-empty-selection {
    min-height: 420px;
  }
}


/* 2026-08-06 — refinamentos da janela geral de pedidos */
.sop-main {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--sop-topbar));
}

.sop-orders {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--sop-topbar) - 42px);
  margin-bottom: 18px;
}

.sop-orders > .sop-master-detail {
  flex: 1 1 auto;
  min-height: 0;
}

.sop-history-summary {
  flex: 0 0 auto;
  margin-bottom: 12px;
}

.sop-master-detail {
  grid-template-columns: 320px minmax(0,1fr);
  align-items: stretch;
  min-height: calc(100vh - 260px);
}

.sop-compact-list {
  height: 100%;
  max-height: none;
  padding-right: 8px;
}

.sop-detail-pane {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.sop-detail-body {
  flex: 1 1 auto;
}

.sop-empty-selection {
  min-height: 100%;
}

.sop-store-status {
  cursor: pointer;
  pointer-events: auto;
}

.sop-store-status:hover {
  border-color: #b8d9cd;
  box-shadow: 0 5px 16px rgba(24,133,95,.08);
}

.sop-store-status:disabled {
  cursor: wait;
  opacity: .7;
}

.sop-store-status small {
  display: block;
}

.sop-detail-header {
  align-items: start;
  gap: 14px;
}

.sop-detail-title {
  padding-top: 3px;
}

.sop-detail-header-actions {
  margin-top: 2px;
}

.sop-detail-chat {
  min-height: 38px;
  font-size: 10px;
}

.sop-detail-close {
  width: 38px;
  height: 38px;
}

.sop-detail-body {
  padding-bottom: 8px;
}

.sop-detail-information {
  align-items: stretch;
}

.sop-detail-section {
  height: 100%;
}

@media (max-width: 980px) {
  .sop-orders {
    min-height: auto;
  }

  .sop-master-detail {
    min-height: auto;
    grid-template-columns: 290px minmax(0,1fr);
  }
}


/* 2026-08-06 — ajuste fino do cabeçalho do pedido e status */
.sop-icon-button.is-sound-on {
  color: #147d58;
  border-color: #b8e1cf;
  background: var(--sop-green-soft);
}

.sop-icon-button.is-sound-on:hover {
  color: #147d58;
  border-color: #99d1ba;
  background: #edf9f2;
}

.sop-detail-header {
  grid-template-columns: auto minmax(0,1fr) auto auto;
  align-items: start;
}

.sop-detail-header > .sop-status-badge {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  margin-top: 6px;
}

.sop-detail-header-actions {
  grid-column: 4;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  margin-top: 0;
}

@media (max-width: 980px) {
  .sop-detail-header {
    grid-template-columns: auto minmax(0,1fr) auto;
  }

  .sop-detail-header > .sop-status-badge {
    grid-column: 3;
    grid-row: 1;
  }

  .sop-detail-header-actions {
    grid-column: 2 / 4;
    grid-row: 2;
    justify-self: end;
    margin-top: 6px;
  }
}

@media (max-width: 720px) {
  .sop-detail-header {
    grid-template-columns: auto minmax(0,1fr);
  }

  .sop-detail-header > .sop-status-badge {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    margin-top: 4px;
  }

  .sop-detail-header-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: stretch;
  }

  .sop-detail-chat {
    flex: 1 1 auto;
    min-width: 0;
  }
}


/* 2026-08-06 — data do histórico e responsável pelo cancelamento */
.sop-compact-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sop-compact-head .sop-compact-number {
  min-width: 0;
  flex: 1 1 auto;
}

.sop-compact-date {
  flex: 0 0 auto;
  color: var(--sop-red);
  font-size: 8px;
  font-weight: 800;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}

.sop-cancellation-user {
  margin-top: 6px !important;
  padding-top: 6px;
  border-top: 1px dashed rgba(184,45,71,.25);
}

.sop-cancellation-user b {
  color: #7f2134;
}

@media (max-width: 420px) {
  .sop-compact-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .sop-compact-date {
    text-align: left;
  }
}


/* 2026-08-06 — bordas do histórico e avisos de nova mensagem */
.sop-compact-card.is-history-cancelled {
  border-color: #e6a9b5;
}

.sop-compact-card.is-history-cancelled::before {
  background: var(--sop-red);
}

.sop-compact-card.is-history-cancelled.is-selected {
  border-color: #d95f78;
  background: linear-gradient(135deg, #fff 55%, #fff4f6);
  box-shadow: 0 10px 28px rgba(184,45,71,.14);
}

.sop-compact-card.is-history-cancelled.is-selected::before {
  background: linear-gradient(180deg, #f0627d, #b82d47);
}

.sop-compact-card.is-history-completed {
  border-color: #b8dfcf;
}

.sop-compact-card.is-history-completed::before {
  background: var(--sop-green);
}

.sop-compact-card.is-history-completed.is-selected {
  border-color: #4eb287;
  background: linear-gradient(135deg, #fff 55%, #f4fcf8);
  box-shadow: 0 10px 28px rgba(20,155,105,.14);
}

.sop-compact-card.is-history-completed.is-selected::before {
  background: linear-gradient(180deg, #2bb27c, #147d58);
}

.sop-unread-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #f4c542;
  box-shadow: 0 0 0 1px rgba(200,157,26,.22);
}

.sop-detail-chat {
  position: relative;
}

.sop-chat-unread-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 10px;
  height: 10px;
}


/* 2026-08-06 — compactação da janela geral e histórico concluído */
html, body {
  height: 100%;
}

.sop-main {
  min-height: 0;
  height: calc(100vh - var(--sop-topbar));
  overflow: hidden;
}

.sop-orders {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(100vh - var(--sop-topbar) - 40px);
  overflow: hidden;
}

.sop-orders > .sop-master-detail {
  overflow: hidden;
}

.sop-master-detail {
  min-height: 0;
  height: calc(100vh - 270px);
}

.sop-compact-list {
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.sop-detail-pane {
  min-height: 0;
  max-height: 100%;
}

.sop-detail-body {
  overflow-y: auto;
}

.sop-completion-history {
  border-color: rgba(20,155,105,.22);
  background: #f5fcf8;
}

.sop-completion-history strong {
  color: #177b58;
}

.sop-completion-history .sop-cancellation-user {
  border-top-color: rgba(20,155,105,.22);
}

.sop-completion-history .sop-cancellation-user b {
  color: #14664a;
}

@media (max-width: 980px) {
  .sop-main,
  .sop-orders,
  .sop-master-detail,
  .sop-detail-pane,
  .sop-detail-body {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .sop-compact-list {
    max-height: 340px;
  }
}


/* 2026-08-05 — rolagem geral somente na página */
.sop-main {
  height: auto;
  min-height: calc(100vh - var(--sop-topbar));
  overflow: visible;
}

.sop-orders {
  min-height: calc(100vh - var(--sop-topbar) - 40px);
  max-height: none;
  overflow: visible;
}

.sop-orders > .sop-master-detail {
  overflow: visible;
}

.sop-master-detail {
  height: auto;
  min-height: calc(100vh - 270px);
  align-items: start;
  overflow: visible;
}

.sop-compact-list {
  height: auto;
  max-height: calc(100vh - 270px);
  overflow-y: auto;
  overflow-x: hidden;
}

.sop-detail-pane {
  min-height: calc(100vh - 270px);
  max-height: none;
  overflow: visible;
}

.sop-detail-body {
  overflow: visible;
}


/* 2026-08-06 — cards da lista mais compactos para caber mais pedidos */
.sop-compact-list {
  gap: 6px;
  padding: 1px 4px 10px 1px;
}

.sop-compact-card {
  min-height: 96px;
  gap: 4px;
  padding: 11px 13px;
  border-radius: 12px;
}

.sop-compact-number {
  font-size: 17px;
}

.sop-compact-customer {
  font-size: 11px;
}

.sop-compact-foot {
  gap: 8px;
  padding-top: 6px;
}

.sop-compact-clock svg {
  width: 15px;
  height: 15px;
}

.sop-compact-clock strong {
  font-size: 10px;
}

.sop-compact-mode {
  min-height: 20px;
  padding: 0 7px;
  font-size: 7px;
}

.sop-compact-date {
  font-size: 7px;
}


/* 2026-08-05 — novas filas Retirada e Balcão */
@media (min-width: 721px) {
  .sop-nav {
    gap: 4px;
    padding-top: 6px;
    padding-bottom: 8px;
  }

  .sop-nav-item {
    min-height: 68px;
    gap: 5px;
    padding: 6px 4px;
    border-radius: 12px;
  }

  .sop-nav-icon,
  .sop-nav-icon svg {
    width: 24px;
    height: 24px;
  }

  .sop-nav-label {
    font-size: 10px;
  }

  .sop-nav-count {
    top: 5px;
    right: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 8px;
  }

  .sop-nav-history {
    margin-top: auto;
  }
}

/* 2026-08-05 — restaura o tamanho dos cards e amplia o elevador da lista */
@media (min-width: 721px) {
  .sop-compact-list {
    position: sticky;
    top: calc(var(--sop-topbar) + 14px);
    height: calc(100vh - var(--sop-topbar) - 28px);
    max-height: calc(100vh - var(--sop-topbar) - 28px);
    gap: 9px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1px 8px 14px 1px;
  }

  .sop-compact-card {
    min-height: 122px;
    gap: 6px;
    padding: 15px;
    border-radius: 14px;
  }

  .sop-compact-number {
    font-size: 20px;
  }

  .sop-compact-customer {
    font-size: 12px;
  }

  .sop-compact-foot {
    gap: 10px;
    padding-top: 8px;
  }

  .sop-compact-clock svg {
    width: 17px;
    height: 17px;
  }

  .sop-compact-clock strong {
    font-size: 11px;
  }

  .sop-compact-mode {
    min-height: 23px;
    padding: 0 8px;
    font-size: 8px;
  }

  .sop-compact-date {
    font-size: 8px;
  }
}


/* 2026-08-06 — venda rápida no balcão */
.sop-nav-quick-sale {
  border-style: dashed;
  border-color: rgba(155,92,255,.26);
  background: rgba(255,255,255,.03);
}

.sop-nav-quick-sale .sop-nav-icon,
.sop-nav-quick-sale .sop-nav-label {
  color: #f2ecff;
}

.sop-nav-quick-sale:hover {
  border-color: rgba(180,138,255,.5);
  background: rgba(255,255,255,.07);
}

.sop-quick-sale-modal {
  width: min(1120px, calc(100vw - 24px));
}

.sop-quick-sale-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 18px;
}

.sop-quick-sale-catalog,
.sop-quick-sale-cart-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.sop-quick-sale-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 52vh;
  overflow: auto;
  padding-right: 4px;
}

.sop-quick-sale-product {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border: 1px solid var(--sop-border);
  border-radius: 14px;
  text-align: left;
  background: #fff;
  transition: .18s ease;
}

.sop-quick-sale-product:hover {
  border-color: rgba(125, 70, 220, .32);
  box-shadow: 0 10px 20px rgba(36,17,63,.06);
}

.sop-quick-sale-product strong { display:block; font-size: 13px; color: var(--sop-ink); }
.sop-quick-sale-product small { display:block; margin-top: 3px; color: var(--sop-muted); font-size: 11px; }
.sop-quick-sale-product p { margin: 6px 0 0; color: var(--sop-muted); font-size: 11px; line-height: 1.45; }
.sop-quick-sale-product b { white-space: nowrap; color: var(--sop-purple-700); font-size: 13px; }

.sop-quick-sale-top-fields { display:grid; grid-template-columns: 1.2fr .8fr; gap: 10px; }

.sop-quick-sale-cart-title,
.sop-quick-sale-summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.sop-quick-sale-cart {
  display:grid;
  gap:10px;
  max-height: 38vh;
  overflow:auto;
  padding-right: 4px;
}

.sop-quick-sale-cart-item {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 12px;
  border: 1px solid var(--sop-border);
  border-radius: 14px;
  background: #fff;
}

.sop-quick-sale-cart-item strong { display:block; font-size: 13px; }
.sop-quick-sale-cart-item small { display:block; color: var(--sop-muted); margin-top: 2px; font-size: 11px; }
.sop-quick-sale-cart-item b { display:block; margin-top: 5px; color: var(--sop-purple-700); font-size: 13px; }

.sop-quick-sale-qty {
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.sop-quick-sale-qty button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--sop-border);
  border-radius: 9px;
  background: #fff;
  font-size: 18px;
  line-height: 1;
}

.sop-quick-sale-summary {
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f7f2ff, #fff);
  color: var(--sop-ink);
}

.sop-quick-sale-summary strong { font-size: 21px; color: var(--sop-purple-700); }

.sop-quick-sale-empty {
  padding: 18px 16px;
  border: 1px dashed var(--sop-border);
  border-radius: 14px;
  color: var(--sop-muted);
  background: rgba(255,255,255,.7);
}

@media (max-width: 980px) {
  .sop-quick-sale-body,
  .sop-quick-sale-top-fields {
    grid-template-columns: 1fr;
  }

  .sop-quick-sale-products {
    grid-template-columns: 1fr;
    max-height: 36vh;
  }

  .sop-quick-sale-cart {
    max-height: none;
  }
}


/* 2026-08-06 — venda rápida organizada por categoria do cardápio */
.sop-quick-sale-modal {
  width: min(1260px, calc(100vw - 24px));
}

.sop-quick-sale-body {
  grid-template-columns: 210px minmax(420px, 1fr) minmax(310px, .72fr);
  gap: 0;
  padding: 0 !important;
  overflow: hidden;
}

.sop-quick-sale-categories-panel,
.sop-quick-sale-catalog,
.sop-quick-sale-cart-panel {
  min-width: 0;
  padding: 18px;
}

.sop-quick-sale-categories-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid var(--sop-line);
  background: #fbf9fe;
}

.sop-quick-sale-section-title span,
.sop-quick-sale-catalog-head span {
  display: block;
  color: var(--sop-purple-700);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}

.sop-quick-sale-section-title small {
  display: block;
  margin-top: 4px;
  color: var(--sop-muted);
  font-size: 10px;
}

.sop-quick-sale-categories {
  display: grid;
  gap: 8px;
  max-height: 48vh;
  overflow-y: auto;
  padding-right: 3px;
}

.sop-quick-sale-category {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid #e1d9e8;
  border-radius: 12px;
  color: #4b4055;
  background: #fff;
  text-align: left;
  transition: .18s ease;
}

.sop-quick-sale-category strong,
.sop-quick-sale-category small {
  display: block;
}

.sop-quick-sale-category strong { font-size: 12px; }
.sop-quick-sale-category small { margin-top: 3px; color: var(--sop-muted); font-size: 9px; }
.sop-quick-sale-category > b { color: #a78bbb; font-size: 20px; }

.sop-quick-sale-category:hover {
  border-color: #bda2d7;
  background: #faf6ff;
}

.sop-quick-sale-category.is-active {
  border-color: #8750c9;
  color: #fff;
  background: linear-gradient(135deg, #6d32ae, #8c51d1);
  box-shadow: 0 8px 20px rgba(94, 42, 151, .22);
}

.sop-quick-sale-category.is-active small,
.sop-quick-sale-category.is-active > b { color: #f2e8ff; }

.sop-quick-sale-category-help {
  margin-top: auto;
  padding: 12px;
  border-radius: 12px;
  color: #675872;
  background: #f0e7fb;
}

.sop-quick-sale-category-help strong { color: var(--sop-purple-700); font-size: 10px; }
.sop-quick-sale-category-help p { margin: 5px 0 0; font-size: 9px; line-height: 1.5; }

.sop-quick-sale-catalog {
  border-right: 1px solid var(--sop-line);
  background: #fff;
}

.sop-quick-sale-catalog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.sop-quick-sale-catalog-head h3 {
  margin: 4px 0 0;
  color: var(--sop-ink);
  font-size: 20px;
}

.sop-quick-sale-catalog-head p {
  margin: 5px 0 0;
  color: var(--sop-muted);
  font-size: 10px;
}

.sop-quick-sale-catalog-head > b {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--sop-purple-700);
  background: var(--sop-purple-100);
  font-size: 9px;
}

.sop-quick-sale-search { margin-top: 12px; }

.sop-quick-sale-products {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  max-height: 50vh;
  margin-top: 2px;
}

.sop-quick-sale-product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2dce8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(45, 25, 65, .045);
}

.sop-quick-sale-product-card figure {
  width: 100%;
  height: 116px;
  margin: 0;
  overflow: hidden;
  background: #f7f3fa;
}

.sop-quick-sale-product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sop-quick-sale-product-copy {
  display: flex;
  min-height: 145px;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 12px;
}

.sop-quick-sale-product-copy > span {
  color: var(--sop-purple-700);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.sop-quick-sale-product-copy > strong {
  margin-top: 4px;
  color: var(--sop-ink);
  font-size: 13px;
}

.sop-quick-sale-product-copy > p {
  display: -webkit-box;
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--sop-muted);
  font-size: 10px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sop-quick-sale-product-copy footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.sop-quick-sale-product-copy footer b {
  color: var(--sop-purple-700);
  font-size: 13px;
}

.sop-quick-sale-product-copy footer button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--sop-purple-600);
  font-size: 9px;
  font-weight: 850;
}

.sop-quick-sale-cart-panel {
  background: #fcfbfd;
}

@media (max-width: 1100px) {
  .sop-quick-sale-body {
    grid-template-columns: 180px minmax(360px, 1fr) 300px;
  }
}

@media (max-width: 900px) {
  .sop-quick-sale-body {
    display: block;
    max-height: 72vh;
    overflow-y: auto;
  }

  .sop-quick-sale-categories-panel,
  .sop-quick-sale-catalog,
  .sop-quick-sale-cart-panel {
    border-right: 0;
    border-bottom: 1px solid var(--sop-line);
  }

  .sop-quick-sale-categories {
    display: flex;
    max-height: none;
    overflow-x: auto;
  }

  .sop-quick-sale-category {
    min-width: 150px;
  }

  .sop-quick-sale-category-help { display: none; }
}

@media (max-width: 560px) {
  .sop-quick-sale-products { grid-template-columns: 1fr; }
}


/* 2026-08-06 — reorganização visual da janela de venda rápida */
.sop-quick-sale-modal {
  width: min(1320px, calc(100vw - 28px));
  max-height: calc(100vh - 26px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.sop-quick-sale-modal > header {
  padding: 20px 22px 16px;
}

.sop-quick-sale-modal > footer {
  position: relative;
  z-index: 2;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(180deg, #fbf9fd, #f6f2fa);
}

.sop-quick-sale-modal > footer::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  border-top: 1px solid var(--sop-line);
  pointer-events: none;
}

.sop-quick-sale-body {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 360px;
  gap: 0;
  min-height: 0;
  max-height: calc(100vh - 210px);
  padding: 0 !important;
  overflow: hidden;
}

.sop-quick-sale-categories-panel,
.sop-quick-sale-catalog,
.sop-quick-sale-cart-panel {
  min-height: 0;
  padding: 18px;
}

.sop-quick-sale-categories-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  background: #fbf9fe;
}

.sop-quick-sale-catalog {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  background: #fff;
}

.sop-quick-sale-cart-panel {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 12px;
  background: #fcfbfd;
}

.sop-quick-sale-section-title span,
.sop-quick-sale-catalog-head span {
  font-size: 10px;
}

.sop-quick-sale-section-title small,
.sop-quick-sale-catalog-head p {
  font-size: 11px;
  line-height: 1.45;
}

.sop-quick-sale-categories {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding-right: 4px;
}

.sop-quick-sale-category {
  min-height: 66px;
  padding: 11px 12px;
}

.sop-quick-sale-category strong {
  font-size: 13px;
}

.sop-quick-sale-category small {
  font-size: 10px;
}

.sop-quick-sale-category-help {
  margin-top: 0;
  padding: 14px;
  border: 1px solid #eadcf9;
}

.sop-quick-sale-category-help strong {
  font-size: 11px;
}

.sop-quick-sale-category-help p {
  font-size: 10px;
}

.sop-quick-sale-catalog-head {
  align-items: flex-start;
}

.sop-quick-sale-catalog-head h3 {
  font-size: 28px;
  line-height: 1.05;
}

.sop-quick-sale-catalog-head > b {
  padding: 6px 10px;
  font-size: 10px;
}

.sop-quick-sale-search {
  margin-top: 0;
}

.sop-quick-sale-search input,
.sop-quick-sale-top-fields input,
.sop-quick-sale-top-fields select,
#operationQuickSaleNote {
  min-height: 38px;
}

.sop-quick-sale-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding-right: 4px;
}

.sop-quick-sale-product-card {
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(45, 25, 65, .05);
}

.sop-quick-sale-product-card figure {
  height: 134px;
}

.sop-quick-sale-product-copy {
  min-height: 156px;
  padding: 13px 13px 12px;
}

.sop-quick-sale-product-copy > span {
  font-size: 9px;
}

.sop-quick-sale-product-copy > strong {
  font-size: 15px;
}

.sop-quick-sale-product-copy > p {
  font-size: 11px;
}

.sop-quick-sale-product-copy footer {
  align-items: end;
}

.sop-quick-sale-product-copy footer b {
  font-size: 16px;
}

.sop-quick-sale-product-copy footer button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 10px;
}

.sop-quick-sale-top-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sop-quick-sale-cart-title {
  padding-top: 4px;
}

.sop-quick-sale-cart-title strong {
  font-size: 15px;
}

.sop-quick-sale-cart-title small {
  color: var(--sop-muted);
  font-size: 12px;
}

.sop-quick-sale-cart {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding-right: 4px;
}

.sop-quick-sale-cart-item {
  padding: 12px;
  border-radius: 14px;
}

.sop-quick-sale-cart-item strong {
  font-size: 14px;
}

.sop-quick-sale-cart-item small {
  font-size: 11px;
}

.sop-quick-sale-cart-item b {
  font-size: 15px;
}

.sop-quick-sale-qty {
  gap: 10px;
}

.sop-quick-sale-qty button {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.sop-quick-sale-summary {
  padding: 16px 18px;
  border: 1px solid #eadcf9;
  border-radius: 16px;
}

.sop-quick-sale-summary span {
  font-size: 14px;
  font-weight: 700;
}

.sop-quick-sale-summary strong {
  font-size: 20px;
}

.sop-quick-sale-empty {
  padding: 22px 18px;
  font-size: 12px;
  line-height: 1.5;
}

.sop-quick-sale-modal .sop-button.primary,
.sop-quick-sale-modal .sop-button.secondary {
  min-height: 38px;
  padding-inline: 18px;
}

.sop-quick-sale-footer-note {
  color: var(--sop-muted);
  font-size: 11px;
}

@media (max-width: 1180px) {
  .sop-quick-sale-body {
    grid-template-columns: 210px minmax(0, 1fr) 330px;
  }
}

@media (max-width: 980px) {
  .sop-quick-sale-modal {
    width: min(100vw - 18px, 1000px);
  }

  .sop-quick-sale-body {
    display: block;
    max-height: calc(100vh - 210px);
    overflow-y: auto;
  }

  .sop-quick-sale-categories-panel,
  .sop-quick-sale-catalog,
  .sop-quick-sale-cart-panel {
    border-right: 0;
    border-bottom: 1px solid var(--sop-line);
  }

  .sop-quick-sale-products,
  .sop-quick-sale-cart,
  .sop-quick-sale-categories {
    overflow: visible;
    max-height: none;
  }
}

@media (max-width: 700px) {
  .sop-quick-sale-top-fields,
  .sop-quick-sale-products {
    grid-template-columns: 1fr;
  }

  .sop-quick-sale-modal > footer {
    flex-direction: column;
    align-items: stretch;
  }
}


/* 2026-08-06 — fluxo por etapa na venda rápida */
.sop-quick-sale-catalog-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sop-quick-sale-back {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #dfd2ee;
  border-radius: 10px;
  color: var(--sop-purple-700);
  background: #fff;
  font-size: 10px;
  font-weight: 800;
}

.sop-quick-sale-body.is-category-step {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.sop-quick-sale-body.is-category-step .sop-quick-sale-catalog {
  display: none;
}

.sop-quick-sale-body.is-category-step .sop-quick-sale-categories-panel {
  border-right: 1px solid var(--sop-line);
}

.sop-quick-sale-body.is-category-step .sop-quick-sale-categories {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sop-quick-sale-body.is-category-step .sop-quick-sale-category {
  min-height: 110px;
  padding: 16px;
  border-radius: 16px;
}

.sop-quick-sale-body.is-category-step .sop-quick-sale-category strong {
  font-size: 16px;
}

.sop-quick-sale-body.is-category-step .sop-quick-sale-category small {
  font-size: 12px;
}

.sop-quick-sale-body.is-category-step .sop-quick-sale-category > b {
  font-size: 26px;
}

.sop-quick-sale-body.is-product-step .sop-quick-sale-catalog {
  display: grid;
}

@media (max-width: 1100px) {
  .sop-quick-sale-body.is-category-step .sop-quick-sale-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .sop-quick-sale-body.is-category-step,
  .sop-quick-sale-body.is-product-step {
    display: block;
  }

  .sop-quick-sale-body.is-category-step .sop-quick-sale-catalog {
    display: none;
  }

  .sop-quick-sale-body.is-category-step .sop-quick-sale-categories {
    grid-template-columns: 1fr;
  }
}


/* 2026-08-06 — acabamento profissional da venda rápida */
.sop-quick-sale-modal {
  width: min(1260px, calc(100vw - 32px));
  max-height: calc(100vh - 30px);
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 32px 90px rgba(28, 16, 44, .22);
}

.sop-quick-sale-modal > header {
  padding: 22px 24px 18px;
  border-bottom: 1px solid #eee7f5;
  background: linear-gradient(180deg, #fff, #fcfaff);
}

.sop-quick-sale-modal > header h2 {
  margin-top: 2px;
  font-size: 35px;
  line-height: 1.02;
}

.sop-quick-sale-modal > header p {
  max-width: 760px;
  line-height: 1.55;
}

.sop-quick-sale-body {
  grid-template-columns: 250px minmax(0, 1fr) 340px;
  max-height: calc(100vh - 214px);
  background: #faf8fc;
}

.sop-quick-sale-categories-panel,
.sop-quick-sale-catalog,
.sop-quick-sale-cart-panel {
  padding: 20px;
}

.sop-quick-sale-categories-panel {
  border-right: 1px solid #eee7f5;
  background: #fbf9fd;
}

.sop-quick-sale-catalog {
  border-right: 1px solid #eee7f5;
  background: #ffffff;
}

.sop-quick-sale-cart-panel {
  background: #fcfbfd;
}

.sop-quick-sale-section-title span,
.sop-quick-sale-catalog-head span {
  color: #7c46dc;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.sop-quick-sale-section-title small,
.sop-quick-sale-catalog-head p,
.sop-quick-sale-category-help p {
  color: #7b7487;
  font-size: 12px;
}

.sop-quick-sale-categories {
  gap: 10px;
}

.sop-quick-sale-category {
  min-height: 72px;
  padding: 13px 14px;
  border: 1px solid #e6dcf2;
  border-radius: 16px;
  background: #ffffff;
  transition: .18s ease;
}

.sop-quick-sale-category:hover {
  border-color: #cab3f0;
  box-shadow: 0 12px 24px rgba(71, 34, 125, .08);
}

.sop-quick-sale-category.is-active {
  border-color: #7c46dc;
  background: linear-gradient(135deg, #8a56e5, #7032d0);
  box-shadow: 0 14px 28px rgba(89, 34, 168, .22);
}

.sop-quick-sale-category-help {
  border-radius: 16px;
  background: #f5eefc;
}

.sop-quick-sale-catalog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sop-quick-sale-catalog-head h3 {
  font-size: 30px;
  line-height: 1.04;
}

.sop-quick-sale-catalog-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

#operationQuickSaleCategoryCount {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #7c46dc;
  background: #f1e9ff;
  font-size: 11px;
  font-weight: 800;
}

.sop-quick-sale-back {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #e0d2f1;
  border-radius: 10px;
  color: #6c35cc;
  background: #fff;
}

.sop-quick-sale-search {
  margin: 0;
}

.sop-quick-sale-search input,
.sop-quick-sale-top-fields input,
.sop-quick-sale-top-fields select,
#operationQuickSaleNote {
  border-radius: 12px;
  border-color: #dfd7e8;
  background: #fff;
}

.sop-quick-sale-products {
  gap: 14px;
  align-content: start;
}

.sop-quick-sale-product-card {
  border: 1px solid #ebe3f3;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(40, 22, 66, .05);
}

.sop-quick-sale-product-card figure {
  height: 148px;
  background: #f5f1fa;
}

.sop-quick-sale-product-copy {
  min-height: 170px;
  padding: 14px;
}

.sop-quick-sale-product-copy > strong {
  font-size: 16px;
}

.sop-quick-sale-product-copy > p {
  font-size: 12px;
  -webkit-line-clamp: 3;
}

.sop-quick-sale-product-copy footer b {
  font-size: 18px;
}

.sop-quick-sale-product-copy footer button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 800;
}

.sop-quick-sale-cart-panel .sop-field span,
.sop-quick-sale-cart-title strong {
  color: #2e243a;
}

.sop-quick-sale-cart {
  gap: 12px;
}

.sop-quick-sale-cart-item {
  border: 1px solid #ebe4f2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(40, 22, 66, .04);
}

.sop-quick-sale-summary {
  border: 1px solid #eadcf9;
  border-radius: 18px;
  background: linear-gradient(135deg, #f9f4ff, #ffffff);
}

.sop-quick-sale-summary strong {
  color: #6e31cf;
  font-size: 28px;
}

.sop-quick-sale-modal > footer {
  gap: 12px;
  padding: 16px 20px;
  background: #fbf8fe;
}

.sop-quick-sale-modal > footer .sop-button.primary {
  min-width: 180px;
}

.sop-quick-sale-body.is-category-step {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.sop-quick-sale-body.is-category-step .sop-quick-sale-categories-panel {
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  border-right: 1px solid #eee7f5;
}

.sop-quick-sale-body.is-category-step .sop-quick-sale-categories {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-right: 2px;
}

.sop-quick-sale-body.is-category-step .sop-quick-sale-category {
  min-height: 120px;
  padding: 16px;
  align-items: flex-start;
}

.sop-quick-sale-body.is-category-step .sop-quick-sale-category strong {
  font-size: 17px;
}

.sop-quick-sale-body.is-category-step .sop-quick-sale-category small {
  margin-top: 6px;
  font-size: 12px;
}

.sop-quick-sale-body.is-category-step .sop-quick-sale-category > b {
  margin-left: auto;
  font-size: 22px;
}

.sop-quick-sale-body.is-category-step .sop-quick-sale-category-help {
  margin-top: 2px;
}

.sop-quick-sale-body.is-product-step .sop-quick-sale-category-help {
  display: none;
}

.sop-quick-sale-body.is-product-step .sop-quick-sale-categories-panel {
  grid-template-rows: auto minmax(0,1fr);
}

.sop-quick-sale-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  border-radius: 18px;
  background: linear-gradient(135deg, #faf7fd, #ffffff);
}

@media (max-width: 1180px) {
  .sop-quick-sale-body,
  .sop-quick-sale-body.is-product-step {
    grid-template-columns: 230px minmax(0, 1fr) 320px;
  }

  .sop-quick-sale-body.is-category-step {
    grid-template-columns: minmax(0,1fr) 320px;
  }

  .sop-quick-sale-body.is-category-step .sop-quick-sale-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .sop-quick-sale-modal {
    width: min(100vw - 14px, 1000px);
    max-height: calc(100vh - 14px);
  }

  .sop-quick-sale-modal > header h2 {
    font-size: 28px;
  }

  .sop-quick-sale-body,
  .sop-quick-sale-body.is-product-step,
  .sop-quick-sale-body.is-category-step {
    display: block;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
  }

  .sop-quick-sale-categories-panel,
  .sop-quick-sale-catalog,
  .sop-quick-sale-cart-panel {
    border-right: 0;
    border-bottom: 1px solid #eee7f5;
  }

  .sop-quick-sale-body.is-category-step .sop-quick-sale-catalog {
    display: none;
  }

  .sop-quick-sale-body.is-category-step .sop-quick-sale-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .sop-quick-sale-body.is-category-step .sop-quick-sale-categories,
  .sop-quick-sale-products,
  .sop-quick-sale-top-fields {
    grid-template-columns: 1fr;
  }

  .sop-quick-sale-catalog-head {
    flex-direction: column;
  }

  .sop-quick-sale-catalog-actions {
    justify-content: flex-start;
  }

  .sop-quick-sale-modal > footer {
    flex-direction: column;
    align-items: stretch;
  }
}


/* 2026-08-06 — limpeza final da venda rápida */
.sop-quick-sale-modal > header p,
.sop-quick-sale-section-title,
.sop-quick-sale-category-help,
#operationQuickSaleCategoryKicker,
.sop-quick-sale-catalog-head p {
  display: none !important;
}

.sop-quick-sale-categories-panel {
  padding-top: 20px;
}

.sop-quick-sale-categories {
  align-content: start;
}

.sop-quick-sale-catalog {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.sop-quick-sale-catalog-head {
  padding-bottom: 2px;
}

.sop-quick-sale-catalog-head h3 {
  margin: 0;
}

.sop-quick-sale-modal > footer {
  justify-content: flex-end;
}

.sop-quick-sale-modal > footer .sop-button.primary {
  min-width: 200px;
}

.sop-quick-sale-body.is-product-step {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.sop-quick-sale-body.is-product-step .sop-quick-sale-categories-panel {
  display: none !important;
}

.sop-quick-sale-body.is-product-step .sop-quick-sale-catalog {
  border-right: 1px solid #eee7f5;
}

@media (max-width: 1180px) {
  .sop-quick-sale-body.is-product-step {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

@media (max-width: 980px) {
  .sop-quick-sale-body.is-product-step .sop-quick-sale-categories-panel {
    display: none !important;
  }
}


/* 2026-08-06 — produto da venda rápida mais compacto */
.sop-quick-sale-products {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sop-quick-sale-product-card {
  max-width: 430px;
}

.sop-quick-sale-product-card figure {
  height: 104px;
}

.sop-quick-sale-product-copy {
  min-height: 112px;
  padding: 11px 12px 12px;
}

.sop-quick-sale-product-copy > span {
  font-size: 8px;
}

.sop-quick-sale-product-copy > strong {
  font-size: 14px;
}

.sop-quick-sale-product-copy > p {
  margin-top: 6px;
  font-size: 11px;
  -webkit-line-clamp: 2;
}

.sop-quick-sale-product-copy footer {
  margin-top: 10px;
}

.sop-quick-sale-product-copy footer b {
  font-size: 15px;
}

.sop-quick-sale-product-copy footer button {
  min-height: 32px;
  padding: 0 11px;
  font-size: 10px;
}

@media (max-width: 720px) {
  .sop-quick-sale-product-card {
    max-width: none;
  }
}


/* 2026-08-06 — cards de produto bem menores na venda rápida */
.sop-quick-sale-products {
  grid-template-columns: repeat(auto-fill, minmax(210px, 210px));
  justify-content: start;
  gap: 12px;
}

.sop-quick-sale-product-card {
  width: 210px;
  max-width: 210px;
  border-radius: 16px;
}

.sop-quick-sale-product-card figure {
  height: 74px;
}

.sop-quick-sale-product-copy {
  min-height: 96px;
  padding: 9px 10px 10px;
}

.sop-quick-sale-product-copy > span {
  font-size: 8px;
  margin-bottom: 3px;
}

.sop-quick-sale-product-copy > strong {
  font-size: 13px;
  line-height: 1.2;
}

.sop-quick-sale-product-copy > p {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.35;
  -webkit-line-clamp: 1;
}

.sop-quick-sale-product-copy footer {
  margin-top: 8px;
}

.sop-quick-sale-product-copy footer b {
  font-size: 13px;
}

.sop-quick-sale-product-copy footer button {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 9px;
  font-size: 9px;
}

@media (max-width: 980px) {
  .sop-quick-sale-products {
    grid-template-columns: repeat(auto-fill, minmax(180px, 180px));
  }

  .sop-quick-sale-product-card {
    width: 180px;
    max-width: 180px;
  }

  .sop-quick-sale-product-card figure {
    height: 66px;
  }
}

@media (max-width: 720px) {
  .sop-quick-sale-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sop-quick-sale-product-card {
    width: auto;
    max-width: none;
  }
}


/* 2026-08-06 — acabamento StarBy roxo estelar e branco */
.sop-quick-sale-modal {
  background:
    radial-gradient(circle at top left, rgba(142, 91, 255, .16), transparent 26%),
    radial-gradient(circle at top right, rgba(111, 59, 221, .12), transparent 22%),
    #ffffff;
  border: 1px solid rgba(123, 70, 220, .14);
  box-shadow: 0 36px 90px rgba(26, 13, 48, .24);
}

.sop-quick-sale-modal > header {
  background:
    linear-gradient(135deg, rgba(124, 70, 220, .07), rgba(255,255,255,.98) 45%),
    #ffffff;
}

.sop-quick-sale-modal > header span {
  color: #7c46dc;
  letter-spacing: .12em;
}

.sop-quick-sale-modal > header h2 {
  color: #231433;
}

.sop-close[data-close="quick-sale"] {
  background: linear-gradient(135deg, #f05e83, #d93c67);
  box-shadow: 0 10px 20px rgba(217, 60, 103, .24);
}

.sop-quick-sale-body {
  background: linear-gradient(180deg, #fbf9ff, #f8f5fc);
}

.sop-quick-sale-categories-panel {
  background: linear-gradient(180deg, rgba(124, 70, 220, .04), rgba(255,255,255,.92));
}

.sop-quick-sale-catalog {
  background: linear-gradient(180deg, #ffffff, #fcfbff);
}

.sop-quick-sale-cart-panel {
  background: linear-gradient(180deg, #fcfbff, #f7f2fd);
}

.sop-quick-sale-category {
  border-color: rgba(124, 70, 220, .14);
  background: linear-gradient(180deg, #ffffff, #faf7ff);
}

.sop-quick-sale-category strong {
  color: #28193b;
}

.sop-quick-sale-category small {
  color: #7c7391;
}

.sop-quick-sale-category > b {
  color: #8d67e6;
}

.sop-quick-sale-category:hover {
  border-color: rgba(124, 70, 220, .32);
  box-shadow: 0 16px 30px rgba(73, 40, 129, .10);
}

.sop-quick-sale-category.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #8f5cff, #6f33d3);
}

.sop-quick-sale-catalog-head h3,
.sop-quick-sale-cart-title strong,
.sop-quick-sale-cart-panel .sop-field span {
  color: #2a193d;
}

#operationQuickSaleCategoryCount {
  color: #6f33d3;
  background: #efe6ff;
}

.sop-quick-sale-back {
  color: #6f33d3;
  border-color: rgba(124, 70, 220, .16);
  background: #ffffff;
}

.sop-quick-sale-back:hover {
  background: #f7f2ff;
  border-color: rgba(124, 70, 220, .28);
}

.sop-quick-sale-search input,
.sop-quick-sale-top-fields input,
.sop-quick-sale-top-fields select,
#operationQuickSaleNote {
  border-color: #e2d7ef;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.sop-quick-sale-search input:focus,
.sop-quick-sale-top-fields input:focus,
.sop-quick-sale-top-fields select:focus,
#operationQuickSaleNote:focus {
  border-color: #8b57ec;
  box-shadow: 0 0 0 4px rgba(139, 87, 236, .12);
}

.sop-quick-sale-product-card {
  border-color: rgba(124, 70, 220, .12);
  background: linear-gradient(180deg, #ffffff, #fbf9ff);
  box-shadow: 0 12px 24px rgba(52, 27, 90, .07);
}

.sop-quick-sale-product-card:hover {
  border-color: rgba(124, 70, 220, .24);
  box-shadow: 0 16px 28px rgba(73, 40, 129, .12);
}

.sop-quick-sale-product-card figure {
  background: linear-gradient(135deg, #f6efff, #eee3ff);
}

.sop-quick-sale-product-copy > span {
  color: #8b63dd;
  font-weight: 900;
  letter-spacing: .08em;
}

.sop-quick-sale-product-copy > strong {
  color: #2a193d;
}

.sop-quick-sale-product-copy > p {
  color: #7b7487;
}

.sop-quick-sale-product-copy footer b {
  color: #6d31cf;
}

.sop-quick-sale-product-copy footer button,
.sop-quick-sale-modal > footer .sop-button.primary {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #8d59f0, #6f33d3);
  box-shadow: 0 12px 24px rgba(96, 45, 194, .24);
}

.sop-quick-sale-product-copy footer button:hover,
.sop-quick-sale-modal > footer .sop-button.primary:hover {
  filter: brightness(1.03);
}

.sop-quick-sale-cart-item {
  border-color: rgba(124, 70, 220, .10);
  background: linear-gradient(180deg, #ffffff, #fbf9ff);
}

.sop-quick-sale-cart-item strong {
  color: #27193a;
}

.sop-quick-sale-cart-item small {
  color: #837b93;
}

.sop-quick-sale-cart-item b {
  color: #6d31cf;
}

.sop-quick-sale-qty button {
  color: #6f33d3;
  border-color: rgba(124, 70, 220, .14);
  background: #fff;
}

.sop-quick-sale-qty button:hover {
  background: #f7f2ff;
  border-color: rgba(124, 70, 220, .28);
}

.sop-quick-sale-summary {
  border-color: rgba(124, 70, 220, .14);
  background: linear-gradient(135deg, #f7f0ff, #ffffff 65%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

.sop-quick-sale-summary span {
  color: #45315f;
}

.sop-quick-sale-summary strong {
  color: #6f33d3;
}

.sop-quick-sale-empty {
  color: #736c84;
  border: 1px dashed rgba(124, 70, 220, .18);
  background: linear-gradient(135deg, #fcfaff, #ffffff);
}

.sop-quick-sale-modal > footer {
  background: linear-gradient(180deg, #fdfbff, #f5effc);
}


/* 2026-08-06 — pagamento em duas etapas na venda rápida */
.sop-quick-sale-top-fields.single-field {
  grid-template-columns: 1fr;
}

.sop-quick-sale-payment-box {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding: 14px;
  border: 1px solid rgba(124, 70, 220, .14);
  border-radius: 18px;
  background: linear-gradient(135deg, #faf5ff, #ffffff 70%);
}

.sop-quick-sale-payment-head strong {
  display: block;
  color: #2a193d;
  font-size: 15px;
}

.sop-quick-sale-payment-head small {
  color: #7b7487;
  font-size: 11px;
}

.sop-quick-sale-cash-fields {
  display: grid;
  gap: 12px;
}

.sop-quick-sale-change {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(124, 70, 220, .12);
}

.sop-quick-sale-change span {
  color: #655c75;
  font-size: 12px;
  font-weight: 700;
}

.sop-quick-sale-change strong {
  color: #6f33d3;
  font-size: 22px;
}

.sop-quick-sale-change strong[data-valid="false"] {
  color: #d64d74;
}


/* 2026-08-06 — correções finais: checkout rolável e painel mais usável */
.sop-quick-sale-cart-panel {
  min-height: 0;
  max-height: calc(100vh - 214px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 14px;
  scrollbar-width: thin;
  scrollbar-color: #c8b0ea transparent;
}

.sop-quick-sale-cart-panel::-webkit-scrollbar,
.sop-quick-sale-cart::-webkit-scrollbar {
  width: 10px;
}

.sop-quick-sale-cart-panel::-webkit-scrollbar-thumb,
.sop-quick-sale-cart::-webkit-scrollbar-thumb {
  background: #cfb9ef;
  border-radius: 999px;
}

.sop-quick-sale-cart-panel::-webkit-scrollbar-track,
.sop-quick-sale-cart::-webkit-scrollbar-track {
  background: transparent;
}

.sop-quick-sale-cart {
  min-height: 110px;
  max-height: 250px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
}

.sop-quick-sale-payment-box {
  margin-bottom: 8px;
}

.sop-quick-sale-summary {
  position: sticky;
  bottom: 0;
  z-index: 1;
}

@media (max-width: 980px) {
  .sop-quick-sale-cart-panel {
    max-height: 42vh;
  }

  .sop-quick-sale-cart {
    max-height: 190px;
  }
}

/* 2026-08-06 — pagamentos por atalho F7, F8 e F9 */
.sop-payment-overlay {
  z-index: 2200;
  background: rgba(16, 7, 28, .68);
  backdrop-filter: blur(9px);
}

.sop-payment-modal {
  width: min(610px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(137, 85, 226, .22);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(143, 92, 255, .12), transparent 34%),
    #fff;
  box-shadow: 0 36px 100px rgba(20, 9, 36, .34);
}

.sop-payment-modal > header {
  padding: 22px 24px 18px;
  border-bottom: 1px solid #eee6f6;
  background: linear-gradient(135deg, #fff, #faf5ff);
}

.sop-payment-modal > header h2 {
  font-size: 25px;
}

.sop-payment-modal-body {
  max-height: calc(100vh - 225px);
  overflow-y: auto;
  padding: 20px;
  background: linear-gradient(180deg, #fdfbff, #f8f4fc);
}

.sop-payment-view[hidden],
.sop-payment-modal[hidden],
.sop-payment-overlay[hidden] {
  display: none !important;
}

.sop-payment-chooser {
  display: grid;
  gap: 12px;
}

.sop-payment-choice {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 15px 16px;
  border: 1px solid #e5d9f2;
  border-radius: 18px;
  color: #2c1b40;
  text-align: left;
  background: linear-gradient(180deg, #fff, #fbf8ff);
  box-shadow: 0 9px 24px rgba(52, 27, 90, .055);
  transition: .18s ease;
}

.sop-payment-choice:hover {
  border-color: #bc9ce9;
  box-shadow: 0 14px 30px rgba(72, 35, 132, .12);
}

.sop-payment-choice kbd,
.sop-payment-shortcuts kbd {
  display: inline-grid;
  place-items: center;
  border: 1px solid #d8c5f3;
  border-radius: 10px;
  color: #6f33d3;
  background: #f2eaff;
  box-shadow: inset 0 -2px 0 rgba(93, 45, 176, .08);
  font-family: inherit;
  font-weight: 900;
}

.sop-payment-choice kbd {
  width: 50px;
  height: 50px;
  font-size: 17px;
}

.sop-payment-choice span strong,
.sop-payment-choice span small {
  display: block;
}

.sop-payment-choice span strong {
  font-size: 15px;
}

.sop-payment-choice span small {
  margin-top: 5px;
  color: #7d748b;
  font-size: 11px;
  line-height: 1.45;
}

.sop-payment-choice > b {
  color: #8d67e6;
  font-size: 24px;
}

.sop-payment-choice.is-cash:hover { border-color: #95d9b9; }
.sop-payment-choice.is-pix:hover { border-color: #84d9cd; }
.sop-payment-choice.is-card:hover { border-color: #b89be8; }

.sop-payment-view:not(.sop-payment-chooser) {
  display: grid;
  gap: 14px;
}

.sop-payment-method-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sop-payment-method-head > div {
  text-align: right;
}

.sop-payment-method-head strong,
.sop-payment-method-head small {
  display: block;
}

.sop-payment-method-head strong {
  color: #2d1c42;
  font-size: 17px;
}

.sop-payment-method-head small {
  margin-top: 3px;
  color: #7442d4;
  font-size: 11px;
  font-weight: 900;
}

.sop-payment-back {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #ded0ef;
  border-radius: 11px;
  color: #6d35c9;
  background: #fff;
  font-size: 10px;
  font-weight: 800;
}

.sop-payment-back:hover {
  background: #f7f1ff;
}

.sop-payment-total,
.sop-payment-change {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e7ddf1;
  border-radius: 16px;
  background: #fff;
}

.sop-payment-total span,
.sop-payment-change span {
  color: #665b73;
  font-size: 12px;
  font-weight: 700;
}

.sop-payment-total strong {
  color: #6f33d3;
  font-size: 22px;
}

.sop-payment-change {
  border-color: #c6ead7;
  background: #f3fcf7;
}

.sop-payment-change strong {
  color: #16945f;
  font-size: 23px;
}

.sop-payment-change strong[data-valid="false"] {
  color: #d64d74;
}

.sop-pix-confirmation {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 17px;
  border: 1px solid #c9ebe4;
  border-radius: 18px;
  background: linear-gradient(135deg, #f2fffc, #fff);
}

.sop-pix-symbol {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 16px;
  color: #0cae9a;
  background: #dcfaf5;
  font-size: 25px;
}

.sop-pix-confirmation strong {
  color: #26534d;
  font-size: 14px;
}

.sop-pix-confirmation p {
  margin: 5px 0 0;
  color: #6c7c79;
  font-size: 11px;
  line-height: 1.5;
}

.sop-card-payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sop-card-payment-options button {
  display: grid;
  min-height: 105px;
  place-items: center;
  gap: 8px;
  border: 1px solid #e1d5ef;
  border-radius: 17px;
  color: #49315f;
  background: #fff;
  transition: .18s ease;
}

.sop-card-payment-options button span {
  color: #7c46dc;
  font-size: 25px;
}

.sop-card-payment-options button strong {
  font-size: 14px;
}

.sop-card-payment-options button:hover,
.sop-card-payment-options button.is-selected {
  border-color: #8b57ec;
  color: #6b31c8;
  background: #f4ecff;
  box-shadow: 0 10px 24px rgba(88, 42, 164, .12);
}

.sop-payment-confirm {
  min-height: 44px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #8d59f0, #6f33d3);
  box-shadow: 0 12px 24px rgba(96, 45, 194, .23);
  font-size: 12px;
  font-weight: 900;
}

.sop-payment-confirm:hover:not(:disabled) {
  filter: brightness(1.04);
}

.sop-payment-confirm:disabled {
  cursor: not-allowed;
  opacity: .48;
  box-shadow: none;
}

.sop-payment-modal-footer,
.sop-quick-sale-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sop-payment-modal-footer {
  padding: 13px 20px;
  border-top: 1px solid #eee6f6;
  background: #f8f3fd;
}

.sop-payment-shortcuts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #6d6178;
  font-size: 10px;
  font-weight: 700;
}

.sop-payment-shortcuts span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sop-payment-shortcuts kbd {
  min-width: 28px;
  height: 25px;
  padding: 0 6px;
  font-size: 9px;
}

.sop-payment-shortcuts i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #b9a6cc;
}

.sop-quick-sale-footer .sop-payment-shortcuts {
  padding-left: 2px;
}

@media (max-width: 700px) {
  .sop-payment-modal {
    width: calc(100vw - 14px);
    max-height: calc(100vh - 14px);
  }

  .sop-payment-modal-body {
    max-height: calc(100vh - 205px);
    padding: 15px;
  }

  .sop-payment-choice {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }

  .sop-payment-choice kbd {
    width: 44px;
    height: 44px;
  }

  .sop-card-payment-options {
    grid-template-columns: 1fr;
  }

  .sop-quick-sale-footer {
    align-items: stretch;
  }

  .sop-quick-sale-footer .sop-payment-shortcuts {
    display: none;
  }
}

.sop-quick-sale-modal > footer.sop-quick-sale-footer {
  justify-content: space-between;
}


/* 2026-08-06 — complementos na venda rápida */
.sop-quick-sale-product-copy em {
  display: inline-block;
  margin-top: 5px;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  color: #7b45dc;
}

.sop-quick-sale-cart-complement {
  display: block;
  margin-top: 3px;
  color: #7a708a !important;
  line-height: 1.35;
}

.sop-quick-sale-complement-modal {
  width: min(920px, calc(100vw - 40px));
}

.sop-quick-sale-complement-body {
  display: grid;
  gap: 18px;
  max-height: min(72vh, 760px);
  overflow-y: auto;
}

.sop-quick-sale-complement-product {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(124, 70, 220, .12);
  background: linear-gradient(135deg, #faf5ff, #ffffff 70%);
}

.sop-quick-sale-complement-product figure {
  margin: 0;
  width: 96px;
  height: 96px;
  border-radius: 18px;
  overflow: hidden;
  background: #f2eafd;
}

.sop-quick-sale-complement-product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sop-quick-sale-complement-product strong {
  display: block;
  font-size: 21px;
  color: #251739;
}

.sop-quick-sale-complement-product small {
  display: block;
  margin-top: 4px;
  color: #786f89;
}

.sop-quick-sale-complement-product b {
  display: inline-block;
  margin-top: 8px;
  color: #6f33d3;
}

.sop-quick-sale-complement-groups {
  display: grid;
  gap: 16px;
}

.sop-quick-sale-complement-group {
  border: 1px solid rgba(124, 70, 220, .12);
  border-radius: 18px;
  background: #fff;
  padding: 14px;
}

.sop-quick-sale-complement-group > header strong {
  display: block;
  color: #2a193d;
  font-size: 15px;
}

.sop-quick-sale-complement-group > header small,
.sop-quick-sale-complement-group > header p,
.sop-quick-sale-complement-group > footer {
  color: #786f89;
  font-size: 11px;
}

.sop-quick-sale-complement-group > header p {
  margin: 5px 0 0;
}

.sop-quick-sale-complement-options {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.sop-quick-sale-complement-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e7dcf7;
  background: #fbf9ff;
  cursor: pointer;
}

.sop-quick-sale-complement-option div {
  min-width: 0;
}

.sop-quick-sale-complement-option strong {
  display: block;
  color: #251739;
  font-size: 14px;
}

.sop-quick-sale-complement-option small {
  display: block;
  margin-top: 2px;
  color: #7d748c;
}

.sop-quick-sale-complement-option span {
  color: #6f33d3;
  font-weight: 800;
  white-space: nowrap;
}

.sop-quick-sale-complement-option.is-selected {
  border-color: #8b57ec;
  background: linear-gradient(135deg, #f4ecff, #ffffff);
  box-shadow: 0 0 0 2px rgba(139, 87, 236, .12);
}

.sop-quick-sale-complement-group > footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.sop-quick-sale-complement-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.sop-quick-sale-complement-footer .sop-quick-sale-summary {
  margin-right: auto;
  min-width: 200px;
}

@media (max-width: 720px) {
  .sop-quick-sale-complement-product {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .sop-quick-sale-complement-product figure {
    width: 72px;
    height: 72px;
  }

  .sop-quick-sale-complement-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .sop-quick-sale-complement-footer .sop-quick-sale-summary {
    margin-right: 0;
    width: 100%;
  }
}


/* 2026-08-06 — modalidades desativadas não aparecem na navegação */
.sop-nav-item[hidden] {
  display: none !important;
}

/* 2026-08-06 — atalhos de pagamento conforme configurações da loja */
.sop-payment-shortcuts span[hidden],
.sop-payment-shortcuts span[hidden] + i {
  display: none !important;
}

/* 2026-08-06 — controles de pedidos nas configurações da Operação */
#operationPauseDurationField.is-disabled { opacity: .55; }
#operationPauseDurationField.is-disabled select { cursor: not-allowed; background: #f6f3f8; }

/* 2026-08-06 — fila de deliveries prontos aguardando início da entrega */
#operationReadyDeliveryNav .sop-nav-label {
  max-width: 76px;
  white-space: normal;
  text-align: center;
  line-height: 1.08;
}


/* 2026-08-06 — Atalhos no topo e Histórico isolado no rodapé lateral */
.sop-top-shortcuts {
  cursor: pointer;
  font-family: inherit;
}
.sop-sidebar-footer .sop-nav-history {
  width: 100%;
  margin-top: 0;
}

/* 2026-08-06 — menu lateral organizado (somente visual/navegação) */
@media (min-width: 901px) {
  body[data-app="operation"] { --sop-sidebar: 236px; }

  body[data-app="operation"] .sop-sidebar-organized {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(190,150,255,.32) transparent;
  }

  body[data-app="operation"] .sop-sidebar-organized .sop-brand {
    height: 86px;
    flex: 0 0 86px;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 22px;
  }

  body[data-app="operation"] .sop-sidebar-organized .sop-brand img {
    width: 48px;
    height: 32px;
  }

  body[data-app="operation"] .sop-sidebar-organized .sop-brand span {
    display: inline;
    color: #fff;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.04em;
  }

  body[data-app="operation"] .sop-nav-organized {
    display: block;
    flex: 0 0 auto;
    min-height: auto;
    padding: 18px 14px 10px;
  }

  body[data-app="operation"] .sop-nav-group {
    display: grid;
    gap: 5px;
    padding: 15px 0 13px;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  body[data-app="operation"] .sop-nav-group:first-of-type {
    padding-top: 17px;
  }

  body[data-app="operation"] .sop-nav-group-title {
    display: block;
    padding: 0 8px 5px;
    color: #a99fba;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    line-height: 1.35;
    text-transform: uppercase;
  }

  body[data-app="operation"] .sop-nav-group-title small {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .03em;
  }

  body[data-app="operation"] .sop-sidebar-organized .sop-nav-item {
    min-height: 48px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 11px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 11px;
    color: #c5bbd3;
  }

  body[data-app="operation"] .sop-sidebar-organized .sop-nav-item:hover {
    color: #fff;
    background: rgba(255,255,255,.07);
  }

  body[data-app="operation"] .sop-sidebar-organized .sop-nav-item.is-active {
    color: #fff;
    border-color: rgba(211,175,255,.18);
    background: linear-gradient(145deg, rgba(150,91,231,.35), rgba(255,255,255,.075));
    box-shadow: inset 3px 0 0 #bb86ff, 0 8px 20px rgba(7,2,16,.13);
  }

  body[data-app="operation"] .sop-sidebar-organized .sop-nav-item.is-active::before {
    display: none;
  }

  body[data-app="operation"] .sop-sidebar-organized .sop-nav-icon,
  body[data-app="operation"] .sop-sidebar-organized .sop-nav-icon svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
  }

  body[data-app="operation"] .sop-sidebar-organized .sop-nav-label {
    display: inline;
    min-width: 0;
    flex: 1;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
  }

  body[data-app="operation"] .sop-sidebar-organized .sop-nav-count {
    position: static;
    min-width: 23px;
    height: 23px;
    margin-left: auto;
    border: 0;
    border-radius: 7px;
    background: #6f35ca;
    box-shadow: 0 5px 12px rgba(0,0,0,.16);
    font-size: 9px;
  }

  body[data-app="operation"] .sop-nav-sell {
    min-height: 54px !important;
    margin-bottom: 2px;
    border: 1px solid rgba(255,213,70,.42) !important;
    color: #1e142c !important;
    background: linear-gradient(135deg, #ffd646, #ffbd1f) !important;
    box-shadow: 0 10px 26px rgba(255,190,31,.15);
  }

  body[data-app="operation"] .sop-nav-sell:hover {
    color: #1e142c !important;
    background: linear-gradient(135deg, #ffe06b, #ffc936) !important;
  }

  body[data-app="operation"] .sop-nav-sell .sop-nav-icon,
  body[data-app="operation"] .sop-nav-sell .sop-nav-label {
    color: #1e142c !important;
  }

  body[data-app="operation"] .sop-nav-sell .sop-nav-label {
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
  }

  body[data-app="operation"] .sop-sidebar-footer-organized {
    display: grid;
    gap: 12px;
    margin-top: auto;
    padding: 10px 14px 18px;
    border-top: 0;
  }

  body[data-app="operation"] .sop-nav-footer-group {
    display: grid;
    gap: 5px;
    padding-top: 5px;
    border-top: 1px solid rgba(255,255,255,.12);
  }

  body[data-app="operation"] .sop-nav-footer-group .sop-nav-group-title {
    padding-top: 12px;
  }

  body[data-app="operation"] .sop-sidebar-organized .sop-nav-history {
    margin-top: 0;
  }

  body[data-app="operation"] .sop-sidebar-shortcuts {
    display: flex;
    min-height: 48px;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    padding: 9px 12px;
    border: 1px solid rgba(205,184,235,.34);
    border-radius: 11px;
    color: #eee8f7;
    background: rgba(255,255,255,.045);
    font-size: 12px;
    font-weight: 800;
    transition: .18s ease;
  }

  body[data-app="operation"] .sop-sidebar-shortcuts:hover {
    border-color: rgba(211,175,255,.58);
    color: #fff;
    background: rgba(255,255,255,.085);
  }
}

@media (max-width: 900px) {
  body[data-app="operation"] .sop-sidebar-organized .sop-nav-organized {
    display: block;
    padding: 10px;
  }

  body[data-app="operation"] .sop-sidebar-organized .sop-nav-group {
    display: grid;
    gap: 4px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }

  body[data-app="operation"] .sop-sidebar-organized .sop-nav-group-title {
    display: block;
    padding: 0 12px 5px;
    color: #a99fba;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  body[data-app="operation"] .sop-sidebar-organized .sop-nav-group-title small {
    font-size: 8px;
  }

  body[data-app="operation"] .sop-sidebar-organized .sop-nav-sell {
    margin-bottom: 3px;
    border-color: rgba(255,213,70,.42);
    color: #1e142c;
    background: linear-gradient(135deg, #ffd646, #ffbd1f);
  }

  body[data-app="operation"] .sop-sidebar-organized .sop-nav-sell .sop-nav-icon,
  body[data-app="operation"] .sop-sidebar-organized .sop-nav-sell .sop-nav-label {
    color: #1e142c;
  }

  body[data-app="operation"] .sop-sidebar-footer-organized {
    display: grid;
    gap: 9px;
    padding: 10px 10px 18px;
  }

  body[data-app="operation"] .sop-nav-footer-group {
    display: grid;
    gap: 4px;
    padding-top: 6px;
    border-top: 1px solid rgba(255,255,255,.1);
  }

  body[data-app="operation"] .sop-sidebar-shortcuts {
    display: flex;
    min-height: 50px;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    padding: 9px 13px;
    border: 1px solid rgba(205,184,235,.32);
    border-radius: 12px;
    color: #eee8f7;
    background: rgba(255,255,255,.045);
    font-size: 12px;
    font-weight: 800;
  }
}

/* 2026-08-06 — menu lateral operação compacto, sem elevador, com grupos reorganizados */
@media (min-width: 901px) {
  body[data-app="operation"] { --sop-sidebar: 228px; }

  body[data-app="operation"] .sop-sidebar-organized {
    overflow: hidden;
  }

  body[data-app="operation"] .sop-sidebar-organized .sop-brand {
    height: 72px;
    flex: 0 0 72px;
    justify-content: center;
    padding: 8px 18px 4px;
  }

  body[data-app="operation"] .sop-sidebar-organized .sop-brand img {
    width: 68px;
    height: 44px;
  }

  body[data-app="operation"] .sop-sidebar-organized .sop-brand span {
    display: none !important;
  }

  body[data-app="operation"] .sop-sidebar-organized .sop-nav-organized {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 12px 8px;
  }

  body[data-app="operation"] .sop-sidebar-organized .sop-nav-sell {
    min-height: 50px !important;
    margin-bottom: 8px;
  }

  body[data-app="operation"] .sop-sidebar-organized .sop-nav-group {
    gap: 4px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  body[data-app="operation"] .sop-sidebar-organized .sop-nav-group:first-of-type {
    padding-top: 6px;
  }

  body[data-app="operation"] .sop-sidebar-organized .sop-nav-group-title {
    padding: 0 8px 4px;
    font-size: 9px;
    letter-spacing: .1em;
  }

  body[data-app="operation"] .sop-sidebar-organized .sop-nav-item,
  body[data-app="operation"] .sop-sidebar-shortcuts {
    min-height: 42px;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 10px;
  }

  body[data-app="operation"] .sop-sidebar-organized .sop-nav-icon,
  body[data-app="operation"] .sop-sidebar-organized .sop-nav-icon svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
  }

  body[data-app="operation"] .sop-sidebar-organized .sop-nav-label,
  body[data-app="operation"] .sop-sidebar-shortcuts span:last-child {
    font-size: 11.5px;
    font-weight: 700;
  }

  body[data-app="operation"] .sop-sidebar-organized .sop-nav-count {
    min-width: 22px;
    height: 22px;
    border-radius: 7px;
    font-size: 9px;
  }

  body[data-app="operation"] .sop-sidebar-footer-organized {
    gap: 8px;
    padding: 8px 12px 14px;
  }

  body[data-app="operation"] .sop-nav-footer-group {
    gap: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,.12);
  }
}

@media (max-width: 900px) {
  body[data-app="operation"] .sop-sidebar-organized .sop-brand {
    justify-content: center;
  }

  body[data-app="operation"] .sop-sidebar-organized .sop-brand img {
    width: 62px;
    height: 40px;
  }

  body[data-app="operation"] .sop-sidebar-organized .sop-brand span {
    display: none !important;
  }
}

/* 2026-08-06 — ajuste fino solicitado: logo maior, histórico mais acima e topo organizado */
@media (min-width: 901px) {
  body[data-app="operation"] .sop-sidebar-organized .sop-brand {
    height: 78px;
    flex-basis: 78px;
    padding: 10px 18px 6px;
  }

  body[data-app="operation"] .sop-sidebar-organized .sop-brand img {
    width: 82px;
    height: 52px;
  }

  body[data-app="operation"] .sop-sidebar-footer-organized {
    margin-top: 0;
    gap: 8px;
    padding-top: 10px;
  }

  body[data-app="operation"] .sop-nav-footer-group {
    padding-top: 10px;
  }

  body[data-app="operation"] .sop-topbar {
    grid-template-columns: minmax(240px, 1fr) auto auto;
    gap: 16px;
    padding: 14px 22px;
  }

  body[data-app="operation"] .sop-store-status {
    justify-self: start;
    min-width: 220px;
  }

  body[data-app="operation"] .sop-top-actions.admin-header-actions {
    justify-self: end;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
  }

  body[data-app="operation"] .sop-admin-link,
  body[data-app="operation"] .sop-icon-button,
  body[data-app="operation"] .starby-admin-logout,
  body[data-app="operation"] .starby-logged-user-badge {
    min-height: 42px;
  }

  body[data-app="operation"] .starby-logged-user-badge {
    max-width: 220px;
    padding: 5px 10px;
  }

  body[data-app="operation"] .starby-admin-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid #eadbe1;
    border-radius: 12px;
    background: #fff;
  }
}

/* 2026-08-07 — refinamento final do menu/topo da operação */
@media (min-width: 901px) {
  body[data-app="operation"] .sop-sidebar-organized .sop-brand {
    height: 84px;
    flex-basis: 84px;
    padding: 10px 18px 8px;
  }

  body[data-app="operation"] .sop-sidebar-organized .sop-brand img {
    width: 98px;
    height: 62px;
  }

  body[data-app="operation"] .sop-nav-sell .sop-nav-label {
    font-size: 12.5px;
    letter-spacing: .02em;
  }

  /* somente uma linha entre Entrega e Histórico */
  body[data-app="operation"] .sop-sidebar-organized .sop-nav-group:last-of-type {
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  body[data-app="operation"] .sop-sidebar-footer-organized {
    gap: 0;
    padding-top: 10px;
  }

  body[data-app="operation"] .sop-nav-footer-group {
    border-top: 0;
    padding-top: 0;
    padding-bottom: 10px;
  }

  /* uma linha entre Histórico e Atalhos */
  body[data-app="operation"] .sop-sidebar-shortcuts {
    margin-top: 0;
    padding-top: 9px;
    border-top: 1px solid rgba(255,255,255,.12);
    border-left: 1px solid rgba(205,184,235,.34);
    border-right: 1px solid rgba(205,184,235,.34);
    border-bottom: 1px solid rgba(205,184,235,.34);
  }

  /* topo todo lado a lado */
  body[data-app="operation"] .sop-topbar {
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    padding: 14px 20px;
  }

  body[data-app="operation"] .sop-store-status {
    min-width: 185px;
    max-width: 210px;
    justify-self: start;
  }

  body[data-app="operation"] .sop-top-actions.admin-header-actions {
    flex-wrap: nowrap;
    justify-self: end;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
  }

  body[data-app="operation"] .sop-admin-link {
    min-height: 40px;
    padding: 0 12px;
    font-size: 11px;
  }

  body[data-app="operation"] .sop-admin-link svg {
    width: 16px;
    height: 16px;
  }

  body[data-app="operation"] .sop-icon-button {
    width: 40px;
    height: 40px;
  }

  body[data-app="operation"] .starby-logged-user-badge {
    max-width: 195px;
    min-height: 40px;
    gap: 6px;
    padding: 5px 8px;
  }

  body[data-app="operation"] .starby-logged-user-icon {
    width: 28px;
    height: 28px;
  }

  body[data-app="operation"] .starby-logged-user-badge strong {
    font-size: 9.5px;
  }

  body[data-app="operation"] .starby-logged-user-badge small {
    font-size: 8.5px;
  }

  body[data-app="operation"] .starby-admin-logout {
    min-height: 40px;
    padding: 0 12px;
    font-size: 11px;
    white-space: nowrap;
  }
}


/* 2026-08-07 — troca apenas dos ícones de Resumo e Configurações */
body[data-app="operation"] .sop-icon-button-summary { color: #7c4dff; background: #f1eaff; border-color: #d8c7ff; }
body[data-app="operation"] .sop-icon-button-summary:hover { color: #6d3ff0; background: #eadfff; border-color: #cbb3ff; }

body[data-app="operation"] .sop-general-overview-modal { width: min(760px, calc(100% - 24px)); }
body[data-app="operation"] .sop-general-overview-content { display: grid; gap: 16px; }
body[data-app="operation"] .sop-summary-launch-section { margin-top: 18px; }
body[data-app="operation"] .sop-overview-launch {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid #dcccf7;
  border-radius: 18px;
  background: linear-gradient(135deg, #fbf7ff, #f3ebff);
  color: var(--sop-ink);
  cursor: pointer;
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body[data-app="operation"] .sop-overview-launch:hover {
  box-shadow: 0 14px 34px rgba(103, 58, 183, .14);
  border-color: #cbb3ff;
}
body[data-app="operation"] .sop-overview-launch-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #6f37d8;
  background: linear-gradient(145deg, rgba(130, 76, 255, .18), rgba(111, 55, 216, .08));
}
body[data-app="operation"] .sop-overview-launch-icon svg { width: 22px; height: 22px; }
body[data-app="operation"] .sop-overview-launch-copy { flex: 1; min-width: 0; display: grid; gap: 4px; }
body[data-app="operation"] .sop-overview-launch-copy strong { font-size: 16px; color: #28163e; }
body[data-app="operation"] .sop-overview-launch-copy small { color: #756b84; line-height: 1.45; }
body[data-app="operation"] .sop-overview-launch > b { font-size: 24px; line-height: 1; color: #7c4dff; }
body[data-app="operation"] .sop-summary-grid-overview { margin-bottom: 8px; }
body[data-app="operation"] .sop-icon-button-settings { color: #8b5cf6; background: #f4edff; border-color: #dccdff; }
body[data-app="operation"] .sop-icon-button-settings:hover { color: #7c3aed; background: #ede1ff; border-color: #ceb5ff; }
body[data-app="operation"] .sop-icon-button-summary svg, body[data-app="operation"] .sop-icon-button-settings svg { width: 20px; height: 20px; }

/* ======================================================================
   STARBY 2026-08-16 — VENDA RÁPIDA V2 (layout igual à referência aprovada)
   Override final intencional para neutralizar regras legadas do modal.
   ====================================================================== */
body[data-app="operation"] {
  --sop-sidebar: 242px;
}

body[data-app="operation"] .sop-sidebar {
  width: var(--sop-sidebar) !important;
}
body[data-app="operation"] .sop-stage {
  margin-left: var(--sop-sidebar) !important;
}
body[data-app="operation"] .sop-brand {
  height: 96px !important;
  justify-content: flex-start !important;
  padding: 14px 22px !important;
}
body[data-app="operation"] .sop-brand img {
  width: 128px !important;
  height: 58px !important;
  object-fit: contain !important;
}
body[data-app="operation"] .sop-nav {
  gap: 7px !important;
  padding: 10px 12px 12px !important;
}
body[data-app="operation"] .sop-nav-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  padding: 7px 0 11px !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}
body[data-app="operation"] .sop-nav-group-title {
  display: block !important;
  padding: 0 10px 5px !important;
  color: rgba(235,226,250,.68) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
}
body[data-app="operation"] .sop-nav-item,
body[data-app="operation"] .sop-sidebar-shortcuts {
  width: 100% !important;
  min-height: 47px !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  padding: 0 13px !important;
  border-radius: 13px !important;
}
body[data-app="operation"] .sop-nav-item .sop-nav-icon,
body[data-app="operation"] .sop-sidebar-shortcuts .sop-nav-icon {
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px !important;
}
body[data-app="operation"] .sop-nav-item .sop-nav-icon svg,
body[data-app="operation"] .sop-sidebar-shortcuts .sop-nav-icon svg {
  width: 20px !important;
  height: 20px !important;
}
body[data-app="operation"] .sop-nav-item .sop-nav-label,
body[data-app="operation"] .sop-sidebar-shortcuts span:last-child {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  text-align: left !important;
  font-size: 13px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
body[data-app="operation"] .sop-nav-item .sop-nav-count {
  top: 50% !important;
  right: 10px !important;
  transform: translateY(-50%) !important;
}
body[data-app="operation"] .sop-nav-item.is-active::before {
  display: none !important;
}
body[data-app="operation"] .sop-nav-quick-sale {
  min-height: 54px !important;
  margin: 0 0 7px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  background: linear-gradient(135deg, #8d4bff, #6f32d6) !important;
  box-shadow: 0 12px 24px rgba(84,34,165,.28) !important;
}
body[data-app="operation"] .sop-sidebar-footer {
  padding: 10px 12px 16px !important;
}

/* Modal */
body[data-app="operation"] #operationQuickSaleModal.sop-overlay {
  padding: 14px !important;
  background: rgba(19,8,34,.50) !important;
  backdrop-filter: blur(8px) !important;
}
body[data-app="operation"] .sop-quick-sale-modal {
  width: min(1500px, calc(100vw - 28px)) !important;
  height: min(900px, calc(100vh - 28px)) !important;
  max-width: none !important;
  max-height: none !important;
  display: grid !important;
  grid-template-rows: auto minmax(0,1fr) auto !important;
  overflow: hidden !important;
  border: 1px solid rgba(114,65,180,.12) !important;
  border-radius: 25px !important;
  background: #fff !important;
  box-shadow: 0 35px 100px rgba(17,6,34,.32) !important;
}
body[data-app="operation"] .sop-quick-sale-modal > header {
  min-height: 82px !important;
  padding: 17px 24px !important;
  background: #fff !important;
  border-bottom: 1px solid #ece6f3 !important;
}
body[data-app="operation"] .sop-quick-sale-modal > header span {
  margin: 0 0 3px !important;
  color: #7b3fd1 !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: .11em !important;
}
body[data-app="operation"] .sop-quick-sale-modal > header h2 {
  margin: 0 !important;
  color: #241531 !important;
  font-size: 23px !important;
  font-weight: 850 !important;
  letter-spacing: -.035em !important;
}
body[data-app="operation"] .sop-quick-sale-modal > header p {
  margin: 4px 0 0 !important;
  color: #777083 !important;
  font-size: 12px !important;
}
body[data-app="operation"] .sop-close[data-close="quick-sale"] {
  width: 40px !important;
  height: 40px !important;
  color: #563775 !important;
  border: 1px solid #e5dced !important;
  border-radius: 13px !important;
  background: #fff !important;
  box-shadow: 0 7px 18px rgba(72,35,105,.08) !important;
  font-size: 24px !important;
  line-height: 1 !important;
}

/* Corpo: categorias + catálogo à esquerda, resumo fixo à direita */
body[data-app="operation"] .sop-quick-sale-body,
body[data-app="operation"] .sop-quick-sale-body.is-category-step,
body[data-app="operation"] .sop-quick-sale-body.is-product-step {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) 385px !important;
  grid-template-rows: auto minmax(0,1fr) !important;
  grid-template-areas:
    "categories cart"
    "catalog cart" !important;
  gap: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #fbfafd !important;
}
body[data-app="operation"] .sop-quick-sale-categories-panel,
body[data-app="operation"] .sop-quick-sale-body.is-category-step .sop-quick-sale-categories-panel,
body[data-app="operation"] .sop-quick-sale-body.is-product-step .sop-quick-sale-categories-panel {
  grid-area: categories !important;
  display: block !important;
  min-width: 0 !important;
  padding: 15px 20px 10px !important;
  border: 0 !important;
  border-bottom: 1px solid #eee9f3 !important;
  background: #fff !important;
}
body[data-app="operation"] .sop-quick-sale-categories,
body[data-app="operation"] .sop-quick-sale-body.is-category-step .sop-quick-sale-categories,
body[data-app="operation"] .sop-quick-sale-body.is-product-step .sop-quick-sale-categories {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 9px !important;
  max-height: none !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 1px 2px 5px !important;
  scrollbar-width: thin !important;
}
body[data-app="operation"] .sop-quick-sale-category,
body[data-app="operation"] .sop-quick-sale-body.is-category-step .sop-quick-sale-category,
body[data-app="operation"] .sop-quick-sale-body.is-product-step .sop-quick-sale-category {
  width: auto !important;
  min-width: 148px !important;
  min-height: 62px !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  padding: 9px 12px !important;
  border: 1px solid #e4ddec !important;
  border-radius: 13px !important;
  background: #fff !important;
  box-shadow: none !important;
}
body[data-app="operation"] .sop-quick-sale-category strong,
body[data-app="operation"] .sop-quick-sale-body.is-category-step .sop-quick-sale-category strong {
  color: #2a2034 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}
body[data-app="operation"] .sop-quick-sale-category small,
body[data-app="operation"] .sop-quick-sale-body.is-category-step .sop-quick-sale-category small {
  margin-top: 3px !important;
  color: #8a8293 !important;
  font-size: 10px !important;
}
body[data-app="operation"] .sop-quick-sale-category > b,
body[data-app="operation"] .sop-quick-sale-body.is-category-step .sop-quick-sale-category > b {
  margin-left: auto !important;
  color: #8f58e8 !important;
  font-size: 18px !important;
}
body[data-app="operation"] .sop-quick-sale-category.is-active {
  border-color: #8a4ce9 !important;
  background: #faf7ff !important;
  box-shadow: inset 0 0 0 1px rgba(138,76,233,.10) !important;
}
body[data-app="operation"] .sop-quick-sale-category.is-active strong {
  color: #6230ad !important;
}
body[data-app="operation"] .sop-quick-sale-category.is-active small,
body[data-app="operation"] .sop-quick-sale-category.is-active > b {
  color: #8a5acb !important;
}

body[data-app="operation"] .sop-quick-sale-catalog,
body[data-app="operation"] .sop-quick-sale-body.is-category-step .sop-quick-sale-catalog,
body[data-app="operation"] .sop-quick-sale-body.is-product-step .sop-quick-sale-catalog {
  grid-area: catalog !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(0,1fr) !important;
  align-content: stretch !important;
  min-width: 0 !important;
  min-height: 0 !important;
  gap: 11px !important;
  padding: 14px 20px 18px !important;
  overflow: hidden !important;
  background: #fbfafd !important;
}
body[data-app="operation"] .sop-quick-sale-catalog-head {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin: 0 !important;
}
body[data-app="operation"] .sop-quick-sale-catalog-head > div:first-child > span {
  display: block !important;
  color: #8247d5 !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
}
body[data-app="operation"] .sop-quick-sale-catalog-head h3 {
  margin: 2px 0 0 !important;
  color: #251831 !important;
  font-size: 20px !important;
  font-weight: 850 !important;
}
body[data-app="operation"] .sop-quick-sale-catalog-head small {
  display: block !important;
  margin-top: 3px !important;
  color: #817a88 !important;
  font-size: 10px !important;
}
body[data-app="operation"] .sop-quick-sale-catalog-actions {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
}
body[data-app="operation"] #operationQuickSaleCategoryCount {
  min-height: 29px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  color: #7138c1 !important;
  background: #f0e8fb !important;
  font-size: 10px !important;
}
body[data-app="operation"] .sop-quick-sale-back {
  display: none !important;
}
body[data-app="operation"] .sop-quick-sale-search {
  margin: 0 !important;
}
body[data-app="operation"] .sop-quick-sale-search span {
  display: none !important;
}
body[data-app="operation"] .sop-quick-sale-search input {
  width: 100% !important;
  height: 42px !important;
  padding: 0 14px !important;
  border: 1px solid #e2dbe9 !important;
  border-radius: 12px !important;
  background: #fff !important;
}

/* Produtos em cards verticais, como a referência */
body[data-app="operation"] .sop-quick-sale-products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(185px,1fr)) !important;
  gap: 11px !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 1px 5px 8px 1px !important;
}
body[data-app="operation"] .sop-quick-sale-product-card {
  display: flex !important;
  min-width: 0 !important;
  min-height: 265px !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 9px !important;
  overflow: hidden !important;
  border: 1px solid #e5dfeb !important;
  border-radius: 15px !important;
  background: #fff !important;
  box-shadow: 0 5px 15px rgba(47,27,68,.04) !important;
}
body[data-app="operation"] .sop-quick-sale-product-card:hover {
  border-color: #c8ace9 !important;
  box-shadow: 0 10px 22px rgba(62,31,95,.09) !important;
}
body[data-app="operation"] .sop-quick-sale-product-card figure {
  width: 100% !important;
  height: 108px !important;
  margin: 0 0 9px !important;
  overflow: hidden !important;
  border-radius: 11px !important;
  background: #f4eff9 !important;
}
body[data-app="operation"] .sop-quick-sale-product-card img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
body[data-app="operation"] .sop-quick-sale-product-copy {
  display: flex !important;
  min-height: 0 !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  gap: 4px !important;
}
body[data-app="operation"] .sop-quick-sale-product-copy > span {
  display: none !important;
}
body[data-app="operation"] .sop-quick-sale-product-copy > strong {
  color: #251b2d !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}
body[data-app="operation"] .sop-quick-sale-product-copy > p {
  display: -webkit-box !important;
  min-height: 31px !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: #7e7786 !important;
  font-size: 10px !important;
  line-height: 1.45 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}
body[data-app="operation"] .sop-quick-sale-product-copy em {
  display: none !important;
}
body[data-app="operation"] .sop-quick-sale-product-copy footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-top: auto !important;
  padding-top: 8px !important;
}
body[data-app="operation"] .sop-quick-sale-product-copy footer b {
  color: #6730bb !important;
  font-size: 17px !important;
  font-weight: 900 !important;
}
body[data-app="operation"] .sop-quick-sale-product-copy footer button {
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: #fff !important;
  background: linear-gradient(135deg,#8a49ef,#6b30d0) !important;
  box-shadow: 0 7px 14px rgba(100,48,192,.20) !important;
  font-size: 21px !important;
  font-weight: 700 !important;
}

/* Resumo do pedido: sempre visível à direita */
body[data-app="operation"] .sop-quick-sale-cart-panel {
  grid-area: cart !important;
  display: grid !important;
  grid-template-rows: auto auto auto minmax(90px,1fr) auto auto !important;
  align-content: stretch !important;
  gap: 10px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 16px 14px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-left: 1px solid #e9e2ef !important;
  background: #fff !important;
}
body[data-app="operation"] .sop-quick-sale-cart-title {
  grid-row: 1 !important;
  display: flex !important;
  min-height: 64px !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin: 0 -16px 2px !important;
  padding: 0 16px !important;
  border-radius: 0 !important;
  color: #fff !important;
  background: linear-gradient(135deg,#431184,#2f0b62) !important;
  box-shadow: none !important;
}
body[data-app="operation"] .sop-quick-sale-cart-title strong {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 850 !important;
}
body[data-app="operation"] .sop-quick-sale-cart-title strong::before {
  content: "▣" !important;
  color: #d9c4ff !important;
  font-size: 17px !important;
}
body[data-app="operation"] .sop-quick-sale-cart-title small {
  display: inline-flex !important;
  min-height: 27px !important;
  align-items: center !important;
  padding: 0 9px !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: rgba(255,255,255,.12) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
}
body[data-app="operation"] .sop-quick-sale-top-fields.single-field {
  grid-row: 2 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  margin-top: 2px !important;
}
body[data-app="operation"] .sop-quick-sale-cart-panel > .sop-field {
  grid-row: 3 !important;
}
body[data-app="operation"] .sop-quick-sale-cart-panel .sop-field {
  gap: 5px !important;
}
body[data-app="operation"] .sop-quick-sale-cart-panel .sop-field span {
  color: #44364f !important;
  font-size: 10px !important;
  font-weight: 800 !important;
}
body[data-app="operation"] .sop-quick-sale-cart-panel .sop-field input {
  height: 39px !important;
}
body[data-app="operation"] .sop-quick-sale-cart-panel .sop-field input,
body[data-app="operation"] #operationQuickSaleNote {
  padding: 9px 11px !important;
  border: 1px solid #e3dce9 !important;
  border-radius: 11px !important;
  background: #fff !important;
  font-size: 11px !important;
}
body[data-app="operation"] #operationQuickSaleNote {
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  resize: none !important;
}
body[data-app="operation"] .sop-quick-sale-cart {
  grid-row: 4 !important;
  display: grid !important;
  align-content: start !important;
  gap: 7px !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 1px 3px 4px 0 !important;
}
body[data-app="operation"] .sop-quick-sale-cart-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 9px !important;
  padding: 10px !important;
  border: 1px solid #e9e3ee !important;
  border-radius: 11px !important;
  background: #fff !important;
  box-shadow: none !important;
}
body[data-app="operation"] .sop-quick-sale-cart-item strong {
  color: #2f2436 !important;
  font-size: 11px !important;
}
body[data-app="operation"] .sop-quick-sale-cart-item small {
  color: #827989 !important;
  font-size: 9px !important;
}
body[data-app="operation"] .sop-quick-sale-cart-item b {
  margin-top: 4px !important;
  color: #4f3c5d !important;
  font-size: 11px !important;
}
body[data-app="operation"] .sop-quick-sale-qty {
  gap: 4px !important;
}
body[data-app="operation"] .sop-quick-sale-qty button {
  width: 27px !important;
  height: 27px !important;
  border: 1px solid #e1d9e8 !important;
  border-radius: 8px !important;
  color: #7138c5 !important;
  background: #fff !important;
  font-size: 15px !important;
}
body[data-app="operation"] .sop-quick-sale-qty span {
  min-width: 18px !important;
  text-align: center !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}
body[data-app="operation"] .sop-quick-sale-empty {
  min-height: 88px !important;
  padding: 14px !important;
  border: 1px dashed #dacdea !important;
  border-radius: 12px !important;
  color: #817688 !important;
  background: #fbf9fd !important;
  font-size: 10px !important;
  text-align: center !important;
}
body[data-app="operation"] .sop-quick-sale-summary {
  grid-row: 5 !important;
  position: static !important;
  display: flex !important;
  min-height: 68px !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 12px 14px !important;
  border: 1px solid #e5daf2 !important;
  border-radius: 13px !important;
  background: linear-gradient(135deg,#f8f3ff,#fff) !important;
}
body[data-app="operation"] .sop-quick-sale-summary span {
  color: #3e3148 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}
body[data-app="operation"] .sop-quick-sale-summary strong {
  color: #7134d4 !important;
  font-size: 28px !important;
  font-weight: 900 !important;
}
body[data-app="operation"] .sop-quick-sale-summary-hint {
  grid-row: 6 !important;
  margin: -3px 0 0 !important;
  color: #817887 !important;
  font-size: 9px !important;
}

/* Rodapé / checkout */
body[data-app="operation"] .sop-quick-sale-modal > footer,
body[data-app="operation"] .sop-quick-sale-footer {
  display: flex !important;
  min-height: 76px !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 12px 20px !important;
  border-top: 1px solid #ebe4f0 !important;
  background: #fff !important;
}
body[data-app="operation"] .sop-payment-shortcuts {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
body[data-app="operation"] .sop-payment-shortcuts span {
  min-height: 34px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  color: #716979 !important;
  background: #f6f2f9 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
}
body[data-app="operation"] .sop-payment-shortcuts i {
  display: none !important;
}
body[data-app="operation"] #operationQuickSaleSubmit {
  width: 265px !important;
  min-width: 265px !important;
  min-height: 50px !important;
  padding: 0 22px !important;
  border: 0 !important;
  border-radius: 13px !important;
  color: #fff !important;
  background: linear-gradient(135deg,#8a47f2,#6d31d5) !important;
  box-shadow: 0 12px 22px rgba(102,45,205,.22) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

@media (max-width: 1180px) {
  body[data-app="operation"] { --sop-sidebar: 210px; }
  body[data-app="operation"] .sop-quick-sale-body,
  body[data-app="operation"] .sop-quick-sale-body.is-category-step,
  body[data-app="operation"] .sop-quick-sale-body.is-product-step {
    grid-template-columns: minmax(0,1fr) 345px !important;
  }
  body[data-app="operation"] .sop-quick-sale-products {
    grid-template-columns: repeat(auto-fill,minmax(165px,1fr)) !important;
  }
}

@media (max-width: 920px) {
  body[data-app="operation"] { --sop-sidebar: 88px; }
  body[data-app="operation"] .sop-brand { justify-content:center !important; padding:12px 8px !important; }
  body[data-app="operation"] .sop-brand img { width:72px !important; height:auto !important; }
  body[data-app="operation"] .sop-nav-item { justify-content:center !important; padding:0 8px !important; }
  body[data-app="operation"] .sop-nav-group-title,
  body[data-app="operation"] .sop-nav-item .sop-nav-label,
  body[data-app="operation"] .sop-sidebar-shortcuts span:last-child { display:none !important; }
  body[data-app="operation"] .sop-nav-item .sop-nav-count { top:5px !important; right:5px !important; transform:none !important; }
  body[data-app="operation"] .sop-quick-sale-body,
  body[data-app="operation"] .sop-quick-sale-body.is-category-step,
  body[data-app="operation"] .sop-quick-sale-body.is-product-step {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto minmax(350px,1fr) auto !important;
    grid-template-areas:"categories" "catalog" "cart" !important;
    overflow-y:auto !important;
  }
  body[data-app="operation"] .sop-quick-sale-cart-panel {
    max-height:none !important;
    border-left:0 !important;
    border-top:1px solid #e9e2ef !important;
  }
}


/* 2026-08-29 — progresso do entregador com contraste reforçado */
.sop-compact-driver-state{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  margin-top:5px;
  padding:4px 9px;
  border:1px solid #c084fc;
  border-radius:999px;
  background:#f3e8ff;
  color:#6d28d9;
  font-size:11px;
  font-weight:900;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.sop-driver-progress-card{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 14px;
  padding:12px 14px;
  border:1px solid #c084fc;
  border-radius:14px;
  background:#f3e8ff;
  color:#5b21b6;
  box-shadow:0 4px 14px rgba(91,33,182,.08);
}
.sop-driver-progress-card svg{
  width:20px;
  height:20px;
  flex:0 0 auto;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
}
.sop-driver-progress-card strong{
  color:#5b21b6;
  font-size:13px;
  font-weight:900;
}
.sop-driver-progress-card span{
  margin-left:auto;
  color:#5b21b6;
  font-size:12px;
  font-weight:900;
}

/* Solicitação pendente visível na lista compacta. */
.sop-compact-cancel-alert{display:block;color:var(--sop-red,#ef4444);font-size:10px;font-weight:800;line-height:1.25;white-space:normal;}
.sop-detail-body>.sop-cancel-request{margin:0 0 12px;}
