/* Order Management tool styles — scoped under .om-root; shell chrome from hq-shell.css */
:root {
  --danger: #ff6b6b;
  --ok: #4ade80;
  --warn: #fbbf24;
}

.om-container {
  padding: 16px 20px 90px;
  max-width: 1200px;
  margin: 0 auto;
}
.banner { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; background: var(--card); border:1px solid var(--border); border-radius:12px; padding:14px 16px; margin-top:16px; }
    .banner h1 { margin: 0; font-size: 16px; letter-spacing: .3px; }
    .banner .sub { color: var(--muted); font-size: 12px; margin-top: 4px; }
    .banner .right { display:flex; align-items:center; gap:10px; flex-wrap: wrap; justify-content:flex-end; }

    .module { margin-top:16px; background: var(--card); border:1px solid var(--border); border-radius:12px; overflow: hidden; }
    .module header { display:flex; align-items:center; justify-content:space-between; padding:12px 14px; border-bottom:1px solid var(--border); background: transparent; position: static; backdrop-filter:none; }
    .module header h2 { margin:0; font-size:14px; color: var(--muted); font-weight: 600; }
    .module .body { padding:12px 14px 14px; }

    .grid2 { display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
    @media (max-width: 980px) { .grid2 { grid-template-columns: 1fr; } }
.om-root label { font-size: 12px; color: var(--muted); display:block; margin-bottom: 6px; }
.om-root input, .om-root textarea, .om-root select, .om-root button {
      width: 100%;
      padding: 8px 10px;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: #111317;
      color: var(--fg);
      outline: none;
    }
.om-root textarea { min-height: 72px; resize: vertical; }
.om-root button { cursor: pointer; background: var(--card); }
.om-root button:hover { border-color: #3a3b40; }
.om-root button:disabled { opacity: .55; cursor: not-allowed; }
    .btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:8px 10px; border-radius:10px; border:1px solid var(--border); background: var(--card); color: var(--fg); white-space: nowrap; width: auto; }
    .btn.primary { border-color: rgba(106,163,255,.35); background: rgba(106,163,255,.10); }
    .btn.danger { border-color: rgba(255,107,107,.45); background: rgba(255,107,107,.08); color: #ffd7d7; }
    .btn.ghost { background: transparent; }

    .row { display:flex; gap:10px; align-items:end; flex-wrap: wrap; }
    .row > * { flex: 1; min-width: 200px; }
    .row .tight { min-width: 140px; max-width: 240px; flex: 0 1 auto; }

    .toggle {
      display:flex; align-items:center; justify-content:space-between; gap:12px;
      padding:10px 12px; border-radius:12px; border:1px solid var(--border); background:#111317;
    }
    .toggle .tmeta { min-width: 0; }
    .toggle .tmeta .tlabel { font-size: 13px; }
    .toggle .tmeta .tdesc { font-size: 12px; color: var(--muted); margin-top: 2px; }
    .switch { width: 44px; height: 24px; border-radius: 999px; border:1px solid var(--border); background:#0d0f12; position: relative; flex: 0 0 auto; }
    .switch::after { content:""; position:absolute; top: 50%; left: 3px; transform: translateY(-50%); width: 18px; height: 18px; border-radius: 999px; background:#2a2c31; transition: all .16s ease; }
    .switch.on { border-color: rgba(74,222,128,.35); background: rgba(74,222,128,.08); }
    .switch.on::after { left: 22px; background: rgba(74,222,128,.9); }

    .stepper { display:flex; gap:8px; align-items:center; }
    .stepper .val { width: 46px; text-align:center; padding:8px 0; border-radius:10px; border:1px solid var(--border); background:#111317; font-variant-numeric: tabular-nums; }
    .stepper button { width: 38px; padding: 8px 0; }

    .pill { display:inline-flex; align-items:center; height:22px; padding:0 10px; border-radius:999px; border:1px solid var(--border); background:#111317; color:#cbd5e1; font-size:12px; }
    .pill.ok { border-color: rgba(74,222,128,.35); background: rgba(74,222,128,.08); color: #c7f9d5; }
    .pill.no { border-color: rgba(255,107,107,.35); background: rgba(255,107,107,.08); color: #ffd7d7; }
    .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; }

    .kv { display:grid; grid-template-columns: 180px 1fr; gap: 6px 10px; align-items: start; }
    .kv .k { color: var(--muted); font-size: 12px; }
    .kv .v { font-size: 13px; min-width: 0; word-break: break-word; }

.om-footer {
  position: fixed;
  left: var(--sidebar-width);
  right: 0;
  bottom: 0;
  padding: 10px 20px;
  background: rgba(11,11,12,.85);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 2500;
}
@media (max-width: 768px) {
  .om-footer { left: 0; }
}
.om-footer .spacer { flex: 1; }
    .note { color: var(--muted); font-size: 12px; }
    .statusline { font-size: 12px; color: var(--muted); }
    .statusline .err { color: var(--danger); }
    .statusline .ok { color: var(--ok); }
.om-root dialog {
      width: min(720px, calc(100vw - 24px));
      border: 1px solid var(--border);
      border-radius: 14px;
      background: #0f1013;
      color: var(--fg);
      padding: 0;
    }
.om-root dialog::backdrop { background: rgba(0,0,0,.55); }
    .modal-h { padding: 12px 14px; border-bottom: 1px solid var(--border); display:flex; align-items:center; justify-content:space-between; }
    .modal-h h3 { margin:0; font-size: 14px; color: var(--muted); }
    .modal-b { padding: 12px 14px; }
    .modal-f { padding: 12px 14px; border-top: 1px solid var(--border); display:flex; gap:10px; justify-content:flex-end; }
.om-root ul { margin: 8px 0 0 18px; color: #d6dae0; }

/* Tool UI only */
.main-content {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.main-content::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.om-root {
  min-height: 100%;
  position: relative;
}
