/* the whole background color of the pos system*/

body {
  background-color: #FAF3D0; /* gold terang */
  color: #121212; /* ivory */
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.login-box {
  background: #5C2E00;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(245, 197, 24, 0.25); /* #F5C518 */
  width: 320px;
}

h2 {
  text-align: center;
  color: #121212;
}

.login-box input[type="text"],
.login-box input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  margin-bottom: 15px;
  border: none;
  border-radius: 6px;
  background: #FFF8E7;
  color: #911F27;
}

.login-box button {
  width: 100%;
  padding: 10px;
  background-color: #FFD700;
  border: none;
  color: #5C2E00;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

.mammon-layout {
  display: flex;
  min-height: 100vh;
}

:root {
  --gold: #FFD700;
  --black: #121212;
  --white: #FFFFFF;
  --marron : #911F27;
  --goldenrod : #DAA520;
  --amber : #FFBF00;
}

.dashboard-wrapper {
  padding: 2rem;
  min-height: 100vh;
  box-sizing: border-box;
}

.dashboard-box {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

.dashboard-judul {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.sidebar {
  background-color: #FFD700;
  color: #121212;
  width: 170px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  padding: 1.5rem 1rem;
  padding-bottom: 50rem;
  box-shadow: 2px 0 8px rgba(245, 197, 24, 0.2);
  overflow-y: auto;
}

.sidebar nav::after {
  content: "";
  display: block;
  height: 10rem; /* Spacer bawah */
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  margin: 1.5rem 0;
}

.sidebar ul li > a {
  color: #121212;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  display: block;
}

.sidebar ul li > a:hover {
  color: #121212;
}

.sidebar ul li ul {
  margin-top: 0.5rem;
  padding-left: 1rem;
}

.sidebar ul li ul li a {
  font-size: 0.85rem;
  font-weight: normal;
  color: #121212;
  display: block;
  margin: 0.3rem 0;
}

.sidebar ul li ul li a:hover {
  color: #121212;
}

.content {
  background-color: #FAF3D0; /* gold */
  min-height: 100vh;
  padding: 0rem 0rem 0rem 0rem;
  margin-left: 200px;  /* ➕ ini wajib untuk menghindari sidebar */
  box-sizing: border-box;
  overflow-x: auto;  /* ⬅️ ini yang belum ada, penting untuk scroll horizontal */
  position: relative; /* ⬅️ bantu positioning agar tidak nabrak sidebar */
}

.menu-label {
  font-weight: bold;
  color: #121212; /* opsional kalau mau warna emas juga */
}

.judul-produk {
  text-align: left;
  margin-bottom: 1rem;
  font-size: 2rem;
  color: #121212;
}

.main-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
}

.produk-table-outer-wrapper {
  overflow-x: auto;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
/* Scroll bar tampak lebih smooth */
.produk-table-outer-wrapper::-webkit-scrollbar {
  height: 10px;
}

.produk-table-outer-wrapper::-webkit-scrollbar-thumb {
  background: #FFD700;
  border-radius: 5px;
}

.produk-table {
  min-width: 1200px;  /* Atur sesuai kebutuhan kolom */
  width: max-content; /* Penting untuk scroll horizontal */
  table-layout: auto;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.9rem;
  background-color: transparent;
}


.produk-table th {
  background-color: #FFD700; /* header gold shining */
  color: #121212;            /* text hitam */
  text-align: left;
  padding: 10px;
  border: 1px solid #FFFFFF;
  white-space: nowrap;
  word-wrap: break-word;
}

.produk-table td {
  padding: 10px;
  border: 1px solid #FFFFFF;
  color: #121212;
  white-space: nowrap;
  word-wrap: break-word;
  text-align: left;
  vertical-align: top;
}

.produk-table th:nth-child(1),
.produk-table td:nth-child(1) { width: 100px; }  /* Kode */
.produk-table th:nth-child(2),
.produk-table td:nth-child(2) { width: 200px; }  /* Nama */
.produk-table th:nth-child(3),
.produk-table td:nth-child(3) { width: 120px; }  /* Kategori */
.produk-table th:nth-child(4),
.produk-table td:nth-child(4) { width: 80px; }   /* Stok */
.produk-table th:nth-child(5),
.produk-table td:nth-child(5) { width: 100px; }  /* Satuan */
.produk-table th:nth-child(6),
.produk-table td:nth-child(6),
.produk-table th:nth-child(7),
.produk-table td:nth-child(7),
.produk-table th:nth-child(8),
.produk-table td:nth-child(8),
.produk-table th:nth-child(9),
.produk-table td:nth-child(9) { width: 120px; /* Harga */}
.produk-table th:nth-child(10),
.produk-table td:nth-child(10),
.produk-table th:nth-child(11),
.produk-table td:nth-child(11) { width: 100px; /* Qty & Min Stk */}
.produk-table th:nth-child(12),
.produk-table td:nth-child(12) { width: 80px; }  /* Berat */
.produk-table th:nth-child(13),
.produk-table td:nth-child(13) { width: 120px; } /* Dimensi */
.produk-table th:nth-child(14),
.produk-table td:nth-child(14) { width: 120px; } /* Barcode */
.produk-table th:nth-child(15),
.produk-table td:nth-child(15) { width: 100px; } /* Status */
.produk-table th:nth-child(16),
.produk-table td:nth-child(16) { width: 120px; } /* Kode Accurate */
.produk-table th:nth-child(17),
.produk-table td:nth-child(17) { width: 80px; }  /* Foto */


.produk-table tr:nth-child(even) {
  background-color: #FFF8E7;  /* ivory terang */
  color: #121212;             /* teks tetap wine */
}

.produk-table tr:nth-child(odd) {
  background-color: #FAF3D0;  /* gold lembut */
  color: #121212;
}

.produk-table-wrapper {
  overflow-x: auto;
  white-space: nowrap;
  width: 100%;
}

.produk-nama-link {
  color: #911F27; /* Putih */
  text-decoration: none;
}

.produk-nama-link:hover {
  color: #FFD700; /* Glow emas saat hover */
  text-decoration: underline;
}

.produk-upload-wrapper {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.produk-row-clickable:hover {
  background-color: #FFEFC7 !important;
}

.produk-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  margin-bottom: 1.5rem;
}

.produk-grid-wrapper {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 2rem;
}

.produk-daftar-kolom,
.produk-form-kolom {
  background: #5C2E00;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(255, 215, 0, 0.2);
}

.produk-wrapper {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.produk-list-panel {
  flex: 1;
}

.produk-form-panel {
  flex: 1;
  background: #fdfdfd;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.produk-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.produk-toolbar-left {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.input-search-produk {
  padding: 6px 10px;
  font-size: 14px;
  width: 250px;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-align: left !important;    /* ⬅️ Rata kiri */
  direction: ltr;
  margin-bottom: 0.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.3rem;
  font-weight: bold;
  color: #FFD700;
  font-size: 0.9rem;
}

.form-group input,
.form-group select {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #FFF8E7;
  color: #911F27;
  font-size: 0.9rem;
}

.form-error {
  margin-top: 4px;
  font-size: 0.8rem;
  color: #ff4d4d;
}

.produk-warning {
  background-color: #FFEEEE;
  color: #911F27;
}

.btn-invproduk {
  background-color: #FFBF00;
  border: none;
  color: #121212;
  padding: 8px 12px;
  margin-right: 0.5rem;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.7rem;
  cursor: pointer;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  min-width: 150px;
}

.btn-invproduk:hover {
  background-color: #e6c200;
}

.btn-sm {
  font-size: 0.85rem;
  padding: 6px 10px;
}

.btn-lg {
  font-size: 1.1rem;
  padding: 10px 16px;
}

/*.tab-header {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #FFD700;
}*/

/* Tab tombol */
.tab-button {
  background: #FFD700;
  color: #121212;
  font-weight: bold;
  padding: 0.8rem 1rem;
  border-top-left-radius: 0px;
  border-top-right-radius: 30px;
  border: 0px solid #ccc;
  border-bottom: none;
  cursor: pointer;
  z-index: 3;
  position: relative;
}

.tab-button {
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-transform: capitalize; /* bisa uppercase, capitalize, etc. */
}

.tab-button.active {
  background: #FFFFFF;
  color: #121212;
  font-weight: bold;
}

.tab-button.active {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.tab-close {
  margin-left: 8px;
  font-size: 0.9rem;
  color: #911F27;
  cursor: pointer;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Container putih melayang */
.tab-wrapper {
  background-color: white;
  border-radius: 0 0 10px 10px;
  padding: 0rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1;
  margin-top: 1rem; /* <--- ini penting */
  width: 100%;               /* biar full container */
  max-width: 100%;          
}

/* Tab judul */
.tab-bar {
  display: flex;
  gap: 0rem;
  padding-left: 0rem;
  margin-bottom: -1rem;
  z-index: 2;
  position: relative;
  background-color: transparent; /* jangan putih */
}

/* Kontainer konten */
.tab-container {
  background-color: #ffffff;
  padding: 1rem;
  z-index: 1;
  width: calc(100vw - 200px);
  overflow-x: hidden;
  box-sizing: border-box;
  /*min-height: calc(100vh - 100px);*/
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}

.tabel-utama-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tabel-judul {
  font-size: 1.2rem;
  font-weight: bold;
  color: #121212;
  margin: 0.5rem 0;
}

.tabel-aksi button {
  margin-left: 0.5rem;
  margin-bottom: 1rem;
}

.tabel-utama {
  width: 100%;
  min-width: 50px;
  border-collapse: collapse;
  font-size: 0.95rem;
  table-layout: auto;
}

.tabel-utama th,
.tabel-utama td {
  padding: 5px 10px;
  min-width: 50px;
  text-align: left;
  border: 1px solid #ffffff;
}

.tabel-utama thead {
  background-color: #FFD700;
  color: #5C2E00;
  font-weight: bold;
}

.tabel-utama tbody tr:nth-child(even) {
  background-color: #FFF8E7;
  color: #121212;
}

.tabel-utama tbody tr:nth-child(odd) {
  background-color: #FAF3D0;
  color: #121212;
}

.tabel-utama tr:hover {
  background-color: #660000;
  color: white;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tabel-wrapper {
  overflow-x: auto;
  max-width: 100%;
}

body::after {
  content: "🔥 MammonCSS Loaded";
  display: block;
  color: white;
  background: #5C2E00;
  padding: 4px;
  text-align: center;
}

/* Form - row untuk inventory.tambahproduk */

.produk-detailimg {
  border: 2px solid #f2ca46;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  background-color: #fff9e6;
}

.produk-detailimg legend {
  font-weight: bold;
  color: #121212;
  font-size: 1rem;
  padding: 0 10px;
}

.produk-image-wrapper {
  text-align: center;
}

.produk-image {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 6px;
}

.form-rowtmbhproduk {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  gap: 2rem;
}

.form-controltmbhprod {
  text-align: left !important;
  padding-left: 8px;
  box-sizing: border-box;
}

/*.form-rowtmbhproduk {
  display: flex;
  flex-wrap: wrap;
  
  margin-bottom: 1.5rem;
}*/

.form-rowtmbhproduk label {
  width: 150px;
  font-weight: bold;
  color: #121212; /* Mammon Gold */
}

.form-rowtmbhproduk input{
  flex: none;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #ead79b;
  color: #121212;
  height: 32px;         /* tinggi select */   
  font-size: 1rem;      /* kecilin font */
  text-align: left !important;
}

.form-rowtmbhproduk select {
  flex: none;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #f2ca46;
  color: #121212;
  height: 40px;         /* tinggi select */   
  font-size: 1rem;      /* kecilin font */
  text-align: left;
}

.form-item-tmbhproduk {
  display: flex;
  flex-direction: column;
  flex: 1; /* Biar lebarnya rata dalam row */
  min-width: 200px;
  margin-bottom: 0.8rem;
}

.form-item-tmbhproduk label {
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.form-item-tmbhproduk input {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  height: 32px;         /* tinggi select */   
  font-size: 1rem;      /* kecilin font */
  text-align: left !important;
}

.form-item-tmbhproduk select {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  height: 40px;         /* tinggi select */   
  font-size: 1rem;      /* kecilin font */
  text-align: left !important;
}

/* Form - row untuk inventory.tambahproduk */

/* CSS inventory.kategori */

.kategori-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.judul-kategori {
  font-size: 1.5rem;
  color: #121212;
  margin: 0;
}

.kategori-actions button {
  background-color: #FFD700;
  color: #121212;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: bold;
  margin-left: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.kategori-actions button:hover {
  background-color: #e6c200;
}

.kategori-tabel {
  width: 50%;
  border-collapse: collapse;
  font-size: 14px;
  background-color: #fff;
  border: 1px solid #FFFFFF;
}

.kategori-tabel th {
  background-color: #FFD700;
  color: #121212;
  padding: 10px;
  text-align: left;
  border-right: 1px solid #FFFFFF;
}

.kategori-tabel td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  border-right: 1px solid #FFFFFF;
}

.kategori-tabel tbody tr:nth-child(odd) {
  background-color: #FFFFF0; /* ivory */
  color: #121212;
}

.kategori-tabel tbody tr:nth-child(even) {
  background-color: #FAF3D0;
}

.kategori-tabel tbody tr:hover {
  background-color: #fff7cc;
}

.kategori-tabel td button {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  margin-right: 5px;
}

.kategori-tabel td button:hover {
  color: #FFD700;
}

.merek-header {
  display: flex;
  justify-content: space-between;
  align-items: right;
  margin-bottom: 3rem;
}

.judul-merek {
  font-size: 1.5rem;
  color: #121212;
  margin: 0;
}

.merek-actions button {
  background-color: #FFD700;
  color: #121212;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: bold;
  margin-left: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.merek-actions button:hover {
  background-color: #e6c200;
}

.merek-tabel {
  width: 50%;
  border-collapse: collapse;
  font-size: 14px;
  background-color: #fff;
  border: 1px solid #FFFFFF;
}

.merek-tabel th {
  background-color: #FFD700;
  color: #121212;
  padding: 10px;
  text-align: left;
  border-right: 1px solid #FFFFFF;
}

.merek-tabel td {
  padding: 10px;
  border-bottom: 1px solid #FFFFF0;
  border-right: 1px solid #FFFFFF;
}

.merek-tabel th:last-child,
.merek-tabel td:last-child {
  border-right: none;
}

.merek-tabel tbody tr:nth-child(odd) {
  background-color: #FFFFF0; /* ivory */
  color: #121212;
}

.merek-tabel tbody tr:nth-child(even) {
  background-color: #FAF3D0; /* gold lembut */
  color: #121212;
}

.merek-tabel tbody tr:hover {
  background-color: rgba(245, 222, 179, 0.2); /* hover lembut */
  transition: background-color 0.2s ease-in-out;
}

.merek-tabel td button {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #F5DEB3;
  margin-right: 5px;
}

.merek-tabel td button:hover {
  color: #FFD700;
}

.kelompok-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.judul-kelompok {
  font-size: 1.5rem;
  color: #121212;
  margin: 0;
}

.kelompok-actions button {
  background-color: #FFD700;
  color: #121212;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: bold;
  margin-left: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.kelompok-actions button:hover {
  background-color: #e6c200;
}

.kelompok-tabel {
  width: 50%;
  border-collapse: collapse;
  font-size: 14px;
  background-color: #fff;
  border: 1px solid #F5DEB3;
}

.kelompok-tabel th {
  background-color: #FFD700;
  color: #121212;
  padding: 10px;
  text-align: left;
  border-right: 1px solid #F5DEB3;
}

.kelompok-tabel td {
  padding: 10px;
  border-bottom: 1px solid #FFFFF0;
  border-right: 1px solid #F5DEB3;
}

.kelompok-tabel th:last-child,
.kelompok-tabel td:last-child {
  border-right: none;
}

.kelompok-tabel tbody tr:nth-child(odd) {
  background-color: #FFFFF0;
  color: #121212;
}

.kelompok-tabel tbody tr:nth-child(even) {
  background-color: #FAF3D0;
  color: #121212;
}

.kelompok-tabel tbody tr:hover {
  background-color: rgba(245, 222, 179, 0.2);
  transition: background-color 0.2s ease-in-out;
}

.kelompok-tabel td button {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #F5DEB3;
  margin-right: 5px;
}

.kelompok-tabel td button:hover {
  color: #FFD700;
}

.satuan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.judul-satuan {
  font-size: 1.5rem;
  color: #121212;
  margin: 0;
}

.satuan-actions button {
  background-color: #FFD700;
  color: #121212;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: bold;
  margin-left: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.satuan-actions button:hover {
  background-color: #e6c200;
}

.satuan-tabel {
  width: 50%;
  border-collapse: collapse;
  font-size: 14px;
  background-color: #fff;
  border: 1px solid #F5DEB3;
}

.satuan-tabel th {
  background-color: #FFD700;
  color: #121212;
  padding: 10px;
  text-align: left;
  border-right: 1px solid #F5DEB3;
}

.satuan-tabel td {
  padding: 10px;
  border-bottom: 1px solid #FFFFF0;
  border-right: 1px solid #F5DEB3;
}

.satuan-tabel th:last-child,
.satuan-tabel td:last-child {
  border-right: none;
}

.satuan-tabel tbody tr:nth-child(odd) {
  background-color: #FFFFF0;
  color: #121212;
}

.satuan-tabel tbody tr:nth-child(even) {
  background-color: #FAF3D0;
  color: #121212;
}

.satuan-tabel tbody tr:hover {
  background-color: rgba(245, 222, 179, 0.2);
  transition: background-color 0.2s ease-in-out;
}

.satuan-tabel td button {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #F5DEB3;
  margin-right: 5px;
}

.satuan-tabel td button:hover {
  color: #FFD700;
}

/* CSS inventory.kategori */

.popup.hidden {
  display: none;
}

.popup {
  position: fixed;
  top: 25%;
  left: 35%;
  width: 300px;
  background: white;
  border: 1px solid #aaa;
  padding: 20px;
  z-index: 1000;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.tabel-penyesuaian {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.tabel-penyesuaian th {
  background-color: #f7c948; /* kuning keemasan */
  color: #000;
  padding: 8px;
  text-align: left;
}

.tabel-penyesuaian td {
  padding: 8px;
  color: #000; /* pastikan teks hitam */
}

.tabel-penyesuaian tbody tr:nth-child(odd) {
  background-color: #fff9dd;
}

.tabel-penyesuaian tbody tr:nth-child(even) {
  background-color: #ffffff;
}

.form-group input[type="radio"] {
  margin-right: 6px;
}

.form-group .radio {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
}

/* 🌟 TABEL CUSTOMER GAYA MAMMON */
.customer-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #121212;
  color: #f0f0f0;
  font-family: 'Segoe UI', sans-serif;
  border-radius: 4px;
  overflow: hidden;
}

.customer-table th {
  background-color: #FFD700;
  color: #121212;
  text-align: left;
  padding: 12px 16px;
  font-weight: bold;
  border-bottom: 2px solid #444;
}

.customer-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #333;
}

.customer-table tr:nth-child(even) {
  background-color: #1e1e1e;
}

.customer-table tr:hover {
  background-color: #2a2a2a;
  cursor: pointer;
}

.customer-empty {
  text-align: center;
  padding: 24px;
  color: #888;
}

/* Tabel Penjualan Mammon Way */
.tabel-penjualan {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  background-color: #1c1c1c;
  color: #FFD700;
  border: 1px solid #FFD700;
}

.tabel-penjualan th,
.tabel-penjualan td {
  padding: 10px;
  border: 1px solid #FFD700;
  text-align: left;
}

.tabel-penjualan th {
  background-color: #2c2c2c;
  color: #FFD700;
  font-weight: bold;
}

.tabel-penjualan tbody tr:nth-child(even) {
  background-color: #1a1a1a;
}

.tabel-penjualan tbody tr:nth-child(odd) {
  background-color: #121212;
}

.kosong {
  text-align: center;
  padding: 1rem;
  color: #FFD700;
}

.label-draft {
  color: #FFD700;
  font-weight: bold;
}

.label-selesai {
  color: lightgreen;
  font-weight: bold;
}

.popup-content {
  background: #FFF8E7; /* warna ivory terang */
  color: #911F27;
  padding: 1rem;
  border-radius: 8px;
}

button.btn-simpan {
  background-color: #FFD700;
  color: #5C2E00;
  border: none;
  padding: 8px 16px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 1rem;
}

button.btn-simpan:hover {
  background-color: #f0c200;
}

/* Layout 2 kolom */
.form-pesanan-container {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  color: #FFD700;
}

.form-pesanan-kiri {
  flex: 3;
}

.form-pesanan-kanan {
  flex: 1.5;
  border-left: 1px solid #333;
  padding-left: 1rem;
}

/* Form Groups */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: bold;
  color: #911F27;
}

input[type="text"],
input[type="number"],
select {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: none;
  /*border-bottom: 1px solid #555;*/
  border-radius: 0;
  box-sizing: border-box;
  text-align: right;
  background: #FAF3D0;
  color: #121212;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
  outline: none;
  border-bottom-color: #FFD700;
  background-color: #FFF8E7;
}

/* Tabel item */
.tabel-item {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 14px;
  color: #333;
  background-color: #f8f8f8;
}

.tabel-item th {
  background-color: #e0e0e0;
  border-bottom: 2px solid #ccc;
  text-align: left;
  padding: 8px;
  color: #333;
}

.tabel-item td {
  border-bottom: 1px solid #ccc;
  padding: 6px 8px;
  background-color: #fff;
}

.tabel-item tr:nth-child(even) td {
  background-color: #f5f5f5;
}

.tabel-item input {
  width: 100%;
  padding: 4px 6px;
  font-size: 14px;
  border: none;
  background-color: transparent;
  color: #333;
}

.tabel-item input:focus {
  outline: none;
  background-color: #fff3e0;
  border-bottom: 1px solid #FFD700;
}

/* Tombol Simpan */
.btn-simpan {
  background-color: #FFD700;
  color: #121212;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
}

.btn-simpan:hover {
  background-color: #e6c200;
  color: #000;
}

.suggest-wrapper {
  position: absolute;
  background-color: #fff;
  border: 1px solid #ccc;
  z-index: 1000;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
}

.suggest-item {
  padding: 6px 10px;
  cursor: pointer;
}

.suggest-item:hover {
  background-color: #f0f0f0;
}

.btn-hapus {
  background-color: #aa0000;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  margin-left: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
}

.btn-hapus:hover {
  background-color: #cc0000;
}

.btn-hapus-baris:hover {
  transform: scale(1.2);
}

.btn-hapus-baris {
  background: none;
  border: none;
  color: #ff4d4d;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s;
}


select.input-harga {
  background-color: white;
  color: black;
  padding: 4px;
  border-radius: 4px;
  border: 1px solid #ccc;
}




a.nama-produk {
  text-decoration: none;
}

a.nama-produk:hover {
  text-decoration: underline; /* Optional: underline saat hover saja */
}

.tabel-kustom {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.tabel-kustom th,
.tabel-kustom td {
  border: 1px solid #ccc;
  padding: 8px 12px;
  text-align: left;
}

.tabel-kustom th {
  background-color: var(--gold);
  color: var(--black);
}

.tabel-kustom tr:nth-child(even) {
  background-color: #f9f9f9;
}

.hidden {
  display: none;
}

.popup-form-merek {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -20%);
  background-color: var(--white);
  border-radius: 12px;
  padding: 20px;
  z-index: 10000;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
  min-width: 360px;
  max-width: 90vw;
}

.popup-form-merek.hidden {
  display: none;
}

/*popup untuk kelompok produk*/

.popup-form-kelompok {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  z-index: 999;
  width: 400px;
  max-width: 90%;
  animation: fadeIn 0.2s ease-in-out;
}

.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-50%) scale(0.95); }
  to   { opacity: 1; transform: translateX(-50%) scale(1); }
}

/* Optional: darken background (semi-transparent) */
body::after {
  content: '';
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 998;
}

body.popup-active::after {
  display: block;
}

.penyesuaian-harga-table th {
  background-color: #FFD700; /* header gold shining */
  color: #121212; /* text hitam */
  text-align: left;
  padding: 10px;
  border: 1px solid #FFFFFF;
}

.penyesuaian-harga-table td {
  padding: 10px;
  border: 1px solid #FFFFFF;
  color: #121212;
}

.penyesuaian-harga-table tr:nth-child(even) {
  background-color: #FFF8E7;  /* ivory terang */
  color: #121212;
}

.penyesuaian-harga-table tr:nth-child(odd) {
  background-color: #FAF3D0;  /* gold lembut */
  color: #121212;
}

.tab-sub-content {
  display: none;
}

.tab-sub-content.active {
  display: block;
}

.produk-pc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.produk-pc-table th,
.produk-pc-table td {
  padding: 8px;
  border: 1px solid #ddd;
}
.status-belum {
  color: red;
  font-weight: bold;
}
.status-sudah {
  color: green;
  font-weight: bold;
}

.loading {
  padding: 1rem;
  color: #666;
  font-style: italic;
}

.error {
  padding: 1rem;
  color: red;
  font-weight: bold;
}

.form-catatan-emas {
  max-width: 1000px;
  margin: auto;
}

.form-catatan-emas .form-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.form-catatan-emas label {
  width: 220px;
  font-weight: bold;
}

.form-catatan-emas input[type="text"],
.form-catatan-emas input[type="date"] {
  flex: 1;
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.form-catatan-emas fieldset {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
}

.form-catatan-emas legend {
  font-weight: bold;
  padding: 0 0.5rem;
}

input[type="text"]::placeholder {
  color: #bdb9af;
  opacity: 0.6;
}

.btn-aksi {
  background-color: #f0c200;
  color: #121212;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 0.5rem;
}

.btn-aksi:hover {
  background-color: #333;
}

.badge-green {
  color: #198754; /* hijau bootstrap */
  font-weight: bold;
}

.badge-red {
  color: #dc3545; /* merah bootstrap */
  font-weight: bold;
}

.badge-orange {
  color: #fd7e14; /* oranye bootstrap */
  font-weight: bold;
}

.badge-gray {
  color: #6c757d; /* abu bootstrap */
  font-weight: bold;
}

fieldset {
  border: 1px solid #ccc;
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: 12px;
  background-color: #ffffff;
}

legend {
  font-weight: bold;
  font-size: 1.1rem;
  padding: 0 1rem;
  margin-bottom: 1rem;
}
