:root {
  --accent: #000000;
  --border: #ddd;
  --bg-light: #fafafa;
  --text: #000000;
}

/* ===== BODY & APP LAYOUT ===== */
body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg-light);
  margin: 0;
  color: var(--text);
}

.app {
  display: flex;
  min-height: 100vh;
}

.panel {
  padding: 25px;
  overflow-y: auto;
}

/* ===== PANEL KIRI ===== */
.panel.left {
  width: 25%;
  background: #ee3515;
  border-right: 1px solid var(--border);
  color: #fff;
  font-size: 14px;
}

/* ===== PANEL KANAN ===== */
.panel.right {
  flex: 1;
  background: #fff;
  padding: 30px 40px;
  color:#000000
}

.shipDate {
  margin-top: 10px;
  font-style: oblique;
  color:#ee3515
}

.viewPoDate {
  margin-top: 5px;
  font-style: oblique;
  color :#ee3515
}

/* ===== HEADING & LABEL ===== */
h3 {
  margin-top: 0;
  color : #000;
 }

label {
  display: block;
  width: 100%;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 5px;
}

/* ===== FORM ELEMENTS ===== */
input,
select,
textarea {
  width: 97%;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.9rem;
  box-sizing: border-box;
}

select {
  width: 97%;
}

textarea {
  resize: vertical;
}

/* ===== ROWS & LAYOUT ===== */
.row {
  width: 95%;
  display: flex;
  gap: 20px;
}

.col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-row.double {
  display: flex;
  gap: 5px;
}

.spaced {
  width: 99%;
  margin-top: 10px;
}

/* ===== TEXTAREA KHUSUS ===== */
.poNote {
  width: 50%;
  height: 50px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.9rem;
  resize: vertical;
}

/* ===== BUTTONS ===== */
.btn {
  width: 97%;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-outline {
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-group {
  display: flex;
  gap: 8px;
}

/* ===== AUTOCOMPLETE LISTBOX ===== */
.listbox {
  position: absolute;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  width: 26%;
  max-height: 180px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  color: #000;
  font-size: 0.9rem;
}
.listbox div {
  padding: 6px 10px;
  cursor: pointer;
}

.listbox div:hover {
  background: #2566df;
  color: #fff;
}


/* ===== HEADER & CUSTOMER INFO ===== */
.header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.logo {
  height: 58px;
}

.company .title {
  font-size: 18px;
  font-weight: 700;
}

.company .subtitle {
  color: var(--accent);
  font-weight: 700;
}

.info {
  margin-left: auto;
  text-align: right;
  font-size: 0.85rem;
}

.customer-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.customer-info div {
  flex: 1;
}

.text-right {
  text-align: right;
}

.small {
  font-size: 0.85rem;
}

.muted {
  color: #666;
}

.bold {
  font-weight: 700;
}

/* ===== TABLE ===== */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  border: 1px solid var(--border);
  padding: 6px 8px;
  text-align: left;
}

th {
  background: #f0f4ff;
}

tfoot td {
  font-weight: 700;
}

.text-center {
  text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .app {
    flex-direction: column;
  }

  .panel.left {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .panel.right {
    padding: 20px;
  }
}

/* ===== FORM TAMBAH PRODUK ===== */
.product-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #ff7f00;
  padding: 20px;
  border-radius: 10px;
  color: #fff;
}

.product-form .form-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.product-form label {
  display: inline-block;
  width: 120px;
  font-weight: bold;
  font-size: 14px;
}

.product-form input,
.product-form select {
  flex: 1;
  padding: 5px 8px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
}

.product-form button {
  margin-top: 10px;
  font-weight: bold;
  cursor: pointer;
}

.product-form .btn-danger {
  background: #000;
  color: white;
}

/* === AUTOCOMPLETE PELANGGAN === */
#suggestBoxa {
  position: absolute;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  width: 26%;
  max-height: 180px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  color: #000;
  font-size: 0.9rem;
}

#suggestBoxa div {
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s;
}

#suggestBoxa div:hover {
  background: #f0f4ff;
}

#suggestBoxa .no-match {
  color: #999;
  font-style: italic;
  text-align: center;
  padding: 8px;
}

input[type="number"].editQty {
  border: none;
  text-align: center;
  width: 60px;
  background: transparent;
}

button.delRow {
  padding: 4px 10px;
  border-radius: 5px;
  background: #dc3545;
  color: #fff;
  border: none;
  cursor: pointer;
}

button.delRow:hover {
  background: #b52a37;
}

#btnNewPO {
  width: 97%;
  background: #ffffff;
  color: #ee3515;
  border: 1px solid #000;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

#btnNewPO:hover {
  background: #000;
  color: #fff;
}
