* {
  box-sizing: border-box;
}
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  background: #f2f5f8;
  color: #1e293b;
}
.app-bg {
  background: linear-gradient(135deg, #f5f3ff 0%, #e0f2fe 50%, #e8f5e9 100%);
  min-height: 100vh;
  min-height: 100dvh;
}
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04);
}
.badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bg-diminta { background: #3b82f6; }
.bg-kirim { background: #f59e0b; }
.bg-selesai { background: #10b981; }
.bg-batal { background: #ef4444; }
.status-box {
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
  font-weight: bold;
}
.ok { background: #dcfce7; color: #166534; }
.err { background: #fee2e2; color: #991b1b; }

table {
  width: 100%;
  border-collapse: collapse;
}
td, th {
  text-align: left;
  padding: 11px 10px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
}
th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 10;
}
tr:hover td {
  background: rgba(248, 250, 252, 0.8);
}
.hidden {
  display: none !important;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 16px;
}
@media(min-width: 768px) {
  .dashboard-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.dash-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dash-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.dash-card.active-filter {
  border-color: #4f46e5;
  background: #eef2ff;
}

.autocomplete-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 50;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  margin-top: 4px;
}
.autocomplete-item {
  padding: 10px 12px;
  font-size: 13px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
}
.autocomplete-item:hover {
  background: #e0f2fe;
}

@media print {
  body { background: white; color: black; }
  header, .tabs, .actions, .card:not(#printArea), nav, .fixed, .no-print {
    display: none !important;
  }
}
