/* apuestas_frontend/ticket_branding_modal.css
 *
 * Estilos exclusivos del modal "Personalización Red" (#ticket-branding-modal).
 * Todos los selectores van prefijados con su propio id para que nada de aquí
 * pueda afectar a otros modales del sistema (#config-modal, #track-config-modal,
 * etc.) -- archivo aislado, igual que el resto de esta funcionalidad.
 */

#ticket-branding-modal .modal-content {
  max-width: 520px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 25px;
  overflow: hidden;
}

#ticket-branding-modal .tb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #444;
  padding-bottom: 10px;
  flex-shrink: 0;
}

#ticket-branding-modal .tb-header h2 {
  border-bottom: none;
  margin: 0;
}

#ticket-branding-modal .tb-body {
  margin-top: 15px;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  padding-right: 10px;
  margin-right: -10px;
  scrollbar-gutter: stable;
}

#ticket-branding-modal .tb-hint {
  color: #aaa;
  font-size: 0.85em;
}

#ticket-branding-modal .tb-label {
  display: block;
  margin-top: 20px;
  margin-bottom: 5px;
}

#ticket-branding-modal .tb-label:first-of-type {
  margin-top: 15px;
}

#ticket-branding-modal input[type="file"] {
  background: #333;
  color: #fff;
  border: 1px solid #555;
  padding: 8px;
  width: 100%;
  box-sizing: border-box;
}

#ticket-branding-modal .tb-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

#ticket-branding-modal #branding-logo-preview img {
  max-width: 120px;
  max-height: 60px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
  border-radius: 4px;
}

#ticket-branding-modal .tb-remove-logo-btn {
  display: none;
  background-color: #dc3545;
  flex: 0 0 auto;
  width: auto;
  padding: 6px 10px;
  font-size: 0.85em;
}

#ticket-branding-modal .tb-footer-line-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

#ticket-branding-modal .tb-footer-line-row input {
  flex: 1;
  min-width: 0;
  background: #333;
  color: #fff;
  border: 1px solid #555;
  padding: 8px;
  box-sizing: border-box;
}

#ticket-branding-modal .tb-footer-line-row .branding-footer-line-size {
  flex: 0 0 auto;
  width: 90px;
  background: #333;
  color: #fff;
  border: 1px solid #555;
  padding: 8px 4px;
  box-sizing: border-box;
  font-size: 0.8em;
}

#ticket-branding-modal .tb-footer-line-row button,
#ticket-branding-modal .tb-remove-partial-btn {
  background-color: #dc3545;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  line-height: 1;
}

#ticket-branding-modal .tb-add-line-btn {
  margin-top: 5px;
  flex: 0 0 auto;
  width: 36px;
  padding: 6px 0;
}

#ticket-branding-modal .tb-scope-row {
  display: flex;
  gap: 20px;
}

#ticket-branding-modal .tb-scope-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: normal;
}

#ticket-branding-modal .tb-scope-row input[type="radio"] {
  margin: 0;
}

#ticket-branding-modal .tb-parcial-section {
  display: none;
  margin-top: 15px;
}

#ticket-branding-modal .tb-sub-agent-row {
  display: flex;
  gap: 8px;
}

#ticket-branding-modal #branding-sub-agent-select {
  flex: 1;
  min-width: 0;
  background: #333;
  color: #fff;
  border: 1px solid #555;
  padding: 8px;
  box-sizing: border-box;
}

#ticket-branding-modal .tb-add-sub-agent-btn {
  flex: 0 0 auto;
  width: auto;
  padding: 8px 14px;
}

#ticket-branding-modal #branding-partial-agents-list {
  background: #2a2a2a;
  border: 1px solid #444;
  min-height: 60px;
  max-height: 180px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 4px;
  box-sizing: border-box;
}

#ticket-branding-modal .tb-partial-agent-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}
