.absensi-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.absensi-row .card {
  width: 100%;
  box-sizing: border-box;
}

.btn-disabled[disabled],
.btn.btn-disabled {
  background: #b2f5ea !important;
  color: #089e7a !important;
  border-color: #b2f5ea !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
}

@media (min-width: 700px) {
  .absensi-row {
    flex-direction: row;
    gap: 24px;
  }

  .absensi-row .card {
    width: 50%;
    min-width: 320px;
    max-width: 480px;
  }
}

.absensi-kpi-row {
  display: flex;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 10px;
}

.absensi-kpi-card {
  flex: 1;
  background: #f4f6f8;
  border-radius: 10px;
  padding: 10px 0;
  text-align: center;
}

.absensi-kpi-card div:first-child {
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

.absensi-kpi-card div:last-child {
  font-size: 2.2rem;
  font-weight: 700;
  color: #222;
  line-height: 1.1;
  margin-top: 2px;
}

.cekyuk-green {
  background-color: #04c99f !important;
  color: #fff !important;
}

.cekyuk-navbar {
  background: linear-gradient(90deg, #04c99f 80%, #038e6b 100%) !important;
}

.cekyuk-footer {
  background: #04c99f !important;
  color: #fff !important;
  padding: 24px 0 12px 0;
}

.cekyuk-footer a {
  color: #fff;
  text-decoration: underline;
}

.cekyuk-footer a:hover {
  color: #e0ffe6;
}

.navbar-brand img {
  height: 36px;
  margin-right: 10px;
}

.paket-radio {
  display: flex;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  user-select: none;
  margin-bottom: 12px;
}

.paket-radio input[type="radio"] {
  opacity: 0;
  position: absolute;
  width: 0;
  height: 0;
}

.paket-custom-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #04c99f;
  background: #fff;
  margin-right: 11px;
  box-sizing: border-box;
  display: inline-block;
  transition: border-color 0.2s;
}

.paket-radio input[type="radio"]:checked+.paket-custom-radio {
  background: #04c99f;
  border-color: #04c99f;
}

.paket-radio input[type="radio"]:focus+.paket-custom-radio {
  outline: 2px solid #04c99f;
  outline-offset: 2px;
}

.paket-custom-radio:after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  margin: 3px auto;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}

.paket-radio input[type="radio"]:checked+.paket-custom-radio:after {
  opacity: 1;
}

#modal-limit-warning .btn,
#modal-limit-warning button.btn,
#modal-limit-warning a.btn,
#modal-limit-transaksi .btn,
#modal-limit-transaksi button.btn,
#modal-limit-transaksi a.btn {
  text-align: center !important;
  justify-content: center !important;
  align-items: center !important;
  display: flex !important;
}

#modal-limit-transaksi .footer {
  justify-content: center !important;
}

.modal#modal-transaksi input[type="text"],
.modal#modal-transaksi input[type="number"],
.modal#modal-transaksi input[type="password"],
.modal#modal-transaksi input[type="email"],
.modal#modal-transaksi input[type="date"],
.modal#modal-transaksi select,
.modal#modal-transaksi textarea {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 15px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #111;
  padding: 12px 14px;
  outline: none;
  box-sizing: border-box;
  margin-bottom: 2px;
  transition: border-color .15s, box-shadow .15s;
}

.modal#modal-transaksi textarea {
  min-height: 80px;
  resize: vertical;
}

.modal#modal-transaksi input[type="text"]:focus,
.modal#modal-transaksi input[type="number"]:focus,
.modal#modal-transaksi input[type="password"]:focus,
.modal#modal-transaksi input[type="email"]:focus,
.modal#modal-transaksi input[type="date"]:focus,
.modal#modal-transaksi select:focus,
.modal#modal-transaksi textarea:focus {
  border-color: #04c99f;
}

#form-transaksi input,
#form-transaksi select,
#form-transaksi textarea {
  font-family: 'Poppins', Arial, sans-serif;
}

.modal#modal-transaksi label {
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  color: #222;
}

.modal#modal-cabang input[type="text"],
.modal#modal-cabang input[type="number"],
.modal#modal-cabang input[type="password"],
.modal#modal-cabang input[type="email"],
.modal#modal-cabang input[type="date"],
.modal#modal-cabang select,
.modal#modal-cabang textarea {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 15px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #111;
  padding: 12px 14px;
  outline: none;
  box-sizing: border-box;
  margin-bottom: 2px;
  transition: border-color .15s, box-shadow .15s;
}

.modal#modal-cabang textarea {
  min-height: 80px;
  resize: vertical;
}

.modal#modal-cabang input[type="text"]:focus,
.modal#modal-cabang input[type="number"]:focus,
.modal#modal-cabang input[type="password"]:focus,
.modal#modal-cabang input[type="email"]:focus,
.modal#modal-cabang input[type="date"]:focus,
.modal#modal-cabang select:focus,
.modal#modal-cabang textarea:focus {
  border-color: #04c99f;
}

#form-cabang input,
#form-cabang select,
#form-cabang textarea {
  font-family: 'Poppins', Arial, sans-serif;
}

.modal#modal-cabang label {
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  color: #222;
}

.modal#modal-pengguna input[type="text"],
.modal#modal-pengguna input[type="number"],
.modal#modal-pengguna input[type="password"],
.modal#modal-pengguna input[type="email"],
.modal#modal-pengguna input[type="date"],
.modal#modal-pengguna select,
.modal#modal-pengguna textarea {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 15px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #111;
  padding: 12px 14px;
  outline: none;
  box-sizing: border-box;
  margin-bottom: 2px;
  transition: border-color .15s, box-shadow .15s;
}

.modal#modal-pengguna textarea {
  min-height: 80px;
  resize: vertical;
}

.modal#modal-pengguna input[type="text"]:focus,
.modal#modal-pengguna input[type="number"]:focus,
.modal#modal-pengguna input[type="password"]:focus,
.modal#modal-pengguna input[type="email"]:focus,
.modal#modal-pengguna input[type="date"]:focus,
.modal#modal-pengguna select:focus,
.modal#modal-pengguna textarea:focus {
  border-color: #04c99f;
}

#form-pengguna input,
#form-pengguna select,
#form-pengguna textarea {
  font-family: 'Poppins', Arial, sans-serif;
}

.modal#modal-pengguna label {
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  color: #222;
}

@media (max-width: 600px) {
  .pos-products {
    margin-bottom: 80px;
  }

  .pos-card .actions {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .pos-card .actions .qty {
    flex: 1 1 0;
    min-width: 0;
    max-width: 60%;
    font-size: 1.1rem;
    height: 44px;
    border-radius: 10px;
    text-align: center;
  }

  .pos-card .actions .btn.btn-primary {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
}

.btn,
button.btn,
input[type="button"].btn,
input[type="submit"].btn {
  font-family: 'Poppins', Arial, sans-serif !important;
}

#global-search {
  width: 100%;
  background: #f8f9fa;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 18px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #111;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
  height: 42px;
}

.topbar-search {
  position: relative;
  max-width: 440px;
  width: 100%;
}

#global-search:focus {
  border-color: #e5e7eb;
  box-shadow: none;
}

#global-search::placeholder {
  color: #6b7280;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  margin-top: 6px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .12);
  padding: 4px 0;
  max-height: 320px;
  overflow-y: auto;
  z-index: 1200;
}

.search-results.hidden {
  display: none;
}

.search-results a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  color: #222;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.2;
}

.search-results a:hover {
  background: #f2f4f7;
}

.search-results .section-tag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #6b7280;
}

.search-results .empty {
  padding: 12px 16px;
  font-size: 13px;
  color: #6b7280;
}

.role-radio-group {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.25rem;
}

.role-radio {
  display: flex;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.role-radio input[type="radio"] {
  opacity: 0;
  position: absolute;
  width: 0;
  height: 0;
}

.custom-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #04c99f;
  background: #fff;
  margin-right: 8px;
  box-sizing: border-box;
  display: inline-block;
  transition: border-color 0.2s;
}

.role-radio input[type="radio"]:checked+.custom-radio {
  background: #04c99f;
  border-color: #04c99f;
}

.role-radio input[type="radio"]:focus+.custom-radio {
  outline: 2px solid #04c99f;
  outline-offset: 2px;
}

.role-radio .custom-radio:after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  margin: 3px auto;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}

.role-radio input[type="radio"]:checked+.custom-radio:after {
  opacity: 1;
}

.select-green {
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  height: 44px;
  padding: 8px 10px;
  font-size: 15px;
  transition: border-color 0.2s;
  background: #fff;
}

.select-green:focus {
  border-color: #22c55e !important;
  outline: none;
}

.select-green option[disabled][selected] {
  color: #a3a3a3;
}

.input-rp-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-rp-label {
  position: absolute;
  left: 16px;
  color: #888;
  font-size: 15px;
  font-family: 'Poppins', Arial, sans-serif;
  pointer-events: none;
  z-index: 2;
}

.input-rp-group input[type="text"] {
  padding-left: 41px !important;
}

.modal#modal-uang input[type="text"],
.modal#modal-uang input[type="number"],
.modal#modal-uang input[type="date"],
.modal#modal-uang select,
.modal#modal-uang textarea {
  width: 100%;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 15px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
  color: #0e1525;
  outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
  height: 48px;
  appearance: none;
}

.modal#modal-uang textarea {
  min-height: 44px;
  height: auto;
  resize: vertical;
}

.modal#modal-uang input[type="text"]:focus,
.modal#modal-uang input[type="number"]:focus,
.modal#modal-uang input[type="date"]:focus,
.modal#modal-uang select:focus,
.modal#modal-uang textarea:focus {
  border-color: var(--primary);
}

.modal#modal-pelanggan input[type="text"],
.modal#modal-pelanggan input[type="number"],
.modal#modal-pelanggan input[type="search"],
.modal#modal-pelanggan select,
.modal#modal-pelanggan textarea {
  width: 100%;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 15px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
  color: #0e1525;
  outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
  height: 48px;
  appearance: none;
}

.modal#modal-pelanggan textarea {
  min-height: 44px;
  height: auto;
  resize: vertical;
}

.modal#modal-pelanggan input[type="text"]:focus,
.modal#modal-pelanggan input[type="number"]:focus,
.modal#modal-pelanggan input[type="search"]:focus,
.modal#modal-pelanggan select:focus,
.modal#modal-pelanggan textarea:focus {
  border-color: var(--primary);
}

#form-pelanggan input,
#form-pelanggan select,
#form-pelanggan textarea {
  font-family: 'Poppins', Arial, sans-serif;
}

.money-in {
  color: #059669;
  font-weight: 600;
}

.money-out {
  color: #dc2626;
  font-weight: 600;
}

.modal#modal-produk input[type="text"],
.modal#modal-produk input[type="number"],
.modal#modal-produk input[type="file"],
.modal#modal-produk select,
.modal#modal-produk textarea {
  width: 100%;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 15px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
  color: #0e1525;
  outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
  height: 48px;
  appearance: none;
}

.modal#modal-produk textarea {
  min-height: 44px;
  height: auto;
  resize: vertical;
}

.modal#modal-produk input[type="text"]:focus,
.modal#modal-produk input[type="number"]:focus,
.modal#modal-produk input[type="file"]:focus,
.modal#modal-produk select:focus,
.modal#modal-produk textarea:focus {
  border-color: var(--primary);
}

#form-produk input,
#form-produk select,
#form-produk textarea {
  font-family: 'Poppins', Arial, sans-serif;
}

.modal#modal-add input[type="text"],
.modal#modal-add input[type="password"],
.modal#modal-add select,
.modal#modal-edit input[type="text"],
.modal#modal-edit input[type="password"],
.modal#modal-edit select {
  width: 100%;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 15px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
  color: #0e1525;
  outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
  height: 48px;
  appearance: none;
}

.modal#modal-add input[type="text"]:focus,
.modal#modal-add input[type="password"]:focus,
.modal#modal-add select:focus,
.modal#modal-edit input[type="text"]:focus,
.modal#modal-edit input[type="password"]:focus,
.modal#modal-edit select:focus {
  border-color: var(--primary);
}

#stok {
  text-align: left;
}

#kategori {
  font-family: 'Poppins', Arial, sans-serif;
  margin-right: 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none !important;
}

select#kategori::-ms-expand {
  display: none;
}

.cart-total .row.discount-row-hidden,
.cart-total .row.tax-row-hidden {
  display: none !important;
}

@media (max-width: 600px) {
  .pay-ops {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
}

.field textarea {
  width: 100%;
  appearance: none;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  transition: border .15s;
  resize: vertical;
  min-height: 44px;
  box-sizing: border-box;
}

.field textarea:focus {
  border-color: var(--primary);
}

.quick-calc {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin: 4px 0 0 0;
}

.quick-calc .btn {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 600px) {
  .cart-modal-content .cart-head {
    padding-right: 56px;
    padding-left: 6px;
    min-height: 48px;
    align-items: center;
  }

  .cart-modal-content .cart-head h3 {
    font-size: 20px;
    margin: 0;
    padding: 0;
  }

  .cart-modal-content .icon-btn#close-cart-modal {
    right: 12px;
    top: 12px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 600px) {

  .cart-modal-content .chk,
  .cart-modal-content .chk label,
  .cart-modal-content .cart-total .row span,
  .cart-modal-content .cart-total .row strong,
  .cart-modal-content .cart-total .grand span,
  .cart-modal-content .cart-total .grand strong {
    font-size: 14px !important;
  }
}

@media (max-width: 900px) {
  .cart-modal-content .cart-list {
    max-height: 38vh;
    overflow-y: auto;
    margin-bottom: 10px;
  }
}

@media (max-width: 600px) {
  .pos-card .meta {
    justify-content: flex-start;
    gap: 6px;
  }

  .pos-card .price-stock {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
  }

  .pos-card .stock-mobile {
    color: #6b7280;
    font-size: 13px;
    font-weight: 400;
    margin-left: 2px;
  }
}

.toolbar .field-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .toolbar .field-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 4px;
  }

  .toolbar .field-row label {
    margin-bottom: 0;
    min-width: 80px;
    text-align: left;
    flex: 1 1 100%;
  }

  .toolbar .field-row span {
    margin: 0 0 0 0;
    height: auto;
    align-self: center;
    font-size: 15px;
  }

  .toolbar .field-row input[type="date"] {
    width: 100%;
    min-width: 0;
    flex: 1 1 140px;
  }
}

.toolbar .field-row span {
  font-size: 15px;
  font-family: inherit;
  color: #475467;
  line-height: 1.2;
  display: flex;
  align-items: center;
  height: 40px;
}

@media (max-width: 900px) {
  .cart-modal-content .cart-ops {
    margin-top: 24px;
  }
}

.cart-modal-content .cart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  position: relative;
}

.cart-modal-content .cart-head h3 {
  margin: 0;
}

.cart-modal-content .icon-btn#close-cart-modal {
  position: absolute;
  top: 0;
  right: 10px;
  z-index: 2;
  background: #f2f4f7;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .cart-modal-content .cart-head {
    padding-right: 44px;
  }
}

@media (max-width: 900px) {
  .cart-modal-content .cart-total {
    margin-top: 24px;
  }
}

.cart-ops .chk {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: row;
  position: relative;
  flex-wrap: wrap;
}

.cart-ops .chk input[type="checkbox"] {
  margin-right: 6px;
}

.cart-ops .chk .discount-row,
.cart-ops .chk .tax-row {
  width: 100%;
  margin-left: 0;
  margin-top: 6px;
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.cart-modal-content .chk {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: row;
  position: relative;
  flex-wrap: wrap;
}

.cart-modal-content .chk input[type="checkbox"] {
  margin-right: 6px;
}

.cart-modal-content .chk .discount-row,
.cart-modal-content .chk .tax-row {
  width: 100%;
  margin-left: 0;
  margin: 0 0 6px 0;
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.cart-ops .chk:not(:has(input[type="checkbox"]:checked)) .discount-row,
.cart-ops .chk:not(:has(input[type="checkbox"]:checked)) .tax-row {
  display: none !important;
}

.cart-modal-content .chk:not(:has(input[type="checkbox"]:checked)) .discount-row,
.cart-modal-content .chk:not(:has(input[type="checkbox"]:checked)) .tax-row {
  display: none !important;
}

.cart-ops .chk input[type="checkbox"]:not(:checked)~.discount-row,
.cart-ops .chk input[type="checkbox"]:not(:checked)~.tax-row {
  display: none !important;
}

.cart-modal-content .chk input[type="checkbox"]:not(:checked)~.discount-row,
.cart-modal-content .chk input[type="checkbox"]:not(:checked)~.tax-row {
  display: none !important;
}

@media (max-width: 900px) {

  .cart-modal-content .discount-row,
  .cart-modal-content .tax-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
  }

  .cart-modal-content .num,
  .cart-modal-content .sel {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
  }

  .cart-modal-content .pct {
    color: #6b7280;
    margin-left: 2px;
  }
}

.cart-fab {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 auto 18px auto;
  z-index: 999;
  width: 90vw;
  max-width: 420px;
  height: 48px;
  background: #04c99f;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
}

.cart-fab-count {
  background: #fff;
  color: #04c99f;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 0.86rem;
  font-weight: 700;
  margin-left: 4px;
  min-width: 25px;
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  align-items: flex-end;
  justify-content: center;
}

.cart-modal.show {
  display: flex;
}

.cart-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .45);
}

.cart-modal-content {
  position: relative;
  width: 100vw;
  max-width: 480px;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 18px 12px 18px 12px;
  margin-bottom: 0;
  animation: cartModalIn .22s cubic-bezier(.4, 0, .2, 1) both;
}

@keyframes cartModalIn {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .pos-cart-desktop {
    display: none !important;
  }

  .cart-fab {
    display: flex;
  }

  .cart-modal {
    display: none;
  }

  .cart-modal.show {
    display: flex;
  }
}

@media (min-width: 901px) {

  .cart-fab,
  .cart-modal {
    display: none !important;
  }

  .pos-cart-desktop {
    display: flex !important;
  }
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
  font-size: 15px;
}

.cart-table th,
.cart-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.cart-table th {
  background: #f6fbf9;
  font-weight: 600;
  color: #04c99f;
}

.cart-table td {
  vertical-align: middle;
}

.cart-qty-btn {
  background: #e0f8f4;
  color: #04c99f;
  border: none;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  font-size: 18px;
  font-weight: 700;
  margin: 0 4px;
  cursor: pointer;
  transition: background .12s;
}

.cart-qty-btn:active {
  background: #bff2e6;
}

.cart-qty {
  display: inline-block;
  min-width: 22px;
  text-align: center;
  font-weight: 600;
}

.cart-remove-btn {
  background: none;
  color: #98a2b3;
  border: none;
  font-size: 13px;
  cursor: pointer;
  border-radius: 6px;
  padding: 4px 10px;
  font-weight: 600;
}

.cart-remove-btn:active {
  background: #f3f4f6;
}

.cart-total {
  text-align: right;
  font-size: 16px;
  margin-top: 8px;
  color: #04c99f;
}

h3 {
  font-weight: 600;
}

.app-sidebar {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) rgba(4, 201, 159, 0.08);
}

.app-sidebar::-webkit-scrollbar {
  width: 6px;
  background: transparent;
}

.app-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.app-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: #e7fff7;
  margin: 18px 10px 4px 10px;
  text-transform: uppercase;
  opacity: 0.85;
}

@media (min-width: 1110px) {
  .sidebar-section-label {
    padding-left: 8px;
  }
}

input[type="search"]::-webkit-search-cancel-button {
  filter: grayscale(1) brightness(0.7);
}

input[type="search"]::-ms-clear {
  color: #bdbdbd;
  background: #bdbdbd;
}

input[type="search"]::-o-clear {
  color: #bdbdbd;
  background: #bdbdbd;
}

input[type="search"]::-moz-search-clear {
  color: #bdbdbd;
  background: #bdbdbd;
}

.sidebar-nav .nav-item,
.sidebar-nav .label {
  font-size: 15px;
}

@media (max-width: 1110px) {
  .topbar-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .topbar-logo {
    margin-left: auto !important;
    margin-right: 0 !important;
    height: 40px;
    max-height: 44px;
  }

  .app-topbar .topbar-main {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }
}

:root {
  --primary: #04c99f;
  --primary-600: #04c99f;
  --accent: #04c99f;
  --bg: #0b1020;
  --text: #0e1525;
  --muted: #667085;
  --card: #ffffff;
  --ring: rgba(4, 201, 159, 0.18);
  --app-primary: #04c99f;
  --app-primary-600: #04c99f;
  --app-on-primary: #ffffff;
  --app-surface: #f6fbf9;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: #04c99f;
}

.auth-wrapper {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.brand-logo {
  height: 48px;
  width: auto;
  display: block;
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(46, 179, 124, .12);
}

.title {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
}

.subtitle {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.input {
  position: relative;
  margin-bottom: 14px;
}

.input input {
  width: 100%;
  appearance: none;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 14px 44px 14px 14px;
  border-radius: 12px;
  outline: none;
  font-size: 15px;
}

.input input:focus {
  border-color: var(--primary);
}

.input label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #98a2b3;
  font-size: 14px;
  pointer-events: none;
  transition: all .15s ease;
  background: white;
  padding: 0 6px;
}

.input input:not(:placeholder-shown)+label,
.input input:focus+label {
  top: 0;
  transform: translateY(-50%) scale(.92);
  color: var(--primary-600);
}

.input .trailing {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.icon-btn {
  appearance: none;
  border: none;
  background: transparent;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #6b7280;
  cursor: pointer;
}

.icon-btn:hover {
  background: #f2f4f7;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 14px;
}

.row a {
  color: #04c99f;
  text-decoration: none;
  font-weight: 600;
}

.row a {
  font-size: 14px;
}

.row a:hover {
  text-decoration: underline;
}

.btn {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

.toolbar .btn {
  width: auto;
  padding: 12px 22px;
  flex: 0 0 auto;
}

.btn-primary {
  color: white;
  background: #04c99f;
}

.btn-primary:hover {
  filter: brightness(.98);
}

.btn-ghost {
  background: transparent;
  color: #04c99f;
}

@media (max-width: 600px) {
  .btn {
    width: 100% !important;
  }
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: #98a2b3;
  font-size: 14px;
  margin: 14px 0 8px;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: #e5e7eb;
}

.support {
  text-align: center;
  margin-top: 12px;
  color: #98a2b3;
  font-size: 14px;
}

.support a {
  color: #04c99f;
  font-weight: 600;
  text-decoration: none;
}

.support a:hover {
  text-decoration: underline;
}

.alert {
  display: none;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef3f2;
  color: #b42318;
  border: 1px solid #fecdcf;
  font-size: 14px;
  margin-bottom: 12px;
}

.alert.show {
  display: block;
}

@media (min-width: 480px) {
  .card {
    padding: 28px;
  }
}

.app-shell {
  min-height: 100vh;
  background: var(--app-surface);
}

.app-sidebar {
  position: fixed;
  z-index: 1000;
  inset: 0 auto 0 0;
  width: 280px;
  background: var(--app-primary);
  color: var(--app-on-primary);
  transform: translateX(-100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.sidebar-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  padding: 13px 16px 13px 16px;
  position: relative;
  border-bottom: none;
}

.sidebar-close.mobile-only {
  align-self: flex-start;
}

@media (min-width: 1110px) {
  .sidebar-header {
    align-items: center;
    justify-content: center;
  }

  .sidebar-logo.desktop-only {
    align-self: center;
  }
}

.sidebar-logo {
  height: 40px;
  width: auto;
  display: block;
  margin: 0 auto;
}

@media (min-width: 1110px) {
  .sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    margin-bottom: 6px;
  }

  .sidebar-logo {
    background: transparent;
  }
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 16px;
  font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.sidebar-user .avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .15);
  display: grid;
  place-items: center;
  font-weight: 600;
}

.sidebar-user .user-name {
  font-weight: 600;
}

.sidebar-user .user-manage {
  color: #e7fff7;
  text-decoration: none;
  font-size: 13px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0 0 0;
  gap: 6px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  margin-bottom: 0;
}

.sidebar-nav .nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 12px 10px 12px;
  border-radius: 12px;
  color: var(--app-on-primary);
  text-decoration: none;
  opacity: .95;
}

@media (min-width: 1110px) {
  .sidebar-nav .nav-item {
    padding: 10px 18px 10px 18px;
  }
}

.sidebar-nav .nav-item .icon {
  width: 18px;
  text-align: center;
}

.sidebar-nav .nav-item:hover {
  background: rgba(255, 255, 255, .12);
  border-radius: 0;
}

.sidebar-nav .nav-item.is-active {
  background: rgba(255, 255, 255, .18);
  font-weight: 400;
  border-radius: 0;
}

.app-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: #04c99f;
  color: #fff;
}

.topbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  gap: 12px;
  color: var(--app-primary);
}

.menu-text {
  font-weight: 600;
  color: #fff !important;
  transition: background .15s;
}

.menu-text:hover,
.menu-text:focus,
.menu-text:active {
  color: #fff !important;
  background: none !important;
}

.topbar-search {
  display: none;
}

.topbar-search input {
  width: 520px;
  max-width: 52vw;
  border: 1px solid #e5e7eb;
  outline: none;
  background: #f6fbf9;
  color: var(--app-primary);
  padding: 10px 12px;
  border-radius: 10px;
  font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-weight: 400;
}

.topbar-search input::placeholder {
  color: var(--muted);
  font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-weight: 400;
}

.brand-desktop {
  display: none;
  align-items: center;
}

.brand-desktop img {
  height: 28px;
  width: auto;
}

.user-btn {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 18px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: var(--app-primary);
  cursor: pointer;
  font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-weight: 400;
}

.user-btn .avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e6f9f3;
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--app-primary);
  font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.user-btn .user-name {
  font-weight: 600;
  color: var(--app-primary);
  font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.topnav {
  display: flex;
  gap: 6px;
  padding: 8px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.topnav-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--app-on-primary);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  opacity: .95;
}

.topnav-item .icon {
  width: 18px;
  text-align: center;
}

.topnav-item:hover {
  background: rgba(255, 255, 255, .12);
}

.topnav-item.is-active {
  background: rgba(255, 255, 255, .18);
  font-weight: 600;
}

.app-content {
  padding: 16px;
}

.page-title {
  margin: 6px 0 6px;
  font-size: 22px;
}

.page-subtitle {
  margin: 0 0 12px;
  color: #475467;
  font-size: 14px;
}

.kpi {
  margin-top: 8px;
}

.burger {
  display: inline-block;
  width: 20px;
  height: 12px;
  position: relative;
}

.burger::before,
.burger::after,
.burger span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.burger::before {
  top: 0;
}

.burger::after {
  bottom: 0;
}

.topbar-left .icon-btn:active,
.topbar-left .icon-btn:focus,
.topbar-left .icon-btn:hover {
  background: none !important;
  color: #fff !important;
  box-shadow: none !important;
}

.topbar-left .menu-text:active,
.topbar-left .menu-text:focus,
.topbar-left .menu-text:hover {
  color: #fff !important;
  background: none !important;
  box-shadow: none !important;
}

.btn-back,
.btn-back:active,
.btn-back:focus,
.btn-back:hover {
  color: #fff !important;
  background: none !important;
  box-shadow: none !important;
}

.mobile-only {
  display: inline-flex;
}

.desktop-only {
  display: none;
}

body.sidebar-open .app-sidebar {
  transform: translateX(0);
}

body.sidebar-open .app-overlay {
  opacity: 1;
  pointer-events: auto;
}


@media (min-width: 1110px) {
  .mobile-only {
    display: none !important;
  }

  .desktop-only {
    display: inline-flex;
  }

  .app-sidebar {
    transform: none;
    position: fixed;
    top: 0;
    bottom: 0;
    width: 260px;
  }

  .app-shell {
    padding-left: 260px;
  }

  .app-topbar {
    left: 260px;
    background: #fff;
    color: var(--app-primary);
  }

  .topbar-main {
    padding: 12px 16px;
    gap: 16px;
  }

  .brand-desktop {
    display: inline-flex;
  }

  .topbar-search {
    display: inline-flex;
    flex: 1 1 auto;
  }

  .user-btn {
    display: inline-flex;
    margin-left: auto;
  }

  .app-content {
    padding: 20px 24px;
  }
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-end;
  margin: 8px 0 12px;
}

.toolbar .spacer {
  display: none !important;
}

.toolbar .field-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-search {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 14px;
  gap: 8px;
  min-width: 0;
  max-width: 480px;
  width: 100%;
}

.input-search input {
  border: none;
  outline: none;
  font-size: 13px;
  font-family: 'Poppins', Arial, Helvetica, sans-serif !important;
  width: 100%;
  min-width: 0;
  background: transparent;
}

.input-search .icon-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #98a2b3;
  margin-right: 8px;
}

.input-search .icon-search svg {
  display: block;
  width: 18px;
  height: 18px;
}

@media (min-width: 1110px) {
  .input-search {
    max-width: 520px;
    flex: 1 1 520px;
  }
}

.toolbar-add-btn {
  min-width: 120px;
  max-width: 180px;
  width: auto;
  white-space: nowrap;
  padding-left: 22px;
  padding-right: 22px;
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 600px) {
  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .toolbar-add-btn {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin-top: 4px;
  }

  .input-search {
    max-width: 100%;
    width: 100%;
  }
}

.btn-secondary {
  background: #fff;
  color: #0f172a;
  border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
  background: #f8fafc;
}

.table-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
}

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

table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.table th,
table.table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0f2f5;
  white-space: nowrap;
}

table.table th {
  text-align: left;
  color: #475467;
  font-weight: 600;
  background: #fafafa;
}

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

.cell-actions {
  display: inline-flex;
  gap: 8px;
}

.thumb {
  width: 64px;
  aspect-ratio: 4 / 3;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  background: #f2f4f7;
  border: 1px solid #e5e7eb;
  display: block;
}

.media {
  background: #f7f7f8;
  aspect-ratio: 4 / 3;
  height: auto;
  position: relative;
  overflow: hidden;
  display: block;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.media-produk {
  background: #f7f7f8;
  aspect-ratio: 4 / 3;
  width: 48px;
  height: auto;
  position: relative;
  overflow: hidden;
  display: block;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}
.media-produk img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width: 600px) {
  .media-produk {
    width: 64px;
  }
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e0f8f4;
  color: #04c99f;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid #04c99f;
}

.chip.chip-gray {
  background: #f4f6f8;
  color: #888;
  border: 1px solid #e5e7eb;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.modal.show {
  display: flex;
}

.modal .overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .5);
}

.modal .dialog {
  position: relative;
  width: min(560px, 92vw);
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.modal .dialog.pay {
  width: min(920px, 96vw);
}

.modal .dialog .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 14px 0px 14px;
  border-bottom: 1px solid #f0f2f5;
}

.modal .dialog .body {
  padding: 14px;
  display: grid;
  gap: 10px;
}

@media (max-width: 600px) {
  .modal .dialog .body {
    max-height: 70vh;
    overflow-y: auto;
    margin-bottom: 0;
  }
}

.modal .dialog .footer {
  padding: 14px;
  border-top: 1px solid #f0f2f5;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 900px) {
  .modal .dialog.pay .body .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: flex-start;
  }

  .modal .dialog.pay .body .grid-2>*:first-child {
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .modal .dialog.pay .body .grid-2>*:last-child {
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .modal .dialog.pay .body .grid-2 .table-card {
    margin-bottom: 0;
  }
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 13px;
  color: #475467;
  font-weight: 600;
}

.field input[type="text"],
.field input[type="number"],
.field input[type="search"],
.field input[type="file"],
.field select {
  appearance: none;
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.field input[type="number"]#stok {
  text-align: center;
}

.field small {
  color: #98a2b3;
}

.field-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.img-preview {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  object-fit: cover;
  background: #f2f4f7;
}

.hidden {
  display: none !important;
}

body.katalog-page {
  background: #f6fbf9;
  font-family: 'Poppins', ui-sans-serif, system-ui;
}

body.katalog-page .btn {
  font-weight: 600;
}

.katalog-hero {
  padding: 42px 16px;
  background: #04c99f;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.katalog-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, .12), transparent 70%);
  pointer-events: none;
}

.katalog-hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.katalog-title {
  margin: 0;
  font-size: 40px;
  line-height: 1.1;
  text-align: center;
  font-weight: 700;
  letter-spacing: .5px;
}

.katalog-subtitle {
  margin: 0;
  font-size: 16px;
  text-align: center;
  opacity: .92;
  font-weight: 500;
}

.katalog-search {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 26px;
  display: flex;
  align-items: center;
  padding: 6px 10px 6px 18px;
  gap: 12px;
}

.katalog-search .icon {
  color: #667085;
  display: inline-flex;
}

.katalog-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  padding: 10px 4px;
  font-family: inherit;
  background: transparent;
}

.katalog-search button {
  height: 42px;
  border-radius: 18px;
  padding: 0 24px;
}

.katalog-search .btn {
  width: auto !important;
  flex: 0 0 auto;
}

.katalog-social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.chip-link {
  background: #fff;
  color: #0f172a;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #e5e7eb;
}

.katalog-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 42px 20px 56px;
}

.katalog-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.product-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-media {
  width: 100%;
  aspect-ratio: 4/3;
  background: #f2f4f7;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.img-ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f2f4f7, #e5e7eb);
}

.product-info {
  padding: 16px 18px 6px;
  display: grid;
  gap: 4px;
}

.product-name {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #0f172a;
}

.product-price {
  font-weight: 600;
  font-size: 14px;
  color: #04c99f;
}

.product-actions {
  margin-top: auto;
  display: flex;
}

.product-actions .btn {
  flex: 1 1 50%;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
}

.product-actions .btn-secondary {
  border-right: 1px solid #e5e7eb;
}

.product-actions .btn-primary {
  background: #04c99f;
}

.product-actions .btn-primary:hover {
  background: #04c99f;
}

.product-actions .btn-secondary .icon,
.product-actions .btn-primary .icon {
  font-size: 15px;
}

.fab-cart {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #04c99f;
  color: #fff;
  border: none;
  display: grid;
  place-items: center;
  font-size: 28px;
  cursor: pointer;
}

.fab-cart .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #04c99f;
  color: #fff;
  padding: 3px 7px;
  font-size: 12px;
  border-radius: 12px;
  font-weight: 600;
  display: none;
}

@media (max-width: 640px) {
  .katalog-title {
    font-size: 34px;
  }

  .katalog-search {
    max-width: 100%;
  }

  .katalog-grid {
    gap: 26px;
  }

  .product-card {
    border-radius: 16px;
  }

  .fab-cart {
    width: 58px;
    height: 58px;
    font-size: 26px;
  }
}

.with-icon .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.with-icon .icon svg {
  width: 16px;
  height: 16px;
}

.konsul-shell {
  display: grid;
  gap: 18px;
  font-family: 'Poppins', Arial, sans-serif;
}

.konsul-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 80vh;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 0 18px;
  box-sizing: border-box;
  font-family: 'Poppins', Arial, sans-serif;
}

.konsul-chat-panel {
  display: grid;
  font-family: 'Poppins', Arial, sans-serif;
}

.konsul-chatwrap {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  padding: 0;
  box-sizing: border-box;
}

.konsul-chat-inner {
  width: min(920px, 96%);
  margin: 0 auto;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 18px;
  min-height: 80vh;
  padding: 24px 20px 16px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .konsul-chatwrap {
    min-height: 8svh;
  }

  .konsul-chat-inner {
    min-height: 83svh;
    padding: 0;
    border-radius: 14px;
  }
}

@media (max-width: 768px) {
  .konsul-chatwrap {
    min-height: 77svh;
    padding: 16px 14px max(18px, env(safe-area-inset-bottom));
    border-radius: 14px;
  }
}

.chat-scroll {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  padding-right: 4px;
  min-height: 220px;
}

.msg {
  display: flex;
  width: 100%;
  justify-content: flex-start;
}

.msg.user {
  justify-content: flex-end;
}

.bubble {
  max-width: 480px;
  width: fit-content;
  min-width: 48px;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
  box-sizing: border-box;
}

.msg.user .bubble {
  background: #04c99f;
  color: #fff;
  border-top-right-radius: 8px;
  margin-left: auto;
}

.msg.ai .bubble {
  background: #f6fbf9;
  border: 1px solid #e5e7eb;
  color: #0f172a;
  border-top-left-radius: 8px;
  margin-right: auto;
}

.chat-dock {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
}

.chat-dock input[type="text"] {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  font-family: 'Poppins', Arial, sans-serif;
}

@media (max-width:600px) {
  .chat-dock {
    grid-template-columns: 1fr;
  }

  .chat-dock .btn {
    width: 100%;
  }
}

.konsul-brand {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  font-family: 'Poppins', Arial, sans-serif;
}

.konsul-tagline {
  margin: 0;
  color: #475467;
  font-size: 14px;
  text-align: center;
  font-family: 'Poppins', Arial, sans-serif;
}

.konsul-category-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3vh;
}

.konsul-cat {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #ccefe8;
  background: #fff;
  color: #0f172a;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', Arial, sans-serif;
}

.konsul-cat.is-active {
  background: #e6f9f3;
  color: #04c99f;
  border-color: #04c99f;
}

.konsul-starter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 920px;
  margin-bottom: 3vh;
}

.starter-card {
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  font-weight: 500;
  line-height: 1.6;
  cursor: pointer;
  font-family: 'Poppins', Arial, sans-serif;
}

.konsul-intro-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  width: min(920px, 96%);
}

.konsul-intro-input input {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  font-family: 'Poppins', Arial, sans-serif;
}

.konsul-intro-input input:focus {
  border-color: #e5e7eb;
  box-shadow: none;
}

.report-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 0 14px;
}

.report-tab {
  appearance: none;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #0f172a;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.report-tab.is-active {
  background: #e6f9f3;
  color: #04c99f;
  border-color: #04c99f;
}

.report-section {
  display: none;
}

.report-section.is-active {
  display: block;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 4px 0 12px;
}

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

@media (max-width: 520px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

.kpi-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
}

.kpi-label {
  color: #64748b;
  font-size: 13px;
  margin-bottom: 6px;
}

.kpi-value {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
}

.report-grid {
  align-items: start;
}

.chart-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 0;
}

.chart-card canvas {
  width: 100% !important;
  height: 320px !important;
  display: block;
  border-radius: 14px 14px 0 0;
}

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

.chart-header h3 {
  margin: 0;
  font-size: 16px;
}

.select-input,
.report-section input[type="month"],
.report-section input[type="date"] {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
}

.report-section input[type="date"]:focus,
.report-section input[type="month"]:focus,
.report-section select:focus,
.report-section .select-input:focus {
  border-color: var(--primary) !important;
  outline: none;
  background: #fff;
}


.konsul-chat {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.chat-list {
  max-height: 54vh;
  overflow: auto;
  padding-right: 6px;
  display: grid;
  gap: 8px;
}

.msg {
  display: flex;
}

.msg.user {
  justify-content: flex-end;
}

.msg .bubble {
  max-width: min(680px, 90%);
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.msg.user .bubble {
  background: #04c99f;
  color: #fff;
  border-top-right-radius: 6px;
}

.msg.ai .bubble {
  background: #f6fbf9;
  color: #0f172a;
  border: 1px solid #e5e7eb;
  border-top-left-radius: 6px;
}

.chat-input-dock {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
}

.chat-input-dock input[type="text"] {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
}

@media (max-width: 640px) {
  .chat-list {
    max-height: 58vh;
  }
}

@media (max-width: 768px) {
  .konsul-intro {
    min-height: 83svh;
    padding: 16px 14px max(18px, env(safe-area-inset-bottom));
  }

  .konsul-brand {
    font-size: 24px;
  }

  .konsul-starter-grid {
    grid-template-columns: 1fr;
  }

  .konsul-intro-input {
    grid-template-columns: 1fr;
  }

  .konsul-intro-input .btn {
    width: 100%;
  }
}

.pos-topbar {
  display: flex;
  align-items: center;
  margin: 8px 0 16px
}

.pos-topbar {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
  margin: 8px 0 16px;
  max-width: 100vw;
}

.pos-topbar .spacer {
  display: none
}

@media (max-width: 600px) {
  .pos-topbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 8px 0 16px;
    align-items: stretch;
  }

  .pos-topbar .input-search {
    max-width: none;
  }

  .pos-topbar #btn-add-customer {
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
  }
}

.pos-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
  align-items: start
}

.pos-products {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 12px
}

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

.pos-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff
}

.pos-card.out-of-stock {
  opacity: .55;
  position: relative
}

.pos-card.out-of-stock .btn {
  background: #9ca3af !important;
  cursor: not-allowed
}

.pos-card.out-of-stock .qty {
  background: #f3f4f6;
  cursor: not-allowed
}

.pos-card .btn-habis {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .5px
}

.pos-card .habis-label {
  display: inline-block;
  color: #fff
}

.pos-card .media {
  background: #f7f7f8;
  aspect-ratio: 4 / 3;
  height: auto;
  position: relative;
  overflow: hidden;
  display: block;
}
.pos-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.pos-card .info {
  padding: 10px 12px
}

.pos-card .name {
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3
}

.pos-card .meta {
  display: flex;
  justify-content: space-between;
  color: #6b7280;
  font-size: 12px
}

.pos-card .actions {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid #eef0f2
}

.pos-card .qty {
  width: 45%;
  padding: 8px 10px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  height: 44px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.pos-card .qty:focus {
  border-color: #22c55e !important;
  outline: none;
}

.pos-card .btn {
  flex: 1;
  min-width: 0;
  border-radius: 10px;
  margin-left: 0;
  margin-right: 0;
  height: 44px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .pos-card .btn {
    padding-left: 0;
    padding-right: 0;
    min-width: 0;
    border-radius: 10px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .pos-card .actions {
    gap: 8px;
  }

  .pos-card .qty {
    max-width: 45%;
  }
}

.pos-cart {
  position: sticky;
  top: 90px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 12px;
  max-height: calc(100svh - 130px);
  display: flex;
  flex-direction: column
}

.pos-cart *:not(h2):not(.cart-head):not(.cart-list):not(.empty):not(.btn-pay) {
  font-size: 15px !important;
}

.pos-cart .cart-head h2,
.pos-cart .cart-head h3,
.pos-cart .cart-head .cart-title {
  font-size: 22px !important;
  font-weight: 700;
}

.pos-cart .cart-head {
  font-size: 16px !important;
}

.pos-cart label,
.pos-cart .chk,
.pos-cart .discount-row,
.pos-cart .tax-row {
  font-size: 15px !important;
}

.pos-cart .cart-total .row,
.pos-cart .cart-total .grand,
.pos-cart .cart-total {
  font-size: 15px !important;
}

.pos-cart .cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px
}

.pos-cart .cart-list {
  flex: 1 1 auto;
  overflow: auto;
  padding-right: 4px;
  margin: 4px 0
}

.pos-cart .empty {
  color: #9ca3af;
  text-align: center;
  padding: 16px 8px
}

.cart-item {
  border: 1px solid #eef0f2;
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 8px
}

.ci-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px
}

.ci-name {
  font-weight: 600
}

.ci-price {
  font-weight: 600;
  color: #111827
}

.ci-qty {
  display: flex;
  align-items: center;
  gap: 8px
}

.ci-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff
}

.ci-rem {
  margin-left: auto;
  border: none;
  background: transparent;
  color: #ef4444
}

.pos-cart .cart-ops {
  border-top: 1px solid #eef0f2;
  margin-top: 6px;
  padding-top: 8px
}

.pos-cart .chk {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0
}

.pos-cart .discount-row,
.pos-cart .tax-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0
}

.pos-cart .num {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px
}

.pos-cart .sel {
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px
}

.pos-cart .pct {
  color: #6b7280
}

.pos-cart .cart-total {
  border-top: 1px dashed #e5e7eb;
  padding-top: 8px;
  margin-top: 8px
}

.pos-cart .cart-total .row {
  display: flex;
  justify-content: space-between;
  margin: 6px 0
}

.pos-cart .cart-total .grand {
  font-size: 16px
}

.btn-pay {
  margin-top: 10px;
  width: 100%
}

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

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

  .pos-cart {
    position: relative;
    top: auto;
    max-height: none
  }

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

@media (max-width: 520px) {
  .pos-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .pos-card {
    flex-direction: row;
    align-items: center;
    padding: 10px;
    gap: 10px;
  }

  .pos-card .media {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    flex: 0 0 56px;
  }

  .pos-card .info {
    padding: 0;
    flex: 1 1 auto;
  }

  .pos-card .name {
    font-size: 15px;
    margin: 0 0 4px;
  }

  .pos-card .meta {
    font-size: 12px;
    gap: 8px;
  }

  .pos-card .actions {
    border-top: none;
    padding: 0;
  }

  .pos-card .qty {
    display: none !important;
  }

  .pos-card .btn {
    width: 44px;
    height: 40px;
    padding: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .pos-card .btn svg {
    width: 18px;
    height: 18px;
  }
}

.zypia-input,
.zypia-input:focus,
.zypia-select,
.zypia-select:focus {
  font-size: 15px;
  border: 1.5px solid #E0E3E6;
  border-radius: 8px;
  background: #fff;
  color: #222;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: none;
  outline: none;
  padding: 8px 12px;
}

.zypia-input:focus,
.zypia-select:focus {
  border-color: #00C48C !important;
}

.zypia-select {
  padding-right: 32px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.zypia-input[disabled],
.zypia-select[disabled] {
  background: #f5f5f5;
  color: #aaa;
  border-color: #eee;
}

.zypia-input::-webkit-input-placeholder {
  color: #aaa;
}

.zypia-input::-moz-placeholder {
  color: #aaa;
}

.zypia-input:-ms-input-placeholder {
  color: #aaa;
}

.zypia-input::placeholder {
  color: #aaa;
}

#pay-cash.zypia-input {
  font-family: 'Poppins', Arial, sans-serif !important;
}

.toolbar .field-row label {
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 0;
  color: #222;
}

.toolbar .field-row input[type="date"] {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 15px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #111;
  padding: 12px 14px;
  outline: none;
  box-sizing: border-box;
  margin-bottom: 2px;
  transition: border-color .15s, box-shadow .15s;
  height: 44px;
}

.toolbar .field-row input[type="date"]:focus {
  border-color: #04c99f;
}