/* ===========================================================
   SmashBook — tambahan style aplikasi (di atas app.css prototipe)
   =========================================================== */

.tabs a {
  border: 0;
  background: transparent;
  padding: 12px 13px;
  font-size: 13px;
  font-weight: 620;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tabs a.on {
  color: var(--ink);
  border-bottom-color: var(--brand);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-bar .search { min-width: 240px; flex: 1; }
.filter-bar .spacer { flex: 1; }

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.pager .links { display: flex; align-items: center; gap: 5px; }
.pager a, .pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-weight: 600;
}
.pager a:hover { border-color: var(--brand); color: #047857; }
.pager .current { background: #0f172a; border-color: #0f172a; color: #fff; }
.pager .disabled { opacity: .4; }

.member-cell { display: flex; align-items: center; gap: 10px; }
.avatar-sm {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(140deg, #0f172a, #334155);
  color: #fff; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 700; flex: none;
}
.avatar-sm.green { background: linear-gradient(140deg, #047857, #34d399); }
.avatar-sm.blue { background: linear-gradient(140deg, #1d4ed8, #60a5fa); }
.avatar-sm.violet { background: linear-gradient(140deg, #6d28d9, #a78bfa); }

.icon-badge {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: #f1f5f9; font-size: 19px; flex: none;
}

.slot .cell.hold {
  background: #fffbeb;
  border: 1px solid #fde68a;
  cursor: default;
}
.slot .cell.hold b { color: #b45309; }
.slot .cell.peak-locked {
  background: #fef2f2;
  border: 1px solid #fecaca;
  cursor: default;
}
.slot .cell.peak-locked b { color: #b91c1c; }

.inline-form { display: inline; }
.form-grid.g1 { grid-template-columns: minmax(0, 1fr); }
.form-grid .span2 { grid-column: 1 / -1; }
.field .req { color: var(--red); }

.stat-inline { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.stat-inline .item { display: flex; flex-direction: column; gap: 1px; }
.stat-inline .l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.stat-inline .v { font-size: 15px; font-weight: 750; }

.note-box {
  font-size: 12px;
  color: var(--muted);
  background: #f8fafc;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}

.check-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.check-row input { width: 16px; height: 16px; accent-color: var(--brand); }

.pos-search-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pos-search-row .search { flex: 1; min-width: 220px; }

.cart-items { max-height: 340px; overflow-y: auto; }
.cart-empty { padding: 26px 16px; }
.pay-input-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.pay-input-grid .field > label { font-size: 11.5px; }
.pay-input-grid .input { padding: 8px 10px; }

.pos-total-row { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
.pos-total-row.big { font-size: 17px; font-weight: 800; border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 3px; }
.pos-total-row .lbl { color: var(--muted); }

.pin-row { display: none; }
.pin-row.show { display: flex; }

.receipt-preview {
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 16px;
  font-family: "Consolas", "SF Mono", ui-monospace, monospace;
  font-size: 12px;
  background: #fff;
}
.receipt-preview .line { display: flex; justify-content: space-between; gap: 12px; }
.receipt-preview .center { text-align: center; }
.receipt-preview .sep { border-top: 1px dashed #cbd5e1; margin: 8px 0; }
.receipt-preview .big { font-size: 14px; font-weight: 800; }

.receipt-page {
  width: 80mm;
  margin: 0 auto;
  padding: 4mm;
  font-family: "Consolas", "SF Mono", ui-monospace, monospace;
  font-size: 11px;
  color: #000;
  background: #fff;
}
.receipt-page .center { text-align: center; }
.receipt-page .line { display: flex; justify-content: space-between; gap: 8px; }
.receipt-page .sep { border-top: 1px dashed #000; margin: 6px 0; }
.receipt-page .big { font-size: 13px; font-weight: 800; }

.print-bar {
  max-width: 900px; margin: 18px auto; display: flex; gap: 10px; align-items: center;
}

.mini-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.mini-tabs a {
  padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--muted); background: #fff;
}
.mini-tabs a.on { background: #0f172a; color: #fff; border-color: #0f172a; }

.mono-small { font-family: "Consolas", monospace; font-size: 11.5px; }
.soft { color: var(--muted); }
.text-red { color: var(--red); }
.text-green { color: #047857; }
.text-amber { color: #b45309; }
.text-blue { color: #1d4ed8; }
.w-full { width: 100%; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 6px; }
.mb-2 { margin-bottom: 12px; }
.nowrap { white-space: nowrap; }
.align-end { align-items: flex-end; }
.justify-end { justify-content: flex-end; }
.grid.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hidden { display: none !important; }

.modal-mask { overflow-y: auto; }
.modal-b { max-height: 68vh; }

.table-wrap.bordered { border: 1px solid var(--line); border-radius: 10px; }
.table-wrap.bordered table.tbl thead th:first-child { border-top-left-radius: 10px; }

.alert a { font-weight: 700; text-decoration: underline; }
.alert ul { margin: 4px 0 0; padding-left: 18px; }

.tabs-bar { display: flex; align-items: center; gap: 3px; border-bottom: 1px solid var(--line); padding: 0 16px; background: #fff; overflow-x: auto; }
.tabs-bar .right { margin-left: auto; }

.chart.compact { height: 130px; }
.chart .col .cap { font-size: 10px; }

.member-head { display: flex; gap: 14px; align-items: center; }
.member-head .avatar-lg {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, #047857, #34d399); color: #fff; font-weight: 800; font-size: 16px;
}
.modal-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.recurring-day { font-size: 12px; font-weight: 650; }

@media (max-width: 1200px) {
  .grid.g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .grid.g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pay-input-grid { grid-template-columns: 1fr; }
}

@media print {
  .print-bar { display: none !important; }
  .receipt-page { width: 80mm; margin: 0; padding: 0; }
  body { background: #fff; }
  .app { display: block; }
}
