/* Admin back-office styles (phase 2a, checkpoint C4). Loaded after css/main.css — reuses its
   CSS variables (--bg, --surface, --text, --muted, --line, --accent, --danger, --warn, --success,
   --muted-bg, --sim-tag, --focus) instead of redefining them. */

.admin-shell { max-width: 1280px; margin: 0 auto; padding: 0 16px 40px; }

/* ---- login screen ---- */
.admin-login-wrap {
  max-width: 420px;
  margin: 48px auto;
  padding: 0 16px;
}
.admin-login-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.admin-login-card h1 { font-size: 1.3rem; margin-top: 0; }
#gsi-button-host { display: flex; justify-content: center; margin: 16px 0; min-height: 44px; }
.admin-login-divider { color: var(--muted); margin: 18px 0 10px; font-size: 0.85rem; }
.admin-backup-details { text-align: left; margin-top: 8px; }
.admin-backup-details summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.admin-backup-form { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.admin-backup-form input { width: 100%; }
.admin-dev-login { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 12px; text-align: left; }
.admin-dev-login .field-row { display: flex; gap: 8px; }
.admin-dev-login input { flex: 1; min-width: 0; }

/* ---- app shell ---- */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 0 4px;
}
.admin-header h1 { font-size: 1.25rem; margin: 0; }
.admin-me { color: var(--muted); font-size: 0.85rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.admin-tabbar {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin: 10px 0 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.admin-tabbar button {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}
.admin-tabbar button.active { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }

.admin-panel-body { min-height: 200px; }
.admin-panel-body.loading { opacity: 0.6; }

.admin-loading-block { text-align: center; padding: 60px 16px; color: var(--muted); }
.admin-spinner {
  width: 32px; height: 32px; margin: 0 auto 14px;
  border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%;
  animation: admin-spin 0.8s linear infinite;
}
@keyframes admin-spin { to { transform: rotate(360deg); } }

/* ---- toolbars / controls shared across tabs ---- */
.admin-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.admin-toolbar label { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 600; }
.admin-toolbar .select-input { min-height: 38px; }
.admin-inline-check { display: flex; align-items: center; gap: 6px; font-weight: 500 !important; }
.admin-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.admin-seg button { border: none; background: var(--surface); color: var(--text); padding: 7px 14px; cursor: pointer; font-weight: 600; font-size: 0.85rem; }
.admin-seg button.active { background: var(--accent); color: var(--accent-contrast); }
.admin-seg button + button { border-left: 1px solid var(--line); }

/* ---- tables ---- */
.admin-table { border-collapse: collapse; width: 100%; font-size: 0.88rem; }
.admin-table th, .admin-table td { border: 1px solid var(--line); padding: 6px 9px; white-space: nowrap; }
.admin-table thead th { background: var(--muted-bg); position: sticky; top: 0; z-index: 1; }
.admin-table td.num, .admin-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.admin-table td.left, .admin-table th.left { text-align: left; white-space: normal; }
.admin-table tbody tr:hover { background: var(--muted-bg); }
.admin-table tr.group-row td { background: var(--muted-bg); font-weight: 700; text-align: left; }
.admin-table tr.subtotal-row td { background: var(--muted-bg); font-weight: 700; }
.admin-table tr.grand-row td { background: var(--muted-bg); font-weight: 700; border-top: 2px solid var(--accent); }
.admin-table tr.zero-row { opacity: 0.55; }
.admin-table-wide { min-width: 1000px; }

/* ---- heatmap (tab 4) ---- */
.heatmap-cell { text-align: right; font-variant-numeric: tabular-nums; color: #111; font-weight: 600; }
.heatmap-cell.hm-lo { color: var(--text); }

/* ---- badges / flags ---- */
.badge-flag-over { background: var(--warn-bg); color: var(--warn); }
.badge-flag-short { background: var(--danger-bg); color: var(--danger); }
.badge-src-admin { background: var(--sim-tag); color: #fff; }
.badge-src-stat68 { background: var(--muted-bg); color: var(--muted); }

/* ---- progress bars (tab 3) ---- */
.budget-bar-row { margin: 10px 0 16px; }
.budget-bar-label { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 4px; }
.budget-bar-track { background: var(--muted-bg); border-radius: 999px; height: 14px; overflow: hidden; }
.budget-bar-fill { height: 100%; background: var(--accent); border-radius: 999px 0 0 999px; }
.budget-bar-fill.over-budget { background: var(--danger); }

/* ---- forms / cards ---- */
.admin-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.admin-card h2 { font-size: 1.05rem; margin-top: 0; }
.admin-card h3 { font-size: 0.95rem; }
.limit-input { width: 68px; min-height: 36px; text-align: right; border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; background: var(--surface); color: var(--text); }
.limit-input.saved { border-color: var(--success); }
.limit-input.save-error { border-color: var(--danger); background: var(--danger-bg); }
.cell-status { font-size: 0.75rem; margin-left: 4px; }
.cell-status.ok { color: var(--success); }
.cell-status.err { color: var(--danger); }

/* ---- modal ---- */
.admin-modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45); display: flex; align-items: center;
  justify-content: center; z-index: 50; padding: 16px;
}
.admin-modal {
  background: var(--surface); border-radius: 12px; padding: 20px; max-width: 480px; width: 100%;
  max-height: 86vh; overflow-y: auto;
}
.admin-modal h2 { margin-top: 0; font-size: 1.1rem; }
.admin-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.hidden-editor-grid { display: grid; gap: 4px; }
.hidden-editor-step { font-weight: 700; margin: 10px 0 4px; }
.hidden-editor-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 0.88rem; }

/* ---- pcu chips ---- */
.pcu-group-tag { font-size: 0.75rem; color: var(--muted); }

.admin-note { font-size: 0.85rem; color: var(--muted); }
.admin-err-text { color: var(--danger); font-size: 0.88rem; margin-top: 6px; }
.admin-ok-text { color: var(--success); font-size: 0.88rem; margin-top: 6px; }

@media (max-width: 600px) {
  .admin-header { flex-direction: column; align-items: flex-start; }
  .admin-card { padding: 12px; }
}



/* ---- phase 2a additions ---- */
.small { font-size: 0.8rem; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.admin-me .badge { white-space: nowrap; }
.admin-tabbar { flex-wrap: nowrap; }
.admin-panel { display: none; min-width: 0; }
.admin-panel.active { display: block; }

.round-row { display: flex; gap: 24px; flex-wrap: wrap; align-items: stretch; }
.round-box { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.round-label { color: var(--muted); font-size: 0.85rem; }
.admin-table .status-cell { white-space: normal; min-width: 240px; }
.admin-table .actions-cell { white-space: normal; }
.note-line { margin-top: 4px; padding: 4px 8px; border-left: 3px solid var(--warn); background: var(--warn-bg); color: var(--warn); font-size: 0.82rem; white-space: normal; border-radius: 4px; }
.pcu-group-tag { font-size: 0.75rem; color: var(--muted); }
.admin-table .name-cell { white-space: normal; min-width: 220px; }
.admin-table .badge { white-space: nowrap; }
.admin-table td.code-cell { white-space: nowrap; font-variant-numeric: tabular-nums; }
.admin-table th.sortable { cursor: pointer; }
.admin-table td.zero { color: var(--muted); opacity: .6; }

/* totals tab */
.exp-btn { border: none; background: none; color: var(--accent); cursor: pointer; font-size: 0.95rem; width: 22px; padding: 0; }
.exp-btn:disabled { visibility: hidden; }
.breakdown-row > td { background: var(--muted-bg); padding: 6px 8px; }
.mini-table { font-size: 0.8rem; width: auto; }
.mini-table th, .mini-table td { padding: 2px 6px; text-align: right; }
.mini-table th.left { text-align: left; }
.mini-table .pcu-mini { font-weight: 400; font-size: 0.7rem; color: var(--muted); max-width: 70px; overflow: hidden; text-overflow: ellipsis; }
.mini-table tr.tot th, .mini-table tr.tot td { font-weight: 700; border-top: 2px solid var(--line); }
.print-title { display: none; }

/* forms */
.admin-form-field { display: block; margin: 10px 0; }
.admin-form-field > span { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 4px; }
.admin-form-field input[type="text"], .admin-form-field input[type="email"], .admin-form-field input[type="number"], .admin-form-field input[type="date"],
.admin-form-field input[type="password"], .admin-form-field textarea, .admin-form-field select {
  width: 100%; max-width: 420px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font-family: inherit;
}
.admin-modal .admin-form-field input, .admin-modal .admin-form-field textarea { max-width: none; }
.admin-modal.wide { max-width: 640px; }
.budget-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 8px; }
.pw-grid { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pw-grid input, .admin-toolbar input[type="month"], .admin-toolbar input[type="file"], .unlock-form input, .admin-toolbar input[type="search"] {
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font-family: inherit; min-width: 0;
}
.admin-toolbar input[type="file"] { max-width: 100%; }
.search-input { min-width: 200px; }
.unit-checks { display: flex; gap: 14px; flex-wrap: wrap; }
.unlock-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin: 10px 0; }
.unlock-form label { display: flex; flex-direction: column; gap: 3px; font-size: 0.85rem; font-weight: 600; }
.unlock-form select { max-width: 260px; }
.preview-box { border: 1px dashed var(--accent); border-radius: 10px; padding: 12px; margin-top: 12px; }
.preview-box h3 { margin: 12px 0 6px; }
.table-scroll.short { max-height: 280px; overflow-y: auto; }
.table-scroll.tall { max-height: 520px; overflow-y: auto; }
.warn-card { border-color: var(--warn); background: var(--warn-bg); color: var(--warn); }
.admin-card hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

/* toast */
.admin-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 10px; font-size: 0.9rem; z-index: 80; max-width: calc(100vw - 32px); transition: opacity .2s, transform .2s; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.admin-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.admin-toast.ok { background: var(--success); color: #fff; }
.admin-toast.err { background: var(--danger); color: #fff; }

/* mobile */
@media (max-width: 600px) {
  .admin-shell { padding: 0 12px 32px; }
  .admin-tabbar { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; }
  .round-row { gap: 12px; }
  .admin-toolbar { gap: 8px; }
  .admin-toolbar .select-input { max-width: 100%; }
  .search-input { min-width: 0; width: 100%; }
  .admin-toolbar label { flex-wrap: wrap; max-width: 100%; min-width: 0; }
  .admin-toolbar input[type="file"] { width: 100%; }
  .admin-modal { padding: 14px; }
  .admin-form-field input, .admin-form-field select, .admin-form-field textarea { max-width: none !important; }
}

/* print (ใบจัดของ) */
@media print {
  .admin-tabbar, .admin-header, .app-footer, .admin-toolbar, .no-print, .admin-toast, .exp-btn { display: none !important; }
  .admin-panel:not(.active) { display: none !important; }
  .print-title { display: block; margin: 0 0 8px; font-size: 1.1rem; }
  .admin-card { border: none; padding: 0; }
  body { background: #fff !important; color: #000 !important; font-size: 12px; }
  .admin-shell { max-width: none; padding: 0; }
  .table-scroll { overflow: visible !important; max-height: none !important; }
  .admin-table { font-size: 11px; }
  .admin-table th, .admin-table td { padding: 2px 5px; }
  .admin-table thead th { position: static; }
  .admin-table tr { page-break-inside: avoid; }
  .admin-table .name-cell { min-width: 0; }
}

/* ---- form editor (tab 10, phase 2d) ---- */
.t10-head-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.t10-head-row h2 { margin-bottom: 6px; }
.t10-cur { font-size: 0.9rem; margin: 4px 0 10px; }
.t10-ver-bar { margin-bottom: 0; }
.t10-ver-bar label { flex-wrap: wrap; }
.t10-ver-bar .select-input { max-width: 100%; min-width: 0; }
.t10-dirty-chip { font-size: 0.8rem; }

.t10-strip { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 2px 0 8px; margin-bottom: 8px; }
.t10-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font-size: 0.85rem; white-space: nowrap;
}
.t10-chip-no { font-weight: 700; min-width: 1.2em; text-align: center; }
.t10-chip-n { font-size: 0.75rem; color: var(--muted); }
.t10-chip.active { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
.t10-chip.active .t10-chip-n { color: inherit; opacity: 0.8; }
.t10-chip.closed { opacity: 0.55; border-style: dashed; }
.t10-page-actions { margin-bottom: 0; }

.t10-fields-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 14px; }
.t10-fields-grid .admin-form-field { margin: 6px 0; }
.t10-fields-grid .admin-form-field input, .t10-fields-grid .admin-form-field select { max-width: none; width: 100%; }

.t10-counter { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.t10-counter.over { color: var(--danger); }
.t10-scroll { max-height: 70vh; overflow: auto; }
.t10-table { min-width: 860px; }
.t10-table td { vertical-align: middle; }
.t10-in { width: 100%; min-height: 34px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); font-family: inherit; font-size: 0.88rem; }
.t10-in-name { min-width: 260px; }
.t10-in-unit { width: 80px; }
.t10-in-price { width: 96px; text-align: right; }
.t10-in.bad { border-color: var(--danger); background: var(--danger-bg); }
.t10-in-section { font-weight: 700; }
.t10-section-row td { background: var(--muted-bg); }
.t10-item-row.t10-closed td { opacity: 0.5; }
.t10-item-row.t10-closed td.t10-status-cell { opacity: 1; }
.t10-item-row.t10-new td.code-cell { color: var(--success); font-weight: 700; }
.admin-table tr.t10-focus td { box-shadow: inset 0 2px 0 var(--focus); }
.admin-table tr.t10-error td { background: var(--danger-bg); }
.t10-status-cell { white-space: nowrap; }
.t10-order-cell { white-space: nowrap; text-align: center; }
.t10-icon-btn { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 6px; min-width: 30px; min-height: 30px; cursor: pointer; font-size: 0.75rem; }
.t10-icon-btn:disabled { opacity: 0.35; cursor: default; }
.t10-move { max-width: 170px; min-height: 32px; font-size: 0.82rem; }
.t10-row-actions { margin: 12px 0 0; }
.t10-closed td { opacity: 0.55; }

.t10-footer {
  position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; box-shadow: 0 -4px 14px rgba(0,0,0,.08);
}
.t10-foot-info { flex: 1 1 220px; min-width: 0; }
.t10-foot-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.t10-diff-summary { font-weight: 600; }
.t10-diff-list { margin: 4px 0 10px; padding-left: 20px; font-size: 0.88rem; }
.t10-ro-card h3 { margin: 16px 0 6px; }

@media (max-width: 600px) {
  .t10-footer { padding: 8px 10px; }
  .t10-foot-btns { width: 100%; }
  .t10-foot-btns .btn { flex: 1 1 auto; }
  .t10-fields-grid { grid-template-columns: 1fr; }
  .t10-in-name { min-width: 200px; }
}
.t10-strip { position: relative; scroll-behavior: auto; }
@media (max-width: 600px) {
  .t10-foot-info { display: none; }
  .t10-foot-btns { flex-wrap: nowrap; gap: 6px; }
  .t10-foot-btns .btn { min-height: 38px; padding: 4px 8px; font-size: 0.8rem; white-space: normal; line-height: 1.2; }
}

/* ---- 2c: จ่ายจริง tab + unit strip (status tab) ---- */
.badge-issued { background: var(--success); color: #fff; }
.unit-strip-line { margin-top: 4px; }
.unit-strip { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 0.8rem; white-space: normal; }
.unit-pill { padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.unit-pill.unit-done { background: var(--success-bg); color: var(--success); border-color: var(--success); font-weight: 700; }
.unit-pill.unit-wait { background: var(--warn-bg); color: var(--warn); border-color: var(--warn); }
.unit-pill.unit-none { color: var(--muted); }
.unit-sep { color: var(--muted); }

.t2b-item-label { min-width: 0; max-width: 100%; }
.t2b-item-select { max-width: min(520px, 100%); min-width: 0; }
#t2b-filter { min-width: 0; max-width: 220px; }
.t2b-head h2 { margin-bottom: 4px; }
.t2b-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0; }
.t2b-strip { margin: 6px 0 2px; }
.t2b-unit-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.t2b-unit-head h3 { margin: 0; font-size: 1.05rem; }
.t2b-unit-btns { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.t2b-unit-done { border-left: 4px solid var(--success); }
.t2b-table .name-cell { min-width: 180px; }
.t2b-table td.t2b-in-cell { text-align: right; vertical-align: top; }
.t2b-in { width: 72px; min-height: 34px; text-align: right; font-size: 0.95rem; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); font-variant-numeric: tabular-nums; }
.t2b-in:disabled, .t2b-reason:disabled, .t2b-note:disabled { background: var(--muted-bg); color: var(--muted); }
.t2b-in::placeholder { color: var(--muted); opacity: 0.7; }
.t2b-hint { color: var(--danger); font-size: 0.75rem; min-height: 0; white-space: nowrap; }
.t2b-reason-cell { min-width: 150px; }
.t2b-reason { min-height: 34px; font-size: 0.85rem; max-width: 170px; }
.t2b-note { display: block; margin-top: 4px; width: 100%; min-width: 140px; min-height: 32px; font-size: 0.85rem; padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); }
.t2b-note[hidden] { display: none; }
.admin-table tr.t2b-changed td { background: var(--warn-bg); }
.admin-table tr.t2b-short td.t2b-gop, .admin-table tr.t2b-short td.t2b-gpp { color: var(--danger); font-weight: 700; }
.t2b-in.input-error, .t2b-reason.input-error, .t2b-note.input-error { border-color: var(--danger); box-shadow: 0 0 0 2px var(--danger-bg); }
.t2b-done-cell { text-align: center; }
.t2b-footer {
  position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 10px;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}
.t2b-footer [hidden], .t2b-unit [hidden] { display: none !important; }
.t2b-foot-btns { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.t2b-err { margin-top: 0; }
.t2b-help { margin-top: 4px; }
@media (max-width: 600px) {
  .t2b-unit-btns { margin-left: 0; }
  .t2b-foot-btns { margin-left: 0; }
  #t2b-filter { max-width: 100%; flex: 1 1 100%; }
  .t2b-item-label { flex-wrap: wrap; }
}

/* ---- tab 11: นำเข้า / เปิดปีงบใหม่ (2e) ---- */
.t11-steps { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; padding: 0; margin: 10px 0 0; }
.t11-steps li { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.88rem; background: var(--surface); }
.t11-steps li.active { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.t11-steps li.done { color: var(--success); }
.t11-step-no { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--muted-bg); font-size: 0.75rem; }
.t11-steps li.active .t11-step-no { background: var(--accent); color: var(--accent-contrast); }
.t11-fy-input { width: 96px; }
.t11-src-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 12px 0; }
.t11-src { border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-width: 0; }
.t11-src h4 { margin: 0 0 8px; }
.t11-src input[type="file"] { max-width: 100%; }
.t11-nav { margin-top: 14px; }
.t11-details { margin: 8px 0; }
.t11-details summary { cursor: pointer; color: var(--accent); }
.t11-warn-list, .t11-sum { margin: 4px 0 8px; padding-left: 20px; }
.t11-counts { font-size: 0.85rem; color: var(--muted); }
.t11-map-table td { vertical-align: top; }
.t11-map-table .name-cell { min-width: 200px; }
.t11-sel-cell { min-width: 260px; }
.t11-sel { max-width: 360px; width: 100%; min-height: 34px; font-size: 0.85rem; }
.t11-kind { display: inline-block; margin: 0 0 4px; }
.t11-cur { color: var(--muted); margin-top: 3px; max-width: 360px; }
.t11-ok-cell { text-align: center; }
.t11-ok-cell input { width: 20px; height: 20px; }
.admin-table tr.t11-todo td { background: var(--warn-bg); }
.admin-table tr.t11-dup td { background: var(--danger-bg); }
.t11-mark { text-align: center; font-weight: 700; }
#t11-plan-tbl td.small { white-space: nowrap; }
.t11-mode { font-size: 1rem; }
@media (max-width: 600px) {
  .t11-src-grid { grid-template-columns: 1fr; }
  .t11-steps li { padding: 4px 8px; font-size: 0.8rem; }
  .t11-sel-cell { min-width: 220px; }
  .t11-map-table .name-cell { min-width: 160px; }
  .t11-nav .btn { flex: 1 1 auto; }
}
