/* 事務の画面（ログイン・管理画面・運営画面）の見た目。
   値は土台（ky-nippo の public/assets/style.css）と同じものを使う。
   映像を見る画面（監視画面・ウォール表示・現場カメラ）は映像が沈むので暗い配色のまま。 */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --ink: #1a1d21;
  --sub: #5b636d;
  --line: #c9ced6;
  --bg: #eef1f5;
  --paper: #fff;
  --accent: #0b57a4;
  --accent-soft: #e8f0fa;
  --warn: #c62828;
  --ok: #1b7a3d;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px;
  background: var(--accent); color: #fff;
}
header b { font-size: 18px; font-weight: 700; }
header a { color: #fff; font-size: 14px; margin-left: 12px; text-decoration: none; }
header a:hover { text-decoration: underline; }

main { max-width: 1180px; margin: 0 auto; padding: 16px; }
h1 { font-size: 18px; margin: 0 0 20px; }
h2 { font-size: 16px; margin: 0 0 10px; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px;
  margin-bottom: 14px;
}

.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

input, select {
  padding: 10px; font-size: 16px; min-height: 44px;
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--paper); color: var(--ink);
}
input[type="checkbox"] { min-height: 0; width: auto; }
input:focus, select:focus, button:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

button {
  padding: 10px 14px; font-size: 15px; min-height: 44px;
  border: 1px solid var(--accent); border-radius: 4px;
  background: var(--accent); color: #fff; cursor: pointer;
}
button.sub { background: var(--paper); color: var(--accent); }
button.danger { background: var(--warn); border-color: var(--warn); }
button:disabled { background: #b9c0c9; border-color: #b9c0c9; cursor: default; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg); font-weight: 700; }
.wrap { overflow-x: auto; }

.dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  margin-right: 6px; background: #b9c0c9;
}
.dot.on { background: var(--ok); }

.muted { color: var(--sub); font-size: 13px; }
.msg { color: var(--warn); font-size: 14px; min-height: 1.2em; margin-top: 8px; }
.err { color: var(--warn); font-size: 14px; min-height: 1.2em; margin-top: 12px; }
code { background: var(--accent-soft); padding: 2px 6px; border-radius: 4px; word-break: break-all; }
label.chk { font-size: 14px; color: var(--ink); margin-right: 8px; }
