/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/



/* ボタンの見た目にした label（写真を選ぶボタンなど）。テーマの label 用の大文字・字間を打ち消す */
label.btn { font-family: inherit; letter-spacing: normal; text-transform: none; margin-bottom: 0; }
/* 選択肢の行・チェックボックスの説明になる label も同じく打ち消す（「8m」が「8M」になるなど） */
label.list-group-item, label.form-check-label { font-family: inherit; letter-spacing: normal; text-transform: none; font-weight: normal; font-size: inherit; color: inherit; margin-bottom: 0; }

/* 改行をそのまま表示する欄（メモ・エラーメッセージなど） */
.maint-pre, .uc-pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ----------------------------------------------------------------
	ユーザー・充電器の一括紐付け（views/user_chargers.php）
-----------------------------------------------------------------*/
.uc-panel { max-width: 800px; }
#uc-preview-list { max-height: 180px; overflow: auto; }

/* ----------------------------------------------------------------
	保守履歴（views/maintenance_section.php）
	レイアウト・ボタン・入力欄は Bootstrap のクラスで指定。ここには Bootstrap にないものだけ置く
-----------------------------------------------------------------*/
.maint-drop { border-style: dashed !important; }

/* 写真のサムネイル（右上の × で削除） */
.maint-thumb { position: relative; width: 72px; height: 72px; border-radius: 6px; overflow: hidden; background: #EEE; }
.maint-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.maint-thumb .maint-x { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #FFF; font-size: 14px; line-height: 22px; cursor: pointer; }
.maint-thumb.removed img, .maint-thumb.removed a { opacity: .25; }
/* PDF（図面など）。クリックで新しいタブに開く */
.maint-pdf a { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 4px; border: 1px solid #DEE2E6; border-radius: 6px; background: #FFF; color: #212529; text-decoration: none; }
.maint-pdf .maint-pdf-label { font-weight: 700; font-size: 13px; color: #DC3545; }
.maint-pdf .maint-pdf-name { max-width: 100%; font-size: 10px; line-height: 1.25; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; word-break: break-all; }
.maint-thumb.removed::after { content: '削除'; position: absolute; left: 0; right: 0; bottom: 0; background: #DC3545; color: #FFF; font-size: 11px; text-align: center; }

/* 写真の拡大表示・QR読み取りの画面（画面全体を暗くして中央に表示） */
.maint-modal { position: fixed; inset: 0; z-index: 10000; display: none; flex-direction: column; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.82); }
.maint-modal.open { display: flex; }
.maint-modal > img { max-width: 100%; max-height: 86vh; border-radius: 4px; }
.maint-scan-box { position: relative; width: min(92vw, 520px); aspect-ratio: 3 / 4; max-height: 70vh; overflow: hidden; border-radius: 8px; background: #000; }
.maint-scan-box video { width: 100%; height: 100%; object-fit: cover; }
.maint-scan-box .frame { position: absolute; inset: 18% 12%; border: 3px solid rgba(255,255,255,.85); border-radius: 12px; box-shadow: 0 0 0 2000px rgba(0,0,0,.25); }

/* ----------------------------------------------------------------
	グラフ（views/charger_detail.php）
	凡例・切り替えボタンの色見本。色は項目ごとに JavaScript で入れる
-----------------------------------------------------------------*/
.chart-sw { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 2px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.chart-sw.wide { width: 14px; }

/* ----------------------------------------------------------------
	充電器一覧のダッシュボード（views/tables.php）
	供給中の合計電力と、ステートごとの台数のタイル（押すとそのステートで絞り込み）
-----------------------------------------------------------------*/
.dash { display:flex; flex-wrap:wrap; gap:10px; margin:0 0 24px; }
.dash-power { flex:1 1 220px; border:1px solid #dee2e6; border-radius:8px; padding:12px 16px; background:#fff; }
.dash-power .lbl { font-size:12px; color:#6c757d; }
.dash-power .val { font-size:30px; font-weight:700; line-height:1.2; font-variant-numeric:tabular-nums; }
.dash-power .val small { font-size:15px; font-weight:600; margin-left:2px; }
.dash-power .sub { font-size:12px; color:#6c757d; }
.dash-tiles { flex:3 1 520px; display:flex; flex-wrap:wrap; gap:8px; align-content:flex-start; }
.dash-tile { min-width:104px; border:1px solid #dee2e6; border-radius:8px; padding:8px 12px; background:#fff; cursor:pointer; text-align:left; transition:box-shadow .15s; }
.dash-tile:hover { box-shadow:0 1px 4px rgba(0,0,0,.15); }
.dash-tile.active { outline:2px solid #212529; outline-offset:1px; }
.dash-tile.zero { opacity:.45; }
.dash-tile .n { display:block; font-size:22px; font-weight:700; line-height:1.2; font-variant-numeric:tabular-nums; }
.dash-tile .badge { font-size:11px; }
.state-filter { font-size:14px; margin-left:8px; font-weight:normal; color:#495057; }

/* パスキーの管理画面（views/passkey.php） */
.passkey-page { max-width: 760px; }
