/* Open box tab (openbox.js, 11 Nov 2026). Cards, the "Needs your OK" list, the units and models tables, the switches.
   Tables use .tablewrap / table.grid from app.css; filters use .t-filters. */
.ob-intro { color: #4a4a4a; margin: 0 0 10px; }
.ob-dim { color: #616161; font-size: 12.5px; }
.ob-bad { margin: 6px 0; padding: 6px 10px; border-radius: 8px; background: #fff0eb; color: #8e1f0b; font-size: 13px; }
.ob-good { color: #1f7a3d; }
.ob-live { margin: 0 0 10px; padding: 6px 10px; border-radius: 8px; background: #e8eefc; color: #1d4ab0; font-size: 13px; }
.ob-sec { margin-top: 18px; }
.ob-h { margin: 0 0 8px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.ob-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #c4320a; color: #fff; font-size: 11.5px; display: inline-flex; align-items: center; justify-content: center; }
.ob-count:empty { display: none; }
.ob-btn { font: inherit; font-size: 13px; padding: 5px 12px; border: 1px solid #c9c9c9; border-radius: 8px; background: #fff; cursor: pointer; }
.ob-btn:hover { background: #f7f7f7; }
.ob-btn.primary { background: #303030; color: #fff; border-color: #303030; }
.ob-btn.primary:hover { background: #1a1a1a; }
.ob-btn:disabled { opacity: .55; cursor: default; }

/* summary cards */
.ob-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 10px 0 4px; }
.ob-card { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid #e3e3e3; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.ob-card-k { font-size: 12px; color: #616161; }
.ob-card-v { font-size: 22px; line-height: 1.2; font-variant-numeric: tabular-nums; color: #8a5a14; }
.ob-card-sub { font-size: 12px; color: #616161; line-height: 1.35; }

/* Needs your OK */
.ob-ps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ob-p { border: 1px solid #f0d9a8; border-left: 4px solid #e6a400; border-radius: 12px; background: #fff; padding: 10px 14px; }
.ob-p p { margin: 4px 0; font-size: 13px; }
.ob-p-head b { font-size: 14px; }
.ob-p-what { font-weight: 600; }
.ob-p-why { color: #303030; }
.ob-p-ok { color: #7a5200; background: #fff7e6; border-radius: 6px; padding: 3px 8px; display: inline-block; }
.ob-p-state { font-weight: 600; }
.ob-p-saving, .ob-p-done { border-left-color: #2e9e57; border-color: #cfe9d8; }
.ob-p-saving { opacity: .75; }
.ob-p-changed, .ob-p-error { border-left-color: #d4472a; border-color: #f1b8a8; }
.ob-bad.ob-p-state, .ob-p-state.ob-bad { font-weight: 500; }
.ob-actions { display: flex; gap: 8px; margin-top: 8px; }

/* units and models */
.ob-units td, .ob-models td { vertical-align: top; }
.ob-next { min-width: 160px; }
.ob-mc { min-width: 150px; font-size: 12.5px; }
.ob-models th { cursor: default; }
.ob-tag { display: inline-block; font-size: 11px; padding: 0 6px; border-radius: 8px; background: #f1f1f1; color: #4a4a4a; white-space: nowrap; }
.ob-tag-slow { background: #fff1d6; color: #7a5200; }
.ob-tag-faulty { background: #fde7e3; color: #8e1f0b; }
.ob-tag-ok { background: #e8eefc; color: #1d4ab0; }

/* switches */
.ob-sws { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ob-sw { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 12px; border: 1px solid #e3e3e3; border-radius: 12px; background: #fff; font-size: 13px; }
.ob-sw-text { flex: 1 1 320px; min-width: 0; }
.ob-mode { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #f1f1f1; color: #4a4a4a; }
.ob-mode-report { background: #e8eefc; color: #1d4ab0; }
.ob-mode-live { background: #dff6e6; color: #1f7a3d; }
.ob-seg { display: inline-flex; border: 1px solid #c9c9c9; border-radius: 8px; overflow: hidden; flex: none; }
.ob-seg-b { font: inherit; font-size: 13px; padding: 5px 12px; border: 0; border-left: 1px solid #c9c9c9; background: #fff; cursor: pointer; }
.ob-seg-b:first-child { border-left: 0; }
.ob-seg-b:hover:not(:disabled) { background: #f7f7f7; }
.ob-seg-b.on { background: #303030; color: #fff; cursor: default; }
.ob-seg-b:disabled:not(.on) { opacity: .55; cursor: default; }
.ob-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: #fff7e6; }

@media (max-width: 760px) {
  .ob-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ob-card-v { font-size: 19px; }
  .ob-p { padding: 10px; }
}

/* price journey scale per unit (openbox-journey.js, 11 Nov 2026): start → 7% steps → floor, green → red */
.obj { min-width: 220px; max-width: 270px; font-size: 12px; line-height: 1.3; }
.obj-ends { display: flex; justify-content: space-between; color: #616161; font-variant-numeric: tabular-nums; }
.obj-pct { color: #8a8a8a; }
.obj-track { position: relative; height: 8px; margin: 5px 0 4px; border-radius: 4px; background: linear-gradient(90deg, #1f7a3d, #e6a400 50%, #c4320a); opacity: .9; }
.obj-tick { position: absolute; top: -2px; width: 1px; height: 12px; background: rgba(255,255,255,.95); transform: translateX(-.5px); }
.obj-tick.past { background: rgba(0,0,0,.35); }
.obj-dot { position: absolute; top: 50%; width: 14px; height: 14px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.25); transform: translate(-50%, -50%); }
.obj-dot.above { outline: 2px dashed #8a5a14; outline-offset: 1px; }
.obj-now { font-weight: 600; font-variant-numeric: tabular-nums; }
.obj-badge { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 8px; font-size: 11px; font-weight: 500; background: #f1f1f1; color: #4a4a4a; }
.obj-hand { background: #fff4d6; color: #8a5a14; } .obj-test { background: #e8eefc; color: #1d4ab0; } .obj-floor { background: #fff0eb; color: #8e1f0b; }
.obj-facts { color: #616161; white-space: nowrap; }
