/* WTECH BTX Tracker v1.0.12 app-level polish only. Global shell stays in WTECH Global Style. */
.btx-mt { margin-top: 18px; }
.btx-mt-sm { margin-top: 10px; }
.btx-card-pad { padding: 18px; }
.btx-card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.btx-card-title a { text-decoration: none; font-size: 13px; }
.btx-user-chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 10px; border: 1px solid rgba(15,23,42,.10); border-radius: 10px; background: #fff; font-size: 13px; color: #475569; }
.btx-alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-size: 14px; }
.btx-alert-success { background: #ecfdf5; border: 1px solid #bbf7d0; color: #166534; }
.btx-alert-danger { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.btx-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.btx-table { width: 100%; border-collapse: collapse; min-width: 980px; }
.btx-table th, .btx-table td { padding: 10px 12px; border-bottom: 1px solid rgba(148,163,184,.22); text-align: left; vertical-align: middle; white-space: nowrap; font-size: 13px; }
.btx-table th { background: rgba(248,250,252,.92); color: #475569; font-weight: 600; }
.btx-empty { text-align: center !important; color: #64748b; padding: 18px !important; }
.btx-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 8px; background: #f1f5f9; color: #334155; font-size: 12px; }
.btx-form-grid { display: grid; gap: 12px; margin-bottom: 12px; }
.btx-form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.btx-form-grid.six { grid-template-columns: repeat(6, minmax(130px, 1fr)); }
.btx-form-grid.seven { grid-template-columns: repeat(7, minmax(120px, 1fr)); }
.btx-full { grid-column: 1 / -1; }
.btx-form-heading { margin: 16px 0 10px; font-size: 15px; color: #0f172a; }
.btx-inline-form .wtech-form-row { margin-bottom: 10px; }
.btx-actions form { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.btx-small { padding: 5px 8px !important; min-height: 30px !important; font-size: 12px !important; }
.btx-danger { color: #b91c1c !important; border-color: #fecaca !important; background: #fff5f5 !important; }
.btx-check { display: flex; gap: 8px; align-items: center; color: #475569; margin: 10px 0 14px; font-size: 13px; }
.btx-install-wrap { max-width: 1240px; }
.btx-install-panel { min-width: min(100%, 620px); }
.btx-install-card { max-height: none; }
@media (max-width: 1180px) {
  .btx-form-grid.six, .btx-form-grid.seven { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .btx-form-grid.two, .btx-form-grid.six, .btx-form-grid.seven { grid-template-columns: 1fr; }
  .btx-card-title { align-items: flex-start; flex-direction: column; }
  .btx-user-chip { display: none; }
}

/* v1.0.3 installer layout fix: make the install screen fill the full viewport width and remove the right-side blank area on large screens. */
body.btx-install-page {
  overflow-x: hidden;
}
body.btx-install-page .wtech-login-wrap.btx-install-wrap {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(480px, 1fr) minmax(560px, 1fr) !important;
  align-items: stretch !important;
}
body.btx-install-page .wtech-login-info {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  padding-left: clamp(36px, 6vw, 96px) !important;
  padding-right: clamp(24px, 4vw, 72px) !important;
}
body.btx-install-page .wtech-login-panel-shell.btx-install-panel {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  padding-left: clamp(28px, 5vw, 80px) !important;
  padding-right: clamp(28px, 5vw, 80px) !important;
}
body.btx-install-page .wtech-login-card.btx-install-card {
  width: min(100%, 520px) !important;
  max-width: 520px !important;
}
@media (max-width: 980px) {
  body.btx-install-page .wtech-login-wrap.btx-install-wrap {
    grid-template-columns: 1fr !important;
  }
  body.btx-install-page .wtech-login-info,
  body.btx-install-page .wtech-login-panel-shell.btx-install-panel {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }
  body.btx-install-page .wtech-login-card.btx-install-card {
    width: 100% !important;
    max-width: 560px !important;
  }
}

/* v1.0.3 order history edit action polish */
.btx-form-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btx-row-actions { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.btx-row-actions form { margin: 0; display: inline-flex; }
.btx-row-actions .wtech-btn { white-space: nowrap; }

/* v1.0.3 order history transaction fee column */
.btx-table th:nth-child(9), .btx-table td:nth-child(9) { white-space: nowrap; }

/* v1.0.4 order history executed field */

/* v1.0.6 order history actions button spacing fix */
.btx-table th:last-child,
.btx-table td:last-child {
  text-align: center;
  min-width: 96px;
}
.btx-row-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  min-width: 76px;
}
.btx-row-actions form {
  margin: 0 !important;
  display: block !important;
}
.btx-row-actions .wtech-btn,
.btx-row-actions button.wtech-btn {
  min-width: 58px;
  justify-content: center;
  text-align: center;
}

/* v1.0.8 open orders layout restore + BNB amount field */
.btx-table.btx-open-orders-table { min-width: 1120px; }

/* v1.0.8 open orders layout restore: keep original compact 6-column form and let BNB Amount wrap cleanly to the next row. */
.btx-form-grid.six .wtech-form-row { min-width: 0; }


/* v1.0.9 open orders edit action polish */
.btx-open-order-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.btx-open-order-actions form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.btx-open-order-actions .wtech-btn,
.btx-open-order-actions button.wtech-btn {
  white-space: nowrap;
}
@media (max-width: 760px) {
  .btx-open-order-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}


/* v1.0.10 open orders actions button spacing fix */
.btx-table.btx-open-orders-table {
  min-width: 1280px;
}
.btx-open-orders-table th.btx-open-actions-col,
.btx-open-orders-table td.btx-open-actions-col {
  min-width: 240px !important;
  width: 240px;
  text-align: center !important;
}
.btx-open-order-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  width: max-content;
  min-width: 220px;
  margin: 0 auto;
}
.btx-open-order-actions form {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  flex-wrap: nowrap !important;
}
.btx-open-order-actions .wtech-btn,
.btx-open-order-actions button.wtech-btn {
  margin: 0 !important;
  white-space: nowrap !important;
  min-width: 52px;
  text-align: center;
  justify-content: center;
}
@media (max-width: 760px) {
  .btx-open-orders-table th.btx-open-actions-col,
  .btx-open-orders-table td.btx-open-actions-col {
    min-width: 220px !important;
    width: 220px;
  }
  .btx-open-order-actions {
    justify-content: flex-start !important;
    margin: 0;
  }
}


/* v1.0.11 order history actions one-line fix */
.btx-order-history-table th.btx-order-actions-col,
.btx-order-history-table td.btx-order-actions-col {
  min-width: 170px !important;
  width: 170px;
  text-align: center !important;
}
.btx-order-history-actions {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  margin: 0 auto;
}
.btx-order-history-actions form {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
}
.btx-order-history-actions .wtech-btn,
.btx-order-history-actions button.wtech-btn {
  margin: 0 !important;
  white-space: nowrap !important;
  min-width: 52px;
  justify-content: center;
  text-align: center;
}
@media (max-width: 760px) {
  .btx-order-history-table th.btx-order-actions-col,
  .btx-order-history-table td.btx-order-actions-col {
    min-width: 150px !important;
    width: 150px;
  }
  .btx-order-history-actions {
    justify-content: flex-start !important;
    margin: 0;
  }
}


/* v1.0.12 order history show price hide type */
.btx-order-history-table th:nth-child(5),
.btx-order-history-table td:nth-child(5) {
  white-space: nowrap;
}
