/* Shared Whitespace block on the Autotask, ConnectWise and Halo pages.
   The illustration restyles the product Whitespace screen: tabs, cross-sell
   bar, and a company-by-service grid. Example rows only. */

.psa-ws-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.psa-ws-point {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.psa-ws-point .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.psa-ws-point .icon svg { width: 20px; height: 20px; color: var(--text); }
.psa-ws-point h3 {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 8px;
}
.psa-ws-point p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.psa-ws-figure {
  margin: 28px 0 0;
}

.psa-ws-app {
  background: var(--mock-content-bg, #f6f8fb);
  border: 1px solid var(--mock-border, #e6eaf0);
  border-radius: 16px;
  box-shadow: var(--shadow-mock, 0 1px 2px rgba(15, 23, 42, 0.05), 0 18px 44px -22px rgba(15, 23, 42, 0.18));
  overflow: hidden;
  color: var(--mock-text, #0f172a);
  font-family: "Inter", system-ui, sans-serif;
  text-align: left;
  max-width: 100%;
  min-width: 0;
}

.psa-ws-shell {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  min-width: 0;
}

.psa-ws-side {
  background: var(--mock-sidebar-bg, #fff);
  border-right: 1px solid var(--mock-border, #e6eaf0);
  padding: 14px 10px 16px;
}
.psa-ws-brand {
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 8px 12px;
}
.psa-ws-brand img {
  height: 16px;
  width: auto;
  display: block;
}
.psa-ws-nav-label {
  display: block;
  padding: 8px 10px 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mock-text-faint, #8b96a8);
}
.psa-ws-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mock-text-muted, #616f85);
  line-height: 1.3;
}
.psa-ws-nav-item svg { width: 15px; height: 15px; flex: none; }
.psa-ws-nav-item.is-on {
  background: var(--mock-active-bg, #eef1ff);
  color: var(--accent-blue);
  font-weight: 600;
}

.psa-ws-main {
  min-width: 0;
  padding: 14px 16px 12px;
  background: var(--mock-content-bg, #f6f8fb);
}

.psa-ws-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.psa-ws-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--mock-text, #0f172a);
}
.psa-ws-top-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.psa-ws-quick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--mock-border, #e6eaf0);
  border-radius: 8px;
  background: #fff;
  color: var(--mock-text-faint, #8b96a8);
  font-size: 12px;
  white-space: nowrap;
}
.psa-ws-quick svg { width: 13px; height: 13px; }
.psa-ws-example {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 100px;
  background: var(--tint-blue-10, rgba(22, 77, 241, 0.08));
  color: var(--accent-blue);
  font-family: "Fragment Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.psa-ws-tabs {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 4px 2px;
  border-bottom: 1px solid var(--mock-border, #e6eaf0);
  margin-bottom: 12px;
}
.psa-ws-tab {
  flex: none;
  padding: 8px 12px 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mock-text-muted, #616f85);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.psa-ws-tab.is-on {
  color: var(--accent-blue);
  font-weight: 600;
  border-bottom-color: var(--accent-blue);
}

.psa-ws-lead {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--mock-text-muted, #616f85);
}

.psa-ws-target {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--mock-border, #e6eaf0);
  border-radius: 10px;
  min-width: 0;
}
.psa-ws-target strong {
  flex: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mock-text, #0f172a);
}
.psa-ws-target span {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--mock-text-muted, #616f85);
}
.psa-ws-target svg { width: 16px; height: 16px; flex: none; color: var(--mock-text-faint, #8b96a8); }

.psa-ws-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.psa-ws-field,
.psa-ws-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--mock-border, #e6eaf0);
  border-radius: 8px;
  background: #fff;
  color: var(--mock-text-muted, #616f85);
  font-size: 12.5px;
  white-space: nowrap;
}
.psa-ws-field { min-width: 160px; color: var(--mock-text-faint, #8b96a8); }
.psa-ws-field svg,
.psa-ws-btn svg { width: 14px; height: 14px; flex: none; }
.psa-ws-spacer { flex: 1; min-width: 8px; }

.psa-ws-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  border: 1px solid var(--mock-border, #e6eaf0);
  border-radius: 12px;
  background: #fff;
}
.psa-ws-grid {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
}
.psa-ws-grid th,
.psa-ws-grid td {
  padding: 10px 12px;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--mock-border-soft, #eef1f6);
  vertical-align: middle;
}
.psa-ws-grid th {
  background: #f4f7fb;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #526277;
}
.psa-ws-grid tr:last-child td { border-bottom: 0; }
.psa-ws-grid .co,
.psa-ws-grid .chk { text-align: left; }
.psa-ws-grid .co {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
  color: var(--accent-blue);
  font-weight: 600;
  box-shadow: 1px 0 0 var(--mock-border-soft, #eef1f6);
}
.psa-ws-grid th.co { background: #f4f7fb; color: #526277; z-index: 2; }
.psa-ws-grid .rev {
  color: var(--mock-text, #0f172a);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.psa-ws-on {
  color: var(--accent-green);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.psa-ws-gap {
  display: inline-block;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: #94a3b8;
  vertical-align: middle;
}
.psa-ws-box {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  vertical-align: middle;
}

.psa-ws-renew {
  margin-top: 12px;
  background: #fff;
  border: 1px solid var(--mock-border, #e6eaf0);
  border-radius: 12px;
  overflow: hidden;
}
.psa-ws-renew-head {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mock-text, #0f172a);
  border-bottom: 1px solid var(--mock-border-soft, #eef1f6);
  background: #f4f7fb;
}
.psa-ws-renew-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.psa-ws-renew-table th,
.psa-ws-renew-table td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid var(--mock-border-soft, #eef1f6);
}
.psa-ws-renew-table tr:last-child td { border-bottom: 0; }
.psa-ws-renew-table th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #526277;
}
.psa-ws-renew-table td:first-child {
  color: var(--accent-blue);
  font-weight: 600;
}

.psa-ws-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--mock-text-muted, #616f85);
}
.psa-ws-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent-blue);
  color: #fff;
  font-weight: 600;
}

@media (max-width: 900px) {
  .psa-ws-points { grid-template-columns: 1fr; }
  .psa-ws-shell { grid-template-columns: 1fr; }
  .psa-ws-side { display: none; }
  .psa-ws-quick { display: none; }
}

@media (max-width: 640px) {
  .psa-ws-scroll { overflow: visible; border: 0; background: transparent; }
  .psa-ws-grid { min-width: 0; font-size: 13px; }
  .psa-ws-grid thead { display: none; }
  .psa-ws-grid,
  .psa-ws-grid tbody,
  .psa-ws-grid tr,
  .psa-ws-grid td { display: block; width: auto; }
  .psa-ws-grid tr {
    background: #fff;
    border: 1px solid var(--mock-border, #e6eaf0);
    border-radius: 12px;
    padding: 10px 12px 8px;
    margin-bottom: 8px;
  }
  .psa-ws-grid td {
    border: 0;
    text-align: left;
    white-space: normal;
    padding: 3px 0;
  }
  .psa-ws-grid td.chk { display: none; }
  .psa-ws-grid td.co {
    position: static;
    box-shadow: none;
    background: transparent;
    font-size: 14px;
    padding-bottom: 4px;
  }
  .psa-ws-grid td[data-label]:not(.co)::before {
    content: attr(data-label);
    display: inline-block;
    min-width: 9.2em;
    margin-right: 8px;
    color: #526277;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }
}

@media (max-width: 480px) {
  .psa-ws-main { padding: 12px 10px 10px; }
  .psa-ws-title { font-size: 16px; }
  .psa-ws-target { flex-wrap: wrap; }
  .psa-ws-target span { flex-basis: 100%; }
  .psa-ws-field { flex: 1 1 100%; min-width: 0; }
  .psa-ws-btn.psa-ws-export { display: none; }
  .psa-ws-renew-table { font-size: 12.5px; }
  .psa-ws-renew-table th { display: none; }
  .psa-ws-renew-table,
  .psa-ws-renew-table tbody,
  .psa-ws-renew-table tr,
  .psa-ws-renew-table td { display: block; width: 100%; }
  .psa-ws-renew-table tr {
    padding: 8px 0;
    border-bottom: 1px solid var(--mock-border-soft, #eef1f6);
  }
  .psa-ws-renew-table tr:last-child { border-bottom: 0; }
  .psa-ws-renew-table td {
    border: 0;
    padding: 2px 12px;
  }
  .psa-ws-renew-table td::before {
    content: attr(data-label);
    display: block;
    font-family: "Fragment Mono", ui-monospace, monospace;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #526277;
    font-weight: 400;
  }
}
