/* ============================================================
   Formula X Cloud - Styles
   ============================================================ */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --bg: #f1f5f9;
  --card: #ffffff;
  --text: #1e293b;
  --text-sub: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --pt: #e87040;
  --fc: #3b82f6;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --mobile-nav-height: 72px;
}

/* ── Formula 모드 다크 테마 (localStorage + 시스템 연동) ── */
:root[data-formula-theme="dark"] {
  color-scheme: dark;
  --primary-dark: #818cf8;
  --bg: #0f172a;
  --bg-sub: #1e293b;
  --card: #1e293b;
  --text: #f1f5f9;
  --text-sub: #94a3b8;
  --text-muted: #64748b;
  --border: #334155;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

:root[data-formula-theme="dark"] .main-nav {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

:root[data-formula-theme="dark"] .nav-tab:hover {
  background: rgba(99, 102, 241, 0.12);
}

:root[data-formula-theme="dark"] .role-card {
  background: var(--card);
  color: var(--text);
}

:root[data-formula-theme="dark"] .role-card:hover {
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

:root[data-formula-theme="dark"] .mobile-context-bar {
  background: rgba(30, 41, 59, 0.97);
  color: var(--text-sub);
}

:root[data-formula-theme="dark"] .mobile-nav-bottom {
  background: rgba(30, 41, 59, 0.98);
}

:root[data-formula-theme="dark"] .mobile-nav-tab,
:root[data-formula-theme="dark"] .mobile-more-toggle,
:root[data-formula-theme="dark"] .mobile-more-tab {
  background: #334155;
  color: var(--text-sub);
}

:root[data-formula-theme="dark"] .mobile-more-toggle {
  background: var(--card);
}

:root[data-formula-theme="dark"] .mobile-more-sheet {
  background: var(--card);
}

:root[data-formula-theme="dark"] .mobile-more-close {
  background: var(--card);
  color: var(--text-sub);
}

:root[data-formula-theme="dark"] .profit-table-wrap {
  border-color: var(--border);
  background: var(--card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

:root[data-formula-theme="dark"] .profit-table th,
:root[data-formula-theme="dark"] .profit-table td {
  border-bottom-color: #334155;
}

:root[data-formula-theme="dark"] .profit-table thead th {
  background: #334155;
  color: #cbd5e1;
}

:root[data-formula-theme="dark"] .activity-table-wrap .profit-table thead th {
  background: #334155;
  box-shadow: 0 1px 0 0 var(--border);
}

:root[data-formula-theme="dark"] .activity-table-wrap .profit-table thead th:last-child {
  box-shadow: 0 1px 0 0 var(--border);
}

:root[data-formula-theme="dark"] .activity-table-wrap .profit-table thead th:nth-child(2n) {
  background: #3d4f63;
}

:root[data-formula-theme="dark"] .activity-table-wrap .profit-table thead th:nth-child(2n+1):not(:first-child) {
  background: #334155;
}

:root[data-formula-theme="dark"] .activity-table-wrap .profit-table tbody td:nth-child(2n) {
  background: #1e293b;
}

:root[data-formula-theme="dark"] .activity-table-wrap .profit-table tbody td:nth-child(2n+1):not(:first-child) {
  background: #0f172a;
}

:root[data-formula-theme="dark"] .activity-table-wrap .profit-table tbody tr:nth-child(even) td:nth-child(2n) {
  background: #273549;
}

:root[data-formula-theme="dark"] .activity-table-wrap .profit-table tbody tr:nth-child(even) td:nth-child(2n+1):not(:first-child) {
  background: #1e293b;
}

:root[data-formula-theme="dark"] .activity-table-wrap .profit-table tbody tr:hover td:nth-child(2n) {
  background: #475569;
}

:root[data-formula-theme="dark"] .activity-table-wrap .profit-table tbody tr:hover td:nth-child(2n+1):not(:first-child) {
  background: #334155;
}

:root[data-formula-theme="dark"] .activity-table-wrap .profit-table tbody td:first-child {
  background: #0f172a;
}

:root[data-formula-theme="dark"] .activity-table-wrap .profit-table tbody tr:nth-child(even) td:first-child {
  background: #1e293b;
}

:root[data-formula-theme="dark"] .activity-table-wrap .profit-table tbody tr:hover td:first-child {
  background: #334155;
}

:root[data-formula-theme="dark"] .profit-table tbody tr {
  background: #0f172a;
}

:root[data-formula-theme="dark"] .profit-table tbody tr:nth-child(even) {
  background: #1e293b;
}

:root[data-formula-theme="dark"] .profit-table tbody tr:hover {
  background: #334155;
}

:root[data-formula-theme="dark"] .profit-table tbody td:first-child {
  color: #e2e8f0;
}

:root[data-formula-theme="dark"] .fx-modal {
  background: var(--card);
  border-color: var(--border);
}

:root[data-formula-theme="dark"] .fx-modal-header,
:root[data-formula-theme="dark"] .fx-modal-footer {
  border-color: var(--border);
}

:root[data-formula-theme="dark"] .fx-modal-checklist {
  border-color: var(--border);
}

:root[data-formula-theme="dark"] input.form-control,
:root[data-formula-theme="dark"] select.form-control,
:root[data-formula-theme="dark"] textarea.form-control,
:root[data-formula-theme="dark"] .form-control {
  background: #0f172a;
  border-color: var(--border);
  color: var(--text);
}

:root[data-formula-theme="dark"] .admin-sidebar {
  background: var(--card);
  border-color: var(--border);
}

:root[data-formula-theme="dark"] .admin-menu-item {
  color: var(--text-sub);
}

:root[data-formula-theme="dark"] .flatpickr-calendar {
  background: var(--card);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

:root[data-formula-theme="dark"] .flatpickr-months .flatpickr-month,
:root[data-formula-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months,
:root[data-formula-theme="dark"] .flatpickr-current-month .numInputWrapper input {
  background: transparent;
  color: var(--text);
}

:root[data-formula-theme="dark"] span.flatpickr-weekday {
  color: var(--text-muted);
}

:root[data-formula-theme="dark"] .flatpickr-day {
  color: var(--text-sub);
}

:root[data-formula-theme="dark"] .flatpickr-day:hover {
  background: #334155;
  border-color: #334155;
}

:root[data-formula-theme="dark"] .flatpickr-day.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Formula 다크: 지점/필터 입력·네이티브 select ── */
:root[data-formula-theme="dark"] #page-dashboard select,
:root[data-formula-theme="dark"] .branch-selector select {
  background: #0f172a;
  color: var(--text);
  border-color: var(--border);
}

:root[data-formula-theme="dark"] .overview-filter-row select,
:root[data-formula-theme="dark"] .overview-filter-row input[type="date"],
:root[data-formula-theme="dark"] .overview-filter-row input[type="text"] {
  background: #0f172a;
  color: var(--text);
  border-color: var(--border);
}

:root[data-formula-theme="dark"] .overview-filter-row input[type="date"]:disabled,
:root[data-formula-theme="dark"] .overview-filter-row input#overview-date-range:disabled {
  background: #1e293b;
  color: var(--text-muted);
}

:root[data-formula-theme="dark"] .flatpickr-input,
:root[data-formula-theme="dark"] input.flatpickr-input {
  background: #0f172a !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

/* 종합: 매출 구성 박스 */
:root[data-formula-theme="dark"] .overview-sales-split .split-box {
  background: #1e293b;
  border-color: var(--border);
}

:root[data-formula-theme="dark"] .overview-sales-total {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(52, 211, 153, 0.4);
}

:root[data-formula-theme="dark"] .overview-sales-total .label {
  color: #6ee7b7;
}

:root[data-formula-theme="dark"] .overview-sales-total .value {
  color: #34d399;
}

/* 매출 표 */
:root[data-formula-theme="dark"] .sales-table-wrap {
  border-color: var(--border);
  background: var(--card);
}

:root[data-formula-theme="dark"] .sales-table th {
  background: #334155;
  color: #e2e8f0;
  box-shadow: inset 0 -1px 0 var(--border);
}

:root[data-formula-theme="dark"] .sales-table td {
  color: var(--text);
  border-bottom-color: #334155;
}

:root[data-formula-theme="dark"] .sales-amount-track {
  background: #1e293b;
  border: 1px solid rgba(51, 65, 85, 0.9);
  box-sizing: border-box;
}

/* 전체/일별 매출 등 is-total: 밝은 회색 막대 + 밝은 글자 → 대비 소실 방지 */
:root[data-formula-theme="dark"] .sales-amount-fill.is-total {
  background: linear-gradient(90deg, #475569 0%, #64748b 100%);
}

:root[data-formula-theme="dark"] .sales-amount-text {
  color: #f8fafc;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.9);
}

:root[data-formula-theme="dark"] .sales-table .sales-amount-text {
  color: #f8fafc !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

:root[data-formula-theme="dark"] body.mobile-nav-enabled .sales-table-wrap {
  background: var(--card);
  border-color: var(--border);
}

:root[data-formula-theme="dark"] .sales-ratio-track {
  background: #334155;
}

:root[data-formula-theme="dark"] .sales-period-toggle {
  background: var(--card);
  border-bottom-color: var(--border);
}

:root[data-formula-theme="dark"] .sales-month-projection-pill {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.5) 0%, rgba(22, 101, 52, 0.4) 100%);
  border-color: #475569;
}

:root[data-formula-theme="dark"] .sales-month-projection-label {
  color: #93c5fd;
}

:root[data-formula-theme="dark"] .sales-month-projection-value {
  color: #f1f5f9;
}

:root[data-formula-theme="dark"] .sales-month-projection-hint {
  color: var(--text-muted);
}

:root[data-formula-theme="dark"] .sales-month-projection-inline {
  color: #93c5fd;
}

:root[data-formula-theme="dark"] .sales-month-projection-inline-label {
  color: #cbd5e1;
}

:root[data-formula-theme="dark"] .sales-upload-card-header {
  border: 1px solid var(--border);
}

:root[data-formula-theme="dark"] .sales-upload-card-title {
  color: var(--text);
}

:root[data-formula-theme="dark"] .sales-upload-card-toggle:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* 플레이스 테이블·주별 지표 */
:root[data-formula-theme="dark"] .place-table-wrap {
  background: var(--card);
  border-color: var(--border);
}

:root[data-formula-theme="dark"] .place-tab-scroll .place-table-wrap > table thead th {
  background: #334155;
  color: #e2e8f0;
}

:root[data-formula-theme="dark"] .place-weekly-sticky-head {
  background: var(--card);
}

:root[data-formula-theme="dark"] .place-weekly-sticky-head .place-weekly-head-table th {
  background: #334155;
  color: #e2e8f0;
}

:root[data-formula-theme="dark"] .place-weekly-body-table tbody td {
  color: var(--text);
  border-bottom-color: #334155;
}

:root[data-formula-theme="dark"] .place-row-total td {
  background: rgba(250, 204, 21, 0.14) !important;
  color: var(--text) !important;
  border-top-color: var(--border) !important;
}

.place-data-sync-hint-card {
  margin-bottom: 16px;
  background: #eff6ff;
  border: 1px solid #93c5fd;
}

.place-data-sync-hint-title {
  margin: 0;
  font-size: 13px;
  color: #1e40af;
}

.place-data-sync-hint-body {
  margin: 6px 0 0 0;
  font-size: 12px;
  color: #1e3a8a;
  line-height: 1.45;
}

:root[data-formula-theme="dark"] .place-data-sync-hint-card {
  background: rgba(30, 58, 138, 0.35);
  border-color: #3b82f6;
}

:root[data-formula-theme="dark"] .place-data-sync-hint-title {
  color: #bfdbfe;
}

:root[data-formula-theme="dark"] .place-data-sync-hint-body {
  color: #e2e8f0;
}

/* 관리자 페이지 기본 테이블 (브랜드 관리 등) */
:root[data-formula-theme="dark"] #page-admin th {
  background: #334155;
  color: #e2e8f0;
}

:root[data-formula-theme="dark"] #page-admin td {
  color: var(--text);
  border-bottom-color: #334155;
}

:root[data-formula-theme="dark"] #page-admin tr:hover {
  background: rgba(99, 102, 241, 0.08);
}

/* 대시보드: 클래스 없는 일반 table (필요 시만) */
:root[data-formula-theme="dark"] #page-dashboard .card table:not(.profit-table):not(.sales-table):not(.place-weekly-head-table):not(.place-weekly-body-table) th {
  background: #334155;
  color: #e2e8f0;
}

:root[data-formula-theme="dark"] #page-dashboard .card table:not(.profit-table):not(.sales-table):not(.place-weekly-head-table):not(.place-weekly-body-table) td {
  color: var(--text);
  border-bottom-color: #334155;
}

/* 목표 달성률 */
:root[data-formula-theme="dark"] .goal-achievement-conversion-table {
  background: var(--card);
  border-color: var(--border);
}

:root[data-formula-theme="dark"] .goal-achievement-conversion-table thead th {
  background: #334155;
  color: #e2e8f0;
}

:root[data-formula-theme="dark"] .goal-achievement-conversion-table th,
:root[data-formula-theme="dark"] .goal-achievement-conversion-table td {
  border-bottom-color: #334155;
  color: var(--text);
}

:root[data-formula-theme="dark"] .goal-achievement-conversion-label {
  background: #1e293b;
  color: var(--text);
  border-left-color: var(--border);
}

:root[data-formula-theme="dark"] .goal-achievement-unified-table-wrap {
  background: var(--card);
  border-color: var(--border);
}

:root[data-formula-theme="dark"] .goal-achievement-unified-table thead tr.goal-achievement-thead-group th.goal-achievement-th-activity {
  background: #334155;
  color: #e2e8f0;
}

:root[data-formula-theme="dark"] .goal-achievement-unified-table thead tr.goal-achievement-thead-group th.goal-achievement-th-conversion {
  background: #273549;
  color: #e2e8f0;
}

:root[data-formula-theme="dark"] .goal-achievement-unified-table thead tr:not(.goal-achievement-thead-group) th.goal-achievement-th-conversion-col {
  background: #334155;
  color: #e2e8f0;
}

:root[data-formula-theme="dark"] .goal-achievement-unified-table-wrap .goal-achievement-unified-table thead th:first-child {
  background: #334155;
  color: #e2e8f0;
  box-shadow: 2px 0 0 var(--border);
}

:root[data-formula-theme="dark"] .goal-achievement-unified-table-wrap .goal-achievement-unified-table tbody td:first-child {
  background: #0f172a;
  color: #f1f5f9;
  box-shadow: 2px 0 0 var(--border);
}

:root[data-formula-theme="dark"] .goal-achievement-unified-table-wrap .goal-achievement-unified-table tbody tr:nth-child(even) td:first-child {
  background: #1e293b;
}

:root[data-formula-theme="dark"] .goal-achievement-unified-table-wrap .goal-achievement-unified-table tbody tr:hover td:first-child {
  background: #334155;
}

:root[data-formula-theme="dark"] .goal-achievement-unified-table-wrap .goal-achievement-unified-table tbody tr:nth-child(even) td:nth-child(14),
:root[data-formula-theme="dark"] .goal-achievement-unified-table-wrap .goal-achievement-unified-table tbody tr:nth-child(even) td:nth-child(15),
:root[data-formula-theme="dark"] .goal-achievement-unified-table-wrap .goal-achievement-unified-table tbody tr:nth-child(even) td:nth-child(16),
:root[data-formula-theme="dark"] .goal-achievement-unified-table-wrap .goal-achievement-unified-table tbody tr:nth-child(even) td:nth-child(17),
:root[data-formula-theme="dark"] .goal-achievement-unified-table-wrap .goal-achievement-unified-table tbody tr:nth-child(even) td:nth-child(18) {
  background: #1e293b;
}

:root[data-formula-theme="dark"] .goal-achievement-unified-table-wrap .goal-achievement-unified-table tbody td:nth-child(14),
:root[data-formula-theme="dark"] .goal-achievement-unified-table-wrap .goal-achievement-unified-table tbody td:nth-child(15),
:root[data-formula-theme="dark"] .goal-achievement-unified-table-wrap .goal-achievement-unified-table tbody td:nth-child(16),
:root[data-formula-theme="dark"] .goal-achievement-unified-table-wrap .goal-achievement-unified-table tbody td:nth-child(17),
:root[data-formula-theme="dark"] .goal-achievement-unified-table-wrap .goal-achievement-unified-table tbody td:nth-child(18) {
  background: #0f172a;
  color: var(--text);
}

:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table thead th:nth-child(1),
:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table thead th:nth-child(2),
:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table thead th:nth-child(3),
:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table thead th:nth-child(4),
:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table thead th:nth-child(5),
:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table thead th:nth-child(6),
:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table thead th:nth-child(7) {
  background: #334155;
  color: #e2e8f0;
}

:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table thead th:nth-child(7) {
  box-shadow: 2px 0 0 var(--border);
}

:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table tbody td:nth-child(1),
:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table tbody td:nth-child(2),
:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table tbody td:nth-child(3),
:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table tbody td:nth-child(4),
:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table tbody td:nth-child(5),
:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table tbody td:nth-child(6),
:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table tbody td:nth-child(7) {
  background: #0f172a !important;
  color: var(--text) !important;
}

:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table tbody tr:nth-child(even) td:nth-child(1),
:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table tbody tr:nth-child(even) td:nth-child(2),
:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table tbody tr:nth-child(even) td:nth-child(3),
:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table tbody tr:nth-child(even) td:nth-child(4),
:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table tbody tr:nth-child(even) td:nth-child(5),
:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table tbody tr:nth-child(even) td:nth-child(6),
:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table tbody tr:nth-child(even) td:nth-child(7) {
  background: #1e293b !important;
}

:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table tbody tr:hover td:nth-child(1),
:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table tbody tr:hover td:nth-child(2),
:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table tbody tr:hover td:nth-child(3),
:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table tbody tr:hover td:nth-child(4),
:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table tbody tr:hover td:nth-child(5),
:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table tbody tr:hover td:nth-child(6),
:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table tbody tr:hover td:nth-child(7) {
  background: #334155 !important;
}

:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table tbody tr.place-row-total td:nth-child(1),
:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table tbody tr.place-row-total td:nth-child(2),
:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table tbody tr.place-row-total td:nth-child(3),
:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table tbody tr.place-row-total td:nth-child(4),
:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table tbody tr.place-row-total td:nth-child(5),
:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table tbody tr.place-row-total td:nth-child(6),
:root[data-formula-theme="dark"] .goal-achievement-place-table-wrap .profit-table tbody tr.place-row-total td:nth-child(7) {
  background: #1e3a5f !important;
}

/* 관리자: 사용자·브랜드 테이블 보조 */
:root[data-formula-theme="dark"] .admin-users-table .admin-user-branch {
  background: #0f172a;
  border-color: var(--border);
  color: var(--text);
}

:root[data-formula-theme="dark"] .admin-users-table .branch-tag-inline {
  background: #334155;
  color: var(--text);
}

:root[data-formula-theme="dark"] .sales-upload-report .item {
  background: #334155;
  color: var(--text);
}

:root[data-formula-theme="dark"] .profit-table .st-cell-achieved {
  background: rgba(34, 197, 94, 0.22);
  color: #86efac;
}

:root[data-formula-theme="dark"] .profit-table .st-cell-missed {
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
}

:root[data-formula-theme="dark"] .goal-achievement-conversion-mobile {
  background: var(--card) !important;
  border-color: var(--border) !important;
  color: var(--text);
}

.formula-theme-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 8px;
}

.formula-theme-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.formula-theme-select {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-sub);
  cursor: pointer;
  max-width: 92px;
}

:root[data-formula-theme="dark"] .formula-theme-label {
  color: var(--text-muted);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── Auth Pages ── */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}
.auth-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  width: 100%;
  max-width: 420px;
}
.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.auth-logo p {
  font-size: 14px;
  color: var(--text-sub);
  margin-top: 6px;
}
.role-select-intro {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.role-select-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  margin: 0 0 12px;
}
.role-select-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.role-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: center;
}
.role-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(99,102,241,0.12);
}
.role-card-icon {
  font-size: 24px;
  margin-bottom: 6px;
}
.role-card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  display: block;
}
.role-card-desc {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
  display: block;
}
.role-select-hint {
  font-size: 11px;
  margin: 10px 0 0;
}
.auth-card.entry-member .auth-logo p { color: var(--primary); }
@media (max-width: 640px) {
  .role-select-cards { grid-template-columns: repeat(2, 1fr); }
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 6px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}
.signup-type-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.signup-type-option {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.signup-type-option:hover { background: rgba(99,102,241,0.03); border-color: var(--primary-light); }
.signup-type-option input { margin: 0 10px 0 0; vertical-align: middle; }
.signup-type-option span { vertical-align: middle; }
.signup-type-option input:checked + span { font-weight: 700; color: var(--primary); }
.signup-type-option small { display: block; font-size: 12px; margin-top: 4px; margin-left: 22px; }
.onboarding-wait-text { font-size: 14px; line-height: 1.6; color: var(--text-sub); }
.onboarding-wait-text p + p { margin-top: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  width: 100%;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: rgba(99,102,241,0.05); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-xs { padding: 4px 10px; font-size: 11px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-google {
  width: 100%;
  background: #fff;
  color: #334155;
  border: 1px solid var(--border);
}
.btn-google:hover {
  background: #f8fafc;
}

.auth-error {
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
  min-height: 20px;
  margin-bottom: 12px;
}
.auth-link {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-sub);
}
.auth-link a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
.auth-link a:hover { text-decoration: underline; }
.auth-divider {
  margin: 14px 0 12px;
  text-align: center;
  position: relative;
}
.auth-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--border);
}
.auth-divider span {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 10px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--card);
}

/* ── Navigation ── */
.main-nav {
  display: none;
  align-items: stretch;
  justify-content: space-between;
  background: var(--card);
  padding: 14px 24px 16px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
  min-width: 0;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
  padding-right: 16px;
}
.nav-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  transition: color .2s ease, text-shadow .2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo.is-formula {
  color: var(--primary);
}
.nav-logo.is-bemove {
  color: #0ea5e9;
  text-shadow: 0 0 16px rgba(14, 165, 233, 0.2);
}
.nav-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.nav-tab {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-tab:hover { background: rgba(99,102,241,0.06); }
.nav-tab.active { background: var(--primary); color: #fff; }

.mobile-nav-shell {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1300;
  pointer-events: none;
}
.mobile-nav-shell.is-active {
  display: block;
}
.mobile-context-bar {
  pointer-events: auto;
  margin: 0 12px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.97);
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  padding: 8px 12px;
  text-align: center;
  backdrop-filter: blur(8px);
}
.mobile-nav-bottom {
  pointer-events: auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
}
.mobile-primary-tabs {
  grid-column: 1 / span 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.mobile-nav-tab,
.mobile-more-toggle,
.mobile-more-tab {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #f8fafc;
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 6px;
  text-align: center;
  line-height: 1.15;
  white-space: normal;
}
.mobile-nav-tab.active,
.mobile-more-tab.active {
  background: var(--primary);
  color: #fff;
}
.mobile-more-toggle {
  border-color: var(--border);
  background: #fff;
}
.mobile-more-toggle.has-active-child {
  border-color: var(--primary);
  color: var(--primary);
}
.mobile-more-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.mobile-more-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-more-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateY(100%);
  transition: transform .22s ease;
  border-radius: 14px 14px 0 0;
  border-top: 1px solid var(--border);
  background: #fff;
  max-height: min(72vh, 560px);
  overflow: auto;
  padding: 14px 12px calc(14px + env(safe-area-inset-bottom));
  pointer-events: auto;
}
.mobile-more-sheet.is-open {
  transform: translateY(0);
}
.mobile-more-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.mobile-more-close {
  min-height: 38px;
  min-width: 58px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 700;
}
.mobile-more-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.nav-center {
  flex: 1;
  min-width: 0;
}
.nav-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  flex-wrap: nowrap;
  min-height: 58px;
  margin-left: 16px;
}
.nav-right-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}
.nav-right-main { min-height: 28px; }
.nav-right-mode { min-height: 20px; }
.nav-right-mode:empty { display: none; min-height: 0; }
.nav-right span,
.nav-right button,
.nav-right .role-badge,
.nav-right-row span,
.nav-right-row button,
.nav-right-row .role-badge {
  white-space: nowrap !important;
  flex-shrink: 0;
}
.bemove-nav-group {
  flex-basis: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-height: 24px;
  margin-top: -4px;
}
.bemove-nav-group .app-mode-switcher {
  flex-basis: auto;
}
.app-mode-switcher {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}
.app-mode-switcher .app-mode-toggle-text {
  white-space: nowrap !important;
  flex-shrink: 0;
}
.app-mode-toggle-text {
  border: none;
  background: transparent;
  color: #60a5fa;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 4px 0;
  font-size: 12px;
  transition: transform .2s ease, opacity .2s ease, color .2s ease;
}
.app-mode-toggle-text:hover {
  color: #93c5fd;
  transform: translateY(-1px);
}
.app-mode-toggle-text.is-busy {
  opacity: 0.75;
  cursor: wait;
}
.nav-right-mode .app-mode-toggle-text { padding-top: 0; padding-bottom: 0; }

/* 보기 모드 바: 헤더 바로 아래 콘텐츠 상단 (슈퍼 관리자 Bemove 시) */
.bemove-view-as-bar {
  display: flex;
  align-items: center;
  padding: 8px 24px;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
  flex-shrink: 0;
  min-height: 40px;
}
.bemove-view-as-bar .bemove-view-as-switcher {
  margin-right: 0;
}
.bemove-view-as-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-right: 10px;
  min-height: 28px;
  flex-shrink: 0;
}
.nav-right-main .bemove-view-as-switcher {
  margin-right: 0;
  margin-left: 6px;
  min-height: 24px;
}
.nav-right-mode .bemove-view-as-switcher {
  margin-right: 0;
  margin-left: 6px;
  min-height: 24px;
}
.nav-right-main .bemove-view-as-label {
  font-size: 10px;
}
.nav-right-mode .bemove-view-as-label {
  font-size: 10px;
}
.nav-right-main .bemove-view-as-btn {
  padding: 3px 7px;
  font-size: 10px;
}
.nav-right-mode .bemove-view-as-btn {
  padding: 3px 7px;
  font-size: 10px;
}
.bemove-view-as-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}
.bemove-view-as-btn {
  padding: 4px 8px;
  font-size: 11px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text-sub);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.bemove-view-as-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.bemove-view-as-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Formula 모드 보기 전환 (슈퍼 → 브랜드/FC) */
.formula-view-as-switcher .formula-view-as-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
}
.formula-view-as-switcher .formula-view-as-select-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}
.formula-view-as-switcher .formula-view-as-select {
  font-size: 11px;
  padding: 3px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 120px;
  max-width: 180px;
}

.app-mode-transition {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, rgba(59,130,246,0.22), rgba(15,23,42,0.9));
  backdrop-filter: blur(6px);
  animation: modeFxIn .24s ease-out;
}
.app-mode-transition.leave {
  animation: modeFxOut .26s ease-in forwards;
}
.app-mode-transition-panel {
  min-width: 280px;
  max-width: 90vw;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: linear-gradient(145deg, rgba(15,23,42,0.96), rgba(30,41,59,0.92));
  padding: 24px 28px;
  text-align: center;
  box-shadow: 0 24px 50px rgba(2, 6, 23, 0.45);
}
.app-mode-transition-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto 12px;
  border: 3px solid rgba(148, 163, 184, 0.35);
  border-top-color: #22d3ee;
  border-right-color: #60a5fa;
  animation: modeFxSpin .9s linear infinite;
}
.app-mode-transition-title {
  color: #e2e8f0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.app-mode-transition-subtitle {
  margin-top: 6px;
  color: #93c5fd;
  font-size: 13px;
  font-weight: 600;
}
@keyframes modeFxSpin {
  to { transform: rotate(360deg); }
}
@keyframes modeFxIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modeFxOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
.role-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.role-super { background: rgba(239,68,68,0.1); color: var(--danger); }
.role-brand { background: rgba(99,102,241,0.1); color: var(--primary); }
.role-branch { background: rgba(34,197,94,0.1); color: var(--success); }
.role-member { background: rgba(14,165,233,0.1); color: #0284c7; }
.role-duty { background: rgba(100,116,139,0.12); color: var(--text-sub); }

#nav-user-name { font-size: 13px; font-weight: 600; color: var(--text); }
#nav-brand-name { font-size: 12px; color: var(--text-sub); }

/* ── Page Layout ── */
.page { display: none; }
.page-content {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
}

/* 대시보드: 페이지 스크롤 방지 → 플레이스 탭 등 탭 내부만 스크롤, sticky 정상 동작 */
#page-dashboard .page-content {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 56px);
  overflow: hidden;
}
#page-dashboard #tab-content {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#page-dashboard #tab-content > * {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: auto;
}
#page-dashboard #tab-content > .place-tab-scroll {
  height: auto;
}
#page-dashboard #tab-content > .expenses-tab-scroll {
  height: auto;
}

/* ── Cards ── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}
.card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

/* 관리자 카드 헤더: 한 줄에 제목 + 버튼, 브랜드 추가 버튼 크기 축소 */
.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.admin-card-header h3 { margin: 0; }
.btn-add-brand-inline {
  width: auto !important;
  flex-shrink: 0;
}

/* 지점 셀: 태그들을 한 줄에 흐르게 */
.td-branches {
  text-align: left;
  min-width: 140px;
  max-width: 320px;
  vertical-align: middle;
}
.branch-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

/* 지점 태그 (브랜드 관리) - 한 줄에 여러 개 잘 보이도록 컴팩트 */
.branch-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  padding: 2px 6px 2px 8px;
  margin: 0;
  background: var(--border);
  color: var(--text);
  border-radius: 999px;
  white-space: nowrap;
}
.branch-tag .btn-icon {
  padding: 0 2px;
  min-width: 18px;
  height: 18px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  border-radius: 3px;
  font-size: 12px;
  line-height: 1;
  opacity: 0.75;
}
.branch-tag .btn-icon:hover {
  background: rgba(0,0,0,0.1);
  opacity: 1;
}
.branch-tag .btn-branch-delete:hover {
  color: var(--danger, #dc2626);
}

/* ===== 플레이스 대시보드 (확장 프로그램과 동일 UI) ===== */
.table-title { font-size: 16px; font-weight: 700; margin-bottom: 0; color: var(--text); padding: 16px 16px 12px; }
.bar-cell { position: relative; min-width: 60px; height: 28px; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; overflow: hidden; }
.bar-fill { position: absolute; left: 0; top: 2px; bottom: 2px; border-radius: 4px; transition: width 0.3s ease; }
.bar-value { position: relative; z-index: 1; font-weight: 700; font-size: 13px; color: var(--text); }
.funnel-bar-row { display: flex; height: 28px; border-radius: 6px; overflow: hidden; min-width: 120px; }
.funnel-bar-row > div { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.place-row-total td { font-weight: 800 !important; background: rgba(254, 252, 232, 0.6) !important; border-top: 2px solid var(--border); }

/* ── 플레이스 인사이트 카드 (확장 프로그램 스타일) ── */
.insights-card {
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  color: #e2e8f0;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 16px;
}
.insights-card .table-title { color: #f1f5f9; }
.insight-item {
  font-size: 13px;
  line-height: 1.5;
  margin: 6px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.insight-item .tag { margin-right: 4px; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}
.tag-up { background: rgba(34, 197, 94, 0.25); color: #86efac; }
.tag-down { background: rgba(239, 68, 68, 0.25); color: #fca5a5; }
.tag-info { background: rgba(59, 130, 246, 0.25); color: #93c5fd; }
.tag-warn { background: rgba(245, 158, 11, 0.25); color: #fcd34d; }

/* Overview AI chat */
.overview-ai-dock-toggle {
  position: fixed;
  top: 82px;
  right: 18px;
  z-index: 85;
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #312e81;
}
.overview-ai-dock-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.22);
  z-index: 86;
}
.overview-ai-dock-panel {
  position: fixed;
  top: 78px;
  right: 16px;
  width: min(920px, calc(100vw - 32px));
  height: min(78vh, 760px);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
  z-index: 87;
  display: none;
  overflow: hidden;
}
.overview-ai-dock-panel.is-open {
  display: block;
}
.overview-ai-dock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px 0;
}
.overview-ai-dock-panel .overview-ai-chat-subtitle {
  margin: 0 14px 10px;
}
.overview-ai-dock-panel .overview-ai-chat-layout {
  margin: 0 14px 14px;
  height: calc(min(78vh, 760px) - 120px);
  min-height: 0;
}
.overview-ai-dock-panel .overview-ai-chat-sidebar {
  min-height: 0;
}
.overview-ai-dock-panel .overview-ai-chat-main {
  height: 100%;
  min-height: 0;
}
.overview-ai-dock-panel .overview-ai-chat-messages {
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}
.overview-ai-chat-card .table-title {
  padding-bottom: 8px;
}
.overview-ai-chat-subtitle {
  margin: 0 16px 10px;
}
.overview-ai-chat-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 12px;
  margin: 0 16px 16px;
  min-height: 520px;
}
.overview-ai-chat-sidebar {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.overview-ai-chat-history {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  min-height: 0;
}
.overview-ai-history-item {
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.overview-ai-history-item.active {
  border-color: #6366f1;
  background: #e0e7ff;
  color: #312e81;
}
.overview-ai-chat-main {
  min-width: 0;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}
.overview-ai-chat-reco-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}
.overview-ai-reco-btn {
  font-size: 12px;
}
.overview-ai-chat-messages {
  margin: 0;
  padding: 12px;
  min-height: 360px;
  max-height: 520px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}
.overview-ai-msg {
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 8px 10px;
  border-radius: 8px;
}
.overview-ai-msg-assistant {
  background: #f1f5f9;
  color: #0f172a;
}
.overview-ai-msg-user {
  background: #e0e7ff;
  color: #1e1b4b;
  align-self: flex-end;
}
.overview-ai-chat-input-row {
  margin: 10px 0 0;
  display: flex;
  gap: 8px;
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-top: 6px;
}
.overview-ai-chat-input {
  flex: 1 1 0;
  min-width: 0;
}
.overview-ai-chat-send-btn {
  flex: 0 0 auto;
  width: auto;
  padding: 0 10px;
  min-width: 72px;
  white-space: nowrap;
}
@media (max-width: 980px) {
  .overview-ai-dock-toggle {
    top: 72px;
    right: 12px;
  }
  .overview-ai-dock-panel {
    top: 64px;
    right: 8px;
    width: calc(100vw - 16px);
    height: calc(100vh - 84px);
  }
  .overview-ai-dock-panel .overview-ai-chat-layout {
    height: calc(100vh - 220px);
    min-height: 0;
  }
  .overview-ai-chat-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .overview-ai-chat-sidebar {
    min-height: 120px;
  }
  .overview-ai-chat-history {
    max-height: 120px;
  }
  .overview-ai-chat-main {
    min-height: 420px;
  }
  .overview-ai-chat-messages {
    min-height: 260px;
    max-height: 420px;
  }
}

/* 지식 대시보드 플로팅 버튼 (F 모드 전역) */
.knowledge-dashboard-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
  white-space: nowrap;
  width: auto;
  min-width: auto;
  max-width: none;
  height: auto;
}
.knowledge-dashboard-floating-btn:hover {
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}
.knowledge-dashboard-floating-icon {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}
.knowledge-dashboard-floating-text {
  font-size: 14px;
  line-height: 1;
}
.knowledge-dashboard-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.22);
  z-index: 86;
}
.knowledge-dashboard-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: min(920px, calc(100vw - 48px));
  height: min(78vh, 760px);
  max-height: calc(100vh - 48px);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
  z-index: 87;
  display: none;
  overflow: hidden;
}
.knowledge-dashboard-panel.is-open {
  display: block;
}
.knowledge-dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px 0;
}
.knowledge-dashboard-subtitle {
  margin: 0 14px 10px;
}
.knowledge-dashboard-layout {
  margin: 0 14px 14px;
  height: calc(min(78vh, 760px) - 120px);
  min-height: 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 12px;
}
.knowledge-dashboard-sidebar {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.knowledge-dashboard-history {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  min-height: 0;
}
.knowledge-dashboard-main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.knowledge-dashboard-reco-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}
.knowledge-dashboard-reco-btn {
  font-size: 12px;
}
.knowledge-dashboard-messages {
  margin: 0;
  padding: 12px;
  min-height: 360px;
  max-height: 520px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
}
.knowledge-dashboard-input-row {
  margin: 10px 0 0;
  display: flex;
  gap: 8px;
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-top: 6px;
}
.knowledge-dashboard-input {
  flex: 1 1 0;
  min-width: 0;
}
.knowledge-dashboard-send-btn {
  flex: 0 0 auto;
  width: auto;
  padding: 0 10px;
  min-width: 72px;
  white-space: nowrap;
}
@media (max-width: 980px) {
  .knowledge-dashboard-floating-btn {
    bottom: 16px;
    right: 16px;
    padding: 10px 14px;
  }
  .knowledge-dashboard-floating-text {
    display: none;
  }
  .knowledge-dashboard-floating-icon {
    font-size: 18px;
  }
  .knowledge-dashboard-panel {
    bottom: 16px;
    right: 16px;
    width: calc(100vw - 32px);
    height: calc(100vh - 84px);
    max-height: calc(100vh - 32px);
  }
  .knowledge-dashboard-layout {
    height: calc(100vh - 220px);
    grid-template-columns: 1fr;
  }
  .knowledge-dashboard-sidebar {
    min-height: 120px;
  }
  .knowledge-dashboard-history {
    max-height: 120px;
  }
  .knowledge-dashboard-main {
    min-height: 420px;
  }
  .knowledge-dashboard-messages {
    min-height: 260px;
    max-height: 420px;
  }
}

/* ── Bemove Super Dashboard ── */
.bemove-screen {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bemove-title-row h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}
.bemove-hero {
  background: linear-gradient(150deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.24);
}
.bemove-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.bemove-hero-title {
  font-size: 12px;
  color: #93c5fd;
  margin-bottom: 6px;
}
.bemove-hero-mini-grid {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: none;
  margin-left: auto;
  white-space: nowrap;
  overflow: hidden;
}
.bemove-hero-mini {
  text-align: right;
  padding-left: 8px;
  border-left: 1px solid rgba(148, 163, 184, 0.35);
}
.bemove-hero-mini span {
  display: inline;
  font-size: 10px;
  color: #93c5fd;
  opacity: 0.95;
  margin-right: 6px;
}
.bemove-hero-mini strong {
  display: inline;
  margin-top: 0;
  font-size: 13px;
  font-weight: 800;
  color: #e2e8f0;
  white-space: nowrap;
}
.bemove-hero-mini strong em {
  font-style: normal;
  font-weight: 700;
  color: #cbd5e1;
  font-size: 11px;
}
.bemove-hero-value {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
}
.bemove-hero-value span {
  font-size: 14px;
  color: #cbd5e1;
  font-weight: 600;
}
.bemove-hero-rate {
  margin-top: 6px;
  text-align: right;
  font-size: 28px;
  font-weight: 800;
  color: #22c55e;
}
@media (max-width: 1100px) {
  .bemove-hero-head {
    flex-direction: column;
    gap: 8px;
  }
  .bemove-hero-mini-grid {
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .bemove-hero-mini {
    text-align: left;
    border-left: none;
    padding-left: 0;
  }
}
.bemove-stat-approval-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bemove-stat-grid-super-line .bemove-stat-approval-card {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.bemove-stat-grid-super-line .bemove-stat-approval-card .bemove-approval-open-btn {
  align-self: center;
  margin-top: 0;
  margin-left: auto;
}
.bemove-approval-open-btn {
  align-self: flex-end;
  margin-top: 2px;
}
.bemove-approval-modal {
  z-index: 10080;
}
.bemove-approval-modal-dialog {
  width: min(1100px, 96vw);
  max-height: 86vh;
  overflow: auto;
  padding: 16px;
}
.bemove-progress {
  position: relative;
  width: 100%;
  height: 10px;
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}
.bemove-progress > span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e 0%, #38bdf8 100%);
}
.bemove-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}
.bemove-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.bemove-stat div {
  color: var(--text-sub);
  font-size: 12px;
}
.bemove-stat strong {
  display: block;
  margin-top: 5px;
  font-size: 34px;
  line-height: 1.1;
}
.bemove-stat strong span {
  font-size: 14px;
  color: var(--text-sub);
  font-weight: 600;
}
.bemove-stat-grid-compact {
  gap: 8px;
}
.bemove-stat-compact {
  padding: 8px 10px;
  border-radius: 10px;
}
.bemove-stat-compact div {
  font-size: 11px;
}
.bemove-stat-compact strong {
  margin-top: 2px;
  font-size: 20px;
}
.bemove-stat-compact strong span {
  font-size: 11px;
}
.bemove-stat-grid-super-line {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}
.bemove-stat-grid-super-line .bemove-stat-compact {
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  flex-wrap: nowrap;
}
.bemove-stat-grid-super-line .bemove-stat-compact div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}
.bemove-stat-grid-super-line .bemove-stat-compact strong {
  white-space: nowrap;
  flex-shrink: 0;
}
.bemove-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bemove-subtab {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-sub);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}
.bemove-subtab.active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}
.bemove-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 14px;
}
.bemove-panel {
  margin-bottom: 0;
  padding: 16px;
}
.bemove-panel h4 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
}
.bemove-panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.bemove-panel-title-row h4 {
  margin: 0;
}
.bemove-panel-title-row h5 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}
.bemove-panel-meta {
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 700;
}
.bemove-approval-panel {
  margin-top: 10px;
}
.bemove-approval-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bemove-user-role-section {
  margin-bottom: 8px;
}
.bemove-user-role-section:last-child {
  margin-bottom: 0;
}
.bemove-user-row .bemove-edit-field,
.bemove-user-row .bemove-manage-edit {
  display: none;
}
.bemove-user-row.is-editing .bemove-view-field,
.bemove-user-row.is-editing .bemove-manage-view {
  display: none;
}
.bemove-user-row.is-editing .bemove-edit-field,
.bemove-user-row.is-editing .bemove-manage-edit {
  display: block;
}
.bemove-user-main strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bemove-user-email {
  display: block;
  color: #94a3b8;
  font-size: 11px;
  margin-top: 1px;
  word-break: break-all;
  overflow-wrap: break-word;
}
.bemove-user-table-wrap {
  width: 100%;
  max-width: 100%;
  max-height: 420px;
  overflow-x: hidden;
  overflow-y: auto;
}
.profit-table-wrap.bemove-user-table-wrap {
  overflow-x: hidden !important;
}
.bemove-user-manage-table {
  table-layout: fixed;
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
}
/* 직원 권한 테이블만 .profit-table 전역 min-width:980px 적용 제거 → 래퍼 너비에 맞춰 3열 한눈에 표시 */
.bemove-user-table-wrap .bemove-user-manage-table {
  min-width: 0;
}
.bemove-user-manage-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  box-shadow: 0 1px 0 0 #e2e8f0;
  font-weight: 700;
  font-size: 12px;
}
.bemove-user-manage-table th,
.bemove-user-manage-table td {
  vertical-align: middle;
  padding: 3px 4px;
  font-size: 12px;
}
.bemove-user-manage-table th:nth-child(1),
.bemove-user-manage-table td:nth-child(1) {
  padding-left: 6px;
  padding-right: 2px;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}
.bemove-user-manage-table th:nth-child(2),
.bemove-user-manage-table td:nth-child(2) {
  white-space: normal;
  padding-left: 2px;
  padding-right: 3px;
  min-width: 0;
}
.bemove-user-manage-table tbody tr:nth-child(even) td:nth-child(3) {
  background: #fafafa;
}
.bemove-user-manage-table td:nth-child(2) .role-badge {
  white-space: nowrap;
}
.bemove-user-manage-table th:nth-child(3),
.bemove-user-manage-table td:nth-child(3) {
  white-space: nowrap;
  padding-left: 2px;
  padding-right: 4px;
  text-align: center;
  min-width: 0;
}
.bemove-role-select,
.bemove-branch-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  background: #fff;
  font-size: 13px;
}
.bemove-name-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  background: #fff;
  font-size: 13px;
}
.bemove-user-trainer-position {
  margin-top: 1px;
  font-size: 11px;
  font-weight: 700;
  color: #7c3aed;
  line-height: 1.2;
}
.bemove-user-branch-inline {
  margin-top: 0;
  font-size: 10px;
  color: var(--text-sub);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bemove-user-branch-edit {
  margin-top: 4px;
}
.bemove-user-branch-edit label {
  display: block;
  margin-bottom: 2px;
  font-size: 10px;
  color: var(--text-sub);
}
.bemove-user-position-edit {
  margin-top: 6px;
}
.bemove-user-position-edit label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  color: var(--text-sub);
  font-weight: 700;
}
.bemove-trainer-position-select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  background: #fff;
  font-size: 13px;
}
.bemove-admin-month-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}
.bemove-admin-month-row label {
  font-size: 12px;
  color: var(--text-sub);
  font-weight: 700;
}
.bemove-admin-month-row input[type="month"] {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  background: #fff;
  font-size: 13px;
}
.bemove-target-manager-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.bemove-target-manager-controls select,
.bemove-target-manager-controls input[type="month"] {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  background: #fff;
  font-size: 13px;
}
.bemove-position-target-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  background: #fff;
  font-size: 13px;
}
.bemove-branch-checks {
  max-height: 140px;
  overflow-y: auto;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bemove-branch-check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.bemove-branch-check-label input {
  margin: 0;
}
.bemove-view-branches {
  max-width: 240px;
  word-break: break-word;
}
.bemove-manage-view,
.bemove-manage-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  white-space: nowrap;
}
.bemove-icon-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  margin-right: 0;
  padding: 0 2px;
  line-height: 1;
}
.bemove-icon-trash {
  width: 16px;
  height: 16px;
  display: block;
}
.bemove-icon-btn.edit { color: #2563eb; }
.bemove-icon-btn.key { color: #ea580c; }
.bemove-icon-btn.delete { color: #dc2626; }
.bemove-icon-btn.save { color: #16a34a; }
.bemove-icon-btn.cancel { color: #9ca3af; }

.bemove-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: rgba(15, 23, 42, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.bemove-modal {
  width: min(760px, 92vw);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.26);
  overflow: hidden;
}
.bemove-modal-header {
  padding: 24px 28px 12px;
  border-bottom: 1px solid var(--border);
}
.bemove-modal-header h4 {
  margin: 0;
  font-size: 42px;
  line-height: 1.05;
  font-weight: 900;
}
.bemove-modal-header p {
  margin: 8px 0 0;
  color: var(--text-sub);
  font-size: 18px;
  font-weight: 700;
}
.bemove-modal-body {
  padding: 18px 28px;
}
.bemove-modal-warn {
  border: 2px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 20px;
  line-height: 1.45;
}
.bemove-modal-warn p {
  margin: 0 0 10px;
}
.bemove-modal-warn ul {
  margin: 0;
  padding-left: 22px;
}
.bemove-modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 16px 28px 24px;
}
.bemove-modal-footer .btn {
  min-width: 140px;
}
.bemove-branch-hero {
  background: linear-gradient(120deg, #7c3aed 0%, #6d28d9 40%, #4f46e5 100%);
  color: #f5f3ff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 10px 24px rgba(109, 40, 217, 0.25);
}
.bemove-branch-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #ddd6fe;
  margin-bottom: 8px;
}
.bemove-branch-hero-top b {
  font-size: 11px;
  color: #fef3c7;
  background: rgba(15, 23, 42, 0.24);
  border-radius: 999px;
  padding: 3px 8px;
}
.bemove-branch-hero-value {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.05;
}
.bemove-branch-hero-value span {
  font-size: 14px;
  color: #ede9fe;
  font-weight: 700;
}
.bemove-member-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  color: #f5f3ff;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.bemove-member-alert-icon { font-size: 1.2rem; }
.bemove-member-alert-text { flex: 1; }
.bemove-member-alert-text strong { display: block; }
.bemove-member-alert-text small { opacity: 0.9; }
.bemove-member-alert-btn { flex-shrink: 0; color: #4f46e5; }
.bemove-member-alert.is-compact { padding: 8px 10px; border-radius: 10px; margin-bottom: 10px; font-size: 12px; }
.bemove-member-alert.is-compact .bemove-member-alert-icon { font-size: 1rem; }
.bemove-member-alert.is-compact .bemove-member-alert-text strong { font-size: 12px; }
.bemove-member-alert.is-compact .bemove-member-alert-text small { font-size: 11px; }
.bemove-nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 4px; margin-left: 6px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 800; line-height: 1; vertical-align: middle; }
.bemove-member-hero {
  position: relative;
  background: linear-gradient(120deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
  color: #eff6ff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}
.bemove-member-hero h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}
.bemove-member-hero p { margin: 0; opacity: 0.95; }
.bemove-member-hero-refresh {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.9;
}
.bemove-member-section-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.bemove-member-pt-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.bemove-pt-card {
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
.bemove-pt-label { font-size: 12px; color: var(--text-sub); margin-bottom: 4px; }
.bemove-pt-card strong { font-size: 1.4rem; display: block; }
.bemove-pt-total { background: #dbeafe; color: #1e40af; }
.bemove-pt-done { background: #dcfce7; color: #166534; }
.bemove-pt-remain { background: #ffedd5; color: #c2410c; }
.bemove-member-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.bemove-member-progress-label { font-size: 13px; font-weight: 600; min-width: 60px; }
.bemove-member-progress-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bemove-member-progress-bar {
  flex: 1;
  height: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}
.bemove-member-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f97316 0%, #ea580c 100%);
  border-radius: 999px;
}
.bemove-member-progress-pct { font-size: 13px; font-weight: 600; color: var(--text); }
.bemove-member-stage-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.bemove-member-stage-label { font-size: 13px; font-weight: 600; min-width: 70px; }
.bemove-member-stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #ffedd5;
  color: #c2410c;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.bemove-member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.bemove-member-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bemove-member-card h4 { margin: 0 0 4px; }
.bemove-member-card p { flex: 1; margin: 0; }
/* 회원 홈: kcal 네비게이터 */
.bemove-member-kcal-nav { margin-top: 14px; }
.bemove-member-kcal-nav h4 { margin: 0 0 10px; font-size: 16px; }
.bemove-member-kcal-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.bemove-member-kcal-kpis span { border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; background: #f8fafc; display: flex; align-items: center; justify-content: space-between; gap: 8px; white-space: nowrap; min-width: 0; }
.bemove-member-kcal-kpis em { font-style: normal; color: var(--text-sub); font-size: clamp(10px, 1.9vw, 12px); flex: 0 1 auto; min-width: 0; }
.bemove-member-kcal-kpis strong { font-size: clamp(12px, 3.1vw, 16px); color: #0f172a; line-height: 1; letter-spacing: -0.02em; flex: 0 1 auto; min-width: 0; }
.bemove-member-kcal-nav-msg { font-size: 13px; font-weight: 700; color: #1e293b; margin-bottom: 6px; }
.bemove-member-kcal-nav-sub { font-size: 12px; color: var(--text-sub); }
body[data-bemove-role="member"] .nav-tabs .nav-tab { font-size: 0.9rem; }
/* 회원 뷰: 모바일 앱 스타일 하단 탭바 */
body[data-bemove-role="member"] .nav-tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  overflow: visible;
}
body[data-bemove-role="member"] .nav-tabs .nav-tab {
  min-height: 44px;
  margin: 0 2px;
  padding: 8px 4px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
  white-space: normal;
}
body[data-bemove-role="member"] .main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
}
body[data-bemove-role="member"] .nav-left {
  flex: 0 0 auto;
  padding-right: 8px;
}
body[data-bemove-role="member"] #page-dashboard .page-content {
  padding-bottom: calc(86px + env(safe-area-inset-bottom));
}

/* 트레이너 뷰: 상단 헤더 최소화(탭 숨김, 헤더 축소) */
body[data-bemove-role="trainer"] .nav-tabs { display: none !important; }
body[data-bemove-role="trainer"] .main-nav { padding: 8px 16px 10px; min-height: 48px; align-items: center; }
body[data-bemove-role="trainer"] .nav-left { flex: 0 0 auto; padding-right: 12px; }
body[data-bemove-role="trainer"] .nav-logo { font-size: 14px; }
body[data-bemove-role="trainer"] #page-dashboard #tab-content { padding-top: 0; }
body[data-bemove-role="trainer"] .bemove-screen { padding-top: 0; gap: 12px; }
body[data-bemove-role="trainer"] .bemove-trainer-layout { margin-top: 0; }
body[data-bemove-role="trainer"] .bemove-trainer-main .card:first-child { margin-top: 0; }
body[data-bemove-role="trainer"] #page-dashboard .page-content { height: calc(100vh - 48px); }

/* 트레이너 헤더 목표 (이 달의 목표 달성 현황) */
.bemove-trainer-header-goal {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  padding: 0 16px;
}
.bemove-trainer-header-goal-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
  white-space: nowrap;
}
.bemove-trainer-header-goal-value {
  font-size: 12px;
  color: var(--text);
}
.bemove-trainer-header-goal-bar {
  flex: 1;
  min-width: 80px;
  max-width: 160px;
  height: 8px;
  border-radius: 4px;
  background: var(--border);
  overflow: hidden;
}
.bemove-trainer-goal-track {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.35);
  overflow: hidden;
}
.bemove-trainer-goal-fill {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: 4px;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  transition: width 0.2s ease;
}
.bemove-trainer-header-goal-done {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.bemove-branch-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
  align-items: start;
}
.bemove-hero-trophy {
  font-size: 1.2rem;
  margin-right: 6px;
  opacity: 0.9;
}
.bemove-branch-ranking-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.bemove-ranking-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.bemove-ranking-list { display: block; }
.bemove-ranking-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.bemove-ranking-col {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 6px;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  background: #fff;
}
.bemove-ranking-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.bemove-ranking-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 20px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.bemove-rank-1 { background: #fef08a; color: #854d0e; }
.bemove-rank-2 { background: #e5e7eb; color: #374151; }
.bemove-rank-3 { background: #fed7aa; color: #9a3412; }
.bemove-ranking-name { flex: 1; }
.bemove-ranking-col .bemove-ranking-name {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
}
.bemove-my-branch { color: var(--primary); font-weight: 600; margin-left: 4px; }
.bemove-ranking-sales { font-weight: 600; color: var(--text); }
.bemove-ranking-col .bemove-ranking-sales {
  font-size: 12px;
}
.bemove-branch-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 10px;
}
.bemove-branch-kpi-grid .bemove-stat {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 12px 12px 10px;
}
.bemove-branch-kpi-grid .bemove-kpi-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  line-height: 1.2;
}
.bemove-branch-kpi-grid .bemove-kpi-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: #eef2ff;
}
.bemove-branch-kpi-grid .bemove-stat small {
  display: block;
  font-size: 10px;
  color: var(--text-sub);
  margin-top: 3px;
}
.bemove-branch-kpi-grid .bemove-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.bemove-branch-members-screen {
  display: grid;
  gap: 14px;
}
.bemove-members-hero {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: 14px;
  padding: 14px 16px;
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.bemove-members-hero h3 {
  margin: 0;
  font-size: 1.4rem;
}
.bemove-members-hero p {
  margin: 4px 0 0;
  color: rgba(248, 250, 252, 0.88);
  font-size: 13px;
}
.bemove-members-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bemove-members-count {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 13px;
  white-space: nowrap;
}
.bemove-members-table th,
.bemove-members-table td {
  font-size: 13px;
}
.bemove-member-td-name {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bemove-member-avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}
.bemove-member-phase {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 11px;
  font-weight: 700;
}
.bemove-member-trainer-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
}
.bemove-member-trainer-wrap {
  display: grid;
  gap: 6px;
}
.bemove-member-trainer-select {
  min-width: 110px;
  border: 1px solid var(--border);
  border-radius: 8px;
  height: 30px;
  padding: 0 8px;
  font-size: 12px;
  background: #fff;
}
.bemove-member-edit-btn {
  border: 0;
  border-radius: 10px;
  width: 28px;
  height: 28px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.bemove-equipment-board {
  padding: 14px;
}
.bemove-equipment-category-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.bemove-equipment-category-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  min-height: 240px;
}
.bemove-equipment-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.bemove-equipment-category-head span {
  min-width: 24px;
  text-align: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
}
.bemove-equipment-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.bemove-equipment-category-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}
.bemove-equipment-item-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.bemove-equipment-qr-modal {
  width: min(520px, 94vw);
}
.bemove-equipment-qr-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.bemove-equipment-qr-title span {
  color: #64748b;
  font-size: 12px;
}
.bemove-equipment-qr-img-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
.bemove-equipment-qr-img {
  width: 240px;
  height: 240px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}
.bemove-equipment-qr-url {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  font-size: 12px;
  word-break: break-all;
  margin-bottom: 10px;
}
.bemove-equipment-qr-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.bemove-equipment-qr-entry-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.bemove-equipment-qr-entry-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.bemove-equipment-qr-entry-filters label {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 4px;
}
.bemove-equipment-qr-selected {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 36px;
  padding: 8px 10px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  display: flex;
  align-items: center;
}
.bemove-equipment-qr-entry-filters input,
.bemove-equipment-qr-entry-filters select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 36px;
  padding: 6px 8px;
}
.bemove-equipment-qr-entry-actions {
  display: flex;
  align-items: flex-end;
}
.bemove-equipment-qr-summary {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.bemove-equipment-qr-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bemove-equipment-qr-preview img {
  width: 220px;
  height: 220px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.bemove-equipment-qr-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0;
}
.bemove-equipment-qr-kpis span {
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 8px;
  padding: 8px;
  font-size: 12px;
}
.bemove-equipment-qr-reco-msg {
  margin: 8px 0 10px;
}
.bemove-equipment-qr-record-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bemove-equipment-qr-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.bemove-equipment-qr-columns > div {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}
.bemove-equipment-qr-columns h6 {
  margin: 0 0 8px;
  font-size: 13px;
}
.bemove-equipment-qr-columns ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 12px;
}
.bemove-member-qr-only {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bemove-member-qr-scan-modal {
  width: min(520px, 94vw);
}
.bemove-member-qr-video {
  width: 100%;
  min-height: 220px;
  max-height: 320px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f172a;
}
.bemove-member-qr-status {
  margin: 8px 0;
  color: #64748b;
  font-size: 12px;
}
.bemove-member-qr-file-label {
  width: fit-content;
}
@media (max-width: 1200px) {
  .bemove-branch-kpi-grid .bemove-stat strong {
    font-size: 18px;
  }
  .bemove-equipment-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bemove-equipment-qr-entry-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bemove-equipment-qr-summary {
    grid-template-columns: 1fr;
  }
  .bemove-equipment-qr-kpis {
    grid-template-columns: 1fr;
  }
  .bemove-equipment-qr-columns {
    grid-template-columns: 1fr;
  }
  .bemove-ranking-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .bemove-branch-kpi-grid .bemove-kpi-head {
    font-size: 11px;
  }
  .bemove-branch-kpi-grid .bemove-stat strong {
    font-size: 16px;
  }
  .bemove-members-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .bemove-equipment-category-grid {
    grid-template-columns: 1fr;
  }
  .bemove-ranking-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* ── 트레이너 대시보드 레이아웃 (사이드바 + 메인) ── */
.bemove-trainer-layout {
  display: flex;
  min-height: 400px;
  gap: 0;
}
.bemove-trainer-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bemove-trainer-sidebar-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #2563eb;
  letter-spacing: -0.02em;
}
.bemove-trainer-sidebar-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bemove-rank-chip {
  display: grid;
  grid-template-columns: 32px 1fr auto auto;
  grid-template-areas:
    "label value delta badge"
    "prev prev prev prev";
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid #dbe3ff;
  border-radius: 10px;
  background: #f8fbff;
}
.bemove-rank-chip .label {
  grid-area: label;
  font-size: 11px;
  color: #6b7280;
  font-weight: 700;
}
.bemove-rank-chip .value {
  grid-area: value;
  font-size: 14px;
  font-weight: 900;
  color: #1f2937;
  letter-spacing: -0.01em;
}
.bemove-rank-chip .badge {
  grid-area: badge;
  font-size: 10px;
  color: #1d4ed8;
  border: 1px solid rgba(29, 78, 216, 0.25);
  border-radius: 999px;
  padding: 2px 6px;
  background: rgba(59, 130, 246, 0.08);
  font-weight: 700;
}
.bemove-rank-chip .delta {
  grid-area: delta;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  padding: 2px 6px;
  line-height: 1.2;
}
.bemove-rank-chip .prev {
  grid-area: prev;
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
  margin-top: -2px;
}
.bemove-rank-chip .delta.is-up { color: #166534; background: #dcfce7; }
.bemove-rank-chip .delta.is-down { color: #991b1b; background: #fee2e2; }
.bemove-rank-chip .delta.is-flat { color: #475569; background: #f1f5f9; }
.bemove-rank-chip .delta.is-new { color: #1d4ed8; background: #dbeafe; }
.bemove-trainer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-height: 0;
}
.bemove-trainer-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease;
}
.bemove-trainer-nav-icon {
  width: 18px;
  flex: 0 0 18px;
  text-align: center;
  font-size: 14px;
  line-height: 1;
}
.bemove-trainer-nav-label {
  min-width: 0;
}
.bemove-trainer-nav-item:hover {
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}
.bemove-trainer-nav-item.active {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-weight: 600;
}
.bemove-trainer-sidebar-foot {
  font-size: 12px;
  color: var(--text-sub);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.bemove-trainer-main {
  flex: 1;
  min-width: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bemove-trainer-schedule {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
  border-color: #93c5fd !important;
}
.bemove-trainer-manage-status {
  background: #fff;
}
.bemove-trainer-manage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.bemove-trainer-manage-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
}
.bemove-trainer-manage-card.is-rereg {
  background: #fffbeb;
  border-color: #fcd34d;
}
.bemove-trainer-manage-card.is-attend {
  background: #fdf2f8;
  border-color: #fbcfe8;
}
.bemove-trainer-manage-card h5 {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
}
.bemove-trainer-manage-card h5 .badge {
  border-radius: 999px;
  font-size: 11px;
  padding: 2px 8px;
  background: rgba(30, 64, 175, 0.1);
  color: #1e40af;
}
.bemove-trainer-manage-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px dashed rgba(148, 163, 184, 0.5);
}
.bemove-trainer-manage-row:first-of-type {
  border-top: none;
}
.bemove-trainer-manage-row .name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-weight: 700;
  color: #111827;
}
.bemove-trainer-manage-row .name small {
  font-size: 12px;
  color: #475569;
  font-weight: 500;
}
.bemove-trainer-manage-row .bemove-manage-contact {
  margin-left: auto;
  width: auto;
  min-width: 84px;
  padding: 0 14px;
  flex: 0 0 auto;
  white-space: nowrap;
}
.bemove-trainer-schedule h4 {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bemove-trainer-schedule-title-emoji {
  font-size: 18px;
  line-height: 1;
}
.bemove-trainer-schedule-icon-wrap {
  display: flex;
  gap: 12px;
  margin: 12px 0;
  color: #1e40af;
}
.bemove-trainer-schedule-icon-wrap span { font-size: 1.5rem; }
.bemove-trainer-today-list { display: grid; gap: 8px; margin-top: 8px; }
.bemove-trainer-today-row {
  display: grid;
  grid-template-columns: 120px 1fr 56px;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #93c5fd;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
  color: #1e3a8a;
  text-align: left;
  cursor: pointer;
}
.bemove-trainer-today-row:hover { background: #fff; }
.bemove-trainer-today-row .time { font-weight: 700; }
.bemove-trainer-today-row .name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bemove-trainer-today-row .name .last-workout { font-size: 11px; color: #334155; opacity: 0.9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bemove-trainer-today-row .dur { text-align: right; font-size: 12px; opacity: 0.9; }
.bemove-journal-queue-modal { max-width: 760px; width: min(760px, calc(100vw - 24px)); }
.bemove-journal-queue-section { margin-bottom: 14px; }
.bemove-journal-queue-section h4 { margin: 0 0 8px; font-size: 14px; font-weight: 800; color: #1f2937; }
.bemove-journal-queue-row {
  display: grid;
  grid-template-columns: 110px 90px 1fr 56px 56px;
  gap: 8px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 10px;
  margin-bottom: 6px;
  cursor: pointer;
}
.bemove-journal-queue-row:hover { background: #f8fafc; }
.bemove-journal-queue-row .date, .bemove-journal-queue-row .time { font-weight: 700; color: #334155; }
.bemove-journal-queue-row .name { color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bemove-journal-queue-row .dur { text-align: right; color: #334155; font-size: 12px; }
.bemove-journal-queue-row .badge { justify-self: end; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 999px; }
.bemove-journal-queue-row .badge.is-unfilled { background: #fee2e2; color: #991b1b; }
.bemove-journal-queue-row .badge.is-upcoming { background: #e0e7ff; color: #3730a3; }
.bemove-homework-board-modal { max-width: 860px; width: min(860px, calc(100vw - 24px)); }
.bemove-homework-board-list { display: grid; gap: 8px; }
.bemove-homework-board-row {
  display: grid;
  grid-template-columns: 120px 1fr 90px 78px 68px;
  gap: 8px;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}
.bemove-homework-board-row:hover { background: #f8fafc; }
.bemove-homework-board-row .name { font-weight: 700; color: #0f172a; }
.bemove-homework-board-row .latest { color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bemove-homework-board-row .date { color: #64748b; font-size: 12px; text-align: right; }
.bemove-homework-board-row .badge { justify-self: end; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 999px; }
.bemove-homework-board-row .badge.pending { background: #fee2e2; color: #991b1b; }
.bemove-homework-board-row .badge.done { background: #dcfce7; color: #166534; }
.bemove-trainer-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.bemove-trainer-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bemove-trainer-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.bemove-trainer-action-btn .bemove-action-icon { font-size: 1.75rem; }
.bemove-action-register { background: #dbeafe; color: #1e40af; }
.bemove-action-library, .bemove-action-journal-list { background: #dcfce7; color: #166534; }
.bemove-action-diet { background: #ffedd5; color: #c2410c; }
.bemove-action-schedule { background: #f3e8ff; color: #6b21a8; }
.bemove-action-homework-board { background: #f3e8ff; color: #6b21a8; }
@media (max-width: 900px) {
  .bemove-trainer-layout { flex-direction: column; }
  .bemove-trainer-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .bemove-trainer-nav { flex-direction: row; flex-wrap: wrap; }
  .bemove-trainer-main { padding-left: 0; padding-top: 16px; }
  .bemove-trainer-actions { grid-template-columns: repeat(2, 1fr); }
}

/* ── 트레이너 PT 회원 리스트 ── */
.bemove-pt-list-main { gap: 16px; }
.bemove-pt-list-header { margin-bottom: 8px; }
.bemove-pt-list-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}
.bemove-pt-list-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.bemove-pt-member-view-scope {
  min-width: 150px;
  padding: 6px 10px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
}
.bemove-pt-list-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}
.bemove-pt-period-select {
  padding: 6px 12px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
}
.bemove-pt-list-sub {
  margin: 0;
  font-size: 14px;
  color: var(--text-sub);
}
.bemove-pt-member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.bemove-pt-member-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease;
}
.bemove-pt-member-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.bemove-pt-member-card-alert {
  border-left: 3px solid #dc2626;
}
.bemove-pt-member-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-style: dashed;
  cursor: pointer;
}
.bemove-pt-avatar-new {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 12px;
}
.bemove-pt-member-new .bemove-pt-member-name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}
.bemove-pt-member-sub {
  margin: 0;
  font-size: 12px;
  color: var(--text-sub);
}
.bemove-pt-member-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.bemove-pt-member-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.bemove-pt-member-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bemove-pt-member-info .bemove-pt-member-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.bemove-pt-member-meta {
  font-size: 12px;
  color: var(--text-sub);
}
.bemove-pt-member-phone {
  font-size: 12px;
  color: var(--text-sub);
}
.bemove-pt-member-arrow {
  font-size: 1.25rem;
  color: var(--text-sub);
  flex-shrink: 0;
}
.bemove-pt-member-session {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 8px;
}
.bemove-pt-session-label { margin-right: 4px; }
.bemove-pt-session-frac { color: var(--text-sub); }
.bemove-pt-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.bemove-pt-progress-wrap .bemove-progress {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: var(--border);
  overflow: hidden;
}
.bemove-pt-progress-wrap .bemove-progress > span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #a78bfa, #6366f1);
  transition: width 0.2s ease;
}
.bemove-pt-member-card.bemove-pt-progress-full .bemove-pt-progress-wrap .bemove-progress > span {
  background: linear-gradient(90deg, #fb923c, #ea580c);
}
.bemove-pt-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  min-width: 32px;
}
.bemove-pt-warning {
  font-size: 12px;
  color: #b45309;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.bemove-pt-status {
  font-size: 11px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── PT 회원 등록 모달 ── */
.bemove-member-register-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.55);
}
.bemove-member-register-modal {
  width: min(920px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.32);
}
.bemove-member-register-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 10px;
}
.bemove-member-register-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 900;
  color: #111827;
}
.bemove-member-register-close {
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
}
.bemove-member-register-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.bemove-member-register-tab {
  border: none;
  background: #fff;
  color: #6b7280;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 10px 12px;
  border-bottom: 4px solid transparent;
  cursor: pointer;
}
.bemove-member-register-tab.is-active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}
.bemove-member-register-body { padding: 18px 22px 24px; }
.bemove-member-register-pane { display: none; }
.bemove-member-register-pane.is-active { display: block; }
.bemove-member-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
.bemove-member-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
}
.bemove-member-form-grid label.full { grid-column: 1 / -1; }
.bemove-member-form-grid input,
.bemove-member-form-grid select,
.bemove-member-form-grid textarea,
.bemove-member-register-pane select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  color: #111827;
  background: #fff;
}
.bemove-member-form-grid textarea {
  min-height: 90px;
  resize: vertical;
}
.bemove-member-register-pane[data-pane="existing"] label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
}
.bemove-member-register-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}
.bemove-member-register-actions .btn {
  min-height: 44px;
  font-size: 14px;
  font-weight: 800;
}
.bemove-member-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 1250;
  background: rgba(15, 23, 42, 0.45);
  overflow: auto;
}
.bemove-member-detail-page {
  width: min(1280px, 96vw);
  margin: 10px auto 24px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px 12px 14px;
}
.bemove-member-detail-main .bemove-member-detail-page {
  width: 100%;
  margin: 0;
}
.bemove-trainer-layout-detail {
  align-items: flex-start;
}
.bemove-member-detail-back {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.bemove-member-detail-back-btn {
  border: none;
  background: transparent;
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.bemove-member-detail-header-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.bemove-member-detail-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
}
.bemove-member-detail-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.bemove-member-detail-title-row h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}
.bemove-member-detail-status {
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 7px;
  background: #f3e8ff;
  color: #7c3aed;
}
.bemove-member-detail-sub {
  margin: 0 0 6px;
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 600;
}
.bemove-member-detail-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-sub);
  font-size: 12px;
}
.bemove-member-detail-kpis b {
  color: var(--text);
}
.bemove-member-detail-head-actions {
  display: flex;
  gap: 6px;
}
.bemove-member-detail-icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  font-size: 16px;
}
.bemove-member-detail-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}
.bemove-member-detail-tab {
  border: none;
  border-radius: 10px;
  background: #fff;
  color: #475569;
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}
.bemove-member-detail-tab.is-active {
  border-color: #2563eb;
  box-shadow: inset 0 0 0 1px #2563eb;
  color: #2563eb;
}
.bemove-member-detail-content {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  display: none;
}
.bemove-member-detail-content.is-active {
  display: block;
}
.bemove-member-detail-banner {
  background: linear-gradient(120deg, #1d4ed8 0%, #2563eb 100%);
  color: #dbeafe;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.bemove-member-detail-banner h4 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 16px;
}
.bemove-member-detail-banner p {
  margin: 0;
  font-size: 12px;
}
.bemove-member-detail-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bemove-member-form-item label {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.bemove-member-form-item textarea,
.bemove-member-form-item input[type="text"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--text);
}
.bemove-member-form-item textarea {
  min-height: 64px;
  resize: vertical;
}
.bemove-member-option-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}
.bemove-member-option-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bemove-member-option-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bemove-member-option {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  background: #fff;
}
.bemove-member-option.is-active {
  border-color: #3b82f6;
  box-shadow: inset 0 0 0 1px #3b82f6;
  color: #2563eb;
}
.bemove-member-detail-save {
  min-height: 44px;
  font-size: 15px;
  font-weight: 800;
}
.bemove-555-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.bemove-555-title-row > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}
.bemove-555-title-row h4 {
  margin: 0;
  font-size: 16px;
  flex: 0 0 auto;
  white-space: nowrap;
}
.bemove-555-title-row p {
  margin: 0;
  color: var(--text-sub);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bemove-555-title-row .btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 140px;
  padding-left: 14px;
  padding-right: 14px;
  white-space: nowrap;
}
.bemove-555-overview-empty {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 20px;
}
.bemove-555-overview-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.bemove-555-overview-head {
  background: linear-gradient(120deg, #1d4ed8 0%, #2563eb 100%);
  color: #dbeafe;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bemove-555-overview-head strong {
  display: block;
  color: #fff;
}
.bemove-555-overview-head span {
  font-size: 12px;
}
.bemove-555-overview-head .btn.btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
}
.bemove-555-overview-head .btn.btn-outline:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
}
.bemove-555-share-btn,
.bemove-555-overview-head .bemove-555-share-btn,
.bemove-555-overview-head .bemove-555-share-btn:visited,
.bemove-555-overview-head .bemove-555-share-btn:hover,
.bemove-555-overview-head .bemove-555-share-btn:active,
.bemove-555-overview-head .bemove-555-share-btn:focus {
  color: #fff !important;
}
.bemove-555-overview-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}
.bemove-555-overview-kpis div {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  padding: 10px;
}
.bemove-555-overview-kpis span {
  display: block;
  color: var(--text-sub);
  font-size: 12px;
}
.bemove-555-overview-kpis b {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 800;
}
.bemove-555-overview-note {
  margin: 0 10px 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border-left: 3px solid #60a5fa;
  background: #eff6ff;
}
.bemove-555-overview-note.is-goal {
  border-left-color: #22c55e;
  background: #f0fdf4;
}
.bemove-555-overview-note.is-ai {
  border-left-color: #8b5cf6;
  background: #f5f3ff;
}
.bemove-555-overview-note b {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}
.bemove-555-overview-note p {
  margin: 0;
  color: var(--text-sub);
  font-size: 12px;
}
.bemove-555-archive-card {
  margin-top: 10px;
}
.bemove-555-archive-card h5 {
  margin: 0 0 8px;
  font-size: 14px;
}
.bemove-555-archive-wrap {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.bemove-555-archive-table {
  width: 100%;
  border-collapse: collapse;
}
.bemove-555-archive-table th,
.bemove-555-archive-table td {
  border-bottom: 1px solid var(--border);
  padding: 8px 10px;
  font-size: 12px;
  text-align: left;
}
.bemove-555-archive-row {
  cursor: pointer;
}
.bemove-555-archive-row:hover {
  background: #f8fafc;
}
.bemove-555-archive-row.is-active {
  background: #eef2ff;
}
.bemove-555-archive-details {
  padding: 10px;
  background: #f8fafc;
}
.bemove-555-archive-detail {
  display: none;
}
.bemove-555-archive-detail.is-open {
  display: block;
}
.bemove-555-archive-workout {
  display: grid;
  gap: 8px;
}
.bemove-555-archive-workout-item {
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 8px;
  background: #fff;
}
.bemove-555-archive-workout-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.bemove-555-archive-workout-head strong {
  color: #0f172a;
  font-size: 13px;
}
.bemove-555-archive-workout-head span {
  color: #475569;
  font-size: 12px;
}
.bemove-555-archive-set-table {
  width: 100%;
  border-collapse: collapse;
}
.bemove-555-archive-set-table th,
.bemove-555-archive-set-table td {
  border: 1px solid var(--border);
  padding: 6px 8px;
  text-align: center;
  font-size: 12px;
  background: #fff;
}
.bemove-555-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.bemove-555-modal-card {
  width: min(1040px, 98vw);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #d1d5db;
}
.bemove-555-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  color: #fff;
  background: linear-gradient(120deg, #1d4ed8 0%, #7e22ce 100%);
}
.bemove-555-modal-head h3 {
  margin: 0;
  font-size: 20px;
}
.bemove-555-modal-head p {
  margin: 4px 0 0;
  font-size: 13px;
}
.bemove-555-close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
.bemove-555-steps {
  display: flex;
  justify-content: space-around;
  background: linear-gradient(120deg, #1d4ed8 0%, #7e22ce 100%);
  padding: 0 20px 16px;
}
.bemove-555-steps span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}
.bemove-555-steps span.on {
  background: #fff;
  color: #3730a3;
}
.bemove-555-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
}
.bemove-555-tab {
  border: none;
  background: #f8fafc;
  padding: 12px 8px;
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  border-bottom: 3px solid transparent;
}
.bemove-555-tab.is-active {
  color: #3730a3;
  border-bottom-color: #4f46e5;
  background: #fff;
}
.bemove-555-merge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}
.bemove-555-merge-summary {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}
.bemove-555-merge-summary strong {
  font-size: 12px;
  color: #334155;
}
.bemove-555-merge-summary span {
  font-size: 12px;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bemove-555-merge-actions {
  display: flex;
  gap: 6px;
}
.bemove-555-merge-actions .btn {
  white-space: nowrap;
}
.bemove-555-body {
  padding: 14px 16px;
}
.bemove-555-body h4 {
  margin: 0 0 10px;
  font-size: 14px;
}
.bemove-555-section {
  margin-bottom: 14px;
}
.bemove-555-section label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 13px;
}
.bemove-555-section input,
.bemove-555-section textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
}
.bemove-555-section textarea {
  min-height: 120px;
  resize: vertical;
}
.bemove-555-condition-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.bemove-555-condition,
.bemove-555-pain {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 8px;
}
.bemove-555-condition.is-active,
.bemove-555-pain.is-active {
  border-color: #2563eb;
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px #2563eb;
}
.bemove-555-pain-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bemove-555-pain {
  border-radius: 999px;
  padding: 8px 14px;
}
.bemove-555-exercise {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}
.bemove-555-ex-head {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
}
.bemove-555-ex-head input,
.bemove-555-ex-head select {
  width: 100%;
  min-width: 0;
}
.bemove-555-icon-del {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  width: 40px;
}
.bemove-555-set-table {
  width: 100%;
  border-collapse: collapse;
}
.bemove-555-set-table th,
.bemove-555-set-table td {
  border: 1px solid var(--border);
  text-align: center;
  padding: 6px;
}
.bemove-555-set-table input {
  width: 100%;
  text-align: center;
}
.bemove-555-set-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.bemove-555-equip-helper {
  display: grid;
  grid-template-columns: auto 160px 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
}
.bemove-555-equip-helper input,
.bemove-555-equip-helper select {
  min-width: 0;
}
.bemove-555-summary {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  padding: 12px;
}
.bemove-555-summary h5 {
  margin: 0 0 8px;
  font-size: 16px;
}
.bemove-555-summary p {
  margin: 2px 0;
}
.bemove-555-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px 16px;
}
.bemove-555-foot .btn {
  white-space: nowrap;
}
@media (max-width: 900px) {
  .bemove-trainer-manage-grid {
    grid-template-columns: 1fr;
  }
  .bemove-555-condition-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bemove-555-tabs {
    grid-template-columns: 1fr;
  }
  .bemove-555-merge-row {
    flex-direction: column;
    align-items: stretch;
  }
  .bemove-555-merge-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

/* ── 인바디 관리 ── */
.bemove-inbody-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bemove-inbody-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 10px;
  align-items: stretch;
}
.bemove-inbody-score-card {
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  background: linear-gradient(120deg, #1d4ed8 0%, #2563eb 100%);
}
.bemove-inbody-score-card p {
  margin: 0;
  font-size: 12px;
  opacity: 0.95;
}
.bemove-inbody-score-card strong {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  margin-top: 4px;
  font-size: 38px;
  line-height: 1;
}
.bemove-inbody-score-card strong span {
  font-size: 18px;
  line-height: 1.2;
}
.bemove-inbody-graph-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}
.bemove-inbody-graph-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.bemove-inbody-graph-head h4 {
  margin: 0;
  font-size: 15px;
}
.bemove-inbody-actions {
  display: inline-flex;
  gap: 8px;
}
.bemove-inbody-actions .btn {
  width: auto;
  min-width: 96px;
  padding-left: 12px;
  padding-right: 12px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.bemove-inbody-chart-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: linear-gradient(180deg, #fcfdff 0%, #f8fbff 100%);
  padding: 10px 10px 8px;
}
.bemove-inbody-chart-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--text-sub);
  text-align: center;
  padding: 24px 12px;
  font-size: 12px;
}
.bemove-inbody-chart {
  width: 100%;
  height: 230px;
  display: block;
}
.bemove-inbody-chart .y-grid line {
  stroke: #e5e7eb;
  stroke-dasharray: 3 4;
}
.bemove-inbody-chart .y-grid text,
.bemove-inbody-chart .x-labels text {
  fill: #94a3b8;
  font-size: 11px;
  font-weight: 600;
}
.bemove-inbody-chart .line {
  fill: none;
  stroke-width: 2.5;
}
.bemove-inbody-chart .line.is-smm { stroke: #2563eb; }
.bemove-inbody-chart .line.is-weight { stroke: #ef4444; }
.bemove-inbody-chart .line.is-bfp { stroke: #f59e0b; }
.bemove-inbody-chart .dot {
  stroke: #fff;
  stroke-width: 2;
}
.bemove-inbody-chart .dot.is-smm { fill: #2563eb; }
.bemove-inbody-chart .dot.is-weight { fill: #ef4444; }
.bemove-inbody-chart .dot.is-bfp { fill: #f59e0b; }
.bemove-inbody-legend {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}
.bemove-inbody-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #475569;
  font-weight: 700;
}
.bemove-inbody-legend span::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.bemove-inbody-legend .is-smm::before { background: #2563eb; }
.bemove-inbody-legend .is-weight::before { background: #ef4444; }
.bemove-inbody-legend .is-bfp::before { background: #f59e0b; }
.bemove-inbody-latest-strip {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr) auto;
  gap: 8px;
  margin-top: 0;
  align-items: stretch;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
}
.bemove-inbody-latest-strip {
  overflow-x: auto;
}
.bemove-inbody-latest-strip .metric {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  min-width: 96px;
}
.bemove-inbody-latest-strip .metric b {
  display: block;
  color: var(--text-sub);
  font-size: 10px;
  margin-bottom: 2px;
}
.bemove-inbody-latest-strip .metric strong {
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.bemove-inbody-latest-strip .metric.date strong {
  font-size: 18px;
}
.bemove-inbody-latest-strip .metric.weight strong { color: #ef4444; }
.bemove-inbody-latest-strip .metric.smm strong { color: #2563eb; }
.bemove-inbody-latest-strip .metric.bfp strong { color: #d97706; }
.bemove-inbody-insight {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}
.bemove-inbody-insight h4 {
  margin: 0 0 10px;
  font-size: 16px;
}
.bemove-inbody-ai-loading {
  display: inline-flex;
  margin-left: 8px;
  font-size: 12px;
  color: #2563eb;
  font-weight: 700;
}
.bemove-inbody-box {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.bemove-inbody-box h5 {
  margin: 0 0 6px;
  font-size: 14px;
}
.bemove-inbody-box p,
.bemove-inbody-box li {
  font-size: 12px;
}
.bemove-inbody-box ul {
  margin: 0;
  padding-left: 16px;
}
.bemove-inbody-box.is-current { background: #eff6ff; border-color: #bfdbfe; }
.bemove-inbody-box.is-needs { background: #fef2f2; border-color: #fecaca; }
.bemove-inbody-box.is-method { background: #ecfdf5; border-color: #bbf7d0; }
.bemove-inbody-box.is-goal { background: #f5f3ff; border-color: #ddd6fe; }
.bemove-inbody-box.is-diet { background: #fff7ed; border-color: #fed7aa; }
.bemove-inbody-box.is-exercise { background: #ecfeff; border-color: #a5f3fc; }
.bemove-inbody-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.bemove-inbody-grid .bemove-inbody-box.is-exercise {
  grid-column: 1 / -1;
}
.bemove-inbody-history {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}
.bemove-inbody-history h4 {
  margin: 0 0 8px;
  font-size: 16px;
}
.bemove-inbody-history-table-wrap {
  overflow: auto;
}
.bemove-inbody-history-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}
.bemove-inbody-history-table th,
.bemove-inbody-history-table td {
  border: 1px solid var(--border);
  padding: 8px;
  text-align: center;
  font-size: 12px;
}
.bemove-inbody-history-table th {
  background: #f8fafc;
  font-weight: 700;
}
.bemove-inbody-manual-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.bemove-inbody-manual-modal {
  width: min(920px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #d1d5db;
}
.bemove-inbody-manual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.bemove-inbody-manual-head h3 {
  margin: 0;
  font-size: 20px;
}
.bemove-inbody-manual-head button {
  border: none;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
}
.bemove-inbody-manual-body {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}
.bemove-inbody-manual-body label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}
.bemove-inbody-manual-body input {
  border: 1px solid var(--border);
  border-radius: 10px;
  min-height: 42px;
  padding: 10px 12px;
  font-size: 12px;
}
.bemove-inbody-manual-foot {
  padding: 12px 16px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ── AI 운동 처방 + 기구 관리 ── */
.bemove-ai-rx { display: flex; flex-direction: column; gap: 12px; }
.bemove-ai-rx-hero {
  border-radius: 14px;
  padding: 14px;
  color: #fff;
  background: linear-gradient(125deg, #1d4ed8 0%, #1e40af 100%);
}
.bemove-ai-rx-title h4 { margin: 0; font-size: 22px; }
.bemove-ai-rx-title p { margin: 6px 0 0; opacity: .92; font-size: 12px; }
.bemove-ai-rx-metrics { margin-top: 12px; display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bemove-ai-rx-metric { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 10px; }
.bemove-ai-rx-metric span { display: block; font-size: 11px; opacity: .9; }
.bemove-ai-rx-metric strong { font-size: 32px; line-height: 1.05; letter-spacing: -0.02em; }
.bemove-ai-rx-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: #fff; }
.bemove-ai-rx-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.bemove-ai-rx-head h5 { margin: 0; font-size: 22px; }
.bemove-ai-rx-head p { margin: 4px 0 0; color: var(--text-sub); font-size: 12px; }
.bemove-ai-rx-error { border: 1px solid #fecaca; color: #b91c1c; background: #fff1f2; border-radius: 10px; padding: 8px 10px; font-size: 12px; margin-bottom: 10px; }
.bemove-ai-rx-report h6 { margin: 0 0 6px; font-size: 16px; }
.bemove-ai-rx-report p { margin: 0 0 8px; font-size: 12px; color: #334155; }
.bemove-ai-rx-report ul { margin: 0; padding-left: 16px; }
.bemove-ai-rx-report li { margin: 4px 0; font-size: 12px; }
.bemove-ai-rx-warning { margin-top: 10px; padding: 10px; border: 1px solid #fed7aa; border-radius: 10px; background: #fff7ed; }
.bemove-ai-rx-warning strong { font-size: 12px; }

.bemove-hw-wrap { display: flex; flex-direction: column; gap: 14px; }
.bemove-hw-hero {
  border-radius: 14px;
  padding: 16px 18px;
  color: #fff;
  background: linear-gradient(125deg, #4f46e5 0%, #4338ca 100%);
}
.bemove-hw-hero h4 { margin: 0; font-size: 28px; line-height: 1.15; }
.bemove-hw-hero p { margin: 6px 0 0; font-size: 13px; opacity: .92; }
.bemove-hw-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.bemove-hw-left, .bemove-hw-right { border: 1px solid var(--border); border-radius: 12px; background: #fff; padding: 14px; }
.bemove-hw-left h5, .bemove-hw-right h5 { margin: 0; font-size: 22px; }
.bemove-hw-count { margin: 6px 0 10px; color: #6366f1; font-size: 12px; font-weight: 700; }
.bemove-hw-parts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.bemove-hw-part {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  min-height: 74px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  text-align: left;
  gap: 2px 8px;
  padding: 10px 12px;
}
.bemove-hw-part-label { font-size: 14px; font-weight: 700; color: #0f172a; }
.bemove-hw-part-sub { font-size: 11px; color: var(--text-sub); }
.bemove-hw-part-plus { grid-row: 1 / span 2; font-size: 20px; color: #94a3b8; }
.bemove-hw-part.is-active { border-color: #6366f1; background: #eef2ff; }
.bemove-hw-part.is-active .bemove-hw-part-plus { color: #4f46e5; }
.bemove-hw-generate { width: 100%; min-height: 44px; }
.bemove-hw-generate:disabled { opacity: .45; cursor: not-allowed; }
.bemove-hw-preview {
  border: 1px solid #f3e8a8;
  border-radius: 12px;
  min-height: 280px;
  background: #fffbeb;
  padding: 18px 16px;
  color: #334155;
}
.bemove-hw-preview-empty {
  height: 100%;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 4px;
  color: #64748b;
  font-size: 14px;
}
.bemove-hw-preview-text { font-size: 13px; line-height: 1.55; white-space: normal; }
.bemove-hw-tip { margin: 8px 0 0; color: var(--text-sub); font-size: 11px; }
.bemove-self-homework-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #fff;
}
.bemove-self-homework-item input[type="checkbox"] { width: 16px; height: 16px; }
.bemove-self-homework-item span { display: flex; flex-direction: column; min-width: 0; }
.bemove-self-homework-item span b { font-size: 12px; color: #0f172a; line-height: 1.2; }
.bemove-self-homework-item span small {
  margin-top: 2px;
  color: var(--text-sub);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bemove-self-homework-item em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #0f766e;
}
.bemove-self-homework-row { cursor: pointer; }
.bemove-self-homework-row.is-active { border-color: #818cf8; background: #f8faff; }
.bemove-self-homework-detail {
  display: none;
  margin: -2px 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
}
.bemove-self-homework-detail.is-open { display: block; }
.bemove-self-homework-detail-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
}
.bemove-self-homework-detail-head b { color: #334155; }
.bemove-self-homework-detail-head span { color: #1f2937; font-weight: 600; }
.bemove-self-homework-guide b {
  display: block;
  font-size: 12px;
  color: #334155;
  margin-bottom: 6px;
}
.bemove-self-homework-guide ul {
  margin: 0;
  padding-left: 18px;
  color: #1f2937;
  font-size: 12px;
  line-height: 1.5;
}
.bemove-self-homework-guide li + li { margin-top: 4px; }
.bemove-workout-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 10px;
}
.bemove-workout-section-head h4 {
  margin: 0;
  white-space: nowrap;
  word-break: keep-all;
  flex: 0 0 auto;
}
.bemove-self-workout-open {
  min-height: 34px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.bemove-self-workout-modal {
  width: min(960px, 92vw);
  max-height: 88vh;
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(15, 23, 42, .18);
}
.bemove-self-workout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.bemove-self-workout-head h3 { margin: 0; font-size: 20px; }
.bemove-self-workout-close {
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  color: #0f172a;
}
.bemove-self-workout-body {
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bemove-self-workout-type-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.bemove-self-workout-type {
  min-height: 56px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}
.bemove-self-workout-type.is-active {
  color: #fff;
}
.bemove-self-workout-type[data-type="weight"].is-active {
  background: #16a34a;
  border-color: #0ea5e9;
}
.bemove-self-workout-type[data-type="cardio"].is-active {
  background: #2563eb;
  border-color: #1d4ed8;
}
.bemove-self-workout-group { display: flex; flex-direction: column; gap: 8px; }
.bemove-self-workout-group label { font-size: 13px; font-weight: 800; margin: 0; }
.bemove-self-workout-group textarea {
  width: 100%;
  min-height: 72px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
}
.bemove-self-workout-group input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  min-height: 38px;
  padding: 8px 10px;
  font-size: 12px;
}
.bemove-self-workout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.bemove-self-workout-ex-list {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  min-height: 180px;
  background: #fff;
}
.bemove-self-workout-empty {
  min-height: 154px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}
.bemove-self-workout-empty-icon { font-size: 28px; margin-bottom: 8px; }
.bemove-self-workout-ex-item { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.bemove-self-workout-ex-item:last-child { margin-bottom: 0; }
.bemove-self-workout-ex-item input {
  border: 1px solid var(--border);
  border-radius: 10px;
  min-height: 38px;
  padding: 8px 10px;
  font-size: 12px;
}
.bemove-self-workout-ex-item select {
  border: 1px solid var(--border);
  border-radius: 10px;
  min-height: 38px;
  padding: 8px 10px;
  font-size: 12px;
  background: #fff;
}
.bemove-self-workout-ex-item.is-cardio { gap: 10px; background: #f8fafc; border-radius: 12px; padding: 10px; }
.bemove-self-workout-ex-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px auto;
  gap: 8px;
}
.bemove-self-workout-ex-grid {
  display: grid;
  grid-template-columns: 120px 120px auto;
  gap: 8px;
}
.bemove-self-workout-ex-grid.is-cardio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bemove-self-workout-ex-grid.is-cardio label { display: flex; flex-direction: column; gap: 4px; }
.bemove-self-workout-ex-grid.is-cardio label span { font-size: 11px; color: var(--text-sub); }
.bemove-self-workout-add {
  min-height: 38px;
  background: #6366f1 !important;
  border-color: #6366f1 !important;
}
.bemove-self-workout-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--border);
}
.bemove-self-workout-foot .btn {
  min-height: 50px;
  font-size: 14px;
  font-weight: 800;
}
@media (max-width: 900px) {
  .bemove-self-workout-modal { width: 96vw; }
  .bemove-self-workout-head { padding: 14px; }
  .bemove-self-workout-body { padding: 12px 14px; }
  .bemove-self-workout-foot { padding: 12px 14px 14px; }
  .bemove-self-workout-type { min-height: 48px; font-size: 12px; }
  .bemove-self-workout-ex-top { grid-template-columns: 1fr; }
  .bemove-self-workout-ex-grid,
  .bemove-self-workout-ex-grid.is-cardio { grid-template-columns: 1fr; }
}

.bemove-equipment-main { display: flex; flex-direction: column; gap: 12px; }
.bemove-equipment-card h4 { margin: 0 0 6px; }
.bemove-equipment-input-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 8px;
  margin: 10px 0;
  align-items: center;
}
.bemove-equipment-input-row select {
  border: 1px solid var(--border);
  border-radius: 10px;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 12px;
  width: 100%;
}
.bemove-equipment-input-row input {
  border: 1px solid var(--border);
  border-radius: 10px;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 12px;
  width: 100%;
}
.bemove-equipment-input-row .btn {
  white-space: nowrap;
  min-height: 40px;
}
.bemove-equipment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bemove-equipment-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
}
@media (max-width: 900px) {
  .bemove-ai-rx-metrics { grid-template-columns: 1fr; }
  .bemove-ai-rx-metric strong { font-size: 24px; }
  .bemove-ai-rx-head { flex-direction: column; align-items: flex-start; }
  .bemove-equipment-input-row { grid-template-columns: 140px minmax(220px, 1fr) auto; }
  .bemove-hw-grid { grid-template-columns: 1fr; }
  .bemove-hw-hero h4 { font-size: 22px; }
  .bemove-hw-left h5, .bemove-hw-right h5 { font-size: 18px; }
}
@media (max-width: 900px) {
  .bemove-inbody-top {
    grid-template-columns: 1fr;
  }
  .bemove-inbody-latest-strip,
  .bemove-inbody-grid,
  .bemove-inbody-manual-body,
  .bemove-inbody-manual-foot {
    grid-template-columns: 1fr;
  }
  .bemove-inbody-legend {
    flex-wrap: wrap;
  }
  .bemove-inbody-latest-strip .metric strong {
    font-size: 20px;
  }
  .bemove-inbody-score-card strong {
    font-size: 36px;
  }
}

/* ── 트레이너 OT 회원 탭 ── */
.bemove-ot-main { gap: 16px; }
.bemove-ot-wrap { display: flex; flex-direction: column; gap: 14px; }
.bemove-ot-view-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bemove-ot-view-mode {
  display: inline-flex;
  gap: 8px;
}
.bemove-ot-view-filters .btn.is-active {
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
}
.bemove-ot-view-filters select {
  min-width: 180px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}
.bemove-ot-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
}
.bemove-ot-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.bemove-ot-kpi {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.bemove-ot-kpi-label { color: var(--text-sub); font-size: 13px; margin-bottom: 8px; }
.bemove-ot-kpi strong { font-size: 30px; line-height: 1; }
.bemove-ot-kpi-total { background: #e8f1ff; color: #1d4ed8; }
.bemove-ot-kpi-pending { background: #ecfdf5; color: #047857; }
.bemove-ot-kpi-converted { background: #f5f3ff; color: #7c3aed; }
.bemove-ot-kpi-rate { background: #fff7ed; color: #c2410c; }
.bemove-ot-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.bemove-ot-list-head h4 { margin: 0; }
.bemove-ot-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  margin-top: 10px;
}
.bemove-ot-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.bemove-ot-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.bemove-ot-name-line strong { font-size: 18px; }
.bemove-ot-tag {
  font-size: 12px;
  font-weight: 700;
  color: #047857;
  background: #d1fae5;
  border-radius: 999px;
  padding: 2px 8px;
}
.bemove-ot-email, .bemove-ot-date {
  font-size: 13px;
  color: var(--text-sub);
}
.bemove-ot-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.bemove-ot-progress-num {
  font-size: 34px;
  font-weight: 800;
  color: #2563eb;
  line-height: 1;
}
.bemove-ot-progress-label { font-size: 12px; color: var(--text-sub); }
.bemove-ot-log-btn { min-width: 160px; }
.bemove-ot-empty {
  padding: 16px 0 4px;
  color: var(--text-sub);
  font-size: 14px;
}
.bemove-ot-table td strong { font-size: 15px; }
.bemove-ot-table .bemove-ot-log-btn {
  min-width: 120px;
  white-space: nowrap;
}

/* OT 전환 기록 */
.bemove-conversion-wrap { padding: 0 0 2rem; }
.bemove-conversion-title { font-size: 1.5rem; margin-bottom: 1.25rem; font-weight: 700; }
.bemove-conversion-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .bemove-conversion-cards { grid-template-columns: repeat(2, 1fr); }
}
.bemove-conversion-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.bemove-conversion-card-label { font-size: 13px; color: var(--text-sub); margin-bottom: 4px; }
.bemove-conversion-card-value { font-size: 24px; font-weight: 700; line-height: 1.2; }
.bemove-conversion-card-icon { font-size: 24px; opacity: 0.9; }
.bemove-conversion-card-success .bemove-conversion-card-value { color: #047857; }
.bemove-conversion-card-failure .bemove-conversion-card-value { color: #dc2626; }
.bemove-conversion-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.bemove-conversion-filter {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}
.bemove-conversion-filter.is-active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.bemove-conversion-table-wrap { overflow-x: auto; }
.bemove-conversion-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.bemove-conversion-table th,
.bemove-conversion-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.bemove-conversion-table th {
  background: #f8fafc;
  font-weight: 600;
  color: var(--text-sub);
}
.bemove-conversion-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.bemove-conversion-success { background: #d1fae5; color: #047857; }
.bemove-conversion-failure { background: #fee2e2; color: #dc2626; }
.bemove-conversion-pending { background: #e0e7ff; color: #4338ca; }

/* 매출 관리 */
.bemove-sales-wrap { padding: 0 0 2rem; }
.bemove-sales-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.75rem; }
.bemove-sales-title { font-size: 1.5rem; margin: 0; font-weight: 700; }
.bemove-sales-header-actions { display: flex; gap: 0.5rem; align-items: center; }
.bemove-sales-header-actions .btn { white-space: nowrap; padding: 0.35rem 0.75rem; min-height: auto; line-height: 1.4; font-size: 14px; }
.bemove-sales-tabs { display: flex; gap: 0.25rem; margin-bottom: 1.25rem; }
.bemove-sales-tab { padding: 0.5rem 1rem; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 14px; cursor: pointer; }
.bemove-sales-tab.is-active { background: #2563eb; color: #fff; border-color: #2563eb; }
.bemove-sales-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
@media (max-width: 768px) { .bemove-sales-cards { grid-template-columns: 1fr; } }
.bemove-sales-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; position: relative; }
.bemove-sales-card-icon { font-size: 24px; margin-bottom: 0.5rem; opacity: 0.9; }
.bemove-sales-card-value { font-size: 22px; font-weight: 700; line-height: 1.2; }
.bemove-sales-card-label { font-size: 13px; color: var(--text-sub); margin-top: 4px; }
.bemove-sales-card-sub { font-size: 12px; color: var(--text-sub); margin-top: 2px; }
.bemove-sales-card-total { border-left: 4px solid #2563eb; }
.bemove-sales-card-new { border-left: 4px solid #059669; }
.bemove-sales-card-rereg { border-left: 4px solid #7c3aed; }
.bemove-sales-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
@media (max-width: 900px) { .bemove-sales-two-col { grid-template-columns: 1fr; } }
.bemove-sales-chart-caption { font-size: 12px; color: var(--text-sub); margin: 0 0 8px 0; }
.bemove-sales-chart { display: flex; align-items: flex-end; justify-content: space-around; gap: 8px; min-height: 160px; padding: 1rem 0; }
.bemove-sales-chart-bar-wrap { display: flex; flex-direction: column; align-items: center; }
.bemove-sales-chart-bar { width: 32px; min-height: 4px; background: #2563eb; border-radius: 4px 4px 0 0; transition: height 0.2s; }
.bemove-sales-chart-label { font-size: 12px; color: var(--text-sub); margin-top: 6px; }
.bemove-sales-inflow .bemove-sales-inflow-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.bemove-sales-table-section h4 { margin-bottom: 0.75rem; }
.bemove-sales-table-pane { display: none; }
.bemove-sales-table-pane.is-active { display: block; }
.bemove-sales-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bemove-sales-table th, .bemove-sales-table td { padding: 0.6rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
.bemove-sales-table th { background: #f8fafc; font-weight: 600; color: var(--text-sub); }
.bemove-sales-badge { display: inline-block; padding: 0.2rem 0.5rem; border-radius: 999px; font-size: 12px; font-weight: 600; }
.bemove-sales-badge-new { background: #d1fae5; color: #047857; }
.bemove-sales-badge-rereg { background: #dbeafe; color: #1d4ed8; }
.bemove-sales-badge-deposit { background: #ffedd5; color: #c2410c; }
.bemove-sales-badge-outstanding { background: #fce7f3; color: #be185d; }
.bemove-sales-actions { white-space: nowrap; }
.bemove-sales-btn-edit, .bemove-sales-btn-delete { background: none; border: none; cursor: pointer; padding: 0 4px; font-size: 14px; }
.bemove-sales-goal-summary { margin-top: 0.75rem; font-size: 14px; color: var(--text-sub); }
.bemove-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 10000; }
.bemove-modal { background: #fff; border-radius: 12px; min-width: 320px; max-width: 480px; width: 90%; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.bemove-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); font-weight: 700; }
.bemove-modal-close { background: none; border: none; font-size: 24px; cursor: pointer; line-height: 1; opacity: 0.7; }
.bemove-modal-body { padding: 1.25rem; }
.bemove-modal-foot { display: flex; justify-content: flex-end; gap: 0.5rem; padding: 1rem 1.25rem; border-top: 1px solid var(--border); }
.bemove-modal-head h3 { margin: 0; font-size: 16px; }
.bemove-modal-body,
.bemove-modal-body label,
.bemove-modal-body input,
.bemove-modal-body select,
.bemove-modal-body textarea,
.bemove-modal-foot .btn { font-size: 13px; white-space: nowrap; }
.btn-nowrap { white-space: nowrap; }
.expense-request-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.expense-request-status-badge.is-draft {
  background: #f3f4f6;
  color: #374151;
}
.expense-request-status-badge.is-pending {
  background: #fef3c7;
  color: #92400e;
}
.expense-request-status-badge.is-approved {
  background: #dcfce7;
  color: #166534;
}
.expense-request-status-badge.is-rejected {
  background: #fee2e2;
  color: #991b1b;
}
.expense-request-status-badge.is-done {
  background: #dbeafe;
  color: #1d4ed8;
}
.expense-request-status-badge.is-cancelled {
  background: #e5e7eb;
  color: #6b7280;
}
.expense-request-status-badge.is-default {
  background: #e2e8f0;
  color: #334155;
}
.fx-expense-request-modal .fx-modal-body {
  padding-top: 14px;
}
.expense-request-entry-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}
.expense-request-entry-table th,
.expense-request-entry-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 12px;
  vertical-align: middle;
}
.expense-request-entry-table tr:last-child th,
.expense-request-entry-table tr:last-child td {
  border-bottom: 0;
}
.expense-request-entry-table th {
  width: 160px;
  background: #f8fafc;
  text-align: left;
  font-weight: 700;
  color: #1f2937;
}
.er-modal-bulk-preview .profit-table th,
.er-modal-bulk-preview .profit-table td {
  padding-top: 8px;
  padding-bottom: 8px;
}
.bemove-modal-foot .btn { min-height: 38px; }
.bemove-form-row { margin-bottom: 1rem; }
.bemove-form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 0.35rem; color: var(--text-sub); }
.bemove-form-row input { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; }
.bemove-adjust-sessions-btn { margin-left: 0.5rem; vertical-align: middle; }
.bemove-sales-form-section { margin-bottom: 1rem; }
.bemove-sales-form-section label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 0.35rem; color: var(--text-sub); }
.bemove-sales-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.bemove-sales-radio-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.bemove-sales-radio, .bemove-sales-radio-contract { padding: 0.5rem 1rem; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 14px; cursor: pointer; }
.bemove-sales-radio.is-active, .bemove-sales-radio-contract.is-active { border-color: #2563eb; color: #2563eb; background: #eff6ff; }
.bemove-sales-select, .bemove-sales-form-section input[type="text"], .bemove-sales-form-section input[type="number"], .bemove-sales-form-section input[type="date"] { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; }
.bemove-sales-member-search-wrap { margin-bottom: 0.5rem; }
.bemove-sales-form-section .bemove-sales-select { display: block; }
.bemove-sales-table-filters { display: grid; grid-template-columns: 140px 1fr 1fr 1.4fr auto; gap: 8px; margin: 10px 0 12px; align-items: center; }
.bemove-sales-table-filters input[type="date"],
.bemove-sales-table-filters input[type="text"] { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; }
@media (max-width: 900px) {
  .bemove-sales-table-filters { grid-template-columns: 1fr 1fr; }
}
.bemove-refund-head { background: #dc2626; color: #fff; }
.bemove-refund-notice { background: #fef3c7; color: #92400e; padding: 0.75rem 1rem; border-radius: 8px; font-size: 13px; margin-bottom: 1rem; }

/* 일정 관리 */
.bemove-schedule-main { padding: 1rem; }
.bemove-schedule-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.bemove-schedule-nav { display: flex; align-items: center; gap: 0.5rem; }
.bemove-schedule-nav-btn { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.bemove-schedule-nav-btn:hover { background: #f1f5f9; }
.bemove-schedule-month { font-size: 1.25rem; font-weight: 700; min-width: 140px; text-align: center; }
.bemove-schedule-today { padding: 0.4rem 0.75rem; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 14px; cursor: pointer; }
.bemove-schedule-today:hover { background: #f1f5f9; }
.bemove-schedule-view-mode { display: flex; gap: 0.25rem; }
.bemove-schedule-view-btn { padding: 0.4rem 0.75rem; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 14px; cursor: pointer; }
.bemove-schedule-view-btn.is-active { border-color: #2563eb; color: #2563eb; background: #eff6ff; }
.bemove-schedule-add { white-space: nowrap; }
.bemove-schedule-grid { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.bemove-schedule-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); background: #f8fafc; font-size: 13px; font-weight: 600; color: var(--text-sub); text-align: center; }
.bemove-schedule-weekday { padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--border); }
.bemove-schedule-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.bemove-schedule-cell { min-height: 80px; padding: 0.5rem; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); cursor: pointer; position: relative; }
.bemove-schedule-cell:nth-child(7n) { border-right: none; }
.bemove-schedule-cell:hover { background: #f8fafc; }
.bemove-schedule-cell.is-other-month { background: #fafafa; color: #94a3b8; }
.bemove-schedule-cell.is-today { background: #eff6ff; }
.bemove-schedule-cell.is-today .bemove-schedule-cell-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #2563eb; color: #fff; font-weight: 700; }
.bemove-schedule-cell-num { font-size: 14px; font-weight: 500; }
.bemove-schedule-cell-dots { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.bemove-schedule-dot { width: 6px; height: 6px; border-radius: 50%; background: #2563eb; }

/* 수업 일정 잡기 모달 */
.bemove-schedule-class-modal .bemove-modal { max-width: 420px; }
.bemove-schedule-field { margin-bottom: 1rem; }
.bemove-schedule-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 0.35rem; color: var(--text-sub); }
.bemove-schedule-input-wrap { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.bemove-schedule-input-wrap .bemove-schedule-icon { padding: 0 0.75rem; color: #64748b; font-size: 14px; }
.bemove-schedule-input-wrap .bemove-schedule-icon-right { padding: 0 0.75rem; color: #64748b; font-size: 14px; margin-left: auto; }
.bemove-schedule-select, .bemove-schedule-date, .bemove-schedule-time, .bemove-schedule-time-select { flex: 1; border: none; padding: 0.6rem 0.75rem; font-size: 14px; min-width: 0; }
.bemove-schedule-time-selects { display: flex; gap: 6px; width: 100%; padding-right: 0.4rem; }
.bemove-schedule-time-select { background: #fff; border: 1px solid var(--border); border-radius: 6px; }
.bemove-schedule-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.bemove-schedule-duration-group { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.bemove-schedule-duration { padding: 0.5rem 1rem; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 14px; cursor: pointer; }
.bemove-schedule-duration.is-active { border-color: #2563eb; color: #2563eb; background: #eff6ff; font-weight: 600; }
.bemove-schedule-end-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-sub); }
.bemove-schedule-end-label { display: flex; align-items: center; gap: 0.25rem; }
.bemove-schedule-submit { width: 100%; justify-content: center; padding: 0.75rem; }
.bemove-schedule-time-hint { font-size: 12px; color: var(--text-muted); margin: 0.25rem 0 0; }

/* 주별/일별 보기 - 0~24시 타임테이블 */
.bemove-schedule-timetable { width: 100%; border-collapse: collapse; font-size: 13px; }
.bemove-schedule-timetable th, .bemove-schedule-timetable td { border: 1px solid var(--border); padding: 6px 8px; vertical-align: top; text-align: left; }
.bemove-schedule-timetable thead th { background: #f8fafc; font-weight: 700; color: var(--text-sub); }
.bemove-schedule-time-col { width: 56px; min-width: 56px; text-align: center !important; font-weight: 600; color: var(--text-sub); white-space: nowrap; }
.bemove-schedule-day-col { min-width: 80px; }
.bemove-schedule-day-col.is-today { background: #eff6ff; }
.bemove-schedule-timetable-cell { cursor: pointer; min-height: 32px; }
.bemove-schedule-timetable-cell:hover { background: #f8fafc; }
.bemove-schedule-timetable-cell.bemove-schedule-drop-target { background: #dbeafe !important; outline: 2px dashed #3b82f6; outline-offset: -2px; }
.bemove-schedule-grid-week { overflow-x: auto; padding: 0; }
.bemove-schedule-grid-week .bemove-schedule-timetable { margin: 0; }
.bemove-schedule-slot-chip { font-size: 12px; color: var(--text); background: #e0e7ff; padding: 4px 8px; border-radius: 6px; margin-bottom: 4px; }
.bemove-schedule-slot-chip[draggable="true"],
.bemove-schedule-day-slot-row[draggable="true"] { cursor: grab; }
.bemove-schedule-slot-chip:last-child { margin-bottom: 0; }
.bemove-schedule-grid-day { padding: 1rem; }
.bemove-schedule-grid-day .bemove-schedule-timetable-day .bemove-schedule-timetable-cell { min-width: 200px; }
.bemove-schedule-day-header { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.bemove-schedule-day-slot-row { padding: 4px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.bemove-schedule-day-slot-row:last-child { border-bottom: none; }
.bemove-schedule-delete-btn { margin-left: 6px; padding: 2px 6px; font-size: 12px; border: none; background: transparent; cursor: pointer; vertical-align: middle; }
.bemove-schedule-delete-btn:hover { background: rgba(239, 68, 68, 0.15); border-radius: 4px; }
.bemove-schedule-cal-dot.bemove-schedule-clickable-slot { cursor: pointer; padding: 0 2px; }
.bemove-schedule-cal-dot.bemove-schedule-clickable-slot:hover { opacity: 0.8; text-decoration: underline; }
.bemove-schedule-grid-list { padding: 1rem; }
.bemove-schedule-list-table { width: 100%; }
.bemove-schedule-cell-actions { white-space: nowrap; }
.bemove-schedule-list-row.bemove-schedule-clickable-slot { cursor: pointer; }
.bemove-schedule-list-row.bemove-schedule-clickable-slot:hover { background: #f8fafc; }
.bemove-modal-foot .btn-danger { color: #dc2626; border-color: #dc2626; }
.bemove-modal-foot .btn-danger:hover { background: #dc2626; color: #fff; }
/* 재등록 성과 */
.bemove-retention-screen { padding: 0 4px; }
.bemove-retention-hero { margin-bottom: 20px; }
.bemove-retention-title { font-size: 22px; font-weight: 800; color: var(--text); margin: 0 0 4px; }
.bemove-retention-subtitle { font-size: 14px; color: var(--text-sub); margin: 0; }
.bemove-retention-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.bemove-retention-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; position: relative; overflow: hidden; }
.bemove-retention-card-icon { position: absolute; top: 12px; right: 12px; font-size: 24px; opacity: 0.7; }
.bemove-retention-card-rate { border-left: 4px solid var(--primary); }
.bemove-retention-card-sales { border-left: 4px solid var(--warning); }
.bemove-retention-card-churned { border-left: 4px solid var(--danger); }
.bemove-retention-card-value { font-size: 28px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.bemove-retention-card-label { font-size: 13px; font-weight: 700; color: var(--text-sub); margin-bottom: 4px; }
.bemove-retention-card-detail { font-size: 12px; color: var(--text-muted); }
.bemove-retention-table-wrap { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; overflow-x: auto; }
.bemove-retention-table-title { margin: 0 0 12px; font-size: 16px; font-weight: 800; }
.bemove-retention-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bemove-retention-table th, .bemove-retention-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.bemove-retention-table th { font-weight: 700; color: var(--text-sub); background: #f8fafc; }
.bemove-retention-status { padding: 2px 8px; border-radius: 6px; font-weight: 600; font-size: 13px; }
.bemove-retention-status-success { background: #dcfce7; color: #166534; }
.bemove-retention-status-fail { background: #fee2e2; color: #991b1b; }
.bemove-retention-status-pending { background: #e0e7ff; color: #3730a3; }
.bemove-retention-empty { text-align: center; color: var(--text-muted); padding: 24px; margin: 0; font-size: 14px; }

/* 만족도 관리 */
.bemove-satisfaction-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.bemove-kpi { font-size: 1.6rem; font-weight: 800; line-height: 1.2; display: block; margin-top: 6px; }
.bemove-satisfaction-table-wrap { overflow-x: auto; }
.bemove-satisfaction-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bemove-satisfaction-table th, .bemove-satisfaction-table td { border-bottom: 1px solid var(--border); padding: 10px; text-align: left; }
.bemove-satisfaction-table th { color: var(--text-sub); background: #f8fafc; font-weight: 700; }

/* 회원 설문 모달 */
.bemove-survey-modal { width: min(760px, calc(100vw - 24px)); }
.bemove-survey-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin-bottom: 12px; }
.bemove-survey-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; }
.bemove-survey-item select { min-width: 94px; border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; background: #fff; }
.bemove-survey-msg { display: block; margin-top: 10px; }
.bemove-survey-msg > span { display: block; margin-bottom: 6px; font-size: 13px; color: var(--text-sub); font-weight: 700; }
.bemove-survey-msg textarea { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 10px; resize: vertical; min-height: 72px; }

/* 회원 식단 */
.bemove-diet-summary-kcal { font-size: 28px; font-weight: 900; color: #111827; margin-top: 6px; }
.bemove-diet-summary-line { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: nowrap; }
.bemove-diet-summary-macros { display: inline-flex; align-items: center; gap: 12px; color: #64748b; font-size: 14px; font-weight: 600; white-space: nowrap; }
.bemove-diet-summary-macros b { color: #334155; font-weight: 800; }
.bemove-diet-kpi-grid { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bemove-diet-kpi-value { font-size: 22px; font-weight: 800; margin-top: 4px; color: #1f2937; }
.bemove-diet-mix { margin-top: 6px; display: grid; gap: 6px; }
.bemove-diet-mix-row { display: grid; grid-template-columns: 40px 1fr 40px; gap: 8px; align-items: center; font-size: 12px; color: var(--text-sub); }
.bemove-diet-mix-row .bar { height: 7px; background: #eef2ff; border-radius: 999px; overflow: hidden; }
.bemove-diet-mix-row .bar i { display: block; height: 100%; background: #4f46e5; border-radius: 999px; }
.bemove-diet-mix-row strong { text-align: right; font-size: 12px; color: #374151; }
.bemove-diet-create-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.bemove-diet-create-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text-sub); }
.bemove-diet-create-grid label.full { grid-column: 1 / -1; }
.bemove-diet-create-grid input,
.bemove-diet-create-grid select,
.bemove-diet-create-grid textarea { border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font-size: 13px; background: #fff; }
.bemove-diet-photo-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bemove-diet-photo-inputs input[type="file"] { width: 100%; }
.bemove-diet-photo-inputs .btn { width: 100%; justify-content: center; }
#bemove-diet-photo-selection { display: block; margin-top: 6px; }
.bemove-diet-create-actions { margin-top: 10px; display: flex; justify-content: flex-end; }
.bemove-diet-alert-card { margin-top: 10px; }
.bemove-diet-alert-list { display: grid; gap: 8px; }
.bemove-diet-alert-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: 10px; }
.bemove-diet-alert-row p { margin: 4px 0 0; font-size: 12px; color: var(--text-sub); }
.bemove-diet-alert-row.is-read { opacity: 0.72; background: #f8fafc; }
.bemove-diet-log-list { margin-top: 12px; display: grid; gap: 10px; }
.bemove-diet-log-card { padding: 12px; }
.bemove-diet-log-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.bemove-diet-log-head strong { font-size: 14px; }
.bemove-diet-log-head span { font-size: 12px; color: var(--text-sub); }
.bemove-diet-top-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.bemove-diet-top-main { flex: 1; min-width: 0; }
.bemove-diet-top-kcal { display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; padding: 4px 10px; border-radius: 999px; background: #eef2ff; color: #3730a3; font-size: 16px; font-weight: 800; letter-spacing: 0.01em; }
.bemove-diet-top-photo { display: inline-flex; width: 92px; height: 92px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: #f8fafc; flex: 0 0 auto; }
.bemove-diet-top-photo img { width: 100%; height: 100%; object-fit: cover; }
.bemove-diet-top-photo.is-empty { width: 92px; height: 92px; opacity: 0.35; }
.bemove-diet-items { margin: 0 0 2px; font-size: 12px; }
.bemove-diet-nutri-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bemove-diet-nutri-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-sub); }
.bemove-diet-nutri-grid input { border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; font-size: 12px; }
.bemove-diet-ai-feedback-input { margin-top: 8px; width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 8px; font-size: 12px; resize: vertical; min-height: 56px; }
.bemove-diet-ai-feedback-input[readonly] { background: #f8fafc; color: #334155; }
.bemove-diet-analysis-error { margin-top: 6px; font-size: 11px; color: #b45309; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; padding: 6px 8px; }
.bemove-diet-log-foot { margin-top: 8px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.bemove-diet-log-actions { display: flex; align-items: center; gap: 6px; }
.bemove-diet-log-actions .btn { white-space: nowrap; }
.bemove-diet-archive-card { margin-top: 10px; }
.bemove-diet-archive-wrap { overflow-x: auto; }
.bemove-diet-archive-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.bemove-diet-archive-table th, .bemove-diet-archive-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.bemove-diet-archive-table th { color: var(--text-sub); background: #f8fafc; font-weight: 700; }
.bemove-diet-archive-row { cursor: pointer; }
.bemove-diet-archive-row:hover { background: #f8fafc; }
.bemove-diet-archive-row.is-active { background: #eef2ff; }
.bemove-diet-archive-details { margin-top: 10px; }
.bemove-diet-archive-detail { display: none; }
.bemove-diet-archive-detail.is-open { display: block; }
.bemove-diet-thread-wrap { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.bemove-diet-thread-wrap h5 { margin: 0 0 8px; font-size: 13px; }
.bemove-diet-thread { display: grid; gap: 6px; }
.bemove-diet-thread-row { border: 1px solid var(--border); border-radius: 8px; padding: 8px; background: #fafcff; }
.bemove-diet-thread-row strong { font-size: 12px; }
.bemove-diet-thread-row span { margin-left: 6px; font-size: 11px; color: var(--text-sub); }
.bemove-diet-thread-row p { margin: 6px 0 0; font-size: 12px; color: var(--text); }
.bemove-diet-thread-input { margin-top: 8px; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.bemove-diet-thread-input textarea { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 8px; font-size: 12px; resize: vertical; min-height: 52px; }
.bemove-trainer-diet-feedback-modal { width: min(980px, calc(100vw - 24px)); max-width: 980px; }
.bemove-trainer-diet-feedback-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.bemove-trainer-diet-feedback-top h4 { margin: 0; font-size: 16px; }
.bemove-trainer-diet-feedback-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bemove-trainer-diet-feedback-card textarea { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 8px; font-size: 12px; resize: vertical; min-height: 58px; margin-top: 8px; }
@media (max-width: 900px) {
  .bemove-diet-kpi-grid { grid-template-columns: 1fr; }
  .bemove-diet-nutri-grid { grid-template-columns: 1fr 1fr; }
  .bemove-diet-top-kcal { font-size: 18px; }
  .bemove-diet-top-photo, .bemove-diet-top-photo.is-empty { width: 72px; height: 72px; }
  .bemove-diet-summary-line { align-items: center; }
  .bemove-diet-summary-macros { gap: 8px; font-size: 12px; }
  .bemove-member-kcal-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .bemove-member-kcal-kpis span { padding: 7px 8px; gap: 6px; }
  .bemove-trainer-diet-feedback-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bemove-member-kcal-kpis { gap: 4px; }
  .bemove-member-kcal-kpis span { padding: 6px; gap: 4px; border-radius: 8px; }
  .bemove-member-kcal-kpis em { font-size: 10px; }
  .bemove-member-kcal-kpis strong { font-size: 11px; letter-spacing: -0.03em; }
}
@media (max-width: 420px) {
  .bemove-member-kcal-kpis em { font-size: 9px; }
  .bemove-member-kcal-kpis strong { font-size: 10px; }
}

/* 인사이트 */
.bemove-insight-title { margin: 0; font-size: 1.5rem; font-weight: 900; color: var(--text); letter-spacing: -0.01em; }
.bemove-insight-sub { margin: 4px 0 14px; color: var(--text-sub); font-size: 13px; }
.bemove-insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
.bemove-insight-card { border-radius: 14px; min-height: 190px; box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05); }
.bemove-insight-grid > .bemove-insight-card { height: 100%; }
.bemove-insight-sales-card { min-height: 264px; }
.bemove-insight-grid .big { font-size: 2rem; font-weight: 900; margin-top: 8px; letter-spacing: -0.01em; }
.bemove-insight-month-bars { margin-top: 10px; display: grid; gap: 7px; }
.bemove-insight-month-row { display: grid; grid-template-columns: 40px 1fr 90px; align-items: center; gap: 8px; font-size: 12px; color: #6b7280; }
.bemove-insight-month-row strong { white-space: nowrap; text-align: right; }
.bemove-insight-month-bar { height: 8px; background: #eef2ff; border-radius: 999px; overflow: hidden; }
.bemove-insight-month-bar i { display: block; height: 100%; background: #4f46e5; border-radius: 999px; }
.bemove-insight-rank-row { display: grid; grid-template-columns: 30px 64px 1fr 72px 80px; align-items: center; gap: 8px; border: 1px solid #dbe3ff; border-radius: 12px; padding: 10px 12px; margin-top: 8px; background: #f8fbff; }
.bemove-insight-rank-head { display: grid; grid-template-columns: 30px 64px 1fr 72px 80px; gap: 8px; align-items: center; margin-top: 6px; padding: 0 12px; color: #64748b; font-size: 11px; font-weight: 700; }
.bemove-insight-rank-row .rank-badge { font-size: 18px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.bemove-insight-rank-row .amount { font-size: 1rem; font-weight: 900; color: #111827; }
.bemove-insight-rank-row .name { font-weight: 700; color: #1f2937; }
.bemove-insight-rank-row .name .me-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.14);
}
.bemove-insight-rank-row .title, .bemove-insight-rank-row .branch { color: #6b7280; font-size: 12px; text-align: right; }
.bemove-insight-rank-row.is-gold { border-color: #f59e0b; background: linear-gradient(90deg, #fff7ed 0%, #fffbeb 100%); }
.bemove-insight-rank-row.is-silver { border-color: #94a3b8; background: linear-gradient(90deg, #f8fafc 0%, #f1f5f9 100%); }
.bemove-insight-rank-row.is-bronze { border-color: #b45309; background: linear-gradient(90deg, #fff7ed 0%, #ffedd5 100%); }
.bemove-insight-rank-row.is-me { box-shadow: 0 0 0 2px rgba(59,130,246,0.28) inset; }
.bemove-insight-rank-row.is-dummy { opacity: 0.9; }
.bemove-insight-overall { font-size: 3rem; line-height: 1; font-weight: 900; text-align: center; margin: 6px 0 12px; }
.bemove-insight-stars { text-align: center; color: #facc15; letter-spacing: 2px; font-size: 15px; margin-top: -4px; margin-bottom: 10px; }
.bemove-insight-score-list { display: grid; gap: 8px; }
.bemove-insight-score-row { display: grid; grid-template-columns: 72px 1fr 34px; align-items: center; gap: 8px; font-size: 12px; }
.bemove-insight-score-row .bar { height: 8px; background: #eef2ff; border-radius: 999px; overflow: hidden; }
.bemove-insight-score-row .bar i { display: block; height: 100%; background: #4f46e5; border-radius: 999px; }
.bemove-insight-feedback-list { display: grid; gap: 8px; }
.bemove-insight-feedback-row { border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.bemove-insight-feedback-row .msg { margin-top: 4px; font-size: 13px; color: var(--text); }
.bemove-insight-feedback-row .msg.private { color: #4b5563; font-weight: 600; }
.bemove-insight-survey-card { background: linear-gradient(180deg, #f8faff 0%, #f2f6ff 100%); }
.bemove-insight-survey-kpi { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(99, 102, 241, 0.08); }
.bemove-insight-survey-kpi span { color: #475569; font-size: 12px; font-weight: 600; }
.bemove-insight-survey-kpi strong { color: #1d4ed8; font-size: 1.35rem; font-weight: 900; }
.bemove-insight-send-btn { width: 100%; margin-top: 12px; }
.bemove-insight-feedback-card { grid-column: 1 / -1; }
@media (max-width: 980px) {
  .bemove-insight-grid { grid-template-columns: 1fr; }
  .bemove-survey-items { grid-template-columns: 1fr; }
  .bemove-insight-rank-head { grid-template-columns: 26px 56px 1fr; }
  .bemove-insight-rank-row { grid-template-columns: 26px 56px 1fr; }
  .bemove-insight-rank-row .title, .bemove-insight-rank-row .branch { display: none; }
}
/* 소진율 가로 그래프 요약 블록 */
.bemove-schedule-summary-row { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-bottom: 0.75rem; }
.bemove-schedule-summary-block { margin-bottom: 0; flex: 1 1 200px; min-width: 180px; }
/* 한 줄 요약: 라벨 + 그래프(막대) + 갯수 % */
.bemove-schedule-summary-oneline { display: flex; align-items: center; gap: 0.5rem 0.75rem; flex: 1 1 auto; min-width: 0; }
.bemove-schedule-summary-oneline .bemove-schedule-summary-label { font-size: 0.875rem; font-weight: 600; color: var(--text); white-space: nowrap; margin: 0; }
.bemove-schedule-summary-oneline .bemove-schedule-summary-bar-wrap { flex: 1; min-width: 60px; height: 8px; margin: 0; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,0.12); }
.bemove-schedule-summary-oneline .bemove-schedule-summary-bar { height: 100%; border-radius: 999px; transition: width 0.3s ease; min-width: 2px; }
.bemove-schedule-summary-oneline .bemove-schedule-summary-text { font-size: 0.875rem; color: var(--text-muted, rgba(255,255,255,0.7)); white-space: nowrap; margin: 0; }
.bemove-schedule-summary-oneline .bemove-schedule-summary-text .bemove-schedule-summary-pct { font-weight: 700; color: var(--text); }
.bemove-schedule-summary-block .bemove-schedule-summary-label { font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 0.35rem; }
.bemove-schedule-summary-bar-wrap { height: 10px; background: rgba(255,255,255,0.12); border-radius: 999px; overflow: hidden; margin-bottom: 0.35rem; }
.bemove-schedule-summary-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #22c55e 0%, #4ade80 100%); transition: width 0.3s ease; min-width: 2px; }
.bemove-schedule-summary-bar-period { background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%); }
.bemove-schedule-summary-text { font-size: 0.875rem; color: var(--text-muted, rgba(255,255,255,0.7)); }
.bemove-schedule-summary-text .bemove-schedule-summary-pct { font-weight: 700; color: var(--text); }
.bemove-schedule-today-summary { }
.bemove-schedule-month-summary { }
.bemove-schedule-briefing { margin-bottom: 12px; }
.bemove-schedule-briefing h4 { margin: 0 0 8px; font-size: 15px; font-weight: 800; }
.bemove-schedule-briefing p { margin: 4px 0; font-size: 13px; color: #334155; }
.bemove-schedule-journal-btn { margin-right: 0.5rem; }
.bemove-schedule-delete-in-modal { white-space: nowrap; color: #fff !important; background: #dc2626 !important; border-color: #dc2626 !important; }
.bemove-schedule-delete-in-modal:hover { background: #b91c1c !important; color: #fff !important; }
.bemove-schedule-cancel-btn { white-space: nowrap; border-color: #f59e0b !important; color: #b45309 !important; }
.bemove-schedule-cancel-btn:hover { background: #f59e0b !important; color: #fff !important; }
.bemove-schedule-modal-actions { gap: 10px; }
.bemove-schedule-modal-actions .btn { flex: 1 1 0; white-space: nowrap; padding-left: 8px; padding-right: 8px; }
.bemove-schedule-modal-actions .bemove-schedule-journal-btn { margin-right: 0; }

.bemove-trainer-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: #fff;
}
.bemove-trainer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.bemove-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 20px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.12);
}
.bemove-trainer-right {
  float: right;
  margin-top: -26px;
  font-weight: 800;
  color: #2563eb;
}
.bemove-trainer-row-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.bemove-trainer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.bemove-trainer-info { flex: 1; min-width: 0; }
.bemove-trainer-meta { font-size: 11px; color: var(--text-sub); margin-top: 2px; }
.bemove-role-tag {
  font-size: 11px;
  color: var(--text-sub);
  margin-left: 6px;
}
.bemove-trainer-pct {
  font-weight: 700;
  color: #2563eb;
  font-size: 14px;
}
.bemove-trainer-foot {
  margin-top: 6px;
  color: var(--text-sub);
  font-size: 12px;
}
.bemove-share-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0;
}
.bemove-share-row {
  display: grid;
  grid-template-columns: 100px 1fr 80px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.bemove-share-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bemove-share-bar-wrap {
  height: 20px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}
.bemove-share-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #8b5cf6 0%, #6366f1 100%);
  min-width: 0;
  transition: width 0.2s ease;
}
.bemove-share-pct { font-size: 12px; color: var(--text-sub); text-align: right; }
.bemove-chart-month { font-size: 12px; color: var(--text-sub); margin-top: 8px; display: block; }
.bemove-chart-placeholder {
  border: 1px dashed var(--border);
  border-radius: 10px;
  min-height: 220px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.bemove-chart-bar {
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8b5cf6 0%, #6366f1 100%);
}
.bemove-chart-placeholder span {
  font-size: 12px;
  color: var(--text-sub);
}
.bemove-branch-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.bemove-branch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
}
.bemove-branch-head span {
  color: var(--text-sub);
  font-weight: 700;
}
.bemove-branch-foot {
  margin-top: 6px;
  color: var(--text-sub);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (max-width: 1200px) {
  .bemove-stat-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
  .bemove-branch-kpi-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
  .bemove-grid {
    grid-template-columns: 1fr;
  }
}

/* ── 매출 탭: 업로드 대상 선택 ── */
.sales-upload-target {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sales-upload-target-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
}
.sales-upload-target-select {
  max-width: 360px;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}
.sales-upload-target-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}
.sales-upload-target-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* Bemove 모드에서는 Formula 전역 지점 선택 바를 숨긴다 */
body[data-app-mode="bemove"] #branch-selector {
  display: none !important;
}

.sales-drop-zone {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 1rem;
  cursor: default;
  transition: border-color 0.15s, background 0.15s;
}
.sales-drop-zone:focus {
  outline: none;
  border-color: var(--primary);
}
.sales-drop-zone.sales-drop-zone-over {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.06);
  color: var(--text);
}

.sales-upload-report {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 8px;
}

.sales-upload-report .item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
}

/* 매출 탭: 제목과 업로드 같은 줄, 업로드는 토글로 최소화 */
.sales-tab-layout {
  display: block;
}
.sales-tab-main {
  width: 100%;
}
.sales-tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
  margin-bottom: 10px;
}
.sales-tab-header .sales-tab-title {
  line-height: 36px;
  margin: 0;
  font-size: 18px;
}
.sales-tab-header .sales-upload-card .sales-upload-card-header {
  min-height: 36px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
}
.sales-upload-card {
  flex-shrink: 0;
  min-width: 0;
}
.sales-upload-card-collapsed {
  width: auto;
  padding: 0;
}
.sales-upload-card-collapsed .sales-upload-card-header {
  margin-bottom: 0;
  border-radius: var(--radius);
}
.sales-upload-card:not(.sales-upload-card-collapsed) {
  min-width: 280px;
  width: 100%;
  max-width: 360px;
}
.sales-upload-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--bg-sub, #f1f5f9);
  cursor: pointer;
  user-select: none;
}
.sales-upload-card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.sales-upload-card-toggle {
  padding: 4px 6px;
  font-size: 10px;
  line-height: 1;
  border: none;
  background: transparent;
  color: var(--text-sub);
  cursor: pointer;
  border-radius: 4px;
}
.sales-upload-card-toggle:hover {
  color: var(--text);
  background: rgba(0,0,0,0.06);
}
.sales-upload-card-body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.sales-upload-card-collapsed .sales-upload-card-body {
  display: none;
}
.sales-period-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sales-period-wrap label { font-size: 13px; font-weight: 600; color: var(--text-sub); }
.sales-context-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub, #64748b);
  margin-left: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}
.sales-month-projection-slot {
  flex: 1 1 200px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}
.sales-month-projection-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  font-size: 12px;
  line-height: 1.35;
  max-width: 100%;
  box-sizing: border-box;
}
.sales-month-projection-label {
  font-weight: 700;
  color: #1e40af;
  white-space: nowrap;
}
.sales-month-projection-value {
  font-weight: 800;
  font-size: 15px;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.sales-month-projection-hint {
  color: var(--text-sub, #64748b);
  font-size: 11px;
  white-space: nowrap;
}
.sales-total-cell-with-projection {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
}
.sales-month-projection-inline {
  font-size: 11px;
  font-weight: 600;
  color: #1d4ed8;
  line-height: 1.25;
}
.sales-month-projection-inline-label {
  font-weight: 700;
  color: #334155;
}
.sales-period-toggle-inline {
  display: flex;
  gap: 6px;
}

.sales-meta-toggle-row {
  display: flex;
  justify-content: flex-start;
}

.sales-meta-panel {
  margin-bottom: 12px;
}

.sales-period-toggle {
  display: flex;
  gap: 8px;
  position: sticky;
  top: 58px;
  z-index: 12;
  background: #fff;
  padding: 6px 0 8px;
  border-bottom: 1px solid #e2e8f0;
}
.sales-period-toggle .sales-period-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.sales-period-cell {
  white-space: nowrap;
}

.sales-card > h3,
.sales-table-title {
  text-align: center;
}

.sales-table-title {
  /* sticky 제거: 스크롤 시 제목이 테이블을 가리는 현상 방지 */
  margin-bottom: 8px;
}
.sales-table-card {
  padding-top: 12px;
  padding-bottom: 14px;
  margin-bottom: 12px;
}
.sales-table-card .sales-table-title {
  margin: 0 0 6px 0;
  font-size: 15px;
  line-height: 1.3;
}

.sales-table-wrap {
  width: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  max-height: 72vh;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.sales-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  font-size: 11px;
  border-collapse: separate;
  border-spacing: 0;
}

.sales-table th,
.sales-table td {
  white-space: normal;
  word-break: keep-all;
  padding: 6px 6px;
  line-height: 1.25;
  min-width: 0;
}

.sales-table th {
  text-transform: none;
  letter-spacing: 0;
  background: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 8;
  box-shadow: inset 0 -1px 0 #e2e8f0;
}

.sales-table .sales-chip {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1.35;
  font-size: 10px;
}

.sales-table .chip-pt { background: rgba(232,112,64,0.18); color: #c2410c; }
.sales-table .chip-fc { background: rgba(59,130,246,0.18); color: #1d4ed8; }
.sales-table .chip-new { background: rgba(34,197,94,0.18); color: #15803d; }
.sales-table .chip-re { background: rgba(168,85,247,0.18); color: #7e22ce; }
.sales-table .chip-member { background: rgba(22,163,74,0.15); color: #166534; }
.sales-table .chip-pt-price { background: rgba(251,146,60,0.2); color: #c2410c; }
.sales-table .chip-fc-price { background: rgba(96,165,250,0.2); color: #1d4ed8; }

.sales-amount-track {
  position: relative;
  width: 100%;
  height: 24px;
  border-radius: 6px;
  background: #eef2f7;
  overflow: hidden;
}

.sales-amount-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #cbd5e1 0%, #94a3b8 100%);
}

.sales-amount-fill.is-total {
  background: linear-gradient(90deg, #cbd5e1 0%, #94a3b8 100%);
}

.sales-amount-fill.is-pt {
  background: linear-gradient(90deg, rgba(251,146,60,0.55) 0%, rgba(234,88,12,0.55) 100%);
}

.sales-amount-fill.is-fc {
  background: linear-gradient(90deg, rgba(96,165,250,0.55) 0%, rgba(37,99,235,0.55) 100%);
}

.sales-amount-fill.is-new {
  background: linear-gradient(90deg, rgba(74,222,128,0.55) 0%, rgba(22,163,74,0.55) 100%);
}

.sales-amount-fill.is-re {
  background: linear-gradient(90deg, rgba(196,181,253,0.7) 0%, rgba(147,51,234,0.55) 100%);
}

.sales-amount-fill.is-member {
  background: linear-gradient(90deg, rgba(134,239,172,0.55) 0%, rgba(22,163,74,0.35) 100%);
}

.sales-amount-text {
  position: relative;
  z-index: 1;
  display: inline-block;
  width: 100%;
  line-height: 24px;
  text-align: center;
  font-weight: 700;
  color: #334155;
}

.sales-table .funnel-bar-row {
  height: 24px;
  min-width: 88px;
}

.sales-table .funnel-bar-row > div {
  font-size: 10px;
}

.sales-table .funnel-bar-row.ratio-left > div {
  justify-content: flex-start;
  padding-left: 6px;
}

.sales-table .funnel-bar-row {
  min-width: 100px;
}

/* FC/PT %, 신규/재등록 %: 가독성 위해 최소 너비 확보 */
.sales-table th.sales-col-fcpt-pct,
.sales-table td:nth-child(6) {
  min-width: 108px;
}
.sales-table th.sales-col-newre-pct,
.sales-table td:nth-child(9) {
  min-width: 108px;
}

/* FC신규/FC재등록/PT신규/PT재등록: 공간 절약 */
.sales-table th.member-col,
.sales-table td.member-col {
  width: 64px;
  max-width: 64px;
  min-width: 64px;
  padding-left: 4px;
  padding-right: 4px;
}

.sales-inline-ratios {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.sales-ratio-inline {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.sales-ratio-track {
  display: flex;
  width: 100%;
  height: 22px;
  border-radius: 6px;
  overflow: hidden;
  background: #eef2f7;
}

.sales-ratio-left,
.sales-ratio-right {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.sales-inline-ratio-badge {
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 6px;
  line-height: 1.2;
  white-space: nowrap;
}

/* ── Profitability Tab ── */
.profit-card {
  margin-bottom: 18px;
  border-radius: 12px;
  overflow: hidden;
}

/* 재무 관리 탭 레이아웃 (PC: 좌측 메뉴 / 모바일: 상단 세그먼트) */
.finance-layout {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}
.finance-sidebar {
  padding: 10px;
  width: fit-content;
  max-width: 170px;
}
.finance-sidebar-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
}
.finance-menu-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.finance-menu-item {
  border: 1px solid #dbe3ff;
  background: #f8fbff;
  color: #334155;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  width: 100%;
}
.finance-menu-item:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
}
.finance-menu-item.is-active {
  background: #4f46e5;
  border-color: #4338ca;
  color: #fff;
}
.finance-menu-item.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.finance-main {
  min-width: 0;
}
.finance-mobile-tabs {
  display: none;
  margin-bottom: 10px;
  padding: 6px;
}
.finance-mobile-tab-btn {
  border: 1px solid transparent;
  background: transparent;
  color: #475569;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  padding: 8px 10px;
  cursor: pointer;
  flex: 1 1 0;
}
.finance-mobile-tab-btn.is-active {
  background: #4f46e5;
  color: #fff;
  border-color: #4338ca;
}
.finance-mobile-tab-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .finance-layout {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .finance-sidebar {
    display: none;
  }
  .finance-mobile-tabs {
    display: flex;
    gap: 6px;
    align-items: center;
  }
}

:root[data-formula-theme="dark"] .finance-sidebar-title {
  color: var(--text);
}
:root[data-formula-theme="dark"] .finance-menu-item {
  background: rgba(79, 70, 229, 0.2);
  border-color: var(--border);
  color: var(--text);
}
:root[data-formula-theme="dark"] .finance-menu-item:hover {
  background: rgba(99, 102, 241, 0.32);
}
:root[data-formula-theme="dark"] .finance-mobile-tabs {
  background: var(--card);
  border-color: var(--border);
}
:root[data-formula-theme="dark"] .finance-mobile-tab-btn {
  color: var(--text-sub);
}
:root[data-formula-theme="dark"] .finance-mobile-tab-btn.is-active {
  color: #fff;
}

/* 지출 > 항목별 지출 분석 카드/차트 */
.expense-item-analytics-card {
  padding: 10px;
  margin-bottom: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.expense-item-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 10px;
}
.expense-item-chart-pane {
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
  align-items: flex-end;
  overflow-x: auto;
  padding-bottom: 4px;
}
.expense-item-chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 72px;
  max-width: 96px;
  flex: 1;
}
.expense-item-chart-amount {
  font-size: 11px;
  font-weight: 700;
}
.expense-item-chart-track {
  height: 120px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px;
}
.expense-item-chart-label {
  font-size: 12px;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

:root[data-formula-theme="dark"] .expense-item-analytics-card {
  background: var(--card);
  border-color: var(--border);
}
:root[data-formula-theme="dark"] .expense-item-chart-track {
  background: rgba(15, 23, 42, 0.7);
  border-color: var(--border);
}
:root[data-formula-theme="dark"] .expense-item-chart-amount {
  color: var(--text);
}

/* 지출 탭 보기 전환(지출 결의 / 지점 지출) */
.expense-view-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  margin: 0 0 8px 0;
  padding: 0;
}
.expense-view-switch-card {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: space-between;
  column-gap: 10px;
  row-gap: 0;
  flex: none !important;
  min-height: 44px !important;
  height: 44px !important;
  max-height: 44px !important;
  padding: 0 12px !important;
  margin-bottom: 8px;
  overflow: hidden;
  align-self: flex-start !important;
}
.expense-view-switch-head {
  display: flex;
  align-items: center;
}
.expense-view-switch-label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
  line-height: 1.2;
}
.expense-view-switch-segment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 4px;
  background: #f8fafc;
}
.expense-view-switch-btn {
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  padding: 6px 10px;
  min-height: 30px;
  cursor: pointer;
}
.expense-view-switch-btn:hover {
  background: #eef2ff;
  color: #3730a3;
}
.expense-view-switch-btn.is-active {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4338ca;
}

.expense-requests-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 10px;
}

.expense-requests-meta-chip {
  border: 1px solid #dbe3ff;
  background: #f8fbff;
  color: #334155;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  padding: 6px 10px;
  white-space: nowrap;
  cursor: pointer;
  transition: all .15s ease;
}

.expense-requests-meta-chip:hover {
  border-color: #c7d2fe;
  background: #eef2ff;
}

.expense-requests-meta-chip.is-active {
  background: #4f46e5;
  border-color: #4338ca;
  color: #fff;
}

.expense-requests-meta-chip.is-pending {
  border-color: #facc15;
  background: #fef9c3;
  color: #854d0e;
}

.expense-requests-meta-chip.is-transfer {
  border-color: #67e8f9;
  background: #ecfeff;
  color: #0e7490;
}

.expense-requests-meta-chip.is-pending.is-active,
.expense-requests-meta-chip.is-transfer.is-active {
  background: #4f46e5;
  border-color: #4338ca;
  color: #fff;
}
@media (max-width: 640px) {
  .expense-view-switch-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .expense-view-switch-card {
    display: flex;
    flex-wrap: wrap;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    padding: 10px 12px !important;
  }
  .expense-view-switch-segment {
    width: 100%;
    justify-content: stretch;
  }
  .expense-view-switch-btn {
    flex: 1 1 0;
    text-align: center;
  }
}

.profit-card h3 {
  font-weight: 700;
  color: #1e293b;
}

.profit-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.profit-table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.profit-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.profit-table th,
.profit-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  text-align: right;
  white-space: nowrap;
}

.profit-table td.col-actions {
  white-space: normal;
  min-width: 210px;
}

.table-action-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.table-action-wrap .btn {
  white-space: nowrap;
}

.profit-table thead th {
  background: #f8fafc;
  font-weight: 700;
  font-size: 12px;
  color: #475569;
  text-transform: none;
  letter-spacing: -0.01em;
}

.profit-table thead th:first-child {
  border-radius: 12px 0 0 0;
  text-align: left;
}

.profit-table thead th:last-child {
  border-radius: 0 12px 0 0;
}

/* 활동 실적 탭: 첫 행(헤더) 고정, 세로 스크롤 시 배경으로 데이터 겹침 방지 */
.activity-table-wrap {
  overflow: auto;
  max-height: min(calc(100vh - 280px), 720px);
}
.activity-table-wrap .profit-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #f8fafc;
  box-shadow: 0 1px 0 0 #e2e8f0;
}
.activity-table-wrap .profit-table thead th:first-child {
  z-index: 11;
}
.activity-table-wrap .profit-table thead th:last-child {
  box-shadow: 0 1px 0 0 #e2e8f0;
}

/* 활동 실적: 열 구분을 위한 지그재그(교차) 컬럼 배경 */
.activity-table-wrap .profit-table thead th:nth-child(2n) {
  background: #f1f5f9;
}
.activity-table-wrap .profit-table thead th:nth-child(2n+1):not(:first-child) {
  background: #e2e8f0;
}
.activity-table-wrap .profit-table tbody td:nth-child(2n) {
  background: #f8fafc;
}
.activity-table-wrap .profit-table tbody td:nth-child(2n+1):not(:first-child) {
  background: #fff;
}
.activity-table-wrap .profit-table tbody tr:nth-child(even) td:nth-child(2n) {
  background: #f1f5f9;
}
.activity-table-wrap .profit-table tbody tr:nth-child(even) td:nth-child(2n+1):not(:first-child) {
  background: #fafbfc;
}
.activity-table-wrap .profit-table tbody tr:hover td:nth-child(2n) {
  background: #e2e8f0;
}
.activity-table-wrap .profit-table tbody tr:hover td:nth-child(2n+1):not(:first-child) {
  background: #f1f5f9;
}
.activity-table-wrap .profit-table tbody td:first-child {
  background: #fff;
}
.activity-table-wrap .profit-table tbody tr:nth-child(even) td:first-child {
  background: #fafbfc;
}
.activity-table-wrap .profit-table tbody tr:hover td:first-child {
  background: #f8fafc;
}

.profit-table tbody tr {
  background: #fff;
}

.profit-table tbody tr:nth-child(even) {
  background: #fafbfc;
}

.profit-table tbody tr:hover {
  background: #f8fafc;
}

.profit-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: #334155;
}

.profit-table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 12px;
}

.profit-table tbody tr:last-child td:last-child {
  border-radius: 0 0 12px 0;
}

.profit-input {
  width: 100%;
  min-width: 96px;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 12px;
  text-align: right;
  background: #fff;
}

.profit-row-msg {
  margin-top: 6px;
  min-height: 14px;
  font-size: 11px;
}

/* 목표 매출 달성률 셀: 달성=초록, 미달=빨강 */
.profit-table .st-cell-achieved {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  font-weight: 600;
}
.profit-table .st-cell-missed {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  font-weight: 600;
}

/* 목표 매출: 월별 누적 합계·주차별 합계/합계 매출 행 */
.profit-table tbody tr.sales-target-weekly-summary-row,
.profit-table tbody tr.sales-target-weekly-grand-row {
  background: transparent;
}
.profit-table tbody tr.sales-target-weekly-summary-row td,
.profit-table tbody tr.sales-target-weekly-grand-row td {
  background: #f1f5f9;
  font-weight: 700;
}
.profit-table tbody tr.sales-target-weekly-summary-row td {
  border-top: 1px solid var(--border);
}
.profit-table tbody tr.sales-target-weekly-grand-row td.sales-target-grand-filler {
  font-weight: 500;
  color: var(--text-muted);
}
.sales-target-summary-card .profit-table tbody tr.sales-target-monthly-total-row td {
  background: #f1f5f9;
  font-weight: 700;
  border-top: 1px solid var(--border);
}

/* 다크: tr 줄무늬 배경이 합계 행을 밝게 덮지 않도록 */
:root[data-formula-theme="dark"] .profit-table tbody tr.sales-target-weekly-summary-row,
:root[data-formula-theme="dark"] .profit-table tbody tr.sales-target-weekly-grand-row {
  background: transparent !important;
}

:root[data-formula-theme="dark"] .profit-table tbody tr.sales-target-weekly-summary-row > td,
:root[data-formula-theme="dark"] .profit-table tbody tr.sales-target-weekly-grand-row > td,
:root[data-formula-theme="dark"] .sales-target-summary-card .profit-table tbody tr.sales-target-monthly-total-row > td {
  background-color: #252f42 !important;
  color: #f8fafc !important;
  border-top-color: var(--border) !important;
}

html[data-formula-theme="dark"] .profit-table tbody tr.sales-target-weekly-summary-row > td,
html[data-formula-theme="dark"] .profit-table tbody tr.sales-target-weekly-grand-row > td,
html[data-formula-theme="dark"] .sales-target-summary-card .profit-table tbody tr.sales-target-monthly-total-row > td {
  background-color: #252f42 !important;
  color: #f8fafc !important;
}

:root[data-formula-theme="dark"] .profit-table tbody tr.sales-target-weekly-summary-row td.st-cell-achieved,
:root[data-formula-theme="dark"] .profit-table tbody tr.sales-target-weekly-grand-row td.st-cell-achieved,
:root[data-formula-theme="dark"] .sales-target-summary-card .profit-table tbody tr.sales-target-monthly-total-row td.st-cell-achieved {
  background: rgba(34, 197, 94, 0.38) !important;
  color: #dcfce7 !important;
}

:root[data-formula-theme="dark"] .profit-table tbody tr.sales-target-weekly-summary-row td.st-cell-missed,
:root[data-formula-theme="dark"] .profit-table tbody tr.sales-target-weekly-grand-row td.st-cell-missed,
:root[data-formula-theme="dark"] .sales-target-summary-card .profit-table tbody tr.sales-target-monthly-total-row td.st-cell-missed {
  background: rgba(239, 68, 68, 0.38) !important;
  color: #fecaca !important;
}

:root[data-formula-theme="dark"] .profit-table tbody tr.sales-target-weekly-grand-row td.sales-target-grand-filler {
  background-color: #1e293b !important;
  color: #94a3b8 !important;
}

/* 목표 달성율 탭: 상단 통합 표, 하단 주차별 테이블 */
.goal-achievement-root {
  padding-bottom: 24px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}
/* 목표 달성률: 카드 제목 옆에 전환율 목표 표시 */
.goal-achievement-header-card .goal-achievement-title-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 1fr);
  align-items: start;
  column-gap: 14px;
  row-gap: 6px;
  margin-bottom: 8px;
}
.goal-achievement-header-card {
  max-width: 100%;
  min-width: 0;
  overflow: visible;
}
.goal-achievement-header-card .goal-achievement-title-row {
  min-width: 0;
}
.goal-achievement-header-card .goal-achievement-main-title {
  margin: 0;
  padding: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.goal-achievement-title-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.goal-achievement-legend {
  margin: 0 0 4px 0;
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
}
.goal-achievement-month-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.goal-achievement-month-inline .form-control {
  width: auto;
  min-width: 110px;
  height: 30px;
  padding: 4px 8px;
}
.goal-achievement-conversion-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: 8px;
  border-left: 3px solid var(--border);
}
.goal-achievement-conversion-block {
  justify-self: end;
  align-self: start;
  margin-left: 14px;
  max-width: 100%;
  min-width: 0;
}
.goal-achievement-conversion-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}
/* 기본 테이블 스타일: 데스크톱에서만 width 100%. 미디어 쿼리가 뒤에 와야 태블릿 고정폭이 적용됨 */
.goal-achievement-conversion-table {
  font-size: 13px;
  border-collapse: collapse;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  width: 100%;
  min-width: 360px;
  table-layout: fixed;
}
.goal-achievement-conversion-table th:first-child,
.goal-achievement-conversion-table td:first-child {
  width: 92px;
  min-width: 92px;
  max-width: 92px;
  box-sizing: border-box;
}
.goal-achievement-conversion-table th,
.goal-achievement-conversion-table td {
  padding: 5px 6px;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.goal-achievement-conversion-table thead th {
  background: #f8fafc;
  font-weight: 600;
}
.goal-achievement-conversion-table tbody tr:last-child td {
  border-bottom: none;
}
@media (max-width: 1100px) {
  .goal-achievement-header-card .goal-achievement-title-row {
    grid-template-columns: 1fr;
  }
  .goal-achievement-conversion-block {
    justify-self: start;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }
  .goal-achievement-conversion-table-wrap {
    max-width: 100%;
  }
  .goal-achievement-conversion-table {
    font-size: 12px;
    width: 360px !important;
    min-width: 360px !important;
    max-width: 360px;
  }
  .goal-achievement-conversion-table th,
  .goal-achievement-conversion-table td {
    padding: 4px 5px;
  }
  .goal-achievement-conversion-table th:first-child,
  .goal-achievement-conversion-table td:first-child {
    width: 78px;
    min-width: 78px;
    max-width: 78px;
  }
}

.bemove-period-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  margin: 10px 0 14px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}
.bemove-period-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bemove-period-filter .btn.is-active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}
.bemove-period-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.bemove-period-inputs input[type="date"] {
  height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 8px;
  font-size: 13px;
}
.bemove-equipment-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.bemove-equipment-pending-badge {
  background: #eef2ff;
  color: #4338ca;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}
.bemove-equipment-request-box {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
}
.bemove-equipment-request-box h5 {
  margin: 0 0 8px;
  font-size: 14px;
}
.bemove-equipment-req-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bemove-equipment-req-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
}
.bemove-equipment-req-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bemove-equipment-req-meta {
  color: var(--text-sub);
  font-size: 12px;
}
.bemove-equipment-req-actions {
  display: flex;
  gap: 6px;
}
.bemove-equipment-req-actions .btn {
  white-space: nowrap;
  min-width: 44px;
  padding-left: 8px;
  padding-right: 8px;
}
.nav-tab .bemove-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e0e7ff;
  color: #4338ca;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.nav-tab.active .bemove-tab-badge {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
@media (max-width: 720px) {
  .bemove-period-filter {
    align-items: flex-start;
  }
  .bemove-period-inputs {
    width: 100%;
  }
  .bemove-period-inputs input[type="date"] {
    flex: 1 1 130px;
    min-width: 120px;
  }
}
@media (max-width: 768px) {
  .goal-achievement-conversion-table {
    font-size: 11px;
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px;
  }
  .goal-achievement-conversion-table th,
  .goal-achievement-conversion-table td {
    padding: 3px 4px;
  }
  .goal-achievement-conversion-table th:first-child,
  .goal-achievement-conversion-table td:first-child {
    width: 72px;
    min-width: 72px;
    max-width: 72px;
  }
}
.goal-achievement-unified-card {
  margin-bottom: 24px;
  min-width: 0;
}
.goal-achievement-unified-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: scroll;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}
.goal-achievement-unified-table {
  min-width: 900px;
}
/* 목표 달성률: 상단 그룹 행 — 활동 지표 / 전환율 목표 위로 올려서 표시 */
.goal-achievement-unified-table thead tr.goal-achievement-thead-group th {
  padding: 12px 12px 10px 12px;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: bottom;
}
.goal-achievement-unified-card .goal-achievement-unified-table-wrap {
  margin-top: -6px;
}
.goal-achievement-unified-table thead tr.goal-achievement-thead-group th.goal-achievement-th-activity {
  text-align: left;
  background: #f8fafc;
}
.goal-achievement-unified-table thead tr.goal-achievement-thead-group th.goal-achievement-th-conversion {
  text-align: center;
  background: #f1f5f9;
  border-left: 2px solid var(--border);
}
.goal-achievement-unified-table thead tr:not(.goal-achievement-thead-group) th.goal-achievement-th-conversion-col {
  background: #f8fafc;
}
/* PT 재등록 대상/성공 열 구분선 제거 (구분선 없음) */
.goal-achievement-unified-table-wrap .goal-achievement-unified-table tbody tr:nth-child(even) td:nth-child(14),
.goal-achievement-unified-table-wrap .goal-achievement-unified-table tbody tr:nth-child(even) td:nth-child(15),
.goal-achievement-unified-table-wrap .goal-achievement-unified-table tbody tr:nth-child(even) td:nth-child(16),
.goal-achievement-unified-table-wrap .goal-achievement-unified-table tbody tr:nth-child(even) td:nth-child(17),
.goal-achievement-unified-table-wrap .goal-achievement-unified-table tbody tr:nth-child(even) td:nth-child(18) {
  background: #f8fafc;
}
.goal-achievement-unified-table .goal-achievement-target-input {
  padding: 4px 6px;
  font-size: 13px;
}

/* 목표 달성률: 상단 통합 표 — 구분 열 틀 고정 */
.goal-achievement-unified-table-wrap .goal-achievement-unified-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 10;
  background: #f8fafc;
  min-width: 88px;
  box-shadow: 2px 0 0 #e2e8f0;
}
.goal-achievement-unified-table-wrap .goal-achievement-unified-table tbody td:first-child {
  position: sticky;
  left: 0;
  z-index: 5;
  background: #fff;
  min-width: 88px;
  box-shadow: 2px 0 0 #e2e8f0;
  font-weight: 600;
}
.goal-achievement-unified-table-wrap .goal-achievement-unified-table tbody tr:nth-child(even) td:first-child {
  background: #fafbfc;
}
.goal-achievement-unified-table-wrap .goal-achievement-unified-table tbody tr:hover td:first-child {
  background: #f8fafc;
}

.goal-achievement-bottom {
  display: block;
  width: 100%;
  min-width: 0;
}
.goal-achievement-bottom .card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.goal-achievement-bottom .profit-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: scroll;
  -webkit-overflow-scrolling: touch;
}
.goal-achievement-bottom .profit-table {
  min-width: 1200px;
}

.goal-achievement-insight-card .insight-item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 목표 달성률: 주차별 FC/PT 매출·스마트 플레이스 문의수 테이블 — 왼쪽 7열(주차~PT 달성률) 틀 고정 */
.goal-achievement-place-table-wrap .profit-table thead th:nth-child(1),
.goal-achievement-place-table-wrap .profit-table thead th:nth-child(2),
.goal-achievement-place-table-wrap .profit-table thead th:nth-child(3),
.goal-achievement-place-table-wrap .profit-table thead th:nth-child(4),
.goal-achievement-place-table-wrap .profit-table thead th:nth-child(5),
.goal-achievement-place-table-wrap .profit-table thead th:nth-child(6),
.goal-achievement-place-table-wrap .profit-table thead th:nth-child(7) {
  position: sticky;
  z-index: 10;
  background: #f8fafc;
  box-shadow: 1px 0 0 #e2e8f0;
}
.goal-achievement-place-table-wrap .profit-table thead th:nth-child(1) { left: 0; min-width: 140px; }
.goal-achievement-place-table-wrap .profit-table thead th:nth-child(2) { left: 140px; min-width: 90px; }
.goal-achievement-place-table-wrap .profit-table thead th:nth-child(3) { left: 230px; min-width: 90px; }
.goal-achievement-place-table-wrap .profit-table thead th:nth-child(4) { left: 320px; min-width: 72px; }
.goal-achievement-place-table-wrap .profit-table thead th:nth-child(5) { left: 392px; min-width: 90px; }
.goal-achievement-place-table-wrap .profit-table thead th:nth-child(6) { left: 482px; min-width: 90px; }
.goal-achievement-place-table-wrap .profit-table thead th:nth-child(7) { left: 572px; min-width: 72px; box-shadow: 2px 0 0 #e2e8f0; }

.goal-achievement-place-table-wrap .profit-table tbody td:nth-child(1),
.goal-achievement-place-table-wrap .profit-table tbody td:nth-child(2),
.goal-achievement-place-table-wrap .profit-table tbody td:nth-child(3),
.goal-achievement-place-table-wrap .profit-table tbody td:nth-child(4),
.goal-achievement-place-table-wrap .profit-table tbody td:nth-child(5),
.goal-achievement-place-table-wrap .profit-table tbody td:nth-child(6),
.goal-achievement-place-table-wrap .profit-table tbody td:nth-child(7) {
  position: sticky;
  z-index: 5;
  box-shadow: 1px 0 0 #e2e8f0;
}
.goal-achievement-place-table-wrap .profit-table tbody td:nth-child(1) { left: 0; min-width: 140px; background: #fff; }
.goal-achievement-place-table-wrap .profit-table tbody td:nth-child(2) { left: 140px; min-width: 90px; background: #fff; }
.goal-achievement-place-table-wrap .profit-table tbody td:nth-child(3) { left: 230px; min-width: 90px; background: #fff; }
.goal-achievement-place-table-wrap .profit-table tbody td:nth-child(4) { left: 320px; min-width: 72px; background: #fff; }
.goal-achievement-place-table-wrap .profit-table tbody td:nth-child(5) { left: 392px; min-width: 90px; background: #fff; }
.goal-achievement-place-table-wrap .profit-table tbody td:nth-child(6) { left: 482px; min-width: 90px; background: #fff; }
.goal-achievement-place-table-wrap .profit-table tbody td:nth-child(7) { left: 572px; min-width: 72px; background: #fff; box-shadow: 2px 0 0 #e2e8f0; }
.goal-achievement-place-table-wrap .profit-table tbody tr:nth-child(even) td:nth-child(1),
.goal-achievement-place-table-wrap .profit-table tbody tr:nth-child(even) td:nth-child(2),
.goal-achievement-place-table-wrap .profit-table tbody tr:nth-child(even) td:nth-child(3),
.goal-achievement-place-table-wrap .profit-table tbody tr:nth-child(even) td:nth-child(4),
.goal-achievement-place-table-wrap .profit-table tbody tr:nth-child(even) td:nth-child(5),
.goal-achievement-place-table-wrap .profit-table tbody tr:nth-child(even) td:nth-child(6),
.goal-achievement-place-table-wrap .profit-table tbody tr:nth-child(even) td:nth-child(7) {
  background: #fafbfc;
}
.goal-achievement-place-table-wrap .profit-table tbody tr:hover td:nth-child(1),
.goal-achievement-place-table-wrap .profit-table tbody tr:hover td:nth-child(2),
.goal-achievement-place-table-wrap .profit-table tbody tr:hover td:nth-child(3),
.goal-achievement-place-table-wrap .profit-table tbody tr:hover td:nth-child(4),
.goal-achievement-place-table-wrap .profit-table tbody tr:hover td:nth-child(5),
.goal-achievement-place-table-wrap .profit-table tbody tr:hover td:nth-child(6),
.goal-achievement-place-table-wrap .profit-table tbody tr:hover td:nth-child(7) {
  background: #f8fafc;
}
.goal-achievement-place-table-wrap .profit-table tbody tr.place-row-total td:nth-child(1),
.goal-achievement-place-table-wrap .profit-table tbody tr.place-row-total td:nth-child(2),
.goal-achievement-place-table-wrap .profit-table tbody tr.place-row-total td:nth-child(3),
.goal-achievement-place-table-wrap .profit-table tbody tr.place-row-total td:nth-child(4),
.goal-achievement-place-table-wrap .profit-table tbody tr.place-row-total td:nth-child(5),
.goal-achievement-place-table-wrap .profit-table tbody tr.place-row-total td:nth-child(6),
.goal-achievement-place-table-wrap .profit-table tbody tr.place-row-total td:nth-child(7) {
  background: #f1f5f9;
  font-weight: 600;
}

/* 수익률 월별 테이블 인라인 막대 (파스텔 톤) */
.profit-table .profit-td-bar {
  position: relative;
  min-width: 76px;
  padding: 10px 12px;
}
.profit-table .profit-td-bar .profit-bar-bg {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 10px;
  height: calc(100% - 10px);
  min-width: 4px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 1;
}
.profit-table .profit-td-bar .profit-bar-bg--right {
  left: auto;
  right: 10px;
}
.profit-table .profit-td-bar .profit-bar-txt {
  position: relative;
  z-index: 1;
  font-weight: 600;
  font-size: 13px;
  color: #1e293b;
}
.profit-table .profit-td-bar .profit-bar-txt:only-child {
  font-weight: inherit;
}

.profit-table .profit-td-bar.profit-cell-positive .profit-bar-txt {
  color: #15803d;
  font-weight: 700;
}
.profit-table .profit-td-bar.profit-cell-negative .profit-bar-txt {
  color: #b91c1c;
  font-weight: 700;
}


/* ── KPI Grid ── */
.kpi-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  gap: 12px;
  margin-bottom: 24px;
}
.kpi-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  min-width: 0;
  flex: 0 0 190px;
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--primary);
}
.kpi-label { font-size: 11px; font-weight: 600; color: var(--text-sub); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-value { font-size: 20px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-sub { font-size: 10px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; }

/* ── Overview Snapshot (퍼널 + 매출 구성) ── */
.overview-snapshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.overview-funnel-card .table-title,
.overview-sales-card .table-title { margin-bottom: 12px; }
.overview-filter-card {
  margin-bottom: 16px;
  padding: 12px 14px;
}
.overview-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.overview-filter-row label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
}
.overview-filter-row select,
.overview-filter-row input[type="date"],
.overview-filter-row input[type="text"] {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  background: #fff;
  color: var(--text);
}
.overview-filter-row input[type="date"]:disabled {
  background: #f8fafc;
  color: #94a3b8;
}
.overview-filter-row input#overview-date-range {
  min-width: 230px;
}
.overview-filter-row input#overview-date-range:disabled {
  background: #f8fafc;
  color: #94a3b8;
}
.overview-funnel-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.overview-funnel-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  border-radius: 6px;
  padding: 0 16px;
  color: #fff;
  font-weight: 800;
  width: 100%;
  min-width: 180px;
  margin: 0 auto;
  box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.12);
}
.overview-funnel-track .stage-label { font-size: 13px; opacity: 0.95; }
.overview-funnel-track .stage-value { font-size: 30px; line-height: 1; letter-spacing: 0.01em; }
.overview-funnel-track.is-inflow { background: linear-gradient(90deg, #06b6d4, #22c1f1); width: 100%; }
.overview-funnel-track.is-order { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.overview-funnel-track.is-review { background: linear-gradient(90deg, #8b5cf6, #7c3aed); }
.overview-funnel-rate {
  text-align: center;
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 700;
  margin: 10px 0;
}
.overview-sales-total {
  background: #ecfdf3;
  border: 1px solid #d1fae5;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.overview-sales-total .label { font-size: 12px; color: #065f46; font-weight: 700; }
.overview-sales-total .value { font-size: 34px; line-height: 1.1; color: #047857; font-weight: 900; }
.overview-sales-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.overview-sales-split .split-box {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #f8fafc;
}
.overview-sales-split .label { font-size: 12px; color: var(--text-sub); font-weight: 700; }
.overview-sales-split .value { font-size: 24px; font-weight: 900; color: var(--text); }
.overview-sales-split .sub { font-size: 12px; color: var(--text-muted); font-weight: 700; }
.overview-segment-title {
  margin: 10px 0 6px;
  font-size: 12px;
  color: var(--text-sub);
  font-weight: 700;
}

/* ── Tables ── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th, td {
  padding: 10px 12px;
  text-align: right;
  border-bottom: 1px solid var(--border);
}
th {
  background: #f8fafc;
  font-weight: 700;
  font-size: 11px;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
tr:hover { background: rgba(99,102,241,0.02); }

/* 플레이스 탭 전체를 한 스크롤 영역으로, 빨간선(헤더 아래) 기준으로 thead만 상단 고정 */
.place-tab-scroll {
  height: calc(100vh - 120px);
  min-height: 400px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
/* 탭에서만 스크롤 쓰도록 래퍼 overflow 제거 → thead가 place-tab-scroll 상단에만 고정 */
.place-tab-scroll .place-table-wrap {
  max-height: none;
  overflow: visible;
}
.place-tab-scroll .place-table-wrap > table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  box-shadow: 0 1px 0 var(--border);
}

/* 주별 지표: 헤더 테이블 분리로 sticky 확실 적용(빨간선 위 고정) */
.place-weekly-sticky-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  box-shadow: 0 1px 0 var(--border);
}
.place-weekly-sticky-head .place-weekly-head-table {
  width: 100%;
  min-width: 720px;
  table-layout: fixed;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}
.place-weekly-sticky-head .place-weekly-head-table th {
  background: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 10px;
  vertical-align: middle;
  min-height: 40px;
  box-sizing: border-box;
}
.place-weekly-sticky-head .place-weekly-head-table th:first-child { width: 16%; min-width: 120px; }
.place-weekly-sticky-head .place-weekly-head-table th:not(:first-child) { width: 14%; min-width: 100px; }
.place-weekly-sticky-head .place-weekly-head-table th .th-inner {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.place-weekly-body-table {
  width: 100%;
  min-width: 720px;
  table-layout: fixed;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}
.place-weekly-body-table tbody td { vertical-align: middle; }

/* 플레이스/일반 테이블 모바일 안전 래퍼 + 스크롤 시 헤더 고정 */
.place-table-wrap {
  width: 100%;
  max-height: 70vh;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.place-table-wrap > table {
  min-width: 680px;
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}

/* 주별 지표: 고정 열 너비로 헤더/데이터 겹침 방지 */
.place-table-wrap.place-weekly-table {
  min-width: 720px;
}
.place-table-wrap.place-weekly-table > table {
  table-layout: fixed;
  min-width: 720px;
}
.place-table-wrap.place-weekly-table > table thead th {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.place-table-wrap.place-weekly-table > table thead th:first-child {
  width: 16%;
  min-width: 120px;
}
.place-table-wrap.place-weekly-table > table thead th:not(:first-child) {
  width: 14%;
  min-width: 100px;
}
.place-table-wrap > table tbody td {
  vertical-align: middle;
}
.place-table-wrap.place-weekly-table > table tbody td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.place-table-wrap > table thead {
  position: relative;
  z-index: 1;
  isolation: isolate;
}
.place-table-wrap > table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--card);
  box-shadow: 0 1px 0 var(--border);
  white-space: nowrap;
  min-width: 72px;
  min-height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: middle;
  box-sizing: border-box;
}
.place-table-wrap > table thead th:first-child {
  min-width: 100px;
}
.place-table-wrap > table thead th .th-inner {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* ── Admin ── */
.admin-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  min-height: calc(100vh - 60px);
}
.admin-sidebar {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.admin-menu-item {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: all 0.2s;
}
.admin-menu-item:hover { background: rgba(99,102,241,0.06); }
.admin-menu-item.active { background: var(--primary); color: #fff; }

/* 브랜드 관리 테이블: 행 높이가 달라도 마지막 칸 정렬 고정 */
.card-admin table td {
  vertical-align: top;
}

/* 사용자 관리: 지점 선택 목록이 잘리지 않도록 */
.admin-users-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
}
.admin-users-table .td-branch-select {
  vertical-align: top;
}
.admin-users-table .branch-select-cell {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.admin-users-table .admin-user-branch {
  min-width: 140px;
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 12px;
  background: #fff;
}

.admin-users-table .td-branch-list {
  font-size: 12px;
  vertical-align: top;
}
.admin-users-table .branch-tag-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  margin: 2px 4px 2px 0;
  background: #f1f5f9;
  border-radius: 6px;
  white-space: nowrap;
}
.admin-users-table .btn-unassign-branch {
  padding: 0 4px;
  min-width: 20px;
  height: 20px;
  line-height: 1;
  border: none;
  background: #e2e8f0;
  color: #64748b;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
.admin-users-table .btn-unassign-branch:hover {
  background: #fecaca;
  color: #b91c1c;
}

.fx-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.fx-modal {
  width: min(760px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 48px rgba(2, 6, 23, 0.35);
}

.fx-modal-header,
.fx-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
}

.fx-modal-footer {
  border-bottom: none;
  border-top: 1px solid #e2e8f0;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.fx-modal-header h4 {
  margin: 0;
  font-size: 14px;
}

.fx-modal-body {
  padding: 12px 14px;
}
.fx-modal,
.fx-modal-body,
.fx-modal-body label,
.fx-modal-body input,
.fx-modal-body select,
.fx-modal-body textarea,
.fx-modal-footer .btn { font-size: 13px; }

.fx-modal-checklist {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px;
  max-height: 42vh;
  overflow: auto;
}

.fx-modal-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  font-size: 13px;
}

.fx-modal-check-item input[type="checkbox"] {
  width: auto;
  min-width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

/* 지출·환불 상세 모달 본문: 라이트는 밝은 패널, 다크는 카드 배경 + 값 텍스트 대비 */
.fx-modal-detail-panel {
  display: grid;
  gap: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc;
}

:root[data-formula-theme="dark"] .fx-modal-detail-panel {
  background: var(--card);
  border-color: var(--border);
}

:root[data-formula-theme="dark"] .fx-modal-detail-panel .fx-modal-check-item > span:first-child {
  color: var(--text-muted) !important;
}

:root[data-formula-theme="dark"] .fx-modal-detail-panel .fx-modal-check-item > span:last-child {
  color: var(--text) !important;
}

:root[data-formula-theme="dark"] .fx-modal-detail-panel .fx-modal-check-item .btn-link {
  color: #93c5fd;
}

:root[data-formula-theme="dark"] .fx-modal-detail-panel .fx-modal-check-item .text-muted {
  color: var(--text-muted) !important;
}

.refund-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
  user-select: none;
}
.refund-radio-label input[type="radio"] {
  width: auto;
  min-width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
}

.fx-modal-footer .btn {
  width: auto !important;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* 환불 상세 모달: 이전/다음 버튼 터치 친화적 */
.fx-modal-header-refund-detail .fx-modal-header-actions .btn {
  min-height: 36px;
  min-width: 48px;
  padding: 6px 12px;
}

/* 지출 결의 상세 모달: 이전/다음 버튼 터치 친화적 */
.fx-modal-header-expense-detail .fx-modal-header-actions .btn {
  min-height: 36px;
  min-width: 48px;
  padding: 6px 12px;
}

/* 지출 결의 행 클릭 시 상세 모달 열기 */
.er-detail-row {
  cursor: pointer;
}

.profit-extra-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 50vh;
  overflow-y: auto;
}

.profit-extra-list-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profit-extra-list-row .profit-extra-name {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
}

.profit-extra-list-row .profit-extra-amount {
  width: 120px;
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
}

/* ── Branch Selector ── */
.branch-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.branch-selector label { font-size: 13px; font-weight: 600; color: var(--text-sub); }
.branch-selector select {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
}
.branch-quick-switch {
  margin-top: 4px;
}
.branch-quick-switch-buttons {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.branch-quick-btn {
  padding: 4px 10px;
  font-size: 11px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.branch-quick-btn:hover {
  background: rgba(99,102,241,0.1);
  border-color: var(--primary);
  color: var(--primary);
}
.branch-quick-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── Onboarding ── */
.onboard-card {
  max-width: 500px;
}

/* ── Verify Email ── */
.verify-card {
  text-align: center;
}
.verify-card .icon { font-size: 48px; margin-bottom: 16px; }
.verify-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.verify-card p { font-size: 14px; color: var(--text-sub); line-height: 1.6; }

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { font-size: 18px; color: var(--text-sub); margin-bottom: 8px; }
.empty-state p { font-size: 14px; }

/* ── Utilities ── */
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.flex { display: flex; }
.gap-2 { gap: 8px; }
.flex-wrap { flex-wrap: wrap; }
.mt-2 { margin-top: 8px; }

/* 설정 페이지 */
.settings-value { font-weight: 600; margin: 4px 0 0; }
.settings-branch-list { margin: 8px 0 0; padding-left: 20px; }
.settings-branch-list li { margin-bottom: 4px; }
.gap-4 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

@media (max-width: 1024px) {
  .page-content {
    padding: 16px;
  }
  .overview-snapshot-grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 16px;
  }
  .sales-tab-layout { flex-direction: column; }
  .sales-upload-card { width: 100%; }
  .sales-upload-target-select {
    max-width: 100%;
  }
  .sales-table-wrap {
    max-height: 64vh;
  }
  .sales-table {
    width: 100%;
    min-width: 0;
    table-layout: auto;
    font-size: 10px;
  }
}

@media (max-width: 768px) {
  .mobile-context-bar {
    display: none !important;
  }
  .main-nav {
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    gap: 8px;
    padding: 10px 12px;
  }
  .nav-left,
  .nav-right {
    width: 100%;
    gap: 8px;
  }
  .nav-left { padding-right: 0; }
  .nav-right {
    margin-left: 0;
    min-height: 0;
    align-items: flex-start;
  }
  .nav-right-row {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .nav-tabs {
    display: none;
  }
  .nav-tab {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 12px;
  }
  .btn-sm {
    min-height: 44px;
    font-size: 13px;
    padding: 8px 12px;
  }
  .app-mode-toggle-text {
    min-height: 44px;
    padding: 8px 0;
    font-size: 13px;
  }
  .branch-selector {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
  }
  .branch-selector select {
    width: 100%;
  }
  .admin-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .admin-sidebar {
    position: static;
  }
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .kpi-card {
    padding: 14px;
  }
  .kpi-value {
    font-size: 20px;
  }
  .overview-filter-row input#overview-date-range {
    min-width: 100%;
  }
  .profit-table {
    min-width: 900px;
    font-size: 11px;
  }
  .place-table-wrap {
    border-radius: 8px;
  }
  .place-table-wrap > table {
    min-width: 640px;
    font-size: 12px;
  }
  body.mobile-nav-enabled #page-dashboard .page-content {
    padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
  }
  body.mobile-nav-enabled[data-bemove-role="member"] .nav-tabs {
    display: none !important;
  }
  body.mobile-nav-enabled[data-bemove-role="member"] #page-dashboard .page-content {
    padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
  }
  .bemove-modal,
  .fx-modal {
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
    max-height: 100dvh;
    border-radius: 14px 14px 0 0;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
  }
  .bemove-modal-foot,
  .bemove-modal-footer,
  .fx-modal-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 2;
  }
  .bemove-modal-foot .btn,
  .bemove-modal-footer .btn,
  .fx-modal-footer .btn {
    min-height: 44px;
  }
}

@media (max-width: 560px) {
  .page-content {
    padding: 10px;
  }
  .card {
    padding: 12px;
    margin-bottom: 12px;
  }
  .sales-table-wrap {
    max-height: 56vh;
  }
  .sales-table {
    min-width: 0;
    width: 100%;
    font-size: 9px;
  }
  .sales-table th,
  .sales-table td {
    padding: 5px 5px;
    min-width: 74px;
  }
  .sales-table th:first-child,
  .sales-table td:first-child {
    min-width: 76px;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  table {
    font-size: 12px;
  }
  th, td {
    padding: 8px 8px;
  }
  .place-table-wrap > table {
    min-width: 620px;
    font-size: 11px;
  }
  .profit-table {
    min-width: 860px;
    font-size: 10px;
  }
  .fx-modal {
    max-height: 92vh;
  }
  .fx-modal-checklist {
    max-height: 46vh;
  }
  .mobile-more-tabs {
    grid-template-columns: 1fr;
  }
  .mobile-card-table {
    width: 100%;
    min-width: 0 !important;
    border-collapse: separate;
    border-spacing: 0 10px;
  }
  .mobile-card-table thead {
    display: none;
  }
  .mobile-card-table tbody,
  .mobile-card-table tr,
  .mobile-card-table td {
    display: block;
    width: 100%;
  }
  .mobile-card-table tbody tr {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
  }
  .mobile-card-table tbody tr + tr {
    margin-top: 10px;
  }
  .mobile-card-table tbody td {
    border: 0;
    border-bottom: 1px dashed #e2e8f0;
    padding: 10px 12px;
    text-align: right;
    font-size: 12px;
  }
  .mobile-card-table tbody td:last-child {
    border-bottom: 0;
  }
  .mobile-card-table tbody td::before {
    content: attr(data-label);
    float: left;
    color: var(--text-sub);
    font-weight: 700;
    margin-right: 10px;
    text-align: left;
  }
}

/* =========================
   Mobile content optimization (2nd pass)
   ========================= */
@media (max-width: 768px) {
  body.mobile-nav-enabled .page-content {
    padding: 8px;
    gap: 8px;
  }
  body.mobile-nav-enabled .card {
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 10px;
  }
  body.mobile-nav-enabled .card h3 {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.35;
  }
  body.mobile-nav-enabled .card .table-title {
    padding: 10px 10px 8px;
    font-size: 14px;
  }
  body.mobile-nav-enabled .btn-sm,
  body.mobile-nav-enabled .btn-primary,
  body.mobile-nav-enabled .btn-outline,
  body.mobile-nav-enabled .btn-secondary {
    min-height: 44px;
  }
  body.mobile-nav-enabled input,
  body.mobile-nav-enabled select,
  body.mobile-nav-enabled textarea {
    min-height: 44px;
    font-size: 14px;
  }

  /* Filter area: compact + sticky for faster re-query */
  body.mobile-nav-enabled .overview-filter-card {
    position: sticky;
    top: 0;
    z-index: 9;
  }
  body.mobile-nav-enabled .overview-filter-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  body.mobile-nav-enabled .overview-filter-row > * {
    width: 100%;
    min-height: 44px;
  }

  /* KPI section: swipe-friendly density */
  body.mobile-nav-enabled .kpi-grid,
  body.mobile-nav-enabled .profit-kpi-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(145px, 1fr);
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  body.mobile-nav-enabled .kpi-grid .kpi-card,
  body.mobile-nav-enabled .profit-kpi-grid .kpi-card {
    min-height: 92px;
    padding: 10px;
    scroll-snap-align: start;
  }
  body.mobile-nav-enabled .kpi-value {
    font-size: 18px;
    line-height: 1.2;
  }
  body.mobile-nav-enabled .kpi-label {
    font-size: 11px;
  }

  /* Overview cards become vertical and readable */
  body.mobile-nav-enabled .overview-snapshot-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  body.mobile-nav-enabled .overview-sales-total .value {
    font-size: 30px;
    line-height: 1.1;
  }
  body.mobile-nav-enabled .overview-funnel-card,
  body.mobile-nav-enabled .overview-sales-card {
    min-height: auto;
  }

  /* AI chat: content-first layout on mobile */
  body.mobile-nav-enabled .overview-ai-chat-card {
    padding: 10px;
  }
  body.mobile-nav-enabled .overview-ai-chat-subtitle {
    font-size: 12px;
    margin-bottom: 8px;
  }
  body.mobile-nav-enabled .overview-ai-chat-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 460px;
  }
  body.mobile-nav-enabled .overview-ai-chat-sidebar {
    order: 2;
    width: 100%;
    border-top: 1px solid var(--border);
    padding-top: 8px;
  }
  body.mobile-nav-enabled .overview-ai-chat-history {
    max-height: 120px;
  }
  body.mobile-nav-enabled .overview-ai-chat-main {
    order: 1;
  }
  body.mobile-nav-enabled .overview-ai-chat-messages {
    min-height: 290px;
    max-height: 360px;
    padding: 10px;
    border-radius: 8px;
  }
  body.mobile-nav-enabled .overview-ai-chat-input-row {
    grid-template-columns: 1fr auto;
    gap: 6px;
  }
  body.mobile-nav-enabled .overview-ai-chat-send-btn {
    min-width: 72px;
    padding: 0 10px;
  }

  /* Tables and forms inside content */
  body.mobile-nav-enabled .sales-table-wrap,
  body.mobile-nav-enabled .profit-table-wrap,
  body.mobile-nav-enabled .activity-table-wrap {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
  }
  body.mobile-nav-enabled .branch-selector {
    margin-bottom: 8px;
    padding: 8px;
    gap: 6px;
  }
  body.mobile-nav-enabled .branch-selector label {
    font-size: 12px;
  }

  /* Bemove content readability */
  body.mobile-nav-enabled .bemove-grid,
  body.mobile-nav-enabled .bemove-branch-top-grid,
  body.mobile-nav-enabled .bemove-branch-kpi-grid,
  body.mobile-nav-enabled .bemove-member-grid,
  body.mobile-nav-enabled .bemove-equipment-category-grid,
  body.mobile-nav-enabled .bemove-pt-member-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  body.mobile-nav-enabled .bemove-stat-grid,
  body.mobile-nav-enabled .bemove-stat-grid-compact,
  body.mobile-nav-enabled .bemove-stat-grid-super-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 560px) {
  body.mobile-nav-enabled .kpi-grid,
  body.mobile-nav-enabled .profit-kpi-grid {
    grid-auto-columns: minmax(136px, 1fr);
  }
  body.mobile-nav-enabled .overview-ai-chat-messages {
    min-height: 260px;
    max-height: 320px;
  }
  body.mobile-nav-enabled .bemove-stat-grid,
  body.mobile-nav-enabled .bemove-stat-grid-compact,
  body.mobile-nav-enabled .bemove-stat-grid-super-line {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Mobile detail tuning (screen-level)
   ========================= */
@media (max-width: 768px) {
  /* ---------- Expenses tab ---------- */
  body.mobile-nav-enabled .expenses-range-presets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 8px;
  }
  body.mobile-nav-enabled .expenses-range-presets .expense-range-btn {
    width: 100%;
    min-height: 44px;
    font-size: 12px;
    padding: 8px 6px;
  }
  body.mobile-nav-enabled .expense-filters,
  body.mobile-nav-enabled .expense-filter-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }
  body.mobile-nav-enabled .expense-filters input,
  body.mobile-nav-enabled .expense-filters select,
  body.mobile-nav-enabled .expense-filter-row input,
  body.mobile-nav-enabled .expense-filter-row select {
    min-height: 44px;
    width: 100%;
  }
  body.mobile-nav-enabled .expense-request-entry-table th {
    width: 120px;
    font-size: 12px;
  }
  body.mobile-nav-enabled .expense-request-entry-table td {
    padding: 8px 10px;
  }

  /* ---------- Profit tab ---------- */
  body.mobile-nav-enabled .profit-table-wrap {
    margin-top: 8px;
  }
  body.mobile-nav-enabled .profit-table thead th {
    font-size: 11px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  body.mobile-nav-enabled .profit-table td {
    font-size: 12px;
    line-height: 1.35;
  }

  /* ---------- Overview readability ---------- */
  body.mobile-nav-enabled .overview-sales-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  body.mobile-nav-enabled .overview-segment-title {
    font-size: 12px;
    margin-bottom: 4px;
  }
  body.mobile-nav-enabled .overview-ai-reco-btn {
    min-height: 38px;
    font-size: 12px;
    padding: 6px 8px;
  }
  body.mobile-nav-enabled .overview-ai-chat-reco-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  /* ---------- Bemove member list/detail ---------- */
  body.mobile-nav-enabled .bemove-members-hero {
    padding: 10px;
    gap: 8px;
  }
  body.mobile-nav-enabled .bemove-members-table th,
  body.mobile-nav-enabled .bemove-members-table td {
    font-size: 12px;
    padding: 8px 6px;
  }
  body.mobile-nav-enabled .bemove-member-detail-page {
    width: 100%;
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 8px;
  }
  body.mobile-nav-enabled .bemove-member-detail-header-card {
    grid-template-columns: 48px 1fr;
    gap: 8px;
  }
  body.mobile-nav-enabled .bemove-member-detail-head-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
  body.mobile-nav-enabled .bemove-member-detail-avatar {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
  body.mobile-nav-enabled .bemove-member-detail-title-row h3 {
    font-size: 18px;
  }
  body.mobile-nav-enabled .bemove-member-detail-sub {
    font-size: 13px;
    line-height: 1.4;
  }
  body.mobile-nav-enabled .bemove-member-detail-tabs {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }
  body.mobile-nav-enabled .bemove-member-detail-tab {
    flex: 0 0 auto;
    min-height: 44px;
    min-width: 110px;
    padding: 8px 10px;
    white-space: nowrap;
  }
  body.mobile-nav-enabled .bemove-member-detail-content {
    padding: 8px;
  }
  body.mobile-nav-enabled .bemove-member-option-grid.four {
    grid-template-columns: 1fr 1fr;
  }
  body.mobile-nav-enabled .bemove-member-option-grid.three {
    grid-template-columns: 1fr;
  }
  body.mobile-nav-enabled .bemove-member-form-item textarea,
  body.mobile-nav-enabled .bemove-member-form-item input[type="text"] {
    font-size: 14px;
    min-height: 44px;
  }
}

@media (max-width: 560px) {
  body.mobile-nav-enabled .page-content {
    padding: 6px;
  }
  body.mobile-nav-enabled .card {
    padding: 9px;
    margin-bottom: 7px;
  }
  body.mobile-nav-enabled .card h3 {
    font-size: 13px;
    margin-bottom: 6px;
  }
  body.mobile-nav-enabled .expenses-range-presets {
    grid-template-columns: 1fr 1fr;
  }
  body.mobile-nav-enabled .bemove-member-detail-tab {
    min-width: 98px;
    font-size: 11px;
  }
  body.mobile-nav-enabled .bemove-member-detail-title-row {
    flex-wrap: wrap;
    gap: 6px;
  }
  body.mobile-nav-enabled .bemove-member-detail-kpis {
    gap: 6px;
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  /* ---------- Expense input modal usability ---------- */
  body.mobile-nav-enabled .fx-modal .form-control,
  body.mobile-nav-enabled .bemove-modal .form-control,
  body.mobile-nav-enabled .fx-modal input,
  body.mobile-nav-enabled .fx-modal select,
  body.mobile-nav-enabled .fx-modal textarea {
    min-height: 42px;
    font-size: 13px;
  }
  body.mobile-nav-enabled .fx-expense-request-modal .fx-modal-body {
    padding: 10px;
  }
  body.mobile-nav-enabled .expense-request-entry-table {
    table-layout: fixed;
  }
  body.mobile-nav-enabled .expense-request-entry-table th,
  body.mobile-nav-enabled .expense-request-entry-table td {
    word-break: keep-all;
  }

  /* ---------- Dense action rows ---------- */
  body.mobile-nav-enabled .card .btn + .btn {
    margin-left: 6px;
  }
  body.mobile-nav-enabled .bemove-panel-title-row {
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  body.mobile-nav-enabled .bemove-panel-title-row h4,
  body.mobile-nav-enabled .bemove-panel-title-row h5 {
    font-size: 14px;
  }

  /* ---------- Member list table readability ---------- */
  body.mobile-nav-enabled .bemove-member-td-name {
    min-width: 120px;
  }
  body.mobile-nav-enabled .bemove-member-trainer-wrap {
    min-width: 140px;
  }
  body.mobile-nav-enabled .bemove-member-trainer-select {
    min-height: 38px;
    font-size: 12px;
  }
  body.mobile-nav-enabled .bemove-member-edit-btn {
    min-height: 36px;
    min-width: 36px;
  }

  /* ---------- Member detail content density ---------- */
  body.mobile-nav-enabled .bemove-member-detail-banner {
    padding: 10px 10px;
    margin-bottom: 8px;
  }
  body.mobile-nav-enabled .bemove-member-detail-banner h4 {
    font-size: 15px;
  }
  body.mobile-nav-enabled .bemove-member-detail-banner p {
    font-size: 12px;
    line-height: 1.45;
  }
  body.mobile-nav-enabled .bemove-member-detail-form {
    gap: 8px;
  }
  body.mobile-nav-enabled .bemove-member-form-item label {
    font-size: 12px;
    margin-bottom: 4px;
  }
}

@media (max-width: 560px) {
  body.mobile-nav-enabled .fx-modal .form-control,
  body.mobile-nav-enabled .bemove-modal .form-control,
  body.mobile-nav-enabled .fx-modal input,
  body.mobile-nav-enabled .fx-modal select,
  body.mobile-nav-enabled .fx-modal textarea {
    font-size: 12px;
  }
  body.mobile-nav-enabled .expense-request-entry-table th {
    width: 100px;
    font-size: 11px;
  }
  body.mobile-nav-enabled .expense-request-entry-table td {
    padding: 7px 8px;
    font-size: 12px;
  }
  body.mobile-nav-enabled .bemove-member-detail-content {
    border-radius: 10px;
  }
}

/* =========================
  Mobile pixel-fit tuning (final pass)
  ========================= */
@media (max-width: 768px) {
  /* Expense request modal: one-hand input priority */
  body.mobile-nav-enabled .fx-expense-request-modal .fx-modal-body {
    padding: 8px;
  }
  body.mobile-nav-enabled .expense-request-entry-table th {
    width: 96px;
    font-size: 11px;
    padding: 8px 8px;
    line-height: 1.3;
  }
  body.mobile-nav-enabled .expense-request-entry-table td {
    padding: 8px;
  }
  body.mobile-nav-enabled .expense-request-entry-table input,
  body.mobile-nav-enabled .expense-request-entry-table select,
  body.mobile-nav-enabled .expense-request-entry-table textarea {
    min-height: 44px;
    font-size: 13px;
  }

  /* AI chat card: maximize message area while keeping controls visible */
  body.mobile-nav-enabled .overview-ai-chat-card {
    padding: 8px;
  }
  body.mobile-nav-enabled .overview-ai-chat-layout {
    gap: 6px;
    min-height: 500px;
  }
  body.mobile-nav-enabled .overview-ai-chat-messages {
    min-height: 330px;
    max-height: 50vh;
    padding: 10px;
  }
  body.mobile-nav-enabled .overview-ai-msg {
    font-size: 12px;
    line-height: 1.45;
    padding: 7px 9px;
  }
  body.mobile-nav-enabled .overview-ai-chat-input-row {
    gap: 6px;
    margin-top: 8px;
    padding-top: 4px;
  }
  body.mobile-nav-enabled .overview-ai-chat-input {
    min-height: 44px;
    font-size: 13px;
  }
  body.mobile-nav-enabled .overview-ai-chat-send-btn {
    min-width: 68px;
    min-height: 44px;
    padding: 0 8px;
  }

  /* Bemove member detail header: compact and stable */
  body.mobile-nav-enabled .bemove-member-detail-header-card {
    padding: 10px;
    gap: 7px;
  }
  body.mobile-nav-enabled .bemove-member-detail-avatar {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
  body.mobile-nav-enabled .bemove-member-detail-title-row h3 {
    font-size: 16px;
    line-height: 1.2;
  }
  body.mobile-nav-enabled .bemove-member-detail-sub {
    font-size: 12px;
    margin-bottom: 4px;
  }
  body.mobile-nav-enabled .bemove-member-detail-kpis {
    gap: 5px 8px;
    font-size: 11px;
  }
  body.mobile-nav-enabled .bemove-member-detail-head-actions .btn,
  body.mobile-nav-enabled .bemove-member-detail-icon-btn {
    min-width: 34px;
    min-height: 34px;
  }
}

@media (max-width: 560px) {
  body.mobile-nav-enabled .overview-ai-chat-layout {
    min-height: 470px;
  }
  body.mobile-nav-enabled .overview-ai-chat-messages {
    min-height: 300px;
    max-height: 50vh;
    padding: 9px;
  }
  body.mobile-nav-enabled .overview-ai-chat-history {
    max-height: 104px;
  }
  body.mobile-nav-enabled .overview-ai-history-item {
    padding: 7px 8px;
    font-size: 11px;
  }
  body.mobile-nav-enabled .expense-request-entry-table th {
    width: 90px;
    font-size: 10px;
    padding: 7px 6px;
  }
  body.mobile-nav-enabled .expense-request-entry-table td {
    padding: 7px 6px;
  }
  body.mobile-nav-enabled .expense-request-entry-table input,
  body.mobile-nav-enabled .expense-request-entry-table select,
  body.mobile-nav-enabled .expense-request-entry-table textarea {
    font-size: 12px;
  }
}

/* =========================
  Mobile usability hotfix (feedback pass)
  ========================= */
@media (max-width: 768px) {
  /* 1) Modal should stay above bottom mobile nav */
  .fx-modal-overlay,
  .bemove-modal-overlay {
    z-index: 2100;
  }
  .fx-modal,
  .bemove-modal {
    z-index: 2101;
  }

  /* 2) AI chat spacing + input guide clipping */
  body.mobile-nav-enabled .overview-ai-chat-card {
    padding: 8px 8px 6px;
  }
  body.mobile-nav-enabled .overview-ai-chat-subtitle {
    margin-bottom: 5px;
    line-height: 1.35;
  }
  body.mobile-nav-enabled .overview-ai-chat-range-meta {
    margin: 2px 0 6px;
    font-size: 11px;
    line-height: 1.3;
  }
  body.mobile-nav-enabled .overview-ai-chat-layout {
    min-height: 420px;
    gap: 6px;
  }
  body.mobile-nav-enabled .overview-ai-chat-messages {
    min-height: 220px;
    max-height: 42vh;
  }
  body.mobile-nav-enabled .overview-ai-chat-input-row {
    margin-top: 6px;
  }
  body.mobile-nav-enabled .overview-ai-chat-input {
    font-size: 12px;
  }
  body.mobile-nav-enabled .overview-ai-chat-input::placeholder {
    font-size: 11px;
  }
  body.mobile-nav-enabled .overview-ai-chat-send-btn {
    min-width: 58px;
    padding: 0 8px;
    font-size: 12px;
  }

  /* 3) Bottom mobile nav labels must stay single-line */
  .mobile-nav-tab,
  .mobile-more-toggle,
  .mobile-more-tab {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
    font-size: 11px;
    letter-spacing: -0.1px;
  }

  /* 4) B-mode stat cards: reduce vertical consumption */
  body.mobile-nav-enabled .bemove-stat-grid,
  body.mobile-nav-enabled .bemove-stat-grid-compact,
  body.mobile-nav-enabled .bemove-stat-grid-super-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.mobile-nav-enabled .bemove-stat {
    padding: 10px 10px;
    border-radius: 10px;
  }
  body.mobile-nav-enabled .bemove-stat div {
    font-size: 11px;
  }
  body.mobile-nav-enabled .bemove-stat strong {
    margin-top: 3px;
    font-size: 24px;
  }
  body.mobile-nav-enabled .bemove-stat strong span {
    font-size: 11px;
  }

  /* 5) 직원 권한/지점 관리 카드 polish */
  body.mobile-nav-enabled .bemove-user-table-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    padding: 6px;
  }
  body.mobile-nav-enabled .bemove-panel-title-row {
    padding: 2px 2px 6px;
    margin-bottom: 8px;
    border-bottom: 1px solid #eef2ff;
  }
  body.mobile-nav-enabled .bemove-approval-open-btn {
    min-height: 34px;
    border-radius: 999px;
    font-size: 12px;
    padding: 0 10px;
  }
}

@media (max-width: 560px) {
  body.mobile-nav-enabled .overview-ai-chat-layout {
    min-height: 390px;
  }
  body.mobile-nav-enabled .overview-ai-chat-messages {
    min-height: 200px;
    max-height: 38vh;
  }
  body.mobile-nav-enabled .mobile-nav-tab,
  body.mobile-nav-enabled .mobile-more-toggle,
  body.mobile-nav-enabled .mobile-more-tab {
    font-size: 10.5px;
  }
  body.mobile-nav-enabled .bemove-stat-grid,
  body.mobile-nav-enabled .bemove-stat-grid-compact,
  body.mobile-nav-enabled .bemove-stat-grid-super-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
}

.bemove-pt-sales-screen {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bemove-pt-sales-head .text-muted {
  margin-top: 6px;
}

.bemove-pt-kpi-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.bemove-pt-kpi-grid .bemove-stat {
  padding: 10px 12px;
}
.bemove-pt-kpi-grid .bemove-stat > div {
  font-size: 12px;
}
.bemove-pt-kpi-grid .bemove-stat strong {
  font-size: 16px;
  line-height: 1.15;
}
.bemove-pt-sales-screen .bemove-admin-month-row select,
.bemove-pt-sales-screen .bemove-admin-month-row input[type="month"] {
  min-width: 120px;
}
.bemove-pt-sales-table {
  min-width: 100% !important;
  table-layout: fixed;
}
.bemove-pt-sales-table th,
.bemove-pt-sales-table td {
  font-size: 11px;
  padding: 6px 8px;
  white-space: normal;
  word-break: keep-all;
}
.bemove-percap-table th {
  white-space: nowrap;
  text-align: center;
}
.bemove-pt-table-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bemove-pt-table-filter select {
  height: 30px;
  font-size: 11px;
  padding: 0 8px;
}
.bemove-pt-amount-cell {
  text-align: right;
  font-weight: 700;
  color: #0f172a;
  vertical-align: middle;
}
.bemove-inline-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-end;
  width: 92px;
  max-width: 100%;
  margin-left: auto;
}
.bemove-inline-metric-bar {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #86efac, #22c55e);
}
.bemove-inline-metric-bar.is-trainer {
  background: linear-gradient(90deg, #93c5fd, #3b82f6);
}
.bemove-inline-metric-bar.is-goal {
  background: linear-gradient(90deg, #f9a8d4, #ec4899);
}
.bemove-inline-metric-bar.is-gap-pos {
  background: linear-gradient(90deg, #a7f3d0, #10b981);
}
.bemove-inline-metric-bar.is-gap-neg {
  background: linear-gradient(90deg, #fecaca, #ef4444);
}
.bemove-inline-metric-bar.is-percap {
  background: linear-gradient(90deg, #c4b5fd, #8b5cf6);
}
.bemove-inline-metric-text {
  font-size: 10px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}
.bemove-pt-mini-chart {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bemove-pt-mini-chart-row {
  display: grid;
  grid-template-columns: 110px 1fr 110px;
  align-items: center;
  gap: 8px;
}
.bemove-pt-mini-chart-label {
  font-size: 12px;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bemove-pt-mini-chart-track {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.bemove-pt-mini-chart-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #f97316);
}
.bemove-pt-mini-chart-fill.is-trainer {
  background: linear-gradient(90deg, #2563eb, #4f46e5);
}
.bemove-pt-mini-chart-fill.is-goal {
  background: linear-gradient(90deg, #0ea5e9, #22d3ee);
}
.bemove-pt-mini-chart-fill.is-percap {
  background: linear-gradient(90deg, #16a34a, #84cc16);
}
.bemove-pt-mini-chart-value {
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  color: #0f172a;
}

@media (max-width: 1100px) {
  .bemove-pt-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bemove-pt-sales-table th,
  .bemove-pt-sales-table td {
    font-size: 10px;
    padding: 5px 6px;
  }
  .bemove-inline-metric {
    width: 76px;
  }
  .bemove-pt-mini-chart-row {
    grid-template-columns: 88px 1fr 90px;
    gap: 6px;
  }
}

/* 목표 달성율: 태블릿에서 카드형, 데스크톱에서 테이블 */
.goal-achievement-conversion-mobile {
  display: none;
}
.goal-achievement-conversion-desktop {
  display: block;
}
@media (max-width: 1100px) {
  .goal-achievement-conversion-mobile {
    display: block;
  }
  .goal-achievement-conversion-desktop {
    display: none;
  }
  .goal-achievement-conversion-mobile-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto auto;
    gap: 8px 12px;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
  }
  .goal-achievement-conversion-mobile-row:last-child {
    border-bottom: none;
  }
  .goal-achievement-conversion-mobile-name {
    font-weight: 600;
    color: #1e293b;
  }
  .goal-achievement-conversion-mobile-cell {
    text-align: right;
    white-space: nowrap;
  }
  .goal-achievement-unified-card .goal-achievement-unified-table-wrap {
    overflow-x: scroll !important;
    -webkit-overflow-scrolling: touch;
    max-width: 100% !important;
  }
}
