/* mod-admin styles: pricelist, settings, history, super admin */
.adm-brand {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; margin-right: 8px;
  font-weight: 800; font-size: 10.5px; color: #fff; vertical-align: middle; letter-spacing: .02em;
}
.adm-note { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--text); }
.adm-note > svg.i { color: var(--brand-ink); margin-top: 1px; }
.adm-link { font-family: var(--mono); font-size: 12px; word-break: break-all; color: var(--muted); }
.adm-pane { display: none; }
.adm-pane.on { display: block; }

/* catalog preview (share links) */
.adm-cat-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.adm-cat-head img { height: 44px; width: auto; max-width: 160px; object-fit: contain; }
.adm-cat { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.adm-cat .c { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); }
.adm-cat .pr { font-size: 19px; font-weight: 800; color: var(--ink); margin-top: 8px; letter-spacing: -.01em; }
.adm-terms { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); }
.adm-terms b { color: var(--ink); }

/* logo upload */
.adm-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  min-height: 190px; padding: 18px; border: 2px dashed var(--line); border-radius: 14px; background: var(--surface-2);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.adm-drop:hover, .adm-drop.over { border-color: var(--ink); background: var(--neutral-bg); }
.adm-drop img { max-width: 220px; max-height: 90px; object-fit: contain; }
.adm-drop-t { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text); }
.adm-drop-t svg.i { color: var(--brand-ink); }
.adm-where { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--text); }
.adm-where li { display: flex; gap: 8px; align-items: center; }
.adm-where svg.i { color: var(--ok); }

/* services + T&C */
.adm-svc { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.adm-svc-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; color: var(--ink); }

/* access matrix */
.adm-matrix { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.adm-matrix th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.adm-matrix td { padding: 7px 8px; border-bottom: 1px solid var(--line-2); }
.adm-matrix th:not(:first-child), .adm-matrix td:not(:first-child) { text-align: center; width: 70px; }
.adm-matrix input { width: 17px; height: 17px; accent-color: var(--ink); }

/* custom functions */
.adm-toggle { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.adm-toggle input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.adm-meter { height: 8px; border-radius: 99px; background: var(--neutral-bg); overflow: hidden; }
.adm-meter i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }

@media (max-width: 900px) {
  .adm-matrix th:not(:first-child), .adm-matrix td:not(:first-child) { width: 52px; }
  .adm-cat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* products & pricelist (merged page) */
.adm-kind { align-items: center; }
.adm-bucket { margin-left: 6px; font-size: 12px; color: var(--muted); }
.adm-bucket b { color: var(--ink); }
.adm-custom { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 99px; font-size: 10.5px; font-weight: 800; letter-spacing: .02em;
  color: var(--warn); background: var(--warn-bg); vertical-align: 1px; }
.adm-custom[hidden] { display: none; }
.adm-upsell { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; border-radius: var(--r);
  background: var(--surface-2); border: 1px dashed var(--line); font-size: 13px; color: var(--text); }
.adm-upsell > div { flex: 1; min-width: 220px; }
.adm-upsell > svg.i { color: var(--muted); }
.adm-cc-tbl td { padding-top: 6px; padding-bottom: 6px; }
.adm-restore-btn { background: var(--ok) !important; border-color: var(--ok) !important; color: #fff !important; }
.adm-imgs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.adm-img { position: relative; }
.adm-img > button:first-child { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; }
.adm-img img { width: 112px; height: 72px; object-fit: cover; border-radius: 10px; display: block; border: 1px solid var(--line); }
.adm-img-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 7px; border: 0; background: rgba(11,21,51,.75); color: #fff; display: grid; place-items: center; cursor: pointer; }
.adm-img-add { width: 112px; height: 72px; border-radius: 10px; border: 1px dashed var(--line); background: var(--surface-2); color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.adm-img-add:hover { border-color: var(--dim); color: var(--ink); }
.adm-switch { margin-left: auto; position: relative; display: inline-block; width: 44px; height: 26px; }
.adm-switch input { opacity: 0; width: 0; height: 0; }
.adm-switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line); cursor: pointer; transition: background .2s; }
.adm-switch span::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.adm-switch input:checked + span { background: var(--ok); }
.adm-switch input:checked + span::before { transform: translateX(18px); }
.adm-peso { display: flex; align-items: center; gap: 8px; }
.adm-peso span { font-weight: 800; color: var(--ink); }
