/* ==========================================================================
   GES.Web – estilos. Basado en Resources/css/default.css y
   Resources/Stylesheets/Default.css del sitio ASP.NET original.
   ========================================================================== */
html { height: 100%; width: 100%; }
body {
    margin: 0; padding: 0; min-height: 100%; width: 100%;
    font-family: Tahoma, Verdana, Geneva, sans-serif; font-size: 12px; color: #000;
    background: #01305A url(../img/imagenes/webPageBackground.gif);
}
a { color: #0b4f8a; }

/* ---------- Página maestra (Master1.Master) ---------- */
#ContenedorEncabezado { width: 100%; text-align: center; }
#Encabezado {
    position: relative; height: 150px; width: 100%;
    background: url(../img/imagenes/headerTopBackground.jpg) bottom center;
}
#Encabezado .logo { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 10; }
#Encabezado .usuario {
    position: absolute; right: 16px; top: 10px; color: #fff; font-size: 11px; text-align: right;
    text-shadow: 0 1px 2px rgba(0,0,0,.6);
}

.nav-container { position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; }
.nav-container.f-nav { position: fixed; top: 0; bottom: auto; }

/* Menú (antes dx:ASPxMenu, tema BlackGlass, RightToLeft) */
.menu { list-style: none; margin: 0; padding: 0 12px; display: flex; flex-direction: row-reverse; justify-content: flex-start;
    background: linear-gradient(#5a5a5a, #2a2a2a 50%, #111 51%, #333); border-top: 1px solid #777; }
.menu li { position: relative; }
.menu a { display: block; padding: 8px 18px; color: #fff; text-decoration: none; font-weight: bold; font-size: 11px; white-space: nowrap; }
.menu > li > a:hover, .menu > li.open > a, .menu > li:hover > a { background: rgba(255,255,255,.15); }
.menu ul { display: none; position: absolute; right: 0; top: 100%; min-width: 190px; list-style: none; margin: 0; padding: 2px 0;
    background: #222; border: 1px solid #555; box-shadow: 0 4px 10px rgba(0,0,0,.5); text-align: left; }
.menu ul ul { right: 100%; top: -3px; }
.menu li:hover > ul, .menu li.open > ul { display: block; }
.menu ul a { font-weight: normal; padding: 7px 14px; }
.menu ul a:hover { background: #3d6fa5; }
.menu .sub > a::after { content: ' \25B8'; }

#Contenedor { display: table; width: 100%; text-align: center; }
.Fila { display: table-row; }
.BandaIzquierda, .BandaDerecha { display: table-cell; width: 10%; }
.BandaTopIzquierda { display: table-cell; width: 25px; height: 25px; background: url(../img/imagenes/contentTopLeftBorder.gif); }
.TopContenido { display: table-cell; height: 25px; background: url(../img/imagenes/contentTopBorder.gif); }
.BandaTopDerecha { display: table-cell; width: 25px; height: 25px; background: url(../img/imagenes/contentTopRightBorder.gif); }
.BordeIzquierdo { display: table-cell; width: 25px; background: url(../img/imagenes/contentLeftBorder.gif); }
.BordeDerecho { display: table-cell; width: 25px; background: url(../img/imagenes/contentRightBorder.gif); }
#Contenido { display: table-cell; background: #fff url(../img/imagenes/contentBackground.gif); vertical-align: top; text-align: center; padding-bottom: 20px; }

/* ---------- Paneles de captura ---------- */
.CapturaContenedor { background-color: #A3C0E8; padding: 1px; text-align: left; }
.CapturaHeader { background: #dbe7f6 url(../img/TemplateTables/gvHeaderBackground.gif) repeat-x; font-size: 11px; padding: 7px 15px; color: #283b56; }
.CapturaNormal { background: #fff; padding: 10px; font-size: 11px; }
.toolbar { display: flex; gap: 10px; align-items: center; margin: 0 0 10px; flex-wrap: wrap; }
.toolbar label { font-weight: bold; }
select, input[type=text], input[type=password], input[type=number] {
    font: inherit; padding: 3px 5px; border: 1px solid #8ba0bc; border-radius: 2px; }
select { min-width: 400px; max-width: 100%; }

.home-info { text-align: left; padding: 10px 20px; font-size: 13px; line-height: 1.9; }
.home-info b { color: #0b4f8a; }
.muted { color: #666; font-size: 11px; }

/* ---------- Grid (antes ASPxGridView) ---------- */
.g-wrap { overflow-x: auto; }
.g-table { width: 100%; border-collapse: collapse; font-size: 11px; background: #fff; }
.g-table th { background: linear-gradient(#4f4f4f, #2a2a2a); color: #fff; padding: 6px 8px; text-align: left; cursor: pointer;
    border: 1px solid #1d1d1d; white-space: nowrap; user-select: none; }
.g-table th.g-cmd { cursor: default; }
.g-table td { padding: 5px 8px; border: 1px solid #d5d5d5; text-align: left; }
.g-table tr.g-alt td { background: #f3f6fa; }
.g-table tbody tr:hover td { background: #e2ecf8; }
.g-table .g-num { text-align: right; }
.g-table .g-center { text-align: center; }
.g-filter td { background: #eee; padding: 3px; }
.g-filter input { width: 100%; box-sizing: border-box; padding: 2px 4px; font-size: 11px; }
.g-group td { background: #dde5ef !important; font-size: 11px; }
.g-toggle { cursor: pointer; display: inline-block; width: 14px; color: #333; }
.g-footer td { background: #eee; font-weight: bold; }
.g-empty td { text-align: center; color: #777; padding: 14px; }
.g-cmd { white-space: nowrap; width: 1%; }
.g-link { color: #0b4f8a; margin-right: 6px; }
.g-btn { display: inline-block; padding: 3px 10px; background: linear-gradient(#fdfdfd, #dcdcdc); color: #000 !important; border: 1px solid #888;
    border-radius: 2px; text-decoration: none; cursor: pointer; font: inherit; font-weight: normal; }
.g-btn:hover { background: linear-gradient(#fff, #c8d9ee); }
.g-pager { padding: 6px 0; display: flex; gap: 3px; align-items: center; flex-wrap: wrap; font-size: 11px; }
.g-pager button { min-width: 26px; padding: 2px 6px; border: 1px solid #aaa; background: #fafafa; cursor: pointer; font-size: 11px; }
.g-pager button.cur { background: #2a2a2a; color: #fff; border-color: #2a2a2a; }
.g-pager button:disabled { opacity: .4; cursor: default; }
.g-info { margin-left: 10px; color: #555; }
.g-editrow > td { background: #f7f9fc !important; padding: 10px; }
.g-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; }
.g-field { display: flex; flex-direction: column; gap: 2px; font-weight: bold; }
.g-field input { font-weight: normal; }
.g-field.g-check { flex-direction: row; align-items: center; gap: 6px; }
.g-actions { margin-top: 10px; display: flex; gap: 12px; align-items: center; }
.g-progress { position: relative; height: 16px; background: #e5e5e5; border: 1px solid #bbb; min-width: 90px; }
.g-progress-bar { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#7fbf5f, #4e9a2e); }
.g-progress.mid .g-progress-bar { background: linear-gradient(#f4c56a, #e09a1a); }
.g-progress.low .g-progress-bar { background: linear-gradient(#ef7d7d, #c62828); }
.g-progress span { position: relative; display: block; text-align: center; line-height: 16px; font-size: 10px; }

/* ---------- Tendencias ---------- */
.tend { font-weight: bold; white-space: nowrap; }
.tend-sube { color: #2e7d32; }
.tend-baja { color: #1565c0; }
.tend-igual { color: #c62828; }
.g-table tr.row-igual td { background: #fdecea; }
.g-table tr.row-igual:hover td { background: #f9d6d2; }
.leyenda { display: flex; gap: 16px; font-size: 11px; color: #444; flex-wrap: wrap; }
.server-pager a, .server-pager span.cur { display: inline-block; min-width: 26px; padding: 2px 6px; border: 1px solid #aaa;
    background: #fafafa; text-align: center; text-decoration: none; color: #000; }
.server-pager span.cur { background: #2a2a2a; color: #fff; border-color: #2a2a2a; }
.server-pager span.dis { opacity: .4; display: inline-block; min-width: 26px; padding: 2px 6px; border: 1px solid #aaa; text-align: center; }

/* ---------- Medidores de tanques (antes ASPxGaugeControl) ---------- */
.gauges { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; padding: 10px; }
.gauge { width: 248px; text-align: center; background: #fff; border: 1px solid #ccc; padding: 10px 0;
    color: #000; text-decoration: none; transition: box-shadow .15s, border-color .15s; }
a.gauge:hover { border-color: #2d5f93; box-shadow: 0 2px 10px rgba(45,95,147,.35); }
.gauge strong { display: block; font-size: 13px; }
.gauge svg { display: block; margin: 6px auto; }

/* ---------- Ventana modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 10000; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; width: min(480px, 92vw); border: 1px solid #555; box-shadow: 0 8px 30px rgba(0,0,0,.5); text-align: left; }
.modal-title { padding: 8px 12px; font-weight: bold; font-size: 13px; color: #fff; background: #2a2a2a; }
.modal-title.is-error { background: #a32020; }
.modal-title.is-info { background: #2d5f93; }
.modal-body { padding: 16px; white-space: pre-line; font-weight: bold; font-size: 12px; }
.modal-foot { padding: 8px 12px; text-align: right; border-top: 1px solid #ddd; }

/* ---------- Login (LogIn.aspx) ---------- */
body.login { background: #01305A url(../img/Gradient.jpg) no-repeat top left; color: #fff; }
table.AllPage { height: 100vh; width: 100%; }
td.LogPanelLoginLogo { background-image: url(../img/RoundLoginPanel/logoGesLoginPanel.jpg); }
td.LogPanelEsquinaSuperiorIzquierda { background: url(../img/RoundLoginPanel/EsquinaSuperiorIzquierda.png) bottom left repeat-x; }
td.LogPanelEsquinaSuperiorDerecha { background: url(../img/RoundLoginPanel/EsquinaSuperiorDerecha.png) bottom left repeat-x; }
td.LogPanelEsquinaInferiorIzquierda { background: url(../img/RoundLoginPanel/EsquinaInferiorIzquierda.png) top left repeat-x; }
td.LogPanelEsquinaInferiorDerecha { background: url(../img/RoundLoginPanel/EsquinaInferiorDerecha.png) top left repeat-x; }
td.LogPanelBordeIzquierdoSuperior { background-image: url(../img/RoundLoginPanel/BordeIzquierdoSuperior.gif); }
td.LogPanelBordeIzquierdoInferior { background-image: url(../img/RoundLoginPanel/BordeIzquierdoInferior.gif); }
td.LogPanelBordeDerechoSuperior { background-image: url(../img/RoundLoginPanel/BordeDerechoSuperior.gif); }
td.LogPanelBordeDerechoInferior { background-image: url(../img/RoundLoginPanel/BordeDerechoInferior.gif); }
td.LogPanelBordeSuperior { background: url(../img/RoundLoginPanel/BordeSuperior.gif) bottom left repeat-x; }
td.LogPanelBordeInferior { background: url(../img/RoundLoginPanel/BordeInferior.gif) top left repeat-x; }
td.LogPanelContenidoSuperior { background-color: #9dbce8; color: #000; }
td.LogPanelContenidoInferior { background-color: #4c93d0; color: #fff; padding: 2px; }
.login-error { color: #fff; font-weight: bold; display: block; margin-top: 4px; text-align: left; white-space: pre-line; }
