body {
  margin: 10px;
  padding: 0;
  font-family: 'Segoe UI', Roboto, Arial;
  background-color: #071733;
  color: #1e2329;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.659);
  text-align: center;
}

td {
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.659);
  text-align: center;
}

th {
  background: #233a6a;
  color: #fed054;
}

td {
  background-color: #ebeae8;
  color: #000;
}

#modalForm {
  display: none;
  background: #2a2f35;
  padding: 20px;
  border-radius: 8px;
  width: 300px;
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px #000;
  z-index: 99999 !important;
}

td.nama {
  max-width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
}

h4 {
  text-align: center;
  margin-bottom: 10px;
  margin-top: 30px;
  color: #fed054;
}

h5 {
  text-align: center;
  margin-bottom: 10px;
  margin-top: 10px;
  color: #fed054;
}

h6 {
  text-align: center;
  margin-bottom: 10px;
  margin-top: 10px;
  color: #c6c6c6;
}

.container {
  max-width: 600px;
  margin: 20px auto;
  padding: 10px;
}

.menu-container {
  display: flex;
  justify-content: center;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 20px;
  width: max-content;
  margin: 0 auto;
}

.menu-btn {
  width: 90px;
  height: 90px;
  background-color: #ffc107;
  border: none;
  border-radius: 15px;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: black;
}

.menu-btn i {
  font-size: 24px;
  margin-bottom: 8px;
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
}

input,
button,
select {
  font-weight: bold;
  text-align: center;
  width: 100%;
  padding: 12px;
  font-size: 16px;
  margin-bottom: 3px;
  margin-top: 3px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  border: 3px solid rgba(255, 255, 255, 0.35);
  color: #ebeae8;
  box-sizing: border-box;
}

input::placeholder {
  text-align: center;
  color: #aaa;
}

button {
  border: 1px solid #fed054;
  border-radius: 8px;
      background:linear-gradient(#ffe680,#ffcc00);
      color:#04003a;      color: #1e2329;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
  height: 50px;
            box-shadow:
        0 2px 0 #d1a700,
        0 4px 10px rgba(0,0,0,0.18),
        inset 0 2px 4px rgba(255,255,255,0.45);
    transition:0.2s;
}

button:hover {
  transform: scale(1.05);
}

.table-container {
  max-height: 50vh;
  min-height: 50vh;
  /* Tambahkan ini agar langsung terlihat */
  overflow-y: auto;
  margin-top: 10px;
  background-color: #e3e3e3;
  border: 2px solid #444;
  position: relative;
  z-index: 1
}

.total-box {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 10px;
  background-color: #3b4046;
  padding: 15px;
  border-radius: 8px;
}

.red-btn {
  background-color: #e74c3c;
  /* Merah */
  color: white;
  border: none;
}

.red-btn:hover {
  background-color: #c0392b;
  /* Merah lebih gelap saat hover */
}

.icon-wrapper {
  position: relative;
  flex: 1 1 22%;
  min-width: 120px;
}

.icon-wrapper label {
  display: block;
  margin-bottom: 5px;
  text-align: center;
  color: #ffec85;
  font-size: 12px;
}

.input-container {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 10px;
  padding-left: 5px;
  top: 50%;
  transform: translateY(-50%);
  color: #f5d216;
  font-size: 16px;
  pointer-events: none;
}


.total-box input[type="text"] {
  text-align: center;
  font-weight: bold;
  color: #ffec85;
  background-color: #3b4046;
  border: 1px solid #555;
  border-radius: 6px;
  height: 50px;
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
}

.keyboard-open {
  transform: translateY(-200px);
  transition: transform 0.3s;
}

.flex-btns {
  display: flex;
  justify-content: space-between;
  /* Tombol tersebar merata secara horizontal */
  gap: 10px;
  /* Memberikan jarak antar tombol */
  margin-top: 20px;
  flex-wrap: wrap;
  /* Memastikan tombol bisa berpindah ke baris baru jika ruang terbatas */
}

.flex-btns button:hover {
  background-color: #f5d216;
}

.flex-btns button {
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.2s ease;
  border: 1px solid #ddd;
  border-radius: 8px;
  height: 60px;
  font-size: 26px;
  flex: 1;
  min-width: 50px;
  padding: 10px;
  text-align: center;
  box-sizing: border-box;
}

.row-inline {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.row-inline .form-group {
  flex: 1;
}

.row-inline input,
.row-inline select {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  text-align: center;
  background-color: #1a1a1a;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  box-sizing: border-box;
}

@media (max-width: 600px) {}

.dropdown-container {
  position: relative;
}

#dropdownBtn {
  width: 100%;
  height: 87%;
  padding: 10px;
  font-size: 16px;
  background-color: #f5d216;
  color: black;
  border: 1px solid #666;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #333;
  border: 1px solid #555;
  border-radius: 4px;
  display: none;
  z-index: 10;
  width: 100%;
}

.dropdown-menu div {
  padding: 10px;
  cursor: pointer;
  color: #fff;
}

.dropdown-menu div:hover {
  background-color: #f5d216;
  color: black;
}

/* ============================= */
/*        SWEETALERT2            */
/* ============================= */
.swal2-popup {
  background: rgba(30,45,80,0.35) !important;
  border: 2px solid rgba(90,120,180,0.4);
  border-radius: 16px;
  color: #fff !important;
  font-size: 16px;
  max-width: 90% !important;
  margin: 0 auto !important;
  box-shadow: 0 100px 28px rgba(0,0,0,0.35);
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

.swal2-title {
  font-size: 20px;
  color: #fff !important;
  text-align: center;
}

.swal2-input {
  width: 100%;
  max-width: 250px;
  margin: 8px auto;
  background: #1e2329 !important;
  color: #fff !important;
  border: 1px solid #444 !important;
  padding: 10px 12px;
  border-radius: 8px;
}

/* Tombol SweetAlert */
.swal2-styled {
  padding: 14px 26px !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  border-radius: 14px !important;
  backdrop-filter: blur(10px) !important;
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.35),
    inset 0 5px 8px rgba(255, 255, 255, 0.22),
    inset 0 -5px 8px rgba(0, 0, 0, 0.30);
  transition: .22s !important;
}

.swal2-styled:hover { transform: translateY(-3px); }
.swal2-styled:active { transform: translateY(3px); }

/* Confirm (Hijau) */
.swal2-confirm {
  background: rgba(40,150,80,0.45) !important;
  border: 2px solid rgba(120,230,160,0.5) !important;
}

/* Deny (Merah) */
.swal2-deny {
  background: rgba(180,40,60,0.45) !important;
  border: 2px solid rgba(255,150,150,0.5) !important;
}

/* Cancel (Hitam) */
.swal2-cancel {
  background: rgba(20,20,20,0.45) !important;
  border: 2px solid rgba(180,180,180,0.4) !important;
}

/* Hilangkan animasi success */
.swal2-success-ring,
.swal2-success-fix,
.swal2-success-circular-line-left,
.swal2-success-circular-line-right {
  display: none !important;
}

.status-btn,
.shift-btn {
  background-color: rgb(181, 181, 181);
  color: #1a1a1a;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease;
}

.status-btn:hover,
.shift-btn:hover {
  background-color: #ffc400;
}


.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 10px 15px 0px 15px;
}

.carousel-image {
  width: 100%;
  display: none;
}

.carousel-image.active {
  display: block;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 30px;
  padding: 10px 16px;
  cursor: pointer;
  z-index: 2;
  border-radius: 4px;
}

.carousel-button:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.carousel-button.left {
  left: 10px;
}

.carousel-button.right {
  right: 10px;
}

.rincian {
  display: none;
}

.rincian-popup {
  max-width: 800px;
  /* Lebar maksimal popup */
  text-align: center;
  overflow-x: auto;
}

.rincian-popup table {
  width: 100%;
  border-collapse: collapse;
}

.rincian-popup th,
.rincian-popup td {
  padding: 8px;
  text-align: center;
}

.rincian-popup th {
  background-color: #222;
  color: yellow;
}

.rincian-popup td {
  background-color: #fff;
  color: #000;
}