.im-container, .im-login-wrap { font-family: system-ui, -apple-system, sans-serif; color: #1f2937; }
.im-container { max-width: 1100px; margin: 20px auto; }

/* LOGIN */
.im-login-wrap {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 16px;
    padding: 40px 20px;
}
.im-login-box {
    width: 380px;
    background: #fff;
    padding: 36px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.im-login-box h2 { margin: 0 0 6px; text-align: center; color: #4f46e5; font-size: 26px; }
.im-subtitle { margin: 0 0 22px; text-align: center; color: #9ca3af; font-size: 14px; }
.im-login-box input {
    width: 100%; padding: 12px 14px; margin: 6px 0;
    border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px;
}
.im-login-box input:focus { outline: none; border-color: #4f46e5; }
.im-login-box button { width: 100%; padding: 13px; margin-top: 12px; font-size: 15px; }

/* TOPBAR */
.im-topbar {
    background: #fff; padding: 16px 24px; border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05); margin-bottom: 20px;
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1100px; margin-left: auto; margin-right: auto;
}
.im-topbar strong { color: #4f46e5; }

/* CARD */
.im-card {
    background: #fff; padding: 24px; border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05); margin-bottom: 20px;
}
.im-card h3 { margin: 0 0 16px; font-size: 18px; }

/* FORMS */
.im-row-form { display: flex; gap: 10px; flex-wrap: wrap; }
.im-row-form input {
    flex: 1; min-width: 180px; padding: 10px 12px;
    border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px;
}

/* BUTTONS */
.im-btn {
    display: inline-block; padding: 10px 18px; border-radius: 8px;
    border: none; cursor: pointer; font-size: 14px; font-weight: 500;
    text-decoration: none; color: #374151; background: #f3f4f6;
    transition: all .15s; margin: 2px 2px 0 0;
}
.im-btn:hover { opacity: .9; transform: translateY(-1px); }
.im-btn-sm { padding: 6px 12px; font-size: 13px; }
.im-btn-primary { background: #4f46e5; color: #fff; }
.im-btn-success { background: #16a34a; color: #fff; }
.im-btn-danger  { background: #dc2626; color: #fff; }

/* TABLE */
.im-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.im-table th, .im-table td {
    padding: 12px 10px; text-align: left;
    border-bottom: 1px solid #f1f5f9; font-size: 14px;
}
.im-table th {
    background: #f9fafb; font-size: 12px; text-transform: uppercase;
    letter-spacing: .5px; color: #6b7280;
}

/* BADGES */
.im-badge { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .5px; }
.im-badge-pending    { background: #fef3c7; color: #92400e; }
.im-badge-approved   { background: #d1fae5; color: #065f46; }
.im-badge-rejected   { background: #fee2e2; color: #991b1b; }
.im-badge-dispatched { background: #dbeafe; color: #1e40af; }
.im-badge-received   { background: #e0e7ff; color: #3730a3; }

/* MISC */
.im-muted { color: #9ca3af; font-size: 13px; }
.im-alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.im-alert-success { background: #d1fae5; color: #065f46; }
.im-alert-error   { background: #fee2e2; color: #991b1b; }

.im-scan-input, .im-wh-scan-input {
    padding: 8px; border: 2px dashed #4f46e5; border-radius: 6px;
    font-size: 13px; width: 100%; margin-bottom: 4px;
}
.im-scan-input:focus, .im-wh-scan-input:focus { outline: none; background: #eef2ff; }
.im-scan-progress { font-size: 12px; color: #6b7280; }
.im-manual-qty { width: 80px; padding: 6px; border: 1px solid #e5e7eb; border-radius: 6px; }