/*
 * Añadidos mínimos sobre la hoja original de nlocal (nlocal.css).
 * Solo lo que el archivo necesita y el original no traía: columnas numéricas,
 * anchos de los filtros y la paginación. Nada que cambie su aspecto.
 */

/* El original encierra los listados en una caja de 450px con scroll propio.
   Aquí se consulta, no se opera: que la tabla fluya y se desplace la página. */
.report_table { height: auto !important; overflow: visible !important; }

/* Tablas de listado: que se pueda desplazar en horizontal si no cabe */
.report_table { overflow-x: auto !important; }
.datagrid { width: 100%; }
.datagrid td, .datagrid th { padding: .5em .6em; }
.datagrid tbody tr:hover td { background-color: #eaf7ff; }

/* Columnas de números */
.datagrid th.num, .datagrid td.num { text-align: right; white-space: nowrap; }
.datagrid td.id, .datagrid th.id { text-align: right; }
.datagrid td.vacio, td.vacio { text-align: center; padding: 30px; color: #999; }

/* Flechas de ordenación: el original usa imágenes; aquí caracteres */
.datagrid th .order { width: 20px; }
.datagrid th .order a { font-size: 8px; line-height: 1 !important; color: #a8abaf; text-decoration: none; }
.datagrid th .order a.on { color: #0d95bf; }
.datagrid th .order .asc, .datagrid th .order .desc { float: none; display: block; }

/* Filtros: anchos cómodos para los campos largos y los cortos */
.report_filters .filter { padding-bottom: 10px; }
.report_filters .filter label { display: block; font-size: 11px; color: #666; margin-bottom: 3px; }
.report_filters .filter input, .report_filters .filter select { width: 170px; }
.report_filters .filter.ancho input { width: 300px; }
.report_filters .filter.estrecho input { width: 70px; }
.report_filters .btn_single_line { padding-top: 16px; }
.report_filters .btn_single_line .btn { margin-right: 6px; }

/* Buscador de la barra azul: lo coloca su propia hoja (#header_search), solo los anchos */
#header_search form input[type=text], #header_search form select { width: 230px; margin-bottom: 3px; }

/* Bloques de la ficha */
.oi_container table + table { margin-top: 14px; }
.oi_container .table_left_aligned { width: 100%; }
.oi_container .table_left_aligned th { width: 30%; color: #666; font-weight: bold; }
.mod_body .gr_fourths h4 { margin-bottom: 6px; }

/* Paginación */
.pagination { margin: 16px 0; }
.pagination a, .pagination span { display: inline-block; padding: .5em .9em; margin: 0 2px;
    border: 1px solid #e2e2e2; border-radius: 3px; text-decoration: none; color: #0d95bf; background: #fff; }
.pagination a:hover { background: #f6f6f6; }
.pagination span.current { background: #0098d9; color: #fff; border-color: #0074a6; }
.pagination span.disabled { color: #ccc; }
.pagination span.gap { border: 0; background: none; color: #999; }

/* Utilidades que el archivo usa y el original no traía con ese nombre */
.mb_10 { margin-bottom: 10px; }

/* Rejilla de filtros: los .filter ya son inline-block, esto solo los agrupa */
.filtros-rejilla { display: block; margin-bottom: 6px; }

/* Cifras del inicio */
.cifra { font-size: 26px; font-weight: bold; color: #0d95bf; line-height: 1.2; display: block; }

/* Pantalla de entrada */
.acceso { max-width: 420px; margin: 40px auto; }
.acceso .caja { border: 1px solid #e2e2e2; border-radius: 3px; background: #fff;
    padding: 26px 28px; border-bottom: 6px solid #e8e6e6; }
.acceso h1 { margin-bottom: 4px; }
.acceso .sub { color: #666; margin-bottom: 18px; }
.acceso .campo, .acceso .datagrid-filter { display: block; padding: 0 0 12px 0; }
.acceso label { display: block; font-size: 11px; color: #666; margin-bottom: 3px; }
.acceso input { width: 100%; }
.acceso .btn { width: 100%; text-align: center; }

/* Mensajes */
.aviso { border: 1px solid #e2e2e2; border-radius: 3px; padding: 10px 14px; margin-bottom: 16px;
    background: #fbe3e4; color: #8a1f11; border-color: #fbc2c4; }
.aviso.ok { background: #e6efc2; color: #264409; border-color: #c6d880; }

/* Módulos del inicio, como las cajas del menú principal de nlocal */
.mod + .mod { margin-top: 16px; }
