/* =========================================================
   UBICACIÓN:
   frontend/src/pages/facturacion-cobranzas/notas-credito/
   notas-credito.css

   WIRTZ HUB
   FACTURACIÓN Y COBRANZAS
   NOTAS DE CRÉDITO

   PARTE 1 DE 3
   ========================================================= */


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

.nc-page {
  --nc-bg:
    #f6f7f9;

  --nc-surface:
    #ffffff;

  --nc-surface-2:
    #f8f9fb;

  --nc-surface-3:
    #f2f3f5;

  --nc-border:
    #d9dde3;

  --nc-border-strong:
    #c1c7d0;

  --nc-text:
    #1b1d21;

  --nc-text-strong:
    #090a0c;

  --nc-muted:
    #666d78;

  --nc-muted-2:
    #8b929c;

  --nc-black:
    #09090b;

  --nc-white:
    #ffffff;

  --nc-success:
    #137333;

  --nc-success-bg:
    #edf8f0;

  --nc-warning:
    #9a6700;

  --nc-warning-bg:
    #fff8e6;

  --nc-danger:
    #b42318;

  --nc-danger-bg:
    #fff1f0;

  --nc-info:
    #155eef;

  --nc-info-bg:
    #eff4ff;

  --nc-purple:
    #6941c6;

  --nc-purple-bg:
    #f4f0ff;

  --nc-shadow:
    0
    1px
    2px
    rgba(
      16,
      24,
      40,
      0.05
    );

  --nc-shadow-lg:
    0
    16px
    40px
    rgba(
      15,
      23,
      42,
      0.12
    );

  --nc-radius:
    12px;

  --nc-radius-sm:
    8px;

  --nc-transition:
    160ms
    ease;
}


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

html[data-theme="dark"]
.nc-page,
body[data-theme="dark"]
.nc-page,
[data-theme="dark"]
.nc-page,
body.dark
.nc-page,
body.dark-mode
.nc-page {
  --nc-bg:
    #000000;

  --nc-surface:
    #050505;

  --nc-surface-2:
    #090909;

  --nc-surface-3:
    #0d0d0d;

  --nc-border:
    #242424;

  --nc-border-strong:
    #343434;

  --nc-text:
    #f4f4f4;

  --nc-text-strong:
    #ffffff;

  --nc-muted:
    #a8a8a8;

  --nc-muted-2:
    #7d7d7d;

  --nc-black:
    #ffffff;

  --nc-white:
    #000000;

  --nc-success:
    #7fd89d;

  --nc-success-bg:
    #0d1f13;

  --nc-warning:
    #e7bd62;

  --nc-warning-bg:
    #211a08;

  --nc-danger:
    #ff9c94;

  --nc-danger-bg:
    #26100f;

  --nc-info:
    #8db3ff;

  --nc-info-bg:
    #0b1427;

  --nc-purple:
    #c6adff;

  --nc-purple-bg:
    #171024;

  --nc-shadow:
    none;

  --nc-shadow-lg:
    0
    22px
    60px
    rgba(
      0,
      0,
      0,
      0.62
    );
}


/* =========================================================
   RESET LOCAL
   ========================================================= */

.nc-page,
.nc-page * {
  box-sizing:
    border-box;
}


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


.nc-page button {
  -webkit-tap-highlight-color:
    transparent;
}


.nc-page svg {
  flex:
    0 0 auto;
}


/* =========================================================
   BASE PAGE INTEGRATION
   ========================================================= */

#pageContent:has(.nc-page) {
  width:
    100%;

  max-width:
    none;

  min-width:
    0;
}


.app-content:has(.nc-page) {
  width:
    100%;

  max-width:
    none;

  min-width:
    0;

  padding:
    0;
}


/* =========================================================
   FULL WIDTH
   ========================================================= */

.nc-page {
  width:
    100%;

  max-width:
    100%;

  min-width:
    0;

  min-height:
    100%;

  color:
    var(--nc-text);

  background:
    var(--nc-bg);

  overflow-x:
    hidden;
}


.nc-page > * {
  min-width:
    0;

  max-width:
    100%;
}


.nc-page__inner {
  width:
    100%;

  max-width:
    none;

  min-width:
    0;

  padding:
    18px;

  margin:
    0;
}


/* =========================================================
   PREVENCIÓN SCROLL HORIZONTAL
   ========================================================= */

html:has(.nc-page),
body:has(.nc-page) {
  max-width:
    100%;

  overflow-x:
    hidden;
}


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

.nc-header {
  width:
    100%;

  margin:
    0
    0
    16px;
}


.nc-header__main {
  width:
    100%;

  min-width:
    0;

  padding:
    2px
    2px
    0;
}


.nc-header__eyebrow {
  margin-bottom:
    5px;

  color:
    var(--nc-muted);

  font-size:
    11px;

  font-weight:
    750;

  letter-spacing:
    .06em;

  text-transform:
    uppercase;
}


.nc-header__title-row {
  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    18px;

  width:
    100%;

  min-width:
    0;
}


.nc-header__copy {
  flex:
    1
    1
    auto;

  min-width:
    0;
}


.nc-header__title {
  margin:
    0;

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

  font-size:
    clamp(
      24px,
      2.4vw,
      34px
    );

  line-height:
    1.05;

  font-weight:
    850;

  letter-spacing:
    -.035em;
}


.nc-header__description {
  max-width:
    760px;

  margin:
    7px
    0
    0;

  color:
    var(--nc-muted);

  font-size:
    12.5px;

  line-height:
    1.5;

  font-weight:
    520;
}


.nc-header__actions {
  display:
    flex;

  align-items:
    center;

  justify-content:
    flex-end;

  flex-wrap:
    wrap;

  gap:
    8px;

  flex:
    0
    0
    auto;
}


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

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

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    7px;

  padding:
    0
    13px;

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

  background:
    var(--nc-surface);

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

  border-radius:
    9px;

  font-size:
    12px;

  font-weight:
    750;

  line-height:
    1;

  cursor:
    pointer;

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


.nc-btn svg {
  width:
    16px;

  height:
    16px;

  stroke-width:
    2;
}


.nc-btn:hover:not(:disabled) {
  background:
    var(--nc-surface-2);

  border-color:
    var(--nc-border-strong);
}


.nc-btn:active:not(:disabled) {
  transform:
    translateY(
      1px
    );
}


.nc-btn:disabled {
  opacity:
    .52;

  cursor:
    not-allowed;
}


.nc-btn--primary {
  color:
    #ffffff;

  background:
    #09090b;

  border-color:
    #09090b;
}


.nc-btn--primary:hover:not(:disabled) {
  color:
    #ffffff;

  background:
    #1d1d1f;

  border-color:
    #1d1d1f;
}


html[data-theme="dark"]
.nc-btn--primary,
body[data-theme="dark"]
.nc-btn--primary,
[data-theme="dark"]
.nc-btn--primary,
body.dark
.nc-btn--primary,
body.dark-mode
.nc-btn--primary {
  color:
    #000000;

  background:
    #ffffff;

  border-color:
    #ffffff;
}


html[data-theme="dark"]
.nc-btn--primary:hover:not(:disabled),
body[data-theme="dark"]
.nc-btn--primary:hover:not(:disabled),
[data-theme="dark"]
.nc-btn--primary:hover:not(:disabled),
body.dark
.nc-btn--primary:hover:not(:disabled),
body.dark-mode
.nc-btn--primary:hover:not(:disabled) {
  color:
    #000000;

  background:
    #ededed;

  border-color:
    #ededed;
}


.nc-btn--secondary {
  color:
    var(--nc-text-strong);

  background:
    var(--nc-surface);

  border-color:
    var(--nc-border);
}


.nc-btn--ghost {
  color:
    var(--nc-text);

  background:
    transparent;

  border-color:
    transparent;
}


.nc-btn--ghost:hover:not(:disabled) {
  background:
    var(--nc-surface-2);

  border-color:
    var(--nc-border);
}


.nc-btn--danger {
  color:
    #ffffff;

  background:
    #b42318;

  border-color:
    #b42318;
}


.nc-btn--danger:hover:not(:disabled) {
  color:
    #ffffff;

  background:
    #912018;

  border-color:
    #912018;
}


.nc-btn--danger-outline {
  color:
    var(--nc-danger);

  background:
    transparent;

  border-color:
    color-mix(
      in srgb,
      var(--nc-danger)
      42%,
      var(--nc-border)
    );
}


.nc-btn--danger-outline:hover:not(:disabled) {
  color:
    var(--nc-danger);

  background:
    var(--nc-danger-bg);

  border-color:
    var(--nc-danger);
}


.nc-btn.is-loading svg,
.nc-page [data-lucide="loader-circle"] {
  animation:
    nc-spin
    .85s
    linear
    infinite;
}


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

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

  height:
    36px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  flex:
    0
    0
    auto;

  padding:
    0;

  color:
    var(--nc-text);

  background:
    var(--nc-surface);

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

  border-radius:
    9px;

  cursor:
    pointer;

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


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

  height:
    16px;

  stroke-width:
    2;
}


.nc-icon-btn:hover:not(:disabled) {
  color:
    var(--nc-text-strong);

  background:
    var(--nc-surface-2);

  border-color:
    var(--nc-border-strong);
}


.nc-icon-btn:disabled {
  opacity:
    .4;

  cursor:
    not-allowed;
}


.nc-icon-btn.is-active {
  color:
    var(--nc-text-strong);

  background:
    var(--nc-surface-3);

  border-color:
    var(--nc-border-strong);
}


.nc-icon-btn--danger {
  color:
    var(--nc-danger);
}


.nc-icon-btn--danger:hover {
  color:
    var(--nc-danger);

  background:
    var(--nc-danger-bg);

  border-color:
    color-mix(
      in srgb,
      var(--nc-danger)
      45%,
      transparent
    );
}


/* =========================================================
   TOGGLE MONEDA
   ========================================================= */

.nc-currency-toggle {
  display:
    inline-flex;

  align-items:
    center;

  gap:
    3px;

  padding:
    3px;

  background:
    var(--nc-surface-2);

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

  border-radius:
    9px;
}


.nc-currency-toggle__btn {
  min-width:
    47px;

  height:
    30px;

  padding:
    0
    10px;

  color:
    var(--nc-muted);

  background:
    transparent;

  border:
    0;

  border-radius:
    6px;

  font-size:
    11px;

  font-weight:
    800;

  cursor:
    pointer;

  transition:
    background
    var(--nc-transition),
    color
    var(--nc-transition);
}


.nc-currency-toggle__btn:hover {
  color:
    var(--nc-text-strong);
}


.nc-currency-toggle__btn.is-active {
  color:
    var(--nc-text-strong);

  background:
    var(--nc-surface);

  box-shadow:
    var(--nc-shadow);
}


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

.nc-metrics {
  display:
    grid;

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

  gap:
    10px;

  width:
    100%;

  min-width:
    0;

  margin-bottom:
    14px;
}


.nc-metric-card {
  min-width:
    0;

  min-height:
    98px;

  display:
    flex;

  align-items:
    center;

  gap:
    11px;

  padding:
    14px;

  background:
    var(--nc-surface);

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

  border-radius:
    var(--nc-radius);

  box-shadow:
    var(--nc-shadow);
}


.nc-metric-card__icon {
  width:
    38px;

  height:
    38px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  flex:
    0
    0
    38px;

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

  background:
    var(--nc-surface-2);

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

  border-radius:
    9px;
}


.nc-metric-card__icon svg {
  width:
    18px;

  height:
    18px;

  stroke-width:
    2;
}


.nc-metric-card__body {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    2px;
}


.nc-metric-card__label {
  color:
    var(--nc-muted);

  font-size:
    10.5px;

  font-weight:
    750;

  line-height:
    1.2;
}


.nc-metric-card__value {
  max-width:
    100%;

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

  font-size:
    clamp(
      18px,
      1.65vw,
      24px
    );

  font-weight:
    850;

  line-height:
    1.15;

  letter-spacing:
    -.025em;

  overflow:
    hidden;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


.nc-metric-card__meta {
  max-width:
    100%;

  color:
    var(--nc-muted);

  font-size:
    10px;

  font-weight:
    560;

  line-height:
    1.25;

  overflow:
    hidden;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


.nc-metric-card--success
.nc-metric-card__icon {
  color:
    var(--nc-success);

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

  border-color:
    color-mix(
      in srgb,
      var(--nc-success)
      24%,
      var(--nc-border)
    );
}


.nc-metric-card--warning
.nc-metric-card__icon {
  color:
    var(--nc-warning);

  background:
    var(--nc-warning-bg);

  border-color:
    color-mix(
      in srgb,
      var(--nc-warning)
      24%,
      var(--nc-border)
    );
}


.nc-metric-card--info
.nc-metric-card__icon {
  color:
    var(--nc-info);

  background:
    var(--nc-info-bg);

  border-color:
    color-mix(
      in srgb,
      var(--nc-info)
      24%,
      var(--nc-border)
    );
}


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

.nc-workspace {
  width:
    100%;

  min-width:
    0;
}


.nc-panel {
  width:
    100%;

  min-width:
    0;

  overflow:
    hidden;

  background:
    var(--nc-surface);

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

  border-radius:
    var(--nc-radius);

  box-shadow:
    var(--nc-shadow);
}


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

.nc-panel__header {
  min-height:
    58px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    14px;

  padding:
    11px
    14px;

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


.nc-panel__title {
  margin:
    0;

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

  font-size:
    14px;

  font-weight:
    850;

  line-height:
    1.2;
}


.nc-panel__subtitle {
  margin:
    3px
    0
    0;

  color:
    var(--nc-muted);

  font-size:
    10.5px;

  line-height:
    1.35;

  font-weight:
    560;
}


.nc-panel__header-actions {
  display:
    flex;

  align-items:
    center;

  gap:
    7px;
}


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

.nc-toolbar {
  display:
    flex;

  align-items:
    flex-end;

  gap:
    10px;

  width:
    100%;

  min-width:
    0;

  padding:
    12px
    14px;

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

  background:
    var(--nc-surface);
}


/* =========================================================
   BUSCADOR
   ========================================================= */

.nc-search {
  position:
    relative;

  flex:
    1
    1
    320px;

  min-width:
    220px;

  max-width:
    460px;
}


.nc-search > svg {
  position:
    absolute;

  top:
    50%;

  left:
    11px;

  width:
    15px;

  height:
    15px;

  color:
    var(--nc-muted);

  pointer-events:
    none;

  transform:
    translateY(
      -50%
    );
}


.nc-search input {
  width:
    100%;

  height:
    38px;

  padding:
    0
    38px
    0
    34px;

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

  background:
    var(--nc-surface);

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

  border-radius:
    9px;

  outline:
    none;

  font-size:
    12px;

  font-weight:
    560;

  transition:
    border-color
    var(--nc-transition),
    box-shadow
    var(--nc-transition),
    background
    var(--nc-transition);
}


.nc-search input::placeholder {
  color:
    var(--nc-muted-2);
}


.nc-search input:focus {
  border-color:
    var(--nc-text-strong);

  box-shadow:
    0
    0
    0
    2px
    color-mix(
      in srgb,
      var(--nc-text-strong)
      10%,
      transparent
    );
}


.nc-search__clear {
  position:
    absolute;

  top:
    50%;

  right:
    6px;

  width:
    26px;

  height:
    26px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  padding:
    0;

  color:
    var(--nc-muted);

  background:
    transparent;

  border:
    0;

  border-radius:
    6px;

  cursor:
    pointer;

  transform:
    translateY(
      -50%
    );
}


.nc-search__clear:hover {
  color:
    var(--nc-text-strong);

  background:
    var(--nc-surface-2);
}


.nc-search__clear svg {
  width:
    14px;

  height:
    14px;
}


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

.nc-toolbar__filters {
  display:
    grid;

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

  gap:
    8px;

  flex:
    1
    1
    auto;

  min-width:
    0;
}


.nc-select-wrap {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    4px;
}


.nc-select-wrap > span {
  color:
    var(--nc-muted);

  font-size:
    9px;

  font-weight:
    800;

  letter-spacing:
    .03em;

  text-transform:
    uppercase;
}


.nc-select-wrap select {
  width:
    100%;

  height:
    38px;

  min-width:
    0;

  padding:
    0
    30px
    0
    10px;

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

  background:
    var(--nc-surface);

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

  border-radius:
    9px;

  outline:
    none;

  font-size:
    11px;

  font-weight:
    650;

  cursor:
    pointer;
}


.nc-select-wrap select:focus {
  border-color:
    var(--nc-text-strong);
}


/* =========================================================
   ADVANCED FILTERS
   ========================================================= */

.nc-advanced-filters {
  display:
    grid;

  grid-template-columns:
    repeat(
      4,
      minmax(
        140px,
        1fr
      )
    )
    auto;

  align-items:
    end;

  gap:
    9px;

  padding:
    11px
    14px;

  background:
    var(--nc-surface-2);

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


.nc-advanced-filters[hidden] {
  display:
    none;
}


.nc-advanced-filters label {
  display:
    flex;

  flex-direction:
    column;

  gap:
    4px;

  min-width:
    0;
}


.nc-advanced-filters label > span {
  color:
    var(--nc-muted);

  font-size:
    9px;

  font-weight:
    800;

  text-transform:
    uppercase;

  letter-spacing:
    .03em;
}


.nc-advanced-filters input,
.nc-advanced-filters select {
  width:
    100%;

  height:
    38px;

  min-width:
    0;

  padding:
    0
    10px;

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

  background:
    var(--nc-surface);

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

  border-radius:
    9px;

  outline:
    none;

  font-size:
    11px;

  font-weight:
    620;
}


.nc-advanced-filters input:focus,
.nc-advanced-filters select:focus {
  border-color:
    var(--nc-text-strong);
}


.nc-advanced-filters__actions {
  display:
    flex;

  align-items:
    center;

  justify-content:
    flex-end;
}


/* =========================================================
   TABLA
   ========================================================= */

.nc-table-shell {
  width:
    100%;

  max-width:
    100%;

  min-width:
    0;

  overflow-x:
    auto;

  overscroll-behavior-x:
    contain;
}


.nc-table {
  width:
    100%;

  min-width:
    1220px;

  border-collapse:
    collapse;

  border-spacing:
    0;

  table-layout:
    auto;

  margin:
    0;
}


.nc-table thead {
  background:
    var(--nc-surface-2);
}


.nc-table th {
  height:
    38px;

  padding:
    0
    11px;

  color:
    var(--nc-muted);

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

  font-size:
    9px;

  font-weight:
    850;

  line-height:
    1;

  letter-spacing:
    .035em;

  text-align:
    left;

  text-transform:
    uppercase;

  white-space:
    nowrap;
}


.nc-table td {
  padding:
    11px;

  color:
    var(--nc-text);

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

  font-size:
    11px;

  line-height:
    1.35;

  vertical-align:
    middle;
}


.nc-table tbody tr:last-child td {
  border-bottom:
    0;
}


.nc-table-row {
  cursor:
    pointer;

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


.nc-table-row:hover {
  background:
    var(--nc-surface-2);
}


.nc-table td.is-numeric,
.nc-table th.is-numeric {
  text-align:
    right;
}


.nc-col-number {
  min-width:
    175px;
}


.nc-col-client {
  min-width:
    210px;
}


.nc-col-actions {
  width:
    54px;

  min-width:
    54px;

  text-align:
    right;
}


/* =========================================================
   CELDA NÚMERO
   ========================================================= */

.nc-number-cell {
  display:
    flex;

  flex-direction:
    column;

  gap:
    4px;

  min-width:
    0;
}


.nc-number-cell__number {
  color:
    var(--nc-text-strong);

  font-size:
    11.5px;

  font-weight:
    850;

  line-height:
    1.25;

  white-space:
    nowrap;
}


.nc-number-cell__meta {
  display:
    flex;

  align-items:
    center;

  flex-wrap:
    wrap;

  gap:
    5px;

  color:
    var(--nc-muted);

  font-size:
    9.5px;

  line-height:
    1.2;
}


/* =========================================================
   CELDA CLIENTE
   ========================================================= */

.nc-client-cell {
  display:
    flex;

  align-items:
    center;

  gap:
    9px;

  min-width:
    0;
}


.nc-client-avatar {
  width:
    32px;

  height:
    32px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  flex:
    0
    0
    32px;

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

  background:
    var(--nc-surface-2);

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

  border-radius:
    8px;

  font-size:
    11px;

  font-weight:
    850;
}


.nc-client-cell__text {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    2px;
}


.nc-client-cell__name {
  max-width:
    220px;

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

  font-size:
    11px;

  font-weight:
    800;

  overflow:
    hidden;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


.nc-client-cell__legal {
  max-width:
    220px;

  color:
    var(--nc-muted);

  font-size:
    9.5px;

  overflow:
    hidden;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


.nc-client-cell__meta {
  display:
    flex;

  align-items:
    center;

  flex-wrap:
    wrap;

  gap:
    5px;

  color:
    var(--nc-muted);

  font-size:
    9px;
}


/* =========================================================
   CELDAS GENERALES
   ========================================================= */

.nc-origin-cell,
.nc-value-stack {
  display:
    flex;

  flex-direction:
    column;

  gap:
    2px;

  min-width:
    0;
}


.nc-origin-cell strong,
.nc-value-stack strong {
  color:
    var(--nc-text-strong);

  font-size:
    10.5px;

  font-weight:
    760;
}


.nc-origin-cell small,
.nc-value-stack small {
  max-width:
    180px;

  color:
    var(--nc-muted);

  font-size:
    9px;

  line-height:
    1.3;

  overflow:
    hidden;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


.nc-value-stack--numeric {
  align-items:
    flex-end;
}


.nc-money {
  color:
    var(--nc-text-strong);

  font-weight:
    820;
}


.nc-money.is-credit {
  color:
    var(--nc-success);
}


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

.nc-badge {
  min-height:
    22px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  max-width:
    180px;

  padding:
    3px
    7px;

  color:
    var(--nc-muted);

  background:
    var(--nc-surface-2);

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

  border-radius:
    999px;

  font-size:
    8.5px;

  font-weight:
    800;

  line-height:
    1;

  white-space:
    nowrap;
}


.nc-badge.is-success {
  color:
    var(--nc-success);

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

  border-color:
    color-mix(
      in srgb,
      var(--nc-success)
      25%,
      var(--nc-border)
    );
}


.nc-badge.is-warning {
  color:
    var(--nc-warning);

  background:
    var(--nc-warning-bg);

  border-color:
    color-mix(
      in srgb,
      var(--nc-warning)
      25%,
      var(--nc-border)
    );
}


.nc-badge.is-danger {
  color:
    var(--nc-danger);

  background:
    var(--nc-danger-bg);

  border-color:
    color-mix(
      in srgb,
      var(--nc-danger)
      25%,
      var(--nc-border)
    );
}


.nc-badge.is-info {
  color:
    var(--nc-info);

  background:
    var(--nc-info-bg);

  border-color:
    color-mix(
      in srgb,
      var(--nc-info)
      25%,
      var(--nc-border)
    );
}


.nc-badge.is-purple {
  color:
    var(--nc-purple);

  background:
    var(--nc-purple-bg);

  border-color:
    color-mix(
      in srgb,
      var(--nc-purple)
      25%,
      var(--nc-border)
    );
}


.nc-badge.is-neutral {
  color:
    var(--nc-text);

  background:
    var(--nc-surface-2);

  border-color:
    var(--nc-border);
}


/* =========================================================
   ROW ACTION
   ========================================================= */

.nc-icon-btn--row {
  width:
    30px;

  height:
    30px;

  margin-left:
    auto;

  background:
    transparent;

  border-color:
    transparent;
}


.nc-table-row:hover
.nc-icon-btn--row {
  background:
    var(--nc-surface);

  border-color:
    var(--nc-border);
}


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

.nc-table-empty-cell {
  padding:
    0
    !important;
}


.nc-empty {
  min-height:
    250px;

  display:
    flex;

  flex-direction:
    column;

  align-items:
    center;

  justify-content:
    center;

  gap:
    8px;

  padding:
    28px;

  text-align:
    center;
}


.nc-empty--compact {
  min-height:
    180px;
}


.nc-empty__icon {
  width:
    44px;

  height:
    44px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  color:
    var(--nc-muted);

  background:
    var(--nc-surface-2);

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

  border-radius:
    10px;
}


.nc-empty__icon svg {
  width:
    20px;

  height:
    20px;
}


.nc-empty strong {
  color:
    var(--nc-text-strong);

  font-size:
    13px;

  font-weight:
    820;
}


.nc-empty span {
  max-width:
    430px;

  color:
    var(--nc-muted);

  font-size:
    11px;

  line-height:
    1.45;
}


.nc-empty__actions {
  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  flex-wrap:
    wrap;

  gap:
    8px;

  margin-top:
    5px;
}


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

.nc-pagination {
  min-height:
    54px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    12px;

  padding:
    9px
    14px;

  color:
    var(--nc-muted);

  border-top:
    1px
    solid
    var(--nc-border);

  font-size:
    10.5px;
}


.nc-pagination__info strong,
.nc-pagination__current strong {
  color:
    var(--nc-text-strong);

  font-weight:
    800;
}


.nc-pagination__actions {
  display:
    flex;

  align-items:
    center;

  gap:
    8px;
}


.nc-pagination__current {
  min-width:
    110px;

  text-align:
    center;
}


/* =========================================================
   SKELETON
   ========================================================= */

.nc-skeleton {
  position:
    relative;

  overflow:
    hidden;

  background:
    var(--nc-surface-3);

  border-radius:
    6px;
}


.nc-skeleton::after {
  content:
    "";

  position:
    absolute;

  inset:
    0;

  background:
    linear-gradient(
      90deg,
      transparent,
      color-mix(
        in srgb,
        var(--nc-text-strong)
        5%,
        transparent
      ),
      transparent
    );

  transform:
    translateX(
      -100%
    );

  animation:
    nc-skeleton
    1.4s
    infinite;
}


.nc-skeleton--icon {
  width:
    38px;

  height:
    38px;

  flex:
    0
    0
    38px;
}


.nc-skeleton--avatar {
  width:
    32px;

  height:
    32px;

  border-radius:
    8px;
}


.nc-skeleton--label {
  width:
    74px;

  height:
    8px;
}


.nc-skeleton--value {
  width:
    108px;

  height:
    18px;

  margin-top:
    3px;
}


.nc-skeleton--small {
  width:
    88px;

  height:
    7px;

  margin-top:
    3px;
}


.nc-skeleton--line-sm {
  width:
    70px;

  height:
    7px;
}


.nc-skeleton--line-md {
  width:
    96px;

  height:
    9px;
}


.nc-skeleton--line-lg {
  width:
    140px;

  height:
    9px;
}


.nc-skeleton--money {
  width:
    82px;

  height:
    10px;

  margin-left:
    auto;
}


.nc-skeleton--date {
  width:
    74px;

  height:
    9px;
}


.nc-skeleton--badge {
  width:
    62px;

  height:
    20px;

  border-radius:
    999px;
}


.nc-skeleton--button {
  width:
    28px;

  height:
    28px;

  margin-left:
    auto;
}


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

@keyframes nc-spin {

  to {
    transform:
      rotate(
        360deg
      );
  }

}


@keyframes nc-skeleton {

  to {
    transform:
      translateX(
        100%
      );
  }

}


/* =========================================================
   RESPONSIVE · PARTE BASE
   ========================================================= */

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


  .nc-toolbar {
    align-items:
      stretch;

    flex-direction:
      column;
  }


  .nc-search {
    max-width:
      none;

    width:
      100%;
  }


  .nc-toolbar__filters {
    width:
      100%;
  }
}


@media (
  max-width:
    1180px
) {
  .nc-page__inner {
    padding:
      14px;
  }


  .nc-header__title-row {
    flex-direction:
      column;

    align-items:
      stretch;
  }


  .nc-header__actions {
    justify-content:
      flex-start;
  }


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


  .nc-advanced-filters {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );
  }


  .nc-advanced-filters__actions {
    grid-column:
      1 /
      -1;

    justify-content:
      flex-start;
  }
}


@media (
  max-width:
    760px
) {
  .nc-page__inner {
    padding:
      10px;
  }


  .nc-header__actions {
    display:
      grid;

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

    width:
      100%;
  }


  .nc-header__actions
  .nc-btn {
    width:
      100%;
  }


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


  .nc-toolbar__filters {
    grid-template-columns:
      1fr;
  }


  .nc-advanced-filters {
    grid-template-columns:
      1fr;
  }


  .nc-panel__header {
    align-items:
      flex-start;
  }


  .nc-pagination {
    flex-direction:
      column;

    align-items:
      stretch;
  }


  .nc-pagination__actions {
    justify-content:
      space-between;
  }
}


@media (
  max-width:
    520px
) {
  .nc-header__actions {
    grid-template-columns:
      1fr
      1fr;
  }


  .nc-currency-toggle {
    grid-column:
      1 /
      -1;

    justify-content:
      center;
  }


  .nc-currency-toggle__btn {
    flex:
      1;
  }


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


  .nc-metric-card {
    min-height:
      84px;
  }


  .nc-header__title {
    font-size:
      25px;
  }


  .nc-header__description {
    font-size:
      11.5px;
  }
}


/* =========================================================
   FIN PARTE 1 DE 3
   ========================================================= *//* =========================================================
   CONTINÚA:
   frontend/src/pages/facturacion-cobranzas/notas-credito/
   notas-credito.css

   WIRTZ HUB
   FACTURACIÓN Y COBRANZAS
   NOTAS DE CRÉDITO

   PARTE 2 DE 3
   ========================================================= */


/* =========================================================
   DETAIL OVERLAY
   DEBAJO DEL TOPBAR
   ========================================================= */

#pageNotasCredito
.nc-detail-overlay {
  position:
    fixed;

  top:
    58px;

  right:
    0;

  bottom:
    0;

  left:
    0;

  width:
    100vw;

  height:
    calc(
      100dvh -
      58px
    );

  max-height:
    calc(
      100dvh -
      58px
    );

  display:
    flex;

  align-items:
    stretch;

  justify-content:
    flex-end;

  z-index:
    8900;

  overflow:
    hidden;
}


#pageNotasCredito
.nc-detail-overlay[hidden] {
  display:
    none;
}


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

#pageNotasCredito
.nc-detail-backdrop {
  position:
    absolute;

  inset:
    0;

  background:
    rgba(
      15,
      18,
      24,
      .48
    );

  backdrop-filter:
    blur(
      2px
    );

  -webkit-backdrop-filter:
    blur(
      2px
    );
}


html[data-theme="dark"]
#pageNotasCredito
.nc-detail-backdrop,
body[data-theme="dark"]
#pageNotasCredito
.nc-detail-backdrop,
[data-theme="dark"]
#pageNotasCredito
.nc-detail-backdrop,
body.dark
#pageNotasCredito
.nc-detail-backdrop,
body.dark-mode
#pageNotasCredito
.nc-detail-backdrop {
  background:
    rgba(
      0,
      0,
      0,
      .72
    );
}


/* =========================================================
   DETAIL PANEL
   ========================================================= */

#pageNotasCredito
.nc-detail {
  position:
    relative;

  z-index:
    2;

  width:
    min(
      1540px,
      calc(
        100vw -
        74px
      )
    );

  max-width:
    none;

  min-width:
    0;

  height:
    100%;

  max-height:
    100%;

  display:
    flex;

  flex-direction:
    column;

  color:
    var(--nc-text);

  background:
    var(--nc-surface);

  border-left:
    1px
    solid
    var(--nc-border-strong);

  box-shadow:
    -16px
    0
    48px
    rgba(
      15,
      23,
      42,
      .10
    );

  overflow:
    hidden;

  animation:
    nc-detail-in
    .18s
    ease;
}


html[data-theme="dark"]
#pageNotasCredito
.nc-detail,
body[data-theme="dark"]
#pageNotasCredito
.nc-detail,
[data-theme="dark"]
#pageNotasCredito
.nc-detail,
body.dark
#pageNotasCredito
.nc-detail,
body.dark-mode
#pageNotasCredito
.nc-detail {
  box-shadow:
    -22px
    0
    60px
    rgba(
      0,
      0,
      0,
      .62
    );
}


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

.nc-detail__header {
  position:
    relative;

  z-index:
    5;

  flex:
    0
    0
    auto;

  min-height:
    76px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    14px;

  padding:
    12px
    14px;

  background:
    var(--nc-surface);

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


.nc-detail__header-main {
  flex:
    1
    1
    auto;

  min-width:
    0;
}


.nc-detail-title {
  display:
    flex;

  align-items:
    center;

  gap:
    11px;

  min-width:
    0;
}


.nc-detail-title__icon {
  width:
    40px;

  height:
    40px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  flex:
    0
    0
    40px;

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

  background:
    var(--nc-surface-2);

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

  border-radius:
    10px;
}


.nc-detail-title__icon svg {
  width:
    19px;

  height:
    19px;

  stroke-width:
    2;
}


.nc-detail-title__copy {
  min-width:
    0;

  flex:
    1
    1
    auto;
}


.nc-detail-title__topline {
  display:
    flex;

  align-items:
    center;

  flex-wrap:
    wrap;

  gap:
    8px;

  min-width:
    0;
}


.nc-detail-title__topline h2 {
  max-width:
    100%;

  margin:
    0;

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

  font-size:
    17px;

  font-weight:
    850;

  line-height:
    1.2;

  letter-spacing:
    -.02em;

  overflow:
    hidden;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


.nc-detail-title__meta {
  display:
    flex;

  align-items:
    center;

  flex-wrap:
    wrap;

  gap:
    7px;

  margin-top:
    4px;

  color:
    var(--nc-muted);

  font-size:
    10.5px;

  font-weight:
    560;
}


.nc-dot {
  width:
    3px;

  height:
    3px;

  flex:
    0
    0
    3px;

  background:
    var(--nc-muted-2);

  border-radius:
    999px;
}


.nc-icon-btn--close {
  width:
    34px;

  height:
    34px;

  flex:
    0
    0
    34px;
}


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

.nc-detail__summary {
  flex:
    0
    0
    auto;

  display:
    grid;

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

  gap:
    8px;

  padding:
    10px
    14px;

  background:
    var(--nc-surface-2);

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


.nc-detail-stat {
  min-width:
    0;

  min-height:
    72px;

  display:
    flex;

  flex-direction:
    column;

  justify-content:
    center;

  gap:
    3px;

  padding:
    10px
    11px;

  background:
    var(--nc-surface);

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

  border-radius:
    9px;
}


.nc-detail-stat__label {
  color:
    var(--nc-muted);

  font-size:
    9px;

  font-weight:
    800;

  letter-spacing:
    .03em;

  text-transform:
    uppercase;
}


.nc-detail-stat__value {
  max-width:
    100%;

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

  font-size:
    16px;

  font-weight:
    850;

  line-height:
    1.2;

  letter-spacing:
    -.02em;

  overflow:
    hidden;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


.nc-detail-stat__value--small {
  font-size:
    12px;

  letter-spacing:
    0;
}


.nc-detail-stat__meta {
  max-width:
    100%;

  color:
    var(--nc-muted);

  font-size:
    9.5px;

  line-height:
    1.3;

  overflow:
    hidden;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


/* =========================================================
   DETAIL ACTIONS
   ========================================================= */

.nc-detail-actions {
  flex:
    0
    0
    auto;

  display:
    flex;

  align-items:
    center;

  flex-wrap:
    wrap;

  gap:
    7px;

  padding:
    9px
    14px;

  background:
    var(--nc-surface);

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


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

.nc-detail-tabs {
  position:
    relative;

  z-index:
    3;

  flex:
    0
    0
    auto;

  display:
    flex;

  align-items:
    center;

  gap:
    3px;

  min-height:
    46px;

  padding:
    6px
    14px;

  background:
    var(--nc-surface);

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

  overflow-x:
    auto;

  scrollbar-width:
    none;
}


.nc-detail-tabs::-webkit-scrollbar {
  display:
    none;
}


.nc-detail-tab {
  height:
    32px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    6px;

  flex:
    0
    0
    auto;

  padding:
    0
    11px;

  color:
    var(--nc-muted);

  background:
    transparent;

  border:
    1px
    solid
    transparent;

  border-radius:
    7px;

  font-size:
    10.5px;

  font-weight:
    720;

  cursor:
    pointer;

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


.nc-detail-tab svg {
  width:
    14px;

  height:
    14px;
}


.nc-detail-tab:hover {
  color:
    var(--nc-text-strong);

  background:
    var(--nc-surface-2);
}


.nc-detail-tab.is-active {
  color:
    var(--nc-text-strong);

  background:
    var(--nc-surface-2);

  border-color:
    var(--nc-border);
}


/* =========================================================
   DETAIL CONTENT
   ========================================================= */

.nc-detail__content {
  flex:
    1
    1
    auto;

  min-width:
    0;

  min-height:
    0;

  overflow:
    auto;

  padding:
    12px
    14px
    22px;

  background:
    var(--nc-bg);

  overscroll-behavior:
    contain;
}


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

.nc-detail-grid {
  display:
    grid;

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

  gap:
    10px;

  width:
    100%;

  min-width:
    0;
}


.nc-detail-card {
  min-width:
    0;

  background:
    var(--nc-surface);

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

  border-radius:
    10px;

  overflow:
    hidden;

  box-shadow:
    var(--nc-shadow);
}


.nc-detail-card--wide {
  grid-column:
    1 /
    -1;
}


.nc-detail-card__header {
  min-height:
    58px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    12px;

  padding:
    11px
    13px;

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

  background:
    var(--nc-surface);
}


.nc-detail-card__header h3 {
  margin:
    0;

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

  font-size:
    12px;

  font-weight:
    840;

  line-height:
    1.2;
}


.nc-detail-card__header p {
  margin:
    3px
    0
    0;

  color:
    var(--nc-muted);

  font-size:
    9.5px;

  line-height:
    1.35;
}


.nc-detail-card__actions {
  display:
    flex;

  align-items:
    center;

  gap:
    6px;

  flex-wrap:
    wrap;
}


.nc-detail-card__footer {
  display:
    flex;

  align-items:
    center;

  justify-content:
    flex-end;

  gap:
    8px;

  padding:
    9px
    12px;

  border-top:
    1px
    solid
    var(--nc-border);

  background:
    var(--nc-surface-2);
}


/* =========================================================
   DETAIL FIELDS
   ========================================================= */

.nc-detail-fields {
  display:
    grid;

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

  gap:
    0;

  padding:
    0;
}


.nc-detail-fields--single {
  grid-template-columns:
    1fr;
}


.nc-detail-field {
  min-width:
    0;

  min-height:
    62px;

  display:
    flex;

  flex-direction:
    column;

  justify-content:
    center;

  gap:
    5px;

  padding:
    10px
    12px;

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

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


.nc-detail-fields
.nc-detail-field:nth-child(2n) {
  border-right:
    0;
}


.nc-detail-fields--single
.nc-detail-field {
  border-right:
    0;
}


.nc-detail-field--full {
  grid-column:
    1 /
    -1;

  border-right:
    0
    !important;
}


.nc-detail-field > span {
  color:
    var(--nc-muted);

  font-size:
    9px;

  font-weight:
    800;

  letter-spacing:
    .025em;

  text-transform:
    uppercase;
}


.nc-detail-field > strong {
  max-width:
    100%;

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

  font-size:
    11px;

  font-weight:
    720;

  line-height:
    1.4;

  overflow-wrap:
    anywhere;
}


/* =========================================================
   TOTALS
   ========================================================= */

.nc-detail-card--totals {
  align-self:
    start;
}


.nc-total-list {
  width:
    100%;
}


.nc-total-row {
  min-height:
    40px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    16px;

  padding:
    8px
    12px;

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


.nc-total-row:last-child {
  border-bottom:
    0;
}


.nc-total-row span {
  color:
    var(--nc-muted);

  font-size:
    10px;

  font-weight:
    650;
}


.nc-total-row strong {
  color:
    var(--nc-text-strong);

  font-size:
    10.5px;

  font-weight:
    820;

  white-space:
    nowrap;
}


.nc-total-row--grand {
  min-height:
    48px;

  background:
    var(--nc-surface-2);

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

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


.nc-total-row--grand span,
.nc-total-row--grand strong {
  color:
    var(--nc-text-strong);

  font-size:
    12px;

  font-weight:
    860;
}


.nc-total-row--available {
  background:
    var(--nc-success-bg);
}


.nc-total-row--available span,
.nc-total-row--available strong {
  color:
    var(--nc-success);

  font-weight:
    820;
}


/* =========================================================
   DETAIL TABLE
   ========================================================= */

.nc-detail-table-shell {
  width:
    100%;

  max-width:
    100%;

  min-width:
    0;

  overflow-x:
    auto;

  overscroll-behavior-x:
    contain;
}


.nc-detail-table {
  width:
    100%;

  min-width:
    860px;

  border-collapse:
    collapse;

  border-spacing:
    0;
}


.nc-detail-table thead {
  background:
    var(--nc-surface-2);
}


.nc-detail-table th {
  height:
    36px;

  padding:
    0
    10px;

  color:
    var(--nc-muted);

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

  font-size:
    8.5px;

  font-weight:
    850;

  letter-spacing:
    .035em;

  text-align:
    left;

  text-transform:
    uppercase;

  white-space:
    nowrap;
}


.nc-detail-table td {
  padding:
    10px;

  color:
    var(--nc-text);

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

  font-size:
    10.5px;

  line-height:
    1.35;

  vertical-align:
    middle;
}


.nc-detail-table tbody tr:last-child td {
  border-bottom:
    0;
}


.nc-detail-table tbody tr:hover {
  background:
    var(--nc-surface-2);
}


.nc-detail-table td.is-numeric,
.nc-detail-table th.is-numeric {
  text-align:
    right;
}


.nc-detail-table tr.is-inactive {
  opacity:
    .55;

  background:
    var(--nc-surface-2);
}


/* =========================================================
   PRODUCT CELL
   ========================================================= */

.nc-product-cell {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    2px;
}


.nc-product-cell strong {
  max-width:
    260px;

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

  font-size:
    10.5px;

  font-weight:
    760;

  overflow:
    hidden;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


.nc-product-cell span {
  color:
    var(--nc-muted);

  font-size:
    9px;
}


/* =========================================================
   ROW ACTIONS
   ========================================================= */

.nc-row-actions {
  display:
    flex;

  align-items:
    center;

  justify-content:
    flex-end;

  gap:
    5px;
}


.nc-row-actions
.nc-icon-btn {
  width:
    29px;

  height:
    29px;
}


/* =========================================================
   TIMELINE
   ========================================================= */

.nc-timeline {
  position:
    relative;

  padding:
    8px
    14px
    14px;
}


.nc-timeline::before {
  content:
    "";

  position:
    absolute;

  top:
    18px;

  bottom:
    18px;

  left:
    24px;

  width:
    1px;

  background:
    var(--nc-border);
}


.nc-timeline-item {
  position:
    relative;

  display:
    grid;

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

  gap:
    9px;

  min-width:
    0;

  padding:
    9px
    0;
}


.nc-timeline-item__marker {
  position:
    relative;

  z-index:
    2;

  display:
    flex;

  justify-content:
    center;

  padding-top:
    4px;
}


.nc-timeline-item__marker span {
  width:
    9px;

  height:
    9px;

  background:
    var(--nc-surface);

  border:
    2px
    solid
    var(--nc-border-strong);

  border-radius:
    999px;
}


.nc-timeline-item__content {
  min-width:
    0;

  padding:
    9px
    10px;

  background:
    var(--nc-surface-2);

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

  border-radius:
    8px;
}


.nc-timeline-item__header {
  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    10px;
}


.nc-timeline-item__header strong {
  color:
    var(--nc-text-strong);

  font-size:
    10px;

  font-weight:
    820;
}


.nc-timeline-item__header > span {
  color:
    var(--nc-muted);

  font-size:
    9px;

  white-space:
    nowrap;
}


.nc-timeline-item__content p {
  margin:
    5px
    0
    0;

  color:
    var(--nc-text);

  font-size:
    10px;

  line-height:
    1.45;
}


.nc-timeline-item__meta {
  display:
    flex;

  align-items:
    center;

  flex-wrap:
    wrap;

  gap:
    8px;

  margin-top:
    7px;

  color:
    var(--nc-muted);

  font-size:
    9px;
}


.nc-timeline-item__meta span {
  display:
    inline-flex;

  align-items:
    center;

  gap:
    4px;
}


.nc-timeline-item__meta svg {
  width:
    12px;

  height:
    12px;
}


/* =========================================================
   DETAIL LOADING
   ========================================================= */

.nc-detail-loading {
  min-height:
    280px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  flex-direction:
    column;

  gap:
    9px;

  color:
    var(--nc-muted);

  font-size:
    11px;
}


.nc-detail-loading svg {
  width:
    20px;

  height:
    20px;
}


.nc-skeleton--detail-icon {
  width:
    40px;

  height:
    40px;

  border-radius:
    10px;
}


.nc-skeleton--detail-title {
  width:
    180px;

  height:
    14px;
}


.nc-skeleton--detail-subtitle {
  width:
    130px;

  height:
    8px;

  margin-top:
    5px;
}


.nc-skeleton--tab {
  width:
    90px;

  height:
    31px;

  flex:
    0
    0
    90px;
}


/* =========================================================
   MODAL OVERLAY
   TAPA TODO, INCLUSO TOPBAR
   ========================================================= */

#pageNotasCredito
.nc-modal-overlay {
  position:
    fixed
    !important;

  top:
    0
    !important;

  right:
    0
    !important;

  bottom:
    0
    !important;

  left:
    0
    !important;

  width:
    100vw
    !important;

  height:
    100dvh
    !important;

  max-width:
    none
    !important;

  max-height:
    none
    !important;

  z-index:
    999999
    !important;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  padding:
    18px;

  isolation:
    isolate;

  overflow:
    hidden;
}


#pageNotasCredito
.nc-modal-overlay[hidden] {
  display:
    none
    !important;
}


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

#pageNotasCredito
.nc-modal-backdrop {
  position:
    fixed
    !important;

  inset:
    0
    !important;

  width:
    100vw
    !important;

  height:
    100dvh
    !important;

  z-index:
    1
    !important;

  background:
    rgba(
      10,
      12,
      16,
      .62
    )
    !important;

  backdrop-filter:
    blur(
      3px
    );

  -webkit-backdrop-filter:
    blur(
      3px
    );
}


html[data-theme="dark"]
#pageNotasCredito
.nc-modal-backdrop,
body[data-theme="dark"]
#pageNotasCredito
.nc-modal-backdrop,
[data-theme="dark"]
#pageNotasCredito
.nc-modal-backdrop,
body.dark
#pageNotasCredito
.nc-modal-backdrop,
body.dark-mode
#pageNotasCredito
.nc-modal-backdrop {
  background:
    rgba(
      0,
      0,
      0,
      .78
    )
    !important;
}


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

#pageNotasCredito
.nc-modal {
  position:
    relative
    !important;

  z-index:
    2
    !important;

  width:
    min(
      760px,
      calc(
        100vw -
        36px
      )
    );

  max-width:
    none;

  max-height:
    calc(
      100dvh -
      36px
    );

  display:
    flex;

  flex-direction:
    column;

  color:
    var(--nc-text);

  background:
    var(--nc-surface);

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

  border-radius:
    14px;

  box-shadow:
    var(--nc-shadow-lg);

  overflow:
    hidden;

  animation:
    nc-modal-in
    .18s
    ease;
}


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

.nc-modal__header {
  min-height:
    66px;

  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    14px;

  flex:
    0
    0
    auto;

  padding:
    13px
    14px;

  background:
    var(--nc-surface);

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


.nc-modal__header h2 {
  margin:
    0;

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

  font-size:
    15px;

  font-weight:
    850;

  line-height:
    1.25;

  letter-spacing:
    -.015em;
}


.nc-modal__header p {
  margin:
    4px
    0
    0;

  color:
    var(--nc-muted);

  font-size:
    10px;

  line-height:
    1.4;
}


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

.nc-modal__body {
  flex:
    1
    1
    auto;

  min-height:
    0;

  overflow-y:
    auto;

  overflow-x:
    hidden;

  padding:
    13px
    14px
    16px;

  background:
    var(--nc-surface);
}


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

.nc-modal__footer {
  display:
    flex;

  align-items:
    center;

  justify-content:
    flex-end;

  gap:
    8px;

  margin-top:
    16px;

  padding-top:
    12px;

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


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

.nc-form {
  width:
    100%;

  min-width:
    0;
}


.nc-form-grid {
  display:
    grid;

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

  gap:
    12px;
}


/* =========================================================
   FIELD
   ========================================================= */

.nc-field {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    5px;
}


.nc-field--full {
  grid-column:
    1 /
    -1;
}


.nc-field > span {
  color:
    var(--nc-text-strong);

  font-size:
    9.5px;

  font-weight:
    780;

  line-height:
    1.3;
}


.nc-field > small {
  color:
    var(--nc-muted);

  font-size:
    9px;

  line-height:
    1.35;
}


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

  min-width:
    0;

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

  background:
    var(--nc-surface);

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

  border-radius:
    8px;

  outline:
    none;

  font-size:
    11px;

  font-weight:
    560;

  transition:
    border-color
    var(--nc-transition),
    box-shadow
    var(--nc-transition),
    background
    var(--nc-transition);
}


.nc-field input,
.nc-field select {
  height:
    38px;

  padding:
    0
    10px;
}


.nc-field textarea {
  min-height:
    78px;

  padding:
    9px
    10px;

  line-height:
    1.45;

  resize:
    vertical;
}


.nc-field input::placeholder,
.nc-field textarea::placeholder {
  color:
    var(--nc-muted-2);
}


.nc-field input:focus,
.nc-field select:focus,
.nc-field textarea:focus {
  border-color:
    var(--nc-text-strong);

  box-shadow:
    0
    0
    0
    2px
    color-mix(
      in srgb,
      var(--nc-text-strong)
      9%,
      transparent
    );
}


/* =========================================================
   INPUT ACTION
   ========================================================= */

.nc-input-action {
  display:
    grid;

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

  gap:
    7px;

  align-items:
    center;
}


/* =========================================================
   READONLY VALUE
   ========================================================= */

.nc-readonly-value {
  min-height:
    38px;

  display:
    flex;

  align-items:
    center;

  padding:
    0
    10px;

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

  background:
    var(--nc-surface-2);

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

  border-radius:
    8px;

  font-size:
    11px;

  font-weight:
    760;
}


/* =========================================================
   CHECKBOX FIELD
   ========================================================= */

.nc-checkbox-field {
  display:
    flex;

  align-items:
    flex-start;

  gap:
    9px;

  padding:
    10px;

  background:
    var(--nc-surface-2);

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

  border-radius:
    9px;

  cursor:
    pointer;
}


.nc-checkbox-field input {
  width:
    16px;

  height:
    16px;

  flex:
    0
    0
    16px;

  margin:
    1px
    0
    0;

  accent-color:
    var(--nc-text-strong);
}


.nc-checkbox-field > span {
  display:
    flex;

  flex-direction:
    column;

  gap:
    2px;
}


.nc-checkbox-field strong {
  color:
    var(--nc-text-strong);

  font-size:
    10px;

  font-weight:
    800;
}


.nc-checkbox-field small {
  color:
    var(--nc-muted);

  font-size:
    9px;

  line-height:
    1.35;
}


/* =========================================================
   CREATE MODE
   ========================================================= */

.nc-create-mode {
  display:
    grid;

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

  gap:
    8px;

  margin-bottom:
    14px;
}


.nc-create-mode__option {
  min-width:
    0;

  min-height:
    76px;

  display:
    flex;

  align-items:
    center;

  gap:
    10px;

  padding:
    10px;

  color:
    var(--nc-text);

  background:
    var(--nc-surface);

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

  border-radius:
    10px;

  text-align:
    left;

  cursor:
    pointer;

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


.nc-create-mode__option:hover {
  background:
    var(--nc-surface-2);

  border-color:
    var(--nc-border-strong);
}


.nc-create-mode__option.is-active {
  border-color:
    var(--nc-text-strong);

  box-shadow:
    inset
    0
    0
    0
    1px
    var(--nc-text-strong);
}


.nc-create-mode__icon {
  width:
    36px;

  height:
    36px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  flex:
    0
    0
    36px;

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

  background:
    var(--nc-surface-2);

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

  border-radius:
    8px;
}


.nc-create-mode__icon svg {
  width:
    17px;

  height:
    17px;
}


.nc-create-mode__copy {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    3px;
}


.nc-create-mode__copy strong {
  color:
    var(--nc-text-strong);

  font-size:
    10.5px;

  font-weight:
    810;
}


.nc-create-mode__copy small {
  color:
    var(--nc-muted);

  font-size:
    9px;

  line-height:
    1.35;
}


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

.nc-create-section {
  width:
    100%;
}


.nc-create-section[hidden] {
  display:
    none;
}


/* =========================================================
   ORIGIN PREVIEW
   ========================================================= */

.nc-origin-preview {
  grid-column:
    1 /
    -1;

  min-width:
    0;
}


.nc-origin-preview[hidden] {
  display:
    none;
}


.nc-origin-preview__card {
  background:
    var(--nc-surface-2);

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

  border-radius:
    10px;

  overflow:
    hidden;
}


.nc-origin-preview__header {
  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    10px;

  padding:
    10px
    11px;

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


.nc-origin-preview__header > div {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    2px;
}


.nc-origin-preview__header span {
  color:
    var(--nc-muted);

  font-size:
    9px;

  font-weight:
    700;
}


.nc-origin-preview__header strong {
  max-width:
    100%;

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

  font-size:
    11px;

  font-weight:
    820;

  overflow:
    hidden;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


.nc-origin-preview__grid {
  display:
    grid;

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


.nc-origin-preview__grid > div {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    4px;

  padding:
    10px
    11px;

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

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


.nc-origin-preview__grid > div:nth-child(3n) {
  border-right:
    0;
}


.nc-origin-preview__grid span {
  color:
    var(--nc-muted);

  font-size:
    8.5px;

  font-weight:
    800;

  text-transform:
    uppercase;
}


.nc-origin-preview__grid strong {
  color:
    var(--nc-text-strong);

  font-size:
    10.5px;

  font-weight:
    760;

  overflow:
    hidden;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


/* =========================================================
   INLINE LOADING / ERROR
   ========================================================= */

.nc-inline-loading,
.nc-inline-error {
  min-height:
    54px;

  display:
    flex;

  align-items:
    center;

  gap:
    8px;

  padding:
    10px;

  background:
    var(--nc-surface-2);

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

  border-radius:
    9px;

  color:
    var(--nc-muted);

  font-size:
    10px;
}


.nc-inline-loading svg,
.nc-inline-error svg {
  width:
    16px;

  height:
    16px;
}


.nc-inline-error {
  color:
    var(--nc-danger);

  background:
    var(--nc-danger-bg);

  border-color:
    color-mix(
      in srgb,
      var(--nc-danger)
      30%,
      var(--nc-border)
    );
}


/* =========================================================
   CONFIRM
   ========================================================= */

.nc-confirm {
  display:
    flex;

  align-items:
    flex-start;

  gap:
    11px;

  padding:
    11px;

  margin-bottom:
    13px;

  background:
    var(--nc-surface-2);

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

  border-radius:
    10px;
}


.nc-confirm__icon {
  width:
    38px;

  height:
    38px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  flex:
    0
    0
    38px;

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

  background:
    var(--nc-surface);

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

  border-radius:
    9px;
}


.nc-confirm__icon.is-danger {
  color:
    var(--nc-danger);

  background:
    var(--nc-danger-bg);

  border-color:
    color-mix(
      in srgb,
      var(--nc-danger)
      26%,
      var(--nc-border)
    );
}


.nc-confirm__icon svg {
  width:
    18px;

  height:
    18px;
}


.nc-confirm__copy {
  min-width:
    0;
}


.nc-confirm__copy strong {
  color:
    var(--nc-text-strong);

  font-size:
    11px;

  font-weight:
    820;
}


.nc-confirm__copy p {
  margin:
    4px
    0
    0;

  color:
    var(--nc-muted);

  font-size:
    10px;

  line-height:
    1.45;
}


/* =========================================================
   INFO GRID
   ========================================================= */

.nc-info-grid {
  display:
    grid;

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

  gap:
    8px;

  margin-bottom:
    13px;
}


.nc-info-box {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    4px;

  padding:
    10px;

  background:
    var(--nc-surface-2);

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

  border-radius:
    8px;
}


.nc-info-box span {
  color:
    var(--nc-muted);

  font-size:
    8.5px;

  font-weight:
    800;

  text-transform:
    uppercase;
}


.nc-info-box strong {
  max-width:
    100%;

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

  font-size:
    10.5px;

  font-weight:
    760;

  overflow:
    hidden;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


/* =========================================================
   RESPONSIVE DETAIL / MODAL
   ========================================================= */

@media (
  max-width:
    1280px
) {
  #pageNotasCredito
  .nc-detail {
    width:
      min(
        1180px,
        calc(
          100vw -
          44px
        )
      );
  }


  .nc-detail__summary {
    grid-template-columns:
      repeat(
        3,
        minmax(
          0,
          1fr
        )
      );
  }
}


@media (
  max-width:
    980px
) {
  #pageNotasCredito
  .nc-detail {
    width:
      calc(
        100vw -
        20px
      );
  }


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


  .nc-detail-card--wide {
    grid-column:
      auto;
  }


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


  .nc-origin-preview__grid,
  .nc-info-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );
  }


  .nc-origin-preview__grid > div:nth-child(3n) {
    border-right:
      1px
      solid
      var(--nc-border);
  }


  .nc-origin-preview__grid > div:nth-child(2n) {
    border-right:
      0;
  }
}


@media (
  max-width:
    760px
) {
  #pageNotasCredito
  .nc-detail-overlay {
    top:
      58px;

    height:
      calc(
        100dvh -
        58px
      );
  }


  #pageNotasCredito
  .nc-detail {
    width:
      100vw;

    border-left:
      0;
  }


  .nc-detail__header {
    min-height:
      68px;

    padding:
      10px
      11px;
  }


  .nc-detail-title__icon {
    width:
      36px;

    height:
      36px;

    flex-basis:
      36px;
  }


  .nc-detail-title__topline h2 {
    font-size:
      14px;
  }


  .nc-detail__summary {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );

    padding:
      8px
      10px;
  }


  .nc-detail-actions {
    padding:
      8px
      10px;

    overflow-x:
      auto;

    flex-wrap:
      nowrap;

    scrollbar-width:
      none;
  }


  .nc-detail-actions::-webkit-scrollbar {
    display:
      none;
  }


  .nc-detail-actions
  .nc-btn {
    flex:
      0
      0
      auto;
  }


  .nc-detail-tabs {
    padding:
      6px
      10px;
  }


  .nc-detail__content {
    padding:
      10px
      10px
      18px;
  }


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


  .nc-detail-field {
    grid-column:
      auto;

    border-right:
      0;
  }


  .nc-modal-overlay {
    align-items:
      flex-end
      !important;

    padding:
      0
      !important;
  }


  #pageNotasCredito
  .nc-modal {
    width:
      100%;

    max-width:
      none;

    max-height:
      94dvh;

    border-right:
      0;

    border-bottom:
      0;

    border-left:
      0;

    border-radius:
      16px
      16px
      0
      0;
  }


  .nc-modal__header {
    padding:
      11px
      12px;
  }


  .nc-modal__body {
    padding:
      11px
      12px
      16px;
  }


  .nc-form-grid {
    grid-template-columns:
      1fr;
  }


  .nc-field--full {
    grid-column:
      auto;
  }


  .nc-create-mode {
    grid-template-columns:
      1fr;
  }


  .nc-origin-preview__grid,
  .nc-info-grid {
    grid-template-columns:
      1fr;
  }


  .nc-origin-preview__grid > div,
  .nc-origin-preview__grid > div:nth-child(2n),
  .nc-origin-preview__grid > div:nth-child(3n) {
    border-right:
      0;
  }
}


@media (
  max-width:
    520px
) {
  .nc-detail__summary {
    grid-template-columns:
      1fr;
  }


  .nc-modal__footer {
    display:
      grid;

    grid-template-columns:
      1fr
      1fr;

    width:
      100%;
  }


  .nc-modal__footer
  .nc-btn {
    width:
      100%;
  }


  .nc-input-action {
    grid-template-columns:
      1fr;
  }
}


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

@keyframes nc-detail-in {

  from {
    opacity:
      0;

    transform:
      translateX(
        18px
      );
  }

  to {
    opacity:
      1;

    transform:
      translateX(
        0
      );
  }

}


@keyframes nc-modal-in {

  from {
    opacity:
      0;

    transform:
      translateY(
        8px
      )
      scale(
        .99
      );
  }

  to {
    opacity:
      1;

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

}


/* =========================================================
   FIN PARTE 2 DE 3
   ========================================================= *//* =========================================================
   CONTINÚA:
   frontend/src/pages/facturacion-cobranzas/notas-credito/
   notas-credito.css

   WIRTZ HUB
   FACTURACIÓN Y COBRANZAS
   NOTAS DE CRÉDITO

   PARTE 3 DE 3
   ========================================================= */


/* =========================================================
   TOAST CONTAINER
   ========================================================= */

.nc-toast-container {
  position:
    fixed;

  top:
    76px;

  right:
    18px;

  z-index:
    1000000;

  display:
    flex;

  flex-direction:
    column;

  align-items:
    flex-end;

  gap:
    8px;

  width:
    min(
      380px,
      calc(
        100vw -
        36px
      )
    );

  pointer-events:
    none;
}


/* =========================================================
   TOAST
   ========================================================= */

.nc-toast {
  width:
    100%;

  display:
    grid;

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

  align-items:
    center;

  gap:
    9px;

  padding:
    10px
    10px
    10px
    11px;

  color:
    var(--nc-text);

  background:
    var(--nc-surface);

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

  border-radius:
    10px;

  box-shadow:
    0
    12px
    32px
    rgba(
      15,
      23,
      42,
      .12
    );

  pointer-events:
    auto;

  animation:
    nc-toast-in
    .18s
    ease;
}


html[data-theme="dark"]
.nc-toast,
body[data-theme="dark"]
.nc-toast,
[data-theme="dark"]
.nc-toast,
body.dark
.nc-toast,
body.dark-mode
.nc-toast {
  box-shadow:
    0
    18px
    42px
    rgba(
      0,
      0,
      0,
      .55
    );
}


.nc-toast.is-leaving {
  animation:
    nc-toast-out
    .18s
    ease
    forwards;
}


.nc-toast__icon {
  width:
    30px;

  height:
    30px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  flex:
    0
    0
    30px;

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

  background:
    var(--nc-surface-2);

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

  border-radius:
    8px;
}


.nc-toast__icon svg {
  width:
    15px;

  height:
    15px;
}


.nc-toast__message {
  min-width:
    0;

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

  font-size:
    10.5px;

  font-weight:
    650;

  line-height:
    1.4;

  overflow-wrap:
    anywhere;
}


.nc-toast__close {
  width:
    28px;

  height:
    28px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  padding:
    0;

  color:
    var(--nc-muted);

  background:
    transparent;

  border:
    0;

  border-radius:
    7px;

  cursor:
    pointer;
}


.nc-toast__close:hover {
  color:
    var(--nc-text-strong);

  background:
    var(--nc-surface-2);
}


.nc-toast__close svg {
  width:
    14px;

  height:
    14px;
}


.nc-toast--success {
  border-color:
    color-mix(
      in srgb,
      var(--nc-success)
      34%,
      var(--nc-border)
    );
}


.nc-toast--success
.nc-toast__icon {
  color:
    var(--nc-success);

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

  border-color:
    color-mix(
      in srgb,
      var(--nc-success)
      28%,
      var(--nc-border)
    );
}


.nc-toast--error {
  border-color:
    color-mix(
      in srgb,
      var(--nc-danger)
      38%,
      var(--nc-border)
    );
}


.nc-toast--error
.nc-toast__icon {
  color:
    var(--nc-danger);

  background:
    var(--nc-danger-bg);

  border-color:
    color-mix(
      in srgb,
      var(--nc-danger)
      28%,
      var(--nc-border)
    );
}


.nc-toast--warning {
  border-color:
    color-mix(
      in srgb,
      var(--nc-warning)
      36%,
      var(--nc-border)
    );
}


.nc-toast--warning
.nc-toast__icon {
  color:
    var(--nc-warning);

  background:
    var(--nc-warning-bg);

  border-color:
    color-mix(
      in srgb,
      var(--nc-warning)
      28%,
      var(--nc-border)
    );
}


.nc-toast--info {
  border-color:
    color-mix(
      in srgb,
      var(--nc-info)
      32%,
      var(--nc-border)
    );
}


.nc-toast--info
.nc-toast__icon {
  color:
    var(--nc-info);

  background:
    var(--nc-info-bg);

  border-color:
    color-mix(
      in srgb,
      var(--nc-info)
      28%,
      var(--nc-border)
    );
}


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

.nc-page * {
  scrollbar-width:
    thin;

  scrollbar-color:
    var(--nc-border-strong)
    transparent;
}


.nc-page *::-webkit-scrollbar {
  width:
    8px;

  height:
    8px;
}


.nc-page *::-webkit-scrollbar-track {
  background:
    transparent;
}


.nc-page *::-webkit-scrollbar-thumb {
  background:
    var(--nc-border-strong);

  border:
    2px
    solid
    transparent;

  border-radius:
    999px;

  background-clip:
    content-box;
}


.nc-page *::-webkit-scrollbar-thumb:hover {
  background:
    color-mix(
      in srgb,
      var(--nc-border-strong)
      82%,
      var(--nc-text-strong)
    );

  border:
    2px
    solid
    transparent;

  background-clip:
    content-box;
}


/* =========================================================
   TEXT SELECTION
   ========================================================= */

.nc-page ::selection {
  color:
    #ffffff;

  background:
    #18181b;
}


html[data-theme="dark"]
.nc-page ::selection,
body[data-theme="dark"]
.nc-page ::selection,
[data-theme="dark"]
.nc-page ::selection,
body.dark
.nc-page ::selection,
body.dark-mode
.nc-page ::selection {
  color:
    #000000;

  background:
    #ffffff;
}


/* =========================================================
   FORM CONTROLS · GLOBAL LOCAL
   ========================================================= */

.nc-page input,
.nc-page select,
.nc-page textarea {
  caret-color:
    var(--nc-text-strong);
}


.nc-page input:disabled,
.nc-page select:disabled,
.nc-page textarea:disabled {
  opacity:
    .6;

  cursor:
    not-allowed;

  background:
    var(--nc-surface-2);
}


/* =========================================================
   AUTOFILL
   ========================================================= */

.nc-page input:-webkit-autofill,
.nc-page input:-webkit-autofill:hover,
.nc-page input:-webkit-autofill:focus,
.nc-page textarea:-webkit-autofill,
.nc-page textarea:-webkit-autofill:hover,
.nc-page textarea:-webkit-autofill:focus,
.nc-page select:-webkit-autofill,
.nc-page select:-webkit-autofill:hover,
.nc-page select:-webkit-autofill:focus {
  -webkit-text-fill-color:
    var(--nc-text-strong);

  -webkit-box-shadow:
    0
    0
    0
    1000px
    var(--nc-surface)
    inset;

  transition:
    background-color
    9999s
    ease-out
    0s;
}


/* =========================================================
   DATE INPUT
   ========================================================= */

.nc-page input[type="date"] {
  color-scheme:
    light;
}


html[data-theme="dark"]
.nc-page input[type="date"],
body[data-theme="dark"]
.nc-page input[type="date"],
[data-theme="dark"]
.nc-page input[type="date"],
body.dark
.nc-page input[type="date"],
body.dark-mode
.nc-page input[type="date"] {
  color-scheme:
    dark;
}


/* =========================================================
   NUMBER INPUT
   ========================================================= */

.nc-page input[type="number"] {
  appearance:
    textfield;

  -moz-appearance:
    textfield;
}


.nc-page input[type="number"]::-webkit-outer-spin-button,
.nc-page input[type="number"]::-webkit-inner-spin-button {
  margin:
    0;
}


/* =========================================================
   SELECT
   ========================================================= */

.nc-page select {
  color-scheme:
    light;

  background-color:
    var(--nc-surface);
}


html[data-theme="dark"]
.nc-page select,
body[data-theme="dark"]
.nc-page select,
[data-theme="dark"]
.nc-page select,
body.dark
.nc-page select,
body.dark-mode
.nc-page select {
  color-scheme:
    dark;
}


/* =========================================================
   OPTIONS
   ========================================================= */

.nc-page option {
  color:
    var(--nc-text-strong);

  background:
    var(--nc-surface);
}


/* =========================================================
   FOCUS VISIBLE
   ========================================================= */

.nc-page button:focus-visible,
.nc-page input:focus-visible,
.nc-page select:focus-visible,
.nc-page textarea:focus-visible {
  outline:
    2px
    solid
    color-mix(
      in srgb,
      var(--nc-text-strong)
      40%,
      transparent
    );

  outline-offset:
    2px;
}


/* =========================================================
   LIGHT MODE · TEXTO NEGRO FIRME
   ========================================================= */

html:not([data-theme="dark"])
.nc-page,
body:not([data-theme="dark"])
.nc-page {
  color:
    #16181c;
}


html:not([data-theme="dark"])
.nc-page
.nc-header__title,
html:not([data-theme="dark"])
.nc-page
.nc-panel__title,
html:not([data-theme="dark"])
.nc-page
.nc-detail-card__header h3,
html:not([data-theme="dark"])
.nc-page
.nc-modal__header h2,
html:not([data-theme="dark"])
.nc-page
.nc-detail-title__topline h2,
html:not([data-theme="dark"])
.nc-page
.nc-detail-field > strong,
html:not([data-theme="dark"])
.nc-page
.nc-total-row strong,
html:not([data-theme="dark"])
.nc-page
.nc-table td strong,
html:not([data-theme="dark"])
.nc-page
.nc-detail-table td strong,
html:not([data-theme="dark"])
.nc-page
.nc-field > span,
html:not([data-theme="dark"])
.nc-page
.nc-number-cell__number,
html:not([data-theme="dark"])
.nc-page
.nc-client-cell__name {
  color:
    #090a0c;
}


/* =========================================================
   LIGHT MODE · SECUNDARIOS NO LAVADOS
   ========================================================= */

html:not([data-theme="dark"])
.nc-page
.nc-header__description,
html:not([data-theme="dark"])
.nc-page
.nc-panel__subtitle,
html:not([data-theme="dark"])
.nc-page
.nc-detail-card__header p,
html:not([data-theme="dark"])
.nc-page
.nc-modal__header p,
html:not([data-theme="dark"])
.nc-page
.nc-origin-cell small,
html:not([data-theme="dark"])
.nc-page
.nc-value-stack small {
  color:
    #555c66;
}


/* =========================================================
   DARK MODE · CONTROLES
   ========================================================= */

html[data-theme="dark"]
.nc-page input,
html[data-theme="dark"]
.nc-page select,
html[data-theme="dark"]
.nc-page textarea,
body[data-theme="dark"]
.nc-page input,
body[data-theme="dark"]
.nc-page select,
body[data-theme="dark"]
.nc-page textarea,
[data-theme="dark"]
.nc-page input,
[data-theme="dark"]
.nc-page select,
[data-theme="dark"]
.nc-page textarea,
body.dark
.nc-page input,
body.dark
.nc-page select,
body.dark
.nc-page textarea,
body.dark-mode
.nc-page input,
body.dark-mode
.nc-page select,
body.dark-mode
.nc-page textarea {
  color:
    #ffffff;

  background:
    #050505;

  border-color:
    #2b2b2b;
}


/* =========================================================
   DARK MODE · PLACEHOLDER
   ========================================================= */

html[data-theme="dark"]
.nc-page input::placeholder,
html[data-theme="dark"]
.nc-page textarea::placeholder,
body[data-theme="dark"]
.nc-page input::placeholder,
body[data-theme="dark"]
.nc-page textarea::placeholder,
[data-theme="dark"]
.nc-page input::placeholder,
[data-theme="dark"]
.nc-page textarea::placeholder,
body.dark
.nc-page input::placeholder,
body.dark
.nc-page textarea::placeholder,
body.dark-mode
.nc-page input::placeholder,
body.dark-mode
.nc-page textarea::placeholder {
  color:
    #777777;
}


/* =========================================================
   DARK MODE · SELECT OPTION
   ========================================================= */

html[data-theme="dark"]
.nc-page option,
body[data-theme="dark"]
.nc-page option,
[data-theme="dark"]
.nc-page option,
body.dark
.nc-page option,
body.dark-mode
.nc-page option {
  color:
    #ffffff;

  background:
    #070707;
}


/* =========================================================
   DARK MODE · PRIMARY BUTTON FIX
   EVITA LETRA BLANCA SOBRE BOTÓN BLANCO
   ========================================================= */

html[data-theme="dark"]
#pageNotasCredito
.nc-btn--primary,
body[data-theme="dark"]
#pageNotasCredito
.nc-btn--primary,
[data-theme="dark"]
#pageNotasCredito
.nc-btn--primary,
body.dark
#pageNotasCredito
.nc-btn--primary,
body.dark-mode
#pageNotasCredito
.nc-btn--primary {
  color:
    #000000
    !important;

  background:
    #ffffff
    !important;

  border-color:
    #ffffff
    !important;
}


html[data-theme="dark"]
#pageNotasCredito
.nc-btn--primary svg,
body[data-theme="dark"]
#pageNotasCredito
.nc-btn--primary svg,
[data-theme="dark"]
#pageNotasCredito
.nc-btn--primary svg,
body.dark
#pageNotasCredito
.nc-btn--primary svg,
body.dark-mode
#pageNotasCredito
.nc-btn--primary svg {
  color:
    #000000
    !important;

  stroke:
    currentColor
    !important;
}


/* =========================================================
   DARK MODE · SECONDARY BUTTON
   ========================================================= */

html[data-theme="dark"]
#pageNotasCredito
.nc-btn--secondary,
body[data-theme="dark"]
#pageNotasCredito
.nc-btn--secondary,
[data-theme="dark"]
#pageNotasCredito
.nc-btn--secondary,
body.dark
#pageNotasCredito
.nc-btn--secondary,
body.dark-mode
#pageNotasCredito
.nc-btn--secondary {
  color:
    #f5f5f5;

  background:
    #090909;

  border-color:
    #303030;
}


/* =========================================================
   DARK MODE · TABLE
   ========================================================= */

html[data-theme="dark"]
#pageNotasCredito
.nc-table thead,
html[data-theme="dark"]
#pageNotasCredito
.nc-detail-table thead,
body[data-theme="dark"]
#pageNotasCredito
.nc-table thead,
body[data-theme="dark"]
#pageNotasCredito
.nc-detail-table thead,
[data-theme="dark"]
#pageNotasCredito
.nc-table thead,
[data-theme="dark"]
#pageNotasCredito
.nc-detail-table thead,
body.dark
#pageNotasCredito
.nc-table thead,
body.dark
#pageNotasCredito
.nc-detail-table thead,
body.dark-mode
#pageNotasCredito
.nc-table thead,
body.dark-mode
#pageNotasCredito
.nc-detail-table thead {
  background:
    #090909;
}


/* =========================================================
   DARK MODE · AVAILABLE TOTAL
   ========================================================= */

html[data-theme="dark"]
.nc-total-row--available,
body[data-theme="dark"]
.nc-total-row--available,
[data-theme="dark"]
.nc-total-row--available,
body.dark
.nc-total-row--available,
body.dark-mode
.nc-total-row--available {
  background:
    #08150c;
}


/* =========================================================
   ROW HOVER
   ========================================================= */

.nc-table-row:hover td {
  color:
    var(--nc-text-strong);
}


/* =========================================================
   DISABLED BUTTON NORMALIZATION
   ========================================================= */

.nc-btn:disabled,
.nc-icon-btn:disabled,
.nc-create-mode__option:disabled {
  pointer-events:
    none;
}


/* =========================================================
   HIDDEN
   ========================================================= */

.nc-page [hidden] {
  display:
    none
    !important;
}


/* =========================================================
   LOADING STATE POINTER
   ========================================================= */

.nc-page
.is-loading {
  cursor:
    progress;
}


/* =========================================================
   TABLE CELL SMALL
   ========================================================= */

.nc-detail-table td small {
  display:
    block;

  margin-top:
    2px;

  color:
    var(--nc-muted);

  font-size:
    8.5px;
}


/* =========================================================
   TABLE LONG CONTENT
   ========================================================= */

.nc-table td,
.nc-detail-table td {
  overflow-wrap:
    anywhere;
}


.nc-table td:not(.nc-col-actions),
.nc-detail-table td:not(.nc-col-actions) {
  max-width:
    300px;
}


/* =========================================================
   CLICK SAFETY
   ========================================================= */

.nc-table-row
button,
.nc-table-row
a,
.nc-table-row
input,
.nc-table-row
select {
  position:
    relative;

  z-index:
    2;
}


/* =========================================================
   MODAL TABLE HEIGHT
   ========================================================= */

.nc-modal
.nc-detail-table-shell {
  max-height:
    390px;

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

  border-radius:
    9px;

  overflow:
    auto;
}


.nc-modal
.nc-detail-table-shell
.nc-detail-table {
  min-width:
    700px;
}


/* =========================================================
   MODAL TABLE STICKY HEADER
   ========================================================= */

.nc-modal
.nc-detail-table thead th {
  position:
    sticky;

  top:
    0;

  z-index:
    2;

  background:
    var(--nc-surface-2);
}


/* =========================================================
   MAIN TABLE STICKY HEADER
   ========================================================= */

.nc-table-shell {
  max-height:
    none;
}


.nc-table thead th {
  position:
    sticky;

  top:
    0;

  z-index:
    2;

  background:
    var(--nc-surface-2);
}


/* =========================================================
   TOPBAR / SIDEBAR / RIGHTBAR SAFETY
   ========================================================= */

body:has(#pageNotasCredito)
.app-shell {
  min-width:
    0;

  overflow-x:
    hidden;
}


body:has(#pageNotasCredito)
.app-main {
  min-width:
    0;

  max-width:
    100%;
}


body:has(#pageNotasCredito)
.app-content {
  min-width:
    0;

  max-width:
    100%;

  overflow-x:
    hidden;
}


/* =========================================================
   DETAIL SOBRE CONTENIDO PERO BAJO MODAL
   ========================================================= */

body:has(#pageNotasCredito)
.sidebar,
body:has(#pageNotasCredito)
.app-sidebar {
  z-index:
    100;
}


body:has(#pageNotasCredito)
.topbar,
body:has(#pageNotasCredito)
.app-topbar {
  z-index:
    9000;
}


/* =========================================================
   MODAL SIEMPRE SOBRE TOPBAR
   ========================================================= */

body:has(#pageNotasCredito)
#ncModal {
  z-index:
    999999
    !important;
}


/* =========================================================
   MODAL BODY SCROLL LOCK VISUAL
   ========================================================= */

body:has(#pageNotasCredito .nc-modal-overlay:not([hidden])) {
  overflow:
    hidden;
}


/* =========================================================
   DETAIL BODY SCROLL
   ========================================================= */

body:has(#pageNotasCredito .nc-detail-overlay:not([hidden])) {
  overflow-x:
    hidden;
}


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

body:has(#pageNotasCredito)
footer,
body:has(#pageNotasCredito)
.app-footer {
  flex-shrink:
    0;
}


/* =========================================================
   RIGHTBAR
   ========================================================= */

body:has(#pageNotasCredito)
.rightbar,
body:has(#pageNotasCredito)
.app-rightbar {
  flex-shrink:
    0;
}


/* =========================================================
   HIGH DENSITY DESKTOP
   ========================================================= */

@media (
  min-width:
    1600px
) {
  .nc-page__inner {
    padding:
      18px
      20px;
  }


  .nc-table th {
    padding-left:
      12px;

    padding-right:
      12px;
  }


  .nc-table td {
    padding:
      12px;
  }


  .nc-detail__content {
    padding:
      14px
      16px
      24px;
  }
}


/* =========================================================
   DESKTOP MEDIUM
   ========================================================= */

@media (
  max-width:
    1366px
) {
  .nc-page__inner {
    padding:
      14px;
  }


  .nc-header__description {
    max-width:
      620px;
  }


  .nc-metric-card {
    padding:
      12px;
  }


  .nc-table {
    min-width:
      1160px;
  }
}


/* =========================================================
   LAPTOP
   ========================================================= */

@media (
  max-width:
    1100px
) {
  .nc-header__actions {
    width:
      100%;

    justify-content:
      flex-start;
  }


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


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


  .nc-table {
    min-width:
      1120px;
  }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (
  max-width:
    820px
) {
  .nc-page__inner {
    padding:
      10px;
  }


  .nc-header {
    margin-bottom:
      12px;
  }


  .nc-header__title-row {
    gap:
      12px;
  }


  .nc-toolbar {
    padding:
      10px;
  }


  .nc-panel__header {
    padding:
      10px;
  }


  .nc-table-shell {
    width:
      100%;
  }


  .nc-detail__content {
    padding:
      9px;
  }


  .nc-detail-card__header {
    padding:
      10px;
  }


  .nc-modal__body {
    overscroll-behavior:
      contain;
  }
}


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

@media (
  max-width:
    640px
) {
  .nc-header__title {
    font-size:
      24px;
  }


  .nc-header__actions {
    display:
      grid;

    grid-template-columns:
      1fr
      1fr;

    gap:
      7px;
  }


  .nc-currency-toggle {
    grid-column:
      1 /
      -1;

    width:
      100%;
  }


  .nc-currency-toggle__btn {
    flex:
      1
      1
      50%;
  }


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


  .nc-toolbar__filters {
    grid-template-columns:
      1fr;
  }


  .nc-advanced-filters {
    grid-template-columns:
      1fr;
  }


  .nc-advanced-filters__actions {
    grid-column:
      auto;
  }


  .nc-panel {
    border-radius:
      10px;
  }


  .nc-detail-actions {
    gap:
      6px;
  }


  .nc-detail-actions
  .nc-btn {
    min-height:
      35px;

    padding:
      0
      10px;

    font-size:
      10.5px;
  }


  .nc-detail-tab {
    height:
      31px;

    padding:
      0
      9px;

    font-size:
      10px;
  }


  .nc-total-row {
    padding:
      8px
      10px;
  }


  .nc-toast-container {
    top:
      68px;

    right:
      10px;

    width:
      calc(
        100vw -
        20px
      );
  }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (
  max-width:
    420px
) {
  .nc-page__inner {
    padding:
      8px;
  }


  .nc-header__actions {
    grid-template-columns:
      1fr;
  }


  .nc-currency-toggle {
    grid-column:
      auto;
  }


  .nc-detail-title__meta {
    gap:
      5px;

    font-size:
      9px;
  }


  .nc-detail__summary {
    grid-template-columns:
      1fr;
  }


  .nc-modal__footer {
    grid-template-columns:
      1fr;
  }


  .nc-modal__footer
  .nc-btn {
    min-height:
      40px;
  }


  .nc-create-mode__option {
    min-height:
      68px;
  }


  .nc-input-action {
    grid-template-columns:
      1fr;
  }
}


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

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

    animation-duration:
      .001ms
      !important;

    animation-iteration-count:
      1
      !important;

    transition-duration:
      .001ms
      !important;
  }
}


/* =========================================================
   TOAST ANIMATIONS
   ========================================================= */

@keyframes nc-toast-in {

  from {
    opacity:
      0;

    transform:
      translateY(
        -7px
      )
      scale(
        .99
      );
  }

  to {
    opacity:
      1;

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

}


@keyframes nc-toast-out {

  from {
    opacity:
      1;

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

  to {
    opacity:
      0;

    transform:
      translateY(
        -6px
      )
      scale(
        .985
      );
  }

}


/* =========================================================
   FIX FINAL
   NO SCROLL HORIZONTAL DE LA PÁGINA
   LA TABLA SCROLLEA DENTRO DE SU CONTENEDOR
   ========================================================= */

#pageNotasCredito {
  overflow-x:
    hidden
    !important;
}


#pageNotasCredito
.nc-page__inner,
#pageNotasCredito
.nc-workspace,
#pageNotasCredito
.nc-panel,
#pageNotasCredito
.nc-toolbar,
#pageNotasCredito
.nc-detail__content,
#pageNotasCredito
.nc-detail-grid,
#pageNotasCredito
.nc-detail-card {
  min-width:
    0
    !important;

  max-width:
    100%;
}


/* =========================================================
   FIX FINAL · MODALES
   TOPBAR / SIDEBAR / RIGHTBAR NO SE SUPERPONEN
   ========================================================= */

#pageNotasCredito
.nc-modal-overlay {
  z-index:
    2147483000
    !important;
}


#pageNotasCredito
.nc-modal-backdrop {
  z-index:
    1
    !important;
}


#pageNotasCredito
.nc-modal {
  z-index:
    2
    !important;
}


/* =========================================================
   FIX FINAL · TEXTO BOTONES
   ========================================================= */

#pageNotasCredito
.nc-btn,
#pageNotasCredito
.nc-icon-btn,
#pageNotasCredito
.nc-create-mode__option,
#pageNotasCredito
.nc-detail-tab,
#pageNotasCredito
.nc-currency-toggle__btn {
  text-rendering:
    optimizeLegibility;

  -webkit-font-smoothing:
    antialiased;
}


/* =========================================================
   FIX FINAL · BORDES MÁS VISIBLES
   ========================================================= */

#pageNotasCredito
.nc-panel,
#pageNotasCredito
.nc-metric-card,
#pageNotasCredito
.nc-detail-card,
#pageNotasCredito
.nc-modal,
#pageNotasCredito
.nc-origin-preview__card,
#pageNotasCredito
.nc-info-box,
#pageNotasCredito
.nc-confirm,
#pageNotasCredito
.nc-create-mode__option {
  border-color:
    var(--nc-border-strong);
}


/* =========================================================
   FIX FINAL · SECCIONES NO PEGADAS
   ========================================================= */

#pageNotasCredito
.nc-detail-card__header > div:first-child,
#pageNotasCredito
.nc-panel__header > div:first-child,
#pageNotasCredito
.nc-modal__header > div:first-child {
  min-width:
    0;

  padding-left:
    2px;
}


/* =========================================================
   FIX FINAL · TITULOS NO CORTADOS
   ========================================================= */

#pageNotasCredito
.nc-detail-card__header h3,
#pageNotasCredito
.nc-panel__title,
#pageNotasCredito
.nc-modal__header h2 {
  overflow:
    visible;

  text-overflow:
    clip;

  white-space:
    normal;
}


/* =========================================================
   FIX FINAL · ALTURA DINÁMICA
   ========================================================= */

@supports (
  height:
    100dvh
) {
  #pageNotasCredito
  .nc-modal-overlay {
    height:
      100dvh
      !important;
  }


  #pageNotasCredito
  .nc-detail-overlay {
    height:
      calc(
        100dvh -
        58px
      );
  }
}


/* =========================================================
   FIN
   frontend/src/pages/facturacion-cobranzas/notas-credito/
   notas-credito.css
   ========================================================= *//* =========================================================
   WIRTZ HUB · NOTAS DE CRÉDITO
   MEJORAS UI · AUTOCOMPLETE / MODALES / PREVIEWS

   AGREGAR AL FINAL DEL CSS ACTUAL
   ========================================================= */


/* =========================================================
   MODAL · AJUSTES GENERALES
   ========================================================= */

#pageNotasCredito .nc-modal-root {
  position: relative;
  z-index: 10000;
}

#pageNotasCredito .nc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  overflow: hidden;
}

#pageNotasCredito .nc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.58);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

#pageNotasCredito .nc-modal {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100vw - 56px));
  max-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #cfd5df;
  border-radius: 16px;
  box-shadow:
    0 24px 70px rgba(15, 23, 42, 0.18),
    0 4px 14px rgba(15, 23, 42, 0.08);
}

#pageNotasCredito .nc-modal__header {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 20px 18px;
  background: #ffffff;
  border-bottom: 1px solid #d7dce4;
}

#pageNotasCredito .nc-modal__header > div:first-child {
  min-width: 0;
}

#pageNotasCredito .nc-modal__header h2 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}

#pageNotasCredito .nc-modal__header p {
  margin: 6px 0 0;
  max-width: 720px;
  color: #5f6978;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}

#pageNotasCredito .nc-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
  overscroll-behavior: contain;
}

#pageNotasCredito .nc-modal__footer {
  position: sticky;
  bottom: -16px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 22px -16px -16px;
  padding: 14px 16px;
  background: #ffffff;
  border-top: 1px solid #d7dce4;
}


/* =========================================================
   BOTÓN CERRAR
   ========================================================= */

#pageNotasCredito .nc-icon-btn--close {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #1f2937;
  background: #ffffff;
  border: 1px solid #cfd5df;
  border-radius: 10px;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

#pageNotasCredito .nc-icon-btn--close:hover {
  background: #f4f6f8;
  border-color: #aeb7c3;
}

#pageNotasCredito .nc-icon-btn--close:active {
  transform: scale(0.97);
}

#pageNotasCredito .nc-icon-btn--close svg {
  width: 19px;
  height: 19px;
  stroke-width: 2;
}


/* =========================================================
   SELECTOR · CRÉDITO GENERAL / DESDE FACTURA
   ========================================================= */

#pageNotasCredito .nc-create-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

#pageNotasCredito .nc-create-mode__option {
  position: relative;
  min-width: 0;
  min-height: 82px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  text-align: left;
  color: #1f2937;
  background: #ffffff;
  border: 1px solid #cfd5df;
  border-radius: 12px;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

#pageNotasCredito .nc-create-mode__option:hover {
  background: #fafafa;
  border-color: #9ca6b4;
}

#pageNotasCredito .nc-create-mode__option:active {
  transform: translateY(1px);
}

#pageNotasCredito .nc-create-mode__option.is-active {
  background: #ffffff;
  border-color: #111827;
  box-shadow:
    inset 0 0 0 1px #111827,
    0 3px 10px rgba(17, 24, 39, 0.06);
}

#pageNotasCredito .nc-create-mode__icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  background: #f7f8fa;
  border: 1px solid #d7dce4;
  border-radius: 10px;
}

#pageNotasCredito .nc-create-mode__icon svg {
  width: 19px;
  height: 19px;
  stroke-width: 2;
}

#pageNotasCredito .nc-create-mode__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#pageNotasCredito .nc-create-mode__copy strong {
  color: #111827;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 800;
}

#pageNotasCredito .nc-create-mode__copy small {
  color: #697386;
  font-size: 11.5px;
  line-height: 1.4;
  font-weight: 500;
}


/* =========================================================
   SECCIÓN CREATE
   ========================================================= */

#pageNotasCredito .nc-create-section {
  min-width: 0;
}

#pageNotasCredito .nc-create-section[hidden] {
  display: none !important;
}


/* =========================================================
   FORMULARIO
   ========================================================= */

#pageNotasCredito .nc-form {
  width: 100%;
  min-width: 0;
}

#pageNotasCredito .nc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

#pageNotasCredito .nc-field {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#pageNotasCredito .nc-field--full {
  grid-column: 1 / -1;
}

#pageNotasCredito .nc-field > span,
#pageNotasCredito .nc-field > label {
  color: #111827;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
}

#pageNotasCredito .nc-field small {
  color: #6b7280;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 500;
}

#pageNotasCredito .nc-field input,
#pageNotasCredito .nc-field select,
#pageNotasCredito .nc-field textarea {
  width: 100%;
  min-width: 0;
  margin: 0;
  color: #111827;
  background: #ffffff;
  border: 1px solid #cfd5df;
  border-radius: 10px;
  outline: none;
  box-shadow: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

#pageNotasCredito .nc-field input,
#pageNotasCredito .nc-field select {
  min-height: 42px;
  padding: 0 11px;
}

#pageNotasCredito .nc-field textarea {
  min-height: 84px;
  padding: 11px;
  line-height: 1.5;
  resize: vertical;
}

#pageNotasCredito .nc-field input:hover,
#pageNotasCredito .nc-field select:hover,
#pageNotasCredito .nc-field textarea:hover {
  border-color: #aab4c0;
}

#pageNotasCredito .nc-field input:focus,
#pageNotasCredito .nc-field select:focus,
#pageNotasCredito .nc-field textarea:focus {
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.07);
}

#pageNotasCredito .nc-field input::placeholder,
#pageNotasCredito .nc-field textarea::placeholder {
  color: #8c96a5;
  font-weight: 500;
  opacity: 1;
}

#pageNotasCredito .nc-field input:disabled,
#pageNotasCredito .nc-field select:disabled,
#pageNotasCredito .nc-field textarea:disabled,
#pageNotasCredito .nc-field.is-disabled input {
  color: #697386;
  background: #f3f4f6;
  border-color: #d7dce4;
  cursor: not-allowed;
}


/* =========================================================
   AUTOCOMPLETE
   ========================================================= */

#pageNotasCredito .nc-autocomplete {
  position: relative;
  z-index: 30;
  width: 100%;
  min-width: 0;
}

#pageNotasCredito .nc-autocomplete__input {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

#pageNotasCredito .nc-autocomplete__input > svg,
#pageNotasCredito .nc-autocomplete__input > i {
  position: absolute;
  left: 13px;
  z-index: 2;
  width: 18px;
  height: 18px;
  color: #4b5563;
  pointer-events: none;
}

#pageNotasCredito .nc-autocomplete__input input {
  width: 100%;
  min-height: 44px;
  padding: 0 46px 0 42px;
  color: #111827;
  background: #ffffff;
  border: 1px solid #cfd5df;
  border-radius: 10px;
  outline: none;
  box-shadow: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

#pageNotasCredito .nc-autocomplete__input input:hover {
  border-color: #aab4c0;
}

#pageNotasCredito .nc-autocomplete__input input:focus {
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.07);
}

#pageNotasCredito .nc-autocomplete__input input::placeholder {
  color: #8b95a5;
  font-weight: 500;
}

#pageNotasCredito .nc-autocomplete__input .nc-icon-btn {
  position: absolute;
  right: 6px;
  z-index: 3;
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

#pageNotasCredito .nc-autocomplete__input .nc-icon-btn:hover {
  background: #f1f3f5;
}

#pageNotasCredito .nc-autocomplete__results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 200;
  max-height: 310px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #ffffff;
  border: 1px solid #c3cad4;
  border-radius: 11px;
  box-shadow:
    0 18px 46px rgba(15, 23, 42, 0.15),
    0 4px 12px rgba(15, 23, 42, 0.06);
}

#pageNotasCredito .nc-autocomplete__results[hidden] {
  display: none !important;
}


/* =========================================================
   AUTOCOMPLETE · ITEM
   ========================================================= */

#pageNotasCredito .nc-autocomplete__item {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #111827;
  text-align: left;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #e3e7ec;
  cursor: pointer;
  transition:
    background-color 0.12s ease,
    color 0.12s ease;
}

#pageNotasCredito .nc-autocomplete__item:last-child {
  border-bottom: 0;
}

#pageNotasCredito .nc-autocomplete__item:hover,
#pageNotasCredito .nc-autocomplete__item:focus-visible {
  background: #f4f6f8;
  outline: none;
}

#pageNotasCredito .nc-autocomplete__item-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f2937;
  background: #f8f9fa;
  border: 1px solid #d9dee5;
  border-radius: 9px;
}

#pageNotasCredito .nc-autocomplete__item-icon svg {
  width: 17px;
  height: 17px;
}

#pageNotasCredito .nc-autocomplete__item-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#pageNotasCredito .nc-autocomplete__item-copy strong {
  display: block;
  overflow: hidden;
  color: #111827;
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#pageNotasCredito .nc-autocomplete__item-copy > span {
  display: block;
  overflow: hidden;
  color: #4b5563;
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#pageNotasCredito .nc-autocomplete__item-copy small {
  display: block;
  overflow: hidden;
  color: #7a8492;
  font-size: 10.5px;
  line-height: 1.35;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#pageNotasCredito .nc-autocomplete__item-arrow {
  display: inline-flex;
  color: #6b7280;
}

#pageNotasCredito .nc-autocomplete__item-arrow svg {
  width: 17px;
  height: 17px;
}

#pageNotasCredito .nc-autocomplete__item-value {
  min-width: 112px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding-left: 12px;
}

#pageNotasCredito .nc-autocomplete__item-value small {
  color: #7a8492;
  font-size: 10px;
  font-weight: 600;
}

#pageNotasCredito .nc-autocomplete__item-value strong {
  color: #111827;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}


/* =========================================================
   AUTOCOMPLETE · ESTADO
   ========================================================= */

#pageNotasCredito .nc-autocomplete__status,
#pageNotasCredito .nc-autocomplete__empty {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px;
  color: #5f6978;
  background: #ffffff;
}

#pageNotasCredito .nc-autocomplete__status svg,
#pageNotasCredito .nc-autocomplete__empty > svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

#pageNotasCredito .nc-autocomplete__status svg {
  animation: nc-autocomplete-spin 0.8s linear infinite;
}

#pageNotasCredito .nc-autocomplete__empty > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#pageNotasCredito .nc-autocomplete__empty strong {
  color: #111827;
  font-size: 12px;
  font-weight: 800;
}

#pageNotasCredito .nc-autocomplete__empty span {
  color: #6b7280;
  font-size: 11px;
  font-weight: 500;
}

@keyframes nc-autocomplete-spin {
  to {
    transform: rotate(360deg);
  }
}


/* =========================================================
   PREVIEW CLIENTE / FACTURA
   ========================================================= */

#pageNotasCredito .nc-origin-preview {
  width: 100%;
  min-width: 0;
}

#pageNotasCredito .nc-origin-preview[hidden] {
  display: none !important;
}

#pageNotasCredito .nc-origin-preview__card {
  overflow: hidden;
  background: #f9fafb;
  border: 1px solid #cfd5df;
  border-radius: 12px;
}

#pageNotasCredito .nc-origin-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: #ffffff;
  border-bottom: 1px solid #dde2e8;
}

#pageNotasCredito .nc-origin-preview__header > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#pageNotasCredito .nc-origin-preview__header span:not(.nc-badge) {
  color: #6b7280;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#pageNotasCredito .nc-origin-preview__header strong {
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#pageNotasCredito .nc-origin-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

#pageNotasCredito .nc-origin-preview__grid > div {
  min-width: 0;
  min-height: 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 11px 14px;
  border-right: 1px solid #e1e5ea;
  border-bottom: 1px solid #e1e5ea;
}

#pageNotasCredito .nc-origin-preview__grid > div:nth-child(3n) {
  border-right: 0;
}

#pageNotasCredito .nc-origin-preview__grid > div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

#pageNotasCredito .nc-origin-preview__grid span {
  overflow: hidden;
  color: #737d8c;
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#pageNotasCredito .nc-origin-preview__grid strong {
  overflow: hidden;
  color: #111827;
  font-size: 12.5px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#pageNotasCredito .nc-origin-preview__footer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  color: #555f6d;
  background: #f2f4f7;
  border-top: 1px solid #dde2e8;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 550;
}

#pageNotasCredito .nc-origin-preview__footer svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 1px;
}


/* =========================================================
   LOADING / ERROR INLINE
   ========================================================= */

#pageNotasCredito .nc-inline-loading,
#pageNotasCredito .nc-inline-error {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
}

#pageNotasCredito .nc-inline-loading {
  color: #4b5563;
  background: #f8f9fa;
  border: 1px solid #d8dde5;
}

#pageNotasCredito .nc-inline-error {
  color: #8f1d1d;
  background: #fff7f7;
  border: 1px solid #e5baba;
}

#pageNotasCredito .nc-inline-loading span,
#pageNotasCredito .nc-inline-error span {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
}

#pageNotasCredito .nc-inline-loading svg {
  width: 17px;
  height: 17px;
  animation: nc-autocomplete-spin 0.8s linear infinite;
}

#pageNotasCredito .nc-inline-error svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}


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

#pageNotasCredito .nc-badge {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 24px;
  padding: 4px 8px;
  color: #374151;
  background: #f3f4f6;
  border: 1px solid #d5dae1;
  border-radius: 7px;
  font-size: 10.5px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

#pageNotasCredito .nc-badge.is-success {
  color: #17643b;
  background: #f0f8f4;
  border-color: #b7dac8;
}

#pageNotasCredito .nc-badge.is-danger {
  color: #9b1c1c;
  background: #fff5f5;
  border-color: #e4b7b7;
}

#pageNotasCredito .nc-badge.is-warning {
  color: #7a4b06;
  background: #fff9ed;
  border-color: #ecd39d;
}

#pageNotasCredito .nc-badge.is-info {
  color: #214d76;
  background: #f4f8fb;
  border-color: #bfd1df;
}

#pageNotasCredito .nc-badge.is-purple {
  color: #5a3d75;
  background: #f8f5fb;
  border-color: #d7c6e3;
}

#pageNotasCredito .nc-badge.is-neutral {
  color: #424b57;
  background: #f5f6f7;
  border-color: #d5dae1;
}


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

#pageNotasCredito .nc-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 12px;
  line-height: 1;
  font-weight: 750;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    background-color 0.15s ease,
    border-color 0.15s ease,
    opacity 0.15s ease;
}

#pageNotasCredito .nc-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

#pageNotasCredito .nc-btn:active:not(:disabled) {
  transform: translateY(1px);
}

#pageNotasCredito .nc-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#pageNotasCredito .nc-btn--primary {
  color: #ffffff;
  background: #111827;
  border: 1px solid #111827;
}

#pageNotasCredito .nc-btn--primary:hover:not(:disabled) {
  background: #222936;
  border-color: #222936;
}

#pageNotasCredito .nc-btn--secondary {
  color: #111827;
  background: #ffffff;
  border: 1px solid #cbd2dc;
}

#pageNotasCredito .nc-btn--secondary:hover:not(:disabled) {
  background: #f5f6f7;
  border-color: #9ea8b5;
}

#pageNotasCredito .nc-btn--ghost {
  color: #1f2937;
  background: transparent;
  border: 1px solid transparent;
}

#pageNotasCredito .nc-btn--ghost:hover:not(:disabled) {
  background: #f2f4f6;
  border-color: #d7dce4;
}

#pageNotasCredito .nc-btn--danger {
  color: #ffffff;
  background: #a51d1d;
  border: 1px solid #a51d1d;
}

#pageNotasCredito .nc-btn--danger:hover:not(:disabled) {
  background: #881717;
  border-color: #881717;
}

#pageNotasCredito .nc-btn--danger-outline {
  color: #9d1b1b;
  background: #ffffff;
  border: 1px solid #d5a8a8;
}

#pageNotasCredito .nc-btn--danger-outline:hover:not(:disabled) {
  background: #fff5f5;
  border-color: #bf8181;
}

#pageNotasCredito .nc-btn.is-loading svg {
  animation: nc-autocomplete-spin 0.8s linear infinite;
}


/* =========================================================
   INPUT SUFFIX
   ========================================================= */

#pageNotasCredito .nc-input-suffix {
  position: relative;
  display: flex;
  align-items: center;
}

#pageNotasCredito .nc-input-suffix input {
  padding-right: 38px;
}

#pageNotasCredito .nc-input-suffix > span {
  position: absolute;
  right: 12px;
  color: #667080;
  font-size: 12px;
  font-weight: 750;
  pointer-events: none;
}


/* =========================================================
   CONFIRMACIONES
   ========================================================= */

#pageNotasCredito .nc-confirm {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  background: #f8f9fa;
  border: 1px solid #d8dde5;
  border-radius: 11px;
}

#pageNotasCredito .nc-confirm__icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  background: #ffffff;
  border: 1px solid #d4d9e0;
  border-radius: 9px;
}

#pageNotasCredito .nc-confirm__icon.is-danger {
  color: #991b1b;
  background: #fff8f8;
  border-color: #e1bebe;
}

#pageNotasCredito .nc-confirm__icon svg {
  width: 18px;
  height: 18px;
}

#pageNotasCredito .nc-confirm__copy {
  min-width: 0;
}

#pageNotasCredito .nc-confirm__copy strong {
  display: block;
  margin: 1px 0 4px;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
}

#pageNotasCredito .nc-confirm__copy p {
  margin: 0;
  color: #616b79;
  font-size: 11.5px;
  line-height: 1.5;
  font-weight: 500;
}


/* =========================================================
   DETALLE · TEXTOS MÁS FIRMES
   ========================================================= */

#pageNotasCredito .nc-detail-field > span {
  color: #687282;
  font-size: 10.5px;
  line-height: 1.25;
  font-weight: 650;
}

#pageNotasCredito .nc-detail-field > strong {
  color: #111827;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 750;
}

#pageNotasCredito .nc-total-row span {
  color: #525c6a;
  font-weight: 600;
}

#pageNotasCredito .nc-total-row strong {
  color: #111827;
  font-weight: 800;
}


/* =========================================================
   TABLA · TEXTO
   ========================================================= */

#pageNotasCredito .nc-table th,
#pageNotasCredito .nc-detail-table th {
  color: #394150;
  font-weight: 750;
}

#pageNotasCredito .nc-table td,
#pageNotasCredito .nc-detail-table td {
  color: #222936;
}

#pageNotasCredito .nc-money {
  color: #111827;
  font-weight: 800;
}

#pageNotasCredito .nc-money.is-credit {
  color: #17643b;
}


/* =========================================================
   SCROLLBAR · MODAL / AUTOCOMPLETE
   ========================================================= */

#pageNotasCredito .nc-modal__body,
#pageNotasCredito .nc-autocomplete__results {
  scrollbar-width: thin;
  scrollbar-color: #b9c0ca transparent;
}

#pageNotasCredito .nc-modal__body::-webkit-scrollbar,
#pageNotasCredito .nc-autocomplete__results::-webkit-scrollbar {
  width: 8px;
}

#pageNotasCredito .nc-modal__body::-webkit-scrollbar-track,
#pageNotasCredito .nc-autocomplete__results::-webkit-scrollbar-track {
  background: transparent;
}

#pageNotasCredito .nc-modal__body::-webkit-scrollbar-thumb,
#pageNotasCredito .nc-autocomplete__results::-webkit-scrollbar-thumb {
  background: #b9c0ca;
  border: 2px solid transparent;
  border-radius: 10px;
  background-clip: padding-box;
}


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

body.nc-modal-open {
  overflow: hidden !important;
}


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

html.dark #pageNotasCredito .nc-modal,
body.dark #pageNotasCredito .nc-modal,
[data-theme="dark"] #pageNotasCredito .nc-modal {
  background: #080808;
  border-color: #303030;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.68),
    0 4px 14px rgba(0, 0, 0, 0.5);
}

html.dark #pageNotasCredito .nc-modal__header,
body.dark #pageNotasCredito .nc-modal__header,
[data-theme="dark"] #pageNotasCredito .nc-modal__header {
  background: #080808;
  border-bottom-color: #2e2e2e;
}

html.dark #pageNotasCredito .nc-modal__header h2,
body.dark #pageNotasCredito .nc-modal__header h2,
[data-theme="dark"] #pageNotasCredito .nc-modal__header h2 {
  color: #ffffff;
}

html.dark #pageNotasCredito .nc-modal__header p,
body.dark #pageNotasCredito .nc-modal__header p,
[data-theme="dark"] #pageNotasCredito .nc-modal__header p {
  color: #a6a6a6;
}

html.dark #pageNotasCredito .nc-modal__footer,
body.dark #pageNotasCredito .nc-modal__footer,
[data-theme="dark"] #pageNotasCredito .nc-modal__footer {
  background: #080808;
  border-top-color: #2e2e2e;
}

html.dark #pageNotasCredito .nc-create-mode__option,
body.dark #pageNotasCredito .nc-create-mode__option,
[data-theme="dark"] #pageNotasCredito .nc-create-mode__option {
  color: #ffffff;
  background: #0d0d0d;
  border-color: #343434;
}

html.dark #pageNotasCredito .nc-create-mode__option:hover,
body.dark #pageNotasCredito .nc-create-mode__option:hover,
[data-theme="dark"] #pageNotasCredito .nc-create-mode__option:hover {
  background: #121212;
  border-color: #555555;
}

html.dark #pageNotasCredito .nc-create-mode__option.is-active,
body.dark #pageNotasCredito .nc-create-mode__option.is-active,
[data-theme="dark"] #pageNotasCredito .nc-create-mode__option.is-active {
  background: #111111;
  border-color: #ffffff;
  box-shadow: inset 0 0 0 1px #ffffff;
}

html.dark #pageNotasCredito .nc-create-mode__icon,
body.dark #pageNotasCredito .nc-create-mode__icon,
[data-theme="dark"] #pageNotasCredito .nc-create-mode__icon {
  color: #ffffff;
  background: #171717;
  border-color: #373737;
}

html.dark #pageNotasCredito .nc-create-mode__copy strong,
body.dark #pageNotasCredito .nc-create-mode__copy strong,
[data-theme="dark"] #pageNotasCredito .nc-create-mode__copy strong {
  color: #ffffff;
}

html.dark #pageNotasCredito .nc-create-mode__copy small,
body.dark #pageNotasCredito .nc-create-mode__copy small,
[data-theme="dark"] #pageNotasCredito .nc-create-mode__copy small {
  color: #a4a4a4;
}

html.dark #pageNotasCredito .nc-field > span,
body.dark #pageNotasCredito .nc-field > span,
[data-theme="dark"] #pageNotasCredito .nc-field > span {
  color: #f3f3f3;
}

html.dark #pageNotasCredito .nc-field small,
body.dark #pageNotasCredito .nc-field small,
[data-theme="dark"] #pageNotasCredito .nc-field small {
  color: #939393;
}

html.dark #pageNotasCredito .nc-field input,
html.dark #pageNotasCredito .nc-field select,
html.dark #pageNotasCredito .nc-field textarea,
body.dark #pageNotasCredito .nc-field input,
body.dark #pageNotasCredito .nc-field select,
body.dark #pageNotasCredito .nc-field textarea,
[data-theme="dark"] #pageNotasCredito .nc-field input,
[data-theme="dark"] #pageNotasCredito .nc-field select,
[data-theme="dark"] #pageNotasCredito .nc-field textarea {
  color: #ffffff;
  background: #0d0d0d;
  border-color: #343434;
}

html.dark #pageNotasCredito .nc-field input:focus,
html.dark #pageNotasCredito .nc-field select:focus,
html.dark #pageNotasCredito .nc-field textarea:focus,
body.dark #pageNotasCredito .nc-field input:focus,
body.dark #pageNotasCredito .nc-field select:focus,
body.dark #pageNotasCredito .nc-field textarea:focus,
[data-theme="dark"] #pageNotasCredito .nc-field input:focus,
[data-theme="dark"] #pageNotasCredito .nc-field select:focus,
[data-theme="dark"] #pageNotasCredito .nc-field textarea:focus {
  border-color: #e5e5e5;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

html.dark #pageNotasCredito .nc-autocomplete__input input,
body.dark #pageNotasCredito .nc-autocomplete__input input,
[data-theme="dark"] #pageNotasCredito .nc-autocomplete__input input {
  color: #ffffff;
  background: #0d0d0d;
  border-color: #343434;
}

html.dark #pageNotasCredito .nc-autocomplete__input input:focus,
body.dark #pageNotasCredito .nc-autocomplete__input input:focus,
[data-theme="dark"] #pageNotasCredito .nc-autocomplete__input input:focus {
  border-color: #e7e7e7;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

html.dark #pageNotasCredito .nc-autocomplete__results,
body.dark #pageNotasCredito .nc-autocomplete__results,
[data-theme="dark"] #pageNotasCredito .nc-autocomplete__results {
  background: #0a0a0a;
  border-color: #3c3c3c;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.72);
}

html.dark #pageNotasCredito .nc-autocomplete__item,
body.dark #pageNotasCredito .nc-autocomplete__item,
[data-theme="dark"] #pageNotasCredito .nc-autocomplete__item {
  color: #ffffff;
  background: #0a0a0a;
  border-bottom-color: #282828;
}

html.dark #pageNotasCredito .nc-autocomplete__item:hover,
html.dark #pageNotasCredito .nc-autocomplete__item:focus-visible,
body.dark #pageNotasCredito .nc-autocomplete__item:hover,
body.dark #pageNotasCredito .nc-autocomplete__item:focus-visible,
[data-theme="dark"] #pageNotasCredito .nc-autocomplete__item:hover,
[data-theme="dark"] #pageNotasCredito .nc-autocomplete__item:focus-visible {
  background: #161616;
}

html.dark #pageNotasCredito .nc-autocomplete__item-icon,
body.dark #pageNotasCredito .nc-autocomplete__item-icon,
[data-theme="dark"] #pageNotasCredito .nc-autocomplete__item-icon {
  color: #ffffff;
  background: #171717;
  border-color: #333333;
}

html.dark #pageNotasCredito .nc-autocomplete__item-copy strong,
body.dark #pageNotasCredito .nc-autocomplete__item-copy strong,
[data-theme="dark"] #pageNotasCredito .nc-autocomplete__item-copy strong {
  color: #ffffff;
}

html.dark #pageNotasCredito .nc-autocomplete__item-copy > span,
body.dark #pageNotasCredito .nc-autocomplete__item-copy > span,
[data-theme="dark"] #pageNotasCredito .nc-autocomplete__item-copy > span {
  color: #c0c0c0;
}

html.dark #pageNotasCredito .nc-autocomplete__item-copy small,
body.dark #pageNotasCredito .nc-autocomplete__item-copy small,
[data-theme="dark"] #pageNotasCredito .nc-autocomplete__item-copy small {
  color: #919191;
}

html.dark #pageNotasCredito .nc-autocomplete__item-value strong,
body.dark #pageNotasCredito .nc-autocomplete__item-value strong,
[data-theme="dark"] #pageNotasCredito .nc-autocomplete__item-value strong {
  color: #ffffff;
}

html.dark #pageNotasCredito .nc-autocomplete__status,
html.dark #pageNotasCredito .nc-autocomplete__empty,
body.dark #pageNotasCredito .nc-autocomplete__status,
body.dark #pageNotasCredito .nc-autocomplete__empty,
[data-theme="dark"] #pageNotasCredito .nc-autocomplete__status,
[data-theme="dark"] #pageNotasCredito .nc-autocomplete__empty {
  color: #b0b0b0;
  background: #0a0a0a;
}

html.dark #pageNotasCredito .nc-autocomplete__empty strong,
body.dark #pageNotasCredito .nc-autocomplete__empty strong,
[data-theme="dark"] #pageNotasCredito .nc-autocomplete__empty strong {
  color: #ffffff;
}

html.dark #pageNotasCredito .nc-origin-preview__card,
body.dark #pageNotasCredito .nc-origin-preview__card,
[data-theme="dark"] #pageNotasCredito .nc-origin-preview__card {
  background: #0d0d0d;
  border-color: #353535;
}

html.dark #pageNotasCredito .nc-origin-preview__header,
body.dark #pageNotasCredito .nc-origin-preview__header,
[data-theme="dark"] #pageNotasCredito .nc-origin-preview__header {
  background: #101010;
  border-bottom-color: #303030;
}

html.dark #pageNotasCredito .nc-origin-preview__header strong,
body.dark #pageNotasCredito .nc-origin-preview__header strong,
[data-theme="dark"] #pageNotasCredito .nc-origin-preview__header strong,
html.dark #pageNotasCredito .nc-origin-preview__grid strong,
body.dark #pageNotasCredito .nc-origin-preview__grid strong,
[data-theme="dark"] #pageNotasCredito .nc-origin-preview__grid strong {
  color: #ffffff;
}

html.dark #pageNotasCredito .nc-origin-preview__grid > div,
body.dark #pageNotasCredito .nc-origin-preview__grid > div,
[data-theme="dark"] #pageNotasCredito .nc-origin-preview__grid > div {
  border-color: #292929;
}

html.dark #pageNotasCredito .nc-origin-preview__grid span,
body.dark #pageNotasCredito .nc-origin-preview__grid span,
[data-theme="dark"] #pageNotasCredito .nc-origin-preview__grid span {
  color: #939393;
}

html.dark #pageNotasCredito .nc-origin-preview__footer,
body.dark #pageNotasCredito .nc-origin-preview__footer,
[data-theme="dark"] #pageNotasCredito .nc-origin-preview__footer {
  color: #aaaaaa;
  background: #111111;
  border-top-color: #303030;
}

html.dark #pageNotasCredito .nc-inline-loading,
body.dark #pageNotasCredito .nc-inline-loading,
[data-theme="dark"] #pageNotasCredito .nc-inline-loading {
  color: #bdbdbd;
  background: #111111;
  border-color: #333333;
}

html.dark #pageNotasCredito .nc-inline-error,
body.dark #pageNotasCredito .nc-inline-error,
[data-theme="dark"] #pageNotasCredito .nc-inline-error {
  color: #ffb9b9;
  background: #1c0d0d;
  border-color: #593131;
}

html.dark #pageNotasCredito .nc-btn--primary,
body.dark #pageNotasCredito .nc-btn--primary,
[data-theme="dark"] #pageNotasCredito .nc-btn--primary {
  color: #111111;
  background: #ffffff;
  border-color: #ffffff;
}

html.dark #pageNotasCredito .nc-btn--primary:hover:not(:disabled),
body.dark #pageNotasCredito .nc-btn--primary:hover:not(:disabled),
[data-theme="dark"] #pageNotasCredito .nc-btn--primary:hover:not(:disabled) {
  color: #111111;
  background: #e9e9e9;
  border-color: #e9e9e9;
}

html.dark #pageNotasCredito .nc-btn--secondary,
body.dark #pageNotasCredito .nc-btn--secondary,
[data-theme="dark"] #pageNotasCredito .nc-btn--secondary {
  color: #ffffff;
  background: #111111;
  border-color: #393939;
}

html.dark #pageNotasCredito .nc-btn--secondary:hover:not(:disabled),
body.dark #pageNotasCredito .nc-btn--secondary:hover:not(:disabled),
[data-theme="dark"] #pageNotasCredito .nc-btn--secondary:hover:not(:disabled) {
  background: #1a1a1a;
  border-color: #575757;
}

html.dark #pageNotasCredito .nc-icon-btn--close,
body.dark #pageNotasCredito .nc-icon-btn--close,
[data-theme="dark"] #pageNotasCredito .nc-icon-btn--close {
  color: #ffffff;
  background: #101010;
  border-color: #383838;
}

html.dark #pageNotasCredito .nc-confirm,
body.dark #pageNotasCredito .nc-confirm,
[data-theme="dark"] #pageNotasCredito .nc-confirm {
  background: #101010;
  border-color: #333333;
}

html.dark #pageNotasCredito .nc-confirm__icon,
body.dark #pageNotasCredito .nc-confirm__icon,
[data-theme="dark"] #pageNotasCredito .nc-confirm__icon {
  color: #ffffff;
  background: #171717;
  border-color: #393939;
}

html.dark #pageNotasCredito .nc-confirm__copy strong,
body.dark #pageNotasCredito .nc-confirm__copy strong,
[data-theme="dark"] #pageNotasCredito .nc-confirm__copy strong {
  color: #ffffff;
}

html.dark #pageNotasCredito .nc-confirm__copy p,
body.dark #pageNotasCredito .nc-confirm__copy p,
[data-theme="dark"] #pageNotasCredito .nc-confirm__copy p {
  color: #aaaaaa;
}


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

@media (max-width: 900px) {

  #pageNotasCredito .nc-modal-overlay {
    align-items: flex-start;
    padding: 18px;
  }

  #pageNotasCredito .nc-modal {
    width: 100%;
    max-height: calc(100vh - 36px);
  }

  #pageNotasCredito .nc-origin-preview__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #pageNotasCredito .nc-origin-preview__grid > div:nth-child(3n) {
    border-right: 1px solid #e1e5ea;
  }

  #pageNotasCredito .nc-origin-preview__grid > div:nth-child(2n) {
    border-right: 0;
  }

  #pageNotasCredito .nc-origin-preview__grid > div:nth-last-child(-n + 3) {
    border-bottom: 1px solid #e1e5ea;
  }

  #pageNotasCredito .nc-origin-preview__grid > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

}


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

@media (max-width: 640px) {

  #pageNotasCredito .nc-modal-overlay {
    padding: 0;
    align-items: stretch;
  }

  #pageNotasCredito .nc-modal {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  #pageNotasCredito .nc-modal__header {
    padding: 15px 14px;
  }

  #pageNotasCredito .nc-modal__header h2 {
    font-size: 17px;
  }

  #pageNotasCredito .nc-modal__body {
    padding: 12px;
  }

  #pageNotasCredito .nc-modal__footer {
    bottom: -12px;
    margin: 18px -12px -12px;
    padding: 12px;
  }

  #pageNotasCredito .nc-create-mode {
    grid-template-columns: 1fr;
  }

  #pageNotasCredito .nc-create-mode__option {
    min-height: 72px;
  }

  #pageNotasCredito .nc-form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #pageNotasCredito .nc-field--full {
    grid-column: auto;
  }

  #pageNotasCredito .nc-origin-preview__grid {
    grid-template-columns: 1fr;
  }

  #pageNotasCredito .nc-origin-preview__grid > div,
  #pageNotasCredito .nc-origin-preview__grid > div:nth-child(2n),
  #pageNotasCredito .nc-origin-preview__grid > div:nth-child(3n),
  #pageNotasCredito .nc-origin-preview__grid > div:nth-last-child(-n + 2),
  #pageNotasCredito .nc-origin-preview__grid > div:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid #e1e5ea;
  }

  #pageNotasCredito .nc-origin-preview__grid > div:last-child {
    border-bottom: 0;
  }

  #pageNotasCredito .nc-autocomplete__results {
    max-height: 260px;
  }

  #pageNotasCredito .nc-autocomplete__item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  #pageNotasCredito .nc-autocomplete__item-icon {
    width: 34px;
    height: 34px;
  }

  #pageNotasCredito .nc-autocomplete__item-arrow {
    display: none;
  }

  #pageNotasCredito .nc-autocomplete__item-value {
    grid-column: 2;
    align-items: flex-start;
    padding-left: 0;
    margin-top: 3px;
  }

  #pageNotasCredito .nc-modal__footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  #pageNotasCredito .nc-modal__footer .nc-btn {
    width: 100%;
  }

}


/* =========================================================
   MOBILE MUY ANGOSTO
   ========================================================= */

@media (max-width: 420px) {

  #pageNotasCredito .nc-modal__footer {
    grid-template-columns: 1fr;
  }

  #pageNotasCredito .nc-create-mode__icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  #pageNotasCredito .nc-create-mode__option {
    padding: 12px;
  }

  #pageNotasCredito .nc-origin-preview__header {
    align-items: flex-start;
    flex-direction: column;
  }

}


/* =========================================================
   FIN · NOTAS DE CRÉDITO UI PATCH
   ========================================================= *//* =========================================================
   HOTFIX · MODAL DEBAJO DEL TOPBAR
   ========================================================= */

#pageNotasCredito
.nc-modal-overlay {
  top:
    58px
    !important;

  right:
    0
    !important;

  bottom:
    0
    !important;

  left:
    0
    !important;

  width:
    100vw
    !important;

  height:
    calc(
      100dvh -
      58px
    )
    !important;

  max-height:
    calc(
      100dvh -
      58px
    )
    !important;

  padding:
    14px
    18px
    18px
    !important;

  align-items:
    center
    !important;

  justify-content:
    center
    !important;

  overflow:
    hidden
    !important;
}


#pageNotasCredito
.nc-modal-backdrop {
  position:
    absolute
    !important;

  top:
    0
    !important;

  right:
    0
    !important;

  bottom:
    0
    !important;

  left:
    0
    !important;

  width:
    100%
    !important;

  height:
    100%
    !important;

  max-width:
    100%
    !important;

  max-height:
    100%
    !important;
}


#pageNotasCredito
.nc-modal {
  max-height:
    calc(
      100dvh -
      58px -
      32px
    )
    !important;

  margin:
    0
    !important;
}


#pageNotasCredito
.nc-modal__body {
  min-height:
    0
    !important;

  overflow-y:
    auto
    !important;

  overscroll-behavior:
    contain;
}


@media (
  max-width:
    760px
) {

  #pageNotasCredito
  .nc-modal-overlay {
    padding:
      10px
      !important;
  }


  #pageNotasCredito
  .nc-modal {
    width:
      calc(
        100vw -
        20px
      )
      !important;

    max-height:
      calc(
        100dvh -
        58px -
        20px
      )
      !important;
  }

}/* =========================================================
   HOTFIX · MODAL DETRÁS DEL TOPBAR
   ========================================================= */

#pageNotasCredito
.nc-modal-overlay {
  top:
    58px
    !important;

  right:
    0
    !important;

  bottom:
    0
    !important;

  left:
    0
    !important;

  width:
    100vw
    !important;

  height:
    calc(
      100dvh -
      58px
    )
    !important;

  max-height:
    calc(
      100dvh -
      58px
    )
    !important;

  z-index:
    800
    !important;

  padding:
    14px
    18px
    18px
    !important;

  align-items:
    center
    !important;

  justify-content:
    center
    !important;

  overflow:
    hidden
    !important;
}


#pageNotasCredito
.nc-modal-backdrop {
  position:
    absolute
    !important;

  inset:
    0
    !important;

  width:
    100%
    !important;

  height:
    100%
    !important;

  z-index:
    1
    !important;
}


#pageNotasCredito
.nc-modal {
  position:
    relative
    !important;

  z-index:
    2
    !important;

  max-height:
    calc(
      100dvh -
      58px -
      32px
    )
    !important;

  margin:
    0
    !important;
}


/* =========================================================
   TOPBAR SIEMPRE DELANTE DEL MODAL
   ========================================================= */

.app-main > header,
.app-main .topbar,
.app-main .app-topbar,
#topbar {
  position:
    relative
    !important;

  z-index:
    5000
    !important;
}


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

#pageNotasCredito
.nc-modal__body {
  min-height:
    0
    !important;

  overflow-y:
    auto
    !important;

  overflow-x:
    hidden
    !important;

  overscroll-behavior:
    contain;
}


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

@media (
  max-width:
    760px
) {

  #pageNotasCredito
  .nc-modal-overlay {
    top:
      58px
      !important;

    height:
      calc(
        100dvh -
        58px
      )
      !important;

    max-height:
      calc(
        100dvh -
        58px
      )
      !important;

    padding:
      10px
      !important;
  }


  #pageNotasCredito
  .nc-modal {
    width:
      calc(
        100vw -
        20px
      )
      !important;

    max-height:
      calc(
        100dvh -
        58px -
        20px
      )
      !important;
  }

}/* =========================================================
   FIX FINAL · MODAL SIEMPRE DETRÁS DEL TOPBAR
   ========================================================= */

body:has(#pageNotasCredito)
.nc-modal-root {
  position:
    relative
    !important;

  z-index:
    8000
    !important;
}


body:has(#pageNotasCredito)
#ncModal,
body:has(#pageNotasCredito)
#pageNotasCredito
.nc-modal-overlay {
  position:
    fixed
    !important;

  inset:
    auto
    0
    0
    0
    !important;

  top:
    58px
    !important;

  right:
    0
    !important;

  bottom:
    0
    !important;

  left:
    0
    !important;

  width:
    100vw
    !important;

  height:
    calc(
      100dvh -
      58px
    )
    !important;

  max-width:
    none
    !important;

  max-height:
    calc(
      100dvh -
      58px
    )
    !important;

  z-index:
    8000
    !important;

  display:
    flex;

  align-items:
    center
    !important;

  justify-content:
    center
    !important;

  padding:
    18px
    !important;

  overflow:
    hidden
    !important;

  isolation:
    isolate;
}


/* =========================================================
   BACKDROP SOLO DESDE DEBAJO DEL TOPBAR
   ========================================================= */

body:has(#pageNotasCredito)
#pageNotasCredito
.nc-modal-backdrop {
  position:
    absolute
    !important;

  inset:
    0
    !important;

  top:
    0
    !important;

  right:
    0
    !important;

  bottom:
    0
    !important;

  left:
    0
    !important;

  width:
    100%
    !important;

  height:
    100%
    !important;

  z-index:
    1
    !important;
}


/* =========================================================
   VENTANA
   ========================================================= */

body:has(#pageNotasCredito)
#pageNotasCredito
.nc-modal {
  position:
    relative
    !important;

  z-index:
    2
    !important;

  max-height:
    calc(
      100dvh -
      58px -
      36px
    )
    !important;

  margin:
    0
    !important;
}


/* =========================================================
   TOPBAR SIEMPRE POR DELANTE
   ========================================================= */

body:has(#pageNotasCredito)
.topbar,
body:has(#pageNotasCredito)
.app-topbar,
body:has(#pageNotasCredito)
.app-main > header,
body:has(#pageNotasCredito)
header.topbar {
  position:
    relative
    !important;

  z-index:
    9000
    !important;
}


/* =========================================================
   CONTENIDO DEL MODAL
   ========================================================= */

body:has(#pageNotasCredito)
#pageNotasCredito
.nc-modal__body {
  min-height:
    0
    !important;

  overflow-y:
    auto
    !important;

  overflow-x:
    hidden
    !important;

  overscroll-behavior:
    contain;
}


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

@media (
  max-width:
    760px
) {

  body:has(#pageNotasCredito)
  #ncModal,
  body:has(#pageNotasCredito)
  #pageNotasCredito
  .nc-modal-overlay {
    top:
      58px
      !important;

    height:
      calc(
        100dvh -
        58px
      )
      !important;

    max-height:
      calc(
        100dvh -
        58px
      )
      !important;

    align-items:
      flex-end
      !important;

    padding:
      0
      !important;
  }


  body:has(#pageNotasCredito)
  #pageNotasCredito
  .nc-modal {
    width:
      100%
      !important;

    max-width:
      none
      !important;

    max-height:
      calc(
        100dvh -
        58px
      )
      !important;

    border-right:
      0
      !important;

    border-bottom:
      0
      !important;

    border-left:
      0
      !important;

    border-radius:
      16px
      16px
      0
      0
      !important;
  }

}


/* =========================================================
   SOPORTE DVH
   ========================================================= */

@supports (
  height:
    100dvh
) {

  body:has(#pageNotasCredito)
  #ncModal,
  body:has(#pageNotasCredito)
  #pageNotasCredito
  .nc-modal-overlay {
    top:
      58px
      !important;

    height:
      calc(
        100dvh -
        58px
      )
      !important;

    max-height:
      calc(
        100dvh -
        58px
      )
      !important;
  }

}/* =========================================================
   WIRTZ HUB · NOTAS DE CRÉDITO
   TIPOGRAFÍA FINAL

   - Más grande
   - Más firme
   - Menos gris
   - Mejor lectura mobile
   - Mejor contraste light/dark
   ========================================================= */


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

#pageNotasCredito {
  --nc-text:
    #202329;

  --nc-text-strong:
    #050608;

  --nc-muted:
    #3f4650;

  --nc-muted-2:
    #626a75;
}


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

#pageNotasCredito,
#pageNotasCredito
button,
#pageNotasCredito
input,
#pageNotasCredito
select,
#pageNotasCredito
textarea {
  font-weight:
    700;

  text-rendering:
    optimizeLegibility;

  -webkit-font-smoothing:
    antialiased;
}


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

#pageNotasCredito
.nc-header__eyebrow {
  color:
    var(
      --nc-text
    );

  font-size:
    10px;

  font-weight:
    900;
}


#pageNotasCredito
.nc-header__title {
  color:
    var(
      --nc-text-strong
    );

  font-weight:
    900;
}


#pageNotasCredito
.nc-header__description {
  color:
    var(
      --nc-text
    );

  font-size:
    13px;

  font-weight:
    750;
}


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

#pageNotasCredito
.nc-btn {
  color:
    var(
      --nc-text-strong
    );

  font-size:
    12px;

  font-weight:
    850;
}


#pageNotasCredito
.nc-icon-btn {
  color:
    var(
      --nc-text-strong
    );
}


/* =========================================================
   TOGGLE MONEDA
   ========================================================= */

#pageNotasCredito
.nc-currency-toggle__btn {
  font-size:
    11px;

  font-weight:
    900;
}


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

#pageNotasCredito
.nc-metric-card__label {
  color:
    var(
      --nc-text
    );

  font-size:
    11px;

  font-weight:
    850;
}


#pageNotasCredito
.nc-metric-card__value {
  color:
    var(
      --nc-text-strong
    );

  font-weight:
    900;
}


#pageNotasCredito
.nc-metric-card__meta {
  color:
    var(
      --nc-text
    );

  font-size:
    10px;

  font-weight:
    700;
}


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

#pageNotasCredito
.nc-panel__title {
  color:
    var(
      --nc-text-strong
    );

  font-size:
    14px;

  font-weight:
    900;
}


#pageNotasCredito
.nc-panel__subtitle {
  color:
    var(
      --nc-text
    );

  font-size:
    10px;

  font-weight:
    750;
}


/* =========================================================
   BUSCADOR
   ========================================================= */

#pageNotasCredito
.nc-search
input {
  color:
    var(
      --nc-text-strong
    );

  font-size:
    12px;

  font-weight:
    750;
}


#pageNotasCredito
.nc-search
input::placeholder {
  color:
    var(
      --nc-muted
    );

  opacity:
    .78;

  font-weight:
    650;
}


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

#pageNotasCredito
.nc-select-wrap >
span,
#pageNotasCredito
.nc-advanced-filters
label >
span {
  color:
    var(
      --nc-text
    );

  font-size:
    9px;

  font-weight:
    900;
}


#pageNotasCredito
.nc-select-wrap
select,
#pageNotasCredito
.nc-advanced-filters
select,
#pageNotasCredito
.nc-advanced-filters
input {
  color:
    var(
      --nc-text-strong
    );

  font-size:
    11px;

  font-weight:
    750;
}


/* =========================================================
   TABLA PRINCIPAL
   ========================================================= */

#pageNotasCredito
.nc-table
th {
  color:
    var(
      --nc-text
    );

  font-size:
    9.5px;

  font-weight:
    900;
}


#pageNotasCredito
.nc-table
td {
  color:
    var(
      --nc-text
    );

  font-size:
    11.5px;

  font-weight:
    720;
}


/* =========================================================
   NÚMERO
   ========================================================= */

#pageNotasCredito
.nc-number-cell__number {
  color:
    var(
      --nc-text-strong
    );

  font-size:
    12px;

  font-weight:
    900;
}


#pageNotasCredito
.nc-number-cell__meta {
  color:
    var(
      --nc-text
    );

  font-size:
    10px;

  font-weight:
    750;
}


/* =========================================================
   CLIENTE
   ========================================================= */

#pageNotasCredito
.nc-client-avatar {
  color:
    var(
      --nc-text-strong
    );

  font-weight:
    900;
}


#pageNotasCredito
.nc-client-cell__name {
  color:
    var(
      --nc-text-strong
    );

  font-size:
    11.5px;

  font-weight:
    900;
}


#pageNotasCredito
.nc-client-cell__legal {
  color:
    var(
      --nc-text
    );

  font-size:
    10px;

  font-weight:
    700;
}


#pageNotasCredito
.nc-client-cell__meta {
  color:
    var(
      --nc-text
    );

  font-size:
    9.5px;

  font-weight:
    700;
}


/* =========================================================
   ORIGEN / VALORES
   ========================================================= */

#pageNotasCredito
.nc-origin-cell
strong,
#pageNotasCredito
.nc-value-stack
strong {
  color:
    var(
      --nc-text-strong
    );

  font-size:
    11px;

  font-weight:
    850;
}


#pageNotasCredito
.nc-origin-cell
small,
#pageNotasCredito
.nc-value-stack
small {
  color:
    var(
      --nc-text
    );

  font-size:
    9.5px;

  font-weight:
    700;
}


/* =========================================================
   DINERO
   ========================================================= */

#pageNotasCredito
.nc-money {
  color:
    var(
      --nc-text-strong
    );

  font-size:
    11.5px;

  font-weight:
    900;
}


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

#pageNotasCredito
.nc-badge {
  font-size:
    9px;

  font-weight:
    900;
}


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

#pageNotasCredito
.nc-detail-title__topline
h2 {
  color:
    var(
      --nc-text-strong
    );

  font-size:
    18px;

  font-weight:
    900;
}


#pageNotasCredito
.nc-detail-title__meta {
  color:
    var(
      --nc-text
    );

  font-size:
    11px;

  font-weight:
    750;
}


/* =========================================================
   BOTÓN CERRAR
   MÁS VISIBLE Y CLICKEABLE
   ========================================================= */

#pageNotasCredito
.nc-icon-btn--close {
  position:
    relative;

  z-index:
    100;

  width:
    40px;

  height:
    40px;

  min-width:
    40px;

  flex:
    0
    0
    40px;

  padding:
    0;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

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

  background:
    var(
      --nc-surface
    );

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

  border-radius:
    9px;

  cursor:
    pointer;

  pointer-events:
    auto !important;

  touch-action:
    manipulation;
}


#pageNotasCredito
.nc-icon-btn--close
svg {
  width:
    19px;

  height:
    19px;

  stroke-width:
    2.4;
}


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

#pageNotasCredito
.nc-detail-stat__label {
  color:
    var(
      --nc-text
    );

  font-size:
    9.5px;

  font-weight:
    900;
}


#pageNotasCredito
.nc-detail-stat__value {
  color:
    var(
      --nc-text-strong
    );

  font-size:
    16px;

  font-weight:
    900;
}


#pageNotasCredito
.nc-detail-stat__meta {
  color:
    var(
      --nc-text
    );

  font-size:
    10px;

  font-weight:
    700;
}


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

#pageNotasCredito
.nc-detail-tab {
  color:
    var(
      --nc-text
    );

  font-size:
    11px;

  font-weight:
    800;
}


#pageNotasCredito
.nc-detail-tab.is-active {
  color:
    var(
      --nc-text-strong
    );

  font-weight:
    900;
}


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

#pageNotasCredito
.nc-detail-card__header
h3 {
  color:
    var(
      --nc-text-strong
    );

  font-size:
    13px;

  font-weight:
    900;
}


#pageNotasCredito
.nc-detail-card__header
p {
  color:
    var(
      --nc-text
    );

  font-size:
    10px;

  font-weight:
    700;
}


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

#pageNotasCredito
.nc-detail-field >
span {
  color:
    var(
      --nc-text
    );

  font-size:
    9px;

  font-weight:
    900;
}


#pageNotasCredito
.nc-detail-field >
strong {
  color:
    var(
      --nc-text-strong
    );

  font-size:
    11px;

  font-weight:
    850;
}


/* =========================================================
   TOTALES
   ========================================================= */

#pageNotasCredito
.nc-total-row
span {
  color:
    var(
      --nc-text
    );

  font-size:
    10px;

  font-weight:
    750;
}


#pageNotasCredito
.nc-total-row
strong {
  color:
    var(
      --nc-text-strong
    );

  font-size:
    11px;

  font-weight:
    900;
}


/* =========================================================
   DETAIL TABLE
   ========================================================= */

#pageNotasCredito
.nc-detail-table
th {
  color:
    var(
      --nc-text
    );

  font-size:
    9px;

  font-weight:
    900;
}


#pageNotasCredito
.nc-detail-table
td {
  color:
    var(
      --nc-text
    );

  font-size:
    11px;

  font-weight:
    720;
}


#pageNotasCredito
.nc-product-cell
strong {
  color:
    var(
      --nc-text-strong
    );

  font-size:
    11px;

  font-weight:
    850;
}


#pageNotasCredito
.nc-product-cell
span {
  color:
    var(
      --nc-text
    );

  font-size:
    9.5px;

  font-weight:
    700;
}


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

@media (
  max-width:
    820px
) {

  #pageNotasCredito
  .nc-table-row >
  td::before {
    color:
      var(
        --nc-text
      ) !important;

    font-size:
      7.5px !important;

    font-weight:
      900 !important;
  }


  #pageNotasCredito
  .nc-table-row >
  td {
    color:
      var(
        --nc-text
      );

    font-size:
      11px !important;

    font-weight:
      750 !important;
  }


  #pageNotasCredito
  .nc-number-cell__number,
  #pageNotasCredito
  .nc-client-cell__name,
  #pageNotasCredito
  .nc-money,
  #pageNotasCredito
  .nc-origin-cell
  strong,
  #pageNotasCredito
  .nc-value-stack
  strong {
    font-size:
      11px !important;

    font-weight:
      900 !important;
  }


  #pageNotasCredito
  .nc-number-cell__meta,
  #pageNotasCredito
  .nc-client-cell__legal,
  #pageNotasCredito
  .nc-client-cell__meta,
  #pageNotasCredito
  .nc-origin-cell
  small,
  #pageNotasCredito
  .nc-value-stack
  small {
    font-size:
      8.5px !important;

    font-weight:
      750 !important;
  }


  #pageNotasCredito
  .nc-detail-tab {
    font-size:
      9px !important;

    font-weight:
      850 !important;
  }


  #pageNotasCredito
  .nc-detail-tab.is-active {
    font-weight:
      900 !important;
  }


  #pageNotasCredito
  .nc-detail-table
  td {
    font-size:
      10px !important;

    font-weight:
      750 !important;
  }


  #pageNotasCredito
  .nc-detail-table
  td::before {
    color:
      var(
        --nc-text
      );

    font-size:
      7px;

    font-weight:
      900;
  }


  #pageNotasCredito
  .nc-icon-btn--close {
    width:
      40px !important;

    height:
      40px !important;

    min-width:
      40px !important;

    flex-basis:
      40px !important;
  }
}


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

html[data-theme="dark"]
#pageNotasCredito,
body[data-theme="dark"]
#pageNotasCredito,
html.dark
#pageNotasCredito,
body.dark
#pageNotasCredito,
body.dark-mode
#pageNotasCredito {
  --nc-text:
    #d5d5d5;

  --nc-text-strong:
    #f3f3f3;

  --nc-muted:
    #b1b1b1;

  --nc-muted-2:
    #909090;
}/* =========================================================
   WIRTZ HUB · NOTAS DE CRÉDITO
   FIX FINAL · BOTONES + TOPBAR + DARK MODE

   AGREGAR AL FINAL DE:
   frontend/src/pages/facturacion-cobranzas/notas-credito/
   notas-credito.css
   ========================================================= */


/* =========================================================
   BOTÓN PRIMARY
   NUEVA NOTA / APLICAR FACTURA
   LIGHT MODE
   ========================================================= */

#pageNotasCredito
.nc-btn--primary {
  color:
    #ffffff
    !important;

  background:
    #0d1117
    !important;

  border-color:
    #0d1117
    !important;

  font-weight:
    900
    !important;

  opacity:
    1;
}


#pageNotasCredito
.nc-btn--primary
span {
  color:
    #ffffff
    !important;

  font-weight:
    900
    !important;
}


#pageNotasCredito
.nc-btn--primary
svg {
  color:
    #ffffff
    !important;

  stroke:
    #ffffff
    !important;
}


#pageNotasCredito
.nc-btn--primary:hover:not(
  :disabled
) {
  color:
    #ffffff
    !important;

  background:
    #1a1f27
    !important;

  border-color:
    #1a1f27
    !important;
}


/* =========================================================
   NUEVA NOTA DE CRÉDITO
   ESPECÍFICO
   ========================================================= */

#pageNotasCredito
[data-action="new-credit-note"] {
  color:
    #ffffff
    !important;

  font-size:
    12px;

  font-weight:
    900
    !important;
}


#pageNotasCredito
[data-action="new-credit-note"]
span {
  color:
    #ffffff
    !important;

  font-weight:
    900
    !important;
}


/* =========================================================
   APLICAR A FACTURA
   ESPECÍFICO
   ========================================================= */

#pageNotasCredito
[data-action="apply-note"] {
  color:
    #ffffff
    !important;

  font-size:
    12px;

  font-weight:
    900
    !important;

  background:
    #0d1117
    !important;

  border-color:
    #0d1117
    !important;
}


#pageNotasCredito
[data-action="apply-note"]
svg {
  color:
    #ffffff
    !important;

  stroke:
    #ffffff
    !important;
}


/* =========================================================
   ANULAR · LIGHT
   ========================================================= */

#pageNotasCredito
.nc-btn--danger-outline,
#pageNotasCredito
[data-action="cancel-note"] {
  color:
    #b42318
    !important;

  background:
    #ffffff
    !important;

  border:
    1px
    solid
    #d59c98
    !important;

  font-weight:
    900
    !important;
}


#pageNotasCredito
.nc-btn--danger-outline
span,
#pageNotasCredito
[data-action="cancel-note"]
span {
  color:
    #b42318
    !important;

  font-weight:
    900
    !important;
}


#pageNotasCredito
.nc-btn--danger-outline
svg,
#pageNotasCredito
[data-action="cancel-note"]
svg {
  color:
    #b42318
    !important;

  stroke:
    #b42318
    !important;
}


/* =========================================================
   ANULAR DESHABILITADO
   QUE SIGA SIENDO LEGIBLE
   ========================================================= */

#pageNotasCredito
.nc-btn--danger-outline:disabled,
#pageNotasCredito
[data-action="cancel-note"]:disabled {
  opacity:
    .78
    !important;

  color:
    #a7332b
    !important;

  background:
    #fffafa
    !important;

  border-color:
    #d8aaa6
    !important;
}


#pageNotasCredito
.nc-btn--danger-outline:disabled
svg,
#pageNotasCredito
[data-action="cancel-note"]:disabled
svg {
  color:
    #a7332b
    !important;

  stroke:
    #a7332b
    !important;
}


/* =========================================================
   DARK MODE
   PRIMARY
   BLANCO CON TEXTO NEGRO
   ========================================================= */

html[data-theme="dark"]
#pageNotasCredito
.nc-btn--primary,
body[data-theme="dark"]
#pageNotasCredito
.nc-btn--primary,
html.dark
#pageNotasCredito
.nc-btn--primary,
body.dark
#pageNotasCredito
.nc-btn--primary,
body.dark-mode
#pageNotasCredito
.nc-btn--primary {
  color:
    #080808
    !important;

  background:
    #f4f4f4
    !important;

  border-color:
    #f4f4f4
    !important;

  font-weight:
    900
    !important;
}


html[data-theme="dark"]
#pageNotasCredito
.nc-btn--primary
span,
body[data-theme="dark"]
#pageNotasCredito
.nc-btn--primary
span,
html.dark
#pageNotasCredito
.nc-btn--primary
span,
body.dark
#pageNotasCredito
.nc-btn--primary
span,
body.dark-mode
#pageNotasCredito
.nc-btn--primary
span {
  color:
    #080808
    !important;
}


html[data-theme="dark"]
#pageNotasCredito
.nc-btn--primary
svg,
body[data-theme="dark"]
#pageNotasCredito
.nc-btn--primary
svg,
html.dark
#pageNotasCredito
.nc-btn--primary
svg,
body.dark
#pageNotasCredito
.nc-btn--primary
svg,
body.dark-mode
#pageNotasCredito
.nc-btn--primary
svg {
  color:
    #080808
    !important;

  stroke:
    #080808
    !important;
}


/* =========================================================
   DARK MODE · ANULAR
   ========================================================= */

html[data-theme="dark"]
#pageNotasCredito
.nc-btn--danger-outline,
body[data-theme="dark"]
#pageNotasCredito
.nc-btn--danger-outline,
html.dark
#pageNotasCredito
.nc-btn--danger-outline,
body.dark
#pageNotasCredito
.nc-btn--danger-outline,
body.dark-mode
#pageNotasCredito
.nc-btn--danger-outline {
  color:
    #ff8b82
    !important;

  background:
    #110707
    !important;

  border-color:
    #7d312c
    !important;

  font-weight:
    900
    !important;
}


html[data-theme="dark"]
#pageNotasCredito
.nc-btn--danger-outline
span,
body[data-theme="dark"]
#pageNotasCredito
.nc-btn--danger-outline
span,
html.dark
#pageNotasCredito
.nc-btn--danger-outline
span,
body.dark
#pageNotasCredito
.nc-btn--danger-outline
span,
body.dark-mode
#pageNotasCredito
.nc-btn--danger-outline
span {
  color:
    #ff8b82
    !important;
}


html[data-theme="dark"]
#pageNotasCredito
.nc-btn--danger-outline
svg,
body[data-theme="dark"]
#pageNotasCredito
.nc-btn--danger-outline
svg,
html.dark
#pageNotasCredito
.nc-btn--danger-outline
svg,
body.dark
#pageNotasCredito
.nc-btn--danger-outline
svg,
body.dark-mode
#pageNotasCredito
.nc-btn--danger-outline
svg {
  color:
    #ff8b82
    !important;

  stroke:
    #ff8b82
    !important;
}


/* =========================================================
   DARK MODE · ANULAR DISABLED
   ========================================================= */

html[data-theme="dark"]
#pageNotasCredito
.nc-btn--danger-outline:disabled,
body[data-theme="dark"]
#pageNotasCredito
.nc-btn--danger-outline:disabled,
html.dark
#pageNotasCredito
.nc-btn--danger-outline:disabled,
body.dark
#pageNotasCredito
.nc-btn--danger-outline:disabled,
body.dark-mode
#pageNotasCredito
.nc-btn--danger-outline:disabled {
  opacity:
    .82
    !important;

  color:
    #e87a72
    !important;

  background:
    #100707
    !important;

  border-color:
    #65302c
    !important;
}


/* =========================================================
   TOPBAR ATRÁS DEL DETAIL
   ========================================================= */

body:has(#pageNotasCredito)
.topbar,
body:has(#pageNotasCredito)
.app-topbar,
body:has(#pageNotasCredito)
.app-main >
header,
body:has(#pageNotasCredito)
header.topbar,
body:has(#pageNotasCredito)
#topbar {
  position:
    relative
    !important;

  z-index:
    1000
    !important;
}


/* =========================================================
   DETAIL ARRIBA DEL TOPBAR
   ========================================================= */

#pageNotasCredito
.nc-detail-overlay {
  position:
    fixed
    !important;

  top:
    0
    !important;

  right:
    0
    !important;

  bottom:
    0
    !important;

  left:
    0
    !important;

  inset:
    0
    !important;

  width:
    100vw
    !important;

  height:
    100dvh
    !important;

  max-width:
    100vw
    !important;

  max-height:
    100dvh
    !important;

  z-index:
    310000
    !important;

  overflow:
    hidden
    !important;

  isolation:
    isolate;
}


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

#pageNotasCredito
.nc-detail-overlay__backdrop,
#pageNotasCredito
.nc-detail-backdrop {
  position:
    absolute
    !important;

  inset:
    0
    !important;

  z-index:
    1
    !important;
}


/* =========================================================
   DETAIL PANEL
   ========================================================= */

#pageNotasCredito
.nc-detail {
  position:
    absolute
    !important;

  top:
    0
    !important;

  right:
    0
    !important;

  bottom:
    0
    !important;

  width:
    min(
      1540px,
      100vw
    )
    !important;

  height:
    100dvh
    !important;

  max-height:
    100dvh
    !important;

  z-index:
    2
    !important;

  overflow:
    hidden
    !important;
}


/* =========================================================
   FOOTER TAMBIÉN ATRÁS
   ========================================================= */

body:has(#pageNotasCredito)
footer,
body:has(#pageNotasCredito)
.app-footer {
  z-index:
    1000
    !important;
}


/* =========================================================
   MODALES SIGUEN ARRIBA DEL DETAIL
   ========================================================= */

#pageNotasCredito
.nc-modal-overlay,
body:has(#pageNotasCredito)
#ncModal {
  z-index:
    320000
    !important;
}


/* =========================================================
   MODO OSCURO · BOTONES SECUNDARIOS MÁS FIRMES
   ========================================================= */

html[data-theme="dark"]
#pageNotasCredito
.nc-btn--secondary,
body[data-theme="dark"]
#pageNotasCredito
.nc-btn--secondary,
html.dark
#pageNotasCredito
.nc-btn--secondary,
body.dark
#pageNotasCredito
.nc-btn--secondary,
body.dark-mode
#pageNotasCredito
.nc-btn--secondary {
  color:
    #f0f0f0
    !important;

  background:
    #101010
    !important;

  border-color:
    #3c3c3c
    !important;

  font-weight:
    850
    !important;
}


/* =========================================================
   TODA LA FILA DE ACCIONES DEL DETAIL
   MÁS LEGIBLE
   ========================================================= */

#pageNotasCredito
.nc-detail-actions
.nc-btn {
  font-size:
    12px;

  font-weight:
    900
    !important;
}


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

@media (
  max-width:
    820px
) {

  #pageNotasCredito
  .nc-detail-overlay {
    top:
      0
      !important;

    height:
      100dvh
      !important;

    max-height:
      100dvh
      !important;
  }


  #pageNotasCredito
  .nc-detail {
    width:
      100vw
      !important;

    height:
      100dvh
      !important;

    max-height:
      100dvh
      !important;
  }


  #pageNotasCredito
  .nc-header__actions
  .nc-btn,
  #pageNotasCredito
  .nc-detail-actions
  .nc-btn {
    font-size:
      10px;

    font-weight:
      900
      !important;
  }
}/* =========================================================
   WIRTZ HUB · NOTAS DE CRÉDITO
   FIX FINAL · DETAIL DEBAJO DEL TOPBAR

   TOPBAR:
   - siempre visible
   - arriba del detail

   DETAIL:
   - empieza debajo del topbar
   - ocupa todo el resto de la pantalla
   ========================================================= */


/* =========================================================
   TOPBAR ARRIBA
   ========================================================= */

body:has(#pageNotasCredito)
.topbar,
body:has(#pageNotasCredito)
.app-topbar,
body:has(#pageNotasCredito)
.app-main > header,
body:has(#pageNotasCredito)
header.topbar,
body:has(#pageNotasCredito)
#topbar {
  position:
    relative !important;

  z-index:
    320000 !important;
}


/* =========================================================
   DETAIL OVERLAY
   ARRANCA DEBAJO DEL TOPBAR
   ========================================================= */

#pageNotasCredito
.nc-detail-overlay {
  position:
    fixed !important;

  top:
    58px !important;

  right:
    0 !important;

  bottom:
    0 !important;

  left:
    0 !important;

  width:
    100vw !important;

  height:
    calc(
      100dvh -
      58px
    ) !important;

  max-width:
    100vw !important;

  max-height:
    calc(
      100dvh -
      58px
    ) !important;

  margin:
    0 !important;

  padding:
    0 !important;

  overflow:
    hidden !important;

  z-index:
    310000 !important;

  isolation:
    isolate;
}


/* =========================================================
   BACKDROP
   SOLO DESDE DEBAJO DEL TOPBAR
   ========================================================= */

#pageNotasCredito
.nc-detail-overlay__backdrop,
#pageNotasCredito
.nc-detail-backdrop {
  position:
    absolute !important;

  top:
    0 !important;

  right:
    0 !important;

  bottom:
    0 !important;

  left:
    0 !important;

  z-index:
    1 !important;
}


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

#pageNotasCredito
.nc-detail {
  position:
    absolute !important;

  top:
    0 !important;

  right:
    0 !important;

  bottom:
    0 !important;

  width:
    min(
      1540px,
      100vw
    ) !important;

  height:
    100% !important;

  max-height:
    100% !important;

  z-index:
    2 !important;

  overflow:
    hidden !important;
}


/* =========================================================
   EL CONTENIDO DEL DETAIL ES EL QUE SCROLLEA
   ========================================================= */

#pageNotasCredito
.nc-detail__content {
  flex:
    1
    1
    0 !important;

  min-height:
    0 !important;

  overflow-x:
    hidden !important;

  overflow-y:
    auto !important;

  overscroll-behavior:
    contain;

  -webkit-overflow-scrolling:
    touch;
}


/* =========================================================
   MODALES
   TIENEN QUE QUEDAR ARRIBA DE TODO
   ========================================================= */

#pageNotasCredito
.nc-modal-overlay,
body:has(#pageNotasCredito)
#ncModal {
  z-index:
    330000 !important;
}


/* =========================================================
   MOBILE
   MISMA REGLA
   ========================================================= */

@media (
  max-width:
    820px
) {

  #pageNotasCredito
  .nc-detail-overlay {
    top:
      58px !important;

    height:
      calc(
        100dvh -
        58px
      ) !important;

    max-height:
      calc(
        100dvh -
        58px
      ) !important;
  }


  #pageNotasCredito
  .nc-detail {
    width:
      100vw !important;

    height:
      100% !important;

    max-height:
      100% !important;
  }
}/* =========================================================
   WIRTZ HUB · NOTAS DE CRÉDITO
   DIVISIONES / BORDES MÁS VISIBLES
   AGREGAR AL FINAL DE:
   frontend/src/pages/facturacion-cobranzas/notas-credito/
   notas-credito.css
   ========================================================= */


/* =========================================================
   LIGHT MODE
   ========================================================= */

#pageNotasCredito {
  --nc-border:
    #c9ced6;

  --nc-border-strong:
    #aeb5bf;
}


/* =========================================================
   PANEL PRINCIPAL
   ========================================================= */

#pageNotasCredito
.nc-panel,
#pageNotasCredito
.nc-metric-card,
#pageNotasCredito
.nc-detail-card,
#pageNotasCredito
.nc-modal,
#pageNotasCredito
.nc-info-box,
#pageNotasCredito
.nc-confirm,
#pageNotasCredito
.nc-origin-preview__card {
  border-color:
    var(
      --nc-border-strong
    ) !important;
}


/* =========================================================
   CABECERAS
   ========================================================= */

#pageNotasCredito
.nc-panel__header,
#pageNotasCredito
.nc-detail__header,
#pageNotasCredito
.nc-detail-card__header,
#pageNotasCredito
.nc-modal__header {
  border-bottom-color:
    var(
      --nc-border-strong
    ) !important;
}


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

#pageNotasCredito
.nc-toolbar,
#pageNotasCredito
.nc-advanced-filters,
#pageNotasCredito
.nc-detail-actions,
#pageNotasCredito
.nc-detail-tabs {
  border-bottom-color:
    var(
      --nc-border-strong
    ) !important;
}


/* =========================================================
   TABLA PRINCIPAL
   ========================================================= */

#pageNotasCredito
.nc-table th {
  border-bottom-color:
    var(
      --nc-border-strong
    ) !important;
}


#pageNotasCredito
.nc-table td {
  border-bottom-color:
    var(
      --nc-border
    ) !important;
}


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

#pageNotasCredito
.nc-detail__summary {
  border-bottom-color:
    var(
      --nc-border-strong
    ) !important;
}


#pageNotasCredito
.nc-detail-stat {
  border-color:
    var(
      --nc-border-strong
    ) !important;
}


/* =========================================================
   DETAIL FIELDS
   ========================================================= */

#pageNotasCredito
.nc-detail-field {
  border-right-color:
    var(
      --nc-border-strong
    ) !important;

  border-bottom-color:
    var(
      --nc-border-strong
    ) !important;
}


/* =========================================================
   TOTALES
   ========================================================= */

#pageNotasCredito
.nc-total-row {
  border-bottom-color:
    var(
      --nc-border-strong
    ) !important;
}


#pageNotasCredito
.nc-total-row--grand {
  border-top-color:
    var(
      --nc-border-strong
    ) !important;

  border-bottom-color:
    var(
      --nc-border-strong
    ) !important;
}


/* =========================================================
   TABLA DEL DETAIL
   ========================================================= */

#pageNotasCredito
.nc-detail-table th {
  border-bottom-color:
    var(
      --nc-border-strong
    ) !important;
}


#pageNotasCredito
.nc-detail-table td {
  border-bottom-color:
    var(
      --nc-border
    ) !important;
}


/* =========================================================
   INPUTS / SELECTS
   ========================================================= */

#pageNotasCredito
.nc-search input,
#pageNotasCredito
.nc-select-wrap select,
#pageNotasCredito
.nc-advanced-filters input,
#pageNotasCredito
.nc-advanced-filters select,
#pageNotasCredito
input,
#pageNotasCredito
select,
#pageNotasCredito
textarea {
  border-color:
    var(
      --nc-border-strong
    ) !important;
}


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

#pageNotasCredito
.nc-btn--secondary,
#pageNotasCredito
.nc-icon-btn {
  border-color:
    var(
      --nc-border-strong
    ) !important;
}


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

@media (
  max-width:
    820px
) {

  #pageNotasCredito
  .nc-table-row {
    border-color:
      var(
        --nc-border-strong
      ) !important;
  }


  #pageNotasCredito
  .nc-table-row >
  td {
    border-right-color:
      var(
        --nc-border-strong
      ) !important;

    border-bottom-color:
      var(
        --nc-border-strong
      ) !important;
  }


  #pageNotasCredito
  .nc-detail-table
  tr {
    border-color:
      var(
        --nc-border-strong
      ) !important;
  }


  #pageNotasCredito
  .nc-detail-table
  td {
    border-right-color:
      var(
        --nc-border-strong
      ) !important;

    border-bottom-color:
      var(
        --nc-border-strong
      ) !important;
  }


  #pageNotasCredito
  .nc-detail-card {
    border-width:
      1px !important;

    border-color:
      var(
        --nc-border-strong
      ) !important;
  }
}


/* =========================================================
   DARK MODE
   UN POCO MÁS DE CONTRASTE
   ========================================================= */

html[data-theme="dark"]
#pageNotasCredito,
body[data-theme="dark"]
#pageNotasCredito,
html.dark
#pageNotasCredito,
body.dark
#pageNotasCredito,
body.dark-mode
#pageNotasCredito {
  --nc-border:
    #343434;

  --nc-border-strong:
    #4a4a4a;
}


/* =========================================================
   DARK MODE · CARDS / PANELS
   ========================================================= */

html[data-theme="dark"]
#pageNotasCredito
.nc-panel,
html[data-theme="dark"]
#pageNotasCredito
.nc-metric-card,
html[data-theme="dark"]
#pageNotasCredito
.nc-detail-card,
html[data-theme="dark"]
#pageNotasCredito
.nc-detail-stat,
body[data-theme="dark"]
#pageNotasCredito
.nc-panel,
body[data-theme="dark"]
#pageNotasCredito
.nc-metric-card,
body[data-theme="dark"]
#pageNotasCredito
.nc-detail-card,
body[data-theme="dark"]
#pageNotasCredito
.nc-detail-stat,
body.dark
#pageNotasCredito
.nc-panel,
body.dark
#pageNotasCredito
.nc-metric-card,
body.dark
#pageNotasCredito
.nc-detail-card,
body.dark
#pageNotasCredito
.nc-detail-stat {
  border-color:
    #454545 !important;
}/* UBICACIÓN:
   frontend/src/pages/facturacion-cobranzas/notas-credito/notas-credito.css

   AGREGAR AL FINAL
*/


/* =========================================================
   FIX DEFINITIVO · MODAL SIEMPRE ARRIBA DEL DETAIL
   ========================================================= */

body:has(#pageNotasCredito)
#ncModalRoot,
#pageNotasCredito
#ncModalRoot,
#pageNotasCredito
.nc-modal-root {
  position:
    fixed
    !important;

  top:
    0
    !important;

  right:
    0
    !important;

  bottom:
    0
    !important;

  left:
    0
    !important;

  width:
    100vw
    !important;

  height:
    100dvh
    !important;

  max-width:
    none
    !important;

  max-height:
    none
    !important;

  margin:
    0
    !important;

  padding:
    0
    !important;

  z-index:
    9999999
    !important;

  pointer-events:
    none;

  isolation:
    isolate;
}


/* =========================================================
   OVERLAY DEL MODAL
   ========================================================= */

body:has(#pageNotasCredito)
#ncModalRoot
.nc-modal-overlay,
#pageNotasCredito
#ncModalRoot
.nc-modal-overlay {
  position:
    fixed
    !important;

  inset:
    0
    !important;

  width:
    100vw
    !important;

  height:
    100dvh
    !important;

  max-width:
    none
    !important;

  max-height:
    none
    !important;

  display:
    flex
    !important;

  align-items:
    center
    !important;

  justify-content:
    center
    !important;

  padding:
    18px
    !important;

  margin:
    0
    !important;

  z-index:
    2
    !important;

  pointer-events:
    auto
    !important;

  overflow:
    hidden
    !important;
}


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

body:has(#pageNotasCredito)
#ncModalRoot
.nc-modal-backdrop,
#pageNotasCredito
#ncModalRoot
.nc-modal-backdrop {
  position:
    absolute
    !important;

  inset:
    0
    !important;

  width:
    100%
    !important;

  height:
    100%
    !important;

  z-index:
    1
    !important;

  pointer-events:
    auto
    !important;

  background:
    rgba(
      8,
      10,
      14,
      0.68
    )
    !important;

  backdrop-filter:
    blur(
      4px
    );

  -webkit-backdrop-filter:
    blur(
      4px
    );
}


/* =========================================================
   VENTANA DEL MODAL
   ========================================================= */

body:has(#pageNotasCredito)
#ncModalRoot
.nc-modal,
#pageNotasCredito
#ncModalRoot
.nc-modal {
  position:
    relative
    !important;

  z-index:
    3
    !important;

  pointer-events:
    auto
    !important;

  width:
    min(
      760px,
      calc(
        100vw -
        36px
      )
    )
    !important;

  max-height:
    calc(
      100dvh -
      36px
    )
    !important;

  overflow:
    hidden
    !important;
}


/* =========================================================
   DETAIL SIEMPRE DEBAJO DEL MODAL
   ========================================================= */

#pageNotasCredito
.nc-detail-overlay {
  z-index:
    310000
    !important;
}


/* =========================================================
   TOPBAR DEBAJO DEL MODAL
   ========================================================= */

body:has(#pageNotasCredito)
.topbar,
body:has(#pageNotasCredito)
.app-topbar,
body:has(#pageNotasCredito)
.app-main > header,
body:has(#pageNotasCredito)
header.topbar,
body:has(#pageNotasCredito)
#topbar {
  z-index:
    320000
    !important;
}


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

html[data-theme="dark"]
#pageNotasCredito
#ncModalRoot
.nc-modal-backdrop,
body[data-theme="dark"]
#pageNotasCredito
#ncModalRoot
.nc-modal-backdrop,
body.dark
#pageNotasCredito
#ncModalRoot
.nc-modal-backdrop,
body.dark-mode
#pageNotasCredito
#ncModalRoot
.nc-modal-backdrop {
  background:
    rgba(
      0,
      0,
      0,
      0.82
    )
    !important;
}


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

@media (
  max-width:
    820px
) {

  body:has(#pageNotasCredito)
  #ncModalRoot
  .nc-modal-overlay,
  #pageNotasCredito
  #ncModalRoot
  .nc-modal-overlay {
    padding:
      10px
      !important;
  }


  body:has(#pageNotasCredito)
  #ncModalRoot
  .nc-modal,
  #pageNotasCredito
  #ncModalRoot
  .nc-modal {
    width:
      calc(
        100vw -
        20px
      )
      !important;

    max-width:
      calc(
        100vw -
        20px
      )
      !important;

    max-height:
      calc(
        100dvh -
        20px
      )
      !important;
  }

}/* =========================================================
   WIRTZ HUB · NOTAS / AJUSTES
   FIX UI NUEVA OPERACIÓN

   AGREGAR AL FINAL DE:
   frontend/src/pages/facturacion-cobranzas/notas-credito/
   notas-credito.css
   ========================================================= */


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

#pageNotasCredito
#ncModalRoot {
  position:
    fixed
    !important;

  inset:
    0
    !important;

  width:
    100vw
    !important;

  height:
    100dvh
    !important;

  z-index:
    9999999
    !important;

  pointer-events:
    none;

  isolation:
    isolate;
}


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

#pageNotasCredito
.nc-modal-layer {
  position:
    fixed
    !important;

  inset:
    0
    !important;

  width:
    100vw
    !important;

  height:
    100dvh
    !important;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  padding:
    24px;

  z-index:
    9999999
    !important;

  pointer-events:
    auto;

  overflow:
    hidden;
}


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

#pageNotasCredito
.nc-modal-layer__backdrop {
  position:
    absolute;

  inset:
    0;

  z-index:
    1;

  background:
    rgba(
      15,
      18,
      24,
      .60
    );

  backdrop-filter:
    blur(
      4px
    );

  -webkit-backdrop-filter:
    blur(
      4px
    );
}


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

#pageNotasCredito
.nc-modal-layer
.nc-modal {
  position:
    relative
    !important;

  z-index:
    2
    !important;

  width:
    min(
      900px,
      calc(
        100vw -
        48px
      )
    )
    !important;

  max-width:
    900px
    !important;

  max-height:
    calc(
      100dvh -
      48px
    )
    !important;

  display:
    flex;

  flex-direction:
    column;

  color:
    var(--nc-text);

  background:
    var(--nc-surface);

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

  border-radius:
    16px;

  box-shadow:
    0
    24px
    70px
    rgba(
      15,
      23,
      42,
      .22
    );

  overflow:
    hidden;
}


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

#pageNotasCredito
.nc-modal-layer
.nc-modal__header {
  min-height:
    74px;

  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    18px;

  padding:
    16px
    18px;

  background:
    var(--nc-surface);

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


#pageNotasCredito
.nc-modal-layer
.nc-modal__header h2 {
  margin:
    0;

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

  font-size:
    18px;

  font-weight:
    850;

  line-height:
    1.2;

  letter-spacing:
    -.02em;
}


#pageNotasCredito
.nc-modal-layer
.nc-modal__header p {
  margin:
    5px
    0
    0;

  color:
    var(--nc-muted);

  font-size:
    11.5px;

  font-weight:
    550;

  line-height:
    1.45;
}


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

#pageNotasCredito
.nc-modal-layer
.nc-modal__body {
  flex:
    1
    1
    auto;

  min-height:
    0;

  padding:
    18px;

  overflow-y:
    auto;

  overflow-x:
    hidden;

  background:
    var(--nc-surface);
}


/* =========================================================
   CREATE LAYOUT
   ========================================================= */

#pageNotasCredito
.nc-create-layout {
  width:
    100%;

  display:
    flex;

  flex-direction:
    column;

  gap:
    18px;
}


/* =========================================================
   BLOQUES CREACIÓN
   ========================================================= */

#pageNotasCredito
.nc-create-block {
  width:
    100%;

  min-width:
    0;

  padding:
    0;

  background:
    transparent;
}


#pageNotasCredito
.nc-create-block__header {
  display:
    flex;

  align-items:
    flex-start;

  gap:
    10px;

  margin-bottom:
    10px;
}


#pageNotasCredito
.nc-create-block__header >
span:first-child {
  width:
    26px;

  height:
    26px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  flex:
    0
    0
    26px;

  color:
    #ffffff;

  background:
    #111827;

  border-radius:
    8px;

  font-size:
    11px;

  font-weight:
    850;
}


#pageNotasCredito
.nc-create-block__header >
div {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    2px;
}


#pageNotasCredito
.nc-create-block__header
strong {
  color:
    var(--nc-text-strong);

  font-size:
    13px;

  font-weight:
    850;

  line-height:
    1.3;
}


#pageNotasCredito
.nc-create-block__header
small {
  color:
    var(--nc-muted);

  font-size:
    10.5px;

  font-weight:
    550;

  line-height:
    1.4;
}


/* =========================================================
   GRID TIPO OPERACIÓN
   ========================================================= */

#pageNotasCredito
.nc-create-operation {
  display:
    grid;

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

  gap:
    10px;

  width:
    100%;
}


/* =========================================================
   OPCIÓN OPERACIÓN
   ========================================================= */

#pageNotasCredito
.nc-create-operation__option {
  position:
    relative;

  min-width:
    0;

  min-height:
    112px;

  display:
    flex;

  align-items:
    flex-start;

  gap:
    12px;

  padding:
    14px;

  color:
    var(--nc-text);

  text-align:
    left;

  background:
    var(--nc-surface);

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

  border-radius:
    12px;

  cursor:
    pointer;

  transition:
    background
    var(--nc-transition),
    border-color
    var(--nc-transition),
    transform
    var(--nc-transition),
    box-shadow
    var(--nc-transition);
}


#pageNotasCredito
.nc-create-operation__option:hover {
  background:
    var(--nc-surface-2);

  border-color:
    var(--nc-text-strong);
}


#pageNotasCredito
.nc-create-operation__option:active {
  transform:
    translateY(
      1px
    );
}


#pageNotasCredito
.nc-create-operation__option.is-active {
  color:
    var(--nc-text-strong);

  background:
    var(--nc-surface);

  border-color:
    var(--nc-text-strong);

  box-shadow:
    inset
    0
    0
    0
    1px
    var(--nc-text-strong);
}


/* =========================================================
   ICONO OPCIÓN
   ========================================================= */

#pageNotasCredito
.nc-create-operation__option
.nc-create-mode__icon {
  width:
    42px;

  height:
    42px;

  flex:
    0
    0
    42px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

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

  background:
    var(--nc-surface-2);

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

  border-radius:
    10px;
}


#pageNotasCredito
.nc-create-operation__option
.nc-create-mode__icon svg {
  width:
    19px;

  height:
    19px;

  stroke-width:
    2;
}


/* =========================================================
   COPY OPCIÓN
   ========================================================= */

#pageNotasCredito
.nc-create-operation__option
.nc-create-mode__copy {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    4px;
}


#pageNotasCredito
.nc-create-operation__option
.nc-create-mode__copy strong {
  color:
    var(--nc-text-strong);

  font-size:
    11.5px;

  font-weight:
    850;

  line-height:
    1.3;
}


#pageNotasCredito
.nc-create-operation__option
.nc-create-mode__copy small {
  color:
    var(--nc-muted);

  font-size:
    10px;

  font-weight:
    550;

  line-height:
    1.4;
}


/* =========================================================
   ORIGEN
   ========================================================= */

#pageNotasCredito
.nc-create-mode {
  display:
    grid;

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

  gap:
    10px;

  margin:
    0;
}


#pageNotasCredito
.nc-create-mode__option {
  position:
    relative;

  min-width:
    0;

  min-height:
    88px;

  display:
    flex;

  align-items:
    flex-start;

  gap:
    12px;

  padding:
    14px;

  text-align:
    left;

  color:
    var(--nc-text);

  background:
    var(--nc-surface);

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

  border-radius:
    12px;

  cursor:
    pointer;

  transition:
    background
    var(--nc-transition),
    border-color
    var(--nc-transition),
    box-shadow
    var(--nc-transition),
    transform
    var(--nc-transition);
}


#pageNotasCredito
.nc-create-mode__option:hover {
  background:
    var(--nc-surface-2);

  border-color:
    var(--nc-text-strong);
}


#pageNotasCredito
.nc-create-mode__option.is-active {
  border-color:
    var(--nc-text-strong);

  box-shadow:
    inset
    0
    0
    0
    1px
    var(--nc-text-strong);
}


/* =========================================================
   PREVIEW OPERACIÓN
   ========================================================= */

#pageNotasCredito
#ncCreateOperationInfo {
  width:
    100%;

  margin:
    0;
}


#pageNotasCredito
#ncCreateOperationInfo
.nc-origin-preview__card {
  border:
    1px
    solid
    var(--nc-border-strong);

  border-radius:
    12px;

  overflow:
    hidden;
}


/* =========================================================
   SECCIÓN FORMULARIO
   ========================================================= */

#pageNotasCredito
.nc-create-section {
  width:
    100%;

  min-width:
    0;

  padding:
    16px;

  background:
    var(--nc-surface-2);

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

  border-radius:
    12px;
}


#pageNotasCredito
.nc-create-section[hidden] {
  display:
    none
    !important;
}


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

#pageNotasCredito
.nc-create-section
.nc-form-grid {
  gap:
    12px;
}


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

#pageNotasCredito
.nc-create-section
.nc-field >
span {
  margin-bottom:
    5px;

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

  font-size:
    10px;

  font-weight:
    800;
}


#pageNotasCredito
.nc-create-section
.nc-field >
small {
  margin-top:
    5px;

  color:
    var(--nc-muted);

  font-size:
    9.5px;

  line-height:
    1.4;
}


/* =========================================================
   INPUTS
   ========================================================= */

#pageNotasCredito
.nc-create-section
input,
#pageNotasCredito
.nc-create-section
select,
#pageNotasCredito
.nc-create-section
textarea {
  color:
    var(--nc-text-strong);

  background:
    var(--nc-surface);

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

  border-radius:
    9px;

  outline:
    none;
}


#pageNotasCredito
.nc-create-section
input:focus,
#pageNotasCredito
.nc-create-section
select:focus,
#pageNotasCredito
.nc-create-section
textarea:focus {
  border-color:
    var(--nc-text-strong);

  box-shadow:
    0
    0
    0
    2px
    color-mix(
      in srgb,
      var(--nc-text-strong)
      8%,
      transparent
    );
}


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

#pageNotasCredito
.nc-create-section
.nc-modal__footer {
  margin-top:
    18px;

  padding-top:
    14px;

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


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

html[data-theme="dark"]
#pageNotasCredito
.nc-modal-layer
.nc-modal,
body[data-theme="dark"]
#pageNotasCredito
.nc-modal-layer
.nc-modal,
body.dark
#pageNotasCredito
.nc-modal-layer
.nc-modal,
body.dark-mode
#pageNotasCredito
.nc-modal-layer
.nc-modal {
  background:
    #050505;

  border-color:
    #454545;

  box-shadow:
    0
    28px
    80px
    rgba(
      0,
      0,
      0,
      .72
    );
}


html[data-theme="dark"]
#pageNotasCredito
.nc-modal-layer__backdrop,
body[data-theme="dark"]
#pageNotasCredito
.nc-modal-layer__backdrop,
body.dark
#pageNotasCredito
.nc-modal-layer__backdrop,
body.dark-mode
#pageNotasCredito
.nc-modal-layer__backdrop {
  background:
    rgba(
      0,
      0,
      0,
      .82
    );
}


html[data-theme="dark"]
#pageNotasCredito
.nc-create-block__header >
span:first-child,
body[data-theme="dark"]
#pageNotasCredito
.nc-create-block__header >
span:first-child,
body.dark
#pageNotasCredito
.nc-create-block__header >
span:first-child,
body.dark-mode
#pageNotasCredito
.nc-create-block__header >
span:first-child {
  color:
    #000000;

  background:
    #ffffff;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (
  max-width:
    900px
) {

  #pageNotasCredito
  .nc-create-operation {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );
  }

}


@media (
  max-width:
    700px
) {

  #pageNotasCredito
  .nc-modal-layer {
    padding:
      10px;
  }


  #pageNotasCredito
  .nc-modal-layer
  .nc-modal {
    width:
      calc(
        100vw -
        20px
      )
      !important;

    max-width:
      calc(
        100vw -
        20px
      )
      !important;

    max-height:
      calc(
        100dvh -
        20px
      )
      !important;

    border-radius:
      12px;
  }


  #pageNotasCredito
  .nc-create-operation {
    grid-template-columns:
      1fr;
  }


  #pageNotasCredito
  .nc-create-mode {
    grid-template-columns:
      1fr;
  }


  #pageNotasCredito
  .nc-create-operation__option {
    min-height:
      82px;
  }


  #pageNotasCredito
  .nc-create-section {
    padding:
      12px;
  }

}