:root { --navy: #1C2B4A; --bg: #f5f6f8; --line: #d7dbe3; --red: #c0392b; --yellow: #e0a800; --green: #2e8b57; --blue: #2d6cdf; --teal: #138d90; --gray: #8a94a6; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Yu Gothic UI", "Meiryo", "Noto Sans JP", system-ui, sans-serif; background: var(--bg); color: #222; font-size: 15px; }
a { color: var(--blue); text-decoration: none; } a:hover { text-decoration: underline; }
.nav { display: flex; align-items: center; gap: 18px; padding: 10px 18px; background: var(--navy); color: #fff; flex-wrap: wrap; }
.nav a { color: #e6eaf1; } .nav a.warn { color: #ffd966; } .nav .brand { font-weight: bold; font-size: 17px; color: #fff; margin-right: 12px; }
.nav .spacer { flex: 1; } .nav .user { color: #c9d2e3; }
.nav-search { display: inline-flex; gap: 4px; align-items: center; } .nav-search input { padding: 4px 8px; border-radius: 5px; border: 1px solid #3a4a6b; background: #2a3b5f; color: #fff; width: 210px; font: inherit; font-size: 13px; } .nav-search input::placeholder { color: #9fb0cc; }
.today-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; } .grid.today td { vertical-align: middle; } .grid.today td.big .badge { font-size: 16px; min-width: 34px; padding: 3px 10px; } .grid.today tr.zero td { color: #8a94a6; }
.next-actions { align-items: center; } .next-actions .btn { font-size: 15px; } .other-actions { margin-top: 14px; } .other-actions summary { cursor: pointer; color: #555; font-size: 14px; } .nav .inline { display: inline; } .nav button.link { background: none; border: 0; color: #c9d2e3; cursor: pointer; font: inherit; }
.main { padding: 18px 22px; max-width: 1500px; margin: 0 auto; }
h1 { font-size: 22px; color: var(--navy); margin: 0 0 14px; } h2 { font-size: 17px; color: var(--navy); margin: 22px 0 8px; border-left: 4px solid var(--navy); padding-left: 8px; }
.badge { display: inline-block; min-width: 20px; padding: 1px 7px; border-radius: 10px; font-size: 12px; text-align: center; color: #fff; background: var(--gray); white-space: nowrap; }
.badge.red { background: var(--red); } .badge.yellow { background: var(--yellow); color: #222; } .badge.green { background: var(--green); } .badge.blue { background: var(--blue); } .badge.teal { background: var(--teal); } .badge.gray { background: var(--gray); }
.messages { margin-bottom: 12px; } .msg { padding: 8px 12px; border-radius: 6px; margin-bottom: 6px; background: #e8f0fe; border: 1px solid #b7cdf5; } .msg.success { background: #e7f6ec; border-color: #a9dcb9; } .msg.error { background: #fdecea; border-color: #f2b7b1; } .msg.info { background: #fff8e1; border-color: #f4d98a; }
table.grid { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; } table.grid th, table.grid td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; } table.grid th { background: #e6eaf1; color: var(--navy); white-space: nowrap; }
table.grid td.num { text-align: right; white-space: nowrap; } table.grid tr:hover td { background: #f7f9fc; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; } .row > .card { flex: 1 1 380px; }
form.stack label { display: block; font-size: 13px; color: #444; margin-top: 8px; } form.stack input, form.stack select, form.stack textarea { width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 5px; font: inherit; }
form.stack input[type=checkbox] { width: auto; }
.btn { display: inline-block; padding: 7px 14px; border-radius: 6px; border: 1px solid var(--navy); background: var(--navy); color: #fff; cursor: pointer; font: inherit; }
.btn.secondary { background: #fff; color: var(--navy); } .btn:disabled { opacity: .45; cursor: not-allowed; } .btn.danger { background: var(--red); border-color: var(--red); } .btn.ok { background: var(--green); border-color: var(--green); } .btn.sm { padding: 3px 9px; font-size: 13px; } .btn.big { font-size: 20px; padding: 14px 28px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; } .actions form { display: inline; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 4px 10px; font-size: 14px; } .kv dt { color: #555; } .kv dd { margin: 0; }
pre.json { background: #0f172a; color: #e2e8f0; padding: 10px; border-radius: 6px; font-size: 12px; max-height: 420px; overflow: auto; }
.muted { color: #777; font-size: 13px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-bottom: 10px; } .filters label { font-size: 12px; color: #555; display: block; } .filters input, .filters select { padding: 5px 7px; border: 1px solid var(--line); border-radius: 5px; font: inherit; }
.photos { display: flex; gap: 10px; flex-wrap: wrap; } .photos img { height: 140px; border: 1px solid var(--line); border-radius: 6px; }
/* ダッシュボード（壁モニター） */
body.wall .main { max-width: none; padding: 14px 18px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.slot { border-radius: 10px; padding: 12px 14px; color: #fff; height: 182px; overflow: hidden; position: relative; background: var(--gray); transition: background .3s; }  /* 高さ固定＝情報の有無で段の高さが変わらない（2026-11-17） */
.slot.empty { background: #cfd4dd; color: #666; } .slot.blue { background: var(--blue); } .slot.teal { background: var(--teal); } .slot.yellow { background: var(--yellow); color: #222; } .slot.green { background: var(--green); } .slot.red { background: var(--red); } .slot.gray { background: var(--gray); }
.slot .sid { font-size: 13px; opacity: .85; letter-spacing: .5px; } .slot .code { font-size: 26px; font-weight: bold; margin: 2px 0; } .slot .name { font-size: 14px; opacity: .95; min-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot .state { font-size: 18px; font-weight: bold; margin-top: 6px; } .slot .smsg { font-size: 13px; opacity: .92; margin-top: 4px; height: 36px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.slot .bar { height: 6px; background: rgba(255,255,255,.35); border-radius: 3px; margin-top: 8px; overflow: hidden; } .slot .bar i { display: block; height: 100%; background: #fff; }
.slot .seen { position: absolute; right: 48px; top: 12px; font-size: 12px; opacity: .8; }
.slot .src { position: absolute; right: 10px; top: 8px; width: 30px; height: 30px; opacity: .92; } .slot .src svg { width: 100%; height: 100%; display: block; } .slot.empty .src { opacity: .5; }  /* 右上＝起動の方法（USB／LAN） */
.slot.yellow .bar { background: rgba(0,0,0,.15); } .slot.yellow .bar i { background: #222; }
.wall-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 10px; } .wall-head .clock { margin-left: auto; font-size: 22px; color: var(--navy); }
.recent { margin-top: 14px; font-size: 13px; } .recent li { padding: 3px 0; border-bottom: 1px dashed var(--line); }
/* 目視検査 */
body.inspect .main { max-width: 1100px; }
.kb { display: inline-block; background: #fff; border: 1px solid var(--line); padding: 10px; border-radius: 8px; }
.kb .krow { display: flex; gap: 3px; margin-bottom: 3px; } .kb .key { height: 38px; border: 1px solid #9aa3b5; border-radius: 4px; background: #eef1f6; font-size: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; user-select: none; }
.kb .key.ok { background: var(--green); color: #fff; border-color: var(--green); } .kb .key.skip { background: #9ec5ff; } .kb .key.fail { background: var(--red); color: #fff; }
.check-list label { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 16px; }
.check-list select { padding: 6px; font: inherit; }
.grade { display: flex; gap: 10px; } .grade label { border: 2px solid var(--line); border-radius: 8px; padding: 10px 18px; font-size: 20px; cursor: pointer; } .grade input { display: none; } .grade input:checked + span { color: var(--navy); font-weight: bold; } .grade label:has(input:checked) { border-color: var(--navy); background: #e6eaf1; }
.screen-test { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-start; padding: 24px; font-size: 18px; }
/* 出品準備・管制盤・現場キュー（2026-11-17） */
.ok-text { color: var(--green); } .ng-text { color: var(--red); }
.lp-grid { display: grid; grid-template-columns: minmax(360px, 1fr) minmax(420px, 1.2fr); gap: 14px; align-items: start; }
@media (max-width: 1100px) { .lp-grid { grid-template-columns: 1fr; } }
.lp-inline { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; } .lp-inline label { font-size: 13px; color: #444; display: block; } .lp-inline input, .lp-inline select { display: block; padding: 6px 8px; border: 1px solid var(--line); border-radius: 5px; font: inherit; margin-top: 3px; }
.lp-start { border-left: 4px solid var(--green); }
.lp-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.lp-photo { margin: 0; position: relative; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; background: #fafbfc; opacity: .6; }
.lp-photo.on { opacity: 1; border-color: var(--navy); } .lp-photo.warn { border-color: var(--yellow); }
.lp-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: #fff; }
.lp-photo .lp-no { position: absolute; left: 6px; top: 6px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--navy); color: #fff; font-size: 12px; font-weight: bold; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.lp-photo .lp-no:empty { display: none; }
.lp-photo .lp-tag { position: absolute; right: 6px; top: 6px; font-size: 11px; background: rgba(0,0,0,.6); color: #fff; padding: 1px 6px; border-radius: 4px; }
.lp-photo figcaption { padding: 6px 8px; font-size: 12px; } .lp-photo figcaption label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.lp-warn { color: #8a6d00; } .lp-move { display: flex; gap: 6px; margin-top: 4px; align-items: center; } .lp-move button { border: 1px solid var(--line); background: #fff; border-radius: 4px; cursor: pointer; padding: 1px 7px; font-size: 12px; }
.lp-checks { list-style: none; padding: 0; margin: 0 0 10px; } .lp-checks li { padding: 5px 8px; border-radius: 5px; margin-bottom: 4px; font-size: 13px; } .lp-checks li.error { background: #fdecea; color: #7a1d14; } .lp-checks li.warn { background: #fff8e1; color: #6b5300; }
.lp-form textarea { font-family: inherit; line-height: 1.5; } .lp-fixed { margin: 10px 0; font-size: 13px; } .lp-fixed pre { white-space: pre-wrap; background: #f7f9fc; border: 1px solid var(--line); border-radius: 6px; padding: 8px; font-size: 12px; }
.lp-approve { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); } .lp-body { white-space: pre-wrap; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 10px; font-size: 13px; max-height: 480px; overflow: auto; }
.lp-cfg .lp-inline { justify-content: space-between; align-items: center; margin-bottom: 6px; }
.fq-item { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; background: #fff; } .fq-head { margin-bottom: 4px; } .fq-body { display: flex; gap: 12px; align-items: flex-start; } .fq-shot { width: 120px; border-radius: 6px; border: 1px solid var(--line); } .fq-shots { display: flex; flex-wrap: wrap; gap: 6px; } video.fq-shot { width: 220px; background: #000; }
.fq-card { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; background: #fff; }

/* 言語切替 JA／EN（ナビ右・ログイン画面・2026-11-17） */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; margin-left: 8px; white-space: nowrap; }
.lang-switch .link { padding: 0 2px; opacity: .65; }
.lang-switch .link.on { opacity: 1; font-weight: 700; text-decoration: underline; }
.lang-switch .sep { opacity: .5; }
