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

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

/* ============================= */
/*            BUTTONS            */
/* ============================= */
button {
  border: none;
  border-radius: 8px;
  background: linear-gradient(#ffe680, #ffcc00);
  color: #1e2329;
  font-weight: bold;
  text-align: center;
  height: 50px;
  transition: .2s;
  box-shadow:
    0 6px 0 #d1a700,
    0 4px 10px rgba(0, 0, 0, 0.18),
    inset 0 2px 4px rgba(255, 255, 255, 0.45);
}

button:hover {
  transform: translateY(-3px);
  box-shadow:
    0 9px 0 #d1a700,
    0 6px 14px rgba(0, 0, 0, 0.24),
    inset 0 2px 5px rgba(255, 255, 255, 0.5);
}

button:active {
  transform: translateY(2px);
  box-shadow:
    0 3px 0 #d1a700,
    0 2px 6px rgba(0, 0, 0, 0.22),
    inset 0 4px 6px rgba(0, 0, 0, 0.25);
}

/* ============================= */
/*            TABLE              */
/* ============================= */
.table-container {
  max-height: 45vh;
  min-height: 45vh;
  overflow-y: auto;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

table {
  width: 100%;
  table-layout: fixed;
  font-size: 16px;
  border-collapse: collapse;
  background: rgb(236, 236, 236);
}

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

table th,
table td {
  padding: 2px 4px;
  font-size: 12px;
  height: 30px;
  line-height: 1.2;
}

thead th {
  position: sticky;
  top: 0;
  background: #233a6a;
  color: #fed054;
  z-index: 1;
}

table td input[type="text"],
table td input[type="number"] {
  font-size: 14px;
  padding: 3px 5px;
  height: 30px;
  text-align: center;
  box-sizing: border-box;
}

/* Kolom-kolom */
table th:nth-child(1),
table td:nth-child(1) { width: 30px; }
table th:nth-child(2),
table td:nth-child(2) { width: 30px; }
table th:nth-child(3),
table td:nth-child(3) { width: 30px; }
table th:nth-child(4),
table td:nth-child(4) { width: 30px; }
table th:nth-child(5),
table td:nth-child(5) { width: 20px; }
table th:nth-child(6),
table td:nth-child(6) { width: 10px; }

/* Input dalam tabel */
#tabelBody input.nama,
#tabelBody input.harga {
  font-size: 14px;
  padding: 3px 5px;
  height: 35px;
  width: 100%;
  border-radius: 0;
  text-align: center;
  box-sizing: border-box;
}

#tabelBody input.coret {
  transform: scale(1);
  display: block;
  margin: 0 auto;
  width: 18px;
  height: 18px;
}

/* ============================= */
/*         TOTAL BOX             */
/* ============================= */
.total-box {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  justify-content: space-between;
  background: #233a6a;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.35);
  border: 4px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

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

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

.input-container {
  position: relative;
}

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

.total-box input[type="text"] {
  padding-left: 30px;
  font-weight: bold;
  height: 50px;
  width: 100%;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  border: 3px solid rgba(255, 255, 255, 0.35);
  color: #fed054;
  text-align: center;
  box-sizing: border-box;
}

.total-box input[type="tel"] {
  height: 50px;
  width: 100%;
  background: #f5f5f5;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
  color: #000;
  font-weight: bold;
}

/* ============================= */
/*        KEYBOARD OPEN          */
/* ============================= */
.keyboard-open {
  transform: translateY(-200px);
  transition: .3s;
}

/* ============================= */
/*         FLEX BUTTONS          */
/* ============================= */
.flex-btns {
  display: flex;
  gap: 10px;
  padding: 20px;
  margin-top: 20px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.flex-btns button {
  flex: 1;
  height: 60px;
  font-size: 26px;
  border-radius: 8px;
  border: 1px solid #fed054;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  transition: .2s;
}

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

/* ============================= */
/*       INLINE FORM ROW         */
/* ============================= */
.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: #1a1a1a;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  box-sizing: border-box;
}

/* ============================= */
/*      DROPDOWN CUSTOM          */
/* ============================= */
.dropdown-container { position: relative; }

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

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

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

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

/* ============================= */
/*         HEADERS               */
/* ============================= */
h3, h4 {
  text-align: center;
  margin: 20px 0 10px;
  color: #fed054;
}

/* ============================= */
/*        DELETE BUTTON          */
/* ============================= */
.btn-action {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(#ff6b6b, #d62828);
  color: #fff;
  transition: .2s;
  box-shadow:
    0 4px 0 #a81818,
    0 5px 10px rgba(0,0,0,0.25),
    inset 0 2px 4px rgba(255,255,255,0.35);
}

.btn-action:hover {
  transform: translateY(-3px);
  box-shadow:
    0 6px 0 #a81818,
    0 8px 14px rgba(0,0,0,0.30),
    inset 0 2px 4px rgba(255,255,255,0.45);
}

.btn-action:active {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 #a81818,
    0 3px 8px rgba(0,0,0,0.28),
    inset 0 3px 5px rgba(0,0,0,0.4);
}

td .btn-action {
  margin: 0 auto;
  background: linear-gradient(#ff7a7a, #d62828);
  box-shadow: 0 4px 0 #a61d1d;
}

/* ============================= */
/*        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;
}
