/* S&L Trucking Portal — clean, mobile-first */
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, "Noto Sans KR", Arial, sans-serif; background: #f4f6f8; color: #1a1a1a; line-height: 1.5; }
a { color: #1a56db; text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar { background: #0f2a4a; color: #fff; padding: 12px 16px; }
.brand { font-size: 20px; font-weight: 700; }
.brand .sub { font-size: 12px; font-weight: 400; opacity: .75; margin-left: 6px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; }
.nav a { color: #cfe3ff; font-size: 14px; }
.nav a:hover { color: #fff; }
.who { margin-top: 6px; font-size: 13px; opacity: .85; }
.container { max-width: 1080px; margin: 0 auto; padding: 16px; }
.footer { text-align: center; font-size: 12px; color: #666; padding: 18px 12px 28px; }
h1 { font-size: 22px; margin: 4px 0 12px; }
h2 { font-size: 18px; margin: 20px 0 8px; }
h3 { font-size: 16px; margin: 14px 0 6px; }
.card { background: #fff; border: 1px solid #e2e6ea; border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: #fff; border: 1px solid #e2e6ea; border-radius: 10px; padding: 12px 14px; }
.stat .label { font-size: 12px; color: #666; }
.stat .value { font-size: 20px; font-weight: 700; margin-top: 2px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
th, td { border-bottom: 1px solid #e8ebee; padding: 8px 6px; text-align: left; vertical-align: top; }
th { background: #f0f3f6; font-size: 13px; }
tr.closed td { background: #f2fbf2; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.confirmed, .badge.closed { background: #dcf5e3; color: #166534; }
.badge.pending, .badge.open { background: #fef3c7; color: #92400e; }
.badge.flag { background: #fee2e2; color: #991b1b; }
.badge.good { background: #dcf5e3; color: #166534; }
form.inline { display: inline; }
input, select, textarea { width: 100%; padding: 9px 10px; border: 1px solid #cbd2d9; border-radius: 8px; font-size: 15px; background: #fff; }
input[type="checkbox"] { width: auto; }
label { display: block; font-size: 13px; font-weight: 600; margin: 10px 0 4px; color: #333; }
button, .btn { display: inline-block; background: #0f2a4a; color: #fff; border: none; border-radius: 8px; padding: 10px 16px; font-size: 15px; cursor: pointer; }
button:hover, .btn:hover { background: #1a3f66; text-decoration: none; }
.btn.secondary { background: #e5e9ed; color: #1a1a1a; }
.btn.danger { background: #b91c1c; }
.btn.small { padding: 5px 10px; font-size: 13px; border-radius: 6px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 12px; }
.alert { background: #fef3c7; border: 1px solid #f59e0b; color: #78350f; border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; }
.alert.error { background: #fee2e2; border-color: #ef4444; color: #7f1d1d; }
.alert.ok { background: #dcf5e3; border-color: #22c55e; color: #14532d; }
.notice { font-size: 13px; color: #555; }
.table-wrap { overflow-x: auto; }
.login-card { max-width: 420px; margin: 40px auto; }
@media (max-width: 640px) {
  .container { padding: 12px; }
  table { font-size: 13px; }
  .nav a { font-size: 13px; }
}
