/* Reset básico y fuente */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
}

body, html {
  background-color: #ffffff;
}

/* Contenedor principal dividido */
.container {
  display: flex;
  height: 100vh;
}

/* Lado izquierdo con imagen y texto */
.left-panel {
  flex: 1;
  background: url('assets/img_portal.webp') no-repeat center center;
  background-size: cover;
  position: relative;
}

.left-panel .overlay {
  background-color: rgba(0, 64, 128, 0.6); /* azul oscuro con transparencia */
  color: white;
  height: 100%;
  width: 100%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.app-title {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 10px;
}

.app-subtitle {
  font-size: 1.2em;
}

/* Lado derecho con formulario */
.right-panel {
  flex: 1;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-box {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.logo {
  width: 60px;
  margin-bottom: 20px;
}

h2 {
  font-size: 1.8em;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 20px;
}

/* Formulario */
form {
  text-align: left;
}





label {
  display: block;
  margin-top: 15px;
  font-weight: 500;
  font-size: 0.95em;
}

input[type="email"],
input[type="usuario"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95em;
}

input, select, textarea {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  font-size: 1em;
  width: 100%;
  margin-bottom: 15px;
  transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
  border-color: #0168a1;
  outline: none;
}


/* Botón */
button {
  margin-top: 18px;
  padding: 10px 28px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  display: inline-block;
}
button:hover {
  background-color: #005a8e;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.btn-siguiente {
  background: linear-gradient(90deg, #0168a1, #018ed6 80%);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 30px;
  font-size: 1em;
  margin-left: 12px;
  min-width: 110px;
  box-shadow: 0 2px 8px rgba(1,104,161,0.07);
  border: none;
  transition: background 0.16s;
}
.btn-siguiente:hover {
  background: linear-gradient(90deg, #014e78, #0168a1 80%);
}

.flex.justify-end.gap-2.mt-6,
.flex.justify-end.gap-2.mt-4 {
  margin-top: 10px !important;
  margin-bottom: 0 !important;
}


.btn-siguiente, .btn-anterior {
  display: inline-block !important;
  margin-top: 0 !important;
  position: relative;
  z-index: 2;
}


.btn-anterior {
  background: #f3f4f6;
  color: #0168a1;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 30px;
  font-size: 1em;
  min-width: 110px;
  margin-right: 10px;
  border: 1.5px solid #cbd5e1;
  transition: background 0.14s, color 0.14s;
}
.btn-anterior:hover {
  background: #e0e7ef;
  color: #014e78;
  border-color: #b6c8de;
}

.btn-agregar-cotizacion-class {
  background: linear-gradient(90deg, #0168a1, #018ed6 80%);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 30px;
  font-size: 1em;
  margin-left: 12px;
  min-width: 110px;
  box-shadow: 0 2px 8px rgba(1,104,161,0.07);
  border: none;
  transition: background 0.16s;
}
.btn-agregar-cotizacion-class {
  background: linear-gradient(90deg, #014e78, #0168a1 80%);
}



.btn-eliminar {
  background: #fff;
  color: #e53935;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  padding: 4px 16px;
  font-size: 0.93em;
  font-weight: 600;
  min-width: 0;
  box-shadow: none;
  margin: 0;
  transition: background 0.13s, color 0.13s, border-color 0.13s;
  display: inline-block;
  cursor: pointer;
  outline: none;
  vertical-align: middle;
}
.btn-eliminar:hover, .btn-eliminar:focus {
  background: #ffeaea;
  color: #b71c1c;
  border-color: #f8bbbb;
}





.wizard-buttons {
  max-width: 800px;  /* O el ancho que tenga tu .card-paso, ajustá si usás otro */
  margin-left: auto;
  margin-right: auto;
  margin-top: -20px; /* Opcional, para acercar a la tarjeta */
  padding-right: 18px; /* Para despegarlo del borde derecho */
  background: transparent;
}


#editor {
  min-height: 80px;
  max-height: 140px;
  overflow-y: auto;
  background: #fff;
}

/* Enlaces */
.link {
  display: block;
  margin-top: 15px;
  text-align: center;
  font-size: 0.9em;
  color: #007bff;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .left-panel {
    height: 250px;
  }

  .left-panel .overlay {
    justify-content: center;
    text-align: center;
  }

  .right-panel {
    padding: 20px;
  }
}


.main-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
  font-family: 'Roboto', sans-serif;
}



.logo-area {
  margin-bottom: 30px;
  text-align: center;
}

.logo-area img {
  width: 60px;
  margin-bottom: 10px;
}

.system-name {
  font-size: 1.2em;
  font-weight: bold;
  display: block;
}

.user-role {
  font-size: 0.85em;
  color: #b0c4de;
}

.sidebar {
  width: 230px;
  background: linear-gradient(160deg, #0168a1 0%, #49bea7 100%);
  color: #fff;
  min-height: 100vh;
  box-shadow: 2px 0 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 0 0 0;
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
  z-index: 10;
}

.sidebar-logo {
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(1,104,161,0.11);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sidebar-logo img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.sidebar-title {
  font-size: 1.12em;
  font-weight: 600;
  color: #fff;
  margin-bottom: 34px;
  letter-spacing: 0.02em;
  text-align: center;
}

.sidebar nav {
  width: 100%;
  margin-top: 8px;
}


.sidebar nav button,
.sidebar nav a {
  display: flex;
  align-items: center;
  width: 90%;
  margin: 0 auto 12px auto;
  padding: 12px 18px;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  font-size: 1.06em;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  text-decoration: none;
  outline: none;
}

.sidebar nav button:hover,
.sidebar nav a:hover,
.sidebar nav .active {
  background: rgba(255,255,255,0.14);
  color: #fff;
  box-shadow: 0 2px 8px rgba(1,104,161,0.06);
}

.sidebar nav svg,
.sidebar nav .icon {
  font-size: 1.3em;
  margin-right: 13px;
  color: #fff;
  opacity: 0.93;
}

.content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.topbar {
  background-color: #ecf0f1;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #bdc3c7;
}

.main-content {
  flex: 1; 
}

iframe#contenidoPrincipal {
  border: none;
  width: 100%;
  height: 100%;
}

/* Tarjeta de paso, menos padding inferior */
.card-paso {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  padding: 20px 22px 8px 22px; /* padding-bottom: 8px para ahorrar espacio */
  margin-bottom: 22px;
  transition: all 0.3s ease;
  border-left: 6px solid #0168a1;
}

.card-paso:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.card-paso h3 {
  font-size: 1.4em;
  color: #0168a1;
  margin-bottom: 15px;
}

.formato-btn {
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  border: 2px solid transparent;
  transition: 0.3s;
}

.formato-texto {
  background-color: #d0e8ff;
  color: #0056b3;
}

.formato-destacado {
  background-color: #ffe0b3;
  color: #b35c00;
}

.formato-clasificado {
  background-color: #d6f5d6;
  color: #006600;
}

.formato-btn.selected {
  border: 2px solid #000000;
}

.input-corto {
  width: 80px;
  text-align: right;
  min-width: 60px;
  max-width: 120px;
}



/* ======= Quill Fonts ======= */
.ql-font-arial { font-family: Arial, sans-serif; }
.ql-font-bookantiqua { font-family: 'Book Antiqua', Palatino, serif; }
.ql-font-calibri { font-family: Calibri, Candara, Segoe, 'Segoe UI', Optima, Arial, sans-serif; }
.ql-font-cambria { font-family: Cambria, Georgia, serif; }
.ql-font-centurygothic { font-family: 'Century Gothic', Arial, sans-serif; }
.ql-font-couriernew { font-family: 'Courier New', Courier, monospace; }
.ql-font-franklingothic { font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif; }
.ql-font-futura { font-family: Futura, 'Trebuchet MS', Arial, sans-serif; }
.ql-font-garamond { font-family: Garamond, 'Times New Roman', Times, serif; }
.ql-font-georgia { font-family: Georgia, serif; }
.ql-font-gillsans { font-family: 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif; }

.ql-font {
  display: none !important;
}





/* -------- LOGIN MODERNO -------- */
.container-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, #ece9f6 0%, #e2f2fc 100%);
}
.login-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 30px rgba(16, 71, 117, 0.11), 0 1.5px 6px rgba(1,104,161,0.06);
  padding: 48px 38px 38px 38px;
  min-width: 350px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  position: relative;
}
.login-logo {
  width: 70px;
  margin-bottom: 16px;
  margin-top: -16px;
}
.login-card h2 {
  font-size: 2em;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #0168a1;
  letter-spacing: -1px;
}
.login-card .subtitle {
  color: #888;
  font-size: 1em;
  margin-bottom: 24px;
}
.login-card label {
  text-align: left;
  display: block;
  margin: 12px 0 6px 2px;
  font-weight: 500;
  color: #34495e;
}
.login-card input {
  width: 100%;
  padding: 11px 40px 11px 12px;
  margin-bottom: 8px;
  border: 1.3px solid #b7d2e8;
  border-radius: 8px;
  font-size: 1em;
  background: #f9fbfd;
  transition: border 0.2s;
}
.login-card input:focus {
  border-color: #0168a1;
  outline: none;
  background: #fff;
}

.login-btn {
  background: linear-gradient(90deg, #007bff 60%, #0168a1 100%);
  color: #fff;
  font-size: 1.1em;
  font-weight: 600;
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 13px 0;
  margin-top: 18px;
  box-shadow: 0 2px 10px rgba(1,104,161,0.13);
  cursor: pointer;
  letter-spacing: .5px;
  transition: background 0.18s, box-shadow 0.18s;
}
.login-btn:hover, .login-btn:focus {
  background: linear-gradient(90deg, #0168a1 60%, #0056b3 100%);
  box-shadow: 0 5px 24px rgba(1,104,161,0.17);
}
.login-links {
  margin-top: 20px;
}
.login-links a {
  color: #007bff;
  font-size: 0.97em;
  text-decoration: none;
  transition: color 0.2s;
}
.login-links a:hover {
  text-decoration: underline;
  color: #0168a1;
}
@media (max-width: 480px) {
  .login-card {padding: 30px 10px;}
}

.password-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 8px;
}
.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #888;
  font-size: 1.22em;
  cursor: pointer;
  padding: 0;
  margin: 0;
  height: 32px;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  z-index: 2;
}
.toggle-password:focus {
  outline: none;
}
.toggle-password:hover i {
  color: #0168a1;
}
.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
  padding-right: 44px !important; /* Deja lugar para el icono */
}



.logout-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 30px rgba(16, 71, 117, 0.11), 0 1.5px 6px rgba(1,104,161,0.06);
  padding: 46px 38px 38px 38px;
  min-width: 330px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  position: relative;
}
.logout-card .fa-door-closed {
  font-size: 2.5em;
  color: #007bff;
  margin-bottom: 18px;
  margin-top: 8px;
}
.logout-card h2 {
  font-size: 1.45em;
  font-weight: 700;
  color: #0168a1;
  margin-bottom: 12px;
}
.logout-card .subtitle {
  color: #666;
  font-size: 1.04em;
  margin-bottom: 28px;
}
.logout-btn {
  background: linear-gradient(90deg, #007bff 60%, #0168a1 100%);
  color: #fff !important;
  font-size: 1.05em;
  font-weight: 600;
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 12px 0;
  margin-top: 18px;
  box-shadow: 0 2px 10px rgba(1,104,161,0.13);
  cursor: pointer;
  letter-spacing: .5px;
  transition: background 0.18s, box-shadow 0.18s;
  text-decoration: none;
  display: inline-block;
}
.logout-btn:hover, .logout-btn:focus {
  background: linear-gradient(90deg, #0168a1 60%, #0056b3 100%);
  box-shadow: 0 5px 24px rgba(1,104,161,0.17);
  color: #fff !important;
  text-decoration: none;
}
@media (max-width: 480px) {
  .logout-card {padding: 30px 10px;}
}




/*------------ formato para la lista de cotizaciones ----------*/

#lista-cotizaciones table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 12px;
  font-family: 'Roboto', sans-serif;
}

#lista-cotizaciones th, #lista-cotizaciones td {
  border-bottom: 1px solid #e0e0e0;
  padding: 8px 10px;
  vertical-align: middle;
  text-align: left;
  white-space: nowrap;      /* evita salto de línea automático */
  max-width: 160px;         /* fija ancho máximo para columnas */
  overflow: hidden;         /* oculta lo que no entra */
  text-overflow: ellipsis;  /* muestra ... si el texto es largo */
}

#lista-cotizaciones th {
  background: #f8fafc;
  font-weight: 600;
  color: #1a237e;
  letter-spacing: 0.03em;
  border-bottom: 2px solid #0168a1;
}

#lista-cotizaciones td {
  background: #fff;
  font-size: 0.97em;
  color: #222;
  border-bottom: 1px solid #e6e8ee;
}

#lista-cotizaciones tr:last-child td {
  border-bottom: none;
}

#lista-cotizaciones .btn-eliminar {
  background: #e57373;
  color: #fff;
  padding: 5px 14px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 0.9em;
  transition: background 0.15s;
}
#lista-cotizaciones .btn-eliminar:hover {
  background: #b71c1c;
}

#lista-cotizaciones td:nth-child(6) {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#modalidad_tooltip {
  z-index: 9999 !important;
  position: fixed !important;
}






.menu-acordeon {
  width: 100%;
}
.menu-acordeon .acordeon-titulo {
  width: 100%;
  margin: 0 auto 6px auto;
  padding: 12px 18px;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  font-size: 1.06em;
  font-weight: 500;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.18s, color 0.18s;
  outline: none;
}
.menu-acordeon .acordeon-titulo:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}
.menu-acordeon .acordeon-flecha {
  margin-left: auto;
  transition: transform 0.18s;
}

.menu-acordeon .acordeon-contenido {
  width: 90%;
  margin: 0 auto 12px auto;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  transition: max-height 0.26s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.menu-acordeon .acordeon-contenido button {
  color: #fff;
  background: none;
  border: none;
  text-align: left;
  font-size: 1em;
  padding: 11px 20px 11px 38px;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}
.menu-acordeon .acordeon-contenido button:hover {
  background: rgba(255,255,255,0.17);
  color: #fff;
}





/* CONFIGURACION


/* Tabla de países *//* CONTENEDOR */
.tabla-paises-wrapper {
  overflow-x: auto;
  padding: 8px 0;
}

/* TABLA BASE */
.tabla-paises {
  width: 100%;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  overflow: hidden; /* respeta el border-radius */
  font-size: 14px;
  color: #111827;
}

/* CABECERA */
.tabla-paises thead th {
  position: sticky;   /* header pegado al hacer scroll */
  top: 0;
  z-index: 1;
  background: #f9fafb;
  color: #374151;
  text-align: left;
  font-weight: 600;
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

/* CELDAS */
.tabla-paises td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0f2f5;
  vertical-align: middle;
}

/* ZEBRA */
.tabla-paises tbody tr:nth-child(even) td {
  background: #fbfdff;
}

/* HOVER + CURSOR */
.tabla-paises tbody tr {
  transition: background-color .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.tabla-paises tbody tr:hover td {
  background: #eef6ff;
}

/* ENFOQUE POR TECLADO (accesible) */
.tabla-paises tbody tr:focus-within td {
  outline: 2px solid #93c5fd;
  outline-offset: -2px;
}

/* FILA SELECCIONADA (útil si marcás un activo) */
.tabla-paises tbody tr.is-selected td {
  background: #e6f0ff;
  box-shadow: inset 0 0 0 1px #bfd6ff;
}

/* ALINEACIÓN NUMÉRICA */
.tabla-paises td[data-type="number"],
.tabla-paises th[data-type="number"] {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* TRUNCAR TEXTO (aplicaló en celdas largas: <td class="is-truncate">...) */
.tabla-paises .is-truncate {
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* COMPACTA (agregá class="tabla-paises compact" si querés menos alto) */
.tabla-paises.compact td,
.tabla-paises.compact thead th {
  padding: 8px 10px;
}

/* BODY FONDO NEUTRO */
.body-paises {
  background: #f3f4f6;
}

/* BOTONES/CONTROLES DENTRO DE CELDAS: que no “rompan” el layout */
.tabla-paises td > * {
  max-width: 100%;
}

/* EVITAR DESBORDES EN INPUTS/SELECTS EN CELDA */
.tabla-paises input,
.tabla-paises select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}








/* Modal para agregar el país */
.modal-bg {
  position: fixed;
  inset: 0; /* top/right/bottom/left:0 */
  z-index: 99999;
  background: rgba(32, 80, 170, 0.18);
  display: none;                  /* se muestra como flex con JS */
  align-items: center;
  justify-content: center;
  padding: 1rem;                  /* margen interno en los bordes */
  box-sizing: border-box;
}


.modal-form {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 28px #018ed622;
  padding: 24px 22px 18px 22px;
  position: relative;
  animation: aparecer 0.2s;
  width: 100%;
  max-width: 480px;          
  max-height: 100%;          
  overflow-y: auto;          
  box-sizing: border-box;
}

/* Grid prolijo en 2 columnas */
.modal-form .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .modal-form .grid-2 {
    grid-template-columns: 1fr; /* apilar los campos en una columna */
  }
}

/* Etiquetas en columna y controles al 100% sin overflow */
.modal-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  box-sizing: border-box;       /* <- evita el desborde */
}

/* Opcional: que los inputs no hereden estilos raros de otras tarjetas */
.modal-bg .modal-form input,
.modal-bg .modal-form select {
  min-width: 0;                 /* evita ensanchamiento por contenido */
}



@keyframes aparecer {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.modal-form h3 {
  margin-top: 0;
}
.cerrar-modal {
  position: absolute;
  right: 18px;
  top: 12px;
  background: none;
  border: none;
  font-size: 1.45em;
  color: #777;
  cursor: pointer;
}
.cerrar-modal:hover {
  color: #0056b3;
}

/* Paginación */
.paginacion {
  margin: 18px 0 8px 0;
  text-align: center;
}
.paginacion a,
.paginacion span {
  display: inline-block;
  margin: 0 3px;
  min-width: 34px;
  padding: 7px 12px;
  border-radius: 8px;
  background: #ecf0f1;
  color: #0168a1;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #e0e0e0;
  transition: background 0.15s, color 0.15s;
}
.paginacion .activa {
  background: linear-gradient(90deg, #0168a1 60%, #018ed6 100%);
  color: #fff;
  border-color: #018ed6;
  pointer-events: none;
}
.paginacion a:hover {
  background: #0168a1;
  color: #fff;
}

/* Contenedor principal de países */
.card-paso-paises {
  max-width: 1200px;
  margin: auto;
  margin-top: 22px;
}

/* Formulario de búsqueda y botones */
.form-busqueda {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-bottom: 4px;
}
.form-busqueda input[type="text"] {
  max-width: 220px;
}



/* Utilidades layout */
.form-space-between { justify-content: space-between; }
.form-inline { display:flex; gap:8px; align-items:center; }
.form-actions { display:flex; gap:8px; margin-top:10px; }
.txt-center { text-align:center; }
.muted { color:#9aa4af; }

/* Logo mini en tabla */
.logo-mini {
  height: 28px; max-width: 120px; object-fit: contain;
  background: #fff; border: 1px solid #eee; border-radius: 6px; padding: 2px;
}

/* Titulitos azules dentro de tarjetas */
.title-blue { margin-bottom:8px; color:#0168a1; }

/* Grid de 2 columnas para formularios de formatos */
.grid-2 {
  display:grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 12px;
}

/* Bloque de logo en edición */
.logo-flex { display:flex; gap:16px; align-items:flex-start; flex-wrap:wrap; }
.logo-uploader { flex: 1 1 260px; }
.logo-preview { min-width:160px; }
.logo-preview-title { font-weight:600; margin:4px 0 6px; }
.logo-preview img {
  max-width:160px; max-height:90px; background:#fff;
  border:1px solid #e0e0e0; border-radius:8px; padding:6px;
}
.logo-preview-box {
  width:160px; height:90px; border:1px dashed #cbd5e1; border-radius:8px;
  display:flex; align-items:center; justify-content:center; color:#94a3b8;
}
.logo-remove { display:flex; align-items:center; gap:6px; margin-top:8px; }

/* Barra de título con botón a la derecha */
.card-titlebar {
  display:flex; justify-content:space-between; align-items:center; margin-bottom:8px;
}



/* Tooltip de modalidad */
.tooltip-modalidad {
  position: absolute;
  z-index: 99;
  min-width: 280px;
  background: white;
  border: 1px solid #b6c8e6;
  box-shadow: 0 2px 12px #aaa;
  color: #222;
  font-size: 13px;
  padding: 13px 14px;
  border-radius: 9px;
  left: 24px;
  top: 0;
}

/* Icono circular "i" de formato */
.info-formato-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: #2563eb; /* azul */
  color: white;
  font-weight: bold;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}

/* Tooltip del formato elegido */

.tooltip-formato {
  position: fixed;         
  z-index: 99999;          
  min-width: 280px;
  background: #fff;
  border: 1px solid #b6c8e6;
  box-shadow: 0 2px 12px #aaa;
  color: #222;
  font-size: 13px;
  padding: 13px 14px;
  border-radius: 9px;
}
.tooltip-formato.hidden { display: none !important; }

/* ====== TARIFARIO ====== */
.tarifario-container{margin:0 auto;padding:16px}
.tarifario-title{font-size:24px;font-weight:700;margin-bottom:10px}
.text-subtle{color:#667085}

/* Grid principal (sidebar + contenido) */
.tarifario-grid{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap:16px;
  align-items:start;
}
@media (max-width: 1024px){
  .tarifario-grid{ grid-template-columns: 1fr; }
}

/* Tarjetas */
.card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:16px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.card .muted{color:#6b7280;font-size:12px}

/* Botones / chips */
.btn{display:inline-block;padding:8px 12px;border-radius:8px;border:1px solid #d0d5dd;background:#fff;cursor:pointer}
.btn.primary{background: linear-gradient(90deg, #0168a1, #018ed6 80%)}
.btn.ghost{background: linear-gradient(90deg, #0168a1, #018ed6 80%)}
.btn:disabled{opacity:.6;cursor:not-allowed}
.flex{display:flex;gap:8px;align-items:center}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{padding:8px 12px;border-radius:999px;border:1px solid #cbd5e1;background:#f8fafc;cursor:pointer}
.chip.active{background:#0ea5e9;color:#fff;border-color:#0ea5e9}

/* Tabla */
.table{width:100%;border-collapse:collapse}
.table th,.table td{padding:10px;border-bottom:1px solid #eef2f7}
.table th{background:#f8fafc;text-align:left;font-weight:600}
.table.row-hover tbody tr:hover{background:#fafafa}
.table .actions{display:flex;gap:8px;justify-content:flex-end}

/* Buscador */
.input-search{padding:8px 10px;border:1px solid #d1d5db;border-radius:8px;width:240px}
@media (max-width: 640px){ .input-search{width:100%} }

/* Editor */
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
@media (max-width: 900px){ .grid3{grid-template-columns:1fr 1fr} }
@media (max-width: 640px){ .grid3{grid-template-columns:1fr} }
.field label{display:block;font-size:12px;color:#6b7280;margin-bottom:6px}
.field input,.field select{width:100%;padding:10px;border:1px solid #d1d5db;border-radius:8px}

/* Modal mínimo */
.modal-backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,.35);
  display:none; align-items:center; justify-content:center; z-index:50;
}
.modal{ background:#fff; width:auto; max-width:95vw; border-radius:12px; padding:16px; }
/* ESTA ES LA CLAVE */
.modal-backdrop.open { display:flex; }
/* ========================================================= */



button.btn, a.btn {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  cursor: pointer;
  user-select: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  transition: background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .04s ease;
}

/* Tamaños */
.btn--sm { padding: 6px 10px; font-size: .88rem; border-radius: 7px; }
.btn--md { padding: 10px 16px; } /* default */
.btn--lg { padding: 12px 20px; font-size: 1rem; }

/* Estados comunes */
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- Variantes ---------- */

/* PRIMARY: acciones principales (Guardar, Agregar, Continuar) */
.btn--primary {
  background: linear-gradient(90deg, #0168a1, #018ed6 80%);
  color: #fff;
  border: 1px solid #0168a1;
  box-shadow: 0 2px 8px rgba(1,104,161,0.12);
}
.btn--primary:hover { background: linear-gradient(90deg, #014e78, #0168a1 80%); }

/* SECONDARY: acciones neutras afirmativas (Editar, Volver) */
.btn--secondary {
  background: #ffffff;
  color: #0168a1;
  border: 1.5px solid #cbd5e1;
}
.btn--secondary:hover { background:#eef6ff; color:#014e78; border-color:#b6c8de; }

/* GHOST: acciones suaves (Cancelar, Cerrar modal, enlaces de poco riesgo) */
.btn--ghost {
  background: transparent;
  color: #475569;
  border: 1px solid transparent;
}
.btn--ghost:hover { background: #f1f5f9; color:#111827; }

/* DANGER: acciones destructivas (Eliminar) */
.btn--danger {
  background:#ffffff;
  color:#c62828;
  border:1.5px solid #ef9a9a;
}
.btn--danger:hover { background:#ffebee; border-color:#e57373; }

/* LINK: luce como enlace pero con padding de botón (opcional) */
.btn--link {
  background: transparent;
  color:#0168a1;
  border: 1px solid transparent;
  padding: 0; /* suele usarse sin padding */
}
.btn--link:hover { text-decoration: underline; }

/* ICON-ONLY: botón redondo para íconos (cerrar, etc) */
.btn--icon {
  width: 34px; height: 34px; padding: 0; border-radius: 50%;
  background: transparent; color:#475569; border:1px solid #e5e7eb;
}
.btn--icon:hover { background:#f8fafc; color:#111827; }



/* Toolbar alineada */
.toolbar{
  display:grid;
  grid-template-columns: 1.6fr 1.1fr 0.9fr 0.6fr; /* Buscar | Fechas | País | Acciones */
  gap:10px; align-items:end;
}
.toolbar .field{display:flex;flex-direction:column;gap:6px}
.toolbar .actions{display:flex;gap:8px;justify-content:flex-end;align-items:center}
.toolbar .btn--primary,.toolbar .btn--secondary{min-width:110px}

/* Fila extra (Usuario) a ancho completo */
.toolbar-row{display:flex;gap:8px;align-items:center;margin-top:8px}
.toolbar-row label{font-size:12px;color:#4b5563}
.toolbar-row select{max-width:340px;padding:10px;border:1px solid #b7d2e8;border-radius:8px;background:#fff}

/* Fijá altura del contenedor Quill y forzá scroll interno */
#editor.ql-container {
  height: 200px !important;      /* ajustá el valor a tu gusto */
  min-height: 200px !important;
  max-height: 200px !important;
  overflow-y: auto !important;
}

/* Asegurá que el área editable no expanda más que el contenedor */
#editor .ql-editor {
  height: 100% !important;
  min-height: 0 !important;      /* override de estilos que pongan min-height */
  overflow-y: auto !important;
  box-sizing: border-box;
}

/* Si tu grid usa align-items:stretch, mantené la altura consistente */
.grid .ql-container {
  align-self: start;
}

/* Botones "Modo de Tarifar" (sin @apply) */
.modo-btn {
  background-color: #f3f4f6;     
  padding: 0.5rem 1rem;           /* px-4 py-2 */
  border-radius: 0.5rem;          /* rounded-lg */
  border: 1px solid #d1d5db;      /* gray-300 */
  font-weight: 500;               /* font-medium */
  font-size: 0.875rem;            /* text-sm */
  line-height: 1.25rem;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  user-select: none;
}

.modo-btn:hover {
  background-color: #ecfdf5;      /* green-50 */
  border-color: #22c55e;          /* green-500 */
  color: #15803d;                 /* green-700 */
}

.modo-btn:focus-visible {
  outline: 2px solid #22c55e;     /* green-500 */
  outline-offset: 2px;
}

.modo-btn.active {
  background-color: #16a34a;      /* green-600 */
  color: #ffffff;
  border-color: #16a34a;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.35);
  transform: scale(1.03);
}

/* Grupo de acciones en la tabla */
.actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* Botón editar (gris) */
.btn--edit {
  background-color: #f3f4f6;   /* gray-100 */
  color: #111827;              /* gray-900 */
  border: 1px solid #d1d5db;   /* gray-300 */
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all .2s ease-in-out;
}
.btn--edit:hover {
  background-color: #e5e7eb;   /* gray-200 */
}

/* Botón eliminar (rojo) */
.btn--danger {
  background-color: #dc2626;   /* red-600 */
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all .2s ease-in-out;
}
.btn--danger:hover { background-color: #b91c1c; }  /* red-700 */

.btn--icon { display:inline-flex; align-items:center; gap:6px; }


.table.row-hover td, .table.row-hover th {
  padding: 4px 8px !important;
  line-height: 1.2 !important;
  vertical-align: middle !important;
}

.table.row-hover .actions button {
  padding: 2px 8px !important;
  font-size: 13px;
  line-height: 1;
}

.table.row-hover .actions {
  gap: 4px !important;
}