* { box-sizing: border-box; }
body { font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif; margin: 0; background: #f5f6f8; color: #222; }
.container { max-width: 1100px; margin: 20px auto; padding: 0 16px; }

.navbar { display: flex; justify-content: space-between; align-items: center; background: #1f2937; color: #fff; padding: 12px 24px; }
.nav-brand { font-weight: 700; font-size: 18px; }
.nav-links a, .nav-user, .link-button { color: #fff; text-decoration: none; margin-left: 16px; }
.link-button { background: none; border: none; cursor: pointer; font-size: 14px; }

.login-page { display: flex; align-items: center; justify-content: center; height: 100vh; background: #1f2937; }
.login-box { background: #fff; padding: 32px; border-radius: 8px; width: 320px; }
.login-box h1 { font-size: 20px; margin-bottom: 16px; }

label { display: block; margin-top: 12px; font-weight: 600; font-size: 14px; }
input, select, textarea { width: 100%; padding: 8px; margin-top: 4px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; }
textarea { min-height: 70px; }

.button { display: inline-block; background: #2563eb; color: #fff; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; text-decoration: none; margin-top: 12px; font-size: 14px; }
.button.secondary { background: #6b7280; }
.button.small { padding: 4px 10px; font-size: 12px; margin-top: 4px; }
.error { color: #dc2626; font-weight: 600; }

.stat-grid { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 24px; }
.stat-card { background: #fff; border-radius: 8px; padding: 16px 24px; min-width: 130px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.stat-card.highlight { border: 2px solid #2563eb; }
.stat-number { font-size: 24px; font-weight: 700; }
.stat-label { font-size: 12px; color: #666; text-transform: uppercase; margin-top: 4px; }

.data-table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.data-table th, .data-table td { padding: 10px 12px; border-bottom: 1px solid #eee; text-align: left; font-size: 14px; }
.data-table th { background: #f0f1f3; }

.filter-bar { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; align-items: flex-end; }
.filter-bar select, .filter-bar input { width: auto; margin-top: 0; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 12px; background: #e5e7eb; }
.badge-delivered { background: #d1fae5; color: #065f46; }
.badge-cancelled, .badge-returned { background: #fee2e2; color: #991b1b; }
.badge-hold { background: #fef3c7; color: #92400e; }
.badge-followup { background: #dbeafe; color: #1e40af; }
.badge-alert { background: #fecaca; color: #7f1d1d; margin-left: 4px; }

.actions-cell form { display: inline-block; margin-right: 4px; }
