
/* CSS 3 vertical dots*/
.menu-points {
  margin-top:-9px;
  display: flex;
  flex-direction: column; /* Puntos verticales */
  gap: 4px; /* Espacio entre puntos */
  cursor: pointer;
  padding: 10px;
  float:right;
}

.menu-points span {
  width: 5px;
  height: 5px;
  background-color: #fffafa;
  border-radius: 50%; /* Hace los puntos circulares */
}

.btn-plus {
  width: 26px;
  height: 26px;
}

.btn-plus {
  background: #111b21;
  color: white;
  opacity:.6;
  font-size:22px;
  border:0px;

  cursor: pointer;
}

#sys-btn-control {
position: relative;
display:flex;
left: -1px;
width:auto;
}

.screen-mode {
  margin-top:1px;
  cursor: pointer;
  width: 26px;
  height: 26px;
  background-color:transparent;
  border:solid 0px;
  float:left;
}

/* =========================================
   BASE GLOBAL
   ========================================= */

html, body {
 /* height: 100%;*/
  margin: 0;
  overflow: hidden;
  background: #efeae2; /* mismo color del content */
}

html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #efeae2; /* mismo color del content */
}



/* =========================================
   LAYOUT PRINCIPAL
   ========================================= */

.global-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

.global-overlay.hidden {
  display: none;
}

/* =========================================
   SIDEBAR (SYSTEM COLUMN)
   ========================================= */
.app-layout {
  display: flex;
  width: 100%;
  height: 100vh;
  background-color: #101828;
}

/* COLUMNA IZQUIERDA */

.system-column {
 width: 280px; min-width: 0; /* 🔥 ESTA ES LA CLAVE */
 display: flex; /* ya lo es */ 
 flex-direction: column;/* correcto */ 
 flex-shrink: 0;
 overflow: hidden;
 transition: width 0.3s ease; 
 background: #111b21;
 color: #fff;

}

/* =========================================
   CONTENIDO PRINCIPAL
   ========================================= */

/* COLUMNA DERECHA */
.app-layout.content-overlay .content-column {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;      /* por encima de la izquierda */
}

#toggleSidebar {
  background-color:#111b21;
  border:0;
  color: blue;
  font-size: 19px;
}

#toggleSidebar.open .arrow {
  transform: rotate(180deg);
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Contenido principal */

.content-column {
  flex: 1;
  background-color: inherit;
  border-left: 1px solid #1D293D; /* Grosor, estilo, color */
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

/* =========================================
   AUXILIAR
   ========================================= */

#bodyer {
  position: absolute;     /* ok para layout interno */
  top:1px;
  left:1px;

  overflow: visible;      /* 🔑 NO cortar overlays */
  width: 100%;
  height:100%;
  background-color:transparent;
}

/* =========================================
   MOBILE (SIN SIDEBAR)
   ========================================= */

@media (max-width: 768px) {
  .system-column {
    display: none;
  }
}

.system-topbar {
  height: 56px;
  padding: 12px;
  background: #111b21;
  border-bottom: 1px solid #222;
}

.system-topbar-menu {
  margin-top:8px;
  margin-left:200px;
}


/* DERECHA */

.contact-topbar {
  height: 56px;
  padding: 12px;
  background: #fff;
  border-bottom: 1px solid #ccc;
}

 /* tabs */
.tabs {
  margin-top : -10px;
  display: flex;
  background: #101828;
  color :#E5E5E5;
  border-bottom: 1px solid #444444;
  height: 40px;
}

.tabs button {
  flex: 1;
  padding: 12px;
  border: none;
  background: #101828;
  color: #99A1AF;
  cursor: pointer;
}

.tabs .active {
  border-bottom: 3px solid #075e54;
  font-weight: bold;
}

.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #8696a0;
    background-color: #101828;
    font-size: 14px;
}

/* tabs */
.tab-content {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  background-color: #101828;
}

.tabs {
    background-color: transparent;
}

.tabs .tab {
    color: #9fb0ba;
}

.tabs .tab.active {
    color: #e9edef;
    border-bottom: 2px solid #00a884;
}


/*  contact-item  */

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
}

.contact-item:hover {
  background: rgba(255,255,255,0.05);
}

.contact-item.active {
  background: #2a3942;
}

.avatar {
  width: 36px;
  height: 36px;
  background: #555;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info {
  flex: 1;
}

.contact-info .name {
  font-size: 14px;
  font-weight: 500;
}

.contact-info .last {
  font-size: 12px;
  color: #aaa;
}

.meta {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.status.online {
  width: 8px;
  height: 8px;
  background: #4caf50;
  border-radius: 50%;
  margin-bottom: 4px;
}

.menu {
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
}

/* =========================
   SIDEBAR
   ========================= */

.sidebar {
  margin-top:0px;
  flex: 1;
  overflow-y: auto;
  background-color: #111b21;
  color: #e9edef;
  z-index:9;
}

/* =========================
   LISTAS (contactos y grupos)
   ========================= */
.contacts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top:20px;
}


/* =========================
   ITEM (li)
   ========================= */
.contact {
    padding: 0; /* el padding vive en el link */
}

/* =========================
   LINK INTERACTIVO
   ========================= */
.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 6px 10px;
    border-radius: 8px;

    color: #e9edef;
    text-decoration: none;
}

.contact-link:hover {
    background-color: #1f2c33;
}


/* =========================
   AVATAR
   ========================= */
.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;

    background-color: #2a2f32;
}


/* =========================
   TEXTO
   ========================= */
.contact-text {
    width:100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-name {
    width:100%;
    font-size: 16px;
    font-weight: 500;
    color: #e9edef;
    line-height: 1.2;
}

.contact-last {
    font-size: 13px;
    color: #8696a0;
    line-height: 1.2;
    margin-top: 2px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================
   VARIANTES
   ========================= */

/* contacto propio */
.contact-self {
    font-size: 12px;
    color: #8696a0;
    margin-left: 4px;
}

/* grupos (misma UI, otro concepto) */
.contact.group .contact-last {
    font-style: italic;
}



/*topbar contacto */

.contact-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background-color: #111b21;
    border-bottom: 1px solid #2a3942;
}

.topbar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.topbar-text {
    font-size: 19px;
    font-weight: 500;
    color: white;
}

.status {
    font-size: 13px;
    color: #8696a0;
}

.muted {
    color: #8696a0;
}


.contact-topbar {
    padding: 4px 12px;
    min-height: 30px;
}

.topbar-avatar {
    width: 28px;
    height: 28px;
}

.topbar-name {
    font-size: 19px;
    font-weight: 600;
    color: #D1D5DC;
}

.quick-panel.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;   /* 🔴 ESTA LÍNEA ES CLAVE */
}

#quick-panel {
    position: absolute;
    top: 62px;
    left: 242px;
    width: 240px;
}

.system-search input {
  position:absolute;
  left:10px;
  top:56px;
  width: 250px;
  padding: 9px 14px;
  border-radius: 999px;
  border: solid 1px orange;;
  outline: none;
  background: #111827;
  color: #ffffff;
  font-size: 12px;
  margin-bottom:10px;
  flex-grow: 1;
  border: none;
  outline: none; /* Remove default focus outline */
  padding: 8px 10px;
  border-radius: 50px; /* Pill-shaped input field */
  font-size: 14px;
  background: #202929; /* White background for the input area */
  padding-left: 40px; /* Space for the search icon */
  z-index:10;
}

.system-search input::placeholder {
  color: #9ca3af;
}
/* error  modal */
.form-error {
  margin-top: 6px;
  font-size: 13px;
  color: #f15c6d; /* rojo suave */
}

.form-error.hidden {
  display: none;
}

.input-error {
  border: 1px solid #f15c6d !important;
}

/* modal sent */

.sent-item {
  padding: 10px;
  border-bottom: 1px solid #2a3942;
}

.sent-name {
  font-size: 14px;
  font-weight: 500;
  color: #e9edef;
}

.sent-meta {
  font-size: 12px;
  color: #8696a0;
}

.error {
  color: #f15c6d;
}

.muted-sent {
  color: #8696a0;
}

.sent-item {
  padding: 10px;
  border-bottom: 1px solid #2a3942;
}

.sent-name {
  font-size: 14px;
  font-weight: 500;
  color: #e9edef;
}

/* Estado general */
.sent-status {
  font-size: 13px;
  font-weight: 400;
  margin-left: 6px;
}

/* Colores por estado */
.sent-pendiente {
  color: #8696a0; /* gris */
}

.sent-aceptada {
  color: #25d366; /* verde */
}

.sent-rechazada {
  color: #f15c6d; /* rojo */
}

.sent-cancelada {
  color: #f0a500; /* naranja */
}


/* own user on list contact */

.contact-self {
    font-size: 12px;
    color: #8696a0;
    margin-left: 4px;
}

.avatar-wrapper {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-fallback {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
}

.hidden {
  display: none !important;
}

/* modal  group */ 

.modal-group {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
}

.modal-group-content {
  background: #fff;
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* iframe  dashboard  wr */ 

.dashboard-wrapper {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  gap: 10px;
}

/* Barra superior */
.dashboard-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 6px;
}

/* Controles */
.dashboard-controls {
  margin-left:10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cfd8dc;
  font-size: 13px;
  background-color:#120F0F;
  opacity:0;
}

/* Zona del iframe */
.dashboard-canvas {
  display: flex;
  justify-content: flex-start; /* 👈 NO center */
  padding-left: 12px;
  padding-top: 6px;
}

/* Iframe */
#dashboardFrame {
  margin-top:-50px;
  width: 420px;
  height: 620px;
  border: 1px solid #2a3a44;
  border-radius: 10px;
  background: #000;
}

.dashboard-canvas {
  display: flex;
  justify-content: flex-start;
  padding-top: 12px;
  padding-left: 24px;
}

.dashboard-frame-wrapper {
  transform-origin: top left;
}


/* ===== MODAL BASE ===== */
.dashboard-modal, #dashboard-modal {
  position: fixed;
  inset: 0;
  z-index: 9995;

  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent; /* 🔑 clave */
}


/* ===== CONTENEDOR ===== */
.dashboard-modal .modal-content {
  background: #0f172a; /* 👈 MÁS CLARO */
  color: #e9edef;

  width: 420px;
  max-width: 92%;
  margin: 0 auto;
  padding: 18px;

  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);

  box-shadow:
    0 25px 60px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.06);
}


/* ===== HEADER ===== */
.dashboard-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.dashboard-modal .modal-title {
  font-size: 15px;
  font-weight: 600;
}

.dashboard-modal .modal-close {
  cursor: pointer;
  font-size: 18px;
  opacity: .7;
}

.modal-close:hover {
  color:#007a63;
}
.dashboard-modal .modal-close:hover {
  opacity: 1;
}

/* ===== BODY ===== */
.dashboard-modal .modal-body {
  font-size: 14px;
}

/* ===== FOOTER ===== */
.dashboard-modal .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.dashboard-modal .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.dashboard-modal label {
  font-size: 13px;
  margin-bottom: 4px;
  color: #9fb3c8;
}

.dashboard-modal input,
.dashboard-modal select {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #2a3b47;
  background: #020a12;
  color: #e9edef;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  background: #020a12;
}

.dashboard-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.dashboard-modal-footer button {
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

#saveDashboard {
  background: #0ea5e9;
  color: #fff;
}

#cancelDashboard {
  background: #1f2937;
  color: #e9edef;
}
.dashboard-modal-content {
  width: 420px;
  max-width: 92%;
  background: #0f1720;
  border-radius: 12px;
  padding: 16px 18px;
  color: #e9edef;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

@media (max-width: 640px) {
  .dashboard-modal {
    max-width: 100%;
    height: 100%;
    border-radius: 0;
  }
}


/* NEW WR DBoard */
.wr-views-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.wr-view-item {
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  background: #111;
}

.wr-view-item.active {
  outline: 2px solid #3b82f6;
}

.wr-view-thumb {
  font-size: 32px;
  margin-bottom: 6px;
}

.wr-view-title {
  font-size: 13px;
}

/**/

.main-column {
  flex: 1;
  transition: all 0.25s ease;
}

.layout {
  display: flex;
  width: 100%;
  height: 100vh;
}



@media (max-width: 768px) {
  .system-column {
    display: none;
  }
}


/* ===== REQUEST MODAL ===== */
#request-modal {
  position: fixed;
  inset: 0;
  z-index: 9999; /* por encima del global-overlay */

  display: flex;
  align-items: center;
  justify-content: center;
}

#request-modal.hidden {
  display: none;
}

/* ===== CONTENIDO INTERNO ===== */
#request-modal > .modal {
  width: 420px;
  max-width: 92%;

  background: #0b1117;
  color: #e9edef;

  border-radius: 14px;
  padding: 18px;

  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

#pre-contact-modal {
  position: fixed;
  inset: 0;
  z-index: 9999; /* por encima del global-overlay */

  display: flex;
  align-items: center;
  justify-content: center;
}

#sent-modal {
  position: fixed;
  inset: 0;
  z-index: 9999; /* por encima del global-overlay */

  display: flex;
  align-items: center;
  justify-content: center;
}

#create-group-modal {
  position: fixed;
  inset: 0;
  z-index: 9999; /* por encima del global-overlay */

  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: #007a63;
}

.btn-primary:hover {
  background: #007a63;
}

.btn-secondary:hover {
  color: #e9edef;
  background: rgba(255,255,255,0.05);
}


/* MODAL */
.modal {
  background: #111b21;
  color: #e9edef;
  width: 420px;
  max-width: 90%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  animation: modalFade 0.2s ease;
}

.modal-wrapper {
  position: fixed;
  inset: 0;                 /* top:0 right:0 bottom:0 left:0 */
  display: flex;
  align-items: center;      /* centro vertical */
  justify-content: center;  /* centro horizontal */
  z-index: 9996;
}

.contact-name {
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-state.actives {
  margin-left: auto;
  font-size: 8px;
  color: #90EE90;
  opacity: 0.5;
}

.group-contact-state.actives {
  margin-left: auto;
  font-size: 8px;
  color: #90EE90;
  opacity: 0.5;
}

.contact-state.pending {
  margin-left: auto;
  font-size: 10px;
  color: red;
  opacity: 0.7;
}

.group-contact-state.pending {
  margin-left: auto;
  font-size: 10px;
  color: red;
  opacity: 0.7;
}

.contact-state {
  margin-left: 6px;
  font-size: 10px;
  opacity: 0.7;
}

.contact-state.state-active {
  color: #3ecf8e;
}

.contact-state.state-pending {
  color: #f2c94c;
}

/* Estilo base para el punto junto al nombre */
.contact-state.actives {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 8px; /* Separación sutil del nombre */
    vertical-align: middle;
}

/* REALIDAD: ONLINE (Verde brillante) */
.contact-state.actives.is-online {
    background-color: #2ecc71;
    box-shadow: 0 0 6px #2ecc71;
    border: 1px solid rgba(255,255,255,0.2);
}

/* REALIDAD: OFFLINE (Gris apagado) */
.contact-state.actives.is-offline {
    background-color: #555; /* Gris oscuro para que no resalte */
    box-shadow: none;
    opacity: 0.5;
}
/* Forzamos que el nombre ocupe todo el espacio disponible */
.contact-name {
    display: flex !important;
    align-items: center;
    width: 100%; /* Ocupa todo el ancho del contact-text */
}

.name-text {
    flex-grow: 1; /* Empuja todo lo que sigue hacia la derecha */
    display: flex;
    align-items: center;
}

/* El contenedor de los puntos se ancla a la derecha */
/* El contenedor se mantiene alineado a la derecha */
/* Contenedor de estados */
.status-container {
    margin-right: -5px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding-right: 2px;
}

/* Base del LED: más pequeño y opaco por defecto */
.contact-state.actives {
    width: 3px !important;  /* Bajamos a 5px para más finura */
    height: 3px !important;
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.4; /* Opacidad base para todos */
    transition: all 0.4s ease;
}

/* REALIDAD ONLINE: Aumentamos opacidad y damos un brillo suave */
.contact-state.actives.is-online {
    background-color: #2ecc71;
    opacity: 0.9; /* Casi sólido pero con un toque de transparencia */
    box-shadow: 0 0 5px rgba(46, 204, 113, 0.5); /* Brillo más difuso */
}

/* REALIDAD OFFLINE: Muy opaco para que no llame la atención */
.contact-state.actives.is-offline {
    background-color: #ffffff; 
    opacity: 0.15; /* Apenas visible, como un rastro */
    box-shadow: none;
}

/* LED de Notificación: lo hacemos coherente con la opacidad */
.notification-led {
    width: 3px !important;
    height: 3px !important;
    opacity: 0.8;
}
/* modal dashboard agregar links  */

.form-text.text-muted {
  color: #96c9d0;
  font-size: 14px;
  font-style: italic;
}

#wr-viewer-frame{
 border:0;
 overflow : hidden;
}

/* modal index */

.quick-panel {
    position: fixed;
    top: 56px;              /* debajo de la topbar */
    left: 16px;
    width: 240px;

    background: #111b21;
    border: 1px solid #2a3942;
    border-radius: 12px;
    padding: 8px 0;

    box-shadow: 0 8px 24px rgba(0,0,0,0.4);

    /* animación */
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;

    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 5000;
}

/* visible */

/* botones */
.quick-action {
    width: 100%;
    background: none;
    border: none;
    color: #e9edef;
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
}

.quick-action:hover {
    background: #1f2c33;
}

/* DUPLEX */
.dot {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    transition: background-color 0.3s ease;
    z-index:2;
}

.is-online { 
    background-color: #2ecc71; /* Verde esmeralda */
    box-shadow: 0 0 8px #2ecc71;
    animation: pulse-green 2s infinite;
}

.is-offline { 
    background-color: #e74c3c; /* Rojo alizarina */
}

/* Estado: Buscando conexión (Amarillo) [cite: 2026-01-05] */
.is-connecting {
    background-color: #f1c40f; /* Amarillo Ambar */
    box-shadow: 0 0 5px #f1c40f;
    animation: pulse-yellow 1.5s infinite ease-in-out;
}

@keyframes pulse-yellow {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}


/* --- ESCUDO DE VIGILANCIA (Vigilante Shield) --- */

.vigilante-shield {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.95); /* Azul muy oscuro y profundo */
    backdrop-filter: blur(12px);      /* Desenfoque elegante */
    z-index: 99999;                   /* Por encima de todo */
    color: #f8fafc;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* DISPARADOR: Activación por JS */
body.is-disabled .vigilante-shield {
    display: flex;
}

.shield-content {
    animation: shield-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.shield-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

/* Estado del Punto: Bloqueo Administrativo */
.dot.is-partial {
    background-color: #e67e22; 
    box-shadow: 0 0 12px #e67e22;
    animation: pulse-restricted 2s infinite ease-in-out; /* Un pulso lento de advertencia */
}

/* Animaciones de rastro visual */
@keyframes shield-pop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes pulse-restricted {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* style.css [cite: 2026-01-05] */

.shield-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-shield {
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
    background: #3b82f6; /* Azul corporativo */
    color: white;
}

.btn-shield.secondary {
    background: transparent;
    border: 1px solid #475569;
}

.btn-shield:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}


/* ==========================================================================
   TKS-OlyLSB: Sidebar Estilo WhatsApp Dark
   ========================================================================== */

#TKS-OlyLSB {
    position: fixed; /* Cambiado a fixed para asegurar visibilidad sobre todo */
    top: 0;
    left: 0;
    width: 279px; 
    height: 100vh;
    background-color: #111b21;
    color: #e9edef;
    z-index: 5; /* Z-index alto para que no lo tape el dashboard */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
    border-bottom:white;
}

#TKS-OlyLSB.is-hidden {
    transform: translateX(-100%);
}


/* ==========================================================================
    1. HEADER (TKS-Header) - Ajuste de Altura
   ========================================================================== */
/* ==========================================================================
    TKS-Header: Flecha de Retorno Robusta (Estilo WhatsApp)
   ========================================================================== */
.TKS-Header {
    height: 71px; /* Altura compacta [cite: 2026-01-05] */
    background-color: #111b21;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom:1px solid  gray;
}

/* El botón contenedor con círculo apenas visible */
.TKS-Header button {
    background-color: rgba(0, 0, 0, 0.1); /* Fondo oscuro sutil */
    border: none;
    color: #e9edef; /* Blanco roto para que resalte más */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-top: 2px;
    margin-left:-14px;
    padding: 0;
    transition: background 0.2s ease;
}

.TKS-Header button:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

/* Ajuste de grosor para la flecha SVG */
.tks-back-icon {
    width: 24px;
    height: 24px;
    stroke-width: 2.5; /* Aumentado para que no se vea fina */
    display: block;
}

/* Título en la parte inferior del header */
#tks-oly-titulo {
    font-size: 1.1rem;
    font-weight: 500;
    color: #e9edef;
    margin-bottom: 5px;
    margin-left: 5px;
}

/* Regla 50+ compacta [cite: 2025-12-30] */
#TKS-OlyLSB.LC-compact .TKS-Header {
    height: 75px;
}

#TKS-OlyLSB.LC-compact .tks-green-circle {
    width: 38px;
    height: 38px;
}

/* --- BODY (Scrollable) --- */
.group-contact-sidebar-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Buscador */
.tks-search-wrapper {
    padding: 10px 15px;
    background-color: #111b21;
    flex-shrink: 0;
}

.tks-search-bar {
    background-color: #202c33;
    border-radius: 8px;
    padding: 5px 15px;
}

.tks-search-bar input {
    background: transparent;
    border: none;
    color: #d1d7db;
    padding: 8px 0;
    width: 100%;
    outline: none;
}

/* Botón Nuevo Contacto (Estilo WhatsApp) */
.tks-action-row {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.tks-action-row:hover {
    background-color: #202c33;
}

.tks-green-circle {
    width: 45px;
    height: 45px;
    background-color: #00a884;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

/* Lista de Contactos */
.tks-standard-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-contact-row {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
}

.modal-contact-row:hover {
    background-color: #202c33;
}

.modal-contact-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

/* Reglas Especiales */
#TKS-OlyLSB.LC-compact .modal-contact-avatar,
#TKS-OlyLSB.LC-compact .tks-green-circle {
    width: 35px;
    height: 35px;
}

#TKS-OlyLSB.LC-compact .tks-action-row {
    padding: 8px 20px;
}

.is-disabled {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(0.8);
}

#side-contact-search-input {
    background-color: #454849; /* Fondo oscuro tipo WA */
    border: none;
    border-radius: 8px;
    color: #2c3033;
    padding: 8px 12px;
    width: 94%;
    outline: none;
    font-size: 0.95rem;
}
/* Cuerpo con Scroll Independiente */
.group-contact-sidebar-body {
    flex-grow: 1; /* Ocupa todo el espacio restante */
    overflow-y: auto; /* Activa el scroll solo aquí */
    overflow-x: hidden;
    background-color: #111b21; /* Fondo del cuerpo */
}

/* Personalización del Scrollbar (Estilo WhatsApp) */
.group-contact-sidebar-body::-webkit-scrollbar {
    width: 6px;
}

.group-contact-sidebar-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

/* Regla para 50+ modelos: Mantiene la fluidez del scroll [cite: 2025-12-30] */
#TKS-OlyLSB.LC-compact .group-contact-sidebar-body {
    scrollbar-width: thin; /* Para Firefox */
}

.tks-section-divider{margin-left:1em;}

/* ==========================================================================
    TKS-Contact-Row: Hover con Bordes Redondeados
   ========================================================================== */
.tks-contact-row {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin: 2px 8px; /* Margen lateral para que el redondeado sea visible */
    cursor: pointer;
    border-radius: 8px; /* El redondeado para el efecto hover */
    transition: background-color 0.2s ease, transform 0.1s ease;
    border-bottom: none; /* Quitamos la línea para un look más moderno */
}

/* Efecto Hover */
.tks-contact-row:hover {
    background-color: #2a3942; /* Gris azulado de WhatsApp Dark */
}

/* Click activo (pequeño feedback visual) */
.tks-contact-row:active {
    background-color: #374955;
    transform: scale(0.98);
}

/* --- Ajuste para Modo Compacto (50+ modelos) --- [cite: 2025-12-30] */
#TKS-OlyLSB.LC-compact .tks-contact-row {
    padding: 6px 12px;
    margin: 1px 6px;
    border-radius: 6px;
}


/* Contenedor para el avatar y el LED */
.tks-avatar-container {
    position: relative;
    width: 45px;
    height: 45px;
    flex-shrink: 0;
}

/* Imagen circular estilo WhatsApp */
.tks-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* El LED: La marca de Tekasus */
.tks-status-led {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #111b21; /* El color de fondo para que parezca recortado */
    z-index: 2;
}

/* Colores de estado */
.tks-status-led.is-online {
    background-color: #06d755; /* Verde WhatsApp */
    box-shadow: 0 0 5px rgba(6, 215, 85, 0.5);
}

.tks-status-led.is-offline {
    background-color: #8696a0; /* Gris estándar */
}

/* --- Ajuste para +50 modelos (Modo Compacto) --- [cite: 2025-12-30] */
#TKS-OlyLSB.LC-compact .tks-avatar-container {
    width: 35px;
    height: 35px;
}

#TKS-OlyLSB.LC-compact .tks-status-led {
    width: 9px;
    height: 9px;
    border-width: 1.5px;
}
/* Empuja todo lo que sigue a la derecha */
.tks-name {
    margin-left: 15px;
    flex-grow: 1; /* Esto hace que el nombre ocupe el espacio medio */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Corta el nombre si es muy largo */
}

/* Contenedor de iconos derechos */
.tks-contact-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 10px;
    opacity: 0.6; /* Un poco más sutil que el nombre */
    transition: opacity 0.2s;
}

/* Resaltar iconos al hacer hover en la fila */
.tks-contact-row:hover .tks-contact-actions {
    opacity: 1;
}

/* Estilo para un badge de Admin (opcional para grupos) */
.tks-badge-admin {
    font-size: 0.7rem;
    color: #00a884;
    border: 1px solid #00a884;
    padding: 1px 4px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Iconos de acción (tres puntos o flecha) */
.tks-action-icon {
    width: 20px;
    height: 20px;
    color: #8696a0;
}

/* Regla 50+ compacta [cite: 2025-12-30] */
#TKS-OlyLSB.LC-compact .tks-contact-actions {
    gap: 4px;
}

/* CONTACTOS nuevo */
.contact.activo { opacity: 1; }

.contact.oblivion {
  opacity: .5;
  filter: grayscale(1);
}

.contact.pending {
  opacity: .7;
}

/* CONTACTOS linking modal */

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* el texto ocupa todo el espacio disponible */
.contact-text {
  flex: 1;
  min-width: 0;
}

/* BOTÓN ⋮ */
.contact-menu-btn {
  margin-right:-8px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  z-index:1;
  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  opacity: 0;
  transition: 0.2s;
}

/* aparece al hacer hover en el contacto */
.contact:hover .contact-menu-btn {
  opacity: 1;
}

.contact-menu-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/*   DASHBOARD     */

/* ================================
   LIVE CARDS – SCROLL (no tocar)
================================ */

#view-livecards {
  height: 100%;
  overflow-y: auto;
  padding: 12px;
}

/* ================================
   DASHBOARD HUB (GRID)
================================ */

:root {
  --unit: 75px;
}


.dashboard-hubs {
  grid-auto-rows: var(--unit);
}


/* ================================
   LIVECARD CONTAINER (GRID ITEM)
================================ */
/* borrar?
.livecard-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}*/

/* ================================
   TAMAÑOS LÓGICOS
================================ */
/* --- CONFIGURACIÓN DEL HUB --- */
/*
.dashboard-hub {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  /* Aumentar el espacio entre columnas quita ancho a las tarjetas */
   /*column-gap: 52px; Si antes tenías 12px, subir a 52px quita esos 40px */
/*
  grid-auto-rows: var(--unit); 
}*/

.dashboard-hub{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
  grid-auto-rows: var(--unit);
}



/* Dentro de style.css */

/* Multiplicador:(size) */
.livecard-container.size-0-25  { grid-column: span 1; }  
.livecard-container.size-0-50  { grid-column: span 2; }  
.livecard-container.size-0-75 { grid-column: span 3; }  
.livecard-container.size-1    { grid-column: span 4; }  
.livecard-container.size-1-25    { grid-column: span 5; }  
.livecard-container.size-1-50  { grid-column: span 6; }  
.livecard-container.size-1-75    { grid-column: span 7; } 
.livecard-container.size-2    { grid-column: span 8; }  
.livecard-container.size-2-25  { grid-column: span 9; } 
.livecard-container.size-2-50  { grid-column: span 10; } 
.livecard-container.size-2-75  { grid-column: span 11; } 
.livecard-container.size-3   { grid-column: span 12; } /* Full ancho */

/* ALTOS LÓGICOS (h o rowspan) */
/* Si 1 Ancho (span 4) son 9 unidades de alto para ser cuadrado: */
.livecard-container.h-0-50 { grid-row: span 1; } 
.livecard-container.h-0-75 { grid-row: span 2; }  
.livecard-container.h-1 { grid-row: span 3; } 
.livecard-container.h-1-50 { grid-row: span 4; }  
.livecard-container.h-1-75 { grid-row: span 5; }  
.livecard-container.h-2 { grid-row: span 6; } 
.livecard-container.h-2-50 { grid-row: span 7; }
.livecard-container.h-3 { grid-row: span 8; } /* Full alto */


/* Definición de la cuadrícula base */

/* --- CONTENEDOR BASE --- */
.livecard-container {
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

/*
/* --- REGLAS DE TEMPLATE --- */
.livecard-container {
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  padding: 6px;   /* ← clave */
  border-radius: 12px;
}*/

/* Estado deshabilitado según tus reglas */
.livecard-container.is-disabled {
  opacity: 0.5;
  filter: grayscale(1);
  pointer-events: none;
}


/* ================================
   IFRAME
================================ */


/* --- IFRAME (El sensor/ábaco) --- */
.livecard-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  padding: 6px;   /* ← clave */
}


/* ================================
   SCROLLBAR DISCRETO
================================ */

#view-livecards::-webkit-scrollbar {
  width: 6px;
}

#view-livecards::-webkit-scrollbar-thumb {
  background-color: rgba(255,255,255,0.2);
  border-radius: 6px;
}

#view-livecards {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.25) transparent;
}

/* livecards */

.wr-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* overlays */


.wr-iframe-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #fff;
  font-size: 14px;
  text-align: center;
  padding: 16px;
}

.dashboard-view { display: none; }
.dashboard-view.active { display: block; }


.livecard-container {
  height: 100%;
  width: 100%;
}

.wr-iframe-wrapper {
  position: relative;
  height: 100%;
  width: 100%;
}

.wr-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.wr-iframe-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none; /* clave */
}

.wr-iframe-wrapper[data-status="loading"] .wr-loading,
.wr-iframe-wrapper[data-status="error"] .wr-error {
  pointer-events: auto;
}

/* =========================
   SKELETON LIVE CARD
========================= */

.skeleton {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
}

.skeleton-iframe {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    #1a1a1a 25%,
    #2a2a2a 37%,
    #1a1a1a 63%
  );
  background-size: 400% 100%;
  animation: skeleton-loading 1.2s ease-in-out infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}


/* ================================
   TOOLBAR HUB
================================ */

.btn_hub {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-controls .btn {
  min-width: 34px;
  height: 34px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #121a24;
  border: 1px solid #304252;
  border-radius: 9px;
  color: #d9e5f0;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, color .18s ease;
}

.dashboard-controls .btn:not(.active):hover {
  background: #172230;
  border-color: #3d5b74;
  color: #edf5fb;
  transform: translateY(-1px);
}

.dashboard-controls .btn.active {
  background: #1a2634;
  border-color: #4f7392;
  color: #f0f6fb;
  box-shadow: 0 0 0 2px rgba(79, 115, 146, 0.18);
}

/* ================================
   CONTEXTO GENERAL
================================ */

html, body {
  height: 100%;
  margin: 0;
}

/* ================================
   CONTENEDOR PRINCIPAL
================================ */

#mainContent {
  height: calc(100vh - 120px);
  overflow: hidden;
}

/* ================================
   WR DASHBOARD
================================ */

.wr-dashboard {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ================================
   TOOLBAR
================================ */

.dashboard-controls {
  margin: 0 12px 10px;
  padding: 8px 12px;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(15, 23, 34, 0.92) 0%, rgba(12, 18, 28, 0.88) 100%);
  flex: 0 0 auto;
  opacity: 1;
}

.dashboard-controls label {
  color: #a7b9ca;
  font-size: 12px;
  font-weight: 600;
}

#dashboardZoom {
  height: 34px;
  padding: 0 10px;
  border: 1px solid #304252;
  border-radius: 9px;
  background: #121a24;
  color: #f0f5fa;
}

/* ================================
   CONTENEDOR DE VISTAS
================================ */

.dashboard-views {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
}

/* ================================
   VISTAS
================================ */

.dashboard-view {
  position: absolute;
  inset: 0;
  display: none;
  overflow: hidden;
}

.dashboard-view.active {
  display: block;
}

/* ================================
   LIVE CARDS – SCROLL (no tocar)
================================ */

#view-livecards {
  height: 100%;
  overflow-y: auto;
  padding: 12px;
}

/* ================================
   DASHBOARD HUB (GRID)
================================ */
/*
:root {
  --unit: 80px;
}


.dashboard-hubs {
  grid-auto-rows: var(--unit);
}*/


/* ================================
   LIVECARD CONTAINER (GRID ITEM)
================================ */

/* ================================
   TAMAÑOS LÓGICOS
================================ */
/* --- CONFIGURACIÓN DEL HUB --- */
/*
.dashboard-hub {
  display: grid;
/* grid-template-columns: repeat(16, 1fr);*/
  /* Aumentar el espacio entre columnas quita ancho a las tarjetas */
   /*column-gap: 52px; Si antes tenías 12px, subir a 52px quita esos 40px */
/*
  grid-auto-rows: var(--unit); 
}

/* Dentro de style.css */

/* Multiplicador:(size) */
/*
.livecard-container.size-0-25  { grid-column: span 1; }  
.livecard-container.size-0-50  { grid-column: span 2; }  
.livecard-container.size-0-75 { grid-column: span 3; }  
.livecard-container.size-1    { grid-column: span 4; }  
.livecard-container.size-1-25    { grid-column: span 5; }  
.livecard-container.size-1-50  { grid-column: span 6; }  
.livecard-container.size-1-75    { grid-column: span 7; } 
.livecard-container.size-2    { grid-column: span 8; }  
.livecard-container.size-2-25  { grid-column: span 9; } 
.livecard-container.size-2-50  { grid-column: span 10; } 
.livecard-container.size-2-75  { grid-column: span 11; } 
.livecard-container.size-3   { grid-column: span 12; } /* Full ancho */

/* ALTOS LÓGICOS (h o rowspan) */
/* Si 1 Ancho (span 4) son 9 unidades de alto para ser cuadrado: */
/*
.livecard-container.h-0-50 { grid-row: span 1; } 
.livecard-container.h-0-75 { grid-row: span 2; }  
.livecard-container.h-1 { grid-row: span 3; } 
.livecard-container.h-1-50 { grid-row: span 4; }  
.livecard-container.h-1-75 { grid-row: span 5; }  
.livecard-container.h-2 { grid-row: span 6; } 
.livecard-container.h-2-50 { grid-row: span 7; }
.livecard-container.h-3 { grid-row: span 8; } /* Full alto */


/* Definición de la cuadrícula base */

/* --- CONTENEDOR BASE --- */
.livecard-container {
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

/*
/* --- REGLAS DE TEMPLATE --- */
.livecard-container {
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  padding: 6px;   /* ← clave */
  border-radius: 12px;
}*/

/* Estado deshabilitado según tus reglas */
.livecard-container.is-disabled {
  opacity: 0.5;
  filter: grayscale(1);
  pointer-events: none;
}


/* ================================
   IFRAME
================================ */


/* --- IFRAME (El sensor/ábaco) --- */
.livecard-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  padding: 6px;   /* ← clave */
}


/* ================================
   SCROLLBAR DISCRETO
================================ */

#view-livecards::-webkit-scrollbar {
  width: 6px;
}

#view-livecards::-webkit-scrollbar-thumb {
  background-color: rgba(255,255,255,0.2);
  border-radius: 6px;
}

#view-livecards {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.25) transparent;
}

/* livecards */

.wr-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* overlays */


.wr-iframe-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #fff;
  font-size: 14px;
  text-align: center;
  padding: 16px;
}

.dashboard-view { display: none; }
.dashboard-view.active { display: block; }


.livecard-container {
  height: 100%;
  width: 100%;
}

.wr-iframe-wrapper {
  position: relative;
  height: 100%;
  width: 100%;
}

.wr-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.wr-iframe-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none; /* clave */
}

.wr-iframe-wrapper[data-status="loading"] .wr-loading,
.wr-iframe-wrapper[data-status="error"] .wr-error {
  pointer-events: auto;
}

.dashboard-hub {
  display: grid;
  gap: 16px; /* ajustá: 12 / 16 / 20 */
}

.dashboard-hub {
  gap: clamp(10px, 1.2vw, 20px);
}

/*  PANE  */

.tab-pane {
  display: none;
  height: 100%;
}

.tab-pane.active {
  display: block;
}

.tab.disabled {
  opacity: .35;
  pointer-events: none;
  filter: grayscale(1);
}

.tabs[data-enabled="false"] .tab[data-tab="dashboard"] {
  pointer-events: none;
  opacity: .4;
}

.tab.loading {
  opacity: .6;
}

.dashboard-hub{
  grid-template-columns: repeat(16,1fr);
}

@media (max-width:1100px){
  .dashboard-hub{
    grid-template-columns: repeat(12,1fr);
  }
}

@media (max-width:800px){
  .dashboard-hub{
    grid-template-columns: repeat(8,1fr);
  }
}

.btn-plus {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  grid-auto-rows: var(--unit);
}


tekasus-widget{
display:block;
width:100%;
height:100%;
}

tekasus-widget{
display:block;
width:100%;
height:100%;
position:relative;
}

tekasus-widget .wr-iframe-wrapper{
width:100%;
height:100%;
}

.livecard-container {
  overflow: hidden;
  position: relative;
}

.hub-widget-actions-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid rgba(111, 168, 255, 0.22);
  border-radius: 999px;
  background: rgba(11, 19, 29, 0.88);
  color: #d7e8f5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease, border-color .18s ease, background .18s ease;
  z-index: 4;
}

.hub-widget-actions-toggle span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.dashboard-hub.is-edit-mode .hub-widget-actions-toggle,
.dashboard-hub-draft.is-edit-mode .hub-widget-actions-toggle {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hub-widget-actions-toggle:hover {
  background: rgba(18, 31, 47, 0.96);
  border-color: rgba(111, 168, 255, 0.36);
}

.quick-panel-widget {
  position: fixed;
  width: 240px;
  background: #111b21;
  border: 1px solid #2a3942;
  border-radius: 12px;
  padding: 8px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 99999;
  overflow: hidden;
}

.quick-panel-widget.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.quick-panel-widget::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 14px;
  width: 12px;
  height: 12px;
  background: #111b21;
  transform: rotate(45deg);
  border-left: 1px solid #2a3942;
  border-top: 1px solid #2a3942;
}

.widget-actions {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget-actions li:hover {
  background: #202c33;
  border-radius: 6px;
}

.quick-widget-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #e9edef;
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
}
