/* Shop Floor — Odoo workboard parity */
.sf-odo {
  --sf-brand: var(--sfe-primary, #007BFF);
  --sf-bg: #f1f1f1;
  position: relative;
  min-height: calc(100vh - 140px);
  margin: -8px -12px 0;
  padding: 12px 16px 32px;
  background: var(--sf-bg);
}
.sf-odo-flash { margin-bottom: 12px; }
.sf-odo-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 16px;
}
.sf-odo-search {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  max-width: 520px;
  margin-left: auto;
}
.sf-odo-search__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-height: 36px;
  padding: 2px 10px;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 4px;
}
.sf-odo-search input[type="search"] {
  flex: 1 1 100px;
  border: 0;
  outline: none;
  min-height: 28px;
  font-size: .875rem;
  background: transparent;
}
.sf-odo-search__go {
  border: 1px solid #ced4da;
  background: #fff;
  border-radius: 4px;
  width: 36px;
  height: 36px;
  cursor: pointer;
}
.sf-odo-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--sf-brand);
  color: #fff;
  font-size: .75rem;
  text-decoration: none;
  white-space: nowrap;
}
.sf-odo-pill.is-pending { background: var(--sfe-primary-dark, #0056CC); }
.sf-odo-toolbar__right { position: relative; }
.sf-odo-burger {
  width: 36px;
  height: 36px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
}
.sf-odo-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 220px;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 40;
  padding: 6px 0;
}
.sf-odo-menu__panel a {
  display: block;
  padding: 10px 14px;
  color: #1e2b3c;
  text-decoration: none;
  font-size: .875rem;
}
.sf-odo-menu__panel a:hover { background: #f8f9fa; }

/* Landing */
.sf-odo-landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 60vh;
  padding: 24px 12px;
}
.sf-odo-landing__art { width: min(720px, 100%); }
.sf-odo-illu { width: 100%; height: auto; display: block; }
.sf-odo-cta {
  background: var(--sf-brand) !important;
  border-color: var(--sf-brand) !important;
  border-radius: 999px !important;
  padding: 12px 28px !important;
  font-weight: 600;
}

/* Empty panel */
.sf-odo-empty {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}
.sf-odo-empty__ghost {
  position: absolute;
  inset: 12px 8% auto;
  display: flex;
  gap: 16px;
  opacity: .22;
  pointer-events: none;
}
.sf-odo-empty__msg {
  position: relative;
  z-index: 1;
  max-width: 520px;
  text-align: center;
  background: rgba(241,241,241,.92);
  padding: 24px 18px;
  border-radius: 8px;
}
.sf-odo-empty__msg h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  color: #1e2b3c;
}
.sf-odo-empty__msg p {
  margin: 0 0 18px;
  color: #6c757d;
  font-size: .9rem;
  line-height: 1.45;
}
.sf-odo-empty__msg .btn-primary,
.sf-odo .btn-primary {
  background: var(--sf-brand) !important;
  border-color: var(--sf-brand) !important;
}

/* Workboard cards */
.sf-odo-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
  gap: 16px;
  align-items: start;
}
.sf-odo-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sf-odo-card.is-ghost { min-height: 120px; }
.sf-odo-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.sf-odo-card__ref {
  font-weight: 650;
  color: #1e2b3c;
  text-decoration: none;
  font-size: .9rem;
}
.sf-odo-badge {
  display: inline-flex;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 650;
  background: #e9ecef;
  color: #495057;
}
.sf-odo-badge.is-confirmed { background: #E8F4FF; color: #0056CC; }
.sf-odo-badge.is-progress { background: #fff3cd; color: #664d03; }
.sf-odo-badge.is-draft { background: #e7f1ff; color: #084298; }
.sf-odo-badge.is-done { background: #d3d3d3; color: #333; }
.sf-odo-card__product { font-size: .9rem; color: #1e2b3c; }
.sf-odo-card__qty { font-weight: 700; font-size: .95rem; }
.sf-odo-card__ops {
  margin: 0;
  padding-left: 16px;
  color: #6c757d;
  font-size: .8rem;
}
.sf-odo-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.sf-odo-info {
  width: 32px;
  height: 32px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background: #f8f9fa;
  font-weight: 700;
  font-style: italic;
  cursor: pointer;
}

/* Modals */
.sf-odo-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.sf-odo-modal[hidden] { display: none !important; }
.sf-odo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 30, 30, .45);
}
.sf-odo-modal__card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,.2);
  overflow: hidden;
}
.sf-odo-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #e9ecef;
}
.sf-odo-modal__head h3 { margin: 0; font-size: 1.05rem; }
.sf-odo-modal__x {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #6c757d;
}
.sf-odo-modal__body { padding: 16px; }
.sf-odo-modal__actions { display: flex; gap: 8px; margin-top: 12px; }
.sf-odo-activate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sf-odo-options__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 16px 18px;
}
.sf-odo-opt {
  min-height: 72px;
  padding: 12px;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  background: #f8f9fa;
  text-align: left;
  font-size: .875rem;
  cursor: pointer;
}
.sf-odo-opt:hover { background: #fff; border-color: var(--sf-brand); }

@media (max-width: 640px) {
  .sf-odo-options__grid { grid-template-columns: 1fr; }
  .sf-odo-empty__ghost { display: none; }
  .sf-odo-board { grid-template-columns: 1fr; }
}
