@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/instrument-serif.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  font-family: "DM Sans", system-ui, sans-serif;
  --display: "Instrument Serif", Georgia, serif;
  --paper: #f6f4ec;
  --card: #fffefa;
  --ink: #15322f;
  --muted: #516660;
  --line: #dddcd0;
  --dark: #112c2d;
  --brand: #205d50;
  --gold: #e0b77d;
  --radius: 16px;
  --shadow: 0 1px 2px #202d2310, 0 8px 26px #3c38250c;
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: wait; opacity: .63; }
:focus-visible { outline: 3px solid #54a78b; outline-offset: 3px; }
::selection { background: #d6efdf; color: var(--dark); }
img, svg { display: block; }
small { font-size: .84rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip { position: fixed; top: 12px; left: 12px; z-index: 20; transform: translateY(-160%); padding: 10px 14px; background: #fff; border-radius: 10px; }
.skip:focus { transform: none; }

.workspace { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100dvh; }
.sidebar {
  position: sticky; top: 0; height: 100dvh; min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column; padding: 25px 14px 14px;
  isolation: isolate;
  background: radial-gradient(ellipse at -30% 2%, #234b42 0, transparent 57%),
    linear-gradient(155deg, #102a2b 45%, #0e2225);
  color: #e8f4eb;
}
.sidebar::before {
  position: absolute; content: ""; z-index: -1; inset: auto 0 0; height: 245px;
  background: url("/assets/curvas.svg") right -118px bottom -65px / 355px auto no-repeat; opacity: .20;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: #f9f8ed; }
.sidebar .brand { margin: 0 8px; width: fit-content; }
.brand img { flex: none; border-radius: 14px; box-shadow: 0 0 0 1px #e6deab46; }
.brand strong { display: block; font-family: var(--display); font-size: 2rem; font-weight: 400; line-height: .96; letter-spacing: -.025em; }
.brand small { display: block; color: #b6cec2; font-size: .76rem; margin-top: 6px; white-space: nowrap; }
nav { display: grid; gap: 6px; margin-top: 38px; }
nav a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; min-height: 44px;
  color: #d0e2d9; font-size: .94rem; font-weight: 580;
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
nav a svg { color: #a4c7b7; flex: none; }
nav a:hover { background: #285149; color: #fff; }
nav a[aria-current] {
  background: linear-gradient(100deg, #294e46, #1d3d3b); color: #fff;
  border-color: #9eb4a43c; box-shadow: inset 3px 0 var(--gold); font-weight: 700;
}
nav a[aria-current] svg { color: var(--gold); }
.sidebar-foot { margin-top: auto; padding: 14px 0 0; display: flex; align-items: center; gap: 2px; border-top: 1px solid #829e936b; }
.account { display: flex; gap: 8px; align-items: center; flex: 1; min-width: 0; }
.avatar { display: grid; place-items: center; width: 31px; height: 31px; flex: none; background: #3a695b; color: #fcf0d7; border-radius: 9px; font-size: .85rem; font-weight: 700; }
.account > div { min-width: 0; }
.account strong, .account small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.account strong { font-size: .8rem; }
.account small { font-size: .73rem; color: #b6cec2; }
.main { min-width: 0; background: radial-gradient(ellipse at 100% 1%, #eae5d8 0, transparent 55%), var(--paper); }
.topbar {
  min-height: 67px; padding: 10px clamp(20px, 3.2vw, 46px); display: flex; gap: 14px;
  justify-content: space-between; align-items: center; background: #fffefaed; border-bottom: 1px solid var(--line);
}
.top-actions { display: flex; align-items: center; gap: 8px; }
.undo-button span { display: flex; }
.undo-button:disabled { cursor: default; }
.alert-button { position: relative; background: #fcf1df; color: #694314; }
.alert-button:hover { background: #f6e5c9; }
#alert-count {
  position: absolute; top: -5px; right: -5px; min-width: 17px; padding: 2px 3px;
  border-radius: 12px; background: #8e4536; color: #fff; font-size: .67rem;
}
.cartera-alert {
  position: fixed; top: 76px; right: clamp(12px, 3.2vw, 46px); z-index: 12;
  width: min(340px, calc(100% - 24px)); padding: 15px; border: 1px solid #e7d2be;
  background: #fffdf8; border-top: 3px solid #b98c58; border-radius: 15px; box-shadow: 0 14px 40px #38291533;
  animation: dialog-in .26s cubic-bezier(.2,.65,.3,1) both;
}
.alert-heading { display: flex; align-items: flex-start; gap: 10px; }
.alert-heading h2 { font-size: 1rem; }
.alert-heading p { color: #644f39; font-size: .88rem; line-height: 1.4; margin-top: 3px; }
.alert-actions { display: flex; gap: 8px; margin-top: 12px; }
.alert-actions .button { min-height: 37px; }
.sample-banner {
  display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 7px clamp(14px, 3.2vw, 46px);
  background: #fff4df; color: #66491c; border-bottom: 1px solid #ecddbe; font-size: .86rem;
}
.crumb { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: .9rem; }
.crumb strong::before { content: "/"; margin-right: 11px; color: #9baa9d; font-weight: 400; }
.crumb strong { color: var(--ink); font-weight: 720; }
.content { max-width: 1600px; margin-inline: auto; padding: 25px clamp(20px, 3.2vw, 46px) 51px; }
.content:focus { outline: none; }

.button, .icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: var(--ink); font-weight: 710;
  border: 1px solid transparent; border-radius: 10px; font-size: .92rem; line-height: 1.15;
  min-height: 42px; padding: 8px 13px; white-space: nowrap;
  transition: color .18s, background-color .18s, box-shadow .18s, border-color .18s, transform .18s;
}
.button svg, .icon-btn svg { flex: none; }
.button:active, .icon-btn:active { transform: translateY(1px); }
.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 3px 8px #183c3035; }
.primary:hover { background: #18493d; border-color: #18493d; box-shadow: 0 5px 13px #183c3040; }
.secondary { background: var(--card); border-color: var(--line); }
.secondary:hover { border-color: #95b7a4; background: #f3f8f2; }
.text { color: #225c4b; background: transparent; padding-inline: 8px; }
.text:hover { background: #eaf3ec; }
.danger { color: #fff; background: #943d32; border-color: #943d32; }
.danger:hover { background: #793026; border-color: #793026; }
.danger-text { color: #943d32; background: transparent; padding-inline: 8px; }
.danger-text:hover { background: #f9ebe5; }
.icon-btn { width: 39px; min-height: 39px; padding: 0; background: #edf3ee; color: #315a4b; }
.icon-btn:hover { background: #e0ebe2; }
.side-btn { min-height: 36px; width: 31px; color: #c3ded0; background: transparent; flex: none; }
.side-btn:hover { color: #fff; background: #2b594e; }
.hero-button { background: #fbecd2; color: #1b3d34; border-color: #ffecd2; padding-inline: 14px; }
.hero-button:hover { background: #fff6e3; box-shadow: 0 6px 15px #091c2190; }

.hero {
  position: relative; isolation: isolate; overflow: hidden; min-height: 236px; border-radius: 21px;
  display: flex; align-items: center; color: #fdf8e8; border: 1px solid #36554d;
  background: linear-gradient(118deg, #102b30, #1d493d);
  box-shadow: 0 12px 31px #263b3031;
}
.hero::before, .entry-image::before {
  content: ""; z-index: -2; position: absolute; inset: 0;
  background: url("/assets/litoral-marimar.webp") center 51% / cover no-repeat;
}
.hero::before {
  inset: 0 0 0 28%; background-position: center 38%;
  mask-image: linear-gradient(90deg, transparent, #000 32%);
  filter: saturate(1.13) contrast(1.03); transform-origin: 80% 56%;
}
.hero::after {
  content: ""; z-index: -1; position: absolute; inset: 0;
  background: url("/assets/curvas.svg") right -51px bottom -37px / min(60%, 640px) auto no-repeat,
    linear-gradient(90deg, #112b30f0 1%, #102d2cc9 33%, #142f2942 71%, #142f2910);
}
.arriving .hero::before { animation: image-arrive 1.1s cubic-bezier(.2,.65,.3,1) both; }
.hero-content { padding: clamp(22px, 3vw, 36px) clamp(24px, 4.65vw, 65px); position: relative; }
.hero-label { display: inline-flex; gap: 6px; align-items: center; color: #f5d6a5; font-size: .84rem; font-weight: 680; }
.hero h1, .section-heading h1, .entry h1 {
  font-family: var(--display); font-weight: 400; letter-spacing: -.02em; line-height: .99;
}
.hero h1 { font-size: clamp(3rem, 5.1vw, 5.05rem); margin: 8px 0 8px; }
.hero p { color: #e3eee8; font-size: 1rem; line-height: 1.5; margin-bottom: 18px; }
.section-inline, .section-heading {
  display: flex; justify-content: space-between; align-items: end; gap: 15px; flex-wrap: wrap;
}
.section-inline { margin: 24px 0 13px; }
.section-inline h2, .panel h2, .map-heading h2 { font-size: 1.13rem; font-weight: 780; letter-spacing: -.027em; }
.section-inline p, .panel-head p, .map-heading p { color: var(--muted); font-size: .87rem; margin-top: 3px; line-height: 1.43; }
.section-heading { margin: 9px 0 22px; padding: 0 0 16px; border-bottom: 1px solid var(--line); }
.section-heading h1 { font-size: clamp(2.85rem, 5vw, 4.65rem); }
.section-heading p { margin-top: 8px; color: var(--muted); line-height: 1.48; }
.period-controls, .toolbar { display: flex; align-items: end; gap: 9px; flex-wrap: wrap; }
.filter-field { display: grid; gap: 4px; color: var(--muted); font-size: .78rem; font-weight: 680; }
.filter-field select { min-height: 38px; font-size: .88rem; font-weight: 620; }
.toolbar { padding: 0 0 15px; gap: 10px; }
.toolbar .toggle { margin-left: auto; }
.period-toolbar { margin-top: -6px; }
.search { position: relative; min-width: min(226px, 100%); }
.search svg { position: absolute; top: 50%; left: 11px; transform: translateY(-50%); color: #5c7b6d; pointer-events: none; }
.search input { padding-left: 36px; min-height: 38px; }
.search input::placeholder { color: #586e64; opacity: 1; }
input, select {
  color: var(--ink); background: #fff; border: 1px solid #bdcfc2; border-radius: 9px;
  min-height: 42px; padding: 8px 10px; font-size: 1rem; width: 100%; min-width: 0;
}
select {
  appearance: none; padding-right: 35px;
  background-image: url("/assets/select.svg");
  background-position: right 10px center; background-size: 14px; background-repeat: no-repeat;
}
select:hover, input:hover { border-color: #96b5a2; }
.toggle { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: #edf1ed; flex: none; }
.toggle button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px;
  padding: 4px 9px; color: #466158; background: transparent; border: 1px solid transparent;
  border-radius: 7px; font-size: .84rem; font-weight: 710;
}
.toggle button[aria-pressed="true"] { background: #fff; color: #245649; box-shadow: 0 1px 3px #223a2520; border-color: #dce6dd; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.report-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spaced { margin-bottom: 20px; }
.metric {
  display: flex; flex-direction: column; min-width: 0; background: var(--card); padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .24s, border-color .24s, box-shadow .24s;
}
a.metric:hover { transform: translateY(-3px); border-color: #9ebfa9; box-shadow: 0 10px 20px #1a3b2820; }
.metric-head { display: flex; align-items: center; justify-content: space-between; color: #62786c; }
.metric-symbol, .payment-symbol {
  width: 37px; height: 37px; display: inline-grid; place-items: center; border-radius: 10px; flex: none;
}
.metric-label { margin-top: 7px; color: #48635a; font-size: .9rem; font-weight: 690; }
.metric strong, .amount { color: var(--ink); font-variant-numeric: tabular-nums; }
.metric strong {
  margin: 1px 0 3px; font-size: clamp(1.32rem, 2.3vw, 2rem); letter-spacing: -.055em;
  font-weight: 780; line-height: 1.15; overflow-wrap: anywhere;
}
.metric small { color: var(--muted); line-height: 1.35; }
.mint { --tone-bg: #e4f1e7; --tone-ink: #265746; --tone-fill: #66a88b; }
.sand { --tone-bg: #f6ecd7; --tone-ink: #634a1c; --tone-fill: #bc934d; }
.ocean { --tone-bg: #e3eef1; --tone-ink: #254f60; --tone-fill: #438899; }
.bronze { --tone-bg: #f5eadd; --tone-ink: #6b481e; --tone-fill: #ad7a47; }
.rose { --tone-bg: #f8e9e5; --tone-ink: #883e32; --tone-fill: #b97167; }
.ink { --tone-bg: #edf1ee; --tone-ink: #465e52; --tone-fill: #6a806e; }
.metric-symbol, .badge, .parcel {
  background: var(--tone-bg, #edf2eb); color: var(--tone-ink, #315c4d);
}
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; font-size: .83rem;
  font-weight: 720; white-space: nowrap; border-radius: 7px;
}
.badge::before { content: ""; width: 6px; height: 6px; background: var(--tone-fill, #83a695); border-radius: 50%; flex: none; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 15px; margin-top: 17px; }
.dashboard-grid.below-fold { align-items: start; }
.panel {
  background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line); border-radius: var(--radius);
  min-width: 0;
}
.panel-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 16px 16px 9px; }
.panel-note { padding: 0 16px 14px; color: var(--muted); font-size: .83rem; }
.chart-wrap { margin: 0 10px 1px; overflow-x: auto; }
.chart { width: 100%; min-width: 410px; height: auto; overflow: visible; }
.chart-grid { stroke: #e7ede7; stroke-width: 1; }
.chart-axis { fill: #51685f; font-family: "DM Sans", sans-serif; font-size: 11px; }
.month-label { font-weight: 650; }
.chart-month { outline: none; }
.chart-month:hover .month-label, .chart-month:focus-visible .month-label, .selected-month .month-label { fill: #155e49; font-weight: 800; }
.bar-underlay { fill: transparent; transition: fill .2s; }
.chart-month:hover .bar-underlay, .chart-month:focus-visible .bar-underlay, .selected-month .bar-underlay { fill: #e8f3eb; }
.chart-bar { transform-box: fill-box; transform-origin: center bottom; animation: grow .6s cubic-bezier(.15,.55,.3,1) both; }
.chart-month:nth-of-type(even) .chart-bar { animation-delay: .05s; }
.bar-sold { fill: #3e877c; }
.bar-initial { fill: #66a88b; }
.bar-deferred { fill: #438899; }
.bar-cash { fill: #bc934d; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 14px; padding: 8px 17px 13px; color: var(--muted); font-size: .83rem; }
.legend span, .ring-legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--tone-fill); flex: none; }
.recent { list-style: none; padding: 0; }
.recent li { display: flex; gap: 9px; align-items: center; padding: 11px 16px; border-top: 1px solid #eef2ee; }
.payment-symbol { background: #edf5ed; color: #346955; width: 34px; height: 34px; }
.recent li div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.recent strong, .recent small { display: block; }
.recent strong { font-size: .92rem; }
.recent small { color: var(--muted); margin-top: 3px; }
.recent-value { text-align: right; white-space: nowrap; }
.follow-list { margin: 2px 16px 11px; }
.follow-list > div { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid #e8eee8; }
.follow-list dt { color: #456154; font-size: .89rem; }
.follow-list dd { font-weight: 740; text-align: right; white-space: nowrap; }

.results-count { font-size: .88rem; color: var(--muted); margin: 0 0 10px 1px; }
.map-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.map-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
}
.map-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.parcels {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; background: #f3f5ef;
  padding: 8px; border-radius: 11px; border: 1px solid #e7ece2;
}
.parcel {
  border: 1px solid transparent; min-height: 61px; border-radius: 7px; padding: 4px; min-width: 0;
  transition: transform .2s, box-shadow .2s, border-color .2s; 
}
.parcel:hover { transform: translateY(-2px); border-color: var(--tone-fill); box-shadow: 0 4px 12px #16352826; }
.parcel strong, .parcel small { display: block; overflow-wrap: anywhere; }
.parcel strong { font-size: 1rem; }
.parcel small { font-size: .74rem; margin-top: 2px; }

.table-wrap { overflow-x: auto; border-radius: inherit; }
.table-wrap:focus-visible { outline-offset: -2px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; }
td, th { padding: 10px 12px; border-top: 1px solid #e8eee8; }
th:first-child, td:first-child { padding-left: 16px; }
th:last-child, td:last-child { padding-right: 16px; }
th { background: #f0efe6; color: #435d54; font-size: .83rem; font-weight: 750; white-space: nowrap; }
thead tr:first-child th { border-top: 0; }
tbody tr:hover { background: #f8fbf8; }
td small { display: block; color: var(--muted); margin-top: 3px; }
td .button { min-height: 36px; }
.row-actions { display: flex; align-items: center; gap: 6px; }
.number { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.buyer-cell { display: flex; align-items: center; gap: 7px; min-width: 135px; }
.buyer-cell strong { overflow-wrap: anywhere; }
.buyer-avatar, .detail-avatar {
  display: grid; place-items: center; flex: none; width: 31px; height: 31px; border-radius: 10px;
  color: #2e5e49; background: #e6f1e8; font-size: .76rem; font-weight: 760;
}
.empty { display: grid; justify-items: center; gap: 8px; padding: 21px 14px; text-align: center; color: var(--muted); }
.empty svg { color: #5c917b; }
.report-table { margin-top: 16px; }
.report-metrics + .activity-panel .chart-wrap { max-width: 850px; }

.entry { display: grid; grid-template-columns: 1fr 1.05fr; min-height: 100dvh; background: #f7f4e9; }
.entry-form { display: flex; flex-direction: column; padding: clamp(22px, 4vw, 55px); }
.brand-light { color: var(--dark); }
.brand-light small { color: var(--muted); }
.entry-inner {
  width: min(100%, 470px); margin: auto; background: var(--card); border: 1px solid var(--line);
  border-radius: 22px; padding: clamp(21px, 3.3vw, 45px);
  box-shadow: 0 14px 45px #34372613; animation: enter .47s both;
}
.entry h1 { font-size: clamp(2.9rem, 4.35vw, 4.4rem); margin-bottom: 10px; }
.entry p { line-height: 1.5; color: var(--muted); }
.entry-image { isolation: isolate; position: relative; min-height: 280px; overflow: hidden; background: #1c4438; }
.entry-image::before { animation: image-arrive 1s both; background-position: 64% center; }
.entry-image::after {
  position: absolute; content: ""; inset: 0; z-index: -1;
  background: url("/assets/curvas.svg") right -60px bottom -20px / 90% auto no-repeat,
    linear-gradient(0deg,#112f2bc9,transparent 58%);
}
.network-login { margin-top: 19px; }
.login-form { display: grid; gap: 11px; margin-top: 17px; }
.login-form .button { min-height: 45px; }
.login-alternative { padding: 10px 0; margin-top: 9px; }
.login-alternative summary, .detail-disclosure summary {
  display: flex; align-items: center; gap: 8px; font-weight: 720; cursor: pointer; color: #295e4d;
}
.login-alternative summary::-webkit-details-marker, .detail-disclosure summary::-webkit-details-marker { display: none; }
.login-alternative[open] summary svg, .detail-disclosure[open] summary svg { transform: rotate(180deg); }

dialog {
  width: min(625px, calc(100% - 24px)); max-height: min(90dvh, 930px); padding: 0; border: 1px solid #dfe9df;
  border-radius: 18px; color: var(--ink); background: var(--card); box-shadow: 0 18px 90px #0f292954; overflow: auto;
}
dialog.wide-dialog { width: min(760px, calc(100% - 24px)); }
dialog::backdrop { background: #112e28a8; backdrop-filter: blur(2px); }
dialog[open] { animation: dialog-in .22s ease-out both; }
.dialog-shell { padding: 0 clamp(16px, 3.2vw, 26px) 23px; }
.dialog-head {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 12px 0 10px; margin-bottom: 8px; border-bottom: 1px solid var(--line); background: var(--card);
}
.dialog-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.95rem, 4.6vw, 2.65rem); line-height: 1.03; }
.form-heading { display: flex; align-items: center; gap: 7px; margin: 18px 0 8px; font-size: .97rem; }
.form-heading svg { color: #367461; }
.modal-form > .form-heading:first-child { margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.full, .field-help { grid-column: 1 / -1; }
.field { display: grid; gap: 4px; color: #314b40; font-size: .89rem; font-weight: 690; min-width: 0; }
.field input, .field select, .search input { font-weight: 510; }
.field-help, .detail-note { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.detail-note { margin: 5px 0 12px; }
.confirmation-record {
  margin: 0 0 10px; padding: 10px 12px; background: #f5f7ef;
  border: 1px solid var(--line); border-radius: 10px; overflow-wrap: anywhere;
}
.confirmation-record p { color: var(--muted); font-size: .86rem; line-height: 1.45; margin-top: 3px; }
.financing-preview { padding: 8px 10px; border-radius: 8px; color: #285945; background: #edf6ec; font-size: .88rem; font-weight: 680; line-height: 1.45; }
.plan-option { display: flex; align-items: center; gap: 8px; font-size: .89rem; font-weight: 680; }
.plan-option:has(input:disabled) { color: var(--muted); }
.plan-dates { max-height: 290px; overflow-y: auto; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.form-error { margin-top: 10px; padding: 8px 11px; color: #863629 !important; background: #fbeae7; border-radius: 8px; font-size: .9rem; }
.form-footer, .detail-actions { display: flex; justify-content: end; gap: 8px; margin-top: 15px; flex-wrap: wrap; }
.detail-actions { justify-content: start; }
.detail-profile { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; }
.detail-profile > div:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.detail-profile strong { font-size: 1.07rem; }
.detail-profile small { display: block; color: var(--muted); margin-top: 3px; }
.detail-avatar { width: 44px; height: 44px; border-radius: 12px; font-size: 1.02rem; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.detail-grid > div { border: 1px solid #e2ebe2; background: #f6f9f4; border-radius: 10px; padding: 9px 11px; }
.detail-grid dt { color: var(--muted); font-size: .85rem; }
.detail-grid dd { color: #1b3c2e; margin-top: 2px; font-weight: 760; overflow-wrap: anywhere; }
.detail-grid small { display: block; color: var(--muted); margin-top: 2px; }
.detail-grid.quiet { margin-bottom: 9px; }
.payment-progress { display: grid; grid-template-columns: 1fr auto; gap: 5px; margin: 13px 0; color: #486358; font-size: .87rem; }
progress { grid-column: 1 / -1; width: 100%; height: 8px; border: 0; border-radius: 99px; background: #e7f0e9; }
progress::-webkit-progress-bar { background: #e7f0e9; border-radius: 99px; }
progress::-webkit-progress-value { background: #58957d; border-radius: 99px; }
progress::-moz-progress-bar { background: #58957d; border-radius: 99px; }
.detail-disclosure { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; }
.detail-disclosure summary { justify-content: space-between; padding: 9px 11px; }
.detail-disclosure .table-wrap { max-height: 310px; }
.dialog-notice, .toast {
  color: #fff; background: #1d5b48; border-radius: 9px; padding: 10px 13px; font-size: .9rem; font-weight: 720;
  box-shadow: 0 6px 16px #0c372932; animation: enter .2s both;
}
.dialog-notice { margin-bottom: 12px; }
.toast { position: fixed; right: 15px; bottom: 15px; z-index: 3; max-width: calc(100% - 30px); }
.notice-undo {
  min-height: 35px; margin-left: 6px; padding: 4px 9px; border: 1px solid #ecf7ef; border-radius: 6px;
  color: #fff; background: #ffffff19; font-weight: 720; font-size: .86rem;
}
.notice-undo:hover { color: #1d5b48; background: #fffefa; }
.notice-undo:focus-visible { outline-color: #fff; }

@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(9px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes image-arrive { from { transform: scale(1.045); } to { transform: scale(1); } }
@keyframes ring-reveal { from { opacity: .3; stroke-dasharray: 0 315; } }

@media (max-width: 1100px) {
  .workspace { grid-template-columns: 195px minmax(0, 1fr); }
  .sidebar { padding-inline: 11px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .workspace { grid-template-columns: 174px minmax(0, 1fr); }
  .sidebar { padding-inline: 9px; }
  .sidebar .brand { margin-inline: 4px; }
  .sidebar .brand strong { font-size: 1.75rem; }
  .sidebar .brand img { width: 35px; height: 35px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .parcel small { font-size: .68rem; }
}
@media (max-width: 700px) {
  .workspace { display: block; }
  .sidebar { position: relative; height: auto; padding: 9px 13px; overflow: visible;
    display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .sidebar::before { display: none; }
  .sidebar .brand { margin: 0; }
  .sidebar .brand small { margin-top: 2px; }
  .sidebar .brand img { width: 33px; height: 33px; }
  .sidebar nav {
    grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px; margin: 8px 0 0;
  }
  nav a { min-height: 47px; font-size: .78rem; padding: 3px; justify-content: center; flex-direction: column; gap: 3px; }
  nav a[aria-current] { box-shadow: inset 0 -2px var(--gold); }
  nav a svg { width: 16px; height: 16px; }
  nav a span { max-width: 100%; }
  .sidebar-foot { grid-column: 2; grid-row: 1; padding: 0; border: 0; }
  .account { display: none; }
  .side-btn { min-height: 39px; width: 39px; }
  .topbar { padding: 8px 14px; min-height: 55px; }
  .top-action, .undo-button { min-height: 38px; padding: 6px 9px; }
  .content { padding: 15px 14px 35px; }
  .hero { border-radius: 17px; min-height: 197px; }
  .hero-content { padding: 20px; }
  .hero::before { inset-inline-start: 14%; }
  .hero::after { background-size: 75% auto, cover; }
  .hero h1 { font-size: clamp(2.85rem, 8vw, 4rem); }
  .hero p { font-size: .94rem; }
  .section-inline { margin-top: 17px; }
  .section-heading { margin-top: 2px; }
  .entry { display: flex; flex-direction: column; }
  .entry-form { order: 2; min-height: 55dvh; }
  .entry-form .brand { display: none; }
  .entry-image { order: 1; min-height: min(36dvh, 310px); }
  .entry-image::before { background-position: center 47%; }
  .entry-inner { padding: 23px; margin-top: 0; }
  .map-card { padding: 11px; }
  .map-grid { gap: 9px; }
}
@media (max-width: 450px) {
  .sidebar nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  nav a { flex-direction: row; font-size: .84rem; min-height: 38px; gap: 5px; justify-content: start; padding-inline: 6px; }
  .topbar { flex-wrap: wrap; gap: 8px; }
  .top-actions { max-width: 100%; margin-left: auto; justify-content: flex-end; flex-wrap: wrap; gap: 5px; }
  .top-actions .button { padding-inline: 7px; gap: 5px; font-size: .82rem; }
  .crumb a { max-width: 31vw; }
  .crumb strong { font-size: .9rem; }
  .chart { min-width: 360px; }
  .chart-axis { font-size: 13px; }
  .metrics { gap: 7px; }
  .metric { padding: 10px; border-radius: 12px; }
  .metric-label { font-size: .86rem; }
  .metric small { font-size: .78rem; }
  .report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-metrics .metric:last-child { grid-column: 1 / -1; }
  .map-grid { grid-template-columns: minmax(0, 1fr); }
  .parcel small { font-size: .75rem; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
.follow-list > div:last-child { background: #eaf4eb; margin-top: 5px; padding-inline: 8px; border: 0; border-radius: 7px; }
.follow-list > div:last-child dt { color: #295844; font-weight: 720; }
@media (max-width: 365px) {
  nav a { flex-direction: column; justify-content: center; gap: 2px; min-height: 43px; font-size: .79rem; }
  #top-plus { display: none; }
}

/* Resumen comercial */
.overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 15px; }
.home-summary .section-inline { align-items: end; gap: 10px; }
.home-summary .section-inline h2 { font-size: clamp(1.35rem, 2vw, 1.65rem); padding-bottom: 3px; }
.overview-card-head { display: flex; align-items: center; gap: 10px; }
.overview-card-head > div { flex: 1; min-width: 0; }
.inventory-panel .overview-card-head a:hover, .inventory-panel .overview-card-head a:focus-visible { text-decoration: underline; }
.overview-card-head h3 { font-size: 1.08rem; line-height: 1.22; letter-spacing: -.025em; }
.overview-card-head p { color: var(--muted); margin-top: 3px; font-size: .83rem; }
.overview-card-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 11px; }
.inventory-panel, .revenue-panel { position: relative; isolation: isolate; overflow: hidden; padding: clamp(14px, 2vw, 23px); }
.arriving .overview-grid > .panel { animation: enter .45s cubic-bezier(.2,.65,.3,1) .06s both; }
.arriving .overview-grid > .panel + .panel { animation-delay: .13s; }
.inventory-panel {
  border-color: #375550; color: #fffaf0;
  background: radial-gradient(ellipse at 98% -27%, #43685b 0, transparent 70%), linear-gradient(141deg, #162e33, #173934);
  box-shadow: 0 8px 19px #203b3235;
}
.inventory-panel::before {
  content: ""; z-index: -1; position: absolute; inset: 0; opacity: .15;
  background: url("/assets/curvas.svg") right -65px bottom -145px / 390px auto no-repeat;
}
.inventory-panel .overview-card-icon { background: #d7edda19; color: #d7e9ca; border: 1px solid #d5efdc38; }
.inventory-panel .overview-card-head p, .ring-figure small { color: #c4d9d1; }
.inventory-panel .mint { --tone-fill: #8bd1b8; }
.inventory-panel .sand { --tone-fill: #f0c181; }
.inventory-panel .ocean { --tone-fill: #86c3d5; }
.ring-layout {
  display: grid; grid-template-columns: minmax(90px, .81fr) minmax(132px, 1.19fr); gap: clamp(8px, 1.6vw, 23px);
  align-items: center; margin-top: 9px;
}
.ring-figure { position: relative; display: grid; place-items: center; width: 100%; max-width: 165px; margin-inline: auto; }
.ring { width: 100%; height: auto; }
.ring-track { stroke: #ffffff25; }
.ring-segment { stroke: var(--tone-fill); }
.arriving .ring-segment { animation: ring-reveal .68s cubic-bezier(.18,.6,.35,1) .12s both; }
.ring-figure > span { position: absolute; text-align: center; pointer-events: none; }
.ring-figure strong {
  display: block; font-family: var(--display); font-size: clamp(2.15rem, 3.75vw, 3.45rem); font-weight: 400;
  line-height: .96; letter-spacing: -.025em; font-variant-numeric: tabular-nums;
}
.ring-figure small { display: block; margin-top: 2px; font-size: .79rem; }
.ring-legend { list-style: none; padding: 0; }
.ring-legend a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 7px;
  padding: 9px; border-radius: 8px; color: #e8f3ec;
  font-size: .91rem; font-weight: 620; transition: background .2s, color .2s;
}
.ring-legend a:hover, .ring-legend a:focus-visible { background: #ffffff18; color: #fff; }
.ring-legend li + li { border-top: 1px solid #e2fbec2a; }
.ring-legend strong { color: #fffaf0; font-size: 1.06rem; font-variant-numeric: tabular-nums; }
.ring-legend svg { color: #c8dcd4; transition: transform .2s; }
.ring-legend a:hover svg { transform: translateX(2px); }
.revenue-panel {
  border-color: #e2d5bf; background: radial-gradient(ellipse at 100% 0, #f8edda, transparent 65%), var(--card);
}
.revenue-panel::before {
  content: ""; position: absolute; z-index: -1; width: 169px; height: 169px; border-radius: 50%; top: -98px; right: -66px;
  border: 1px solid #c9a16c48; box-shadow: 0 0 0 13px #d7ba921a, 0 0 0 26px #d7ba9212;
}
.revenue-panel .overview-card-icon { color: #684927; background: #f5e6ca; border: 1px solid #dec8a4; }
.revenue-panel .overview-card-head .button { min-height: 35px; }
.revenue-total {
  display: block; margin: 14px 0 10px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.03;
  letter-spacing: -.06em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.revenue-breakdown { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #e5dbc9; }
.revenue-breakdown > div { min-width: 0; padding: 10px 6px 0 0; }
.revenue-breakdown > div + div { border-left: 1px solid #e5dbc9; padding-left: 9px; }
.revenue-breakdown dt { display: flex; align-items: center; gap: 5px; font-size: .77rem; color: var(--muted); line-height: 1.3; }
.revenue-breakdown dd { margin-top: 4px; font-size: .89rem; font-weight: 760; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.setup-panel { margin-top: 20px; padding: 18px 19px; background: linear-gradient(140deg,#fffefa 57%,#edf3e9); }
.setup-heading { display: flex; align-items: center; gap: 12px; }
.setup-heading .metric-symbol, .portfolio-alert .metric-symbol { width: 43px; height: 43px; }
.setup-heading p, .setup-steps p, .portfolio-alert p { color: var(--muted); font-size: .88rem; line-height: 1.4; margin-top: 3px; }
.setup-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.setup-steps article { display: grid; grid-template-columns: 30px 1fr; gap: 6px 9px; align-items: start; padding: 13px;
  border: 1px solid #dfe9df; border-radius: 12px; background: #ffffffc9; }
.setup-steps article > span { color: #387563; padding-top: 2px; }
.setup-steps h3 { font-size: .95rem; }
.setup-steps .button { grid-column: 2; justify-self: start; min-height: 33px; white-space: normal; text-align: left; }
.setup-steps .button:hover { transform: translateX(2px); }
.group-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.excel-panel {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 18px; margin-top: 16px; padding: 13px 17px; border-color: #e2d9c8;
  background: linear-gradient(102deg,#fcf8ed,var(--card) 55%);
}
.excel-intro { display: flex; align-items: center; gap: 11px; }
.excel-intro h2 { font-size: 1rem; }
.excel-intro p { margin-top: 2px; color: var(--muted); font-size: .88rem; line-height: 1.4; }
.report-toolbar { justify-content: space-between; }
.dashboard-details { margin-top: 17px; min-width: 0; }
.dashboard-details > summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 11px 15px;
  color: #275b4b; font-weight: 720; gap: 8px; transition: background .2s, border-color .2s;
}
.dashboard-details > summary:hover { background: #f6f7ee; border-color: #b7c7b5; }
.dashboard-details > summary span { display: inline-flex; align-items: center; gap: 9px; }
.dashboard-details > summary > svg { transition: transform .2s; }
.dashboard-details > summary::-webkit-details-marker { display: none; }
.dashboard-details[open] > summary > svg { transform: rotate(180deg); }
.dashboard-details > .activity-panel { margin-top: 13px; }
.dashboard-details[open] > .activity-panel, .dashboard-details[open] > .dashboard-grid { animation: enter .29s both; }
.portfolio-alert { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 15px; margin-bottom: 15px;
  background: #fffcf6; border: 1px solid #eadfcf; border-radius: 12px; }
.portfolio-alert > div { flex: 1 1 225px; }
.import-form { margin-top: 13px; }
.export-options, .export-period { border: 0; margin: 0; padding: 0; min-width: 0; }
.export-options legend, .export-period legend { margin-bottom: 7px; color: var(--ink); font-size: .92rem; font-weight: 720; }
[data-submit="export"]:not(:has(input:is([value="ventas"], [value="comisiones"]):checked)) .export-period { display: none; }
.export-period .form-grid { grid-template-columns: minmax(72px, 1fr) minmax(0, 1.65fr); }
.export-option {
  display: flex; align-items: flex-start; gap: 10px; padding: 9px 11px; margin-bottom: 5px;
  border: 1px solid var(--line); border-radius: 9px; cursor: pointer;
}
.export-option:has(input:checked) { border-color: #9cbcaa; background: #f0f7f0; }
.export-option input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--brand); flex: none; }
.export-option strong, .export-option small { display: block; }
.export-option strong { font-size: .91rem; }
.export-option small { margin-top: 2px; color: var(--muted); line-height: 1.35; }
@media (max-width: 760px) {
  .setup-steps { grid-template-columns: minmax(0,1fr); gap: 6px; }
  .setup-steps article { grid-template-columns: 26px minmax(0,1fr); }
}
@media (max-width: 850px) {
  .overview-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 530px) {
  .excel-panel .group-actions { width: 100%; }
  .excel-panel .button { flex: 1 1 auto; padding-inline: 9px; }
  .home-summary .period-controls { gap: 7px; }
  .home-summary .period-controls select {
    font-size: .82rem; padding-inline: 8px 26px; background-position: right 7px center; background-size: 13px;
  }
  .overview-card-head h3 { font-size: 1rem; }
  .revenue-panel .overview-card-head .button { padding-inline: 5px; font-size: .79rem; }
  .ring-layout { grid-template-columns: minmax(86px, .82fr) minmax(127px, 1.18fr); }
  .ring-figure { max-width: 135px; }
  .ring-legend a { padding-inline: 6px; }
}
@media (max-width: 360px) {
  .hero-content { padding: 17px; }
  .revenue-panel .overview-card-head .button svg { display: none; }
}
@media print {
  @page { size: landscape; margin: 11mm; }
  body, .workspace, .content { background: white; display: block; padding: 0; color: black; }
  .sidebar, .topbar, .report-toolbar, .report-chart, .cartera-alert, .skip { display: none !important; }
  .main, .report-layout, .table-wrap { width: 100%; overflow: visible; }
  .sample-banner { padding: 0 0 5pt; border: 0; background: white; }
  .report-layout .metrics, .report-layout tr { break-inside: avoid; }
  .report-layout .panel, .report-layout .metric { box-shadow: none; animation: none; }
  .report-layout table th, .report-layout table td { padding: 5px 4px; font-size: 8pt; white-space: normal; }
  .report-layout h1 { font-size: 32pt; }
}

.crumb a {
  color: var(--muted);
  max-width: min(29vw, 16rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.map-heading { flex-wrap: wrap; }
.map-heading-title { flex: 1; min-width: 115px; }
.map-heading-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .86rem;
}
.pagination div { display: flex; gap: 7px; }
.record-picker { display: grid; align-content: start; gap: 5px; }
.record-picker small { color: var(--muted); font-size: .82rem; }
.record-picker small:empty { display: none; }
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  resize: vertical;
  font: inherit;
}
.record-notes { white-space: pre-wrap; overflow-wrap: anywhere; }
.backup-layout { display: grid; gap: 20px; }
.dataset-panel .panel-head, .backup-list .panel-head { gap: 12px; }
.dataset-list {
  list-style: none;
  margin: 5px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr));
  gap: 9px;
}
.dataset-list li {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fafcf9;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 9px 10px;
}
.dataset-list li.dataset-active { background: #e9f4e9; border-color: #b7d4be; }
.dataset-list li > div { flex: 1; min-width: 0; }
.dataset-list .metric-symbol { flex: 0 0 36px; width: 36px; height: 36px; }
.dataset-list strong { display: block; overflow-wrap: anywhere; }
.dataset-list small { display: block; color: var(--muted); font-size: .79rem; }
.dataset-list .button { white-space: nowrap; padding-inline: 8px; }
.backup-actions { flex-wrap: wrap; }
.backup-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 7px;
  margin: 12px 0;
}
.backup-metrics div { background: #eff6ed; padding: 10px 12px; border-radius: 9px; }
.backup-metrics dt { color: var(--muted); font-size: .8rem; }
.backup-metrics dd { margin: 3px 0 0; font-size: 1.05rem; font-weight: 750; }
@media (max-width: 520px) {
  .dataset-panel .panel-head { flex-wrap: wrap; }
  .dataset-list li { flex-wrap: wrap; }
  .backup-actions { justify-content: flex-start; }
}
