* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1b1d21;
  background: #f7f7f5;
}

a {
  color: #246bfd;
  text-decoration: none;
}

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

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #ffffff;
  border-right: 1px solid #e4e6e8;
  display: flex;
  flex-direction: column;
}

.brand {
  padding: 16px;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1px solid #e4e6e8;
}

.nav {
  flex: 1;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-link {
  padding: 8px 10px;
  border-radius: 6px;
  color: #1b1d21;
  font-size: 14px;
}

.nav-link:hover {
  background: #eef1f4;
}

.nav-link.disabled {
  color: #9aa0a6;
  cursor: not-allowed;
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid #e4e6e8;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-email {
  font-size: 12px;
  color: #656b74;
  overflow-wrap: anywhere;
}

.main {
  flex: 1;
  padding: 24px;
  max-width: 1100px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

h1 {
  font-size: 22px;
  margin: 0;
}

h2 {
  font-size: 16px;
  margin: 0 0 12px;
}

.card {
  background: #ffffff;
  border: 1px solid #e4e6e8;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.field {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 420px;
}

.field label {
  font-size: 13px;
  font-weight: 500;
  color: #1b1d21;
}

.input,
select.input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
select {
  height: 40px;
  padding: 8px 10px;
  border: 1px solid #c9ced4;
  border-radius: 6px;
  font-size: 14px;
  background: #ffffff;
  color: #1b1d21;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.btn-primary {
  background: #246bfd;
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  border-color: #1b1d21;
  color: #1b1d21;
}

.btn-ghost {
  background: transparent;
  color: #246bfd;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 14px;
}

.table th,
.table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e4e6e8;
}

.table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #656b74;
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: #eef1f4;
  font-size: 12px;
}

.flash {
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
}

.flash-notice {
  background: #e7f4ec;
  color: #25724b;
}

.flash-alert {
  background: #fdecea;
  color: #b42318;
}

.empty-state {
  background: #ffffff;
  border: 1px dashed #c9ced4;
  border-radius: 10px;
  padding: 32px;
  text-align: center;
  color: #656b74;
  margin: 16px 0;
}

.filters {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 16px;
  background: #ffffff;
  border: 1px solid #e4e6e8;
  border-radius: 10px;
  padding: 12px;
}

.filter-q {
  max-width: 220px;
}

.stat-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid #e4e6e8;
  border-radius: 10px;
  padding: 16px;
  min-width: 180px;
}

.stat-label {
  font-size: 12px;
  color: #656b74;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 800px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

.detail-list {
  display: grid;
  grid-template-columns: 140px 1fr;
  row-gap: 8px;
  font-size: 14px;
  margin: 0;
}

.detail-list dt {
  color: #656b74;
}

.detail-list dd {
  margin: 0;
}

.qris-layout {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.qris-image-box {
  background: #ffffff;
  border: 1px solid #e4e6e8;
  border-radius: 10px;
  padding: 12px;
}

.qris-image {
  display: block;
  width: 240px;
  height: 240px;
}

.qris-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
}

.qris-amount {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}

.qty-input {
  max-width: 90px;
}

.item-table td {
  vertical-align: top;
}

.muted {
  color: #656b74;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  background: #ffffff;
  border: 1px solid #e4e6e8;
  border-radius: 10px;
  padding: 24px;
  width: 100%;
  max-width: 360px;
}
