body {
  min-height: 100vh;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(160deg, #4b5563, #9ca3af);
  url('logo.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-start; /* ini yang bikin naik */
  justify-content: center;
  padding: 10px 15px 30px; /* atas diperkecil */
}

.brand-logo {
    width: 75px;
    height: auto;
}
.brand-header {
  display: flex;
  align-items: center; /* biar sejajar tengah */
  gap: 10px; /* jarak antara logo & teks */
}

.brand-header h1 {
  margin: 0; /* hilangkan jarak default h1 */
  font-size: 25px; /* opsional */
}
@media (max-width: 768px) {
  body {
    align-items: flex-start;
    padding-top: 8px;
  }

.brand-logo {
    width: 75px;
    height: auto;
}

  .login-wrapper {
    grid-template-columns: 1fr;
  }

.brand-panel {
  padding: 6px 16px 10px;
}

  .brand-panel h1 {
    margin-top: 0;
    margin-bottom: 10px;
  }
}

/* Container */
.login-wrapper {
  width: 100%;
  max-width: 980px;
  background: #ffffff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Panel kiri */
.brand-panel {
  background: linear-gradient(160deg, #374151, #9ca3af);
  color: #ffffff;
  padding: 12px 28px 16px;
}

.brand-panel h1 {
  font-weight: 800;
  font-size: 25px;
}

.brand-panel p {
  margin-top: 10px;
  font-size: 16px;
}

.stationery-icons {
  margin-top: 30px;
  font-size: 50px;
}

/* Panel kanan */
.login-panel {
  padding: 50px 42px;
}

.login-panel h2 {
  font-weight: 800;
}

.subtitle {
  color: #64748b;
  margin-bottom: 25px;
}

/* Input */
.form-control {
  height: 50px;
  border-radius: 12px;
}

.form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.2);
}

/* Button login */
.btn-login {
  height: 50px;
  border-radius: 12px;
  font-weight: bold;
}

/* Button barang */
.btn-barang {
  height: 50px;
  border-radius: 12px;
  font-weight: bold;
  background: #f59e0b;
  color: white;
  border: none;
}

.btn-barang:hover {
  background: #d97706;
  color: white;
}

/* Divider */
.divider {
  margin: 20px 0;
  text-align: center;
  color: #999;
}

/* Footer */
.footer-note {
  margin-top: 20px;
  font-size: 12px;
  text-align: center;
  color: #999;
}

/* Responsive */
@media (max-width: 768px) {
  .login-wrapper {
    grid-template-columns: 1fr;
  }
}

/* =========================
   LIST / DAFTAR BARANG PAGE
========================= */

.page-wrapper {
  width: 100%;
  max-width: 1100px;
  margin: auto;
}

/* Header (warna sama seperti index) */
.list-header {
  background: linear-gradient(160deg, #4b5563, #9ca3af);
  color: #ffffff;
  border-radius: 28px 28px 0 0;
  padding: 28px 35px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.22);
}

.list-header h2 {
  font-weight: 800;
  margin-bottom: 6px;
}

.list-header p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
}

/* Container isi */
.list-content {
  background: #ffffff;
  border-radius: 0 0 28px 28px;
  padding: 28px 35px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.22);
}

/* Toolbar atas */
.list-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.list-toolbar form:first-child {
  flex: 1;
}

/* Input search */
.search-input {
  height: 50px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  padding: 10px 16px;
}

/* Tombol kembali */
.btn-back {
  height: 50px;
  border-radius: 14px;
  font-weight: 800;
  background: #f59e0b;
  color: #ffffff;
  border: none;
  padding: 0 25px;
}

.btn-back:hover {
  background: #d97706;
  color: #ffffff;
}

/* Text hasil pencarian */
.search-result {
  margin-bottom: 15px;
  color: #334155;
}

/* Table */
.table-wrapper {
  overflow-x: hidden;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  width: 100%;
}

.table-list {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  margin-bottom: 0;
  background: #ffffff;
  font-size: 18px;
}

.table-list th,
.table-list td {
  padding: 6px 4px;
  word-break: break-word;
  white-space: normal;
}

.table-list thead th {
  background: #6b7280;
  color: #ffffff;
  border-color: #6b7280;
}

.table-list tbody td {
  vertical-align: middle;
}

.table-list tbody tr:hover {
  background: #f3f4f6;
}

/* Lebar kolom */
.table-list th:nth-child(1),
.table-list td:nth-child(1) {
  width: 8%;
}

.table-list th:nth-child(2),
.table-list td:nth-child(2) {
  width: 42%;
}

.table-list th:nth-child(3),
.table-list td:nth-child(3) {
  width: 10%;
}

.table-list th:nth-child(4),
.table-list td:nth-child(4),
.table-list th:nth-child(5),
.table-list td:nth-child(5),
.table-list th:nth-child(6),
.table-list td:nth-child(6) {
  width: 13%;
}

/* HP */
/* FIX TABLE GESER KHUSUS HP */
@media (max-width: 768px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    padding-left: 4px;
    padding-right: 4px;
  }

  .page-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
  }

  .list-header {
    padding: 18px 12px;
  }

  .list-content {
    padding: 6px;
  }

  .table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  .table-list {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    font-size: 18px;
  }

  .table-list th,
  .table-list td {
    padding: 3px 1px !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  .table-list th:nth-child(1),
  .table-list td:nth-child(1) {
    width: 7%;
  }

  .table-list th:nth-child(2),
  .table-list td:nth-child(2) {
    width: 34%;
  }

  .table-list th:nth-child(3),
  .table-list td:nth-child(3) {
    width: 9%;
  }

  .table-list th:nth-child(4),
  .table-list td:nth-child(4),
  .table-list th:nth-child(5),
  .table-list td:nth-child(5),
  .table-list th:nth-child(6),
  .table-list td:nth-child(6) {
    width: 12%;
  }
}

/* =========================
   MENU PAGE FINAL
========================= */

.menu-wrapper {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.menu-title {
  display: flex;
  align-items: center; /* biar sejajar */
  justify-content: center;
  gap: 10px; /* jarak logo & teks */
}

.menu-logo {
  width: 40px; /* bisa kamu sesuaikan */
  height: auto;
}

.menu-title h1 {
  margin: 0; /* hilangkan jarak default */
}

.menu-card {
  background: #ffffff;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.menu-header {
  background: linear-gradient(160deg, #4b5563, #9ca3af);
  color: #ffffff;
  padding: 24px 22px;
  text-align: center;
}

.menu-header h1 {
  font-size: 25px;
  font-weight: 800;
  margin: 0 0 6px;
}

.menu-header p {
  margin: 0;
  font-size: 15px;
}

.menu-content {
  background: #ffffff;
  padding: 22px;
}

.menu-content form {
  margin-bottom: 14px;
}

.menu-content form:last-child {
  margin-bottom: 0;
}

.btn-menu,
.btn-menu-back {
  display: block;
  width: 100%;
  height: 56px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 800;
  border: none;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.btn-menu {
  background: #4b5563;
}

.btn-menu:hover {
  background: #374151;
  color: #ffffff;
}

.btn-menu-back {
  background: #f59e0b;
}

.btn-menu-back:hover {
  background: #d97706;
  color: #ffffff;
}

@media (max-width: 768px) {
  body {
    padding: 8px 12px 24px;
    background:
linear-gradient(135deg, rgba(249, 250, 251, 0.97), rgba(229, 231, 235, 0.97));
  }

  .menu-wrapper {
    max-width: 100%;
    margin-top: 0;
  }

  .menu-card {
    border-radius: 22px;
  }

  .menu-header {
    padding: 22px 18px;
  }

  .menu-header h1 {
    font-size: 25px;
  }

  .menu-content {
    padding: 20px;
  }
}

/* =========================
   REPORT PAGE
========================= */

.report-wrapper {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.report-card {
  background: #ffffff;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.report-header {
  background: linear-gradient(160deg, #4b5563, #9ca3af);
  color: #ffffff;
  padding: 26px 28px;
  text-align: center;
}

.report-header h2 {
  font-weight: 800;
  margin: 0 0 6px;
}

.report-header p {
  margin: 0;
  opacity: 0.95;
}

.report-content {
  padding: 26px;
}

.report-form {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 12px;
  align-items: end;
}

.date-group label {
  font-weight: 800;
  color: #334155;
  margin-bottom: 6px;
}

.date-separator {
  font-weight: 800;
  color: #64748b;
  padding-bottom: 14px;
}

.btn-report {
  height: 50px;
  border-radius: 14px;
  font-weight: 800;
  background: #4b5563;
  color: #ffffff;
  border: none;
  padding: 0 26px;
}

.btn-report:hover {
  background: #374151;
  color: #ffffff;
}

.report-result {
  margin-top: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
}

.report-date {
  background: #e2e8f0;
  padding: 14px 16px;
  font-weight: 800;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
}

.report-date span {
  color: #374151;
}

.report-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid #e2e8f0;
}

.report-name {
  font-weight: 800;
  color: #334155;
}

.report-value {
  font-weight: 800;
  color: #374151;
}

.report-total,
.profit-card {
  margin-top: 16px;
  background: #e2e8f0;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px;
  text-align: center;
  font-weight: 800;
  color: #334155;
}

.report-total strong,
.profit-card strong {
  display: block;
  margin-top: 5px;
  font-size: 32px;
  color: #374151;
}

.report-back-form {
  margin-top: 20px;
}

@media (max-width: 768px) {
  .report-wrapper {
    max-width: 100%;
  }

  .report-header {
    padding: 22px 18px;
  }

  .report-content {
    padding: 18px;
  }

  .report-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: end;
}

.btn-report {
  grid-column: span 2; /* tombol full lebar */
}

  .date-separator {
  grid-column: span 2;
  text-align: center;
  font-weight: 800;
  color: #64748b;
  margin-top: -5px;
}

  .btn-report {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .brand-panel {
    padding: 6px 16px 8px;
  }

  .brand-header {
    justify-content: center;
    gap: 8px;
  }

  .brand-logo {
    width: 55px;
  }

  .brand-header h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
  }

  .brand-panel h1 {
    margin: 0;
  }
}