* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f4f7fb;
  color: #1f2937;
  font-family: Arial, sans-serif;
}

.app {
  min-height: 100vh;
}

.sidebar {
  width: 100%;
  background: linear-gradient(90deg, #0f62fe, #0043ce);
  color: white;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
}

.sidebar h2 {
  font-size: 24px;
  margin-right: 18px;
  white-space: nowrap;
}

.sidebar h2 span {
  color: #ffd43b;
}

.sidebar button {
  border: none;
  background: rgba(255,255,255,0.14);
  color: white;
  padding: 12px 16px;
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
}

.sidebar button:hover {
  background: rgba(255,255,255,0.26);
}

.content {
  padding: 24px;
  overflow-x: hidden;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

h1 {
  margin-bottom: 20px;
  font-size: 28px;
}

.panel {
  background: white;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  margin-bottom: 18px;
}

.panel h2,
.panel h3 {
  margin-bottom: 14px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.summary-card {
  background: white;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.summary-card p {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 8px;
}

.summary-card h2 {
  color: #0f62fe;
  font-size: 26px;
}

.input,
.textarea,
select {
  width: 100%;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 14px;
  outline: none;
  margin-bottom: 14px;
  background: white;
}

.input:focus,
.textarea:focus,
select:focus {
  border-color: #0f62fe;
  box-shadow: 0 0 0 3px rgba(15,98,254,0.12);
}

.textarea {
  min-height: 70px;
  resize: vertical;
}

.label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #334155;
}

.primary-btn,
.secondary-btn,
.danger-btn {
  border: none;
  border-radius: 14px;
  padding: 13px 16px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
}

.primary-btn {
  background: #0f62fe;
  color: white;
}

.primary-btn:hover {
  background: #0043ce;
}

.secondary-btn {
  background: #e2e8f0;
  color: #1e293b;
}

.danger-btn {
  background: #ef4444;
  color: white;
}

.full {
  width: 100%;
}

.small {
  padding: 10px 14px;
  font-size: 13px;
}

.cashier-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.cashier-left {
  min-height: calc(100vh - 130px);
}

.cashier-right {
  position: sticky;
  top: 20px;

  min-height: calc(100vh - 120px);

  display: flex;
  flex-direction: column;
}

.cashier-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.tab-btn {
  border: none;
  padding: 13px;
  border-radius: 14px;
  background: #e2e8f0;
  color: #334155;
  font-weight: bold;
  cursor: pointer;
}

.tab-btn.active {
  background: #0f62fe;
  color: white;
}

.cashier-view {
  display: none;
}

.cashier-view.active {
  display: block;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

/* tablet */
@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* hp */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-card {
  background: white;
  border-radius: 18px;
  padding: 14px;
  position: relative;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  transition: 0.2s;
}

.product-card:hover {
  transform: translateY(-3px);
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;

  border-radius: 14px;
  overflow: hidden;
  background: #f1f5f9;
  margin-bottom: 12px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
}
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-image span {
  font-size: 40px;
}

.product-category {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
  margin-bottom: 10px;
}

.product-name {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 8px;
  min-height: 42px;
}

.product-price {
  color: #0f62fe;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
}

.add-cart-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;

  width: 42px;
  height: 42px;

  border: none;
  border-radius: 50%;

  background: #0f62fe;
  color: white;

  font-size: 26px;
  cursor: pointer;
}

.add-cart-btn:hover {
  background: #0043ce;
}

.table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.table-card {
  min-height: 125px;
  border-radius: 20px;
  padding: 16px;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  transition: 0.2s;
}

.table-card:hover {
  transform: translateY(-3px);
}

.table-empty {
  background: white;
  border-color: #e5e7eb;
}

.table-active {
  background: #dbeafe;
  border-color: #0f62fe;
}

.table-cooking {
  background: #ffedd5;
  border-color: #f97316;
}

.table-ready {
  background: #dcfce7;
  border-color: #16a34a;
}

.table-number {
  font-size: 21px;
  font-weight: bold;
  margin-bottom: 10px;
}

.table-status {
  font-weight: bold;
  margin-bottom: 8px;
}

.table-count {
  font-size: 13px;
  color: #64748b;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;

  padding: 14px 0;

  border-bottom: 1px dashed #dbe3ef;
}

.cart-item-info h4 {
  margin-bottom: 6px;
}

.cart-item-info p {
  font-size: 13px;
  color: #64748b;
}

.cart-item-right {
  text-align: right;
}

.qty-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-btn {
  width: 30px;
  height: 30px;

  border: none;
  border-radius: 10px;

  background: #0f62fe;
  color: white;

  cursor: pointer;
  font-weight: bold;
}

.payment-mode {
  background: #eef2ff;
  color: #3730a3;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: bold;
  margin-bottom: 16px;
}

.total-box {
  margin-top: 18px;

  border-top: 1px dashed #dbe3ef;

  padding-top: 18px;
}

.total-box span {
  color: #64748b;
  font-size: 14px;
}

.total-box h2 {
  color: #0f62fe;
  font-size: 30px;
  margin-top: 4px;
}

.change-box {
  background: #ecfdf5;

  border-left: 5px solid #16a34a;

  padding: 12px 14px;

  border-radius: 14px;

  margin-bottom: 14px;
}

.change-box span {
  font-size: 13px;
  color: #166534;
}

.change-box h3 {
  margin-top: 4px;
  font-size: 24px;
  color: #16a34a;
}

.master-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
}

.product-list-item {
  display: flex;
  gap: 14px;
  align-items: center;

  padding: 14px 0;

  border-bottom: 1px dashed #dbe3ef;
}

.product-list-image {
  width: 78px;
  aspect-ratio: 1 / 1;

  border-radius: 14px;
  overflow: hidden;

  background: #f1f5f9;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

.product-list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-list-info {
  flex: 1;
}

.product-list-info h4 {
  margin-bottom: 6px;
}

.product-list-info p {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 4px;
}

.kitchen-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.kitchen-link {
  text-decoration: none;
  background: #eef2ff;
  color: #3730a3;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: bold;
}

.modal {
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.45);

  display: none;
  justify-content: center;
  align-items: center;

  padding: 20px;

  z-index: 9999;
}

.modal.show {
  display: flex;
}

.modal-content {
  width: 100%;
  max-width: 520px;

  background: white;

  border-radius: 22px;

  padding: 22px;
}

.modal-actions {
  display: flex;
  gap: 12px;

  margin-top: 20px;
}

.selected-order-box {
  background: #eef2ff;
  border-left: 5px solid #0f62fe;
  padding: 14px;
  border-radius: 16px;
  margin-bottom: 14px;
}

.selected-order-box h3 {
  margin-bottom: 10px;
}

.selected-order-box p {
  margin-bottom: 6px;
  font-size: 14px;
}

@media (max-width: 1100px) {

  .cashier-layout,
  .master-layout {
    grid-template-columns: 1fr;
  }

  .cashier-right {
    position: static;
    max-height: none;
  }
}

@media (max-width: 900px) {

  .app {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;

    flex-direction: row;
    overflow-x: auto;

    padding: 14px;
  }

  .sidebar h2 {
    display: none;
  }

  .sidebar button {
    min-width: 180px;
  }

  .content {
    padding: 16px;
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid,
.table-grid {
  grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 600px) {

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    flex-direction: column;
  }
}
.payment-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.payment-col .label {
  margin-bottom: 6px;
  height: 20px;
}

.payment-col .input {
  height: 50px;
  margin-bottom: 0;
}

.change-box.compact {
  height: 50px;
  margin: 0;
  padding: 0 14px;
  border-left: 5px solid #16a34a;
  border-radius: 14px;
  background: #ecfdf5;

  display: flex;
  align-items: center;
  justify-content: center;
}

.change-box.compact h3 {
  margin: 0;
  line-height: 1;
  font-size: 22px;
}
.kitchen-status-list {
  margin-top: 10px;
  padding: 10px;
  border-radius: 14px;
  background: #f8fafc;
}

.kitchen-status-list p {
  margin-bottom: 6px;
  font-size: 14px;
}
.receipt-wrapper {
  font-size: 14px;
  line-height: 1.5;
}

.receipt-store {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 6px;
}

.receipt-date {
  text-align: center;
  color: #64748b;
  margin-bottom: 16px;
}

.receipt-info,
.receipt-items,
.receipt-total {
  margin-bottom: 12px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.receipt-divider {
  border-top: 1px dashed #cbd5e1;
  margin: 12px 0;
}

.receipt-total {
  font-weight: bold;
}

.receipt-thanks {
  text-align: center;
  margin-top: 18px;
  font-weight: bold;
  color: #16a34a;
}
.payment-method-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 14px;
}

.payment-method-btn {
  border: none;
  border-radius: 14px;
  padding: 13px;
  background: #e2e8f0;
  color: #334155;
  font-weight: bold;
  cursor: pointer;
}

.payment-method-btn.active {
  background: #0f62fe;
  color: white;
}
.notif-badge {
  display: none;
  margin-left: 6px;
  background: #ef4444;
  color: white;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 12px;
}

.table-new-order {
  animation: blinkTable 1s infinite;
}

@keyframes blinkTable {
  0% {
    box-shadow: 0 0 0 rgba(239,68,68,0);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(239,68,68,0.25);
  }

  100% {
    box-shadow: 0 0 0 rgba(239,68,68,0);
  }
}
#productPaymentArea,
#tablePaymentArea {
  flex: 1;
}
.payment-actions {
  margin-top: 20px;
}

.payment-actions .primary-btn {
  margin-bottom: 14px;
}

.clear-action {
  display: flex;
  justify-content: flex-end;
}

.clear-action .danger-btn {
  min-width: 170px;
}
.category-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.category-btn {
  border: none;
  background: #e2e8f0;
  color: #334155;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: bold;
  cursor: pointer;
}

.category-btn.active {
  background: #0f62fe;
  color: white;
}
.category-filter {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 0 14px;
  margin-bottom: 14px;
  position: sticky;
  top: 0;
  background: #f4f7fb;
  z-index: 10;
}

.category-btn {
  border: none;
  background: #e2e8f0;
  color: #334155;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}

.category-btn.active {
  background: #0f62fe;
  color: white;
}
.table-qris-pending {
  background: #fce7f3;
  border-color: #db2777;
}

.table-payment-badge {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 8px;
}

.table-payment-badge.qris-pending {
  background: #db2777;
  color: white;
}

.table-payment-badge.paid {
  background: #16a34a;
  color: white;
}
.qr-table-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.qr-card {
  background: #f8fafc;
  border-radius: 18px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.qr-card canvas {
  margin: 10px auto;
}

.qr-card p {
  font-size: 11px;
  color: #64748b;
  word-break: break-all;
}
@media (max-width: 768px) {
  .product-image {
    aspect-ratio: 1 / 1;
  }

  .product-name {
    font-size: 13px;
    min-height: 32px;
  }

  .product-price {
    font-size: 15px;
  }

  .add-cart-btn {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
}
#productPage {
  min-height: calc(100vh - 100px);
  padding: 4px;
  color: #1e293b;
  background: #f5f7fb;
}

.master-data-page-header {
  margin-bottom: 18px;
}

.master-data-page-header h1 {
  margin-bottom: 4px;
}

.master-data-page-header p {
  max-width: 760px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
}

.master-data-catalog.hidden {
  display: none;
}

.master-data-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.master-data-category-card {
  padding: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.035);
}

.master-data-category-header {
  margin-bottom: 14px;
}

.master-data-category-header h2 {
  margin-bottom: 5px;
  color: #0f172a;
  font-size: 17px;
}

.master-data-category-header p {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.master-data-item-list {
  display: grid;
  gap: 8px;
}

.master-data-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 13px;
  color: #334155;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.master-data-item:hover {
  border-color: #bfdbfe;
  box-shadow: 0 3px 9px rgba(15, 23, 42, 0.05);
}

.master-data-item span,
.master-data-item strong,
.master-data-item small {
  display: block;
}

.master-data-item strong {
  margin-bottom: 3px;
  color: #0f172a;
  font-size: 13px;
}

.master-data-item small {
  color: #64748b;
  font-size: 10px;
  line-height: 1.45;
}

.master-data-item em {
  flex: 0 0 auto;
  color: #2563eb;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.master-data-item.unavailable {
  background: #f8fafc;
}

.master-data-item.unavailable strong,
.master-data-item.unavailable small {
  color: #94a3b8;
}

.master-data-item .unavailable-badge {
  padding: 4px 7px;
  color: #64748b;
  background: #e2e8f0;
  border-radius: 999px;
  white-space: nowrap;
}

.master-data-detail {
  display: none;
}

.master-data-detail.visible {
  display: block;
}

.master-data-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.master-data-detail-header h2 {
  margin-bottom: 3px;
  font-size: 18px;
}

.master-data-detail-header p {
  color: #64748b;
  font-size: 12px;
}

.master-data-back-btn {
  flex: 0 0 auto;
  padding: 9px 11px;
  color: #475569;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

#productMasterWorkspace {
  padding: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.035);
}

.master-data-empty-state {
  display: none;
  min-height: 260px;
  place-content: center;
  padding: 24px;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  text-align: center;
}

.master-data-empty-state h3 {
  margin-bottom: 6px;
  color: #334155;
}

.master-data-empty-state p {
  color: #64748b;
  font-size: 12px;
}

.master-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.page-title {
  margin-bottom: 4px;
}

.page-subtitle {
  color: #64748b;
  font-size: 14px;
}

.master-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.product-filter-box {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
  box-shadow: none;
}

.table-wrapper {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  overflow-x: auto;
  box-shadow: none;
}

.modern-product-table {
  width: 100%;
  border-collapse: collapse;
}

.modern-product-table th,
.modern-product-table td {
  padding: 14px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  font-size: 14px;
}

.modern-product-table th {
  background: #f8fafc;
  font-weight: bold;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 46px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  overflow: hidden;
  z-index: 100;
  min-width: 180px;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu button {
  width: 100%;
  border: none;
  background: white;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  font-weight: bold;
}

.dropdown-menu button:hover {
  background: #f1f5f9;
}

@media (max-width: 1050px) {
  .master-data-category-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .master-data-category-card,
  #productMasterWorkspace {
    padding: 14px;
  }

  .master-data-detail-header,
  .master-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .master-actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .product-filter-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .master-data-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .master-data-item .unavailable-badge {
    white-space: normal;
  }
}

.modal-overlay {

  position: fixed;

  inset: 0;

  background: rgba(0,0,0,0.45);

  z-index: 99999;

  display: none;

  align-items: center;

  justify-content: center;

  padding: 20px;

}
.modal-box {

  width: 100%;

  max-width: 700px;

  max-height: 90vh;

  overflow-y: auto;

  background: white;

  border-radius: 24px;

  padding: 22px;

  box-shadow:
    0 20px 50px rgba(0,0,0,0.2);

}
.modal-box.large {
  max-width: 820px;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.modal-body textarea {
  grid-column: span 2;
  min-height: 90px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.close-modal-btn {
  border: none;
  background: #e2e8f0;
  color: #0f172a;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 18px;
  cursor: pointer;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

@media (max-width: 700px) {
  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-body textarea {
    grid-column: span 1;
  }
}
.pagination-box {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 14px;
}
.product-grid {

   max-height: calc(100vh - 180px);

  overflow-y: auto;

  padding-right: 4px;

}
.product-card {

  min-height: 220px;

}
.product-image {

  aspect-ratio: 1 / 1;

  height: auto;

}
.cashier-topbar {

  display: grid;

  grid-template-columns:
    1.5fr auto auto;

  gap: 12px;

  align-items: center;

  margin-bottom: 16px;

}

.cashier-search {

  margin: 0 !important;

}

.cashier-topbar .tab-btn {

  min-width: 160px;

  height: 50px;

}

@media (max-width: 768px) {

  .cashier-topbar {

    grid-template-columns:
      1fr 1fr;

  }

  .cashier-search {

    grid-column: span 2;

  }

  .cashier-topbar .tab-btn {

    min-width: 0;

    width: 100%;

  }

}
.kasir-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.kasir-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.kasir-header-actions .tab-btn {
  min-width: 130px;
  height: 44px;
}

.cashier-topbar {
  margin-bottom: 14px;
}

.cashier-search {
  width: 100%;
}

@media (max-width: 768px) {
  .kasir-page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .kasir-header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .kasir-header-actions .primary-btn {
    grid-column: span 2;
  }
}
.cashier-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 420px;
  gap: 18px;
  align-items: start;
}

.cashier-left {
  min-width: 0;
  overflow: hidden;
}

.cashier-right {
  min-width: 0;
}

.cashier-topbar {
  display: block;
  margin-bottom: 14px;
}

.cashier-search {
  width: 100%;
}

.product-grid,
.table-grid {
  width: 100%;
}
.product-preview {

  width: 120px;

  height: 120px;

  border-radius: 16px;

  object-fit: cover;

  margin-top: 10px;

  border: 1px solid #dbe2ea;

  display: none;

}
.product-image img {

  width: 100%;

  height: 100%;

  object-fit: contain;

  border-radius: 18px;

  background: #f8fafc;

  padding: 6px;

}
#receiptContent {
  font-family: monospace;
  color: #0f172a;
}

.receipt-box {
  width: 100%;
  max-width: 320px;
}

.receipt-center {
  text-align: center;
}

.receipt-center h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.receipt-center p {
  margin: 2px 0;
  font-size: 13px;
}

.receipt-line {
  border-top: 1px dashed #94a3b8;
  margin: 10px 0;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0;
}

.receipt-row > div:first-child,
.receipt-row span:first-child {
  max-width: 210px;
}

.receipt-item-name {
  font-weight: bold;
}

.receipt-row small {
  color: #64748b;
}

.receipt-total {
  font-size: 16px;
  font-weight: bold;
}
#receiptModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#receiptModal .modal-content {
  width: 100%;
  max-width: 380px;
  max-height: 90vh;
  overflow-y: auto;
  background: white;
  border-radius: 22px;
  padding: 18px;
}

#receiptContent {
  font-family: monospace;
  font-size: 12px;
}

.receipt-box {
  max-width: 280px;
  margin: 0 auto;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.receipt-row > div:first-child {
  max-width: 170px;
}
.kitchen-table-wrapper {
  margin-top: 14px;
  overflow-x: auto;
}

.kitchen-setting-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 16px;
  overflow: hidden;
}

.kitchen-setting-table th,
.kitchen-setting-table td {
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  font-size: 14px;
}

.kitchen-setting-table th {
  background: #f8fafc;
  font-weight: bold;
}

.kitchen-link-text {
  color: #2563eb;
  font-size: 13px;
}
.customer-qr-box {
  margin-top: 16px;
}

.customer-qr-box:empty {
  display: none;
}
.customer-qr-box {
  margin-top: 16px;
}

.customer-qr-box .qr-card {
  max-width: 320px;
  margin: 0 auto;
  text-align: center;
}

.customer-qr-box .qr-card canvas,
.customer-qr-box .qr-card img {
  display: block;
  margin: 14px auto;
}

.customer-qr-box .qr-card p {
  font-size: 12px;
  color: #64748b;
  word-break: break-all;
}

.staff-section-header,
.staff-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.staff-section-header {
  margin-bottom: 20px;
}

.staff-section-header h2,
.staff-list-header h3,
.staff-create-title h3 {
  margin-bottom: 5px;
}

.section-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #0f62fe;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.security-badge,
.staff-count-badge,
.active-staff-status,
.staff-role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.security-badge {
  padding: 9px 13px;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.staff-form-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.staff-form-row .input,
.staff-form-row button,
.staff-form-grid .input {
  margin-bottom: 0;
}

.active-staff-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
  border: 1px solid #bfdbfe;
  border-radius: 16px;
}

.active-staff-icon,
.staff-member-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, #0f62fe, #0043ce);
  font-weight: 800;
  font-size: 18px;
}

.active-staff-info {
  flex: 1;
}

.active-staff-info h3,
.active-staff-info p {
  margin: 0;
}

.active-staff-info p {
  margin-top: 3px;
  color: #64748b;
  font-size: 13px;
}

.active-staff-status {
  padding: 7px 11px;
  color: #047857;
  background: #d1fae5;
}

.staff-create-box {
  padding: 18px;
  margin-bottom: 22px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}

.staff-create-title {
  margin-bottom: 16px;
}

.staff-form-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  align-items: end;
  gap: 12px;
}

.staff-add-btn {
  min-height: 46px;
  white-space: nowrap;
}

.staff-list-header {
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.staff-count-badge {
  padding: 6px 10px;
  color: #475569;
  background: #f1f5f9;
}

.staff-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.staff-member-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  background: white;
}

.staff-member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 16px;
}

.staff-member-info {
  flex: 1;
}

.staff-member-info h4 {
  margin-bottom: 5px;
}

.staff-role-badge {
  padding: 4px 8px;
  color: #1d4ed8;
  background: #dbeafe;
}

.staff-role-badge.role-manager {
  color: #7c3aed;
  background: #ede9fe;
}

.staff-role-badge.role-kitchen {
  color: #c2410c;
  background: #ffedd5;
}

.staff-member-actions {
  display: flex;
  gap: 8px;
}

.staff-empty-state {
  padding: 24px;
  text-align: center;
  color: #64748b;
  border: 1px dashed #cbd5e1;
  border-radius: 15px;
  background: #f8fafc;
}

.staff-empty-state h4 {
  margin-bottom: 5px;
  color: #334155;
}

.operator-switcher-box {
  max-width: 520px;
}

.operator-choice-grid {
  display: grid;
  gap: 10px;
}

.operator-choice-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  color: #0f172a;
  text-align: left;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.operator-choice-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 22px rgba(15, 98, 254, 0.1);
  transform: translateY(-1px);
}

.operator-choice-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, #0f62fe, #0043ce);
  font-size: 18px;
  font-weight: 800;
}

.operator-choice-info {
  display: grid;
  gap: 3px;
  flex: 1;
}

.operator-choice-info strong {
  font-size: 15px;
}

.operator-choice-info small {
  color: #64748b;
  font-size: 12px;
}

.operator-choice-arrow {
  color: #94a3b8;
  font-size: 28px;
  font-weight: 300;
}

.operator-back-btn {
  padding: 0;
  margin-bottom: 16px;
  color: #2563eb;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 700;
}

.selected-operator-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  margin-bottom: 18px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
}

.selected-operator-card strong,
.selected-operator-card p {
  margin: 0;
}

.selected-operator-card p {
  margin-top: 3px;
  color: #64748b;
  font-size: 13px;
}

.operator-pin-input {
  height: 54px;
  font-size: 22px;
  letter-spacing: 0.25em;
  text-align: center;
}

.operator-login-error {
  min-height: 20px;
  margin: -5px 0 10px;
  color: #dc2626;
  font-size: 13px;
  font-weight: 700;
}

.shift-status-badge {
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.shift-status-badge.open {
  color: #047857;
  background: #d1fae5;
}

.shift-status-badge.closed {
  color: #b91c1c;
  background: #fee2e2;
}

.cashier-pro-actions,
.split-mode-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pricing-summary {
  display: grid;
  gap: 7px;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.pricing-summary:empty {
  display: none;
}

.pricing-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 13px;
}

.pricing-summary .split-payable {
  color: #0f62fe;
  font-weight: 800;
}

.discount-controls,
.multi-payment-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.discount-controls .input,
.multi-payment-area .input {
  margin-bottom: 0;
}

.payment-method-buttons {
  grid-template-columns: repeat(3, 1fr);
}

.quick-cash-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.quick-cash-buttons button {
  width: 100%;
  min-width: 0;
  padding: 10px 8px;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.quick-cash-area {
  margin-top: 12px;
}

.quick-cash-area .label {
  display: block;
  margin-bottom: 8px;
}

@media (min-width: 1500px) {
  .quick-cash-buttons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.edit-item-btn {
  width: auto;
  padding: 0 8px;
  font-size: 11px;
}

.report-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.report-toolbar h2,
.report-toolbar .input {
  margin-bottom: 0;
}

.report-toolbar .input {
  max-width: 380px;
}

.cashier-pro-modal {
  max-width: 560px;
}

.shift-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.shift-summary-grid > div {
  display: grid;
  gap: 5px;
  padding: 13px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
}

.shift-summary-grid span {
  color: #64748b;
  font-size: 12px;
}

.modifier-check-list,
.split-item-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.modifier-check-list label,
.split-item-list label {
  padding: 11px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
}

.split-result {
  padding: 18px;
  margin-bottom: 14px;
  color: #0f62fe;
  background: #eff6ff;
  border-radius: 14px;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
}

@media (max-width: 620px) {
  .discount-controls,
  .multi-payment-area,
  .shift-summary-grid,
  .payment-method-buttons {
    grid-template-columns: 1fr;
  }

  .report-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Operational reports */
#reportPage {
  color: #1e293b;
  min-height: calc(100vh - 100px);
  padding: 4px;
  background: #f5f7fb;
}

.report-page-header {
  margin-bottom: 16px;
}

.report-page-header h1 {
  margin-bottom: 4px;
}

.report-page-header p {
  color: #64748b;
  font-size: 14px;
}

.report-catalog.hidden {
  display: none;
}

.report-detail-view {
  display: none;
}

.report-detail-view.visible {
  display: block;
}

.report-category-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  padding: 7px;
  overflow-x: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
}

.report-category-tabs button {
  flex: 0 0 auto;
  padding: 9px 12px;
  color: #64748b;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.report-category-tabs button.active {
  color: #fff;
  background: #2563eb;
}

.report-catalog-list {
  padding: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.035);
}

.report-catalog-section-header {
  margin-bottom: 16px;
}

.report-catalog-section-header h2 {
  margin-bottom: 4px;
  font-size: 18px;
}

.report-catalog-section-header p {
  color: #64748b;
  font-size: 12px;
}

.report-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.report-link-card {
  position: relative;
  min-height: 128px;
  padding: 15px;
  color: #334155;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.025);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.report-link-card:not(.disabled):hover {
  transform: translateY(-1px);
  border-color: #bfdbfe;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.06);
}

.report-link-title,
.report-link-description,
.report-link-arrow {
  display: block;
}

.report-link-title {
  margin-bottom: 7px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

.report-link-description {
  color: #64748b;
  font-size: 11px;
  line-height: 1.5;
}

.report-link-arrow {
  margin-top: 12px;
  color: #2563eb;
  font-size: 10px;
  font-weight: 800;
}

.report-link-card.unavailable {
  color: #94a3b8;
  background: #f8fafc;
}

.report-link-card.unavailable .report-link-title,
.report-link-card.unavailable .report-link-description {
  color: #94a3b8;
}

.report-link-card.unavailable:hover {
  border-color: #cbd5e1;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.04);
}

.report-unavailable-badge {
  display: inline-flex;
  margin-top: 12px;
  padding: 4px 7px;
  color: #64748b;
  background: #e2e8f0;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
}

.report-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.report-detail-header h2 {
  margin-bottom: 3px;
  font-size: 18px;
}

.report-detail-header p {
  color: #64748b;
  font-size: 12px;
}

.report-back-btn {
  flex: 0 0 auto;
  padding: 9px 11px;
  color: #475569;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.report-filter-panel,
.report-workspace {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.035);
}

.report-filter-panel {
  padding: 16px;
  margin-bottom: 16px;
}

.report-filter-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 12px;
}

.report-filter-field {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.report-filter-field span {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.report-filter-field input,
.report-filter-field select {
  width: 100%;
  height: 38px;
  margin: 0;
  padding: 8px 10px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  font-size: 12px;
}

.report-search-field {
  grid-column: span 2;
}

.report-custom-dates {
  display: none;
  grid-template-columns: repeat(2, minmax(150px, 220px));
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.report-custom-dates.visible {
  display: grid;
}

.report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(145px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.report-kpi-card {
  min-width: 145px;
  padding: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.035);
}

.report-kpi-card span {
  display: block;
  margin-bottom: 7px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.report-kpi-card strong,
.report-table .numeric {
  font-variant-numeric: tabular-nums;
}

.report-kpi-card strong {
  color: #0f172a;
  font-size: 17px;
}

.report-tabs {
  display: flex;
  gap: 4px;
  padding: 10px;
  overflow-x: auto;
  border-bottom: 1px solid #e2e8f0;
}

.report-tab-btn {
  flex: 0 0 auto;
  padding: 9px 12px;
  color: #64748b;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.report-tab-btn:hover {
  color: #334155;
  background: #f8fafc;
}

.report-tab-btn.active {
  color: #fff;
  background: #2563eb;
}

.report-tab-content {
  min-height: 220px;
}

.report-table-scroll {
  width: 100%;
  overflow-x: auto;
}

.report-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 12px;
}

.report-table th,
.report-table td {
  padding: 12px;
  border-bottom: 1px solid #edf1f5;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.report-table th {
  position: sticky;
  top: 0;
  color: #64748b;
  background: #f8fafc;
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.report-table tbody tr:hover {
  background: #fafcff;
}

.report-table .numeric {
  text-align: right;
}

.report-total-cell {
  color: #1d4ed8;
  font-weight: 800;
}

.report-status {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.report-status.success {
  color: #047857;
  background: #d1fae5;
}

.report-status.warning {
  color: #a16207;
  background: #fef3c7;
}

.report-status.danger {
  color: #b91c1c;
  background: #fee2e2;
}

.report-status.neutral {
  color: #475569;
  background: #e2e8f0;
}

.report-row-action {
  padding: 6px 9px;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.report-row-actions {
  display: flex;
  gap: 5px;
}

.report-row-action.danger {
  color: #b91c1c;
  background: #fff;
  border-color: #fecaca;
}

.report-empty-state {
  padding: 48px 20px;
  color: #64748b;
  text-align: center;
}

.report-unavailable-state {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 32px;
  text-align: center;
}

.report-unavailable-state h3 {
  margin-bottom: 7px;
  color: #334155;
  font-size: 17px;
}

.report-unavailable-state p {
  color: #64748b;
  font-size: 13px;
}

.report-audit-section {
  padding: 20px;
  border-top: 1px solid #e2e8f0;
}

.report-audit-section h3 {
  margin-bottom: 4px;
  font-size: 15px;
}

.report-audit-section > p {
  margin-bottom: 12px;
  color: #64748b;
  font-size: 12px;
}

.report-audit-section .product-list-item {
  padding: 10px 0;
}

.product-report-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.product-report-summary > div {
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
}

.product-report-summary span {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.product-report-summary strong {
  color: #0f172a;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.product-report-subtabs {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
}

.product-report-subtabs button {
  padding: 7px 10px;
  color: #475569;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.product-report-subtabs button.active {
  color: #fff;
  background: #2563eb;
  border-color: #2563eb;
}

.report-export-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
}

.report-export-panel h3 {
  margin-bottom: 5px;
}

.report-export-panel p {
  color: #64748b;
  font-size: 13px;
}

.report-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-export-actions button {
  padding: 9px 12px;
  color: #94a3b8;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
}

@media (max-width: 1200px) {
  .report-filter-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .report-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .report-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-search-field {
    grid-column: span 2;
  }

  .report-export-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .product-report-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-link-grid {
    grid-template-columns: 1fr;
  }

  .report-detail-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .report-filter-grid,
  .report-custom-dates {
    grid-template-columns: 1fr;
  }

  .report-search-field {
    grid-column: auto;
  }

  .report-filter-panel {
    padding: 12px;
  }

  .product-report-summary {
    grid-template-columns: 1fr;
  }
}

/* Cashier workspace refresh: visual-only overrides scoped to the cashier page. */
#cashierPage {
  --cashier-primary: #2563eb;
  --cashier-primary-dark: #1d4ed8;
  --cashier-border: #e2e8f0;
  --cashier-muted: #64748b;
  --cashier-surface: #ffffff;
  --cashier-background: #f5f7fb;
  margin: -24px;
  padding: 20px 24px 32px;
  min-height: calc(100vh - 54px);
  background: var(--cashier-background);
}

#cashierPage .kasir-page-header {
  min-height: 54px;
  margin-bottom: 16px;
  padding: 8px 10px 8px 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--cashier-border);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

#cashierPage .kasir-page-header h1 {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

#cashierPage .kasir-page-subtitle {
  margin-top: 3px;
  color: var(--cashier-muted);
  font-size: 12px;
}

#cashierPage .kasir-header-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

#cashierPage .kasir-header-actions button,
#cashierPage .kasir-header-actions .tab-btn {
  width: auto;
  min-width: 0;
  height: 36px;
  padding: 8px 11px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid var(--cashier-border);
  border-radius: 10px;
  box-shadow: none;
  font-size: 12px;
  white-space: nowrap;
}

#cashierPage .kasir-header-actions button:hover,
#cashierPage .kasir-header-actions .tab-btn:hover {
  color: #1e293b;
  background: #f1f5f9;
  border-color: #cbd5e1;
}

#cashierPage .kasir-header-actions .tab-btn.active {
  color: #ffffff;
  background: var(--cashier-primary);
  border-color: var(--cashier-primary);
}

#cashierPage .kasir-header-actions .primary-btn {
  color: #475569;
  background: #ffffff;
}

#cashierPage .shift-status-badge {
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
}

#cashierPage .shift-status-badge.open {
  border-color: #a7f3d0;
}

#cashierPage .shift-status-badge.closed {
  border-color: #fecaca;
}

#cashierPage .cashier-layout {
  grid-template-columns: minmax(0, 1fr) clamp(360px, 29vw, 420px);
  gap: 20px;
  align-items: start;
}

#cashierPage .panel {
  margin-bottom: 0;
  padding: 18px;
  background: var(--cashier-surface);
  border: 1px solid var(--cashier-border);
  border-radius: 18px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.035);
}

#cashierPage .cashier-left {
  min-height: calc(100vh - 132px);
  overflow: visible;
}

#cashierPage .cashier-view > .input:first-child {
  height: 44px;
  margin-bottom: 20px;
  padding-left: 16px;
  background: #f8fafc;
  border-color: var(--cashier-border);
  border-radius: 12px;
}

#cashierPage .cashier-view > .input:first-child:focus {
  background: #ffffff;
}

#cashierPage .table-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

#cashierPage .table-card {
  min-height: 126px;
  padding: 17px;
  border-width: 1px;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

#cashierPage .table-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

#cashierPage .table-number {
  margin-bottom: 12px;
  color: #0f172a;
  font-size: 18px;
}

#cashierPage .table-status {
  margin-bottom: 8px;
  font-size: 13px;
}

#cashierPage .table-count {
  margin-top: 8px;
  font-size: 12px;
}

#cashierPage .table-empty .table-count {
  display: none;
}

#cashierPage .table-payment-badge {
  margin-bottom: 3px;
  padding: 4px 8px;
  font-size: 10px;
  letter-spacing: 0.02em;
}

#cashierPage .cashier-right {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  min-height: 0;
  padding: 18px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

#cashierPage .cashier-right > * {
  flex-shrink: 0;
}

#cashierPage .payment-mode {
  margin-bottom: 12px;
  padding: 0 0 12px;
  color: #0f172a;
  background: transparent;
  border-bottom: 1px solid var(--cashier-border);
  border-radius: 0;
  font-size: 16px;
}

#cashierPage .label {
  margin-bottom: 6px;
  color: #475569;
  font-size: 12px;
  line-height: 1.3;
}

#cashierPage .input,
#cashierPage .textarea,
#cashierPage select {
  margin-bottom: 10px;
  padding: 11px 12px;
  border-color: var(--cashier-border);
  border-radius: 10px;
  font-size: 13px;
}

#cashierPage .textarea {
  min-height: 58px;
}

#cashierPage #cartItems {
  margin-top: 5px;
}

#cashierPage .cart-item {
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid #edf1f5;
}

#cashierPage .cart-item-info {
  min-width: 0;
}

#cashierPage .cart-item-info h4 {
  color: #1e293b;
  font-size: 13px;
}

#cashierPage .cart-item-info p,
#cashierPage .cart-item-info small {
  display: block;
  color: var(--cashier-muted);
  font-size: 11px;
  line-height: 1.5;
}

#cashierPage .cart-item-right {
  flex-shrink: 0;
  font-size: 12px;
}

#cashierPage .qty-box {
  justify-content: flex-end;
  gap: 5px;
  margin-top: 7px;
}

#cashierPage .qty-btn {
  width: 25px;
  height: 25px;
  padding: 0;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid var(--cashier-border);
  border-radius: 7px;
}

#cashierPage .qty-btn:hover {
  color: var(--cashier-primary);
  background: #eff6ff;
  border-color: #bfdbfe;
}

#cashierPage .edit-item-btn {
  width: auto;
  padding: 0 7px;
  color: #475569;
  font-size: 10px;
}

#cashierPage .cashier-pro-actions {
  gap: 7px;
  margin-top: 13px;
}

#cashierPage .cashier-pro-actions .secondary-btn {
  min-height: 34px;
  padding: 8px 10px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid var(--cashier-border);
  border-radius: 9px;
  font-size: 11px;
}

#cashierPage .selected-order-box {
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--cashier-border);
  border-left: 3px solid var(--cashier-primary);
  border-radius: 12px;
}

#cashierPage .selected-order-box .secondary-btn,
#cashierPage .selected-order-box .danger-btn,
#cashierPage .selected-order-box .primary-btn {
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 11px;
}

#cashierPage .receipt-summary-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--cashier-border);
}

#cashierPage .total-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 14px 0 2px;
  border-top: 1px solid var(--cashier-border);
}

#cashierPage .total-box span {
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

#cashierPage .total-box h2 {
  margin: 0;
  color: var(--cashier-primary);
  font-size: 29px;
  line-height: 1;
  letter-spacing: -0.04em;
  text-align: right;
}

#cashierPage .pricing-summary {
  gap: 6px;
  padding: 0;
  border-bottom: 0;
}

#cashierPage .pricing-summary > div {
  min-height: 20px;
  align-items: center;
}

#cashierPage .pricing-summary > div strong {
  color: #334155;
  font-weight: 700;
}

#cashierPage .discount-controls,
#cashierPage .multi-payment-area {
  gap: 7px;
  margin-top: 12px;
}

#cashierPage .receipt-summary-section .discount-controls {
  padding-top: 12px;
  border-top: 1px dashed var(--cashier-border);
}

#cashierPage .receipt-summary-section .discount-controls .input {
  height: 36px;
  padding: 7px 9px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 11px;
}

#cashierPage .payment-method-buttons {
  gap: 4px;
  margin: 16px 0 12px;
  padding: 4px;
  background: #f1f5f9;
  border: 1px solid var(--cashier-border);
  border-radius: 12px;
}

#cashierPage .payment-method-btn {
  min-width: 0;
  padding: 9px 6px;
  color: #64748b;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 11px;
}

#cashierPage .payment-method-btn.active {
  color: #ffffff;
  background: var(--cashier-primary);
  border-color: var(--cashier-primary);
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
}

#cashierPage .payment-row {
  align-items: start;
  gap: 10px;
  margin-bottom: 12px;
}

#cashierPage .payment-col {
  min-width: 0;
}

#cashierPage .payment-col .label {
  height: 20px;
}

#cashierPage .payment-col .input,
#cashierPage .change-box.compact {
  height: 44px;
}

#cashierPage .change-box.compact {
  padding: 0 10px;
  border: 1px solid #a7f3d0;
  border-left: 3px solid #16a34a;
  border-radius: 10px;
}

#cashierPage .change-box.compact h3 {
  color: #15803d;
  font-size: 17px;
}

#cashierPage .quick-cash-area {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--cashier-border);
}

#cashierPage .quick-cash-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
}

#cashierPage .quick-cash-buttons button {
  width: auto;
  flex: 0 0 auto;
  min-width: 0;
  padding: 6px 9px;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.2;
}

#cashierPage .quick-cash-buttons button:hover {
  color: #1e40af;
  background: #dbeafe;
  border-color: #93c5fd;
}

#cashierPage .payment-actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--cashier-border);
}

#cashierPage .payment-actions .primary-btn {
  min-height: 52px;
  margin-bottom: 10px;
  background: var(--cashier-primary);
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.16);
  font-size: 14px;
}

#cashierPage .payment-actions .primary-btn:hover {
  background: var(--cashier-primary-dark);
}

#cashierPage .clear-action .danger-btn {
  min-width: 0;
  padding: 8px 10px;
  color: #b91c1c;
  background: #fff;
  border: 1px solid #fecaca;
  border-radius: 9px;
  font-size: 11px;
}

#cashierPage button:focus-visible,
#cashierPage .input:focus-visible,
#cashierPage .textarea:focus-visible,
#cashierPage select:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

@media (max-width: 1180px) {
  #cashierPage .cashier-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  #cashierPage .table-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  }
}

@media (max-width: 980px) {
  #cashierPage .cashier-layout {
    grid-template-columns: 1fr;
  }

  #cashierPage .cashier-left {
    min-height: auto;
  }

  #cashierPage .cashier-right {
    position: static;
    max-height: none;
  }
}

@media (max-width: 768px) {
  #cashierPage {
    margin: -16px;
    padding: 14px;
  }

  #cashierPage .kasir-page-header {
    padding: 14px;
  }

  #cashierPage .kasir-header-actions {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  #cashierPage .kasir-header-actions .primary-btn {
    grid-column: auto;
  }

  #cashierPage .panel {
    padding: 14px;
    border-radius: 15px;
  }

  #cashierPage .cashier-right {
    padding: 16px;
  }

  #cashierPage .table-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #cashierPage .table-card {
    min-height: 112px;
    padding: 13px;
  }
}

@media (max-width: 430px) {
  #cashierPage .table-grid {
    grid-template-columns: 1fr 1fr;
  }

  #cashierPage .payment-row,
  #cashierPage .discount-controls,
  #cashierPage .multi-payment-area {
    grid-template-columns: 1fr;
  }

  #cashierPage .payment-method-btn {
    padding-inline: 4px;
    font-size: 10px;
  }

  #cashierPage .total-box h2 {
    font-size: 26px;
  }
}

@media (max-width: 900px) {
  .staff-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .staff-section-header,
  .staff-list-header,
  .staff-member-card {
    align-items: stretch;
    flex-direction: column;
  }

  .staff-form-row,
  .staff-form-grid {
    grid-template-columns: 1fr;
  }

  .staff-member-actions {
    width: 100%;
  }

  .staff-member-actions button {
    flex: 1;
  }
}
.numeric {
  font-variant-numeric: tabular-nums;
}

.product-stock-input:disabled {
  color: #94a3b8;
  background: #f8fafc;
  cursor: not-allowed;
}

.modern-product-table td:nth-child(1) {
  min-width: 180px;
}

.modern-product-table td:nth-child(8) {
  min-width: 120px;
}

@media (min-width: 1000px) {
  .product-filter-box {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}
.modal-full {
  grid-column: span 2;
}

.product-form-section {
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}

.product-form-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.product-form-section-header h3 {
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 16px;
}

.product-form-section-header p,
.bundle-note {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.bundle-component-rows {
  display: grid;
  gap: 10px;
}

.bundle-component-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.5fr) 90px 100px minmax(120px, 0.8fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
}

.bundle-component-row .input {
  margin-bottom: 0;
}

.bundle-component-cost-box {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
}

.bundle-component-cost-box span {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.bundle-component-cost-box strong,
.bundle-hpp-box strong {
  color: #1d4ed8;
  font-variant-numeric: tabular-nums;
}

.bundle-hpp-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 13px;
}

.bundle-hpp-box span {
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.bundle-hpp-box strong {
  font-size: 18px;
}

.bundle-note {
  margin-top: 10px;
}

@media (max-width: 900px) {
  .bundle-component-row {
    grid-template-columns: 1fr;
  }

  .modal-full {
    grid-column: span 1;
  }
}
.raw-material-filter-box {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) minmax(180px, 0.6fr);
  gap: 12px;
  margin-bottom: 16px;
}

.raw-material-filter-box .input {
  margin-bottom: 0;
}

.raw-material-hpp-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
}

.raw-material-hpp-preview span {
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.raw-material-hpp-preview strong {
  color: #1d4ed8;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.numeric {
  font-variant-numeric: tabular-nums;
}

.modal-full {
  grid-column: span 2;
}

@media (max-width: 720px) {
  .raw-material-filter-box {
    grid-template-columns: 1fr;
  }

  .modal-full {
    grid-column: span 1;
  }
}
.header-master-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.header-master-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: none;
  width: 240px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
  z-index: 99999;
}

.header-master-menu.show {
  display: grid;
  gap: 4px;
}

.header-master-menu::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 22px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-left: 1px solid #dbe3ef;
  border-top: 1px solid #dbe3ef;
  transform: rotate(45deg);
}

.header-master-category-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  color: #0f172a;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
}

.header-master-category-btn:hover {
  background: #f1f5f9;
}

.header-master-category-btn em {
  color: #475569;
  font-style: normal;
  font-size: 18px;
}

.sidebar {
  overflow: visible;
  position: relative;
  z-index: 1000;
}

.master-data-category-grid.single-category-view {
  grid-template-columns: minmax(0, 760px);
}

.master-category-page-card {
  width: 100%;
}

.master-category-page-list .master-data-item {
  padding: 15px 16px;
}

.master-data-item strong {
  color: #0f172a;
}

.master-data-item small {
  color: #475569;
}

.master-data-item.unavailable strong {
  color: #334155;
}

.master-data-item.unavailable small {
  color: #64748b;
}

.master-data-item .unavailable-badge {
  color: #334155;
  background: #e2e8f0;
}
/* FIX: Master dropdown text inside blue sidebar */
.sidebar .header-master-menu {
  background: #ffffff;
  color: #0f172a;
}

.sidebar .header-master-menu button,
.sidebar .header-master-category-btn {
  color: #0f172a !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  text-align: left;
}

.sidebar .header-master-category-btn span {
  color: #0f172a !important;
  display: block;
}

.sidebar .header-master-category-btn em {
  color: #475569 !important;
}

.sidebar .header-master-category-btn:hover {
  background: #f1f5f9 !important;
}

.sidebar .header-master-menu::before {
  background: #ffffff;
}
/* Report card typography polish */
.report-link-title {
  font-weight: 600 !important;
  letter-spacing: -0.01em;
}

.report-link-description {
  font-weight: 400 !important;
  color: #475569 !important;
}

.report-link-arrow {
  font-weight: 600 !important;
}

.report-link-card.unavailable .report-link-title {
  font-weight: 600 !important;
  color: #64748b !important;
}

.report-link-card.unavailable .report-link-description {
  color: #94a3b8 !important;
}
.bundle-component-row {
  grid-template-columns:
    130px
    minmax(190px, 1.5fr)
    85px
    95px
    minmax(120px, 0.8fr)
    auto;
}

@media (max-width: 900px) {
  .bundle-component-row {
    grid-template-columns: 1fr;
  }
}
.raw-purchase-section {
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}

.raw-purchase-item-rows {
  display: grid;
  gap: 10px;
}

.raw-purchase-item-row {
  display: grid;
  grid-template-columns: minmax(200px, 1.4fr) 90px 100px 130px 130px auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
}

.raw-purchase-item-row .input {
  margin-bottom: 0;
}

.raw-purchase-line-total {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
}

.raw-purchase-line-total span {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.raw-purchase-line-total strong,
.raw-purchase-total-box strong {
  color: #1d4ed8;
  font-variant-numeric: tabular-nums;
}

.raw-purchase-total-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 13px;
}

.raw-purchase-total-box span {
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.raw-purchase-total-box strong {
  font-size: 18px;
}

@media (max-width: 900px) {
  .raw-purchase-item-row {
    grid-template-columns: 1fr;
  }
}

/* Compact kitchen report filter notice */
.report-kitchen-filter-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 0;
  padding: 12px 16px;
  margin: 0;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.report-kitchen-filter-notice h3 {
  margin: 0;
  color: #334155;
  font-size: 14px;
  white-space: nowrap;
}

.report-kitchen-filter-notice p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

@media (max-width: 720px) {
  .report-kitchen-filter-notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .report-kitchen-filter-notice p {
    text-align: left;
  }
}

/* === RESTO QR MOBILE UI V1 START === */
/* Elemen tambahan mobile tidak terlihat di desktop */
.mobile-cashier-bar,
.mobile-cashier-overlay,
.mobile-payment-close {
  display: none;
}

@media (max-width: 768px) {
  html {
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
  }

  body {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
    background: #f5f7fb;
  }

  html.mobile-sheet-open,
  html.mobile-sheet-open body {
    overflow: hidden;
  }

  .app {
    width: 100%;
    min-width: 0;
    min-height: 100dvh;
  }

  /* Navigasi bergaya aplikasi di bawah layar */
  .sidebar {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 6000 !important;
    width: 100% !important;
    height: calc(66px + env(safe-area-inset-bottom));
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto !important;
    overflow-y: visible !important;
    background: rgba(255, 255, 255, 0.98) !important;
    color: #334155 !important;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.09);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar::-webkit-scrollbar,
  .kasir-header-actions::-webkit-scrollbar,
  .category-filter::-webkit-scrollbar,
  .report-category-tabs::-webkit-scrollbar {
    display: none;
  }

  .sidebar h2 {
    display: none !important;
  }

  .sidebar > button,
  .sidebar > .header-master-dropdown > button {
    flex: 0 0 auto;
    min-width: 82px;
    height: 46px;
    margin: 0;
    padding: 7px 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: #475569 !important;
    box-shadow: none !important;
    font-size: 11px !important;
    line-height: 1.15;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
  }

  .sidebar > button:active,
  .sidebar > .header-master-dropdown > button:active {
    color: #1d4ed8 !important;
    background: #eff6ff !important;
  }

  .sidebar .header-master-dropdown {
    position: static;
    flex: 0 0 auto;
  }

  .sidebar .header-master-menu {
    position: fixed !important;
    left: 10px !important;
    right: 10px !important;
    top: auto !important;
    bottom: calc(74px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-height: 62dvh;
    overflow-y: auto;
    border-radius: 18px;
    z-index: 7000 !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
  }

  .sidebar .header-master-menu::before {
    display: none !important;
  }

  .content {
    width: 100%;
    min-width: 0;
    padding: 12px 10px calc(18px + env(safe-area-inset-bottom));
    overflow-x: hidden;
  }

  .page,
  .page.active {
    width: 100%;
    min-width: 0;
  }

  h1,
  .page h1 {
    margin-bottom: 12px;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  .panel {
    padding: 13px;
    margin-bottom: 12px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.045);
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
  }

  .summary-card {
    min-width: 0;
    padding: 12px;
    border-radius: 14px;
  }

  .summary-card p {
    margin-bottom: 5px;
    font-size: 11px;
  }

  .summary-card h2 {
    font-size: 20px;
    overflow-wrap: anywhere;
  }

  .input,
  .textarea,
  select,
  input,
  textarea {
    font-size: 16px;
  }

  .input,
  .textarea,
  select {
    padding: 11px 12px;
    margin-bottom: 10px;
    border-radius: 11px;
  }

  .primary-btn,
  .secondary-btn,
  .danger-btn,
  .tab-btn {
    min-height: 42px;
    touch-action: manipulation;
  }

  /* Kasir: daftar produk di layar utama + panel pesanan sebagai bottom sheet */
  #cashierPage {
    margin: 0 !important;
    padding: 0 !important;
    min-height: calc(100dvh - 96px);
    background: transparent !important;
  }

  #cashierPage .kasir-page-header {
    display: block;
    margin-bottom: 10px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
  }

  #cashierPage .kasir-page-header h1 {
    margin-bottom: 3px;
    font-size: 21px;
  }

  #cashierPage .kasir-page-subtitle {
    font-size: 12px;
    line-height: 1.4;
  }

  #cashierPage .kasir-header-actions {
    width: 100%;
    margin-top: 10px;
    padding-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #cashierPage .kasir-header-actions > * {
    flex: 0 0 auto;
  }

  #cashierPage .kasir-header-actions button,
  #cashierPage .kasir-header-actions .tab-btn {
    min-width: auto;
    height: 40px;
    min-height: 40px;
    padding: 8px 11px;
    font-size: 11px;
    border-radius: 10px;
  }

  #cashierPage .cashier-layout {
    display: block !important;
    width: 100%;
  }

  #cashierPage .cashier-left {
    min-height: 0 !important;
    padding: 10px !important;
    margin-bottom: 88px;
  }

  #cashierPage #productSearch,
  #cashierPage #tableSearch {
    height: 44px;
    margin-bottom: 9px;
  }

  #cashierPage .category-filter {
    margin: 0 -2px 10px;
    padding: 0 2px 2px;
    display: flex;
    gap: 7px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #cashierPage .category-btn {
    flex: 0 0 auto;
    padding: 8px 11px;
    font-size: 11px;
    white-space: nowrap;
  }

  #cashierPage .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  #cashierPage .product-card {
    min-width: 0;
    padding: 9px;
    border-radius: 13px;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.055);
  }

  #cashierPage .product-card:hover {
    transform: none;
  }

  #cashierPage .product-image {
    aspect-ratio: 4 / 3;
    margin-bottom: 7px;
    border-radius: 10px;
  }

  #cashierPage .product-image span {
    font-size: 30px;
  }

  #cashierPage .product-category {
    margin-bottom: 5px;
    padding: 4px 7px;
    font-size: 9px;
  }

  #cashierPage .product-name {
    min-height: 32px;
    margin-bottom: 4px;
    font-size: 13px;
    line-height: 1.25;
  }

  #cashierPage .product-price {
    margin-bottom: 2px;
    padding-right: 35px;
    font-size: 15px;
  }

  #cashierPage .add-cart-btn {
    right: 8px;
    bottom: 8px;
    width: 34px;
    height: 34px;
    font-size: 21px;
  }

  #cashierPage .table-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  #cashierPage .table-card {
    min-height: 96px !important;
    padding: 11px !important;
    border-radius: 13px !important;
  }

  #cashierPage .cashier-right {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: calc(66px + env(safe-area-inset-bottom));
    top: auto;
    z-index: 5200;
    width: 100%;
    height: min(78dvh, 720px);
    max-height: min(78dvh, 720px) !important;
    margin: 0 !important;
    padding: 12px 13px calc(18px + env(safe-area-inset-bottom)) !important;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0 !important;
    border-radius: 22px 22px 0 0 !important;
    box-shadow: 0 -20px 55px rgba(15, 23, 42, 0.25) !important;
    transform: translateY(calc(100% + 20px));
    visibility: hidden;
    transition: transform 180ms ease, visibility 180ms ease;
  }

  #cashierPage.mobile-payment-open .cashier-right {
    transform: translateY(0);
    visibility: visible;
  }

  .mobile-payment-close {
    position: sticky;
    top: 0;
    z-index: 5;
    width: 100%;
    height: 42px;
    margin: -2px 0 10px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #334155;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 800;
  }

  .mobile-payment-close span:last-child {
    font-size: 20px;
    line-height: 1;
  }

  .mobile-cashier-overlay {
    position: fixed;
    inset: 0 0 calc(66px + env(safe-area-inset-bottom)) 0;
    z-index: 5100;
    display: block;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  #cashierPage.mobile-payment-open .mobile-cashier-overlay {
    opacity: 1;
    visibility: visible;
  }

  .mobile-cashier-bar {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    z-index: 5000;
    min-height: 58px;
    padding: 8px 9px 8px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #fff;
    background: #0f172a;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.26);
  }

  .mobile-cashier-bar-info {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .mobile-cashier-bar-info span {
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 700;
  }

  .mobile-cashier-bar-info strong {
    overflow: hidden;
    font-size: 17px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-cashier-bar button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 9px 13px;
    color: #fff;
    background: #2563eb;
    border: 0;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 800;
  }

  #cashierPage.mobile-payment-open .mobile-cashier-bar {
    opacity: 0;
    pointer-events: none;
  }

  #cashierPage .cashier-right .payment-method-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px;
  }

  #cashierPage .cashier-right .payment-method-btn {
    min-height: 42px;
    padding: 7px 4px;
    font-size: 10px;
  }

  #cashierPage .cashier-right .payment-row {
    display: grid;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px;
  }

  #cashierPage .quick-cash-buttons {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  #cashierPage .quick-cash-buttons button {
    width: 100% !important;
    padding: 8px 5px;
    font-size: 10px;
  }

  #cashierPage .payment-actions .primary-btn {
    min-height: 50px;
  }

  /* Master data */
  .master-data-page-header,
  .master-header,
  .master-data-detail-header,
  .product-form-section-header {
    align-items: stretch !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .master-actions {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .master-actions button {
    width: 100%;
  }

  .master-data-category-grid,
  .master-data-category-grid.single-category-view,
  .product-filter-box,
  .raw-material-filter-box,
  .staff-form-grid,
  .staff-form-row {
    grid-template-columns: 1fr !important;
  }

  .product-filter-box,
  .raw-material-filter-box {
    padding: 11px;
    gap: 8px;
  }

  .table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
  }

  .modern-product-table,
  .report-workspace table {
    min-width: 720px;
  }

  .modern-product-table th,
  .modern-product-table td,
  .report-workspace th,
  .report-workspace td {
    padding: 10px;
    font-size: 12px;
  }

  /* Laporan */
  #reportPage {
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
  }

  .report-page-header,
  .report-detail-header {
    margin-bottom: 10px;
  }

  .report-category-tabs {
    display: flex;
    gap: 7px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .report-category-tabs > * {
    flex: 0 0 auto;
  }

  .report-filter-panel {
    padding: 11px;
    border-radius: 13px;
  }

  .report-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .report-filter-field input,
  .report-filter-field select {
    min-width: 0;
    width: 100%;
  }

  .report-kpi-grid {
    gap: 8px;
    margin: 0 -2px 12px;
    padding: 0 2px 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .report-kpi-card {
    min-width: 138px;
    padding: 11px;
    scroll-snap-align: start;
  }

  .report-kpi-card strong {
    font-size: 18px;
  }

  .report-toolbar {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .report-toolbar .input {
    max-width: none !important;
  }

  /* Modal jadi bottom-sheet di HP */
  .modal,
  .modal-overlay {
    padding: 0 !important;
    align-items: flex-end !important;
  }

  .modal-box,
  .modal-content,
  .cashier-pro-modal,
  .raw-purchase-modal-box {
    width: 100% !important;
    max-width: none !important;
    max-height: 92dvh !important;
    margin: 0 !important;
    padding: 16px 14px calc(18px + env(safe-area-inset-bottom)) !important;
    border-radius: 20px 20px 0 0 !important;
    overflow-y: auto;
  }

  .modal-actions,
  .modal-footer {
    gap: 8px;
    flex-wrap: wrap;
  }

  .modal-actions > button,
  .modal-footer > button {
    flex: 1 1 130px;
  }
}

@media (max-width: 430px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #cashierPage .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #cashierPage .cashier-right .payment-row,
  #cashierPage .discount-controls,
  #cashierPage .multi-payment-area {
    grid-template-columns: 1fr !important;
  }

  .report-filter-grid {
    grid-template-columns: 1fr !important;
  }

  .master-actions {
    grid-template-columns: 1fr !important;
  }
}
/* === RESTO QR MOBILE UI V1 END === */

/* === RESTO QR MOBILE UI V2 START === */
/* V2: tombol besar + alur kasir cepat + filter laporan model dropdown di HP */
.mobile-report-filter-button,
.mobile-report-filter-actions {
  display: none;
}

@media (max-width: 768px) {
  :root {
    --mobile-touch: 48px;
  }

  body {
    background: #f6f8fc;
  }

  /* Navigasi bawah terasa seperti aplikasi */
  .sidebar {
    height: calc(72px + env(safe-area-inset-bottom)) !important;
    padding: 7px 7px calc(8px + env(safe-area-inset-bottom)) !important;
    gap: 4px !important;
  }

  .sidebar > button,
  .sidebar > .header-master-dropdown > button {
    min-width: 76px !important;
    height: 52px !important;
    padding: 6px 8px !important;
    border-radius: 14px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
  }

  .sidebar > button:active,
  .sidebar > .header-master-dropdown > button:active {
    transform: scale(0.97);
  }

  /* Header kasir lebih fokus, tombol utama lebih besar */
  #cashierPage .kasir-page-header {
    padding: 11px !important;
    border-radius: 16px !important;
  }

  #cashierPage .kasir-page-header h1 {
    font-size: 20px !important;
  }

  #cashierPage .kasir-page-subtitle {
    display: none;
  }

  #cashierPage .kasir-header-actions {
    gap: 7px !important;
    margin-top: 8px !important;
  }

  #cashierPage .kasir-header-actions button,
  #cashierPage .kasir-header-actions .tab-btn {
    min-height: 46px !important;
    height: 46px !important;
    padding: 9px 13px !important;
    border-radius: 13px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
  }

  #cashierPage #productTabBtn,
  #cashierPage #tableTabBtn {
    min-width: 118px !important;
    font-size: 13px !important;
  }

  #cashierPage #productTabBtn.active,
  #cashierPage #tableTabBtn.active {
    box-shadow: 0 7px 18px rgba(37, 99, 235, 0.18) !important;
  }

  #cashierPage #productSearch,
  #cashierPage #tableSearch {
    min-height: 48px !important;
    height: 48px !important;
    padding: 11px 14px !important;
    border-radius: 14px !important;
  }

  #cashierPage .category-btn {
    min-height: 42px !important;
    padding: 9px 14px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
  }

  /* Kartu produk nyaman disentuh */
  #cashierPage .product-grid {
    gap: 10px !important;
  }

  #cashierPage .product-card {
    min-height: 154px;
    padding: 10px !important;
    border-radius: 16px !important;
  }

  #cashierPage .product-image {
    border-radius: 12px !important;
  }

  #cashierPage .product-name {
    min-height: 34px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
  }

  #cashierPage .product-price {
    font-size: 16px !important;
    font-weight: 900 !important;
  }

  #cashierPage .add-cart-btn {
    width: 44px !important;
    height: 44px !important;
    right: 8px !important;
    bottom: 8px !important;
    border-radius: 13px !important;
    font-size: 25px !important;
    box-shadow: 0 7px 18px rgba(37, 99, 235, 0.28) !important;
  }

  #cashierPage .table-card {
    min-height: 112px !important;
    padding: 13px !important;
    border-radius: 16px !important;
  }

  /* Bar checkout: tombol besar dan mudah dijangkau ibu jari */
  .mobile-cashier-bar {
    left: 7px !important;
    right: 7px !important;
    bottom: calc(78px + env(safe-area-inset-bottom)) !important;
    min-height: 68px !important;
    padding: 9px 9px 9px 14px !important;
    border-radius: 18px !important;
  }

  .mobile-cashier-bar-info span {
    font-size: 11px !important;
  }

  .mobile-cashier-bar-info strong {
    font-size: 20px !important;
  }

  .mobile-cashier-bar button {
    min-height: 50px !important;
    padding: 11px 16px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
  }

  #cashierPage .cashier-left {
    margin-bottom: 102px !important;
  }

  /* Bottom sheet pembayaran dibuat lebih seperti aplikasi kasir */
  #cashierPage .cashier-right {
    bottom: calc(72px + env(safe-area-inset-bottom)) !important;
    height: min(88dvh, 820px) !important;
    max-height: min(88dvh, 820px) !important;
    padding: 12px 13px calc(22px + env(safe-area-inset-bottom)) !important;
    border-radius: 24px 24px 0 0 !important;
  }

  .mobile-payment-close {
    min-height: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
  }

  #cashierPage .cashier-right .payment-method-btn {
    min-height: 52px !important;
    padding: 9px 5px !important;
    border-radius: 13px !important;
    font-size: 11px !important;
    font-weight: 900 !important;
  }

  #cashierPage .quick-cash-buttons button {
    min-height: 46px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
  }

  #cashierPage .payment-actions .primary-btn,
  #cashierPage button[onclick*="processPayment"],
  #cashierPage button[onclick*="pay"] {
    min-height: 56px !important;
    border-radius: 15px !important;
    font-size: 15px !important;
    font-weight: 900 !important;
  }

  /* ===== FILTER LAPORAN MOBILE: ICON -> DROPDOWN ===== */
  #reportDetailView .report-detail-header {
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start !important;
    gap: 9px !important;
  }

  #reportDetailView .report-detail-header > .report-back-btn {
    grid-column: 1 / -1;
    justify-self: start;
  }

  #reportDetailView .report-detail-header > div {
    min-width: 0;
  }

  .mobile-report-filter-button {
    align-self: center;
    display: inline-flex;
    min-width: var(--mobile-touch);
    min-height: var(--mobile-touch);
    padding: 9px 12px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #1e3a8a;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 13px;
    box-shadow: 0 3px 9px rgba(37, 99, 235, 0.08);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
  }

  .mobile-report-filter-button svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
  }

  .mobile-report-filter-button.active {
    color: #fff;
    background: #2563eb;
    border-color: #2563eb;
  }

  .mobile-report-filter-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #ef4444;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
  }

  .mobile-report-filter-badge.visible {
    display: inline-flex;
  }

  /* configureReportDetailUI memberi display inline, jadi !important diperlukan */
  #reportDetailView .report-filter-panel {
    display: none !important;
    margin: 0 0 12px !important;
    padding: 12px !important;
    background: #fff !important;
    border: 1px solid #dbe4f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10) !important;
  }

  #reportDetailView.mobile-report-filter-open .report-filter-panel {
    display: block !important;
  }

  #reportDetailView .report-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  #reportDetailView .report-filter-field {
    margin: 0 !important;
  }

  #reportDetailView .report-filter-field span {
    margin-bottom: 5px;
    font-size: 11px;
    font-weight: 800;
  }

  #reportDetailView .report-filter-field input,
  #reportDetailView .report-filter-field select {
    min-height: 46px;
    margin: 0 !important;
    padding: 10px 11px;
    border-radius: 12px;
    font-size: 14px;
  }

  .mobile-report-filter-actions {
    margin-top: 11px;
    padding-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 8px;
    border-top: 1px solid #e2e8f0;
  }

  .mobile-report-filter-actions button {
    min-height: 46px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-report-filter-reset {
    color: #475569;
    background: #fff;
    border: 1px solid #cbd5e1;
  }

  .mobile-report-filter-done {
    color: #fff;
    background: #2563eb;
    border: 1px solid #2563eb;
  }

  /* KPI tetap dekat ke hasil setelah filter ditutup */
  #reportDetailView .report-kpi-grid {
    margin-top: 2px !important;
  }
}

@media (max-width: 430px) {
  #reportDetailView .report-filter-grid {
    grid-template-columns: 1fr !important;
  }

  .mobile-report-filter-button .mobile-report-filter-label {
    display: none;
  }

  .mobile-report-filter-button {
    padding: 9px 11px;
  }

  #cashierPage .product-card {
    min-height: 150px;
  }
}
/* === RESTO QR MOBILE UI V2 END === */

/* === RESTO QR RECEIPT MOBILE V3 START === */
/* Modal struk dibuat compact. Logika transaksi/print tidak diubah. */
#receiptModal .modal-content {
  max-width: 430px;
}

#receiptModal > .modal-content > h2 {
  margin: 0 0 12px;
  font-size: 19px;
}

#receiptModal #receiptContent {
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
}

#receiptModal .modal-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

#receiptModal .modal-actions > button {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  height: 42px;
  margin: 0;
  padding: 0 10px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.printer-setting-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.printer-setting-header h2 {
  margin: 0 0 4px;
}

.printer-setting-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}

.printer-setting-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.printer-setting-help {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 12px;
}

.printer-setting-save {
  min-height: 44px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  #receiptModal {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  #receiptModal .modal-content {
    width: calc(100% - 16px) !important;
    max-width: none !important;
    max-height: 90dvh !important;
    margin: 0 8px calc(8px + env(safe-area-inset-bottom)) !important;
    padding: 14px !important;
    border-radius: 22px !important;
    overflow-y: auto !important;
  }

  #receiptModal > .modal-content > h2 {
    margin: 0 0 10px !important;
    font-size: 18px !important;
  }

  #receiptModal #receiptContent {
    max-height: calc(90dvh - 105px);
    overflow-y: auto;
    padding: 12px !important;
    border-radius: 15px;
    background: #f8fafc;
  }

  #receiptModal .receipt-box {
    width: 100%;
    max-width: 330px;
    margin: 0 auto;
  }

  #receiptModal .modal-actions {
    position: sticky;
    bottom: -14px;
    z-index: 2;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px !important;
    margin: 10px -2px -2px !important;
    padding: 8px 2px 2px !important;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    flex-wrap: nowrap !important;
  }

  #receiptModal .modal-actions > button {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 6px !important;
    border-radius: 12px !important;
    font-size: 12.5px !important;
    font-weight: 850 !important;
  }

  .printer-setting-header {
    align-items: center;
  }

  .printer-setting-grid {
    grid-template-columns: 1fr;
  }

  .printer-setting-save {
    width: 100%;
    min-height: 48px;
  }
}

@media (max-width: 360px) {
  #receiptModal .modal-actions > button {
    font-size: 11.5px !important;
  }
}
/* === RESTO QR RECEIPT MOBILE V3 END === */

/* === RESTO QR PWA DIRECT PRINTER START === */
.direct-printer-controls { margin-top: 18px; padding-top: 18px; border-top: 1px solid #e2e8f0; }
.direct-printer-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:14px; }
.direct-printer-head h3 { margin:0 0 4px; font-size:16px; }
.direct-printer-status { display:inline-flex; align-items:center; min-height:28px; padding:5px 10px; border-radius:999px; font-size:12px; font-weight:800; white-space:nowrap; }
.direct-printer-status.is-on { background:#dcfce7; color:#166534; }
.direct-printer-status.is-off { background:#f1f5f9; color:#475569; }
.direct-printer-grid { display:grid; grid-template-columns:minmax(180px, 260px) 1fr; gap:14px; align-items:end; }
.direct-printer-actions { display:flex; flex-wrap:wrap; gap:8px; }
.direct-printer-actions button { min-height:42px; }
.direct-printer-hint { margin-top:10px; color:#64748b; font-size:12px; line-height:1.5; }
@media (max-width:768px) {
  .direct-printer-head { align-items:center; }
  .direct-printer-grid { grid-template-columns:1fr; }
  .direct-printer-actions { display:grid; grid-template-columns:1fr 1fr; }
  .direct-printer-actions button:first-child { grid-column:1 / -1; }
  .direct-printer-actions button { width:100%; min-height:48px !important; height:auto !important; }
  #pwaSettingsPanel > .primary-btn { width:100%; min-height:48px; }
}
/* === RESTO QR PWA DIRECT PRINTER END === */


/* === RESTO QR CASHIER TOOLS START === */
#cashierPage .cashier-tools-wrap {
  position: relative;
  flex: 0 0 auto;
}

#cashierPage .cashier-tools-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

#cashierPage .cashier-tools-trigger[aria-expanded="true"] {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.cashier-tools-overlay {
  display: none !important;
}

.cashier-tools-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 4500;
  display: none;
  width: min(330px, calc(100vw - 24px));
  padding: 9px;
  color: #172033;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.cashier-tools-wrap.open .cashier-tools-menu {
  display: block;
  animation: cashierToolsIn 130ms ease-out;
}

@keyframes cashierToolsIn {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cashier-tools-sheet-head {
  display: none;
}

.cashier-tools-section-label {
  padding: 6px 9px 5px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cashier-tools-divider {
  height: 1px;
  margin: 7px 6px;
  background: #e2e8f0;
}

#cashierPage .cashier-tool-item {
  width: 100%;
  height: auto;
  min-height: 54px;
  margin: 0;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  color: #172033;
  background: transparent;
  border: 0;
  border-radius: 11px;
  box-shadow: none;
  text-align: left;
  white-space: normal;
}

#cashierPage .cashier-tool-item:hover {
  color: #172033;
  background: #f8fafc;
  border-color: transparent;
}

.cashier-tool-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  border-radius: 10px;
  font-size: 17px;
}

.cashier-tool-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.cashier-tool-copy strong {
  color: #0f172a;
  font-size: 12px;
  line-height: 1.25;
}

.cashier-tool-copy small {
  color: #64748b;
  font-size: 10px;
  line-height: 1.35;
}

.cashier-tools-close {
  display: none;
}

@media (max-width: 768px) {
  html.cashier-tools-sheet-open,
  html.cashier-tools-sheet-open body {
    overflow: hidden !important;
  }

  #cashierPage .kasir-header-actions {
    overflow: visible !important;
  }

  #cashierPage .cashier-tools-wrap {
    position: static;
  }

  #cashierPage #productTabBtn,
  #cashierPage #tableTabBtn,
  #cashierPage #cashierToolsBtn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
  }

  #cashierPage .kasir-header-actions {
    display: grid !important;
    grid-template-columns: auto repeat(3, minmax(0, 1fr));
    gap: 7px !important;
  }

  #cashierPage .shift-status-badge {
    grid-column: 1 / -1;
    width: max-content;
  }

  #cashierPage .cashier-tools-trigger {
    min-width: 0 !important;
  }

  .cashier-tools-wrap.open .cashier-tools-overlay {
    position: fixed;
    inset: 0;
    z-index: 7900;
    display: block !important;
    width: 100vw !important;
    height: 100dvh !important;
    padding: 0 !important;
    background: rgba(15, 23, 42, 0.48) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .cashier-tools-menu {
    position: fixed;
    left: 8px;
    right: 8px;
    top: auto;
    bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 8000;
    width: auto;
    max-height: min(78dvh, 640px);
    padding: 8px 8px calc(10px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 -20px 55px rgba(15, 23, 42, 0.28);
  }

  .cashier-tools-wrap.open .cashier-tools-menu {
    animation: cashierToolsSheetIn 180ms ease-out;
  }

  @keyframes cashierToolsSheetIn {
    from {
      opacity: 0;
      transform: translateY(24px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .cashier-tools-sheet-head {
    position: sticky;
    top: -8px;
    z-index: 2;
    margin: -1px -1px 5px;
    padding: 13px 10px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 18px 18px 10px 10px;
  }

  .cashier-tools-sheet-head > div {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .cashier-tools-sheet-head strong {
    color: #0f172a;
    font-size: 17px;
  }

  .cashier-tools-sheet-head span {
    color: #64748b;
    font-size: 11px;
  }

  #cashierPage .cashier-tools-close {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    display: grid;
    place-items: center;
    color: #475569;
    background: #f1f5f9;
    border: 0;
    border-radius: 12px;
    font-size: 24px !important;
    line-height: 1;
  }

  .cashier-tools-section-label {
    padding: 9px 11px 6px;
    font-size: 10px;
  }

  #cashierPage .cashier-tool-item {
    min-height: 64px !important;
    padding: 10px 11px !important;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    border-radius: 14px !important;
  }

  #cashierPage .cashier-tool-item:active {
    background: #eff6ff !important;
    transform: scale(0.99);
  }

  .cashier-tool-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 20px;
  }

  .cashier-tool-copy strong {
    font-size: 14px;
  }

  .cashier-tool-copy small {
    font-size: 11px;
  }
}
/* === RESTO QR CASHIER TOOLS END === */


/* === RESTO QR SETTINGS HUB START === */
#settingPage.settings-page {
  max-width: 1180px;
  margin: 0 auto;
  padding-bottom: 40px;
}

#settingPage .settings-view {
  display: none;
}

#settingPage .settings-view.active {
  display: block;
}

.settings-page-head {
  margin-bottom: 18px;
}

.settings-page-head h1,
.settings-detail-head h2 {
  margin: 2px 0 4px;
  color: #0f172a;
}

.settings-page-head p,
.settings-detail-head p {
  margin: 0;
  color: #64748b;
  line-height: 1.45;
}

.settings-group {
  margin-top: 20px;
}

.settings-group-head {
  margin: 0 2px 9px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.settings-group-head > span {
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-group-head > small {
  color: #94a3b8;
  font-size: 11px;
}

.settings-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#settingPage .settings-menu-card {
  width: 100%;
  min-height: 92px;
  margin: 0;
  padding: 14px 15px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 22px;
  gap: 13px;
  align-items: center;
  color: #172033;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.045);
  text-align: left;
  white-space: normal;
  transition: 150ms ease;
}

#settingPage .settings-menu-card:hover {
  color: #172033;
  background: #f8fbff;
  border-color: #bfdbfe;
  box-shadow: 0 9px 22px rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

.settings-menu-icon,
.settings-detail-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  font-size: 22px;
  line-height: 1;
}

.settings-menu-icon-text {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.settings-menu-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.settings-menu-copy strong {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.3;
}

.settings-menu-copy small {
  color: #64748b;
  font-size: 11px;
  line-height: 1.4;
}

.settings-menu-arrow {
  justify-self: end;
  color: #94a3b8;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

.settings-detail-view {
  max-width: 880px;
  margin: 0 auto;
}

.settings-detail-head {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 42px 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

#settingPage .settings-back-btn {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #334155;
  background: #ffffff;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  box-shadow: none;
  font-size: 21px;
}

#settingPage .settings-back-btn:hover {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.settings-detail-panel {
  margin: 0 !important;
  padding: 20px !important;
  border-radius: 17px !important;
}

.settings-detail-panel h3 {
  margin-top: 0;
}

.settings-detail-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.settings-detail-actions-wrap {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.settings-field-help {
  margin-top: 7px;
}

.settings-inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: end;
}

.settings-list-block {
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid #e2e8f0;
}

.settings-list-block h3 {
  margin: 0 0 10px;
  color: #334155;
  font-size: 14px;
}

.settings-security-head {
  margin-bottom: 14px;
}

.settings-form-intro {
  margin-bottom: 14px;
}

.settings-form-intro h3 {
  margin-bottom: 4px;
}

@media (min-width: 1100px) {
  .settings-menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  #settingPage.settings-page {
    padding: 2px 0 90px;
  }

  .settings-page-head {
    padding: 0 3px;
    margin-bottom: 15px;
  }

  .settings-page-head h1 {
    font-size: 22px;
  }

  .settings-page-head p {
    font-size: 12px;
  }

  .settings-group {
    margin-top: 18px;
  }

  .settings-group-head {
    margin: 0 5px 7px;
  }

  .settings-group-head > small {
    display: none;
  }

  .settings-menu-grid {
    display: block;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 17px;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.04);
  }

  #settingPage .settings-menu-card {
    min-height: 69px !important;
    padding: 10px 12px !important;
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    gap: 10px;
    background: #ffffff !important;
    border: 0 !important;
    border-bottom: 1px solid #edf2f7 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  #settingPage .settings-menu-card:last-child {
    border-bottom: 0 !important;
  }

  #settingPage .settings-menu-card:active {
    background: #f1f5f9 !important;
  }

  .settings-menu-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 19px;
  }

  .settings-menu-icon-text {
    font-size: 12px;
  }

  .settings-menu-copy strong {
    font-size: 14px;
  }

  .settings-menu-copy small {
    font-size: 10.5px;
  }

  .settings-menu-arrow {
    font-size: 24px;
  }

  .settings-detail-view {
    max-width: none;
  }

  .settings-detail-head {
    grid-template-columns: 40px 44px minmax(0, 1fr);
    gap: 9px;
    margin-bottom: 11px;
    padding: 0 2px;
  }

  #settingPage .settings-back-btn {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
  }

  .settings-detail-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 19px;
  }

  .settings-detail-head h2 {
    font-size: 17px;
  }

  .settings-detail-head p {
    font-size: 10.5px;
  }

  .settings-detail-head .section-eyebrow {
    display: none;
  }

  .settings-detail-panel {
    padding: 15px !important;
    border-radius: 15px !important;
  }

  .settings-detail-actions,
  .settings-detail-actions-wrap {
    display: grid;
    grid-template-columns: 1fr;
  }

  #settingPage .settings-detail-actions button,
  #settingPage .settings-inline-form button {
    width: 100% !important;
    min-height: 46px !important;
  }

  .settings-inline-form {
    grid-template-columns: 1fr;
  }

  #settingPage .staff-form-grid {
    grid-template-columns: 1fr !important;
  }

  #settingPage .security-pin-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  #settingPage .printer-setting-grid,
  #settingPage .direct-printer-grid {
    grid-template-columns: 1fr !important;
  }

  #settingPage .direct-printer-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px;
  }
}
/* === RESTO QR SETTINGS HUB END === */


/* === RESTO QR TOOLS MOBILE SPACING V2 === */
@media (max-width: 768px) {
  .cashier-tools-menu {
    max-height: min(86dvh, 700px) !important;
    padding: 10px 10px calc(14px + env(safe-area-inset-bottom)) !important;
  }

  .cashier-tools-sheet-head {
    padding: 16px 12px 14px !important;
    margin-bottom: 8px !important;
  }

  .cashier-tools-sheet-head strong {
    font-size: 18px !important;
    line-height: 1.25 !important;
  }

  .cashier-tools-sheet-head span {
    margin-top: 3px !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  .cashier-tools-section-label {
    padding: 14px 12px 9px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
  }

  .cashier-tools-divider {
    margin: 12px 8px !important;
  }

  #cashierPage .cashier-tool-item {
    min-height: 78px !important;
    margin: 0 0 8px !important;
    padding: 13px 13px !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    gap: 13px !important;
    align-items: center !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    background: #ffffff !important;
  }

  #cashierPage .cashier-tool-item:last-child {
    margin-bottom: 0 !important;
  }

  #cashierPage .cashier-tool-item:active {
    background: #eff6ff !important;
  }

  .cashier-tool-icon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
    font-size: 23px !important;
  }

  .cashier-tool-copy {
    gap: 5px !important;
  }

  .cashier-tool-copy strong {
    font-size: 15px !important;
    line-height: 1.3 !important;
  }

  .cashier-tool-copy small {
    display: block !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: #64748b !important;
  }

  #cashierPage .cashier-tools-close {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
  }
}
/* === END RESTO QR TOOLS MOBILE SPACING V2 === */


/* === RESTO QR TOOLS MOBILE ONE PAGE === */
@media (max-width: 768px) {
  html.cashier-tools-sheet-open,
  html.cashier-tools-sheet-open body {
    overflow: hidden !important;
  }

  .cashier-tools-wrap.open .cashier-tools-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 7900 !important;
    display: block !important;
    width: 100vw !important;
    height: 100dvh !important;
    background: rgba(15, 23, 42, 0.38) !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .cashier-tools-menu {
    position: fixed !important;
    inset: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom)) 8px !important;
    z-index: 8000 !important;
    width: auto !important;
    max-height: none !important;
    height: auto !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    padding: 0 !important;
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 24px !important;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28) !important;
  }

  .cashier-tools-sheet-head {
    position: sticky !important;
    top: 0 !important;
    z-index: 5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 20px 20px 16px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-radius: 24px 24px 0 0 !important;
    backdrop-filter: blur(8px) !important;
  }

  .cashier-tools-sheet-head > div {
    display: grid !important;
    gap: 4px !important;
  }

  .cashier-tools-sheet-head strong {
    font-size: 20px !important;
    line-height: 1.2 !important;
    color: #0f172a !important;
  }

  .cashier-tools-sheet-head span {
    font-size: 12px !important;
    line-height: 1.45 !important;
    color: #64748b !important;
  }

  #cashierPage .cashier-tools-close {
    flex: 0 0 42px !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    background: #f1f5f9 !important;
    border: 0 !important;
    border-radius: 13px !important;
    color: #475569 !important;
    font-size: 24px !important;
    line-height: 1 !important;
    box-shadow: none !important;
  }

  .cashier-tools-section-label {
    margin: 0 !important;
    padding: 18px 20px 8px !important;
    background: #ffffff !important;
    color: #94a3b8 !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }

  .cashier-tools-divider {
    height: 10px !important;
    margin: 4px 0 !important;
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }

  #cashierPage .cashier-tool-item {
    width: 100% !important;
    min-height: 82px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 14px 20px !important;
    display: grid !important;
    grid-template-columns: 50px minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: center !important;
    background: #ffffff !important;
    color: #172033 !important;
    border: 0 !important;
    border-bottom: 1px solid #eef2f7 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-align: left !important;
    overflow: visible !important;
  }

  #cashierPage .cashier-tool-item:hover,
  #cashierPage .cashier-tool-item:active {
    background: #f8fafc !important;
    color: #172033 !important;
    border-color: #eef2f7 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .cashier-tool-icon {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    display: grid !important;
    place-items: center !important;
    margin: 0 !important;
    background: #f1f5f9 !important;
    border: 0 !important;
    border-radius: 14px !important;
    font-size: 24px !important;
    line-height: 1 !important;
    overflow: hidden !important;
  }

  .cashier-tool-copy {
    min-width: 0 !important;
    display: grid !important;
    gap: 4px !important;
    align-content: center !important;
    overflow: visible !important;
  }

  .cashier-tool-copy strong {
    display: block !important;
    margin: 0 !important;
    color: #0f172a !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    white-space: normal !important;
    overflow: visible !important;
  }

  .cashier-tool-copy small {
    display: block !important;
    margin: 0 !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    white-space: normal !important;
    overflow: visible !important;
  }

  .cashier-tools-menu .cashier-tool-item:last-child {
    border-bottom: 0 !important;
    margin-bottom: 10px !important;
  }
}
/* === END RESTO QR TOOLS MOBILE ONE PAGE === */


/* === RESTO QR MOBILE 4 PRODUCT + TOOLS V3 === */
@media (max-width: 768px) {

  /* =========================================================
     KASIR PRODUK: 4 KOLOM PER BARIS
     ========================================================= */
  #cashierPage .product-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 7px !important;
    padding: 8px 2px 120px !important;
    overflow-x: hidden !important;
  }

  #cashierPage .product-card {
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 6px !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    overflow: hidden !important;
    border: 1px solid #edf2f7 !important;
    border-radius: 13px !important;
    background: #ffffff !important;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06) !important;
  }

  #cashierPage .product-card:hover {
    transform: none !important;
  }

  #cashierPage .product-image {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 6px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #f4f7fb !important;
  }

  #cashierPage .product-image img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
  }

  /* Chip kategori terlalu memenuhi kartu pada layout 4 kolom */
  #cashierPage .product-category {
    display: none !important;
  }

  #cashierPage .product-name {
    min-height: 31px !important;
    margin: 0 1px 4px !important;
    color: #0f172a !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    word-break: break-word !important;
  }

  #cashierPage .product-price {
    min-width: 0 !important;
    margin: auto 1px 6px !important;
    color: #1769e8 !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  #cashierPage .add-cart-btn {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 32px !important;
    min-height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: #1769e8 !important;
    color: #ffffff !important;
    box-shadow: none !important;
    font-size: 22px !important;
    line-height: 1 !important;
  }

  #cashierPage .add-cart-btn:active {
    transform: scale(0.97) !important;
  }


  /* =========================================================
     TOOLS HP: SATU HALAMAN, ITEM LEBIH LEGA
     ========================================================= */
  .cashier-tools-menu {
    inset:
      max(10px, env(safe-area-inset-top))
      10px
      max(10px, env(safe-area-inset-bottom))
      10px !important;
    max-height: none !important;
    height: auto !important;
    padding: 0 0 18px !important;
    overflow-y: auto !important;
    background: #ffffff !important;
    border-radius: 24px !important;
  }

  .cashier-tools-sheet-head {
    min-height: 104px !important;
    padding: 22px 20px 18px !important;
    margin: 0 !important;
  }

  .cashier-tools-section-label {
    padding: 22px 20px 12px !important;
    margin: 0 !important;
    font-size: 11px !important;
  }

  #cashierPage .cashier-tool-item {
    appearance: none !important;
    -webkit-appearance: none !important;

    width: 100% !important;
    height: auto !important;
    min-height: 100px !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 18px 20px !important;

    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr) !important;
    column-gap: 16px !important;
    row-gap: 0 !important;
    align-items: center !important;

    color: #172033 !important;
    background: #ffffff !important;

    border: 0 !important;
    border-bottom: 1px solid #e9eef5 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;

    text-align: left !important;
    overflow: visible !important;
  }

  #cashierPage .cashier-tool-item:hover,
  #cashierPage .cashier-tool-item:focus,
  #cashierPage .cashier-tool-item:active {
    height: auto !important;
    min-height: 100px !important;
    background: #f8fafc !important;
    border: 0 !important;
    border-bottom: 1px solid #e9eef5 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  #cashierPage .cashier-tool-icon {
    width: 54px !important;
    min-width: 54px !important;
    height: 54px !important;
    min-height: 54px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: grid !important;
    place-items: center !important;

    background: #f1f5f9 !important;
    border: 0 !important;
    border-radius: 15px !important;
    outline: 0 !important;

    font-size: 25px !important;
    line-height: 1 !important;
    overflow: hidden !important;
  }

  #cashierPage .cashier-tool-copy {
    min-width: 0 !important;
    min-height: 60px !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 7px !important;

    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  #cashierPage .cashier-tool-copy strong {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;

    color: #0f172a !important;
    font-size: 16px !important;
    line-height: 1.3 !important;
    font-weight: 800 !important;

    white-space: normal !important;
    overflow: visible !important;
  }

  #cashierPage .cashier-tool-copy small {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;

    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
    font-weight: 500 !important;

    white-space: normal !important;
    overflow: visible !important;
  }

  .cashier-tools-divider {
    height: 12px !important;
    margin: 0 !important;
    background: #f5f7fb !important;
    border-top: 1px solid #e5eaf1 !important;
    border-bottom: 1px solid #e5eaf1 !important;
  }

  #cashierPage .cashier-tools-menu .cashier-tool-item:last-child {
    margin: 0 !important;
    border-bottom: 0 !important;
  }
}

/* HP sangat sempit: tetap 4 kolom, sedikit dipadatkan */
@media (max-width: 380px) {
  #cashierPage .product-grid {
    gap: 5px !important;
  }

  #cashierPage .product-card {
    padding: 5px !important;
    border-radius: 11px !important;
  }

  #cashierPage .product-name {
    font-size: 10px !important;
  }

  #cashierPage .product-price {
    font-size: 11px !important;
  }

  #cashierPage .add-cart-btn {
    height: 30px !important;
    min-height: 30px !important;
  }
}
/* === END RESTO QR MOBILE 4 PRODUCT + TOOLS V3 === */


/* === RESTO QR TOOLS SAME AS SETTINGS === */

/* Desktop dropdown tetap compact, tapi struktur mengikuti Settings */
.cashier-tools-group {
  margin-top: 8px;
}

.cashier-tools-group:first-of-type {
  margin-top: 0;
}

.cashier-tools-list {
  overflow: hidden;
}

.cashier-tool-arrow {
  justify-self: end;
  color: #94a3b8;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
}

/* HP: sama dengan pola menu Pengaturan yang sudah PASS */
@media (max-width: 768px) {
  .cashier-tools-menu {
    inset:
      max(10px, env(safe-area-inset-top))
      10px
      max(10px, env(safe-area-inset-bottom))
      10px !important;
    width: auto !important;
    max-height: none !important;
    height: auto !important;
    padding: 0 14px calc(18px + env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
    background: #f8fafc !important;
    border-radius: 24px !important;
  }

  .cashier-tools-sheet-head {
    position: sticky !important;
    top: 0 !important;
    z-index: 5 !important;
    min-height: auto !important;
    margin: 0 -14px 0 !important;
    padding: 20px 18px 17px !important;
    background: rgba(255,255,255,.98) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-radius: 24px 24px 0 0 !important;
  }

  .cashier-tools-sheet-head strong {
    font-size: 20px !important;
    line-height: 1.2 !important;
  }

  .cashier-tools-sheet-head span {
    margin-top: 3px !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  .cashier-tools-group {
    margin-top: 18px !important;
  }

  .cashier-tools-section-label {
    margin: 0 5px 7px !important;
    padding: 0 !important;
    color: #334155 !important;
    background: transparent !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
  }

  .cashier-tools-list {
    display: block !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 17px !important;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.04) !important;
  }

  #cashierPage .cashier-tools-list .cashier-tool-item,
  #cashierPage .cashier-tools-list .cashier-tool-item:hover,
  #cashierPage .cashier-tools-list .cashier-tool-item:focus,
  #cashierPage .cashier-tools-list .cashier-tool-item:active {
    appearance: none !important;
    -webkit-appearance: none !important;

    width: 100% !important;
    min-height: 69px !important;
    height: auto !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 10px 12px !important;

    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) 18px !important;
    gap: 10px !important;
    align-items: center !important;

    color: #172033 !important;
    background: #ffffff !important;

    border: 0 !important;
    border-bottom: 1px solid #edf2f7 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;

    text-align: left !important;
    white-space: normal !important;
    overflow: visible !important;
    transform: none !important;
  }

  #cashierPage .cashier-tools-list .cashier-tool-item:last-child {
    border-bottom: 0 !important;
  }

  #cashierPage .cashier-tools-list .cashier-tool-item:active {
    background: #f1f5f9 !important;
  }

  #cashierPage .cashier-tools-list .cashier-tool-icon {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;

    display: grid !important;
    place-items: center !important;

    color: #1d4ed8 !important;
    background: #eff6ff !important;
    border: 1px solid #dbeafe !important;
    border-radius: 12px !important;

    font-size: 19px !important;
    line-height: 1 !important;
    overflow: hidden !important;
  }

  #cashierPage .cashier-tools-list .cashier-tool-copy {
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;

    display: grid !important;
    gap: 4px !important;
    align-content: center !important;
    overflow: visible !important;
  }

  #cashierPage .cashier-tools-list .cashier-tool-copy strong {
    margin: 0 !important;
    padding: 0 !important;
    color: #0f172a !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    font-weight: 800 !important;
    white-space: normal !important;
  }

  #cashierPage .cashier-tools-list .cashier-tool-copy small {
    margin: 0 !important;
    padding: 0 !important;
    color: #64748b !important;
    font-size: 10.5px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
    white-space: normal !important;
  }

  #cashierPage .cashier-tools-list .cashier-tool-arrow {
    display: block !important;
    justify-self: end !important;
    align-self: center !important;
    margin: 0 !important;
    color: #94a3b8 !important;
    font-size: 24px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
  }

  /* Divider versi lama tidak dipakai lagi */
  .cashier-tools-divider {
    display: none !important;
  }
}
/* === END RESTO QR TOOLS SAME AS SETTINGS === */


/* === RESTO QR MOBILE NAV DRAWER START === */

.mobile-global-nav,
.mobile-nav-overlay,
.mobile-nav-drawer {
  display: none;
}

@media (max-width: 768px) {
  html.mobile-nav-open,
  html.mobile-nav-open body {
    overflow: hidden !important;
  }

  /* Bottom navigation lama tidak dipakai lagi di HP */
  .sidebar {
    display: none !important;
  }

  body {
    padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important;
  }

  .mobile-global-nav {
    position: sticky;
    top: 0;
    z-index: 7200;
    width: 100%;
    min-height: 64px;
    padding:
      calc(9px + env(safe-area-inset-top))
      14px
      9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(12px);
  }

  .mobile-global-nav-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .mobile-global-nav-copy strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-global-nav-copy span {
    overflow: hidden;
    color: #64748b;
    font-size: 11px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-global-nav-trigger {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px !important;
    height: 44px;
    min-height: 44px !important;
    padding: 0 !important;

    display: grid;
    place-content: center;
    gap: 4px;

    background: #eff6ff !important;
    border: 1px solid #dbeafe !important;
    border-radius: 13px !important;
    box-shadow: none !important;
  }

  .mobile-global-nav-trigger span {
    width: 18px;
    height: 2px;
    display: block;
    background: #1d4ed8;
    border-radius: 999px;
  }

  .mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 8700;

    width: 100vw;
    height: 100dvh;
    padding: 0 !important;

    background: rgba(15, 23, 42, 0.42) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
      opacity 180ms ease,
      visibility 180ms ease;
  }

  html.mobile-nav-open .mobile-nav-overlay {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 8800;

    width: min(88vw, 370px);
    height: 100dvh;

    display: flex;
    flex-direction: column;

    color: #172033;
    background: #f8fafc;
    border-left: 1px solid #e2e8f0;
    box-shadow: -22px 0 55px rgba(15, 23, 42, 0.22);

    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;

    transition:
      transform 210ms ease,
      visibility 210ms ease;
  }

  html.mobile-nav-open .mobile-nav-drawer {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-nav-drawer-head {
    flex: 0 0 auto;
    min-height: 82px;
    padding:
      calc(14px + env(safe-area-inset-top))
      14px
      14px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
  }

  .mobile-nav-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
  }

  .mobile-nav-logo {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    color: #ffffff;
    background: #2563eb;
    border-radius: 13px;

    font-size: 14px;
    font-weight: 900;
    letter-spacing: -0.02em;
  }

  .mobile-nav-brand > div:last-child {
    min-width: 0;
    display: grid;
    gap: 3px;
  }

  .mobile-nav-brand strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-nav-brand span {
    overflow: hidden;
    color: #64748b;
    font-size: 11px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-nav-close {
    flex: 0 0 40px;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;

    display: grid;
    place-items: center;

    color: #475569 !important;
    background: #f1f5f9 !important;
    border: 0 !important;
    border-radius: 12px !important;

    font-size: 23px !important;
    line-height: 1 !important;
    box-shadow: none !important;
  }

  .mobile-nav-scroll {
    flex: 1 1 auto;
    min-height: 0;
    padding:
      6px
      12px
      calc(18px + env(safe-area-inset-bottom));

    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .mobile-nav-section {
    margin-top: 18px;
  }

  .mobile-nav-section-label {
    margin: 0 6px 7px;
    color: #64748b;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .mobile-nav-list {
    overflow: hidden;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 17px;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.04);
  }

  .mobile-nav-list > button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 70px !important;
    height: auto !important;

    margin: 0 !important;
    padding: 10px 12px !important;

    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) 18px !important;
    gap: 10px !important;
    align-items: center !important;

    color: #172033 !important;
    background: #ffffff !important;

    border: 0 !important;
    border-bottom: 1px solid #edf2f7 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    text-align: left !important;
    white-space: normal !important;
  }

  .mobile-nav-list > button:last-child {
    border-bottom: 0 !important;
  }

  .mobile-nav-list > button:active {
    background: #f1f5f9 !important;
  }

  .mobile-nav-list > button.active {
    background: #eff6ff !important;
  }

  .mobile-nav-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;

    font-size: 19px;
    line-height: 1;
  }

  .mobile-nav-list > button.active .mobile-nav-icon {
    background: #dbeafe;
    border-color: #bfdbfe;
  }

  .mobile-nav-text {
    min-width: 0;
    display: grid;
    gap: 3px;
  }

  .mobile-nav-text strong {
    color: #0f172a;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 850;
  }

  .mobile-nav-text small {
    color: #64748b;
    font-size: 10.5px;
    line-height: 1.4;
    font-weight: 400;
  }

  .mobile-nav-arrow {
    justify-self: end;
    color: #94a3b8;
    font-size: 24px;
    line-height: 1;
    font-weight: 300;
  }

  .mobile-nav-logout strong {
    color: #b91c1c !important;
  }

  .mobile-nav-logout .mobile-nav-icon {
    background: #fef2f2;
    border-color: #fee2e2;
  }

  /* Karena bottom nav lama hilang, checkout bar bisa turun */
  .mobile-cashier-bar {
    bottom: calc(8px + env(safe-area-inset-bottom)) !important;
  }

  #cashierPage .cashier-left {
    margin-bottom: 92px !important;
  }
}

/* Desktop: semua mobile navigator tetap tidak terlihat */
@media (min-width: 769px) {
  .mobile-global-nav,
  .mobile-nav-overlay,
  .mobile-nav-drawer {
    display: none !important;
  }
}

/* === RESTO QR MOBILE NAV DRAWER END === */


/* === RESTO QR OWNER DASHBOARD START === */

.owner-dashboard-page {
  --od-blue: #2563eb;
  --od-blue-soft: #eff6ff;
  --od-emerald: #059669;
  --od-emerald-soft: #ecfdf5;
  --od-violet: #7c3aed;
  --od-violet-soft: #f5f3ff;
  --od-amber: #d97706;
  --od-amber-soft: #fffbeb;
  --od-border: #e7edf5;
  --od-muted: #64748b;
  --od-ink: #0f172a;

  max-width: 1500px;
  margin: 0 auto;
  padding-bottom: 36px;
}

.owner-dashboard-hero {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.owner-dashboard-eyebrow,
.owner-card-kicker {
  margin-bottom: 5px;
  color: #94a3b8;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.owner-dashboard-hero h1 {
  margin: 0;
  color: var(--od-ink);
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.owner-dashboard-hero p {
  margin: 7px 0 0;
  color: var(--od-muted);
  font-size: 13px;
}

.owner-dashboard-date-chip {
  min-width: 166px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 10px;

  background: #ffffff;
  border: 1px solid var(--od-border);
  border-radius: 15px;
  box-shadow: 0 7px 20px rgba(15, 23, 42, 0.04);
}

.owner-dashboard-date-dot {
  width: 9px;
  height: 9px;
  background: #10b981;
  border: 3px solid #d1fae5;
  border-radius: 50%;
  box-sizing: content-box;
}

.owner-dashboard-date-chip > div {
  display: grid;
  gap: 2px;
}

.owner-dashboard-date-chip strong {
  color: var(--od-ink);
  font-size: 12px;
}

.owner-dashboard-date-chip small {
  color: var(--od-muted);
  font-size: 10px;
}

.owner-kpi-grid {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.owner-kpi-card {
  position: relative;
  min-height: 154px;
  padding: 16px;
  overflow: hidden;

  background: #ffffff;
  border: 1px solid var(--od-border);
  border-radius: 19px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.045);
}

.owner-kpi-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -38px;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  opacity: 0.48;
  pointer-events: none;
}

.owner-kpi-card.sales::after {
  background: #dbeafe;
}

.owner-kpi-card.profit::after {
  background: #d1fae5;
}

.owner-kpi-card.transactions::after {
  background: #ede9fe;
}

.owner-kpi-card.average::after {
  background: #fef3c7;
}

.owner-kpi-top {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.owner-kpi-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;

  border-radius: 10px;

  font-size: 16px;
  font-weight: 900;
}

.owner-kpi-card.sales .owner-kpi-icon {
  color: var(--od-blue);
  background: var(--od-blue-soft);
}

.owner-kpi-card.profit .owner-kpi-icon {
  color: var(--od-emerald);
  background: var(--od-emerald-soft);
}

.owner-kpi-card.transactions .owner-kpi-icon {
  color: var(--od-violet);
  background: var(--od-violet-soft);
}

.owner-kpi-card.average .owner-kpi-icon {
  color: var(--od-amber);
  background: var(--od-amber-soft);
}

.owner-kpi-trend {
  max-width: 132px;
  padding: 5px 7px;
  overflow: hidden;

  border-radius: 999px;

  font-size: 9px;
  line-height: 1.2;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-kpi-trend.up {
  color: #047857;
  background: #ecfdf5;
}

.owner-kpi-trend.down {
  color: #b91c1c;
  background: #fef2f2;
}

.owner-kpi-trend.neutral {
  color: #64748b;
  background: #f1f5f9;
}

.owner-kpi-label {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--od-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.owner-kpi-card > strong {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  display: block;

  color: var(--od-ink);
  font-size: clamp(21px, 2.3vw, 30px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.owner-kpi-card > small {
  position: relative;
  z-index: 1;
  margin-top: 7px;
  display: block;

  color: var(--od-muted);
  font-size: 9.5px;
  line-height: 1.35;
}

.owner-dashboard-card {
  padding: 18px;

  background: #ffffff;
  border: 1px solid var(--od-border);
  border-radius: 19px;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.04);
}

.owner-sales-chart-card {
  margin-bottom: 14px;
}

.owner-card-heading {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.owner-card-heading h2 {
  margin: 0;
  color: var(--od-ink);
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.owner-card-heading p {
  margin: 4px 0 0;
  color: var(--od-muted);
  font-size: 10.5px;
  line-height: 1.45;
}

.owner-chart-total {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 2px;
}

.owner-chart-total span {
  color: var(--od-muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.owner-chart-total strong {
  color: var(--od-blue);
  font-size: 17px;
  letter-spacing: -0.02em;
}

.owner-hourly-chart {
  min-height: 235px;
  padding: 16px 8px 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 9px;
  align-items: end;

  background:
    linear-gradient(to bottom, rgba(226,232,240,.55) 1px, transparent 1px);
  background-size: 100% 25%;
  border-radius: 14px;
}

.owner-hour-bar-wrap {
  height: 205px;
  min-width: 0;
  display: grid;
  grid-template-rows: 27px 1fr 20px;
  align-items: end;
  justify-items: stretch;
  gap: 4px;
}

.owner-hour-value {
  overflow: hidden;
  color: #64748b;
  font-size: 8px;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-hour-track {
  position: relative;
  height: 150px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.owner-hour-bar {
  width: min(62%, 44px);
  min-height: 4px;

  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 9px 9px 4px 4px;
  box-shadow: 0 7px 15px rgba(37, 99, 235, 0.16);
}

.owner-hour-bar-wrap > span {
  color: #94a3b8;
  font-size: 8.5px;
  font-weight: 700;
  text-align: center;
}

.owner-dashboard-two-col {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 14px;
}

.owner-dashboard-list {
  display: grid;
}

.owner-list-row {
  min-height: 64px;
  padding: 9px 2px;

  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;

  color: var(--od-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #edf2f7;
  border-radius: 0;
  box-shadow: none;
  text-align: left;
}

button.owner-list-row {
  width: 100%;
  cursor: pointer;
}

.owner-list-row:last-child {
  border-bottom: 0;
}

button.owner-list-row:hover {
  background: #f8fafc;
}

.owner-kitchen-row {
  grid-template-columns: 34px minmax(0, 1fr) auto 16px;
}

.owner-list-rank {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;

  color: #475569;
  background: #f1f5f9;
  border-radius: 10px;

  font-size: 11px;
  font-weight: 900;
}

.owner-list-rank.kitchen {
  color: #2563eb;
  background: #eff6ff;
  font-size: 17px;
}

.owner-list-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.owner-list-main strong {
  overflow: hidden;
  color: var(--od-ink);
  font-size: 11.5px;
  line-height: 1.3;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-list-main small {
  color: var(--od-muted);
  font-size: 9px;
  line-height: 1.35;
}

.owner-list-value {
  min-width: 84px;
  display: grid;
  justify-items: end;
  gap: 2px;
}

.owner-list-value strong {
  color: var(--od-ink);
  font-size: 11px;
  white-space: nowrap;
}

.owner-list-value small {
  color: #94a3b8;
  font-size: 8.5px;
}

.owner-list-arrow {
  color: #94a3b8;
  font-size: 21px;
  line-height: 1;
}

.owner-mini-progress {
  width: min(180px, 100%);
  height: 3px;
  margin-top: 3px;
  overflow: hidden;

  background: #edf2f7;
  border-radius: 999px;
}

.owner-mini-progress i {
  height: 100%;
  display: block;

  background: linear-gradient(90deg, #60a5fa, #2563eb);
  border-radius: inherit;
}

.owner-text-link {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 6px 9px;

  color: #2563eb;
  background: #eff6ff;
  border: 0;
  border-radius: 9px;

  font-size: 9px;
  font-weight: 800;
}

.owner-payment-mix {
  display: grid;
  gap: 17px;
}

.owner-payment-row {
  display: grid;
  gap: 7px;
}

.owner-payment-label {
  display: grid;
  grid-template-columns: 9px 1fr auto;
  gap: 7px;
  align-items: center;
}

.owner-payment-label strong {
  color: var(--od-ink);
  font-size: 11px;
}

.owner-payment-label span:last-child {
  color: var(--od-muted);
  font-size: 9px;
  font-weight: 800;
}

.owner-payment-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.owner-payment-dot.cash {
  background: #2563eb;
}

.owner-payment-dot.qris {
  background: #059669;
}

.owner-payment-dot.multi {
  background: #7c3aed;
}

.owner-payment-amount {
  color: var(--od-muted);
  font-size: 10px;
}

.owner-payment-track {
  height: 7px;
  overflow: hidden;

  background: #eef2f7;
  border-radius: 999px;
}

.owner-payment-track i {
  height: 100%;
  display: block;
  border-radius: inherit;
}

.owner-payment-track i.cash {
  background: #2563eb;
}

.owner-payment-track i.qris {
  background: #059669;
}

.owner-payment-track i.multi {
  background: #7c3aed;
}

.owner-profit-card {
  position: relative;
  overflow: hidden;
}

.owner-profit-card::after {
  content: "";
  position: absolute;
  top: -55px;
  right: -55px;
  width: 150px;
  height: 150px;

  background: radial-gradient(circle, rgba(16,185,129,.12), transparent 68%);
  border-radius: 50%;
  pointer-events: none;
}

.owner-profit-summary {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.owner-profit-summary > div:not(.owner-profit-divider) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.owner-profit-summary span {
  color: var(--od-muted);
  font-size: 10px;
}

.owner-profit-summary strong {
  color: var(--od-ink);
  font-size: 11.5px;
}

.owner-profit-divider {
  height: 1px;
  background: #e7edf5;
}

.owner-profit-highlight {
  padding: 11px 12px;
  margin: 2px -4px;

  background: #ecfdf5;
  border-radius: 12px;
}

.owner-profit-highlight span,
.owner-profit-highlight strong {
  color: #047857;
}

.owner-profit-highlight strong {
  font-size: 16px;
}

.owner-report-button {
  position: relative;
  z-index: 1;

  width: 100%;
  min-height: 38px;
  margin-top: 15px;
  padding: 8px 12px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  color: #047857;
  background: #ecfdf5;
  border: 0;
  border-radius: 11px;

  font-size: 10px;
  font-weight: 900;
}

.owner-report-button span {
  font-size: 20px;
  line-height: 1;
}

.owner-attention-card {
  margin-bottom: 12px;
}

.owner-attention-list {
  display: grid;
  gap: 8px;
}

.owner-attention-item {
  min-height: 58px;
  padding: 10px 12px;

  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;

  border-radius: 12px;
}

.owner-attention-item.warning {
  background: #fffbeb;
}

.owner-attention-item.info {
  background: #eff6ff;
}

.owner-attention-item.success {
  background: #ecfdf5;
}

.owner-attention-item.neutral {
  background: #f8fafc;
}

.owner-attention-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;

  background: rgba(255,255,255,.72);
  border-radius: 9px;

  font-size: 12px;
  font-weight: 900;
}

.owner-attention-item > span:last-child {
  display: grid;
  gap: 3px;
}

.owner-attention-item strong {
  color: var(--od-ink);
  font-size: 10.5px;
}

.owner-attention-item small {
  color: var(--od-muted);
  font-size: 9px;
  line-height: 1.4;
}

.owner-dashboard-empty {
  min-height: 145px;
  padding: 22px;

  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;

  color: var(--od-muted);
  text-align: center;
}

.owner-dashboard-empty > span {
  font-size: 24px;
}

.owner-dashboard-empty strong {
  color: #334155;
  font-size: 11px;
}

.owner-dashboard-empty small {
  max-width: 300px;
  font-size: 9px;
  line-height: 1.4;
}

.owner-dashboard-empty.chart-empty {
  grid-column: 1 / -1;
  min-height: 195px;
}

/* Tablet */
@media (max-width: 1100px) {
  .owner-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .owner-dashboard-two-col {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .owner-dashboard-page {
    padding: 12px 12px 28px !important;
  }

  .owner-dashboard-hero {
    margin-bottom: 12px;
    align-items: center;
  }

  .owner-dashboard-eyebrow,
  .owner-dashboard-hero h1 {
    display: none;
  }

  .owner-dashboard-hero p {
    margin: 0;
    font-size: 11px;
    line-height: 1.35;
  }

  .owner-dashboard-date-chip {
    min-width: 0;
    padding: 7px 9px;
    gap: 7px;
    border-radius: 11px;
  }

  .owner-dashboard-date-chip strong {
    font-size: 10px;
  }

  .owner-dashboard-date-chip small {
    font-size: 8px;
  }

  .owner-dashboard-date-dot {
    width: 6px;
    height: 6px;
    border-width: 2px;
  }

  .owner-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
  }

  .owner-kpi-card {
    min-height: 132px;
    padding: 12px;
    border-radius: 15px;
  }

  .owner-kpi-top {
    margin-bottom: 11px;
  }

  .owner-kpi-icon {
    width: 27px;
    height: 27px;
    border-radius: 8px;
    font-size: 14px;
  }

  .owner-kpi-trend {
    max-width: 86px;
    padding: 4px 6px;
    font-size: 7.5px;
  }

  .owner-kpi-label {
    font-size: 8px;
  }

  .owner-kpi-card > strong {
    margin-top: 5px;
    font-size: clamp(17px, 5.2vw, 22px);
  }

  .owner-kpi-card > small {
    margin-top: 5px;
    font-size: 8px;
  }

  .owner-dashboard-card {
    padding: 14px;
    border-radius: 16px;
  }

  .owner-sales-chart-card,
  .owner-dashboard-two-col {
    margin-bottom: 10px;
  }

  .owner-card-heading {
    margin-bottom: 12px;
  }

  .owner-card-heading h2 {
    font-size: 15px;
  }

  .owner-card-heading p {
    font-size: 9px;
  }

  .owner-card-kicker {
    font-size: 8px;
  }

  .owner-chart-total strong {
    font-size: 14px;
  }

  .owner-hourly-chart {
    min-height: 190px;
    padding: 10px 0 0;
    gap: 5px;
  }

  .owner-hour-bar-wrap {
    height: 165px;
    grid-template-rows: 22px 1fr 17px;
  }

  .owner-hour-track {
    height: 118px;
  }

  .owner-hour-value {
    font-size: 6.5px;
  }

  .owner-hour-bar-wrap > span {
    font-size: 7px;
  }

  .owner-dashboard-two-col {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .owner-list-row {
    min-height: 60px;
  }

  .owner-list-main strong {
    font-size: 11px;
  }

  .owner-list-main small {
    font-size: 8.5px;
  }

  .owner-list-value {
    min-width: 77px;
  }

  .owner-list-value strong {
    font-size: 10px;
  }

  .owner-payment-mix {
    gap: 14px;
  }

  .owner-attention-card {
    margin-bottom: 80px;
  }
}

@media (max-width: 390px) {
  .owner-dashboard-page {
    padding-left: 9px !important;
    padding-right: 9px !important;
  }

  .owner-kpi-grid {
    gap: 6px;
  }

  .owner-kpi-card {
    padding: 10px;
  }

  .owner-kpi-trend {
    max-width: 72px;
  }
}

/* === RESTO QR OWNER DASHBOARD END === */


/* === RESTO QR CASHIER MOBILE FINAL START === */

@media (max-width: 768px) {

  /* ---------------------------------------------------------
     PAGE & HEADER
     Global mobile navigation already shows "Kasir Resto".
     Remove duplicate title/subtitle/shift inside cashier card.
     --------------------------------------------------------- */
  #cashierPage {
    margin: -16px !important;
    padding: 10px !important;
    background: #f5f7fb !important;
  }

  #cashierPage .kasir-page-header {
    min-height: 0 !important;
    margin: 0 0 9px !important;
    padding: 7px !important;

    background: #ffffff !important;
    border: 1px solid #e5eaf2 !important;
    border-radius: 15px !important;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.035) !important;
  }

  #cashierPage .kasir-page-header > div:first-child {
    display: none !important;
  }

  #cashierPage .kasir-header-actions {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;

    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;

    overflow: visible !important;
  }

  /* Shift is moved visually into the global header subtitle */
  #cashierPage #shiftStatusBadge {
    display: none !important;
  }

  #cashierPage .kasir-header-actions > #productTabBtn,
  #cashierPage .kasir-header-actions > #tableTabBtn,
  #cashierPage .kasir-header-actions > .cashier-tools-wrap {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  #cashierPage .cashier-tools-wrap {
    position: relative !important;
  }

  #cashierPage #productTabBtn,
  #cashierPage #tableTabBtn,
  #cashierPage #cashierToolsBtn {
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 8px 6px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 11px !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
  }

  #cashierPage #productTabBtn.active,
  #cashierPage #tableTabBtn.active {
    box-shadow: 0 5px 13px rgba(37, 99, 235, 0.16) !important;
  }

  /* ---------------------------------------------------------
     PRODUCT AREA
     --------------------------------------------------------- */
  #cashierPage .cashier-layout {
    display: block !important;
  }

  #cashierPage .panel.cashier-left {
    min-height: 0 !important;
    margin-bottom: 80px !important;
    padding: 9px !important;

    border: 1px solid #e5eaf2 !important;
    border-radius: 16px !important;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.035) !important;
  }

  #cashierPage #productSearch,
  #cashierPage #tableSearch {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 0 8px !important;
    padding: 9px 12px !important;

    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;

    font-size: 12px !important;
  }

  #cashierPage #productSearch:focus,
  #cashierPage #tableSearch:focus {
    background: #ffffff !important;
    border-color: #93c5fd !important;
  }

  #cashierPage .category-filter {
    width: 100% !important;
    margin: 0 0 9px !important;
    padding: 0 0 2px !important;

    display: flex !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;
    background: transparent !important;

    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #cashierPage .category-filter::-webkit-scrollbar {
    display: none !important;
  }

  #cashierPage .category-btn {
    flex: 0 0 auto !important;
    min-height: 37px !important;
    height: 37px !important;
    margin: 0 !important;
    padding: 7px 11px !important;

    border-radius: 999px !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
  }

  /* 3 columns is the mobile POS sweet spot */
  #cashierPage .product-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
    padding: 2px 0 16px !important;

    overflow: visible !important;
  }

  #cashierPage .product-card {
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 6px !important;

    display: flex !important;
    flex-direction: column !important;

    background: #ffffff !important;
    border: 1px solid #e8edf4 !important;
    border-radius: 13px !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;

    overflow: hidden !important;
    transform: none !important;
  }

  #cashierPage .product-card:active {
    transform: scale(0.985) !important;
  }

  #cashierPage .product-image {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1.08 / 1 !important;
    margin: 0 0 6px !important;

    overflow: hidden !important;
    background: #f4f7fb !important;
    border-radius: 9px !important;
  }

  #cashierPage .product-image img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
  }

  #cashierPage .product-image span {
    font-size: 25px !important;
  }

  /* Category already exists in horizontal filters; don't repeat it on card */
  #cashierPage .product-category {
    display: none !important;
  }

  #cashierPage .product-name {
    min-height: 32px !important;
    max-height: 32px !important;
    margin: 0 1px 4px !important;

    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;

    color: #111827 !important;
    font-size: 11px !important;
    line-height: 1.42 !important;
    font-weight: 850 !important;

    overflow: hidden !important;
    word-break: break-word !important;
  }

  /* Price is a critical POS datum: never ellipsis it */
  #cashierPage .product-price {
    width: 100% !important;
    min-width: 0 !important;
    margin: auto 1px 6px !important;
    padding: 0 !important;

    color: #1769e8 !important;
    font-size: clamp(11px, 3.2vw, 14px) !important;
    line-height: 1.25 !important;
    font-weight: 950 !important;
    letter-spacing: -0.015em !important;

    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  /* Default + button */
  #cashierPage .add-cart-btn {
    position: static !important;
    inset: auto !important;

    width: 100% !important;
    min-width: 0 !important;
    height: 35px !important;
    min-height: 35px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: grid !important;
    place-items: center !important;

    color: #ffffff !important;
    background: #2563eb !important;
    border: 0 !important;
    border-radius: 9px !important;
    box-shadow: none !important;

    font-size: 22px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
  }

  #cashierPage .add-cart-btn:active {
    background: #1d4ed8 !important;
    transform: scale(0.97) !important;
  }

  /* Product already in cart: - qty + */
  #cashierPage .product-qty-control {
    width: 100% !important;
    min-height: 35px !important;
    height: 35px !important;

    display: grid !important;
    grid-template-columns: 34px minmax(24px, 1fr) 34px !important;
    align-items: center !important;

    overflow: hidden !important;
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 9px !important;
  }

  #cashierPage .product-qty-btn {
    width: 34px !important;
    min-width: 34px !important;
    height: 35px !important;
    min-height: 35px !important;
    margin: 0 !important;
    padding: 0 !important;

    display: grid !important;
    place-items: center !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    color: #1d4ed8 !important;
    font-size: 19px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
  }

  #cashierPage .product-qty-btn:active {
    background: #dbeafe !important;
  }

  #cashierPage .product-qty-number {
    min-width: 0 !important;
    color: #0f172a !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    text-align: center !important;
  }

  /* ---------------------------------------------------------
     COMPACT PREMIUM CART BAR
     --------------------------------------------------------- */
  #cashierPage .mobile-cashier-bar {
    left: 8px !important;
    right: 8px !important;
    bottom: calc(8px + env(safe-area-inset-bottom)) !important;

    min-height: 62px !important;
    height: auto !important;
    padding: 8px 8px 8px 13px !important;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: center !important;

    background: #0f1b33 !important;
    border: 1px solid rgba(255,255,255,.07) !important;
    border-radius: 18px !important;
    box-shadow: 0 14px 32px rgba(15, 27, 51, 0.26) !important;
  }

  #cashierPage .mobile-cashier-bar-info {
    min-width: 0 !important;
    display: grid !important;
    gap: 1px !important;
  }

  #cashierPage .mobile-cashier-bar-info span {
    overflow: hidden !important;
    color: #a9b6cc !important;
    font-size: 9.5px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  #cashierPage .mobile-cashier-bar-info strong {
    color: #ffffff !important;
    font-size: 19px !important;
    line-height: 1.12 !important;
    font-weight: 950 !important;
    letter-spacing: -0.025em !important;
  }

  #cashierPage .mobile-cashier-bar button {
    width: auto !important;
    min-width: 100px !important;
    min-height: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 8px 13px !important;

    color: #ffffff !important;
    background: #2563eb !important;
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 13px rgba(37, 99, 235, 0.23) !important;

    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
  }

  #cashierPage .mobile-cashier-bar button:active {
    background: #1d4ed8 !important;
    transform: scale(0.98) !important;
  }

  /* Bottom navigation is gone, so payment sheet should use the real bottom */
  #cashierPage .cashier-right {
    bottom: 0 !important;
  }

  #cashierPage .mobile-cashier-overlay {
    inset: 0 !important;
  }
}

/* Very narrow phones: still keep 3 columns, just tighten typography */
@media (max-width: 370px) {
  #cashierPage {
    padding: 8px !important;
  }

  #cashierPage .product-grid {
    gap: 5px !important;
  }

  #cashierPage .product-card {
    padding: 5px !important;
  }

  #cashierPage .product-name {
    font-size: 10px !important;
  }

  #cashierPage .product-price {
    font-size: 11px !important;
  }

  #cashierPage #productTabBtn,
  #cashierPage #tableTabBtn,
  #cashierPage #cashierToolsBtn {
    font-size: 10px !important;
  }
}

/* Tablet / large mobile: 4 columns are comfortable here */
@media (min-width: 769px) and (max-width: 1024px) {
  #cashierPage .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* === RESTO QR CASHIER MOBILE FINAL END === */


/* === RESTO QR MOBILE CHECKOUT FINAL START === */

@media (max-width: 768px) {

  /* Checkout sheet */
  #cashierPage .cashier-right {
    left: 8px !important;
    right: 8px !important;
    bottom: 8px !important;
    width: auto !important;
    height: min(91dvh, 860px) !important;
    max-height: min(91dvh, 860px) !important;
    padding:
      10px
      12px
      calc(10px + env(safe-area-inset-bottom)) !important;

    background: #ffffff !important;
    border: 1px solid #e5eaf2 !important;
    border-radius: 24px !important;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28) !important;
  }

  #cashierPage.mobile-payment-open .cashier-right {
    transform: translateY(0) !important;
  }

  #cashierPage .mobile-cashier-overlay {
    inset: 0 !important;
    background: rgba(15, 23, 42, 0.5) !important;
    backdrop-filter: blur(2px);
  }

  .mobile-payment-close {
    top: -1px !important;
    min-height: 48px !important;
    height: 48px !important;
    margin: 0 0 9px !important;
    padding: 0 12px !important;

    color: #1e293b !important;
    background: rgba(255,255,255,.98) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;

    font-size: 13px !important;
    font-weight: 900 !important;
    backdrop-filter: blur(10px);
  }

  .mobile-payment-close span:last-child {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;

    background: #f1f5f9;
    border-radius: 9px;

    font-size: 18px !important;
  }

  /* Mode Produk is redundant in normal mobile checkout */
  #cashierPage .payment-mode.mobile-hide-product-mode {
    display: none !important;
  }

  #cashierPage .payment-mode {
    width: fit-content;
    margin: 2px 0 10px !important;
    padding: 5px 8px !important;

    color: #475569 !important;
    background: #f1f5f9 !important;
    border-radius: 999px !important;

    font-size: 9px !important;
    font-weight: 800 !important;
  }

  /* Order type summary */
  #cashierPage .mobile-order-summary-toggle {
    width: 100% !important;
    min-height: 62px !important;
    margin: 1px 0 10px !important;
    padding: 9px 10px !important;

    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) auto 16px !important;
    gap: 9px !important;
    align-items: center !important;

    color: #172033 !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: none !important;

    text-align: left !important;
  }

  .mobile-order-summary-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;

    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 11px;

    font-size: 18px;
  }

  .mobile-order-summary-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
  }

  .mobile-order-summary-copy strong {
    color: #0f172a;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 900;
  }

  .mobile-order-summary-copy small {
    overflow: hidden;
    color: #64748b;
    font-size: 9px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-order-summary-action {
    color: #2563eb;
    font-size: 9px;
    font-weight: 900;
  }

  .mobile-order-summary-arrow {
    color: #94a3b8;
    font-size: 21px;
    line-height: 1;
  }

  /* Collapse secondary order fields by default */
  #cashierPage #productPaymentArea:not(.mobile-order-details-open)
    .mobile-order-detail-field {
    display: none !important;
  }

  #cashierPage #productPaymentArea.mobile-order-details-open
    .mobile-order-detail-field {
    display: block !important;
  }

  #cashierPage #productPaymentArea.mobile-order-details-open
    label.mobile-order-detail-field {
    margin: 7px 0 5px !important;
  }

  #cashierPage #productPaymentArea.mobile-order-details-open
    #orderType,
  #cashierPage #productPaymentArea.mobile-order-details-open
    #cashierTableNumber,
  #cashierPage #productPaymentArea.mobile-order-details-open
    #cashierNote {
    width: 100% !important;
    margin: 0 0 7px !important;
  }

  #cashierPage #cashierNote {
    min-height: 72px !important;
    height: 72px !important;
  }

  /* Items */
  #cashierPage #cartItems {
    margin-top: 2px !important;
  }

  #cashierPage .cart-item {
    min-height: 65px !important;
    margin: 0 !important;
    padding: 10px 0 !important;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: center !important;

    border: 0 !important;
    border-bottom: 1px solid #edf2f7 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  #cashierPage .cart-item:last-child {
    border-bottom: 0 !important;
  }

  #cashierPage .cart-item-info {
    min-width: 0 !important;
  }

  #cashierPage .cart-item-info h4 {
    margin: 0 0 4px !important;

    color: #0f172a !important;
    font-size: 11.5px !important;
    line-height: 1.3 !important;
    font-weight: 900 !important;
  }

  #cashierPage .cart-item-info p,
  #cashierPage .cart-item-info small {
    margin: 0 !important;

    color: #64748b !important;
    font-size: 8.5px !important;
    line-height: 1.4 !important;
  }

  #cashierPage .cart-item-right {
    min-width: 100px !important;
    display: grid !important;
    justify-items: end !important;
    gap: 7px !important;
  }

  #cashierPage .cart-item-right > strong {
    color: #0f172a !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
  }

  #cashierPage .qty-box {
    display: grid !important;
    grid-template-columns: 30px 24px 30px 30px !important;
    gap: 4px !important;
    align-items: center !important;
  }

  #cashierPage .qty-box b {
    min-width: 24px !important;
    font-size: 10px !important;
    text-align: center !important;
  }

  #cashierPage .qty-btn {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;

    display: grid !important;
    place-items: center !important;

    color: #334155 !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;

    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 850 !important;
  }

  #cashierPage .qty-btn.edit-item-btn {
    color: #2563eb !important;
    background: #eff6ff !important;
    border-color: #dbeafe !important;
    font-size: 14px !important;
  }

  /* Old duplicate actions already exist in Tools */
  #cashierPage #productPaymentArea > .cashier-pro-actions {
    display: none !important;
  }

  /* Pricing summary */
  #cashierPage .receipt-summary-section {
    margin-top: 7px !important;
    padding-top: 10px !important;
    border-top: 8px solid #f8fafc !important;
  }

  #cashierPage .pricing-summary {
    margin: 0 !important;
    padding: 0 !important;

    display: grid !important;
    gap: 7px !important;

    background: transparent !important;
    border: 0 !important;
  }

  #cashierPage .pricing-summary > div {
    min-height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px !important;

    color: #64748b !important;
    border: 0 !important;
  }

  #cashierPage .pricing-summary span {
    font-size: 9.5px !important;
  }

  #cashierPage .pricing-summary strong {
    color: #334155 !important;
    font-size: 10px !important;
    font-weight: 850 !important;
  }

  /* Collapsible discount */
  #cashierPage .mobile-discount-toggle {
    width: 100% !important;
    min-height: 48px !important;
    margin: 8px 0 0 !important;
    padding: 7px 8px !important;

    display: grid !important;
    grid-template-columns: 32px minmax(0, 1fr) 18px !important;
    gap: 8px !important;
    align-items: center !important;

    color: #334155 !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 11px !important;
    box-shadow: none !important;

    text-align: left !important;
  }

  #cashierPage .mobile-discount-toggle.active {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
  }

  .mobile-discount-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;

    background: #ffffff;
    border-radius: 9px;

    font-size: 15px;
  }

  .mobile-discount-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .mobile-discount-copy strong {
    color: #0f172a;
    font-size: 10.5px;
    font-weight: 850;
  }

  .mobile-discount-copy small {
    color: #64748b;
    font-size: 8px;
  }

  .mobile-discount-arrow {
    justify-self: end;
    color: #94a3b8;
    font-size: 18px;
  }

  #cashierPage .receipt-summary-section:not(.mobile-discount-open)
    .discount-controls {
    display: none !important;
  }

  #cashierPage .receipt-summary-section.mobile-discount-open
    .discount-controls {
    margin: 7px 0 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }

  #cashierPage .receipt-summary-section .discount-controls .input {
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 7px 8px !important;

    font-size: 10px !important;
  }

  #cashierPage .total-box {
    min-height: 57px !important;
    margin: 9px 0 0 !important;
    padding: 10px 0 4px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    background: transparent !important;
    border: 0 !important;
    border-top: 1px solid #e2e8f0 !important;
    border-radius: 0 !important;
  }

  #cashierPage .total-box span {
    color: #0f172a !important;
    font-size: 11px !important;
    font-weight: 900 !important;
  }

  #cashierPage .total-box h2 {
    margin: 0 !important;

    color: #2563eb !important;
    font-size: 22px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    letter-spacing: -0.03em !important;
  }

  /* Payment modes */
  #cashierPage .payment-method-buttons {
    margin: 9px 0 0 !important;
    padding: 4px !important;

    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;

    background: #f1f5f9 !important;
    border-radius: 13px !important;
  }

  #cashierPage .payment-method-btn {
    min-width: 0 !important;
    min-height: 45px !important;
    height: 45px !important;
    margin: 0 !important;
    padding: 5px 3px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;

    color: #64748b !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;

    font-size: 8px !important;
    line-height: 1.15 !important;
    font-weight: 850 !important;
  }

  #cashierPage .payment-method-btn.active {
    color: #ffffff !important;
    background: #2563eb !important;
    box-shadow: 0 5px 12px rgba(37, 99, 235, .18) !important;
  }

  .payment-method-icon {
    font-size: 14px;
    line-height: 1;
  }

  .mobile-payment-method-hint {
    min-height: 0;
    margin: 6px 1px 0;
    color: #64748b;
    font-size: 8.5px;
    line-height: 1.4;
  }

  .mobile-payment-method-hint:empty {
    display: none;
  }

  /* Payment details by mode */
  #cashierPage .cashier-right .payment-row {
    margin-top: 11px !important;

    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  #cashierPage .cashier-right.mobile-method-qris .payment-row,
  #cashierPage .cashier-right.mobile-method-multi .payment-row {
    display: none !important;
  }

  #cashierPage .payment-col {
    min-width: 0 !important;
  }

  #cashierPage .payment-col .label,
  #cashierPage .quick-cash-area > .label {
    margin: 0 0 5px !important;

    color: #475569 !important;
    font-size: 9px !important;
    font-weight: 850 !important;
  }

  #cashierPage #paidAmount {
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;

    border-radius: 11px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
  }

  #cashierPage .change-box.compact {
    min-height: 48px !important;
    margin: 0 !important;
    padding: 8px 10px !important;

    display: grid !important;
    place-items: center !important;

    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    border-left: 3px solid #10b981 !important;
    border-radius: 11px !important;
  }

  #cashierPage .change-box.compact h3 {
    margin: 0 !important;

    color: #047857 !important;
    font-size: 16px !important;
    font-weight: 950 !important;
  }

  #cashierPage .change-box.compact.short {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    border-left-color: #ef4444 !important;
  }

  #cashierPage .change-box.compact.short h3 {
    color: #b91c1c !important;
  }

  #cashierPage .quick-cash-area {
    margin-top: 10px !important;
  }

  #cashierPage .quick-cash-buttons {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  #cashierPage .quick-cash-buttons button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 6px 4px !important;

    color: #1d4ed8 !important;
    background: #eff6ff !important;
    border: 1px solid #dbeafe !important;
    border-radius: 10px !important;
    box-shadow: none !important;

    font-size: 9px !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
  }

  #cashierPage .multi-payment-area {
    margin-top: 10px !important;
    gap: 7px !important;
  }

  #cashierPage .multi-payment-area .input {
    min-height: 44px !important;
    height: 44px !important;
    margin: 0 !important;
  }

  /* Dangerous action is separated from payment CTA */
  #cashierPage .payment-actions .clear-action {
    display: none !important;
  }

  #cashierPage .mobile-clear-order-button {
    width: auto !important;
    min-height: 34px !important;
    margin: 12px 0 72px auto !important;
    padding: 5px 8px !important;

    display: block !important;

    color: #b91c1c !important;
    background: transparent !important;
    border: 1px solid #fecaca !important;
    border-radius: 9px !important;
    box-shadow: none !important;

    font-size: 8.5px !important;
    font-weight: 800 !important;
  }

  /* Sticky pay footer */
  #cashierPage .payment-actions {
    position: sticky !important;
    bottom: calc(-10px - env(safe-area-inset-bottom)) !important;
    z-index: 8 !important;

    margin: 0 -12px calc(-10px - env(safe-area-inset-bottom)) !important;
    padding:
      8px
      12px
      calc(10px + env(safe-area-inset-bottom)) !important;

    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;

    background: rgba(255,255,255,.97) !important;
    border-top: 1px solid #e2e8f0 !important;

    backdrop-filter: blur(12px);
  }

  #cashierPage .mobile-sticky-pay-total {
    min-height: 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  #cashierPage .mobile-sticky-pay-total span {
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
  }

  #cashierPage .mobile-sticky-pay-total strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 950;
    letter-spacing: -0.02em;
  }

  #cashierPage .payment-actions .primary-btn {
    width: 100% !important;
    min-height: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 8px 12px !important;

    color: #ffffff !important;
    background: #2563eb !important;
    border: 0 !important;
    border-radius: 13px !important;
    box-shadow: 0 7px 18px rgba(37, 99, 235, .21) !important;

    font-size: 12px !important;
    font-weight: 900 !important;
  }

  /* ---------------------------------------------------------
     RECEIPT MODAL: CENTERED ON MOBILE, no bottom sheet
     --------------------------------------------------------- */
  #receiptModal {
    align-items: center !important;
    justify-content: center !important;
    padding:
      max(14px, env(safe-area-inset-top))
      14px
      max(14px, env(safe-area-inset-bottom)) !important;
  }

  #receiptModal .modal-content {
    width: min(100%, 390px) !important;
    max-width: 390px !important;
    max-height: 86dvh !important;
    margin: 0 !important;
    padding: 14px !important;

    overflow-y: auto !important;

    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 24px 70px rgba(15,23,42,.30) !important;
  }

  #receiptModal > .modal-content > h2 {
    margin: 0 0 10px !important;
    font-size: 17px !important;
    text-align: center !important;
  }

  #receiptModal #receiptContent {
    max-height: calc(86dvh - 105px) !important;
    overflow-y: auto !important;
    padding: 10px !important;

    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 13px !important;
  }

  #receiptModal .receipt-box {
    width: 100% !important;
    max-width: 310px !important;
    margin: 0 auto !important;
  }

  #receiptModal .modal-actions {
    position: static !important;
    bottom: auto !important;

    margin: 10px 0 0 !important;
    padding: 0 !important;

    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;

    background: transparent !important;
    backdrop-filter: none !important;
  }

  #receiptModal .modal-actions > button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 5px !important;

    border-radius: 10px !important;

    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 850 !important;
  }
}

@media (max-width: 360px) {
  #cashierPage .qty-box {
    grid-template-columns: 28px 22px 28px 28px !important;
    gap: 3px !important;
  }

  #cashierPage .qty-btn {
    width: 28px !important;
    min-width: 28px !important;
  }

  #receiptModal .modal-actions > button {
    font-size: 9px !important;
  }
}

/* === RESTO QR MOBILE CHECKOUT FINAL END === */







/* === RESTO QR CHECKOUT DESKTOP COMPATIBILITY FIX === */

/*
  Komponen berikut dibuat khusus untuk pengalaman checkout HP.
  Desktop tetap menggunakan layout/form asli yang sebelumnya sudah PASS.
*/
@media (min-width: 769px) {
  #cashierPage .mobile-order-summary-toggle,
  #cashierPage .mobile-discount-toggle,
  #cashierPage .mobile-payment-method-hint,
  #cashierPage .mobile-sticky-pay-total,
  #cashierPage .mobile-clear-order-button {
    display: none !important;
  }

  /*
    Jika icon metode pembayaran sempat dibuat oleh script mobile,
    desktop tidak perlu menampilkannya.
  */
  #cashierPage .payment-method-icon {
    display: none !important;
  }

  /*
    Pastikan form order desktop selalu terlihat normal.
  */
  #cashierPage #productPaymentArea .mobile-order-detail-field {
    display: block !important;
  }

  /*
    Pastikan kontrol diskon desktop tidak ikut pola collapsible HP.
  */
  #cashierPage .receipt-summary-section .discount-controls {
    display: grid !important;
  }

  /*
    Reset kemungkinan class mode mobile pada panel pembayaran.
  */
  #cashierPage .cashier-right.mobile-method-cash .payment-row,
  #cashierPage .cashier-right.mobile-method-qris .payment-row,
  #cashierPage .cashier-right.mobile-method-multi .payment-row {
    display: grid !important;
  }
}

/* === END RESTO QR CHECKOUT DESKTOP COMPATIBILITY FIX === */


/* === RESTO QR REPORT RECOVERY SAFETY === */
@media (max-width: 768px) {
  #reportPage > * {
    visibility: visible;
  }

  #mobileReportCompactCatalog {
    display: none !important;
  }
}
/* === END RESTO QR REPORT RECOVERY SAFETY === */


/* === RESTO QR REPORT MOBILE SAFE CSS START === */

/*
  SAFE APPROACH:
  - CSS only.
  - Katalog laporan asli tetap digunakan.
  - Tidak membungkus showPage/showReportCatalog/openReportDetail.
  - Desktop tidak diubah.
*/
@media (max-width: 768px) {

  /* ---------------------------------------------
     PAGE
     Global mobile header sudah menampilkan Laporan,
     jadi heading besar di dalam halaman tidak perlu.
     --------------------------------------------- */
  #reportPage {
    min-height: calc(100dvh - 64px) !important;
    margin: -16px !important;
    padding:
      12px
      10px
      calc(24px + env(safe-area-inset-bottom)) !important;

    background: #f5f7fb !important;
  }

  #reportPage .report-page-header {
    display: none !important;
  }

  /* ---------------------------------------------
     CATEGORY TABS
     Slim horizontal pills, tanpa container besar.
     --------------------------------------------- */
  #reportPage .report-category-tabs {
    width: 100% !important;
    margin: 0 0 17px !important;
    padding: 0 0 3px !important;

    display: flex !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #reportPage .report-category-tabs::-webkit-scrollbar {
    display: none !important;
  }

  #reportPage .report-category-tabs button {
    flex: 0 0 auto !important;

    min-height: 37px !important;
    height: 37px !important;
    margin: 0 !important;
    padding: 7px 12px !important;

    color: #475569 !important;
    background: #e9eef5 !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    box-shadow: none !important;

    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
  }

  #reportPage .report-category-tabs button.active {
    color: #ffffff !important;
    background: #2563eb !important;
    border-color: #2563eb !important;
    box-shadow: 0 5px 13px rgba(37, 99, 235, .16) !important;
  }

  /* ---------------------------------------------
     CATALOG WRAPPER
     Section label + one compact list container.
     --------------------------------------------- */
  #reportPage .report-catalog-list {
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  #reportPage .report-catalog-section-header {
    margin: 0 5px 7px !important;
  }

  #reportPage .report-catalog-section-header h2 {
    margin: 0 !important;

    color: #475569 !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
  }

  /* Hapus instruksi teknis "Pilih judul laporan..." */
  #reportPage .report-catalog-section-header p {
    display: none !important;
  }

  #reportPage .report-link-grid {
    display: block !important;
    overflow: hidden !important;

    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 17px !important;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .04) !important;
  }

  /* ---------------------------------------------
     REPORT ROW
     Seluruh kartu asli tetap button yang sama.
     Hanya divisualkan sebagai list row.
     --------------------------------------------- */
  #reportPage .report-link-card {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 68px !important;
    height: auto !important;

    margin: 0 !important;
    padding: 10px 11px !important;

    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) 18px !important;
    grid-template-rows: auto auto !important;
    column-gap: 10px !important;
    row-gap: 3px !important;
    align-items: center !important;

    color: #172033 !important;
    background: #ffffff !important;

    border: 0 !important;
    border-bottom: 1px solid #edf2f7 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;

    text-align: left !important;
    transform: none !important;
    transition: background .12s ease !important;
  }

  #reportPage .report-link-card:last-child {
    border-bottom: 0 !important;
  }

  #reportPage .report-link-card:not(.unavailable):active {
    background: #f8fafc !important;
  }

  #reportPage .report-link-card:not(.disabled):hover {
    transform: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  /*
    Generic visual icon.
    Tidak perlu JS dan tidak memengaruhi klik asli.
  */
  #reportPage .report-link-card::before {
    content: "▤";

    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;

    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 11px;

    font-size: 16px;
    line-height: 1;
    font-weight: 900;
  }

  #reportPage .report-link-title {
    grid-column: 2 !important;
    grid-row: 1 !important;

    min-width: 0 !important;
    margin: 0 !important;

    overflow: hidden !important;

    color: #0f172a !important;
    font-size: 11.5px !important;
    line-height: 1.3 !important;
    font-weight: 850 !important;

    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /*
    Deskripsi cukup 1 baris.
    Ini mengurangi petunjuk panjang tanpa mengubah data/deskripsi JS.
  */
  #reportPage .report-link-description {
    grid-column: 2 !important;
    grid-row: 2 !important;

    min-width: 0 !important;
    margin: 0 !important;

    overflow: hidden !important;

    color: #64748b !important;
    font-size: 8.5px !important;
    line-height: 1.35 !important;
    font-weight: 400 !important;

    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /*
    Ganti teks "Buka laporan" secara visual dengan chevron.
    Span aslinya tetap ada sehingga markup/fungsi asli tidak berubah.
  */
  #reportPage .report-link-arrow {
    grid-column: 3 !important;
    grid-row: 1 / span 2 !important;
    justify-self: end !important;
    align-self: center !important;

    width: 18px !important;
    height: 28px !important;
    margin: 0 !important;

    display: grid !important;
    place-items: center !important;

    overflow: hidden !important;

    color: transparent !important;
    font-size: 0 !important;
  }

  #reportPage .report-link-arrow::after {
    content: "›";

    color: #94a3b8;
    font-size: 22px;
    line-height: 1;
    font-weight: 300;
  }

  /* ---------------------------------------------
     UNAVAILABLE REPORTS
     Tetap terlihat, tapi lebih tenang dan tidak penuh
     dengan petunjuk teknis.
     --------------------------------------------- */
  #reportPage .report-link-card.unavailable {
    grid-template-columns: 40px minmax(0, 1fr) auto !important;

    color: #64748b !important;
    background: #fbfcfe !important;
  }

  #reportPage .report-link-card.unavailable::before {
    content: "·";

    color: #94a3b8;
    background: #f1f5f9;
    border-color: #e2e8f0;

    font-size: 20px;
  }

  #reportPage .report-link-card.unavailable .report-link-title {
    color: #64748b !important;
  }

  /* Technical unavailable description is not useful in the catalog */
  #reportPage .report-link-card.unavailable .report-link-description {
    display: none !important;
  }

  #reportPage .report-unavailable-badge {
    grid-column: 3 !important;
    grid-row: 1 / span 2 !important;
    align-self: center !important;
    justify-self: end !important;

    margin: 0 !important;
    padding: 4px 6px !important;

    color: #64748b !important;
    background: #eef2f7 !important;
    border-radius: 999px !important;

    font-size: 7.5px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }

  /* ---------------------------------------------
     DETAIL REPORT
     Aman: hanya visual, fungsi filter tetap asli.
     --------------------------------------------- */
  #reportPage .report-detail-view.visible {
    display: block !important;
  }

  #reportPage .report-detail-header {
    margin: 0 0 10px !important;

    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    gap: 9px !important;
    align-items: center !important;
  }

  #reportPage .report-back-btn {
    min-height: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 7px 9px !important;

    color: #2563eb !important;
    background: #eff6ff !important;
    border: 1px solid #dbeafe !important;
    border-radius: 10px !important;
    box-shadow: none !important;

    font-size: 0 !important;
    font-weight: 850 !important;
  }

  #reportPage .report-back-btn::before {
    content: "‹ Daftar";
    font-size: 9px;
  }

  #reportPage .report-detail-header h2 {
    margin: 0 !important;

    overflow: hidden !important;

    color: #0f172a !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;

    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /*
    Subtitle detail boleh hilang di mobile karena deskripsi panjang
    lebih cocok untuk desktop; tidak menghapus datanya.
  */
  #reportPage .report-detail-header p {
    display: none !important;
  }

  /*
    Kalau Mobile UI V2 sudah menyediakan tombol filter,
    kita tidak mengganggunya. Panel/filter logic tetap existing.
  */
}

/* Desktop tetap 100% menggunakan style laporan yang sudah ada */
@media (min-width: 769px) {
  #reportPage .report-link-card::before {
    content: none;
  }
}

/* === RESTO QR REPORT MOBILE SAFE CSS END === */


/* === RESTO QR DUMMY PRODUCT IMAGE STYLE === */

#cashierPage .product-image {
  position: relative;
}

#cashierPage .product-dummy-image {
  width: 100%;
  height: 100%;
  min-height: 100%;

  display: grid;
  place-content: center;
  justify-items: center;
  gap: 5px;

  padding: 10px;

  background:
    radial-gradient(circle at 30% 20%, rgba(37, 99, 235, .10), transparent 34%),
    linear-gradient(145deg, #f8fbff, #eef4ff);

  color: #334155;
  text-align: center;
}

#cashierPage .product-dummy-image-fallback {
  display: none;
  position: absolute;
  inset: 0;
}

#cashierPage .product-dummy-logo {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 13px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .18);

  font-size: 13px;
  font-weight: 950;
  letter-spacing: -.03em;
}

#cashierPage .product-dummy-image strong {
  color: #1e293b;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 900;
}

#cashierPage .product-dummy-image small {
  max-width: 100%;

  overflow: hidden;

  color: #64748b;
  font-size: 8.5px;
  line-height: 1.2;

  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px) {
  #cashierPage .product-dummy-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 11px;
  }

  #cashierPage .product-dummy-image {
    gap: 3px;
    padding: 6px;
  }

  #cashierPage .product-dummy-image strong {
    font-size: 10px;
  }

  #cashierPage .product-dummy-image small {
    font-size: 7.5px;
  }
}

/* === END RESTO QR DUMMY PRODUCT IMAGE STYLE === */
