/* khusus swal button biar tidak transparan */
.swal2-confirm,
.swal2-cancel {
  background-color: var(--swal2-confirm-button-background-color, #e3342f) !important;
  color: #fff !important;
  background-image: none !important;
}
.swal2-confirm {
  background-color: #e3342f !important;
  border: none !important;
  color: #fff !important;
}
.mr-0-custom {
  margin-right: 0.4 !important;
}
.text-left {
  text-align: left;
}
.swal2-cancel {
  background-color: #6c757d !important; /* abu-abu */
  border: none !important;
  color: #fff !important;
}
.whitespace-nowrap {
  white-space: nowrap;
}
.h-modal {
  height: 90%;
}
.mx-auto {
  margin-inline: auto;
}
.sidebar-menu-text {
  font-size: 0.8rem !important;
}
.min-w-800px {
  min-width: 800px;
}
.apexcharts-yaxis {
  --tw-translate-x: 55px !important;
}
/* aktifkan kembali indikator time picker */
input[type="time"] {
  position: relative;
  padding-right: 35px;
}

/* bikin icon bawaan tetap aktif */
input[type="time"]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0; /* transparan tapi tetap bisa dipencet */
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* taruh icon custom di atasnya */
input[type="time"]::after {
  content: "🕒"; /* atau SVG seperti tadi */
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none; /* biar kliknya tetap masuk ke indicator bawaan */
}

/* custom css untuk halaman kasir */
.logo-kasir {
  width: 80%;
  object-fit: cover;
  border-radius: 50%;
}

.content-produk {
  width: 75%;
  padding: 20px;
}
.cart-produk {
  width: 25%;
  background-color: #ffffff;
  padding: 20px;
  border-left: 1px solid #ddd;
  border-top: 1px solid #ddd;
  height: calc(100vh - 4.5rem);
  overflow-y: auto; /* scroll jika konten melebihi tinggi */
}

.inner-diskon{
  margin-left: 5px;
}

.produk-header {
  border-bottom: 1px solid rgb(235, 236, 239);
  padding-bottom: 10px;
}

.produk-body {
  border-bottom: 1px solid rgb(235, 236, 239);
  padding-bottom: 10px;
  padding-top: 10px;
}

.product-placeholder {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: 1px solid #ddd;
  margin-right: 10px;
}

.button-quantity{
  border: 1px solid #ddd;
  line-height: 1 !important;
}

.diskon {
  text-decoration: line-through;
  font-style: italic;
}
.total-tagihan {
    border-top: 1px solid rgb(235, 236, 239);
    border-top-style: dashed;
    border-bottom: 1px solid rgb(235, 236, 239);
}

.dropdown-more {
    right: 0;
    bottom: 3rem;
}

/* Avatar Upload Styles */
.avatar-upload {
    position: relative;
    max-width: 200px;
    margin: 0 auto;
}

.avatar-upload .avatar-edit {
    position: absolute;
    right: 12px;
    bottom: 0;
    z-index: 1;
}

.avatar-upload .avatar-edit input {
    display: none;
}

.avatar-upload .avatar-edit label {
    display: inline-block;
    width: 34px;
    height: 34px;
    margin-bottom: 0;
    border-radius: 100%;
    background: #FFFFFF;
    border: 1px solid transparent;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    font-weight: normal;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-upload .avatar-edit label:hover {
    background: #f1f1f1;
    border-color: #d6d6d6;
}

.avatar-upload .avatar-preview {
    width: 192px;
    height: 192px;
    position: relative;
    border-radius: 100%;
    border: 6px solid #F8F8F8;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.avatar-upload .avatar-preview > div {
    width: 100%;
    height: 100%;
    border-radius: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* Responsive */
@media (max-width: 768px) {
    .avatar-upload .avatar-preview {
        width: 150px;
        height: 150px;
    }
}

.ml-2 {
    margin-left: 0.5rem !important;
}