.fu-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}
.fu-heading h1 {
  font-size: 30px;
  margin: 5px 0 10px;
}
.fu-heading h2,
.fu-heading h3 {
  margin: 0;
}
.fu-heading p {
  color: #486071;
  max-width: 720px;
}
.fu-actions,
.fu-case-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.fu-panel {
  background: white;
  border: 1px solid #d7e0e6;
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
}
.fu-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.fu-stats section {
  padding: 20px;
  background: white;
  border: 1px solid #d7e0e6;
  border-radius: 12px;
}
.fu-stats span,
.fu-stats strong {
  display: block;
}
.fu-stats span {
  font-size: 14px;
  color: #486071;
}
.fu-stats strong {
  font-size: 26px;
  margin-top: 10px;
  color: #122838;
}
.fu-banner {
  padding: 16px 20px;
  border: 1px solid #ccdceb;
  background: #edf4fa;
  color: #163c61;
  border-radius: 9px;
  margin: 16px 0;
}
.fu-banner span {
  display: block;
  margin-top: 5px;
}
.fu-toolbar {
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.fu-toolbar label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  min-width: 180px;
}
.fu-toolbar label:first-child {
  flex: 1;
}
.fu-toolbar input,
.fu-toolbar select {
  width: 100%;
  padding: 10px;
  font: inherit;
  border: 1px solid #c0ced8;
  border-radius: 7px;
  background: white;
}
.fu-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.fu-table th,
.fu-table td {
  padding: 15px 12px;
  text-align: left;
  border-bottom: 1px solid #e0e7ec;
  vertical-align: top;
}
.fu-table small,
.fu-documents small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #536878;
}
.fu-table a {
  font-weight: 600;
  color: #163c61;
}
.fu-status {
  display: inline-block;
  font-size: 13px;
  padding: 5px 9px;
  border-radius: 5px;
  background: #edf1f5;
  color: #29455c;
}
.fu-ready,
.fu-attention {
  background: #fff0db;
  color: #854700;
}
.fu-paid {
  background: #e7f5ec;
  color: #235d39;
}
.fu-paused {
  background: #f3eaf3;
  color: #71416c;
}
.fu-empty {
  padding: 38px 14px;
  text-align: center;
  color: #486071;
}
.fu-footnote {
  font-size: 14px;
  color: #486071;
  line-height: 1.7;
}
.fu-notice {
  padding: 12px;
  background: #eaf4ec;
  color: #245a36;
  border-radius: 7px;
}
.fu-error {
  color: #9a2c22;
  white-space: pre-wrap;
}
.fu-dialog {
  width: min(800px, calc(100vw - 32px));
  max-height: 90vh;
  border: 0;
  border-radius: 14px;
  padding: 0;
  color: #122838;
}
.fu-dialog::backdrop {
  background: #12283880;
}
.fu-dialog .dialog-head h2 {
  font-size: 21px;
  margin: 0;
}
.fu-dialog-body {
  padding: 24px;
  overflow-y: auto;
  max-height: 65vh;
}
.fu-dialog-body label {
  display: grid;
  gap: 7px;
  margin: 16px 0;
  font-size: 14px;
  font-weight: 500;
}
.fu-dialog-body input,
.fu-dialog-body textarea,
.fu-dialog-body select {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  padding: 11px;
  border: 1px solid #bdcbd5;
  border-radius: 7px;
  background: white;
}
.fu-dialog-body textarea {
  line-height: 1.6;
  resize: vertical;
}
.fu-dialog-body .fu-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}
.fu-check input {
  width: 18px;
  flex-shrink: 0;
  margin-top: 4px;
}
.fu-case-summary {
  display: flex;
  gap: 25px;
  align-items: center;
  padding: 18px 0;
}
.fu-case-summary strong {
  font-size: 28px;
}
.fu-facts {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px;
  margin-bottom: 25px;
}
.fu-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.fu-facts dd small {
  display: block;
  color: #536878;
  margin-top: 7px;
}
.fu-case-actions {
  padding: 18px 0;
  border-top: 1px solid #d7e0e6;
}
.fu-mail-meta {
  padding: 14px;
  background: #f3f6f8;
  border-radius: 7px;
  line-height: 1.7;
}
.fu-mail-body,
.fu-dialog pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  line-height: 1.7;
}
.fu-archive {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
}
.fu-archive nav {
  border-right: 1px solid #d7e0e6;
  padding-right: 16px;
}
.fu-archive nav h3 {
  font-size: 14px;
  margin: 22px 0 9px;
}
.fu-folder {
  display: block;
  background: none;
  border: 0;
  border-radius: 6px;
  text-align: left;
  width: 100%;
  padding: 10px;
  font: inherit;
  font-size: 14px;
  color: #29455c;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.fu-folder.active {
  background: #e7eff6;
  font-weight: 600;
}
.fu-documents ul {
  list-style: none;
  padding: 0;
}
.fu-documents li {
  padding: 16px 0;
  border-bottom: 1px solid #e1e7eb;
}
.fu-documents a {
  color: #163c61;
}
.fu-documents .text-button {
  text-align: left;
}
.fu-upload {
  position: relative;
  cursor: pointer;
}
.fu-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}
.fu-customer-results {
  display: grid;
  gap: 4px;
}
.fu-customer-results a {
  padding: 12px;
  text-decoration: none;
  color: #163c61;
  border-bottom: 1px solid #e0e7ec;
}
.fu-customer-results a:hover {
  background: #edf3f8;
}
.fu-customer-results small {
  display: block;
  color: #536878;
  font-size: 12px;
}
#followup-workspace {
  padding: 32px;
  min-width: 0;
}
#quick-customer {
  white-space: nowrap;
  border: 1px solid #c8d6e0;
  border-radius: 7px;
  padding: 8px 12px;
  color: #163c61;
}
details.fu-panel summary {
  cursor: pointer;
  font-weight: 600;
}
@media (max-width: 1100px) {
  .fu-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fu-heading {
    flex-direction: column;
  }
  .session-actions #session-email {
    display: none;
  }
}
@media (max-width: 700px) {
  #followup-workspace {
    padding: 18px;
  }
  .fu-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .fu-stats section {
    padding: 14px;
  }
  .fu-stats strong {
    font-size: 20px;
  }
  .fu-panel {
    padding: 16px;
  }
  .fu-archive {
    grid-template-columns: 1fr;
  }
  .fu-archive nav {
    border-right: 0;
    border-bottom: 1px solid #d7e0e6;
    padding-bottom: 16px;
  }
  .fu-facts {
    grid-template-columns: 1fr;
  }
  .fu-facts dt {
    font-weight: 600;
  }
  .fu-dialog-body {
    padding: 18px;
  }
  .fu-dialog .dialog-foot {
    flex-wrap: wrap;
  }
  .fu-table {
    min-width: 900px;
  }
  .fu-toolbar label {
    width: 100%;
  }
}
.fu-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.fu-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.fu-pagination > span:first-child {
  margin-right: auto;
  color: #536878;
}
.fu-bulk-toolbar {
  margin: 16px 0;
  flex-wrap: wrap;
}
.fu-bulk-toolbar span {
  color: #536878;
  font-size: 13px;
}
.fu-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #223f65;
}
.fu-batch-summary {
  padding: 14px;
  background: #f3f7fa;
  border-radius: 8px;
  overflow-x: auto;
}
.fu-batch-summary table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
.fu-batch-summary th,
.fu-batch-summary td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #d7e0e6;
  font-size: 13px;
}
.fu-batch-summary th:last-child,
.fu-batch-summary td:last-child {
  text-align: right;
}
.fu-bulk-customer {
  border: 1px solid #d7e0e6;
  border-radius: 8px;
  padding: 16px;
}
.fu-bulk-customer summary {
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 14px;
}
#customer-folder-settings .button {
  margin-top: 20px;
}
.settings-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.settings-layout nav {
  background: #fff;
  border: 1px solid #d7e0e6;
  border-radius: 12px;
  padding: 16px;
}
.settings-layout nav h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #536878;
  margin: 18px 8px 8px;
}
.settings-layout nav a {
  display: block;
  padding: 10px 8px;
  color: #163c61;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
}
.settings-layout nav a[aria-current] {
  background: #edf4fa;
  font-weight: 600;
}
.settings-area-panels > .fu-panel,
.settings-area-panels > section > .fu-panel {
  margin-top: 0;
}
@media (max-width: 1000px) {
  .fu-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-layout nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
  }
}

.fu-signature-picture {
  border: 1px solid #d7e0e6;
  border-radius: 8px;
  padding: 14px;
}

.fu-signature-picture p {
  margin: 8px 0 0;
  color: #536878;
  font-size: .875rem;
}

.fu-signature-image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(320px, 100%);
  max-height: 200px;
  object-fit: contain;
  margin: 10px 0;
}

.fu-outstanding-total {
  display: flex;
  gap: 6px 12px;
  align-items: baseline;
  flex-wrap: wrap;
  margin: 12px 0;
  color: #3d5a70;
  font-size: .875rem;
}

.fu-outstanding-total > span {
  margin-left: 10px;
}
