/* Apps Script のサンプル（ホームページ版）で共通の見た目：左がスプレッドシート、右が職員の画面 */
:root { --green: #2f6f5e; --green-soft: #e6f0ec; --ink: #1f2a27; --sub: #5d6b67; --line: #d5dfdb;
        --grid: #e3e7e5; --head: #f3f5f4; --sec: #e8eef7; --new: #fff6c9; --warn: #b4531a; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { display: flex; flex-direction: column; font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif; color: var(--ink); background: #fff; font-size: 14px; }
.ribbon { background: #fff3dc; color: #8a4f00; font-size: 12px; padding: 6px 12px; text-align: center; }
.app { display: grid; grid-template-columns: minmax(0, 1fr) 400px; flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); }
.sheet { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.bar .file { font-weight: 700; }
.bar .menu { font-size: 12px; color: var(--sub); }
.tabs { display: flex; gap: 2px; padding: 0 8px; background: var(--head); border-top: 1px solid var(--line); overflow-x: auto; }
.tabs button { font: inherit; font-size: 13px; border: 0; background: transparent; padding: 8px 14px; cursor: pointer; color: var(--sub); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--green); font-weight: 700; border-bottom-color: var(--green); }
.body { flex: 1; overflow: auto; position: relative; }
.view { display: none; padding: 0 0 16px; }
.view.on { display: block; }
table { border-collapse: collapse; font-size: 13px; }
th, td { border: 1px solid var(--grid); padding: 5px 8px; white-space: nowrap; text-align: left; vertical-align: top; }
thead th { position: sticky; top: 0; background: var(--head); font-weight: 600; z-index: 1; }
td.long { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
tr.new td { background: var(--new); }
/* 今の状況のような、1枚にまとめたシート */
table.status { width: 100%; }
table.status td { border-color: #eef1ef; }
table.status td:first-child { white-space: normal; min-width: 150px; max-width: 260px; }
table.status tr.title td, table.status tr.memo td { max-width: none; }
table.status tr.title td { font-weight: 700; font-size: 15px; border: 0; padding-top: 10px; }
table.status tr.sec td { background: var(--sec); font-weight: 700; }
table.status tr.memo td { color: var(--sub); font-size: 12px; white-space: normal; border: 0; }
table.status td.ng { color: var(--warn); font-weight: 700; }
.phone { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #eef1ef; }
.phone .title { padding: 10px 14px; border-bottom: 1px solid var(--line); font-weight: 700; background: #fff; display: flex; justify-content: space-between; align-items: center; }
.phone .title small { font-weight: 400; color: var(--sub); }
.phone .frame { flex: 1; display: flex; justify-content: center; padding: 12px; min-height: 0; }
.phone iframe { border: 1px solid var(--line); border-radius: 18px; width: 100%; max-width: 380px; height: 100%; min-height: 560px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.toast { position: absolute; right: 12px; bottom: 12px; background: var(--green); color: #fff; padding: 8px 12px; border-radius: 8px; font-size: 13px; opacity: 0; transition: opacity .3s; pointer-events: none; max-width: 80%; }
.toast.on { opacity: 1; }
@media (max-width: 820px) {
  body { display: block; height: auto; }
  .app { grid-template-columns: 1fr; grid-template-rows: auto auto; height: auto; }
  .phone { order: -1; border-bottom: 2px solid var(--line); }
  .phone iframe { min-height: 640px; height: 640px; }
  .sheet { border-right: 0; }
  .body { max-height: 520px; }
}
