/* ====== MOVIAGENDA: Estilos Base ABM (vehículos y choferes) ====== */

/* Contenedor tipo “ficha”, consistente con tu custom.css */
.ma-card {
  width: 100%;
  margin: 30px auto;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

/* Títulos */
.ma-card h3 {
  margin: 0 0 12px 0;
  color: #202a4a;
  font-size: 22px;
}

/* Formularios */
.ma-form label {
  display: block;
  font-weight: 600;
  margin-top: 12px;
  color: #202a4a;
}
.ma-form input[type="text"],
.ma-form input[type="email"],
.ma-form input[type="number"],
.ma-form select,
.ma-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
}
.ma-form .ma-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 767px) {
  .ma-form .ma-inline { grid-template-columns: 1fr; }
}

/* Acciones / Botones */
.ma-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.ma-btn {
  background: #0070b0;
  color: #fff;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  transition: background .2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ma-btn:hover { background: #005a8d; }
.ma-btn--danger { background: #dc3545; }
.ma-btn--danger:hover { background: #b02a37; }
.ma-btn--muted {
  background: #e9edf3;
  color: #202a4a;
}
.ma-btn--muted:hover { background: #d7dee9; }

/* Tablas */
.ma-table-wrapper { overflow-x: auto; }
.ma-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden; /* si se usa en bloque con border radius */
  font-size: 15px;
}
.ma-table thead { background: #0070b0; color: #fff; }
.ma-table th, .ma-table td {
  padding: 10px 12px;
  text-align: left;
  border: 1px solid #ddd;
  vertical-align: middle;
}
.ma-table tbody tr:nth-child(even) { background: #f6f9fc; }
.ma-table tbody tr:hover { background: #eaf3f9; }

/* Badges */
.ma-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.ma-badge--ok { background: #d4edda; color: #155724; }
.ma-badge--off { background: #ffe0e3; color: #7a1f2b; }

/* Filtros */
.ma-filtros {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.ma-filtros label {
  margin: 0;
  font-weight: 700;
}

/* Mensajes */
.ma-alert {
  padding: 10px 14px;
  border-radius: 8px;
  margin: 10px 0 14px 0;
  border: 1px solid transparent;
}
.ma-alert--ok {
  background: #eaf7ee;
  border-color: #b7e0c3;
  color: #175a2b;
}
.ma-alert--err {
  background: #fdebec;
  border-color: #f1c3c6;
  color: #7f1f26;
}

/* Paginación simple */
.ma-paginacion {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px;
}
.ma-page {
  border: 1px solid #ccc;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: #202a4a;
}
.ma-page--current {
  background: #0070b0; color: #fff; border-color: #0070b0;
}

.movi-card { background:#fff; border:1px solid #e9edf3; border-radius:10px; padding:16px; margin:16px 0; }
.movi-form-inline { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.movi-form-stacked { display:grid; gap:12px; }
.movi-table { width:100%; border-collapse:collapse; margin-top:12px; }
.movi-table th, .movi-table td { border-bottom:1px solid #eef2f6; padding:8px; text-align:left; }
.movi-btn { padding:8px 14px; border:1px solid #0f5298; background:#0f5298; color:#fff; border-radius:8px; cursor:pointer; }
.movi-btn-danger { background:#b20d30; border-color:#b20d30; }
.movi-check { display:flex; gap:6px; align-items:center; }
.movi-grid { display:grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap:8px; }
.movi-alert { padding:10px 12px; border-radius:8px; margin:10px 0; }
.movi-alert-warn { background:#fff7e6; border:1px solid #ffe8b3; }
.movi-fieldset { display:flex; gap:16px; flex-wrap:wrap; }

/* ===== Ajustes compactos para Alta/Conversión de Coordinador ===== */

/* Card compacta (opcional si la querés más chica) */
.ma-card--compact {
  margin: 20px auto;
  padding: 16px;
}

/* Compactar solo este formulario (no afecta a los demás) */
.ma-form--coord,
.ma-form--compact {
  /* nada aquí: usaremos selectores más específicos abajo */
}

/* Menos espacio vertical entre filas */
.ma-form--coord > div,
.ma-form--compact > div {
  margin-bottom: 0.4rem; /* antes ~1rem */
}

/* Labels más pegados y con menor peso visual */
.ma-form--coord label,
.ma-form--compact label {
  margin-top: 6px;      /* antes 12px */
  margin-bottom: 2px;
  font-weight: 500;     /* antes 600 */
}

/* Inputs más bajos (menos padding) */
.ma-form--coord input[type="text"],
.ma-form--coord input[type="email"],
.ma-form--coord input[type="number"],
.ma-form--coord select,
.ma-form--coord textarea,
.ma-form--compact input[type="text"],
.ma-form--compact input[type="email"],
.ma-form--compact input[type="number"],
.ma-form--compact select,
.ma-form--compact textarea {
  padding: 8px 10px;    /* antes 10px */
  margin-top: 4px;      /* antes 6px */
  font-size: 15px;      /* un pelín más chico */
}

/* Grillas con menos separación */
.ma-form--coord .ma-inline,
.ma-form--compact .ma-inline {
  gap: 10px;            /* antes 14px */
}

/* Radios/checkbox alineados y compactos */
.ma-form--coord .movi-check,
.ma-form--compact .movi-check {
  gap: 6px;
  margin-top: 2px;
  line-height: 1.2;
}

/* Select múltiple con altura razonable (aunque uses size="6") */
.ma-form--coord select[multiple],
.ma-form--compact select[multiple] {
  min-height: 160px;
}

/* Acciones más compactas */
.ma-form--coord .ma-actions,
.ma-form--compact .ma-actions {
  gap: 8px;
  margin-top: 12px;     /* antes 16px */
}

/* ===== Utilidades de botones (outline) ===== */
.ma-btn--outline {
  background: transparent;
  color: #0070b0;
  border: 1px solid #0070b0;
}
.ma-btn--outline:hover {
  background: rgba(0,112,176,0.08);
}

/* Mantener compatibilidad con clases previas */
.movi-btn-outline {
  background: transparent !important;
  color: #0f5298 !important;
  border: 1px solid #0f5298 !important;
}
.movi-btn-outline:hover {
  background: rgba(15,82,152,0.08) !important;
}
/* Compactar solo formularios marcados como --coord */
.ma-form--coord > div { margin-bottom: 0.4rem; }
.ma-form--coord label { margin-top: 6px; margin-bottom: 2px; font-weight: 500; }
.ma-form--coord input[type="text"],
.ma-form--coord input[type="email"],
.ma-form--coord input[type="number"],
.ma-form--coord select,
.ma-form--coord textarea { padding: 8px 10px; margin-top: 4px; font-size: 15px; }
.ma-form--coord .ma-inline { gap: 10px; }
.ma-form--coord .ma-actions { gap: 8px; margin-top: 12px; }

.movi-sidebar {
    width: 220px;
    background: #e5f1f7;
    padding: 20px;
    border-radius: 10px;
    color: #202a4a;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    height: fit-content;
}

.sidebar-header {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 20px;
}

.sidebar-nav a {
    display: block;
    margin-bottom: 10px;
    color: #0070b0;
    text-decoration: none;
    font-weight: 500;
}

.sidebar-nav a:hover {
    text-decoration: underline;
}
.sidebar-nav a i { margin-right:6px; vertical-align: -1px; }
.coord-ui .ma-btn {
  color: #fff !important;
  font-weight: 600;
  text-transform: none;
}

.coord-ui .ma-btn.ghost {
  color: #0070b0 !important;
  background: transparent !important;
  border: 1px solid #0070b0 !important;
}
