﻿.workflow-label {
      color: #000;
      font-weight: 600;
      padding: 4px 10px;
      border-radius: 6px;
      font-size: 16px;
    }

    .label-top {
      top: 36px;
      transform: translateX(-140%);

    }

    .label-top-right {
      top: 35px;
      right: 160px;
    }

    .label-right {
      top: 50%;
      right: 60px;
      transform: translateY(-50%);
    }

    .label-bottom-right {
      bottom: 49px;
      right: 164px;
    }

    .label-bottom-left {
      bottom: 45px;
      left: 170px;
    }

    .label-left {
      top: 50%;
      left: 60px;
      transform: translateY(-50%);
    }

    #featureWrapper {
      padding-top: 10px;
      padding-bottom: 10px;
    }

    .feature-card {
      min-width: 260px;
      background: #fdeee7;
      border-radius: 12px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
      transition: all 0.3s ease;
      border: 1px solid #FF7043;
    }

    .feature-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }

    /* ===== Hero ===== */
    .hr-hero {
      position: relative;
      overflow: hidden;
      padding: 64px 0 72px;
      background:
        radial-gradient(ellipse 70% 60% at 88% 6%, rgba(201, 227, 56, .18), transparent 60%),
        radial-gradient(ellipse 70% 60% at 6% 92%, rgba(235, 80, 23, .12), transparent 60%),
        var(--paper-cream, #fff6f1);
    }

    .hr-hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(235, 80, 23, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(235, 80, 23, .05) 1px, transparent 1px);
      background-size: 46px 46px;
      mask-image: radial-gradient(ellipse 68% 62% at 50% 38%, #000 0%, transparent 78%);
      -webkit-mask-image: radial-gradient(ellipse 68% 62% at 50% 38%, #000 0%, transparent 78%);
      pointer-events: none;
    }

    .hr-hero-inner {
      position: relative;
      z-index: 1;
      max-width: 860px;
      text-align: center;
    }

    .hr-hero-inner h1 {
      margin: 22px 0 0;
      font-weight: 700;
      font-size: clamp(2rem, 4.6vw, 3.3rem);
      line-height: 1.15;
      letter-spacing: -0.02em;
      color: var(--ink, #1d1b1a);
      text-wrap: pretty;
    }

    .hr-hero-inner .lead {
      margin: 18px auto 0;
      max-width: 640px;
      font-size: 1.05rem;
      font-weight: 400;
      color: var(--text-2, #6b7280);
    }

    .hr-hero-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      gap: 14px;
      margin-top: 30px;
    }

    .hr-hero-actions .btn {
      text-decoration: none;
    }

    @media (max-width: 575.98px) {
      .hr-hero { padding: 44px 0 52px; }
      .hr-hero-actions .btn { width: 100%; }
    }

    .hr-letter-display {
      background-image: url("images/Display-Letter-HR-Section.jpg");
      background-repeat: no-repeat;
      background-size: cover;
      background-position: center;
      border-radius: 20px;
    }

    .search-bar .form-control {
      border: none;
      box-shadow: inset 0 0 0 1px rgba(235, 80, 23, 0.25);
      background: rgba(235, 80, 23, 0.08);
      height: 50px;
    }

    .search-bar .btn {
      border: none;
      font-weight: 600;
      height: 50px;
      margin-bottom: 13px;
      color: #111;
    }

    .search-bar .btn:hover {
      opacity: 0.9;
    }

    /* ===== Letter card (clickable) ===== */
    .letter-card {
      cursor: pointer;
      position: relative;
      overflow: hidden;
    }

    .letter-card .letter-hover {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      background: rgba(235, 80, 23, 0.95);
      color: #fff;
      font-weight: 600;
      letter-spacing: 0.2px;
      opacity: 0;
      transform: translateY(8px);
      transition: opacity .25s ease, transform .25s ease;
      border-radius: 12px;
      font-size: 15px;
    }

    .letter-card:hover .letter-hover,
    .letter-card:focus-visible .letter-hover {
      opacity: 1;
      transform: translateY(0);
    }

    .letter-card:focus-visible {
      outline: 2px solid #eb5017;
      outline-offset: 3px;
    }

    .letter-card .badge-doc {
      position: absolute;
      top: 12px;
      right: 12px;
      background: #fff;
      color: #eb5017;
      font-size: 10px;
      font-weight: 700;
      padding: 4px 8px;
      border-radius: 999px;
      letter-spacing: .4px;
      text-transform: uppercase;
      box-shadow: 0 2px 6px rgba(235, 80, 23, .15);
    }

    /* ===== Letter modal ===== */
    .letter-modal .modal-dialog { max-width: 880px; }
    .letter-modal .modal-content {
      border: none;
      border-radius: 18px;
      overflow: hidden;
      box-shadow: 0 30px 80px rgba(0, 0, 0, .18);
    }
    .letter-modal .modal-header {
      background: linear-gradient(135deg, #fdeee7 0%, #ffe0d2 100%);
      border-bottom: 1px solid rgba(235, 80, 23, .18);
      padding: 22px 28px;
      align-items: flex-start;
    }
    .letter-modal .modal-header .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .8px;
      text-transform: uppercase;
      color: #eb5017;
      margin-bottom: 8px;
    }
    .letter-modal .modal-header .eyebrow::before {
      content: "";
      width: 18px;
      height: 2px;
      background: #eb5017;
      border-radius: 2px;
    }
    .letter-modal .modal-header h5 {
      font-weight: 700;
      font-size: 22px;
      margin: 0 0 4px;
      color: #111;
    }
    .letter-modal .modal-header p {
      margin: 0;
      font-size: 13.5px;
      color: #555;
    }
    .letter-modal .modal-body {
      padding: 24px 28px 8px;
      overflow-y: auto;
    }
    .letter-modal .form-section { margin-bottom: 22px; }
    .letter-context-note {
      background: #fff7f3;
      border: 1px solid rgba(235, 80, 23, .16);
      border-radius: 12px;
      color: #5a463f;
      font-size: 13px;
      line-height: 1.5;
      padding: 12px 14px;
      margin-bottom: 16px;
    }
    .letter-modal .form-section-title {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 12.5px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .6px;
      color: #111;
      margin-bottom: 14px;
      padding-bottom: 8px;
      border-bottom: 1px dashed rgba(0, 0, 0, .08);
    }
    .letter-modal .form-section-title i {
      width: 28px;
      height: 28px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: #fdeee7;
      color: #eb5017;
      border-radius: 8px;
      font-size: 14px;
    }
    .letter-modal .form-label {
      font-size: 13px;
      font-weight: 600;
      color: #222;
      margin-bottom: 6px;
    }
    .letter-modal .form-label .req { color: #eb5017; margin-left: 2px; }
    .letter-modal .form-control,
    .letter-modal .form-select {
      border: 1px solid #e3e6ea;
      border-radius: 10px;
      padding: 10px 12px;
      font-size: 14px;
      background: #fafafa;
      transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    }
    .letter-modal .form-control:focus,
    .letter-modal .form-select:focus {
      border-color: #eb5017;
      background: #fff;
      box-shadow: 0 0 0 3px rgba(235, 80, 23, .12);
    }
    .letter-modal textarea.form-control { min-height: 84px; resize: vertical; }

    .plain-format-option,
    .employee-mode-option {
      background: #fff;
      border: 1px solid #edf0f2;
      border-radius: 10px;
      padding: 12px 14px 12px 38px;
    }
    .plain-format-option .form-check-input,
    .employee-mode-option .form-check-input {
      margin-left: -24px;
      margin-top: 3px;
      border-color: rgba(235, 80, 23, .45);
    }
    .plain-format-option .form-check-input:checked,
    .employee-mode-option .form-check-input:checked {
      background-color: #eb5017;
      border-color: #eb5017;
    }
    .plain-format-option .form-check-input:focus,
    .employee-mode-option .form-check-input:focus {
      box-shadow: 0 0 0 3px rgba(235, 80, 23, .14);
    }
    .plain-format-option .form-check-label,
    .employee-mode-option .form-check-label {
      font-size: 13.5px;
      font-weight: 700;
      color: #1f252b;
    }
    .employee-mode-toggle {
      gap: 10px !important;
    }
    .employee-mode-option {
      min-width: 180px;
      padding-top: 10px;
      padding-bottom: 10px;
    }

    .logo-drop {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 14px;
      border: 1.5px dashed #eb5017;
      border-radius: 12px;
      background: #fff7f3;
    }
    .logo-drop .logo-preview {
      width: 64px;
      height: 64px;
      border-radius: 10px;
      background: #fff;
      border: 1px solid rgba(235, 80, 23, .25);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #eb5017;
      font-size: 22px;
      flex-shrink: 0;
      overflow: hidden;
    }
    .logo-drop .logo-preview img { width: 100%; height: 100%; object-fit: contain; }
    .logo-drop .logo-text { flex: 1; }
    .logo-drop .logo-text small { color: #666; font-size: 12px; display: block; margin-top: 2px; }
    .logo-drop label.btn {
      background: #eb5017;
      color: #fff;
      font-size: 13px;
      font-weight: 600;
      padding: 8px 14px;
      border-radius: 8px;
      cursor: pointer;
      border: none;
    }
    .logo-drop label.btn:hover { background: #c43e0d; color: #fff; }

    .multiple-employee-panel {
      margin-top: 18px;
      padding: 16px;
      background: #fffaf7;
      border: 1px solid rgba(235, 80, 23, .16);
      border-radius: 12px;
    }
    .multiple-employee-panel strong {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      color: #1f252b;
    }
    .employee-count-badge {
      min-width: 24px;
      height: 24px;
      padding: 0 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      background: #eb5017;
      color: #fff;
      font-size: 12px;
      font-weight: 700;
    }
    .btn-add-employee {
      min-height: 38px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 8px 14px;
      border-radius: 10px;
      border: 1px solid rgba(235, 80, 23, .25);
      background: #fff;
      color: #eb5017;
      font-size: 13px;
      font-weight: 700;
      transition: background .15s ease, color .15s ease, border-color .15s ease;
    }
    .btn-add-employee:hover {
      background: #eb5017;
      color: #fff;
      border-color: #eb5017;
    }
    .employee-empty-state {
      min-height: 72px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 14px;
      border: 1px dashed rgba(235, 80, 23, .28);
      border-radius: 10px;
      background: #fff;
      color: #68707a;
      font-size: 13px;
      text-align: center;
    }
    .employee-empty-state i {
      color: #eb5017;
      font-size: 18px;
    }
    .employee-grid {
      border-collapse: separate;
      border-spacing: 0;
      overflow: hidden;
      border: 1px solid #eceff2;
      border-radius: 10px;
      background: #fff;
      font-size: 13px;
    }
    .employee-grid thead th {
      background: #f8f9fb;
      color: #353b42;
      font-size: 11.5px;
      text-transform: uppercase;
      letter-spacing: .35px;
      border-bottom: 1px solid #eceff2;
      padding: 11px 12px;
      white-space: nowrap;
    }
    .employee-grid tbody td {
      vertical-align: middle;
      padding: 11px 12px;
      color: #343940;
      border-bottom: 1px solid #f0f1f3;
      min-width: 112px;
    }
    .employee-grid tbody tr:last-child td {
      border-bottom: none;
    }
    .employee-row-actions {
      min-width: 96px !important;
      white-space: nowrap;
    }
    .btn-row-action {
      width: 34px;
      height: 34px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-right: 6px;
      border-radius: 8px;
      border: 1px solid #dfe3e7;
      background: #fff;
      color: #4a525b;
      transition: background .15s ease, color .15s ease, border-color .15s ease;
    }
    .btn-row-action:hover {
      background: #f1f3f5;
      color: #111;
      border-color: #ccd2d8;
    }
    .btn-row-action.danger {
      color: #d13b1f;
      border-color: rgba(209, 59, 31, .24);
    }
    .btn-row-action.danger:hover {
      background: #fff1ed;
      border-color: rgba(209, 59, 31, .5);
    }

    .letter-modal .modal-footer {
      padding: 16px 28px;
      background: #fafafa;
      border-top: 1px solid #eee;
      gap: 10px;
    }
    .letter-modal .btn-cancel {
      background: transparent;
      color: #333;
      font-weight: 600;
      padding: 10px 20px;
      border-radius: 10px;
      border: 1px solid #d8d8d8;
    }
    .letter-modal .btn-cancel:hover { background: #f1f1f1; }
    .letter-modal .btn-download {
      background: #eb5017;
      color: #fff;
      font-weight: 600;
      padding: 10px 22px;
      border-radius: 10px;
      border: none;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    .letter-modal .btn-download:hover { background: #c43e0d; color: #fff; }

    /* ===== Application CTA ===== */
    .app-cta-section { padding: 30px 0 80px; }
    .app-cta {
      background: linear-gradient(135deg, #111 0%, #2a1a13 100%);
      color: #fff;
      border-radius: 24px;
      padding: 56px 48px;
      position: relative;
      overflow: hidden;
    }
    .app-cta::before {
      content: "";
      position: absolute;
      top: -120px;
      right: -120px;
      width: 360px;
      height: 360px;
      background: radial-gradient(circle, rgba(235, 80, 23, .55) 0%, transparent 70%);
      border-radius: 50%;
    }
    .app-cta::after {
      content: "";
      position: absolute;
      bottom: -100px;
      left: -80px;
      width: 280px;
      height: 280px;
      background: radial-gradient(circle, rgba(154, 171, 29, .3) 0%, transparent 70%);
      border-radius: 50%;
    }
    .app-cta-inner {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 32px;
      flex-wrap: wrap;
    }
    .app-cta-text { flex: 1 1 460px; }
    .app-cta .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(255, 255, 255, .08);
      color: #fff;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: .8px;
      text-transform: uppercase;
      padding: 6px 12px;
      border-radius: 999px;
      margin-bottom: 18px;
      border: 1px solid rgba(255, 255, 255, .15);
    }
    .app-cta .eyebrow .dot {
      width: 8px;
      height: 8px;
      background: #9aab1d;
      border-radius: 50%;
      box-shadow: 0 0 0 4px rgba(154, 171, 29, .25);
    }
    .app-cta h2 {
      color: #fff;
      font-size: 36px;
      font-weight: 700;
      line-height: 1.15;
      margin: 0 0 14px;
    }
    .app-cta h2 .accent { color: #ff8654; }
    .app-cta p {
      font-size: 16px;
      color: rgba(255, 255, 255, .75);
      max-width: 560px;
      margin: 0;
    }
    .app-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
    .app-cta-actions .btn-primary-cta {
      background: #eb5017;
      color: #fff;
      text-decoration: none;
      font-weight: 600;
      padding: 14px 26px;
      border-radius: 12px;
      border: none;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 15px;
      transition: transform .15s ease, background .15s ease;
    }
    .app-cta-actions .btn-primary-cta:hover {
      background: #c43e0d;
      color: #fff;
      text-decoration: none;
      transform: translateY(-1px);
    }
    .app-cta-actions .btn-ghost-cta {
      background: transparent;
      color: #fff;
      text-decoration: none;
      font-weight: 600;
      padding: 14px 24px;
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, .25);
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 15px;
    }
    .app-cta-actions .btn-ghost-cta:hover {
      background: rgba(255, 255, 255, .08);
      color: #fff;
      text-decoration: none;
      border-color: rgba(255, 255, 255, .4);
    }
    .app-cta-bullets {
      list-style: none;
      padding: 0;
      margin: 22px 0 24px;
      display: flex;
      flex-wrap: wrap;
      gap: 14px 26px;
    }
    .app-cta-bullets li {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: rgba(255, 255, 255, .82);
      font-size: 14px;
    }
    .app-cta-bullets li i { color: #9aab1d; font-size: 16px; }

    @media (max-width: 768px) {
      .app-cta { padding: 40px 26px; border-radius: 18px; }
      .app-cta h2 { font-size: 26px; }
      .letter-modal .modal-body { padding: 22px 20px 4px; }
      .letter-modal .modal-header,
      .letter-modal .modal-footer { padding: 18px 20px; }
    }
