* {
  box-sizing: border-box;
}

/*body {*/
/*  font-family: sans-serif;*/
/*  margin: 0;*/
/*  background: #f4f4f4;*/
/*  overflow-x: hidden;*/
/*}*/

body, html {
  font-family: sans-serif;
  background: #f4f4f4;
  height: 100vh;
  margin: 0;
  overflow: hidden;
}

.fixed-top-section {
  padding: 10px;
  background: #fff;
}

.scrollable-content {
  height: calc(100vh - 200px); 
  overflow-y: auto;
  padding: 10px;
}

.container-products {
  padding-bottom: 150px; 
}

.app-header {
  background: #0b557b;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  padding: 0 15px;
  z-index: 1000;
}

.app-header button {
  background: none;
  color: white;
  border: none;
  font-size: 20px;
}
.container-x {
  padding: 15px;
  background: white;
  max-width: 100%;
  overflow-x: hidden;
  /*margin-top: 20px;*/
}

.container {
  padding: 15px;
  background: white;
  max-width: 100%;
  overflow-x: hidden;
  margin-top: 70px;
}

.input-group {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 5px 10px;
  margin-bottom: 5px;
  width: 100%;
  overflow: hidden;
}

.input-group input {
  border: none;
  flex: 1;
  font-size: 16px;
  outline: none;
}

.input-group .icons {
  white-space: nowrap;
  padding-left: 10px;
}

.tabs {
  display: flex;
  margin: 15px 0;
  gap: 10px;
}

.tabs button {
  flex: 1;
  padding: 10px;
  border: none;
  background: #eee;
  cursor: pointer;
  border-radius: 8px;
  font-size: 14px;
}

.tabs .active {
  background: #0b557b;
  color: white;
}

.tabs_y {
  display: flex;
  overflow-x: auto;        /* Membuat scroll horizontal */
  white-space: nowrap;     /* Mencegah button pindah ke bawah */
  gap: 10px;
  margin: 10px 0;
  padding-bottom: 5px;
  scrollbar-width: none;   /* Untuk Firefox */
}

.tabs_y::-webkit-scrollbar {
  display: none;           /* Untuk Chrome, Safari, dll */
}

.tabs_y button {
  flex: 0 0 auto;          /* Supaya lebar tombol tidak stretch */
  padding: 10px;
  border: none;
  background: #eee;
  cursor: pointer;
  border-radius: 8px;
  font-size: 14px;
}

.tabs_y .active {
  background: #0b557b;
  color: white;
}

.search {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-bottom: 20px;
  font-size: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.product-item {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  border: 1px solid #ccc;
  font-size: 14px;
  word-wrap: break-word;
  position: relative;
}


.product-grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.product-item2 {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  border: 1px solid #ccc;
  font-size: 14px;
  word-wrap: break-word;
  position: relative;
}


.product-grid3 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.product-item3 {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  border: 1px solid #ccc;
  font-size: 14px;
  word-wrap: break-word;
  position: relative;
}


.product-grid4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.product-item4 {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  border: 1px solid #ccc;
  font-size: 14px;
  word-wrap: break-word;
  position: relative;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 12px;
  color: #555;
  padding: 0 5px;
}

.modal {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  display: none;
  justify-content: flex-end;
  align-items: flex-end;
  z-index: 1000;
}

.modal-slide {
  background: #fff;
  width: 100%;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  padding: 20px;
  animation: slideUp 0.3s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header button {
  border: none;
  background: none;
  font-size: 20px;
}

.modal-slide ul {
  list-style: none;
  padding: 0;
  font-size: 14px;
}

.modal-slide li {
  margin-bottom: 8px;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  gap: 10px;
}

.modal-actions button {
  flex: 1;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.modal-actions .confirm {
  background: #0b557b;
  color: white;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.detail-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-row label {
  font-weight: bold;
  min-width: 150px;
}

.detail-row span {
  flex: 1;
  text-align: right;
  font-weight: bold;
}

/*.scrollable-content {*/
/*  max-height: calc(100vh - 230px); */
/*  overflow-y: auto;*/
/*  padding-bottom: 20px;*/
/*}*/