/* Gaya khusus halaman Pantau Toko (dashboard pemilik). Memakai token dari style.css */

.pt-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.pt-head__back {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--ink);
  text-decoration: none;
}

.pt-head__judul {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
}

.pt-head__sub {
  font-size: 12px;
  color: var(--muted);
}

.pt-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: var(--low);
  color: var(--muted);
  white-space: nowrap;
}

.pt-chip svg {
  width: 12px;
  height: 12px;
}

.pt-chip--sinkron {
  background: var(--brand-tint);
  border-color: transparent;
  color: var(--brand);
}

/* ---------- Kartu omset ---------- */
.pt-hero {
  position: relative;
  overflow: hidden;
  margin: 16px 18px 0;
  padding: 18px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(120% 110% at 12% 0%, #2e6fd6 0%, rgba(46, 111, 214, 0) 58%),
    linear-gradient(135deg, #00357f 0%, #004aad 55%, #1d63c9 100%);
}

.pt-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 28px 28px;
}

.pt-hero > * {
  position: relative;
  z-index: 1;
}

.pt-hero__label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.pt-hero__angka {
  margin: 6px 0 0;
  font-size: 33px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.pt-hero__delta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 700;
}

.pt-hero__delta svg {
  width: 13px;
  height: 13px;
}

.pt-hero__kaki {
  display: flex;
  gap: 22px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.pt-hero__kaki dt {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.72);
}

.pt-hero__kaki dd {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 800;
}

/* ---------- Baris statistik kecil ---------- */
.pt-stat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 18px 0;
}

.pt-stat__kotak {
  padding: 13px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.pt-stat__label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

.pt-stat__nilai {
  margin-top: 3px;
  font-size: 17px;
  font-weight: 800;
}

.pt-stat__nilai--teal {
  color: var(--teal);
}

/* ---------- Kartu umum ---------- */
.pt-kartu {
  margin: 14px 18px 0;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
}

.pt-kartu__judul {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
}

.pt-kartu__ket {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- Grafik 7 hari ---------- */
.pt-grafik {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 116px;
  margin-top: 16px;
}

.pt-grafik__kolom {
  flex: 1 1 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
}

.pt-grafik__bar {
  width: 100%;
  border-radius: 8px;
  background: #b9d5f7;
}

.pt-grafik__bar--kini {
  background: linear-gradient(180deg, #2e6fd6, #004aad);
}

.pt-grafik__label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
}

.pt-grafik__label--kini {
  color: var(--brand);
}

/* ---------- Pecahan metode bayar ---------- */
.pt-rows {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 15px;
}

.pt-row__atas {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.pt-row__kanan {
  color: var(--muted);
  font-weight: 700;
}

.pt-row__track {
  height: 8px;
  border-radius: 999px;
  background: var(--low);
  overflow: hidden;
}

.pt-row__isi {
  height: 100%;
  border-radius: 999px;
  background: var(--brand);
}

.pt-row__isi--teal {
  background: var(--teal);
}

.pt-row__isi--emas {
  background: var(--gold-dark);
}

/* ---------- Daftar item terjual ---------- */
.pt-barang {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.pt-barang:first-of-type {
  margin-top: 13px;
}

.pt-barang__no {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--low);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.pt-barang__badan {
  flex: 1 1 auto;
  min-width: 0;
}

.pt-barang__nama {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
}

.pt-barang__kategori {
  font-size: 11.5px;
  color: var(--muted);
}

.pt-barang__qty {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.pt-barang__nilai {
  flex: 0 0 90px;
  text-align: right;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--brand);
}

.pt-total {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 2px solid var(--line);
  font-size: 13.5px;
  font-weight: 800;
}

.pt-total span:last-child {
  color: var(--brand);
}

/* ---------- Grafik jam ramai ---------- */
.pt-jam {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 78px;
  margin-top: 16px;
}

.pt-jam__kolom {
  flex: 1 1 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.pt-jam__bar {
  width: 100%;
  border-radius: 5px 5px 2px 2px;
  background: #b9d5f7;
}

.pt-jam__bar--puncak {
  background: var(--brand);
}

.pt-jam__sumbu {
  display: flex;
  gap: 5px;
  margin-top: 6px;
}

.pt-jam__sumbu span {
  flex: 1 1 0;
  text-align: center;
  font-size: 9.5px;
  color: var(--muted);
}

/* ---------- Catatan privasi & footer ---------- */
.pt-note {
  display: flex;
  gap: 10px;
  margin: 14px 18px 0;
  padding: 13px 15px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--low);
  font-size: 12.5px;
  color: var(--muted);
}

.pt-note svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--brand);
  margin-top: 1px;
}

.pt-note strong {
  color: var(--ink);
}

/* ---------- Pemilih toko ---------- */
.pt-toko {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 18px 0;
  scrollbar-width: none;
}

.pt-toko::-webkit-scrollbar {
  display: none;
}

.pt-toko__pilih {
  flex: 0 0 auto;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.pt-toko__pilih--aktif {
  background: var(--brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 20px -10px rgba(0, 74, 173, 0.7);
}

.pt-toko__tambah {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px dashed var(--brand);
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.pt-toko__tambah svg {
  width: 13px;
  height: 13px;
}

/* ---------- Daftar perangkat ---------- */
.pt-alat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.pt-alat:first-of-type {
  margin-top: 12px;
}

.pt-alat__ikon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-tint);
  color: var(--brand);
}

.pt-alat__ikon svg {
  width: 17px;
  height: 17px;
}

.pt-alat__badan {
  flex: 1 1 auto;
  min-width: 0;
}

.pt-alat__nama {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
}

.pt-alat__ket {
  font-size: 11.5px;
  color: var(--muted);
}

.pt-alat__ket--lewat {
  color: var(--gold-dark);
  font-weight: 700;
}

.pt-alat__kanan {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.pt-alat__nilai {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--brand);
}

.pt-alat__cabut {
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- Layar tambah toko (pairing) ---------- */
.pt-kode__label {
  display: block;
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}

.pt-kode__input {
  width: 100%;
  margin-top: 7px;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1.5px solid var(--brand);
  background: var(--brand-tint);
  color: var(--ink);
  font: inherit;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
}

.pt-kode__bantuan {
  margin: 9px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.pt-tombol {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 15px;
  border: 0;
  border-radius: 16px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 14.5px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 26px -14px rgba(0, 74, 173, 0.9);
}

.pt-langkah {
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: langkah;
}

.pt-langkah li {
  position: relative;
  margin-top: 13px;
  padding-left: 34px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.pt-langkah li::before {
  counter-increment: langkah;
  content: counter(langkah);
  position: absolute;
  left: 0;
  top: -1px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.pt-langkah strong {
  color: var(--ink);
}

/* ---------- Navigasi bawah dashboard ---------- */
.pt-head__mark {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.hp--nav {
  padding-bottom: 86px;
}

.pt-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 100%;
  max-width: 430px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.pt-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 4px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  text-decoration: none;
}

.pt-nav__item svg {
  width: 20px;
  height: 20px;
}

.pt-nav__item--aktif {
  color: var(--brand);
  background: var(--brand-tint);
}

/* ---------- Tab Menu (placeholder) ---------- */
.pt-kosong {
  padding: 26px 18px 8px;
  text-align: center;
}

.pt-kosong__ikon {
  width: 58px;
  height: 58px;
  margin: 0 auto;
  border-radius: 19px;
  display: grid;
  place-items: center;
  background: var(--brand-tint);
  color: var(--brand);
}

.pt-kosong__ikon svg {
  width: 27px;
  height: 27px;
}

.pt-kosong__judul {
  margin: 15px 0 0;
  font-size: 16px;
  font-weight: 800;
}

.pt-kosong__ket {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.pt-kartu--tautan {
  display: block;
  text-decoration: none;
}

.pt-lewat {
  color: var(--gold-dark);
  font-weight: 700;
}



