* { box-sizing: border-box; }
body {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
  margin: 0;
}
a { color: #333; }

.site-header {
  background: #d40511;
  color: white;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.branding { display: flex; align-items: center; gap: 0.75rem; }
.logo { height: 32px; }
.top-nav a { color: white; margin-left: 1rem; text-decoration: none; }

.dashboard-container { display: flex; min-height: calc(100vh - 64px); }
.dashboard-sidebar {
  width: 240px;
  background: #ffcc00;
  min-height: 100%;
  padding: 1rem;
}
.sidebar-menu { list-style: none; margin: 0; padding: 0; }
.sidebar-menu li { margin: 0.5rem 0; }
.sidebar-menu a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  display: block;
  padding: 0.5rem;
  border-radius: 4px;
}
.sidebar-menu a.active { background: #d40511; color: white; }
.sidebar-note { margin-top: 1rem; font-size: 0.85rem; color: #333; opacity: 0.9; }

.dashboard-content { flex: 1; padding: 2rem; }

.search { background: white; padding: 1rem; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.tracking-form { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.tracking-form input {
  flex: 1; padding: 0.6rem 0.75rem; border: 1px solid #ddd; border-radius: 4px;
}
.tracking-form button {
  background: #d40511; color: white; border: none; border-radius: 4px; padding: 0 1rem; cursor: pointer;
}
.search-tip { font-size: 0.85rem; color: #666; margin-top: 0.5rem; }

.result { background: white; margin-top: 1rem; padding: 1rem; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.hidden { display: none; }

.result-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border-bottom: 1px solid #eee; padding-bottom: 0.75rem; margin-bottom: 1rem;
}
.status-badge {
  display: inline-block; background: #e8f4e8; color: #2e7d32; padding: 4px 10px; border-radius: 14px; font-weight: 600; font-size: 0.85rem;
}
.result-actions .btn {
  background: #d40511; color: white; border: none; border-radius: 4px; padding: 0.5rem 0.75rem; cursor: pointer; text-decoration: none;
}
.result-actions .btn.btn-secondary { background: #eee; color: #333; }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { border: 1px solid #eee; border-radius: 6px; }
.card-title { background: #f5f5f5; padding: 0.6rem 0.8rem; font-weight: 700; }
.card-body { padding: 0.8rem; }
.card-body p { margin: 0.3rem 0; }

.timeline { margin-top: 0.75rem; }
.timeline-item {
  position: relative; padding-left: 1rem; margin: 0.8rem 0; border-left: 3px solid #d40511;
}
.timeline-item strong { color: #d40511; }
.timeline-item small { color: #666; }

.panel { background: white; margin-top: 1rem; padding: 1rem; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,0.05); }

.site-footer { background: #ffcc00; padding: 0.75rem 1rem; text-align: center; color: #333; }

/* Print */
@media print {
  .site-header, .dashboard-sidebar, .site-footer, .search, .result-actions, .panel { display: none !important; }
  body { background: white; color: black; }
  .dashboard-content { padding: 0; }
  .print-header { display: block !important; border-bottom: 2px solid #d40511; margin-bottom: 0.75rem; padding-bottom: 0.5rem; }
  .print-header .logo { height: 36px; vertical-align: middle; }
  .print-header h2 { display: inline-block; margin-left: 0.5rem; color: #d40511; }
  .result { box-shadow: none; border: none; margin: 0; padding: 0; }
  .status-badge { border: 1px solid #2e7d32; }
  .timeline-item { border-left: 2px solid #000; }
}

.print-header { display: none; }
