@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400&display=swap");

/* --- Orbis Web: estructura de la aplicación --- */
.ow {
  --ow-side: #1B1923;
  --ow-side-line: #2C2A35;
  --ow-red: #C8002F;
  --ow-req: #FCFFE0;
  --ow-req-line: #EBE860;
  --ow-ro: #E9EAED;
  --ow-line: #DCDEE0;
  --ow-strip: #E8E7EA;
  --ow-btn: #DFDFDF;
  --ow-dark: #27252F;
  --ow-grey: #6C7479;
  --ow-text: #1C1C24;
  --ow-label: #6F6F78;
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  background: #FFFFFF;
  color: var(--ow-text);
  font: 500 12px/1.35 Montserrat, Arial, Helvetica, sans-serif;

  &.noside {
    grid-template-columns: minmax(0, 1fr);

    .ow-side {
      display: none;
    }
  }

  i {
    font-style: normal;
  }
}

.ow-top {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 9px 14px;
  border-bottom: 1px solid #E6E6E6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  background: #FFFFFF;
}

.ow-brand {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex: none;
  min-width: 150px;
  font-size: 16px;
  font-weight: 500;
  color: #222228;

  &::before {
    content: "\f0c9";
    margin-right: 8px;
    font: 900 13px "Font Awesome 6 Free";
    color: #555;
  }

  small {
    font-size: 10px;
    font-weight: 500;
    color: #444;
  }
}

.ow-crumb {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
  color: #444;

  &::before {
    content: "\f015";
    font: 900 11px "Font Awesome 6 Free";
    color: #666;
  }

  > span {
    text-decoration: underline;
  }

  > span + span::before,
  > span + b::before {
    content: "›";
    display: inline-block;
    margin-right: 7px;
    text-decoration: none;
    color: #888;
  }

  > b {
    font-weight: 600;
    color: #222;
  }
}

.ow-user {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  flex: none;
  font-size: 10.5px;
  color: #555;

  > i {
    font-size: 13px;
    color: #555;
  }

  > span {
    display: grid;
    line-height: 1.25;
    color: #666;

    b {
      font-weight: 500;
      color: #333;
    }
  }
}

.ow-side {
  padding: 4px 0;
  background: var(--ow-side);
  color: #ECECF1;
  font-size: 12px;

  > span {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 12px;
    border-bottom: 1px solid var(--ow-side-line);

    > i {
      width: 14px;
      text-align: center;
      font-size: 11.5px;
      color: #C9C9D2;
    }

    &::after {
      content: "\f054";
      margin-left: auto;
      font: 900 9px "Font Awesome 6 Free";
      color: #9A9AA6;
    }

    &.open::after {
      content: "\f077";
    }

    &.sub {
      padding-left: 18px;
      border-bottom: 0;

      &::after {
        content: none;
      }
    }

    &.on {
      background: var(--ow-red);
      color: #FFFFFF;

      > i {
        color: #FFFFFF;
      }
    }
  }
}

.ow-main {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 12px 14px 16px;
  background: #FDFDFD;
}

/* --- Orbis Web: barra de herramientas --- */
.ow-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ow-tb,
.ow-acts {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid #CFCFCF;
  border-radius: 3px;
  background: var(--ow-btn);

  > i,
  > span {
    display: grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-right: 1px solid #C9C9C9;
    font-size: 12.5px;
    color: #2E2E34;

    &:last-child {
      border-right: 0;
    }
  }

  > i {
    padding: 0;
  }
}

.ow-acts {
  margin-left: auto;

  > span {
    font-size: 12px;
  }
}

/* --- Orbis Web: campos --- */
.ow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;

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

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

  /* Rejilla de 12 columnas para copiar el ancho real de cada campo */
  &.c12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  > .s4 {
    grid-column: span 4;
  }

  > .s5 {
    grid-column: span 5;
  }

  > .s6 {
    grid-column: span 6;
  }

  > .s7 {
    grid-column: span 7;
  }

  > .s8 {
    grid-column: span 8;
  }

  > .s9 {
    grid-column: span 9;
  }

  > .s2 {
    grid-column: span 2;
  }

  > .s3 {
    grid-column: span 3;
  }

  > .full {
    grid-column: 1 / -1;
  }
}

.ow-f {
  position: relative;
  min-width: 0;
  min-height: 40px;
  padding: 4px 7px 5px;
  border: 1px solid var(--ow-line);
  border-radius: 2px;
  background: #FFFFFF;

  > small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 10px;
    font-weight: 500;
    color: var(--ow-label);
  }

  > b {
    display: block;
    min-height: 16px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12px;
    font-weight: 600;
    color: var(--ow-text);
  }

  &.req {
    border: 2px solid var(--ow-req-line);
    background: var(--ow-req);
  }

  &.ro {
    background: var(--ow-ro);
    border-color: var(--ow-ro);
  }

  &.req.ro {
    border-color: var(--ow-req-line);
  }

  &.focus {
    border: 2px solid #2A2A30;
    border-radius: 4px;
  }

  &.sel,
  &.srch,
  &.date {
    padding-right: 34px;
  }

  &.sel::after {
    content: "\f078";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: grid;
    place-items: center;
    width: 28px;
    border-left: 1px solid var(--ow-line);
    font: 900 9px "Font Awesome 6 Free";
    color: #444;
  }

  &.srch::before {
    content: "\f002";
    position: absolute;
    right: 36px;
    bottom: 7px;
    font: 900 9px "Font Awesome 6 Free";
    color: #9A9AA3;
  }

  &.date::after {
    content: "\f133";
    position: absolute;
    right: 9px;
    bottom: 7px;
    font: 400 10px "Font Awesome 6 Free";
    color: #9A9AA3;
  }

  &.ck {
    display: flex;
    align-items: center;
    gap: 9px;

    &::before {
      content: "";
      display: grid;
      place-items: center;
      flex: none;
      width: 15px;
      height: 15px;
      border: 1px solid #8A8A92;
      border-radius: 3px;
      background: #FFFFFF;
    }

    &.on::before {
      content: "✓";
      border-color: #33333A;
      font: 700 11px/1 Arial, Helvetica, sans-serif;
      color: #22222A;
    }

    > b {
      font-weight: 500;
      white-space: normal;
    }
  }
}

/* Campo con botón cuadrado al lado (NIF con validación, Sincronizar Crm) */
.ow-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.ow-ib {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 32px;
  border: 1px solid #BDBDBD;
  border-radius: 3px;
  background: #E5E5E5;
  font-size: 12px;
  color: #33333A;

  &.bare {
    border-color: transparent;
    background: transparent;
  }
}

/* Pestañas y panel de pestaña */
.ow-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  padding: 9px 10px 0;
  border-radius: 3px 3px 0 0;
  background: var(--ow-strip);

  > span {
    padding-bottom: 8px;
    font-size: 12px;
    color: #2E2E34;

    &.on {
      border-bottom: 2px solid #2E2E34;
      font-weight: 600;
    }
  }
}

.ow-pane {
  display: grid;
  gap: 6px;
  margin-top: -8px;
  padding: 10px;
  border: 1px solid var(--ow-strip);
  border-top: 0;
}

/* Desplegable abierto */
.ow-drop {
  overflow: hidden;
  border: 1.5px solid #2E2E34;
  border-radius: 3px;
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);

  > span {
    display: block;
    padding: 6px 9px;
    border-bottom: 1px solid #EEEEEE;

    &:last-child {
      border-bottom: 0;
    }

    &.on {
      background: #E6E6E6;
      font-weight: 700;
    }
  }
}

/* --- Orbis Web: páginas de configuración (submenú + contenido) --- */
.ow-cfg {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
}

.ow-menu {
  display: grid;
  align-content: start;
  padding: 4px 14px 6px 0;
  border-right: 1px solid #E3E3E3;

  > span {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 4px;
    border-bottom: 1px solid #EEEEEE;
    font-size: 12px;

    &::before {
      content: "\f0da";
      font: 900 9px "Font Awesome 6 Free";
      color: #333;
    }

    &.more::after {
      content: "\f054";
      margin-left: auto;
      font: 900 9px "Font Awesome 6 Free";
      color: #555;
    }

    &.b {
      font-weight: 700;
    }

    &.on {
      margin: 2px 0;
      border: 1.5px solid #2A2A30;
      border-radius: 5px;
      font-weight: 700;
    }

    &.sub {
      padding-left: 16px;
      border-bottom: 0;
      font-size: 11px;
      font-weight: 700;
    }
  }
}

.ow-find {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 6px 8px;
  border: 1px solid #CCCCCC;
  border-radius: 3px;
  background: #FFFFFF;
  font-size: 11px;
  color: #777;

  &::after {
    content: "\f002";
    font: 900 10px "Font Awesome 6 Free";
    color: #999;
  }
}

.ow-body {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 6px 0 0 16px;
}

.ow-h {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #22222A;
}

/* --- Orbis Web: ventanas modales --- */
.ow-dim {
  display: grid;
  place-items: center;
  padding: 18px 14px;
  background: rgba(70, 70, 78, .55);
}

.ow-modal {
  width: min(100%, 560px);
  overflow: hidden;
  border: 1px solid #CFCFCF;
  border-radius: 3px;
  background: #FFFFFF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);

  &.wide {
    width: 100%;
  }
}

.ow-mh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  background: #E8E8E8;
  font-weight: 600;
  font-size: 13px;

  &.c {
    justify-content: center;
    background: #FFFFFF;
    font-weight: 700;
  }
}

.ow-mb {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
}

.ow-mf {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #E6E6E6;

  &.c {
    justify-content: center;
    border-top: 0;
  }
}

.ow-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  padding: 7px 12px;
  border-radius: 3px;
  background: var(--ow-dark);
  font-size: 12px;
  font-weight: 500;
  color: #FFFFFF;

  &.grey {
    background: var(--ow-grey);
  }

  &.ring {
    outline: 2px solid #9A9AA3;
    outline-offset: 1px;
  }
}

.ow-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;

  > .ow-btn:not(:last-child) {
    border-radius: 3px 0 0 3px;
  }

  > .ow-btn + .ow-btn {
    border-radius: 0 3px 3px 0;
  }
}

/* Pares etiqueta / valor (cabecera de un detalle) */
.ow-kv {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px 12px;

  > div {
    min-width: 0;

    b {
      display: block;
      font-weight: 600;
    }

    span {
      display: block;
      overflow-wrap: anywhere;
      color: #444;
    }
  }
}

.ow-sub {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
}

.ow-pre {
  max-height: 170px;
  overflow: auto;
  padding: 8px 10px;
  border: 1px solid #E6E6E6;
  background: #F9F9F9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 10.5px/1.45 "JetBrains Mono", Consolas, monospace;
  color: #222;
}

/* --- Orbis Web: listados con filtros --- */
.ow-applied {
  font-size: 11px;
  color: #444;

  > span {
    text-decoration: underline;
  }
}

.ow-filters {
  display: grid;
  gap: 8px;
  padding: 10px 12px 12px;
  background: var(--ow-strip);

  > b {
    font-size: 13px;
    font-weight: 600;
  }
}

.ow-search {
  display: flex;
  width: min(100%, 380px);
  height: 30px;

  > span {
    flex: 1;
    border: 1px solid #CCCCCC;
    border-radius: 3px 0 0 3px;
    background: #FFFFFF;
  }

  &::after {
    content: "\f002";
    display: grid;
    place-items: center;
    width: 34px;
    border: 1px solid #CCCCCC;
    border-left: 0;
    border-radius: 0 3px 3px 0;
    background: #E5E5E5;
    font: 900 11px "Font Awesome 6 Free";
    color: #333;
  }
}

.ow-scroll {
  overflow-x: auto;
}

.ow-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;

  th {
    padding: 8px;
    border: 1px solid #E3E3E3;
    background: #FFFFFF;
    text-align: left;
    white-space: nowrap;
    font-weight: 700;

    &::after {
      content: "\f0dc";
      margin-left: 6px;
      font: 900 9px "Font Awesome 6 Free";
      color: #AAAAAA;
    }

    &.ns::after {
      content: none;
    }
  }

  td {
    padding: 8px;
    border: 1px solid #E6E6E6;
    vertical-align: middle;

    &.r {
      text-align: right;
    }

    &.c {
      text-align: center;
    }

    &.mono {
      font: 10.5px/1.35 "JetBrains Mono", Consolas, monospace;
      color: #333;
    }
  }

  tbody tr:nth-child(odd) td {
    background: #F7F7F7;
  }
}

.ow-eye {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 26px;
  border: 1px solid #D5D5D5;
  border-radius: 3px;
  background: #FFFFFF;
  font-size: 12px;
  color: #444;
}


/* --- Clientify: estructura de la aplicación --- */
.cf {
  --cf-rail: #001029;
  --cf-top: #0B1C30;
  --cf-search: #1B3867;
  --cf-blue: #0867E5;
  --cf-blue-dark: #064CAD;
  --cf-yellow: #E1EF42;
  --cf-bg: #F3F3F3;
  --cf-line: #D6D9DE;
  --cf-text: #1D2433;
  --cf-muted: #7A808A;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  background: var(--cf-bg);
  color: var(--cf-text);
  font: 400 12px/1.4 Poppins, Arial, Helvetica, sans-serif;

  i {
    font-style: normal;
  }
}

.cf-top {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 7px 10px 7px 0;
  background: var(--cf-top);
}

.cf-logo {
  flex: none;
  width: 44px;
  text-align: center;
  font: 700 17px Poppins, Arial, sans-serif;
  color: #FFFFFF;
}

.cf-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 230px;
  min-width: 0;
  padding: 6px 10px;
  border-radius: 4px;
  background: var(--cf-search);
  white-space: nowrap;
  font-size: 11px;
  color: #A9B7CC;

  &::before {
    content: "\f002";
    font: 900 10px "Font Awesome 6 Free";
  }
}

.cf-banner {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  padding: 6px 10px;
  border-radius: 3px;
  background: var(--cf-yellow);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 500;
  color: #1C1C1C;
}

.cf-qa {
  flex: none;
  padding: 6px 11px;
  border-radius: 4px;
  background: var(--cf-blue);
  white-space: nowrap;
  font-weight: 500;
  color: #FFFFFF;
}

.cf-me {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 26px;
  border-radius: 5px;
  background: var(--cf-blue);
  font-size: 11px;
  font-weight: 600;
  color: #FFFFFF;
}

.cf-rail {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 8px;
  padding: 10px 0;
  background: var(--cf-rail);

  > i {
    display: grid;
    place-items: center;
    width: 32px;
    height: 28px;
    border-radius: 5px;
    font-size: 13px;
    color: #FFFFFF;

    &.on {
      background: var(--cf-blue-dark);
    }
  }
}

.cf-main {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 10px;
}

/* Página detrás de un panel lateral (oscurecida) + panel */
.cf-split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  min-width: 0;
}

.cf-split.wide {
  grid-template-columns: minmax(0, .5fr) minmax(0, 1.5fr);
}

.cf-behind {
  position: relative;
  min-width: 0;
  padding: 10px;
  overflow: hidden;

  &::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
  }
}

.cf-drawer {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #FFFFFF;
  box-shadow: -6px 0 18px rgba(0, 0, 0, .18);
}

.cf-dh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
  font-size: 14px;
  font-weight: 600;

  &::after {
    content: "\f061";
    font: 900 14px "Font Awesome 6 Free";
    color: #222;
  }
}

.cf-db {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 10px 14px 14px;
  background: #F7F7F8;
}

.cf-box {
  display: grid;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #FFFFFF;
}

.cf-sec {
  font-size: 13px;
  font-weight: 600;
}

/* Fila de formulario: etiqueta a la derecha y control */
.cf-row {
  display: grid;
  grid-template-columns: 40% minmax(0, 1fr);
  align-items: center;
  gap: 12px;

  > label {
    text-align: right;
    font-weight: 500;
    color: #2B2F38;
  }
}

.cf-in {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--cf-line);
  border-radius: 4px;
  background: #FFFFFF;

  &.ph {
    color: #9AA0A8;
  }

  &.sel,
  &.open {
    padding-right: 28px;

    &::after {
      content: "\f0d7";
      position: absolute;
      right: 11px;
      font: 900 11px "Font Awesome 6 Free";
      color: #555;
    }
  }

  &.open {
    border-color: #33333A;

    &::after {
      content: "\f0d8";
    }
  }

  &.addr {
    &::before {
      content: "\f054";
      font: 900 9px "Font Awesome 6 Free";
      color: #555;
    }

    > em {
      margin-left: auto;
      padding-left: 10px;
      border-left: 1px solid var(--cf-line);
      font-style: normal;
      font-size: 11px;
      color: #555;
    }

    > em::after {
      content: "\f192";
      margin-left: 6px;
      font: 400 11px "Font Awesome 6 Free";
      color: var(--cf-blue);
    }
  }
}

.cf-menu {
  overflow: hidden;
  border-radius: 4px;
  background: #FFFFFF;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);

  > span {
    display: block;
    padding: 7px 14px;
    font-size: 12.5px;

    &.ph {
      font-style: italic;
      color: #555;
    }

    &.hl {
      background: #EBF3FC;
    }
  }
}

.cf-sw {
  position: relative;
  display: inline-block;
  width: 26px;
  height: 14px;
  border: 1px solid #CCCCCC;
  border-radius: 8px;
  background: #FFFFFF;

  &::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #CCCCCC;
  }

  &.on {
    border-color: var(--cf-blue);
    background: var(--cf-blue);

    &::after {
      left: 14px;
      background: #FFFFFF;
    }
  }
}

/* Personalizar campos: dos columnas con buscador y lista arrastrable */
.cf-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cf-col {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;

  > b {
    font-size: 12.5px;
    font-weight: 500;
    color: #333;
  }
}

.cf-list {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #E6E8EB;
  border-radius: 6px;
  background: #FFFFFF;
}

.cf-find {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--cf-line);
  border-radius: 4px;
  color: #999;

  &::before {
    content: "\f002";
    font: 900 10px "Font Awesome 6 Free";
    color: #666;
  }

  &.on {
    border: 1.5px solid var(--cf-blue);
    color: var(--cf-text);
  }
}

.cf-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #E3E5E8;
  border-radius: 5px;
  background: #FFFFFF;
  white-space: nowrap;

  &::before {
    content: "\f58e";
    font: 900 10px "Font Awesome 6 Free";
    color: #9A9FA7;
  }

  > i {
    font-size: 11px;
    color: #555;
  }

  > span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  &.bar {
    border-left: 2px solid #D93B3B;
  }
}

.cf-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cf-blue);
}

/* Tarjeta de contacto (columna izquierda de la ficha) */
.cf-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 6px;
  background: #FFFFFF;
}

.cf-contact {
  justify-items: center;
  text-align: center;

  > b {
    font-size: 15px;
    font-weight: 600;
  }
}

.cf-av {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: var(--cf-blue);
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
}

.cf-tag {
  padding: 2px 8px;
  border-radius: 4px;
  background: #E0F9FC;
  font-size: 11px;
  color: #1F7FA6;
}

.cf-owner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;

  small {
    font-size: 11px;
    color: var(--cf-muted);
  }
}

.cf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  padding: 7px 14px;
  border-radius: 5px;
  background: var(--cf-blue);
  font-weight: 500;
  color: #FFFFFF;
}

.cf-link {
  font-weight: 500;
  color: var(--cf-blue);
}

/* Adaptación a pantallas estrechas */
@media (max-width: 920px) {
  .ow {
    grid-template-columns: minmax(0, 1fr);
  }

  .ow-side,
  .ow-user > i {
    display: none;
  }

  .ow-brand {
    min-width: 0;
  }

  .ow-cfg {
    grid-template-columns: minmax(0, 1fr);
  }

  .ow-menu {
    padding-right: 0;
    border-right: 0;
  }

  .ow-body {
    padding-left: 0;
  }

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

  .ow-grid > .s3 {
    grid-column: 1 / -1;
  }

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

    > * {
      grid-column: auto;
    }
  }

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

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

  .cf-rail,
  .cf-behind,
  .cf-banner {
    display: none;
  }

  .cf-split,
  .cf-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .cf-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;

    > label {
      text-align: left;
    }
  }
}

@media (max-width: 520px) {
  .ow-crumb,
  .ow-user,
  .cf-search {
    display: none;
  }

  .ow-grid,
  .ow-grid.c3,
  .ow-grid.c2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .ow-grid > .s2,
  .ow-grid.c12 > * {
    grid-column: 1 / -1;
  }
}
/* Marcadores dentro de la recreación: que no hereden el color, la letra
   ni la colocación de los span de .ow-user, .ow-kv, .ow-tabs u otras
   piezas de .ow */
.ow span.mk {
  display: inline-grid;
  padding: 0;
  font: 700 11px Inter, Arial, sans-serif;
  color: #FFFFFF;
}

/* .ow.keepui: mantiene el menú lateral y la barra superior completos en
   pantallas estrechas, para las capturas que explican esas zonas
   (el menú se apila encima del contenido y la barra pasa a dos líneas) */
@media (max-width: 920px) {
  .ow.keepui {
    .ow-side {
      display: block;
    }

    .ow-user > i {
      display: inline-block;
    }
  }
}

@media (max-width: 520px) {
  .ow.keepui {
    .ow-top {
      flex-wrap: wrap;
      row-gap: 8px;
    }

    .ow-user {
      display: flex;
      flex: 1 1 100%;
      flex-wrap: wrap;
      gap: 8px 12px;
      margin-left: 0;
    }
  }
}

/* --- Grosor del texto en las capturas ---
   Todo el texto de las recreaciones de Orbis Web (.ow) y Clientify (.cf) va en
   grosor normal, salvo los marcadores numerados (.mk), que son anotaciones del
   manual, y los iconos de Font Awesome, que necesitan su propio grosor para
   mostrarse. */
:is(.ow, .cf),
:is(.ow, .cf) *:not(.mk):not([class*="fa-"]) {
  font-weight: 400 !important;
}
