.jmrey-ns {
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    background: #ffffff;
}
.jmrey-ns .font-serif {
    font-family: 'Playfair Display', 'Times New Roman', serif;
}

/* Nuevo alcance: mismas familias y pesos que la maqueta */
.jmrey-nuevo-alcance {
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    background: #ffffff;
}
.jmrey-nuevo-alcance .font-serif,
.jmrey-nuevo-alcance h1,
.jmrey-nuevo-alcance h2 {
    font-family: 'Playfair Display', 'Times New Roman', serif;
}
.jmrey-ns button[type=submit] {
    background: #000000;
    color: #ffffff;
    border: none;
}
.jmrey-ns button[type=submit]:hover {
    background: #111111;
}
.jmrey-ns button[type=submit]:disabled {
    background: #f5f5f5;
    color: #cbd5e1;
    cursor: not-allowed;
}
.jmrey-ns textarea,
.jmrey-ns input,
.jmrey-ns button {
    font-family: inherit;
}

/* Textarea: fondo blanco, sin gris en focus, subrayado negro al enfocar */
.jmrey-ns textarea#request-details {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    outline: none;
    box-shadow: none;
}
.jmrey-ns textarea#request-details:focus {
    border-color: #111111;
    outline: none;
    box-shadow: none;
}

/* Nuevo alcance: inputs y textareas con mismo comportamiento */
.jmrey-nuevo-alcance .jm-input {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: none;
    outline: none;
}
.jmrey-nuevo-alcance .jm-input:focus {
    background: #ffffff;
    border-color: #111111 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Lista de archivos: líneas separadoras */
.jmrey-ns #jm-file-list {
    border-top: 1px solid #f1f1f1;
    border-bottom: 1px solid #f1f1f1;
}
.jmrey-ns #jm-file-list li {
    border-bottom: 1px solid #f5f5f5;
}
.jmrey-ns #jm-file-list li:last-child {
    border-bottom: none;
}

/* Truncado de nombres de archivo para evitar desbordes */
.jmrey-ns #jm-file-list p.text-sm {
    max-width: 500px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Alcance (lectura y formulario) comparten estilos base */
.jmrey-alcance .truncate,
.jmrey-nuevo-alcance .truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ficha de alcance: mismas familias que la maqueta */
.jmrey-alcance {
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    background: #ffffff;
}
.jmrey-alcance .font-serif,
.jmrey-alcance h1,
.jmrey-alcance h2 {
    font-family: 'Playfair Display', 'Times New Roman', serif;
}


/* Utilidad line-clamp (por si el plugin de Tailwind no carga) */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* Ajustes tabla lista solicitudes para que solo se vea la línea inferior */
.jmrey-alcance #jm-table-solicitudes th,
.jmrey-alcance #jm-table-solicitudes td {
    border: none !important;
}
.jmrey-alcance #jm-table-solicitudes thead tr {
    border: none;
}
.jmrey-alcance #jm-table-solicitudes {
    border: 0 !important;
    border-top: 0 !important;
    border-spacing: 0;
    border-collapse: collapse;
}
.jmrey-alcance #jm-table-solicitudes tbody tr {
    border-bottom: 1px solid #e6e6e6;
}
.jmrey-alcance #jm-table-solicitudes tbody tr:last-child {
    border-bottom: 1px solid #e6e6e6;
}

/* Buscador plano para lista de solicitudes */
.jmrey-alcance .search-flat input {
    background: transparent !important;
    border: 0;
    border-bottom: 1px solid #d1d5db;
    box-shadow: none !important;
    border-radius: 0;
}
.jmrey-alcance .search-flat input:focus {
    background: transparent !important;
    border-color: #000000;
    outline: none;
    box-shadow: none !important;
}
.jmrey-alcance .search-flat .material-symbols-outlined {
    color: #9ca3af;
}
.jmrey-alcance .search-flat:focus-within .material-symbols-outlined {
    color: #000000;
}

/* Botón eliminar: texto plano alineado a la derecha, sin fondo en hover */
.jmrey-ns #jm-file-list button[data-idx] {
    background: none;
    border: none;
    padding: 0;
    color: #9ca3af;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
}
.jmrey-ns #jm-file-list button[data-idx]:hover {
    color: #d92c2c;
    background: none;
    text-decoration: none;
    box-shadow: none;
}

/* Nuevo alcance: lista de archivos con líneas y truncado */
.jmrey-nuevo-alcance #jm-file-list-alcance {
    border-top: 1px solid #f1f1f1;
    border-bottom: 1px solid #f1f1f1;
}
.jmrey-nuevo-alcance #jm-file-list-alcance li {
    border-bottom: 1px solid #f5f5f5;
}
.jmrey-nuevo-alcance #jm-file-list-alcance li:last-child {
    border-bottom: none;
}
.jmrey-nuevo-alcance #jm-file-list-alcance p.text-sm {
    max-width: 500px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.jmrey-nuevo-alcance #jm-file-list-alcance button[data-idx] {
    background: none;
    border: none;
    padding: 0;
    color: #9ca3af;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
}
.jmrey-nuevo-alcance #jm-file-list-alcance button[data-idx]:hover {
    color: #d92c2c;
    background: none;
    text-decoration: none;
    box-shadow: none;
}

/* Botón guardar valoración visible siempre */
.jmrey-nuevo-alcance button[type=submit] {
    background: #000000;
    color: #ffffff;
    border: none;
}
.jmrey-nuevo-alcance button[type=submit]:hover {
    background: #111111;
}
.jmrey-nuevo-alcance button[type=submit]:disabled {
    background: #f5f5f5;
    color: #cbd5e1;
    cursor: not-allowed;
}

/* Tarjeta de validación (alcance) botones visibles siempre */
.jmrey-alcance .action-card button {
    background: #111827;
    color: #ffffff;
    border: none;
}
.jmrey-alcance .action-card button:hover {
    background: #0f172a;
}
.jmrey-alcance .action-card button.secondary {
    background: #ffffff;
    color: #111827;
    border: 1px solid #d1d5db;
}
.jmrey-alcance .action-card button.secondary:hover {
    background: #f8f9fb;
}

table, td, th{
    border: 1px solid rgba(0, 0, 0, .1);
}
/* Nuevo alcance: lista de archivos con líneas y truncado */
table, td, th{
    border: none !important;
    border-top: 1px solid #f1f1f1 !important;
    border-bottom: 1px solid #f1f1f1 !important;
}
