/* Add Employee Form CSS */

/* ==========================================================================
   Public Ergonomics Intake page — standalone, no app shell
   Signature element: the "alignment rail" running through the form,
   echoing postural/spinal alignment — the subject of the form itself.
   ========================================================================== */

.meh-intake-page {
  --meh-ink: #16213e;
  --meh-mute: #6b7688;
  --meh-paper: #f2f5f8;
  --meh-line: #e2e7ee;
  --meh-teal: #1f6f78;
  --meh-teal-deep: #144e55;
  --meh-teal-wash: #e6f2f2;
  --meh-blue: #2f5fe0;
  --meh-blue-wash: #e8effe;
  --meh-green: #16a34a;
  --meh-green-wash: #e4f8ec;
  --meh-purple: #6d4fe0;
  --meh-purple-wash: #eee9ff;
  --meh-red: #d0342c;

  min-height: 100vh;
  width: 100%;
  background: var(--meh-paper);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--meh-ink);
  display: flex;
  flex-direction: column;
}

.meh-intake-page *:focus-visible {
  outline: 2px solid var(--meh-teal);
  outline-offset: 2px;
}
.gform-theme--framework .cs-style-form .gform-loader {
    border-block-end-color: #002889;
    border-block-start-color: var(--gf-form-spinner-bg-color);
    border-inline-end-color: var(--gf-form-spinner-bg-color);
    border-inline-start-color: #002889;
}
.meh-intake-form-wrap .cs-style-form .gform_fields {
  column-gap: 16px;
  row-gap: 0px;
  padding-left: 0px;
}
.gform-theme--foundation .cs-style-form .gfield textarea {
    height: 100px;
}
.cs-style-form hr {
    border-color: #aeb1b836;
}
body .cs-style-form_wrapper .gform_validation_errors{
  display: none;
}
/* ---------------- Top bar ---------------- */
.meh-intake-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 48px;
  background: #ffffff;
  border-bottom: 1px solid var(--meh-line);
}

.meh-intake-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.meh-intake-logo-img { height: 42px; width: auto; }

.meh-intake-logo-fallback {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--meh-teal), var(--meh-green));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.meh-intake-title-block h1 {
  margin: 0;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--meh-ink);
  letter-spacing: -0.01em;
}

.meh-intake-title-block p {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--meh-mute);
}

.meh-intake-trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--meh-teal-wash);
  border: 1px solid #cfe6e6;
  border-radius: 999px;
  padding: 9px 18px 9px 14px;
  flex-shrink: 0;
}

.meh-intake-trust-badge i {
  font-size: 15px;
  color: var(--meh-teal-deep);
}

.meh-intake-trust-badge span {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--meh-teal-deep);
}

.meh-intake-trust-badge small {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--meh-mute);
}

/* ---------------- Main content ---------------- */
.meh-intake-main {
  flex: 1;
  width: 100%;
  padding: 40px 48px 56px;
}

.meh-intake-layout {
  display: flex;
  background: #fff;
  max-width: 100%;
  border-radius: 10px;
  align-items: start;
  margin: 0 auto;
  padding: 50px;
  gap: 50px;
}

/* ---------------- Form card ---------------- */
.meh-intake-card {
    flex: 0 0 75%;
}
.meh-intake-form-wrap .cs-style-form .cs-first-heading .gsection_title {
    border: 0px;
    margin: 0px;
    padding: 0px;
}
.meh-intake-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.meh-intake-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--meh-teal-deep);
  background: var(--meh-teal-wash);
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 12px;
}

.meh-intake-card-head h2 {
  margin: 0 0 10px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 27px;
  font-weight: 600;
  color: var(--meh-ink);
  letter-spacing: -0.01em;
}

.meh-intake-card-head p {
  margin: 0;
  max-width: 62ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--meh-mute);
}

.meh-required-note {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--meh-red);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 4px;
  display: none;
}

.meh-required-note .meh-req { margin-right: 3px; }

.meh-intake-form-wrap { margin-top: 26px; }

/* ---------------- Info sidebar ---------------- */
.meh-intake-info {
 margin-top: 100px;
  border: 1px solid #adafb53b;
  background: #f7fafd;
  border-radius: 10px;
  padding: 30px 26px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 20px 40px -24px rgba(22, 33, 62, 0.1);
}

.meh-intake-info-block {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--meh-line);
}

.meh-intake-info-block--last {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.meh-intake-info-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.meh-intake-info-block h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 16.5px;
  font-weight: 600;
  margin: 0;
}

/* Heading color matches each block's accent */
.meh-intake-info-block--blue h3   { color: var(--meh-blue); }
.meh-intake-info-block--green h3  { color: var(--meh-green); }
.meh-intake-info-block--purple h3 { color: var(--meh-purple); }

.meh-intake-info-block p {
  font-size: 13px;
  color: var(--meh-mute);
  line-height: 1.65;
  margin: 0;
}

.meh-intake-info-block a {
  color: var(--meh-blue);
  font-weight: 600;
  text-decoration: none;
}
.meh-intake-info-block a:hover { text-decoration: underline; }
body .gform-theme--foundation .cs-style-form .gfield_visibility_hidden {
  height: 0px !important;
  line-height: 0px;
  margin: 0px !important;
  padding: 0px !important;
}

.meh-intake-info-icon {
  width: 60px;
  height: 60px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.meh-intake-info-icon--blue   { background: var(--meh-blue-wash);   color: var(--meh-blue); }
.meh-intake-info-icon--green  { background: var(--meh-green-wash);  color: var(--meh-green); }
.meh-intake-info-icon--purple { background: var(--meh-purple-wash); color: var(--meh-purple); }

.meh-intake-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.meh-intake-steps li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-size: 13px;
  color: var(--meh-ink);
  line-height: 1.55;
}

.meh-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #73a9f9;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---------------- Footer ---------------- */
.meh-intake-footer {
  text-align: center;
  padding: 20px 24px;
  font-size: 12px;
  color: var(--meh-mute);
}

/* ==========================================================================
   Gravity Forms — the "alignment rail" signature treatment
   ========================================================================== */

/* .meh-intake-form-wrap .gform_fields {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 20px 24px !important;
  position: relative;
  padding-left: 42px;
}

.meh-intake-form-wrap .gfield {
  grid-column: span 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.meh-intake-form-wrap .gfield--width-full,
.meh-intake-form-wrap .gfield.gsection,
.meh-intake-form-wrap .gfield--type-section,
.meh-intake-form-wrap .gfield--type-textarea,
.meh-intake-form-wrap .gfield--type-consent {
  grid-column: 1 / -1 !important;
}

@media (min-width: 720px) {
  .meh-intake-form-wrap .gfield--type-select:nth-of-type(3n) { grid-column: span 1 !important; }
} */

.meh-intake-form-wrap .gfield.gsection {
  position: relative;
  border-bottom: none !important;
  padding-bottom: 6px !important;
  margin-top: 10px !important;
}

.meh-intake-form-wrap .gsection_title {
  position: relative;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--meh-ink);
  margin: 0 0 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--meh-line);
}

.meh-intake-form-wrap .gsection_description {
  font-size: 12.5px;
  color: var(--meh-mute);
  margin: 0 0 6px;
}

.meh-intake-form-wrap .gfield_label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--meh-ink) !important;
  margin-bottom: 7px !important;
  display: block !important;
}
.gform-theme--orbital .cs-style-form .large[type="text"], 
.gform-theme--orbital .cs-style-form input.large[type="email"], 
.gform-theme--orbital .cs-style-form select.large, 
.gform-theme--orbital .cs-style-form input[type="text"], 
.gform-theme--orbital .cs-style-form input[type="email"], 
.gform-theme--orbital .cs-style-form select,
.gform-theme--orbital .cs-style-form textarea {
    border: 1px solid #aeb1b88a !important;
}
.gform-theme--foundation .gfield{
    margin-bottom: 16px !important;
}
.meh-intake-form-wrap .gfield_required {
  color: var(--meh-red) !important;
  margin-left: 2px;
}

.meh-intake-form-wrap input[type="text"],
.meh-intake-form-wrap input[type="email"],
.meh-intake-form-wrap input[type="tel"],
.meh-intake-form-wrap select,
.meh-intake-form-wrap textarea {
  box-sizing: border-box !important;
  width: 100% !important;
  border: 1.5px solid #d7dce4 !important;
  border-radius: 10px !important;
  padding: 11px 14px !important;
  font-size: 13.5px !important;
  color: var(--meh-ink) !important;
  background: #fbfcfd !important;
  font-family: 'Inter', sans-serif !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.meh-intake-form-wrap textarea { min-height: 100px; resize: vertical; }

.meh-intake-form-wrap input:focus,
.meh-intake-form-wrap select:focus,
.meh-intake-form-wrap textarea:focus {
  outline: none !important;
  border-color: var(--meh-teal) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(31, 111, 120, 0.12) !important;
}

.meh-intake-form-wrap ::placeholder { color: #9aa4b2; opacity: 1; }

.meh-intake-form-wrap .gfield_description,
.meh-intake-form-wrap .instruction {
  font-size: 11.5px;
  color: var(--meh-mute);
  margin-top: 5px;
}

.meh-intake-form-wrap .gfield--type-consent .gfield_consent_label,
.meh-intake-form-wrap .gfield_checkbox label {
  font-size: 13px;
  color: var(--meh-ink);
  line-height: 1.55;
}

.meh-intake-form-wrap input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--meh-teal);
  margin-right: 9px;
  vertical-align: middle;
}

.meh-intake-form-wrap .gform_footer {
  grid-column: 1 / -1;
  margin-top: 18px !important;
  padding-top: 0 !important;
  border-top: none !important;
}

.meh-intake-form-wrap .gform_button,
.meh-intake-form-wrap .gform_button:focus {
  display: inline-flex !important;
  align-items: center !important;
  background: #008792 !important;
  /* background: linear-gradient(135deg, var(--meh-teal), var(--meh-teal-deep)) !important; */
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 13px 26px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}

.gform-theme--orbital .cs-style-form .gfield_validation_message {
    font-size: 12px;
    color: #d0342c;
    margin-top: 0px !important;
}

.meh-intake-form-wrap .cs-style-form .gsection_title {
    font-size: 22px;
    color: #008792 !important;
}
.meh-intake-form-wrap .cs-style-form .gsection_title {
    font-size: 22px;
    color: #008792 !important;
    border: 0px;
    padding-bottom: 0px;
    margin-bottom: 0px;
    border-top: 1px solid var(--meh-line);
    padding-top: 24px;
}
.meh-intake-form-wrap .cs-style-form .gsection_title:before{
  display: none;
}
.meh-intake-form-wrap .gform_button::before {
  content: '\f023';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: 9px;
  font-size: 12px;
}

/* .meh-intake-form-wrap .gform_button:hover {
  box-shadow: 0 14px 30px rgba(20, 78, 85, 0.36) !important;
  transform: translateY(-1px) !important;
} */

.meh-intake-form-wrap .gform_button:active {
  transform: translateY(0) !important;
  box-shadow: 0 6px 14px rgba(20, 78, 85, 0.24) !important;
}

.meh-intake-form-wrap .gform_required_legend { display: none !important; }

.meh-intake-form-wrap select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7688' d='M6 8.5L2 4.5h8z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 11px !important;
  padding-right: 38px !important;
}

/* ---------------- Responsive ---------------- */


@media (max-width: 640px) {
  .meh-intake-topbar { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 20px; }
  .meh-intake-main { padding: 28px 20px 40px; }
  .meh-intake-card { padding: 28px 22px; }
  .meh-intake-card-head h2 { font-size: 22px; }
  /* .meh-intake-form-wrap .gform_fields { padding-left: 34px; } */
  .meh-intake-form-wrap .gsection_title::before { left: -34px; }
}

@media (prefers-reduced-motion: reduce) {
  .meh-intake-form-wrap .gform_button { transition: none; }
}

/* ---------------- Full-width app shell (no header/sidebar) ---------------- */
.meh-main--full {
  width: 100%;
  min-height: 100vh;
}

.meh-page-content--full {
  width: 100%;
  padding: 0;
  max-width: none;
}

.meh_req_heading{
  color: #465db1;
  font-weight: 600;
}

#gform_submit_button_3{
  background: #002889;
}

/* View Employee CSS */
/* Page Header Title */
.meh-cons-title-section {
  margin-bottom: 20px;
}

.meh-cons-title-section h1 {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}

.meh-cons-title-section p {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
}

/* Card Wrappers */
.meh-cons-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  margin-bottom: 20px;
}

/* Stat Cards Section */
.meh-cons-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.meh-cons-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.meh-cons-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.meh-cons-icon-blue { background-color: #eff6ff; }
.meh-cons-icon-green { background-color: #f0fdf4; }
.meh-cons-icon-orange { background-color: #fff7ed; }
.meh-cons-icon-purple { background-color: #faf5ff; }

.meh-cons-stat-info {
  display: flex;
  flex-direction: column;
}

.meh-cons-stat-num {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
}

.meh-cons-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  margin-top: 2px;
}

.meh-cons-stat-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 1px;
}

/* Filters Card */
.meh-cons-filters-card {
  padding: 16px 20px;
}

.meh-cons-filters-card h2 {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 16px 0;
}

.meh-cons-filters-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.meh-cons-filter-group {
  display: flex;
  flex-direction: column;
}

.meh-cons-filter-group label {
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 4px;
}

.meh-cons-filter-group input,
.meh-cons-filter-group select {
  height: 36px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
  color: #334155;
  background-color: #ffffff;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.meh-cons-input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.meh-cons-input-icon-wrapper svg {
  position: absolute;
  right: 10px;
  pointer-events: none;
}

.meh-cons-filter-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.meh-cons-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: none;
}

.meh-cons-btn-primary {
  background-color: #0d2b78;
  color: #ffffff;
}

.meh-cons-btn-secondary {
  background-color: #ffffff;
  color: #0d2b78;
  border: 1px solid #cbd5e1;
}

/* Table Card */
.meh-cons-table-card {
  padding: 0;
  overflow: hidden;
}

.meh-cons-table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}

.meh-cons-showing-text {
  font-size: 12px;
  color: #64748b;
}

.meh-cons-btn-export {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
}

.meh-cons-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.meh-cons-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
}

.meh-cons-table thead {
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.meh-cons-table th {
  padding: 10px 12px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
}

.meh-cons-sort-icon {
  font-size: 10px;
  color: #94a3b8;
}

.meh-cons-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
  white-space: nowrap;
}

.meh-cons-table td small {
  color: #64748b;
  font-size: 10px;
}

.meh-cons-case-link {
  color: #0d2b78;
  font-weight: 600;
  text-decoration: none;
}

/* =========================================
   NAMESPACED BADGE STYLES (.meh-cons-badge)
   ========================================= */
.meh-cons-table td .meh-cons-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 10px !important;
  border-radius: 12px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  text-align: center !important;
  box-sizing: border-box !important;
  border: none !important;
}

.meh-cons-badge-scheduled { background-color: #dcfce7 !important; color: #15803d !important; }
.meh-cons-badge-pending   { background-color: #ffedd5 !important; color: #c2410c !important; }
.meh-cons-badge-progress  { background-color: #dbeafe !important; color: #1d4ed8 !important; }
.meh-cons-badge-received  { background-color: #e0f2fe !important; color: #0284c7 !important; }
.meh-cons-badge-due       { background-color: #ffedd5 !important; color: #c2410c !important; }
.meh-cons-badge-resolved  { background-color: #dcfce7 !important; color: #15803d !important; }
.meh-cons-badge-none      { background-color: #dcfce7 !important; color: #15803d !important; }
.meh-cons-badge-closed    { background-color: #f1f5f9 !important; color: #64748b !important; }

/* Table Action Buttons */
.meh-cons-btn-action {
  background: #ffffff;
  border: 1px solid #0d2b78;
  color: #0d2b78;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  width: 80px;
}

.meh-cons-btn-action:hover {
  background: #f0f4ff;
}

/* Pagination — consolidated below in the consultant intake section */


/* ==========================================================================
   MyErgoHub — Consultant Intake Queue (employees page)
   Scoped under .meh-cons- prefix.
   ========================================================================== */

/* ── Page title ────────────────────────────────────────────────────────────── */
.meh-cons-title-section {
  margin-bottom: 22px;
}
.meh-cons-title-section h1 {
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}
.meh-cons-title-section p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

/* ── Stat cards grid ───────────────────────────────────────────────────────── */
.meh-cons-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.meh-cons-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #e6e9f0;
  border-radius: 14px;
  padding: 18px 20px;
}
.meh-cons-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.meh-cons-icon-blue   { background: #eff6ff; }
.meh-cons-icon-green  { background: #f0fdf4; }
.meh-cons-icon-orange { background: #fff7ed; }
.meh-cons-icon-purple { background: #faf5ff; }
.meh-cons-stat-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.meh-cons-stat-num   { font-size: 26px; font-weight: 700; color: #0f172a; }
.meh-cons-stat-label { font-size: 13px; font-weight: 600; color: #0f172a; }
.meh-cons-stat-sub   { font-size: 11.5px; color: #64748b; margin-top: 2px; }

@media (max-width: 900px) { .meh-cons-stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .meh-cons-stats-grid { grid-template-columns: 1fr; } }

/* ── Shared card ───────────────────────────────────────────────────────────── */
.meh-cons-card {
  background: #fff;
  border: 1px solid #e6e9f0;
  border-radius: 14px;
  padding: 24px 26px;
  margin-bottom: 20px;
}
.meh-cons-card h2 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 18px;
}

/* ── Filters card ──────────────────────────────────────────────────────────── */
.meh-cons-filters-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px 16px;
  margin-bottom: 18px;
}
@media (max-width: 1200px) { 
  .meh-cons-filters-grid { 
    grid-template-columns: repeat(3, 1fr); 
  } 
      body .meh-intake-layout {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
}
body .meh-intake-card {
    width: 100%;
    padding: 0px;
}
body .meh-intake-info {
    margin-top: 0px;
    width: 100%;
}
}
@media (max-width: 800px)  { .meh-cons-filters-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .meh-cons-filters-grid { grid-template-columns: 1fr; } }

.meh-cons-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.meh-cons-filter-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: #0f172a;
}
.meh-cons-filter-group input[type="text"],
.meh-cons-filter-group select {
  width: 100%;
  padding: 9px 12px;
  font-size: 13.5px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #0f172a;
  background: #fff;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
  box-sizing: border-box;
}
.meh-cons-filter-group input[type="text"]:focus,
.meh-cons-filter-group select:focus {
  outline: none;
  border-color: #2f5fe0;
  box-shadow: 0 0 0 3px rgba(47, 95, 224, 0.1);
}

/* date icon wrapper */
.meh-cons-input-icon-wrapper {
  position: relative;
}
.meh-cons-input-icon-wrapper input {
  padding-right: 36px;
}
.meh-cons-input-icon-wrapper svg {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* filter action buttons */
.meh-cons-filter-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.meh-cons-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background .15s ease, box-shadow .15s ease;
}
.meh-cons-btn-primary {
  background: #008792;
  color: #fff;
  border-color: #008792;
}
.meh-cons-btn-primary:hover { background: #007c87; }
.meh-cons-btn-secondary {
  background: #fff;
  color: #0f172a;
  border-color: #cbd5e1;
}
.meh-cons-btn-secondary:hover { background: #f4f6fb; }

/* ── Table card ────────────────────────────────────────────────────────────── */
.meh-cons-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}
.meh-cons-showing-text { font-size: 13px; color: #64748b; }
.meh-cons-btn-export {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  font-family: inherit;
}
.meh-cons-btn-export:hover { background: #f4f6fb; }

.meh-cons-table-responsive { overflow-x: auto; }

.meh-cons-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  font-size: 13.5px;
}
.meh-cons-table thead th {
  text-align: left;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid #e6e9f0;
  white-space: nowrap;
}
.meh-cons-table tbody td {
  padding: 14px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #0f172a;
  vertical-align: middle;
}
.meh-cons-table tbody tr:last-child td { border-bottom: none; }
.meh-cons-table tbody tr:hover { background: #f8fafc; }

.meh-cons-sort-icon { color: #94a3b8; font-size: 11px; }

/* Sort button — icon-only, inline with column heading text */
.meh-cons-sort-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  font-size: 12px;
  color: #94a3b8;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  vertical-align: middle;
  line-height: 1;
}
.meh-cons-sort-btn:hover {
  background: #e2e8f0;
  color: #1e3a8a;
}
/* Active direction indicator */
.meh-cons-sort-btn:not(:empty) {
  font-style: normal;
}
/* ↑ / ↓ icons show the active sort column clearly */
th .meh-cons-sort-btn[href*="asc"]:not([href*="desc"]),
th .meh-cons-sort-btn[href*="desc"] {
  color: #2563eb;
}

.meh-cons-case-link {
  color: #008792;
  font-weight: 600;
  text-decoration: none;
  font-size: 13px;
}
.meh-cons-case-link:hover { text-decoration: underline; }

.meh-cons-unassigned { color: #94a3b8; font-style: italic; }
.meh-cons-empty-row  { text-align: center; color: #64748b; padding: 40px !important; }

/* ── Status badges ─────────────────────────────────────────────────────────── */
.meh-cons-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.meh-cons-badge-received  { background: #eff6ff; color: #1d4ed8; }
.meh-cons-badge-scheduled { background: #f0fdf4; color: #15803d; }
.meh-cons-badge-pending   { background: #fff7ed; color: #c2410c; }
.meh-cons-badge-progress  { background: #faf5ff; color: #7e22ce; }
.meh-cons-badge-resolved  { background: #f0fdf4; color: #166534; }
.meh-cons-badge-closed    { background: #f1f5f9; color: #475569; }

/* ── Action button (View / Open Case) ─────────────────────────────────────── */
.meh-cons-btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1.5px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.meh-cons-btn-action:hover {
  background: #f4f6fb;
  border-color: #94a3b8;
}
.meh-cons-btn-action--open {
  background: #008792;
  color: #fff;
  border: none !important;
  width: auto;
}
.meh-cons-btn-action--open:hover {
  background: #00636b;
  border-color: #00636b;
}

/* ── Pagination ────────────────────────────────────────────────────────────── */
.meh-cons-table-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid #e6e9f0;
  flex-wrap: wrap;
  gap: 12px;
  background: #fff;
}

/* Result summary text on the left */
.meh-cons-pag-summary {
  font-size: 13px;
  color: #64748b;
  white-space: nowrap;
}

/* Pagination nav row */
.meh-cons-pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Base button — applies to all page controls */
.meh-cons-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
              box-shadow 0.15s ease;
  white-space: nowrap;
  line-height: 1;
}
.meh-cons-page-btn:hover:not(.meh-cons-page-btn--active):not(.meh-cons-page-btn--disabled) {
  background: #008792;
  border-color: #94a3b8;
  color: #1e3a8a;
}
.meh-cons-page-btn:focus-visible {
  outline: 2px solid #2f5fe0;
  outline-offset: 2px;
}

/* Active / current page */
.meh-cons-page-btn--active {
  background: #008792;
  border-color: #008792;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(47, 95, 224, 0.30);
  pointer-events: none;
}

/* Disabled state (Previous on page 1, Next/Last on last page) */
.meh-cons-page-btn--disabled {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #cbd5e1;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

/* Nav buttons (Previous / Next / Last) are slightly wider */
.meh-cons-page-btn--nav {
  padding: 0 12px;
  font-weight: 500;
}
.meh-cons-page-btn--nav svg {
  flex-shrink: 0;
}

/* Ellipsis separator between page number groups */
.meh-cons-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  font-size: 13px;
  color: #94a3b8;
  letter-spacing: .05em;
  user-select: none;
}

/* Responsive: stack summary above nav on narrow screens */
@media (max-width: 640px) {
  .meh-cons-table-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
  }
  .meh-cons-pagination { flex-wrap: wrap; }
  .meh-cons-page-btn--nav { padding: 0 10px; }
}


/* ==========================================================================
   MyErgoHub — Update Employee / Case Detail page
   All classes scoped under .meh-u-emp- prefix to avoid collisions.
   ========================================================================== */

/* ── Design tokens (local to this page) ───────────────────────────────────── */
.meh-page-content {
  --ue-blue:        #2f5fe0;
  --ue-blue-dark:   #1e3fae;
  --ue-blue-light:  #eff6ff;
  --ue-ink:         #0f172a;
  --ue-mute:        #64748b;
  --ue-border:      #e6e9f0;
  --ue-bg:          #f8fafc;
  --ue-green:       #15803d;
  --ue-green-bg:    #f0fdf4;
  --ue-orange:      #c2410c;
  --ue-orange-bg:   #fff7ed;
  --ue-red:         #ef4444;
  --ue-warning-bg:  #fffbeb;
  --ue-warning-bdr: #fcd34d;
  --ue-warning-txt: #92400e;
}

/* ── Page header row ───────────────────────────────────────────────────────── */
.meh-u-emp-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.meh-u-emp-page-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ue-ink);
  margin: 0;
}
.meh-u-emp-action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Shared button styles ──────────────────────────────────────────────────── */
.meh-u-emp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 9px;
  border: 1.5px solid var(--ue-border);
  background: #fff;
  color: var(--ue-ink);
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background .15s ease, box-shadow .15s ease, color .15s ease;
  white-space: nowrap;
}
.meh-u-emp-btn:hover { background: var(--ue-bg); }

.meh-u-emp-btn-primary {
  background: #008792;
  color: #fff;
  border-color: #008792;
  box-shadow: 0 4px 14px rgba(47, 95, 224, 0.25);
}
.meh-u-emp-btn-primary:hover {
  background: #00636b;
  border-color: #00636b;
}

.meh-u-emp-btn-outline {
  background: #fff;
  color: #008792;
  border-color: #008792;
}
.meh-u-emp-btn-outline:hover { background: var(--ue-bg); }

.meh-u-emp-btn-outline-sm {
  font-size: 12.5px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--ue-border);
  background: #fff;
  color: var(--ue-blue);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background .15s ease;
}
.meh-u-emp-btn-outline-sm:hover { background: var(--ue-blue-light); }

/* ── Alert banner ──────────────────────────────────────────────────────────── */
.meh-u-emp-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 9px;
  font-size: 13.5px;
  margin-bottom: 18px;
}
.meh-u-emp-alert i { flex-shrink: 0; margin-top: 1px; }
.meh-u-emp-alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

/* ── Shared card ───────────────────────────────────────────────────────────── */
.meh-u-emp-card {
  background: #fff;
  border: 1px solid var(--ue-border);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 18px;
  min-width: 0;
  overflow: hidden;
}
.meh-u-emp-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #008792;
  margin: 0 0 18px;
}

/* ── Hero card ─────────────────────────────────────────────────────────────── */
.meh-u-emp-hero-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  flex-wrap: wrap;
  padding: 18px 24px;
}
.meh-u-emp-user-profile-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  min-width: 200px;
}
.meh-u-emp-avatar-large {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f6f78, #2a9d8f);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.meh-u-emp-user-details h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ue-ink);
  margin: 0 0 5px;
  line-height: 1.2;
}
.meh-u-emp-user-details p {
  font-size: 12.5px;
  color: var(--ue-mute);
  margin: 3px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}
.meh-u-emp-user-details p i { font-size: 11px; color: var(--ue-mute); }
.meh-u-emp-user-details p a { color: var(--ue-mute); text-decoration: none; }
.meh-u-emp-user-details p a:hover { color: var(--ue-blue); text-decoration: underline; }

/* vertical divider between profile and metadata */
.meh-u-emp-user-profile-summary + .meh-u-emp-hero-data-grid {
  padding-left: 28px;
  border-left: 1px solid var(--ue-border);
}

/* hero data grid */
.meh-u-emp-hero-data-grid {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  align-items: center;
  flex: 1;
}
.meh-u-emp-hero-data-grid > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.meh-u-emp-hero-data-grid label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ue-mute);
  white-space: nowrap;
}
.meh-u-emp-hero-data-grid strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--ue-ink);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* status tag */
.meh-u-emp-status-tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 13px;
  border-radius: 20px;
  white-space: nowrap;
}
.meh-u-emp-tag-success  { background: var(--ue-green-bg);  color: var(--ue-green); border: 1px solid #bbf7d0; }
.meh-u-emp-tag-warning  { background: var(--ue-warning-bg); color: var(--ue-warning-txt); border: 1px solid var(--ue-warning-bdr); }
.meh-u-emp-tag-danger   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.meh-u-emp-tag-progress { background: #faf5ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.meh-u-emp-tag-received { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.meh-u-emp-tag-closed   { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }

/* ── Two-column layout ─────────────────────────────────────────────────────── */
.meh-u-emp-grid-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 18px;
  align-items: start;
}
@media (max-width: 1024px) { .meh-u-emp-grid-layout { grid-template-columns: 1fr; } }

.meh-u-emp-grid-column {
  display: flex;
  flex-direction: column;
  min-width: 0; /* prevent grid blowout */
  overflow: hidden;
}

/* ── Info grid (label + value inline, two pairs per row) ──────────────────── */
.meh-u-emp-info-grid {
  display: grid;
  grid-template-columns: 140px 1fr 140px 1fr;
  gap: 10px 16px;
  align-items: baseline;
  margin-bottom: 18px;
}
.meh-u-emp-info-grid > div {
  display: contents;
}
.meh-u-emp-info-grid label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ue-ink);
  white-space: nowrap;
}
.meh-u-emp-info-grid p {
  font-size: 13px;
  color: var(--ue-mute);
  margin: 0;
  font-weight: 400;
}
/* spacer cell — occupies its two grid columns silently */
.meh-u-emp-info-grid .meh-info-spacer {
  display: block;
  grid-column: span 2;
  height: 0;
}
@media (max-width: 700px) {
  .meh-u-emp-info-grid {
    grid-template-columns: 120px 1fr;
  }
  .meh-u-emp-info-grid .meh-info-spacer {
    display: none;
  }
}

/* ── Description / text-box readonly ──────────────────────────────────────── */
.meh-u-emp-field-group { margin-bottom: 18px; }
.meh-u-emp-field-group > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  /* text-transform: uppercase; */
  letter-spacing: .04em;
  /* color: var(--ue-mute); */
  margin-bottom: 8px;
}
.meh-u-emp-text-box-readonly {
  background: var(--ue-bg);
  border: 1px solid var(--ue-border);
  border-radius: 9px;
  padding: 13px 15px;
  font-size: 13.5px;
  color: var(--ue-ink);
  line-height: 1.65;
  min-height: 80px;
}

/* ── Section divider ───────────────────────────────────────────────────────── */
.meh-u-emp-section-divider {
  border: none;
  border-top: 1px solid var(--ue-border);
  margin: 18px 0;
}

/* ── Sub-heading inside card ───────────────────────────────────────────────── */
.meh-u-emp-sub-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--ue-ink);
  margin: 0 0 14px;
}
.meh-u-emp-sub-text { font-size: 13px; font-weight: 400; color: var(--ue-mute); }

/* ── Callout box (View Original Request) ──────────────────────────────────── */
.meh-u-emp-callout-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--ue-blue-light);
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  padding: 12px 16px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.meh-u-emp-callout-text {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: #1e40af;
  flex: 1;
}
.meh-u-emp-callout-text i { flex-shrink: 0; margin-top: 2px; }

/* ── Case Status & Assignment (3-col grid) ────────────────────────────────── */
.meh-u-emp-form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
  width: 100%;
}
.meh-u-emp-form-grid-3 .meh-u-emp-form-group {
  margin-bottom: 0;
  min-width: 0;
}
@media (max-width: 700px) { .meh-u-emp-form-grid-3 { grid-template-columns: 1fr; } }

/* ── Generic form group ────────────────────────────────────────────────────── */
.meh-u-emp-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}
.meh-u-emp-form-group:last-child { margin-bottom: 0; }
.meh-u-emp-form-group > label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ue-mute);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.meh-u-emp-req { color: var(--ue-red); margin-left: 2px; }

.meh-u-emp-form-group input[type="text"],
.meh-u-emp-form-group input[type="time"],
.meh-u-emp-form-group select,
.meh-u-emp-form-group textarea {
  width: 100%;
  padding: 9px 12px;
  font-size: 13.5px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: var(--ue-ink);
  background: #fff;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.meh-u-emp-form-group input:focus,
.meh-u-emp-form-group select:focus,
.meh-u-emp-form-group textarea:focus {
  outline: none;
  border-color: var(--ue-blue);
  box-shadow: 0 0 0 3px rgba(47, 95, 224, 0.1);
}
.meh-u-emp-form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* input with icon (date / time) */
.meh-u-emp-input-icon {
  position: relative;
}
.meh-u-emp-input-icon i {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--ue-mute);
  pointer-events: none;
}
.meh-u-emp-input-icon input[type="text"] {
  padding-left: 34px !important;
}

/* Time input — hide native indicator, open picker on click instead */
.meh-u-emp-form-group input[type="time"] {
  cursor: pointer;
}
.meh-u-emp-form-group input[type="time"]::-webkit-calendar-picker-indicator {
  display: none;
}

/* ── Scheduling required badge ─────────────────────────────────────────────── */
.meh-u-emp-required-badge {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ue-red);
}

/* ── Override: scheduling & notes form group labels stay dark + normal case ── */
.meh-u-emp-card-normal-labels .meh-u-emp-form-group > label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ue-ink);
  text-transform: none;
  letter-spacing: normal;
}
/* ── Info note (below scheduling form) ────────────────────────────────────── */
.meh-u-emp-info-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: var(--ue-bg);
  border: 1px solid var(--ue-border);
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 12.5px;
  color: var(--ue-mute);
  line-height: 1.55;
  margin-top: 6px;
}
.meh-u-emp-info-note i { flex-shrink: 0; margin-top: 2px; color: var(--ue-blue); }

/* ── Char count ────────────────────────────────────────────────────────────── */
.meh-u-emp-char-count {
  font-size: 11.5px;
  color: var(--ue-mute);
  text-align: right;
  margin-top: 4px;
}
.meh-u-emp-char-count--warn {
  color: var(--ue-orange);
  font-weight: 600;
}

/* ── Field validation errors ───────────────────────────────────────────────── */
.meh-field-error {
  border-color: var(--ue-red) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}
.meh-u-emp-field-error-msg {
  font-size: 12px;
  color: var(--ue-red);
  margin: 4px 0 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.meh-u-emp-field-error-msg::before {
  content: "⚠";
  font-size: 14px;
}

/* ── Footer meta bar ───────────────────────────────────────────────────────── */
.meh-u-emp-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 4px;
  font-size: 12.5px;
  color: var(--ue-mute);
  border-top: 1px solid var(--ue-border);
  flex-wrap: wrap;
}
.meh-u-emp-footer-meta span { color: var(--ue-ink); font-weight: 500; }

/* ── Error / not-found state ───────────────────────────────────────────────── */
.meh-u-emp-error-card {
  background: #fff;
  border: 1px solid var(--ue-border);
  border-radius: 14px;
  padding: 48px 32px;
  text-align: center;
  margin: 0 auto;
  max-width: 480px;
}
.meh-u-emp-error-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ue-ink);
  margin: 0 0 10px;
}
.meh-u-emp-error-card p {
  font-size: 14px;
  color: var(--ue-mute);
  margin: 0 0 20px;
}

/* hero card CTA button alignment */
.meh-u-emp-hero-cta {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .meh-u-emp-hero-card { flex-direction: column; align-items: flex-start; }
  .meh-u-emp-user-profile-summary + .meh-u-emp-hero-data-grid {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--ue-border);
    padding-top: 16px;
    width: 100%;
  }
  .meh-u-emp-hero-data-grid { gap: 20px; }
}


/* ==========================================================================
   MEH Custom Calendar — .meh-cal
   Zero-dependency, matches the MyErgoHub design system.
   ========================================================================== */

.meh-cal {
  display: none;
  position: absolute;
  z-index: 99999;
  width: 280px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(15, 23, 42, 0.06);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  overflow: hidden;
  animation: meh-cal-in .15s ease;
}

@keyframes meh-cal-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Header ────────────────────────────────────────────────────────────────── */
.meh-cal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
  background: #008792;
  color: #fff;
}

.meh-cal__header-center {
  display: flex;
  align-items: center;
  gap: 4px;
}

.meh-cal__month-btn,
.meh-cal__year-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: background .12s ease;
  line-height: 1.3;
}
.meh-cal__month-btn:hover,
.meh-cal__year-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.meh-cal__nav {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s ease;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}
.meh-cal__nav:hover { background: rgba(255, 255, 255, 0.22); }

/* ── Weekday row ───────────────────────────────────────────────────────────── */
.meh-cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 10px 10px 4px;
  gap: 2px;
}
.meh-cal__weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── Day grid ──────────────────────────────────────────────────────────────── */
.meh-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 4px 10px 10px;
  gap: 2px;
}

.meh-cal__day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  color: #1e293b;
  cursor: pointer;
  transition: background .1s ease, color .1s ease;
  padding: 0;
}
.meh-cal__day:hover:not(.meh-cal__day--blank):not(.meh-cal__day--selected) {
  background: #eff6ff;
  color: #008792;
}
.meh-cal__day--blank {
  visibility: hidden;
  pointer-events: none;
}
.meh-cal__day--today {
  color: #008792;
  font-weight: 700;
  position: relative;
}
.meh-cal__day--today::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #008792;
}
.meh-cal__day--selected {
  background: #008792 !important;
  color: #fff !important;
  font-weight: 700;
}
.meh-cal__day--selected::after { display: none; }

/* ── Month picker overlay ──────────────────────────────────────────────────── */
.meh-cal__grid--months {
  grid-template-columns: repeat(3, 1fr);
  padding: 10px;
  gap: 6px;
}
.meh-cal__month-cell {
  padding: 8px 4px;
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12.5px;
  font-family: inherit;
  color: #334155;
  cursor: pointer;
  text-align: center;
  transition: background .1s ease, color .1s ease, border-color .1s ease;
}
.meh-cal__month-cell:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #008792;
}
.meh-cal__month-cell--active {
  background: #008792 !important;
  color: #fff !important;
  border-color: #008792 !important;
  font-weight: 700;
}

/* ── Year picker overlay ───────────────────────────────────────────────────── */
.meh-cal__grid--years {
  grid-template-columns: repeat(3, 1fr);
  padding: 10px;
  gap: 6px;
}
.meh-cal__year-cell {
  padding: 8px 4px;
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12.5px;
  font-family: inherit;
  color: #334155;
  cursor: pointer;
  text-align: center;
  transition: background .1s ease, color .1s ease, border-color .1s ease;
}
.meh-cal__year-cell:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #008792;
}
.meh-cal__year-cell--active {
  background: #008792 !important;
  color: #fff !important;
  border-color: #008792 !important;
  font-weight: 700;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.meh-cal__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px 10px;
  border-top: 1px solid #f1f5f9;
}
.meh-cal__today-btn,
.meh-cal__clear-btn {
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 6px;
  transition: background .12s ease, color .12s ease;
}
.meh-cal__today-btn {
  color: #008792;
}
.meh-cal__today-btn:hover { background: #eff6ff; }
.meh-cal__clear-btn {
  color: #94a3b8;
}
.meh-cal__clear-btn:hover { background: #f1f5f9; color: #475569; }

/* ── Isolate jQuery UI datepicker styles to update-employee only ──────────── */
/* Prevent jQuery UI theme from bleeding into employees table layout.          */
/* All .ui-datepicker rules are re-scoped under the scheduling date wrapper.   */
.meh-u-emp-input-icon .ui-datepicker { font-family: inherit; font-size: 13px; }
body .ui-datepicker { z-index: 100000 !important; }


#gform_submit_button_2{
  background: #008792 !important;
}

/* ── Table column overflow handling ────────────────────────────────────────── */
/* Apply text truncation to columns that may have long content */
.meh-cons-table td {
  max-width: 200px; /* Default max width for all cells */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Specific column widths and overflow handling */
.meh-cons-table td:nth-child(1) { /* Case # */
  max-width: 120px;
  white-space: nowrap;
}

.meh-cons-table td:nth-child(2) { /* Client */
  max-width: 180px;
}

.meh-cons-table td:nth-child(3) { /* Employee Name */
  max-width: 180px;
}

.meh-cons-table td:nth-child(4) { /* Email */
  max-width: 200px;
}

.meh-cons-table td:nth-child(5) { /* Location */
  max-width: 250px; /* Wider for location addresses */
}

.meh-cons-table td:nth-child(6), /* Submitted */
.meh-cons-table td:nth-child(7) { /* Scheduled */
  max-width: 140px;
  white-space: normal; /* Allow dates to wrap */
}

.meh-cons-table td:nth-child(8) { /* Assigned Consultant */
  max-width: 160px;
}

.meh-cons-table td:nth-child(9), /* Scheduling Status */
.meh-cons-table td:nth-child(10) { /* Request Status */
  max-width: 170px;
  white-space: normal; /* Allow badge text to wrap if needed */
}

/* Add tooltip on hover for truncated content */
.meh-cons-table td[title] {
  cursor: help;
}

/* Ensure badges don't cause overflow */
.meh-cons-table td .meh-cons-badge {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}

/* Override white-space for specific columns that should always wrap */
.meh-cons-table td:nth-child(5), /* Location - allow wrapping */
.meh-cons-table td small {
  white-space: normal !important;
  word-break: break-word;
}


/* ══════════════════════════════════════════════════════════════════════════
   Leader Stat Cards - Compact & Attractive Design
   ══════════════════════════════════════════════════════════════════════════ */

.meh-leader-stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.meh-leader-stat-card {
  background: #ffffff;
  border: 1px solid #e6e9f0;
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s ease;
  cursor: default;
}

.meh-leader-stat-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.meh-leader-stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.meh-leader-icon-blue {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #2563eb;
}

.meh-leader-icon-green {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: #16a34a;
}

.meh-leader-icon-orange {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  color: #ea580c;
}

.meh-leader-stat-details {
  flex: 1;
  min-width: 0;
}

.meh-leader-stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1;
  margin-bottom: 6px;
}

.meh-leader-stat-title {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

/* Responsive */
@media (max-width: 900px) {
  .meh-leader-stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .meh-leader-stats-container {
    grid-template-columns: 1fr;
  }
  
  .meh-leader-stat-card {
    padding: 16px 18px;
  }
  
  .meh-leader-stat-icon {
    width: 52px;
    height: 52px;
  }
  
  .meh-leader-stat-value {
    font-size: 28px;
  }
}

.meh-u-emp-no-custom-fields p{
  text-align: center;
  color: #64748b;
  font-size: 13px;
}

.intake-form-not-exist {
	max-width: 600px;
	margin: 100px auto;
	padding: 24px 28px;
	display: flex;
	align-items: flex-start;
	gap: 16px;
	background: #fff8e1;
	border: 1px solid #f0c36d;
	border-radius: 8px;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
	box-sizing: border-box;
	color: #664d03;
}

.intake-form-not-exist__icon {
	flex: 0 0 auto;
	font-size: 24px;
	line-height: 1.4;
	color: #d39e00;
}

.intake-form-not-exist__content {
	flex: 1;
}

.intake-form-not-exist__content h3 {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
	color: #664d03;
}

.intake-form-not-exist__content p {
	margin: 0;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.6;
	color: #795c16;
}

#meh-req-status {
  cursor: not-allowed;
}

.meh-cons-badge-default, .meh-cons-badge-error{
  color: #94a3b8;
  font-style: italic;
}