
/* Constrain the whole page so cards don't stretch edge-to-edge */
  .emp-page .container-fluid {
    max-width: 1180px;   /* was unconstrained; adjust to taste (1080–1280) */
    margin-inline: auto;
  }

  /* Use a tight 2-column grid on lg+ with a narrower left rail */
  @media (min-width: 992px) {
    .emp-grid {
      display: grid;
      grid-template-columns: 680px minmax(360px, 1fr); /* narrower left column */
      align-items: start;
      gap: 16px;
    }
    .emp-left { order: 1; }
    .emp-right { order: 2; }
  }

  /* On xl+ we can shrink a bit more if you like super-compact */
  @media (min-width: 1200px) {
    .emp-grid {
      grid-template-columns: 640px minmax(380px, 1fr);
    }
  }

  /* Card polish */
  .emp-card { border-radius: 0.75rem; }

  /* Right side: keep media neat and never too tall */
  .emp-media { display: flex; align-items: center; justify-content: center; }
  .emp-photo { max-width: 100%; height: auto; max-height: 360px; object-fit: cover; }
  .emp-scorecard { max-width: 100%; height: auto; max-height: 1000px; object-fit: contain; }

  /* Make right column sticky so it follows scroll without jumping */
  .sticky-wrap { position: sticky; top: 1rem; }

  /* Labels */
  .emp-label { display: inline-block; min-width: 170px; font-weight: 600; color: #555; }

  /* Actions */
  .emp-actions .input-group > input { max-width: 180px; }
  .btn-layoff {
    --border: #b58900;
    color: #6b5e00;
    border: 1px solid var(--border);
    background: transparent;
  }
  .btn-layoff:hover {
    background: rgba(181,137,0,0.1);
    color: #5a5000;
    border-color: #a07a00;
  }

  /* Mobile/tablet: full width stack, natural spacing */
  @media (max-width: 991.98px) {
    .emp-grid { display: block; }
  }

/* Refined design: Three-column layout – employee card (col1), scorecard (col2), edits (col3) */
  :root {
    --bg: #0b0b0c;
    --surface: #141518;
    --surface-2: #1a1c20;
    --border: #23252b;
    --muted: #9aa3ae;
    --text: #e9edf1;
    --accent: #ff7a00;
    --accent-2: #ffa24a;
    --shadow: rgba(0,0,0,.45);
  }  body { background: var(--bg); color: var(--text); font-family: 'Helvetica Neue', Arial, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.4; }  /* Three-column layout: Employee col1, Scorecard col2, Edits col3 – responsive stack */
  .emp-layout {
    max-width: 1400px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 32px;
  }  @media
 (max-width: 992px) {
    .emp-layout {
      grid-template-columns: 1fr 1fr;
    }
  }  @media
 (max-width: 768px) {
    .emp-layout {
      grid-template-columns: 1fr;
      gap: 24px;
    }
  }  /* Column 1: Employee ID card */
  .emp-card {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px var(--shadow);
    position: relative;
    min-height: 600px;
  }  .emp-header {
    background: var(--surface-2);
    padding: 32px 24px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }  .emp-header h2 {
    margin: -20px 0 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }  .emp-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--accent);
  }  .emp-photo-container {
    text-align: center;
    margin: 16px auto;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--surface-2);
    background: var(--bg);
    box-shadow: 0 4px 12px var(--shadow);
  }  .emp-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }  .emp-info {
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }  .emp-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
  }  .emp-item:last-child { border-bottom: none; }  .emp-label {
    color: var(--muted);
    font-weight: 500;
  }  .emp-value {
    color: var(--text);
    text-align: right;
    max-width: 60%;
  }  .emp-specialties .badge {
    background: var(--surface-2);
    color: var(--muted);
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.8rem;
    margin: 0 4px 4px 0;
    border: 1px solid var(--border);
  }  .emp-specialties .badge:hover {
    border-color: var(--accent);
    color: var(--accent);
  }  .emp-status {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 16px 0;
  }  .badge-status {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
  }  .badge-laid-off {
    background: #ffc10720;
    color: #ffc107;
    border: 1px solid #ffc10740;
  }  .badge-terminated {
    background: #dc354520;
    color: #dc3545;
    border: 1px solid #dc354540;
  }  /* Column 2: MUST Scorecard card /
  .emp-scorecard-card {
    background: var(--surface);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 24px var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 900px; / Align height with employee card */
  }  .emp-scorecard-card h5 {
    color: var(--text);
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 1.1rem;
  }  .emp-scorecard {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: transform 0.3s ease;
    cursor: zoom-in;
  }  .emp-scorecard:hover {
    transform: scale(1.05);
  }  /* Column 3: Edit controls */
  .emp-controls {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }  .emp-form {
    background: var(--surface);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 24px var(--shadow);
  }  .emp-form h5 {
    color: var(--text);
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 1.1rem;
  }  .form-group {
    margin-bottom: 16px;
  }  .form-label {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 4px;
    display: block;
  }  .form-control {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.95rem;
  }  .form-control:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255,122,0,0.1);
  }  .btn {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
    margin-top: 8px;
  }  .btn-primary {
    background: var(--accent);
    color: var(--bg);
    border: none;
  }  .btn-primary:hover {
    background: var(--accent-2);
  }  .btn-outline-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
  }  .btn-outline-secondary:hover {
    background: var(--accent);
    color: var(--bg);
  }  .btn-outline-danger {
    background: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
  }  .btn-outline-danger:hover {
    background: #dc3545;
    color: #fff;
  }  .btn-layoff {
    background: transparent;
    color: #b58900;
    border: 1px solid #b58900;
  }  .btn-layoff:hover {
    background: #b58900;
    color: var(--bg);
  }  /* Back button */
  .back-btn {
    max-width: 1400px;
    margin: 0 auto 16px;
    text-align: left;
  }  .back-btn a {
    color: var(--muted);
    font-size: 0.9rem;
    text-decoration: none;
  }  .back-btn a:hover {
    color: var(--accent);
  }

  /* Bright orange button with black text */
.btn-orange {
  background-color: #ff8c00;    /* orange */
  border-color: #ff8c00;
  color: #000;                  /* black text */
}
.btn-orange:hover,
.btn-orange:focus {
  background-color: #ff9800;
  border-color: #ff9800;
  color: #000;
  filter: brightness(1.02);
}
.btn-orange:active {
  background-color: #f28000;
  border-color: #f28000;
  color: #000;
}