/* Yabisela Stores admin desk (admin.html). Loaded after ui.css: only what the admin tabs add. */

.adm-main { min-width: 0; }
.adm-main .main-hd { align-items: center; }
.adm-main .main-hd .sub { flex-basis: 100%; margin-top: -10px; }

/* ---------- filters ---------- */
.flt { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.flt .inp { height: 42px; border-radius: 999px; padding: 0 16px; font-size: 14px; }
.flt select.inp { width: auto; padding-right: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300206f' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 13px center / 14px no-repeat; }
.srch { position: relative; flex: 1 1 240px; min-width: 0; max-width: 360px; }
.srch .ic { position: absolute; left: 15px; top: 50%; translate: 0 -50%; width: 17px; height: 17px; color: var(--ink-3); pointer-events: none; }
.srch .inp { padding-left: 40px; }
.flt .check { font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: #fff; height: 42px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); align-items: center; }
.flt .check input { width: 17px; height: 17px; }

.fchips { display: flex; gap: 6px; flex-wrap: wrap; }
.fchip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 999px; background: #fff; color: var(--ink-2); font-weight: 600; font-size: 13.5px; box-shadow: inset 0 0 0 1.5px var(--line); white-space: nowrap; }
.fchip:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px #b9c8ea; }
.fchip[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: none; }
.fchip i { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--tint); color: var(--navy); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.fchip[aria-pressed="true"] i { background: var(--yellow); }
.fchip i:empty { display: none; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px 0 12px; border-radius: 999px; background: #e6efff; color: var(--blue); font-size: 12.5px; font-weight: 600; }
.tag button { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: var(--blue); }
.tag button:hover { background: rgb(11 73 209 / .12); }
.tag .ic { width: 12px; height: 12px; }

/* ---------- list states ---------- */
.ld { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 48px 20px; color: var(--ink-2); font-weight: 500; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--navy); border-right-color: transparent; animation: spin .7s linear infinite; flex: none; }
.ld-err { color: var(--red); flex-direction: column; text-align: center; }
.adm-main .empty { padding: 40px 20px; }
.empty .em-ic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 22px; background: var(--tint); display: grid; place-items: center; color: var(--blue); }
.empty .em-ic .ic { width: 28px; height: 28px; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.pager div { display: flex; gap: 8px; }

/* ---------- tables ---------- */
.adm-main .tbl td { font-size: 13.5px; }
.tbl .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .nw { white-space: nowrap; }
.tbl .acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.tbl small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who b { display: block; font-size: 14px; line-height: 1.25; }
.mono { width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: var(--yellow); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; overflow: hidden; }
.mono img { width: 100%; height: 100%; object-fit: cover; }
.mono.round { border-radius: 50%; background: var(--yellow); color: var(--navy); }
.thumb { width: 46px; height: 46px; border-radius: 12px; background: var(--tint); display: grid; place-items: center; overflow: hidden; flex: none; }
.thumb img { width: 86%; height: 86%; object-fit: contain; }
.thumb img.ph { width: 100%; height: 100%; object-fit: cover; }
.lock { display: inline-flex; align-items: center; gap: 4px; color: var(--red); font-size: 12px; font-weight: 700; margin-left: 6px; }
.lock .ic { width: 14px; height: 14px; }
.st-act { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.only-s { display: none !important; }
.sw-s { gap: 12px; }
.cell-pill { margin-top: 6px; }
.reason { color: var(--red); font-size: 12px; margin-top: 3px; }
.mono-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; letter-spacing: .01em; }

/* on/off switch (boost, flash, promo) */
.sw { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.sw span { position: relative; width: 38px; height: 22px; border-radius: 999px; background: #d5dcec; transition: background .18s; flex: none; }
.sw span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 20 70 / .25); transition: transform .18s; }
.sw[aria-pressed="true"] span { background: var(--navy); }
.sw[aria-pressed="true"] span::after { transform: translateX(16px); background: var(--yellow); }
.sw:disabled { opacity: .5; }
.sw.is-busy span::after { animation: pulse .8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- overview ---------- */
.kpi { position: relative; display: block; color: inherit; min-width: 0; }
.kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi b u { text-decoration: none; font-size: .55em; font-weight: 700; margin-left: .3em; opacity: .7; }
.kpi b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.kpi:hover { box-shadow: 0 1px 0 var(--line), 0 14px 34px rgb(0 32 111 / .1); }
.kpi.warn { box-shadow: inset 0 0 0 2px var(--yellow), 0 10px 30px rgb(0 32 111 / .05); }
.kpi.alarm b { color: var(--red); }
.ov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.ov-grid .card + .card { margin-top: 0; }
.ov-grid .wide { grid-column: 1 / -1; }
.todo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.todo-it { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.todo-it:first-child { border-top: 0; padding-top: 0; }
.todo-it > span { flex: 1; min-width: 0; }
.todo-it b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo-it small { display: block; color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo-ok { display: flex; align-items: center; gap: 10px; color: #12804a; font-weight: 600; font-size: 13.5px; }
.todo-ok .ic { width: 20px; height: 20px; }
.card-hd .lnk { font-size: 13px; white-space: nowrap; }
.card-hd em { font-style: normal; min-width: 24px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--yellow); color: var(--navy); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 170px 1fr 44px; gap: 12px; align-items: center; font-size: 13px; color: inherit; padding: 4px 6px; border-radius: 10px; }
.bar:hover { background: var(--tint); }
.bar .tr { height: 10px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.bar .tr i { display: block; height: 100%; border-radius: inherit; background: var(--navy); min-width: 4px; }
.bar b { text-align: right; font-variant-numeric: tabular-nums; }
.bar.zero { opacity: .5; }
.bar.zero .tr i { min-width: 0; }

/* ---------- detail dialog ---------- */
.dlg-lg { width: min(860px, calc(100% - 32px)); max-height: calc(100dvh - 40px); }
.dlg-lg .dlg-in { padding: 0; }
.dlg-hd { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 20px 24px; background: #fff; border-bottom: 1px solid var(--line); }
.dlg-hd h3 { margin: 0; font-size: 19px; line-height: 1.2; }
.dlg-hd > span { flex: 1; min-width: 0; }
.dlg-hd small { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.x { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); flex: none; }
.x:hover { background: var(--tint); color: var(--ink); }
.dlg-bd { padding: 20px 24px 6px; }
.dlg-bd:focus { outline: none; }
.lnk-i { display: inline-flex; align-items: center; gap: 6px; }
.lnk-i .ic { width: 17px; height: 17px; }
.dlg-ft { position: sticky; bottom: 0; display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; padding: 16px 24px; background: #fff; border-top: 1px solid var(--line); }
.dlg-ft:empty { display: none; }
.dlg-ft .grow { margin-right: auto; }
.dlg .sub { margin-bottom: 4px; }
.dlg .err { margin-top: 10px; }
.dlg .fld:last-child { margin-bottom: 0; }

.sec { margin-bottom: 22px; }
.sec h4 { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 10px; }
.sec h4 .ic { width: 16px; height: 16px; color: var(--blue); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.dl { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 8px 14px; font-size: 13.5px; }
.dl dt { color: var(--ink-3); }
.dl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: 14px; background: var(--tint); font-size: 13.5px; line-height: 1.45; margin-bottom: 18px; }
.note .ic { width: 20px; height: 20px; flex: none; color: var(--blue); margin-top: 1px; }
.note.bad { background: #fde6e7; color: #8f0f17; }
.note.bad .ic { color: var(--red); }
.note.warn { background: #fff4d1; color: #6b4b00; }
.note.warn .ic { color: #a07000; }
.note.ok { background: #e2f6e9; color: #0d5e36; }
.note.ok .ic { color: #12804a; }
.note b { display: block; }
.quote { padding: 12px 15px; border-left: 3px solid var(--yellow); background: #fffbea; border-radius: 0 12px 12px 0; font-size: 13.5px; line-height: 1.5; }
.money { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.money div { background: var(--tint); border-radius: 14px; padding: 12px 14px; }
.money small { display: block; color: var(--ink-2); font-size: 11.5px; font-weight: 600; }
.money b { display: block; font-size: 15px; margin-top: 4px; font-variant-numeric: tabular-nums; }

.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tl li { position: relative; padding: 0 0 14px 24px; font-size: 13px; }
.tl li::before { content: ''; position: absolute; left: 4px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--navy); }
.tl li::after { content: ''; position: absolute; left: 8px; top: 16px; bottom: 0; width: 1.5px; background: var(--line); }
.tl li:last-child::after { display: none; }
.tl b { font-weight: 600; }
.tl small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }

.reveal { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.acct { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; font-weight: 700; letter-spacing: .04em; color: var(--navy); }
.code-s { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; letter-spacing: .18em; }

/* ---------- disputes ---------- */
.dsp { display: grid; gap: 14px; }
.dsp-it { border-radius: 18px; padding: 18px 20px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.dsp-it.open { box-shadow: inset 0 0 0 2px var(--yellow); }
.dsp-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.dsp-hd b { font-size: 15px; }
.dsp-hd .grow { flex: 1; }
.kind { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #fde6e7; color: #c4141f; }
.kind.ret { background: #ece7ff; color: #5b3fd1; }
.kind .ic { width: 14px; height: 14px; }
.dsp-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--ink-2); margin-top: 12px; }
.dsp-meta span { display: inline-flex; align-items: center; gap: 6px; }
.dsp-meta .ic { width: 15px; height: 15px; color: var(--ink-3); }
.dsp-ft { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.dsp-ft .grow { flex: 1; font-size: 13px; color: var(--ink-2); }

/* ---------- settings ---------- */
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.unit { position: relative; }
.unit input { padding-right: 64px !important; }
.unit em { position: absolute; right: 16px; top: 50%; translate: 0 -50%; font-style: normal; color: var(--ink-3); font-weight: 600; font-size: 13px; pointer-events: none; }
.example { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.example b { color: var(--ink); }
.set-ft { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: flex-end; margin-top: 4px; }
.set-ft span { margin-right: auto; color: var(--ink-3); font-size: 13px; }
.opt .tagx { margin-left: auto; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #fff4d1; color: #8a6100; white-space: nowrap; }

/* ---------- log ---------- */
.chg { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); max-width: 380px; }
.chg s { color: var(--ink-3); }
.chg b { color: var(--ink); font-weight: 600; }

/* ---------- small screens ---------- */
@media (max-width: 1180px) {
  .kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .ov-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  /* styles.css turns the home page main into a white sheet on phones; the admin keeps the tint */
  .adm-page main.wrap { background: transparent; margin-top: 0; padding-top: 0; border-radius: 0; }
  .adm-main .card { padding: 14px 12px; }
  .adm-main .tbl td { padding: 12px 8px; }
  .adm-main .tbl th { padding: 0 8px 10px; }
  .tbl td.nw { white-space: normal; }
  .tbl .lock { display: flex; margin: 3px 0 0; }
  .tbl .st-act { flex-direction: column; align-items: flex-end; gap: 8px; }
  .only-s { display: block !important; }
  .sw-s.only-s { display: flex !important; flex-direction: column; align-items: flex-end; gap: 8px; }
  .cols, .set-grid { grid-template-columns: 1fr; }
  .money { grid-template-columns: 1fr 1fr; }
  .bar { grid-template-columns: 1fr auto; grid-template-areas: "l n" "t t"; gap: 6px 12px; padding: 6px 4px; }
  .bar > span:first-child { grid-area: l; }
  .bar .tr { grid-area: t; height: 8px; }
  .bar b { grid-area: n; }
  .bars { gap: 4px; }
  .kpis-4 { grid-template-columns: 1fr 1fr; }
  .dlg-lg { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  .dlg-hd, .dlg-bd, .dlg-ft { padding-left: 16px; padding-right: 16px; }
  .srch { max-width: none; flex-basis: 100%; }
  .flt select.inp { flex: 1 1 auto; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px 15px; }
  .kpi b { font-size: 19px; }
  .dl { grid-template-columns: 1fr; gap: 2px; }
  .dl dd { margin-bottom: 8px; }
  .fchips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); }
  .fchips::-webkit-scrollbar { display: none; }
  body.adm-page { padding-bottom: 24px; }
}

/* Vitrine Pro on the store drawer */
.pro-box { display: grid; gap: 12px; font-size: 14px; }
.pro-acts { display: flex; gap: 8px; flex-wrap: wrap; }
