:root {
  --blue: #1d58a8;
  --blue-dark: #164278;
  --ink: #172033;
  --muted: #6b778c;
  --line: #e4ebf5;
  --bg: #f3f6fb;
  --side: #12243f;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body:has(.shell) { overflow: hidden; }
body {
  font-family: Inter, "Noto Sans Myanmar", "Myanmar Text", Pyidaungsu, Padauk, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
button, input, select { font-family: inherit; }
button { cursor: pointer; }
button:disabled { opacity: 0.55; cursor: not-allowed; }

.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  overflow: auto;
  background: #0e1b33;
}
.login-card {
  width: min(780px, 100%);
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  overflow: hidden;
  padding: 0;
  border: none;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.login-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 100%;
  padding: 36px 26px;
  color: #fff;
  background: #164278;
}
.login-aside strong { font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.login-role {
  width: fit-content;
  margin-top: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.login-aside em { color: #d5e2f5; font-size: 13px; font-style: normal; }
.login-body { padding: 36px 32px 28px; }
.login-body h1 { margin: 0; font-size: 28px; }
.login-lead { margin: 6px 0 22px; color: var(--muted); }
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-size: 20px;
}
.field { display: block; margin-bottom: 12px; }
.field[hidden] { display: none; }
.field .hint { display: block; margin-top: 6px; }
.field span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.field input, .field select, .search input, .odds-table input {
  width: 100%;
  height: 44px;
  border: 1px solid #d7e0ee;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 15px;
  background: #fff;
}
.primary, .ghost, .danger, .mode-btn {
  height: 42px;
  border: none;
  border-radius: 12px;
  padding: 0 14px;
  font-weight: 800;
}
.primary { background: var(--blue); color: #fff; }
.primary.wide { width: 100%; height: 46px; }
.ghost { background: #eef3fb; color: var(--blue); }
.danger { background: #fff1f1; color: #c53636; }
.error { min-height: 18px; margin: 0 0 10px; color: #c53636; font-size: 13px; font-weight: 700; }
.fine { margin: 14px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

.shell { height: 100vh; max-height: 100vh; display: flex; overflow: hidden; }
.sidebar {
  width: 250px;
  background: var(--side);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 18px 12px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 15;
  height: 100vh;
  overflow: auto;
  transition: margin-left 0.22s ease;
}
.side-brand { padding: 8px 12px 18px; font-weight: 800; font-size: 16px; }
.side-brand small { display: block; color: #9eb0c9; font-weight: 600; font-size: 12px; margin-top: 2px; }
.menu-burger {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border: 1px solid #d7e0ee;
  border-radius: 12px;
  background: #fff;
  color: #12243f;
  font-size: 18px;
}
.side-backdrop { display: none; }
.shell.is-side-hidden .sidebar {
  margin-left: -250px;
  pointer-events: none;
  visibility: hidden;
}
.day-head { margin: 8px 0; font-size: 16px; color: var(--blue); }
.side-nav { display: flex; flex-direction: column; gap: 6px; }
.nav-btn, .logout-btn {
  width: 100%;
  min-height: 46px;
  text-align: left;
  border: none;
  background: transparent;
  color: #d5e0ee;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav-btn i { width: 18px; text-align: center; color: #9eb4d0; }
.nav-btn.is-on, .nav-btn:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.nav-btn.is-on { box-shadow: inset 3px 0 0 #8eb6ff; }
.nav-btn.is-on i, .nav-btn:hover i { color: #fff; }
.logout-btn { margin-top: auto; color: #ffb4b4; }
.content { flex: 1; min-width: 0; min-height: 0; height: 100%; margin-left: 250px; padding: 22px; overflow: auto; }
.shell.is-side-hidden .content { margin-left: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.page-head h1 { margin: 0; font-size: 24px; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.stat span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.stat strong { display: block; margin-top: 8px; font-size: 22px; }
.stat small { color: var(--blue); font-weight: 700; }
.alarm {
  margin-top: 16px;
  background: #fff6f6;
  border: 1px solid #f3c7c7;
  border-radius: 16px;
  padding: 14px;
}
.alarm h2 { margin: 0 0 8px; font-size: 16px; color: #b42318; }
.alarm p { margin: 6px 0; font-weight: 700; }
.quiet {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  color: var(--muted);
  font-weight: 700;
}
.tabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.tab {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
}
.tab.is-on { background: var(--blue); color: #fff; border-color: var(--blue); }
.table-wrap, .panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: auto;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: 12px; }
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.search { flex: 1; min-width: 180px; position: relative; }
.search i { position: absolute; left: 12px; top: 14px; color: var(--muted); }
.search input { padding-left: 34px; }
.hint { margin: -6px 0 12px; color: var(--muted); font-size: 13px; font-weight: 650; }
.toolbar input[type="date"] {
  height: 44px;
  border: 1px solid #d7e0ee;
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
  font-weight: 700;
}
.info-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; max-height: 50vh; overflow: auto; }
.info-leg {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.info-leg b, .info-leg span { min-width: 0; }
.info-leg em { font-style: normal; font-weight: 800; color: var(--blue); white-space: nowrap; }
.toolbar select {
  height: 44px;
  border: 1px solid #d7e0ee;
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
  font-weight: 700;
}
.tabs.inline { margin: 0; }
.sticky-tools { position: sticky; top: 0; z-index: 4; background: var(--bg); padding: 6px 0; }
.select-all { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.pick-count { color: var(--blue); font-weight: 800; }
.note { color: #c53636; font-weight: 700; font-size: 13px; }
.match-list { display: flex; flex-direction: column; gap: 10px; }
.match-item {
  display: grid;
  grid-template-columns: auto minmax(160px, 0.8fr) minmax(280px, 1.5fr) auto;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}
.match-item.is-open { grid-template-columns: minmax(190px, 0.8fr) minmax(320px, 1.6fr) auto; }
.who b { display: block; line-height: 1.35; }
.is-give { color: #e0a100; background: none; }
.who small { display: block; margin: 4px 0; color: var(--muted); }
.who .badge { margin-right: 6px; }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.quote { background: #f6f9fd; border-radius: 12px; padding: 8px 10px; min-width: 0; }
.quote span { display: block; color: var(--blue); font-size: 11px; font-weight: 800; margin-bottom: 4px; }
.quote b { display: block; font-size: 13px; font-weight: 700; white-space: normal; }
.row-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.order-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
}
.order-row b { min-width: 0; }
.order-row span { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.order-row .ghost, .order-row .danger { height: 34px; }
.size-switch { display: inline-flex; border: 1px solid #d7e0ee; border-radius: 999px; overflow: hidden; background: #f4f7fb; }
.size-btn { width: 36px; height: 34px; border: none; background: transparent; color: #667085; font-weight: 800; }
.size-btn.is-on.is-b { background: #1d58a8; color: #fff; }
.size-btn.is-on.is-n { background: #5c6b80; color: #fff; }
.slip-table td.bet { white-space: normal; min-width: 240px; line-height: 1.45; }
.slip-actions { display: flex; gap: 6px; }
.slip-actions button { height: 34px; padding: 0 10px; border-radius: 10px; }
.status-win { color: #128a4e; font-weight: 800; }
.status-lose { color: #c53636; font-weight: 800; }
tr[hidden], .match-item[hidden] { display: none; }
.mode-btn { background: var(--blue); color: #fff; }
.mode-btn.off { background: #eef3fb; color: var(--blue); }
.badge { display: inline-flex; border-radius: 999px; padding: 2px 8px; background: #e7eef8; color: var(--blue); font-size: 12px; font-weight: 800; }
.badge.live { background: #ffe8e6; color: #d14343; }
.modal {
  position: fixed;
  inset: 0;
  background: rgba(18, 36, 63, 0.45);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 20;
}
.modal form {
  width: min(640px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 18px;
}
.modal h2 { margin: 0 0 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.name-row { display: flex; align-items: stretch; }
.name-row b {
  display: none;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #d7e0ee;
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: #eef3fb;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.name-row.has-prefix b { display: flex; }
.name-row.has-prefix input { border-radius: 0 12px 12px 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.banner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.banner-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.banner-card img { width: 100%; height: 120px; object-fit: cover; display: block; background: #eef3fb; }
.banner-card div { padding: 10px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.check { width: 18px; height: 18px; }
.empty { padding: 28px; text-align: center; color: var(--muted); font-weight: 700; }
.user-search { display: flex; width: min(280px, 100%); margin: 8px 0 14px; }
.user-search input {
  flex: 1;
  height: 38px;
  border: 1px solid #e3e8f0;
  border-right: none;
  border-radius: 4px 0 0 4px;
  padding: 0 12px;
  background: #fff;
}
.search-go {
  width: 42px;
  height: 38px;
  border: none;
  border-radius: 0 4px 4px 0;
  background: #2f80ed;
  color: #fff;
}
.user-table-wrap { background: #fff; border: 1px solid #eef1f6; border-radius: 6px; overflow: auto; }
.user-table { width: 100%; border-collapse: collapse; }
.user-table th { text-align: left; background: #f7f8fb; color: #6b7280; font-size: 14px; font-weight: 600; padding: 14px 16px; }
.user-table td { padding: 16px; border-top: 1px solid #f0f2f6; font-size: 15px; }
.eye-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #98a2b3;
  font-size: 16px;
}
.pager { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 16px; }
.pager button, .pager span {
  width: 34px;
  height: 34px;
  border: 1px solid #e6eaf0;
  border-radius: 4px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pager span { background: #2f80ed; color: #fff; border-color: #2f80ed; font-weight: 700; }
.detail-tabs { display: flex; align-items: center; gap: 22px; border-bottom: 1px solid #e7edf5; margin-bottom: 16px; }
.detail-tabs > button { height: auto; border: none; background: transparent; padding: 10px 0; color: #667085; font-weight: 700; }
.detail-tabs > button.is-on { color: #2f80ed; box-shadow: inset 0 -2px 0 #2f80ed; }
.detail-tabs .back-link { margin-left: auto; }
.info-card { background: #fff; border: 1px solid #eef1f6; border-radius: 6px; margin-bottom: 14px; }
.info-card header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #f2f4f8; }
.info-card h3 { margin: 0; font-size: 16px; }
.info-card header button { border: none; background: transparent; color: #98a2b3; }
.info-body { padding: 16px 18px 18px; }
.info-body p { margin: 0 0 10px; }
.info-body p span { color: #344054; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.info-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chip { height: 38px; border: none; border-radius: 4px; padding: 0 14px; color: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.chip.muted { background: #98a2b3; }
.chip.danger-chip { background: #e11d2e; }
.chip.ok-chip { background: #16a34a; }
.account-delete { margin-top: 8px; }
.tx-table { width: 100%; border-collapse: collapse; }
.tx-table th, .tx-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #f0f2f6; font-size: 14px; }
.tx-table th { color: #667085; font-weight: 650; }
.slip-open {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: none;
  border-bottom: 1px solid #f0f2f6;
  background: transparent;
  padding: 12px 4px;
  text-align: left;
  cursor: pointer;
}
.slip-open b { display: block; }
.slip-open span, .slip-open em { color: #667085; font-style: normal; }
.card-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.card-block h2 { margin: 0 0 12px; font-size: 18px; }
.wallet-line { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-weight: 700; }
.wallet-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.primary.wide { width: 100%; }
.score-table input { width: 72px; height: 36px; text-align: center; }
.score-table .danger { margin-left: 6px; }
.pp-mark { color: #c53636; font-weight: 800; letter-spacing: 0.04em; }

@media (max-width: 980px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .sidebar {
    position: fixed;
    z-index: 30;
    width: 250px;
    flex-basis: 250px;
    margin-left: 0;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    visibility: visible;
    pointer-events: none;
  }
  .shell.is-side-hidden .sidebar { margin-left: 0; visibility: visible; }
  .sidebar.is-open { transform: none; pointer-events: auto; }
  .side-brand { padding-right: 52px; }
  .menu-burger { position: fixed; top: 14px; left: 14px; z-index: 45; background: #fff; }
  .sidebar.is-open ~ .content .menu-burger {
    left: 202px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-color: transparent;
  }
  .side-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 25;
    border: none;
    background: rgba(18, 36, 63, 0.35);
  }
  .sidebar.is-open ~ .side-backdrop { display: block; }
  .content { margin-left: 0; padding: 16px; padding-top: 68px; }
  .match-item, .match-item.is-open { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .desk-cards, .desk-metrics { grid-template-columns: 1fr 1fr; }
  .desk-toolbar { align-items: stretch; }
}
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .role-cards, .role-extra, .desk-cards, .desk-metrics, .down-roles { grid-template-columns: 1fr; }
}
.role-cards, .role-extra { display: grid; gap: 12px; margin-bottom: 14px; }
.role-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.role-extra { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.role-card, .role-extra article { display: flex; align-items: center; gap: 12px; min-height: 78px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid #e6ebf3; }
.role-card i, .role-extra article i { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: #eef4ff; color: var(--blue); }
.role-card b, .role-extra article b { display: block; font-size: 22px; line-height: 1.1; color: #17325c; }
.role-card span, .role-extra article span { color: #526074; font-size: 13px; font-weight: 700; }
.parent-pick { position: relative; }
.parent-menu { position: absolute; z-index: 8; left: 0; right: 0; top: calc(100% + 4px); max-height: 220px; overflow: auto; background: #fff; border: 1px solid #d7e0ee; border-radius: 12px; box-shadow: 0 12px 28px rgba(18, 36, 63, .14); }
.parent-menu button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid #eef2f8; background: #fff; padding: 10px 12px; font: inherit; cursor: pointer; }
.parent-menu button:hover, .parent-menu button.is-on { background: #eef4ff; }
.parent-empty { margin: 0; padding: 10px 12px; color: #6b7280; }
.user-prefix { display: flex; align-items: stretch; border: 1px solid #d7e0ee; border-radius: 12px; background: #fff; overflow: hidden; }
.user-prefix b { display: grid; place-items: center; padding: 0 12px; background: #eef4ff; color: #1d58a8; font-size: 15px; white-space: nowrap; }
.user-prefix input { border: 0 !important; border-radius: 0 !important; width: auto; flex: 1; min-width: 0; }
.user-prefix:focus-within { border-color: var(--blue); }
.desk { display: grid; gap: 16px; min-width: 0; }
.desk-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.desk-card { display: flex; align-items: center; gap: 16px; min-height: 108px; padding: 20px 22px; border: 0; border-radius: 18px; color: #fff; box-shadow: 0 10px 24px rgba(23, 32, 51, .08); }
.desk-card i { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; font-size: 18px; background: rgba(255, 255, 255, .18); color: #fff; }
.desk-card > div { min-width: 0; }
.desk-card span { display: block; color: inherit; font-size: 13px; font-weight: 700; opacity: .9; }
.desk-card strong { display: block; margin-top: 4px; font-size: 26px; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.desk-card.is-balance { background: linear-gradient(135deg, #1fa86a, #127a45); }
.desk-card.is-down { background: linear-gradient(135deg, #f43f5e, #be123c); }
.down-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0; }
.down-roles article { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid #e6ebf3; box-shadow: 0 6px 16px rgba(23, 32, 51, .03); }
.down-roles span { color: #6b778c; font-size: 13px; font-weight: 700; }
.down-roles strong { font-size: 18px; color: #17325c; font-variant-numeric: tabular-nums; }
.desk-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.metric { display: flex; align-items: center; gap: 12px; min-height: 78px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid #e6ebf3; box-shadow: 0 6px 16px rgba(23, 32, 51, .03); }
.metric i { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; background: #eef4ff; color: var(--blue); }
.metric b { display: block; font-size: 18px; line-height: 1.15; color: #17325c; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric span { color: #6b778c; font-size: 12px; font-weight: 700; }
.desk-ledger { min-width: 0; overflow: hidden; border: 1px solid #e6ebf3; border-radius: 16px; background: #fff; box-shadow: 0 8px 20px rgba(23, 32, 51, .04); }
.desk-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 14px 0; }
.desk-toolbar .tabs { margin: 0; }
.desk-filter { display: flex; align-items: center; gap: 8px; margin: 0; flex-wrap: wrap; }
.desk-filter input { height: 40px; border: 1px solid #d7e0ee; border-radius: 10px; padding: 0 10px; background: #fff; }
.desk-ledger .report-wrap { border: 0; border-radius: 0; margin-top: 12px; }
.desk-ledger .report-table th { background: #f4f7fb; color: #526074; border-color: #e8eef6; font-size: 11px; }
.desk-ledger .report-table td { padding: 12px 10px; border-color: #eef3f8; }
.desk-ledger .report-table tbody tr:hover td { background: #f8fbff; }
.tx-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 999px; background: #eef4ff; color: #1d58a8; font-size: 11px; font-weight: 800; }
.tx-pill.is-in { background: #e8f8ef; color: #15803d; }
.tx-pill.is-out { background: #fff1f1; color: #c53636; }
#rules-form textarea { width: 100%; min-height: 280px; border: 1px solid #d7e0ee; border-radius: 12px; padding: 12px; font: inherit; resize: vertical; }
.report-wrap { overflow: auto; border: 1px solid #d7e0ee; border-radius: 12px; background: #fff; }
.report-table { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; }
.report-table th, .report-table td { padding: 8px 10px; border: 1px solid #e4ebf5; text-align: right; }
.report-table th { background: #4b5563; color: #fff; text-align: center; font-size: 11px; }
.report-table td:first-child, .report-table td:nth-child(2), .report-table td:nth-child(3) { text-align: left; }
.report-table .is-super { background: #fff3a0; }
.report-table th.is-super { background: #d9a441; }
.report-table .is-neg { color: #c53636; font-weight: 800; }
.report-table .is-pos { color: #128a4e; font-weight: 800; }
.report-table .is-total td { font-weight: 800; background: #f8fafc; }
.report-empty { text-align: center !important; color: #8b93a7; padding: 36px 10px !important; }
.report-empty i { display: block; font-size: 28px; margin-bottom: 8px; }
.card-form { margin-bottom: 16px; padding: 16px; border: 1px solid #e4ebf5; border-radius: 16px; background: #fff; }
.perm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin: 8px 0 12px; }
.perm { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.login-aside .brand-mark {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 28px;
}
.login-card .field input {
  height: 48px;
  border-radius: 12px;
  background: #f7f9fc;
}
.login-card .field input:focus {
  outline: none;
  border-color: #d7e0ee;
  background: #fff;
  box-shadow: none;
}
.report-table th.is-member { background: #4b5563; }
.report-table th.is-agent { background: #1d58a8; }
.report-table th.is-master { background: #164278; }
.report-table th.is-senior { background: #d9a441; }
.report-table th.is-company { background: #1f9d55; }
.report-table th.is-unit { background: #7c5c12; }
.report-table td.is-text { text-align: left; }
.login-pass { position: relative; }
.login-pass input { padding-right: 44px; }
.login-eye {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}
.login-card .primary.wide { height: 50px; border-radius: 14px; }
.login-card .error:empty { display: none; }
.login-card .error:not(:empty) {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff1f1;
}
.login-card .fine {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f4f7fb;
}
@media (max-width: 720px) {
  .login-page { padding: 16px; }
  .login-card { grid-template-columns: 1fr; }
  .login-aside { min-height: 0; padding: 22px 20px 18px; }
  .login-aside .brand-mark { width: 52px; height: 52px; margin-bottom: 10px; font-size: 22px; }
  .login-body { padding: 22px 20px 20px; }
  .login-body h1 { font-size: 24px; }
}
@media (max-width: 860px) {
  .desk-metrics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .desk-cards, .desk-metrics, .down-roles { grid-template-columns: 1fr; }
  .desk-card { min-height: 96px; padding: 16px 18px; }
  .desk-card strong { font-size: 24px; }
  .desk-toolbar { align-items: stretch; }
  .desk-filter { width: 100%; }
  .desk-filter input { flex: 1; min-width: 0; }
}
