/* The deploy panel's own few rules on top of the admin panel's stylesheets (colours stay the theme's). */

/* text logo in the header / login box */
.deploy-logo { display: inline-block; color: #fff; font-size: 20px; font-weight: 400; letter-spacing: 1px; line-height: 70px; white-space: nowrap; }
.deploy-logo b { font-weight: 700; }
.deploy-logo-login { color: inherit; font-size: 30px; line-height: 1.2; }
.deploy-role { font-size: 10px; vertical-align: middle; }

/* the menu: in the top bar on desktop, in the left sidebar on phones / tablets (☰) */
.deploy-panel .vertical-menu #side-menu .side-nav-link-ref { display: block; padding: 10px 20px; color: inherit; }
.deploy-panel .vertical-menu #side-menu .side-nav-link-ref.router-link-active { font-weight: 700; }
@media (min-width: 992px) {
  body:not(.sidebar-enable) .deploy-panel .vertical-menu { display: none; }
  .deploy-panel #vertical-menu-btn { display: none; }
}
@media (max-width: 991.98px) {
  .deploy-panel #page-topbar .main-menu { display: none !important; }
  body:not(.sidebar-enable) .deploy-panel .vertical-menu { display: none; }
  body.sidebar-enable .deploy-panel .vertical-menu { display: block; position: fixed; top: 70px; bottom: 0; left: 0; width: 250px; z-index: 1002; overflow-y: auto; }
  .deploy-logo { font-size: 16px; }
  .deploy-panel .user-menu .btn .ml-1:first-child { max-width: 90px; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: middle; }
}
@media (max-width: 575.98px) {
  .deploy-role { display: none; }
  .deploy-page .page-title-box { flex-wrap: wrap; gap: 8px; }
}

/* tables: numbers never wrap; action buttons stay on one line */
.deploy-table td, .deploy-table th { vertical-align: middle; }
.deploy-total-row td { background: rgba(0, 0, 0, .04); }
.deploy-details { max-width: 420px; word-break: break-word; }
.deploy-totals span { display: inline-block; margin-bottom: 4px; }

/* summary tiles (settlement) */
.deploy-stat { border: 1px solid #e9ecef; border-radius: 4px; padding: 8px 12px; margin-bottom: 8px; background: #fff; }
.deploy-stat b { font-size: 16px; }
.deploy-ro { height: auto; min-height: calc(1.5em + .94rem + 2px); background: #eff2f7; }

/* site form: logo / favicon boxes, colour swatches */
.deploy-brand-box { display: flex; gap: 10px; align-items: center; }
.deploy-brand-preview { flex: 0 0 140px; height: 60px; display: flex; align-items: center; justify-content: center; border: 1px dashed #ced4da; border-radius: 4px; background: #2a3042; overflow: hidden; }
.deploy-brand-preview.is-favicon { flex-basis: 60px; }
.deploy-brand-preview img { max-width: 100%; max-height: 100%; }
.deploy-brand-inputs { flex: 1; min-width: 0; }
.deploy-swatch { width: 30px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; }
.deploy-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid #ced4da; margin-right: 4px; }
.deploy-checklist { max-height: 260px; overflow-y: auto; border: 1px solid #ced4da; border-radius: 4px; padding: 8px 10px; }
.deploy-subkeys .custom-control-inline { margin-right: .75rem; }
[data-mode][hidden], [data-role="sm"][hidden] { display: none !important; }

/* Secure Auth */
.deploy-qr { width: 180px; height: 180px; }
.deploy-code { word-break: break-all; }
.deploy-panel .login-auth .otp-input, .deploy-page .otp-input { width: 40px; height: 40px; margin: 0 4px; text-align: center; font-size: 18px; border: 1px solid #ced4da; border-radius: 4px; }

/* sidebar menu list: no bullets / indents whatever the theme */
.deploy-panel #side-menu, .deploy-panel #side-menu ul { list-style: none; padding-left: 0; margin: 0; }

/* Accounts: username suggestions under the search box */
.deploy-suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 1050; max-height: 320px; overflow-y: auto; box-shadow: 0 6px 12px rgba(0, 0, 0, .175); }

/* notes under a choice ("Allowed logins from", cluster warnings) */
.deploy-note { border: 1px solid #b8daff; background: #eef6ff; color: #004085; border-radius: 4px; padding: 8px 10px; font-size: 13px; margin-top: 6px; }
.deploy-note.is-warn { border-color: #ffe08a; background: #fff8e1; color: #6d5200; }
.deploy-note.is-danger { border-color: #f5c6cb; background: #fdecee; color: #721c24; }
.deploy-note ul { margin: 4px 0 0; padding-left: 18px; }
.deploy-note:empty { display: none; }
.deploy-member { display: inline-flex; align-items: center; border: 1px solid #ced4da; border-radius: 3px; padding: 1px 2px 1px 6px; margin: 0 4px 4px 0; white-space: nowrap; font-size: 13px; }
.deploy-member .btn { padding: 0 5px; line-height: 1.3; margin-left: 4px; }
.deploy-rules .badge { margin: 0 3px 3px 0; }

/* Bet Delay grid: sport rows × market types; first column stays while scrolling sideways */
.deploy-delay-wrap { max-height: 70vh; }
.deploy-delay { font-size: 12px; white-space: nowrap; }
.deploy-delay th, .deploy-delay td { vertical-align: middle; padding: 3px 4px; }
.deploy-delay thead th { position: sticky; top: 0; background: #f8f9fa; z-index: 2; font-weight: 600; text-align: center; white-space: normal; min-width: 64px; line-height: 1.2; }
.deploy-delay .deploy-sticky { position: sticky; left: 0; background: #fff; z-index: 1; min-width: 120px; text-align: left; }
.deploy-delay thead .deploy-sticky { z-index: 3; background: #f8f9fa; }
.deploy-delay-site td, .deploy-delay-site .deploy-sticky { background: #eef6ff; }
.deploy-delay-in { width: 62px; min-width: 62px; padding: 2px 4px; height: 26px; text-align: center; margin: 0 auto; }
.deploy-delay-in::placeholder { color: #adb5bd; }
.deploy-delay-off { color: #ced4da; text-align: center; background: #fafafa; }
/* Downline tree */
.deploy-caret { color: #556ee6; display: inline-block; width: 16px; }
.deploy-caret-space { display: inline-block; width: 16px; }
.deploy-role { font-size: 10px; vertical-align: middle; }
.badge-light.deploy-role { border: 1px solid #ced4da; }
.deploy-row-menu { z-index: 1060; min-width: 190px; font-size: 13px; }
.deploy-row-menu .dropdown-item { padding: 6px 14px; }
/* Maintenance & Redirects */
.deploy-maint-on { border-left: 4px solid #f46a6a; }

/* settlement panel */
.btn-xs { padding: 0 6px; font-size: 12px; line-height: 1.5; }
.settle-figures small { display: inline-block; }
.settle-kv { display: grid; grid-template-columns: 160px 1fr; gap: 4px 12px; font-size: 13px; }
.settle-kv dt { font-weight: 600; color: #495057; }
.settle-kv dd { margin: 0; word-break: break-word; }
.settle-tile { border: 1px solid #e9ecef; border-radius: 4px; padding: 10px 12px; margin-bottom: 8px; background: #fff; }
.settle-tile h6 { margin: 0 0 6px; }
pre.settle-json { font-size: 12px; white-space: pre-wrap; word-break: break-word; background: #f8f9fa; padding: 8px; border-radius: 4px; }
.table-danger td { background: #fdecee; }
.table-warning td { background: #fff8e1; }
@media (max-width: 767.98px) { .settle-kv { grid-template-columns: 1fr; } .deploy-page .btn-sm { margin-bottom: 4px; } }
