
/* =================================
   REGISTRO DE LIMPIEZA - BAX
   DISEÑO CSS
================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f0f3f7;
  color: #263445;
  min-height: 100vh;
}

[hidden] {
  display: none !important;
}

.login-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: linear-gradient(90deg, rgba(9, 29, 49, .68), rgba(9, 29, 49, .38)), url("imagenes/equipo-bax.png") center center / cover no-repeat;
  background-attachment: scroll;
}

.login-card {
  background: white;
  padding: 35px;
  width: 100%;
  max-width: 420px;
  border-radius: 15px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .35);
  background: rgba(255,255,255,.96);
  text-align: center;
}

.logo {
  font-size: 45px;
  margin-bottom: 12px;
}

.login-card h1 {
  color: #173c60;
  font-size: 23px;
}

.login-card h2 {
  color: #2875aa;
  font-size: 18px;
  margin-top: 8px;
}

.login-card p {
  color: #63758a;
  font-size: 13px;
  margin: 10px 0 25px;
}

label {
  display: block;
  margin: 13px 0 6px;
  font-size: 13px;
  font-weight: bold;
}

input, select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5df;
  border-radius: 7px;
  font-size: 14px;
  background: white;
  color: #263445;
}

textarea {
  resize: vertical;
  margin-top: 5px;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid #7bb6df;
  border-color: #2875aa;
}

.header {
  background: #173c60;
  color: white;
  padding: 20px 5%;
  display: flex;
  align-items: center;
  gap: 15px;
}

.header h1 {
  font-size: 23px;
}

.header h2 {
  font-size: 17px;
  margin-top: 4px;
}

.header p {
  font-size: 12px;
  margin-top: 7px;
  color: #d9e9f5;
}

.header .logo {
  margin: 0;
}

.logout {
  margin-left: auto;
  background: #a93e3e;
  color: white;
}

.welcome {
  padding: 12px 5%;
  font-size: 14px;
  color: #40566c;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 15px 5%;
}

.stat {
  background: white;
  padding: 17px;
  border-radius: 10px;
  box-shadow: 0 2px 7px #0000000d;
  border-left: 4px solid #2875aa;
}

.stat span {
  display: block;
  font-size: 12px;
  color: #63758a;
}

.stat strong {
  display: block;
  font-size: 26px;
  margin-top: 7px;
  color: #173c60;
}

.navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px 5%;
}

.tab {
  border: none;
  padding: 12px 18px;
  border-radius: 7px;
  background: white;
  color: #173c60;
  cursor: pointer;
  font-weight: bold;
}

.tab.active {
  background: #173c60;
  color: white;
}

.panel {
  background: white;
  margin: 10px 5% 25px;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px #0000000d;
}

.panel h2 {
  color: #173c60;
  font-size: 20px;
  margin-bottom: 20px;
}

.panel h3 {
  margin: 20px 0 10px;
  color: #173c60;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
}

.btn {
  border: none;
  padding: 12px 18px;
  border-radius: 7px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 15px;
}

.btn.primary {
  background: #173c60;
  color: white;
}

.btn.primary:hover {
  background: #28618c;
}

.btn.secondary {
  background: #e8eff5;
  color: #173c60;
  border: 1px solid #cbd5df;
}

.btn.danger {
  color: #a52e2e;
}

.btn.full {
  width: 100%;
}

.message {
  margin-top: 12px;
  font-size: 13px;
  color: #267144;
}

.evidence-box {
  background: #f3f7fa;
  border: 1px dashed #7b9bb4;
  border-radius: 9px;
  padding: 15px;
  margin: 20px 0;
}

.evidence-box h3 {
  margin: 0 0 8px;
}

.evidence-box p {
  font-size: 12px;
  color: #63758a;
  margin-bottom: 10px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.preview-grid img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 7px;
}

.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.records-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.record {
  border: 1px solid #dce4eb;
  border-radius: 9px;
  padding: 15px;
  background: #fff;
}

.record h3 {
  margin: 0;
}

.record p {
  margin-top: 9px;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.record-meta {
  color: #718195;
  font-size: 12px !important;
}

.record-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.record-actions {
  display: flex;
  justify-content: flex-end;
}

.status {
  font-size: 11px;
  font-weight: bold;
  padding: 6px 9px;
  border-radius: 20px;
  background: #e8eff5;
}

.status.realizado {
  color: #207442;
  background: #e4f5e9;
}

.status.pendiente {
  color: #9a6811;
  background: #fff1d1;
}

.status.observado {
  color: #a52e2e;
  background: #fbe5e5;
}

footer {
  text-align: center;
  padding: 20px;
  color: #718195;
  font-size: 11px;
}

@media (max-width: 700px) {
  .header {
    flex-wrap: wrap;
    padding: 16px;
  }

  .header h1 {
    font-size: 17px;
  }

  .header h2 {
    font-size: 14px;
  }

  .logout {
    margin-left: 0;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 12px;
  }

  .navigation {
    padding: 12px;
  }

  .tab {
    flex: 1;
    font-size: 12px;
    padding: 10px;
  }

  .panel {
    margin: 10px 12px;
    padding: 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .login-card {
    padding: 25px 18px;
  }
}

@media print {
  body {
    background: white;
  }

  .header, .navigation, .welcome,
  .stats, .filters, .action-buttons,
  .record-actions, footer {
    display: none !important;
  }

  .panel {
    margin: 0;
    padding: 0;
    box-shadow: none;
  }

  .record {
    break-inside: avoid;
  }
}


/* ===== ANIMACIONES DE LIMPIEZA BAX ===== */
.bax-clean-scene {
  position: relative;
  width: 170px;
  height: 105px;
  margin: 0 auto 14px;
  overflow: hidden;
}
.bax-broom {
  position: absolute;
  z-index: 2;
  left: 56px;
  top: 8px;
  display: inline-block;
  font-size: 64px;
  line-height: 1.1;
  transform-origin: 55% 70%;
  animation: bax-sweep 2.5s ease-in-out infinite;
  filter: drop-shadow(0 5px 3px #183a5b20);
}
.bax-floor {
  position: absolute;
  bottom: 12px;
  left: 23px;
  right: 23px;
  height: 4px;
  border-radius: 100%;
  background: #b5d8e9;
  box-shadow: 0 3px 12px #73b3d766;
}
.bax-dust {
  position: absolute;
  z-index: 1;
  bottom: 23px;
  color: #93a8b7;
  opacity: 0;
  animation: bax-dust-fly 2.5s ease-out infinite;
}
.bax-dust-1 { left: 29px; font-size: 20px; animation-delay: 0s; }
.bax-dust-2 { left: 52px; font-size: 16px; animation-delay: .22s; }
.bax-dust-3 { left: 82px; font-size: 22px; animation-delay: .42s; }
@keyframes bax-sweep {
  0%, 100% { transform: translateX(-25px) rotate(-24deg); }
  50% { transform: translateX(27px) rotate(22deg); }
}
@keyframes bax-dust-fly {
  0%, 15% { opacity: 0; transform: translate(0, 0) scale(.6); }
  35% { opacity: .9; }
  75%, 100% { opacity: 0; transform: translate(-16px, -28px) scale(1.2); }
}
.login-card { animation: bax-card-appear .65s ease-out both; }
@keyframes bax-card-appear {
  from { opacity: 0; transform: translateY(22px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.bax-header-broom {
  display: inline-block;
  animation: bax-header-sway 3s ease-in-out infinite;
  transform-origin: center bottom;
}
@keyframes bax-header-sway {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(12deg); }
}
.btn, .tab { transition: transform .18s ease, filter .18s ease, box-shadow .18s ease; }
.btn:hover, .tab:hover { transform: translateY(-2px); filter: brightness(1.07); }
.btn:active, .tab:active { transform: scale(.98); }
@media (prefers-reduced-motion: reduce) {
  .bax-broom, .bax-dust, .bax-header-broom, .login-card { animation: none !important; }
  .btn, .tab { transition: none !important; }
}

/* Movimiento reforzado de la escoba en navegadores móviles y escritorio */
.bax-clean-scene .bax-broom {
  -webkit-animation: bax-sweep-visible 1.7s ease-in-out infinite alternate !important;
  animation: bax-sweep-visible 1.7s ease-in-out infinite alternate !important;
  will-change: transform;
}
@-webkit-keyframes bax-sweep-visible {
  from { -webkit-transform: translate3d(-38px,0,0) rotate(-30deg); }
  to { -webkit-transform: translate3d(38px,0,0) rotate(28deg); }
}
@keyframes bax-sweep-visible {
  from { transform: translate3d(-38px,0,0) rotate(-30deg); }
  to { transform: translate3d(38px,0,0) rotate(28deg); }
}
@media (prefers-reduced-motion: reduce) {
  .bax-clean-scene .bax-broom { animation: none !important; -webkit-animation: none !important; }
}

/* =====================================================
   BAX: FONDO DE LIMPIEZA Y FRASE EN EL ENCABEZADO
   Se aplica SOLO al panel tras iniciar sesión.
   ===================================================== */
#appView {
  min-height: 100vh;
  background-image: linear-gradient(rgba(233,243,250,.72),rgba(233,243,250,.78)), url("imagenes/fondo-limpieza.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
#appView .header {
  background: linear-gradient(110deg,#092744,#123e69);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px clamp(18px,5vw,75px);
}
#appView .bax-header-phrase {
  flex: 1;
  text-align: center;
  font-size: clamp(14px,1.65vw,24px);
  font-weight: 700;
  font-style: italic;
  line-height: 1.35;
  color: #fff;
  padding: 0 15px;
}
#appView .panel { background: rgba(255,255,255,.95); backdrop-filter: blur(5px); }
#appView .stat { background: rgba(255,255,255,.96); }
@media (max-width: 760px) {
  #appView { background-attachment: scroll; }
  #appView .header { flex-wrap: wrap; gap: 10px; padding: 15px; }
  #appView .bax-header-phrase { flex-basis: 100%; order: 3; font-size: 14px; }
}

/* Ajustes finales: inicio como la referencia */
#loginView.login-container { min-height: 100vh; min-height: 100dvh; background-position: center center; }
#loginView .login-card { width: min(420px, 100%); border-radius: 16px; box-shadow: 0 16px 50px rgba(0,0,0,.22); }
#loginView .bax-clean-scene { overflow: visible; }
@media(max-width:480px) { #loginView.login-container { padding: 18px; } }

/* VIDEO REAL DE FONDO EN LOGIN */
#loginView.login-container { position: relative; isolation: isolate; overflow: hidden; background: #142f49 url("imagenes/equipo-bax.png") center/cover no-repeat; }
#loginView .bax-video-fondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; pointer-events: none; }
#loginView .bax-capa-oscura { position: absolute; inset: 0; background: rgba(5,20,38,.55); z-index: -1; pointer-events: none; }
#loginView .login-card { position: relative; z-index: 1; }

/* BAX: VIDEO ALEJADO - SE VE EL ENCUADRE COMPLETO */
#loginView.login-container {
  background: #102c44 url("imagenes/equipo-bax.png") center center / cover no-repeat;
}
#loginView .bax-video-fondo {
  position: absolute;
  top: 50%; left: 50%; right: auto; bottom: auto;
  width: 100%; height: 100%;
  object-fit: contain !important;
  object-position: center center;
  transform: translate(-50%, -50%) scale(0.94);
  transform-origin: center center;
  max-width: none;
}
@media (max-width: 700px) {
  #loginView .bax-video-fondo { transform: translate(-50%, -50%) scale(0.98); }
}

/* VERSION FINAL: SOLO VIDEO, SIN FOTO NI ZOOM */
#loginView.login-container {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #102c44 !important;
  background-image: none !important;
}
#loginView .bax-video-fondo {
  position: absolute !important;
  inset: 0 !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  z-index: -2;
  pointer-events: none;
}
#loginView .bax-capa-oscura {
  background: rgba(5,20,38,.38);
}

/* BAX NUEVO VIDEO: ENCUADRE COMPLETO, SIN FOTOGRAFÍA DE FONDO */
#loginView.login-container { background: #0d2840 !important; background-image: none !important; }
#loginView .bax-video-fondo { width: 100% !important; height: 100% !important; object-fit: contain !important; transform: none !important; }
#loginView .bax-capa-oscura { background: rgba(5, 20, 38, .28) !important; }

/* ===================================================
   FONDO DE PUERTO BAX: FOTO LIMPIA, SIN VIDEO
   =================================================== */
#loginView.login-container {
  background: url("imagenes/puerto-bax-fondo.png") center center / cover no-repeat !important;
  background-color: #d5e8f6 !important;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 22px 16px;
}
#loginView .login-card {
  width: min(510px, 100%);
  padding: 28px 35px 34px;
  background: rgba(255,255,255,.97);
  border-radius: 28px;
  box-shadow: 0 18px 55px rgba(7,39,74,.23);
}
#loginView .bax-brand {
  display: flex; flex-direction: column; align-items: center;
  color: #0a305f; font-family: Arial, sans-serif;
  font-size: clamp(46px, 6vw, 65px); font-weight: 900;
  font-style: italic; letter-spacing: -4px; line-height: .92;
  margin: 0 auto 8px;
}
#loginView .bax-brand-x { color: #079bd5; }
#loginView .bax-brand small {
  font-size: 25px; font-style: normal; letter-spacing: 0;
  font-weight: 800; color: #0a305f;
}
#loginView .login-card h1 { font-weight: 800; }
#loginView .login-card h2 { color: #087fc0; }
#loginView .bax-clean-scene { margin: 4px auto 8px; }
@media(max-width: 540px) {
  #loginView.login-container { background-position: 35% center !important; }
  #loginView .login-card { padding: 24px 20px 28px; }
  #loginView .bax-brand { font-size: 49px; }
  #loginView .bax-brand small { font-size: 21px; }
}

/* Mensaje tras confirmar asistencia en Firestore */
.bax-saludo { margin: 20px 0; padding: 24px; border-radius: 14px; background: #eaf7ff; border: 1px solid #93d0f3; text-align: center; color: #163b5e; }
.bax-saludo h3 { font-size: clamp(18px, 3vw, 26px); margin: 0 0 12px; }
.bax-saludo p { margin: 8px 0; }
.bax-saludo[hidden] { display: none !important; }

/* Inicio estable: no mostrar el login mientras Firebase restaura la sesión */
#authSplash {position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;background:#0d2840;color:white;font-family:Arial,sans-serif}
#authSplash[hidden]{display:none!important}
.bax-loading{display:flex;align-items:center;flex-direction:column;gap:14px;text-align:center;padding:24px}
.bax-loading span{opacity:.75;font-size:14px}
.bax-spinner{width:38px;height:38px;border:4px solid #ffffff44;border-top-color:#40b8ee;border-radius:50%;animation:bax-spin .8s linear infinite}
@keyframes bax-spin{to{transform:rotate(360deg)}}

/* COMUNICADO GRANDE DE ASISTENCIA */
.bax-comunicado-abierto { overflow: hidden; }
.bax-comunicado-overlay[hidden] { display: none !important; }
.bax-comunicado-overlay {
  position: fixed; inset: 0; z-index: 12000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 24, 44, .78); padding: 20px;
  backdrop-filter: blur(6px);
}
.bax-comunicado-card {
  width: min(700px, 100%); max-height: 92vh; overflow-y: auto;
  background: #fff; border-radius: 24px; padding: clamp(26px, 5vw, 62px);
  text-align: center; box-shadow: 0 28px 100px rgba(0,0,0,.35);
  animation: baxComunicadoEntrada .28s ease-out;
}
.bax-comunicado-icon {
  width: 78px; height: 78px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; background: #e6f8ed;
  color: #13864b; font-size: 47px; font-weight: bold;
}
.bax-comunicado-label { letter-spacing: .2em; font-size: 12px; color: #58718c; font-weight: 800; }
.bax-comunicado-card h2 { color: #173d62; font-size: clamp(24px, 4vw, 38px); margin: 12px 0 24px; line-height: 1.2; }
.bax-comunicado-card h3 { color: #173d62; font-size: clamp(25px, 4.4vw, 42px); margin: 0 0 24px; line-height: 1.25; }
.bax-comunicado-texto { font-size: clamp(18px, 2.4vw, 24px); line-height: 1.5; color: #344b61; }
.bax-comunicado-firma { font-size: 18px; font-weight: 700; margin: 24px 0 30px; color: #173d62; }
#cerrarBaxComunicado { min-width: 210px; min-height: 50px; font-size: 16px; }
@keyframes baxComunicadoEntrada { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bax-comunicado-card { animation: none; } }

/* Chat flotante: esquina inferior derecha */
.bax-chat-toggle{position:fixed;right:20px;bottom:22px;z-index:13000;border:0;border-radius:30px;background:#17416c;color:white;padding:13px 17px;box-shadow:0 8px 26px #0004;cursor:pointer;font-weight:700}
.bax-chat-toggle[hidden],.bax-chat-panel[hidden],#baxChatSupervisorSelect[hidden]{display:none!important}
.bax-chat-toggle b{color:#ffdf55}
.bax-chat-panel{position:fixed;right:18px;bottom:82px;z-index:13000;width:min(365px,calc(100vw - 36px));height:min(510px,calc(100vh - 120px));display:flex;flex-direction:column;background:white;border-radius:16px;box-shadow:0 12px 40px #0005;overflow:hidden;border:1px solid #c9d7e5}
.bax-chat-head{display:flex;justify-content:space-between;align-items:center;background:#17416c;color:white;padding:14px 16px}
.bax-chat-head button{background:transparent;color:white;border:0;font-size:20px;cursor:pointer}
.bax-chat-select{padding:10px 12px;border-bottom:1px solid #ddd}.bax-chat-select select{width:100%}
.bax-chat-messages{flex:1;overflow-y:auto;padding:12px;background:#f4f7fb;display:flex;flex-direction:column;gap:9px}
.bax-chat-bubble{max-width:85%;padding:8px 11px;border-radius:12px;background:white;box-shadow:0 1px 3px #0002;overflow-wrap:anywhere}
.bax-chat-bubble.mine{align-self:flex-end;background:#d7edff}.bax-chat-bubble.theirs{align-self:flex-start}
.bax-chat-bubble strong{font-size:11px}.bax-chat-bubble p{margin:4px 0 0;white-space:pre-wrap}
.bax-chat-form{display:flex;gap:6px;padding:9px;border-top:1px solid #ddd}.bax-chat-form input{flex:1;min-width:0}.bax-chat-form button{padding:8px}
#baxChatStatus{padding:0 10px;margin:0;font-size:12px}
.bax-inspection{margin:12px 0}.bax-inspection p{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:480px){.bax-chat-toggle{right:12px;bottom:12px}.bax-chat-panel{right:8px;bottom:70px;width:calc(100vw - 16px)}}

/* Fotografías adjuntas a inspecciones */
.bax-inspection-gallery { margin: 14px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.bax-inspection-gallery img { width: 100%; height: 115px; object-fit: cover; border-radius: 9px; cursor: pointer; border: 1px solid #d6e1ea; }
#inspectionPhotoPreview { margin: 10px 0; }

/* Chat grupal: hora de cada mensaje */
.bax-chat-bubble small{display:block;margin-top:5px;font-size:10px;color:#5b7189;text-align:right}

/* BAX: botón y ventana de chat en el lado izquierdo (Netlify no lo tapa) */
#baxChatToggle.bax-chat-toggle { left:20px !important; right:auto !important; bottom:22px !important; }
#baxChatPanel.bax-chat-panel { left:18px !important; right:auto !important; bottom:82px !important; }
@media(max-width:480px) {
  #baxChatToggle.bax-chat-toggle { left:12px !important; right:auto !important; bottom:12px !important; }
  #baxChatPanel.bax-chat-panel { left:8px !important; right:auto !important; bottom:70px !important; width:calc(100vw - 16px) !important; }
}

/* ==================================================
   BAX — DISEÑO DEL BOCETO 20/11/2026
   ================================================== */
body{background:#f3f7fd;color:#102f53}
#appView{background:#f3f7fd!important;min-height:100vh!important;padding:0 0 0 292px!important;position:relative}
#appView::before{display:none!important}
.bax-sidebar{position:fixed;inset:0 auto 0 0;width:292px;background:linear-gradient(160deg,#092d52,#0d416e 58%,#07284b);color:white;z-index:300;display:flex;flex-direction:column;box-shadow:4px 0 25px #092a4b1b}
.bax-side-brand{text-align:center;padding:28px 12px 36px;display:flex;flex-direction:column;gap:6px}
.bax-side-brand strong{font-size:58px;font-style:italic;letter-spacing:-5px;line-height:1;font-weight:900;color:white;text-shadow:0 3px 1px #2b6595}
.bax-side-brand span{font-weight:700;font-size:17px}
.bax-side-links{display:flex;flex-direction:column;gap:10px;padding:0 10px}
.bax-side-tab{background:transparent;border:0;color:#edf5ff;text-align:left;border-radius:12px;padding:17px 19px;font-size:15px;font-weight:700;cursor:pointer}
.bax-side-tab:hover,.bax-side-tab.active{background:#1879c9;color:white}
.bax-side-bottom{margin-top:auto;text-align:center;display:flex;flex-direction:column;gap:6px;padding:24px 8px 82px;color:#c9dff5}
.bax-side-bottom span{font-size:76px}
.bax-main-area{min-height:100vh}
#appView .header{background:#f9fbff!important;color:#11365e!important;border-bottom:1px solid #d7e2ef;box-shadow:none!important;min-height:82px;display:flex;align-items:center;padding:16px 30px}
#appView .header .logo,#appView .bax-header-phrase,#appView .header h2,#appView .header p{display:none!important}
#appView .header h1{font-size:27px!important;color:#102f53!important;margin:0!important}
#appView .header .logout{margin-left:auto}
#appView .welcome{background:transparent!important;padding:14px 32px!important;color:#416485!important}
#appView .navigation{display:none!important}
#appView .stats{padding:8px 32px!important;margin:0!important}
#appView .view.panel{background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important;padding:20px 32px 60px!important;max-width:none!important}
#appView .panel h2{font-size:27px!important;color:#0b3159!important;margin:0 0 24px!important}
#appView #registerView .form-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 32px!important}
#appView label{font-size:15px!important;color:#10365d!important;margin:14px 0 9px!important}
#appView input:not([type=hidden]),#appView select,#appView textarea{border-radius:10px!important;border:1px solid #9fbadb!important;padding:14px!important;font-size:15px!important;min-height:48px}
#appView .btn.primary{background:#07518f;border-radius:11px;padding:13px 22px}
.bax-personal-greeting{display:flex;align-items:center;gap:25px;padding:30px 36px;border-radius:18px;background:linear-gradient(110deg,#e2f0ff 0%,#c8e4ff 75%,#5caff2 100%);margin-bottom:24px;box-shadow:0 2px 8px #123b6112}
.bax-personal-greeting .bax-avatar{font-size:55px;background:#f7fbff;border:8px solid white;border-radius:100%;height:112px;width:112px;display:grid;place-items:center;flex-shrink:0}
.bax-personal-greeting strong{font-size:36px;color:#0b3159}
.bax-personal-greeting p{font-size:20px;margin:8px 0}
.bax-personal-greeting small{font-size:15px;color:#24537b}
#baxChatToggle{left:20px!important;right:auto!important;bottom:20px!important;z-index:500!important}
#baxChatPanel{left:20px!important;right:auto!important;z-index:500!important}
@media(max-width:850px){
 #appView{padding-left:0!important}
 .bax-sidebar{position:relative;width:100%;height:auto;min-height:0;display:block}
 .bax-side-brand{padding:12px;flex-direction:row;align-items:center;justify-content:center}
 .bax-side-brand strong{font-size:33px;letter-spacing:-2px}
 .bax-side-links{display:flex;flex-direction:row;overflow-x:auto;padding:8px 12px}
 .bax-side-tab{white-space:nowrap;padding:12px}
 .bax-side-bottom{display:none}
 #appView .header{min-height:65px;padding:12px 18px}
 #appView .header h1{font-size:19px!important}
 #appView .view.panel{padding:16px!important}
 .bax-personal-greeting{padding:16px;gap:14px}
 .bax-personal-greeting .bax-avatar{height:65px;width:65px;font-size:33px;border-width:4px}
 .bax-personal-greeting strong{font-size:25px}
 .bax-personal-greeting p{font-size:14px}
 #appView #registerView .form-grid{grid-template-columns:1fr}
}
