.badge.completed { background: #f0fdf4; color: #166534; }
.badge.terminated, .badge.superseded { background: #f1f5f9; color: #475569; }
.welcome-panel { padding: 28px; margin-bottom: 20px; color: white; border-radius: 18px; background: linear-gradient(135deg, #0b1530, #1d4ed8); box-shadow: 0 18px 45px rgba(29, 78, 216, .16); }
.welcome-panel h2 { margin: 4px 0 6px; font-size: clamp(28px, 4vw, 40px); }
.welcome-panel p { margin: 0; font-size: 17px; color: #dbeafe; }
.eyebrow { margin: 0 0 6px !important; color: #2563eb; font-size: 12px !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.welcome-panel .eyebrow { color: #93c5fd; }
.action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 24px; }
.action-card { display: grid; grid-template-columns: 52px 1fr; gap: 15px; align-items: start; min-height: 150px; padding: 21px; text-align: left; color: #172033; background: white; border: 1px solid #e2e8f0; border-radius: 15px; box-shadow: 0 2px 8px rgba(15, 23, 42, .04); transition: transform .15s, border-color .15s, box-shadow .15s; }
.action-card:hover { transform: translateY(-2px); border-color: #93c5fd; box-shadow: 0 12px 30px rgba(37, 99, 235, .10); }
.action-card strong, .action-card small, .action-card .action-link { display: block; }
.action-card strong { margin: 2px 0 7px; font-size: 17px; }
.action-card small { min-height: 40px; color: #64748b; line-height: 1.45; }
.action-icon { display: grid; place-items: center; width: 52px; height: 52px; color: #1d4ed8; background: #eff6ff; border-radius: 14px; font-size: 25px; font-weight: 800; }
.action-link { margin-top: 13px; color: #2563eb; font-size: 13px; font-weight: 800; }
.action-grid .action-card:last-child { grid-column: 1 / -1; }
.attention-card { width: 100%; display: flex; justify-content: space-between; gap: 12px; margin-bottom: 15px; padding: 16px 18px; text-align: left; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; }
.attention-card span { color: #b45309; font-weight: 700; }
.compact-metrics .card { padding: 16px; box-shadow: none; }
.guided-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.guided-layout h2 { margin: 5px 0 8px; font-size: 30px; }
.lead { max-width: 720px; margin: 0 0 24px; color: #475569; font-size: 17px; line-height: 1.6; }
.guide-action { position: sticky; top: 95px; }
.guide-action h3 { margin-top: 0; }
.guide-action .btn { width: 100%; }
.guide-steps { display: grid; gap: 12px; margin: 20px 0; }
.guide-step { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 14px; background: white; border: 1px solid #e2e8f0; border-radius: 12px; }
.guide-step > span { display: grid; place-items: center; width: 34px; height: 34px; color: #1d4ed8; background: #dbeafe; border-radius: 50%; font-weight: 800; }
.guide-step p { margin: 5px 0; line-height: 1.55; }
.text-button { padding: 5px 0; color: #2563eb; background: transparent; border: 0; font-weight: 700; }
.text-button.small { padding: 7px 3px; font-size: 12px; }
.danger-text { color: #b91c1c; }
.section-title { margin: 26px 0 12px; }
.notice.warning { color: #92400e; background: #fffbeb; border: 1px solid #fde68a; }
.employee-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.employee-toolbar .field { width: min(430px, 100%); }
.employee-toolbar .field > span { font-size: 13px; font-weight: 700; }
.filter-pills { display: flex; gap: 6px; padding: 4px; overflow-x: auto; background: #e2e8f0; border-radius: 10px; }
.filter-pill { min-height: 36px; padding: 7px 12px; white-space: nowrap; color: #475569; background: transparent; border: 0; border-radius: 7px; font-weight: 700; }
.filter-pill.active { color: #1d4ed8; background: white; box-shadow: 0 1px 4px rgba(15, 23, 42, .08); }
.record-actions { min-width: 230px; }
.check-row { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; line-height: 1.45; }
.check-row input { width: 19px; height: 19px; margin: 1px 0 0; }
.sidebar-brand { display: block; width: calc(100% - 20px); height: 58px; margin: 0 10px 18px; padding: 7px; object-fit: contain; object-position: left center; background: white; border-radius: 10px; }
.logo-preview { min-height: 130px; display: grid; place-items: center; padding: 18px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 12px; }
.logo-preview img { display: block; max-width: 100%; max-height: 115px; object-fit: contain; }

@media (max-width: 1000px) {
  .auth-layout { grid-template-columns: minmax(0, 1fr); }
  .auth-panel { min-width: 0; width: 100%; }
  .app-shell { grid-template-columns: 190px minmax(0, 1fr); }
  .sidebar { padding: 18px 9px; }
  .company-chip, .nav-label, .sidebar-footer .nav-label { display: block; }
  .nav-btn { text-align: left; white-space: nowrap; }
  .guided-layout { grid-template-columns: minmax(0, 1fr); }
  .guide-action { position: static; }
}

@media (max-width: 650px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .auth-panel { padding: 20px; place-content: center stretch; }
  .auth-box { width: 100%; min-width: 0; }
  .tabs { grid-template-columns: 1fr; }
  .tab { min-height: 42px; }
  .app-shell { display: block; }
  .sidebar { height: auto; position: static; display: flex; align-items: center; gap: 4px; overflow-x: auto; padding: 8px; }
  .sidebar .logo { padding: 8px; flex: 0 0 auto; }
  .sidebar-brand { width: 58px; height: 44px; flex: 0 0 auto; margin: 0; padding: 4px; }
  .company-chip { display: none; }
  .nav-list { display: flex; flex: 0 0 auto; }
  .nav-btn { width: auto; min-height: 44px; padding: 10px; white-space: nowrap; }
  .sidebar-footer { position: static; margin-left: auto; flex: 0 0 auto; }
  .topbar { height: auto; min-height: 64px; padding: 10px 15px; gap: 10px; }
  .topbar h1 { font-size: 17px; }
  .user-pill .muted { display: none; }
  .page-head .btn { width: 100%; }
  .modal { padding: 8px; }
  .modal-card { padding: 18px; max-height: 96vh; }
  .table { min-width: 640px; }
  .toast { left: 12px; right: 12px; bottom: 12px; text-align: center; }
  .welcome-panel { padding: 22px 18px; border-radius: 14px; }
  .action-grid { grid-template-columns: minmax(0, 1fr); }
  .action-grid .action-card:last-child { grid-column: auto; }
  .action-card { min-height: 0; grid-template-columns: 44px 1fr; padding: 17px; }
  .action-icon { width: 44px; height: 44px; font-size: 21px; }
  .action-card small { min-height: 0; }
  .attention-card { display: grid; }
  .employee-toolbar { display: grid; align-items: stretch; }
  .filter-pills { width: 100%; }
  .filter-pill { flex: 1 0 auto; }
  .guide-step { padding: 12px; }
  .modal-card .btn { min-height: 44px; }
}
