/* 관리자 화면 배치 (부품 · 토큰은 sim.css를 그대로 씀) */
body.admin { background: #f4f6f9; font-size: 15px; }
.adm { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.adm-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--c-navy); color: #c9d4e3; padding: 18px 0 30px; }
.adm-side .brand { display: block; padding: 0 20px 16px; color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.12); }
.adm-side .brand small { display: block; font-weight: 400; font-size: 12px; color: #9fb0c8; }
.adm-side h2 { margin: 18px 20px 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: #7f93b0; }
.adm-side ul { margin: 0; padding: 0; list-style: none; }
.adm-side a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 20px; color: #dbe4f0; text-decoration: none; font-size: 14px; }
.adm-side a:hover { background: rgba(255,255,255,.06); color: #fff; }
.adm-side a[aria-current="page"] { background: var(--c-blue); color: #fff; font-weight: 600; }
.adm-side a .next { font-size: 11px; color: #8ea3c0; }
.adm-side a[aria-current="page"] .next { color: #dbe9ff; }
.adm-main { min-width: 0; }
.adm-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 28px; background: #fff; border-bottom: 1px solid #e3e6ea; position: sticky; top: 0; z-index: 10; }
.adm-top .who { font-size: 14px; color: #555; }
.adm-top .who strong { color: var(--c-text-strong); }
.adm-top form { display: inline; }
.adm-body { padding: 26px 28px 60px; }
.adm-body h1 { margin: 0 0 4px; font-size: 24px; font-weight: 600; color: var(--c-text-strong); }
.adm-body .sub { margin: 0 0 22px; color: #666; font-size: 14px; }
.panel { background: #fff; border: 1px solid #e3e6ea; border-radius: 10px; padding: 20px 22px; margin-bottom: 20px; }
.panel h2 { margin: 0 0 14px; font-size: 17px; font-weight: 600; color: var(--c-navy); display: flex; justify-content: space-between; align-items: center; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.kpi { display: block; padding: 16px 16px 14px; border: 1px solid #e3e6ea; border-radius: 10px; background: #fff; text-decoration: none; color: inherit; }
a.kpi:hover { border-color: var(--c-blue); box-shadow: 0 6px 16px rgba(20,115,230,.12); text-decoration: none; }
.kpi .label { font-size: 13px; color: #555; }
.kpi .num { display: block; margin: 4px 0 2px; font-size: 28px; font-weight: 700; color: var(--c-navy); line-height: 1.2; }
.kpi .num.zero { color: #9aa6b5; }
.kpi .hint { font-size: 12px; color: #888; }
.kpi.late { border-color: #D11A1A; background: #fff5f5; }
.kpi .late-badge { display: inline-block; margin-top: 6px; background: #D11A1A; color: #fff; font-weight: 600; }
.sys-status { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 18px; margin: 0; padding: 0; list-style: none; }
.sys-status li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 10px 12px; border: 1px solid #e3e6ea; border-radius: 8px; font-size: 13px; }
.sys-status .label { color: #333; font-weight: 500; }
.sys-status .val { grid-column: 1 / -1; color: #666; font-size: 12px; }
.today { display: flex; flex-wrap: wrap; gap: 26px; align-items: baseline; }
.today div strong { font-size: 26px; color: var(--c-navy); margin-left: 6px; }
.week { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.week th { padding: 8px; background: var(--c-table-b-head); font-weight: 500; text-align: left; border: 1px solid #dfe5ee; }
.week th.today-col { background: var(--c-blue); color: #fff; }
.week td { vertical-align: top; padding: 6px; border: 1px solid #e8ecf1; height: 74px; }
.chip { display: block; margin-bottom: 4px; padding: 4px 6px; border-radius: 5px; background: #e8f1fd; color: #0b4a9c; font-size: 12px; line-height: 1.35; }
.chip b { display: block; font-weight: 600; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.adm-table th { padding: 10px 12px; background: var(--c-table-b-head); font-weight: 500; text-align: left; border-bottom: 1px solid var(--c-line); white-space: nowrap; }
.adm-table td { padding: 10px 12px; border-bottom: 1px solid #edf0f3; vertical-align: middle; }
.adm-table tr:hover td { background: #fafcff; }
.adm-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.toolbar form { display: flex; gap: 8px; }
.form-grid { display: grid; grid-template-columns: 160px 1fr; gap: 12px 18px; align-items: start; }
.form-grid label { padding-top: 10px; font-weight: 500; color: var(--c-text-strong); }
.form-grid .help { display: block; margin-top: 4px; font-size: 13px; color: #777; font-weight: 400; }
.form-grid input[type="text"], .form-grid input[type="date"], .form-grid input[type="datetime-local"], .form-grid input[type="number"],
.form-grid input[type="email"], .form-grid input[type="time"], .form-grid select, .form-grid textarea { width: 100%; max-width: 640px; min-height: 42px; padding: 8px 12px; font: inherit; border: 1px solid var(--c-line); border-radius: 5px; background: #fff; }
.form-grid textarea { min-height: 260px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; line-height: 1.6; }
.inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline input, .inline select { width: auto !important; }
.flash { padding: 12px 16px; margin-bottom: 16px; border-radius: 8px; background: #e7f4ea; color: #1d5b2c; border: 1px solid #c6e5cf; }
.errors { padding: 12px 16px; margin-bottom: 16px; border-radius: 8px; background: #fdecea; color: #8a1c12; border: 1px solid #f3c4bf; }
.thumb-sm { width: 96px; height: 64px; object-fit: cover; border-radius: 6px; background: var(--c-box); }
.pill { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; background: #eef2f7; color: #445; }
.pill.ok { background: #e3f5ea; color: #1d6b3a; } .pill.off { background: #f3f4f6; color: #888; } .pill.warn { background: #fff1e0; color: #9a4b00; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--c-navy) url(../guide/sub-visual.jpg) center/cover; padding: 20px; }
.login-card { width: 100%; max-width: 420px; padding: 34px 34px 28px; background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.login-card h1 { margin: 14px 0 4px; font-size: 22px; color: var(--c-navy); }
.login-card label { display: block; margin: 14px 0 6px; font-weight: 500; }
.login-card input { width: 100%; min-height: 46px; padding: 0 12px; font: inherit; border: 1px solid var(--c-line); border-radius: 6px; }
.login-card .btn { width: 100%; margin-top: 20px; }
.adm-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,.12); }
.adm-head .brand { border-bottom: 0; }
.adm-menu-btn { display: none; }
.panel { overflow-x: auto; }
.week { min-width: 700px; }
@media (max-width: 960px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: static; height: auto; padding: 12px 0; }
  .adm-head .brand { padding-bottom: 0; }
  .adm-menu-btn { display: inline-flex; align-items: center; min-height: 44px; margin-right: 16px; padding: 0 16px; font: inherit; font-size: 14px; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.4); border-radius: 6px; cursor: pointer; }
  .adm-menu { display: none; padding-top: 6px; }
  .adm-side.open .adm-menu { display: block; }
  .adm-side a { padding: 11px 20px; }
  .adm-top { position: static; flex-wrap: wrap; padding: 10px 16px; }
  .adm-top .who { font-size: 13px; }
  .adm-body { padding: 20px 16px 48px; }
  .panel { padding: 16px; }
  .kpis { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
  .grid2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid label { padding-top: 0; }
}
.role-switch { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #555; }
.role-switch select { min-height: 34px; padding: 0 8px; font: inherit; border: 1px solid var(--c-line); border-radius: 5px; }
.adm-notices { margin: 0; padding: 10px 28px; background: #fffaf0; border-bottom: 1px solid #f1dfbf; font-size: 13px; }
.adm-notices ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.adm-top { flex-wrap: wrap; }
.tabs-adm { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.tabs-adm a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid #d5dbe3; border-radius: 6px; background: #fff; color: #334; text-decoration: none; font-size: 14px; }
.tabs-adm a[aria-current="page"] { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }
.tabs-adm .cnt { min-width: 20px; padding: 0 6px; border-radius: 10px; background: #e8eef7; color: #123; font-size: 12px; text-align: center; }
.tabs-adm a[aria-current="page"] .cnt { background: rgba(255,255,255,.2); color: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 0 0 14px; }
.filters label { display: grid; gap: 2px; font-size: 12px; color: #555; }
.filters input, .filters select { min-height: 38px; padding: 0 10px; font: inherit; font-size: 14px; border: 1px solid var(--c-line); border-radius: 5px; background: #fff; }
.adm-table tr.late td { background: #fff5f5; }
.adm-table td .sub { display: block; font-size: 12px; color: #777; }
.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 6px; background: #f6f8fb; font-size: 14px; }
.checklist .mark { flex: 0 0 auto; min-width: 46px; text-align: center; padding: 1px 6px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.checklist .ok .mark { background: #e3f5ea; color: #1d6b3a; } .checklist .ng .mark { background: #fdecea; color: #a1281b; } .checklist .wait .mark { background: #fff1e0; color: #9a4b00; }
.actions { display: grid; gap: 10px; }
.actions details { border: 1px solid #e3e6ea; border-radius: 8px; background: #fff; }
.actions summary { padding: 10px 14px; cursor: pointer; font-weight: 500; }
.actions details > div, .actions details > form { padding: 0 14px 14px; }
.actions form .row { display: grid; gap: 4px; margin: 8px 0; font-size: 14px; }
.actions input[type=text], .actions input[type=number], .actions input[type=datetime-local], .actions input[type=date], .actions select, .actions textarea { width: 100%; min-height: 38px; padding: 6px 10px; font: inherit; font-size: 14px; border: 1px solid var(--c-line); border-radius: 5px; }
.actions textarea { min-height: 70px; }
.explain { width: 100%; border-collapse: collapse; font-size: 13px; }
.explain th, .explain td { padding: 6px 8px; border-bottom: 1px solid #edf0f3; text-align: left; }
.explain td.num, .explain th.num { text-align: right; font-variant-numeric: tabular-nums; }
.explain tfoot td { font-weight: 600; border-top: 2px solid #cfd8e3; }
.grid3 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .grid3 { grid-template-columns: 1fr; } }
.room-grid { border-collapse: collapse; font-size: 11px; }
.room-grid th, .room-grid td { border: 1px solid #e3e8ef; padding: 2px 3px; text-align: center; }
.room-grid thead th { background: #eef3fa; font-weight: 500; min-width: 22px; } .room-grid thead th.we { color: #b3261e; }
.room-grid th[scope="row"] { text-align: left; white-space: nowrap; background: #fafbfd; font-weight: 500; }
.room-grid .cell { width: 22px; height: 22px; }
.room-grid .cell a, .room-grid .cell span { display: block; color: inherit; text-decoration: none; font-weight: 600; }
.room-grid .cell.confirmed { background: #1473E6; color: #fff; } .room-grid .cell.internal { background: #6b7280; color: #fff; }
.room-grid .cell.tentative { background: #ffe0b2; color: #7a3b00; }
.day-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.day-grid .d { min-height: 64px; padding: 4px 6px; border: 1px solid #e3e8ef; border-radius: 6px; font-size: 12px; background: #fff; }
.day-grid .d.hol { background: #fff1f0; } .day-grid .d.we { background: #f7f8fa; } .day-grid .d strong { display: block; }
.day-grid form { margin-top: 4px; }
.day-grid select { width: 100%; font-size: 11px; }
@media print { .adm-side, .adm-top, .filters, .tabs-adm, .adm-notices { display: none !important; } .adm { display: block; } }
.explain td .sub { display: block; font-size: 12px; color: #777; }
.filters input[type="checkbox"], .filters input[type="radio"] { min-height: 0; width: 18px; height: 18px; padding: 0; }

/* OTP · 권한표 */
.otp-card{max-width:560px}
.otp-setup{display:flex;flex-wrap:wrap;gap:16px 24px;align-items:flex-start;margin:16px 0}
.otp-steps{flex:1 1 260px;margin:0;padding-left:20px;line-height:1.7}
.otp-qr{margin:0;text-align:center}
.otp-qr svg{width:200px;height:200px;display:block;margin:0 auto 8px;background:#fff}
.otp-key{display:inline-block;font-size:15px;letter-spacing:.06em;word-break:break-all;max-width:240px}
.otp-form{max-width:360px}
.otp-form label{display:block;margin:12px 0 4px;font-weight:600}
.otp-form input{width:100%;min-height:44px;padding:0 12px;border:1px solid #ccd;border-radius:4px;font-size:18px;letter-spacing:.1em}
.otp-form .btn{margin-top:16px}
.otp-field input{width:96px;min-height:38px;padding:0 8px;border:1px solid #ccd;border-radius:4px;letter-spacing:.1em}
.recovery-codes{columns:2;gap:24px;font-size:17px;line-height:2}
.perm-matrix-wrap{overflow:auto;max-height:70vh;border:1px solid #e3e6ee;border-radius:6px}
.perm-matrix{min-width:900px;margin:0}
.perm-matrix thead th{position:sticky;top:0;background:#f5f7fb;z-index:2;font-size:12px;vertical-align:bottom;white-space:normal;min-width:64px}
.perm-matrix tbody th{text-align:left;font-weight:500;min-width:220px;position:sticky;left:0;background:#fff;z-index:1}
.perm-matrix td.c{text-align:center}
.perm-matrix td.c input{width:18px;height:18px}
.perm-matrix td.changed{background:#fff4d6;outline:2px solid #e8a600;outline-offset:-2px}
@media (max-width:600px){.recovery-codes{columns:1}.otp-qr svg{width:180px;height:180px}}
@media print{.recovery-codes{columns:2}}
