/* ============================================================
   Omega Brand — Header "Dirección B" (banda audaz, la O protagonista)
   Sistema de marca del Super Cerebro · Grupo Omega Saneamientos
   Namespaced .ob-* para no colisionar con los estilos de cada página.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@600;700;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root{
  --ob-azul:#003595; --ob-azul-d:#002a75; --ob-azul2:#1b4da0;
}

/* el widget de sesión que inyecta auth.js queda redundante con el "Salir" de la banda
   (este CSS solo carga en páginas con banda) → lo ocultamos para no duplicar */
#omegaLogoutWidget{display:none!important}

/* Herramienta abierta adentro del marco del panel: el encabezado ya está
   arriba, en el panel. Sin esto la banda azul aparece dos veces. */
html.ob-embed .ob-mini, html.ob-embed .ob-band { display: none !important; }

/* franja superior fina (dark) con marca + tagline */
.ob-mini{flex-shrink:0;background:var(--ob-azul-d);color:#c9d6ee;font-family:'Plus Jakarta Sans',-apple-system,sans-serif}
.ob-mini .in{max-width:1160px;margin:0 auto;padding:8px 32px;display:flex;justify-content:space-between;align-items:center;gap:14px;font-size:12px;font-weight:600}
.ob-mini b{color:#fff;font-weight:800}
.ob-mini .tag{color:#9fb4dc}

/* banda azul con la O gigante */
.ob-band{flex-shrink:0;background:linear-gradient(120deg,var(--ob-azul) 0%,var(--ob-azul2) 100%);color:#fff;position:relative;overflow:hidden;font-family:'Plus Jakarta Sans',-apple-system,sans-serif}
.ob-band .in{max-width:1160px;margin:0 auto;padding:15px 32px 17px;display:flex;align-items:center;gap:20px;position:relative;z-index:2}
.ob-band .owrap{flex-shrink:0;width:70px;height:70px;border-radius:16px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.20);display:flex;align-items:center;justify-content:center}
.ob-band .owrap img{width:48px;height:48px;object-fit:contain;filter:brightness(0) invert(1)}
.ob-band .htxt{flex:1;min-width:0}
.ob-band .kick{font-size:11px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:#b9c8e8}
.ob-band h1{font-family:'Cairo','Plus Jakarta Sans',sans-serif;font-size:25px;font-weight:900;letter-spacing:-.02em;margin:2px 0 3px;line-height:1.05;color:#fff}
.ob-band .sub{font-size:13px;color:#d5def1;max-width:560px}
.ob-band .ghost{position:absolute;right:-55px;top:-70px;width:240px;height:240px;object-fit:contain;opacity:.09;filter:brightness(0) invert(1);z-index:1;pointer-events:none}
.ob-band .acts{position:absolute;top:13px;right:32px;z-index:3;display:flex;gap:9px}
.ob-band .acts button,.ob-band .acts a{border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.09);color:#fff;border-radius:22px;padding:8px 15px;font:inherit;font-size:12.5px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;gap:6px;text-decoration:none}
.ob-band .acts button:hover,.ob-band .acts a:hover{background:rgba(255,255,255,.18)}

/* modo oscuro de la página (cubre los distintos mecanismos que usan las páginas):
   la banda se mantiene, apenas se oscurece el gradiente */
[data-theme="dark"] .ob-band, body.dark .ob-band, .dark .ob-band, body.theme-dark .ob-band{background:linear-gradient(120deg,#00224f 0%,#0a2f6b 100%)}

/* wrapper para apps con shell de columnas (sidebar + main): la banda va arriba
   full-width y el shell existente queda debajo ocupando el resto del alto */
.ob-body{display:flex;flex:1;min-height:0;overflow:hidden}
.ob-body > .sidebar, .ob-body > .main-content{height:100%!important}
@media(max-width:900px){ .ob-body{flex-direction:column;overflow:visible} }

@media(max-width:760px){
  .ob-mini .in{padding:8px 16px}
  .ob-mini .tag{display:none}
  .ob-band .in{flex-direction:row;align-items:center;gap:13px;padding:11px 108px 13px 16px}
  .ob-band .owrap{width:50px;height:50px;border-radius:13px}
  .ob-band .owrap img{width:34px;height:34px}
  .ob-band h1{font-size:20px;line-height:1.1}
  .ob-band .sub{display:none}
  .ob-band .acts{top:50%;transform:translateY(-50%);right:12px;gap:7px}
  .ob-band .acts #themeToggleText{display:none}
  .ob-band .acts button,.ob-band .acts a{padding:7px 11px;font-size:12px}
  .ob-band .acts button,.ob-band .acts a{padding:8px 12px}
}

/* ============================================================
   Sistema de iconos 3D a color + pastillas 3D (compartido)
   Namespaced .oico / .opill para no colisionar con las páginas.
   ============================================================ */
/* ── Icono 3D "app-icon" a color (glifo blanco adentro) ── */
.oico{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;position:relative;
  box-shadow:0 10px 20px -4px var(--gsh,rgba(0,0,0,.3)), inset 0 1.5px 0 rgba(255,255,255,.45), inset 0 -3px 8px rgba(0,0,0,.12)}
.oico::after{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(180deg,rgba(255,255,255,.28),transparent 45%);pointer-events:none}
.oico svg{fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 1px rgba(0,0,0,.25));position:relative;z-index:1}
/* tamaños */
.oico.sz-lg{width:56px;height:56px;border-radius:16px}.oico.sz-lg svg{width:29px;height:29px}
.oico.sz-md{width:46px;height:46px;border-radius:13px}.oico.sz-md svg{width:24px;height:24px}
.oico.sz-sm{width:34px;height:34px;border-radius:10px}.oico.sz-sm svg{width:18px;height:18px}
/* colores temáticos por área/herramienta */
.oico.g-com{background:linear-gradient(155deg,#3b82f6,#1b4da0);--gsh:rgba(27,77,160,.45)}
.oico.g-tec{background:linear-gradient(155deg,#22c55e,#12813f);--gsh:rgba(18,129,63,.45)}
.oico.g-man{background:linear-gradient(155deg,#fb923c,#ea580c);--gsh:rgba(234,88,12,.45)}
.oico.g-adm{background:linear-gradient(155deg,#34d399,#059669);--gsh:rgba(5,150,105,.42)}
.oico.g-ope{background:linear-gradient(155deg,#22d3ee,#0891b2);--gsh:rgba(8,145,178,.42)}
.oico.g-sis{background:linear-gradient(155deg,#818cf8,#4f46e5);--gsh:rgba(79,70,229,.42)}
.oico.g-tab{background:linear-gradient(155deg,#fb7185,#e11d48);--gsh:rgba(225,29,72,.42)}
.oico.g-doc{background:linear-gradient(155deg,#38bdf8,#0369a1);--gsh:rgba(3,105,161,.42)}
.oico.g-cash{background:linear-gradient(155deg,#4ade80,#16a34a);--gsh:rgba(22,163,74,.42)}
.oico.g-rojo{background:linear-gradient(155deg,#fb7185,#e11d48);--gsh:rgba(225,29,72,.42)}

/* ── Pastilla 3D "cápsula elevada" (opción 1) ── */
.opill-row{display:inline-flex;gap:9px;flex-wrap:wrap}
.opill{padding:10px 18px;border-radius:99px;font-size:13px;font-weight:700;color:#5A6373;cursor:pointer;
  background:linear-gradient(180deg,#ffffff,#eef1f7);box-shadow:0 3px 6px rgba(20,30,60,.14),inset 0 1px 0 #fff;
  border:none;font-family:inherit;transition:transform .12s,box-shadow .12s;display:inline-flex;align-items:center;gap:7px}
.opill:hover{transform:translateY(-1px);box-shadow:0 5px 10px rgba(20,30,60,.16),inset 0 1px 0 #fff}
.opill.on{color:#fff;background:linear-gradient(180deg,#2f74d8,#1b4da0);box-shadow:0 6px 14px rgba(0,53,149,.42),inset 0 1px 0 rgba(255,255,255,.4)}
[data-theme="dark"] .opill,body.dark .opill{background:linear-gradient(180deg,#2c2c2e,#232325);color:#c7ccd6;box-shadow:0 3px 6px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.06)}
[data-theme="dark"] .opill.on,body.dark .opill.on{background:linear-gradient(180deg,#2f74d8,#1b4da0);color:#fff}
