/* Panofo Estoque de Pisos — telas tablet 1280×800 */
@import url('../panofo/colors_and_type.css');

html, body, #root { height: 100%; margin: 0; }
* { box-sizing: border-box; }
button { font-family: inherit; }

/* ===== Viewport / stage (tablet fixo, letterbox) ===== */
.viewport {
  height: 100vh; width: 100vw; overflow: auto;
  background: var(--gray-950);
  display: flex; align-items: safe center; justify-content: safe center;
}
.stage {
  width: 1280px; height: 800px;
  background: var(--bg-page);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  transform-origin: center center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  border-radius: 18px;
}

/* ===== Header (navy, fixo) ===== */
.hdr {
  height: 64px; background: var(--navy-900); color: var(--white);
  display: flex; align-items: center; gap: 20px;
  padding: 0 20px; flex-shrink: 0;
}
.hdr .brand { display: flex; align-items: center; gap: 10px; min-width: 168px; }
.hdr .brand .brand-logo { width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0; object-fit: cover; }
.hdr .brand .name {
  font-family: var(--font-heading); font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
}
.hdr .brand .sub {
  font-size: 9.5px; letter-spacing: 0.09em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); font-weight: 600; margin-top: 1px;
}

.gal-tabs { display: flex; gap: 8px; }
.gal-tab {
  position: relative;
  min-width: 104px; height: 48px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,0.18);
  background: transparent; color: rgba(255,255,255,0.78);
  font-family: var(--font-heading); font-weight: 700; font-size: 21px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background var(--dur-fast) var(--ease-out);
}
.gal-tab:hover { background: rgba(255,255,255,0.08); }
.gal-tab.active { background: var(--white); color: var(--navy-900); border-color: var(--white); }
.gal-tab:disabled { opacity: 0.4; cursor: not-allowed; }
.gal-tab .badge-rasc {
  position: absolute; top: -8px; right: -8px;
  min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: 999px; background: var(--orange-600); color: var(--white);
  font-family: var(--font-body); font-size: 12.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
  border: 2px solid var(--navy-900);
}
.gal-tab.active .badge-rasc { border-color: var(--white); }

.hdr .conn {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85);
}
.hdr .conn .dot { width: 10px; height: 10px; border-radius: 999px; background: var(--success-500); }
.hdr .conn.off .dot { background: var(--gray-500); }
.hdr .conn.off { color: rgba(255,255,255,0.6); }

.sessao-badge {
  height: 40px; padding: 0 12px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.9);
  font-size: 13px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
}
.sessao-badge:hover { background: rgba(255,255,255,0.16); }
.sessao-badge.off { border-style: dashed; background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.7); }
.sessao-badge.off:hover { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.95); }

/* ===== Banner offline ===== */
.offline-banner {
  height: 42px; flex-shrink: 0;
  background: var(--warning-100); color: var(--warning-700);
  border-bottom: 1px solid var(--warning-500);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 14.5px; font-weight: 600;
}

/* ===== Sub-bar: sub-guias + legenda ===== */
.subbar {
  height: 56px; flex-shrink: 0;
  background: var(--white); border-bottom: 1px solid var(--border-default);
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px;
}
.subtabs { display: flex; background: var(--gray-100); border-radius: 10px; padding: 3px; gap: 2px; }
.subtab {
  height: 42px; padding: 0 22px;
  border: none; border-radius: 8px; background: transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; color: var(--gray-600);
  cursor: pointer; display: flex; align-items: center; gap: 8px;
}
.subtab.active { background: var(--navy-900); color: var(--white); }
.subtab .n {
  background: var(--orange-600); color: var(--white);
  min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px;
  font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.subtab:not(.active) .n { background: var(--gray-300); color: var(--gray-700); }
.subtab.active .n { background: var(--orange-600); }

.subbar .gal-name {
  font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: var(--navy-900);
  white-space: nowrap;
}
.legend { margin-left: auto; display: flex; gap: 16px; align-items: center; }
.legend .lg { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--gray-600); font-weight: 500; }
.legend .sw { width: 18px; height: 18px; border-radius: 5px; flex-shrink: 0; }
.legend .sw.livre { background: var(--white); border: 1.5px dashed var(--gray-300); }
.legend .sw.sug { background: var(--danger-500); }
.legend .sw.pon {
  background: repeating-linear-gradient(135deg, var(--orange-600) 0 5px, var(--orange-400) 5px 10px);
}

/* ===== Banner modo posicionar ===== */
.place-banner {
  height: 58px; flex-shrink: 0;
  background: var(--orange-600); color: var(--white);
  display: flex; align-items: center; gap: 14px;
  padding: 0 24px;
}
.place-banner .msg { font-size: 16.5px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.place-banner .pal-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.16); border-radius: 999px;
  padding: 5px 12px 5px 6px; font-size: 13.5px; font-weight: 600;
}
.place-banner .pal-chip .sw { width: 22px; height: 22px; border-radius: 999px; border: 2px solid var(--white); }
.btn-cancel-place {
  margin-left: auto;
  height: 44px; padding: 0 20px;
  border-radius: 10px; border: 2px solid rgba(255,255,255,0.8);
  background: transparent; color: var(--white);
  font-size: 15px; font-weight: 700; cursor: pointer;
}
.btn-cancel-place:hover { background: rgba(255,255,255,0.12); }

/* ===== Mapa ===== */
.map-wrap { flex: 1; min-height: 0; padding: 12px 24px 10px; display: flex; flex-direction: column; overflow-y: auto; }
.map-grid { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.map-row { display: grid; grid-template-columns: 24px repeat(12, 1fr); gap: 6px; flex: 1; min-height: 0; }
.row-label {
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--gray-500);
}
.corridor { height: 18px; flex-shrink: 0; }

.zona-divider {
  flex-shrink: 0;
  display: flex; align-items: center;
  padding: 3px 10px;
  font-size: 10.5px; font-weight: 600; color: var(--gray-500);
  border-radius: 6px;
}
.zona-divider.corridor { height: 18px; padding: 0 10px; color: var(--gray-400); font-size: 9px; }
.zona-divider.zona-fixed { background: var(--gray-100); color: var(--gray-600); }
.zona-divider.zona-door { background: var(--orange-50); color: var(--orange-700); border: 1px dashed var(--orange-300); }
.zona-divider.zona-stairs { background: #F1E9FB; color: #6B3FA0; border: 1px dashed #C9AEEA; }
.zona-divider.zona-note { background: transparent; color: var(--gray-400); font-style: italic; font-weight: 500; }

.map-row.pontas-row {
  background: var(--orange-50);
  border: 1.5px dashed var(--orange-300);
  border-radius: 10px;
  padding: 5px;
  margin: 0 -5px;
}
.pontas-row .row-label { color: var(--orange-700); font-size: 8.5px; letter-spacing: 0.06em; writing-mode: vertical-rl; transform: rotate(180deg); }

/* ===== Célula ===== */
.cell {
  position: relative;
  border-radius: 8px;
  padding: 5px 7px 6px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 0; overflow: hidden;
  user-select: none; -webkit-user-select: none;
  touch-action: none;
}
.cell.vazia {
  background: var(--white);
  border: 1.5px dashed var(--gray-300);
}
.cell.ocupada { cursor: pointer; box-shadow: var(--shadow-xs); border: 1px solid rgba(4,13,62,0.18); }
.cell.ocupada:hover { box-shadow: var(--shadow-md); }
.cell .top-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; }
.cell .code { font-size: 9px; font-weight: 600; opacity: 0.62; letter-spacing: 0.03em; font-variant-numeric: tabular-nums; }
.cell .nome {
  font-size: 11.5px; font-weight: 700; line-height: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cell .dots { display: flex; gap: 4px; margin-top: 2px; }
.cell .dots .d { width: 9px; height: 9px; border-radius: 999px; background: currentColor; }
.cell .dots .d.off { background: transparent; border: 1.6px solid currentColor; opacity: 0.55; }

/* Estados especiais */
.cell.ponta-sug {
  background: var(--danger-500) !important; color: var(--white) !important;
  border-color: var(--danger-700);
}
@media (prefers-reduced-motion: no-preference) {
  .cell.ponta-sug { animation: ponta-pulse 1.5s var(--ease-in-out) infinite; }
}
@keyframes ponta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.6); }
  50%      { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}
.cell.ponta-conf {
  background: repeating-linear-gradient(135deg, var(--orange-600) 0 7px, var(--orange-500) 7px 14px) !important;
  color: var(--white) !important;
  border-color: var(--orange-800);
}
.badge-cell {
  font-size: 9px; font-weight: 800; letter-spacing: 0.03em;
  background: var(--white); border-radius: 999px; padding: 1.5px 6px;
  flex-shrink: 0; margin-left: auto;
}
.badge-cell.sug { color: var(--danger-700); }
.badge-cell.conf { color: var(--orange-800); }

/* Drag */
.cell.can-drop { border: 2px dashed var(--navy-400); background: var(--navy-50); }
.cell.can-drop.vazia { border-style: dashed; }
.cell.drop-over { border: 3px solid var(--orange-600); background: var(--orange-50); transform: scale(1.05); z-index: 2; box-shadow: var(--shadow-lg); }
.cell.origem { border: 2px dashed var(--orange-500); opacity: 0.85; }
.cell.just-moved { animation: cell-pop 380ms var(--ease-out); }
@keyframes cell-pop {
  0% { transform: scale(0.78); box-shadow: 0 0 0 6px rgba(242,113,21,0.45); }
  60% { transform: scale(1.07); }
  100% { transform: scale(1); box-shadow: none; }
}

/* Modo posicionar */
.cell.place-ok { border: 2.5px dashed var(--navy-500); background: var(--navy-50); cursor: pointer; }
@media (prefers-reduced-motion: no-preference) {
  .cell.place-ok { animation: place-pulse 1.6s var(--ease-in-out) infinite; }
}
@keyframes place-pulse {
  0%, 100% { border-color: var(--navy-500); }
  50% { border-color: var(--navy-200); }
}
.cell.place-ok:hover { background: var(--orange-50); border-color: var(--orange-600); border-style: solid; }

/* Fantasma do drag */
.drag-ghost {
  position: absolute; z-index: 80;
  width: 118px; height: 84px;
  border-radius: 10px; padding: 8px 10px;
  pointer-events: none;
  box-shadow: var(--shadow-xl), 0 0 0 3px rgba(255,255,255,0.85);
  transform: translate(-50%, -85%) rotate(-2.5deg) scale(1.04);
  display: flex; flex-direction: column; justify-content: space-between;
}
.drag-ghost .nome { font-size: 12px; font-weight: 700; }

/* ===== Barra de rascunho (alvo de soltura) ===== */
.rasc-bar {
  height: 84px; flex-shrink: 0;
  margin: 0 24px 14px;
  background: var(--gray-200);
  border: 2px dashed var(--gray-400);
  border-radius: 14px;
  display: flex; align-items: center; gap: 14px;
  padding: 0 20px;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast);
}
.rasc-bar:hover { background: var(--gray-100); }
.rasc-bar.drop-over { background: var(--orange-100); border-color: var(--orange-600); border-style: solid; }
.rasc-bar .arrow {
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--gray-700); color: var(--white);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rasc-bar.drop-over .arrow { background: var(--orange-600); }
.rasc-bar .lbl { font-size: 16.5px; font-weight: 700; color: var(--gray-800); }
.rasc-bar .lbl .sub { display: block; font-size: 12px; font-weight: 500; color: var(--gray-600); margin-top: 1px; }
.rasc-bar .thumbs { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.rasc-bar .thumb {
  width: 36px; height: 36px; border-radius: 8px;
  border: 2px solid var(--white); box-shadow: var(--shadow-sm);
}
.rasc-bar .count {
  min-width: 36px; height: 36px; padding: 0 9px; border-radius: 999px;
  background: var(--navy-900); color: var(--white);
  font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}

/* ===== Toast de Undo ===== */
.undo-toast {
  position: absolute; left: 50%; bottom: 112px; transform: translateX(-50%);
  z-index: 90;
  background: var(--navy-900); color: var(--white);
  border-radius: 14px; box-shadow: var(--shadow-xl);
  display: flex; align-items: center; gap: 18px;
  padding: 14px 10px 14px 22px;
  min-width: 460px; max-width: 720px;
  overflow: hidden;
  animation: toast-up 240ms var(--ease-out);
}
@keyframes toast-up { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
.undo-toast .msg { font-size: 15.5px; font-weight: 600; flex: 1; }
.undo-toast .btn-undo {
  height: 48px; padding: 0 22px;
  border-radius: 10px; border: none;
  background: var(--orange-600); color: var(--white);
  font-size: 15.5px; font-weight: 800; letter-spacing: 0.04em;
  cursor: pointer; flex-shrink: 0;
}
.undo-toast .btn-undo:hover { background: var(--orange-700); }
.undo-toast .btn-fechar {
  height: 48px; width: 48px; border-radius: 10px; border: none;
  background: transparent; color: rgba(255,255,255,0.6);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.undo-toast .timebar {
  position: absolute; left: 0; bottom: 0; height: 4px;
  background: var(--orange-500);
  animation-name: time-drain; animation-timing-function: linear; animation-fill-mode: forwards;
}
@keyframes time-drain { from { width: 100%; } to { width: 0%; } }
.undo-toast.info { background: var(--gray-800); }

/* ===== Sheet: Card da Pilha ===== */
.scrim {
  position: absolute; inset: 0; z-index: 60;
  background: rgba(4, 13, 62, 0.40);
  display: flex; justify-content: flex-end;
  animation: fade-in 160ms var(--ease-out);
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.pilha-sheet {
  width: 440px; height: 100%;
  background: var(--gray-50);
  box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column;
  animation: sheet-in 240ms var(--ease-out);
}
@keyframes sheet-in { from { transform: translateX(60px); opacity: 0; } to { transform: none; opacity: 1; } }
.pilha-head {
  background: var(--white); border-bottom: 1px solid var(--border-default);
  padding: 18px 22px;
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.pilha-head .pos {
  font-family: var(--font-heading); font-weight: 800; font-size: 24px; color: var(--navy-900);
  letter-spacing: -0.01em;
}
.pilha-head .meta { font-size: 12.5px; color: var(--gray-600); margin-top: 1px; }
.btn-fechar-sheet {
  margin-left: auto;
  height: 48px; padding: 0 18px;
  border-radius: 10px; border: 1.5px solid var(--gray-300);
  background: var(--white); color: var(--navy-900);
  font-size: 15px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
}
.btn-fechar-sheet:hover { background: var(--gray-100); }
.pilha-body { flex: 1; overflow-y: auto; padding: 16px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.nivel-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.nivel-tag .topo-flag { background: var(--navy-900); color: var(--white); border-radius: 999px; padding: 2px 9px; font-size: 10px; letter-spacing: 0.05em; }

.nivel-card {
  background: var(--white); border: 1px solid var(--border-default);
  border-radius: 14px; padding: 14px;
  box-shadow: var(--shadow-sm);
}
.nivel-card.travado { background: var(--gray-100); box-shadow: none; }
.nivel-card .linha1 { display: flex; gap: 12px; }
.foto {
  width: 64px; height: 64px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  border: 1px solid rgba(4,13,62,0.15);
}
.nivel-card .info { min-width: 0; flex: 1; }
.nivel-card .prod-nome { font-family: var(--font-heading); font-weight: 700; font-size: 16.5px; color: var(--navy-900); line-height: 21px; }
.nivel-card .prod-marca { font-size: 12.5px; color: var(--gray-600); }
.specs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.spec {
  background: var(--gray-100); border-radius: 6px;
  font-size: 12px; font-weight: 600; color: var(--gray-700);
  padding: 3px 8px; font-variant-numeric: tabular-nums;
}
.nivel-card.travado .spec { background: var(--gray-200); }
.qtd { font-size: 15px; font-weight: 700; color: var(--navy-900); margin-top: 8px; font-variant-numeric: tabular-nums; }
.nivel-acoes { display: flex; gap: 10px; margin-top: 12px; }
.btn-acao {
  flex: 1; height: 54px;
  border-radius: 10px; border: none;
  font-size: 15.5px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast);
}
.btn-acao:active { transform: scale(0.98); }
.btn-acao.mover { background: var(--navy-900); color: var(--white); }
.btn-acao.mover:hover { background: var(--navy-800); }
.btn-acao.saida { background: var(--orange-600); color: var(--white); }
.btn-acao.saida:hover { background: var(--orange-700); }
.btn-acao:disabled { background: var(--gray-200); color: var(--gray-500); cursor: not-allowed; }
.lifo-hint {
  display: flex; align-items: center; gap: 7px;
  margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--gray-600);
}
.ponta-alert {
  margin-top: 12px; border-radius: 10px;
  background: var(--danger-100); border: 1px solid var(--danger-500);
  padding: 12px 14px;
}
.ponta-alert .t { font-size: 14px; font-weight: 700; color: var(--danger-700); display: flex; gap: 8px; align-items: center; }
.ponta-alert .d { font-size: 13px; color: var(--gray-800); margin-top: 4px; line-height: 19px; }
.btn-conf-ponta {
  margin-top: 10px; width: 100%; height: 52px;
  border-radius: 10px; border: none;
  background: var(--danger-700); color: var(--white);
  font-size: 15px; font-weight: 700; cursor: pointer;
}
.btn-conf-ponta:hover { filter: brightness(1.1); }
.btn-conf-ponta:disabled { background: var(--gray-200); color: var(--gray-500); cursor: not-allowed; }
.so-gestor { font-size: 12px; color: var(--gray-600); margin-top: 6px; text-align: center; }
.ponta-conf-tag {
  margin-top: 12px; border-radius: 10px;
  background: var(--orange-100); border: 1px solid var(--orange-500);
  padding: 10px 14px;
  font-size: 13.5px; font-weight: 700; color: var(--orange-800);
  display: flex; align-items: center; gap: 8px;
}
.btn-desfazer-ponta {
  margin-left: auto; height: 32px; padding: 0 12px;
  border-radius: 8px; border: 1px solid var(--orange-500);
  background: var(--white); color: var(--orange-800);
  font-size: 12.5px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
}
.btn-desfazer-ponta:hover { background: var(--orange-100); }
.btn-desfazer-ponta:disabled { background: var(--gray-200); color: var(--gray-500); border-color: var(--gray-300); cursor: not-allowed; }
.nivel-livre {
  border: 2px dashed var(--gray-300); border-radius: 14px;
  padding: 16px; text-align: center;
  font-size: 14px; font-weight: 600; color: var(--gray-500);
  background: transparent;
}

/* ===== Seletor "Para onde?" ===== */
.scrim.center { justify-content: center; align-items: center; }
.mover-modal {
  width: 760px; background: var(--white);
  border-radius: 18px; box-shadow: var(--shadow-xl);
  padding: 28px 30px 24px;
  animation: sheet-in 200ms var(--ease-out);
}
.mover-modal h2 {
  margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: 30px; color: var(--navy-900);
}
.mover-modal .sub { margin: 6px 0 20px; font-size: 14.5px; color: var(--gray-600); display: flex; align-items: center; gap: 8px; }
.mover-modal .sub .sw { width: 18px; height: 18px; border-radius: 5px; }
.alvos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.alvo {
  height: 150px; border-radius: 14px;
  border: 2px solid var(--gray-200); background: var(--white);
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  transition: border-color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast);
  position: relative;
}
.alvo:hover { border-color: var(--navy-900); background: var(--navy-50); }
.alvo:active { transform: scale(0.97); }
.alvo .big { font-family: var(--font-heading); font-weight: 800; font-size: 38px; color: var(--navy-900); line-height: 1; }
.alvo .lbl { font-size: 13.5px; font-weight: 600; color: var(--gray-600); }
.alvo .aqui { font-size: 11px; font-weight: 700; color: var(--orange-700); background: var(--orange-100); border-radius: 999px; padding: 2px 9px; }
.alvo.rasc { background: var(--gray-100); border-style: dashed; border-color: var(--gray-400); }
.alvo.rasc:hover { border-color: var(--gray-700); background: var(--gray-200); }
.alvo.rasc .big { font-size: 0; }
.alvo:disabled { opacity: 0.45; cursor: not-allowed; }
.alvo:disabled:hover { border-color: var(--gray-200); background: var(--gray-100); }
.mover-foot { display: flex; justify-content: flex-end; margin-top: 20px; }
.btn-cancelar {
  height: 52px; padding: 0 28px;
  border-radius: 10px; border: 1.5px solid var(--gray-300);
  background: var(--white); color: var(--navy-900);
  font-size: 15.5px; font-weight: 700; cursor: pointer;
}
.btn-cancelar:hover { background: var(--gray-100); }

/* ===== Sub-guia Rascunho ===== */
.rasc-view { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 24px 24px; }
.rasc-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.rasc-head h2 { margin: 0; font-size: 21px; white-space: nowrap; }
.rasc-head .hint { font-size: 13.5px; color: var(--gray-600); }
.rasc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rasc-card {
  background: var(--white); border: 1px solid var(--border-default);
  border-radius: 14px; padding: 14px;
  display: flex; gap: 14px; align-items: center;
  box-shadow: var(--shadow-sm);
}
.rasc-card .info { flex: 1; min-width: 0; }
.rasc-card .prod-nome { font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: var(--navy-900); }
.rasc-card .prod-marca { font-size: 12.5px; color: var(--gray-600); }
.rasc-card.fora { border: 1.5px solid var(--danger-700); background: var(--danger-100); }
.rasc-aviso-fora {
  display: flex; align-items: center; gap: 6px; margin-top: 4px;
  font-size: 12.5px; font-weight: 700; color: var(--danger-700);
}
.hint-fora { color: var(--danger-700); font-weight: 700; }
.btn-posicionar {
  height: 56px; padding: 0 22px;
  border-radius: 10px; border: none;
  background: var(--orange-600); color: var(--white);
  font-size: 15.5px; font-weight: 700; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; gap: 9px;
}
.btn-posicionar:hover { background: var(--orange-700); }
.btn-posicionar:disabled { background: var(--gray-200); color: var(--gray-500); cursor: not-allowed; }
.rasc-empty {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: var(--gray-600);
}
.rasc-empty .circ {
  width: 92px; height: 92px; border-radius: 999px;
  background: var(--success-100); color: var(--success-700);
  display: flex; align-items: center; justify-content: center;
}
.rasc-empty .t { font-family: var(--font-heading); font-weight: 700; font-size: 21px; color: var(--navy-900); }
.rasc-empty .d { font-size: 14.5px; }
