/* =========================================================
   PARTE 1 DE 2

   UBICACIÓN:
   frontend/src/pages/mi-gestion/mis-roles/
   mis-roles.css

   WIRTZ HUB · MI GESTIÓN
   MIS ROLES

   DISEÑO:
   - Premium.
   - Minimalista.
   - Responsive.
   - Animaciones sutiles.
   - Sin glow.
   - Divisiones marcadas.
   - Letras más grandes.
   - Letras más pesadas.
   - Dark mode negro real.
   - Misma línea visual que Disponibilidad de Pedidos.
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
  --mr-font:
    "DM Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  --mr-bg:
    #f6f6f6;

  --mr-bg-elevated:
    #ffffff;

  --mr-bg-soft:
    #f1f1f1;

  --mr-bg-muted:
    #e9e9e9;

  --mr-bg-hover:
    #f3f3f3;

  --mr-border:
    #d4d4d4;

  --mr-border-strong:
    #b8b8b8;

  --mr-border-dark:
    #949494;

  --mr-text:
    #111111;

  --mr-text-strong:
    #000000;

  --mr-text-secondary:
    #3f3f3f;

  --mr-text-muted:
    #6a6a6a;

  --mr-text-faint:
    #8b8b8b;

  --mr-primary:
    #111111;

  --mr-primary-hover:
    #000000;

  --mr-primary-text:
    #ffffff;

  --mr-success:
    #157347;

  --mr-success-bg:
    #ecf7f0;

  --mr-success-border:
    #b9dec8;

  --mr-warning:
    #9a6700;

  --mr-warning-bg:
    #fff7df;

  --mr-warning-border:
    #ead59b;

  --mr-danger:
    #b42318;

  --mr-danger-bg:
    #fff0ee;

  --mr-danger-border:
    #e7b8b4;

  --mr-info:
    #31578f;

  --mr-info-bg:
    #eef3fa;

  --mr-info-border:
    #c8d4e8;

  --mr-radius-xs:
    6px;

  --mr-radius-sm:
    8px;

  --mr-radius-md:
    10px;

  --mr-radius-lg:
    12px;

  --mr-radius-xl:
    16px;

  --mr-transition:
    160ms ease;

  --mr-shadow-xs:
    0 1px 2px rgba(0, 0, 0, 0.04);

  --mr-shadow-sm:
    0 4px 12px rgba(0, 0, 0, 0.06);

  --mr-shadow-md:
    0 12px 30px rgba(0, 0, 0, 0.1);
}


/* =========================================================
   DARK MODE · NEGRO REAL
   ========================================================= */

html[data-theme="dark"],
body[data-theme="dark"],
[data-theme="dark"] {
  --mr-bg:
    #000000;

  --mr-bg-elevated:
    #050505;

  --mr-bg-soft:
    #0a0a0a;

  --mr-bg-muted:
    #101010;

  --mr-bg-hover:
    #141414;

  --mr-border:
    #242424;

  --mr-border-strong:
    #383838;

  --mr-border-dark:
    #4b4b4b;

  --mr-text:
    #f1f1f1;

  --mr-text-strong:
    #ffffff;

  --mr-text-secondary:
    #c9c9c9;

  --mr-text-muted:
    #9d9d9d;

  --mr-text-faint:
    #767676;

  --mr-primary:
    #ffffff;

  --mr-primary-hover:
    #e8e8e8;

  --mr-primary-text:
    #000000;

  --mr-success:
    #52c788;

  --mr-success-bg:
    #07140c;

  --mr-success-border:
    #1d5334;

  --mr-warning:
    #e5b94c;

  --mr-warning-bg:
    #171205;

  --mr-warning-border:
    #5a4615;

  --mr-danger:
    #ff8178;

  --mr-danger-bg:
    #190807;

  --mr-danger-border:
    #67231f;

  --mr-info:
    #8eb6ef;

  --mr-info-bg:
    #080d14;

  --mr-info-border:
    #25374f;

  --mr-shadow-xs:
    none;

  --mr-shadow-sm:
    none;

  --mr-shadow-md:
    none;
}


/* =========================================================
   BASE
   ========================================================= */

.mr-page,
.mr-page *,
.mr-page *::before,
.mr-page *::after {
  box-sizing:
    border-box;
}


.mr-page {
  width:
    100%;

  min-width:
    0;

  min-height:
    100%;

  padding:
    18px;

  font-family:
    var(--mr-font);

  color:
    var(--mr-text);

  background:
    var(--mr-bg);

  overflow-x:
    hidden;
}


.mr-page__inner {
  width:
    100%;

  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    14px;
}


/* =========================================================
   TIPOGRAFÍA
   ========================================================= */

.mr-page h1,
.mr-page h2,
.mr-page h3,
.mr-page strong,
.mr-page button {
  font-family:
    var(--mr-font);
}


.mr-page h1,
.mr-page h2,
.mr-page h3 {
  margin:
    0;

  color:
    var(--mr-text-strong);

  letter-spacing:
    -0.025em;
}


.mr-page p {
  margin:
    0;
}


.mr-eyebrow {
  display:
    inline-flex;

  align-items:
    center;

  font-size:
    11px;

  line-height:
    1;

  font-weight:
    900;

  text-transform:
    uppercase;

  letter-spacing:
    0.08em;

  color:
    var(--mr-text-muted);
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.mr-page-head {
  width:
    100%;

  min-width:
    0;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    18px;

  padding:
    18px 20px;

  border:
    1px solid var(--mr-border-strong);

  border-radius:
    var(--mr-radius-xl);

  background:
    var(--mr-bg-elevated);

  box-shadow:
    var(--mr-shadow-xs);

  animation:
    mrFadeUp 280ms ease both;
}


.mr-page-head__main {
  min-width:
    0;

  display:
    flex;

  align-items:
    center;

  gap:
    14px;
}


.mr-page-head__icon {
  width:
    44px;

  height:
    44px;

  flex:
    0 0 44px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid var(--mr-border-strong);

  border-radius:
    11px;

  background:
    var(--mr-bg-soft);

  color:
    var(--mr-text-strong);
}


.mr-page-head__icon svg {
  width:
    20px;

  height:
    20px;

  stroke-width:
    2;
}


.mr-page-head__content {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    5px;
}


.mr-page-head__meta {
  display:
    flex;

  align-items:
    center;

  flex-wrap:
    wrap;

  gap:
    8px;
}


.mr-meta-divider {
  width:
    1px;

  height:
    12px;

  background:
    var(--mr-border-strong);
}


.mr-context {
  font-size:
    11px;

  line-height:
    1;

  font-weight:
    800;

  color:
    var(--mr-text-secondary);
}


.mr-page-head h1 {
  font-size:
    clamp(
      23px,
      2.2vw,
      29px
    );

  line-height:
    1.1;

  font-weight:
    900;
}


.mr-page-head p {
  max-width:
    720px;

  font-size:
    13px;

  line-height:
    1.45;

  font-weight:
    650;

  color:
    var(--mr-text-secondary);
}


/* =========================================================
   PROFILE
   ========================================================= */

.mr-profile {
  flex:
    0 0 auto;

  min-width:
    220px;

  display:
    flex;

  align-items:
    center;

  gap:
    10px;

  padding:
    10px 12px;

  border:
    1px solid var(--mr-border);

  border-radius:
    var(--mr-radius-md);

  background:
    var(--mr-bg-soft);
}


.mr-profile__avatar {
  width:
    38px;

  height:
    38px;

  flex:
    0 0 38px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid var(--mr-border-strong);

  border-radius:
    50%;

  background:
    var(--mr-bg-elevated);

  color:
    var(--mr-text-strong);

  font-size:
    12px;

  line-height:
    1;

  font-weight:
    900;
}


.mr-profile__content {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    2px;
}


.mr-profile__content > span {
  font-size:
    9px;

  line-height:
    1;

  font-weight:
    900;

  text-transform:
    uppercase;

  letter-spacing:
    0.05em;

  color:
    var(--mr-text-muted);
}


.mr-profile__content strong {
  max-width:
    180px;

  overflow:
    hidden;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;

  font-size:
    13px;

  line-height:
    1.2;

  font-weight:
    900;

  color:
    var(--mr-text-strong);
}


.mr-profile__content small {
  max-width:
    180px;

  overflow:
    hidden;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;

  font-size:
    10px;

  line-height:
    1.2;

  font-weight:
    700;

  color:
    var(--mr-text-muted);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.mr-btn {
  min-height:
    38px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    7px;

  padding:
    0 14px;

  border:
    1px solid var(--mr-border-strong);

  border-radius:
    var(--mr-radius-sm);

  background:
    var(--mr-bg-elevated);

  color:
    var(--mr-text-strong);

  cursor:
    pointer;

  font-size:
    12px;

  line-height:
    1;

  font-weight:
    850;

  white-space:
    nowrap;

  transition:
    background var(--mr-transition),
    border-color var(--mr-transition),
    color var(--mr-transition),
    transform var(--mr-transition);
}


.mr-btn svg {
  width:
    15px;

  height:
    15px;

  stroke-width:
    2.2;
}


.mr-btn:hover {
  background:
    var(--mr-bg-hover);

  border-color:
    var(--mr-border-dark);
}


.mr-btn:active {
  transform:
    translateY(
      1px
    );
}


.mr-btn:disabled {
  opacity:
    0.45;

  cursor:
    not-allowed;
}


.mr-btn--primary {
  color:
    var(--mr-primary-text);

  background:
    var(--mr-primary);

  border-color:
    var(--mr-primary);
}


.mr-btn--primary:hover {
  background:
    var(--mr-primary-hover);

  border-color:
    var(--mr-primary-hover);
}


/* =========================================================
   KPI GRID
   ========================================================= */

.mr-kpis {
  width:
    100%;

  display:
    grid;

  grid-template-columns:
    repeat(
      4,
      minmax(
        0,
        1fr
      )
    );

  border:
    1px solid var(--mr-border-strong);

  border-radius:
    var(--mr-radius-xl);

  overflow:
    hidden;

  background:
    var(--mr-bg-elevated);

  animation:
    mrFadeUp 320ms ease both;
}


/* =========================================================
   KPI
   ========================================================= */

.mr-kpi {
  position:
    relative;

  min-width:
    0;

  min-height:
    132px;

  display:
    flex;

  flex-direction:
    column;

  align-items:
    stretch;

  justify-content:
    space-between;

  gap:
    12px;

  padding:
    17px;

  border:
    0;

  border-right:
    1px solid var(--mr-border);

  background:
    var(--mr-bg-elevated);

  color:
    var(--mr-text);

  text-align:
    left;

  cursor:
    pointer;

  transition:
    background var(--mr-transition);
}


.mr-kpi:last-child {
  border-right:
    0;
}


.mr-kpi:hover {
  background:
    var(--mr-bg-hover);
}


.mr-kpi__head {
  display:
    flex;

  align-items:
    center;

  gap:
    9px;
}


.mr-kpi__icon {
  width:
    31px;

  height:
    31px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid var(--mr-border);

  border-radius:
    var(--mr-radius-sm);

  background:
    var(--mr-bg-soft);

  color:
    var(--mr-text-strong);
}


.mr-kpi__icon svg {
  width:
    15px;

  height:
    15px;
}


.mr-kpi__label {
  font-size:
    12px;

  line-height:
    1.2;

  font-weight:
    850;

  color:
    var(--mr-text-secondary);
}


.mr-kpi__body {
  display:
    flex;

  flex-direction:
    column;

  gap:
    4px;
}


.mr-kpi__body strong {
  font-size:
    clamp(
      29px,
      3vw,
      38px
    );

  line-height:
    1;

  font-weight:
    950;

  letter-spacing:
    -0.05em;

  color:
    var(--mr-text-strong);
}


.mr-kpi__body span {
  font-size:
    11px;

  line-height:
    1.3;

  font-weight:
    700;

  color:
    var(--mr-text-muted);
}


.mr-kpi__arrow {
  position:
    absolute;

  top:
    16px;

  right:
    16px;

  color:
    var(--mr-text-faint);

  transition:
    transform var(--mr-transition),
    color var(--mr-transition);
}


.mr-kpi__arrow svg {
  width:
    15px;

  height:
    15px;
}


.mr-kpi:hover
.mr-kpi__arrow {
  color:
    var(--mr-text-strong);

  transform:
    translate(
      1px,
      -1px
    );
}


/* =========================================================
   PRINCIPAL ROLE
   ========================================================= */

.mr-principal {
  width:
    100%;

  min-width:
    0;

  border:
    1px solid var(--mr-border-strong);

  border-radius:
    var(--mr-radius-xl);

  background:
    var(--mr-bg-elevated);

  overflow:
    hidden;

  animation:
    mrFadeUp 360ms ease both;
}


/* =========================================================
   PRINCIPAL HEADER
   ========================================================= */

.mr-principal__head {
  min-width:
    0;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    16px;

  padding:
    16px 18px;

  border-bottom:
    1px solid var(--mr-border-strong);
}


.mr-principal__identity {
  min-width:
    0;

  display:
    flex;

  align-items:
    center;

  gap:
    13px;
}


.mr-principal__icon {
  width:
    44px;

  height:
    44px;

  flex:
    0 0 44px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid var(--mr-border-strong);

  border-radius:
    11px;

  background:
    var(--mr-bg-soft);

  color:
    var(--mr-text-strong);
}


.mr-principal__icon svg {
  width:
    19px;

  height:
    19px;
}


.mr-principal__content {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    5px;
}


.mr-principal__meta {
  display:
    flex;

  align-items:
    center;

  flex-wrap:
    wrap;

  gap:
    8px;
}


.mr-level {
  min-height:
    23px;

  display:
    inline-flex;

  align-items:
    center;

  padding:
    0 8px;

  border:
    1px solid var(--mr-border);

  border-radius:
    999px;

  background:
    var(--mr-bg-soft);

  color:
    var(--mr-text-secondary);

  font-size:
    9px;

  line-height:
    1;

  font-weight:
    900;

  text-transform:
    uppercase;

  letter-spacing:
    0.04em;
}


.mr-principal h2 {
  font-size:
    clamp(
      20px,
      2vw,
      25px
    );

  line-height:
    1.15;

  font-weight:
    950;
}


.mr-principal__details {
  display:
    flex;

  align-items:
    center;

  flex-wrap:
    wrap;

  gap:
    10px;
}


.mr-principal__details span {
  display:
    inline-flex;

  align-items:
    center;

  gap:
    5px;

  font-size:
    11px;

  line-height:
    1;

  font-weight:
    750;

  color:
    var(--mr-text-secondary);
}


.mr-principal__details svg {
  width:
    13px;

  height:
    13px;
}


/* =========================================================
   PRINCIPAL BODY
   ========================================================= */

.mr-principal__body {
  display:
    grid;

  grid-template-columns:
    minmax(
      0,
      1.6fr
    )
    minmax(
      320px,
      0.8fr
    );

  gap:
    0;
}


/* =========================================================
   OBJECTIVE
   ========================================================= */

.mr-objective {
  min-width:
    0;

  padding:
    18px;

  border-right:
    1px solid var(--mr-border-strong);
}


.mr-objective__head {
  display:
    flex;

  align-items:
    center;

  gap:
    9px;

  margin-bottom:
    10px;
}


.mr-objective__icon {
  width:
    31px;

  height:
    31px;

  flex:
    0 0 31px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid var(--mr-border);

  border-radius:
    var(--mr-radius-sm);

  background:
    var(--mr-bg-soft);

  color:
    var(--mr-text-strong);
}


.mr-objective__icon svg {
  width:
    15px;

  height:
    15px;
}


.mr-objective__head > div {
  display:
    flex;

  flex-direction:
    column;

  gap:
    3px;
}


.mr-objective__head strong {
  font-size:
    13px;

  font-weight:
    900;

  color:
    var(--mr-text-strong);
}


.mr-objective p {
  font-size:
    13px;

  line-height:
    1.6;

  font-weight:
    650;

  color:
    var(--mr-text-secondary);
}


/* =========================================================
   PRINCIPAL STATS
   ========================================================= */

.mr-principal-stats {
  display:
    grid;

  grid-template-columns:
    1fr;
}


.mr-principal-stats article {
  min-width:
    0;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    12px;

  padding:
    14px 16px;

  border-bottom:
    1px solid var(--mr-border);

  background:
    var(--mr-bg-soft);
}


.mr-principal-stats article:last-child {
  border-bottom:
    0;
}


.mr-principal-stats span {
  font-size:
    11px;

  line-height:
    1.2;

  font-weight:
    800;

  color:
    var(--mr-text-secondary);
}


.mr-principal-stats strong {
  font-size:
    20px;

  line-height:
    1;

  font-weight:
    950;

  color:
    var(--mr-text-strong);
}


/* =========================================================
   PRINCIPAL FOOTER
   ========================================================= */

.mr-principal__footer {
  padding:
    12px 18px;

  border-top:
    1px solid var(--mr-border-strong);

  background:
    var(--mr-bg-soft);
}


.mr-reports-to {
  display:
    flex;

  align-items:
    center;

  gap:
    9px;
}


.mr-reports-to__icon {
  width:
    31px;

  height:
    31px;

  flex:
    0 0 31px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid var(--mr-border);

  border-radius:
    var(--mr-radius-sm);

  background:
    var(--mr-bg-elevated);

  color:
    var(--mr-text-strong);
}


.mr-reports-to__icon svg {
  width:
    14px;

  height:
    14px;
}


.mr-reports-to > div {
  display:
    flex;

  flex-direction:
    column;

  gap:
    2px;
}


.mr-reports-to span {
  font-size:
    9px;

  line-height:
    1;

  font-weight:
    900;

  text-transform:
    uppercase;

  letter-spacing:
    0.05em;

  color:
    var(--mr-text-muted);
}


.mr-reports-to strong {
  font-size:
    12px;

  line-height:
    1.2;

  font-weight:
    900;

  color:
    var(--mr-text-strong);
}


.mr-reports-to small {
  font-size:
    10px;

  font-weight:
    700;

  color:
    var(--mr-text-muted);
}


/* =========================================================
   WORKSPACE
   ========================================================= */

.mr-workspace {
  width:
    100%;

  min-width:
    0;

  border:
    1px solid var(--mr-border-strong);

  border-radius:
    var(--mr-radius-xl);

  background:
    var(--mr-bg-elevated);

  overflow:
    hidden;

  animation:
    mrFadeUp 400ms ease both;
}


.mr-workspace__tabs {
  padding:
    10px 12px;

  border-bottom:
    1px solid var(--mr-border-strong);

  background:
    var(--mr-bg-soft);
}


.mr-workspace__content {
  min-width:
    0;
}


/* =========================================================
   TABS
   ========================================================= */

.mr-tabs {
  width:
    100%;

  min-width:
    0;

  display:
    flex;

  align-items:
    center;

  gap:
    5px;

  overflow-x:
    auto;

  scrollbar-width:
    thin;
}


.mr-tab {
  min-height:
    37px;

  flex:
    0 0 auto;

  display:
    inline-flex;

  align-items:
    center;

  gap:
    7px;

  padding:
    0 11px;

  border:
    1px solid transparent;

  border-radius:
    var(--mr-radius-sm);

  background:
    transparent;

  color:
    var(--mr-text-secondary);

  cursor:
    pointer;

  font-size:
    11px;

  line-height:
    1;

  font-weight:
    850;

  transition:
    background var(--mr-transition),
    border-color var(--mr-transition),
    color var(--mr-transition);
}


.mr-tab svg {
  width:
    14px;

  height:
    14px;
}


.mr-tab > strong {
  min-width:
    21px;

  height:
    21px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  padding:
    0 6px;

  border:
    1px solid var(--mr-border);

  border-radius:
    999px;

  background:
    var(--mr-bg-elevated);

  font-size:
    9px;

  line-height:
    1;

  font-weight:
    900;

  color:
    var(--mr-text-secondary);
}


.mr-tab:hover {
  background:
    var(--mr-bg-hover);

  color:
    var(--mr-text-strong);
}


.mr-tab.is-active {
  border-color:
    var(--mr-border-strong);

  background:
    var(--mr-bg-elevated);

  color:
    var(--mr-text-strong);
}


/* =========================================================
   SECTION
   ========================================================= */

.mr-section {
  width:
    100%;

  min-width:
    0;
}


/* =========================================================
   SECTION HEAD
   ========================================================= */

.mr-section-head,
.mr-history-head {
  min-width:
    0;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    14px;

  padding:
    15px 16px;

  border-bottom:
    1px solid var(--mr-border-strong);

  background:
    var(--mr-bg-elevated);
}


.mr-section-head__main {
  min-width:
    0;

  display:
    flex;

  align-items:
    center;

  gap:
    10px;
}


.mr-section-head__icon {
  width:
    34px;

  height:
    34px;

  flex:
    0 0 34px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid var(--mr-border);

  border-radius:
    var(--mr-radius-sm);

  background:
    var(--mr-bg-soft);

  color:
    var(--mr-text-strong);
}


.mr-section-head__icon svg {
  width:
    15px;

  height:
    15px;
}


.mr-section-head__main > div {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    3px;
}


.mr-section-head h3,
.mr-history-head h3 {
  font-size:
    16px;

  line-height:
    1.2;

  font-weight:
    950;
}


.mr-section-head p,
.mr-history-head p {
  max-width:
    720px;

  font-size:
    11px;

  line-height:
    1.4;

  font-weight:
    650;

  color:
    var(--mr-text-muted);
}


/* =========================================================
   COUNT
   ========================================================= */

.mr-count {
  min-width:
    31px;

  height:
    31px;

  flex:
    0 0 auto;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  padding:
    0 8px;

  border:
    1px solid var(--mr-border-strong);

  border-radius:
    999px;

  background:
    var(--mr-bg-soft);

  color:
    var(--mr-text-strong);

  font-size:
    11px;

  font-weight:
    950;
}


/* =========================================================
   BADGE
   ========================================================= */

.mr-badge {
  min-height:
    24px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  padding:
    0 8px;

  border:
    1px solid var(--mr-border);

  border-radius:
    999px;

  background:
    var(--mr-bg-soft);

  color:
    var(--mr-text-secondary);

  font-size:
    9px;

  line-height:
    1;

  font-weight:
    900;

  white-space:
    nowrap;
}


.mr-badge--primary {
  border-color:
    var(--mr-success-border);

  background:
    var(--mr-success-bg);

  color:
    var(--mr-success);
}


/* =========================================================
   RESPONSIBILITIES
   ========================================================= */

.mr-responsibilities,
.mr-authorities {
  display:
    flex;

  flex-direction:
    column;
}


.mr-responsibility,
.mr-authority {
  min-width:
    0;

  display:
    grid;

  align-items:
    center;

  gap:
    12px;

  min-height:
    72px;

  padding:
    12px 14px;

  border-bottom:
    1px solid var(--mr-border);

  background:
    var(--mr-bg-elevated);

  transition:
    background var(--mr-transition);
}


.mr-responsibility {
  grid-template-columns:
    34px
    minmax(
      0,
      1fr
    )
    auto;
}


.mr-authority {
  grid-template-columns:
    34px
    34px
    minmax(
      0,
      1fr
    )
    auto;
}


.mr-responsibility:last-child,
.mr-authority:last-child {
  border-bottom:
    0;
}


.mr-responsibility:hover,
.mr-authority:hover {
  background:
    var(--mr-bg-hover);
}


.mr-responsibility.is-primary {
  box-shadow:
    inset 3px 0 0 var(--mr-success);
}


.mr-responsibility__index,
.mr-authority__index {
  width:
    31px;

  height:
    31px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid var(--mr-border);

  border-radius:
    var(--mr-radius-sm);

  background:
    var(--mr-bg-soft);

  color:
    var(--mr-text-secondary);

  font-size:
    10px;

  line-height:
    1;

  font-weight:
    950;
}


.mr-authority__icon {
  width:
    31px;

  height:
    31px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid var(--mr-border);

  border-radius:
    var(--mr-radius-sm);

  background:
    var(--mr-bg-soft);

  color:
    var(--mr-text-strong);
}


.mr-authority__icon svg {
  width:
    14px;

  height:
    14px;
}


.mr-responsibility__body,
.mr-authority__body {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    4px;
}


.mr-responsibility__head {
  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    10px;
}


.mr-responsibility__head > strong,
.mr-authority__body > strong {
  font-size:
    13px;

  line-height:
    1.25;

  font-weight:
    900;

  color:
    var(--mr-text-strong);
}


.mr-responsibility__body p,
.mr-authority__body p {
  font-size:
    11px;

  line-height:
    1.45;

  font-weight:
    650;

  color:
    var(--mr-text-secondary);
}


.mr-responsibility__badges {
  display:
    flex;

  align-items:
    center;

  flex-wrap:
    wrap;

  gap:
    5px;
}


.mr-responsibility__role,
.mr-authority__role {
  max-width:
    230px;

  min-width:
    0;

  display:
    flex;

  align-items:
    center;

  gap:
    5px;

  color:
    var(--mr-text-muted);
}


.mr-responsibility__role svg {
  width:
    13px;

  height:
    13px;
}


.mr-responsibility__role span {
  overflow:
    hidden;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;

  font-size:
    10px;

  font-weight:
    750;
}


.mr-authority__role {
  flex-direction:
    column;

  align-items:
    flex-end;

  gap:
    2px;
}


.mr-authority__role span {
  font-size:
    8px;

  line-height:
    1;

  font-weight:
    850;

  text-transform:
    uppercase;

  letter-spacing:
    0.05em;
}


.mr-authority__role strong {
  max-width:
    210px;

  overflow:
    hidden;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;

  font-size:
    10px;

  font-weight:
    850;

  color:
    var(--mr-text-secondary);
}


/* =========================================================
   EMPTY
   ========================================================= */

.mr-empty {
  min-height:
    170px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    11px;

  padding:
    22px;

  text-align:
    left;

  background:
    var(--mr-bg-elevated);
}


.mr-empty--compact {
  min-height:
    120px;
}


.mr-empty__icon {
  width:
    39px;

  height:
    39px;

  flex:
    0 0 39px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid var(--mr-border-strong);

  border-radius:
    var(--mr-radius-md);

  background:
    var(--mr-bg-soft);

  color:
    var(--mr-text-secondary);
}


.mr-empty__icon svg {
  width:
    17px;

  height:
    17px;
}


.mr-empty > div {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    3px;
}


.mr-empty strong {
  font-size:
    12px;

  line-height:
    1.2;

  font-weight:
    900;

  color:
    var(--mr-text-strong);
}


.mr-empty p {
  font-size:
    10px;

  line-height:
    1.4;

  font-weight:
    650;

  color:
    var(--mr-text-muted);
}


/* =========================================================
   STATE
   ========================================================= */

.mr-state {
  min-height:
    180px;

  display:
    grid;

  grid-template-columns:
    44px
    minmax(
      0,
      1fr
    )
    auto;

  align-items:
    center;

  gap:
    13px;

  padding:
    18px;

  border:
    1px solid var(--mr-border-strong);

  border-radius:
    var(--mr-radius-xl);

  background:
    var(--mr-bg-elevated);
}


.mr-state__icon {
  width:
    42px;

  height:
    42px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid var(--mr-border-strong);

  border-radius:
    var(--mr-radius-md);

  background:
    var(--mr-bg-soft);

  color:
    var(--mr-text-strong);
}


.mr-state__icon svg {
  width:
    18px;

  height:
    18px;
}


.mr-state__content {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    4px;
}


.mr-state__content strong {
  font-size:
    15px;

  font-weight:
    950;

  color:
    var(--mr-text-strong);
}


.mr-state__content p {
  font-size:
    11px;

  line-height:
    1.4;

  font-weight:
    650;

  color:
    var(--mr-text-muted);
}


/* =========================================================
   SPINNING
   ========================================================= */

.is-spinning {
  animation:
    mrSpin 700ms linear infinite;
}


/* =========================================================
   FIN · PARTE 1 DE 2

   SIGUE:
   - Indicadores
   - Roles
   - Historial
   - Modal
   - Detalle
   - Responsive
   - Dark mode refuerzo
   - Animaciones
   ========================================================= *//* =========================================================
   PARTE 2 DE 2

   UBICACIÓN:
   frontend/src/pages/mi-gestion/mis-roles/
   mis-roles.css

   CONTINÚA:
   - Indicadores
   - Roles
   - Historial
   - Modal
   - Detalle
   - Responsive
   - Dark mode refuerzo
   - Animaciones
   ========================================================= */


/* =========================================================
   INDICATORS
   ========================================================= */

.mr-indicators {
  width:
    100%;

  min-width:
    0;
}


.mr-indicators__head {
  display:
    grid;

  grid-template-columns:
    minmax(
      0,
      1.6fr
    )
    minmax(
      160px,
      0.55fr
    )
    minmax(
      180px,
      0.65fr
    );

  gap:
    12px;

  padding:
    10px 14px;

  border-bottom:
    1px solid var(--mr-border-strong);

  background:
    var(--mr-bg-soft);
}


.mr-indicators__head span {
  font-size:
    9px;

  line-height:
    1;

  font-weight:
    900;

  text-transform:
    uppercase;

  letter-spacing:
    0.06em;

  color:
    var(--mr-text-muted);
}


.mr-indicators__body {
  display:
    flex;

  flex-direction:
    column;
}


.mr-indicator {
  min-width:
    0;

  display:
    grid;

  grid-template-columns:
    minmax(
      0,
      1.6fr
    )
    minmax(
      160px,
      0.55fr
    )
    minmax(
      180px,
      0.65fr
    );

  gap:
    12px;

  align-items:
    center;

  min-height:
    74px;

  padding:
    12px 14px;

  border-bottom:
    1px solid var(--mr-border);

  background:
    var(--mr-bg-elevated);

  transition:
    background var(--mr-transition);
}


.mr-indicator:last-child {
  border-bottom:
    0;
}


.mr-indicator:hover {
  background:
    var(--mr-bg-hover);
}


.mr-indicator__main {
  min-width:
    0;

  display:
    flex;

  align-items:
    center;

  gap:
    10px;
}


.mr-indicator__icon {
  width:
    34px;

  height:
    34px;

  flex:
    0 0 34px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid var(--mr-border);

  border-radius:
    var(--mr-radius-sm);

  background:
    var(--mr-bg-soft);

  color:
    var(--mr-text-strong);
}


.mr-indicator__icon svg {
  width:
    15px;

  height:
    15px;
}


.mr-indicator__main > div {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    3px;
}


.mr-indicator__main strong {
  font-size:
    13px;

  line-height:
    1.25;

  font-weight:
    900;

  color:
    var(--mr-text-strong);
}


.mr-indicator__main p {
  font-size:
    10px;

  line-height:
    1.4;

  font-weight:
    650;

  color:
    var(--mr-text-secondary);
}


.mr-indicator__target,
.mr-indicator__role {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    3px;
}


.mr-indicator__target span,
.mr-indicator__role span {
  font-size:
    8px;

  line-height:
    1;

  font-weight:
    900;

  text-transform:
    uppercase;

  letter-spacing:
    0.05em;

  color:
    var(--mr-text-muted);
}


.mr-indicator__target strong,
.mr-indicator__role strong {
  max-width:
    100%;

  overflow:
    hidden;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;

  font-size:
    11px;

  line-height:
    1.2;

  font-weight:
    900;

  color:
    var(--mr-text-strong);
}


/* =========================================================
   ROLES
   ========================================================= */

.mr-roles {
  display:
    flex;

  flex-direction:
    column;
}


.mr-role {
  min-width:
    0;

  display:
    grid;

  grid-template-columns:
    38px
    minmax(
      0,
      1fr
    )
    auto
    auto
    auto;

  align-items:
    center;

  gap:
    12px;

  min-height:
    78px;

  padding:
    12px 14px;

  border-bottom:
    1px solid var(--mr-border);

  background:
    var(--mr-bg-elevated);

  transition:
    background var(--mr-transition);
}


.mr-role:last-child {
  border-bottom:
    0;
}


.mr-role:hover {
  background:
    var(--mr-bg-hover);
}


.mr-role.is-principal {
  box-shadow:
    inset 3px 0 0 var(--mr-success);
}


.mr-role__icon {
  width:
    36px;

  height:
    36px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid var(--mr-border-strong);

  border-radius:
    var(--mr-radius-sm);

  background:
    var(--mr-bg-soft);

  color:
    var(--mr-text-strong);
}


.mr-role__icon svg {
  width:
    16px;

  height:
    16px;
}


.mr-role__body {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    4px;
}


.mr-role__meta {
  display:
    flex;

  align-items:
    center;

  flex-wrap:
    wrap;

  gap:
    6px;
}


.mr-role__meta > span:first-child {
  font-size:
    9px;

  line-height:
    1;

  font-weight:
    900;

  text-transform:
    uppercase;

  letter-spacing:
    0.05em;

  color:
    var(--mr-text-muted);
}


.mr-role__name {
  max-width:
    100%;

  overflow:
    hidden;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;

  font-size:
    14px;

  line-height:
    1.2;

  font-weight:
    950;

  color:
    var(--mr-text-strong);
}


.mr-role__area {
  display:
    flex;

  align-items:
    center;

  gap:
    5px;

  min-width:
    0;

  color:
    var(--mr-text-secondary);
}


.mr-role__area svg {
  width:
    13px;

  height:
    13px;

  flex:
    0 0 13px;
}


.mr-role__area span {
  overflow:
    hidden;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;

  font-size:
    10px;

  font-weight:
    700;
}


/* =========================================================
   ROLE METRICS
   ========================================================= */

.mr-role__metrics {
  display:
    flex;

  align-items:
    stretch;

  border:
    1px solid var(--mr-border);

  border-radius:
    var(--mr-radius-sm);

  overflow:
    hidden;

  background:
    var(--mr-bg-soft);
}


.mr-role__metrics > div {
  min-width:
    58px;

  display:
    flex;

  flex-direction:
    column;

  align-items:
    center;

  justify-content:
    center;

  gap:
    2px;

  padding:
    7px 8px;

  border-right:
    1px solid var(--mr-border);
}


.mr-role__metrics > div:last-child {
  border-right:
    0;
}


.mr-role__metrics span {
  font-size:
    8px;

  line-height:
    1;

  font-weight:
    850;

  color:
    var(--mr-text-muted);
}


.mr-role__metrics strong {
  font-size:
    13px;

  line-height:
    1;

  font-weight:
    950;

  color:
    var(--mr-text-strong);
}


/* =========================================================
   ROLE DATE
   ========================================================= */

.mr-role__date {
  min-width:
    92px;

  display:
    flex;

  flex-direction:
    column;

  gap:
    3px;
}


.mr-role__date span {
  font-size:
    8px;

  line-height:
    1;

  font-weight:
    850;

  text-transform:
    uppercase;

  letter-spacing:
    0.05em;

  color:
    var(--mr-text-muted);
}


.mr-role__date strong {
  font-size:
    10px;

  line-height:
    1.2;

  font-weight:
    900;

  color:
    var(--mr-text-strong);
}


/* =========================================================
   ROLE OPEN
   ========================================================= */

.mr-role__open {
  min-height:
    34px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    6px;

  padding:
    0 10px;

  border:
    1px solid var(--mr-border-strong);

  border-radius:
    var(--mr-radius-sm);

  background:
    var(--mr-bg-elevated);

  color:
    var(--mr-text-strong);

  cursor:
    pointer;

  font-size:
    10px;

  line-height:
    1;

  font-weight:
    900;

  white-space:
    nowrap;

  transition:
    background var(--mr-transition),
    border-color var(--mr-transition),
    transform var(--mr-transition);
}


.mr-role__open:hover {
  background:
    var(--mr-bg-hover);

  border-color:
    var(--mr-border-dark);
}


.mr-role__open:active {
  transform:
    translateY(
      1px
    );
}


.mr-role__open svg {
  width:
    13px;

  height:
    13px;
}


/* =========================================================
   HISTORY SUMMARY
   ========================================================= */

.mr-history-summary {
  flex:
    0 0 auto;

  display:
    flex;

  align-items:
    stretch;

  border:
    1px solid var(--mr-border);

  border-radius:
    var(--mr-radius-md);

  overflow:
    hidden;

  background:
    var(--mr-bg-soft);
}


.mr-history-summary > div {
  min-width:
    78px;

  display:
    flex;

  flex-direction:
    column;

  gap:
    3px;

  padding:
    8px 10px;

  border-right:
    1px solid var(--mr-border);
}


.mr-history-summary > div:last-child {
  border-right:
    0;
}


.mr-history-summary span {
  font-size:
    8px;

  line-height:
    1;

  font-weight:
    850;

  text-transform:
    uppercase;

  letter-spacing:
    0.04em;

  color:
    var(--mr-text-muted);
}


.mr-history-summary strong {
  font-size:
    14px;

  line-height:
    1;

  font-weight:
    950;

  color:
    var(--mr-text-strong);
}


/* =========================================================
   HISTORY GRID
   ========================================================= */

.mr-history-grid {
  display:
    grid;

  grid-template-columns:
    minmax(
      0,
      1fr
    )
    minmax(
      0,
      1fr
    );

  gap:
    0;
}


.mr-history-panel {
  min-width:
    0;

  border-right:
    1px solid var(--mr-border-strong);
}


.mr-history-panel:last-child {
  border-right:
    0;
}


.mr-history-panel__head {
  min-height:
    56px;

  display:
    flex;

  align-items:
    center;

  gap:
    9px;

  padding:
    10px 12px;

  border-bottom:
    1px solid var(--mr-border);

  background:
    var(--mr-bg-soft);
}


.mr-history-panel__icon {
  width:
    31px;

  height:
    31px;

  flex:
    0 0 31px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid var(--mr-border);

  border-radius:
    var(--mr-radius-sm);

  background:
    var(--mr-bg-elevated);

  color:
    var(--mr-text-strong);
}


.mr-history-panel__icon svg {
  width:
    14px;

  height:
    14px;
}


.mr-history-panel__head > div {
  display:
    flex;

  flex-direction:
    column;

  gap:
    2px;
}


.mr-history-panel__head span {
  font-size:
    8px;

  line-height:
    1;

  font-weight:
    900;

  text-transform:
    uppercase;

  letter-spacing:
    0.05em;

  color:
    var(--mr-text-muted);
}


.mr-history-panel__head strong {
  font-size:
    11px;

  line-height:
    1.2;

  font-weight:
    900;

  color:
    var(--mr-text-strong);
}


/* =========================================================
   HISTORY LIST
   ========================================================= */

.mr-history-list,
.mr-events {
  display:
    flex;

  flex-direction:
    column;
}


.mr-history-role {
  position:
    relative;

  min-width:
    0;

  display:
    grid;

  grid-template-columns:
    14px
    34px
    minmax(
      0,
      1fr
    );

  gap:
    10px;

  padding:
    12px;

  border-bottom:
    1px solid var(--mr-border);

  background:
    var(--mr-bg-elevated);

  transition:
    background var(--mr-transition);
}


.mr-history-role:last-child {
  border-bottom:
    0;
}


.mr-history-role:hover {
  background:
    var(--mr-bg-hover);
}


.mr-history-role__rail {
  position:
    relative;

  display:
    flex;

  justify-content:
    center;
}


.mr-history-role__rail::before {
  content:
    "";

  position:
    absolute;

  top:
    -12px;

  bottom:
    -12px;

  width:
    1px;

  background:
    var(--mr-border-strong);
}


.mr-history-role:first-child
.mr-history-role__rail::before {
  top:
    14px;
}


.mr-history-role:last-child
.mr-history-role__rail::before {
  bottom:
    calc(
      100% -
      14px
    );
}


.mr-history-role__rail > span {
  position:
    relative;

  z-index:
    1;

  width:
    8px;

  height:
    8px;

  margin-top:
    12px;

  border:
    2px solid var(--mr-bg-elevated);

  border-radius:
    50%;

  background:
    var(--mr-border-dark);
}


.mr-history-role.is-active
.mr-history-role__rail > span {
  background:
    var(--mr-success);
}


.mr-history-role__icon {
  width:
    34px;

  height:
    34px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid var(--mr-border);

  border-radius:
    var(--mr-radius-sm);

  background:
    var(--mr-bg-soft);

  color:
    var(--mr-text-strong);
}


.mr-history-role__icon svg {
  width:
    15px;

  height:
    15px;
}


.mr-history-role__body {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    6px;
}


.mr-history-role__head {
  min-width:
    0;

  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    10px;
}


.mr-history-role__head > div {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    2px;
}


.mr-history-role__head > div > span {
  font-size:
    9px;

  line-height:
    1;

  font-weight:
    850;

  text-transform:
    uppercase;

  letter-spacing:
    0.04em;

  color:
    var(--mr-text-muted);
}


.mr-history-role__head > div > strong {
  font-size:
    12px;

  line-height:
    1.25;

  font-weight:
    900;

  color:
    var(--mr-text-strong);
}


.mr-history-role__body > p {
  font-size:
    10px;

  line-height:
    1.4;

  font-weight:
    650;

  color:
    var(--mr-text-secondary);
}


.mr-history-role__meta {
  display:
    flex;

  align-items:
    center;

  flex-wrap:
    wrap;

  gap:
    8px;
}


.mr-history-role__meta span {
  display:
    inline-flex;

  align-items:
    center;

  gap:
    4px;

  font-size:
    9px;

  line-height:
    1;

  font-weight:
    700;

  color:
    var(--mr-text-muted);
}


.mr-history-role__meta svg {
  width:
    11px;

  height:
    11px;
}


/* =========================================================
   EVENTS
   ========================================================= */

.mr-event {
  min-width:
    0;

  display:
    grid;

  grid-template-columns:
    34px
    minmax(
      0,
      1fr
    );

  gap:
    10px;

  padding:
    12px;

  border-bottom:
    1px solid var(--mr-border);

  background:
    var(--mr-bg-elevated);

  transition:
    background var(--mr-transition);
}


.mr-event:last-child {
  border-bottom:
    0;
}


.mr-event:hover {
  background:
    var(--mr-bg-hover);
}


.mr-event__icon {
  width:
    34px;

  height:
    34px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid var(--mr-border);

  border-radius:
    var(--mr-radius-sm);

  background:
    var(--mr-bg-soft);

  color:
    var(--mr-text-strong);
}


.mr-event__icon svg {
  width:
    14px;

  height:
    14px;
}


.mr-event__body {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    5px;
}


.mr-event__head {
  min-width:
    0;

  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    10px;
}


.mr-event__head > div {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    2px;
}


.mr-event__head strong {
  font-size:
    11px;

  line-height:
    1.2;

  font-weight:
    900;

  color:
    var(--mr-text-strong);
}


.mr-event__head span {
  font-size:
    9px;

  line-height:
    1.2;

  font-weight:
    700;

  color:
    var(--mr-text-muted);
}


.mr-event time {
  flex:
    0 0 auto;

  font-size:
    9px;

  line-height:
    1;

  font-weight:
    750;

  color:
    var(--mr-text-muted);
}


.mr-event__body > small {
  font-size:
    9px;

  line-height:
    1.3;

  font-weight:
    650;

  color:
    var(--mr-text-secondary);
}


.mr-event__body > small strong {
  font-weight:
    900;

  color:
    var(--mr-text-strong);
}


/* =========================================================
   MODAL BODY LOCK
   ========================================================= */

body.mis-roles-modal-open {
  overflow:
    hidden;
}


/* =========================================================
   MODAL LAYER
   ========================================================= */

.mr-modal-layer {
  position:
    fixed;

  inset:
    0;

  z-index:
    9999;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  padding:
    22px;
}


/* =========================================================
   MODAL BACKDROP
   ========================================================= */

.mr-modal-backdrop {
  position:
    absolute;

  inset:
    0;

  background:
    rgba(
      0,
      0,
      0,
      0.72
    );

  backdrop-filter:
    none;

  -webkit-backdrop-filter:
    none;

  animation:
    mrBackdropIn 160ms ease both;
}


/* =========================================================
   MODAL
   ========================================================= */

.mr-modal {
  position:
    relative;

  z-index:
    1;

  width:
    min(
      1160px,
      100%
    );

  max-height:
    calc(
      100vh -
      44px
    );

  display:
    flex;

  flex-direction:
    column;

  border:
    1px solid var(--mr-border-strong);

  border-radius:
    var(--mr-radius-xl);

  background:
    var(--mr-bg-elevated);

  box-shadow:
    var(--mr-shadow-md);

  overflow:
    hidden;

  animation:
    mrModalIn 180ms ease both;
}


.mr-modal--detail {
  width:
    min(
      1260px,
      100%
    );
}


/* =========================================================
   MODAL HEADER
   ========================================================= */

.mr-modal__head {
  min-height:
    72px;

  flex:
    0 0 auto;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    14px;

  padding:
    14px 16px;

  border-bottom:
    1px solid var(--mr-border-strong);

  background:
    var(--mr-bg-elevated);
}


.mr-modal__identity {
  min-width:
    0;

  display:
    flex;

  align-items:
    center;

  gap:
    11px;
}


.mr-modal__role-icon {
  width:
    40px;

  height:
    40px;

  flex:
    0 0 40px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid var(--mr-border-strong);

  border-radius:
    var(--mr-radius-md);

  background:
    var(--mr-bg-soft);

  color:
    var(--mr-text-strong);
}


.mr-modal__role-icon svg {
  width:
    18px;

  height:
    18px;
}


.mr-modal__identity > div {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    3px;
}


.mr-modal__identity h2 {
  max-width:
    840px;

  overflow:
    hidden;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;

  font-size:
    19px;

  line-height:
    1.2;

  font-weight:
    950;
}


.mr-modal__identity p {
  font-size:
    10px;

  line-height:
    1.3;

  font-weight:
    700;

  color:
    var(--mr-text-muted);
}


/* =========================================================
   ICON BUTTON
   ========================================================= */

.mr-icon-btn {
  width:
    36px;

  height:
    36px;

  flex:
    0 0 36px;

  display:
    grid;

  place-items:
    center;

  padding:
    0;

  border:
    1px solid var(--mr-border-strong);

  border-radius:
    var(--mr-radius-sm);

  background:
    var(--mr-bg-elevated);

  color:
    var(--mr-text-secondary);

  cursor:
    pointer;

  transition:
    background var(--mr-transition),
    border-color var(--mr-transition),
    color var(--mr-transition);
}


.mr-icon-btn:hover {
  background:
    var(--mr-bg-hover);

  border-color:
    var(--mr-border-dark);

  color:
    var(--mr-text-strong);
}


.mr-icon-btn svg {
  width:
    16px;

  height:
    16px;
}


/* =========================================================
   MODAL BODY
   ========================================================= */

.mr-modal__body {
  min-height:
    0;

  flex:
    1 1 auto;

  overflow-y:
    auto;

  overflow-x:
    hidden;

  padding:
    14px;

  background:
    var(--mr-bg);
}


/* =========================================================
   MODAL LOADING
   ========================================================= */

.mr-modal__loading {
  min-height:
    260px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    12px;

  padding:
    24px;
}


.mr-modal__loading-icon {
  width:
    38px;

  height:
    38px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid var(--mr-border-strong);

  border-radius:
    var(--mr-radius-md);

  background:
    var(--mr-bg-soft);

  color:
    var(--mr-text-strong);
}


.mr-modal__loading-icon svg {
  width:
    18px;

  height:
    18px;
}


.mr-modal__loading > div {
  display:
    flex;

  flex-direction:
    column;

  gap:
    3px;
}


.mr-modal__loading strong {
  font-size:
    13px;

  font-weight:
    900;

  color:
    var(--mr-text-strong);
}


.mr-modal__loading p {
  font-size:
    10px;

  line-height:
    1.4;

  font-weight:
    650;

  color:
    var(--mr-text-muted);
}


/* =========================================================
   DETAIL OVERVIEW
   ========================================================= */

.mr-detail-overview {
  display:
    grid;

  grid-template-columns:
    minmax(
      0,
      1.5fr
    )
    minmax(
      420px,
      1fr
    );

  border:
    1px solid var(--mr-border-strong);

  border-radius:
    var(--mr-radius-lg);

  background:
    var(--mr-bg-elevated);

  overflow:
    hidden;
}


.mr-detail-overview__objective {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    8px;

  padding:
    16px;

  border-right:
    1px solid var(--mr-border-strong);
}


.mr-detail-overview__badges {
  display:
    flex;

  align-items:
    center;

  flex-wrap:
    wrap;

  gap:
    5px;
}


.mr-detail-overview__objective > p {
  font-size:
    12px;

  line-height:
    1.55;

  font-weight:
    650;

  color:
    var(--mr-text-secondary);
}


/* =========================================================
   DETAIL META
   ========================================================= */

.mr-detail-overview__meta {
  display:
    grid;

  grid-template-columns:
    repeat(
      2,
      minmax(
        0,
        1fr
      )
    );
}


.mr-detail-overview__meta article {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    4px;

  padding:
    12px;

  border-right:
    1px solid var(--mr-border);

  border-bottom:
    1px solid var(--mr-border);

  background:
    var(--mr-bg-soft);
}


.mr-detail-overview__meta article:nth-child(2n) {
  border-right:
    0;
}


.mr-detail-overview__meta article:nth-last-child(-n + 2) {
  border-bottom:
    0;
}


.mr-detail-overview__meta span {
  font-size:
    8px;

  line-height:
    1;

  font-weight:
    900;

  text-transform:
    uppercase;

  letter-spacing:
    0.05em;

  color:
    var(--mr-text-muted);
}


.mr-detail-overview__meta strong {
  max-width:
    100%;

  overflow:
    hidden;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;

  font-size:
    11px;

  line-height:
    1.2;

  font-weight:
    900;

  color:
    var(--mr-text-strong);
}


/* =========================================================
   DETAIL SECTION
   ========================================================= */

.mr-detail-section {
  min-width:
    0;

  margin-top:
    12px;

  border:
    1px solid var(--mr-border-strong);

  border-radius:
    var(--mr-radius-lg);

  background:
    var(--mr-bg-elevated);

  overflow:
    hidden;
}


.mr-detail-section__head {
  min-width:
    0;

  min-height:
    58px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    12px;

  padding:
    11px 13px;

  border-bottom:
    1px solid var(--mr-border-strong);

  background:
    var(--mr-bg-elevated);
}


.mr-detail-section__head > div {
  display:
    flex;

  flex-direction:
    column;

  gap:
    3px;
}


.mr-detail-section__head h3 {
  font-size:
    14px;

  line-height:
    1.2;

  font-weight:
    950;
}


/* =========================================================
   DETAIL COLUMNS
   ========================================================= */

.mr-detail-columns {
  display:
    grid;

  grid-template-columns:
    repeat(
      2,
      minmax(
        0,
        1fr
      )
    );

  gap:
    12px;
}


/* =========================================================
   DETAIL LIST
   ========================================================= */

.mr-detail-list {
  display:
    flex;

  flex-direction:
    column;
}


.mr-detail-row {
  min-width:
    0;

  display:
    grid;

  grid-template-columns:
    32px
    minmax(
      0,
      1fr
    )
    auto;

  align-items:
    center;

  gap:
    9px;

  min-height:
    62px;

  padding:
    10px 12px;

  border-bottom:
    1px solid var(--mr-border);

  background:
    var(--mr-bg-elevated);
}


.mr-detail-row:last-child {
  border-bottom:
    0;
}


.mr-detail-row__index,
.mr-detail-row__icon {
  width:
    30px;

  height:
    30px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid var(--mr-border);

  border-radius:
    var(--mr-radius-sm);

  background:
    var(--mr-bg-soft);

  color:
    var(--mr-text-secondary);

  font-size:
    9px;

  font-weight:
    950;
}


.mr-detail-row__icon svg {
  width:
    14px;

  height:
    14px;
}


.mr-detail-row__body {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    3px;
}


.mr-detail-row__body strong {
  font-size:
    11px;

  line-height:
    1.25;

  font-weight:
    900;

  color:
    var(--mr-text-strong);
}


.mr-detail-row__body p {
  font-size:
    9px;

  line-height:
    1.4;

  font-weight:
    650;

  color:
    var(--mr-text-secondary);
}


/* =========================================================
   DETAIL INDICATORS
   ========================================================= */

.mr-detail-indicators {
  display:
    flex;

  flex-direction:
    column;
}


.mr-detail-indicator {
  min-width:
    0;

  display:
    grid;

  grid-template-columns:
    minmax(
      0,
      1fr
    )
    auto;

  align-items:
    center;

  gap:
    10px;

  padding:
    10px 12px;

  border-bottom:
    1px solid var(--mr-border);

  background:
    var(--mr-bg-elevated);
}


.mr-detail-indicator:last-child {
  border-bottom:
    0;
}


.mr-detail-indicator__main {
  min-width:
    0;

  display:
    flex;

  align-items:
    center;

  gap:
    8px;
}


.mr-detail-indicator__main > span {
  width:
    30px;

  height:
    30px;

  flex:
    0 0 30px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid var(--mr-border);

  border-radius:
    var(--mr-radius-sm);

  background:
    var(--mr-bg-soft);

  color:
    var(--mr-text-strong);
}


.mr-detail-indicator__main > span svg {
  width:
    14px;

  height:
    14px;
}


.mr-detail-indicator__main > div {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    2px;
}


.mr-detail-indicator__main strong {
  font-size:
    11px;

  line-height:
    1.2;

  font-weight:
    900;

  color:
    var(--mr-text-strong);
}


.mr-detail-indicator__main p {
  font-size:
    9px;

  line-height:
    1.35;

  font-weight:
    650;

  color:
    var(--mr-text-muted);
}


.mr-detail-indicator__value {
  display:
    flex;

  flex-direction:
    column;

  align-items:
    flex-end;

  gap:
    3px;
}


.mr-detail-indicator__value span {
  font-size:
    8px;

  line-height:
    1;

  font-weight:
    900;

  text-transform:
    uppercase;

  letter-spacing:
    0.05em;

  color:
    var(--mr-text-muted);
}


.mr-detail-indicator__value strong {
  font-size:
    11px;

  line-height:
    1.2;

  font-weight:
    950;

  color:
    var(--mr-text-strong);
}


/* =========================================================
   DETAIL EMPTY
   ========================================================= */

.mr-detail-empty {
  min-height:
    130px;

  display:
    flex;

  flex-direction:
    column;

  align-items:
    center;

  justify-content:
    center;

  gap:
    6px;

  padding:
    18px;

  text-align:
    center;
}


.mr-detail-empty--large {
  min-height:
    260px;
}


.mr-detail-empty > span {
  width:
    36px;

  height:
    36px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid var(--mr-border-strong);

  border-radius:
    var(--mr-radius-sm);

  background:
    var(--mr-bg-soft);

  color:
    var(--mr-text-secondary);
}


.mr-detail-empty > span svg {
  width:
    16px;

  height:
    16px;
}


.mr-detail-empty > strong {
  font-size:
    11px;

  font-weight:
    900;

  color:
    var(--mr-text-strong);
}


.mr-detail-empty > p {
  max-width:
    420px;

  font-size:
    9px;

  line-height:
    1.4;

  font-weight:
    650;

  color:
    var(--mr-text-muted);
}


/* =========================================================
   DARK MODE · NEGRO REAL
   ========================================================= */

html[data-theme="dark"] .mr-page,
body[data-theme="dark"] .mr-page,
[data-theme="dark"] .mr-page {
  background:
    #000000 !important;
}


html[data-theme="dark"] .mr-page-head,
html[data-theme="dark"] .mr-kpis,
html[data-theme="dark"] .mr-kpi,
html[data-theme="dark"] .mr-principal,
html[data-theme="dark"] .mr-workspace,
html[data-theme="dark"] .mr-section,
html[data-theme="dark"] .mr-responsibility,
html[data-theme="dark"] .mr-authority,
html[data-theme="dark"] .mr-indicator,
html[data-theme="dark"] .mr-role,
html[data-theme="dark"] .mr-history-role,
html[data-theme="dark"] .mr-event,
html[data-theme="dark"] .mr-modal,
html[data-theme="dark"] .mr-modal__head,
html[data-theme="dark"] .mr-detail-overview,
html[data-theme="dark"] .mr-detail-section,
html[data-theme="dark"] .mr-detail-row,
html[data-theme="dark"] .mr-detail-indicator,
body[data-theme="dark"] .mr-page-head,
body[data-theme="dark"] .mr-kpis,
body[data-theme="dark"] .mr-kpi,
body[data-theme="dark"] .mr-principal,
body[data-theme="dark"] .mr-workspace,
body[data-theme="dark"] .mr-section,
body[data-theme="dark"] .mr-responsibility,
body[data-theme="dark"] .mr-authority,
body[data-theme="dark"] .mr-indicator,
body[data-theme="dark"] .mr-role,
body[data-theme="dark"] .mr-history-role,
body[data-theme="dark"] .mr-event,
body[data-theme="dark"] .mr-modal,
body[data-theme="dark"] .mr-modal__head,
body[data-theme="dark"] .mr-detail-overview,
body[data-theme="dark"] .mr-detail-section,
body[data-theme="dark"] .mr-detail-row,
body[data-theme="dark"] .mr-detail-indicator,
[data-theme="dark"] .mr-page-head,
[data-theme="dark"] .mr-kpis,
[data-theme="dark"] .mr-kpi,
[data-theme="dark"] .mr-principal,
[data-theme="dark"] .mr-workspace,
[data-theme="dark"] .mr-section,
[data-theme="dark"] .mr-responsibility,
[data-theme="dark"] .mr-authority,
[data-theme="dark"] .mr-indicator,
[data-theme="dark"] .mr-role,
[data-theme="dark"] .mr-history-role,
[data-theme="dark"] .mr-event,
[data-theme="dark"] .mr-modal,
[data-theme="dark"] .mr-modal__head,
[data-theme="dark"] .mr-detail-overview,
[data-theme="dark"] .mr-detail-section,
[data-theme="dark"] .mr-detail-row,
[data-theme="dark"] .mr-detail-indicator {
  background:
    #050505;
}


html[data-theme="dark"] .mr-modal__body,
body[data-theme="dark"] .mr-modal__body,
[data-theme="dark"] .mr-modal__body {
  background:
    #000000;
}


/* =========================================================
   RESPONSIVE · 1200
   ========================================================= */

@media (
  max-width:
  1200px
) {
  .mr-principal__body {
    grid-template-columns:
      minmax(
        0,
        1.4fr
      )
      minmax(
        280px,
        0.7fr
      );
  }


  .mr-role {
    grid-template-columns:
      38px
      minmax(
        0,
        1fr
      )
      auto
      auto;
  }


  .mr-role__date {
    display:
      none;
  }


  .mr-history-grid {
    grid-template-columns:
      1fr;
  }


  .mr-history-panel {
    border-right:
      0;

    border-bottom:
      1px solid var(--mr-border-strong);
  }


  .mr-history-panel:last-child {
    border-bottom:
      0;
  }


  .mr-detail-overview {
    grid-template-columns:
      1fr;
  }


  .mr-detail-overview__objective {
    border-right:
      0;

    border-bottom:
      1px solid var(--mr-border-strong);
  }
}


/* =========================================================
   RESPONSIVE · 980
   ========================================================= */

@media (
  max-width:
  980px
) {
  .mr-page {
    padding:
      14px;
  }


  .mr-page-head {
    align-items:
      flex-start;

    flex-direction:
      column;
  }


  .mr-profile {
    width:
      100%;

    min-width:
      0;
  }


  .mr-kpis {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );
  }


  .mr-kpi:nth-child(2) {
    border-right:
      0;
  }


  .mr-kpi:nth-child(1),
  .mr-kpi:nth-child(2) {
    border-bottom:
      1px solid var(--mr-border);
  }


  .mr-principal__body {
    grid-template-columns:
      1fr;
  }


  .mr-objective {
    border-right:
      0;

    border-bottom:
      1px solid var(--mr-border-strong);
  }


  .mr-principal-stats {
    grid-template-columns:
      repeat(
        3,
        minmax(
          0,
          1fr
        )
      );
  }


  .mr-principal-stats article {
    border-bottom:
      0;

    border-right:
      1px solid var(--mr-border);
  }


  .mr-principal-stats article:last-child {
    border-right:
      0;
  }


  .mr-responsibility {
    grid-template-columns:
      34px
      minmax(
        0,
        1fr
      );
  }


  .mr-responsibility__role {
    grid-column:
      2;

    max-width:
      100%;
  }


  .mr-authority {
    grid-template-columns:
      34px
      34px
      minmax(
        0,
        1fr
      );
  }


  .mr-authority__role {
    grid-column:
      3;

    align-items:
      flex-start;
  }


  .mr-indicators__head {
    display:
      none;
  }


  .mr-indicator {
    grid-template-columns:
      minmax(
        0,
        1fr
      )
      minmax(
        130px,
        0.5fr
      );
  }


  .mr-indicator__role {
    grid-column:
      1 /
      -1;

    padding-top:
      8px;

    border-top:
      1px solid var(--mr-border);
  }


  .mr-role {
    grid-template-columns:
      38px
      minmax(
        0,
        1fr
      )
      auto;
  }


  .mr-role__metrics {
    grid-column:
      2 /
      -1;
  }


  .mr-role__open {
    grid-column:
      3;

    grid-row:
      1;
  }


  .mr-detail-columns {
    grid-template-columns:
      1fr;
  }
}


/* =========================================================
   RESPONSIVE · 700
   ========================================================= */

@media (
  max-width:
  700px
) {
  .mr-page {
    padding:
      10px;
  }


  .mr-page__inner {
    gap:
      10px;
  }


  .mr-page-head {
    padding:
      14px;
  }


  .mr-page-head__main {
    align-items:
      flex-start;
  }


  .mr-page-head__icon {
    width:
      38px;

    height:
      38px;

    flex-basis:
      38px;
  }


  .mr-page-head h1 {
    font-size:
      20px;
  }


  .mr-page-head p {
    font-size:
      11px;
  }


  .mr-kpis {
    grid-template-columns:
      1fr;
  }


  .mr-kpi {
    min-height:
      102px;

    border-right:
      0;

    border-bottom:
      1px solid var(--mr-border);
  }


  .mr-kpi:last-child {
    border-bottom:
      0;
  }


  .mr-kpi__body strong {
    font-size:
      29px;
  }


  .mr-principal__head {
    align-items:
      flex-start;

    flex-direction:
      column;
  }


  .mr-principal__head .mr-btn {
    width:
      100%;
  }


  .mr-principal-stats {
    grid-template-columns:
      1fr;
  }


  .mr-principal-stats article {
    border-right:
      0;

    border-bottom:
      1px solid var(--mr-border);
  }


  .mr-principal-stats article:last-child {
    border-bottom:
      0;
  }


  .mr-workspace__tabs {
    padding:
      8px;
  }


  .mr-tabs {
    overflow-x:
      auto;
  }


  .mr-tab {
    min-height:
      35px;

    padding:
      0 9px;
  }


  .mr-section-head,
  .mr-history-head {
    align-items:
      flex-start;

    flex-direction:
      column;
  }


  .mr-count {
    align-self:
      flex-start;
  }


  .mr-responsibility {
    grid-template-columns:
      31px
      minmax(
        0,
        1fr
      );
  }


  .mr-responsibility__head {
    align-items:
      flex-start;

    flex-direction:
      column;
  }


  .mr-authority {
    grid-template-columns:
      31px
      minmax(
        0,
        1fr
      );
  }


  .mr-authority__icon {
    display:
      none;
  }


  .mr-authority__role {
    grid-column:
      2;
  }


  .mr-indicator {
    grid-template-columns:
      1fr;
  }


  .mr-indicator__target,
  .mr-indicator__role {
    padding-top:
      8px;

    border-top:
      1px solid var(--mr-border);
  }


  .mr-role {
    grid-template-columns:
      36px
      minmax(
        0,
        1fr
      );
  }


  .mr-role__metrics {
    grid-column:
      1 /
      -1;
  }


  .mr-role__open {
    grid-column:
      1 /
      -1;

    width:
      100%;
  }


  .mr-history-summary {
    width:
      100%;
  }


  .mr-history-summary > div {
    flex:
      1 1 0;
  }


  .mr-event__head {
    flex-direction:
      column;
  }


  .mr-modal-layer {
    align-items:
      stretch;

    padding:
      0;
  }


  .mr-modal,
  .mr-modal--detail {
    width:
      100%;

    height:
      100vh;

    max-height:
      100vh;

    border:
      0;

    border-radius:
      0;
  }


  .mr-modal__head {
    min-height:
      62px;

    padding:
      11px 12px;
  }


  .mr-modal__identity h2 {
    font-size:
      16px;
  }


  .mr-modal__body {
    padding:
      10px;
  }


  .mr-detail-overview__meta {
    grid-template-columns:
      1fr;
  }


  .mr-detail-overview__meta article {
    border-right:
      0;

    border-bottom:
      1px solid var(--mr-border);
  }


  .mr-detail-overview__meta article:last-child {
    border-bottom:
      0;
  }


  .mr-detail-row {
    grid-template-columns:
      30px
      minmax(
        0,
        1fr
      );
  }


  .mr-detail-row .mr-badge {
    grid-column:
      2;
  }


  .mr-detail-indicator {
    grid-template-columns:
      1fr;
  }


  .mr-detail-indicator__value {
    align-items:
      flex-start;

    padding-top:
      8px;

    border-top:
      1px solid var(--mr-border);
  }
}


/* =========================================================
   RESPONSIVE · 460
   ========================================================= */

@media (
  max-width:
  460px
) {
  .mr-page {
    padding:
      8px;
  }


  .mr-page-head,
  .mr-principal,
  .mr-workspace {
    border-radius:
      var(--mr-radius-lg);
  }


  .mr-page-head__main {
    gap:
      9px;
  }


  .mr-page-head h1 {
    font-size:
      18px;
  }


  .mr-profile {
    padding:
      9px;
  }


  .mr-profile__avatar {
    width:
      34px;

    height:
      34px;

    flex-basis:
      34px;
  }


  .mr-principal__head,
  .mr-objective,
  .mr-principal__footer {
    padding:
      12px;
  }


  .mr-principal h2 {
    font-size:
      18px;
  }


  .mr-principal__details {
    align-items:
      flex-start;

    flex-direction:
      column;

    gap:
      6px;
  }


  .mr-section-head,
  .mr-history-head {
    padding:
      11px;
  }


  .mr-responsibility,
  .mr-authority,
  .mr-indicator,
  .mr-role,
  .mr-history-role,
  .mr-event {
    padding:
      10px;
  }


  .mr-history-summary {
    display:
      grid;

    grid-template-columns:
      1fr;
  }


  .mr-history-summary > div {
    border-right:
      0;

    border-bottom:
      1px solid var(--mr-border);
  }


  .mr-history-summary > div:last-child {
    border-bottom:
      0;
  }


  .mr-history-role {
    grid-template-columns:
      12px
      30px
      minmax(
        0,
        1fr
      );

    gap:
      8px;
  }


  .mr-history-role__icon,
  .mr-event__icon {
    width:
      30px;

    height:
      30px;
  }


  .mr-history-role__head {
    flex-direction:
      column;
  }


  .mr-detail-overview,
  .mr-detail-section {
    border-radius:
      var(--mr-radius-md);
  }
}


/* =========================================================
   ANIMACIONES
   ========================================================= */

@keyframes mrFadeUp {
  from {
    opacity:
      0;

    transform:
      translateY(
        6px
      );
  }

  to {
    opacity:
      1;

    transform:
      translateY(
        0
      );
  }
}


@keyframes mrModalIn {
  from {
    opacity:
      0;

    transform:
      translateY(
        8px
      )
      scale(
        0.995
      );
  }

  to {
    opacity:
      1;

    transform:
      translateY(
        0
      )
      scale(
        1
      );
  }
}


@keyframes mrBackdropIn {
  from {
    opacity:
      0;
  }

  to {
    opacity:
      1;
  }
}


@keyframes mrSpin {
  to {
    transform:
      rotate(
        360deg
      );
  }
}


/* =========================================================
   ACCESIBILIDAD · REDUCIR MOVIMIENTO
   ========================================================= */

@media (
  prefers-reduced-motion:
  reduce
) {
  .mr-page *,
  .mr-page *::before,
  .mr-page *::after,
  .mr-modal,
  .mr-modal-backdrop {
    scroll-behavior:
      auto !important;

    animation-duration:
      0.01ms !important;

    animation-iteration-count:
      1 !important;

    transition-duration:
      0.01ms !important;
  }
}


/* =========================================================
   FIN · PARTE 2 DE 2
   ========================================================= *//* =========================================================
   MIS ROLES · ESCALA GENERAL MÁS COMPACTA
   ========================================================= */

.mr-page {
  padding: 12px;
}

.mr-page__inner {
  gap: 10px;
}


/* HEADER */

.mr-page-head {
  gap: 14px;

  padding:
    14px
    16px;

  border-radius:
    13px;
}

.mr-page-head__main {
  gap: 11px;
}

.mr-page-head__icon {
  width: 38px;
  height: 38px;

  flex:
    0 0
    38px;

  border-radius: 9px;
}

.mr-page-head__icon svg {
  width: 18px;
  height: 18px;
}

.mr-page-head__content {
  gap: 4px;
}

.mr-eyebrow {
  font-size: 9.5px;
}

.mr-context {
  font-size: 10px;
}

.mr-page-head h1 {
  font-size:
    clamp(
      20px,
      2vw,
      25px
    );
}

.mr-page-head p {
  font-size: 11.5px;
}


/* PERFIL */

.mr-profile {
  min-width: 195px;

  gap: 8px;

  padding:
    8px
    10px;
}

.mr-profile__avatar {
  width: 34px;
  height: 34px;

  flex:
    0 0
    34px;

  font-size: 11px;
}

.mr-profile__content > span {
  font-size: 8px;
}

.mr-profile__content strong {
  font-size: 12px;
}

.mr-profile__content small {
  font-size: 9px;
}


/* BOTONES */

.mr-btn {
  min-height: 34px;

  gap: 6px;

  padding:
    0
    11px;

  font-size: 10.5px;
}

.mr-btn svg {
  width: 14px;
  height: 14px;
}


/* KPI */

.mr-kpis {
  border-radius: 13px;
}

.mr-kpi {
  min-height: 105px;

  gap: 9px;

  padding: 13px;
}

.mr-kpi__head {
  gap: 7px;
}

.mr-kpi__icon {
  width: 27px;
  height: 27px;

  border-radius: 7px;
}

.mr-kpi__icon svg {
  width: 13px;
  height: 13px;
}

.mr-kpi__label {
  font-size: 10.5px;
}

.mr-kpi__body {
  gap: 3px;
}

.mr-kpi__body strong {
  font-size:
    clamp(
      24px,
      2.5vw,
      31px
    );
}

.mr-kpi__body span {
  font-size: 9.5px;
}

.mr-kpi__arrow {
  top: 13px;
  right: 13px;
}

.mr-kpi__arrow svg {
  width: 13px;
  height: 13px;
}


/* ROL PRINCIPAL */

.mr-principal {
  border-radius: 13px;
}

.mr-principal__head {
  gap: 13px;

  padding:
    13px
    15px;
}

.mr-principal__identity {
  gap: 10px;
}

.mr-principal__icon {
  width: 38px;
  height: 38px;

  flex:
    0 0
    38px;

  border-radius: 9px;
}

.mr-principal__icon svg {
  width: 17px;
  height: 17px;
}

.mr-principal__content {
  gap: 4px;
}

.mr-level {
  min-height: 20px;

  padding:
    0
    7px;

  font-size: 8px;
}

.mr-principal h2 {
  font-size:
    clamp(
      18px,
      1.8vw,
      22px
    );
}

.mr-principal__details {
  gap: 8px;
}

.mr-principal__details span {
  gap: 4px;

  font-size: 10px;
}

.mr-principal__details svg {
  width: 12px;
  height: 12px;
}


/* OBJETIVO */

.mr-objective {
  padding: 14px;
}

.mr-objective__head {
  gap: 7px;

  margin-bottom: 8px;
}

.mr-objective__icon {
  width: 27px;
  height: 27px;

  flex:
    0 0
    27px;
}

.mr-objective__icon svg {
  width: 13px;
  height: 13px;
}

.mr-objective__head strong {
  font-size: 11.5px;
}

.mr-objective p {
  font-size: 11.5px;

  line-height: 1.5;
}


/* STATS PRINCIPALES */

.mr-principal-stats article {
  gap: 10px;

  padding:
    11px
    13px;
}

.mr-principal-stats span {
  font-size: 10px;
}

.mr-principal-stats strong {
  font-size: 17px;
}


/* FOOTER PRINCIPAL */

.mr-principal__footer {
  padding:
    10px
    14px;
}

.mr-reports-to {
  gap: 7px;
}

.mr-reports-to__icon {
  width: 27px;
  height: 27px;

  flex:
    0 0
    27px;
}

.mr-reports-to__icon svg {
  width: 13px;
  height: 13px;
}

.mr-reports-to span {
  font-size: 8px;
}

.mr-reports-to strong {
  font-size: 11px;
}

.mr-reports-to small {
  font-size: 9px;
}


/* WORKSPACE */

.mr-workspace {
  border-radius: 13px;
}

.mr-workspace__tabs {
  padding:
    8px
    10px;
}


/* TABS */

.mr-tabs {
  gap: 4px;
}

.mr-tab {
  min-height: 33px;

  gap: 6px;

  padding:
    0
    9px;

  font-size: 10px;
}

.mr-tab svg {
  width: 13px;
  height: 13px;
}

.mr-tab > strong {
  min-width: 19px;
  height: 19px;

  padding:
    0
    5px;

  font-size: 8px;
}


/* CABECERA SECCIÓN */

.mr-section-head,
.mr-history-head {
  gap: 11px;

  padding:
    12px
    13px;
}

.mr-section-head__main {
  gap: 8px;
}

.mr-section-head__icon {
  width: 30px;
  height: 30px;

  flex:
    0 0
    30px;
}

.mr-section-head__icon svg {
  width: 14px;
  height: 14px;
}

.mr-section-head h3,
.mr-history-head h3 {
  font-size: 14px;
}

.mr-section-head p,
.mr-history-head p {
  font-size: 10px;
}

.mr-count {
  min-width: 27px;
  height: 27px;

  padding:
    0
    7px;

  font-size: 10px;
}


/* BADGES */

.mr-badge {
  min-height: 21px;

  padding:
    0
    7px;

  font-size: 8px;
}


/* RESPONSABILIDADES / AUTORIDAD */

.mr-responsibility,
.mr-authority {
  gap: 10px;

  min-height: 62px;

  padding:
    10px
    12px;
}

.mr-responsibility__index,
.mr-authority__index {
  width: 27px;
  height: 27px;

  font-size: 9px;
}

.mr-authority__icon {
  width: 27px;
  height: 27px;
}

.mr-authority__icon svg {
  width: 13px;
  height: 13px;
}

.mr-responsibility__head > strong,
.mr-authority__body > strong {
  font-size: 11.5px;
}

.mr-responsibility__body p,
.mr-authority__body p {
  font-size: 10px;
}

.mr-responsibility__role span {
  font-size: 9px;
}

.mr-authority__role span {
  font-size: 7.5px;
}

.mr-authority__role strong {
  font-size: 9px;
}


/* INDICADORES */

.mr-indicators__head {
  gap: 10px;

  padding:
    8px
    12px;
}

.mr-indicators__head span {
  font-size: 8px;
}

.mr-indicator {
  gap: 10px;

  min-height: 64px;

  padding:
    10px
    12px;
}

.mr-indicator__main {
  gap: 8px;
}

.mr-indicator__icon {
  width: 30px;
  height: 30px;

  flex:
    0 0
    30px;
}

.mr-indicator__icon svg {
  width: 14px;
  height: 14px;
}

.mr-indicator__main strong {
  font-size: 11.5px;
}

.mr-indicator__main p {
  font-size: 9px;
}

.mr-indicator__target span,
.mr-indicator__role span {
  font-size: 7.5px;
}

.mr-indicator__target strong,
.mr-indicator__role strong {
  font-size: 10px;
}


/* ROLES */

.mr-role {
  gap: 10px;

  min-height: 68px;

  padding:
    10px
    12px;
}

.mr-role__icon {
  width: 32px;
  height: 32px;
}

.mr-role__icon svg {
  width: 15px;
  height: 15px;
}

.mr-role__meta > span:first-child {
  font-size: 8px;
}

.mr-role__name {
  font-size: 12.5px;
}

.mr-role__area span {
  font-size: 9px;
}

.mr-role__metrics > div {
  min-width: 52px;

  padding:
    6px
    7px;
}

.mr-role__metrics span {
  font-size: 7.5px;
}

.mr-role__metrics strong {
  font-size: 11.5px;
}

.mr-role__date {
  min-width: 82px;
}

.mr-role__date span {
  font-size: 7.5px;
}

.mr-role__date strong {
  font-size: 9px;
}

.mr-role__open {
  min-height: 31px;

  padding:
    0
    9px;

  font-size: 9px;
}


/* HISTORIAL */

.mr-history-summary > div {
  min-width: 70px;

  padding:
    7px
    8px;
}

.mr-history-summary span {
  font-size: 7.5px;
}

.mr-history-summary strong {
  font-size: 12px;
}

.mr-history-panel__head {
  min-height: 49px;

  gap: 7px;

  padding:
    8px
    10px;
}

.mr-history-panel__icon {
  width: 27px;
  height: 27px;

  flex:
    0 0
    27px;
}

.mr-history-panel__icon svg {
  width: 13px;
  height: 13px;
}

.mr-history-panel__head span {
  font-size: 7.5px;
}

.mr-history-panel__head strong {
  font-size: 10px;
}

.mr-history-role,
.mr-event {
  padding: 10px;
}

.mr-history-role__icon,
.mr-event__icon {
  width: 30px;
  height: 30px;
}

.mr-history-role__head > div > span {
  font-size: 8px;
}

.mr-history-role__head > div > strong {
  font-size: 11px;
}

.mr-history-role__body > p {
  font-size: 9px;
}

.mr-history-role__meta span {
  font-size: 8px;
}

.mr-event__head strong {
  font-size: 10px;
}

.mr-event__head span,
.mr-event time,
.mr-event__body > small {
  font-size: 8px;
}


/* MODAL */

.mr-modal-layer {
  padding: 18px;
}

.mr-modal__head {
  min-height: 62px;

  gap: 11px;

  padding:
    11px
    13px;
}

.mr-modal__role-icon {
  width: 35px;
  height: 35px;

  flex:
    0 0
    35px;
}

.mr-modal__role-icon svg {
  width: 16px;
  height: 16px;
}

.mr-modal__identity h2 {
  font-size: 17px;
}

.mr-modal__identity p {
  font-size: 9px;
}

.mr-icon-btn {
  width: 32px;
  height: 32px;

  flex:
    0 0
    32px;
}

.mr-icon-btn svg {
  width: 14px;
  height: 14px;
}

.mr-modal__body {
  padding: 11px;
}


/* DETALLE MODAL */

.mr-detail-overview__objective {
  gap: 7px;

  padding: 13px;
}

.mr-detail-overview__objective > p {
  font-size: 10.5px;
}

.mr-detail-overview__meta article {
  gap: 3px;

  padding: 10px;
}

.mr-detail-overview__meta span {
  font-size: 7.5px;
}

.mr-detail-overview__meta strong {
  font-size: 10px;
}

.mr-detail-section {
  margin-top: 10px;
}

.mr-detail-section__head {
  min-height: 50px;

  gap: 10px;

  padding:
    9px
    11px;
}

.mr-detail-section__head h3 {
  font-size: 12.5px;
}

.mr-detail-columns {
  gap: 10px;
}

.mr-detail-row {
  gap: 8px;

  min-height: 54px;

  padding:
    8px
    10px;
}

.mr-detail-row__index,
.mr-detail-row__icon {
  width: 27px;
  height: 27px;

  font-size: 8px;
}

.mr-detail-row__body strong {
  font-size: 10px;
}

.mr-detail-row__body p {
  font-size: 8.5px;
}

.mr-detail-indicator {
  gap: 8px;

  padding:
    8px
    10px;
}

.mr-detail-indicator__main > span {
  width: 27px;
  height: 27px;

  flex:
    0 0
    27px;
}

.mr-detail-indicator__main strong,
.mr-detail-indicator__value strong {
  font-size: 10px;
}

.mr-detail-indicator__main p {
  font-size: 8.5px;
}

.mr-detail-indicator__value span {
  font-size: 7.5px;
}


/* EMPTY / LOADING */

.mr-empty {
  min-height: 145px;

  gap: 9px;

  padding: 18px;
}

.mr-empty__icon {
  width: 35px;
  height: 35px;

  flex:
    0 0
    35px;
}

.mr-empty strong {
  font-size: 11px;
}

.mr-empty p {
  font-size: 9px;
}

.mr-state {
  min-height: 155px;

  grid-template-columns:
    39px
    minmax(
      0,
      1fr
    )
    auto;

  gap: 11px;

  padding: 15px;
}

.mr-state__icon {
  width: 38px;
  height: 38px;
}

.mr-state__content strong {
  font-size: 13px;
}

.mr-state__content p {
  font-size: 10px;
}