@charset "UTF-8";
/* Shell + sidebar navy — portado de minerva-panel (Layout.tsx + Sidebar.tsx/.css). */
/* ── Layout ─────────────────────────────────────────────────────────────── */
.ms-shell {
  min-height: 100vh;
}

/* The collapse gesture. The rail and the content it pushes are ONE movement, so they share a
   duration and a curve; the easing is the app's own springy settle (the same curve the profile's
   folds and the calendar use), which lands the panel instead of stopping it dead. */
:root {
  --ms-sb-motion: .34s;
  --ms-sb-ease: cubic-bezier(.22, 1, .36, 1);
}

.ms-sb {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--ms-sidebar-width);
  height: 100vh;
  z-index: 30;
  color: var(--ms-neutralWhite);
  display: flex;
  flex-direction: column;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--ms-shadow-sidebar);
  transition: width var(--ms-sb-motion) var(--ms-sb-ease);
}

.ms-main {
  margin-left: var(--ms-sidebar-width);
  min-height: 100vh;
  transition: margin-left var(--ms-sb-motion) var(--ms-sb-ease);
}

/* Collapse control */
.ms-sb-collapse {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-content: flex-start;
  gap: 0.625rem;
  width: 100%;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: none;
  box-shadow: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s ease, transform 0.12s ease;
}
.ms-sb-collapse:hover {
  background: rgba(255, 255, 255, 0.06);
}
.ms-sb-collapse:active {
  transform: scale(0.9);
}
.ms-sb-collapse:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: -2px;
}
.ms-sb-collapse .label {
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}

.ms-sb-collapse-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ms-sb-collapse-arrow-right {
  display: none;
}

.ms-sb.collapsed .ms-sb-collapse-arrow-left {
  display: none;
}
.ms-sb.collapsed .ms-sb-collapse-arrow-right {
  display: inline;
}

.ms-main.collapsed-left {
  margin-left: var(--ms-sidebar-collapsed-width);
}

@media (max-width: 991.98px) {
  .ms-sb {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  .ms-sb.open {
    transform: translateX(0);
  }
  .ms-main {
    margin-left: 0;
  }
  .ms-main.collapsed-left {
    margin-left: 0;
  }
}
/* Fondo animado navy */
@keyframes sidebarGradientShift {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0 0;
  }
}
.animated-sidebar-bg {
  background-image: linear-gradient(180deg, var(--ms-sidebarGradientFrom), var(--ms-sidebarGradientVia), var(--ms-sidebarGradientTo));
  background-size: 200% 200%;
}

[data-bs-theme=dark] .animated-sidebar-bg,
html.dark .animated-sidebar-bg {
  background-image: none;
  background-color: var(--ms-chromeBgDark);
  animation: none;
  animation: sidebarGradientShift 5s ease-in-out infinite;
}

.ms-sb-backdrop {
  position: fixed;
  inset: 0;
  z-index: 29;
  background: rgba(0, 0, 0, 0.4);
  display: none;
}
.ms-sb-backdrop.show {
  display: block;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.ms-sb-header {
  padding: 0 0.875rem;
}

.ms-sb-header-divider {
  height: 1px;
  margin: 0.75rem 0;
  background: rgba(255, 255, 255, 0.1);
}

.ms-sb-search {
  position: relative;
}
.ms-sb-search .material-symbols-outlined {
  position: absolute;
  left: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.3);
}
.ms-sb-search input {
  width: 100%;
  height: 2rem;
  border-radius: var(--ms-radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 2rem;
  padding-right: 2.25rem;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}
.ms-sb-search input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.ms-sb-search input::-webkit-search-cancel-button {
  appearance: none;
}
.ms-sb-search input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.ms-sb-search input:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 1px;
}

.ms-sb-search-clear {
  display: inline-flex;
  position: absolute;
  top: 50%;
  right: 0.25rem;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  padding: 0;
  border: 0;
  border-radius: var(--ms-radius-pill);
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.14s ease, color 0.14s ease, transform 0.1s ease;
}
.ms-sb-search-clear[hidden] {
  display: none;
}
.ms-sb-search-clear:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}
.ms-sb-search-clear:active {
  transform: translateY(-50%) scale(0.9);
}
.ms-sb-search-clear:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 1px;
}
.ms-sb-search-clear .material-symbols-outlined {
  position: static;
  transform: none;
  font-size: 16px;
  color: currentColor;
}

/* ── Nav ────────────────────────────────────────────────────────────────── */
.ms-sb-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.5rem;
  margin-top: 0.25rem;
  /* WebKit needs its own pseudo-elements; Firefox ignores them and would paint its full default bar, which
     is why the sidebar showed a fat scrollbar there and a 4px sliver everywhere else. The two standard
     properties below are what Firefox honours — same intent, same colours. */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}
.ms-sb-nav::-webkit-scrollbar {
  width: 4px;
}
.ms-sb-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.ms-sb-section-group {
  margin-top: 0.35rem;
}

.ms-sb-section-group:first-child {
  margin-top: 0;
}

.ms-sb-section-icon {
  display: inline-flex;
  font-size: 1.2rem;
}

.ms-sb-flyout-title {
  display: none;
}

.ms-sb-item, .ms-sb-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--ms-radius-sm);
  padding: 0.55rem 0.75rem;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  background: none;
  font: inherit;
  text-align: left;
}

.ms-sb-item:hover, .ms-sb-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

.ms-sb-item:not(.ms-sb-muted):active, .ms-sb-toggle:active {
  transform: scale(0.9);
}

/* Type scale of the menu, by depth. A row's icon and chevron take the SAME size as its label so a
   level reads as one block: 13px for top-level rows (sections and childless links), 12px inside a
   section, and 14px for the section that is currently unfolded — the size IS the "you opened this"
   mark, which is why the open header no longer turns orange. */
.ms-sb-item .label {
  font-size: 13px;
  font-weight: 400;
}

/* BOTH kinds of row: a section header is a .ms-sb-toggle, NOT a .ms-sb-item, so a rule written for
   items alone left every section label without the clipping this depends on — closed to width 0 with
   `overflow` visible and `white-space` normal, its text wrapped one word per line and grew the row,
   which is what made the rail's icons sit at uneven distances and shove each other about on the way in.
   The two rules keep their own size and weight above; the closing behaviour is shared here. */
.ms-sb-item .label,
.ms-sb-section-toggle .label {
  /* A section name is read in full, so it WRAPS. That rules out closing the label by animating its
     width: at width 0 a wrapping text lays itself out one character per line and grows the row,
     which is what made the rail's icons sit at uneven distances the first time round. So the label
     does not shrink — it LEAVES: it fades, and `display` follows it out one step later. Same
     treatment as the header block below, and the discrete step is what lets the fade be seen at
     all (without it the browser drops the element on frame one).

     The fade is timed AGAINST the direction of travel. Expanding (this rule), the words wait for
     the rail to open and then arrive; collapsing (below), they go first and the rail closes behind
     them, empty. */
  opacity: 1;
  transition: opacity calc(var(--ms-sb-motion) * 0.45) ease calc(var(--ms-sb-motion) * 0.5), display calc(var(--ms-sb-motion) * 0.45) allow-discrete calc(var(--ms-sb-motion) * 0.5);
}

.ms-sb-section-toggle .label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: calc(0.01em + var(--ms-a11y-letter-add, 0em));
}

.ms-sb-left {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
  transition: gap var(--ms-sb-motion) var(--ms-sb-ease);
}

.ms-sb-left .material-symbols-outlined {
  font-size: 22px;
  opacity: 0.9;
  flex: 0 0 auto;
}

.ms-sb-nav > .ms-sb-item .ms-sb-left .material-symbols-outlined,
.ms-sb-nav > .ms-sb-item .ms-sb-section-icon,
.ms-sb-nav > .ms-sb-item .chevron,
.ms-sb-section-group > .ms-sb-section-toggle .ms-sb-left .material-symbols-outlined,
.ms-sb-section-group > .ms-sb-section-toggle .ms-sb-section-icon,
.ms-sb-section-group > .ms-sb-section-toggle .chevron {
  font-size: 17px;
}

.ms-sb-children .ms-sb-item .label,
.ms-sb-children .ms-sb-section-toggle .label {
  font-size: 12px;
}
.ms-sb-children .ms-sb-item .ms-sb-left .material-symbols-outlined,
.ms-sb-children .ms-sb-section-toggle .ms-sb-section-icon,
.ms-sb-children .ms-sb-section-toggle .chevron {
  font-size: 16px;
}

details.ms-sb-group[open] > .ms-sb-section-toggle .label {
  font-size: 14px;
}
details.ms-sb-group[open] > .ms-sb-section-toggle .ms-sb-section-icon,
details.ms-sb-group[open] > .ms-sb-section-toggle .chevron {
  font-size: 18px;
}

/* Grupos colapsables con <details> */
details.ms-sb-group {
  list-style: none;
}

details.ms-sb-group > summary {
  list-style: none;
}

details.ms-sb-group > summary::-webkit-details-marker {
  display: none;
}

details.ms-sb-group > summary .chevron {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  transform: rotate(-90deg);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), color 0.18s ease;
}

details.ms-sb-group[open] > summary .chevron {
  transform: rotate(0);
}

/* An OPEN section says so by SIZE (see the type scale above), not by colour: the orange header sat
   badly next to the filled active row. It still brightens a touch so the header separates from the
   links it unfolded. The ACTIVE page keeps its filled row — being open and being the page you are
   on are different things and must not look the same. */
details.ms-sb-section-group[open] > .ms-sb-section-toggle:not(.active) {
  color: rgb(255, 255, 255);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
details.ms-sb-section-group[open] > .ms-sb-section-toggle:not(.active) .label {
  font-weight: 500;
}
details.ms-sb-section-group[open] > .ms-sb-section-toggle:not(.active) .label,
details.ms-sb-section-group[open] > .ms-sb-section-toggle:not(.active) .ms-sb-section-icon,
details.ms-sb-section-group[open] > .ms-sb-section-toggle:not(.active) .chevron {
  color: inherit;
}

/* A FOLDED section that holds the current page keeps the mark: otherwise closing the group you are
   in leaves the menu with nothing selected at all. Same ink as the active row, since the row it stands
   in for is hidden. Once the group opens again the child row takes the mark back. */
details.ms-sb-group.has-active-item:not([open]) > .ms-sb-section-toggle {
  color: var(--ms-sidebarGradientTo);
  background: rgba(255, 255, 255, 0.92);
}
details.ms-sb-group.has-active-item:not([open]) > .ms-sb-section-toggle .label,
details.ms-sb-group.has-active-item:not([open]) > .ms-sb-section-toggle .ms-sb-section-icon,
details.ms-sb-group.has-active-item:not([open]) > .ms-sb-section-toggle .chevron {
  color: inherit;
}

details.ms-sb-group > summary:hover .chevron {
  color: rgba(255, 255, 255, 0.85);
}

details.ms-sb-group > summary:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

/* A section ROLLS open. <details> snaps by definition — the browser flips `open` and the panel is
   simply there — which in a menu of eleven sections reads as the page jumping under the pointer.
   `interpolate-size` lets the height animate to and from `auto`, and animating ::details-content
   keeps the whole thing in CSS: no measuring, no inline heights, no script that has to be undone
   when the sidebar arrives through a swap. Browsers without ::details-content keep today's snap. */
details.ms-sb-group {
  interpolate-size: allow-keywords;
}
details.ms-sb-group::details-content {
  block-size: 0;
  overflow: hidden;
  opacity: 0;
  transition: block-size 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, content-visibility 0.28s allow-discrete;
}
details.ms-sb-group[open]::details-content {
  block-size: auto;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  details.ms-sb-group::details-content {
    transition: none;
  }
  details.ms-sb-group > summary .chevron {
    transition: none;
  }
}
.ms-sb-children {
  margin-left: 1.25rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 0.7rem;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.ms-sb-children .ms-sb-item {
  padding: 0.45rem 0.5rem;
  border-left: none;
}
.ms-sb-children .ms-sb-item .label {
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
}

.ms-sb-item.active,
.ms-sb-toggle.active {
  color: var(--ms-sidebarGradientTo);
  background: rgba(255, 255, 255, 0.92);
}

/* Marking a row is the most-repeated feedback in the whole panel, so it is drawn rather than switched:
   the fill sweeps in and the label and its icon change ink on the way. No accent bar — the filled row
   already says which page you are on, and a second marker beside it only adds furniture. The row
   itself never moves: the content is being swapped at the same time, and a menu that shifts while the
   page changes reads as everything sliding at once. */
.ms-sb-item,
.ms-sb-toggle {
  position: relative;
  transition: background 0.2s cubic-bezier(0.22, 0.61, 0.36, 1), color 0.16s ease, transform 0.12s ease;
}

/* Stacked copy leaves the column rather than squeezing: it fades out over the first half of the
   gesture and is taken out of the layout after, which `display` can join now that it transitions
   with allow-discrete. Without the discrete step the browser would drop it on frame one and the
   fade would never be seen. */
.ms-sb-title,
.ms-sb-subtitle,
.ms-sb-search,
.ms-sb-section,
.ms-sb-support-footer,
.ms-sb-collapse .label {
  opacity: 1;
  transition: opacity calc(var(--ms-sb-motion) * 0.5) ease, display calc(var(--ms-sb-motion) * 0.5) allow-discrete;
}

@media (prefers-reduced-motion: reduce) {
  .ms-sb-item,
  .ms-sb-toggle {
    transition: none;
  }
  .ms-sb-item:not(.ms-sb-muted):active,
  .ms-sb-toggle:active {
    transform: none;
  }
  /* The rail still collapses; it just arrives instead of travelling. */
  .ms-sb,
  .ms-main,
  .ms-sb-left,
  .ms-sb-item .label,
  .ms-sb-title,
  .ms-sb-subtitle,
  .ms-sb-search,
  .ms-sb-section,
  .ms-sb-support-footer,
  .ms-sb-collapse .label {
    transition: none;
  }
}
.ms-sb-item.active .label,
.ms-sb-toggle.active .label {
  color: var(--ms-sidebarGradientTo);
}

.ms-sb-muted {
  color: rgba(255, 255, 255, 0.4);
  cursor: default;
}

.ms-sb-muted:hover {
  background: none;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Collapsed desktop rail + section flyouts ───────────────────────────── */
@keyframes sidebarFlyoutIn {
  from {
    opacity: 0;
    transform: translateX(-0.35rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@media (min-width: 992px) {
  .ms-sb.collapsed {
    width: var(--ms-sidebar-collapsed-width);
  }
  .ms-sb.collapsed .ms-sb-title,
  .ms-sb.collapsed .ms-sb-subtitle,
  .ms-sb.collapsed .ms-sb-search,
  .ms-sb.collapsed .ms-sb-section,
  .ms-sb.collapsed .ms-sb-support-footer,
  .ms-sb.collapsed .ms-sb-collapse .label {
    display: none;
    opacity: 0;
  }
  .ms-sb.collapsed .ms-sb-header {
    padding-inline: 0.5rem;
  }
  .ms-sb.collapsed .ms-sb-header {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .ms-sb.collapsed .ms-sb-header-divider {
    width: 100%;
  }
  .ms-sb.collapsed .ms-sb-collapse {
    width: 2.5rem;
    height: 2.5rem;
    margin-inline: auto;
    padding: 0;
    justify-content: center;
  }
  .ms-sb.collapsed .ms-sb-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: visible;
    padding-inline: 0.5rem;
  }
  .ms-sb.collapsed {
    /* Dashboard remains a direct destination in the collapsed rail. */
  }
  .ms-sb.collapsed .ms-sb-nav > .ms-sb-item {
    min-height: 2.6rem;
    justify-content: center;
    padding: 0.55rem 0.5rem;
  }
  .ms-sb.collapsed .ms-sb-nav > .ms-sb-item .ms-sb-left {
    justify-content: center;
    gap: 0;
  }
  .ms-sb.collapsed .ms-sb-nav > .ms-sb-item .label,
  .ms-sb.collapsed .ms-sb-section-toggle .label {
    display: none;
    opacity: 0;
    /* Leaving: the fade leads and carries no delay, so the rail closes behind text that has
       already gone. */
    transition: opacity calc(var(--ms-sb-motion) * 0.35) ease, display calc(var(--ms-sb-motion) * 0.35) allow-discrete;
  }
  .ms-sb.collapsed .ms-sb-section-group {
    position: relative;
    margin: 0;
  }
  .ms-sb.collapsed .ms-sb-section-toggle {
    min-height: 2.6rem;
    justify-content: center;
    padding: 0.55rem 0.5rem;
  }
  .ms-sb.collapsed .ms-sb-section-toggle .ms-sb-left {
    justify-content: center;
    gap: 0;
  }
  .ms-sb.collapsed .ms-sb-section-toggle .chevron {
    display: none;
  }
  .ms-sb.collapsed .ms-sb-section-icon {
    display: inline-flex;
  }
  .ms-sb.collapsed .ms-sb-section-group.has-active-item > .ms-sb-section-toggle {
    color: var(--ms-sidebarGradientTo);
    background: rgba(255, 255, 255, 0.92);
  }
  .ms-sb.collapsed .ms-sb-section-items {
    position: fixed;
    /* Overlap the rail padding so the pointer can move into the panel without crossing a dead gap. */
    left: calc(var(--ms-sidebar-collapsed-width) - 0.5rem);
    top: var(--ms-sb-flyout-top, 0.5rem);
    z-index: 35;
    display: none !important;
    /* Fit the panel to its widest item instead of a fixed 19rem, with a sane min/max. */
    width: max-content;
    min-width: 12rem;
    max-width: min(22rem, 100vw - var(--ms-sidebar-collapsed-width) - 1rem);
    max-height: calc(100vh - 1rem);
    margin: 0;
    padding: 0.5rem;
    overflow-x: hidden;
    overflow-y: auto;
    flex-direction: column;
    gap: 0.125rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-left-color: rgba(255, 255, 255, 0.2);
    border-radius: 0 var(--ms-radius-lg) var(--ms-radius-lg) 0;
    background: linear-gradient(145deg, var(--ms-sidebarGradientVia), var(--ms-sidebarGradientTo));
    box-shadow: 1rem 1.25rem 2.5rem rgba(0, 0, 0, 0.28);
    animation: sidebarFlyoutIn 0.16s ease-out;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
  }
  .ms-sb.collapsed .ms-sb-section-items::-webkit-scrollbar {
    width: 5px;
  }
  .ms-sb.collapsed .ms-sb-section-items::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 5px;
  }
  .ms-sb.collapsed .ms-sb-section-group.flyout-open > .ms-sb-section-items {
    display: flex !important;
  }
  .ms-sb.collapsed .ms-sb-flyout-title {
    position: sticky;
    top: -0.5rem;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: 2.65rem;
    margin: -0.5rem -0.5rem 0.25rem;
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: color-mix(in srgb, var(--ms-sidebarGradientVia) 94%, #000);
    color: var(--ms-neutralWhite);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: calc(0.015em + var(--ms-a11y-letter-add, 0em));
  }
  .ms-sb.collapsed .ms-sb-section-items .ms-sb-item {
    justify-content: flex-start;
    min-height: 2.35rem;
    padding: 0.5rem 0.65rem;
  }
  .ms-sb.collapsed .ms-sb-section-items .ms-sb-left {
    justify-content: flex-start;
    gap: 0.625rem;
  }
  .ms-sb.collapsed .ms-sb-section-items .ms-sb-item .label {
    display: block;
    color: rgba(255, 255, 255, 0.84);
    font-size: 12.5px;
    font-weight: 400;
    white-space: nowrap;
  }
  .ms-sb.collapsed .ms-sb-section-items .ms-sb-item .material-symbols-outlined {
    font-size: 20px;
  }
  .ms-sb.collapsed .ms-sb-section-items .ms-sb-item.active .label {
    color: var(--ms-sidebarGradientTo);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ms-sb.collapsed .ms-sb-section-items {
    animation: none;
  }
}
/* ── Footer ─────────────────────────────────────────────────────────────── */
.ms-sb-footer {
  flex: 0 0 auto;
  margin: 0.5rem 0.875rem 0;
  padding: 0.8rem 0.25rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  color: var(--ms-neutralWhite);
}

.ms-sb-footer-group {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  align-items: start;
  column-gap: 0.625rem;
}

.ms-sb-footer-group--version {
  align-items: center;
  margin-top: 0.75rem;
}

.ms-sb-footer-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  min-height: 1.75rem;
  color: var(--ms-neutralWhite);
}

.ms-sb-footer-icon-main {
  font-size: 26px;
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" -25, "opsz" 24;
}

.ms-sb-footer-icon--security .ms-sb-footer-icon-main {
  font-size: 27px;
}

.ms-sb-footer-icon-lock {
  position: absolute;
  right: -0.1rem;
  bottom: -0.05rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: var(--ms-radius-pill);
  background: color-mix(in srgb, var(--ms-sidebarGradientTo) 88%, #000);
  color: var(--ms-neutralWhite);
  font-size: 10px;
  font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 20;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ms-sidebarGradientTo) 88%, #000);
}

.ms-sb-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ms-sb-footer-links li,
.ms-sb-footer-links a,
.ms-sb-footer-links span,
.ms-sb-footer-version {
  color: var(--ms-neutralWhite);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
}

.ms-sb-footer-links a {
  border-radius: 0.2rem;
  text-decoration: none;
  text-underline-offset: 2px;
}

.ms-sb-footer-links a:hover {
  color: var(--ms-neutralWhite);
  text-decoration: underline;
}

.ms-sb-footer-links a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

.ms-sb-footer-version {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Same as the topbar's field: 2rem is 32px, and this one lives in the drawer that a phone opens with
   its thumb. It is a typing target, so the box itself has to be the size of the target. */
@media (max-width: 767.98px) {
  .ms-sb-search input {
    height: 44px;
  }
  /* The footer links are 16px lines packed 3px apart: with a thumb, «Manual/Ayuda» and «Soporte
     técnico» are the same target. The line keeps its size; the link grows around it. */
  .ms-sb-footer-links {
    gap: 0;
  }
  .ms-sb-footer-links a {
    display: block;
    padding-block: 0.5rem;
  }
}
