* { box-sizing: border-box; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; margin: 0; color: #1a1a1a; background: #f6f7f9; }
header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; background: #14324f; color: #fff; padding: 10px 16px; }
header nav { display: inline-flex; flex-wrap: wrap; gap: 6px; }
header nav button { margin-left: 0; }
.header-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.lang-toggle { display: inline-flex; border: 1px solid #b9c2cc; border-radius: 6px; overflow: hidden; background: #fff; }
.lang-toggle button { border: 0; border-radius: 0; padding: 7px 10px; }
.lang-toggle button + button { border-left: 1px solid #b9c2cc; }
.lang-toggle button.active { background: #1667b1; color: #fff; }
.login-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.login-top h1 { margin: 0; }
.login-box .lang-toggle { flex: none; }
main { max-width: 1080px; margin: 0 auto; padding: 16px; }
h1 { font-size: 22px; } h2 { font-size: 19px; margin-top: 4px; }
.sub { color: #667; font-size: 13px; } header .sub { color: #bcd; }
button { padding: 7px 14px; border: 1px solid #b9c2cc; background: #fff; border-radius: 6px; cursor: pointer; font-size: 14px; }
button.primary { background: #1667b1; border-color: #1667b1; color: #fff; }
button.danger { background: #b3261e; border-color: #b3261e; color: #fff; }
label { display: block; margin: 8px 0; font-size: 14px; }
input, select, textarea { display: block; width: 100%; max-width: 420px; padding: 8px; margin-top: 4px; border: 1px solid #b9c2cc; border-radius: 6px; font-size: 15px; }
label.check input { display: inline; width: auto; }
.form.inline { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
table { border-collapse: collapse; width: 100%; background: #fff; margin: 12px 0; }
th, td { border: 1px solid #dde3e9; padding: 7px 9px; text-align: left; font-size: 14px; }
table.kv th { width: 190px; background: #eef2f6; }
tbody tr { cursor: pointer; } tbody tr:hover { background: #f0f6fc; }
.badge { padding: 2px 8px; border-radius: 10px; font-size: 12px; background: #ddd; }
.st-pending { background: #ffe1a8; } .st-ready { background: #bfe3ff; } .st-picked_up { background: #c9ecc9; }
.login-box { max-width: 360px; margin: 60px auto; background: #fff; padding: 24px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.err { color: #b3261e; } .ok { color: #187018; font-size: 16px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; } .toolbar input { max-width: 300px; } .toolbar select { max-width: 160px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.lock { color: #8a6d00; font-size: 12px; } .manual { color: #1667b1; font-size: 12px; } .blank { color: #b3261e; font-size: 12px; }
.confirm-box { background: #fff; border: 2px solid #1667b1; border-radius: 10px; padding: 14px; margin-top: 14px; max-width: 560px; }
.notes textarea { max-width: 640px; }
#print-area { display: none; }
@media print {
  body * { visibility: hidden; }
  #print-area { display: block; position: absolute; inset: 0; padding: 0.6in; visibility: visible; }
  #print-area * { visibility: visible; }
  .release h1 { font-size: 20pt; }
  .rel-id { font-size: 30pt; font-weight: 700; letter-spacing: 1px; margin: 10px 0; }
  .rel-barcode { margin: 8px 0 16px; }
}
@page { size: Letter; margin: 0.5in; }
