* { box-sizing: border-box; }
body { margin: 0; background: #f6f1ec; color: #2f2022; font: 16px system-ui, sans-serif; }
header { background: #64132b; color: white; padding: 1rem max(1rem, calc((100% - 62rem)/2)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; }
main { max-width: 64rem; margin: auto; padding: 1rem; }
nav, .actions { display: flex; flex-wrap: wrap; gap: .6rem; }
nav a, button { background: #64132b; color: white; padding: .7rem 1rem; border: 0; border-radius: .45rem; font: inherit; text-decoration: none; cursor: pointer; }
nav a[aria-current="page"] { background: #321018; }
article, form { background: white; border: 1px solid #e3d7d2; border-radius: .7rem; padding: 1rem; margin: 1rem 0; }
label { display: grid; gap: .35rem; margin: .7rem 0; }
input, select { font: inherit; padding: .6rem; border: 1px solid #826b70; border-radius: .35rem; }
button:disabled { opacity: .55; cursor: default; }
#feedback { min-height: 1.4rem; }
.erp-layout { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.erp-layout aside { display: grid; gap: .2rem; background: #401324; border-radius: .75rem; padding: .65rem; }
.erp-layout aside a { color: white; text-decoration: none; padding: .65rem; border-radius: .35rem; }
.erp-layout aside a:hover, .erp-layout aside a[aria-current] { background: #78233d; }
.erp-content h1 { margin: .15rem 0 1rem; }
.erp-content h2 { margin-top: 0; font-size: 1.1rem; }
.erp-content a { color: #64132b; font-weight: 650; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .65rem; }
.metrics article { display: grid; gap: .5rem; margin: 0 0 1rem; }
.metrics strong { font-size: 1.35rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { border-bottom: 1px solid #e3d7d2; padding: .7rem .45rem; }
th { background: #f6f1ec; }
@media (max-width: 620px) {
  .erp-layout { grid-template-columns: 1fr; gap: 1rem; }
  .erp-layout aside { display: flex; flex-wrap: wrap; }
}
