/* Spartek HR — professional UI system */
:root {
  --navy-950: #0a1628;
  --navy-900: #0f2744;
  --navy-800: #14365a;
  --blue-650: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --white: #ffffff;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 39, 68, 0.06);
  --shadow: 0 4px 6px -1px rgba(15, 39, 68, 0.08), 0 2px 4px -2px rgba(15, 39, 68, 0.05);
  --shadow-md: 0 10px 40px -10px rgba(15, 39, 68, 0.15);
  --shadow-lg: 0 25px 50px -12px rgba(15, 39, 68, 0.18);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--slate-50);
  color: var(--navy-950);
  min-height: 100vh;
  line-height: 1.55;
}

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}
a:hover {
  color: var(--blue-650);
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

/* —— Page loader —— */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  background: rgba(248, 250, 252, 0.72);
  backdrop-filter: blur(6px);
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.page-loader__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--slate-200);
  border-top-color: var(--blue-500);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.page-loader__text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-500);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* —— Toasts —— */
.toast-host {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(400px, calc(100vw - 2rem));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  border: 1px solid transparent;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.35s var(--ease-spring), opacity 0.25s var(--ease);
}
.toast--show {
  transform: translateX(0);
  opacity: 1;
}
.toast--info {
  background: var(--white);
  border-color: var(--slate-200);
  color: var(--slate-700);
}
.toast--success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}
.toast--error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

/* —— Auth (split layout) —— */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(300px, 1.05fr) minmax(360px, 1fr);
}
@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-brand:not(.auth-brand--compact) {
    min-height: auto;
  }
  .auth-brand--compact {
    min-height: 140px;
  }
}

.auth-brand {
  position: relative;
  background: linear-gradient(160deg, #0c1a2e 0%, var(--navy-950) 45%, #050a10 100%);
  color: var(--white);
  padding: 2.75rem 2.25rem;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}
.auth-brand--login {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.auth-brand--compact {
  padding: 1.75rem 2rem;
  min-height: auto;
}
.auth-brand__mesh {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.55;
  pointer-events: none;
}
.auth-brand__accent {
  position: absolute;
  top: -20%;
  right: -15%;
  width: 55%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.22) 0%, transparent 68%);
  pointer-events: none;
}
.auth-brand__content {
  position: relative;
  z-index: 1;
  max-width: 440px;
}
.auth-brand__eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.85);
  margin-bottom: 1rem;
}
.auth-brand__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 1rem;
  line-height: 1.2;
}
.auth-brand__title--login {
  margin-top: 1.25rem;
  font-size: clamp(1.65rem, 3.2vw, 2rem);
  color: rgba(255, 255, 255, 0.98);
}
.auth-brand__lead {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-top: 1.1rem;
  letter-spacing: -0.02em;
}
.auth-brand__tagline {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  opacity: 0.78;
  line-height: 1.55;
}
.auth-brand__tagline--lead {
  margin-top: 0.85rem;
  font-size: 0.92rem;
  opacity: 0.88;
  max-width: 38ch;
}
.auth-brand__quotes {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.auth-brand__quote {
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.85rem 1rem 0.85rem 0.95rem;
  border-left: 3px solid rgba(96, 165, 250, 0.55);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.auth-brand__quote--secondary {
  opacity: 0.95;
  border-left-color: rgba(248, 113, 113, 0.45);
}
.auth-brand__quote-mark {
  color: rgba(147, 197, 253, 0.75);
  font-weight: 700;
  margin-right: 0.15em;
}
.auth-brand__quote-end {
  color: rgba(147, 197, 253, 0.55);
  font-weight: 600;
}
.auth-brand__quote--secondary .auth-brand__quote-mark,
.auth-brand__quote--secondary .auth-brand__quote-end {
  color: rgba(252, 165, 165, 0.65);
}
.auth-brand__site-link {
  display: inline-block;
  margin-top: 1.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(147, 197, 253, 0.95) !important;
  text-decoration: none !important;
  letter-spacing: 0.02em;
}
.auth-brand__site-link:hover {
  color: var(--white) !important;
  text-decoration: underline !important;
}

.auth-main {
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem 3rem;
  background: linear-gradient(180deg, var(--slate-50) 0%, var(--white) 45%, #fafbfc 100%);
}
.auth-main--login {
  position: relative;
}
.auth-main--login::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(29, 66, 138, 0.03) 0%, transparent 42%);
  pointer-events: none;
}

/* Official Spartek wordmark (navy on white frame — readable on dark panels) */
.brand-logo-frame {
  display: inline-block;
  background: var(--white);
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  line-height: 0;
}
.brand-logo-frame--hero .brand-logo {
  height: auto;
  max-height: 46px;
  width: auto;
  max-width: min(260px, 88vw);
  object-fit: contain;
  display: block;
}
.brand-logo-frame--sidebar {
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.brand-logo-frame--sidebar .brand-logo {
  height: auto;
  max-height: 34px;
  width: 100%;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 1.75rem;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow);
}
.login-card--elevated {
  box-shadow: var(--shadow-lg);
  animation: cardIn 0.45s var(--ease) both;
}
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
.login-card__header h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}
.login-card .hint,
.login-card__header .hint {
  font-size: 0.88rem;
  color: var(--slate-500);
  margin-top: 0.4rem;
  line-height: 1.45;
}
.login-footnote {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--slate-500);
  text-align: center;
}
.input-readonly {
  background: var(--slate-50) !important;
  color: var(--slate-600);
}

.btn-block {
  width: 100%;
  justify-content: center;
  margin-top: 0.35rem;
  padding: 0.7rem 1rem;
}

/* —— App shell —— */
.app-shell {
  display: grid;
  grid-template-columns: 272px 1fr;
  min-height: 100vh;
}
@media (max-width: 960px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
}

.sidebar {
  background: linear-gradient(180deg, #101f36 0%, var(--navy-950) 100%);
  color: var(--white);
  padding: 1.5rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.sidebar__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0 0.25rem;
}
.sidebar__product {
  font-size: 0.72rem;
  opacity: 0.55;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0;
  padding-left: 0.15rem;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-align: left;
  padding: 0.62rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s, color 0.18s, transform 0.15s;
}
.nav button .nav-ic {
  flex-shrink: 0;
  opacity: 0.85;
}
.nav button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}
.nav button.active {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(96, 165, 250, 0.35);
  color: var(--white);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15);
}
.nav button.active .nav-ic {
  opacity: 1;
  color: var(--blue-300);
}
.nav button:active {
  transform: scale(0.98);
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.25rem;
}
.sidebar-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sidebar-avatar__ph {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1;
}
.user-pill {
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}
.user-pill--sidebar {
  flex: 1;
  min-width: 0;
}
.user-pill strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}
.user-pill span {
  opacity: 0.65;
  font-size: 0.78rem;
}

.btn-sidebar-logout {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn-sidebar-logout:hover {
  background: rgba(255, 255, 255, 0.12);
}
.btn-sidebar-logout:active {
  transform: scale(0.98);
}

.emp-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
}
.emp-toolbar .field {
  margin: 0;
  flex: 1 1 180px;
  min-width: 140px;
}
.emp-toolbar .btn {
  flex: 0 0 auto;
  margin-bottom: 0.1rem;
}

.main-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  background: var(--slate-50);
}
.main-header {
  height: 4px;
  position: relative;
  overflow: hidden;
}
.main-header__glow {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-400), var(--navy-800));
  opacity: 0.85;
}

.main {
  padding: 1.75rem 1.75rem 2rem;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}

.app-footer {
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid var(--slate-200);
  background: linear-gradient(180deg, var(--white) 0%, var(--slate-50) 100%);
  padding: 1.25rem 1.5rem 1.5rem;
}
.app-footer__inner {
  max-width: 1320px;
  margin: 0 auto;
  text-align: center;
}
.app-footer__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: 1rem;
}
.app-footer__brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
}
.app-footer__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.12s var(--ease);
}
.app-footer__brand:hover {
  border-color: var(--slate-300);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.app-footer__brand img {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(240px, 28vw);
  object-fit: contain;
}
/* White wordmark asset — needs contrast (see NEYCET logo); blue to match Spartek theme */
.app-footer__brand--neycer {
  background: linear-gradient(155deg, #0f2744 0%, #1d428a 42%, #14365a 100%);
  border-color: rgba(15, 39, 68, 0.35);
  padding: 0.5rem 1.1rem;
  box-shadow: 0 2px 10px rgba(29, 66, 138, 0.28);
}
.app-footer__brand--neycer:hover {
  border-color: rgba(147, 197, 253, 0.45);
  box-shadow: 0 4px 16px rgba(29, 66, 138, 0.38);
}
.app-footer__brand--neycer img {
  height: 34px;
  max-width: min(220px, 40vw);
}
.app-footer__brand--spartekoncrete {
  padding: 0.45rem 0.85rem;
}
.app-footer__brand--spartekoncrete img {
  height: 42px;
  max-width: min(300px, 48vw);
}
.app-footer__meta {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--slate-500);
  line-height: 1.5;
}
.app-footer__meta a {
  color: var(--blue-600);
  font-weight: 600;
}

.screen-root {
  animation: viewFade 0.35s var(--ease) both;
}
@keyframes viewFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.top-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.top-bar h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.03em;
}
.top-bar .sub {
  color: var(--slate-500);
  font-size: 0.92rem;
  margin-top: 0.35rem;
  max-width: 52ch;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s var(--ease), box-shadow 0.2s, filter 0.15s, background 0.15s;
}
.btn:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
}
.btn-primary {
  background: linear-gradient(180deg, var(--blue-500) 0%, var(--blue-600) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}
.btn-secondary {
  background: var(--white);
  border-color: var(--slate-200);
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: var(--slate-50);
  border-color: var(--slate-300);
}
.btn-ghost {
  background: transparent;
  border-color: var(--slate-200);
  color: var(--slate-600);
}
.btn-ghost:hover {
  background: var(--slate-100);
}
.btn-danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: var(--danger);
}

/* —— Cards & KPI —— */
.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.15rem;
  transition: box-shadow 0.2s var(--ease), border-color 0.2s;
}
.card:hover {
  box-shadow: var(--shadow);
}
.card h3 {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--slate-500);
  margin-bottom: 1rem;
  font-weight: 700;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.stat {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--white) 0%, var(--blue-50) 100%);
  border: 1px solid var(--blue-100);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.stat::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.stat .lbl {
  font-size: 0.82rem;
  color: var(--slate-500);
  margin-top: 0.35rem;
  font-weight: 500;
}

label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--slate-600);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
input,
select,
textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:hover,
select:hover,
textarea:hover {
  border-color: var(--slate-300);
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
textarea {
  min-height: 88px;
  resize: vertical;
}

.field {
  margin-bottom: 1rem;
}
.field.error input,
.field.error select {
  border-color: var(--danger);
}
.err-msg {
  color: var(--danger);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.table-wrap {
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
th,
td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--slate-100);
}
th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  background: var(--slate-50);
  font-weight: 700;
}
tbody tr {
  transition: background 0.12s;
}
tbody tr:hover td {
  background: rgba(239, 246, 255, 0.55);
}
tbody tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}
.badge-green {
  background: #d1fae5;
  color: #047857;
}
.badge-amber {
  background: #fef3c7;
  color: #b45309;
}
.badge-blue {
  background: #dbeafe;
  color: var(--blue-650);
}
.badge-slate {
  background: var(--slate-200);
  color: var(--slate-600);
}

.calendar-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 900px) {
  .calendar-wrap {
    grid-template-columns: 1fr;
  }
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  font-size: 0.8rem;
}
.cal-head {
  font-weight: 700;
  color: var(--slate-500);
  text-align: center;
  padding: 0.45rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.cal-cell {
  min-height: 90px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 0.45rem;
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cal-cell:hover:not(.muted) {
  border-color: var(--blue-100);
  box-shadow: var(--shadow-sm);
}
.cal-cell.muted {
  opacity: 0.28;
  background: var(--slate-100);
}
.cal-cell.today {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
  background: var(--blue-50);
}
.cal-cell .d-num {
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--navy-900);
}
.cal-cell .att-line {
  font-size: 0.68rem;
  color: var(--slate-600);
  margin-top: 0.2rem;
}

.photo-preview {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid var(--slate-200);
  background: var(--slate-100);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 39, 68, 0.48);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 1rem;
  animation: modalBg 0.25s var(--ease) both;
}
@keyframes modalBg {
  from {
    opacity: 0;
  }
}
.modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.6rem 1.75rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
  animation: modalIn 0.35s var(--ease-spring) both;
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
}
.modal h3 {
  margin-bottom: 0.85rem;
  color: var(--navy-900);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.banner {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.banner-info {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--navy-800);
}
.banner-warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

code.invite-link {
  display: block;
  word-break: break-all;
  font-size: 0.78rem;
  padding: 0.75rem;
  background: var(--slate-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
  margin: 0.5rem 0;
  font-family: ui-monospace, monospace;
}

.wizard-steps {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
}
.wizard-steps span {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--slate-100);
  color: var(--slate-500);
  transition: background 0.2s, color 0.2s;
}
.wizard-steps span.on {
  background: linear-gradient(135deg, var(--blue-100), #e0e7ff);
  color: var(--blue-650);
  box-shadow: 0 1px 0 rgba(59, 130, 246, 0.15);
}

.flex {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}
.grow {
  flex: 1;
  min-width: 140px;
}

/* —— NDA / Documents —— */
.nda-card {
  max-width: 42rem;
}
.nda-card.nda-preview-card {
  max-width: min(56rem, 100%);
}
.nda-preview-heading {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-900);
  margin: 1rem 0 0.5rem;
}
.nda-doc-preview {
  margin-top: 0.5rem;
  max-height: min(70vh, 52rem);
  overflow: auto;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.nda-doc-body {
  padding: 1.25rem 1.5rem 2rem;
  font-family: "Times New Roman", Times, "Liberation Serif", serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1a1a1a;
}
.nda-doc-body p {
  margin: 0 0 0.65em;
}
.nda-doc-body table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92em;
  margin: 0.5rem 0;
}
.nda-doc-body td,
.nda-doc-body th {
  border: 1px solid #ccc;
  padding: 0.35rem 0.5rem;
  vertical-align: top;
}
.nda-preview-skeleton {
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--slate-500);
  font-size: 0.9rem;
}
.nda-preview-error {
  padding: 1rem;
}
.nda-accept {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--slate-700);
  cursor: pointer;
}
.nda-accept input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--blue-600);
}
.nda-signed-banner {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
}
.nda-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #065f46;
  background: #a7f3d0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.nda-signed-title {
  font-size: 1rem;
  margin: 0;
  color: var(--navy-900);
}
.nda-signed-title .sub {
  font-weight: 400;
  color: var(--slate-600);
}
