/* London Imports — painel do administrador (mesmo estilo da loja) */
:root {
  --bg: #f5f3ee; --card: #fff; --ink: #141414; --ink-2: #57534c; --line: #e3dfd6;
  --black: #111; --gold: #b8913f; --gold-text: #7d5f24; --red: #b3261e;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2 { margin: 0; line-height: 1.15; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.ph { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; padding: 0 clamp(16px, 4vw, 40px); background: #fff; border-bottom: 1px solid var(--line); }
.ph-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.ph-brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.ph-brand span { font-weight: 700; font-stretch: 118%; text-transform: uppercase; letter-spacing: .05em; font-size: 16px; }
.ph-brand small { font-size: 13px; color: var(--ink-2); border-left: 1px solid var(--line); padding-left: 10px; }
.ph-act { display: flex; gap: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 80px; }
.dash-head { padding: 32px 0 6px; }
.dash-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 700; letter-spacing: -.01em; }
.dash-head p { margin: 6px 0 0; color: var(--ink-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 10px; border: 0; cursor: pointer; background: var(--ink); color: #fff; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; transition: background .2s, color .2s; }
.btn:hover { background: #2b2b2b; }
.btn.ghost { background: none; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn:disabled { opacity: .5; cursor: wait; }

.box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: clamp(18px, 3vw, 28px); margin: 20px 0; }
.box h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }

.login { max-width: 420px; margin: 56px auto; text-align: center; }
.login-logo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; }
.login h2 { font-size: 24px; margin-bottom: 6px; }
.login-sub { color: var(--ink-2); margin: 0 0 22px; }
.login .f { text-align: left; }

.f { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.f .full { grid-column: 1 / -1; }
.f label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.f input, .f select, .f textarea { width: 100%; min-height: 46px; background: #fff; border: 1px solid #8a8478; border-radius: 10px; color: var(--ink); padding: 11px 13px; font: inherit; font-weight: 400; transition: border-color .2s; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20,20,20,.08); }
.f input[type="file"] { padding: 9px; cursor: pointer; background: var(--bg); }
.f input[type="file"]::file-selector-button { margin-right: 12px; border: 0; border-radius: 8px; padding: 8px 14px; background: var(--ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.f textarea { resize: vertical; min-height: 96px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.check { display: inline-flex !important; align-items: center; gap: 8px !important; min-height: 44px; padding: 0 14px; border: 1px solid #8a8478; border-radius: 10px; cursor: pointer; font-weight: 600; }
.check input { width: 18px !important; min-height: 0 !important; height: 18px; accent-color: var(--ink); padding: 0 !important; margin: 0; }
.msg { margin: 0; min-height: 20px; color: var(--gold-text); font-size: 14px; font-weight: 600; }

.cols { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: start; }

#list { max-height: 560px; overflow-y: auto; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--bg); flex: none; }
.row div { flex: 1; min-width: 0; }
.row b { font-weight: 600; }
.row small { color: var(--ink-2); }
.row button { min-height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid #d6d1c6; background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.row button:hover { border-color: var(--ink); }
.row button[data-d]:hover { border-color: var(--red); color: var(--red); }

.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumbs:empty { display: none; }
.thumbs div { position: relative; width: 80px; height: 80px; border-radius: 10px; background: var(--bg) center / cover; border: 1px solid var(--line); cursor: pointer; overflow: hidden; }
.thumbs div.cover { outline: 2px solid var(--ink); outline-offset: 1px; }
.thumbs b { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.75); color: #fff; text-align: center; line-height: 24px; font-size: 14px; }
.thumbs small { position: absolute; left: 0; right: 0; bottom: 0; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; text-align: center; }

/* cupons e relatório */
.sub { margin: 26px 0 8px; font-size: 16px; font-weight: 700; }
.note { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
.link { border: 0; background: none; padding: 6px 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--gold-text); text-decoration: underline; cursor: pointer; }
.c-prods-h { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.c-list { display: grid; gap: 6px; max-height: 240px; overflow-y: auto; padding: 6px; border: 1px solid #8a8478; border-radius: 10px; }
.f .c-item { display: flex; grid-template-columns: none; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-weight: 500; }
.f .c-item:hover { background: var(--bg); }
.f .c-item input { width: 18px; min-height: 0; height: 18px; padding: 0; flex: none; accent-color: var(--ink); }
.c-item img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--bg); flex: none; }
.c-item span { display: grid; line-height: 1.3; }
.c-item small { color: var(--ink-2); font-weight: 400; }
.c-row small { display: block; }
.c-names { font-size: 12px; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--bg); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.rep { overflow-x: auto; }
.rep table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rep th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.rep td { padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rep td small { display: block; color: var(--ink-2); font-size: 12px; }
.rep tfoot td { font-weight: 700; border-bottom: 0; }
.rep .save { color: #1d7a3e; font-weight: 700; }
.rep-act { display: flex; gap: 14px; margin-top: 2px; }
.rep .link { font-size: 13px; padding: 2px 0; }
.link.danger { color: var(--red); }
.rep tr.use td { padding: 6px 8px; background: var(--bg); font-size: 13px; }
.rep tr.use td:first-child { display: flex; align-items: center; gap: 12px; padding-left: 18px; }
.rep tr.use small { display: inline; }
.note.top { margin: -8px 0 14px; }
.ship-t { margin: 14px 0; }
.ship-t td { padding: 6px 4px; }
.ship-t input { width: 76px; min-height: 40px; padding: 8px; border: 1px solid #8a8478; border-radius: 8px; font: inherit; }
.ship-t input.d { width: 52px; }
.rep + .link { margin-top: 10px; font-size: 13px; }

@media (max-width: 980px) { .cols { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .f { grid-template-columns: 1fr; }
  .row { flex-wrap: wrap; }
  .row div { min-width: 60%; }
  .ph-brand small { display: none; }
  .ph-brand span { font-size: 14px; }
  .login { margin: 32px auto; }
}

/* celular: sem zoom sem querer (toque duplo e campo com letra menor que 16px) */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; }
@media (max-width: 860px) {
  input, select, textarea { font-size: 16px !important; }
}
