.bijak-wrap {
  direction: rtl;
  max-width: 1180px;
  margin: 32px auto;
  font-family: Tahoma, Arial, sans-serif;
  color: #1f2937;
}
.bijak-wrap * { box-sizing: border-box; }
.bijak-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #111827, #374151);
  color: #fff;
  padding: 26px;
  border-radius: 22px;
  margin-bottom: 18px;
  box-shadow: 0 15px 35px rgba(17, 24, 39, .18);
}
.bijak-header h1 { margin: 0 0 8px; font-size: 28px; }
.bijak-header p { margin: 0; color: #d1d5db; }
.bijak-logout {
  background: #fff;
  color: #111827;
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.bijak-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.bijak-tabs a {
  text-decoration: none;
  background: #fff;
  color: #374151;
  border: 1px solid #e5e7eb;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
}
.bijak-tabs a.active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}
.bijak-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
}
.bijak-card h2 { margin-top: 0; font-size: 22px; }
.bijak-login-card { max-width: 470px; margin: 0 auto; }
.bijak-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.bijak-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
  color: #374151;
}
.bijak-label span { color: #dc2626; }
.bijak-label input,
.bijak-label select,
.bijak-label textarea,
.bijak-login-card input[type="text"],
.bijak-login-card input[type="password"] {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 13px;
  padding: 12px 13px;
  min-height: 46px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
}
.bijak-label textarea { resize: vertical; line-height: 1.9; }
.bijak-label input:focus,
.bijak-label select:focus,
.bijak-label textarea:focus {
  outline: none;
  border-color: #111827;
  box-shadow: 0 0 0 4px rgba(17, 24, 39, .08);
}
.bijak-section-title {
  margin: 26px 0 12px;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
  font-size: 18px;
  font-weight: 900;
}
.bijak-items { display: flex; flex-direction: column; gap: 10px; }
.bijak-help-text {
  margin: -4px 0 14px;
  color: #6b7280;
  font-weight: 700;
  line-height: 1.9;
}
.bijak-group-select select {
  background: #fffef7;
}
.bijak-product-select select:disabled {
  background: #f3f4f6;
  color: #6b7280;
}

.bijak-item-row {
  display: grid;
  grid-template-columns: 230px 1fr 150px 90px;
  gap: 12px;
  align-items: end;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 14px;
}
.bijak-btn {
  border: 0;
  border-radius: 13px;
  padding: 12px 16px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  min-height: 46px;
}
.bijak-btn:disabled { opacity: .5; cursor: not-allowed; }
.bijak-btn-primary { background: #16a34a; color: #fff; }
.bijak-btn-secondary { background: #111827; color: #fff; margin-top: 12px; }
.bijak-btn-danger { background: #fee2e2; color: #b91c1c; }
.bijak-margin-top { margin-top: 22px; }
.bijak-full { margin-top: 16px; }
.bijak-submit-row { margin-top: 22px; display: flex; justify-content: flex-start; }
.bijak-alert {
  border-radius: 15px;
  padding: 14px 16px;
  margin: 14px 0;
  font-weight: 700;
}
.bijak-alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.bijak-alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.bijak-empty {
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  color: #6b7280;
}
.bijak-table-wrap { overflow-x: auto; }
.bijak-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}
.bijak-table th,
.bijak-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 13px;
  text-align: right;
  vertical-align: top;
}
.bijak-table th { background: #f3f4f6; color: #111827; }
.bijak-status {
  display: inline-block;
  background: #e0f2fe;
  color: #075985;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.bijak-login-card .login-username,
.bijak-login-card .login-password,
.bijak-login-card .login-remember,
.bijak-login-card .login-submit { margin: 14px 0; }
.bijak-login-card input[type="submit"] {
  width: 100%;
  border: 0;
  border-radius: 13px;
  padding: 13px;
  background: #111827;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
@media (max-width: 900px) {
  .bijak-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bijak-item-row { grid-template-columns: 1fr; }
  .bijak-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .bijak-grid { grid-template-columns: 1fr; }
  .bijak-tabs { flex-direction: column; }
  .bijak-card, .bijak-header { padding: 18px; border-radius: 18px; }
}
.bijak-print-link,
.bijak-inline-link {
  display: inline-block;
  background: #111827;
  color: #fff !important;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.bijak-inline-link { margin-right: 10px; background: #166534; }

.bijak-print-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.bijak-print-actions .bijak-print-link {
  white-space: nowrap;
}

.bijak-login-form { margin-top: 18px; }
.bijak-login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
  font-weight: 700;
  color: #374151;
}
.bijak-login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
  color: #374151;
  font-weight: 700;
}
.bijak-login-submit {
  width: 100%;
  border: 0;
  border-radius: 13px;
  padding: 13px;
  background: #111827;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  min-height: 48px;
}
.bijak-login-submit:hover { background: #1f2937; }

.bijak-list-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.bijak-list-head p {
  margin: 6px 0 0;
  color: #6b7280;
  font-weight: 700;
  line-height: 1.8;
}
.bijak-filter-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 14px;
  margin: 16px 0 20px;
}
.bijak-filter-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #374151;
  font-weight: 800;
  font-size: 13px;
}
.bijak-filter-form input,
.bijak-filter-form select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  min-height: 43px;
  padding: 10px 12px;
  font-family: inherit;
  background: #fff;
}
.bijak-filter-actions {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}
.bijak-filter-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 13px;
  background: #fff;
  color: #374151;
  border: 1px solid #d1d5db;
  text-decoration: none;
  font-weight: 800;
}
.bijak-dealer-group {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  margin: 18px 0;
  overflow: hidden;
  background: #fff;
}
.bijak-dealer-group h3 {
  margin: 0;
  padding: 14px 16px;
  background: #111827;
  color: #fff;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.bijak-dealer-group h3 span {
  background: rgba(255,255,255,.12);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
}
.bijak-dealer-group .bijak-table-wrap {
  border-radius: 0;
}
@media (max-width: 1100px) {
  .bijak-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .bijak-filter-form { grid-template-columns: 1fr; }
  .bijak-list-head { flex-direction: column; }
  .bijak-dealer-group h3 { flex-direction: column; align-items: flex-start; }
}

/* Jalali date picker for order and delivery dates */
.bijak-jalali-input {
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #6b7280 50%), linear-gradient(135deg, #6b7280 50%, transparent 50%);
  background-position: left 18px center, left 12px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.bijak-jalali-datepicker {
  position: absolute;
  z-index: 999999;
  width: 304px;
  display: none;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(17,24,39,.18);
  font-family: inherit;
  direction: rtl;
}
.bijak-jalali-datepicker.is-open { display: block; }
.bijak-jdp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.bijak-jdp-head strong {
  font-size: 15px;
  color: #111827;
}
.bijak-jdp-head button,
.bijak-jdp-foot button,
.bijak-jdp-days button {
  font-family: inherit;
  cursor: pointer;
}
.bijak-jdp-head button {
  width: 36px;
  height: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  color: #111827;
  font-size: 22px;
  line-height: 1;
}
.bijak-jdp-week,
.bijak-jdp-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}
.bijak-jdp-week span {
  font-size: 12px;
  font-weight: 800;
  color: #6b7280;
  padding: 7px 0;
}
.bijak-jdp-days span.empty { display: block; min-height: 36px; }
.bijak-jdp-days button {
  min-height: 36px;
  border: 1px solid #edf0f4;
  border-radius: 12px;
  background: #fff;
  color: #374151;
  font-weight: 800;
}
.bijak-jdp-days button:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}
.bijak-jdp-days button.today {
  border-color: #c6a15b;
  color: #111827;
  background: #fff8e7;
}
.bijak-jdp-days button.selected {
  background: #111827;
  border-color: #111827;
  color: #fff;
}
.bijak-jdp-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}
.bijak-jdp-foot button {
  flex: 1;
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-weight: 800;
  color: #374151;
}
@media (max-width: 360px) {
  .bijak-jalali-datepicker { width: calc(100vw - 16px); }
}
