a {
  text-decoration: none;
}
  
  select option:not(:first-child) {
  color: black;
}

.entry-content h2 {
  font-size: 2.2rem;
  margin-block-start: .4em;
 }

#account-root {
  display: none;
}

#account-root.is-visible {
  display: block;
}

.account-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid #ffffff4d;
}

.account-tab {
  padding: 10px 18px;
  border: 0;
  border-radius: 10px 10px 0 0;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.account-tab:hover {
  background: #ffffff1a;
  color: #1e293b;
}

.account-tab[aria-selected="true"] {
  background: #ffffff33;
  color: #0f172a;
  font-weight: 600;
}

.account-panel-tab {
  display: block;
}

.account-panel-tab[hidden] {
  display: none;
}

.account-panel {
  margin: 0 0 24px;
  padding: 20px 24px;
  border: 1px solid #ffffff4d;
  border-radius: 16px;
  background: #ffffff1a;
}

.account-panel h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.account-billing-summary {
  display: grid;
  gap: 4px;
  font-size: 14px;
  color: #334155;
  margin-bottom: 10px;
}

.account-billing-empty {
  color: #94a3b8;
  font-style: italic;
}

.account-billing-form-wrap {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

.account-billing-form-wrap.is-open {
  max-height: 1000px;
}

.account-link-button {
  display: inline-block;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.account-link-button:hover {
  color: #1d4ed8;
}

.account-link-button .chevron {
  display: inline-block;
  transition: transform 0.3s ease;
}

.account-link-button.is-open .chevron {
  transform: rotate(180deg);
}

.account-cancel-section {
  border: 1px solid #fecaca;
  background: #fef2f2;
}

.account-cancel-section h2 {
  color: #b91c1c;
}

.account-cancel-section p {
  margin-bottom: 14px;
  color: #7f1d1d;
}

.account-cancel-btn {
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.account-cancel-btn:hover {
  background: #b91c1c;
}

#user-status.account-user-status {
  display: none;
}

p {
  margin-block-start: 0;
  margin-block-end: 0;
}

#active-plan-notice.account-active-plan-notice {
  display: none;
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
  color: #1e3a8a;
}

#active-plan-notice.account-active-plan-notice.is-visible {
  display: block;
}

#checkout.account-panel {
  min-width: 0;
  margin: 0;
  padding: 24px;
  border: 1px solid #ffffff4d;
  border-radius: 16px;
  background: #ffffff1a;
}

.account-form-status {
  margin-left: 12px;
}

.account-plan-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 8px 0 4px;
}

#checkout-plan-name.account-plan-name {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

#checkout-plan-price.account-plan-price {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  line-height: 1;
}

#checkout-plan-description.account-plan-description {
  margin: 0 0 16px;
  color: #475569;
}

#checkout-inline-message.account-inline-message {
  display: none;
  margin: 0 0 16px;
  color: #334155;
}

#checkout-validation-message.account-validation-message {
  display: none;
  margin: 0 0 12px;
  color: #b91c1c;
}

.account-payment-methods {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #ffffff4d;
  font-size: 12px;
  color: #475569;
}

.account-payment-methods img {
  min-width: 0;
  width: 100%;
  max-width: 300px;
  height: auto;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.account-payment-methods img:hover {
  opacity: 1;
}

.account-checkout-success {
  display: none;
}

.account-checkout-success.is-visible {
  display: block;
}

.account-checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.4);
}

.account-checkout-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  max-width: 420px;
  width: calc(100% - 32px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
}

.account-checkout-modal h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.account-checkout-modal p {
  margin: 0 0 12px;
  color: #475569;
}

.account-checkout-modal #checkout-success-close {
  display: block;
  margin-top: 20px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

  td {
  padding: 12px 10px;
 }

.invoice-unavailable {
  color: #94a3b8;
}

.invoice-tooltip-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  cursor: help;
  vertical-align: middle;
  position: relative;
  margin-left: 3px;
}

.invoice-tooltip-trigger::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 260px;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 10;
}

.invoice-tooltip-trigger:hover::after,
.invoice-tooltip-trigger:focus::after {
  opacity: 1;
}

.team-feedback {
  min-height: 24px;
  margin: 0 0 16px;
  color: #334155;
}

.team-feedback.is-error {
  color: #b91c1c;
}

.team-feedback.is-warning {
  color: #92400e;
}

.team-feedback.is-success {
  color: #166534;
}

.fonter-toast-root {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.fonter-toast {
  min-width: 260px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.fonter-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fonter-toast.is-success {
  background: #166534;
}

.fonter-toast.is-error {
  background: #b91c1c;
}

.fonter-toast.is-warning {
  background: #92400e;
}

@media (max-width: 640px) {
  .fonter-toast-root {
    top: 12px;
    right: 12px;
    left: 12px;
  }

  .fonter-toast {
    min-width: 0;
    max-width: none;
  }
}

.team-login-box,
.team-panel {
  margin: 0 0 24px;
  padding: 24px;
  border: 1px solid #ffffff4d;
  border-radius: 18px;
  background: #ffffff1a;
}

.team-page-root [hidden] {
  display: none !important;
}

.team-login-box p,
.team-panel p {
  color: #475569;
}

.team-page-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.team-form {
  display: grid;
  gap: 12px;
}

.team-form input {
  width: 100%;
}

.team-button,
.team-link-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.team-button {
  padding: 10px 14px;
  background: #0f172a;
  color: #ffffff;
}

.team-button.team-button-secondary {
  background: #e2e8f0;
  color: #0f172a;
}

.team-link-button {
  padding: 0;
  background: transparent;
  color: #1d4ed8;
}

.team-card-list {
  display: grid;
  gap: 12px;
}

.team-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: #f8fbff;
}

.team-card.is-selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb;
}

.team-card h3 {
  color: #1d4ed8;   
}

h3 {
  margin: 1rem 0 .5rem;
  font-size: 1.8rem;
}

.team-card p {
  margin: 0;
}

.team-card-badges,
.team-card-actions,
.team-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-card-actions {
  justify-content: flex-end;
  align-items: center;
}

.team-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.team-badge.is-owner {
  background: #dbeafe;
  color: #1d4ed8;
}

.team-badge.is-member {
  background: #e2e8f0;
  color: #334155;
}

.team-badge.is-active {
  background: #dcfce7;
  color: #166534;
}

.team-stats {
  margin: 16px 0;
}

.team-stat {
  min-width: 120px;
  padding: 12px 14px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #ffffffb3;
}

.team-stat span {
  display: block;
  font-size: 12px;
  color: #64748b;
}

.team-stat strong {
  font-size: 20px;
}

.team-owner-note,
.team-reload-hint {
  margin: 8px 0 0;
  color: #475569;
}

.team-inline-cta {
  display: inline-flex;
  margin-top: 12px;
  text-decoration: none;
}

form#team-invite-form {
  margin-top: .5rem;
}

.team-invite-notice {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
  color: #1e3a8a;
}

.team-table-wrap {
  overflow-x: auto;
}

.team-table {
  width: 100%;
  border-collapse: collapse;
}

.team-table th,
.team-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #dbe3ef;
  text-align: left;
}

.team-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.team-empty {
  padding: 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  color: #64748b;
  background: #f8fafc;
}

@media (max-width: 960px) {
  .team-page-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    flex-direction: column;
  }

  .team-card-actions {
    justify-content: flex-start;
  }
}

/* ── Permisos de miembros Team (modal + licencias) ── */

.fonter-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fonter-modal {
  background: #ffffff;
  border-radius: 8px;
  padding: 24px;
  max-width: 480px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.team-perm-title {
  margin: 0 0 16px;
}

.team-section-heading {
  margin: 28px 0 12px;
  font-size: 1.25rem;
  line-height: 1.3;
  color: #0f172a;
}

.team-perm-field {
  margin-bottom: 12px;
}

.team-perm-field.is-last {
  margin-bottom: 16px;
}

.team-perm-label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.team-perm-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: inherit;
}

.team-perm-static {
  margin: 0;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f1f5f9;
  color: inherit;
}

.team-perm-criterion {
  display: block;
  margin: 4px 0;
  cursor: pointer;
}

.team-perm-criterion input[type="radio"] {
  margin-right: 6px;
}

.team-perm-criterion.is-disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.team-perm-license-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.team-perm-license-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

.team-perm-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.team-perm-actions .team-button {
  padding: 8px 16px;
}

#team-licenses-section {
  margin-top: 24px;
}

.team-edit-permissions {
  margin-right: 8px;
}

.team-seat-chip {
  display: inline-block;
  margin: 2px 4px;
  padding: 2px 8px;
  background: #e2e8f0;
  border-radius: 4px;
  font-size: 12px;
}

.team-seat-chip .team-link-button {
  margin-left: 4px;
  padding: 0;
  font-size: 11px;
}

.team-assign-row {
  display: flex;
  gap: 4px;
  align-items: center;
}

.team-assign-input {
  width: 200px;
  padding: 4px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 12px;
}

.team-assign-button {
  font-size: 12px;
}
