@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap");

:root {
  --ink: #17201e;
  --muted: #6b7471;
  --line: #e3e7e4;
  --paper: #ffffff;
  --bg: #f5f7f5;
  --green: #1e6b54;
  --soft: #e8f3ee;
  --gold: #d8a35b;
  --nav: #102f29;
  --acid: #d8a35b;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}

button, input, textarea, select { font-family: inherit; }
.shell { grid-template-columns: 242px 1fr; }
aside {
  width: 242px;
  background: var(--nav);
  padding: 25px 16px 18px;
}
.brand { gap: 11px; padding: 0 7px 26px; }
.brand > b {
  width: 39px;
  height: 39px;
  background: var(--gold);
  color: #17372f;
  border-radius: 11px;
  font: 800 19px "Manrope", sans-serif;
}
.brand strong {
  font: 800 18px "Manrope", sans-serif;
  letter-spacing: 0;
}
.brand small { color: #9db8b1; font-size: 10px; letter-spacing: 0; }
nav { gap: 4px; }
nav a {
  color: #abc1bc;
  border-radius: 9px;
  gap: 11px;
  padding: 11px 12px;
  font-size: 12px;
  font-weight: 600;
  transition: color .16s ease, background .16s ease, transform .16s ease;
}
nav a:hover, nav a.active {
  color: #fff;
  background: #1d4a40;
}
nav a:hover { transform: translateX(2px); }
nav a i { width: 18px; font-size: 16px; }
nav a em {
  background: var(--gold);
  color: #17372f;
  border-radius: 20px;
  min-width: 20px;
  padding: 2px 6px;
}
.profile {
  border-top-color: #315049;
  margin-top: 15px;
  padding: 16px 6px 0;
}
.profile > span {
  width: 33px;
  height: 33px;
  background: var(--gold);
  color: #17352e;
  font-size: 10px;
}
.profile strong, .profile small { font-size: 10px; }
.profile small { color: #9bb7b0; }
.profile > a { color: #9bb7b0; font-size: 9px; }

.content {
  padding: 0 32px 50px;
  max-width: none;
}
.content > header {
  height: 82px;
  margin: 0 -32px 28px;
  padding: 0 32px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.content > header p {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0;
  margin: 0 0 2px;
}
.content > header h1 {
  font: 800 20px "Manrope", sans-serif;
}
h1, h2, h3 { font-family: "Manrope", sans-serif; }
.primary {
  border: 1px solid var(--green);
  background: var(--green);
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.primary:hover {
  background: #15523f;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px #173d3418;
}

.hero-grid { gap: 13px; margin-bottom: 16px; }
.card, .panel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  padding: 19px;
  box-shadow: none;
}
.card.cash {
  background: #173c34;
  border-radius: 12px;
  min-height: 155px;
}
.card.cash small { color: #e4b878; }
.card.cash h2 {
  margin: 10px 0 7px;
  font: 800 30px "Manrope", sans-serif;
}
.card.cash p { color: #a9c0ba; }
.metric { min-height: 155px; }
.metric small {
  color: var(--muted);
  letter-spacing: 0;
  font-size: 10px;
}
.metric h2 {
  margin: 16px 0 8px;
  font: 800 23px "Manrope", sans-serif;
}
.metric p { color: #8a6551; }
.grid-two, .rezago-grid { gap: 16px; margin-top: 16px; }
.title { margin-bottom: 16px; }
.title h3, .panel h3 {
  margin: 0 0 3px;
  font: 800 14px "Manrope", sans-serif;
}
.panel small { color: var(--muted); letter-spacing: 0; }
.title > a { color: var(--green); font-weight: 700; }
.count {
  background: var(--gold);
  color: #17372f;
  font-weight: 800;
}
.list-row, .cash-row, .user-row {
  border-top-color: #edf0ee;
  padding: 12px 0;
}
.badge {
  width: 38px;
  height: 38px;
  color: var(--green);
  background: #eaf3ef;
  border-radius: 9px;
}
.list-row strong, .cash-row strong, .user-row strong { font-size: 11px; }
.list-row small, .cash-row small, .user-row small { color: var(--muted); font-size: 9px; }
.cash-row > span { color: var(--green); }
.cash-row b { font: 800 13px "Manrope", sans-serif; }
.user-row > span {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #356c5c;
  color: #fff;
}
.user-row b {
  color: #25724f;
  background: #e5f4ec;
  border-radius: 20px;
  padding: 5px 8px;
  font-size: 8px;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 9px;
}
table { min-width: 850px; }
th {
  color: var(--muted);
  background: #f7f9f8;
  padding: 10px;
  font-size: 9px;
}
td {
  border-bottom-color: #edf0ee;
  padding: 13px 10px;
  font-size: 11px;
}
.pill {
  border-radius: 20px;
  padding: 5px 8px;
  font-size: 9px;
}
.pill.green { color: #25724f; background: #e5f4ec; }
.pill.red { color: #a8512f; background: #fff0e8; }
td select {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  border-radius: 8px;
}
.edit-btn {
  border-color: var(--line);
  color: #52605c;
  background: #fff;
  border-radius: 7px;
  min-height: 29px;
  padding: 5px 8px;
  font-size: 8px;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.edit-btn:hover {
  color: var(--green);
  border-color: #8ab5a5;
  background: #f8fbf9;
}
.big-row { border-bottom-color: #edf0ee; font-size: 11px; }
.inline-form input {
  border-color: var(--line);
  border-radius: 8px;
  color: var(--ink);
}

.overlay { background: #071a16b8; backdrop-filter: blur(2px); }
.modal {
  background: #fff;
  border-radius: 13px;
  padding: 21px;
  box-shadow: 0 25px 80px #001c;
}
.modal-head { margin-bottom: 15px; }
.modal-head h2 { font: 800 18px "Manrope", sans-serif; }
.modal-head button {
  color: #52605c;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.form-grid { gap: 14px; }
.form-grid label, .modal > label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}
.modal input, .modal select, .modal textarea {
  border-color: var(--line);
  border-radius: 8px;
  margin-top: 5px;
  padding: 10px;
  color: var(--ink);
}
.modal input:focus, .modal select:focus, .modal textarea:focus,
.inline-form input:focus {
  border-color: #16815f;
  outline: none;
  box-shadow: 0 0 0 3px #16815f1f;
}
.modal-actions { border-top: 1px solid #edf0ee; padding-top: 14px; }
.modal-actions button:not(.primary) {
  color: #285c4d;
  background: #fff;
  border: 1px solid #cad4d0;
}
.toast {
  background: #173d34;
  border-radius: 9px;
  padding: 11px 15px;
  font-size: 10px;
  box-shadow: 0 10px 30px #0014;
}

.update-panel { max-width: 820px; }
.secure-badge {
  color: #25724f;
  background: #e5f4ec;
  border-radius: 20px;
}
.preserve-box {
  background: #f6f8f7;
  border-color: var(--line);
  border-radius: 9px;
}
.update-form {
  border-color: #cbd7d2;
  border-radius: 9px;
}

.login-page, .install-page {
  background:
    radial-gradient(circle at 15% 10%, #e7f8f0 0, transparent 34%),
    radial-gradient(circle at 90% 90%, #e9efff 0, transparent 38%),
    #f5f7fa;
}
.login-card, .install-card {
  width: min(440px, 100%);
  border: 1px solid #dde3ea;
  border-radius: 22px;
  padding: 34px;
  box-shadow: 0 24px 70px #1f2a3721;
}
.login-brand {
  border-bottom: 1px solid #edf0f3;
  padding-bottom: 18px;
}
.login-brand > b {
  width: 46px;
  height: 46px;
  color: #fff;
  background: #126c52;
  border-radius: 14px;
  font: 800 20px "Manrope", sans-serif;
}
.login-brand strong {
  font: 800 20px "Manrope", sans-serif;
  letter-spacing: 0;
}
.login-brand small { color: #73808d; letter-spacing: 0; font-size: 10px; }
.login-card h1, .install-card h1 {
  margin: 28px 0 7px;
  font: 800 22px "Manrope", sans-serif;
}
.login-card > p, .install-card > p { color: #687684; font-size: 13px; line-height: 1.5; }
.login-card label, .install-card label { color: #344151; font-size: 13px; }
.login-card input, .install-card input {
  height: 44px;
  border-color: #ccd4dc;
  border-radius: 10px;
}
.login-card input:focus, .install-card input:focus {
  border-color: #16815f;
  outline: none;
  box-shadow: 0 0 0 3px #16815f1f;
}
.login-card .primary, .install-card .primary { width: 100%; height: 46px; }
.notice.error { color: #a22929; background: #fff0f0; }

@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: repeat(2, 1fr); }
  .card.cash { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 68px 1fr; }
  aside { width: 68px; padding: 18px 9px; }
  .brand > div, .profile > div, .profile > a, nav a { font-size: 0; }
  .brand { padding: 0 5px 24px; }
  nav a { justify-content: center; }
  nav a i { display: block; margin: 0; }
  nav a.active { font-size: 0; }
  .content { padding: 0 14px 50px; }
  .content > header { margin: 0 -14px 20px; padding: 0 14px; }
  .hero-grid, .grid-two, .rezago-grid { grid-template-columns: 1fr; }
  .panel { overflow: auto; }
}
@media (max-width: 520px) {
  .shell { display: block; }
  aside {
    width: auto;
    height: 64px;
    padding: 6px;
    background: var(--nav);
  }
  nav a { border-radius: 8px; }
  nav a:hover { transform: none; }
  .content { padding-bottom: 88px; }
  .content > header { height: 72px; }
  .content > header h1 { font-size: 18px; }
  .content > header .primary { padding: 9px 10px; font-size: 9px; }
}
