@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── 화이트/그레이 토앤매너 ── */
  --primary:       #3d4451;   /* 다크 차콜 그레이 */
  --primary-light: #f0f1f3;   /* 매우 연한 그레이 */
  --primary-mid:   #6b7280;   /* 미디엄 그레이 */
  --accent:        #4a7fa5;   /* 포인트용 스틸 블루 (최소한으로) */

  --header-height: 54px;
  --sidebar-width: 195px;
  --bg:            #f3f4f6;   /* 배경 — 순수 연회색 */
  --white:         #ffffff;
  --border:        #e2e4e9;
  --border-light:  #eceef2;

  --text-dark:     #1f2328;
  --text-medium:   #4b5563;
  --text-light:    #9ca3af;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow:    0 2px 10px rgba(0,0,0,0.08);
  --radius:    10px;
  --radius-sm: 6px;
}

html, body {
  overscroll-behavior: none;
}
body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  font-size: 13px;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
input, select, textarea { font-family: inherit; }

/* ================================================
   LAYOUT
================================================ */
/* 전체 너비 고정 헤더 */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  z-index: 200;
}
.header-logo {
  width: var(--sidebar-width);
  height: 100%;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
}
.header-logo .logo-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.3px;
}
.header-logo .logo-sub {
  font-size: 10px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 1px;
}
.header-actions {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 24px;
}

.wrapper { display: flex; min-height: 100vh; padding-top: var(--header-height); }

/* ================================================
   SIDEBAR
================================================ */
.sidebar {
  width: var(--sidebar-width);
  background: var(--white);
  border-right: 1px solid var(--border);
  position: fixed;
  top: var(--header-height); left: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

/* 유저 정보 */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}
.sidebar-user .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-medium);
  flex-shrink: 0;
}
.sidebar-user .user-info { flex: 1; min-width: 0; }
.sidebar-user .user-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user .user-role {
  font-size: 10px;
  color: var(--text-light);
  display: block;
}
.sidebar-user .online-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
}

/* 네비게이션 */
.sidebar-nav {
  flex: 1;
  padding: 6px 0;
}
.sidebar-nav ul {
  list-style: none;
}
.sidebar-nav > ul > li {
  position: relative;
}

/* 공통: 메뉴 링크 & 토글 버튼 */
.sidebar-nav a,
.sidebar-nav .nav-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  font-size: 12.5px;
  color: var(--text-medium);
  transition: background 0.12s, color 0.12s;
  border-left: 3px solid transparent;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-nav a:hover,
.sidebar-nav .nav-toggle:hover {
  color: var(--text-dark);
  background: var(--primary-light);
}
.sidebar-nav a.active,
.sidebar-nav .nav-toggle.active {
  color: var(--text-dark);
  background: var(--primary-light);
  border-left-color: var(--primary);
  font-weight: 600;
}

.sidebar-nav .nav-icon {
  font-size: 14px;
  width: 15px;
  text-align: center;
  flex-shrink: 0;
  color: var(--text-light);
}
.sidebar-nav a.active .nav-icon,
.sidebar-nav .nav-toggle.active .nav-icon {
  color: var(--primary);
}
.sidebar-nav .nav-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-nav .toggle-arrow {
  font-size: 9px;
  color: var(--text-light);
  flex-shrink: 0;
  margin-left: auto;
  transition: transform 0.2s;
}
.sidebar-nav .nav-toggle.open .toggle-arrow {
  transform: rotate(90deg);
}

/* 서브메뉴 */
.sidebar-nav .submenu {
  display: none;
  background: #f9fafb;
  border-left: none;
}
.sidebar-nav .submenu.open { display: block; }
.sidebar-nav .submenu a {
  padding: 7px 14px 7px 34px;
  font-size: 12px;
  border-left: none;
  color: var(--text-medium);
}
.sidebar-nav .submenu a::before {
  content: '–';
  color: var(--text-light);
  margin-right: 5px;
  font-size: 10px;
}
.sidebar-nav .submenu a.active {
  color: var(--text-dark);
  background: var(--primary-light);
  border-left: none;
  font-weight: 600;
}
.sidebar-nav .submenu a.active::before {
  color: var(--primary);
}

/* ================================================
   MAIN CONTENT
================================================ */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-height));
}

.btn-logout {
  background: var(--white);
  color: var(--text-medium);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.12s;
}
.btn-logout:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
}

.content-wrapper {
  padding: 20px 24px 32px;
  flex: 1;
}

/* ================================================
   PAGE HEADER
================================================ */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.page-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-title .title-icon {
  width: 30px;
  height: 30px;
  background: var(--primary);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
}
.page-title h1 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}
.breadcrumb {
  font-size: 11.5px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 5px;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary-mid); }
.breadcrumb .sep { color: var(--border); }

/* ================================================
   CARD
================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  padding: 18px 20px;
  margin-bottom: 14px;
}

/* ================================================
   SUMMARY CARDS
================================================ */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.summary-cards.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.summary-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 14px 20px 14px 30px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.summary-card .card-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.summary-card.green  .card-icon { background: #f0faf5; color: #34a877; }
.summary-card.orange .card-icon { background: #fff7ed; color: #e8923a; }
.summary-card.blue   .card-icon { background: #eff6ff; color: #4a7fa5; }
.summary-card.yellow .card-icon { background: #fefce8; color: #c9a227; }

.summary-card .card-body { min-width: 0; }
.summary-card .card-label {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 3px;
}
.summary-card .card-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.summary-card .card-sub {
  font-size: 10.5px;
  color: var(--text-light);
  margin-top: 3px;
}

/* ================================================
   STATUS COUNT ROW
================================================ */
.status-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.status-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.status-card .status-icon { font-size: 20px; flex-shrink: 0; }
.status-card .status-info { display: flex; flex-direction: column; gap: 1px; }
.status-card .status-label { font-size: 11px; color: var(--text-light); font-weight: 500; }
.status-card .status-count { font-size: 20px; font-weight: 700; color: var(--text-dark); line-height: 1.2; }
.status-card.received .status-icon { color: #d97706; }
.status-card.waiting  .status-icon { color: #7c3aed; }
.status-card.success  .status-icon { color: #0891b2; }
.status-card.fail     .status-icon { color: #dc2626; }

/* ================================================
   EXECUTE BOX
================================================ */
.execute-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.execute-box .execute-info .execute-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}
.execute-box .execute-info .execute-desc {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}
.btn-execute {
  background: linear-gradient(135deg, #e8923a, #d4586a);
  color: white;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.12s, transform 0.1s;
}
.btn-execute:hover { opacity: 0.88; transform: translateY(-1px); }

/* ================================================
   SEARCH BOX
================================================ */
.search-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  padding: 14px 18px;
  margin-bottom: 14px;
}
.search-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.search-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.search-row .form-group {
  display: flex;
  align-items: center;
  gap: 5px;
}
.search-row .form-label {
  font-size: 12px;
  color: var(--text-medium);
  white-space: nowrap;
}
.form-input, .form-select {
  height: 32px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.12s;
}
.form-input:focus, .form-select:focus { border-color: var(--primary-mid); }
.form-input  { min-width: 130px; }
.form-select { min-width: 100px; }
.btn-search {
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 500;
  padding: 0 16px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.12s;
  margin-left: auto;
}
.btn-search:hover { opacity: 0.85; }

/* ================================================
   TABLE
================================================ */
.table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
  margin-bottom: 14px;
}
.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-light);
  background: #fafbfc;
}
.table-result {
  font-size: 12px;
  color: var(--text-medium);
}
.table-result strong { color: var(--text-dark); }
.table-actions { display: flex; gap: 6px; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 9px 13px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-medium);
  background: #f9fafb;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 10px 13px;
  font-size: 12px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafbfc; }
.data-table td a:hover { color: var(--accent); text-decoration: underline; }

/* ================================================
   BADGES
================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-received { background: #fef3c7; color: #92400e; }
.badge-waiting  { background: #ede9fe; color: #5b21b6; }
.badge-success  { background: #cffafe; color: #155e75; }
.badge-fail     { background: #fee2e2; color: #991b1b; }
.badge-info     { background: #e0e7ff; color: #3730a3; }
.badge-auto     { background: #1f2937; color: #f9fafb; }
.badge-manual   { background: #dbeafe; color: #1e3a8a; }
.badge-active   { background: #d1fae5; color: #065f46; }
.badge-inactive { background: #f3f4f6; color: #6b7280; }

/* ================================================
   PAGINATION
================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 14px;
}
.pagination a, .pagination span {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 12px;
  color: var(--text-medium);
  transition: all 0.12s;
}
.pagination a:hover       { background: var(--primary-light); color: var(--primary); }
.pagination .active       { background: var(--primary); color: white; font-weight: 600; }
.pagination .disabled     { color: var(--text-light); pointer-events: none; }

/* ================================================
   BUTTONS
================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.12s;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { opacity: 0.85; }
.btn-outline { border: 1px solid var(--border); color: var(--text-medium); background: white; }
.btn-outline:hover { border-color: var(--primary-mid); color: var(--text-dark); }
.btn-sm { padding: 3px 9px; font-size: 11px; }
.btn-danger  { background: #dc2626; color: white; }
.btn-danger:hover  { opacity: 0.85; }
.btn-success { background: #059669; color: white; }
.btn-success:hover { opacity: 0.85; }

/* ================================================
   FORM ELEMENTS
================================================ */
.form-group-v {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 13px;
}
.form-label-v { font-size: 12px; font-weight: 500; color: var(--text-medium); }
.form-input-lg {
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
  width: 100%;
}
.form-input-lg:focus {
  border-color: var(--primary-mid);
  box-shadow: 0 0 0 3px rgba(75,85,99,0.1);
}
.form-hint { font-size: 11px; color: var(--text-light); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid.cols-1 { grid-template-columns: 1fr; }
.form-full { grid-column: 1 / -1; }

/* ================================================
   REGISTER BOX
================================================ */
.register-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.register-box .box-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

/* ================================================
   BALANCE TABLE
================================================ */
.balance-table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
  margin-bottom: 14px;
}
.balance-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-light);
  background: #fafbfc;
}
.balance-table-header .title    { font-size: 12.5px; font-weight: 600; color: var(--text-dark); }
.balance-table-header .basis-text { font-size: 11px; color: var(--text-light); }

/* ================================================
   DASHBOARD CHART + CALENDAR
================================================ */
.chart-calendar-row {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 14px;
  margin-bottom: 14px;
}
.chart-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  padding: 14px 18px;
}
.chart-box .chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.chart-box .chart-title { font-size: 12.5px; font-weight: 600; color: var(--text-dark); }
.chart-box .chart-limit { font-size: 11px; color: var(--text-light); }

/* ================================================
   CALENDAR
================================================ */
.calendar-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  padding: 10px 14px;
}
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.cal-nav {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 5px;
  color: var(--text-medium);
  font-size: 15px;
  transition: background 0.12s;
}
.cal-nav:hover { background: var(--primary-light); color: var(--primary); }
.cal-month { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.cal-grid { width: 100%; border-collapse: collapse; }
.cal-grid th {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-light);
  text-align: center;
  padding: 2px;
}
.cal-grid td { text-align: center; padding: 2px; }
.cal-day {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.12s;
}
.cal-day:hover { background: var(--primary-light); color: var(--primary); }
.cal-day.today { background: var(--primary); color: white; font-weight: 600; }
.cal-day.other-month { color: var(--text-light); }

/* ================================================
   DETAIL SECTION
================================================ */
.detail-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.detail-section .section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}
.detail-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.detail-item {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  gap: 14px;
}
.detail-item:nth-child(odd)  { padding-right: 20px; }
.detail-item:nth-child(even) { padding-left: 20px; border-left: 1px solid #f0f1f4; }
.detail-label { font-size: 12px; color: var(--text-light); min-width: 88px; flex-shrink: 0; }
.detail-value { font-size: 12px; color: var(--text-dark); font-weight: 500; }
.detail-value.amount  { color: var(--accent); }
.detail-value.api-key { font-family: monospace; font-size: 11px; color: var(--accent); word-break: break-all; }

/* ================================================
   NOTICE
================================================ */
.notice-search {
  display: flex;
  gap: 8px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  padding: 12px 18px;
  margin-bottom: 14px;
}
.notice-search .form-input { flex: 1; height: 34px; }
.btn-notice-search {
  background: var(--primary);
  color: white;
  padding: 0 18px;
  height: 34px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}
.notice-list-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.notice-count {
  font-size: 12px;
  color: var(--text-light);
  padding: 10px 18px;
  border-bottom: 1px solid var(--border-light);
  background: #fafbfc;
}
.notice-item {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.1s;
}
.notice-item:last-child { border-bottom: none; }
.notice-item:hover { background: #fafbfc; }
.notice-item .notice-title { font-size: 13.5px; font-weight: 600; color: var(--text-dark); margin-bottom: 5px; }
.notice-item .notice-date  { font-size: 11px; color: var(--text-light); }
.notice-item .notice-content { font-size: 12.5px; color: var(--text-medium); line-height: 1.8; margin-top: 7px; white-space: pre-line; }

/* ================================================
   LOG
================================================ */
.log-filter {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  padding: 12px 18px;
  margin-bottom: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.log-filter .form-input  { flex: 1; height: 32px; }
.log-filter .form-select { height: 32px; }

/* ================================================
   DATE ROW
================================================ */
.date-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
.date-row .form-input { width: 130px; }
.btn-today {
  background: var(--primary);
  color: white;
  padding: 0 13px;
  height: 32px;
  border-radius: var(--radius-sm);
  font-size: 12px;
}
.btn-date-range {
  background: white;
  border: 1px solid var(--border);
  color: var(--text-medium);
  padding: 0 11px;
  height: 32px;
  border-radius: var(--radius-sm);
  font-size: 12px;
}
.btn-date-range:hover { border-color: var(--primary-mid); color: var(--text-dark); }
.total-chip {
  margin-left: auto;
  background: var(--primary);
  color: white;
  padding: 5px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ================================================
   INFO BOX
================================================ */
.info-box {
  background: #f8f9fb;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
}
.info-box .info-title { font-size: 12px; font-weight: 600; color: var(--text-dark); margin-bottom: 7px; }
.info-box ul { padding-left: 14px; font-size: 12px; color: var(--text-medium); line-height: 1.9; }

/* ================================================
   EMPTY STATE
================================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  color: var(--text-light);
}
.empty-state i { font-size: 34px; margin-bottom: 10px; }
.empty-state p { font-size: 13px; }

/* ================================================
   TOGGLE SWITCH
================================================ */
.toggle-switch { position: relative; display: inline-block; width: 38px; height: 20px; }
.toggle-switch input { display: none; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #d1d5db;
  border-radius: 20px;
  transition: background 0.2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  background: white;
  border-radius: 50%;
  left: 3px; top: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider { background: #059669; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }

/* ================================================
   LOGIN PAGE
================================================ */
body.login-body {
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.login-container {
  width: 400px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  border: 1px solid var(--border);
  overflow: hidden;
}
.login-header {
  background: var(--primary);
  padding: 32px 40px 26px;
  text-align: center;
  color: white;
}
.login-header .logo-name { font-size: 19px; font-weight: 700; letter-spacing: -0.4px; margin-top: 8px; }
.login-header .logo-sub  { font-size: 10.5px; opacity: 0.65; text-transform: uppercase; letter-spacing: 1px; margin-top: 3px; }
.login-body-inner { padding: 28px 36px 32px; }
.login-body-inner .form-group-v { margin-bottom: 14px; }
.btn-login {
  width: 100%;
  height: 42px;
  background: var(--primary);
  color: white;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: opacity 0.12s;
  margin-top: 18px;
}
.btn-login:hover { opacity: 0.88; }
.login-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  font-size: 12px;
  padding: 9px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ================================================
   SCROLLBAR
================================================ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }
