:root {
  --bs-primary: #115e67;
  --bs-primary-rgb: 17, 94, 103;
  --bs-body-color: #17233a;
  --bs-border-color: #d9e2ec;
  --muted: #667085;
  --soft: #f5f8fb;
  --sidebar: #17324d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--bs-body-color);
  background: #eef3f7;
  font-family: Arial, Helvetica, sans-serif;
}

.hidden { display: none !important; }

/* Viewport shell: navigation and workspace scroll independently. */

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 16px;
  padding: 24px;
  background: white;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(31, 44, 61, .14);
}

.login-brand {
  color: var(--bs-body-color);
  border-bottom: 1px solid var(--bs-border-color);
}

.login-brand span { color: var(--muted); }
.login-message { min-height: 18px; margin: 0; color: var(--muted); }

.backend-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: white;
  background: var(--sidebar);
  padding: 22px 16px;
}

.sidebar-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--bs-primary);
  font-weight: 800;
}

.sidebar-brand strong,
.sidebar-brand span,
.sidebar-footer span {
  display: block;
}

.sidebar-brand span,
.sidebar-footer span {
  margin-top: 2px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.nav-group {
  width: 100%;
  min-height: 34px;
  padding: 8px 4px;
  border: 0;
  color: rgba(255, 255, 255, .68);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-children {
  display: grid;
  gap: 6px;
  margin-bottom: 4px;
}

.nav-children.collapsed { display: none; }

.nav-link {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 9px 11px;
  color: rgba(255, 255, 255, .84);
  text-decoration: none;
  border-radius: 6px;
}

.nav-link.active,
.nav-link:hover {
  color: white;
  background: rgba(var(--bs-primary-rgb), .9);
}

.nav-icon,
.expand-button {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.nav-icon {
  flex: 0 0 auto;
  color: var(--sidebar);
  background: white;
}

.sidebar-footer {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
}

.link-button {
  width: fit-content;
  padding: 0;
  border: 0;
  color: var(--bs-primary);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.content {
  min-width: 0;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 30px; }
h2 { margin-bottom: 4px; font-size: 18px; }

.topbar-actions,
.pagination-actions,
.detail-actions,
.message-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 6px;
  padding: 9px 14px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  cursor: pointer;
}

.btn-primary {
  color: white;
  background: var(--bs-primary);
  border-color: var(--bs-primary);
}

.btn-outline {
  color: var(--bs-primary);
  background: white;
  border-color: var(--bs-border-color);
}

.help-button {
  width: 40px;
  padding-inline: 0;
  font-size: 18px;
  line-height: 1;
}

.btn:disabled {
  opacity: .45;
  cursor: default;
}

.settings-toggle {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  color: var(--bs-body-color);
  font-size: 13px;
  font-weight: 700;
}

.settings-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--bs-primary);
}

.report-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 14px;
  background: white;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
}

label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  margin-top: 6px;
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--bs-body-color);
  background: white;
  font: inherit;
}

input:disabled {
  color: var(--muted);
  background: #f8fafc;
}

.check-label {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  margin-top: 22px;
  color: #344054;
  text-transform: none;
}

.check-label input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.summary-card {
  padding: 13px;
  background: white;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
}

.summary-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-card strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.report-card {
  background: white;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(31, 44, 61, .08);
}

.report-card-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border-bottom: 1px solid var(--bs-border-color);
}

.report-card-header p,
.status-text {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.report-card table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 14px;
}

th {
  background: var(--soft);
  color: #344054;
  font-size: 12px;
  text-align: left;
  text-transform: uppercase;
}

td, th {
  padding: 10px;
  border-bottom: 1px solid var(--bs-border-color);
  vertical-align: top;
}

tbody tr:hover { background: #f9fbfd; }

.num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.customer-cell strong,
.customer-cell span,
.muted-inline {
  display: block;
}

.row-main {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.expand-button {
  flex: 0 0 auto;
  color: var(--bs-primary);
  background: white;
  border: 1px solid var(--bs-border-color);
  cursor: pointer;
}

.expand-button:hover {
  color: white;
  background: var(--bs-primary);
}

.customer-cell span,
.muted-inline {
  color: var(--muted);
  font-size: 12px;
}

.detail-row td {
  padding: 0;
  background: #fbfdff;
}

.detail-line td:first-child {
  padding-left: 46px;
  color: #344054;
}

.total-row td {
  font-weight: 800;
  background: #fbfdff;
}

.statement-total-row td {
  font-weight: 800;
  background: #eef1f4;
}

.statement-account-row td:first-child {
  padding-left: 48px;
}

.nested-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 13px;
}

.nested-table th,
.nested-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e8eef5;
}

.nested-table th { background: #f8fafc; color: #334155; }
[data-assignment-table] th label { display: grid; gap: 6px; }
[data-assignment-table] th select { min-width: 100px; color: #334155; background: #fff; }
.nested-table tr:last-child td { border-bottom: 0; }
.client-job-link { text-align: left; }
.client-job-link:hover { text-decoration: underline; }
.client-job-detail-row[hidden] { display: none; }
.client-job-detail-row > td { padding: 14px; background: #f8fafc; }

.empty-row {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.detail-loading {
  padding: 18px;
  color: var(--muted);
  background: #fbfdff;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  background: #fbfdff;
}

.detail-panel {
  min-width: 0;
  padding: 14px;
  background: white;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
}

.detail-panel.wide { grid-column: 1 / -1; }

.job-description-scroll {
  max-height: 180px;
  overflow: auto;
  padding: 8px 10px;
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
  white-space: pre-wrap;
}
.job-description-scroll p { margin: 0; }
.job-candidates-scroll {
  max-height: 430px;
  overflow: auto;
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
}
.job-candidates-scroll .nested-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.detail-panel h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.detail-actions {
  flex-wrap: wrap;
  margin: 0 0 10px;
}

.detail-actions .btn {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}

.direct-pay-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.direct-pay-preview {
  padding: 14px;
}

.direct-pay-preview h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.solicit-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
}

.solicit-toolbar .btn {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-compact {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 12px;
}

.full-width {
  width: 100%;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 230px;
}

.clickable-row {
  cursor: pointer;
}

.esign-workspace-row > td {
  padding: 0;
  background: #f4f8fb;
}

.esign-workspace {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.esign-document-builder,
.esign-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  background: white;
}

.esign-document-builder {
  gap: 14px;
}

.esign-builder-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--bs-border-color);
  padding-bottom: 12px;
}

.esign-builder-header p {
  margin: 4px 0 0;
  color: var(--muted);
}

.esign-doc-meta {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) minmax(120px, .8fr) minmax(110px, .6fr) minmax(220px, 1fr);
  gap: 12px;
}

.esign-description textarea {
  min-height: 56px;
}

.esign-builder-body {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) 300px;
  gap: 14px;
  align-items: start;
}

.esign-preview-panel,
.esign-inspector {
  display: grid;
  gap: 10px;
}

.esign-tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.field-tool {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
  background: #fff;
  color: var(--bs-body-color);
  font-weight: 800;
  cursor: pointer;
}

.field-tool.active {
  color: white;
  background: var(--bs-primary);
  border-color: var(--bs-primary);
}

.esign-preview-shell {
  position: relative;
  min-height: 720px;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  overflow: auto;
  background: #dfe8ef;
}

.esign-empty-preview {
  height: 720px;
  display: grid;
  place-content: center;
  gap: 6px;
  color: var(--muted);
  text-align: center;
}

.esign-empty-preview strong {
  color: var(--bs-body-color);
}

.esign-viewer-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  background: #fbfdff;
}

.esign-page-tabs,
.esign-zoom-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.esign-page-tabs span {
  color: var(--muted);
  font-weight: 800;
}

.esign-zoom-controls strong {
  min-width: 54px;
  text-align: center;
}

.esign-page-surface {
  position: relative;
  width: fit-content;
  height: fit-content;
  margin: 0 auto;
  background: white;
}

.esign-page-surface canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: white;
}

.esign-field-layer {
  position: absolute;
  inset: 0;
  cursor: crosshair;
}

.esign-field-box {
  position: absolute;
  display: grid;
  place-items: center;
  border: 2px solid #0f766e;
  border-radius: 4px;
  background: rgba(20, 184, 166, .18);
  color: #0f3f3b;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  cursor: pointer;
}

.esign-field-box.field-signature {
  border-color: #b45309;
  background: rgba(245, 158, 11, .22);
}

.esign-field-box.field-date {
  border-color: #1d4ed8;
  background: rgba(59, 130, 246, .18);
}

.esign-field-box.field-checkbox {
  border-color: #7c3aed;
  background: rgba(124, 58, 237, .16);
}

.esign-field-box.draft {
  pointer-events: none;
}

.esign-inspector {
  padding: 14px;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  background: #fbfdff;
}

.esign-inspector h4 {
  margin: 0;
}

.esign-field-list {
  display: grid;
  gap: 8px;
}

.esign-field-item {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
  background: white;
}

.esign-field-item span,
.esign-empty-list {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.esign-artifact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 4px;
}

.esign-artifact-actions .btn {
  white-space: nowrap;
}

.esign-delete-field {
  color: #b42318;
  font-size: 12px;
}

.esign-panel h3 {
  margin: 0;
  font-size: 15px;
}

.esign-panel textarea {
  min-height: 72px;
}

.esign-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.esign-picker {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.esign-selected-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}

.esign-selected-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
  background: #fbfdff;
  cursor: grab;
}

.esign-selected-item:active {
  cursor: grabbing;
}

.esign-selected-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 1280px) {
  .esign-doc-meta,
  .esign-builder-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .esign-workspace { grid-template-columns: 1fr; }
  .esign-picker { grid-template-columns: 1fr; }
}

.clickable-row:hover td {
  background: #f8fafc;
}

.draft-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: -4px;
}

.draft-toolbar .btn {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}

.draft-toolbar select {
  min-height: 34px;
  max-width: 230px;
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
  padding: 6px 9px;
  color: var(--bs-body-color);
  background: #fff;
}

.select-inline {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-right: 6px;
  color: #344054;
  font-size: 13px;
  text-transform: none;
}

.select-inline input,
.solicit-checkbox {
  width: 18px;
  min-height: 18px;
  margin: 0;
}

.detail-panel p {
  margin-bottom: 0;
  color: #344054;
  line-height: 1.45;
  white-space: pre-wrap;
}

.profile-detail {
  padding: 14px;
  background: #fbfdff;
}

.profile-header {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(210px, .55fr) auto;
  gap: 16px;
  align-items: start;
  padding: 16px;
  background: white;
  border-bottom: 1px solid var(--bs-border-color);
}

.profile-title {
  min-width: 0;
}

.profile-title h3 {
  margin: 8px 0 4px;
  color: #14213d;
  font-size: 20px;
}

.profile-title p,
.profile-contact span,
.profile-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.profile-contact {
  min-width: 0;
  padding-top: 4px;
}

.profile-contact strong,
.profile-contact span {
  display: block;
  overflow-wrap: anywhere;
}

.profile-contact strong {
  margin-bottom: 4px;
  color: #14213d;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: flex-start;
}

.profile-actions .detail-actions {
  margin: 0;
  justify-content: flex-end;
}

.profile-actions .btn {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 14px;
}

.employee-profile-detail .profile-header {
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.3fr);
}
.employee-profile-detail .profile-actions { min-width: 0; }
.employee-profile-detail .profile-tabs { flex-wrap: wrap; }
[data-pay-history-results] .table-scroll { width: 0; min-width: 100%; }
[data-pay-history-results] .nested-table th,
[data-pay-history-results] .nested-table td { padding: 8px; }
@media (max-width: 1000px) {
  .employee-profile-detail .profile-header { grid-template-columns: minmax(0, 1fr); }
}

.emergency-contact { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--bs-border-color); }
.message-direction { font-weight: 800; margin: 8px 0; line-height: 1.4; }
.message-management, .message-inbox-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.message-inbox-controls { margin: 0 0 10px; }
.message-inbox-controls .active { background: #dff8ef; border-color: #0f766e; }
.notification-office { display: block; padding: 10px 12px; }
.notification-office select { display: block; width: 100%; margin-top: 5px; }
.notification-help { padding: 0 12px; font-size: 12px; }
.notification-panel > .btn { margin: 0 12px 8px; }
.message-sender-field { display: grid; gap: 8px; }
.message-sender-field p { margin: 0; line-height: 1.4; }
.message-sender-field select, .message-phone-field select { width: 100%; }

.profile-tabs {
  display: flex;
  gap: 4px;
  padding: 0 16px;
  background: white;
  border-bottom: 1px solid var(--bs-border-color);
  overflow-x: auto;
}

.profile-tab {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.profile-tab span {
  min-width: 22px;
  padding: 2px 6px;
  color: #475467;
  background: #eef2f6;
  border-radius: 999px;
  font-size: 11px;
}

.profile-tab.active {
  color: var(--bs-primary);
  border-bottom-color: var(--bs-primary);
}

.profile-tab-panel {
  display: none;
  padding: 16px;
  background: white;
}

.profile-tab-panel.active {
  display: block;
}

.profile-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
}

.profile-metric-grid div {
  min-width: 0;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e8eef5;
  border-radius: 8px;
}

.profile-metric-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-metric-grid strong {
  display: block;
  color: #14213d;
  overflow-wrap: anywhere;
}

.profile-section {
  margin-top: 14px;
}

.profile-section h4 {
  margin: 0 0 8px;
  color: #344054;
  font-size: 13px;
  text-transform: uppercase;
}

.table-scroll { overflow-x: auto; }
.client-assignment-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin: 14px 0;
}
.client-assignment-filters > label { min-width: 150px; font-weight: 700; }
.client-assignment-filters > label input,
.client-assignment-filters > label select { display: block; width: 100%; margin-top: 5px; }
.client-assignment-statuses { flex-basis: 100%; }
.client-assignment-statuses summary { cursor: pointer; font-weight: 700; }
.client-assignment-statuses > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
  padding: 12px 0;
}
.client-assignment-statuses label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 400; }
.client-assignment-statuses input[type="checkbox"] { flex: none; width: 16px; height: 16px; margin: 0; padding: 0; }
.client-assignment-results .inline-actions { margin-top: 12px; }

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.section-heading-row h4 {
  margin: 0;
}

.modal-note {
  margin: 0 0 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.resume-preview {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #c7d7df;
  border-radius: 8px;
  background: white;
}

.resume-preview-header {
  display: grid;
  gap: 2px;
}

.resume-preview-header strong {
  color: var(--bs-body-color);
}

.resume-preview-header span,
.resume-preview p {
  margin: 0;
  color: var(--muted);
}

.timeline-list.compact {
  gap: 6px;
  margin: 0;
}

.document-table {
  margin-bottom: 14px;
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.password-result {
  margin: 12px 0;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
}

.password-result span,
.password-result strong {
  display: block;
}

.password-result span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.password-result strong {
  margin-top: 6px;
  color: #14213d;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.workspace-focus-row td {
  padding: 0;
  background: #f8fafc;
}

.workspace-profile-target {
  min-height: 220px;
  border-bottom: 1px solid var(--bs-border-color);
}

.workspace-profile-target .profile-detail {
  padding: 0;
}

.workspace-selected-row td {
  background: #eef8f9;
}

.workspace-selected-row:hover td {
  background: #e7f5f6;
}

.workspace-queue-row td {
  padding: 16px;
  background: white;
}

.workspace-queue-header {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.workspace-queue-header strong,
.workspace-queue-header span {
  display: block;
}

.workspace-queue-header strong {
  color: #14213d;
}

.workspace-queue-header span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.workspace-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.workspace-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 12px;
  text-align: left;
  color: #344054;
  background: #f8fafc;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  cursor: pointer;
}

.login-link {
  width: fit-content;
  color: var(--bs-primary);
}

.login-link:hover {
  color: #0c454c;
  background: transparent;
}

.workspace-card:hover,
.workspace-card.active {
  background: #eef8f9;
  border-color: rgba(13, 105, 116, .35);
}

.workspace-card.active {
  box-shadow: inset 4px 0 0 var(--bs-primary);
}

.workspace-card-top {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: flex-start;
}

.workspace-card-top strong {
  color: #14213d;
  line-height: 1.25;
}

.workspace-card-meta,
.workspace-card-lines,
.workspace-card-flags {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.workspace-card-lines {
  color: #344054;
}

.status-pill,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #115e67;
  background: #e7f5f6;
  font-size: 12px;
  font-weight: 800;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.crm-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.crm-mini-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
}

.crm-mini-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.crm-template-row td {
  vertical-align: top;
}

.crm-email-preview {
  width: min(680px, 100%);
  height: 520px;
  display: block;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  background: white;
}

.timeline-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-history-scroll {
  max-height: 420px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  padding: 12px;
}

.profile-history-scroll .timeline-list span { white-space: pre-wrap; }

.interview-form { display: grid; gap: 12px; }
.interview-form label { display: grid; gap: 5px; }
.interview-form textarea { width: 100%; resize: vertical; }
.profile-section-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-section-actions h4 { margin-right: auto; }

.timeline-list li {
  padding-left: 10px;
  border-left: 3px solid #d9e2ec;
}

.timeline-list .message-bubble-row {
  padding-left: 0;
  border-left: 0;
}

.timeline-list strong,
.timeline-list span {
  display: block;
}

.timeline-list strong {
  font-size: 12px;
  color: #344054;
}

.timeline-list span {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.conversation-row td {
  padding: 12px 16px;
  background: #f8fafc;
}

.message-bubble-row {
  display: flex;
  width: 100%;
}

.message-bubble-row.inbound {
  justify-content: flex-start;
}

.message-bubble-row.outbound {
  justify-content: flex-end;
}

.message-bubble {
  width: min(680px, 86%);
  padding: 12px 14px;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  background: white;
  box-shadow: 0 3px 10px rgba(31, 44, 61, .06);
}

.message-email .message-bubble {
  border-left: 4px solid #2f80ed;
}

.message-sms .message-bubble {
  border-left: 4px solid #12b76a;
}

.message-call .message-bubble {
  border-left: 4px solid #7c3aed;
}

.message-note .message-bubble {
  border-left: 4px solid #fdb022;
}

.message-bubble-row.needs-review .message-bubble {
  border-left-color: #d92d20;
  background: #fffafa;
}

.message-bubble-row.outbound .message-bubble {
  color: white;
  background: var(--bs-primary);
  border-color: var(--bs-primary);
}

.message-bubble strong,
.message-bubble span,
.message-bubble p {
  display: block;
}

.message-body {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.message-text {
  margin: 0;
  line-height: 1.4;
  white-space: pre-wrap;
}

.message-subject {
  margin-top: 6px;
  color: #1d2939;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.message-address {
  overflow-wrap: anywhere;
}

.message-quote {
  padding: 8px 10px;
  border-left: 3px solid #c7d7e6;
  border-radius: 6px;
  background: #f6f9fc;
}

.message-quote summary {
  color: #475467;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.message-quote blockquote {
  margin: 8px 0 0;
  color: #5d6b82;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.message-bubble span,
.message-meta span {
  color: var(--muted);
  font-size: 12px;
}

.message-bubble-row.outbound .message-bubble span,
.message-bubble-row.outbound .message-meta span {
  color: rgba(255, 255, 255, .78);
}

.message-bubble-row.outbound .message-meta strong {
  color: #5eead4;
}

.message-bubble-row.outbound .message-subject,
.message-bubble-row.outbound .message-text,
.message-bubble-row.outbound .message-quote blockquote,
.message-bubble-row.outbound .message-quote summary {
  color: white;
}

.message-bubble-row.outbound .message-quote {
  border-left-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .12);
}

.message-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.reply-button {
  min-height: 30px;
  margin-top: 8px;
  padding: 5px 10px;
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
  color: var(--bs-primary);
  background: white;
  font-weight: 800;
  cursor: pointer;
}

.message-bubble-row.outbound .reply-button {
  border-color: rgba(255, 255, 255, .35);
}

.message-filter-row td {
  padding: 10px 16px;
  background: white;
}

.message-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.message-filter {
  min-height: 34px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
  color: #344054;
  background: #f8fafc;
  font-weight: 800;
  cursor: pointer;
}

.message-filter span {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--muted);
  background: white;
  font-size: 12px;
}

.message-filter.active {
  color: white;
  background: var(--bs-primary);
  border-color: var(--bs-primary);
}

.message-filter.active span {
  color: var(--bs-primary);
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--bs-border-color);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 35, 58, .45);
}

.message-modal {
  width: min(620px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 18px;
  background: white;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  box-shadow: 0 20px 55px rgba(23, 35, 58, .28);
}

.message-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bs-border-color);
}

.message-modal textarea {
  width: 100%;
  margin-top: 6px;
  resize: vertical;
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
  padding: 10px;
  color: var(--bs-body-color);
  font: inherit;
}

.workspace-help-modal {
  width: min(720px, 100%);
}

.social-composer-modal {
  width: min(860px, 100%);
}

.social-compose-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 14px;
  align-items: start;
}

.social-compose-text,
.social-image-picker {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.social-compose-text textarea {
  min-height: 260px;
}

.social-compose-media {
  display: grid;
  gap: 10px;
}

.social-image-preview {
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  background: #f8fafc;
}

.social-image-preview img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: white;
}

.social-image-preview span {
  display: block;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.workspace-help-content {
  display: grid;
  gap: 14px;
}

.workspace-help-content section {
  padding: 14px;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  background: #f8fafc;
}

.workspace-help-content h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.workspace-help-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.workspace-help-content ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.workspace-help-content li + li {
  margin-top: 6px;
}

.template-token-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--bs-muted);
  font-size: 12px;
}

.template-token-panel strong {
  color: var(--bs-body-color);
}

.template-token-panel button {
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
  padding: 5px 8px;
  background: #fff;
  color: var(--bs-body-color);
  cursor: grab;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

.template-token-panel button:active {
  cursor: grabbing;
}

#templateBody.template-drop-target,
#templateSubject.template-drop-target {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 3px rgba(18, 104, 112, .16);
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
  color: var(--muted);
  background: white;
  font-weight: 800;
  cursor: pointer;
}

.message-actions {
  justify-content: flex-end;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 36px));
  pointer-events: none;
}

.message-toast {
  pointer-events: auto;
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  border: 1px solid rgba(17, 94, 103, .28);
  border-left: 5px solid var(--bs-primary);
  border-radius: 8px;
  color: var(--bs-body-color);
  background: white;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .22);
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}

.message-toast.email {
  border-left-color: #2563eb;
}

.message-toast-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.message-toast strong {
  color: #14213d;
  font-size: 14px;
}

.message-toast span,
.message-toast p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.message-toast p {
  color: #344054;
  line-height: 1.35;
}

.employee-modal {
  width: min(920px, 100%);
}

.form-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  background: #fbfdff;
}

.form-section h3 {
  margin: 0;
  font-size: 15px;
}

.employee-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.timesheet-day {
  margin: 10px 0;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
}

.timesheet-day-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.timesheet-day-heading span,
.timesheet-day-heading strong {
  color: var(--bs-secondary-color);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.timesheet-day-heading strong {
  color: var(--bs-body-color);
  white-space: nowrap;
}

.timesheet-entry-list {
  display: grid;
  gap: 8px;
}

.timesheet-entry-row {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(82px, .7fr) minmax(120px, 1.3fr) 36px;
  gap: 8px;
  align-items: end;
}

.timesheet-entry-row label {
  margin: 0;
  color: var(--bs-secondary-color);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.timesheet-entry-row input {
  min-height: 40px;
  margin-top: 4px;
  padding: 8px;
  font-size: 14px;
}

.timesheet-entry-remove {
  width: 36px;
  height: 40px;
  min-height: 40px;
}

.timesheet-add-entry {
  margin-top: 10px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.checkbox-grid label {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
  background: white;
  font-weight: 700;
  color: var(--bs-body-color);
  text-transform: none;
}

.checkbox-grid input {
  width: auto;
}

.help-cell {
  padding: 0;
  background: #f8fafc;
}

.help-system {
  display: grid;
  gap: 18px;
  padding: 18px;
  color: #1f2937;
}

.help-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 18px;
  align-items: stretch;
  padding: 22px;
  color: white;
  background: linear-gradient(135deg, rgba(15, 118, 110, .96), rgba(37, 48, 65, .96)), #253041;
  border-radius: 8px;
}

.help-hero h2 {
  margin: 0 0 8px;
  color: white;
  font-size: 28px;
}

.help-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .82);
  line-height: 1.5;
}

.help-hero .eyebrow {
  color: rgba(255, 255, 255, .68);
}

.help-hero-panel {
  display: grid;
  place-content: center;
  gap: 6px;
  min-height: 126px;
  padding: 18px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
}

.help-hero-panel span,
.help-hero-panel strong {
  display: block;
}

.help-hero-panel span {
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.help-hero-panel strong {
  color: white;
  font-size: 20px;
  line-height: 1.25;
}

.help-section {
  scroll-margin-top: 82px;
  padding: 18px;
  background: white;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(31, 44, 61, .06);
}

.help-section h3 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 20px;
}

.help-section ol,
.help-section ul {
  margin: 0;
  padding-left: 22px;
}

.help-section li {
  margin: 8px 0;
  line-height: 1.45;
}

.help-link-list {
  columns: 2;
  column-gap: 42px;
}

.help-link-list li {
  break-inside: avoid;
}

.help-link-list a {
  color: #0f766e;
  font-weight: 800;
  text-decoration: none;
}

.help-link-list a:hover {
  text-decoration: underline;
}

.help-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
  gap: 18px;
  align-items: start;
}

.help-shot {
  margin: 0;
}

.help-shot figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.help-shot-window {
  overflow: hidden;
  min-height: 230px;
  background: #eef3f7;
  border: 1px solid #cad5e3;
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(31, 44, 61, .15);
}

.help-shot-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 34px;
  padding: 8px 10px;
  color: #dbeafe;
  background: #253041;
}

.help-shot-bar span {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: #e85d4f;
}

.help-shot-bar span:nth-child(2) {
  background: #f2b84b;
}

.help-shot-bar span:nth-child(3) {
  background: #38b989;
}

.help-shot-bar strong {
  margin-left: 6px;
  font-size: 12px;
}

.help-shot-toolbar,
.help-shot-filter,
.help-actions,
.help-profile-head,
.help-job-card,
.help-check-row,
.help-tabs,
.help-side {
  margin: 12px;
}

.help-shot-toolbar {
  display: grid;
  grid-template-columns: 110px 80px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #cfd8e5;
  border-radius: 8px;
  background: white;
}

.help-shot-toolbar b,
.help-shot-toolbar span,
.help-shot-toolbar em {
  padding: 12px;
  border-right: 1px solid #e3e9f1;
  font-style: normal;
}

.help-shot-toolbar em {
  color: var(--muted);
  border-right: 0;
}

.help-shot-filter {
  display: grid;
  grid-template-columns: 70px 1fr 88px;
  gap: 8px;
  align-items: center;
  padding: 12px;
  background: white;
  border: 1px solid #d6dde8;
  border-radius: 8px;
}

.help-shot-filter span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.help-shot-filter b {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #d6dde8;
  border-radius: 6px;
}

.help-shot-filter button,
.help-actions button,
.help-side button {
  min-height: 34px;
  color: white;
  background: #0f766e;
  border: 0;
  border-radius: 6px;
  font-weight: 800;
}

.help-shot-table {
  display: grid;
  gap: 8px;
  margin: 12px;
}

.help-shot-table i {
  display: block;
  height: 34px;
  background: white;
  border: 1px solid #d6dde8;
  border-radius: 6px;
}

.help-profile-head,
.help-job-card {
  display: grid;
  gap: 5px;
  padding: 14px;
  background: white;
  border: 1px solid #d6dde8;
  border-radius: 8px;
}

.help-profile-head b,
.help-job-card b {
  color: #111827;
  font-size: 18px;
}

.help-profile-head span,
.help-job-card span,
.help-check-row em,
.help-side span {
  color: var(--muted);
  font-style: normal;
}

.help-tabs,
.help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.help-tabs span {
  padding: 9px 10px;
  color: #0f766e;
  background: white;
  border: 1px solid #d6dde8;
  border-radius: 6px;
  font-weight: 800;
}

.help-actions button {
  padding: 0 12px;
}

.help-check-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  background: white;
  border: 1px solid #d6dde8;
  border-radius: 8px;
}

.help-check-row span {
  width: 16px;
  height: 16px;
  border: 2px solid #0f766e;
  border-radius: 4px;
}

.help-doc {
  position: relative;
  min-height: 190px;
  margin: 12px;
  background: linear-gradient(#dbe3ee 1px, transparent 1px) 0 36px / 100% 32px, white;
  border: 1px solid #cad5e3;
  border-radius: 8px;
}

.help-doc span {
  position: absolute;
  display: grid;
  place-items: center;
  border: 2px solid #0f766e;
  border-radius: 5px;
  background: rgba(15, 118, 110, .14);
  font-size: 12px;
  font-weight: 800;
}

.help-doc .sig {
  left: 24px;
  right: 110px;
  bottom: 36px;
  height: 38px;
}

.help-doc .date {
  right: 22px;
  bottom: 36px;
  width: 78px;
  height: 38px;
  border-color: #3b82f6;
  background: rgba(59, 130, 246, .14);
}

.help-doc .check {
  left: 24px;
  top: 44px;
  width: 106px;
  height: 30px;
  border-color: #7c3aed;
  background: rgba(124, 58, 237, .12);
}

.help-side {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: white;
  border: 1px solid #d6dde8;
  border-radius: 8px;
}

.help-side button {
  width: 96px;
}

.help-checklist {
  list-style: square;
}

@media (max-width: 1100px) {
  .backend-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .report-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-header { grid-template-columns: 1fr; }
  .profile-actions,
  .profile-actions .detail-actions { justify-content: flex-start; }
  .profile-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .employee-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-hero,
  .help-two-col { grid-template-columns: 1fr; }
  .help-link-list { columns: 1; }
}

@media (max-width: 680px) {
  .content { padding: 16px; }
  .topbar,
  .report-card-header,
  .pagination-bar { display: block; }
  .topbar-actions,
  .pagination-actions { margin-top: 12px; }
  .report-filters,
  .summary-cards,
  .detail-grid { grid-template-columns: 1fr; }
  .detail-panel.wide { grid-column: auto; }
  .profile-detail { padding: 10px; }
  .profile-header,
  .profile-tab-panel { padding: 12px; }
  .profile-tabs { padding: 0 12px; }
  .profile-metric-grid { grid-template-columns: 1fr; }
  .workspace-queue-header { display: block; }
  .workspace-queue-header .btn { margin-top: 10px; }
  .workspace-card-grid { grid-template-columns: 1fr; }
  .employee-form-grid { grid-template-columns: 1fr; }
  .timesheet-entry-row { grid-template-columns: 1fr 1fr; }
  .timesheet-entry-note { grid-column: 1 / -1; }
  .timesheet-entry-remove { width: 100%; }
  .help-system,
  .help-section,
  .help-hero { padding: 14px; }
  .help-hero h2 { font-size: 24px; }
  .help-shot-toolbar,
  .help-shot-filter,
  .help-check-row { grid-template-columns: 1fr; }
}

/* Ultra Edge-inspired console refresh: dense staffing workflow, modern neutral palette. */
:root {
  --bs-primary: #0f766e;
  --bs-primary-rgb: 15, 118, 110;
  --bs-body-color: #162033;
  --bs-border-color: #d6dde8;
  --muted: #647085;
  --soft: #f4f7fb;
  --sidebar: #253041;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --accent: #e85d4f;
  --gold: #b7791f;
}

body {
  background:
    linear-gradient(180deg, #e9edf3 0, #f6f8fb 260px, #eef2f7 100%);
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
}

.backend-shell {
  --sidebar-width: 240px;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  min-height: 0;
}

.command-bar {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(0, 680px) auto;
  gap: 18px;
  align-items: center;
  padding: 9px 18px;
  color: white;
  background: #1d2735;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .18);
}

.product-lockup {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.product-lockup strong,
.product-lockup span {
  display: block;
  white-space: nowrap;
}

.product-lockup span {
  margin-top: 1px;
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
}

.quick-search {
  display: grid;
  grid-template-columns: 112px 90px minmax(0, 1fr);
  min-width: 0;
  align-items: center;
  min-height: 40px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.quick-search span {
  padding: 0 13px;
  color: white;
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
}

.quick-search select,
.quick-search input {
  min-height: 38px;
  margin: 0;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, .16);
  border-radius: 0;
  background: white;
}

.command-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.notification-center {
  position: relative;
}

.notification-button {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  color: white;
  background: rgba(255, 255, 255, .1);
  cursor: pointer;
}

.notification-button:hover,
.notification-button.active {
  background: rgba(255, 255, 255, .18);
}

.notification-bell {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #1d2735;
  background: #f8fafc;
  font-weight: 900;
  line-height: 1;
}

.notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 2px solid #1d2735;
  border-radius: 999px;
  color: white;
  background: #dc2626;
  font-size: 11px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 70;
  width: min(380px, calc(100vw - 24px));
  overflow: hidden;
  color: var(--bs-body-color);
  background: white;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .24);
}

.notification-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--bs-border-color);
}

.notification-list {
  max-height: 380px;
  overflow: auto;
}

.notification-empty,
.notification-item {
  padding: 12px 14px;
}

.notification-empty {
  color: var(--muted);
  font-size: 13px;
}

.notification-item {
  display: grid;
  gap: 5px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
  color: var(--bs-body-color);
  background: white;
  cursor: pointer;
}

.notification-item:hover {
  background: #f8fafc;
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-item strong {
  color: #14213d;
  font-size: 13px;
}

.notification-item span,
.notification-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.notification-item p {
  color: #344054;
  line-height: 1.35;
}

.sidebar {
  grid-column: 1;
  grid-row: 1 / -1;
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
  align-self: stretch;
  gap: 16px;
  padding: 14px 12px;
  color: #edf3fb;
  background: linear-gradient(180deg, #2b3748, #202a39);
  border-right: 1px solid rgba(15, 23, 42, .18);
}

.content {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 18px;
}

.sidebar-brand {
  padding: 10px 10px 16px;
  border-bottom-color: rgba(255, 255, 255, .12);
}

.brand-mark {
  background: linear-gradient(135deg, #0f766e, #3b82f6);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(15, 118, 110, .28);
}

.nav-group {
  min-height: 26px;
  padding: 10px 8px 2px;
  color: rgba(255, 255, 255, .58);
  font-size: 11px;
}

.nav-group::after { content: '+'; float: right; font-size: 15px; }
.aged-sort { border: 0; padding: 4px 0; background: transparent; color: inherit; font: inherit; font-weight: inherit; cursor: pointer; white-space: nowrap; }
.aged-sort::after { content: ' \2195'; opacity: .6; }
th[aria-sort="ascending"] .aged-sort::after { content: ' \2191'; opacity: 1; }
th[aria-sort="descending"] .aged-sort::after { content: ' \2193'; opacity: 1; }
.receivable-company-link { border: 0; padding: 0; background: transparent; color: #0f766e; font: inherit; font-weight: 700; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.receivable-company-link:hover { color: #115e59; }
.aged-sort:focus-visible, .receivable-company-link:focus-visible { outline: 2px solid #0f766e; outline-offset: 3px; }
.nav-group[aria-expanded="true"]::after { content: '\2212'; }
.sidebar .nav-link { overflow-wrap: anywhere; font-size: 13px; }

.sidebar-nav { min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; flex: 1; align-content: start; }
.sidebar > .sidebar-brand, .sidebar-footer { flex-shrink: 0; min-width: 0; }
.sidebar-brand > div:last-child { min-width: 0; }
.sidebar-brand strong { font-size: 15px; }
.sidebar-brand span { font-size: 12px; }
.sidebar .brand-mark { flex: 0 0 42px; }
.sidebar-footer span { overflow-wrap: anywhere; }
.sidebar-resizer { position: absolute; right: 0; top: 0; bottom: 0; width: 7px; cursor: col-resize; touch-action: none; z-index: 5; }
.sidebar-resizer:hover, .sidebar-resizer:focus-visible, .sidebar-resizing .sidebar-resizer { background: #21a89e; outline: none; }
.sidebar-resizing, .sidebar-resizing * { cursor: col-resize !important; user-select: none !important; }
.quick-search input, .quick-search select { min-width: 0; width: 100%; }

.nav-link {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .82);
}

.nav-link.active,
.nav-link:hover {
  background: rgba(15, 118, 110, .95);
  box-shadow: 0 8px 18px rgba(15, 118, 110, .18);
}

.nav-icon {
  color: #1d2735;
  background: rgba(255, 255, 255, .92);
  border-radius: 7px;
}

.topbar {
  min-height: 70px;
  margin: -18px -18px 16px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid var(--bs-border-color);
  backdrop-filter: blur(10px);
}

h1 {
  color: #111827;
  font-size: 27px;
  letter-spacing: 0;
}

.btn {
  border-radius: 7px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #0f766e;
  border-color: #0f766e;
  box-shadow: 0 8px 18px rgba(15, 118, 110, .18);
}

.btn-outline {
  color: #254056;
  background: white;
  border-color: #cfd8e5;
  text-decoration: none;
}

.report-filters,
.report-card,
.summary-card,
.detail-panel,
.form-section,
.login-card,
.message-modal {
  border-color: rgba(148, 163, 184, .38);
  box-shadow: 0 10px 24px rgba(31, 44, 61, .06);
}

.report-filters {
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  padding: 12px;
}

.summary-card {
  position: relative;
  overflow: hidden;
  min-height: 82px;
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.summary-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #0f766e, #e85d4f, #b7791f);
}

.summary-card strong {
  color: #111827;
  font-size: 20px;
}

.report-card-header {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

th {
  color: white;
  background: #344055;
}

tbody tr:hover td {
  background: #f2fbfa;
}

.status-pill,
.pill,
.message-filter.active {
  color: #064e3b;
  background: #dff8ef;
}

.warning-pill {
  color: #92400e;
  background: #fff4d6;
}

.diff-list {
  display: grid;
  gap: 6px;
  min-width: 260px;
}

.diff-list div {
  display: grid;
  grid-template-columns: minmax(95px, .45fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 6px 8px;
  border: 1px solid #e4eaf2;
  border-radius: 6px;
  background: #fbfdff;
}

.diff-list span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.diff-list strong {
  color: #172033;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.saved-view-bar,
.bulk-preview,
.fill-card {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.saved-view {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
  color: #344054;
  background: white;
  font-weight: 800;
  cursor: pointer;
}

.saved-view.active {
  color: white;
  background: var(--bs-primary);
  border-color: var(--bs-primary);
}

.fill-card-row td {
  padding: 12px;
  background: #fbfdff;
}

.fill-card {
  justify-content: space-between;
  padding: 12px;
  border: 1px solid #d6dde8;
  border-radius: 8px;
  background: white;
}

.fill-card-main {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: min(420px, 100%);
}

.fill-card-main strong,
.fill-card-main span,
.bulk-preview strong,
.bulk-preview span {
  display: block;
}

.fill-card-main strong {
  color: #111827;
  font-size: 16px;
}

.fill-card-main span,
.bulk-preview span {
  color: var(--muted);
  font-size: 12px;
}

.fill-card-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  gap: 8px;
  flex: 1 1 380px;
}

.fill-card-metrics div {
  padding: 8px 10px;
  border: 1px solid #e4eaf2;
  border-radius: 6px;
  background: #f8fafc;
}

.fill-card-metrics span,
.fill-card-metrics strong {
  display: block;
}

.fill-card-metrics span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.bulk-preview {
  display: grid;
  align-items: start;
  padding: 10px;
  border: 1px solid #d6dde8;
  border-radius: 8px;
  background: #fbfdff;
}

.profile-header {
  background:
    linear-gradient(90deg, rgba(15, 118, 110, .09), rgba(232, 93, 79, .06)),
    #fff;
}

.profile-tabs {
  background: #fbfdff;
}

.profile-tab.active {
  color: #0f766e;
  border-bottom-color: #0f766e;
}

.message-bubble-row.outbound .message-bubble {
  background: #253041;
  border-color: #253041;
}

.workspace-card.active {
  background: #f0fdfa;
  box-shadow: inset 4px 0 0 #0f766e;
}

.login-screen {
  background:
    radial-gradient(circle at 18% 12%, rgba(15, 118, 110, .13), transparent 28%),
    radial-gradient(circle at 78% 20%, rgba(232, 93, 79, .10), transparent 26%),
    linear-gradient(135deg, #eef2f7, #f8fafc);
}

@media (max-width: 1100px) {
  .backend-shell {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .command-bar {
    grid-template-columns: 1fr;
  }

  .notification-panel {
    right: auto;
    left: 0;
  }

  .sidebar {
    grid-row: 1 / -1;
    grid-column: 1;
  }

  .content {
    grid-row: 2;
    grid-column: 2;
  }
}

@media (max-width: 767px) {
  .backend-shell { height: auto; min-height: 100dvh; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); }
  .command-bar { grid-column: 1; grid-row: 2; }
  .sidebar { grid-row: 1; grid-column: 1; max-height: 45dvh; }
  .content { grid-row: 3; grid-column: 1; }
  .sidebar-resizer { display: none; }
  .command-actions { flex-wrap: wrap; justify-content: flex-start; }
}

@media (max-width: 680px) {
  .command-bar,
  .quick-search {
    grid-template-columns: 1fr;
  }

  .quick-search select,
  .quick-search input {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .16);
  }

  .toast-stack {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }
}


.choice-list {
  display: grid;
  gap: 8px;
}
.choice-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #d8e1ec;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
}
.choice-row input {
  margin-top: 4px;
}
.choice-row span {
  display: grid;
  gap: 2px;
}
.choice-row small {
  color: #64748b;
  font-weight: 600;
}

[data-watercraft-day] { margin: 12px 0; padding: 14px; border: 1px solid #b4cbd2; border-radius: 8px; min-width: 0; }
[data-watercraft-day] legend { font-weight: 700; }
[data-watercraft-day] p { font-size: 13px; margin: 0 0 10px; }
.watercraft-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.watercraft-fields label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.watercraft-fields input, .watercraft-fields select { width: 100%; min-width: 0; box-sizing: border-box; padding: 10px; border: 1px solid #a9b9c4; border-radius: 6px; background: white; color: #172d3b; }

#timesheetPrintRoot { display: none; }
@media print {
  @page { size: landscape; margin: 12mm; }
  body.printing-timesheet { background: white !important; color: black !important; display: block !important; height: auto !important; overflow: visible !important; }
  body.printing-timesheet > :not(#timesheetPrintRoot) { display: none !important; }
  body.printing-timesheet #timesheetPrintRoot { display: block !important; font: 10pt Arial, sans-serif; color: black; }
  #timesheetPrintRoot header { display: block; padding: 0; background: white; color: black; position: static; }
  #timesheetPrintRoot h1 { font-size: 19pt; margin: 8px 0; }
  #timesheetPrintRoot .print-meta { display: flex; justify-content: space-between; gap: 20px; }
  #timesheetPrintRoot table { width: 100%; border-collapse: collapse; table-layout: fixed; }
  #timesheetPrintRoot th, #timesheetPrintRoot td { border: 1px solid #555; padding: 8px; text-align: left; vertical-align: top; color: black; background: white; overflow-wrap: anywhere; white-space: normal; }
  #timesheetPrintRoot thead { display: table-header-group; }
  #timesheetPrintRoot tfoot { display: table-row-group; }
  #timesheetPrintRoot tr { break-inside: avoid; }
  #timesheetPrintRoot small { display: block; font-size: 9pt; margin-top: 4px; }
  #timesheetPrintRoot td > div + div { margin-top: 8px; }
  #timesheetPrintRoot .hours { text-align: right; }
  #timesheetPrintRoot .print-notes { white-space: pre-wrap; }
}

.operations-list-dialog { padding: 24px; max-width: 640px; }
.operations-list-dialog label { display: block; margin: 12px 0; }
.operations-list-dialog input:not([type="checkbox"]), .operations-list-dialog select { display: block; width: 100%; margin-top: 5px; }
.operations-list-dialog input[type="checkbox"], [data-operations-select] { width: auto; }
.operations-list-dialog [role="alert"] { color: #a32d2d; }
.operations-list-dialog [hidden] { display: none !important; }

.crm-dialog.operations-list-dialog { max-width: 640px; }
.operations-list-dialog label.permission-check { display: flex; align-items: center; gap: 8px; }
.operations-list-dialog label.permission-check input { width: auto; margin: 0; }

.operations-tools { padding: 14px 20px; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.operations-tools .saved-view-bar { margin: 0 0 12px; gap: 6px; }
.operations-toolbar, .operations-selection-actions, .operations-view-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.operations-toolbar { justify-content: space-between; }
.operations-selection-actions [role="status"] { color: #52657a; font-size: 13px; min-width: 72px; }
.operations-tools .operations-add-list { background: #0f766e; color: white; border: 1px solid #0f766e; }
.operations-tools .operations-add-list:disabled { background: #e2e8f0; border-color: #e2e8f0; color: #64748b; opacity: 1; }
.operations-text-button { background: transparent; border: 0; color: #36566d; font: inherit; font-size: 13px; cursor: pointer; padding: 7px 4px; }
.operations-tools [hidden], .operations-directory-table [hidden] { display: none !important; }
.operations-directory-table { table-layout: fixed; min-width: 0 !important; }
.operations-directory-table > thead th { position: relative; padding: 0; }
.operations-directory-table > thead th[data-column="action"] { padding: 15px 12px; }
.operations-sort { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 15px 16px 15px 12px; border: 0; background: transparent; color: inherit; text-align: left; font: inherit; text-transform: inherit; cursor: pointer; gap: 8px; }
.operations-sort span { opacity: .65; font-size: 14px; }
.operations-sort:hover { background: rgba(255,255,255,.08); }
.operations-sort:focus-visible, .operations-column-resize:focus-visible { outline: 2px solid #38bdf8; outline-offset: -3px; }
.operations-column-resize { position: absolute; top: 0; right: -3px; height: 100%; width: 9px; cursor: col-resize; touch-action: none; z-index: 2; }
.operations-column-resize::after { content: ''; position: absolute; right: 4px; top: 20%; height: 60%; width: 1px; background: rgba(255,255,255,.2); }
.operations-column-resize:hover::after { background: #38bdf8; width: 3px; }
.operations-directory-table > tbody > tr > td { overflow-wrap: anywhere; }
.operations-column-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; padding-top: 16px; margin-top: 14px; border-top: 1px solid #dde5ee; }
.report-filters.associates-filters .filter-search { order: -1; }
.operations-column-filters label, .operations-column-filters legend { display: block; color: #52657a; font-size: 12px; font-weight: 600; }
.operations-column-filters input { display: block; width: 100%; min-width: 0; padding: 8px; border: 1px solid #d7e1eb; border-radius: 6px; margin-top: 5px; background: white; font: inherit; color: #182b3d; }
.operations-column-filters fieldset { display: flex; gap: 8px; padding: 0; border: 0; min-width: 0; margin: 0; }
.operations-column-filters fieldset label { flex: 1; min-width: 0; }
.operations-filter-submit { grid-column: 1 / -1; display: flex; gap: 12px; }
.operations-columns-dialog { width: min(580px, calc(100vw - 40px)); max-height: 85vh; border: 1px solid #d7e1eb; border-radius: 12px; padding: 24px; color: #182b3d; box-shadow: 0 20px 70px #182b3d40; }
.operations-columns-dialog::backdrop { background: #15293d70; }
.operations-columns-dialog h3 { margin: 0; }
.coats-note-dialog textarea { display: block; width: 100%; box-sizing: border-box; margin: 8px 0 16px; padding: 10px; border: 1px solid #d7e1eb; border-radius: 6px; font: inherit; resize: vertical; }
.operations-columns-dialog p { color: #64748b; font-size: 13px; }
.operations-column-options { margin: 12px 0 18px; max-height: 45vh; overflow-y: auto; padding-right: 8px; }
.operations-column-search { display: block; font-size: 13px; font-weight: 600; }
.operations-column-search input { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; padding: 9px 12px; border: 1px solid #d7e1eb; border-radius: 6px; font: inherit; }
.operations-column-count { margin: 10px 0; }
.operations-column-options [hidden] { display: none !important; }
.operations-column-options small { color: #64748b; font-size: 11px; margin-right: 8px; }
.operations-column-options > div { display: flex; align-items: center; gap: 6px; padding: 8px 0; border-bottom: 1px solid #edf1f5; }
.operations-column-options label { flex: 1; display: flex; align-items: center; gap: 10px; }
.operations-column-options input[type="checkbox"] { width: auto; }

.operations-filter-note { grid-column: 1 / -1; margin: 0; color: #64748b; font-size: 12px; }

@media (min-width: 800px) {
  .staffing-options.job-order-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Keep requirement choices legible beside long job-description evidence. */
.job-requirements-scroll { max-height: 350px; overflow: auto; }
.job-requirements-table { table-layout: fixed; min-width: 560px; }
.job-requirements-table .requirement-skill { width: 22%; }
.job-requirements-table .requirement-use { width: 160px; }
.job-requirements-table th { position: sticky; top: 0; z-index: 2; }
.job-requirements-table td { vertical-align: top; overflow-wrap: anywhere; }
.job-requirements-table td:nth-child(2) select {
  width: 100%; min-width: 136px; box-sizing: border-box;
  position: sticky; top: 48px;
}
[data-optional-name][hidden], [data-skill-name][hidden] { display: none !important; }

/* Keep client record details and long notes independently scrollable. */
#clientEditForm { display: flex; flex-direction: column; max-height: 92vh; overflow: hidden; }
.client-edit-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 14px; padding: 2px 8px 2px 2px; }
.client-master-notes { max-height: 280px; overflow-y: auto; overscroll-behavior: contain; padding: 12px; border: 1px solid var(--bs-border-color); border-radius: 8px; white-space: pre-wrap; }
.client-contract-end { display: block; margin-top: 8px; padding: 8px 12px; border-radius: 6px; background: #e7f3f2; color: #145954; }
#clientEditForm .checkbox-label { display: flex; align-items: center; gap: 8px; }
#clientEditForm .checkbox-label input { width: auto; }
#clientEditForm .message-actions, #clientEditForm .message-modal-header { flex-shrink: 0; }
