:root { --navy:#16324f; --teal:#0f766e; --bg:#f4f6f8; --card:#fff; --text:#1f2937; --muted:#6b7280; --line:#e5e7eb; }
* { box-sizing: border-box; }
body { margin:0; font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif; background:var(--bg); color:var(--text); }
a { color:var(--teal); text-decoration:none; }
a:hover { text-decoration:underline; }
.navbar { background:var(--navy); color:#fff; display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; padding:12px 20px; }
.navbar a { color:#dbe7f3; text-decoration:none; padding:6px 8px; border-radius:6px; }
.navbar a:hover, .navbar .brand { color:#fff; }
.navbar a.is-active { background:rgba(255,255,255,.12); color:#fff; }
.brand { font-weight:700; margin-right:12px; }
.nav-right { margin-left:auto; display:flex; align-items:center; gap:10px; }
.container { max-width:1100px; margin:0 auto; padding:24px 16px; }
.card { background:var(--card); border-radius:12px; box-shadow:0 1px 3px rgba(16,24,40,.08); padding:16px; }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; margin-bottom:20px; }
.stat .label { color:var(--muted); font-size:13px; }
.stat .value { font-size:28px; font-weight:700; }
.btn { display:inline-block; border:0; border-radius:8px; padding:8px 14px; cursor:pointer; font:inherit; text-decoration:none; }
.btn:hover { text-decoration:none; opacity:.92; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline:2px solid var(--teal); outline-offset:2px;
}
.btn-teal { background:var(--teal); color:#fff; }
.btn-navy { background:var(--navy); color:#fff; }
.btn-outline { background:transparent; color:#fff; border:1px solid #fff; }
.btn-danger { background:#b91c1c; color:#fff; }
.btn-light { background:#e5e7eb; color:#111; }
.table-wrap { overflow-x:auto; }
.table { width:100%; border-collapse:collapse; min-width:640px; }
.table th, .table td { text-align:left; padding:10px 8px; border-bottom:1px solid var(--line); vertical-align:middle; }
.badge { display:inline-block; padding:3px 8px; border-radius:999px; font-size:12px; }
.badge-gray { background:#e5e7eb; }
.badge-yellow { background:#fde68a; }
.badge-green { background:#bbf7d0; }
.badge-red { background:#fecaca; }
.badge-blue { background:#bfdbfe; }
.alert { padding:10px 12px; border-radius:8px; margin-bottom:12px; }
.alert-success { background:#d1fae5; }
.alert-danger { background:#fee2e2; }
.alert-warning { background:#fef3c7; }
.alert-info { background:#dbeafe; }
.form-group { margin-bottom:12px; }
label { display:block; margin-bottom:4px; font-size:14px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=file], select, textarea {
  width:100%; padding:8px 10px; border:1px solid #d1d5db; border-radius:8px; font:inherit; background:#fff;
}
input[type=checkbox] { width:auto; margin-right:6px; }
label.inline { display:flex; align-items:center; font-weight:400; }
.row { display:flex; flex-wrap:wrap; gap:12px; }
.col { flex:1 1 220px; }
.login-wrap { min-height:100dvh; display:flex; align-items:center; justify-content:center; background:var(--navy); padding:24px 16px; }
.login-card { width:100%; max-width:380px; padding:24px; }
.muted { color:var(--muted); }
.h1 { font-size:22px; margin:0 0 16px; }
.h2 { font-size:18px; margin:16px 0 8px; }
.toolbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; gap:8px; flex-wrap:wrap; }
.toolbar .h1 { margin:0; }
.actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.pagination { display:flex; gap:12px; align-items:center; margin-top:12px; flex-wrap:wrap; }
.pagination [aria-disabled="true"] { color:var(--muted); pointer-events:none; }
.help { font-size:13px; color:var(--muted); margin:0 0 12px; }
@media (max-width: 720px) {
  .navbar { padding:10px 12px; }
  .nav-right { width:100%; justify-content:space-between; }
  .table { min-width:520px; }
}
