﻿/* ==========================================================================
   access-gray-size.css
   Tema Access (Ext.NET 2 / ExtJS 4.2.1) con los TAMAÑOS del tema Gray.
   Se conservan los colores oscuros de Access; solo se ajustan tamaños de
   letra (14-15px -> 11-12px), alturas de campos y rellenos.
   Todas las reglas van prefijadas con .x-theme-access (clase que Ext.NET pone
   en <html>): con Gray, Neptune o Default el archivo no afecta nada.
   Cargar DESPUÉS de los CSS de Ext.NET, en inicio.aspx, default.aspx y en
   cada formulario.
   ========================================================================== */

/* ---------- Texto general: 15px -> 11px ---------- */
.x-theme-access .x-body,
.x-theme-access .x-body .x-panel-body-default,
.x-theme-access .x-body .x-panel-body-default-framed,
.x-theme-access .x-body .x-window-body-default,
.x-theme-access .x-body .x-form-item,
.x-theme-access .x-body .x-form-item-label,
.x-theme-access .x-body .x-form-cb-label,
.x-theme-access .x-body .x-label,
.x-theme-access .x-body .x-label-value,
.x-theme-access .x-body .x-toolbar-text,
.x-theme-access .x-body .x-boundlist-item,
.x-theme-access .x-body .x-menu-item-text,
.x-theme-access .x-body .x-tip-body-default,
.x-theme-access .x-body .x-mask-msg-text,
.x-theme-access .x-body .x-datepicker,
.x-theme-access .x-body .x-grid-cell-inner,
.x-theme-access .x-body .x-grid-row,
.x-theme-access .x-body .x-column-header-text {
    font-size: 11px;
}

    .x-theme-access .x-body .x-form-item-label {
        line-height: 13px;
        padding-top: 4px;
    }

    /* ---------- Campos: 26px -> 22px, texto 15px -> 12px ---------- */
    .x-theme-access .x-body .x-form-text,
    .x-theme-access .x-body .x-form-field {
        font-size: 12px;
    }

    .x-theme-access .x-body .x-form-text {
        height: 22px;
        line-height: 17px;
        padding-top: 1px;
        padding-bottom: 2px;
    }

    .x-theme-access .x-body textarea.x-form-text {
        height: auto;
    }

    .x-theme-access .x-body .x-form-trigger {
        height: 22px;
    }

    /* ---------- Cabeceras de panel / ventana: 14px -> 11px ---------- */
    .x-theme-access .x-body .x-panel-header-text,
    .x-theme-access .x-body .x-window-header-text {
        font-size: 11px;
        line-height: 15px;
    }

    /* ---------- Pestañas: 14px -> 11px ---------- */
    .x-theme-access .x-body .x-tab-inner {
        font-size: 11px;
        line-height: 13px;
    }

    /* ---------- Botones: 14px -> 11px ---------- */
    .x-theme-access .x-body .x-btn-inner {
        font-size: 11px;
    }

    /* ---------- Grupos de botones (menú superior) ---------- */
    .x-theme-access .x-body .x-btn-group-header-text {
        font-size: 11px;
        line-height: 15px;
    }

    /* ---------- FieldSet ---------- */
    .x-theme-access .x-body .x-fieldset-header-text {
        font-family: tahoma, arial, verdana, sans-serif;
        font-weight: bold;
        font-size: 11px;
        line-height: 14px;
    }

    /* ---------- Grillas: encabezado 25px -> 22px, fila 21px -> 23px ---------- */
    .x-theme-access .x-body .x-column-header-inner {
        padding-top: 4px;
        padding-bottom: 5px;
    }

    .x-theme-access .x-body .x-column-header-text {
        line-height: 13px;
    }

    .x-theme-access .x-body .x-grid-cell-inner {
        line-height: 13px;
        padding-top: 3px;
        padding-bottom: 4px;
    }

/* ---------- inicio.aspx (FormPanel1) ---------- */
/* Menos separación entre Usuario/Contraseña/Recordar: el botón Iniciar entra completo */
.x-theme-access #FormPanel1 .x-fieldset .x-form-item {
    margin-bottom: 4px;
}
/* Pestaña "Acerca de": fondo gris oscuro para que el texto blanco se lea */
.x-theme-access #FormPanel1 .x-tabpanel-child .x-panel-body {
    background-color: #2b3038;
}

    .x-theme-access #FormPanel1 .x-tabpanel-child .x-panel-body a {
        color: #8fc3ff;
    }
/* Pestaña "Licencia de uso para" (la primera): fondo blanco, como el logo */
.x-theme-access #FormPanel1 .x-tabpanel-child:first-child .x-panel-body {
    background-color: #fff;
}

/* ---------- Acento: naranja de Access -> casi negro ---------- */
/* #0e1013 = pestaña activa, franja y botón presionado
   #22262c = hover, fila seleccionada, ítem resaltado en combos/menús
   #9aa3b2 = bordes (pestaña activa, botones, campo con foco)          */
.x-theme-access .x-tab-default-active,
.x-theme-access .x-tab-default-top-active,
.x-theme-access .x-tab-default-top-active .x-frame-mc {
    background-color: #0e1013 !important;
    background-image: none !important;
}

.x-theme-access .x-tab-default-top-active {
    border-color: #9aa3b2 #9aa3b2 #0e1013 !important;
}

.x-theme-access .x-tab-bar-strip-default {
    background-color: #0e1013 !important;
    border-color: #9aa3b2 !important;
}

.x-theme-access .x-btn-default-small-over,
.x-theme-access .x-btn-default-medium-over,
.x-theme-access .x-btn-default-large-over,
.x-theme-access .x-btn-default-small-focus,
.x-theme-access .x-btn-default-medium-focus,
.x-theme-access .x-btn-default-large-focus,
.x-theme-access .x-btn-default-toolbar-small-over,
.x-theme-access .x-btn-default-toolbar-medium-over,
.x-theme-access .x-btn-default-toolbar-large-over,
.x-theme-access .x-btn-default-toolbar-small-focus,
.x-theme-access .x-btn-default-toolbar-medium-focus,
.x-theme-access .x-btn-default-toolbar-large-focus {
    background-color: #22262c !important;
    background-image: none !important;
    border-color: #9aa3b2 !important;
}

.x-theme-access .x-btn-default-small-pressed,
.x-theme-access .x-btn-default-medium-pressed,
.x-theme-access .x-btn-default-large-pressed,
.x-theme-access .x-btn-default-small-menu-active,
.x-theme-access .x-btn-default-medium-menu-active,
.x-theme-access .x-btn-default-large-menu-active,
.x-theme-access .x-btn-default-toolbar-small-pressed,
.x-theme-access .x-btn-default-toolbar-large-pressed {
    background-color: #0e1013 !important;
    background-image: none !important;
    border-color: #9aa3b2 !important;
}

.x-theme-access .x-grid-row-selected .x-grid-td,
.x-theme-access .x-grid-row-selected .x-grid-cell-special {
    background-color: #22262c !important;
    background-image: none !important;
}

.x-theme-access .x-grid-row-selected .x-grid-row-summary .x-grid-td {
    border-bottom-color: #9aa3b2 !important;
}

.x-theme-access .x-boundlist-item-over,
.x-theme-access .x-boundlist-selected,
.x-theme-access .x-menu-item-active {
    background: #22262c !important;
    border-color: #9aa3b2 !important;
}

.x-theme-access .x-datepicker-selected .x-datepicker-date,
.x-theme-access .x-monthpicker-selected {
    background-color: #22262c !important;
}

.x-theme-access .x-form-focus,
.x-theme-access .x-form-trigger-over {
    border-color: #9aa3b2 !important;
}

.x-theme-access .x-progress-default .x-progress-bar-default {
    background-color: #22262c !important;
    background-image: none !important;
}

/* ---------- Grillas: casillas de selección y estados de fila ---------- */
/* Access pinta la celda de la casilla (CheckboxModel / RowNumberer) con un
   degradado casi blanco; se iguala al color de la fila. También se quitan
   el gris claro de la fila con foco y el marrón/naranja del hover. */
.x-theme-access .x-grid-cell-special {
    background-image: none !important;
    border-color: #3a4150 !important;
}

.x-theme-access .x-grid-row .x-grid-cell-special {
    background-color: #1f2933 !important;
}

.x-theme-access .x-grid-row-alt .x-grid-cell-special {
    background-color: #1a232b !important;
}

.x-theme-access .x-grid-row-focused .x-grid-td,
.x-theme-access .x-grid-row-focused .x-grid-cell-special {
    background-color: #262c35 !important;
}

.x-theme-access .x-grid-row-over .x-grid-td,
.x-theme-access .x-grid-row-over .x-grid-cell-special {
    background-color: #2c323b !important;
}

.x-theme-access .x-grid-row-selected .x-grid-td,
.x-theme-access .x-grid-row-selected .x-grid-cell-special {
    background-color: #22262c !important;
    background-image: none !important;
}

.x-theme-access .x-grid-row .x-grid-cell-selected {
    background-color: #22262c !important;
}

/* ---------- Árboles (TreePanel): texto 14px -> 11px ---------- */
/* Access fija .x-tree-node-text en 14px; la celda del árbol usa 1px/0 para
   que los íconos y líneas queden alineados (se restaura). */
.x-theme-access .x-body .x-grid-cell-inner-treecolumn {
    font-size: 1px;
    line-height: 0;
}

.x-theme-access .x-body .x-tree-node-text {
    font-size: 11px;
    line-height: 13px;
    position: relative;
    top: 2px; /* centra el texto con el ícono de carpeta/hoja */
}

/* ---------- Páginas sin Viewport (reportes .rdlc): fondo blanco ---------- */
/* Los formularios usan ext:Viewport (Ext agrega .x-viewport al <html>).
   Las páginas de reportes no lo usan: ahí se deja el fondo blanco y el
   texto negro por defecto, para que el ReportViewer se vea normal. */
html.x-theme-access:not(.x-viewport),
html.x-theme-access:not(.x-viewport) body.x-body {
    background: #fff;
    color: #000;
}

/* ---------- GroupTabPanel (ej. frmParameters): colores oscuros ---------- */
/* El componente ux trae fijos un marco azul y fondos blancos; se adaptan a Access. */
.x-theme-access .x-grouptabpanel {
    background-color: #2b3038 !important;
    border-color: #2b3038 !important;
}

.x-theme-access .x-grouptabbar .x-panel-body {
    background-color: #2b3038 !important;
}

.x-theme-access .x-grouptabcontainer {
    background-color: #3f4757 !important;
    border-color: #3a4150 !important;
}

.x-theme-access .x-grouptabbar .x-grid-cell-inner {
    color: #c9d1dc !important;
}

.x-theme-access .x-grouptabbar .x-active-group .x-grouptab {
    background-color: #3f4757 !important;
}

.x-theme-access .x-grouptabbar .x-active-group .x-grouptab-first,
.x-theme-access .x-grouptabbar .x-active-group .x-grouptab-center,
.x-theme-access .x-grouptabbar .x-active-group .x-grouptab-last {
    border-color: #3a4150 !important;
}

.x-theme-access .x-grouptabpanel .x-active-group .x-grid-cell-inner {
    color: #ffffff !important;
}
/* Opción seleccionada (ej. "Datos Generales"): acento casi negro */
.x-theme-access .x-grouptabbar .x-active-tab .x-grid-cell-inner {
    background-color: #0e1013 !important;
    color: #ffffff !important;
}

.x-theme-access .x-grouptabbar .x-grid-row-over .x-grid-td,
.x-theme-access .x-grouptabbar .x-grid-row-selected .x-grid-td,
.x-theme-access .x-grouptabbar .x-grid-row-focused .x-grid-td {
    background-color: transparent !important;
}

.x-theme-access .x-grouptabbar .x-grouptabs-corner {
    display: none !important;
}

/* ---------- Texto de mensajes (Ext.Msg / X.Msg) y DisplayField ---------- */
.x-theme-access .x-body .x-form-display-field {
    font-size: 11px;
    line-height: 14px;
}

/* ---------- Fila de totales de grillas (Summary) ---------- */
/* styloMain.css pinta la celda de totales con #f1f2f4 (gris muy claro);
   con el texto blanco de Access los totales no se veían. */
.x-theme-access .x-grid-row-summary .x-grid-cell-inner {
    background-color: #2b3038 !important;
    color: #ffffff !important;
}

/* ---------- Campos con FieldStyle "background: lightgrey" ---------- */
/* Fecha y Hora, Usuario, F-H Modificación, Usr.Modificación, etc. traen en
   el .aspx FieldStyle="background:lightgrey; border-color:white". Con el
   texto blanco de Access casi no se veían; se pasan a gris oscuro con
   texto gris claro, para que sigan viéndose como campos de solo lectura. */
.x-theme-access .x-form-field[style*="lightgrey"] {
    background: #2b3038 !important;
    color: #c9d1dc !important;
    border-color: #3a4150 !important;
}
