:root {
  --ink: #16262e;
  --muted: #5c717c;
  --line: #d5dee3;
  --paper: #f4f7f8;
  --petro: #0f4c5c;
  --petro-d: #0c3d4a;
  --card: #ffffff;
  --err: #8a2e2e;
  --err-bg: #f8ecec;
}

html#ht_spl,
html#ht_spl body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", "Liberation Sans", "DejaVu Sans", sans-serif;
}

html#ht_spl #wrap {
  max-width: 28rem;
  margin: 10vh auto;
  padding: 1.5rem 1.35rem 1.3rem;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-top: 4px solid var(--petro);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(22, 38, 46, 0.06);
}

html#ht_spl h1,
html#ht_spl #l {
  margin: 0 0 0.8rem;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: 0;
}

html#ht_spl #lp,
html#ht_spl #lu {
  width: 100%;
  box-sizing: border-box;
  margin: 0.35rem 0;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

html#ht_spl #ls {
  margin-top: 0.7rem;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 8px;
  background: var(--petro);
  color: #fff;
  font: inherit;
  font-weight: 650;
}

html#ht_brw {
  background: #e7ecee;
}

html#ht_brw body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1rem;
  row-gap: 0.85rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.85rem 1rem 4.5rem;
  box-sizing: border-box;
  background: transparent;
  color: var(--ink);
  font-family: "Segoe UI", "Liberation Sans", "DejaVu Sans", sans-serif;
}


html#ht_brw #path {
  display: flex !important;
}

html#ht_brw #entree {
  pointer-events: none;
}

html#ht_brw #tree,
html#ht_brw #widget {
  display: none !important;
}

html#ht_brw #wrap {
  margin-left: 0 !important;
}

html#ht_brw #files td,
html#ht_brw #files th {
  color: var(--ink);
  background: #fff;
}

html#ht_brw #files thead th {
  color: var(--muted);
  background: #f8fbfb;
}

html#ht_brw #pro iframe {
  display: block;
  width: 100%;
  background: var(--paper);
  border: 0;
  border-radius: 14px;
}

html.iframe,
html.iframe body {
  background: #f4f7f8 !important;
  color: #16262e !important;
}

html#ht_brw #path {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin: 0;
  padding: 0.35rem 0 0.15rem;
  background: transparent;
  color: var(--ink);
  text-shadow: none;
  font-size: 1.2rem;
  font-weight: 650;
  border-bottom: 1px solid var(--line);
}

html#ht_brw #path #entree {
  width: 2.3rem;
  height: 2.3rem;
  margin: 0 0.35rem 0 0;
  padding: 0;
  overflow: hidden;
  font-size: 0;
  color: transparent;
  background: #fff url("/marca/logo.svg") center / cover no-repeat;
  border: 1px solid var(--line);
  border-radius: 8px;
}

html#ht_brw #path a {
  color: var(--ink);
  text-decoration: none;
  text-shadow: none;
}

html#ht_brw #path::after {
  content: "Transferencia de proyectos de fotogrametría";
  flex: 1 0 100%;
  margin: -0.15rem 0 0.35rem 2.7rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 450;
}

html#ht_brw #acc_info {
  position: static !important;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
}

html#ht_brw #blogout {
  margin-top: 0.25rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--petro-d);
  font: inherit;
  font-size: 0.78rem;
}

html#ht_brw #ops {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 0.8rem;
  max-width: none;
  margin: 0.2rem 0 0;
  padding: 1.15rem 1.15rem 1.05rem;
  white-space: normal;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 10px 28px rgba(22, 38, 46, 0.05);
}

html#ht_brw #ops::before {
  content: "Entrega de fotografías";
  flex: 1 1 14rem;
  padding: 0.2rem 0 0.2rem 3.3rem;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f4c5c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 16V5'/><path d='M8 8l4-4 4 4'/><path d='M5 16.5V19a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5'/></svg>") left center / 2.15rem no-repeat;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

html#ht_brw #ops::after {
  content: "Selecciona los archivos o arrástralos a la página.";
  order: 6;
  flex: 1 0 100%;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 450;
  line-height: 1.4;
}

html#ht_brw #ops a {
  font-size: 0 !important;
  line-height: 1;
  text-shadow: none;
  text-decoration: none;
}

html#ht_brw #opa_srch,
html#ht_brw #opa_bup,
html#ht_brw #opa_md,
html#ht_brw #opa_msg,
html#ht_brw #opa_auc,
html#ht_brw #opa_cfg,
html#ht_brw #repl,
html#ht_brw #wfp {
  display: none !important;
}

html#ht_brw #opa_up,
html#ht_brw #opa_mkd,
html#ht_brw #opa_del,
html#ht_brw #opa_x {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 0.95rem !important;
  border-radius: 9px;
}

html#ht_brw #opa_up {
  background: var(--petro);
  color: #fff !important;
}

html#ht_brw #opa_up.act {
  background: var(--petro-d);
}

html#ht_brw #opa_up::after,
html#ht_brw #opa_mkd::after,
html#ht_brw #opa_del::after,
html#ht_brw #opa_x::after {
  font-size: 0.95rem;
  font-weight: 650;
}

html#ht_brw #opa_up::after { content: "Iniciar carga"; }
html#ht_brw #opa_mkd::after { content: "Nueva carpeta"; color: var(--petro-d); }
html#ht_brw #opa_del::after { content: "Deshacer envío"; color: var(--muted); }
html#ht_brw #opa_x::after { content: "Cerrar"; color: var(--muted); }

html#ht_brw #opa_mkd,
html#ht_brw #opa_del,
html#ht_brw #opa_x {
  background: #f7fafb;
  border: 1px solid var(--line);
}

html#ht_brw #opa_x { display: none !important; }
html#ht_brw body:has(.opview.act) #opa_x { display: inline-flex !important; }

html#ht_brw .opview {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: 0;
}

html#ht_brw #op_up2k.act,
html#ht_brw #op_mkdir.act,
html#ht_brw #op_unpost.act {
  padding: 0.9rem 1rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

html#ht_brw #op_up2k.act {
  overflow-x: auto;
  max-width: 100%;
}


html#ht_brw #u2tab {
  width: 100%;
  border-collapse: collapse;
}

html#ht_brw #u2tab td {
  padding: 0.45rem 0.35rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

html#ht_brw #u2err {
  margin: 0 0 0.6rem;
  padding: 0.55rem 0.7rem;
  color: var(--err);
  background: var(--err-bg);
  border-radius: 8px;
}

html#ht_brw #drops.vis,
html#ht_brw .dropzone {
  background: rgba(15, 76, 92, 0.92);
  color: #fff;
  font-size: 0;
}

html#ht_brw #drops.vis::after {
  content: "Suelta los archivos para iniciar la transferencia";
  position: fixed;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  font-size: 1.35rem;
  font-weight: 650;
}

html#ht_brw #wrap {
  grid-column: 1 / -1;
  grid-row: 4;
  min-height: 0;
  margin: 0.35rem 0 0;
  padding: 0 0 2rem;
}

html#ht_brw #pro {
  margin: 0;
}

html#ht_brw #pro::after {
  content: none;
  display: block;
  margin: 1.2rem 0 0.55rem;
  white-space: pre-line;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 450;
  line-height: 1.35;
}

html#ht_brw #pro::after::first-line {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
}

html#ht_brw #files {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  border-spacing: 0;
  overflow: hidden;
}

html#ht_brw #files th,
html#ht_brw #files td {
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: middle;
}

html#ht_brw #files thead th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #f8fbfb;
  border-bottom: 1px solid var(--line);
}

html#ht_brw #files tbody tr + tr td {
  border-top: 1px solid #e7eef1;
}

html#ht_brw #files tbody tr:hover td {
  background: #f3f8f9;
}

html#ht_brw #files tbody a {
  max-width: min(46rem, 62vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
}

html#ht_brw #files a[href$="/"]::before,
html#ht_brw #files a[href$=".JPG"]::before,
html#ht_brw #files a[href$=".jpg"]::before,
html#ht_brw #files a[href$=".JPEG"]::before,
html#ht_brw #files a[href$=".jpeg"]::before,
html#ht_brw #files a[href$=".png"]::before,
html#ht_brw #files a[href$=".tif"]::before,
html#ht_brw #files a[href$=".tiff"]::before,
html#ht_brw #files a[href$=".DNG"]::before,
html#ht_brw #files a[href$=".dng"]::before {
  content: "";
  display: inline-block;
  width: 0.95rem;
  height: 0.95rem;
  margin-right: 0.45rem;
  vertical-align: -0.12rem;
  background: currentColor;
}

html#ht_brw #files a[href$="/"]::before {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3 7.5A2.5 2.5 0 0 1 5.5 5H10l2 2h6.5A2.5 2.5 0 0 1 21 9.5v8A2.5 2.5 0 0 1 18.5 20h-13A2.5 2.5 0 0 1 3 17.5z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3 7.5A2.5 2.5 0 0 1 5.5 5H10l2 2h6.5A2.5 2.5 0 0 1 21 9.5v8A2.5 2.5 0 0 1 18.5 20h-13A2.5 2.5 0 0 1 3 17.5z'/></svg>") center / contain no-repeat;
  background: var(--petro);
}

html#ht_brw #files a[href$=".JPG"]::before,
html#ht_brw #files a[href$=".jpg"]::before,
html#ht_brw #files a[href$=".JPEG"]::before,
html#ht_brw #files a[href$=".jpeg"]::before,
html#ht_brw #files a[href$=".png"]::before,
html#ht_brw #files a[href$=".tif"]::before,
html#ht_brw #files a[href$=".tiff"]::before,
html#ht_brw #files a[href$=".DNG"]::before,
html#ht_brw #files a[href$=".dng"]::before {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 5.5A2.5 2.5 0 0 1 6.5 3h11A2.5 2.5 0 0 1 20 5.5v13a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 4 18.5zM8 9.2a1.4 1.4 0 1 0 0-2.8 1.4 1.4 0 0 0 0 2.8zM6.2 18l3.3-4 2.2 2.6 2.5-3.1L17.8 18z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 5.5A2.5 2.5 0 0 1 6.5 3h11A2.5 2.5 0 0 1 20 5.5v13a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 4 18.5zM8 9.2a1.4 1.4 0 1 0 0-2.8 1.4 1.4 0 0 0 0 2.8zM6.2 18l3.3-4 2.2 2.6 2.5-3.1L17.8 18z'/></svg>") center / contain no-repeat;
  background: #3d6d78;
}

html#ht_brw #srv_info {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.78rem;
}

html.iframe,
html.iframe body {
  margin: 0;
  background: transparent !important;
  color: var(--ink) !important;
  font-family: "Segoe UI", "Liberation Sans", "DejaVu Sans", sans-serif;
}

html.iframe body {
  padding: 0.15rem 0 0;
}

html.iframe h2 {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

html.iframe ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: paso;
}

html.iframe li {
  counter-increment: paso;
  min-height: 6.2rem;
  padding: 0.75rem 0.8rem 0.85rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  line-height: 1.4;
}

html.iframe li::before {
  content: counter(paso);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0 0.4rem 0.35rem 0;
  border-radius: 999px;
  background: #e7f2f4;
  color: var(--petro);
  font-size: 0.78rem;
  font-weight: 700;
}

html.iframe p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

html.iframe code {
  padding: 0.05rem 0.3rem;
  background: #e7eef1;
  border-radius: 4px;
  color: var(--petro-d);
}


html#ht_brw #files td:nth-child(2) {
  max-width: 1px;
  width: 58%;
}

html#ht_brw #files td:nth-child(2) a {
  display: inline-block;
  max-width: 100%;
  vertical-align: bottom;
}
@media (max-width: 800px) {
  html#ht_brw body {
    grid-template-columns: 1fr;
    padding: 0.7rem 0.7rem 4.5rem;
  }

  html#ht_brw #path,
  html#ht_brw #acc_info,
  html#ht_brw #ops,
  html#ht_brw .opview,
  html#ht_brw #wrap,
  html#ht_brw #srv_info {
    grid-column: 1;
  }

  html#ht_brw #path { grid-row: 1; }
  html#ht_brw #acc_info { grid-row: 2; justify-self: start; text-align: left; }
  html#ht_brw #ops { grid-row: 3; }
  html#ht_brw .opview { grid-row: 4; }
  html#ht_brw #wrap { grid-row: 5; }
  html#ht_brw #srv_info { grid-row: 6; }

  html#ht_brw #path::after { margin-left: 0; }
  html#ht_brw #opa_up { width: 100%; justify-content: center; }
  html#ht_brw #files tbody a { max-width: 62vw; }
  html.iframe ol { grid-template-columns: 1fr; }
  html.iframe li { min-height: 0; }
}

html#ht_brw #path a[href="/"] {
  font-size: 0;
}

html#ht_brw #path a[href="/"]::before {
  content: "Infraestructura de datos";
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

html#ht_brw #files a.doc {
  display: none !important;
}

html.iframe h1,
html.iframe h2,
html.iframe h3 {
  margin: 0 0 0.7rem;
  padding: 0;
  background: transparent !important;
  color: #5c717c !important;
  border: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

html.iframe code {
  background: #e7eef1 !important;
  color: #0c3d4a !important;
  text-shadow: none !important;
}

html#ht_brw #path {
  box-shadow: none !important;
  background: transparent !important;
}

html#ht_brw #path i {
  display: none !important;
}

html.iframe code,
html.iframe code * {
  color: #0c3d4a !important;
  background: transparent !important;
  text-shadow: none !important;
  white-space: normal;
}

html.iframe code {
  display: inline;
  background: #e7eef1 !important;
  word-break: break-word;
}

html#ht_brw body > * {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 800px) {
  html#ht_brw #files th:nth-child(4),
  html#ht_brw #files td:nth-child(4),
  html#ht_brw #files th:nth-child(5),
  html#ht_brw #files td:nth-child(5) {
    display: none;
  }
}

html#ht_brw,
html#ht_brw body,
html#ht_brw body * {
  font-family: "Segoe UI", system-ui, Arial, sans-serif !important;
}

html#ht_brw #pro {
  display: none !important;
}

html#ht_brw #wrap::before {
  content: "Archivos recibidos\A Aquí aparecen los archivos de la carpeta actual.";
  display: block;
  margin: 0.2rem 0 0.55rem;
  white-space: pre-line;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 450;
  line-height: 1.35;
}

html#ht_brw #wrap::before::first-line {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 650;
}
