.clad-invoices-wrapper {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.clad-invoices-title {
  margin: 0 0 25px;
  font-size: 30px;
  font-weight: 600;
  color: #163d73;
}

.clad-invoices-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.clad-invoices-table thead th {
  padding: 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #5c5c5c;
  border-bottom: 2px solid #ececec;
}

.clad-invoices-table tbody td {
  padding: 18px 16px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f1f1;
  color: #444;
}

.clad-invoices-table tbody tr:hover {
  background: #fafafa;
}

.clad-course {
  max-width: 420px;
  line-height: 1.5;
}

.clad-status {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.clad-status.generated {
  background: #0f4c81;
  color: #fff;
}

.clad-status.pending {
  background: #f2f4f7;
  color: #444;
}

.clad-status.error {
  background: #fdeaea;
  color: #b42318;
}

.clad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  background: #0f4c81;
  color: #fff !important;

  padding: 10px 18px;

  border-radius: 6px;
  text-decoration: none;

  font-size: 14px;
  font-weight: 600;

  transition: 0.2s;
}

.clad-btn:hover {
  background: #0b3558;
  color: #fff !important;
}

.clad-empty {
  padding: 40px;
  text-align: center;
  color: #666;
}

@media (max-width: 768px) {
  .clad-invoices-wrapper {
    padding: 20px;
  }

  .clad-invoices-table {
    display: block;
    overflow-x: auto;
  }
}

/* =========================================================
   DATOS DE FACTURACIÓN - MI CUENTA
   ========================================================= */

.clad-account-page {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 0 40px;
}

/* Contenedor principal */

.clad-account-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 32px 36px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

/* Encabezado */

.clad-account-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.clad-account-header h2 {
  margin: 0 0 8px;
  color: #0d3f78;
  font-size: 26px;
  font-weight: 600;
}

.clad-account-header p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

/* Formulario */

.clad-billing-form {
  width: 100%;
}

/* Grid */

.clad-billing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
}

/* Campos */

.clad-billing-form .clad-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
}

.clad-billing-form .clad-field-full {
  grid-column: 1 / -1;
}

/* Labels */

.clad-billing-form .clad-field label {
  margin: 0;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
}

/* Inputs */

.clad-billing-form .clad-field input,
.clad-billing-form .clad-field select,
.clad-billing-form .clad-field textarea {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.4;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* Select */

.clad-billing-form .clad-field select {
  min-height: 42px;
  cursor: pointer;
}

/* Textarea */

.clad-billing-form .clad-field textarea {
  min-height: 105px;
  resize: vertical;
}

/* Focus */

.clad-billing-form .clad-field input:focus,
.clad-billing-form .clad-field select:focus,
.clad-billing-form .clad-field textarea:focus {
  border-color: #0d4b8f;
  outline: none;
  box-shadow: 0 0 0 2px rgba(13, 75, 143, 0.12);
}

/* Botón */

.clad-billing-form .button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 11px 22px;
  border: 0;
  border-radius: 6px;
  background: #0d477f;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.1s ease;
}

.clad-billing-form .button-primary:hover {
  background: #083763;
  color: #ffffff;
}

.clad-billing-form .button-primary:active {
  transform: translateY(1px);
}

/* Aviso de WooCommerce */

.woocommerce-account .woocommerce-message {
  margin-bottom: 20px;
  border-top-color: #0d477f;
}

/* Responsive */

@media (max-width: 768px) {
  .clad-account-page {
    padding: 0 15px 30px;
  }

  .clad-account-card {
    padding: 24px 20px;
  }

  .clad-billing-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .clad-billing-form .clad-field-full {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .clad-account-card {
    padding: 20px 16px;
    border-radius: 8px;
  }

  .clad-account-header h2 {
    font-size: 22px;
  }

  .clad-billing-form .button-primary {
    width: 100%;
  }
}

/* ==========================================================
   DATOS DE FACTURACIÓN - MI CUENTA
   ========================================================== */

.clad-account-page {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0 40px;
}

.clad-account-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Encabezado */

.clad-account-header {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e5e7eb;
}

.clad-account-header h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  color: #0d3f78;
}

.clad-account-header p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #6b7280;
}

/* Formulario */

.clad-billing-form {
  width: 100%;
}

.clad-billing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}

/* Campos */

.clad-billing-form .clad-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
}

.clad-billing-form .clad-field-full {
  grid-column: 1 / -1;
}

/* Labels */

.clad-billing-form .clad-field label {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

/* Inputs y select */

.clad-billing-form .clad-field input,
.clad-billing-form .clad-field select,
.clad-billing-form .clad-field textarea {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.4;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* Select */

.clad-billing-form .clad-field select {
  min-height: 42px;
  cursor: pointer;
}

/* Textarea */

.clad-billing-form .clad-field textarea {
  min-height: 110px;
  resize: none;
}

/* Focus */

.clad-billing-form .clad-field input:focus,
.clad-billing-form .clad-field select:focus,
.clad-billing-form .clad-field textarea:focus {
  outline: none;
  border-color: #0d477f;
  box-shadow: 0 0 0 2px rgba(13, 71, 127, 0.12);
}

/* Botón */

.clad-billing-form .button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
  padding: 11px 22px;
  border: none;
  border-radius: 6px;
  background: #0d477f;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.1s ease;
}

.clad-billing-form .button-primary:hover {
  background: #083763;
  color: #fff;
}

.clad-billing-form .button-primary:active {
  transform: translateY(1px);
}

/* Avisos de WooCommerce */

.clad-account-page + .woocommerce-message,
.woocommerce-account .woocommerce-message {
  border-top-color: #0d477f;
}

/* Responsive */

@media (max-width: 768px) {
  .clad-account-page {
    padding: 15px 0 30px;
  }

  .clad-account-card {
    padding: 24px 20px;
  }

  .clad-billing-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .clad-billing-form .clad-field-full {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .clad-account-card {
    padding: 20px 16px;
    border-radius: 8px;
  }

  .clad-account-header h2 {
    font-size: 22px;
  }

  .clad-billing-form .button-primary {
    width: 100%;
  }
}
