@font-face {
  font-family: system;
  src: local("Segoe UI");
}
:root {
  --ink: #183c39;
  --muted: #526e69;
  --rim: rgba(255, 255, 255, 0.85);
  --glass: rgba(255, 255, 255, 0.66);
  --glass-shadow:
    0 14px 46px rgba(41, 91, 86, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.98);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f5f6f2;
  color: #253b35;
  font-family: system, Arial, sans-serif;
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
a {
  color: inherit;
}
.shell {
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #193f36;
  color: #eff4e8;
  padding: 33px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
}
.brand img {
  width: 38px;
}
.wordmark {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 3px;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  color: #a4beb3;
  margin-top: 5px;
}
.nav-label {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #8fac9f;
  padding: 36px 15px 12px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nav button {
  background: none;
  border: 0;
  color: #b8cdc3;
  text-align: left;
  padding: 13px 16px;
  border-radius: 10px;
  display: flex;
  gap: 13px;
  align-items: center;
}
.nav button.active {
  color: #edfacd;
  background: #315449;
}
.nav button:hover {
  background: #2a4c42;
}
.icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.side-bottom {
  margin-top: auto;
}
.connection {
  margin: 25px 10px;
  padding: 14px;
  border: 1px solid #426254;
  border-radius: 10px;
  font-size: 12px;
  color: #c1d5c9;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #b8d886;
  border-radius: 50%;
  margin-right: 7px;
}
.profile {
  border-top: 1px solid #36574b;
  padding: 20px 5px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  background: #d3e4ab;
  color: #234236;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.profile small {
  display: block;
  color: #a7bfb2;
  font-size: 11px;
  margin-top: 3px;
}
.logout {
  margin-left: auto;
  background: none;
  color: #b8cdc3;
  border: 0;
}
.main {
  padding: 0 38px 35px;
  min-width: 0;
}
.topbar {
  height: 86px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e1e5dc;
  justify-content: space-between;
  color: #8a9690;
  font-size: 12px;
}
.topbar strong {
  color: #3a5549;
  font-weight: 500;
}
.top-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}
.pill {
  border: 1px solid #dce3d6;
  padding: 7px 11px;
  border-radius: 20px;
  color: #5b7164;
  font-size: 11px;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 32px 0 27px;
  gap: 20px;
}
.eyebrow {
  font-size: 10px;
  color: #718773;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 0;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}
p {
  color: #7a887e;
  line-height: 1.7;
}
.heading p {
  margin: 7px 0 0;
  font-size: 13px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 16px;
  background: white;
  border: 1px solid #dbe2d5;
  border-radius: 8px;
  color: #3c5549;
  font-weight: 500;
  text-decoration: none;
  font-size: 12px;
  white-space: nowrap;
}
.btn.primary {
  background: #193f36;
  border-color: #193f36;
  color: #f0f5e4;
}
.btn.soft {
  background: #eaf0de;
}
.btn.danger {
  color: #a94638;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 24px;
}
.stat {
  background: #fff;
  border: 1px solid #e1e6dc;
  border-radius: 12px;
  padding: 22px;
  position: relative;
}
.stat.featured {
  background: #dfe9c9;
  border-color: #dfe9c9;
}
.stat label {
  font-size: 12px;
  color: #70816d;
  display: block;
}
.stat .number {
  font-size: 28px;
  letter-spacing: -1px;
  font-weight: 600;
  margin: 18px 0 11px;
  white-space: nowrap;
}
.stat .caption {
  font-size: 11px;
  color: #8a9980;
}
.stat .stat-icon {
  position: absolute;
  right: 20px;
  top: 20px;
  color: #769262;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 22px;
}
.panel {
  background: white;
  border: 1px solid #e1e6dc;
  border-radius: 12px;
  overflow: hidden;
}
.panel-head {
  padding: 24px 25px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.panel-head p {
  font-size: 11px;
  margin: 6px 0 0;
}
.text-link {
  background: none;
  border: 0;
  color: #668347;
  font-size: 12px;
}
.office-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 15px 25px;
  border-top: 1px solid #eff1eb;
}
.office-row strong {
  font-size: 12px;
  font-weight: 600;
}
.office-row small {
  display: block;
  color: #929c90;
  font-size: 11px;
  margin-top: 6px;
}
.office-row .value {
  text-align: right;
  font-weight: 600;
  font-size: 12px;
}
.bar {
  height: 5px;
  border-radius: 3px;
  background: #edf1e5;
  margin-top: 10px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: #759961;
  border-radius: 3px;
}
.category-list {
  padding: 3px 24px 23px;
}
.category {
  margin: 18px 0;
}
.category label {
  font-size: 11px;
  color: #64755f;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.note-card {
  padding: 22px 25px;
  border-top: 1px solid #e7eddf;
  background: #f4f7ed;
}
.note-card strong {
  font-size: 13px;
}
.note-card p {
  font-size: 11px;
  margin: 5px 0 0;
}
.inventory {
  margin-top: 23px;
}
.filters {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 23px;
  background: #fff;
  border-bottom: 1px solid #e8ede2;
  flex-wrap: wrap;
}
.search {
  flex: 1;
  min-width: 200px;
}
.search input,
.filters select {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid #dde4d5;
  border-radius: 7px;
  background: #fafbf8;
  color: #52674f;
}
.filters select {
  width: auto;
  max-width: 240px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
th {
  padding: 13px 20px;
  background: #fafbf7;
  color: #89947f;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid #e8ede2;
}
td {
  padding: 16px 20px;
  border-bottom: 1px solid #eff1eb;
  font-size: 12px;
  color: #61705a;
}
td.name {
  color: #344e3e;
  font-weight: 600;
  min-width: 220px;
  max-width: 350px;
  white-space: normal;
}
td.name small {
  display: block;
  color: #92a087;
  font-size: 10px;
  margin-top: 5px;
  font-weight: 400;
}
.badge {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 6px;
  background: #edf3e4;
  color: #72865a;
  font-size: 10px;
}
.badge.warn {
  color: #a57734;
  background: #faf0d9;
}
.badge.gray {
  color: #7d827b;
  background: #eff0ec;
}
.row-action {
  background: none;
  border: 0;
  color: #627953;
  font-size: 12px;
  padding: 5px;
}
.table-footer {
  padding: 16px 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: #919c8a;
  font-size: 11px;
}
.empty {
  padding: 50px 25px;
  text-align: center;
  color: #8b9981;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.office-card {
  padding: 25px;
  background: white;
  border: 1px solid #e1e6dc;
  border-radius: 12px;
}
.office-card .icon {
  color: #83a16b;
  margin-bottom: 15px;
}
.office-card p {
  font-size: 12px;
  min-height: 40px;
}
.office-card strong {
  display: block;
  font-size: 22px;
  margin-top: 20px;
}
.report-card {
  padding: 30px;
  background: #fff;
  border: 1px solid #e1e6dc;
  border-radius: 12px;
}
.report-card.feature {
  grid-column: 1/-1;
  background: #dfe9c9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.report-card p {
  font-size: 12px;
  max-width: 620px;
}
.report-card .actions {
  margin-top: 20px;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.auth-story {
  background: #193f36;
  color: #e6eed7;
  padding: 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-story h1 {
  font-size: 55px;
  max-width: 550px;
  line-height: 1.14;
  letter-spacing: -2px;
}
.auth-story p {
  color: #a7c1ae;
  max-width: 410px;
}
.auth-story .outline {
  position: absolute;
  width: 340px;
  height: 340px;
  border: 1px solid #3b5c46;
  transform: rotate(45deg);
  right: -140px;
  bottom: 100px;
  border-radius: 50px;
}
.auth-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px;
}
.auth-form form {
  width: 360px;
}
.auth-form h2 {
  font-size: 27px;
  margin-bottom: 10px;
}
.auth-form .btn {
  width: 100%;
  margin-top: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 15px;
}
.field label {
  color: #637458;
  font-size: 12px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #dce4d3;
  border-radius: 7px;
  background: #fafbf8;
  color: #344c38;
}
.field textarea {
  min-height: 80px;
  resize: vertical;
}
.field.full {
  grid-column: 1/-1;
}
.hint {
  font-size: 11px;
  color: #8c9784;
  line-height: 1.6;
}
.error {
  color: #aa4d3a;
  background: #f8eae4;
  padding: 11px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
}
.error:empty {
  display: none;
}
dialog {
  border: 1px solid #e0e6d6;
  border-radius: 16px;
  width: min(690px, calc(100vw - 30px));
  padding: 0;
  box-shadow: 0 25px 100px #132b2340;
  max-height: 90vh;
  color: #334c3c;
}
dialog::backdrop {
  background: #122e2855;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 28px;
  border-bottom: 1px solid #e5eadf;
}
.modal-content {
  padding: 25px 28px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 15px;
}
.close {
  background: none;
  border: 0;
  font-size: 24px;
  color: #829278;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #193f36;
  color: #edf4df;
  padding: 13px 24px;
  border-radius: 10px;
  box-shadow: 0 5px 20px #122e2830;
  z-index: 10;
  display: none;
  max-width: 90vw;
}
.loading {
  display: grid;
  place-content: center;
  height: 100vh;
  font-size: 30px;
  letter-spacing: 6px;
}
.loading span {
  font-size: 13px;
  letter-spacing: 0;
  margin-top: 20px;
  color: #7d8f72;
}
.mobile-brand {
  display: none;
}
.selection-info {
  background: #eff4e3;
  color: #5e7950;
  padding: 12px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.check {
  accent-color: #2d573e;
}
.mono {
  font-family: Consolas, monospace;
  font-size: 10px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.detail-grid label {
  display: block;
  color: #8b9880;
  font-size: 11px;
  margin-bottom: 5px;
}
.detail-grid strong {
  font-size: 13px;
}
.source-note {
  margin-top: 20px;
  background: #f2f5eb;
  padding: 13px;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.6;
}
.footer-note {
  padding: 26px 0 0;
  color: #a2ac98;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
}
.spacer {
  height: 20px;
}
.wrap {
  white-space: normal;
  max-width: 400px;
}
@media (min-width: 1600px) {
  .main {
    padding-left: 55px;
    padding-right: 55px;
  }
  .stat .number {
    font-size: 33px;
  }
  .office-row {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .main {
    padding: 0 24px 25px;
  }
  .stat {
    padding: 17px;
  }
  .stat .number {
    font-size: 23px;
  }
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 40px;
  }
  .auth-story h1 {
    font-size: 40px;
  }
}
@media (max-width: 750px) {
  .shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: relative;
    padding: 15px;
  }
  .sidebar .brand,
  .nav-label,
  .side-bottom {
    display: none;
  }
  .nav {
    flex-direction: row;
    overflow: auto;
    gap: 5px;
  }
  .nav button {
    padding: 10px;
    font-size: 11px;
  }
  .nav button .icon {
    display: none;
  }
  .main {
    padding: 0 16px 25px;
  }
  .topbar {
    height: 60px;
  }
  .top-meta .pill {
    display: none;
  }
  .heading {
    margin: 24px 0;
    align-items: flex-start;
    flex-direction: column;
  }
  h1 {
    font-size: 27px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat .number {
    font-size: 23px;
  }
  .stat .stat-icon {
    display: none;
  }
  .stat label {
    font-size: 10px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .auth {
    display: block;
  }
  .auth-story {
    padding: 30px;
    min-height: 220px;
  }
  .auth-story h1 {
    font-size: 30px;
    margin-top: 20px;
  }
  .auth-story p,
  .auth-story .foot {
    display: none;
  }
  .auth-form {
    padding: 35px 25px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .report-card.feature {
    display: block;
  }
  .topbar .mobile-brand {
    display: block;
  }
  .table-footer {
    flex-wrap: wrap;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .filters {
    padding: 14px;
  }
  .filters select {
    max-width: 100%;
  }
  .footer-note {
    display: block;
  }
  .heading .actions {
    width: 100%;
  }
}
/* Logotipo original suministrado por la constructora. */
.brand img.company-logo {
  width: 100%;
  height: auto;
  max-width: 190px;
  object-fit: contain;
  background: #fff;
  padding: 9px;
  border-radius: 8px;
}
.auth-story .brand {
  padding: 0;
}
.auth-story .brand img.company-logo {
  max-width: 265px;
  padding: 15px;
}
.brand:has(.company-logo) {
  display: block;
  padding: 0;
}
.connection small {
  display: block;
  margin-top: 6px;
}
@media (max-width: 1100px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat .stat-icon {
    display: none;
  }
}
