/* Layout general */
.mf-dashboard-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

.mf-dashboard-main {
  max-width: 1280px;
  width: 100%;
}

/* Tarjeta principal */
.mf-dashboard-card {
  background: #ffffff;
  border-radius: 18px;
  box-sizing: border-box;
}

/* HEADER */
.mf-dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: end;
    /* gap: 32px; */
    /* padding-bottom: 24px; */
    /* border-bottom: 1px solid #e0e4ea; */
    /* max-width: 1150px; */
    margin: 0 auto;
    padding: 5px;
    background: #d18049;
}

.mf-dashboard-header-left {
  gap: 16px;
}

/* Logo placeholder estilo Google */
.mf-dashboard-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.mf-dashboard-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: conic-gradient(
    from 0deg,
    #4285f4 0deg 90deg,
    #34a853 90deg 180deg,
    #fbbc05 180deg 270deg,
    #ea4335 270deg 360deg
  );
}

.mf-dashboard-logo-text {
  font-size: 16px;
  font-weight: 600;
  color: #202124;
}

.mf-dashboard-kicker {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 500;
  color: #5f6368;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mf-dashboard-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #202124;
}

.mf-dashboard-client {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  color: #5f6368;
}

.mf-dashboard-client-label {
  font-weight: 500;
}

.mf-dashboard-client-value {
  font-weight: 400;
}

.mf-dashboard-client-separator {
  padding: 0 4px;
}

/* Sesión / usuario */
.mf-dashboard-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: end;
}

.mf-dashboard-session-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e6f4ea;
  font-size: 11px;
  font-weight: 500;
  color: #1e8e3e;
}

.mf-dashboard-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #1e8e3e;
}

.mf-dashboard-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.mf-dashboard-user-btn:hover {
  background: #f1f3f4;
}

ul.mf-admin-sidebar-list {
    display: flex;
}

ul.mf-admin-sidebar-list button {
    border: solid 1px #000;
    padding: 10px 20px;
    border-radius: 50px;
    margin-right: 20px;
}

.mf-dashboard-user-btn:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}

.mf-dashboard-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.mf-dashboard-user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mf-dashboard-user-name {
  font-size: 13px;
  font-weight: 500;
  color: #202124;
}

.mf-dashboard-user-email {
  font-size: 12px;
  color: #5f6368;
}

/* Botones */
.mf-dashboard-btn-primary,
.mf-dashboard-btn-outline,
.mf-dashboard-link-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  padding: 8px 18px;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease,
    color 0.15s ease, transform 0.08s ease;
  white-space: nowrap;
}

.mf-dashboard-btn-primary {
  background: #1a73e8;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.mf-dashboard-btn-primary:hover {
  background: #1765cc;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.22);
  transform: translateY(-0.5px);
}

.mf-dashboard-btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.mf-dashboard-btn-outline {
  background: #000;
  color: #fff;
  border: 1px solid #dadce0;
  padding-inline: 14px;
}

.mf-dashboard-btn-outline:hover {
  background: #000000;
  color: #000;
}

.mf-dashboard-pagination {
    margin: 30px 0px;
}

.mf-dashboard-link-btn {
    background: #e3e3e3;
    color: #000000;
    padding: 8px 8px;
    border-radius: 50px;
}

header.mf-dashboard-table-header {
    padding-bottom: 40px;
}

.col-client-name {
    font-size: 20px;
    font-weight: 700;
}

.col-rut {
    padding-bottom: 20px;
}

.mf-dashboard-link-btn:hover {
  background: rgba(26, 115, 232, 0.09);
}

/* NAV */
.mf-dashboard-nav {
  margin-top: 16px;
  border-bottom: 1px solid #e0e4ea;
}

.mf-dashboard-nav-list {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.mf-dashboard-nav-item {
  margin: 0;
}

.mf-dashboard-nav-link {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 10px 14px 12px;
  font-size: 13px;
  color: #5f6368;
  border-radius: 999px 999px 0 0;
  position: relative;
}

.mf-dashboard-nav-item--active .mf-dashboard-nav-link {
  color: #1a73e8;
  font-weight: 500;
}

.mf-dashboard-nav-item--active .mf-dashboard-nav-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: #1a73e8;
}

/* CONTENIDO */
.mf-dashboard-content {
  margin-top: 24px;
}

/* Métricas */
.mf-dashboard-metrics {
  align-self: flex-start;
}

.mf-dashboard-metric-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px 18px;
    border: 1px solid #e0e4ea;
    min-width: 121px;
    text-align: center;
}

.mf-dashboard-metric-heade

.mf-dashboard-metric-label {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #000;
    min-width: 117px;
}

.mf-dashboard-metric-value {
    margin: 0;
    font-size: 40px;
    font-weight: 600;
    color: #202124;
    text-align: center;
}
.mf-dashboard-metric-desc {
  margin: 0;
  font-size: 16px;
  color: #000;
}

/* Tabla órdenes */

.mf-dashboard-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}


.mf-dashboard-section-title {
    margin: 0;
    font-size: 33px;
    font-weight: 700;
    color: #202124;
}
.mf-dashboard-section-subtitle {
  margin: 2px 0 0;
  font-size: 12px;
  color: #5f6368;
}

.mf-dashboard-table-scroller {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid #e0e4ea;
  background: #ffffff;
}

.mf-dashboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.mf-dashboard-table th,
.mf-dashboard-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #edf0f4;
  white-space: nowrap;
}

.mf-dashboard-table thead th {
  background: #f8fafc;
  font-weight: 500;
  color: #5f6368;
}

.mf-dashboard-table tbody tr:last-child td {
  border-bottom: none;
}

.mf-dashboard-table tbody tr:hover {
  background: #f5f7fb;
}

.mf-dashboard-table-actions-col,
.mf-dashboard-table-actions {
  text-align: right;
}

.mf-dashboard-table-footer {
  margin: 10px 2px 0;
  font-size: 12px;
  color: #5f6368;
}

/* MODAL: Mis datos */
.mf-dashboard-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.mf-dashboard-modal.is-open {
  display: flex;
}

.mf-dashboard-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 33, 36, 0.45);
}

.mf-dashboard-modal-panel {
  position: relative;
  max-width: 640px;
  width: 100%;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  padding: 20px 22px 16px;
  box-sizing: border-box;
  z-index: 41;
}

.mf-dashboard-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.mf-dashboard-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #202124;
}

.mf-dashboard-modal-subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  color: #5f6368;
}

.mf-dashboard-modal-close {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 4px;
  border-radius: 999px;
}

.mf-dashboard-modal-close:hover {
  background: #f1f3f4;
}

.mf-dashboard-modal-body {
  margin-bottom: 16px;
}

.mf-dashboard-modal-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mf-dashboard-modal-label {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  color: #5f6368;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mf-dashboard-modal-value {
  margin: 0;
  font-size: 13px;
  color: #202124;
}

.mf-dashboard-modal-footer {
  display: flex;
  justify-content: flex-end;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .mf-dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .mf-dashboard-header-right {
    align-self: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .mf-dashboard-table-wrapper {
    margin-top: 12px;
  }
}

@media (max-width: 720px) {
  .mf-dashboard-page {
    padding: 16px 8px;
  }

  .mf-dashboard-card {
    border-radius: 0;
    box-shadow: none;
  }

  .mf-dashboard-title {
    font-size: 20px;
  }

  .mf-dashboard-header {
    padding-bottom: 16px;
  }

  .mf-dashboard-content {
    margin-top: 16px;
  }

  .mf-dashboard-table-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .mf-dashboard-modal-panel {
    margin-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mf-dashboard-btn-primary,
  .mf-dashboard-btn-outline,
  .mf-dashboard-link-btn {
    transition: none;
  }
}


/* Tabla visual con divs (3 columnas) */
.tabla-datos {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
    line-height: 16px;
}
.tabla-titulo {
  font-weight: 700;
  color: #202124;
  margin-bottom: 4px;
}

.tabla-fila {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tabla-label {
  font-weight: 500;
  color: #5f6368;
}

.tabla-valor {
  font-weight: 400;
  color: #202124;
  word-break: break-word;
}

.tabla-email {
  font-size: 14px;
  color: #5f6368;
}

.tabla-datos-cliente {
    border: solid 1px #ccc;
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0px;
}

.tabla-url {
  font-size: 14px;
  font-family: monospace;
  color: #202124;
}

/* Responsive */
@media (max-width: 813px) {
  .tabla-datos {
    font-size: 15px;
  }

  .tabla-url {
    font-size: 13px;
  }
}

ul.mf-admin-sidebar-list li a {
    display: block;
    padding: 10px 20px;
    color: #fff;
}
ul.mf-admin-sidebar-list {
    list-style: NONE;
    padding: 0px;
}

.segundo-nivel {
    display: flex;
    justify-content: space-between;
    /* padding-bottom: 30px; */
    background: #000000;
    padding: 10px;
}

/* ============================================================
 * FORMULARIO FICHA ORDEN · PT SOLUTION
 * Aplica sobre templates/admin-ficha-orden.php
 * ============================================================ */

/* Contenedor general del formulario */
.mf-orden-form {
  max-width: 1120px;
  margin: 24px auto 0;
  background: #ffffff;
  border-radius: 18px;
  box-sizing: border-box;
}

/* Separadores entre bloques (ya había space-y-6 en HTML) */
.mf-orden-form > * + * {
  margin-top: 24px;
}

/* Layout tipo grid genérico (por si Tailwind no está en admin) */
.mf-orden-form .grid {
  display: grid;
  gap: 16px;
}

/* Tres columnas en desktop, una en mobile */
.mf-orden-form .grid.grid-cols-1.md\:grid-cols-3,
.mf-orden-form .grid.grid-cols-1.md\:grid-cols-3.gap-4 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.mf-orden-form .grid.grid-cols-1.md\:grid-cols-2,
.mf-orden-form .grid.grid-cols-1.md\:grid-cols-2.gap-4 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.mf-orden-form .grid.grid-cols-1.md\:grid-cols-4,
.mf-orden-form .grid.grid-cols-1.md\:grid-cols-4.gap-4 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

/* breakpoint simple */
@media (min-width: 768px) {
  .mf-orden-form .grid.grid-cols-1.md\:grid-cols-3,
  .mf-orden-form .grid.grid-cols-1.md\:grid-cols-3.gap-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mf-orden-form .grid.grid-cols-1.md\:grid-cols-2,
  .mf-orden-form .grid.grid-cols-1.md\:grid-cols-2.gap-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mf-orden-form .grid.grid-cols-1.md\:grid-cols-4,
  .mf-orden-form .grid.grid-cols-1.md\:grid-cols-4.gap-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Etiquetas */
.mf-orden-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #0f172a;
}

/* Inputs / selects / textareas */
.mf-orden-form input[type="text"],
.mf-orden-form input[type="date"],
.mf-orden-form input[type="number"],
.mf-orden-form select,
.mf-orden-form textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 5px;
  border: 1px solid #999;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.4;
  background-color: #f8fafc;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.mf-orden-form textarea {
  resize: vertical;
  min-height: 90px;
}

/* Focus states */
.mf-orden-form input:focus,
.mf-orden-form select:focus,
.mf-orden-form textarea:focus {
  outline: none;
  border-color: #2563eb;
  background-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.1), 0 0 0 3px rgba(37, 99, 235, 0.06);
}

/* Textos de ayuda (clases usadas en el template) */
.mf-orden-form .text-xs {
  font-size: 11px;
  line-height: 1.4;
}

.mf-orden-form .text-gray-500 {
  color: #64748b;
}

/* Separadores de bloque con borde superior */
.mf-orden-form .border-t {
  border-top: 1px solid #e2e8f0;
}

.mf-orden-form .pt-4 {
  padding-top: 16px;
}

/* Títulos de bloque dentro del formulario */
.mf-orden-form h3 {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 8px;
}

/* Pie del formulario: texto + botón */
.mf-orden-form .border-t.pt-4.flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Ajuste para pantallas chicas */
@media (max-width: 640px) {


  .mf-orden-form .border-t.pt-4.flex {
    align-items: flex-start;
  }
}

header.mf-admin-main-header.mf-admin-main-header--orden {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1150px;
    margin: 0 auto;
}

/* Botón principal por si no lo tenías ya definido */
.mf-dashboard-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.mf-dashboard-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.3);
}

.mf-dashboard-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}

/* ========== MODAL BASE ========== */

.mf-dashboard-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  font-size: 14px;
}

/* estado abierto */
.mf-dashboard-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* fondo oscuro */
.mf-dashboard-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45); /* slate-900 ~ */
}

/* panel (caja) */
.mf-dashboard-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 4rem);
  margin-top: 2rem;
  background: #ffffff;
  border-radius: 18px;
  box-shadow:
    0 22px 40px rgba(15, 23, 42, 0.18),
    0 0 1px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* en móvil el panel se apoya abajo tipo "sheet" */
@media (max-width: 768px) {
  .mf-dashboard-modal {
    align-items: flex-end;
    padding: 0.5rem;
  }

  .mf-dashboard-modal-panel {
    margin-top: 0;
    max-height: calc(100vh - 1rem);
    border-radius: 18px 18px 0 0;
  }
}

/* ========== CABECERA DEL MODAL ========== */

.mf-dashboard-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.mf-dashboard-modal-title {
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 600;
  color: #0f172a;
}

.mf-dashboard-modal-subtitle {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #6b7280;
}

/* botón cerrar (X) */
.mf-dashboard-modal-close {
  border: 0;
  background: transparent;
  padding: 0.15rem 0.25rem;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  color: #6b7280;
  border-radius: 999px;
}

.mf-dashboard-modal-close:hover {
  background: rgba(15, 23, 42, 0.05);
  color: #111827;
}

/* ========== CUERPO DEL MODAL / FORM ========== */

.mf-dashboard-modal-body {
  padding: 1.5rem 1.75rem 0;
  overflow-y: auto;
}

/* grupos de campos */
.mf-dashboard-modal-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* grupos que deben ocupar todo el ancho de la grid */
.mf-dashboard-modal-group--full {
  grid-column: 1 / -1;
}

.mf-dashboard-modal-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #4b5563;
}

.mf-dashboard-input, .mf-dashboard-textarea {
    width: 100%;
    border-radius: 5px;
    border: 1px solid #d1d5db;
    padding: 0.55rem 0.7rem;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #111827;
    background-color: #ffffff;
    transition: border-color 0.16s 
ease, box-shadow 0.16s 
ease, background-color 0.16s 
ease;
    box-sizing: border-box;
}

.mf-dashboard-input:focus,
.mf-dashboard-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
}

.mf-dashboard-input::placeholder,
.mf-dashboard-textarea::placeholder {
  color: #9ca3af;
}

/* textarea un pelín más alta */
.mf-dashboard-textarea {
  min-height: 90px;
  resize: vertical;
}

/* textitos de ayuda / error / éxito */
.mf-dashboard-help-text {
  font-size: 0.78rem;
  color: #6b7280;
}

.mf-dashboard-help-text--error {
  color: #b91c1c;
}

.mf-dashboard-help-text--success {
  color: #15803d;
}

/* ========== FOOTER DEL MODAL ========== */

.mf-dashboard-modal-footer {
  margin-top: 0.5rem;
  padding: 1rem 1.75rem 1.4rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Botones principales / outline
   (si ya tienes .mf-dashboard-btn-primary / .mf-dashboard-btn-outline,
   puedes omitir esta parte) */

.mf-dashboard-btn-primary {
  border-radius: 999px;
  border: 0;
  padding: 0.55rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  background: #111827;
  color: #ffffff;
  transition: background 0.16s ease, transform 0.08s ease, box-shadow 0.16s ease;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.mf-dashboard-btn-primary:hover {
  background: #020617;
  transform: translateY(-1px);
}

.mf-dashboard-btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

.mf-dashboard-btn-outline {
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 0.55rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.mf-dashboard-btn-outline:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

/* ========== RESPONSIVE CAMPOS (GRID) ========== */

@media (max-width: 768px) {
  .mf-dashboard-modal-body {
    padding-inline: 1.25rem;
  }

  .mf-dashboard-modal-footer {
    padding-inline: 1.25rem;
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .mf-dashboard-btn-primary,
  .mf-dashboard-btn-outline {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* ====== MODAL GENÉRICO ====== */

.mf-dashboard-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;              /* oculto por defecto */
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.mf-dashboard-modal.is-open {
  display: flex;              /* se muestra al agregar .is-open */
}

.mf-dashboard-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45); /* overlay oscuro */
}

/* Panel principal */

.mf-dashboard-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1040px;
  max-height: calc(100vh - 4rem);
  margin: 0 1.5rem;
  background: #ffffff;
  border-radius: 24px;
  box-shadow:
    0 20px 40px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
}

/* ====== HEADER / FOOTER ====== */

.mf-dashboard-modal-header {
  padding: 24px 32px 18px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.mf-dashboard-modal-title {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 4px;
}

.mf-dashboard-modal-subtitle {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.mf-dashboard-modal-close {
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
  padding: 4px;
  border-radius: 999px;
}

.mf-dashboard-modal-close:hover {
  background: #f3f4f6;
  color: #111827;
}

.mf-dashboard-modal-footer {
  padding: 16px 32px 24px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Mensaje de estado (izquierda en el footer) */

.mf-dashboard-modal-status {
  font-size: 13px;
  color: #6b7280;
}

.mf-dashboard-modal-actions {
  display: flex;
  gap: 10px;
}

/* ====== CUERPO / FORM ====== */

.mf-dashboard-modal-body {
  padding: 20px 32px 20px;
  overflow-y: auto;
  gap: 24px;
}

.mf-dashboard-modal-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mf-dashboard-modal-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mf-dashboard-modal-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.mf-dashboard-modal-help {
  font-size: 12px;
  color: #9ca3af;
  margin: 2px 0 0;
}

/* Inputs del modal */

.mf-dashboard-modal-input {
  display: block;
  width: 100%;
  padding: 9px 11px;
  font-size: 14px;
  line-height: 1.4;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
  resize: vertical;
  box-sizing: border-box;
}

.mf-dashboard-modal-input:focus {
  outline: none;
  border-color: #111827;
  box-shadow: 0 0 0 1px #1118271a, 0 0 0 4px rgba(17, 24, 39, 0.06);
}

.mf-dashboard-modal-input::placeholder {
  color: #9ca3af;
}

/* Selects */

.mf-dashboard-modal-input[type="date"] {
  padding-right: 8px;
}

/* ====== RESPONSIVE ====== */

@media (max-width: 900px) {
  .mf-dashboard-modal-panel {
    max-width: 100%;
    margin: 0 1rem;
    max-height: calc(100vh - 2rem);
  }

  .mf-dashboard-modal-header,
  .mf-dashboard-modal-body,
  .mf-dashboard-modal-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 640px) {
  .mf-dashboard-modal-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .mf-dashboard-modal-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .mf-dashboard-modal-actions {
    width: 100%;
    justify-content: flex-end;
  }
}


/*NUEVO CSS*/


.menu-app a {
    font-size: 23px;
}
.menu-app ul {
    list-style: none;
    display: flex;
    align-items: center;
}
a.salir {
    font-size: 17px;
    padding: 2px 20px !important;
    border-radius: 50px;
    border: solid;
    text-align: center;
}
.menu-app a {
    display: block;
    padding: 5px;
    width: 27px;
    text-align: center;
    margin-left: 5px;
}

.resumen-dash {
    line-height: 32px;
    border-top: solid 1px #ccc;
    padding-top: 20px;
}


.reparacion {
    background: #ee00008c;
}
.pendiente {
    background: #eee;
    color: #000 !important;
}

.despachada {
    background: #4bb32d;
}

.resumen-ordenes ul {
    padding: 0px;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    grid-gap: 15px;
}

.menu-aplicacion {
    position: fixed;
    top: 0px;
    right: -100%;
    height: 100%;
    background: #fff;
    width: 90%;
    padding: 30px;
    box-sizing: border-box;
    box-shadow: 2px 1px 10px 0px rgba(0, 0, 0, 0.10);
    -webkit-box-shadow: 2px 1px 10px 0px rgba(0, 0, 0, 0.10);
    max-width: 400px;
    z-index: 1000000;
}

.velo-botonera {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #00000080;
    top: 0px;
    left: 0px;
    display: none;
    z-index: 100000;
}

.hear-bot {
    display: flex;
    justify-content: space-between;
    padding-bottom: 30px;
    border-bottom: solid 1px #ccc;
    margin-bottom: 20px;
}
.persona {
    display: flex;
    font-size: 20px;
    font-weight: 700;
    align-items: center;
}

a.cerrar {
    border: solid 1px;
    padding: 8px 20px;
    border-radius: 50px;
    display: block;
    width: fit-content;
    margin: 20px 0px;
}

ul.menu {
    list-style: none;
    padding: 0px;
    line-height: 42px;
}

.logo {
    font-weight: 700;
    font-size: 20px;
}
.inicial {
    width: 30px;
    height: 30px;
    background: #ecc;
    border-radius: 50px;
    text-align: center;
    line-height: 30px;
    margin-right: 13px;
    font-size: 16px;
}

.item-resumen {
    display: flex;
    flex-direction: column;
    padding: 10px;
    font-size: 12px;
    background: #fff;
    /* grid-template-columns: repeat(3, 1fr); */
    border-radius: 10px;
    box-shadow: 2px 1px 10px 0px rgba(0, 0, 0, 0.10);
    -webkit-box-shadow: 2px 1px 10px 0px rgba(0, 0, 0, 0.10);
}

.item-resumen strong {
    font-size: 58px;
    padding: 10px;
    /* border: solid 1px #ccc; */
}
.item-resumen span {
    font-size: 20px;
}
.item-resumen.ot-active {
    background: #000;
    color: #fff;
}

.ord div {
    padding: 10px;
    border: solid 1px #ccc;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.ord div {
    padding: 10px;
    /* border: solid 1px #ccc; */
    display: flex;
    flex-direction: column;
    text-align: center;
    border-radius: 10px;
    background: #eee;
}

.col-client {
    font-size: 20px;
    font-weight: 700;
    padding: 20px 0px 10px;
}

.item-fila {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 2px 1px 10px 0px rgba(0, 0, 0, 0.10);
    -webkit-box-shadow: 2px 1px 10px 0px rgba(0, 0, 0, 0.10);
}

.col-action a {
    background: #000;
    display: block;
    width: fit-content;
    padding: 7px 20px;
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
}

input.input-buscar-ot {
    padding: 7px;
    font-size: 16px;
    border: solid 1px #ccc;
    border-radius: 50px;
    width: 100%;
}

.col-action span {
    display: block;
    width: fit-content;
    padding: 7px 10px;
    margin-top: 20px;
    border-radius: 10px;
    font-size: 14px;
    color: #fff;
}

.col-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
ul.filtro {
    list-style: none;
    padding: 0px;
    display: flex;
}

ul.filtro a {
    border: solid 1px #000;
    padding: 8px;
    border-radius: 50px;
    margin-left: 10px;
    font-size: 12px;
}
ul.filtro a.activa{
    background: #000;
    color: #fff;
}

.tp {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hide{
  overflow: hidden;
}

.correo {
    font-size: 12px;
    font-weight: 400;
}
.nombre {
    line-height: 20px;
}

@media(max-width:812px){
.tp {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
}
.item-resumen strong {
    font-size: 28px;
    padding: 10px;
    /* border: solid 1px #ccc; */
}

.item-resumen span {
    font-size: 10px;
}

.max-w-md.w-full.bg-white.shadow-md.rounded-lg.p-6 {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
}

header.mf-admin-main-header.flex.jc-entre.ai-center.pad-bot-30 {
    flex-direction: column;
}

}


.form-login {
    max-width: 500px;
    margin: 60px auto;
    padding: 30px;
    background: #fff;
    border-radius: 20px;
}
.form-login-inner p {
    display: flex;
    flex-direction: column;
}

.logo-login {
    max-width: 300px;
    margin: 0 auto;
}

.form-login-inner input {
    padding: 10px;
    border-radius: 5px;
    border: solid 1px;
}

p.login-submit input {
    font-size: 18px;
    background: #000;
    color: #fff;
    width: fit-content;
    padding: 10px 25px !important;
}

@media(max-width:812px){
  footer.app-footer .contenedor-seccion {
    flex-direction: column;
    text-align: left;
}

header.mf-admin-main-header.mf-admin-main-header--orden {
    display: flex;
    align-items: initial;
    max-width: 1150px;
    margin: 0 auto;
    flex-direction: column;
}
header.mf-admin-main-header h2 {
    margin-bottom: 20px;
}

.datos-pagina.flex.jc-entre {
    flex-direction: column !important;
}

.mf-admin-header-actions button {
    margin-bottom: 10px;
}
}

button.link-as-button {
    background: #000;
    /* color: #fff; */
    border: none;
    /* padding: 10px; */
    display: block;
    width: fit-content;
    padding: 10px 10px;
    margin-top: 20px;
    border-radius: 10px;
    font-size: 14px;
    color: #fff;
}

/* Bloque de documentos PDF dentro del modal de orden */
.tabla-pdfs {
  margin-top: 20px;
  border-top: 1px solid #e5e5e5;
  padding-top: 16px;
}

.tabla-pdfs .tabla-titulo {
  font-weight: 600;
  margin-bottom: 10px;
}

/* Cabecera tipo tabla */
.tabla-pdfs .tabla-fila--header {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #e5e5e5;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tabla-pdfs .tabla-fila--header .tabla-label {
  font-weight: 600;
}

/* Filas normales */
.tabla-pdfs .tabla-fila {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed #f0f0f0;
  font-size: 14px;
}

/* Primera columna (nombre del estado) */
.tabla-pdfs .tabla-fila .tabla-label {
  font-weight: 500;
}

/* Enlaces "Ver PDF" */
.tabla-pdfs .tabla-valor a {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid #d0d0d0;
  /* color de texto y borde heredarán de tu tema si ya tienes algo, si no: */
  /* color: #1f2933; */
}

.tabla-pdfs .tabla-valor a:hover {
  background-color: #f5f5f5;
}

/* Estado "Sin documento" más suave */
.tabla-pdfs .tabla-valor {
  display: flex;
  align-items: center;
}

.tabla-pdfs .tabla-valor:empty::before,
.tabla-pdfs .tabla-valor:contains("Sin documento") {
  color: #9ca3af;
}

/* Responsive: en pantallas chicas, que se vea en bloque */
@media (max-width: 768px) {
  .tabla-pdfs .tabla-fila--header,
  .tabla-pdfs .tabla-fila {
    grid-template-columns: 1fr;
  }

  .tabla-pdfs .tabla-fila--header {
    display: none; /* ocultamos cabecera tipo tabla en mobile */
  }

  .tabla-pdfs .tabla-fila {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 8px;
  }

  .tabla-pdfs .tabla-fila .tabla-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
  }

  .tabla-pdfs .tabla-fila .tabla-valor {
    margin-bottom: 4px;
  }

  .tabla-pdfs .tabla-fila .tabla-valor:last-child {
    margin-bottom: 0;
  }
}
