/* Temo CPR-Chargen — authentischer JTL-WMS-Mobile-Look (Referenz: eneiro FBA Pick&Pack / Morgenstern).
   Weiß + Blau #0b6ea8, Roboto, JTL-Stil Inputs/Cards/Buttons/Drawer. */
:root {
  --primary: #0b6ea8;
  --primary-dark: #095a89;
  --primary-disabled: #b9d9ec;
  --text-main: #212121;
  --text-muted: #9e9e9e;
  --placeholder: #bdbdbd;
  --border: #e0e0e0;
  --border-active: #0b6ea8;
  --divider: #eeeeee;
  --bg: #ffffff;
  --ok: #1f9d55;
  --err: #d13438;
  --warn: #d98b00;
  --radius: 5px;
  --header-h: 56px;
  --input-h: 46px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text-main);
  font-family: "Roboto", -apple-system, "Segoe UI", "Noto Sans", Arial, sans-serif; font-size: 16px;
  min-height: 100vh; display: flex; flex-direction: column; }
.hidden { display: none !important; }

/* App-Bar */
.appbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center;
  background: var(--primary); color: #fff; height: var(--header-h); padding: 0 8px; }
.appbar .burger { background: none; border: 0; color: #fff; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; }
.appbar-title { flex: 1; text-align: center; font-size: 20px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar-user { min-width: 44px; font-size: 12px; text-align: right; padding-right: 8px; opacity: .9; }

/* Drawer */
.drawer { position: fixed; top: 0; left: 0; width: 82%; max-width: 320px; height: 100%;
  background: #fff; z-index: 40; transform: translateX(-100%); transition: transform .2s;
  box-shadow: 2px 0 12px rgba(0,0,0,.25); overflow-y: auto; }
.drawer.open { transform: translateX(0); }
.drawer-head { background: var(--primary); color: #fff; padding: 14px 16px; min-height: 90px;
  display: flex; flex-direction: column; justify-content: center; }
.drawer-head .logo { display: flex; align-items: center; gap: 10px; }
.drawer-head .logo .mark { background: #fff; color: var(--primary); font-weight: 800; font-size: 15px;
  padding: 4px 7px; border-radius: 4px; letter-spacing: .5px; }
.drawer-head .logo .wms { font-size: 20px; font-weight: 800; line-height: 1; }
.drawer-head .logo .wms small { display: block; font-size: 11px; font-weight: 500; opacity: .9; }
.drawer-head .sub { font-size: 13px; opacity: .9; margin-top: 8px; }
.drawer .grouphead { color: var(--text-muted); font-size: 12.5px; padding: 14px 16px 4px; }
.navitem { display: flex; align-items: center; gap: 14px; padding: 15px 16px; color: var(--text-main);
  text-decoration: none; font-size: 16px; cursor: pointer; }
.navitem .ic { width: 24px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.navitem.active { color: var(--primary); background: #f3f9fd; }
.drawer hr { border: 0; border-top: 1px solid var(--divider); margin: 6px 0; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.4); opacity: 0; pointer-events: none;
  transition: opacity .2s; z-index: 30; }
.scrim.show { opacity: 1; pointer-events: auto; }

/* Layout */
.view { flex: 1; padding: 16px 20px; max-width: 720px; width: 100%; margin: 0 auto; }
.h1 { font-size: 18px; font-weight: 700; margin: 4px 0 14px; }
.muted { color: var(--text-muted); font-size: 14px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; }
.sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.center { text-align: center; }
label { display: block; font-size: 14px; color: var(--text-main); margin: 14px 0 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }

/* Inputs (JTL-Stil) */
input, select, textarea { width: 100%; font-size: 16px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--text-main); }
input, select { height: var(--input-h); }
textarea { padding: 10px 12px; min-height: 62px; resize: vertical; font-family: inherit; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--border-active); border-width: 1.5px; }

/* Cards / Listen */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; margin-bottom: 12px; }
.listitem { background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.listitem:active { background: #f3f9fd; }
.listitem .grow { flex: 1; min-width: 0; }
.listitem .big { font-weight: 700; font-size: 15px; }

.pill { background: #e9f2f9; color: var(--primary); border-radius: 16px; padding: 4px 12px;
  font-weight: 700; font-size: 13px; white-space: nowrap; }
.pill.ok { background: #e5f6ec; color: #12673a; }
.pill.warn { background: #fff4e0; color: #8a5a00; }

/* Banner */
.banner { padding: 12px 14px; border-radius: var(--radius); margin: 14px 0; font-size: 15px; }
.banner.ok { background: #e5f6ec; color: #12673a; border: 1px solid #b6e3c8; }
.banner.err { background: #fdeaea; color: #a1272b; border: 1px solid #f2bcbd; }
.banner.info { background: #e9f2f9; color: #0b5178; border: 1px solid #c3dcee; }

/* Buttons */
button.btn { width: 100%; height: 52px; font-size: 17px; font-weight: 600; border: 0;
  border-radius: var(--radius); background: var(--primary); color: #fff; cursor: pointer; margin-top: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px; }
button.btn:active { background: var(--primary-dark); }
button.btn.ok { background: var(--ok); }
button.btn.danger { background: var(--err); }
button.btn.ghost { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); }
button.btn.sm { height: 42px; font-size: 15px; width: auto; padding: 0 18px; }
button.btn:disabled { background: var(--primary-disabled); color: #f0f8fc; cursor: default; }
.btnrow { display: flex; gap: 10px; }
.btnrow .btn { flex: 1; }

/* OCR-Box */
.ocrbox { border: 2px dashed var(--primary); border-radius: var(--radius); padding: 20px; text-align: center;
  color: var(--primary); font-weight: 600; cursor: pointer; background: #f7fbfd; }
.ocrbox:active { background: #eef6fb; }

/* Login */
.login-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 24px; max-width: 420px; margin: 0 auto; width: 100%; }
.login-logo { text-align: center; margin-bottom: 20px; }
.login-logo .mark { background: var(--primary); color: #fff; font-weight: 800; font-size: 20px; padding: 8px 12px; border-radius: 6px; letter-spacing: .5px; }
.login-logo .t { font-size: 22px; font-weight: 800; margin-top: 12px; }
.login-logo .s { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

/* Statusbar */
.statusbar { min-height: 34px; background: #f5f7f9; color: #4a5b68; border-top: 1px solid var(--divider);
  display: flex; align-items: center; padding: 0 16px; font-size: 13px; position: sticky; bottom: 0; z-index: 15; }
.statusbar.err { background: var(--err); color: #fff; }
.statusbar.ok { background: var(--ok); color: #fff; }

.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--primary);
  border-top-color: transparent; border-radius: 50%; animation: sp .7s linear infinite; vertical-align: middle; }
@keyframes sp { to { transform: rotate(360deg); } }
