@font-face {
  font-family: Montserrat;
  src: url("/fonts/Montserrat.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family: Montserrat, Arial, sans-serif;
  color: #171717;
  background: #f5f2ec;
  font-synthesis: none;
  --gold: #c6a05a;
  --line: #dedbd4;
  --muted: #66635d;
  --cream: #f5f2ec;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
.button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 7px;
  border: 1px solid #ccc7bd;
  background: white;
  color: #171717;
  font-weight: 650;
  font-size: 13px;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: #eeeae2;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: #171717;
  color: white;
  border-color: #171717;
}
.primary:hover {
  background: #333;
}
.gold {
  background: var(--gold);
  border-color: var(--gold);
}
.danger {
  color: #9b2626;
}
a {
  color: inherit;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #bdb9b0;
  border-radius: 6px;
  background: white;
  min-height: 44px;
  font-size: 14px;
}
textarea {
  min-height: 120px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  accent-color: #171717;
}
label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 650;
}
label.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #b58c42;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  margin-bottom: 10px;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.6;
  font-size: 14px;
}
.muted,
small {
  color: var(--muted);
}
small {
  font-size: 12px;
  line-height: 1.6;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  color: #7a633b;
}
.brand {
  font-size: 32px;
  font-weight: 850;
  letter-spacing: -1px;
  line-height: 1;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2.5px;
  font-weight: 500;
  color: #d0c4ae;
  margin-top: 10px;
}
.shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #171717;
  color: #f5f2ec;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand {
  margin: 0 14px 38px;
}
.sidebar nav {
  display: grid;
  gap: 7px;
  min-height: 0;
  overflow-y: auto;
  align-content: start;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 13px 15px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #d9d6d0;
  min-height: 46px;
}
.nav-link.active {
  background: #d8be88;
  color: #171717;
}
.nav-link:hover {
  background: #383630;
  color: white;
}
.nav-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.side-bottom {
  margin-top: auto;
  padding: 24px 12px 0;
  font-size: 11px;
  color: #b6b1a8;
  line-height: 1.7;
}
.side-bottom strong {
  display: block;
  color: white;
  margin-bottom: 4px;
  font-size: 12px;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 76px;
  padding: 0 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar .context {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
}
.topbar .account {
  display: flex;
  align-items: center;
  gap: 14px;
}
.account span {
  font-size: 11px;
  display: block;
}
.account strong {
  font-size: 12px;
}
.text-button {
  border: none;
  background: none;
  padding: 8px;
  font-size: 12px;
}
.badge {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 5px;
  background: #eeebe5;
  color: #5e594e;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}
.badge.green {
  background: #e4eee1;
  color: #315a2d;
}
.badge.amber {
  background: #f4e9d2;
  color: #73551c;
}
.badge.gray {
  background: #eee;
  color: #555;
}
.dot {
  width: 6px;
  height: 6px;
  background: #a4874c;
  border-radius: 50%;
}
.content {
  padding: 36px 38px 60px;
  max-width: 1560px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.page-heading p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 26px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 20px;
}
.stat .value {
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -1px;
  display: block;
  margin: 10px 0 3px;
}
.stat small {
  font-size: 10px;
}
.real-metric .value { font-size: 22px; overflow-wrap: anywhere; }
.panel pre { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; }
.filter-bar { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-bottom: 20px; }
.filter-bar label { min-width: 160px; flex: 1; }
.stat-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #5b564b;
}
.stat-title svg {
  color: #a8823e;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 22px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2,
.panel-head h3 {
  margin: 0;
}
.panel-body {
  padding: 24px;
}
.two-col {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
}
.notice {
  background: #eee7d9;
  border: 1px solid #e1d5bc;
  padding: 14px 17px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 23px;
}
.notice p {
  font-size: 12px;
  margin: 0;
}
.empty {
  text-align: center;
  padding: 55px 22px;
  max-width: 580px;
  margin: auto;
}
.empty svg {
  color: #ad8c52;
  width: 35px;
  height: 35px;
  margin-bottom: 16px;
}
.empty p {
  color: var(--muted);
  font-size: 12px;
}
.steps {
  display: grid;
}
.step {
  display: flex;
  gap: 16px;
  padding: 19px 0;
  border-bottom: 1px solid #eee;
}
.step:last-child {
  border: 0;
}
.step-number {
  height: 28px;
  width: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 12px;
  flex-shrink: 0;
}
.step h3 {
  margin-bottom: 7px;
}
.step p {
  font-size: 12px;
  margin: 0;
  color: var(--muted);
}
.filters {
  padding: 20px 22px;
  display: flex;
  align-items: end;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.filters .search {
  flex: 1;
  min-width: 200px;
}
.filters label {
  min-width: 130px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
th {
  background: #f2f0eb;
  padding: 13px 20px;
  font-size: 10px;
  color: #676154;
  font-weight: 650;
  white-space: nowrap;
}
td {
  padding: 15px 20px;
  border-bottom: 1px solid #eae7e1;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.product-cell {
  display: flex;
  gap: 13px;
  align-items: center;
}
.product-cell strong {
  display: block;
  margin-bottom: 5px;
}
.thumb {
  width: 54px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
  background: #eeeae3;
}
.placeholder {
  width: 54px;
  height: 54px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #b0a28b;
  background: #eeeae3;
  font-size: 22px;
  font-weight: 600;
  flex-shrink: 0;
}
.plain-link {
  text-decoration: none;
}
.plain-link:hover {
  text-decoration: underline;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.span2 {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.error {
  color: #8c2b23;
  background: #fff0ed;
  border-radius: 6px;
  padding: 12px 15px;
  font-size: 12px;
  line-height: 1.6;
}
.error:empty {
  display: none;
}
.required {
  color: #8b6b30;
}
.detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.back {
  font-size: 12px;
  text-decoration: none;
}
.back:hover {
  text-decoration: underline;
}
.image-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}
.image-item img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 7px;
}
.image-item {
  display: grid;
  gap: 6px;
}
.image-item button {
  font-size: 11px;
  padding: 5px;
  min-height: 30px;
}
.image-form {
  max-width: 500px;
  display: grid;
  gap: 14px;
}
.code {
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.import-text {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  min-height: 220px;
}
.import-report {
  margin-top: 20px;
}
.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 15px 0;
}
.report-grid div {
  padding: 12px;
  background: var(--cream);
  font-size: 12px;
  border-radius: 6px;
}
.report-grid strong {
  float: right;
}
.history {
  font-size: 11px;
  line-height: 1.8;
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-brand {
  background: #171717;
  color: white;
  padding: 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-brand .brand {
  font-size: 48px;
}
.login-brand h1 {
  font-size: 45px;
  line-height: 1.15;
  max-width: 500px;
}
.login-brand p {
  color: #cac3b6;
  max-width: 400px;
}
.login-brand .eyebrow {
  color: #d1b578;
}
.login-form-wrap {
  display: grid;
  place-items: center;
  padding: 35px;
}
.login-form {
  max-width: 390px;
  width: 100%;
  display: grid;
  gap: 22px;
}
.login-form h1 {
  font-size: 28px;
  margin-bottom: 0;
}
.login-form p {
  font-size: 12px;
}
.login-form footer {
  font-size: 10px;
  color: #736c60;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  line-height: 1.7;
}
dialog {
  border: 1px solid #d6d0c4;
  border-radius: 11px;
  padding: 28px;
  max-width: 650px;
  width: calc(100% - 32px);
  max-height: 90vh;
  overflow: auto;
  color: #171717;
}
dialog::backdrop {
  background: #17171780;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.dialog-head h2 {
  margin: 0;
}
#toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  background: #171717;
  color: #fff;
  border-radius: 7px;
  padding: 15px 23px;
  font-size: 12px;
  box-shadow: 0 5px 30px #0002;
  z-index: 10;
  display: none;
}
.skip {
  position: absolute;
  top: -100px;
  left: 10px;
  z-index: 100;
  background: white;
  padding: 15px;
}
.skip:focus {
  top: 10px;
}
.loading {
  padding: 60px;
  text-align: center;
  font-size: 14px;
}
.list-row {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  font-size: 12px;
  line-height: 1.7;
}
.list-row:last-child {
  border: 0;
}
.file-row {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.file-row label {
  flex: 1;
  min-width: 230px;
}
.section-label {
  font-size: 10px;
  letter-spacing: 1px;
  color: #93816a;
  margin: 20px 15px 10px;
}
.footer-note {
  font-size: 10px;
  color: #7b7569;
  margin-top: 26px;
  line-height: 1.7;
}
.audit-detail {
  max-width: 360px;
  word-break: break-word;
  font-family: ui-monospace, monospace;
  font-size: 10px;
}
.mobile-brand {
  display: none;
}
@media (min-width: 1500px) {
  .content {
    padding-top: 45px;
  }
  .sidebar {
    padding-top: 40px;
  }
  .topbar {
    padding-inline: 45px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 185px 1fr;
  }
  .sidebar {
    padding-inline: 10px;
  }
  .content {
    padding: 25px 22px;
  }
  .topbar {
    padding-inline: 22px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .filters {
    flex-wrap: wrap;
  }
  .login-brand {
    padding: 40px;
  }
  .login-brand h1 {
    font-size: 36px;
  }
}
@media (max-width: 720px) {
  .topbar {height:auto!important;min-height:66px;flex-wrap:wrap;gap:8px;}
  .topbar .context {min-width:0;flex:1 1 100%;flex-wrap:wrap;}
  .topbar .account {width:100%;min-width:0;justify-content:space-between;}
  .topbar .account>div {min-width:0;}
  .topbar .account button {flex-shrink:0;}
  .stat {min-width:0;}
  .stat .value {overflow-wrap:anywhere;}
  .shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: relative;
    padding: 18px 15px 10px;
  }
  .sidebar .brand {
    font-size: 24px;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .brand small {
    font-size: 8px;
    margin: 0;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 5px;
  }
  .nav-link {
    padding: 10px 12px;
    white-space: nowrap;
    min-height: 44px;
    font-size: 11px;
  }
  .nav-icon {
    width: 16px;
    height: 16px;
  }
  .side-bottom,
  .section-label {
    display: none;
  }
  .topbar {
    height: 66px;
    padding: 12px 16px;
  }
  .topbar .context {
    font-size: 10px;
    gap: 6px;
  }
  .account strong {
    font-size: 10px;
  }
  .account span {
    font-size: 9px;
  }
  .account {
    gap: 5px !important;
  }
  .text-button {
    font-size: 10px;
  }
  .content {
    padding: 25px 16px 45px;
  }
  h1 {
    font-size: 25px;
  }
  .page-heading {
    gap: 12px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat .value {
    font-size: 27px;
  }
  .panel-head,
  .panel-body {
    padding: 19px;
  }
  .filters {
    padding: 16px;
    gap: 10px;
  }
  .filters .search {
    flex-basis: 100%;
  }
  .filters label {
    min-width: 110px;
    flex: 1;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span2 {
    grid-column: auto;
  }
  .login-page {
    display: block;
  }
  .login-brand {
    padding: 28px;
  }
  .login-brand .brand {
    font-size: 30px;
  }
  .login-brand h1 {
    font-size: 28px;
    margin: 30px 0 15px;
  }
  .login-brand p {
    display: none;
  }
  .login-form-wrap {
    padding: 30px 24px;
  }
  .login-brand > small {
    display: none;
  }
  .report-grid {
    grid-template-columns: 1fr;
  }
  .page-heading .actions button {
    font-size: 11px;
    padding: 10px;
  }
  .two-col {
    gap: 0;
  }
  .notice {
    font-size: 11px;
  }
  .table-wrap th,
  .table-wrap td {
    padding: 13px 15px;
  }
}

.environment-notice{padding:14px 22px;display:flex;flex-wrap:wrap;gap:8px 20px;line-height:1.5}.qa-notice{background:#183e59;color:#fff;border-bottom:3px solid #c3a15d}.qa-notice span{font-size:13px}.panel li{margin-bottom:12px;line-height:1.6}

.commercial-chart{display:flex;align-items:flex-end;gap:12px;min-height:180px;overflow-x:auto;padding:12px 4px}.daily-bar{flex:0 0 64px;display:flex;align-items:center;flex-direction:column;gap:5px}.daily-bar>div{background:#b89555;width:30px;min-height:2px;border-radius:4px 4px 0 0}.daily-bar>div.negative{background:#aa4d35}.daily-bar small{font-size:9px;white-space:nowrap}.calendar-days{display:grid;grid-template-columns:repeat(auto-fit,minmax(62px,1fr));gap:8px}.calendar-days label{display:flex;align-items:center;gap:5px}.calendar-days input{width:auto}

/* Revisión UX 018: los controles se reacomodan; las tablas conservan su scroll propio. */
.filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));align-items:end}.filters .search,.filters label{min-width:0;width:100%}.filters>*{min-width:0;max-width:100%}
.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid>*,.panel,.panel-body,.stats>*,.actions>*{min-width:0}input,select,textarea{min-width:0;max-width:100%;box-sizing:border-box}label{overflow-wrap:anywhere}.actions,.form-actions,.page-heading{flex-wrap:wrap}.stats{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))}.stat .value{font-size:clamp(21px,2.2vw,32px);white-space:normal;overflow-wrap:anywhere}
.sidebar,.sidebar nav{overflow-x:hidden}.nav-link{white-space:normal;overflow-wrap:anywhere;line-height:1.45}.sidebar .brand{max-width:100%}.workspace,.content{min-width:0;max-width:100%}#nav-toggle{display:none}
dialog{box-sizing:border-box;width:min(780px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;overflow-x:hidden}dialog form,dialog .dialog-body{min-width:0;max-width:100%}button,a.button{white-space:normal;overflow-wrap:anywhere}.pos-shift-help:empty{display:none}
.variant-choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,135px),1fr));gap:12px}.variant-choice-grid button{display:flex;flex-direction:column;gap:9px;min-height:100px;text-align:left}.variant-choice-grid button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:800px){#nav-toggle{display:block;margin:12px 0;width:100%}.sidebar nav{display:none;overflow-x:hidden}.sidebar nav.mobile-nav-open{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));gap:6px;max-width:100%}.sidebar .nav-link{min-width:0;max-width:100%}.topbar{height:auto;min-height:76px;gap:12px;flex-wrap:wrap;padding:14px 20px}.account{flex-wrap:wrap}.form-grid{grid-template-columns:minmax(0,1fr)}}

.pos-login-page{max-width:680px;margin:40px auto;padding:20px}.pos-login-page .brand{color:#171717;margin-bottom:24px}.pos-user-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:24px 0}.pos-user-choice label{display:flex;align-items:center;gap:12px;border:1px solid #c7b48b;padding:20px;border-radius:8px;font-size:18px}.pos-user-choice input{width:auto}.pos-login-page input[type=password]{font-size:24px;min-height:52px;letter-spacing:6px}.pos-login-page button{min-height:48px;width:100%}@media(max-width:440px){.pos-user-choice{grid-template-columns:1fr}.pos-login-page{margin:12px auto;padding:12px}}

.variant-option{min-width:0;display:flex;flex-direction:column;gap:4px}.variant-option>[data-choose-variant]{width:100%;flex:1}.variant-option>.text-button{min-height:36px;padding:6px 10px}.pos-layout .notice{margin-bottom:14px}.notice summary{cursor:pointer;font-weight:600}.pos-shift-help p{font-size:12px;margin:8px 0 12px}

/* Preserve semantic hidden state when component display rules apply. */
[hidden]{display:none!important}
