:root {
  --bg: #f5f6f8;
  --ink: #283a3b;
  --muted: #657577;
  --line: #e2e7e7;
  --rose: #a85e70;
}
body {
  font-size: 14px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--ink);
}
h1,
h2,
h3 {
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  letter-spacing: -0.035em;
}
h1 {
  font-size: 30px;
}
h2 {
  font-size: 21px;
}
h3 {
  font-size: 18px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
aside {
  width: 260px;
  background: #fff;
  border-color: var(--line);
  padding: 26px 18px;
}
.sidebar-brand img {
  height: 75px;
  margin-bottom: 15px;
}
.sidebar-caption {
  font-size: 10px;
  color: var(--muted);
  margin: 12px 0;
}
nav {
  gap: 6px;
}
nav button {
  border: 0;
  border-radius: 12px;
  padding: 12px 15px;
  min-height: 52px;
  font-size: 14px;
  font-weight: 600;
  color: #546569;
  transition: background 0.15s;
}
nav button small {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 400;
  color: #7b888a;
  margin-top: 2px;
}
nav button.active {
  border: 0;
  background: #f7eaf0;
  color: #904c60;
}
nav button:hover {
  background: #f2f5f5;
}
.sidebar-bottom {
  font-size: 12px;
  padding: 18px 14px 0;
  border-top: 1px solid var(--line);
}
main {
  margin-left: 260px;
  padding: 0 36px 30px;
  max-width: 1620px;
}
header {
  position: static;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 0;
  padding: 30px 0 10px;
}
.primary,
.secondary,
.danger {
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  min-height: 44px;
}
.primary {
  background: #a85e70;
  color: white;
}
.primary:hover {
  background: #8d4c5d;
}
.secondary {
  background: white;
  border-color: #d9e0e0;
}
.secondary:hover {
  background: #eef2f2;
}
.danger {
  border-color: #ebcccf;
}
.intro {
  font-size: 14px;
  max-width: 780px;
  margin-bottom: 24px;
  color: #617275;
}
.stats,
.business-stats {
  gap: 16px;
  margin-bottom: 25px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 3px 12px #283a3b04;
}
.stat strong,
.business-stats strong {
  font-family: "Manrope", sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #304b4a;
}
.stat span {
  font-size: 12px;
  color: #6b7b7d;
}
.stat:first-child {
  background: #eaf3ef;
  border-color: #d6e7df;
}
.stat:first-child strong {
  color: #346451;
}
.quick-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.quick-actions button {
  font:
    600 17px "Manrope",
    sans-serif;
  border-radius: 15px;
  padding: 24px;
  background: white;
  border-color: var(--line);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.quick-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px #283a3b0b;
  border-color: #c59eab;
}
.quick-actions small {
  font:
    400 12px/1.6 "Manrope",
    sans-serif;
  color: #6b7b7d;
  margin-top: 7px;
}
.action-label {
  display: block;
  font:
    600 10px "Manrope",
    sans-serif;
  color: #a85e70;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.panel,
.edit-card,
details {
  background: #fff;
  border-color: var(--line);
  border-radius: 16px;
  padding: 24px;
}
.section-subheading {
  margin-top: 25px;
}
.toolbar p {
  font-size: 13px;
  max-width: 650px;
}
label {
  font-size: 13px;
  color: #506467;
  font-weight: 500;
}
input,
textarea,
select {
  font-size: 16px;
  border-radius: 9px;
  background: #fff;
  border-color: #d5dfe0;
  min-height: 46px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #c9879a55;
  border-color: #b8778a;
}
.table-scroll {
  background: white;
  border-color: var(--line);
  border-radius: 12px;
}
.business-table {
  font-size: 13px;
}
.business-table th {
  background: #f1f5f5;
  font-size: 11px;
  color: #597073;
  font-weight: 600;
  padding: 16px;
}
.business-table td {
  padding: 17px 16px;
  border-color: #edf0f0;
}
.business-table small {
  font-size: 11px;
  color: #758386;
}
.business-table button {
  font-size: 12px;
  min-height: 32px;
  margin: 0 0 5px;
  color: #93546a;
}
.business-table select {
  font-size: 13px;
  min-height: 42px;
}
.muted {
  font-size: 12px;
  color: #718084;
}
.section-guide {
  border: 1px solid #dbe6e4;
  border-radius: 15px;
  background: #ecf3f1;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.guide-tag {
  font-size: 9px;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: #5c7d73;
}
.section-guide h2 {
  font-size: 18px;
  margin: 7px 0;
}
.section-guide p {
  font-size: 13px;
  margin: 0;
  color: #59716c;
  max-width: 820px;
}
.login-screen {
  background:
    radial-gradient(ellipse at top left, #f4e5e9, transparent 55%), #f1f5f4;
  padding: 36px 20px;
}
.login-brand img {
  width: 150px;
  height: 100px;
  margin-bottom: 20px;
}
.login-card {
  border-radius: 22px;
  border: 1px solid #e6e4e6;
  background: #fffffff5;
  box-shadow: 0 18px 70px #46575b0c;
  padding: 36px;
  width: min(460px, 100%);
}
.login-card h1 {
  font-size: 29px;
  line-height: 1.3;
  margin-top: 12px;
}
.login-card > p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.7;
}
.login-card form {
  margin-top: 25px;
}
.login-card .primary {
  font-size: 14px;
}
.back-site,
.text-button {
  font-size: 12px;
}
.login-screen + .creator-credit {
  background: #f1f5f4;
}
.creator-credit {
  padding: 12px 20px 24px;
}
#dashboard:not([hidden]) ~ .creator-credit {
  margin-left: 260px;
}
#app-status:empty {
  display: none;
}
#app-status {
  border-radius: 9px;
  padding: 12px 15px;
  background: #fff;
  font-size: 13px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 30px;
  box-shadow: 0 22px 80px #142c3b22;
}
dialog::backdrop {
  background: #24343888;
  backdrop-filter: blur(3px);
}
.item-line {
  border-radius: 12px;
  background: #f6f8f8;
  border-color: var(--line);
}
.calculated-total {
  font-family: "Manrope", sans-serif;
  font-size: 24px;
}
.empty {
  font-size: 13px;
  color: #758386;
  background: #fafcfc;
  border: 0;
}
.low-stock td {
  background: #fff7ed;
}
.edit-card .card-photo {
  border-radius: 10px;
}
.card-footer {
  border-color: var(--line);
}
footer {
  font-size: 11px;
  color: #7b898b;
}
.photo-actions button,
.card-footer button {
  font-size: 12px;
}
.header-actions {
  gap: 8px;
}
#save-state {
  font-size: 11px;
}
@media (min-width: 761px) and (max-width: 1100px) {
  aside {
    width: 220px;
  }
  main {
    margin-left: 220px;
    padding: 0 22px 24px;
  }
  #dashboard:not([hidden]) ~ .creator-credit {
    margin-left: 220px;
  }
  header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .header-actions {
    justify-content: flex-start;
  }
  .business-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  aside {
    position: static;
    width: 100%;
    padding: 14px 16px 0;
  }
  .sidebar-brand img {
    width: 90px;
    height: 60px;
    margin: 0;
  }
  .sidebar-caption {
    display: none;
  }
  nav {
    flex-direction: row;
    gap: 7px;
    overflow-x: auto;
    margin-top: 12px;
    padding-bottom: 10px;
  }
  nav button,
  #finance-nav button {
    flex: none;
    font-size: 13px;
    white-space: nowrap;
    min-height: 44px;
    padding: 11px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
  }
  nav button small {
    display: none;
  }
  nav button.active {
    border: 1px solid #e7c8d3;
  }
  .sidebar-bottom {
    position: static;
    margin: 0;
    padding: 9px 0 12px;
    flex-direction: row;
    overflow-x: auto;
    gap: 20px;
    white-space: nowrap;
    font-size: 12px;
  }
  main {
    margin: 0;
    padding: 0 16px 24px;
  }
  header {
    padding: 24px 0 15px;
    display: block;
  }
  header h1 {
    font-size: 25px;
  }
  .header-actions {
    margin-top: 16px;
    justify-content: flex-start;
  }
  .header-actions button {
    padding: 10px 12px;
    font-size: 12px;
  }
  .business-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat,
  .business-stats .stat {
    padding: 18px 14px;
    border-radius: 13px;
  }
  .stat strong,
  .business-stats strong {
    font-size: 23px;
  }
  .stat span {
    font-size: 11px;
  }
  .quick-actions {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .quick-actions button {
    padding: 18px 14px;
    font-size: 14px;
    line-height: 1.5;
  }
  .quick-actions small {
    font-size: 11px;
  }
  .action-label {
    font-size: 8px;
    margin-bottom: 8px;
  }
  .panel,
  .edit-card {
    padding: 18px;
  }
  .section-guide {
    padding: 17px 18px;
  }
  .section-guide p {
    font-size: 12px;
  }
  .section-guide h2 {
    font-size: 17px;
  }
  .toolbar {
    gap: 14px;
  }
  .toolbar .backup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  #dashboard:not([hidden]) ~ .creator-credit {
    margin-left: 0;
  }
  .login-card {
    padding: 28px 24px;
  }
  .login-card h1 {
    font-size: 27px;
  }
  .edit-grid {
    grid-template-columns: 1fr;
  }
  .report-filter {
    align-items: stretch;
  }
  .report-filter label {
    flex: 1;
    min-width: 120px;
  }
  .business-table {
    min-width: 640px;
  }
  .login-screen {
    min-height: calc(100dvh - 50px);
  }
  dialog {
    padding: 22px;
    width: 94vw;
  }
  .row {
    grid-template-columns: 1fr 1fr;
  }
  #record-form .row {
    grid-template-columns: 1fr;
  }
  .login-brand img {
    margin-bottom: 12px;
  }
  .creator-credit {
    font-size: 10px;
  }
  .table-scroll:after {
    content: "Desliza la tabla para ver más columnas";
    display: block;
    padding: 10px 14px;
    font-size: 10px;
    color: #7b898b;
    background: #f7f9f9;
  }
  .table-scroll {
    margin-bottom: 18px;
  }
}
