/* #614: opening a booster box on the Scan page (scan_booster.js). Scoped to body.scan-layout like scan_layout.css.
   The look JM saw on the mock-up (http://192.168.0.101:8899/booster-box/). */
body.scan-layout .bx-resume { border: 1px solid #e0a83a; background: #fffaf0; border-radius: 10px; padding: 8px 12px; margin: 0 0 10px; font-size: .92em; }
body.scan-layout .bx-panel { border: 1px solid #e0a83a; background: #fffaf0; border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; font-size: .92em; }
body.scan-layout .bx-panel[hidden], body.scan-layout .bx-resume[hidden], body.scan-layout #sbBoosterSetup[hidden],
body.scan-layout #sbBoosterList[hidden], body.scan-layout #sbBoosterSwitch[hidden] { display: none; }
body.scan-layout .bx-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.scan-layout .bx-name { font-weight: 700; }
body.scan-layout .bx-sp { flex: 1; }
body.scan-layout .bx-big { font-size: 1.15em; font-weight: 700; }
body.scan-layout .bx-big small { font-weight: 400; color: #555; font-size: .72em; }
body.scan-layout .bx-next { color: #444; }
body.scan-layout .bx-slots { display: grid; gap: 3px; margin: 6px 0; }
body.scan-layout .bx-slots i { height: 9px; border-radius: 2px; background: #e5e1d8; }
body.scan-layout .bx-slots i.f { background: #e0a83a; }
body.scan-layout .bx-slots i.r { background: #c9b07a; }
body.scan-layout .bx-slots i.x { background: #d9534f; }
body.scan-layout .bx-slots i.n { background: #fff; outline: 2px solid #e0a83a; outline-offset: -2px; }
body.scan-layout .bx-line { color: #444; }
body.scan-layout .bx-line b { color: #1a1a1a; }
body.scan-layout .bx-msg { margin-top: 6px; color: #5a3a00; }
body.scan-layout .bx-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
body.scan-layout .bx-acts .bx-go { background: #e0a83a; border: 1px solid #c8902c; border-radius: 8px; padding: 6px 12px; font-weight: 700; cursor: pointer; color: #1a1a1a; text-decoration: none; }
body.scan-layout .bx-acts .bx-go kbd { font: 11px ui-monospace, monospace; border: 1px solid #b88a2b; border-radius: 4px; padding: 0 4px; margin-left: 6px; background: #fff6df; }
body.scan-layout .bx-acts .bx-plain { background: #fff; border: 1px solid #ccc; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
body.scan-layout .bx-acts label { font-size: .9em; color: #333; }
body.scan-layout .bx-small { background: #fff; border: 1px solid #ccc; border-radius: 7px; padding: 2px 8px; font-size: .88em; cursor: pointer; }
body.scan-layout .bx-menu { margin-top: 6px; }
body.scan-layout .bx-warn { border: 1px solid #d08a1e; background: #fff1d6; border-radius: 8px; padding: 8px 10px; margin-top: 8px; color: #5a3a00; }
body.scan-layout .bx-warn b { color: #3d2700; }
body.scan-layout .bx-ok { color: #1e7b34; font-weight: 600; }
body.scan-layout .bx-bad { color: #b3261e; font-weight: 600; }
body.scan-layout .bx-dim { color: #777; }
body.scan-layout .bx-switch { display: inline-flex; border: 1px solid #ddd; border-radius: 999px; overflow: hidden; font-size: .85em; margin-left: 8px; vertical-align: middle; }
body.scan-layout .bx-switch button { padding: 3px 10px; border: 0; background: #fff; cursor: pointer; }
body.scan-layout .bx-switch button.on { background: #e0a83a; font-weight: 700; }
body.scan-layout #sbBoosterList { border: 1px solid #ddd; border-radius: 8px; padding: 6px 8px; overflow-y: auto; max-height: 100%; flex: 1 1 auto; min-height: 0; background: #fff; }
body.scan-layout table.bx-t { width: 100%; border-collapse: collapse; font-size: .92em; table-layout: auto; }
body.scan-layout table.bx-t th { background: #f5f5f5; text-align: left; padding: 6px 8px; position: sticky; top: 0; white-space: nowrap; width: auto !important; }
body.scan-layout table.bx-t td { padding: 6px 8px; border-bottom: 1px solid #eee; white-space: nowrap; width: auto !important; }
body.scan-layout table.bx-t td.r, body.scan-layout table.bx-t th.r { text-align: right; }
body.scan-layout table.bx-t tr.bx-new td { background: #fff6df; }
body.scan-layout table.bx-t code { color: #777; font-size: .85em; }
/* Setup: replaces "How do you want to scan?" while it is open */
body.scan-layout .bx-setup { max-width: 560px; }
body.scan-layout .bx-setup .bx-row { display: grid; grid-template-columns: 150px 1fr; gap: 4px 10px; align-items: center; margin: 5px 0; font-size: .95em; }
body.scan-layout .bx-setup input, body.scan-layout .bx-setup select { padding: 4px 7px !important; border: 1px solid #bbb; border-radius: 6px; font-size: .95em !important; height: auto !important; margin: 0 !important; display: inline-block !important; }
body.scan-layout .bx-setup input[type=checkbox] { width: auto !important; }
body.scan-layout .bx-setup .w3 { width: 4.2em !important; }
body.scan-layout .bx-setup .w8 { width: 7em !important; }
body.scan-layout .bx-setup .w12 { width: 13em !important; }
body.scan-layout .bx-setup .wset { width: 100% !important; }
body.scan-layout .bx-setup .bx-inline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
body.scan-layout .bx-setup .bx-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
body.scan-layout .bx-setup .bx-kinds button { border: 1px solid #ccc; border-radius: 999px; padding: 3px 10px; font-size: .9em; background: #fff; cursor: pointer; }
body.scan-layout .bx-setup .bx-kinds button.on { background: #e0a83a; border-color: #c8902c; font-weight: 700; }
body.scan-layout .bx-setup .bx-note { color: #555; font-size: .86em; }
body.scan-layout .bx-setup .bx-starts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
body.scan-layout .bx-setup .bx-err { color: #b3261e; font-weight: 600; min-height: 1.2em; margin-top: 6px; }
@media (max-width: 700px) {
	body.scan-layout .bx-setup .bx-row { grid-template-columns: 1fr; }
	body.scan-layout .bx-setup .bx-starts { grid-template-columns: 1fr; }
}
/* .sb-more .sb-item is display:block in scan_layout.css, which beats the hidden attribute */
body.scan-layout .sb-more #sbBoosterItem[hidden], body.scan-layout #sbBoosterFoot[hidden] { display: none; }
