/* ===== Global Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f0f0f0;
  --panel-bg: #e8e8e8;
  --white: #ffffff;
  --border: #a0a0a0;
  --border-light: #c0c0c0;
  --blue-header: #4472c4;
  --blue-selected: #b4c6e7;
  --blue-accent: #5b9bd5;
  --red-alert: #ffc7ce;
  --red-text: #cc0000;
  --green-btn: #70ad47;
  --text-dark: #1a1a1a;
  --text-gray: #606060;
  --grid-num-bg: #000000;
  --grid-num-text: #ffffff;
  --grid-val-bg: #ffffff;
  --grid-val-text: #000000;
  --header-gray: #d0d0d0;
}

body {
  font-family: "Myanmar Text", "Segoe UI", "Arial", sans-serif;
  font-size: 13px;
  color: var(--text-dark);
  background: var(--bg);
  overflow: hidden;
  user-select: none;
}

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #312e81 100%);
}

.login-overlay.hidden {
  display: none;
}

body.login-pending .app {
  display: none !important;
}

body.login-pending {
  overflow: hidden;
}

.summary-overlay,
.summary-ledger-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(70, 85, 105, 0.45);
  z-index: 9000;
}

.summary-overlay.show,
.summary-ledger-overlay.show {
  display: flex;
}

.modal-shake {
  animation: modalShake 0.28s ease-in-out;
}

@keyframes modalShake {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(-10px); }
  36% { transform: translateX(10px); }
  54% { transform: translateX(-7px); }
  72% { transform: translateX(7px); }
  90% { transform: translateX(-3px); }
}

.summary-filter-box {
  width: 560px;
  min-height: 370px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
  border: 1px solid #b7c6d9;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(30, 54, 92, 0.32);
  padding: 20px 26px 24px;
  font-size: 20px;
}

.summary-filter-title {
  font-size: 26px;
  font-weight: 800;
  color: #17375e;
  margin-bottom: 20px;
}

.summary-type-row,
.summary-range-row {
  border: 1px solid #cbd8e8;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 15px 10px;
  margin-bottom: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

.summary-type-row label,
.summary-range-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
}

.summary-date-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px 14px;
  border: 1px solid #cbd8e8;
  background: #ffffff;
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 22px;
  align-items: center;
}

.summary-date-picker {
  display: grid;
  grid-template-columns: 1fr 38px;
}

.summary-date-grid input {
  height: 34px;
  border: 1px solid #8aa8c6;
  background: #fff;
  padding: 4px 10px;
  font-size: 18px;
  font-family: inherit;
}

.summary-date-picker button {
  border: 1px solid #8aa8c6;
  border-left: none;
  background: linear-gradient(#e9f4ff, #c7ddf5);
  color: #174b82;
  font-weight: 900;
  cursor: pointer;
}

.summary-calendar {
  position: fixed;
  display: none;
  width: 300px;
  background: #ffffff;
  border: 1px solid #8da9c7;
  box-shadow: 0 18px 40px rgba(0,0,0,0.24);
  z-index: 9100;
  padding: 10px;
}

.summary-calendar.show { display: block; }
.summary-cal-title { text-align: center; font-weight: 800; margin-bottom: 8px; color: #17375e; }
.summary-cal-nav { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 8px; }
.summary-cal-close {
  width: 28px;
  height: 28px;
  min-width: 28px;
  padding: 0;
  margin-left: auto;
  font-size: 16px;
  line-height: 1;
}
.summary-cal-nav button, .summary-cal-clear {
  border: 1px solid #8da9c7;
  background: linear-gradient(#fff, #d9ecff);
  padding: 4px 10px;
  cursor: pointer;
}

.owner-round-date-picker {
  align-items: center;
  gap: 2px;
  position: relative;
  width: 0;
  height: 0;
  overflow: visible;
}

.owner-round-date-input {
  width: 0;
  height: 0;
  opacity: 0;
  border: 0;
  padding: 0;
  pointer-events: none;
}

.owner-round-calendar-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #8aa8c6;
  border-radius: 5px;
  background: linear-gradient(#ffffff, #d9ecff);
  color: #174b82;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.summary-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.summary-cal-day-name { font-weight: 800; color: #555; padding: 4px 0; }
.summary-cal-day {
  border: 1px solid transparent;
  padding: 6px 0;
  cursor: pointer;
}
.summary-cal-day:hover, .summary-cal-day.selected { background: #9fd0ff; border-color: #2b73b7; }
.summary-cal-day.muted { color: #bbb; }
.summary-cal-footer { display: flex; justify-content: center; padding-top: 8px; }

.summary-filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 0 8px;
}

.summary-filter-actions button {
  height: 42px;
  border: 1px solid #a0a0a0;
  border-radius: 18px;
  background: linear-gradient(#fff, #e5e5e5);
  font-size: 20px;
  cursor: pointer;
}

.summary-ledger-box {
  width: min(1080px, 96vw);
  height: min(680px, 90vh);
  background: #f4f7fb;
  border: 1px solid #9aaac0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.summary-ledger-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #d7e2f3;
  border-bottom: 1px solid #9fb2cf;
}

.summary-role-btn {
  height: 38px;
  min-width: 112px;
  border: 1px solid #9fb2cf;
  background: #fff;
  color: #17375e;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.summary-role-btn.active {
  background: #1f73d1;
  color: #fff;
}

.summary-role-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.summary-session-select {
  height: 38px;
  min-width: 120px;
  border: 1px solid #9fb2cf;
  font-size: 14px;
  font-weight: 800;
  padding: 0 8px;
  font-family: inherit;
}

.summary-term-row {
  border: 1px solid #cbd8e8;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
}
.summary-term-row label {
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}
.summary-term-select {
  height: 38px;
  min-width: 160px;
  border: 1px solid #9fb2cf;
  font-size: 15px;
  font-weight: 700;
  padding: 0 10px;
  font-family: inherit;
  border-radius: 6px;
  flex: 1;
}

.summary-ledger-close {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border: none;
  background: #d32f2f;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.summary-ledger-title {
  padding: 7px 10px;
  font-weight: 800;
  color: #17375e;
  border-bottom: 1px solid #c8d4e6;
}

.summary-ledger-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #fff;
}

.summary-ledger-footer {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1.15fr repeat(6, 1fr);
  background: #d7e2f3;
  border-top: 1px solid #9fb2cf;
  font-size: 13px;
  font-weight: 900;
}

.summary-ledger-footer span {
  padding: 7px 8px;
  border-right: 1px solid #9fb2cf;
  text-align: right;
  white-space: nowrap;
}

.summary-ledger-footer span:first-child {
  text-align: left;
}

.summary-ledger-footer .negative {
  color: #c62828;
}

.summary-ledger-footer .positive {
  color: #17375e;
}

.summary-ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.summary-ledger-table th {
  position: sticky;
  top: 0;
  background: #4472c4;
  color: #fff;
  border: 1px solid #3461a8;
  padding: 6px 8px;
  white-space: nowrap;
}

.summary-ledger-table td {
  border: 1px solid #d0d7e2;
  padding: 7px 9px;
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
}

.summary-ledger-table td:first-child {
  text-align: left;
  font-weight: 700;
}

.summary-ledger-table .negative {
  color: #c62828;
  font-weight: 800;
}

.summary-ledger-table .positive {
  color: #17375e;
  font-weight: 800;
}

.summary-ledger-empty {
  text-align: center !important;
  color: #8a98aa;
  padding: 36px !important;
}

.result-number-box {
  width: min(980px, 96vw);
  height: min(660px, 88vh);
  background: #f4f7fb;
  border: 1px solid #9aaac0;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  position: relative;
}

.result-number-title {
  padding: 10px 14px;
  background: #e8eef7;
  border-bottom: 1px solid #b8c8de;
  font-size: 18px;
  font-weight: 900;
  color: #17375e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.result-number-form {
  display: grid;
  grid-template-columns: 160px 230px 140px 130px 150px 1fr 42px;
  gap: 10px;
  align-items: center;
  padding: 14px 66px 14px 14px;
  border-bottom: 1px solid #ccd8e8;
  background: #fff;
}

.result-number-form .summary-ledger-close {
  position: absolute;
  right: 12px;
  top: 72px;
}

.result-type-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.result-type-btn,
.result-add-btn {
  height: 38px;
  border: 1px solid #9fb2cf;
  background: #fff;
  font-family: inherit;
  font-weight: 900;
  cursor: pointer;
}

.result-type-btn.active,
.result-add-btn {
  background: #1f73d1;
  color: #fff;
}

.result-number-input {
  height: 38px;
  border: 1px solid #9fb2cf;
  padding: 0 10px;
  font-size: 16px;
  font-weight: 800;
  font-family: inherit;
}

.result-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #fff;
}

.result-table-wrap .summary-ledger-table th:last-child,
.result-table-wrap .summary-ledger-table td:last-child {
  width: 100px;
  text-align: right;
  padding-right: 22px;
}

.result-table-wrap .summary-ledger-table td:nth-child(2),
.result-table-wrap .summary-ledger-table th:nth-child(2) {
  min-width: 220px;
}

.result-delete-btn {
  border: none;
  background: #d32f2f;
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 800;
  cursor: pointer;
}

.summary-ledger-table tbody tr.summary-clickable-row {
  cursor: pointer;
}

.summary-ledger-table tbody tr.summary-clickable-row:hover td {
  background: #eef5ff;
}

.summary-detail-box {
  width: min(760px, 94vw);
  height: min(620px, 88vh);
  background: linear-gradient(180deg, #eef3f8 0%, #e6ebf2 100%);
  border: 1px solid #9fb0c4;
  border-radius: 10px;
  box-shadow: 0 18px 46px rgba(20, 38, 70, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.summary-detail-toolbar {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 72px 8px;
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid #c4d0df;
  position: relative;
}

.summary-detail-arrow {
  width: 38px;
  height: 34px;
  border: 1px solid #78a856;
  border-radius: 18px;
  background: linear-gradient(#d9f4c3, #63b33f);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 20px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 2px 6px rgba(51, 119, 37, 0.25);
}

.summary-detail-select {
  width: 300px;
  height: 34px;
  border: 1px solid #a7b7c9;
  border-radius: 4px;
  background: #fff;
  font-family: inherit;
  padding: 0 10px;
  font-weight: 700;
}

.summary-detail-icon-btn {
  width: 42px;
  height: 34px;
  min-width: 42px;
  border: 1px solid #a7b7c9;
  border-radius: 4px;
  background: linear-gradient(#ffffff, #dbe5f1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
}

.summary-detail-icon-btn img {
  width: 18px;
  height: 18px;
}

.summary-detail-toolbar .summary-ledger-close {
  position: absolute;
  right: 12px;
  top: 11px;
  margin-left: 0;
}

.summary-detail-card {
  width: 560px;
  min-height: 438px;
  margin: 16px auto 22px;
  padding: 18px 28px 16px;
  background: #fff;
  color: #222;
  border: 1px solid #d7dde6;
  box-shadow: 0 4px 14px rgba(31, 48, 75, 0.08);
  font-size: 13px;
  overflow: auto;
}

.summary-detail-title {
  margin-bottom: 16px;
  color: #263238;
}

.summary-detail-line {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  min-height: 31px;
  align-items: center;
}

.summary-detail-label {
  text-align: left;
  color: #4c5b6b;
  font-size: 15px;
}

.summary-detail-value {
  text-align: right;
  font-size: 18px;
  color: #263238;
}

.summary-detail-name-value {
  font-weight: 700;
}

.summary-detail-winners-title {
  margin: 22px 0 10px;
  text-align: left;
  font-weight: 800;
  color: #263238;
}

.summary-detail-winners {
  min-height: 180px;
  border: 1px solid #d0d7e2;
  background: #fafafa;
  padding: 18px 20px;
  text-align: center;
  font-size: 18px;
}

.summary-detail-winner-text {
  color: #263238;
  font-weight: 800;
  line-height: 1.6;
  white-space: pre-line;
}

.summary-detail-winner-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 4px;
  padding: 2px 0;
}

.summary-detail-winner-row span:first-child {
  text-align: left;
  font-weight: 700;
  min-width: 46px;
  flex: 0 0 46px;
}

.summary-detail-winner-row span:last-child {
  text-align: left;
}

.login-card {
  width: 400px;
  padding: 0 0 32px;
  border-radius: 20px;
  background: #ffffff;
  border: none;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.login-header-logo {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 60%, #3b82f6 100%);
  padding: 32px 0 24px;
  text-align: center;
}

.login-logo-img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.login-title {
  font-size: 20px;
  font-weight: 800;
  color: #1e40af;
  text-align: center;
  padding: 18px 32px 0;
}

.login-tabs {
  display: flex;
  margin: 14px 32px 0;
  border-radius: 10px;
  background: #f1f5f9;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.login-tab {
  flex: 1;
  padding: 10px 0;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}

.login-tab.active {
  background: #1e40af;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(30,64,175,0.3);
}

.login-tab:hover:not(.active) {
  background: #e2e8f0;
}

.login-subtitle {
  margin: 12px 32px 0;
  color: #6b7280;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
}

.login-label {
  display: block;
  margin: 12px 32px 5px;
  color: #26364a;
  font-weight: 700;
  font-size: 13px;
}

.login-input {
  width: calc(100% - 64px);
  height: 40px;
  padding: 6px 12px;
  margin: 0 32px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background: #fff;
}

.login-remember-row {
  margin: 12px 32px 0;
}

.login-remember-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
  font-weight: 500;
}

.login-remember-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #1e40af;
  cursor: pointer;
}

.login-error {
  min-height: 20px;
  margin: 8px 32px;
  font-weight: 700;
  text-align: center;
  font-size: 13px;
}

.login-error.error-red { color: #dc2626; }
.login-error.error-blue { color: #2563eb; }

.login-btn {
  width: calc(100% - 64px);
  height: 44px;
  margin: 4px 32px 0;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #2563eb 0%, #1e40af 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(30, 64, 175, 0.35);
}

.login-btn:active {
  transform: translateY(0);
}

.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Password Change Popup */
.pwd-change-overlay {
  position: fixed;
  inset: 0;
  z-index: 99000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.pwd-change-card {
  width: 420px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  overflow: hidden;
}

.pwd-change-header {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.pwd-change-close {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.pwd-change-close:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.pwd-change-header-icon {
  width: 36px;
  height: 36px;
  filter: brightness(0) invert(1);
}

.pwd-change-header-title {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.pwd-change-body {
  padding: 24px;
}

.pwd-change-tabs {
  display: flex;
  border-radius: 10px;
  background: #f1f5f9;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.pwd-change-tab {
  flex: 1;
  padding: 9px 0;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pwd-change-tab.active {
  background: #111827;
  color: #fff;
  border-radius: 8px;
}

.pwd-change-field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
}

.pwd-change-field-input {
  width: 100%;
  height: 40px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  background: #f9fafb;
  outline: none;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}

.pwd-change-field-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
  background: #fff;
}

.pwd-change-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.pwd-change-save-btn {
  flex: 1;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.pwd-change-save-btn:hover { background: #1f2937; }

.pwd-change-cancel-btn {
  flex: 1;
  height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.pwd-change-cancel-btn:hover { background: #f3f4f6; }

.pwd-change-logout-row {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.pwd-change-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 28px;
  border: 1px solid #dc2626;
  border-radius: 10px;
  background: #fff;
  color: #dc2626;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.pwd-change-logout-btn:hover {
  background: #dc2626;
  color: #fff;
}

.pwd-change-msg {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  min-height: 20px;
  margin-top: 10px;
}

.owner-settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 99010;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 52px 0 0 286px;
  background: rgba(15, 23, 42, 0.18);
}

.owner-settings-card {
  width: 260px;
  background: #ffffff;
  border: 1px solid #d5deea;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.24);
  overflow: hidden;
}

.owner-settings-header {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 8px 0 10px;
  background: linear-gradient(135deg, #eef4ff 0%, #ffffff 100%);
  border-bottom: 1px solid #e5eaf2;
  font-size: 13px;
  font-weight: 800;
  color: #1f2937;
}

.owner-settings-header img {
  width: 18px;
  height: 18px;
}

.owner-settings-close {
  margin-left: auto;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 6px;
  background: #ef4444;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.owner-settings-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
}

.owner-settings-action {
  min-height: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.owner-settings-action.with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.owner-settings-action.with-icon img {
  width: 16px;
  height: 16px;
}

.owner-settings-switch {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #f8fafc;
  cursor: pointer;
}

.owner-settings-switch-text {
  flex: 1;
  font-size: 12px;
  font-weight: 800;
  color: #111827;
}

.owner-settings-switch input {
  display: none;
}

.owner-settings-slider {
  width: 42px;
  height: 22px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  transition: background 0.15s ease;
}

.owner-settings-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  transition: transform 0.15s ease;
}

.owner-settings-switch input:checked + .owner-settings-slider {
  background: #16a34a;
}

.owner-settings-switch input:checked + .owner-settings-slider::after {
  transform: translateX(20px);
}

.owner-settings-action:hover {
  background: #eaf2ff;
  border-color: #93b4e8;
}

.owner-settings-action.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fee2e2;
  border-color: #fecaca;
  color: #b91c1c;
}

.owner-settings-action.danger img {
  width: 15px;
  height: 15px;
}

.print-settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 99020;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.38);
}

.print-settings-card {
  width: 360px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #dbe4f0;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.34);
  overflow: hidden;
}

.print-settings-header {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 16px;
  background: linear-gradient(135deg, #0f5eb8 0%, #1d73d8 100%);
  color: #fff;
  font-weight: 900;
}

.print-settings-header img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.print-settings-close {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.print-settings-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.print-settings-switch {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f8fafc;
  cursor: pointer;
}

.print-settings-switch-text {
  flex: 1;
  font-size: 13px;
  font-weight: 900;
  color: #111827;
}

.print-settings-switch input {
  display: none;
}

.print-settings-slider {
  width: 42px;
  height: 22px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  transition: background 0.16s ease;
}

.print-settings-slider::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
  transition: transform 0.16s ease;
}

.print-settings-switch input:checked + .print-settings-slider {
  background: #16a34a;
}

.print-settings-switch input:checked + .print-settings-slider::after {
  transform: translateX(20px);
}

.print-settings-label {
  font-size: 12px;
  font-weight: 900;
  color: #334155;
}

.print-settings-select {
  height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 10px;
  font-family: inherit;
  font-weight: 700;
  color: #111827;
  background: #f8fafc;
}

.print-settings-save {
  height: 40px;
  margin-top: 4px;
  border: none;
  border-radius: 20px;
  background: #111827;
  color: #fff;
  font-family: inherit;
  font-weight: 900;
  cursor: pointer;
}

.print-settings-status {
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.print-settings-connect {
  height: 34px;
  border: none;
  border-radius: 17px;
  background: #2563eb;
  color: #fff;
  font-family: inherit;
  font-weight: 900;
  cursor: pointer;
}

.download-settings-page {
  position: fixed;
  inset: 0;
  z-index: 99030;
  background: #f5f7fb;
  color: #111827;
  font-family: inherit;
}

.download-settings-header {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  background: linear-gradient(135deg, #0f5eb8 0%, #1d73d8 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.download-settings-back {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  color: #fff;
  font-size: 28px;
  line-height: 28px;
  cursor: pointer;
}

.download-settings-content {
  width: min(760px, calc(100% - 36px));
  margin: 24px auto;
  display: grid;
  gap: 18px;
}

.download-settings-section {
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.download-settings-section h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.download-settings-section label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 900;
  color: #334155;
}

.download-settings-section input {
  width: 100%;
  height: 42px;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0 12px;
  font-family: inherit;
  font-weight: 700;
  background: #f8fafc;
}

.download-settings-section button {
  height: 40px;
  min-width: 110px;
  margin-top: 12px;
  border: none;
  border-radius: 20px;
  background: #111827;
  color: #fff;
  font-family: inherit;
  font-weight: 900;
  cursor: pointer;
}

.compact-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 99100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.42);
}

.compact-popup-card {
  width: min(430px, calc(100vw - 28px));
  max-height: calc(100vh - 36px);
  background: #fff;
  border-radius: 14px;
  border: 1px solid #111827;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.compact-popup-header {
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 10px 0 14px;
  background: #111111;
  color: #fff;
  font-weight: 900;
}

.compact-popup-close {
  margin-left: auto;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #111111;
  color: #111111;
  cursor: pointer;
  font-weight: 900;
}

.compact-popup-body {
  max-height: calc(100vh - 82px);
  overflow: auto;
  padding: 12px;
}

.download-settings-section.compact {
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: none;
  border-radius: 14px;
  border-color: #111827;
}

.download-settings-section.compact h2 {
  font-size: 15px;
  margin-bottom: 8px;
}

.download-settings-section.compact input {
  height: 36px;
}

.download-settings-section.compact button {
  height: 32px;
  min-width: 82px;
  margin-top: 8px;
  margin-right: 6px;
  font-size: 12px;
}

.download-settings-section.compact button.danger,
.pc-noti-owner-item button {
  background: #111111;
}

.download-preview {
  margin-top: 7px;
  padding: 7px 9px;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  background: #f8fafc;
  color: #111111;
  font-size: 11px;
  font-weight: 800;
  word-break: break-all;
}

.pc-noti-send-card label {
  display: block;
  margin: 8px 0 5px;
  font-size: 12px;
  font-weight: 900;
  color: #334155;
}

.pc-noti-send-card input,
.pc-noti-send-card textarea,
.pc-noti-send-card select {
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #111827;
  font-family: inherit;
  font-weight: 700;
}

.pc-noti-send-card input,
.pc-noti-send-card select {
  height: 34px;
  padding: 0 9px;
}

.pc-noti-send-card textarea {
  width: 100%;
  min-height: 72px;
  padding: 9px;
  resize: vertical;
}

.noti-time-row {
  display: grid;
  grid-template-columns: 1fr 54px 10px 54px 68px;
  gap: 6px;
  align-items: center;
  margin-top: 9px;
}

.compact-primary {
  height: 34px;
  min-width: 94px;
  margin-top: 10px;
  border: none;
  border-radius: 18px;
  background: #111827;
  color: #fff;
  font-family: inherit;
  font-weight: 900;
  cursor: pointer;
}

.pc-noti-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  max-height: 330px;
  overflow-y: auto;
  padding-right: 4px;
}

.pc-noti-owner-item,
.pc-noti-view-item,
.pc-noti-detail {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  padding: 9px;
  color: #111827;
}

.pc-noti-owner-item div:first-child {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pc-noti-owner-item div:first-child span {
  margin-left: auto;
  font-size: 11px;
  font-weight: 900;
}

.pc-noti-owner-item .ok { color: #111111; }
.pc-noti-owner-item .pending { color: #64748b; }

.pc-noti-owner-item hr,
.pc-noti-detail hr {
  border: 0;
  border-top: 1px solid #dbe4f0;
  margin: 7px 0;
}

.pc-noti-owner-item p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.pc-noti-owner-item button {
  height: 26px;
  min-width: 68px;
  border: none;
  border-radius: 13px;
  color: #fff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.pc-noti-view-list {
  display: grid;
  gap: 8px;
  max-height: 330px;
  overflow-y: auto;
  padding-right: 4px;
}

.pc-noti-view-item {
  cursor: pointer;
}

.pc-noti-view-title {
  font-size: 14px;
  font-weight: 900;
  color: #111827;
}

.pc-noti-view-body {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
  max-height: 38px;
  overflow: hidden;
}

.pc-noti-view-time {
  margin-top: 5px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
}

.pc-noti-detail h3 {
  margin: 8px 0;
  font-size: 17px;
}

.pc-noti-detail p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.55;
  font-size: 13px;
}

.empty-note {
  text-align: center;
  color: #64748b;
  font-weight: 800;
  padding: 16px 0;
}

/* Credential change alert overlay */
.cred-alert-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
}

.cred-alert-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px 32px 36px;
  width: 380px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  position: relative;
}

.cred-alert-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: -8px -8px 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.cred-alert-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.cred-alert-title {
  font-size: 18px;
  font-weight: 800;
  color: #dc2626;
  margin-bottom: 10px;
}

.cred-alert-msg {
  font-size: 14px;
  color: #475569;
  margin-bottom: 20px;
  line-height: 1.5;
}

.cred-alert-btn {
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: #dc2626;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.app {
  display: flex;
  flex-direction: row;
  height: 100vh;
  padding: 2px;
  gap: 2px;
}

/* ===== Left Column ===== */
.left-panel {
  width: 32%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--panel-bg);
  border: 1px solid var(--border-light);
  padding: 2px;
  gap: 2px;
}

/* ===== Right Column Layout ===== */
.right-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 2px;
}

.right-top-section {
  display: flex;
  flex: 55;
  gap: 2px;
  min-height: 0;
}

.grid-section {
  flex: 45;
  min-height: 0;
  background: #000;
  border: 1px solid #333;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.grid-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 6px;
  background: #1a1a2e;
  border-bottom: 1px solid #444;
  flex-shrink: 0;
}
.grid-round-select {
  background: #222;
  color: #fff;
  border: 1px solid #555;
  border-radius: 3px;
  padding: 2px 4px;
  font-size: 11px;
  height: 22px;
}
.grid-brake-label {
  color: #f1c40f;
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
}
.grid-bk-mode-select {
  background: #222;
  color: #fff;
  border: 1px solid #555;
  border-radius: 3px;
  padding: 2px 4px;
  font-size: 11px;
  height: 22px;
}
.grid-bk-mode-desc {
  color: #f1c40f;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.number-grid {
  flex: 1;
  overflow: auto;
  display: flex;
}

.number-grid.grid-3d .grid-cell {
  flex: none;
  height: 43px;
}

.number-grid.grid-3d .grid-num {
  width: 42px;
  min-width: 42px;
  font-size: 14px;
}

.number-grid.grid-3d .grid-vals {
  font-size: 13px;
  padding: 1px 4px 2px;
  line-height: 1;
  grid-template-rows: repeat(3, auto);
  row-gap: 0;
  overflow: visible;
}

.number-grid.grid-3d .grid-val-agent,
.number-grid.grid-3d .grid-val-spacer,
.number-grid.grid-3d .grid-val-overflow {
  display: block;
  min-height: 9px;
  overflow: visible;
}

/* ===== Panels ===== */
.panel {
  background: var(--panel-bg);
  border: 1px solid var(--border-light);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  padding: 2px;
  gap: 2px;
}

.center-panel { flex: 55; }
.right-panel { flex: 45; }

/* ===== Buttons & Icons ===== */
button {
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #e1e1e1;
  color: var(--text-dark);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

button:hover {
  background: #d0d0d0;
  border-color: #808080;
}

button:active {
  background: #c0c0c0;
}

.icon-btn {
  width: 26px;
  height: 26px;
  padding: 2px;
  font-size: 14px;
}

.icon-btn.small {
  width: 22px;
  height: 22px;
  font-size: 12px;
}

.icon-btn.large {
  width: 36px;
  height: 36px;
  padding: 4px;
}

.icon-btn.large img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===== Left Panel Styles ===== */
.top-tabs {
  display: flex;
  gap: 2px;
}

.round-info-row {
  display: flex;
  align-items: center;
  gap: 4px;
  background: white;
  border: 1px solid var(--border-light);
  padding: 2px 4px;
  height: 38px;
}

.round-label {
  font-weight: bold;
  color: red;
  margin-right: 4px;
}

.round-mode-btn {
  min-width: 76px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.round-mode-btn.mode-half {
  color: #cc0000;
  background: #ffe5e5;
}

.round-mode-btn.mode-full {
  color: #1a7a1a;
  background: #e7f7e7;
}

.round-text {
  font-weight: bold;
}

.round-time-select {
  min-width: 170px;
  height: 24px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 600;
  padding: 0 6px;
}

.spacer { flex: 1; }

.sale-status-indicator {
  min-width: 132px;
  padding: 4px 10px;
  border-radius: 14px;
  border: 1px solid currentColor;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  background: #fff;
}

.sale-status-indicator.status-open {
  color: #15803d;
  background: #e8f8ee;
}

.sale-status-indicator.status-closed {
  color: #c62828;
  background: #fff0f0;
}

.info-btn {
  width: 22px;
  height: 22px;
  background: var(--blue-accent);
  color: white;
  border: 1px solid #4a8ac4;
  border-radius: 50%;
  font-weight: bold;
}

.os-row {
  display: flex;
  align-items: center;
  gap: 2px;
}

.add-btn {
  width: 26px;
  height: 26px;
  background: var(--blue-header);
  color: white;
  font-weight: bold;
  font-size: 16px;
}

.user-icon-btn {
  width: 26px;
  height: 26px;
}

.input-wrapper {
  display: flex;
  flex: 1;
  border: 1px solid var(--border);
  background: white;
  height: 26px;
}

.agent-type-select {
  width: 115px;
  min-width: 115px;
  margin: 1px 3px 1px 1px;
  height: calc(100% - 2px);
  border: 1px solid #34a853;
  border-radius: 3px;
  background: #f4fff6;
  color: #1f5f2e;
  font-weight: 600;
}

.agent-type-select:focus {
  outline: none;
  border-color: #2e9449;
}

.os-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 2px 4px;
  font-size: 13px;
}

.os-select {
  flex: 1;
  border: none;
  outline: none;
  padding: 2px 4px;
  font-size: 13px;
  background: #fff;
}

.agent-picker {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  height: 100%;
}

.agent-picker .os-input {
  height: 100%;
}

.agent-picker-compact {
  flex: 1;
  min-width: 0;
}

.agent-picker.quick-pick-active .os-input {
  background: #f3f4f6;
  color: #6b7280;
  cursor: default;
}

.agent-picker.quick-pick-active .dropdown-btn {
  opacity: 0.45;
  pointer-events: none;
}

.agent-name-input-compact {
  font-size: 11px !important;
  padding: 1px 3px !important;
}

.bettor-quick-pick-btn {
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin: 1px 2px 1px 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: none;
  flex-shrink: 0;
}

.bettor-quick-pick-btn img {
  width: 100%;
  height: 100%;
  display: block;
}

.bettor-quick-pick-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.bettor-quick-pick-modal {
  width: min(520px, 92vw);
  min-height: 420px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #888;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  font-family: inherit;
}

.bettor-quick-pick-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: #e0e0e0;
  border-bottom: 1px solid #bbb;
  font-size: 14px;
  font-weight: 700;
}

.bettor-quick-pick-find-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #ccc;
}

.bettor-quick-pick-find-input {
  flex: 1;
  height: 36px;
  border: 1px solid #999;
  padding: 4px 10px;
  font-size: 15px;
}

.bettor-quick-pick-find-btn {
  min-width: 72px;
  height: 36px;
  border: 1px solid #666;
  background: #f3f3f3;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.bettor-quick-pick-table-wrap {
  flex: 1;
  min-height: 320px;
  max-height: calc(88vh - 72px);
  overflow-y: auto;
  margin: 10px 12px 12px;
  border: 1px solid #666;
}

.bettor-quick-pick-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.bettor-quick-pick-table th,
.bettor-quick-pick-table td {
  border: 1px solid #bbb;
  padding: 6px 10px;
  font-size: 15px;
  line-height: 22px;
  height: 34px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bettor-quick-pick-table th {
  background: #ececec;
  font-weight: 700;
}

.bettor-quick-pick-table tbody tr {
  cursor: pointer;
}

.bettor-quick-pick-table tbody tr:hover {
  background: #dbeafe;
}

.agent-dropdown-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  background: #fff;
  border: 1px solid var(--border);
  z-index: 60;
  display: none;
}

.agent-dropdown-panel.show {
  display: block;
}

.agent-dropdown-list {
  max-height: 140px;
  overflow-y: scroll;
}

.agent-dropdown-item {
  padding: 4px 6px;
  font-size: 13px;
  cursor: pointer;
}

.agent-dropdown-item:hover,
.agent-dropdown-item.active {
  background: var(--blue-selected);
}

.dropdown-btn {
  width: 20px;
  border: none;
  background: transparent;
  font-size: 10px;
}

.input-bar-row {
  display: flex;
  gap: 2px;
  padding: 0;
}

.full-width-input {
  width: 100%;
  height: 26px;
  border: 1px solid var(--border);
  padding: 2px 4px;
  outline: none;
  background: white;
}

.split-input {
  height: 26px;
  border: 1px solid var(--border);
  padding: 2px 4px;
  outline: none;
  background: white;
}

.split-2 {
  flex: 2;
}

.split-1 {
  flex: 1;
}

.action-bar {
  display: flex;
  align-items: center;
  gap: 2px;
}

.owner-bypass-switch {
  position: relative;
  display: none;
  width: 34px;
  height: 18px;
  margin-right: 4px;
  flex-shrink: 0;
  cursor: pointer;
}

.owner-bypass-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.owner-bypass-slider {
  position: absolute;
  inset: 0;
  background: #888;
  border-radius: 18px;
  transition: background 0.2s;
}

.owner-bypass-slider::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  left: 2px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.owner-bypass-switch input:checked + .owner-bypass-slider {
  background: #4caf50;
}

.owner-bypass-switch input:checked + .owner-bypass-slider::before {
  transform: translateX(16px);
}

.os-label {
  font-weight: bold;
}

.round-type-label {
  font-weight: 800;
  font-size: 20px;
  margin-right: 8px;
}

.round-type-label.type-2d {
  color: #228b22;
}

.round-type-label.type-3d {
  color: #c09000;
}

.round-type-label.bettor-slip-label {
  font-size: 13px;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.append-slip-target-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 3px 8px;
  border: 1px solid #10b981;
  border-radius: 12px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.list-container {
  flex: 1;
  background: white;
  border: 1px solid var(--border);
  overflow-y: auto;
}

.list-table {
  width: 100%;
  border-collapse: collapse;
}

.list-table th {
  padding: 3px 4px;
  font-size: 13px;
  background: #e8e8e8;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

.list-table th.align-right {
  text-align: right;
}

.list-table td {
  padding: 2px 4px;
  font-size: 13px;
}

.list-table tr.selected {
  background-color: var(--blue-selected);
}

.align-right { text-align: right; }

.left-bottom-total {
  background: #d0d0d0;
  border: 1px solid var(--border);
  padding: 2px 4px;
  text-align: right;
  font-weight: bold;
}

.left-bottom-toolbar {
  display: flex;
  gap: 2px;
  justify-content: space-between;
}

.large-icon-btn {
  flex: 1;
  height: 32px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}
.toolbar-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.pc-mini-toolbar-icon {
  width: 18px !important;
  height: 18px !important;
}

#openAgentNotiBtn {
  position: relative;
}

.pc-noti-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  line-height: 14px;
}

/* ===== Center Panel Styles ===== */
.split-view-container {
  display: flex;
  gap: 2px;
  flex: 1;
  min-height: 0;
}

.preview-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--border);
}

.preview-header {
  display: flex;
  border-bottom: 1px solid var(--border);
  height: 24px;
  align-items: center;
}

.blue-header {
  background: var(--blue-selected);
}

.gray-header {
  background: var(--header-gray);
}

.overflow-header-red {
  background: #e74c3c;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}

.overflow-title-text {
  flex: 1;
  border-right: none;
}

.overflow-copy-btn {
  margin: 0 4px 0 0;
  height: 20px;
  padding: 0 10px;
  border: 1px solid #1e8449;
  border-radius: 3px;
  background: #27ae60;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.overflow-copy-btn:hover {
  background: #1e8449;
}

.overflow-round-row {
  margin-bottom: 0;
}

.overflow-footer-red {
  display: flex;
  align-items: center;
  gap: 4px;
  border-top: 2px solid #e74c3c;
}
.overflow-footer-red .footer-label {
  font-weight: 700;
  font-size: 12px;
  color: #e74c3c;
  padding-left: 4px;
}
.overflow-total-red {
  color: #e74c3c !important;
  font-weight: 700 !important;
}
.overflow-row {
  color: #e74c3c;
}

.header-cell {
  flex: 1;
  text-align: center;
  border-right: 1px solid var(--border-light);
  font-size: 12px;
}

.header-cell:last-child {
  border-right: none;
}

.header-cell.wide {
  flex: 1.5;
}

.preview-content {
  flex: 1;
  background: white;
  overflow-y: auto;
}

.preview-row {
  display: flex;
  border-bottom: 1px solid #eee;
}

.cell {
  flex: 1;
  text-align: center;
  padding: 2px;
  font-size: 13px;
}

.cell.wide {
  flex: 1.5;
}

.preview-footer {
  display: flex;
  gap: 1px;
  background: var(--header-gray);
  padding: 2px;
  border-top: 1px solid var(--border);
}

.footer-input {
  height: 24px;
  border: 1px solid var(--border);
  padding: 0 4px;
  font-size: 13px;
  text-align: center;
  background: #e0e0e0;
}

.footer-input.small {
  width: 40px;
}

.footer-input.medium {
  width: 60px;
}

.footer-input.wide {
  flex: 1;
  text-align: right;
}

.center-control-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: white;
  border: 1px solid var(--border);
  padding: 2px;
}

.gradient-bar {
  width: 40px;
  height: 16px;
  background: linear-gradient(to right, blue, cyan);
  border: 1px solid var(--border);
}

.ctrl-text { font-size: 12px; }
.ctrl-text.total { color: red; font-weight: bold; }
.ctrl-sep { color: #ccc; }

/* ===== Right Panel Styles ===== */
.right-split-area {
  flex: 1;
  display: flex;
  gap: 3px;
  overflow: hidden;
}

.right-split-left {
  flex: 3;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.left-toolbar-row {
  display: flex;
  align-items: center;
  gap: 3px;
  padding-bottom: 2px;
}

.summary-round-row {
  background: #4472c4;
  color: #fff;
  text-align: center;
  padding: 3px 4px;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-round-label {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brake-input-sm {
  width: 70px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
  padding: 0 4px;
  background: #fff;
  text-align: left;
}

.left-sort-btn {
  background: #6c757d;
  color: #fff;
  border-color: #5a6268;
}
.left-sort-btn:hover { background: #5a6268; }
.left-sort-btn.active { background: #4472c4; border-color: #3461a8; }

.left-tb-btn {
  height: 24px;
  padding: 0 8px;
  border: 1px solid #aaa;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.left-copy-btn { background: #27ae60; color: #fff; border-color: #1e8449; }
.left-copy-btn:hover { background: #1e8449; }
.left-view-btn { background: #4472c4; color: #fff; border-color: #3461a8; }
.left-view-btn:hover { background: #3461a8; }
.left-buy-btn { background: #d9342b; color: #fff; border-color: #b7271f; }
.left-buy-btn:hover { background: #b7271f; }

.right-split-right {
  flex: 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}

.closed-header-row {
  background: #4472c4;
  color: #fff;
  text-align: center;
  padding: 3px 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.closed-numbers-label {
  color: #fff;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.closed-add-row {
  display: flex;
  gap: 3px;
  padding: 3px 4px;
  align-items: center;
}
.closed-add-input {
  flex: 1;
  min-width: 0;
  height: 22px;
  padding: 0 4px;
  border: 1px solid #aaa;
  border-radius: 3px;
  font-size: 11px;
}
.closed-add-ok-btn {
  flex-shrink: 0;
  height: 22px;
  padding: 0 8px;
  background: #27ae60;
  color: #fff;
  border: 1px solid #1e8449;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.closed-add-ok-btn:hover { background: #1e8449; }

.closed-btn-row {
  display: flex;
  gap: 2px;
  padding: 3px 2px;
}

.closed-action-btn {
  flex: 1;
  height: 22px;
  padding: 0 4px;
  border: 1px solid #aaa;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.closed-add-btn { background: #4472c4; color: #fff; border-color: #3461a8; }
.closed-add-btn:hover { background: #3461a8; }
.closed-del-btn { background: #e74c3c; color: #fff; border-color: #c0392b; }
.closed-del-btn:hover { background: #c0392b; }
.closed-copy-btn { background: #27ae60; color: #fff; border-color: #1e8449; }
.closed-copy-btn:hover { background: #1e8449; }

.closed-list-container {
  flex: 1;
  overflow-y: auto;
}

.closed-list-table {
  width: 100%;
  border-collapse: collapse;
}

.closed-list-table th {
  background: #d0d0d0;
  border: 1px solid var(--border-light);
  font-size: 11px;
  padding: 2px 4px;
  position: sticky;
  top: 0;
  z-index: 1;
}

.closed-list-table td {
  border: 1px solid var(--border-light);
  padding: 2px 4px;
  text-align: center;
  font-size: 11px;
}

.closed-list-table tr { cursor: pointer; }
.closed-list-table tr:hover { background: #e8f0fe; }
.closed-list-table tr.selected { background: #b4c6e7; }

.summary-table-container {
  flex: 1;
  background: white;
  border: 1px solid var(--border);
  overflow-y: auto;
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
}

.summary-table th {
  background: #d0d0d0;
  border: 1px solid var(--border-light);
  font-size: 12px;
  padding: 2px;
}

.summary-table td {
  border: 1px solid var(--border-light);
  padding: 2px 4px;
  text-align: right;
}

.summary-table tr.row-dark {
  background: #333;
  color: white;
}

.summary-table tr.row-blue {
  background: var(--blue-selected);
}

.summary-table tr.row-overflow-red {
  background: #e74c3c;
  color: #fff;
}

.summary-table tr.row-overflow-yellow {
  background: #f39c12;
  color: #fff;
}

.summary-table tr.row-overflow-green {
  background: #27ae60;
  color: #fff;
}

.right-bottom-totals {
  display: flex;
  gap: 2px;
}

.total-box {
  background: #d0d0d0;
  border: 1px solid var(--border);
  padding: 2px;
  text-align: center;
  min-width: 30px;
}

.total-box.wide { flex: 1; }

/* ===== Grid Section ===== */

.grid-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #333;
}

.grid-cell {
  display: flex;
  flex: 1;
  border-bottom: 1px solid #333;
  min-height: 0;
  overflow: visible;
}

.grid-num {
  width: 32px;
  min-width: 32px;
  background: var(--grid-num-bg);
  color: var(--grid-num-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.grid-vals {
  flex: 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  font-size: 10px;
  line-height: 1;
  gap: 0;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.grid-val-agent,
.grid-val-spacer,
.grid-val-overflow {
  text-align: center;
  white-space: nowrap;
}
.grid-val-agent {
  color: #111;
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
}
.grid-val-agent-full {
  color: #111;
  font-weight: 900;
}
.grid-val-overflow {
  display: none;
  color: #ff2222;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
}

.number-grid.grid-3d .grid-val-agent,
.number-grid.grid-3d .grid-val-overflow {
  font-size: 13px;
}

.grid-val {
  flex: 1;
  background: var(--grid-val-bg);
  color: var(--grid-val-text);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 4px;
  font-size: 12px;
}

.grid-column-total {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 24px;
  min-height: 24px;
  padding: 0 6px;
  border-bottom: 1px solid #333;
  background: #fff;
  color: #128a2e;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  box-sizing: border-box;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ===== Users Modal ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-layer-2 {
  z-index: 12500;
}

.modal-overlay.show {
  display: flex;
}

.modal-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  min-width: 700px;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.users-modal {
  width: 750px;
}

.modal-title-bar {
  background: #e0e0e0;
  padding: 8px 12px;
  font-weight: bold;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-bar span {
  flex: 1;
}

.title-account {
  color: #228b22;
  font-weight: 600;
}

.modal-close-btn {
  width: 28px;
  height: 28px;
  font-size: 16px;
  background: #e0e0e0;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
  color: #555;
  line-height: 1;
}

.modal-close-btn:hover {
  background: #d0d0d0;
  color: #111;
}

.dialog-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.summary-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 20px;
}

.summary-filter-header .summary-filter-title {
  margin-bottom: 0;
}

.keyword-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
}

.modal-content {
  flex: 1;
  overflow: auto;
  padding: 8px;
  min-height: 420px;
}

.users-modal .modal-content {
  min-height: 420px;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.users-table th {
  background: #d0d0d0;
  border: 1px solid var(--border-light);
  padding: 6px 8px;
  text-align: left;
}

.users-table td {
  border: 1px solid var(--border-light);
  padding: 6px 8px;
}

.users-table tbody tr {
  cursor: pointer;
}

.users-table tbody tr:hover {
  background: #e8f0f8;
}

.users-table tr.selected {
  background: var(--blue-selected);
}

.modal-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #e8e8e8;
  border-top: 1px solid var(--border);
}

.total-label {
  font-weight: bold;
  margin-right: 8px;
}

.modal-btn {
  padding: 6px 12px;
  font-size: 12px;
}

.app-popup-modal.popup-3d {
  border: 1px solid #8f8f8f;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  background: linear-gradient(180deg, #f8f8f8 0%, #ececec 100%);
}

.app-popup-modal.popup-3d .modal-title-bar {
  background: linear-gradient(180deg, #5f8fd8 0%, #3e6fb8 100%);
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

.app-popup-modal.popup-3d .modal-footer {
  background: linear-gradient(180deg, #f2f2f2 0%, #e3e3e3 100%);
}

.agent-label {
  margin-left: auto;
  margin-right: 4px;
}

.agent-on {
  color: #228b22;
  font-weight: 600;
}

.agent-off {
  color: var(--red-text);
  font-weight: 600;
}

.twat-display {
  color: #2060c0;
  font-weight: 500;
}

.brake-display {
  color: #228b22;
  font-weight: 500;
}

.close-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.modal-select {
  width: 110px;
  height: 26px;
}

.modal-input {
  width: 120px;
  height: 26px;
  padding: 0 6px;
}

/* ===== Account Info Form Modal ===== */
.account-info-modal {
  width: 420px;
}

/* ===== Prize Update Modal ===== */
.prize-update-modal {
  width: 400px;
}

.prize-update-form {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prize-update-form .form-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prize-update-form .form-row label {
  min-width: 70px;
}

.prize-update-form .form-row input {
  width: 80px;
  flex: 0 0 auto;
}

.account-form {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-row label {
  min-width: 90px;
  font-size: 12px;
}

.form-input {
  flex: 1;
  height: 24px;
  border: 1px solid var(--border);
  padding: 0 6px;
  font-size: 12px;
  max-width: 200px;
}

.form-select, .on-off-select {
  width: 80px;
  height: 24px;
  font-size: 12px;
  border: 1px solid var(--border);
  background: white;
}

.form-number {
  width: 56px;
  height: 22px;
  font-size: 12px;
}

.form-number.compact {
  width: 52px;
  height: 22px;
  padding: 0 4px;
}

.form-number.brake-input {
  width: 120px;
  min-width: 120px;
  height: 22px;
  padding: 0 8px;
  font-size: 13px;
}

.radio-row {
  gap: 16px;
}

.radio-label, .checkbox-label {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: auto;
}

.checkbox-row {
  gap: 16px;
}

.number-grid-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.number-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.number-cell label {
  min-width: 75px;
  font-size: 12px;
}

.form-number.compact:disabled,
.form-number.compact.disabled,
.form-number:disabled,
.form-number.brake-input:disabled {
  background: #e8e8e8;
  color: #999;
  cursor: not-allowed;
}

.number-cell.disabled label {
  color: #999;
}

.form-error-msg {
  color: var(--red-text);
  font-size: 12px;
  padding: 4px 0;
  min-height: 20px;
}

.btn-row {
  justify-content: center;
  margin-top: 8px;
}

.save-btn {
  padding: 8px 32px;
  background: var(--blue-accent);
  color: white;
  border: 1px solid #4a8ac4;
  font-size: 14px;
}

/* ===== Term Detail Modals ===== */
.term-list-modal {
  width: 1040px;
  min-width: 1040px;
}

.term-list-modal .modal-content {
  height: 520px;
  min-height: 520px;
  overflow: auto;
}

.term-detail-modal {
  width: 760px;
  min-width: 760px;
}

.term-detail-form {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.term-list-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.term-list-tab-btn {
  min-width: 72px;
  height: 30px;
  font-size: 13px;
  font-weight: 700;
  background: #f3f3f3;
}

.term-list-tab-btn.active {
  background: #5b9bd5;
  border-color: #4472c4;
  color: #fff;
}

.term-list-filter-select {
  min-width: 0;
  height: 30px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #f3f3f3;
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 700;
  max-width: 280px;
}

.term-setting-row {
  align-items: center;
}

.term-setting-fields {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.term-setting-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.term-setting-inline span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}

.term-time-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.term-label-spacer {
  min-width: 90px;
  flex: 0 0 90px;
}

.term-date-spacer {
  width: 190px;
  flex: 0 0 190px;
}

.time-header-label {
  width: 130px;
  flex: 0 0 130px;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
}

.term-date-row {
  gap: 10px;
  align-items: center;
}

.term-date-row label {
  min-width: 90px;
  flex: 0 0 90px;
}

.date-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 190px;
  width: 190px;
}

.term-date-text {
  width: 150px !important;
  flex: 0 0 150px !important;
  font-size: 13px;
  text-align: center;
  color: var(--text-dark) !important;
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: 4px 0 0 4px !important;
  border-right: none !important;
  cursor: default;
}

.cal-btn {
  flex: 0 0 40px;
  width: 40px;
  height: 28px;
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 4px 4px 0;
  background: #e0e0e0;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.cal-btn:hover {
  background: #c8c8c8;
}

.hidden-date-picker {
  position: absolute;
  left: 0;
  top: 100%;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.term-time-input {
  width: 130px !important;
  max-width: 130px !important;
  flex: 0 0 130px !important;
  text-align: center;
  font-size: 13px;
  color: var(--text-dark);
  padding: 0 8px;
}

.term-time-input::-webkit-calendar-picker-indicator {
  opacity: 0.7;
  margin-left: 6px;
}

.term-name-row {
  margin-top: 8px;
}

.term-name-row input {
  background: #f0f0f0;
}

.term-table th,
.term-table td {
  white-space: nowrap;
}

.term-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.term-table tbody tr {
  height: 32px;
}

.term-3d-only {
  display: none;
}

.term-3d-only.show {
  display: flex;
}

.term-small-input {
  width: 90px !important;
  max-width: 90px !important;
  flex: 0 0 90px !important;
}

.term-table tr.new-saved-row {
  background: #fff5a8 !important;
}


.term-table tbody tr {
  cursor: pointer;
}

.term-table tbody tr:hover {
  background: #e8f0f8;
}

.term-table tbody tr.selected {
  background: var(--blue-selected);
}

.clear-file-modal {
  width: 560px;
  min-width: 560px;
}

.clear-file-table td:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 360px;
}

.clear-file-name {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  vertical-align: middle;
  font-size: 13px;
}

.clear-file-table tbody tr.selected {
  background: var(--blue-selected);
}

.clear-file-table td:last-child,
.clear-file-table th:last-child {
  text-align: center;
  white-space: nowrap;
}

.danger-btn {
  background: #e11;
  color: #fff;
  border-color: #b00;
}

.term-payout-red {
  color: #d10000;
  font-weight: 700;
}

.term-status-cell {
  min-width: 110px;
}

.term-status-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.term-status-btn {
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 11px;
  padding: 2px 8px;
  color: #fff;
  min-width: 44px;
}

.term-status-btn.on {
  background: #228b22;
  border-color: #1b6f1b;
}

.term-status-btn.off {
  background: #cc0000;
  border-color: #9f0000;
}

.term-status-text {
  font-size: 11px;
  font-weight: 600;
}

.term-status-text.on {
  color: #228b22;
}

.term-status-text.off {
  color: #cc0000;
}

.app-popup-modal {
  min-width: 0;
  width: 300px;
  max-width: 300px;
}

.app-popup-modal .modal-content {
  min-height: 0;
  flex: 0 0 auto;
  overflow: visible;
  padding: 12px;
}

.app-popup-modal .modal-footer {
  justify-content: center;
}

.app-popup-content {
  padding: 6px 8px;
  text-align: center;
}

.app-popup-content p {
  margin: 0;
  line-height: 1.5;
  white-space: pre-line;
}

.app-confirm-footer {
  justify-content: center;
  gap: 10px;
}

.confirm-yes-green {
  background: #228b22;
  color: #fff;
  border-color: #1b6f1b;
}
.confirm-yes-red {
  background: #cc0000;
  color: #fff;
  border-color: #a00;
}
.confirm-no-green {
  background: #228b22;
  color: #fff;
  border-color: #1b6f1b;
}

.save-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.28);
}

.save-loading-card {
  min-width: 310px;
  padding: 24px 28px;
  border-radius: 20px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #17375e;
  font-weight: 900;
}

.save-loading-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 5px solid #dbeafe;
  border-top-color: #1f73d1;
  animation: saveLoadingSpin 0.75s linear infinite;
}

.save-loading-card.success .save-loading-spinner {
  border: none;
  background: #22c55e;
  color: #fff;
  animation: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.save-loading-card.error .save-loading-spinner {
  border: none;
  background: #ef4444;
  color: #fff;
  animation: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.save-loading-text {
  font-size: 18px;
  text-align: center;
  white-space: pre-line;
}

@keyframes saveLoadingSpin {
  to { transform: rotate(360deg); }
}

.term-edit-locked {
  opacity: 0.85;
  background: #f2f2f2 !important;
}

/* Keyword Picker Popup */
.keyword-picker-overlay {
  z-index: 2000;
}
.keyword-picker-box {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  padding: 12px;
  width: 340px;
  max-width: 95vw;
}
.keyword-picker-overlay.mode-3d .keyword-picker-box {
  width: 690px;
  max-width: 96vw;
  padding: 14px;
}
.keyword-picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.keyword-picker-overlay.mode-3d .keyword-picker-grid {
  gap: 10px;
  justify-content: flex-start;
}
.kw-btn {
  min-width: 56px;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #bbb;
  border-radius: 4px;
  background: #f5f5f5;
  color: #222;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, color 0.15s;
}
.keyword-picker-overlay.mode-3d .kw-btn {
  min-width: 112px;
  min-height: 50px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 700;
  background: #f1f1f1;
  border-color: #a8a8a8;
}
.kw-btn:hover {
  background: #1a73e8;
  color: #fff;
  border-color: #1a73e8;
}
.kw-btn.kw-series {
  background: #f5f5f5;
  color: #222;
  border: 1px solid #bbb;
  font-weight: 600;
}
.kw-btn.kw-series:hover {
  background: #1a73e8;
  color: #fff;
  border-color: #1a73e8;
}

/* Active keyword tag */
.active-kw-tag {
  background: #1a73e8;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}

/* ===== Save Loading Overlay ===== */
.save-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000000;
  border-radius: 8px;
  animation: saveFadeIn 0.25s ease;
}
@keyframes saveFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.save-loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.save-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid #1a73e8;
  border-radius: 50%;
  animation: saveSpinnerRotate 0.8s linear infinite;
}
@keyframes saveSpinnerRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.save-loading-text {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  letter-spacing: 0.5px;
}
.save-loading-text.success {
  color: #2e7d32;
}
.save-success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #2e7d32;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: saveSuccessPop 0.35s ease;
}
@keyframes saveSuccessPop {
  0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.save-success-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.save-success-icon .check-path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: saveCheckDraw 0.4s ease 0.15s forwards;
}
@keyframes saveCheckDraw {
  to { stroke-dashoffset: 0; }
}
.account-info-modal {
  position: relative;
}

/* ===== Hot ဂဏန်း (Owner) ===== */
.hot-numbers-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: auto;
  min-height: 24px;
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(90deg, #fff 0%, #f3f3f3 100%);
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
}
.hot-toolbar-btn-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  gap: 0;
}
.hot-toolbar-btn-main {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.hot-toolbar-btn-sub {
  font-size: 9px;
  font-weight: 600;
  opacity: 0.85;
}
.hot-numbers-toolbar-btn img {
  width: 13px;
  height: 13px;
  display: block;
}
.hot-numbers-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 12050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.hot-numbers-modal {
  width: min(920px, 96vw);
  max-height: 90vh;
  overflow: hidden;
  background: #111;
  border-radius: 12px;
  border: 2px solid #333;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}
.hot-numbers-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #0d0d0d;
  color: #fff;
  font-weight: 800;
  border-bottom: 1px solid #333;
}
.hot-numbers-close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.hot-numbers-split {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  max-height: min(560px, calc(88vh - 52px));
}
.hot-numbers-pane {
  flex: 1;
  padding: 12px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.hot-numbers-table-scroll {
  flex: 0 0 318px;
  height: 318px;
  min-height: 318px;
  max-height: 318px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
}
.hot-pane-dark .hot-numbers-table-scroll {
  border-color: rgba(255, 255, 255, 0.12);
}
.hot-pane-light {
  background: #fafafa;
  color: #111;
}
.hot-pane-dark {
  background: #1a1a1a;
  color: #f5f5f5;
}
.hot-numbers-divider {
  width: 3px;
  background: linear-gradient(180deg, #fff 0%, #888 50%, #000 100%);
}
.hot-numbers-pane-head-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.hot-pane-dark .hot-numbers-pane-head-row {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}
.hot-numbers-pane-main-title {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 12px;
  flex: 0 0 auto;
}
.hot-auto-owner-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  cursor: pointer;
  flex: 1;
  text-align: right;
}
.hot-auto-label {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
}
.hot-auto-pct-badge {
  display: inline-block;
  min-width: 46px;
  padding: 3px 10px;
  margin-bottom: 3px;
  border: 2px solid #000;
  border-radius: 4px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
}
.hot-auto-pct-badge.is-off {
  opacity: 0.45;
  border-color: #888;
  color: #555;
}
.hot-pane-dark .hot-auto-pct-badge {
  background: #111;
  color: #f5f5f5;
  border-color: #f5f5f5;
}
.hot-pane-dark .hot-auto-pct-badge.is-off {
  opacity: 0.5;
  border-color: #888;
  color: #aaa;
}
.hot-pane-light .hot-auto-label {
  color: #222;
}
.hot-pane-dark .hot-numbers-pane-main-title,
.hot-pane-dark .hot-auto-label {
  color: #f5f5f5;
}
.hot-auto-switch {
  accent-color: #111;
  transform: scale(1.08);
}
.hot-pane-dark .hot-auto-switch {
  accent-color: #eaeaea;
}
.hot-auto-status-readonly {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.9;
  text-align: right;
  flex: 1;
}
.hot-pane-light .hot-auto-status-readonly {
  color: #333;
}
.hot-pane-dark .hot-auto-status-readonly {
  color: #f0f0f0;
}
.hot-num-chip {
  font-weight: 700;
}
.hot-num-badge-auto {
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
  font-weight: 800;
  color: #1565c0;
  vertical-align: middle;
}
.hot-auto-pct-overlay {
  position: fixed;
  inset: 0;
  z-index: 120000;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.hot-auto-pct-box {
  background: #fafafa;
  color: #111;
  border: 2px solid #000;
  border-radius: 6px;
  padding: 16px;
  width: min(280px, 92vw);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.hot-auto-pct-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 800;
  font-size: 12px;
}
.hot-auto-pct-caption {
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 10px;
  text-align: center;
}
.hot-auto-pct-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
  font-weight: 700;
}
.hot-auto-pct-input {
  width: 92px;
  padding: 6px 10px;
  border: 2px solid #000;
  border-radius: 4px;
  font-weight: 800;
}
.hot-auto-pct-save {
  display: block;
  width: 100%;
  margin-top: 2px;
  padding: 8px;
  border: 2px solid #000;
  background: #fff;
  color: #111;
  font-weight: 800;
  cursor: pointer;
  border-radius: 4px;
}
.hot-auto-pct-cancel {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 6px;
  border: none;
  background: transparent;
  color: #555;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
.hot-numbers-pane-title {
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 12px;
}
.hot-picker-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 11px;
}
.hot-picker-strip-3d {
  flex-wrap: nowrap;
}
.hot-picker-hint {
  opacity: 0.75;
  font-size: 10px;
  white-space: nowrap;
}
.hot-modal-date {
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid #bbb;
  font-size: 11px;
  flex: 1;
  min-width: 120px;
}
.hot-modal-sess {
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid #bbb;
  font-size: 11px;
  background: #fff;
}
.hot-picker-sum {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
  min-height: 2.6em;
}
.hot-modal-sum {
  white-space: pre-line;
}
.hot-pane-dark .hot-picker-sum {
  color: #f0f0f0;
}
.hot-pane-dark .hot-modal-date,
.hot-pane-dark .hot-modal-sess {
  background: #2a2a2a;
  border-color: #555;
  color: #f5f5f5;
}
.hot-pane-dark .hot-picker-hint {
  color: #ccc;
}
.hot-pane-dark .hot-numbers-pane-title {
  border-bottom-color: rgba(255, 255, 255, 0.15);
  color: #f5f5f5;
}
.hot-numbers-toolbar {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}
.hot-numbers-toolbar input[data-hot-input] {
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}
.hot-pane-dark .hot-numbers-toolbar input[data-hot-input] {
  background: #2a2a2a;
  border-color: #444;
  color: #fff;
}
.hot-numbers-add-btn {
  padding: 4px 10px;
  border-radius: 6px;
  border: none;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  background: #1a73e8;
  color: #fff;
}
.hot-pane-dark .hot-numbers-add-btn {
  background: #2563eb;
}
.hot-numbers-sub {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  opacity: 0.85;
}
.hot-numbers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.hot-numbers-table td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 6px 4px;
}
.hot-pane-dark .hot-numbers-table td {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.hot-num-del-cell {
  text-align: right;
  width: 88px;
}
.hot-num-del {
  padding: 3px 8px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 11px;
  background: #dc2626;
  color: #fff;
}
.hot-num-del:disabled {
  opacity: 0.35;
  cursor: default;
}
.hot-account-role-select {
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #555;
  background: #2a2a2a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.hot-account-table-scroll {
  flex: 0 0 318px;
  height: 318px;
  min-height: 318px;
  max-height: 318px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}
.hot-account-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
}
.hot-account-table th {
  background: #0d0d0d;
  color: #fff;
  padding: 7px 4px;
  border: 1px solid #333;
  text-align: center;
}
.hot-account-table td {
  background: #fff;
  color: #111;
  padding: 5px 4px;
  border: 1px solid #ddd;
  text-align: center;
}
.hot-account-table tr.alt td {
  background: #f3f3f3;
}
.hot-account-table input {
  width: 76px;
  max-width: 100%;
  text-align: center;
  border: 1px solid #bbb;
  border-radius: 5px;
  padding: 4px 3px;
  font-size: 12px;
}
.hot-account-table input:disabled {
  border-color: transparent;
  background: transparent;
  color: #111;
}
.hot-account-actions {
  width: 118px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.hot-account-edit,
.hot-account-save {
  border: none;
  border-radius: 5px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 6px;
  cursor: pointer;
  min-width: 38px;
}
.hot-account-edit {
  background: #455a64;
}
.hot-account-save {
  background: #16803a;
}
.hot-view-only-note {
  margin-bottom: 8px;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f5;
  font-size: 11px;
  text-align: center;
  font-weight: 700;
}
.hot-pane-light .hot-view-only-note {
  background: rgba(0, 0, 0, 0.06);
  color: #222;
}

.number-grid .grid-num {
  width: 32px;
  min-width: 32px;
  font-size: 14px;
  font-weight: 900;
}

.number-grid .grid-vals {
  font-size: 13px;
  font-weight: 800;
}

.number-grid .grid-val-agent,
.number-grid .grid-val-overflow {
  font-size: 13px;
  font-weight: 900;
}

.number-grid.grid-3d .grid-num {
  width: 42px;
  min-width: 42px;
  font-size: 14px;
}

.number-grid.grid-3d .grid-vals,
.number-grid.grid-3d .grid-val-agent,
.number-grid.grid-3d .grid-val-overflow {
  font-size: 13px;
  font-weight: 900;
}

.number-grid .grid-val-spacer,
.number-grid .grid-val-overflow {
  display: none;
}

.number-grid .grid-val-agent {
  text-align: center;
  font-size: 16px;
  font-weight: 900;
}

.number-grid.grid-3d .grid-val-agent {
  font-size: 14px;
}

/* kma-grid-overflow-final-hide */
.number-grid.grid-3d .grid-vals {
  display: flex;
  align-items: center;
  justify-content: center;
}

.number-grid.grid-3d .grid-val-spacer,
.number-grid.grid-3d .grid-val-overflow {
  display: none;
}

.grid-cell.grid-cell-clickable {
  cursor: pointer;
}

.grid-cell.grid-cell-clickable:hover {
  outline: 1px solid #f1c40f;
  outline-offset: -1px;
}

.grid-status-overlay {
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
}

.grid-status-modal {
  width: 380px;
  min-width: 380px;
  max-width: calc(100vw - 24px);
  max-height: none;
  padding: 0;
  border: 1px solid #8a8a8a;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.grid-status-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 36px;
  padding: 0 10px 0 12px;
  background: linear-gradient(180deg, #f3f3f3 0%, #dedede 100%);
  border-bottom: 1px solid #b5b5b5;
  font-size: 13px;
  font-weight: 700;
  color: #222;
}

.grid-status-title-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.grid-status-icon {
  color: #666;
  font-size: 11px;
  line-height: 1;
}

.grid-status-close {
  width: 28px;
  height: 28px;
  min-width: 28px;
  padding: 0;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffffff 0%, #ececec 100%);
  color: #444;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.grid-status-close:hover {
  background: linear-gradient(180deg, #fff5f5 0%, #f3d6d6 100%);
  border-color: #c66;
  color: #a00;
}

.grid-status-table-wrap {
  height: 375px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: #7da2d8 #eef3fa;
}

.grid-status-table-wrap::-webkit-scrollbar {
  width: 10px;
}

.grid-status-table-wrap::-webkit-scrollbar-track {
  background: #eef3fa;
}

.grid-status-table-wrap::-webkit-scrollbar-thumb {
  background: #7da2d8;
  border-radius: 8px;
  border: 2px solid #eef3fa;
}

.grid-status-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
  color: #111;
}

.grid-status-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 28px;
  padding: 0 10px;
  background: linear-gradient(180deg, #f7f7f7 0%, #ececec 100%);
  border: 1px solid #c7c7c7;
  font-weight: 700;
  white-space: nowrap;
}

.grid-status-table tbody td {
  height: 25px;
  line-height: 25px;
  padding: 0 10px;
  border: 1px solid #d8d8d8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.grid-status-table tbody tr:nth-child(even) td {
  background: #fafafa;
}

.grid-status-table tbody tr:hover td {
  background: #eef4ff;
}

.grid-status-table tbody tr.selected td {
  background: #316ac5;
  color: #fff;
}

.grid-status-table tbody tr.selected:hover td {
  background: #316ac5;
}

.gs-col-name { width: 46%; text-align: left; }
.gs-col-num { width: 22%; text-align: center; }
.gs-col-amt { width: 32%; text-align: right; }

.gs-name { text-align: left; }
.gs-num { text-align: center; }
.gs-amt { text-align: right; }

.grid-status-foot {
  display: grid;
  grid-template-columns: 46% 22% 32%;
  align-items: center;
  min-height: 30px;
  background: linear-gradient(180deg, #f7f7f7 0%, #ececec 100%);
  border-top: 1px solid #b5b5b5;
}

.gs-foot-count,
.gs-foot-total {
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}

.gs-foot-count {
  text-align: center;
}

.gs-foot-total {
  text-align: right;
}

.nurtured-win-alert-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  padding: 6px 10px;
  border-radius: 6px;
  background: #ffebee;
  border: 1px solid #ef5350;
  color: #b71c1c;
  font-size: 12px;
  font-weight: 700;
}
.nurtured-win-alert-bar button {
  margin-left: auto;
  width: 24px;
  height: 24px;
  border: 1px solid #ef9a9a;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  color: #b71c1c;
}
#registerNurturedEntryBtn {
  min-width: 42px;
  height: 34px;
  border: 1px solid #2e7d32;
  border-radius: 6px;
  background: #e8f5e9;
  color: #1b5e20;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  padding: 0 8px;
}
