@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;1,6..72,300;1,6..72,400&display=swap");
/* Feliver · estilos compartidos de la tienda y los paneles */
:root {
  --bg: #FFFFFF;
  --surface: #F5F3EF;
  --plate: #E9E1D6;
  --ink: #121010;
  --muted: #5E5955;
  --line: #E6E1DA;
  --accent: #0E0E0E;
  --good: #2F5D3A;
  --warn: #8A5A12;
  --bad: #9B2C2C;
  --display: "Newsreader", "Times New Roman", serif;
  --body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 20px; }

.label { font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.display { font-family: var(--display); font-weight: 400; letter-spacing: -.02em; line-height: 1.05; margin: 0; text-wrap: balance; }
.display em { font-style: italic; color: var(--accent); }
h2.display { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-family: var(--display); font-weight: 400; font-size: 1.35rem; margin: 0; line-height: 1.2; }
p { margin: 0; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* Barra superior */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { font-family: var(--display); font-size: 26px; font-weight: 400; letter-spacing: -.02em; text-transform: none; text-decoration: none; }
.logo span { font-style: italic; }

/* Botones y campos */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; font: inherit; font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--ink); border-radius: 0; cursor: pointer; background: var(--ink); color: var(--bg); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.line { background: transparent; color: var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--bg); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 11px; }
.btn:disabled { opacity: .5; cursor: default; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 0; width: 100%; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.hint { font-size: 13px; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.msg { font-size: 14px; min-height: 1.3em; }
.msg.error { color: var(--bad); }
.msg.ok { color: var(--good); }

/* Paneles */
.panel-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: calc(100vh - 65px); }
.side { border-right: 1px solid var(--line); padding: 24px 14px; display: flex; flex-direction: column; gap: 4px; }
.side button { font: inherit; text-align: left; background: none; border: 0; padding: 11px 12px; cursor: pointer; font-size: 14px; letter-spacing: .04em; color: var(--ink); }
.side button[aria-current="page"] { background: var(--ink); color: var(--bg); }
.main { padding: 32px 36px 64px; display: flex; flex-direction: column; gap: 28px; min-width: 0; }
@media (max-width: 820px) {
  .panel-layout { grid-template-columns: 1fr; }
  .side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; }
  .side button { white-space: nowrap; }
  .main { padding: 24px 18px 56px; }
}
.box { border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.box.soft { background: var(--surface); border-color: transparent; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: #fff; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.stat .v { font-family: var(--display); font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 12.5px; color: var(--muted); }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tablewrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: var(--surface); white-space: nowrap; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border: 1px solid currentColor; white-space: nowrap; }
.pill.pending { color: var(--warn); }
.pill.confirmed { color: var(--good); }
.pill.paid { color: var(--ink); }
.pill.rejected { color: var(--bad); }
.empty { padding: 28px; text-align: center; color: var(--muted); font-size: 14px; }
.copy { display: flex; gap: 8px; align-items: center; }
.copy code { font-size: 13px; background: var(--surface); padding: 6px 8px; word-break: break-all; }

/* Acceso */
.auth { max-width: 420px; margin: 72px auto; padding-inline: 20px; display: flex; flex-direction: column; gap: 18px; }

/* Estilo editorial blanco y negro (look tipo ShopMy) */
.btn{border-radius:0;text-transform:uppercase;letter-spacing:.14em;font-size:12px;font-weight:600}
.display{font-weight:300}
