@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --tinta: #16233b;
  --papel: #fbfcfa;
  --renglon: #dde5df;
  --columnar: #eef4ef;
  --sello: #2b4acb;
  --rojo: #a52e25;
  --verde: #176647;
  --suave: #526077;
  --canvas: #f3f6fa;
  --panel: #fff;
  --soft: #e6edf9;
  --bar: #bac9ec;
  --on-accent: #fff;
  --focus: #355de5;
  --font: "Geist", system-ui, sans-serif;
  --heading: var(--font);
  --max: 1480px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--tinta);
  font: 15px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
  color: inherit;
}
button,
a,
input {
  border-radius: 4px;
}
button {
  border: 0;
  background: none;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.skip {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-150%);
  z-index: 20;
  background: var(--papel);
  padding: 10px;
}
.skip:focus {
  transform: none;
}
.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.13;
}
h1 {
  font: 600 clamp(34px, 3.5vw, 54px)/1.06 var(--heading);
  letter-spacing: -0.055em;
}
h2 {
  font: 600 23px/1.2 var(--heading);
  letter-spacing: -0.025em;
}
h3 {
  font-size: 16px;
}
small,
dt,
.heading p {
  color: var(--suave);
}
small {
  font-size: 13px;
}
.heading {
  margin: 0 0 26px;
}
.heading p {
  margin-top: 8px;
}
.mark {
  width: 30px;
  height: 30px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 31px;
  letter-spacing: -0.08em;
  font-weight: 600;
  line-height: 1;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--sello);
  font-size: 12px;
  font-weight: 600;
}
.company {
  font-size: 14px;
  font-weight: 600;
}
main {
  max-width: var(--max);
  margin: auto;
  padding: clamp(24px, 3.2vw, 54px) clamp(18px, 4.3vw, 76px) 55px;
  min-width: 0;
}
main:focus {
  outline: 0;
}
.navitem,
.module-button,
.related {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-height: 38px;
  padding: 7px 11px;
}
.navitem,
.module-button {
  font-weight: 600;
}
.navitem:hover,
.module-button:hover {
  background: var(--soft);
}
.navitem[aria-current="page"] {
  color: var(--sello);
  background: var(--soft);
}
.crumb {
  font-size: 13px;
  color: var(--suave);
}
.crumb i {
  font-style: normal;
  margin: 0 10px;
}
.crumb b {
  color: var(--tinta);
}
.block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--renglon);
  background: var(--panel);
}
.stats > div {
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 10px;
}
.stats > div + div {
  border-left: 1px solid var(--renglon);
}
.stats .icon {
  grid-column: 2;
  grid-row: 1;
  color: var(--sello);
}
.stats span {
  grid-column: 1;
  grid-row: 1;
  font-size: 14px;
  color: var(--suave);
}
.stats strong {
  font: 600 clamp(23px, 2.3vw, 39px)/1.2 var(--heading);
  letter-spacing: -0.045em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  grid-column: 1/-1;
}
.trend,
.pending {
  min-width: 0;
  background: var(--panel);
  padding: 24px;
  border: 1px solid var(--renglon);
}
.plot {
  display: flex;
  gap: clamp(7px, 1.7vw, 32px);
  align-items: end;
  margin: 26px 0 0;
}
.bar-col {
  flex: 1;
  text-align: center;
  min-width: 0;
}
.bar-space {
  height: 140px;
  display: flex;
  align-items: end;
  border-bottom: 1px solid var(--renglon);
}
.bar {
  background: var(--bar);
  width: 100%;
  position: relative;
}
.bar span {
  position: absolute;
  top: -20px;
  inset-inline: 0;
  font-size: 12px;
  color: var(--suave);
}
.bar.current {
  background: var(--sello);
}
.bar-col small {
  display: block;
  margin-top: 7px;
}
.pending > a,
.pending > button {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-align: left;
  width: 100%;
  padding: 14px 0;
  border-radius: 0;
  border-top: 1px solid var(--renglon);
}
.pending > a:hover b,
.pending > button:hover b {
  color: var(--sello);
  text-decoration: underline;
}
.pending small {
  display: block;
  margin-top: 2px;
}
.pending a > .icon,
.pending button > .icon {
  margin-left: auto;
  width: 16px;
  color: var(--sello);
}
.task-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  color: var(--sello);
  background: var(--soft);
  border-radius: 4px;
}
.listing {
  margin-top: 28px;
  min-width: 0;
}
.listing .block-title small {
  white-space: nowrap;
}
.filters {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 14px 0;
}
.segments {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}
.segments button {
  padding: 7px 11px;
  min-height: 34px;
  font-size: 13px;
  font-weight: 600;
}
.segments button[aria-pressed="true"] {
  background: var(--sello);
  color: var(--on-accent);
}
.segments button:hover:not([aria-pressed="true"]) {
  background: var(--soft);
}
.search {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--renglon);
  border-radius: 4px;
  background: var(--panel);
  padding: 7px 10px;
  color: var(--suave);
}
.search:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
.search input {
  width: 207px;
  max-width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--tinta);
  font-size: 14px;
}
.search input:focus-visible {
  outline: none;
}
.search input::placeholder {
  color: var(--suave);
}
.search .icon {
  width: 16px;
  height: 16px;
}
.table-scroll {
  overflow-x: auto;
}
.table-scroll table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  background: var(--panel);
  font-variant-numeric: tabular-nums;
  text-align: left;
  font-size: 14px;
}
th,
td {
  border-bottom: 1px solid var(--renglon);
  padding: 12px 13px;
}
th {
  font-size: 13px;
  color: var(--suave);
  background: var(--columnar);
  font-weight: 600;
}
td:last-child,
th:last-child {
  text-align: right;
}
tbody tr:hover {
  background: var(--columnar);
}
.row-link {
  color: var(--sello);
  font-weight: 600;
  text-align: left;
  padding: 2px;
}
.row-link:hover {
  text-decoration: underline;
}
.badge {
  color: var(--verde);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}
.badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.badge.late {
  color: var(--rojo);
}
.badge.now {
  color: var(--sello);
}
.empty {
  padding: 36px 0;
  color: var(--suave);
}
.empty button {
  color: var(--sello);
  text-decoration: underline;
}
.atlas-layout {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  min-height: 100vh;
}
.rail {
  background: var(--tinta);
  color: var(--papel);
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
}
.rail .brand {
  margin: 0 10px 32px;
}
.rail .mark {
  color: #a7bafa;
}
.rail .navitem {
  color: inherit;
  width: 100%;
  font-size: 14px;
  font-weight: 400;
}
.rail .navitem[aria-current="page"] {
  background: #324775;
  color: #fff;
}
.rail .navitem:hover {
  background: #293a5b;
}
.rail :focus-visible {
  outline-color: var(--papel);
}
.navgroup {
  margin-top: 24px;
}
.navgroup > p {
  font-size: 12px;
  color: #b5c4da;
  margin: 0 10px 7px;
}
.rail-user {
  border-top: 1px solid #3f506a;
  margin-top: auto;
  padding: 18px 5px 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.rail-user small {
  display: block;
  color: #bfccdc;
  font-size: 12px;
}
.workspace {
  min-width: 0;
}
.topline {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 62px;
  padding: 10px clamp(18px, 4.3vw, 76px);
  background: var(--panel);
  border-bottom: 1px solid var(--renglon);
}
.topline .company {
  margin-left: auto;
}
.topline .module-button {
  display: none;
}
dialog {
  width: min(460px, calc(100% - 30px));
  max-height: 85vh;
  overflow: auto;
  color: var(--tinta);
  background: var(--panel);
  border: 1px solid var(--renglon);
  padding: 24px;
  margin: auto;
}
dialog::backdrop {
  background: rgb(10 19 30/0.48);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.dialog-head button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--columnar);
}
.menu-list {
  display: grid;
  gap: 3px;
  margin-top: 12px;
}
.menu-search input {
  width: 100%;
}
.dialog-metric {
  padding: 16px;
  background: var(--soft);
  margin: 10px 0 20px;
}
.dialog-metric strong {
  display: block;
  font-size: 28px;
}
.area-items {
  padding-left: 20px;
}
dl > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--renglon);
  padding: 12px 0;
}
dd {
  text-align: right;
  font-weight: 600;
}
.related {
  margin-top: 20px;
  background: var(--sello);
  color: var(--on-accent);
}
@media (max-width: 1000px) {
  .atlas-layout {
    grid-template-columns: 175px 1fr;
  }
  .stats > div {
    padding: 16px;
  }
  .trend,
  .pending {
    padding: 16px;
  }
}
@media (max-width: 760px) {
  .atlas-layout {
    display: block;
    min-height: 0;
  }
  .rail {
    display: none;
  }
  .topline .module-button {
    display: flex;
  }
  .company {
    font-size: 12px;
  }
  .heading {
    margin-bottom: 18px;
  }
}
@media (max-width: 580px) {
  .topline {
    gap: 8px;
    min-height: 52px;
  }
  .topline .crumb {
    display: none;
  }
  .brand .mark {
    width: 23px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stats > div {
    display: flex;
    padding: 10px 12px;
    gap: 8px;
  }
  .stats > div + div {
    border-left: 0;
    border-top: 1px solid var(--renglon);
  }
  .stats strong {
    margin-left: auto;
    font-size: 23px;
  }
  .stats span {
    font-size: 13px;
  }
  .stats .icon {
    width: 15px;
  }
  .filters {
    gap: 8px;
  }
  .search,
  .search input {
    width: 100%;
  }
  .segments button {
    padding-inline: 8px;
  }
  .table-scroll {
    max-width: 100%;
  }
  .listing .block-title {
    margin-bottom: 8px;
  }
  th,
  td {
    padding: 9px 10px;
  }
  .dialog-head h2 {
    font-size: 20px;
  }
}
@media (max-width: 580px) {
  .listing th:nth-child(2),
  .listing td:nth-child(2),
  .listing th:nth-child(3),
  .listing td:nth-child(3) {
    display: none;
  }
  .listing table {
    white-space: normal;
    font-size: 13px;
  }
  .listing td:last-child,
  .listing .badge {
    white-space: nowrap;
  }
  .listing td,
  .listing th {
    padding-inline: 5px;
  }
}
.due-list .block-title a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sello);
  font-weight: 600;
  padding: 4px 0;
}
.due-list a:hover b,
.due-list .block-title a:hover {
  text-decoration: underline;
}
.operations-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(18px, 3vw, 46px);
  margin-top: 28px;
}

/* Atlas compacto gives more width to records and keeps the selected record beside the list. */
body {
  --canvas: var(--papel);
}
body main {
  padding: 24px clamp(16px, 2.2vw, 38px);
}
body .rail {
  padding: 21px 8px;
}
body .rail .brand {
  font-size: 25px;
  margin: 0 6px 22px;
}
body .rail .navitem {
  min-height: 33px;
  padding: 5px 8px;
  gap: 7px;
  font-size: 13px;
}
body .navgroup {
  margin-top: 15px;
}
body .rail-user {
  font-size: 13px;
}
body .topline {
  min-height: 43px;
  padding: 6px clamp(16px, 2.2vw, 38px);
}
body .heading {
  margin-bottom: 16px;
}
body h1 {
  font-size: clamp(30px, 3vw, 38px);
  letter-spacing: -0.035em;
}
body .stats {
  background: var(--tinta);
  color: var(--papel);
  border: 0;
}
body .stats > div {
  padding: 13px 18px;
}
body .stats span,
body .stats .icon {
  color: var(--papel);
}
body .stats strong {
  font-size: 30px;
  letter-spacing: -0.025em;
}
.operations-grid {
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
  margin: 20px 0;
}
.due-list,
.operations-grid .pending {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--renglon);
  padding: 16px;
}
.due-list .block-title a {
  font-size: 13px;
}
.due-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--renglon);
  padding: 9px 0;
  font-size: 14px;
}
.due-row span,
.due-row time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.due-row time {
  color: var(--suave);
}
body .listing {
  margin-top: 19px;
}
body .listing td,
body .listing th {
  padding: 6px 9px;
}
body tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--soft) 25%, var(--panel));
}
body tr:has(.row-link[aria-current="true"]) {
  background: var(--soft);
}
#inspector {
  min-width: 0;
  border: 1px solid var(--renglon);
  border-top: 3px solid var(--sello);
  background: var(--panel);
  padding: 16px;
  align-self: start;
}
#inspector h2 {
  font-size: 22px;
}
.records-layout:has(#inspector:not([hidden])) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(235px, 0.39fr);
  gap: 16px;
}
#results {
  min-width: 0;
}
@media (min-width: 761px) {
  body .atlas-layout {
    grid-template-columns: 164px minmax(0, 1fr);
  }
}
@media (max-width: 1099px) {
  .records-layout:has(#inspector:not([hidden])) {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 850px) {
  .operations-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 580px) {
  body .listing td,
  body .listing th {
    padding-inline: 4px;
  }
  .due-row {
    gap: 5px;
    font-size: 13px;
  }
}

.page-heading,
.form-actions,
.detail-actions,
.detail-links,
.demo-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-heading {
  justify-content: space-between;
}
.primary,
.secondary,
.plain,
.dismiss,
.filter-link,
.demo-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 600;
  border-radius: 4px;
}
.primary,
.secondary {
  padding: 8px 13px;
  min-height: 36px;
  font-size: 14px;
}
.primary {
  background: var(--sello);
  color: var(--papel);
}
.primary:hover {
  background: var(--tinta);
}
.secondary,
.demo-menu {
  border: 1px solid var(--renglon);
  background: var(--panel);
}
.demo-menu {
  font-size: 12px;
  padding: 4px 8px;
  color: var(--suave);
}
.demo-menu svg {
  width: 14px;
}
.plain,
.detail-links a,
.rank-row:hover,
.activity-row:hover b {
  color: var(--sello);
}
body .stats > div {
  padding: 0;
  display: block;
}
.stats a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px;
  padding: 14px 18px;
  color: inherit;
}
.stats a:hover {
  background: color-mix(in srgb, var(--sello) 30%, var(--tinta));
}
.stats a .icon {
  align-self: center;
  width: 15px;
}
.stats a:focus-visible {
  outline-color: var(--papel);
  outline-offset: -3px;
}
.filter-link,
.plain {
  padding: 6px 10px;
  font-size: 13px;
}
.filter-link[aria-current="true"] {
  background: var(--sello);
  color: var(--papel);
}
.filter-link:hover:not([aria-current]) {
  background: var(--soft);
}
.activity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--renglon);
}
.activity-row small {
  display: block;
}
.activity-row strong,
.pending a > strong {
  margin-left: auto;
  white-space: nowrap;
}
.rank-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  padding: 10px 0;
}
.rank-row i {
  grid-column: span 2;
  height: 5px;
  background: var(--columnar);
}
.rank-row em {
  height: 100%;
  display: block;
  background: var(--sello);
}
#inspector {
  min-width: 0;
}
.records-layout:has(#inspector) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.55fr);
  gap: 14px;
}
.detail-actions,
.detail-links {
  margin-top: 14px;
  flex-wrap: wrap;
}
.detail-links {
  border-top: 1px solid var(--renglon);
  padding-top: 12px;
}
.dismiss {
  padding: 5px;
  color: var(--suave);
  background: var(--columnar);
}
#inspector h3 {
  margin: 18px 0 8px;
}
#inspector .table-scroll table {
  font-size: 12px;
}
#inspector dl {
  font-size: 14px;
}
#inspector dl > div {
  padding: 7px 0;
}
#inspector .secondary {
  margin-top: 10px;
}
.fiscal-note,
.reference {
  color: var(--suave);
  font-size: 13px;
  margin: 10px 0;
}
.fiscal-note {
  padding: 9px;
  background: var(--columnar);
}
.trail {
  list-style: none;
  padding: 0 0 0 15px;
  border-left: 2px solid var(--renglon);
  margin: 10px 0;
}
.trail li {
  position: relative;
  margin: 9px 0;
}
.trail li:before {
  content: "";
  position: absolute;
  left: -20px;
  top: 8px;
  width: 7px;
  height: 7px;
  background: var(--bar);
  border-radius: 50%;
}
.trail li[aria-current]:before {
  background: var(--sello);
}
.trail small {
  display: block;
}
.field {
  display: grid;
  gap: 5px;
  margin: 12px 0;
}
.field > span {
  font-weight: 600;
}
.field input,
.field select {
  padding: 8px 10px;
  color: var(--tinta);
  background: var(--panel);
  border: 1px solid var(--renglon);
  width: 100%;
  font: inherit;
  border-radius: 4px;
}
.field select:focus-visible {
  outline: 2px solid var(--focus);
}
.form-source,
.calculation {
  background: var(--columnar);
  padding: 10px 14px;
  margin: 12px 0;
}
.form-source span {
  display: block;
  color: var(--suave);
}
.calculation dl > div {
  border: 0;
  padding: 3px 0;
  font-size: 14px;
}
.calculation p {
  font-size: 13px;
  margin-top: 8px;
}
.form-actions {
  justify-content: flex-end;
  margin-top: 16px;
}
.error {
  color: var(--rojo);
  font-weight: 600;
}
.error:empty {
  display: none;
}
.demo-guide {
  display: grid;
  gap: 4px;
}
.demo-guide a {
  border-top: 1px solid var(--renglon);
  padding: 10px 0;
  color: var(--sello);
}
#message:not(:empty) {
  position: fixed;
  z-index: 5;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 4px;
  padding: 10px 16px;
  background: var(--tinta);
  color: var(--papel);
  max-width: 90vw;
}
@media (min-width: 761px) {
  .rail {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
  }
  .rail-user {
    padding-top: 10px;
  }
}
@media (max-width: 1099px) {
  .records-layout:has(#inspector) {
    display: flex;
    flex-direction: column-reverse;
  }
  .records-layout:has(#inspector) #results {
    display: none;
  }
  #inspector {
    width: 100%;
  }
}
@media (max-width: 580px) {
  .page-heading {
    align-items: flex-start;
    gap: 8px;
  }
  .page-heading .primary {
    font-size: 12px;
    padding: 7px 10px;
  }
  .stats a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
  }
  .stats a strong {
    font-size: 21px;
  }
  .stats a .icon {
    display: none;
  }
  body .listing td,
  body .listing th {
    display: table-cell !important;
  }
  .table-scroll table {
    min-width: max-content;
  }
  .table-scroll {
    max-width: 100%;
  }
  .activity-row,
  .rank-row {
    font-size: 13px;
  }
  .topline .company {
    font-size: 11px;
  }
  .due-row b {
    font-size: 13px;
  }
  body h1 {
    font-size: 32px;
  }
}

.client-entry {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 3px 0;
}
.client-entry strong {
  font-weight: 550;
}
.client-entry .open-card {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--sello);
  font-size: 12px;
  font-weight: 550;
}
.client-entry:hover .open-card {
  text-decoration: underline;
}
.open-card .icon {
  width: 13px;
  height: 13px;
}
.card-back {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--sello);
  font-size: 13px;
  font-weight: 550;
}
.card-back:hover {
  text-decoration: underline;
}
@media (max-width: 580px) {
  .client-entry {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }
}

#inspector .dialog-head:has(.edit-customer) {
  flex-wrap: wrap;
}
#inspector .edit-customer {
  width: auto;
  height: auto;
  display: inline-flex;
  background: var(--sello);
  padding: 7px 12px;
  white-space: nowrap;
}
#inspector dd,
#inspector h2 {
  overflow-wrap: anywhere;
}
