/* T99 admin — overrides trên theme Plus Portal (pcoded) */

.ui-toast-wrap {
  position: fixed;
  top: 72px;
  right: 16px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.ui-toast {
  pointer-events: auto;
  min-width: 260px;
  max-width: 380px;
  padding: 12px 14px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,.15);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  animation: t99SlideIn .25s ease;
}
.ui-toast.success { border-left: 4px solid #11c26d; }
.ui-toast.error { border-left: 4px solid #ff5252; }
.ui-toast-close {
  margin-left: auto;
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
  color: #888;
}
.ui-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.35);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ui-overlay.hidden { display: none; }
.ui-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: t99Spin .8s linear infinite;
  margin: 0 auto 10px;
}
.ui-loading-text { color: #fff; font-size: 14px; }
@keyframes t99Spin { to { transform: rotate(360deg); } }
@keyframes t99SlideIn { from { opacity: 0; transform: translateX(12px); } }

#modalRoot .modal-dialog.modal-xl {
  max-width: 1140px;
  width: 92%;
}
  border-bottom: 1px solid #eaeaea;
  padding: 15px 20px;
  align-items: center;
}
#modalRoot .modal .modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #37474f;
}
#modalRoot .modal .modal-body {
  padding: 20px;
}
#modalRoot .modal .modal-footer {
  border-top: 1px solid #eaeaea;
  padding: 12px 20px;
}
#modalRoot .modal .modal-body > .text-muted.m-b-15 {
  margin-bottom: 18px;
  font-size: 13px;
}
#modalRoot .modal .row > [class*="col-"] {
  margin-bottom: 4px;
}
#modalRoot .modal .nav-tabs {
  border-bottom: 1px solid #eaeaea;
  margin-bottom: 0;
}
#modalRoot .modal .nav-tabs .nav-link {
  font-size: 13px;
  padding: 8px 14px;
}
#modalRoot .modal .nav-tabs .nav-link.active {
  color: #4099ff;
  border-color: #eaeaea #eaeaea #fff;
}
.ui-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 640px) { .ui-form-grid { grid-template-columns: 1fr; } }
.t99-row-restricted { background: #fff8f0 !important; }
.t99-restrict-card { box-shadow: none; margin-bottom: 0; }
.t99-restrict-card.border-left-warning { border-left: 4px solid #ffb64d; }
.t99-restrict-card.border-left-danger { border-left: 4px solid #ff5252; }
#modalRoot .border-checkbox-section .border-checkbox-group { margin-bottom: 0; }
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.ui-copy-box { display: flex; gap: 8px; }
.ui-copy-box input { flex: 1; }
.ui-result-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 16px;
}
.text-ok { color: #11c26d !important; }
.text-warn { color: #ffb64d !important; }
.text-danger { color: #ff5252 !important; }
.text-muted { color: #919aa3 !important; }
.mono { font-family: Consolas, monospace; font-size: 12px; }
.ui-empty {
  text-align: center;
  padding: 32px 16px;
  color: #919aa3;
}
.ui-bar-chart { display: flex; flex-direction: column; gap: 8px; }
.ui-bar-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.ui-bar-track {
  flex: 1;
  height: 8px;
  background: #eef1f5;
  border-radius: 4px;
  overflow: hidden;
}
.ui-bar-fill { height: 100%; background: linear-gradient(90deg, #4099ff, #2ed8b6); border-radius: 4px; }

/* --- Chỉnh cầu Tài Xỉu (CCTX) --- */
.headerTaiXiu {
  background: url('/admin/assets/images/bg-tx.png') center/cover no-repeat;
  border-radius: 8px;
  padding: 12px 8px 16px;
  min-height: 360px;
  margin-bottom: 10px;
  overflow: hidden;
  position: relative;
}
.gc-tx-cl-row {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.gc-side-head-text {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gc-side-badge {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  line-height: 1.2;
}
.gc-side-badge-chan {
  background: rgba(46, 125, 50, 0.9);
  box-shadow: 0 0 14px rgba(67, 160, 71, 0.45);
}
.gc-side-badge-le {
  background: rgba(106, 27, 154, 0.9);
  box-shadow: 0 0 14px rgba(142, 36, 170, 0.45);
}
.gc-center-cl {
  justify-content: center;
  min-height: 120px;
  padding-top: 28px;
}
.gc-pick-random-cl { margin-top: 0; }
.gc-phien-badge {
  display: inline-block;
  background: url('/admin/assets/images/bg-text.png') center/100% 100% no-repeat;
  padding: 4px 16px;
  font-size: 16px;
  color: #fff;
  margin-bottom: 6px;
}
.gc-side { padding: 4px 8px; position: relative; z-index: 1; }
.gc-side-head {
  position: relative;
  height: 100px;
  width: 100%;
  max-width: 140px;
  margin: 0 auto;
}
.gc-side-glow {
  position: absolute;
  left: 50%;
  top: -16px;
  width: 88px;
  height: 88px;
  margin-left: -44px;
  z-index: 1;
  pointer-events: none;
  animation: gcRotate 5s linear infinite;
}
.gc-side-logo {
  position: relative;
  z-index: 2;
  display: block;
  max-height: 62px;
  margin: 14px auto 0;
}
@keyframes gcWinBlink {
  0%, 100% {
    outline: 3px solid #ffc107;
    outline-offset: -2px;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
  }
  50% {
    outline: 4px solid #ffeb3b;
    outline-offset: -2px;
    box-shadow: 0 0 18px rgba(255, 235, 59, 0.95);
  }
}
@keyframes gcSideWinBlink {
  0%, 100% {
    outline: 3px solid #ffc107;
    outline-offset: 2px;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.45);
  }
  50% {
    outline: 4px solid #ffeb3b;
    outline-offset: 3px;
    box-shadow: 0 0 18px rgba(255, 235, 59, 0.85);
  }
}
.gc-side.gc-side-win .gc-side-logo {
  filter: drop-shadow(0 0 10px rgba(255, 235, 59, 0.85));
}
.gc-bet-panel.gc-bet-panel-pick,
.gc-door-card.gc-door-pick {
  outline: 3px solid #e53935 !important;
  outline-offset: -2px;
  box-shadow: 0 0 10px rgba(229, 57, 53, 0.45) !important;
  border-color: #e53935 !important;
  position: relative;
  z-index: 3;
}
.gc-bet-panel.gc-bet-panel-win,
.gc-door-card.gc-door-win {
  outline: 3px solid #ffc107;
  outline-offset: -2px;
  animation: gcWinBlink 0.85s ease-in-out infinite;
  position: relative;
  z-index: 4;
}
.gc-bet-panel.gc-bet-panel-pick.gc-bet-panel-win {
  animation: gcWinBlink 0.85s ease-in-out infinite;
}
.gc-bet-panel.gc-bet-panel-win .gc-bet-head {
  color: inherit;
}
.gc-side.gc-side-pick {
  outline: 3px solid #e53935 !important;
  outline-offset: 2px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(229, 57, 53, 0.4);
}
.gc-side.gc-side-win {
  animation: gcSideWinBlink 0.85s ease-in-out infinite;
  border-radius: 6px;
}
.gc-bacc-opt.gc-door-pick {
  outline: 3px solid #e53935 !important;
  outline-offset: 1px;
  border-radius: 6px;
}
.gc-bacc-opt.gc-door-win {
  animation: gcWinBlink 0.85s ease-in-out infinite;
  border-radius: 6px;
}
.gc-pick-door-btn {
  font-size: 11px;
  padding: 2px 8px;
  line-height: 1.4;
  border-color: rgba(255,255,255,.35);
  color: #333;
}
.gc-pick-door-btn:hover:not(:disabled) {
  background: #ffeb3b;
  border-color: #ffeb3b;
  color: #1a1a1a;
}
.gc-pick-door-btn:disabled {
  opacity: 0.45;
}
.gc-side-stat { margin: 6px 0; text-align: center; }
.gc-side-stat .lbl { display: block; font-size: 11px; color: rgba(255,255,255,.75); }
.gc-side-stat strong { font-size: 20px; color: #ffeb3b; }
.gc-pick { display: block; margin-top: 8px; font-size: 13px; cursor: pointer; color: #fff; text-align: center; }
.gc-pick input { margin-right: 6px; transform: scale(1.2); vertical-align: middle; }
.gc-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 5;
}
.gc-clock-wrap {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 4px auto;
}
.gc-clock-bg {
  width: 150px;
  height: 150px;
  position: absolute;
  inset: 0;
  z-index: 1;
}
.gc-clock-num {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  font-weight: 700;
  color: #ffeb3b;
  line-height: 1;
}
.gc-dices {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 6px;
}
.gc-dice-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.gc-dices img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.gc-dice-sum {
  width: 32px;
  height: 32px;
  background: #e53935;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-top: 6px;
  line-height: 1;
  position: static;
}
@keyframes gcRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.gc-die-active { background: #fff8e1 !important; border-left: 4px solid #ff5252 !important; }

/* --- Game control v2 --- */
.gc-toolbar { border-left: 4px solid #4099ff; }
.gc-label { font-size: 12px; color: #919aa3; font-weight: 600; text-transform: uppercase; }
.gc-meta-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gc-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: #f4f7fa; border: 1px solid #e3e8ef; border-radius: 20px;
  padding: 4px 12px; font-size: 13px;
}
.gc-timer-chip strong { color: #4099ff; font-size: 15px; }
.gc-override-badge { background: #eef1f5; }
.gc-override-badge.gc-override-on { background: #fff3cd; border-color: #ffc107; color: #856404; }
.gc-override-badge.gc-override-lock { opacity: 0.7; }
.gc-override-locked { opacity: 0.55; pointer-events: none; }
.gc-override-locked input { cursor: not-allowed; }
.gc-game-card { box-shadow: 0 1px 8px rgba(0,0,0,.06); }
.gc-bet-panel { border: 1px solid #e3e8ef; border-radius: 6px; overflow: hidden; }
.gc-bet-tai .gc-bet-head { background: linear-gradient(90deg, #c62828, #e53935); color: #fff; }
.gc-bet-xiu .gc-bet-head { background: linear-gradient(90deg, #1565c0, #1e88e5); color: #fff; }
.gc-bet-chan .gc-bet-head { background: linear-gradient(90deg, #2e7d32, #43a047); color: #fff; }
.gc-bet-le .gc-bet-head { background: linear-gradient(90deg, #6a1b9a, #8e24aa); color: #fff; }
.gc-pick-chan { color: #a5d6a7; }
.gc-pick-le { color: #ce93d8; }
.gc-side-badge-tai {
  background: rgba(198, 40, 40, 0.9);
  box-shadow: 0 0 14px rgba(229, 57, 53, 0.45);
}
.gc-side-badge-xiu {
  background: rgba(21, 101, 192, 0.9);
  box-shadow: 0 0 14px rgba(30, 136, 229, 0.45);
}
.headerSicbo {
  min-height: 580px;
  padding: 16px 12px 28px;
  overflow: visible;
}
.headerSicbo .gc-tx-cl-row {
  margin-top: 10px;
  padding-top: 18px;
  padding-bottom: 6px;
}
.headerSicbo .gc-side {
  padding: 8px 10px;
}
.headerSicbo .gc-side-head {
  height: 110px;
  max-width: 160px;
}
.headerSicbo .gc-side-logo {
  max-height: 72px;
  margin-top: 18px;
}
.headerSicbo .gc-side-head-text {
  height: 88px;
}
.headerSicbo .gc-side-badge {
  padding: 12px 26px;
  font-size: 24px;
}
.headerSicbo .gc-side-stat {
  margin: 8px 0;
}
.headerSicbo .gc-side-stat .lbl {
  font-size: 13px;
}
.headerSicbo .gc-side-stat strong {
  font-size: 22px;
  line-height: 1.25;
  word-break: break-word;
}
.headerSicbo .gc-pick {
  margin-top: 10px;
  font-size: 14px;
}
.headerSicbo .gc-pick input {
  transform: scale(1.35);
}
.headerSicbo .gc-center-cl {
  min-height: 140px;
  padding-top: 32px;
}
.headerSicbo .gc-phien-badge {
  font-size: 18px;
  padding: 6px 20px;
  margin-bottom: 10px;
}
.headerSicbo .gc-clock-wrap {
  width: 168px;
  height: 168px;
}
.headerSicbo .gc-clock-bg {
  width: 168px;
  height: 168px;
}
.headerSicbo .gc-clock-num {
  font-size: 62px;
}
.headerSicbo .gc-sicbo-quick-row {
  margin-top: 12px;
  padding: 14px 8px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.headerSicbo .gc-sicbo-quick-btns {
  gap: 10px;
  padding: 10px 4px 4px;
}
.headerSicbo .gc-sicbo-qbtn {
  background: #5a6b2f;
  color: #ffe082;
  border: 1px solid rgba(255, 224, 130, 0.45);
  border-radius: 8px;
  min-width: 88px;
  min-height: 38px;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.headerSicbo .gc-sicbo-qbtn:hover,
.headerSicbo .gc-sicbo-qbtn.active {
  background: #6d8038;
  color: #fff9c4;
  border-color: #ffe082;
}
.headerSicbo .gc-sicbo-qbtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.headerSicbo .gc-sicbo-custom-row {
  margin-top: 12px;
  padding: 18px 8px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.headerSicbo .gc-xd-section-lbl {
  font-size: 14px;
  margin-bottom: 10px;
}
.headerSicbo .gc-sicbo-dice-pick {
  gap: 12px;
  padding: 4px 0 10px;
}
.headerSicbo .gc-sicbo-dice-sel {
  width: 112px;
  min-height: 38px;
  font-size: 14px;
  display: inline-block;
}
.headerSicbo .gc-sicbo-dice-pick .btn {
  min-height: 38px;
  padding: 6px 16px;
  font-size: 14px;
}
.headerSicbo .gc-sicbo-win-preview {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.95);
  padding: 10px 8px 4px;
  line-height: 1.5;
}
.headerSicbo .gc-sicbo-sum {
  margin-bottom: 10px;
  font-size: 15px;
}
.headerSicbo .gc-sicbo-win-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 235, 59, 0.2);
  color: #ffeb3b;
  font-size: 13px;
}
.headerSicbo .gc-sicbo-win-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding-bottom: 4px;
}
.headerXocdia .gc-tx-cl-row {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  border-radius: 0;
  padding-top: 14px;
}
.gc-xd-preview-lbl,
.gc-xd-section-lbl {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 6px;
}
.gc-xd-preview-coins {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  margin-bottom: 4px;
}
.gc-xd-preview img {
  margin: 0;
  vertical-align: middle;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.gc-xd-preview img.gc-xd-coin-dim { opacity: 0.35; filter: grayscale(0.4); }
.gc-xd-preview-hint {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #ffe082;
  margin-top: 2px;
}
.gc-xd-coin-btns .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.gc-xd-coin-btns .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.gc-pick-xiu { color: #90caf9; }
.gc-bet-head { padding: 10px 14px; font-weight: 600; font-size: 14px; }
.gc-table-wrap { max-height: 280px; overflow-y: auto; }
.gc-bet-table thead th { background: #f8f9fa; font-size: 12px; border-top: none; }
.gc-empty-cell { text-align: center; color: #919aa3; padding: 24px !important; font-size: 13px; }

.gc-door-card { border: 1px solid #e3e8ef; border-radius: 6px; height: 100%; }
.gc-door-title { padding: 10px 12px; background: #f8f9fa; border-bottom: 1px solid #e3e8ef; font-size: 13px; font-weight: 600; }
.gc-door-body { padding: 8px; max-height: 200px; overflow-y: auto; min-height: 80px; }
.gc-door-user { display: flex; justify-content: space-between; padding: 6px 8px; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.gc-door-user:last-child { border-bottom: none; }
.gc-door-name { font-weight: 500; }
.gc-door-bet { color: #4099ff; font-weight: 600; }
.gc-door-empty { text-align: center; color: #919aa3; padding: 20px 8px; font-size: 13px; }
.gc-result-preview { background: #f8f9fa; padding: 12px 16px; border-radius: 6px; }
.gc-bacc-opt { display: block; padding: 14px; border: 2px solid #e3e8ef; border-radius: 8px; cursor: pointer; font-weight: 600; }
.gc-bacc-opt input { margin-right: 8px; }
.gc-bacc-opt-side { padding: 10px 8px; font-size: 13px; }
.gc-bacc-pick-side { margin-top: -8px; }
.gc-bacc-opt:has(input:checked) { border-color: #4099ff; background: #f0f7ff; }
.gc-bacc-random:has(input:checked) { border-color: #78909c; background: #f5f5f5; }
.gc-bacc-opt-side:has(input:checked) { border-color: #43a047; background: #e8f5e9; }
.gc-bacc-player .gc-door-title { background: #e3f2fd; }
.gc-bacc-tie .gc-door-title { background: #f3e5f5; }
.gc-bacc-banker .gc-door-title { background: #fce4ec; }
.gc-bacc-side .gc-door-title { background: #fff8e1; }
.gc-bacc-super6 .gc-door-title { background: #e8f5e9; }
.gc-door-card .gc-table-wrap { max-height: 180px; overflow-y: auto; }
.gc-die-title { color: #333; font-weight: 700; }
.gc-die-money { color: #c62828; }
.gc-die-name { color: #1565c0; }
.gc-die-bot { color: #2e7d32; }

/* --- Dashboard --- */
.t99-dash-filter {
  border-left: 4px solid #448aff;
  box-shadow: 0 1px 8px rgba(68, 138, 255, 0.08);
}
.t99-dash-filter h5 {
  font-weight: 600;
  color: #37474f;
}
#dashMatStats .mat-stat-card,
#dashSummary .order-visitor-card {
  min-height: 120px;
}

.t99-online-card .card-header h5 .badge {
  font-size: 0.75rem;
  vertical-align: middle;
}

.t99-online-panel .badge {
  display: inline-block;
  margin-right: 6px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(70, 128, 255, 0.12);
  color: var(--sk-text, #334);
  font-size: 0.8125rem;
}

.t99-online-panel .badge.badge-success {
  background: rgba(46, 184, 92, 0.15);
  color: #1e7e34;
}

#dashSummary .order-visitor-card {
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
}
#dashMatStats .mat-stat-card h5 {
  font-size: 18px;
  font-weight: 600;
}
#dashSummary .order-visitor-card h4 {
  font-size: 22px;
  font-weight: 600;
}
.table-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.table-card .card-header h5 {
  margin-bottom: 0;
  font-weight: 600;
}
.table-card .card-header h5 i {
  color: #448aff;
}
.proj-progress-card .progress {
  height: 6px;
  overflow: visible;
  margin-bottom: 0;
}
.proj-progress-card .progress .progress-bar {
  position: relative;
}
.proj-progress-card .progress .progress-bar:after {
  content: "";
  background: #fff;
  position: absolute;
  right: -6px;
  top: -4px;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  border: 3px solid #448aff;
  box-shadow: 0 0 0 4px rgba(68, 138, 255, 0.25);
}
.proj-progress-card .progress .progress-bar.bg-c-green:after {
  border-color: #11c15b;
  box-shadow: 0 0 0 4px rgba(17, 193, 91, 0.25);
}
.m-b-8 { margin-bottom: 8px; }
.f-w-600 { font-weight: 600; }
.f-12 { font-size: 12px; }

/* --- Partners table actions --- */
.t99-action-btns .btn {
  padding: 4px 10px;
  line-height: 1.4;
}
.t99-action-btns .btn i {
  font-size: 13px;
  vertical-align: middle;
}
.t99-copy-key {
  text-decoration: none !important;
  white-space: nowrap;
}
.t99-copy-key code {
  font-size: 11px;
  color: #546e7a;
  background: #f4f7fa;
  padding: 2px 6px;
  border-radius: 3px;
}
.t99-copy-key:hover code {
  color: #448aff;
}
.t99-copy-key .ti-files {
  font-size: 12px;
  margin-left: 4px;
}

/* --- Business cleanup --- */
.t99-cleanup-card {
  border-left: 4px solid #ffb64d;
}
.t99-cleanup-preview.hidden {
  display: none;
}
.t99-cleanup-preview-inner {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 14px 16px;
}
.t99-cleanup-targets .border-checkbox-group {
  display: inline-block;
  margin-bottom: 8px;
}

/* --- System config page --- */
.t99-sys-overview {
  margin-left: -6px;
  margin-right: -6px;
}
.t99-sys-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  min-height: 48px;
}
.t99-sys-stat-label {
  font-size: 12px;
  color: #888;
}
.t99-sys-stat-val {
  font-size: 13px;
  color: #333;
}
.t99-sys-card {
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}
.t99-sys-card-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
}
.t99-sys-card-head h5 {
  font-size: 15px;
}
.t99-sys-schedule {
  border-top: 3px solid #448aff;
}
.t99-sys-card:not(.t99-sys-schedule) {
  border-top: 3px solid #ffb64d;
}
.t99-sys-label {
  display: block;
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}
.t99-sys-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.t99-sys-chip {
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
  user-select: none;
}
.t99-sys-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.t99-sys-chip span {
  display: inline-block;
  padding: 5px 12px;
  font-size: 12px;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  background: #f8f9fa;
  color: #555;
  transition: all 0.15s;
}
.t99-sys-chip input:checked + span {
  background: #e3f2fd;
  border-color: #448aff;
  color: #1565c0;
  font-weight: 600;
}
.t99-sys-chip-warn input:checked + span {
  background: #fff8e1;
  border-color: #ffb64d;
  color: #e65100;
}
.t99-sys-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.t99-sys-toggle input {
  width: 16px;
  height: 16px;
}
.t99-sys-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid #f0f0f0;
}
.t99-sys-actions-left {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.t99-sys-logs .card-header {
  padding: 12px 18px;
}
.t99-sys-logs thead th {
  font-size: 11px;
  text-transform: uppercase;
  color: #888;
  border-top: none;
  padding: 10px 18px;
}
.t99-sys-logs tbody td {
  padding: 8px 18px;
  font-size: 12px;
  vertical-align: middle;
}
.m-b-12 { margin-bottom: 12px !important; }

/* --- Admin security page --- */
.t99-security-status-card {
  border-top: 3px solid #448aff;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}
.t99-security-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.t99-security-icon-user {
  background: #e3f2fd;
  color: #1976d2;
}
.t99-security-icon-shield {
  background: #e8f5e9;
  color: #388e3c;
}
.t99-security-tips {
  padding-left: 18px;
  line-height: 1.7;
}
.t99-security-twofa-card {
  border-left: 4px solid #448aff;
}
.t99-security-pass-card {
  border-left: 4px solid #ffb64d;
}
.t99-twofa-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.t99-twofa-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}
.t99-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #448aff;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.t99-secret-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
}
.t99-secret-box code {
  flex: 1;
  word-break: break-all;
  font-size: 12px;
  color: #333;
  background: transparent;
}
.t99-twofa-qr {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 6px;
  background: #fff;
}
.t99-twofa-qr.hidden {
  display: none;
}
