/* Mobile-first: this app is used mostly on Zebra handheld scanners with
   small screens, so big tap targets and large text come first; the desktop
   layout is just the same stuff with more breathing room. */

* { box-sizing: border-box; }

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

.topbar {
    background: #14213d;
    color: #fff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.topbar a { color: #fff; text-decoration: none; }

.topbar .brand { font-weight: 700; font-size: 1.1rem; }

.topbar nav a {
    margin-left: 14px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.topbar form { display: inline; margin-left: 14px; }

.topbar button.link {
    background: none;
    border: none;
    color: #fff;
    opacity: 0.9;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px;
}

.card {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

h1 { font-size: 1.4rem; margin: 0 0 12px; }
h2 { font-size: 1.15rem; margin: 0 0 10px; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

@media (min-width: 640px) {
    .stat-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.stat .num { font-size: 1.8rem; font-weight: 700; color: #14213d; }
.stat .label { font-size: 0.85rem; color: #667085; margin-top: 4px; }

label {
    display: block;
    font-weight: 600;
    margin: 12px 0 6px;
    font-size: 0.95rem;
}

input[type=text], input[type=number], input[type=password], select {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    border: 2px solid #d0d5dd;
    border-radius: 8px;
}

input[type=text]:focus, input[type=password]:focus {
    outline: none;
    border-color: #14213d;
}

button, .btn {
    display: inline-block;
    padding: 14px 20px;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: #14213d;
    color: #fff;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

button:active { background: #0d1730; }

.btn-block { width: 100%; margin-top: 16px; }

.mode-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.mode-tabs a {
    flex: 1 1 auto;
    text-align: center;
    padding: 12px 10px;
    border-radius: 8px;
    background: #e4e7ec;
    color: #344054;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.mode-tabs a.active {
    background: #14213d;
    color: #fff;
}

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-weight: 600;
}

.alert-success { background: #d1f5e0; color: #05603a; }
.alert-error { background: #fde4e1; color: #912018; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

th, td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid #eaecf0;
}

th { color: #667085; font-weight: 600; font-size: 0.82rem; text-transform: uppercase; }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
}

.badge-received { background: #e4e7ec; color: #344054; }
.badge-put_away { background: #d1e9ff; color: #175cd3; }
.badge-picked { background: #fef0c7; color: #b54708; }
.badge-shipped { background: #d1f5e0; color: #05603a; }
.badge-hold { background: #fde4e1; color: #912018; }

.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.login-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.login-card h1 { text-align: center; margin-bottom: 4px; }
.login-card .sub { text-align: center; color: #667085; margin-bottom: 18px; font-size: 0.9rem; }

.pagination { display: flex; gap: 8px; margin-top: 14px; }
