#loginScreen{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#0b3d35,#16836c)}
.login-card{background:#fff;padding:30px;border-radius:16px;width:min(390px,92vw);box-shadow:0 20px 60px #0005}
.login-card button{width:100%;margin:12px 0}.login-card small{display:block;text-align:center;color:#657}
header #logoutBtn{background:#ffffff1c;color:#fff}.product-filters{display:grid;grid-template-columns:2fr repeat(3,1fr) 1.2fr;gap:10px}
.panel input,.panel select{margin:5px 0}@media(max-width:760px){.product-filters{grid-template-columns:1fr}}
.receiver-row{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid #d7e1dd}
.dashboard-title{margin-top:24px;gap:16px}.dashboard-actions{display:flex;gap:8px;align-items:center}.dashboard-actions input{width:260px}.movement-entry td{background:#e8f7ef;color:#12623f}.movement-exit td{background:#fdeceb;color:#9c2d27}.movement-adjustment td{background:#fff7df;color:#755300}.movement-type{font-weight:750}.movement-entry .movement-type{color:#087443}.movement-exit .movement-type{color:#bc2f28}@media(max-width:900px){.dashboard-title{display:block}.dashboard-actions{display:grid;grid-template-columns:1fr 1fr;margin-bottom:10px}.dashboard-actions input{width:100%;grid-column:1/-1}.dashboard-actions .primary{grid-column:1/-1}}
#syncStatus{margin-left:auto;background:#167a65;color:#fff;border-color:#ffffff44}#syncStatus.offline{background:#9b5d13}#syncStatus.pending{background:#a23a32}header #userBadge{margin-left:0}
.mobile-movements{display:none}
.camera-field{display:grid;grid-template-columns:1fr auto;gap:8px}
.scan-row{grid-template-columns:2fr auto 1fr}
.camera-field button,.cameraScan{white-space:nowrap}
.camera-dialog{padding:0;width:min(620px,96vw);background:#102b26;color:#fff}
.camera-box{padding:16px}
.camera-title{display:flex;justify-content:space-between;align-items:center;gap:12px}
.camera-title h2{margin:0}
.camera-title button{background:#ffffff1c;color:#fff;border-color:#ffffff55}
.camera-preview{position:relative;overflow:hidden;border-radius:14px;background:#000;aspect-ratio:4/3}
.camera-preview video{width:100%;height:100%;object-fit:cover}
.camera-guide{position:absolute;left:7%;right:7%;top:35%;height:30%;border:3px solid #4ee2bb;border-radius:10px;box-shadow:0 0 0 999px #0004}
.camera-dialog .hint{color:#d2e5df;text-align:center}
header #userBadge{display:flex;flex-direction:column;line-height:1.05}
header #userBadge b{font-size:14px}
header #userBadge small{font-size:11px}
@media(max-width:760px){
  header{height:60px;padding:6px 10px;gap:6px}
  header>div strong{font-size:20px}
  header>div small{display:none}
  #menuBtn{width:42px;height:42px;padding:0;font-size:22px;flex:0 0 auto}
  #syncStatus{margin-left:auto;padding:8px 9px;font-size:12px;white-space:nowrap}
  header #userBadge{max-width:112px;padding:7px 9px;border-radius:12px;overflow:hidden}
  header #userBadge b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  header #userBadge small{font-size:10px;white-space:nowrap}
  header #logoutBtn{padding:8px;font-size:12px}
  aside{top:60px;width:min(280px,82vw);z-index:4;box-shadow:8px 0 24px #0002}
  main{padding:76px 14px 28px}
  h1{font-size:25px}
  h2{font-size:21px}
  .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .card{padding:14px;min-height:92px}
  .card b{font-size:25px}
  .dashboard-title{margin-top:22px}
  .dashboard-actions{gap:8px}
  .dashboard-actions button{min-height:46px}
  .desktop-movements{display:none}
  .mobile-movements{display:grid;gap:10px}
  .mobile-movement{background:#fff;border:1px solid var(--line);border-left:5px solid #7f918c;border-radius:12px;padding:13px;box-shadow:0 3px 12px #163a3010}
  .mobile-movement.movement-entry{border-left-color:#0b8a57;background:#f2fbf6}
  .mobile-movement.movement-exit{border-left-color:#c93932;background:#fff5f4}
  .mobile-movement.movement-adjustment{border-left-color:#b98413;background:#fffbef}
  .mobile-movement-top{display:flex;justify-content:space-between;gap:10px;align-items:center}
  .mobile-movement-top span{font-size:11px;color:#63736f}
  .mobile-movement.movement-entry .mobile-movement-top strong{color:#087443}
  .mobile-movement.movement-exit .mobile-movement-top strong{color:#bc2f28}
  .mobile-movement h3{display:flex;justify-content:space-between;margin:10px 0 4px;font-size:18px}
  .mobile-movement h3 b{font-size:20px}
  .mobile-movement p{margin:0 0 10px;color:#4f625d}
  .mobile-movement-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .mobile-movement-meta span{background:#fff9;border:1px solid #dce6e2;border-radius:8px;padding:7px;font-weight:700}
  .mobile-movement-meta small{display:block;color:#6b7e78;font-weight:500}
  .camera-field{grid-template-columns:1fr}
  .scan-row{grid-template-columns:1fr}
  .camera-field button,.cameraScan{min-height:48px;background:#e6f5f0;color:#075747;border-color:#9bcbbd;font-weight:700}
}
@media(max-width:390px){
  header>div strong{display:none}
  header #userBadge{max-width:96px}
}
