/* クライアント（店舗スタッフ）向け画面の見た目。旧 fadmin の Bootstrap テンプレート（color-admin）は持ち込まず、
   必要なものだけをここに書く */
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; font-size: 14px; color: #333; background: #e9ecef; }
a { color: #2a7ab0; }
img { max-width: 100%; }
h1.page-header { font-size: 22px; font-weight: 600; margin: 0 0 18px; }
h1.page-header small { font-size: 13px; color: #777; margin-left: .6em; font-weight: 400; }

/* ヘッダー */
.tenpo-header { position: fixed; top: 0; left: 0; right: 0; height: 50px; z-index: 20; background: #2d353c; color: #fff; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; }
.tenpo-header .brand { font-weight: 700; font-size: 16px; color: #fff; text-decoration: none; }
.tenpo-header .brand small { font-weight: 400; color: #aab; margin-left: .6em; }
.tenpo-header .who { font-size: 13px; color: #cfd6dc; display: flex; align-items: center; gap: 14px; }
.tenpo-header .who a { color: #fff; }
.tenpo-header .notify { position: relative; }
.tenpo-header .notify summary { list-style: none; cursor: pointer; color: #fff; }
.tenpo-header .notify summary::-webkit-details-marker { display: none; }
.tenpo-header .badge { display: inline-block; min-width: 18px; padding: 1px 5px; border-radius: 9px; background: #ff5b57; color: #fff; font-size: 11px; text-align: center; margin-left: 2px; }
.tenpo-header .notify-list { position: absolute; right: 0; top: 28px; width: 280px; background: #fff; color: #333; border-radius: 4px; box-shadow: 0 4px 14px rgba(0,0,0,.3); padding: 8px 0; }
.tenpo-header .notify-list .head { padding: 4px 12px; font-weight: 600; border-bottom: 1px solid #eee; }
.tenpo-header .notify-list .item { padding: 6px 12px; border-bottom: 1px solid #f3f3f3; }
.tenpo-header .notify-list .item small { color: #888; display: block; }
.tenpo-header .notify-list .more { padding: 6px 12px; text-align: center; }

/* サイドバー */
.tenpo-side { position: fixed; top: 50px; left: 0; bottom: 0; width: 220px; background: #1f2429; color: #c3c7cc; overflow-y: auto; z-index: 10; }
.tenpo-side .profile { padding: 14px 16px; background: #171b1f; color: #fff; font-size: 13px; line-height: 1.5; }
.tenpo-side ul { list-style: none; margin: 0; padding: 6px 0; }
.tenpo-side li a { display: block; padding: 8px 16px; color: #c3c7cc; text-decoration: none; }
.tenpo-side li a:hover { background: #2d353c; color: #fff; }
.tenpo-side li.active > a { background: #00acac; color: #fff; }
.tenpo-side li.group > span { display: block; padding: 8px 16px; color: #fff; font-weight: 600; }
.tenpo-side li.group ul { padding: 0 0 4px; }
.tenpo-side li.group ul a { padding-left: 32px; font-size: 13px; }
.tenpo-side li.disabled > span { display: block; padding: 8px 16px; color: #666; }
.tenpo-side li.disabled small { color: #555; margin-left: .4em; }

/* 本文 */
.tenpo-main { margin: 50px 0 0 220px; padding: 22px 24px 40px; min-height: calc(100vh - 50px); }
@media (max-width: 900px) {
  .tenpo-side { position: static; width: auto; }
  .tenpo-main { margin-left: 0; }
}
.card { background: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.15); padding: 18px 22px; margin-bottom: 20px; }
.card h2 { font-size: 15px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid #e5e5e5; }
.row2 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.row2 > div { min-width: 0; }
.row-half { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.row-third { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
@media (max-width: 1100px) { .row2, .row-half, .row-third { grid-template-columns: 1fr; } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
@media (max-width: 1100px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat { border-radius: 4px; padding: 14px 16px; color: #fff; }
.stat h4 { margin: 0; font-size: 13px; font-weight: 400; opacity: .85; }
.stat p { margin: 4px 0 6px; font-size: 26px; font-weight: 700; }
.stat a { color: #fff; font-size: 12px; opacity: .9; }
.stat.green { background: #00acac; } .stat.blue { background: #348fe2; } .stat.purple { background: #727cb6; } .stat.black { background: #2d353c; }
.muted { color: #777; }
.text-right { text-align: right; }
.center { text-align: center; }

/* 表 */
table.tbl { border-collapse: collapse; width: 100%; font-size: 13px; }
table.tbl th, table.tbl td { border: 1px solid #e5e5e5; padding: 7px 9px; text-align: left; vertical-align: top; }
table.tbl th { background: #f5f6f7; font-weight: 600; white-space: nowrap; }
table.tbl tr:nth-child(even) td { background: #fafbfc; }
table.info th { width: 12em; }
.table-scroll { overflow-x: auto; }
.pager { display: flex; gap: 6px; align-items: center; margin: 12px 0; flex-wrap: wrap; }
.pager a, .pager span { padding: 4px 10px; border: 1px solid #ccd0d4; border-radius: 3px; text-decoration: none; color: #333; background: #fff; }
.pager span.cur { background: #00acac; color: #fff; border-color: #00acac; }
.pager span.dis { color: #aaa; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.toolbar form { display: flex; gap: 6px; align-items: center; }

/* フォーム */
.form-h .group { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f0f0f0; align-items: start; }
.form-h .group > label.lbl { padding-top: 7px; font-weight: 600; color: #444; }
@media (max-width: 800px) { .form-h .group { grid-template-columns: 1fr; } }
input[type=text], input[type=number], input[type=password], input[type=email], select, textarea { font-size: 14px; padding: 7px 10px; border: 1px solid #ccd0d4; border-radius: 3px; width: 100%; max-width: 640px; font-family: inherit; }
input.short { width: 160px; }
textarea { min-height: 110px; }
.inline-checks label { display: inline-block; margin: 2px 14px 2px 0; }
.note { color: #777; font-size: 12px; margin-top: 4px; }
.btn { display: inline-block; padding: 6px 14px; border-radius: 3px; border: 1px solid transparent; background: #fff; color: #333; cursor: pointer; text-decoration: none; font-size: 13px; line-height: 1.4; }
.btn-primary { background: #348fe2; color: #fff; }
.btn-success { background: #00acac; color: #fff; }
.btn-warning { background: #f59c1a; color: #fff; }
.btn-danger { background: #ff5b57; color: #fff; }
.btn-default { background: #e9ecef; color: #333; border-color: #ccd0d4; }
.btn-sm { padding: 3px 9px; font-size: 12px; }
.btn[disabled] { opacity: .5; cursor: default; }
.alert { padding: 10px 14px; border-radius: 3px; margin-bottom: 14px; }
.alert-danger { background: #f8d7da; color: #842029; }
.alert-success { background: #d1e7dd; color: #0f5132; }
.alert-info { background: #cfe8f3; color: #0c4a6e; }
.lead { font-size: 14px; line-height: 1.8; white-space: pre-wrap; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.photo-grid .ph { position: relative; }
.photo-grid .ph img { width: 100%; height: 150px; object-fit: cover; border-radius: 3px; display: block; }
.photo-grid .ph form { position: absolute; top: 4px; right: 4px; }
.chart-box { max-width: 560px; margin: 0 auto; }

/* ログイン画面（旧 login-v2 の雰囲気：暗い背景に白いカード） */
body.login-page { background: #2d353c; }
.login-box { max-width: 420px; margin: 8vh auto; background: #fff; border-radius: 4px; box-shadow: 0 2px 12px rgba(0,0,0,.4); overflow: hidden; }
.login-head { background: #1f2429; color: #fff; padding: 20px 24px; }
.login-head .brand { font-size: 20px; font-weight: 700; }
.login-head small { display: block; color: #aab; margin-top: 4px; }
.login-body { padding: 24px; }
.login-body input[type=text], .login-body input[type=password], .login-body input[type=email] { width: 100%; font-size: 16px; padding: 10px 12px; margin-bottom: 16px; }
.login-body label.remember { display: block; margin-bottom: 16px; }
.login-body button { width: 100%; font-size: 16px; padding: 10px; border: 0; border-radius: 3px; background: #00acac; color: #fff; cursor: pointer; }
.login-body button:hover { background: #008f8f; }
