.main-wrapper {
    transform: none !important;
    overflow: visible !important;
}

.modal {
    position: fixed !important;
    z-index: 2000;
}

.modal-backdrop {
    position: fixed !important;
    z-index: 1999;
}

.toastify {
    border-radius: 10px !important;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Kategori di Modal Menu*/
.category-sub {
  color: #7f1d1d;
  font-weight: 600;
  padding-left: 6px;
}

/*toolbar table modal*/
.table-scroll-x {
  overflow-x: auto;
  overflow-y: visible;
  white-space: nowrap;
  scrollbar-width: thin;          /* Firefox */
}

.table-scroll-x::-webkit-scrollbar {
  height: 8px;
}

.table-scroll-x::-webkit-scrollbar-thumb {
  background: #adb5bd;
  border-radius: 4px;
}

.table-scroll-x::-webkit-scrollbar-track {
  background: #f1f3f5;
}

/* Hover smooth */
.toastify:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

/* Close button rounded */
.toast-close {
    border-radius: 50%;
    padding: 4px;
}

.menu-card {
    border-radius: 18px;
    border: 2px solid #eef1f6;
    cursor: pointer;
    transition: all .2s ease;
    background: #fff;
}

.menu-card:hover {
    border-color: #dc2626;
    box-shadow: 0 8px 24px rgba(59, 130, 246, .18);
    transform: translateY(-2px);
}

.menu-img-wrapper {
    background: #f8fafc;
    border-radius: 14px;
    padding: 10px;
    text-align: center;
}

.menu-img {
    height: 90px;
    object-fit: contain;
}

.menu-title {
    font-weight: 600;
    font-size: 14px;
}

.menu-price {
    background: #f1f5f9;
    padding: 6px 6px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
}

.btn-note {
    width: 34px;
    height: 34px;
    border-radius: .95em !important;
    border: 1px solid #e2e8f0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-note:hover {
    background: #e0f2fe;
    border-color: #3b82f6;
}

.search-input {
    padding-left: 32px;
    border-radius: .95em !important;
    height: 55px;
    font-size: 13px;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 13px;
}

.rounded,
.nav-link {
    border-radius: .95em !important;
}

.pos-action-btn {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: all .2s ease;
}

.pos-action-btn i {
    font-size: 16px;
    color: #3b82f6;
}

.pos-action-btn:hover {
    border-color: #3b82f6;
    background: #f0f7ff;
}

/* NAV PILLS BASE */
.nav-pills .nav-link {
    color: #7f1d1d;
    background: #fef2f2;
    border-radius: 10px;
    padding: 10px 16px;
    margin: 0 4px;
    font-weight: 500;
    transition: all .2s ease;
}

/* HOVER */
.nav-pills .nav-link:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* ACTIVE */
.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(220, 38, 38, .35);
}

/* ICON INSIDE PILLS */
.nav-pills .nav-link i {
    margin-right: 6px;
    font-size: 14px;
}

/* DISABLED */
.nav-pills .nav-link.disabled {
    opacity: .5;
    pointer-events: none;
}

/* MOBILE FRIENDLY */
@media (max-width: 576px) {
    .nav-pills .nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* WRAPPER */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 12px;
    font-size: 13px;
}

/* ITEM */
.breadcrumb li.breadcrumb-item {
    font-weight: 500;
}

/* LINK */
.breadcrumb li.breadcrumb-item a {
    color: #991b1b;
    text-decoration: none;
    transition: color .15s ease;
}

/* HOVER */
.breadcrumb li.breadcrumb-item a:hover {
    color: #dc2626;
}

/* ACTIVE */
.breadcrumb li.breadcrumb-item.active {
    color: #dc2626;
    font-weight: 600;
}

/* SEPARATOR */
.breadcrumb li.breadcrumb-item+li.breadcrumb-item::before {
    content: "›";
    color: #fca5a5;
    padding: 0 8px;
}

/* ICON */
.breadcrumb li.breadcrumb-item i {
    margin-right: 4px;
    font-size: 12px;
    color: #dc2626;
}

/* MOBILE */
@media (max-width: 576px) {
    .breadcrumb {
        font-size: 12px;
    }
}

/* ============================= */
/* SWEETALERT2 GLOBAL STYLE */
/* ============================= */

/* Popup Container */
.swal2-popup {
    border-radius: 18px !important;
    padding: 25px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .15);
    animation: swalFadeIn .35s ease-in-out;
}

/* Title */
.swal2-title {
    font-size: 22px;
    font-weight: 600;
    color: #212529;
}

/* Text */
.swal2-html-container,
.swal2-content {
    font-size: 15px;
    color: #6c757d;
}

/* Icon */
.swal2-icon {
    margin: 18px auto;
}

/* ============================= */
/* BUTTONS */
/* ============================= */

.swal2-actions {
    margin-top: 20px;
}

/* Confirm Button - RED */
.swal2-confirm {
    background-color: #dc3545 !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 10px 26px !important;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 6px 15px rgba(220, 53, 69, .4);
    transition: all .25s ease-in-out;
}

/* Hover Confirm */
.swal2-confirm:hover {
    background-color: #bb2d3b !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(220, 53, 69, .45);
}

/* Cancel Button - RED LIGHT */
.swal2-cancel {
    background-color: #f8d7da !important;
    color: #842029 !important;
    border-radius: 10px !important;
    padding: 10px 26px !important;
    font-size: 14px;
    font-weight: 600;
    margin-right: 10px;
    transition: all .25s ease-in-out;
}

/* Hover Cancel */
.swal2-cancel:hover {
    background-color: #f1aeb5 !important;
    transform: translateY(-1px);
}

/* Focus Remove */
.swal2-confirm:focus,
.swal2-cancel:focus {
    box-shadow: none !important;
}

/* ============================= */
/* BACKDROP */
/* ============================= */

.swal2-backdrop-show {
    background: rgba(0, 0, 0, .55) !important;
    animation: swalBackdropFade .3s ease-in-out;
}

/* ============================= */
/* ANIMATIONS */
/* ============================= */

/* Popup Enter */
@keyframes swalFadeIn {
    from {
        opacity: 0;
        transform: scale(.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Popup Exit */
@keyframes swalFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(.9);
    }
}

/* Backdrop Animation */
@keyframes swalBackdropFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ============================= */
/* LOADING STATE */
/* ============================= */

.swal2-loading {
    border-radius: 18px !important;
}

/* ============================= */
/* MOBILE FRIENDLY */
/* ============================= */

@media (max-width: 576px) {
    .swal2-popup {
        width: 90% !important;
    }
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.modal-content {
    border-radius: 18px;
    border: none;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

/* Header & footer ikut rounded */
.modal-header {
    border-bottom: 1px solid #eee;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

.modal-footer {
    border-top: 1px solid #eee;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}

.modal.fade .modal-dialog {
    transform: scale(0.92);
    opacity: 0;
    transition: all 0.25s ease;
}

.modal.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-backdrop.show {
    opacity: 0.55;
}

body.modal-open .brand-logo {
    z-index: 1000 !important;
    pointer-events: none;
    opacity: 0.4;
}

/* ======= Wrapper Column ======= */
.col-2.p-1 {
    padding: 2px !important;
    /* presisi dan compact */
}

/* ======= Card Style ======= */
.table-card {
    border: 2px solid #eef1f6;
    border-radius: 1.25em !important;
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    cursor: pointer;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* compact height */
.table-card-compact {
    padding: 8px;
}

/* hover effect */
.table-card:hover {
    border-color: #dc2626 !important;
    box-shadow: 0 8px 24px rgba(59, 130, 246, .18) !important;
    transform: translateY(-2px);
}


/* disabled state */
.table-card.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.25);
}

/* ======= Card Body ======= */
.table-card .card-body {
    padding: 3px 8px;
}

/* ======= Table Code ======= */
.table-code {
    font-weight: 700;
    font-size: 14px;
    color: #111827;
    letter-spacing: .2px;
    margin-bottom: 6px;
}

/* ======= Badge ======= */
.table-meta {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.table-meta .badge {
    font-size: 11px;
    font-weight: 600;
    color: #111827;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 6px 8px;
    border-radius: 999px;
}

/* ======= Mobile Friendly ======= */
@media (max-width: 768px) {
    .col-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .table-card .table-code {
        font-size: 13px;
    }

    .table-meta .badge {
        font-size: 10px;
        padding: 5px 7px;
    }
}

.menu-card {
    position: relative;
}

/* overlay HABIS */
.menu-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;                
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;

  pointer-events: none;     
}

/* badge HABIS */
.menu-mask span {
  background: #dc2626;
  color: #fff;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 999px;
  z-index: 2;
}

.menu-card .switch {
  position: absolute;
  bottom: 40px;
  right: 12px;
  z-index: 3;             
}

.menu-card.disabled {
    /* pointer-events: none; */
    opacity: 0.85;
}

.menu-card.disabled .menu-img {
    filter: grayscale(100%);
}


.quantity-group {
    width: 130px;
}

.quantity-group .btn {
    width: 42px;
    height: 42px;
    padding: 0;
    font-weight: 600;

    background-color: rgb(220, 38, 38);
    border-color: rgb(220, 38, 38);
    color: #fff;

    transition: all 0.15s ease;
}

/* Hover */
.quantity-group .btn:hover {
    background-color: rgb(185, 28, 28);
    border-color: rgb(185, 28, 28);
}

/* Active / Click */
.quantity-group .btn:active,
.quantity-group .btn:focus {
    background-color: rgb(153, 27, 27);
    border-color: rgb(153, 27, 27);
    box-shadow: none;
    transform: scale(0.95);
}

/* Input */
.quantity-group .qty-input {
    width: 46px !important;
    height: 42px !important;
    padding: 0;
    font-weight: 600;
    text-align: center;
}

/* Input focus */
.quantity-group .qty-input:focus {
    border-color: rgb(185, 28, 28);
    box-shadow: 0 0 0 0.15rem rgba(220, 38, 38, 0.25);
}

.pos-modal-force {
    padding: 0 !important;
}

.pos-modal-force .modal-dialog,
.pos-modal-force .pos-modal-dialog-force {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
}

.pos-modal-force .modal-content,
.pos-modal-force .pos-modal-content-force {
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
}

.pos-modal-force .pos-modal-body-force,
.pos-modal-force .modal-body {
    height: calc(100vh - 120px);
    /* header + footer */
    overflow-y: auto !important;
}

/* Hilangkan efek center */
.pos-modal-force .modal-dialog-centered {
    min-height: 100vh !important;
    align-items: stretch !important;
}

.pos-action-btn.bg-warning i {
    color: #212529 !important;
    /* text-dark */
}

/* dropdown */
#notifDropdown {
  width: 380px;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.12);
}

#notifDropdown .dropdown-header {
  padding: 14px 16px;
  background: #fff;
}

#notifList {
  background: #fff;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  border-top: 1px solid rgba(0,0,0,.04);
  transition: background .15s ease, transform .15s ease;
}

.notif-item:hover {
  background: rgba(220,38,38,.05);
}

.notif-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 6px;
  background: rgba(220,38,38,.9);
  box-shadow: 0 0 0 4px rgba(220,38,38,.12);
  flex: 0 0 auto;
}

.notif-item.is-read .notif-dot {
  background: rgba(148,163,184,.8);
  box-shadow: 0 0 0 4px rgba(148,163,184,.12);
}

.notif-body { flex: 1; min-width: 0; }
.notif-title { font-weight: 800; font-size: 14px; color: #0f172a; line-height: 1.2; }
.notif-meta { display:flex; justify-content:space-between; gap: 10px; margin-top: 4px; }
.notif-type { font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: .04em; }
.notif-time { font-size: 11px; color: #94a3b8; white-space: nowrap; }

.notif-msg { margin-top: 6px; font-size: 14px; color:#334155; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* badge bell */
.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;

  min-width: 22px;
  height: 22px;
  padding: 0 7px;

  border-radius: 999px;
  background: #dc2626;
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .02em;

  box-shadow: 0 6px 14px rgba(220,38,38,.45);
}

.notif-empty {
  padding: 18px 16px;
  color: #8a8fa3;
  font-size: 14px;
}

.notif-header-title {
  font-size: 16px;     
  font-weight: 800;
  color: #0f172a;
}

.notif-title {
  font-weight: 700;   
  font-size: 14px;      
  color: #0f172a;
  line-height: 1.25;
}

#notifDropdown .dropdown-header {
  border-bottom: 1px solid rgba(0,0,0,.06);
}

#notifDropdown {
  border-radius: 18px;
  border: none;
  box-shadow: 0 22px 60px rgba(15,23,42,.18);
}

.notif-item {
  padding: 14px 16px;
}

/* sembunyikan teks/angka */
#notifBadge {
  font-size: 0 !important;
  line-height: 0 !important;
  padding: 0 !important;
}

/* ubah jadi dot */
#notifBadge {
  position: absolute;
  top: 3px;
  right: 2px;

  width: 13px;
  height: 13px;
  min-width: 13px;

  border-radius: 999px;
  background: #dc2626;

  box-shadow: 0 0 0 4px rgba(220,38,38,.18);
}

/* ===============================
   GREETING HEADER
================================ */

.info-fullname-greeting {
    font-size: 1.4rem;
    font-weight: 600;
    color: #111827; /* dark slate */
    margin-bottom: 4px;
    letter-spacing: .2px;
}

/* wadah judul + jam (kiri header) */
.greet-wrap{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;               /* penting biar truncation jalan */
}

/* judul */
.greet-wrap .info-fullname-greeting{
  font-size:1.3rem;
  font-weight:700;
  color:#111827;
  line-height:1.2;
  margin:0;

  /* biar gak makan tempat kanan */
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;        /* judul 1 baris */
}

/* jam realtime */
.greet-wrap #realtimeClock{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:.95rem;
  font-weight:600;
  color:#6b7280;
  line-height:1.2;

  white-space:nowrap;        /* jam jangan pecah */
}

/* dot merah (lebih kecil & rapi) */
.greet-wrap #realtimeClock::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:999px;
  background:#ef4444;
  opacity:.85;
}

/* kalau layar kecil: judul boleh 2 baris biar gak kepotong parah */
@media (max-width:576px){
  .greet-wrap .info-fullname{
    white-space:normal;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
  }
}

/* ===== GLOBAL FORM CONTROL RED BORDER ===== */
.form-control,
.form-select {
  border-width: 1.5px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

/* hover */
.form-control:hover,
.form-select:hover {
  border-color: #dc2626; /* merah */
}

/* focus / active / click */
.form-control:focus,
.form-control:active,
.form-select:focus,
.form-select:active {
  border-color: #dc2626 !important;
  box-shadow: none !important; /* hilangkan glow biru */
  outline: none !important;
}

/* time / date / number (Chrome) */
input[type="time"]:focus,
input[type="date"]:focus,
input[type="number"]:focus {
  border-color: #dc2626 !important;
  box-shadow: none !important;
}

/* disabled tetap netral */
.form-control:disabled,
.form-select:disabled {
  border-color: #e5e7eb;
}

/* ===== SWITCH WRAPPER ===== */
  .switch {
      position: relative;
      display: inline-block;
      width: 40px;
      height: 20px;
  }

  /* hide default checkbox */
  .switch input {
      opacity: 0;
      width: 0;
      height: 0;
  }

  /* slider */
  .slider {
      position: absolute;
      cursor: pointer;
      inset: 0;
      background-color: #d1d5db;
      transition: 0.2s;
      border-radius: 20px;
  }

  /* slider */
  .switch .slider {
      position: absolute;
      inset: 0;
      background-color: #e5e7eb;
      border-radius: 20px;
      cursor: pointer;
      transition: background-color .2s ease;
  }

  /* knob */
  .switch .slider::before {
      content: "";
      position: absolute;
      height: 16px;
      width: 16px;
      left: 2px;
      top: 2px;
      background-color: #fff;
      border-radius: 50%;
      transition: transform .2s ease;
  }

  /* 🔥 PASTIKAN TIDAK ADA TEKS */
  .switch .slider::after {
      content: none !important;
  }

  /* checked */
  .switch input:checked+.slider {
      background-color: #16a34a;
  }

  .switch input:checked+.slider::before {
      transform: translateX(20px);
  }

  /* disabled */
  .switch input:disabled+.slider {
      opacity: .5;
      cursor: not-allowed;
  }

.deznav-scroll,
.fixed-content-box,
.sidebar-scroll,
#menu {
  max-height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}