* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, "Noto Sans TC", sans-serif; background: #f5f6f8; color: #1d2330; }
header { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: #1d2330; color: #fff; }
main { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
.card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.08); margin-bottom: 16px; }
input, select, button { font: inherit; padding: 8px 10px; border: 1px solid #c8ccd4; border-radius: 6px; }
button { background: #2f6fed; color: #fff; border-color: #2f6fed; cursor: pointer; }
button.secondary { background: #fff; color: #1d2330; border-color: #c8ccd4; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid #e3e6eb; }
.error { color: #c62828; min-height: 1.2em; }
.login { max-width: 360px; margin: 12vh auto; }
.login input, .login button { width: 100%; margin-top: 10px; }

.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tabs button.primary { background: #1d6f2e; border-color: #1d6f2e; }
.filt { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.sel { display: inline-block; background: #e8eef6; color: #1d2330; padding: 4px 10px; border-radius: 6px; }
.sel.on { background: #ffd97a; }
.sel-new { background: #e8eef6; }
.sel-paid { background: #d7ecd7; }
.sel-shipped { background: #dbe5f6; }
.sel-cancelled { background: #f6dada; }
.form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 8px 0; }
label { display: inline-flex; align-items: center; gap: 6px; }
h4 { font-size: 1em; margin: 0 0 8px; }
td.low { color: #c62828; font-weight: 600; }
table tr th { background: #eceff4; }
