:root {
  /* Paleta principal RinkosPyme */
  --rnk-primary:   #1c0a3f;
  --rnk-secondary: #681db7;
  --rnk-accent:    #ff8f00;
  --rnk-accent-2:  #ffbc00;
  --rnk-accent-3:  #ffa300;

  --rnk-primary-text:   #fff;
  --rnk-secondary-text: #fff;
  --rnk-accent-text:    #fff;
  --rnk-accent-2-text:  #fff;
  --rnk-accent-3-text:  #fff;

  --rnk-bg-gray:   #f7f8fb;
  --rnk-bg-muted:  #f5f6fa;
}

.text-primary{
  color:  #1c0a3f !important;
}

.rnk-section {
  margin-bottom: 1.7rem;
  background: transparent;
}

.rnk-section-title {
  font-size: 1.11rem;
  font-weight: 700;
  color: var(--rnk-primary-text, #1c0a3f);
  margin-bottom: .2rem;
  margin-left: .2rem;
  letter-spacing: -0.01em;
}

.rnk-icon-badge-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rnk-icon-badge {
  position: absolute;
  top: 4px;       /* <-- más abajo (aumenta este valor si quieres aún más) */
  right: 11px;     /* <-- más a la izquierda (puedes poner incluso -1px si hace falta) */
  min-width: 13px;
  height: 13px;
  padding: 0 2px;
  background: #ff3333;
  color: #fff;
  font-size: 0.77rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px #0002;
  border: 2px solid #fff;
  z-index: 2;
  pointer-events: none;
}

/* =========================================================
   APP BAR (GENÉRICA Y REUTILIZABLE)
========================================================= */
.rnk-app-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 68px;
  background: var(--rnk-primary);
  color: var(--rnk-primary-text);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem 0 1rem;
  box-shadow: 0 2px 14px #15043b13;
}

.rnk-app-bar-logo {
  height: 38px;
  margin-right: 0.7rem;
}

.rnk-app-bar-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.rnk-app-bar-title {
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--rnk-primary-text);
}

.rnk-app-bar-role {
  font-size: 0.97rem;
  opacity: 0.7;
  color: var(--rnk-primary-text);
}

.rnk-app-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.12em;
}

.rnk-app-bar-btn,
.rnk-app-bar-btn-back {
  background: none;
  border: none;
  color: var(--rnk-primary-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.13em 0.38em;
  border-radius: 50%;
  display: flex;
  align-items: center;
  transition: background .16s;
}
.rnk-app-bar-btn-back {
  margin-right: 0.6em;
}
.rnk-app-bar-btn:hover, .rnk-app-bar-btn-back:hover {
  background: rgba(255,255,255,0.09);
}
.rnk-app-bar.rnk-app-bar-back {
  justify-content: flex-start;
  gap: 0.5rem;
}
.rnk-app-bar-back .rnk-app-bar-title {
  flex: 1;
  text-align: center;
  font-size: 1.15rem;
}
.rnk-user-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.rnk-user-avatar img {
  width: 98%; height: 98%; object-fit: cover;
  border-radius: 50%;
}
.rnk-app-bar-btn .material-icons,
.rnk-app-bar-actions .material-icons,
.rnk-app-bar-btn svg,
.rnk-app-bar-actions svg {
  font-size: 1.3em;       /* Más pequeño, ajústalo a tu gusto */
  width: 1.2em;          /* Puedes probar 1.2em, 1.3em, etc */
  height: 1.2em;
  display: block;
  vertical-align: middle; /* Asegura centrado en el botón */
}
.rnk-app-bar-btn {
  padding: 0.15em 0.36em;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* =========================================================
   CONTENEDOR SCROLLABLE PARA PÁGINAS
========================================================= */
.rnk-page-content-scrollable {
  padding-left: 1.1rem;
  padding-right: 1.1rem;
  flex: 1 1 auto;
  min-height: 0; /* Importante para hijos flex */
  overflow-y: auto;
  padding-bottom: 84px !important; /* espacio para bottom-bar */
  background: #f6f7fa;            /* fondo gris claro, puedes cambiar si quieres */
  width: 100%;
  box-sizing: border-box;

  
}

@media (max-width: 600px) {
  .rnk-app-bar { height: 53px; padding: 0 0.7rem;}
  .rnk-page-content-scrollable { margin-top: 53px; margin-bottom: 65px;}
}
@media (min-width: 768px) {
  .rnk-page-content-scrollable {
    padding-top: 76px; /* o lo que mida tu app-bar en tablet */
  }
}

/* =========================================================
   BOTTOM NAVBAR (GENÉRICA Y REUTILIZABLE)
========================================================= */
.rnk-bottom-navbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  background: #fff;
  box-shadow: 0 -2px 16px #0002, 0 0.5px 0.5px #0001;
  height: 70px;
  display: flex;
  align-items: center;
  border-radius: 1.5rem 1.5rem 0 0;
  width: 100vw;
}

.rnk-bottom-nav-list {
  width: 100%;
  margin: 0;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  list-style: none;
}

.rnk-bottom-nav-list li {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.rnk-bottom-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--rnk-primary, #1c0a3f);
  text-decoration: none;
  padding: 7px 0 2px 0;
  border-radius: 1.1rem;
  font-weight: 500;
  font-size: 1.03rem;
  background: transparent;
  transition: color .18s, background .19s;
}

.rnk-bottom-nav-link .nav-icon {
  display: block;
  margin-bottom: 1px;
  font-size: 1.7rem;
}

.rnk-bottom-nav-list li.active .rnk-bottom-nav-link,
.rnk-bottom-nav-link.active {
  background: rgba(255,188,0,0.13); /* rnk-accent-2 + opacity */
  color: var(--rnk-primary, #1c0a3f);
}

.rnk-bottom-nav-list li.active .nav-icon,
.rnk-bottom-nav-link.active .nav-icon {
  color: var(--rnk-accent-2, #ffbc00);
}

/* Responsive para móviles */
@media (max-width: 600px) {
  .rnk-bottom-navbar { height: 62px; border-radius: 1rem 1rem 0 0;}
  .rnk-bottom-nav-link .nav-icon { font-size: 1.35rem; }
  .rnk-bottom-nav-link { font-size: .97rem; }
}
/* =========================================================
   INPUTS Y FORM CONTROLS REUTILIZABLES
========================================================= */
.rnk-input-icon-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.rnk-input-large {
  width: 100%;
  font-size: 1.13rem;
  padding: 0.93rem 1.1rem;
  border-radius: 14px;
  border: 1.7px solid #c3c9d6;
  background: #fff;
  transition: border .14s;
  box-sizing: border-box;
  font-weight: 400;
  color: #212529;
}

.rnk-input-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  z-index: 2;
}

.rnk-input-icon img, .rnk-input-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

/* Icono a la izquierda */
.rnk-icon-left .rnk-input-icon { left: 16px;}
.rnk-icon-left .rnk-input-large { padding-left: 3.3rem;}
/* Icono a la derecha */
.rnk-icon-right .rnk-input-icon { right: 16px;}
.rnk-icon-right .rnk-input-large { padding-right: 3.3rem; }

.rnk-input-large:focus {
  border-color: #18b56a;
  box-shadow: 0 0 0 2px #18b56a22;
  outline: none;
}

/* Select grande con flecha personalizada */
.rnk-select-large {
  width: 100%;
  max-width: 490px;
  font-size: 1.18rem;
  border-radius: 13px;
  border: 1.7px solid #c3c9d6;
  background: #fff;
  padding: 1.08rem 2.9rem 1.08rem 1.15rem;
  box-shadow: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border-color .18s, box-shadow .18s;
  background-image: url('data:image/svg+xml;utf8,<svg fill="gray" height="19" viewBox="0 0 20 20" width="19" xmlns="http://www.w3.org/2000/svg"><path d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" /></svg>');
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  background-size: 1.28em;
  cursor: pointer;
}
.rnk-select-large:focus {
  border-color: #18b56a;
  box-shadow: 0 0 0 1.5px #18b56a20;
}

@media (max-width: 576px) {
  .rnk-input-large,
  .rnk-select-large {
    max-width: 100%;
    font-size: 1.06rem;
    padding: 0.9rem 2.6rem 0.9rem 1rem;
  }
}

/* --------- Inputs con título flotante --------- */
.rnk-form-group {
  margin-bottom: 1.4rem;
  position: relative;
}
.rnk-input-title,
.rnk-select-title,
.rnk-textarea-title {
  width: 100%;
  padding: 1.15rem 1rem 0.5rem 1rem;
  font-size: 1.07rem;
  border: 1.6px solid #ececec;
  border-radius: 12px;
  background: #fff;
  color: #212529;
  transition: border-color 0.22s, box-shadow 0.2s;
  outline: none;
  box-shadow: 0 1px 7px #e8eaf166;
  resize: none;
}
.rnk-input-title:focus,
.rnk-select-title:focus,
.rnk-textarea-title:focus {
  border-color: #45c29f;
  box-shadow: 0 0 0 2px #22d1b830;
}
.rnk-input-label {
  position: absolute;
  top: 0.75rem;
  left: 1.1rem;
  font-size: 0.97rem;
  color: #4497ea;
  background: #fff;
  padding: 0 4px;
  z-index: 2;
  pointer-events: none;
  transition: all 0.18s cubic-bezier(.4,0,.2,1);
  font-weight: 500;
}
.rnk-form-group:focus-within .rnk-input-label { color: #23b88a; }
.rnk-select-title {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='13' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4.5l7 7 7-7' stroke='%23678' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 1.2em auto;
  padding-right: 2.2rem;
  cursor: pointer;
}
.rnk-textarea-title { min-height: 85px; max-height: 240px; }
@media (max-width:600px) {
  .rnk-input-title,
  .rnk-select-title,
  .rnk-textarea-title {
    font-size: 1rem;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }
}

/* =========================================================
   BOTÓN WIDER REUTILIZABLE + OUTLINE
========================================================= */
.rnk-btn-wider {
  max-width: 440px;
  width: 100%;
  font-size: 1.13rem;
  padding-top: 0.93rem;
  padding-bottom: 0.93rem;
  margin-left: auto;
  margin-right: auto;
  border-radius: 14px;
  font-weight: 600;
  transition: box-shadow .16s, background .16s;
  display: block;
}
.rnk-btn-wider-outline {
  max-width: 440px;
  width: 100%;
  font-size: 1.13rem;
  padding-top: 0.93rem;
  padding-bottom: 0.93rem;
  margin-left: auto;
  margin-right: auto;
  border-radius: 14px;
  font-weight: 600;
  background: transparent;
  border: 2.2px solid;
  transition: box-shadow .16s, background .16s, border-color .16s;
  display: block;
}
.rnk-btn-wider-outline.btn-dark {
  color: #232323;
  border-color: #232323;
}
.rnk-btn-wider-outline.btn-success {
  color: #18b56a;
  border-color: #18b56a;
}
.rnk-btn-wider-outline.btn-primary {
  color: #0d6efd;
  border-color: #0d6efd;
}
.rnk-btn-wider-outline:hover,
.rnk-btn-wider-outline:focus {
  filter: brightness(0.93);
  background: #f9f9fa;
}
@media (max-width: 576px) {
  .rnk-btn-wider,
  .rnk-btn-wider-outline {
    max-width: 97vw;
    font-size: 1.02rem;
    padding-top: 0.80rem;
    padding-bottom: 0.80rem;
  }
}

/* =========================================================
   WIDGETS, CAROUSEL, SHEET, INFO
========================================================= */

/* --------- Widget Card --------- */
.rnk-widget-card {
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 3px 16px 0 #1b25531c;
  padding: 1.2rem 1.1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  transition: box-shadow .16s, border .16s, background .17s;
  border: 2.3px solid transparent;
  cursor: pointer;
}
.rnk-widget-card.active,
.rnk-widget-card:hover {
  border-color: #18b56a;
  background: #f3fef7;
  box-shadow: 0 5px 18px #18b56a18;
}
.rnk-widget-icon {
  font-size: 2.2rem !important;
  color: #18b56a;
  display: block;
  margin-bottom: 0.1rem;
}
.rnk-widget-label {
  font-size: 1.04rem;
  font-weight: 600;
  color: #323232;
  text-align: center;
  margin-top: .05rem;
  line-height: 1.24;
}
.rnk-widget-card.kpi .rnk-widget-kpi {
  font-size: 1.47rem;
  font-weight: bold;
  color: #212529;
  letter-spacing: -0.5px;
  margin-bottom: 0.14rem;
}
.rnk-widget-card.kpi .rnk-widget-label {
  font-weight: 500;
  font-size: 1.01rem;
  margin-top: .02rem;
}
@media (max-width: 600px) {
  .rnk-widget-card {
    padding: 1.2rem 0.7rem;
    min-height: 97px;
  }
  .rnk-widget-icon { font-size: 1.85rem !important; }
  .rnk-widget-card.kpi .rnk-widget-kpi { font-size: 1.13rem; }
}

/* --------- Carousel --------- */
.rnk-carousel {
  display: flex;
  gap: 2.2rem;
  overflow-x: auto;
  padding: 0.6rem 0 0.7rem 0.3rem;
  scroll-snap-type: x mandatory;
}
.rnk-carousel::-webkit-scrollbar { display: none; }
.rnk-carousel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 78px;
  scroll-snap-align: start;
  cursor: pointer;
}

.rnk-carousel-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f3f8fe;
  margin-bottom: 0.32rem;
  border: 2.5px solid transparent;
  transition: border-color 0.24s, box-shadow 0.18s, border-width 0.18s;
  box-shadow: 0 1px 7px #0001;
  font-size: 2.0rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rnk-carousel-icon img,
.rnk-carousel-icon svg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: block;
}
.rnk-carousel-item.selected .rnk-carousel-icon {
  border-width: 4px;
  border-color: #239aff;
  background: #eaf6ff;
  box-shadow: 0 2px 16px #2186d670;
  padding: 2px; /* opcional */
}

.rnk-carousel-label {
  font-size: 0.96rem;
  margin-top: 0;
  color: #32405a;
  font-weight: 500;
  text-align: center;
  line-height: 1.15;
  letter-spacing: 0.01em;
  opacity: 0.93;
  user-select: none;
}
@media (max-width: 600px) {
  .rnk-carousel { gap: 1.0rem; }
  .rnk-carousel-icon { width: 48px; height: 48px; font-size: 1.43rem;}
  .rnk-carousel-item { min-width: 62px;}
}

/* --------- Modal Sheet --------- */
.modal-sheet-overlay {
  position: fixed;
  z-index: 11111;
  inset: 0;
  background: rgba(32,42,56,0.18);
  display: flex;
  align-items: flex-end;
  transition: background 0.25s;
  overflow-x: hidden;
}
.modal-sheet-container {
  background: #fff;
  border-radius: 2.2rem 2.2rem 0 0;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 -3px 28px #0002;
  min-height: 80px;
  max-height: 90vh;
  height: var(--sheet-height, 60vh);
  transform: translateY(100%);
  animation: modalSheetIn 0.43s cubic-bezier(.48,.02,.43,1.08) both;
  display: flex;
  flex-direction: column;
}
@keyframes modalSheetIn {
  from { transform: translateY(100%);}
  to   { transform: translateY(0);}
}
.modal-sheet-drag {
  width: 46px; height: 5px;
  background: #e1e6ec;
  border-radius: 3px;
  margin: 0.6rem auto 0.9rem auto;
}
.modal-sheet-content {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 1.4rem 1.5rem 1.4rem;
  text-align: center;
}
.modal-sheet-container.hide {
  animation: modalSheetOut 0.37s cubic-bezier(.48,.02,.43,1.08) both;
}
@keyframes modalSheetOut {
  from { transform: translateY(0);}
  to   { transform: translateY(105%);}
}
@media (max-width: 600px) {
  .modal-sheet-container {
    max-width: 100vw;
    height: var(--sheet-height, 70vh);
    border-radius: 2.2rem 2.2rem 0 0;
  }
}

/* --------- Info Widget --------- */
.rnk-info-widget {
  position: relative;
  background: #f4f6ff;
  border-radius: 1rem;
  padding: 1.5rem 1.7rem 1.2rem 1.3rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 24px #0a182310;
  min-height: 110px;
  overflow: hidden;
  transition: background 0.19s;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rnk-info-widget.rnk-bg-lime { background: #d8ec38; }
.rnk-info-widget.rnk-bg-blue { background: #eaf1fe; }
.rnk-info-widget.rnk-bg-muted { background: #f5f6fa; }
.rnk-info-widget-title {
  font-size: 1.17rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #23272b;
  letter-spacing: -0.01em;
}
.rnk-info-widget-main {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  color: #171b22;
  line-height: 1.13;
}
.rnk-info-widget-sub {
  font-size: 1.04rem;
  color: #929cb7;
  font-weight: 500;
  margin-bottom: 0.55rem;
  margin-top: 0.12rem;
}
.rnk-info-widget-link {
  font-size: 1.04rem;
  color: #3e85e3;
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.11rem;
  display: inline-block;
  transition: color 0.17s;
}
.rnk-info-widget-link:hover { color: #194b8c; }
.rnk-info-widget-icon-bg {
  position: absolute;
  right: 1.1rem;
  bottom: 0.4rem;
  width: 68px;
  height: 68px;
  opacity: 0.14;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  filter: grayscale(100%);
}
@media (max-width:600px) {
  .rnk-info-widget { padding: 1.17rem 0.8rem 1.15rem 0.7rem; }
  .rnk-info-widget-icon-bg { width: 51px; height: 51px;}
}
.rnk-info-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.1rem;
  position: relative;
  z-index: 3;
}
.rnk-info-widget-title {
  margin-top: 0;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rnk-info-widget-icons {
  display: flex;
  gap: 0.28em;
  margin-left: 0.8em;
}
.rnk-info-widget-icons .rnk-icon-btn {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 2px 4px;
  margin: 0;
  color: #363949;
  font-size: 1.18rem;
  line-height: 1;
  transition: background 0.18s, color 0.17s;
  border-radius: 0.5em;
}
.rnk-info-widget-icons .rnk-icon-btn:hover {
  background: #e7e9ed;
  color: #0d72c2;
}
/* --------- Gradient Widget --------- */
.rnk-widget-balance {
  
  border-radius: 18px;
  padding: 1.1rem 1.4rem 1.2rem 1.3rem;
  min-width: 240px;
  min-height: 110px;
  color: #f3f6ff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 3px 18px 0 #31439326;
  margin: 0.8rem 0;
  position: relative;
  overflow: hidden;
}

.rnk-widget-balance-title {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.7rem;
  opacity: 0.96;
  letter-spacing: 0.01em;
}

.rnk-widget-balance-main {
  font-size: 2.6rem;
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1;
  color: #f6f9fe;
  margin-bottom: 0.5rem;
}

.rnk-widget-balance-currency {
  font-size: 1.35rem;
  vertical-align: middle;
  margin-right: 6px;
  font-weight: 400;
  opacity: 0.89;
  color: #e8ebf7;
}

.rnk-widget-balance-link {
  font-size: 1.01rem;
  color: #e7eafe;
  opacity: 0.84;
  text-decoration: underline;
  margin-top: 0.5rem;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.18s;
}
.rnk-widget-balance-link:hover {
  color: #fff;
  opacity: 1;
}

/* ======================= RNK LISTA (GENÉRICA) ======================= */
.rnk-list {
  width: 100%;
  max-width: 98vw;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 2px 18px #1112  ;
  padding: 0.2rem 0;
  margin: 1rem auto;
}

.rnk-list-item {
  display: flex;
  align-items: stretch;
  padding: 1.02rem 1rem 1.02rem 1.06rem;
  border-bottom: 1.5px solid #f1f1f5;
  gap: 1rem;
  transition: background 0.13s;
}

.rnk-list-item:last-child {
  border-bottom: none;
}

.rnk-list-img-col {
  flex: 0 0 53px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
}

.rnk-list-img {
  width: 45px; height: 45px;
  object-fit: cover;
  border-radius: 1.2rem;
  box-shadow: 0 2px 6px #acacac28;
  border: 2px solid #f3f4fa;
  background: #f7f8fb;
  display: block;
}

.rnk-list-content-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
}

.rnk-list-row-main { 
  font-weight: 700;
  font-size: 1.10rem;
  color: var(--rnk-primary);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
  line-height: 1.12;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.rnk-list-row-sub {
  color: #50546a;
  font-size: 1.01rem;
  font-weight: 600;
  line-height: 1.13;
  margin-bottom: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.rnk-list-row-note {
  color: #aaacbc;
  font-size: 0.97rem;
  line-height: 1.16;
  font-weight: 500;
}

.rnk-list-row-extra {
  color: #ff8f00;
  font-size: 1.04rem;
  font-weight: 600;
  margin-top: 1px;
}

/* Puedes poner hasta 4 filas usando .rnk-list-row-main, .rnk-list-row-sub, .rnk-list-row-note, .rnk-list-row-extra */

.rnk-list-actions-col {
  flex: 0 0 70px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.19rem;
}

.rnk-list-action-badge {
  padding: 0.28em 0.8em;
  background: var(--rnk-accent-2);
  color: var(--rnk-primary);
  border-radius: 1em;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 3px;
  box-shadow: 0 1px 8px #ffd66122;
}

.rnk-list-action-text {
  font-size: 0.98rem;
  color: #16aa69;
  font-weight: 700;
  margin-top: 2px;
}

.rnk-list-action-icon {
  font-size: 1.48rem;
  color: #a2a8b7;
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  margin-bottom: 1px;
  vertical-align: middle;
  cursor: pointer;
  transition: color .14s;
}

.rnk-list-action-icon:hover {
  color: var(--rnk-primary);
}

/* Responsive para móviles */
@media (max-width:600px){
  .rnk-list-item { padding: 0.85rem 0.42rem 0.82rem 0.46rem; gap: 0.57rem;}
  .rnk-list-img-col { min-width: 38px;}
  .rnk-list-img { width: 36px; height: 36px;}
  .rnk-list-actions-col { flex-basis: 53px;}
  .rnk-list-row-main { font-size: 0.99rem;}
  .rnk-list-row-sub { font-size: 0.92rem;}
  .rnk-list-row-note { font-size: 0.89rem;}
  .rnk-list-row-extra { font-size: 0.91rem;}
}
/*--------- WIDGET MULTICARD ------------------------------------------*/
.rnk-multicard {
  background: #fff;
  border: 1.6px solid #e3e7ef;
  border-radius: 14px;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0.82rem 1.07rem;
  margin-bottom: 1.01rem;
  transition: box-shadow 0.17s, border-color 0.16s;
  box-shadow: 0 3px 12px #5d6db516;
  font-size: 1.08rem;
  cursor: pointer;
  position: relative;
}
.rnk-multicard:active, .rnk-multicard:hover {
  border-color: #bad3ff;
  box-shadow: 0 2px 12px #2286ef20;
}

.rnk-multicard .rnk-multicard-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: #f3eefc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.99rem;
  font-size: 2.1rem;
  flex-shrink: 0;
}

.rnk-multicard .rnk-multicard-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rnk-multicard-title {
  font-weight: 700;
  font-size: 1.10rem;
  color: #1c0a3f;
  margin-bottom: 1px;
  line-height: 1.13;
  display: flex;
  align-items: center;
}
.rnk-multicard-desc {
  font-size: 0.98rem;
  color: #49536d;
  font-weight: 400;
  line-height: 1.16;
  opacity: 0.84;
  letter-spacing: 0.01em;
}

.rnk-multicard-chevron {
  color: #858aa0;
  font-size: 1.32rem;
  margin-left: 0.5rem;
  flex-shrink: 0;
}
.rnk-multicard-badges {
  display: flex;
  align-items: center;
  gap: 0.41rem;
  margin-top: 0.15rem;
}
.rnk-multicard-badge {
  display: inline-block;
  border-radius: 16px;
  padding: 2px 11px;
  font-size: 0.98rem;
  font-weight: 600;
  color: #2372c7;
  background: #eaf4ff;
  margin-right: 0.16rem;
}
.rnk-multicard-badge-green {
  background: #e3f9ed;
  color: #18b56a;
}
.rnk-multicard-badge-success {
  background: #c6ffda;
  color: #08884c;
}
.rnk-multicard-badge-new {
  background: #d7fbe3;
  color: #21ad5d;
  font-size: 0.99rem;
  padding: 2px 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.rnk-multicard-add {
  color: #5f6eb0;
  font-size: 1.5rem;
  margin-right: 1.12rem;
}
.rnk-multicard .rnk-multicard-icononly {
  margin-right: 1.1rem;
}
.rnk-multicard.disabled {
  background: #f6f6f9;
  color: #a3a3b5;
  cursor: not-allowed;
  filter: grayscale(0.35);
}
.rnk-multicard.rnk-border-primary {
  border-color: var(--rnk-primary);
  box-shadow: 0 2px 12px #1c0a3f17; /* Sombra opcional a juego */
}
/* Responsive */
@media (max-width: 600px) {
  .rnk-multicard {
    padding: 0.79rem 0.72rem;
    min-height: 53px;
    font-size: 1rem;
  }
  .rnk-multicard .rnk-multicard-icon { width: 39px; height: 39px; font-size: 1.44rem; margin-right: 0.65rem;}
}


/* ----------- DRAWER LATERAL MENU (Glass) ----------- */
.rnk-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 10, 63, 0.22);
  backdrop-filter: blur(2.2px);
  z-index: 5001;
  opacity: 0;
  pointer-events: none;
  transition: opacity .29s;
}
.rnk-drawer-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Drawer */
#rnk-drawer {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 9999;
  width: 50vw;            /* O el ancho que prefieras */
  max-width: 420px;
  min-width: 260px;
  background: rgba(255,255,255,0.23);     /* Más transparente */
  box-shadow: 0 6px 32px 0 #18101028;
  backdrop-filter: blur(18px) saturate(145%) brightness(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(145%) brightness(1.1);
  border-right: 1.8px solid rgba(255,255,255,0.38);
  transition: transform .34s cubic-bezier(.68,-0.25,.46,1.25);
  transform: translateX(-100%);
  overflow-y: auto;
}
#rnk-drawer.open {
  transform: translateX(0);
}
.rnk-drawer-header {
  
  background: linear-gradient(120deg, #ff983f 0%, #FF6600 100%);
  padding: 1.2rem 1.2rem 0.95rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}
.rnk-drawer-profile {
  display: flex;
  align-items: center;
  gap: 0.85em;
}
.rnk-drawer-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #f1f6fc;
  object-fit: cover;
}
.rnk-drawer-user {
  font-weight: bold;
  font-size: 1.09rem;
  color: #fff;
  margin-bottom: 0.13em;
  margin-top: 0.4em;
}

.rnk-drawer-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  background: rgba(255,255,255,0.62);
  border: none;
  font-size: 1.05rem;
  border-radius: 50%;
  padding: 2px 6px;
  color: #222;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 1px 8px #1c0a3f15;
  transition: background 0.15s;
}
.rnk-drawer-close:hover { background: #fff; }

.rnk-drawer-menu {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1.2rem 0.4rem 1.3rem 0.7rem;
}
.rnk-drawer-menu ul {
  list-style: none;
  margin: 0; padding: 0;
}
.rnk-drawer-menu li {
  margin-bottom: 0.21rem;
}
.rnk-drawer-menu li a {
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.74em 0.7em 0.74em 0.57em;
  border-radius: 1.2rem;
  color: #23243a;
  font-size: 1.08rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .14s, color .17s;
}
.rnk-drawer-menu li a:hover {
  background: #eaf0ff;
  color: var(--rnk-primary);
}
.rnk-drawer-menu li .material-icons {
  font-size: 1.7em;
  min-width: 30px;
  text-align: center;
}
.rnk-drawer-section {
  font-size: 0.96rem;
  font-weight: 600;
  color: #75787a;
  margin: 0.65em 0 0.11em 0.3em;
  letter-spacing: 0.03em;
  padding: 0;
  text-transform: uppercase;
  opacity: 0.93;
  pointer-events: none;
}
.rnk-drawer-menu ul ul {
  margin-left: 2.1em;
  padding-left: 0.5em;
}
.rnk-drawer-menu ul ul li a {
  font-size: 1.01rem;
  opacity: 0.92;
  padding: 0.60em 0.6em 0.60em 0.9em;
}
/* Responsive */
@media (max-width: 700px) {
  .rnk-drawer { width: 75vw; min-width: 0; max-width: 420px;}
}
@media (max-width: 480px) {
  .rnk-drawer { width: 93vw; min-width: 0; max-width: 99vw;}
  .rnk-drawer-header { padding: 1rem 0.75rem 0.85rem 0.85rem; }
  .rnk-drawer-menu { padding: 1.1rem 0.3rem 1rem 0.4rem; }
}

/*------------- LISTAS PARA MAESTROS --------------------------------*/
.rnk-master-list {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  background: transparent;
  padding: 0;
  list-style: none;
}

.rnk-master-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 0.7rem;
  background: #fff;
  transition: background 0.16s;
  position: relative;
}

.rnk-master-list-divider {
  border-bottom: 1px solid #ebeff2;
}

.rnk-master-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50%;
  background: #e8eaf3;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

/* Columna de info */
.rnk-master-list-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rnk-master-list-title {
  font-size: 1.09rem;
  font-weight: 700;
  color: #212131;
  margin-bottom: 0.08em;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rnk-master-list-email {
  font-size: 0.99rem;
  color: #63647a;
  margin-bottom: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rnk-master-list-phone {
  font-size: 0.98rem;
  color: #9698a8;
  margin-bottom: 0.09em;
}
.rnk-master-list-desc {
  font-size: 0.96rem;
  color: #a1a5b3;
  line-height: 1.18;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rnk-master-list-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 88px;
  gap: 7px;
}
.rnk-master-list-date {
  font-size: 0.99rem;
  color: #9ca0b5;
  font-weight: 500;
  margin-bottom: 1px;
}

/* Badges de estado */
.rnk-master-badge {
  font-size: 0.98rem;
  padding: 2px 9px;
  border-radius: 12px;
  font-weight: 600;
  display: inline-block;
  margin-top: 2px;
  margin-left: 5px;
  line-height: 1.12;
}
.rnk-badge-blue    { background: #e7f1ff; color: #2074d6; }
.rnk-badge-yellow  { background: #fff6da; color: #be7d00; }
.rnk-badge-gray    { background: #eef1fa; color: #878fb0; }
.rnk-badge-green   { background: #e7fae7; color: #1eaa67; }

.rnk-master-list-item:hover {
  background: #f6f8fa;
  cursor: pointer;
}

/* Responsive para móvil */
@media (max-width: 600px) {
  .rnk-master-list-item { padding: 0.87rem 0.2rem; gap: 0.65rem; }
  .rnk-master-avatar { width: 32px; height: 32px; min-width:32px; font-size: 0.97rem;}
  .rnk-master-list-meta { min-width: 60px; font-size: 0.95rem;}
}




