/* ShiftBridge — official brand palette per ShiftBridge-Brand-Guidelines. */

:root {
  --brand: #2563EB;       /* ShiftBridge blue (primary CTA) */
  --brand-dark: #1d4fce;  /* hover state */
  --navy: #1F2A44;        /* ink / headings */
  --sky: #5B9DF9;         /* accents */
  --mist: #F4F6F9;        /* page background */
  --bg: #F4F6F9;
  --panel: #FFFFFF;
  --text: #1F2A44;
  --text-muted: #64748B;
  --line: #E2E8F0;
  --success: #1F9D62;
  --warn: #C47F12;
  --error: #C0392B;
}
* { box-sizing: border-box; }
html, body { margin: 0; font-family: "Segoe UI", -apple-system, system-ui, "Helvetica Neue", Arial, sans-serif; background: var(--bg); color: var(--text); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; } a:hover { text-decoration: underline; }
code, pre { font-family: Menlo, Consolas, monospace; }

.topbar {
  background: var(--panel); border-bottom: 1px solid var(--line);
  padding: 12px 20px; display: flex; align-items: center; gap: 24px;
}
.topbar .brand strong { font-size: 18px; }
.topbar .brand span { color: var(--brand); }
.topbar .topnav { display: flex; gap: 16px; flex: 1; }
.topbar .topnav a { color: var(--text); font-weight: 500; }
.topbar .who { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-muted); }
.main { padding: 20px; max-width: 1280px; margin: 0 auto; }
.foot { text-align: center; padding: 16px; color: var(--text-muted); font-size: 12px; }

.page-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.page-head h1 { margin: 0 0 4px; font-size: 22px; }
.page-head p { margin: 0; color: var(--text-muted); font-size: 13px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; font-size: 13px; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 6px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--bg); text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-primary:disabled, .btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 18px; }
.card-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-head h2 { margin: 0; font-size: 15px; }
.card-body { padding: 16px 18px; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); font-size: 13px; }
.table th { background: #fafafb; font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.table td.num, .table th.num { text-align: right; }
.row-skipped { opacity: .5; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.stat label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.stat value { font-size: 22px; font-weight: 600; }
.stat.success { border-left: 3px solid var(--success); }
.stat.warn { border-left: 3px solid var(--warn); }

.badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 10px; background: var(--bg); color: var(--text); }
.badge.success { background: rgba(31, 157, 98, .12); color: var(--success); }
.badge.warn { background: rgba(196, 127, 18, .12); color: var(--warn); }
.badge.error { background: rgba(192, 57, 43, .12); color: var(--error); }
.badge.muted { background: var(--bg); color: var(--text-muted); }

.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 13px; }
.flash.success { background: rgba(31, 157, 98, .08); border-left: 3px solid var(--success); color: var(--success); }
.flash.error { background: rgba(192, 57, 43, .06); border-left: 3px solid var(--error); color: var(--error); }
.flash:not(.success):not(.error) { background: var(--bg); border-left: 3px solid var(--line); color: var(--text-muted); }

.muted { color: var(--text-muted); }
.empty { text-align: center; padding: 30px; color: var(--text-muted); }
.form-actions { display: flex; gap: 8px; margin-top: 16px; }

input[type="text"], input[type="email"], select { padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; background: #fff; color: var(--text); }
select { min-width: 180px; }

.login-card { max-width: 420px; margin: 80px auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 32px; text-align: center; }
.login-card h1 { margin: 0 0 6px; }
.login-card p { color: var(--text-muted); margin: 0 0 24px; font-size: 13px; }
