/* =========================================================
   WIRTZ HUB · MI GESTIÓN · PRIORIDADES
   UBICACIÓN:
   frontend/src/pages/mi-gestion/prioridades/prioridades.css

   PARTE 1 DE 2

   RESPONSABILIDAD:
   - Layout principal
   - Header
   - Botones
   - Métricas
   - Filtros
   - Toolbar
   - Listado
   - Cards
   - Badges
   - Estados
   - Paginación
   ========================================================= */


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

.mg-prioridades-page {
  --mg-pr-bg:
    var(
      --app-bg,
      #f4f5f7
    );

  --mg-pr-panel:
    var(
      --panel,
      #ffffff
    );

  --mg-pr-panel-soft:
    var(
      --panel-soft,
      #f7f8fa
    );

  --mg-pr-panel-strong:
    #f0f2f5;

  --mg-pr-text:
    var(
      --text,
      #15171a
    );

  --mg-pr-text-soft:
    var(
      --text-soft,
      #6d737c
    );

  --mg-pr-text-muted:
    #8b9199;

  --mg-pr-line:
    var(
      --line,
      #dfe2e7
    );

  --mg-pr-line-strong:
    #cbd0d8;

  --mg-pr-primary:
    #15171a;

  --mg-pr-primary-text:
    #ffffff;

  --mg-pr-success:
    #137333;

  --mg-pr-success-bg:
    #edf8f0;

  --mg-pr-warning:
    #9a6700;

  --mg-pr-warning-bg:
    #fff7df;

  --mg-pr-danger:
    #b42318;

  --mg-pr-danger-bg:
    #fff1f0;

  --mg-pr-info:
    #2458a6;

  --mg-pr-info-bg:
    #edf4ff;

  --mg-pr-purple:
    #6941c6;

  --mg-pr-purple-bg:
    #f5f0ff;

  --mg-pr-radius-sm:
    8px;

  --mg-pr-radius-md:
    12px;

  --mg-pr-radius-lg:
    16px;

  --mg-pr-radius-xl:
    20px;

  --mg-pr-transition:
    150ms ease;

  width:
    100%;

  min-width:
    0;

  min-height:
    100%;

  box-sizing:
    border-box;

  color:
    var(
      --mg-pr-text
    );

  background:
    var(
      --mg-pr-bg
    );
}


/* =========================================================
   RESET INTERNO
   ========================================================= */

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


.mg-prioridades-page button,
.mg-prioridades-page input,
.mg-prioridades-page select,
.mg-prioridades-page textarea {
  font:
    inherit;
}


.mg-prioridades-page button {
  border:
    0;

  cursor:
    pointer;
}


.mg-prioridades-page button:disabled {
  cursor:
    not-allowed;

  opacity:
    0.55;
}


.mg-prioridades-page input,
.mg-prioridades-page select,
.mg-prioridades-page textarea {
  min-width:
    0;
}


/* =========================================================
   DARK MODE
   ========================================================= */

html[data-theme="dark"]
.mg-prioridades-page {
  --mg-pr-bg:
    #090a0c;

  --mg-pr-panel:
    #0f1114;

  --mg-pr-panel-soft:
    #13161a;

  --mg-pr-panel-strong:
    #171a1f;

  --mg-pr-text:
    #f4f5f6;

  --mg-pr-text-soft:
    #a2a8b0;

  --mg-pr-text-muted:
    #777e88;

  --mg-pr-line:
    #24282f;

  --mg-pr-line-strong:
    #313640;

  --mg-pr-primary:
    #f4f5f6;

  --mg-pr-primary-text:
    #0b0c0e;

  --mg-pr-success:
    #67d58b;

  --mg-pr-success-bg:
    #102319;

  --mg-pr-warning:
    #e9bd5f;

  --mg-pr-warning-bg:
    #241d0d;

  --mg-pr-danger:
    #ff8b83;

  --mg-pr-danger-bg:
    #2a1111;

  --mg-pr-info:
    #8db8ff;

  --mg-pr-info-bg:
    #111d31;

  --mg-pr-purple:
    #b9a2ff;

  --mg-pr-purple-bg:
    #1d1730;
}


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

.mg-prioridades-body {
  width:
    100%;

  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    16px;

  padding:
    16px;
}


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

.mg-prioridades-header {
  width:
    100%;

  padding:
    18px 16px 0;
}


.mg-prioridades-header__content {
  width:
    100%;

  min-width:
    0;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    20px;

  padding:
    18px;

  border:
    1px solid
    var(
      --mg-pr-line
    );

  border-radius:
    var(
      --mg-pr-radius-lg
    );

  background:
    var(
      --mg-pr-panel
    );
}


.mg-prioridades-header__identity {
  min-width:
    0;

  display:
    flex;

  align-items:
    flex-start;

  gap:
    14px;
}


.mg-prioridades-header__icon {
  width:
    44px;

  height:
    44px;

  flex:
    0 0 44px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid
    var(
      --mg-pr-line
    );

  border-radius:
    12px;

  color:
    var(
      --mg-pr-text
    );

  background:
    var(
      --mg-pr-panel-soft
    );
}


.mg-prioridades-header__text {
  min-width:
    0;
}


.mg-prioridades-header__eyebrow {
  display:
    block;

  margin-bottom:
    4px;

  color:
    var(
      --mg-pr-text-soft
    );

  font-size:
    11px;

  font-weight:
    800;

  letter-spacing:
    0.08em;
}


.mg-prioridades-header__text h1 {
  margin:
    0;

  color:
    var(
      --mg-pr-text
    );

  font-size:
    clamp(
      24px,
      2vw,
      32px
    );

  font-weight:
    800;

  line-height:
    1.1;
}


.mg-prioridades-header__text p {
  max-width:
    780px;

  margin:
    7px 0 0;

  color:
    var(
      --mg-pr-text-soft
    );

  font-size:
    14px;

  line-height:
    1.55;
}


.mg-prioridades-header__actions {
  flex:
    0 0 auto;

  display:
    flex;

  align-items:
    center;

  gap:
    8px;
}


/* =========================================================
   BOTONES
   ========================================================= */

.mg-prioridades-btn {
  min-height:
    40px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    8px;

  padding:
    0 14px;

  border:
    1px solid
    transparent;

  border-radius:
    10px;

  font-size:
    13px;

  font-weight:
    750;

  white-space:
    nowrap;

  transition:
    background
    var(
      --mg-pr-transition
    ),
    border-color
    var(
      --mg-pr-transition
    ),
    color
    var(
      --mg-pr-transition
    ),
    opacity
    var(
      --mg-pr-transition
    );
}


.mg-prioridades-btn svg {
  flex:
    0 0 auto;
}


.mg-prioridades-btn--primary {
  border-color:
    var(
      --mg-pr-primary
    );

  color:
    var(
      --mg-pr-primary-text
    );

  background:
    var(
      --mg-pr-primary
    );
}


.mg-prioridades-btn--primary:hover:not(:disabled) {
  opacity:
    0.88;
}


.mg-prioridades-btn--secondary {
  border-color:
    var(
      --mg-pr-line
    );

  color:
    var(
      --mg-pr-text
    );

  background:
    var(
      --mg-pr-panel
    );
}


.mg-prioridades-btn--secondary:hover:not(:disabled) {
  border-color:
    var(
      --mg-pr-line-strong
    );

  background:
    var(
      --mg-pr-panel-soft
    );
}


.mg-prioridades-btn--ghost {
  border-color:
    transparent;

  color:
    var(
      --mg-pr-text-soft
    );

  background:
    transparent;
}


.mg-prioridades-btn--ghost:hover:not(:disabled) {
  color:
    var(
      --mg-pr-text
    );

  background:
    var(
      --mg-pr-panel-soft
    );
}


.mg-prioridades-icon-btn {
  width:
    36px;

  height:
    36px;

  flex:
    0 0 36px;

  display:
    inline-grid;

  place-items:
    center;

  padding:
    0;

  border:
    1px solid
    var(
      --mg-pr-line
    );

  border-radius:
    9px;

  color:
    var(
      --mg-pr-text-soft
    );

  background:
    var(
      --mg-pr-panel
    );

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


.mg-prioridades-icon-btn:hover:not(:disabled) {
  border-color:
    var(
      --mg-pr-line-strong
    );

  color:
    var(
      --mg-pr-text
    );

  background:
    var(
      --mg-pr-panel-soft
    );
}


.mg-prioridades-icon-btn.is-loading svg,
.mg-prioridades-btn.is-loading svg,
.mg-prioridades-state__icon--loading svg {
  animation:
    mgPrioridadesSpin
    0.8s
    linear
    infinite;
}


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


/* =========================================================
   MÉTRICAS
   ========================================================= */

.mg-prioridades-metrics {
  width:
    100%;

  display:
    grid;

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

  gap:
    10px;
}


.mg-prioridades-metric {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    10px;

  padding:
    14px;

  border:
    1px solid
    var(
      --mg-pr-line
    );

  border-radius:
    var(
      --mg-pr-radius-md
    );

  background:
    var(
      --mg-pr-panel
    );
}


.mg-prioridades-metric__top {
  display:
    flex;

  align-items:
    center;

  gap:
    8px;
}


.mg-prioridades-metric__icon {
  width:
    30px;

  height:
    30px;

  flex:
    0 0 30px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid
    var(
      --mg-pr-line
    );

  border-radius:
    8px;

  color:
    var(
      --mg-pr-text
    );

  background:
    var(
      --mg-pr-panel-soft
    );
}


.mg-prioridades-metric__label {
  min-width:
    0;

  overflow:
    hidden;

  color:
    var(
      --mg-pr-text-soft
    );

  font-size:
    12px;

  font-weight:
    750;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


.mg-prioridades-metric__value {
  color:
    var(
      --mg-pr-text
    );

  font-size:
    27px;

  font-weight:
    850;

  line-height:
    1;
}


.mg-prioridades-metric__meta {
  overflow:
    hidden;

  color:
    var(
      --mg-pr-text-muted
    );

  font-size:
    11px;

  line-height:
    1.3;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


.mg-prioridades-metric[data-metric="pendientes"]
.mg-prioridades-metric__icon {
  color:
    var(
      --mg-pr-warning
    );

  background:
    var(
      --mg-pr-warning-bg
    );
}


.mg-prioridades-metric[data-metric="priorizadas"]
.mg-prioridades-metric__icon {
  color:
    var(
      --mg-pr-purple
    );

  background:
    var(
      --mg-pr-purple-bg
    );
}


.mg-prioridades-metric[data-metric="proceso"]
.mg-prioridades-metric__icon {
  color:
    var(
      --mg-pr-info
    );

  background:
    var(
      --mg-pr-info-bg
    );
}


.mg-prioridades-metric[data-metric="bloqueadas"]
.mg-prioridades-metric__icon,
.mg-prioridades-metric[data-metric="vencidas"]
.mg-prioridades-metric__icon {
  color:
    var(
      --mg-pr-danger
    );

  background:
    var(
      --mg-pr-danger-bg
    );
}


/* =========================================================
   FILTROS
   ========================================================= */

.mg-prioridades-filters {
  width:
    100%;

  display:
    flex;

  flex-direction:
    column;

  gap:
    12px;

  padding:
    14px;

  border:
    1px solid
    var(
      --mg-pr-line
    );

  border-radius:
    var(
      --mg-pr-radius-lg
    );

  background:
    var(
      --mg-pr-panel
    );
}


.mg-prioridades-filters__top {
  width:
    100%;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    12px;
}


.mg-prioridades-search {
  min-width:
    260px;

  width:
    min(
      620px,
      100%
    );

  height:
    40px;

  display:
    flex;

  align-items:
    center;

  gap:
    8px;

  padding:
    0 10px;

  border:
    1px solid
    var(
      --mg-pr-line
    );

  border-radius:
    10px;

  color:
    var(
      --mg-pr-text-soft
    );

  background:
    var(
      --mg-pr-panel-soft
    );

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


.mg-prioridades-search:focus-within {
  border-color:
    var(
      --mg-pr-line-strong
    );

  background:
    var(
      --mg-pr-panel
    );
}


.mg-prioridades-search > svg {
  flex:
    0 0 auto;
}


.mg-prioridades-search input {
  width:
    100%;

  height:
    100%;

  padding:
    0;

  border:
    0;

  outline:
    0;

  color:
    var(
      --mg-pr-text
    );

  background:
    transparent;

  font-size:
    13px;
}


.mg-prioridades-search input::placeholder {
  color:
    var(
      --mg-pr-text-muted
    );
}


.mg-prioridades-search__clear {
  width:
    26px;

  height:
    26px;

  flex:
    0 0 26px;

  display:
    grid;

  place-items:
    center;

  padding:
    0;

  border-radius:
    7px;

  color:
    var(
      --mg-pr-text-muted
    );

  background:
    transparent;
}


.mg-prioridades-search__clear:hover {
  color:
    var(
      --mg-pr-text
    );

  background:
    var(
      --mg-pr-panel-strong
    );
}


.mg-prioridades-filters__grid {
  width:
    100%;

  display:
    grid;

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

  gap:
    10px;
}


/* =========================================================
   CAMPOS
   ========================================================= */

.mg-prioridades-field {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    6px;
}


.mg-prioridades-field > span {
  color:
    var(
      --mg-pr-text-soft
    );

  font-size:
    11px;

  font-weight:
    750;
}


.mg-prioridades-field > span em {
  color:
    var(
      --mg-pr-danger
    );

  font-style:
    normal;
}


.mg-prioridades-field input,
.mg-prioridades-field select,
.mg-prioridades-field textarea {
  width:
    100%;

  min-width:
    0;

  border:
    1px solid
    var(
      --mg-pr-line
    );

  border-radius:
    9px;

  outline:
    0;

  color:
    var(
      --mg-pr-text
    );

  background:
    var(
      --mg-pr-panel-soft
    );

  font-size:
    13px;

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


.mg-prioridades-field input,
.mg-prioridades-field select {
  height:
    40px;

  padding:
    0 10px;
}


.mg-prioridades-field textarea {
  min-height:
    90px;

  padding:
    10px;

  resize:
    vertical;

  line-height:
    1.5;
}


.mg-prioridades-field input:focus,
.mg-prioridades-field select:focus,
.mg-prioridades-field textarea:focus {
  border-color:
    var(
      --mg-pr-line-strong
    );

  background:
    var(
      --mg-pr-panel
    );
}


.mg-prioridades-field input::placeholder,
.mg-prioridades-field textarea::placeholder {
  color:
    var(
      --mg-pr-text-muted
    );
}


.mg-prioridades-field--span-2 {
  grid-column:
    span 2;
}


/* =========================================================
   LIST PANEL
   ========================================================= */

.mg-prioridades-list-panel {
  width:
    100%;

  min-width:
    0;

  overflow:
    hidden;

  border:
    1px solid
    var(
      --mg-pr-line
    );

  border-radius:
    var(
      --mg-pr-radius-lg
    );

  background:
    var(
      --mg-pr-panel
    );
}


/* =========================================================
   TOOLBAR
   ========================================================= */

.mg-prioridades-list-toolbar {
  min-height:
    58px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    12px;

  padding:
    10px 12px;

  border-bottom:
    1px solid
    var(
      --mg-pr-line
    );
}


.mg-prioridades-list-toolbar__left,
.mg-prioridades-list-toolbar__right {
  min-width:
    0;

  display:
    flex;

  align-items:
    center;

  gap:
    8px;
}


.mg-prioridades-list-toolbar__title {
  min-width:
    0;

  display:
    flex;

  align-items:
    center;

  gap:
    10px;

  color:
    var(
      --mg-pr-text
    );
}


.mg-prioridades-list-toolbar__title > svg {
  flex:
    0 0 auto;
}


.mg-prioridades-list-toolbar__title > div {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;
}


.mg-prioridades-list-toolbar__title strong {
  font-size:
    13px;

  font-weight:
    800;
}


.mg-prioridades-list-toolbar__title span {
  color:
    var(
      --mg-pr-text-muted
    );

  font-size:
    11px;
}


.mg-prioridades-sort {
  display:
    flex;

  align-items:
    center;

  gap:
    7px;
}


.mg-prioridades-sort > span {
  color:
    var(
      --mg-pr-text-soft
    );

  font-size:
    11px;

  font-weight:
    700;

  white-space:
    nowrap;
}


.mg-prioridades-sort select {
  height:
    36px;

  min-width:
    170px;

  padding:
    0 28px 0 9px;

  border:
    1px solid
    var(
      --mg-pr-line
    );

  border-radius:
    9px;

  outline:
    0;

  color:
    var(
      --mg-pr-text
    );

  background:
    var(
      --mg-pr-panel-soft
    );

  font-size:
    12px;
}


/* =========================================================
   LISTA
   ========================================================= */

.mg-prioridades-list {
  width:
    100%;

  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;
}


/* =========================================================
   CARD
   ========================================================= */

.mg-prioridades-card {
  width:
    100%;

  min-width:
    0;

  display:
    grid;

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

  border-bottom:
    1px solid
    var(
      --mg-pr-line
    );

  background:
    var(
      --mg-pr-panel
    );

  transition:
    background
    var(
      --mg-pr-transition
    );
}


.mg-prioridades-card:last-child {
  border-bottom:
    0;
}


.mg-prioridades-card:hover {
  background:
    var(
      --mg-pr-panel-soft
    );
}


.mg-prioridades-card.is-highlighted {
  border-left:
    3px solid
    var(
      --mg-pr-warning
    );
}


.mg-prioridades-card.is-blocked {
  border-left:
    3px solid
    var(
      --mg-pr-danger
    );
}


.mg-prioridades-card.is-highlighted.is-blocked {
  border-left-color:
    var(
      --mg-pr-danger
    );
}


.mg-prioridades-card__main {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    12px;

  padding:
    14px;
}


.mg-prioridades-card__top {
  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    12px;
}


.mg-prioridades-card__identity {
  min-width:
    0;

  display:
    flex;

  align-items:
    center;

  gap:
    10px;
}


.mg-prioridades-card__badges {
  min-width:
    0;

  display:
    flex;

  align-items:
    center;

  flex-wrap:
    wrap;

  gap:
    5px;
}


.mg-prioridades-card__code {
  color:
    var(
      --mg-pr-text-muted
    );

  font-size:
    11px;

  font-weight:
    750;

  white-space:
    nowrap;
}


.mg-prioridades-card__actions {
  flex:
    0 0 auto;

  display:
    flex;

  align-items:
    center;

  gap:
    5px;
}


.mg-prioridades-card__actions
.mg-prioridades-icon-btn {
  width:
    32px;

  height:
    32px;

  flex-basis:
    32px;
}


.mg-prioridades-card__title-row {
  min-width:
    0;

  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    12px;
}


.mg-prioridades-card__title-row > div {
  min-width:
    0;
}


.mg-prioridades-card__title-row h3 {
  margin:
    0;

  color:
    var(
      --mg-pr-text
    );

  font-size:
    15px;

  font-weight:
    800;

  line-height:
    1.35;
}


.mg-prioridades-card__title-row p {
  display:
    -webkit-box;

  margin:
    5px 0 0;

  overflow:
    hidden;

  color:
    var(
      --mg-pr-text-soft
    );

  font-size:
    12px;

  line-height:
    1.45;

  -webkit-line-clamp:
    2;

  -webkit-box-orient:
    vertical;
}


.mg-prioridades-card__featured {
  width:
    28px;

  height:
    28px;

  flex:
    0 0 28px;

  display:
    grid;

  place-items:
    center;

  border-radius:
    8px;

  color:
    var(
      --mg-pr-warning
    );

  background:
    var(
      --mg-pr-warning-bg
    );
}


.mg-prioridades-card__info-grid {
  display:
    grid;

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

  gap:
    8px;
}


.mg-prioridades-card__info {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    3px;

  padding:
    9px 10px;

  border:
    1px solid
    var(
      --mg-pr-line
    );

  border-radius:
    9px;

  background:
    var(
      --mg-pr-panel-soft
    );
}


.mg-prioridades-card__info > span {
  overflow:
    hidden;

  color:
    var(
      --mg-pr-text-muted
    );

  font-size:
    10px;

  font-weight:
    700;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


.mg-prioridades-card__info > strong {
  overflow:
    hidden;

  color:
    var(
      --mg-pr-text
    );

  font-size:
    12px;

  font-weight:
    750;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


/* =========================================================
   CARD SIDE
   ========================================================= */

.mg-prioridades-card__side {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  justify-content:
    center;

  gap:
    10px;

  padding:
    14px;

  border-left:
    1px solid
    var(
      --mg-pr-line
    );

  background:
    var(
      --mg-pr-panel-soft
    );
}


.mg-prioridades-card__priority-block,
.mg-prioridades-card__supervisor {
  min-width:
    0;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    8px;
}


.mg-prioridades-card__section-label,
.mg-prioridades-card__supervisor > span {
  min-width:
    0;

  overflow:
    hidden;

  color:
    var(
      --mg-pr-text-muted
    );

  font-size:
    10px;

  font-weight:
    700;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


.mg-prioridades-card__supervisor strong {
  min-width:
    0;

  overflow:
    hidden;

  color:
    var(
      --mg-pr-text
    );

  font-size:
    11px;

  font-weight:
    750;

  text-align:
    right;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


.mg-prioridades-card__date {
  display:
    flex;

  align-items:
    center;

  gap:
    6px;

  padding-top:
    8px;

  border-top:
    1px solid
    var(
      --mg-pr-line
    );

  color:
    var(
      --mg-pr-text-muted
    );

  font-size:
    10px;
}


/* =========================================================
   BADGES
   ========================================================= */

.mg-prioridades-badge {
  max-width:
    100%;

  min-height:
    24px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    5px;

  padding:
    3px 8px;

  border:
    1px solid
    var(
      --mg-pr-line
    );

  border-radius:
    999px;

  color:
    var(
      --mg-pr-text-soft
    );

  background:
    var(
      --mg-pr-panel
    );

  font-size:
    10px;

  font-weight:
    800;

  line-height:
    1;

  white-space:
    nowrap;
}


.mg-prioridades-badge svg {
  flex:
    0 0 auto;
}


.mg-prioridades-badge--tipo {
  color:
    var(
      --mg-pr-text-soft
    );

  background:
    var(
      --mg-pr-panel-soft
    );
}


.mg-prioridades-badge--pending {
  color:
    var(
      --mg-pr-text-muted
    );

  background:
    var(
      --mg-pr-panel
    );
}


.mg-prioridades-badge--vencida,
.mg-prioridades-badge--bloqueada {
  border-color:
    color-mix(
      in srgb,
      var(
        --mg-pr-danger
      )
      30%,
      transparent
    );

  color:
    var(
      --mg-pr-danger
    );

  background:
    var(
      --mg-pr-danger-bg
    );
}


/* =========================================================
   BADGES · PRIORIDAD
   ========================================================= */

.mg-prioridades-badge--prioridad[data-prioridad="BAJA"] {
  color:
    var(
      --mg-pr-text-soft
    );

  background:
    var(
      --mg-pr-panel-soft
    );
}


.mg-prioridades-badge--prioridad[data-prioridad="NORMAL"] {
  color:
    var(
      --mg-pr-info
    );

  background:
    var(
      --mg-pr-info-bg
    );
}


.mg-prioridades-badge--prioridad[data-prioridad="ALTA"] {
  color:
    var(
      --mg-pr-warning
    );

  background:
    var(
      --mg-pr-warning-bg
    );
}


.mg-prioridades-badge--prioridad[data-prioridad="URGENTE"],
.mg-prioridades-badge--prioridad[data-prioridad="CRITICA"] {
  color:
    var(
      --mg-pr-danger
    );

  background:
    var(
      --mg-pr-danger-bg
    );
}


.mg-prioridades-badge--supervisor {
  border-style:
    solid;
}


/* =========================================================
   BADGES · ESTADOS
   ========================================================= */

.mg-prioridades-badge--estado[data-estado="PENDIENTE_REVISION"] {
  color:
    var(
      --mg-pr-warning
    );

  background:
    var(
      --mg-pr-warning-bg
    );
}


.mg-prioridades-badge--estado[data-estado="EN_REVISION"] {
  color:
    var(
      --mg-pr-purple
    );

  background:
    var(
      --mg-pr-purple-bg
    );
}


.mg-prioridades-badge--estado[data-estado="PRIORIZADA"],
.mg-prioridades-badge--estado[data-estado="PROGRAMADA"] {
  color:
    var(
      --mg-pr-info
    );

  background:
    var(
      --mg-pr-info-bg
    );
}


.mg-prioridades-badge--estado[data-estado="EN_PROCESO"] {
  color:
    var(
      --mg-pr-info
    );

  background:
    var(
      --mg-pr-info-bg
    );
}


.mg-prioridades-badge--estado[data-estado="EN_ESPERA"] {
  color:
    var(
      --mg-pr-warning
    );

  background:
    var(
      --mg-pr-warning-bg
    );
}


.mg-prioridades-badge--estado[data-estado="BLOQUEADA"],
.mg-prioridades-badge--estado[data-estado="CANCELADA"] {
  color:
    var(
      --mg-pr-danger
    );

  background:
    var(
      --mg-pr-danger-bg
    );
}


.mg-prioridades-badge--estado[data-estado="COMPLETADA"] {
  color:
    var(
      --mg-pr-success
    );

  background:
    var(
      --mg-pr-success-bg
    );
}


/* =========================================================
   ESTADOS LOADING / EMPTY
   ========================================================= */

.mg-prioridades-state {
  min-height:
    320px;

  display:
    flex;

  flex-direction:
    column;

  align-items:
    center;

  justify-content:
    center;

  gap:
    8px;

  padding:
    30px;

  text-align:
    center;
}


.mg-prioridades-state__icon {
  width:
    46px;

  height:
    46px;

  display:
    grid;

  place-items:
    center;

  margin-bottom:
    4px;

  border:
    1px solid
    var(
      --mg-pr-line
    );

  border-radius:
    13px;

  color:
    var(
      --mg-pr-text-soft
    );

  background:
    var(
      --mg-pr-panel-soft
    );
}


.mg-prioridades-state strong {
  color:
    var(
      --mg-pr-text
    );

  font-size:
    14px;

  font-weight:
    800;
}


.mg-prioridades-state > span {
  max-width:
    460px;

  color:
    var(
      --mg-pr-text-soft
    );

  font-size:
    12px;

  line-height:
    1.5;
}


.mg-prioridades-state
.mg-prioridades-btn {
  margin-top:
    8px;
}


/* =========================================================
   PAGINACIÓN
   ========================================================= */

.mg-prioridades-pagination {
  min-height:
    54px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    12px;

  padding:
    9px 12px;

  border-top:
    1px solid
    var(
      --mg-pr-line
    );

  background:
    var(
      --mg-pr-panel-soft
    );
}


.mg-prioridades-pagination__summary {
  color:
    var(
      --mg-pr-text-soft
    );

  font-size:
    11px;

  font-weight:
    650;
}


.mg-prioridades-pagination__controls {
  display:
    flex;

  align-items:
    center;

  gap:
    4px;
}


.mg-prioridades-pagination__page,
.mg-prioridades-pagination__nav {
  min-width:
    32px;

  height:
    32px;

  display:
    inline-grid;

  place-items:
    center;

  padding:
    0 8px;

  border:
    1px solid
    var(
      --mg-pr-line
    );

  border-radius:
    8px;

  color:
    var(
      --mg-pr-text-soft
    );

  background:
    var(
      --mg-pr-panel
    );

  font-size:
    11px;

  font-weight:
    750;

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


.mg-prioridades-pagination__page:hover:not(:disabled),
.mg-prioridades-pagination__nav:hover:not(:disabled) {
  border-color:
    var(
      --mg-pr-line-strong
    );

  color:
    var(
      --mg-pr-text
    );

  background:
    var(
      --mg-pr-panel-strong
    );
}


.mg-prioridades-pagination__page.is-active {
  border-color:
    var(
      --mg-pr-primary
    );

  color:
    var(
      --mg-pr-primary-text
    );

  background:
    var(
      --mg-pr-primary
    );
}


.mg-prioridades-pagination__ellipsis {
  min-width:
    24px;

  display:
    inline-grid;

  place-items:
    center;

  color:
    var(
      --mg-pr-text-muted
    );

  font-size:
    12px;
}


/* =========================================================
   RESPONSIVE · DESKTOP MEDIO
   ========================================================= */

@media (
  max-width:
  1450px
) {
  .mg-prioridades-metrics {
    grid-template-columns:
      repeat(
        3,
        minmax(
          0,
          1fr
        )
      );
  }


  .mg-prioridades-filters__grid {
    grid-template-columns:
      repeat(
        4,
        minmax(
          0,
          1fr
        )
      );
  }


  .mg-prioridades-card__info-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );
  }
}


/* =========================================================
   RESPONSIVE · TABLET GRANDE
   ========================================================= */

@media (
  max-width:
  1100px
) {
  .mg-prioridades-header__content {
    align-items:
      flex-start;

    flex-direction:
      column;
  }


  .mg-prioridades-header__actions {
    width:
      100%;

    justify-content:
      flex-end;
  }


  .mg-prioridades-card {
    grid-template-columns:
      minmax(
        0,
        1fr
      );
  }


  .mg-prioridades-card__side {
    display:
      grid;

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

    border-top:
      1px solid
      var(
        --mg-pr-line
      );

    border-left:
      0;
  }


  .mg-prioridades-card__date {
    grid-column:
      span 2;
  }
}


/* =========================================================
   RESPONSIVE · TABLET
   ========================================================= */

@media (
  max-width:
  820px
) {
  .mg-prioridades-header {
    padding:
      12px 10px 0;
  }


  .mg-prioridades-body {
    gap:
      12px;

    padding:
      12px 10px;
  }


  .mg-prioridades-metrics {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );
  }


  .mg-prioridades-filters__top {
    align-items:
      stretch;

    flex-direction:
      column;
  }


  .mg-prioridades-search {
    min-width:
      0;

    width:
      100%;
  }


  .mg-prioridades-filters__grid {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );
  }


  .mg-prioridades-list-toolbar {
    align-items:
      stretch;

    flex-direction:
      column;
  }


  .mg-prioridades-list-toolbar__right {
    width:
      100%;

    justify-content:
      flex-end;
  }


  .mg-prioridades-sort {
    flex:
      1;
  }


  .mg-prioridades-sort select {
    width:
      100%;
  }


  .mg-prioridades-pagination {
    align-items:
      flex-start;

    flex-direction:
      column;
  }
}


/* =========================================================
   RESPONSIVE · MOBILE
   ========================================================= */

@media (
  max-width:
  560px
) {
  .mg-prioridades-header__content {
    padding:
      14px;
  }


  .mg-prioridades-header__identity {
    gap:
      10px;
  }


  .mg-prioridades-header__icon {
    width:
      38px;

    height:
      38px;

    flex-basis:
      38px;
  }


  .mg-prioridades-header__text h1 {
    font-size:
      23px;
  }


  .mg-prioridades-header__text p {
    font-size:
      12px;
  }


  .mg-prioridades-header__actions {
    display:
      grid;

    grid-template-columns:
      1fr
      1fr;
  }


  .mg-prioridades-header__actions
  .mg-prioridades-btn {
    width:
      100%;
  }


  .mg-prioridades-metrics {
    grid-template-columns:
      1fr
      1fr;
  }


  .mg-prioridades-metric {
    padding:
      11px;
  }


  .mg-prioridades-metric__value {
    font-size:
      23px;
  }


  .mg-prioridades-filters__grid {
    grid-template-columns:
      1fr;
  }


  .mg-prioridades-card__main {
    padding:
      12px;
  }


  .mg-prioridades-card__top {
    align-items:
      flex-start;

    flex-direction:
      column;
  }


  .mg-prioridades-card__actions {
    width:
      100%;

    justify-content:
      flex-end;
  }


  .mg-prioridades-card__info-grid {
    grid-template-columns:
      1fr;
  }


  .mg-prioridades-card__side {
    grid-template-columns:
      1fr;

    padding:
      12px;
  }


  .mg-prioridades-card__date {
    grid-column:
      auto;
  }


  .mg-prioridades-list-toolbar__right {
    flex-wrap:
      wrap;
  }


  .mg-prioridades-sort {
    width:
      100%;
  }


  .mg-prioridades-pagination__controls {
    width:
      100%;

    overflow-x:
      auto;

    padding-bottom:
      2px;
  }
}/* =========================================================
   WIRTZ HUB · MI GESTIÓN · PRIORIDADES
   UBICACIÓN:
   frontend/src/pages/mi-gestion/prioridades/prioridades.css

   PARTE 2 DE 2

   RESPONSABILIDAD:
   - Modales
   - Formularios
   - Detalle
   - Supervisión
   - Comentarios
   - Historial
   - Checks
   - Notas
   - Responsive de modales
   ========================================================= */


/* =========================================================
   BODY · MODAL ABIERTO
   ========================================================= */

body.mg-prioridades-modal-open {
  overflow:
    hidden;
}


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

.mg-prioridades-modal-root {
  position:
    relative;

  z-index:
    9999;
}


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

.mg-prioridades-modal-backdrop {
  position:
    fixed;

  inset:
    0;

  z-index:
    9998;

  background:
    rgb(
      0 0 0 /
      0.58
    );
}


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

.mg-prioridades-modal {
  position:
    fixed;

  top:
    50%;

  left:
    50%;

  z-index:
    9999;

  width:
    calc(
      100vw -
      32px
    );

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

  display:
    grid;

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

  overflow:
    hidden;

  transform:
    translate(
      -50%,
      -50%
    );

  border:
    1px solid
    var(
      --mg-pr-line
    );

  border-radius:
    var(
      --mg-pr-radius-xl
    );

  color:
    var(
      --mg-pr-text
    );

  background:
    var(
      --mg-pr-panel
    );
}


.mg-prioridades-modal--large {
  max-width:
    1080px;
}


.mg-prioridades-modal--medium {
  max-width:
    760px;
}


.mg-prioridades-modal--small {
  max-width:
    520px;
}


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

.mg-prioridades-modal__header {
  min-height:
    68px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    16px;

  padding:
    12px 14px;

  border-bottom:
    1px solid
    var(
      --mg-pr-line
    );

  background:
    var(
      --mg-pr-panel
    );
}


.mg-prioridades-modal__identity {
  min-width:
    0;

  display:
    flex;

  align-items:
    center;

  gap:
    11px;
}


.mg-prioridades-modal__icon {
  width:
    38px;

  height:
    38px;

  flex:
    0 0 38px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid
    var(
      --mg-pr-line
    );

  border-radius:
    10px;

  color:
    var(
      --mg-pr-text
    );

  background:
    var(
      --mg-pr-panel-soft
    );
}


.mg-prioridades-modal__identity > div:last-child {
  min-width:
    0;
}


.mg-prioridades-modal__eyebrow {
  display:
    block;

  margin-bottom:
    2px;

  overflow:
    hidden;

  color:
    var(
      --mg-pr-text-muted
    );

  font-size:
    10px;

  font-weight:
    800;

  letter-spacing:
    0.07em;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


.mg-prioridades-modal__identity h2 {
  margin:
    0;

  overflow:
    hidden;

  color:
    var(
      --mg-pr-text
    );

  font-size:
    17px;

  font-weight:
    800;

  line-height:
    1.25;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


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

.mg-prioridades-modal__body {
  min-width:
    0;

  min-height:
    0;

  overflow-x:
    hidden;

  overflow-y:
    auto;

  overscroll-behavior:
    contain;

  padding:
    14px;

  background:
    var(
      --mg-pr-bg
    );
}


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

.mg-prioridades-modal__footer {
  min-height:
    62px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    flex-end;

  gap:
    8px;

  padding:
    10px 14px;

  border-top:
    1px solid
    var(
      --mg-pr-line
    );

  background:
    var(
      --mg-pr-panel
    );
}


/* =========================================================
   FORM
   ========================================================= */

.mg-prioridades-form {
  width:
    100%;

  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    12px;
}


/* =========================================================
   FORM SECTIONS
   ========================================================= */

.mg-prioridades-form__section {
  width:
    100%;

  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    12px;

  padding:
    14px;

  border:
    1px solid
    var(
      --mg-pr-line
    );

  border-radius:
    var(
      --mg-pr-radius-md
    );

  background:
    var(
      --mg-pr-panel
    );
}


.mg-prioridades-form__section-head {
  min-width:
    0;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    12px;

  padding-bottom:
    10px;

  border-bottom:
    1px solid
    var(
      --mg-pr-line
    );
}


.mg-prioridades-form__section-head > div {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    2px;
}


.mg-prioridades-form__section-head span {
  color:
    var(
      --mg-pr-text-muted
    );

  font-size:
    9px;

  font-weight:
    850;

  letter-spacing:
    0.08em;
}


.mg-prioridades-form__section-head h3 {
  margin:
    0;

  color:
    var(
      --mg-pr-text
    );

  font-size:
    14px;

  font-weight:
    800;
}


.mg-prioridades-form__section-head > svg {
  flex:
    0 0 auto;

  color:
    var(
      --mg-pr-text-soft
    );
}


/* =========================================================
   FORM GRID
   ========================================================= */

.mg-prioridades-form__grid {
  width:
    100%;

  display:
    grid;

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

  gap:
    12px;
}


/* =========================================================
   CHECKS
   ========================================================= */

.mg-prioridades-form__checks {
  display:
    grid;

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

  gap:
    10px;
}


.mg-prioridades-check {
  position:
    relative;

  min-width:
    0;

  display:
    flex;

  align-items:
    flex-start;

  gap:
    10px;

  padding:
    12px;

  border:
    1px solid
    var(
      --mg-pr-line
    );

  border-radius:
    10px;

  cursor:
    pointer;

  background:
    var(
      --mg-pr-panel-soft
    );

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


.mg-prioridades-check:hover {
  border-color:
    var(
      --mg-pr-line-strong
    );

  background:
    var(
      --mg-pr-panel
    );
}


.mg-prioridades-check input {
  position:
    absolute;

  width:
    1px;

  height:
    1px;

  overflow:
    hidden;

  opacity:
    0;

  pointer-events:
    none;
}


.mg-prioridades-check__box {
  width:
    20px;

  height:
    20px;

  flex:
    0 0 20px;

  display:
    grid;

  place-items:
    center;

  margin-top:
    1px;

  border:
    1px solid
    var(
      --mg-pr-line-strong
    );

  border-radius:
    6px;

  color:
    transparent;

  background:
    var(
      --mg-pr-panel
    );

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


.mg-prioridades-check input:checked +
.mg-prioridades-check__box {
  border-color:
    var(
      --mg-pr-primary
    );

  color:
    var(
      --mg-pr-primary-text
    );

  background:
    var(
      --mg-pr-primary
    );
}


.mg-prioridades-check__content {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    3px;
}


.mg-prioridades-check__content strong {
  color:
    var(
      --mg-pr-text
    );

  font-size:
    12px;

  font-weight:
    800;
}


.mg-prioridades-check__content small {
  color:
    var(
      --mg-pr-text-soft
    );

  font-size:
    10px;

  line-height:
    1.4;
}


/* =========================================================
   DETAIL WRAPPER
   ========================================================= */

.mg-prioridades-detail {
  width:
    100%;

  display:
    flex;

  flex-direction:
    column;

  gap:
    12px;
}


/* =========================================================
   DETAIL SUMMARY
   ========================================================= */

.mg-prioridades-detail-summary {
  width:
    100%;

  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    14px;

  padding:
    14px;

  border:
    1px solid
    var(
      --mg-pr-line
    );

  border-radius:
    var(
      --mg-pr-radius-md
    );

  background:
    var(
      --mg-pr-panel
    );
}


.mg-prioridades-detail-summary__head {
  min-width:
    0;

  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    16px;
}


.mg-prioridades-detail-summary__head > div {
  min-width:
    0;
}


.mg-prioridades-detail-summary__badges {
  display:
    flex;

  align-items:
    center;

  flex-wrap:
    wrap;

  gap:
    5px;

  margin-bottom:
    8px;
}


.mg-prioridades-detail-summary__head h3 {
  margin:
    0;

  color:
    var(
      --mg-pr-text
    );

  font-size:
    20px;

  font-weight:
    850;

  line-height:
    1.25;
}


.mg-prioridades-detail-summary__head p {
  margin:
    6px 0 0;

  color:
    var(
      --mg-pr-text-soft
    );

  font-size:
    12px;

  line-height:
    1.55;
}


.mg-prioridades-detail-summary__code {
  flex:
    0 0 auto;

  padding:
    6px 9px;

  border:
    1px solid
    var(
      --mg-pr-line
    );

  border-radius:
    8px;

  color:
    var(
      --mg-pr-text-soft
    );

  background:
    var(
      --mg-pr-panel-soft
    );

  font-size:
    10px;

  font-weight:
    800;
}


/* =========================================================
   DETAIL GRID
   ========================================================= */

.mg-prioridades-detail-summary__grid {
  display:
    grid;

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

  gap:
    8px;
}


.mg-prioridades-detail-info {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    4px;

  padding:
    9px;

  border:
    1px solid
    var(
      --mg-pr-line
    );

  border-radius:
    9px;

  background:
    var(
      --mg-pr-panel-soft
    );
}


.mg-prioridades-detail-info--wide {
  grid-column:
    span 2;
}


.mg-prioridades-detail-info span {
  overflow:
    hidden;

  color:
    var(
      --mg-pr-text-muted
    );

  font-size:
    9px;

  font-weight:
    750;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


.mg-prioridades-detail-info strong {
  min-width:
    0;

  overflow:
    hidden;

  color:
    var(
      --mg-pr-text
    );

  font-size:
    11px;

  font-weight:
    750;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


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

.mg-prioridades-detail-section {
  width:
    100%;

  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    12px;

  padding:
    14px;

  border:
    1px solid
    var(
      --mg-pr-line
    );

  border-radius:
    var(
      --mg-pr-radius-md
    );

  background:
    var(
      --mg-pr-panel
    );
}


.mg-prioridades-detail-section__head {
  min-width:
    0;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    12px;

  padding-bottom:
    10px;

  border-bottom:
    1px solid
    var(
      --mg-pr-line
    );
}


.mg-prioridades-detail-section__head > div {
  min-width:
    0;
}


.mg-prioridades-detail-section__head span {
  display:
    block;

  color:
    var(
      --mg-pr-text-muted
    );

  font-size:
    9px;

  font-weight:
    850;

  letter-spacing:
    0.08em;
}


.mg-prioridades-detail-section__head h3 {
  margin:
    2px 0 0;

  color:
    var(
      --mg-pr-text
    );

  font-size:
    14px;

  font-weight:
    800;
}


.mg-prioridades-detail-section__head > svg {
  color:
    var(
      --mg-pr-text-soft
    );
}


.mg-prioridades-detail-section__count {
  min-width:
    26px;

  height:
    26px;

  display:
    inline-grid !important;

  place-items:
    center;

  padding:
    0 7px;

  border:
    1px solid
    var(
      --mg-pr-line
    );

  border-radius:
    999px;

  color:
    var(
      --mg-pr-text-soft
    ) !important;

  background:
    var(
      --mg-pr-panel-soft
    );

  font-size:
    10px !important;

  letter-spacing:
    0 !important;
}


/* =========================================================
   SUPERVISION SUMMARY
   ========================================================= */

.mg-prioridades-supervision-summary {
  display:
    grid;

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

  gap:
    8px;
}


.mg-prioridades-supervision-summary__item {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  align-items:
    flex-start;

  gap:
    7px;

  padding:
    10px;

  border:
    1px solid
    var(
      --mg-pr-line
    );

  border-radius:
    9px;

  background:
    var(
      --mg-pr-panel-soft
    );
}


.mg-prioridades-supervision-summary__item > span:first-child {
  color:
    var(
      --mg-pr-text-muted
    );

  font-size:
    9px;

  font-weight:
    750;
}


.mg-prioridades-supervision-summary__item > strong {
  min-width:
    0;

  overflow:
    hidden;

  color:
    var(
      --mg-pr-text
    );

  font-size:
    11px;

  font-weight:
    750;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


/* =========================================================
   DETAIL NOTES
   ========================================================= */

.mg-prioridades-detail-note {
  min-width:
    0;

  display:
    flex;

  align-items:
    flex-start;

  gap:
    10px;

  padding:
    11px;

  border:
    1px solid
    var(
      --mg-pr-line
    );

  border-radius:
    10px;

  background:
    var(
      --mg-pr-panel-soft
    );
}


.mg-prioridades-detail-note__icon {
  width:
    30px;

  height:
    30px;

  flex:
    0 0 30px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid
    var(
      --mg-pr-line
    );

  border-radius:
    8px;

  color:
    var(
      --mg-pr-text-soft
    );

  background:
    var(
      --mg-pr-panel
    );
}


.mg-prioridades-detail-note > div:last-child {
  min-width:
    0;
}


.mg-prioridades-detail-note span {
  display:
    block;

  color:
    var(
      --mg-pr-text-muted
    );

  font-size:
    9px;

  font-weight:
    800;

  letter-spacing:
    0.04em;
}


.mg-prioridades-detail-note p {
  margin:
    4px 0 0;

  color:
    var(
      --mg-pr-text
    );

  font-size:
    11px;

  line-height:
    1.5;

  white-space:
    pre-wrap;

  overflow-wrap:
    anywhere;
}


.mg-prioridades-detail-note--warning {
  border-color:
    color-mix(
      in srgb,
      var(
        --mg-pr-warning
      )
      25%,
      var(
        --mg-pr-line
      )
    );

  background:
    var(
      --mg-pr-warning-bg
    );
}


.mg-prioridades-detail-note--warning
.mg-prioridades-detail-note__icon {
  color:
    var(
      --mg-pr-warning
    );
}


.mg-prioridades-detail-note--danger {
  border-color:
    color-mix(
      in srgb,
      var(
        --mg-pr-danger
      )
      30%,
      var(
        --mg-pr-line
      )
    );

  background:
    var(
      --mg-pr-danger-bg
    );
}


.mg-prioridades-detail-note--danger
.mg-prioridades-detail-note__icon {
  color:
    var(
      --mg-pr-danger
    );
}


.mg-prioridades-detail-note--success {
  border-color:
    color-mix(
      in srgb,
      var(
        --mg-pr-success
      )
      28%,
      var(
        --mg-pr-line
      )
    );

  background:
    var(
      --mg-pr-success-bg
    );
}


.mg-prioridades-detail-note--success
.mg-prioridades-detail-note__icon {
  color:
    var(
      --mg-pr-success
    );
}


/* =========================================================
   COMMENTS
   ========================================================= */

.mg-prioridades-comments {
  max-height:
    360px;

  display:
    flex;

  flex-direction:
    column;

  gap:
    8px;

  overflow-y:
    auto;

  overscroll-behavior:
    contain;
}


.mg-prioridades-comment {
  min-width:
    0;

  display:
    flex;

  align-items:
    flex-start;

  gap:
    9px;

  padding:
    10px;

  border:
    1px solid
    var(
      --mg-pr-line
    );

  border-radius:
    10px;

  background:
    var(
      --mg-pr-panel-soft
    );
}


.mg-prioridades-comment__avatar {
  width:
    30px;

  height:
    30px;

  flex:
    0 0 30px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid
    var(
      --mg-pr-line
    );

  border-radius:
    50%;

  color:
    var(
      --mg-pr-text-soft
    );

  background:
    var(
      --mg-pr-panel
    );
}


.mg-prioridades-comment__content {
  min-width:
    0;

  flex:
    1;

  display:
    flex;

  flex-direction:
    column;

  gap:
    5px;
}


.mg-prioridades-comment__head {
  min-width:
    0;

  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    10px;
}


.mg-prioridades-comment__head > div {
  min-width:
    0;

  display:
    flex;

  align-items:
    center;

  flex-wrap:
    wrap;

  gap:
    6px;
}


.mg-prioridades-comment__head strong {
  color:
    var(
      --mg-pr-text
    );

  font-size:
    11px;

  font-weight:
    800;
}


.mg-prioridades-comment__head span {
  padding:
    2px 6px;

  border:
    1px solid
    var(
      --mg-pr-line
    );

  border-radius:
    999px;

  color:
    var(
      --mg-pr-text-muted
    );

  background:
    var(
      --mg-pr-panel
    );

  font-size:
    8px;

  font-weight:
    800;
}


.mg-prioridades-comment__head time {
  flex:
    0 0 auto;

  color:
    var(
      --mg-pr-text-muted
    );

  font-size:
    9px;

  white-space:
    nowrap;
}


.mg-prioridades-comment__content p {
  margin:
    0;

  color:
    var(
      --mg-pr-text
    );

  font-size:
    11px;

  line-height:
    1.5;

  white-space:
    pre-wrap;

  overflow-wrap:
    anywhere;
}


/* =========================================================
   COMMENT FORM
   ========================================================= */

.mg-prioridades-comment-form {
  display:
    grid;

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

  align-items:
    end;

  gap:
    8px;
}


.mg-prioridades-comment-form textarea {
  width:
    100%;

  min-height:
    74px;

  padding:
    10px;

  border:
    1px solid
    var(
      --mg-pr-line
    );

  border-radius:
    10px;

  outline:
    0;

  resize:
    vertical;

  color:
    var(
      --mg-pr-text
    );

  background:
    var(
      --mg-pr-panel-soft
    );

  font-size:
    11px;

  line-height:
    1.5;
}


.mg-prioridades-comment-form textarea:focus {
  border-color:
    var(
      --mg-pr-line-strong
    );

  background:
    var(
      --mg-pr-panel
    );
}


.mg-prioridades-comment-form textarea::placeholder {
  color:
    var(
      --mg-pr-text-muted
    );
}


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

.mg-prioridades-comments__empty {
  min-height:
    90px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    8px;

  padding:
    14px;

  border:
    1px dashed
    var(
      --mg-pr-line-strong
    );

  border-radius:
    10px;

  color:
    var(
      --mg-pr-text-muted
    );

  background:
    var(
      --mg-pr-panel-soft
    );

  font-size:
    10px;
}


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

.mg-prioridades-history {
  position:
    relative;

  display:
    flex;

  flex-direction:
    column;

  gap:
    7px;
}


.mg-prioridades-history-item {
  position:
    relative;

  min-width:
    0;

  display:
    grid;

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

  gap:
    9px;
}


.mg-prioridades-history-item:not(:last-child)::before {
  content:
    "";

  position:
    absolute;

  top:
    27px;

  bottom:
    -8px;

  left:
    13px;

  width:
    1px;

  background:
    var(
      --mg-pr-line
    );
}


.mg-prioridades-history-item__marker {
  position:
    relative;

  z-index:
    1;

  width:
    28px;

  height:
    28px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid
    var(
      --mg-pr-line
    );

  border-radius:
    50%;

  color:
    var(
      --mg-pr-text-soft
    );

  background:
    var(
      --mg-pr-panel
    );
}


.mg-prioridades-history-item__content {
  min-width:
    0;

  padding:
    8px 9px;

  border:
    1px solid
    var(
      --mg-pr-line
    );

  border-radius:
    9px;

  background:
    var(
      --mg-pr-panel-soft
    );
}


.mg-prioridades-history-item__head {
  min-width:
    0;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    10px;
}


.mg-prioridades-history-item__head strong {
  overflow:
    hidden;

  color:
    var(
      --mg-pr-text
    );

  font-size:
    10px;

  font-weight:
    800;

  text-transform:
    capitalize;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


.mg-prioridades-history-item__head time {
  flex:
    0 0 auto;

  color:
    var(
      --mg-pr-text-muted
    );

  font-size:
    8px;

  white-space:
    nowrap;
}


.mg-prioridades-history-item__content p {
  margin:
    4px 0;

  color:
    var(
      --mg-pr-text-soft
    );

  font-size:
    10px;

  line-height:
    1.45;

  white-space:
    pre-wrap;

  overflow-wrap:
    anywhere;
}


.mg-prioridades-history-item__content > span {
  display:
    block;

  color:
    var(
      --mg-pr-text-muted
    );

  font-size:
    8px;

  font-weight:
    700;
}


/* =========================================================
   SCROLLBARS
   ========================================================= */

.mg-prioridades-modal__body,
.mg-prioridades-comments,
.mg-prioridades-pagination__controls {
  scrollbar-width:
    thin;

  scrollbar-color:
    var(
      --mg-pr-line-strong
    )
    transparent;
}


.mg-prioridades-modal__body::-webkit-scrollbar,
.mg-prioridades-comments::-webkit-scrollbar,
.mg-prioridades-pagination__controls::-webkit-scrollbar {
  width:
    7px;

  height:
    7px;
}


.mg-prioridades-modal__body::-webkit-scrollbar-track,
.mg-prioridades-comments::-webkit-scrollbar-track,
.mg-prioridades-pagination__controls::-webkit-scrollbar-track {
  background:
    transparent;
}


.mg-prioridades-modal__body::-webkit-scrollbar-thumb,
.mg-prioridades-comments::-webkit-scrollbar-thumb,
.mg-prioridades-pagination__controls::-webkit-scrollbar-thumb {
  border-radius:
    999px;

  background:
    var(
      --mg-pr-line-strong
    );
}


/* =========================================================
   FOCUS ACCESSIBLE
   ========================================================= */

.mg-prioridades-page button:focus-visible,
.mg-prioridades-page input:focus-visible,
.mg-prioridades-page select:focus-visible,
.mg-prioridades-page textarea:focus-visible,
.mg-prioridades-modal button:focus-visible,
.mg-prioridades-modal input:focus-visible,
.mg-prioridades-modal select:focus-visible,
.mg-prioridades-modal textarea:focus-visible {
  outline:
    2px solid
    color-mix(
      in srgb,
      var(
        --mg-pr-text
      )
      50%,
      transparent
    );

  outline-offset:
    2px;
}


/* =========================================================
   SELECT DARK SAFE
   ========================================================= */

html[data-theme="dark"]
.mg-prioridades-page select,
html[data-theme="dark"]
.mg-prioridades-modal select {
  color-scheme:
    dark;
}


/* =========================================================
   DATE INPUT DARK SAFE
   ========================================================= */

html[data-theme="dark"]
.mg-prioridades-page input[type="date"],
html[data-theme="dark"]
.mg-prioridades-page input[type="datetime-local"],
html[data-theme="dark"]
.mg-prioridades-modal input[type="date"],
html[data-theme="dark"]
.mg-prioridades-modal input[type="datetime-local"] {
  color-scheme:
    dark;
}


/* =========================================================
   RESPONSIVE · MODAL MEDIUM
   ========================================================= */

@media (
  max-width:
  980px
) {
  .mg-prioridades-detail-summary__grid {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );
  }


  .mg-prioridades-supervision-summary {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );
  }
}


/* =========================================================
   RESPONSIVE · TABLET
   ========================================================= */

@media (
  max-width:
  760px
) {
  .mg-prioridades-modal {
    width:
      calc(
        100vw -
        20px
      );

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

    border-radius:
      14px;
  }


  .mg-prioridades-modal__header {
    min-height:
      60px;

    padding:
      10px 11px;
  }


  .mg-prioridades-modal__body {
    padding:
      10px;
  }


  .mg-prioridades-modal__footer {
    padding:
      9px 10px;
  }


  .mg-prioridades-form__section,
  .mg-prioridades-detail-summary,
  .mg-prioridades-detail-section {
    padding:
      11px;
  }


  .mg-prioridades-form__grid {
    grid-template-columns:
      1fr;
  }


  .mg-prioridades-field--span-2 {
    grid-column:
      auto;
  }


  .mg-prioridades-form__checks {
    grid-template-columns:
      1fr;
  }


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


  .mg-prioridades-comment-form
  .mg-prioridades-btn {
    justify-self:
      flex-end;
  }
}


/* =========================================================
   RESPONSIVE · MOBILE
   ========================================================= */

@media (
  max-width:
  560px
) {
  .mg-prioridades-modal {
    top:
      0;

    left:
      0;

    width:
      100vw;

    height:
      100dvh;

    max-height:
      none;

    transform:
      none;

    border:
      0;

    border-radius:
      0;
  }


  .mg-prioridades-modal__header {
    min-height:
      58px;
  }


  .mg-prioridades-modal__identity {
    gap:
      8px;
  }


  .mg-prioridades-modal__icon {
    width:
      34px;

    height:
      34px;

    flex-basis:
      34px;
  }


  .mg-prioridades-modal__identity h2 {
    font-size:
      15px;
  }


  .mg-prioridades-modal__eyebrow {
    font-size:
      8px;
  }


  .mg-prioridades-modal__footer {
    display:
      grid;

    grid-template-columns:
      1fr
      1fr;
  }


  .mg-prioridades-modal__footer
  .mg-prioridades-btn {
    width:
      100%;
  }


  .mg-prioridades-detail-summary__head {
    flex-direction:
      column;
  }


  .mg-prioridades-detail-summary__code {
    align-self:
      flex-start;
  }


  .mg-prioridades-detail-summary__grid {
    grid-template-columns:
      1fr;
  }


  .mg-prioridades-detail-info--wide {
    grid-column:
      auto;
  }


  .mg-prioridades-supervision-summary {
    grid-template-columns:
      1fr;
  }


  .mg-prioridades-comment__head {
    flex-direction:
      column;

    gap:
      4px;
  }


  .mg-prioridades-comment__head time {
    white-space:
      normal;
  }


  .mg-prioridades-history-item__head {
    align-items:
      flex-start;

    flex-direction:
      column;

    gap:
      3px;
  }


  .mg-prioridades-history-item__head time {
    white-space:
      normal;
  }
}


/* =========================================================
   MOBILE PEQUEÑO
   ========================================================= */

@media (
  max-width:
  400px
) {
  .mg-prioridades-modal__footer {
    grid-template-columns:
      1fr;
  }


  .mg-prioridades-detail-summary__head h3 {
    font-size:
      17px;
  }


  .mg-prioridades-comment {
    padding:
      8px;
  }


  .mg-prioridades-comment__avatar {
    width:
      27px;

    height:
      27px;

    flex-basis:
      27px;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

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

    animation-duration:
      0.001ms !important;

    animation-iteration-count:
      1 !important;

    transition-duration:
      0.001ms !important;
  }
}/* =========================================================
   PRIORIDADES · MÁS RÁPIDA / DIVISIONES MARCADAS /
   TIPOGRAFÍA MÁS FUERTE
   ========================================================= */

.mg-prioridades-page {
  --mg-pr-transition: 90ms ease;

  --mg-pr-line: #c7ccd2;
  --mg-pr-line-strong: #9da4ad;

  --mg-pr-text: #0d0f12;
  --mg-pr-text-soft: #3f454d;
  --mg-pr-text-muted: #646b74;
}

html[data-theme="dark"]
.mg-prioridades-page {
  --mg-pr-line: #343941;
  --mg-pr-line-strong: #555c66;

  --mg-pr-text: #ffffff;
  --mg-pr-text-soft: #d7dbe0;
  --mg-pr-text-muted: #aeb4bc;
}


/* =========================================================
   RENDIMIENTO VISUAL
   ========================================================= */

.mg-prioridades-card,
.mg-prioridades-metric,
.mg-prioridades-filters,
.mg-prioridades-list-panel,
.mg-prioridades-form__section,
.mg-prioridades-detail-summary,
.mg-prioridades-detail-section,
.mg-prioridades-detail-info,
.mg-prioridades-supervision-summary__item,
.mg-prioridades-comment,
.mg-prioridades-history-item__content,
.mg-prioridades-detail-note {
  transition: none;
}


/* =========================================================
   TIPOGRAFÍA GENERAL MÁS MARCADA
   ========================================================= */

.mg-prioridades-page {
  font-weight: 600;
}

.mg-prioridades-header__text h1,
.mg-prioridades-card__title-row h3,
.mg-prioridades-list-toolbar__title strong,
.mg-prioridades-state strong,
.mg-prioridades-detail-summary__head h3,
.mg-prioridades-form__section-head h3,
.mg-prioridades-detail-section__head h3,
.mg-prioridades-modal__identity h2 {
  font-weight: 850;
}

.mg-prioridades-header__eyebrow,
.mg-prioridades-field > span,
.mg-prioridades-sort > span,
.mg-prioridades-card__code,
.mg-prioridades-card__section-label,
.mg-prioridades-card__supervisor > span,
.mg-prioridades-detail-info span,
.mg-prioridades-supervision-summary__item > span:first-child,
.mg-prioridades-form__section-head span,
.mg-prioridades-detail-section__head span {
  font-weight: 800;
}

.mg-prioridades-header__text p,
.mg-prioridades-metric__meta,
.mg-prioridades-card__title-row p,
.mg-prioridades-card__date,
.mg-prioridades-pagination__summary,
.mg-prioridades-state > span {
  font-weight: 650;
}

.mg-prioridades-card__info > strong,
.mg-prioridades-card__supervisor strong,
.mg-prioridades-detail-info strong,
.mg-prioridades-supervision-summary__item > strong {
  font-weight: 800;
}

.mg-prioridades-btn,
.mg-prioridades-badge,
.mg-prioridades-pagination__page,
.mg-prioridades-pagination__nav {
  font-weight: 800;
}


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

.mg-prioridades-header__content {
  border-color: var(--mg-pr-line-strong);
  border-bottom-width: 2px;
}

.mg-prioridades-header__icon {
  border-color: var(--mg-pr-line-strong);
}


/* =========================================================
   MÉTRICAS
   ========================================================= */

.mg-prioridades-metrics {
  gap: 8px;
}

.mg-prioridades-metric {
  padding: 12px;
  border-color: var(--mg-pr-line-strong);
}

.mg-prioridades-metric__icon {
  border-color: var(--mg-pr-line-strong);
}

.mg-prioridades-metric__label {
  font-weight: 800;
}

.mg-prioridades-metric__value {
  font-weight: 900;
}

.mg-prioridades-metric__meta {
  color: var(--mg-pr-text-soft);
}


/* =========================================================
   FILTROS
   ========================================================= */

.mg-prioridades-filters {
  gap: 10px;
  padding: 12px;

  border-color: var(--mg-pr-line-strong);
}

.mg-prioridades-search,
.mg-prioridades-field input,
.mg-prioridades-field select,
.mg-prioridades-field textarea,
.mg-prioridades-sort select {
  border-color: var(--mg-pr-line-strong);
}

.mg-prioridades-search input,
.mg-prioridades-field input,
.mg-prioridades-field select,
.mg-prioridades-field textarea,
.mg-prioridades-sort select {
  font-weight: 700;
}

.mg-prioridades-search input::placeholder,
.mg-prioridades-field input::placeholder,
.mg-prioridades-field textarea::placeholder {
  color: var(--mg-pr-text-muted);
  opacity: 0.9;
}


/* =========================================================
   PANEL LISTADO
   ========================================================= */

.mg-prioridades-list-panel {
  border-color: var(--mg-pr-line-strong);
}

.mg-prioridades-list-toolbar {
  border-bottom: 2px solid var(--mg-pr-line-strong);
}


/* =========================================================
   CARDS
   ========================================================= */

.mg-prioridades-card {
  border-bottom: 2px solid var(--mg-pr-line);
}

.mg-prioridades-card__main {
  gap: 10px;
  padding: 12px;
}

.mg-prioridades-card__side {
  border-left: 1px solid var(--mg-pr-line-strong);
}

.mg-prioridades-card__info {
  padding: 8px 9px;
  border-color: var(--mg-pr-line-strong);
}

.mg-prioridades-card__info > span {
  color: var(--mg-pr-text-muted);
  font-weight: 800;
}

.mg-prioridades-card__info > strong {
  color: var(--mg-pr-text);
}

.mg-prioridades-card__date {
  border-top-color: var(--mg-pr-line-strong);
}

.mg-prioridades-card.is-highlighted {
  border-left: 4px solid var(--mg-pr-warning);
}

.mg-prioridades-card.is-blocked {
  border-left: 4px solid var(--mg-pr-danger);
}


/* =========================================================
   BADGES
   ========================================================= */

.mg-prioridades-badge {
  border-color: var(--mg-pr-line-strong);
}


/* =========================================================
   BOTONES
   ========================================================= */

.mg-prioridades-btn--secondary,
.mg-prioridades-icon-btn {
  border-color: var(--mg-pr-line-strong);
}


/* =========================================================
   PAGINACIÓN
   ========================================================= */

.mg-prioridades-pagination {
  border-top: 2px solid var(--mg-pr-line-strong);
}

.mg-prioridades-pagination__page,
.mg-prioridades-pagination__nav {
  border-color: var(--mg-pr-line-strong);
}


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

.mg-prioridades-modal {
  border-color: var(--mg-pr-line-strong);
}

.mg-prioridades-modal__header {
  border-bottom: 2px solid var(--mg-pr-line-strong);
}

.mg-prioridades-modal__footer {
  border-top: 2px solid var(--mg-pr-line-strong);
}

.mg-prioridades-modal__icon {
  border-color: var(--mg-pr-line-strong);
}


/* =========================================================
   FORMULARIOS
   ========================================================= */

.mg-prioridades-form__section {
  border-color: var(--mg-pr-line-strong);
}

.mg-prioridades-form__section-head {
  border-bottom: 1px solid var(--mg-pr-line-strong);
}

.mg-prioridades-check {
  border-color: var(--mg-pr-line-strong);
}

.mg-prioridades-check__content strong {
  font-weight: 850;
}

.mg-prioridades-check__content small {
  color: var(--mg-pr-text-soft);
  font-weight: 650;
}


/* =========================================================
   DETALLE
   ========================================================= */

.mg-prioridades-detail-summary,
.mg-prioridades-detail-section {
  border-color: var(--mg-pr-line-strong);
}

.mg-prioridades-detail-section__head {
  border-bottom: 1px solid var(--mg-pr-line-strong);
}

.mg-prioridades-detail-info,
.mg-prioridades-supervision-summary__item {
  border-color: var(--mg-pr-line-strong);
}

.mg-prioridades-detail-summary__code {
  border-color: var(--mg-pr-line-strong);
  font-weight: 850;
}


/* =========================================================
   NOTAS
   ========================================================= */

.mg-prioridades-detail-note {
  border-color: var(--mg-pr-line-strong);
}

.mg-prioridades-detail-note__icon {
  border-color: var(--mg-pr-line-strong);
}

.mg-prioridades-detail-note span {
  font-weight: 850;
}

.mg-prioridades-detail-note p {
  font-weight: 650;
}


/* =========================================================
   COMENTARIOS
   ========================================================= */

.mg-prioridades-comment {
  border-color: var(--mg-pr-line-strong);
}

.mg-prioridades-comment__avatar {
  border-color: var(--mg-pr-line-strong);
}

.mg-prioridades-comment__head strong {
  font-weight: 850;
}

.mg-prioridades-comment__head span {
  border-color: var(--mg-pr-line-strong);
  font-weight: 850;
}

.mg-prioridades-comment__content p {
  font-weight: 650;
}

.mg-prioridades-comment-form textarea {
  border-color: var(--mg-pr-line-strong);
  font-weight: 650;
}


/* =========================================================
   HISTORIAL
   ========================================================= */

.mg-prioridades-history-item__marker,
.mg-prioridades-history-item__content {
  border-color: var(--mg-pr-line-strong);
}

.mg-prioridades-history-item:not(:last-child)::before {
  background: var(--mg-pr-line-strong);
}

.mg-prioridades-history-item__head strong {
  font-weight: 850;
}

.mg-prioridades-history-item__content p {
  color: var(--mg-pr-text-soft);
  font-weight: 650;
}

.mg-prioridades-history-item__content > span {
  color: var(--mg-pr-text-muted);
  font-weight: 750;
}


/* =========================================================
   RESPONSIVE · TABLET
   ========================================================= */

@media (max-width: 820px) {
  .mg-prioridades-header {
    padding: 10px 10px 0;
  }

  .mg-prioridades-body {
    gap: 10px;
    padding: 10px;
  }

  .mg-prioridades-header__content {
    gap: 12px;
    padding: 14px;
  }

  .mg-prioridades-metrics {
    gap: 7px;
  }

  .mg-prioridades-filters__grid {
    gap: 8px;
  }

  .mg-prioridades-card__side {
    border-top: 2px solid var(--mg-pr-line-strong);
    border-left: 0;
  }
}


/* =========================================================
   RESPONSIVE · MOBILE
   ========================================================= */

@media (max-width: 560px) {
  .mg-prioridades-page {
    overflow-x: hidden;
  }

  .mg-prioridades-header {
    padding: 8px 8px 0;
  }

  .mg-prioridades-body {
    gap: 8px;
    padding: 8px;
  }

  .mg-prioridades-header__content {
    gap: 10px;
    padding: 11px;
    border-radius: 12px;
  }

  .mg-prioridades-header__identity {
    gap: 8px;
  }

  .mg-prioridades-header__icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }

  .mg-prioridades-header__text h1 {
    font-size: 20px;
    font-weight: 900;
  }

  .mg-prioridades-header__eyebrow {
    font-size: 9px;
    font-weight: 850;
  }

  .mg-prioridades-header__text p {
    margin-top: 4px;
    font-size: 10.5px;
    font-weight: 650;
    line-height: 1.4;
  }

  .mg-prioridades-header__actions {
    gap: 6px;
  }

  .mg-prioridades-btn {
    min-height: 34px;
    padding: 0 9px;

    font-size: 11px;
    font-weight: 800;
  }

  .mg-prioridades-metrics {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );

    gap: 6px;
  }

  .mg-prioridades-metric {
    gap: 7px;
    padding: 9px;
    border-radius: 9px;
  }

  .mg-prioridades-metric__top {
    gap: 6px;
  }

  .mg-prioridades-metric__icon {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
  }

  .mg-prioridades-metric__label {
    font-size: 10px;
    font-weight: 850;
  }

  .mg-prioridades-metric__value {
    font-size: 20px;
    font-weight: 900;
  }

  .mg-prioridades-metric__meta {
    font-size: 9px;
    font-weight: 700;
  }

  .mg-prioridades-filters {
    gap: 8px;
    padding: 9px;

    border-radius: 10px;
  }

  .mg-prioridades-search {
    height: 35px;
  }

  .mg-prioridades-search input {
    font-size: 11px;
    font-weight: 700;
  }

  .mg-prioridades-filters__grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .mg-prioridades-field {
    gap: 4px;
  }

  .mg-prioridades-field > span {
    font-size: 9px;
    font-weight: 850;
  }

  .mg-prioridades-field input,
  .mg-prioridades-field select {
    height: 35px;

    font-size: 11px;
    font-weight: 700;
  }

  .mg-prioridades-list-toolbar {
    min-height: auto;

    gap: 8px;
    padding: 9px;

    border-bottom-width: 2px;
  }

  .mg-prioridades-list-toolbar__title strong {
    font-size: 12px;
    font-weight: 850;
  }

  .mg-prioridades-list-toolbar__title span {
    font-size: 9px;
    font-weight: 700;
  }

  .mg-prioridades-sort {
    flex: 1 1 auto;
  }

  .mg-prioridades-sort select {
    min-width: 0;
    width: 100%;
    height: 34px;

    font-size: 10px;
  }

  .mg-prioridades-card {
    border-bottom: 3px solid var(--mg-pr-line-strong);
  }

  .mg-prioridades-card__main {
    gap: 8px;
    padding: 10px;
  }

  .mg-prioridades-card__top {
    gap: 8px;
  }

  .mg-prioridades-card__title-row h3 {
    font-size: 13px;
    font-weight: 900;
  }

  .mg-prioridades-card__title-row p {
    font-size: 10px;
    font-weight: 650;
  }

  .mg-prioridades-card__info-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );

    gap: 6px;
  }

  .mg-prioridades-card__info {
    padding: 7px 8px;
    border-radius: 7px;
  }

  .mg-prioridades-card__info > span {
    font-size: 8px;
    font-weight: 850;
  }

  .mg-prioridades-card__info > strong {
    font-size: 10px;
    font-weight: 800;
  }

  .mg-prioridades-card__side {
    gap: 7px;
    padding: 10px;

    border-top: 2px solid var(--mg-pr-line-strong);
  }

  .mg-prioridades-card__section-label,
  .mg-prioridades-card__supervisor > span {
    font-size: 9px;
    font-weight: 800;
  }

  .mg-prioridades-card__supervisor strong {
    font-size: 10px;
    font-weight: 800;
  }

  .mg-prioridades-card__date {
    font-size: 9px;
    font-weight: 700;
  }

  .mg-prioridades-badge {
    min-height: 22px;

    padding: 3px 7px;

    font-size: 9px;
    font-weight: 850;
  }

  .mg-prioridades-pagination {
    gap: 8px;
    padding: 8px;

    border-top: 2px solid var(--mg-pr-line-strong);
  }

  .mg-prioridades-pagination__controls {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mg-prioridades-pagination__controls::-webkit-scrollbar {
    display: none;
  }

  .mg-prioridades-modal__body {
    padding: 8px;
  }

  .mg-prioridades-form,
  .mg-prioridades-detail {
    gap: 8px;
  }

  .mg-prioridades-form__section,
  .mg-prioridades-detail-summary,
  .mg-prioridades-detail-section {
    gap: 9px;
    padding: 9px;
  }

  .mg-prioridades-form__section-head,
  .mg-prioridades-detail-section__head {
    padding-bottom: 8px;
  }

  .mg-prioridades-detail-summary__grid,
  .mg-prioridades-supervision-summary {
    gap: 6px;
  }
}


/* =========================================================
   MOBILE CHICO
   ========================================================= */

@media (max-width: 400px) {
  .mg-prioridades-header__actions {
    grid-template-columns: 1fr;
  }

  .mg-prioridades-card__info-grid {
    grid-template-columns: 1fr;
  }
}