.fu-workspace {
  --fu-space: 22px;
}
.fu-context {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 23px 26px;
  border-radius: 20px;
  background: var(--hero);
  color: var(--hero-ink);
  margin-bottom: 22px;
}
.fu-context > span {
  display: grid;
  place-items: center;
  border: 1px solid #ffffff30;
  border-radius: 13px;
  width: 45px;
  height: 45px;
  flex: none;
}
.fu-context > div {
  flex: 1;
}
.fu-context strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.fu-context p {
  color: var(--hero-muted);
  font-size: 11px;
  line-height: 1.85;
  margin-top: 7px;
}
.fu-context > a {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--hero-ink);
  font-size: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.fu-context > a .icon {
  width: 14px;
  height: 14px;
}
.fu-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 25px;
}
.fu-metric {
  display: flex;
  flex-direction: column;
  padding: 23px 24px;
  gap: 11px;
  position: relative;
  overflow: hidden;
}
.fu-metric > span {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.fu-metric .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.fu-metric strong {
  font-weight: 500;
  font-size: 35px;
  letter-spacing: -1px;
  line-height: 1.2;
}
.fu-metric small {
  font-size: 9px;
  color: var(--muted);
}
.fu-metric-highlight {
  background: var(--warn-soft);
}
.fu-metric-highlight .icon,
.fu-metric-highlight strong {
  color: var(--warn);
}
.fu-cases {
  overflow: hidden;
}
.fu-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 0 23px 20px;
}
.fu-kind-tabs {
  display: flex;
  padding: 4px;
  gap: 3px;
  background: var(--surface-3);
  border-radius: 12px;
}
.fu-kind-tabs button {
  padding: 9px 13px;
  color: var(--muted);
  font-size: 10px;
  border-radius: 9px;
}
.fu-kind-tabs button[aria-pressed='true'] {
  background: var(--surface);
  color: var(--accent-ink);
  font-weight: 700;
  box-shadow: var(--shadow);
}
.fu-filters select {
  padding: 10px 12px;
  min-height: 38px;
  font-size: 10px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  max-width: 220px;
}
.fu-search {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  flex: 1;
  min-width: 210px;
}
.fu-search .icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
  flex: none;
}
.fu-search input {
  width: 100%;
  min-width: 0;
  outline-offset: 4px;
  background: transparent;
  border: 0;
  font-size: 10px;
  color: var(--ink);
}
.fu-table {
  min-width: 970px;
}
.fu-table td {
  vertical-align: top;
  padding-top: 22px;
  padding-bottom: 22px;
}
.fu-table td > strong {
  display: block;
  font-size: 11px;
  line-height: 1.7;
  max-width: 195px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.fu-table td > small {
  font-size: 9px;
  line-height: 1.8;
  max-width: 185px;
  margin-top: 7px;
  overflow-wrap: anywhere;
}
.fu-patient {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  min-width: 170px;
  max-width: 240px;
}
.fu-patient .avatar {
  height: 32px;
  width: 32px;
  font-size: 9px;
  flex: none;
}
.fu-patient strong {
  font-size: 11px;
  line-height: 1.6;
  display: block;
}
.fu-patient small {
  font-size: 9px;
  margin-top: 6px;
  line-height: 1.6;
}
.fu-kind {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  margin-bottom: 7px;
}
.fu-kind .icon {
  width: 12px;
  height: 12px;
}
.fu-status {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}
.fu-status-pending,
.fu-status-negotiating {
  background: var(--warn-soft);
  color: var(--warn);
}
.fu-status-contacted,
.fu-status-accepted {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.fu-status-scheduled,
.fu-status-completed {
  background: var(--success-soft);
  color: var(--success);
}
.fu-status-declined,
.fu-status-cancelled {
  background: var(--danger-soft);
  color: var(--danger);
}
.fu-overdue {
  color: var(--danger) !important;
}
.fu-due-label {
  font-size: 8px;
  color: var(--danger);
  display: inline-block;
  margin-top: 8px;
}
.fu-next-action {
  font-size: 10px;
  line-height: 1.9;
  max-width: 200px;
  min-width: 110px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.fu-panel-footer {
  padding: 17px 23px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: var(--muted);
  line-height: 1.8;
}
.fu-empty {
  text-align: center;
  padding: 52px 26px;
  color: var(--muted);
}
.fu-empty > .icon {
  height: 30px;
  width: 30px;
  color: var(--accent);
  margin-bottom: 18px;
}
.fu-empty h3 {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}
.fu-empty p {
  font-size: 11px;
  line-height: 1.9;
  max-width: 440px;
  margin: 10px auto 20px;
}
.fu-loading {
  padding: 70px 25px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.fu-error {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--danger-soft);
  border-radius: 15px;
  margin-bottom: 20px;
}
.fu-error p {
  flex: 1;
  font-size: 11px;
  line-height: 1.8;
  color: var(--danger);
}
.fu-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.fu-detail,
.fu-action {
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 23px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  box-shadow: 0 25px 95px #0c34333b;
}
.fu-detail {
  width: 910px;
}
.fu-action {
  width: 570px;
}
.fu-detail::backdrop,
.fu-action::backdrop {
  background: #16393870;
  backdrop-filter: blur(5px);
}
.fu-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 26px 29px;
  border-bottom: 1px solid var(--line);
}
.fu-dialog-head h2 {
  font-size: 22px;
  letter-spacing: -0.65px;
  line-height: 1.5;
}
.fu-dialog-head .eyebrow {
  font-size: 8px;
  margin-bottom: 9px;
}
.fu-dialog-head .icon-button {
  flex: none;
}
.fu-detail-body {
  padding: 26px 29px;
}
.fu-request {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  justify-content: space-between;
}
.fu-request h3 {
  font-size: 21px;
  letter-spacing: -0.55px;
  line-height: 1.45;
}
.fu-request p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 10px;
}
.fu-date-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 19px 21px;
  margin: 23px 0;
}
.fu-date-grid span {
  display: block;
  font-size: 9px;
  color: var(--muted);
}
.fu-date-grid strong {
  display: block;
  font-size: 11px;
  margin-top: 8px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.fu-instructions {
  border-left: 3px solid var(--accent);
  padding: 1px 16px;
  margin: 22px 0;
}
.fu-instructions h3 {
  font-size: 11px;
  line-height: 1.7;
}
.fu-instructions p {
  font-size: 11px;
  line-height: 1.85;
  white-space: pre-wrap;
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.fu-patient-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 25px;
  font-size: 10px;
  color: var(--muted);
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
}
.fu-patient-contact span {
  display: flex;
  gap: 7px;
  align-items: center;
}
.fu-patient-contact .icon {
  width: 14px;
  height: 14px;
}
.fu-detail-actions {
  display: flex;
  gap: 10px;
  margin: 22px 0;
}
.fu-detail form > h3,
.fu-history h3 {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 17px;
}
.fu-detail form {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.fu-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 17px;
}
.fu-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.fu-field > span {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.7;
}
.fu-field input,
.fu-field select,
.fu-field textarea {
  padding: 11px 12px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 100%;
  min-width: 0;
  font-size: 11px;
  line-height: 1.7;
}
.fu-field textarea {
  resize: vertical;
  min-height: 90px;
}
.fu-field input:focus,
.fu-field select:focus,
.fu-field textarea:focus {
  border-color: var(--accent);
}
.fu-span {
  grid-column: 1/-1;
}
.fu-save-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 17px;
  margin-top: 20px;
}
.fu-save-row small {
  font-size: 9px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 350px;
}
.fu-history {
  margin-top: 28px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
}
.fu-events {
  display: grid;
  gap: 18px;
}
.fu-events article {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.fu-events article > span {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  flex: none;
}
.fu-events .icon {
  width: 13px;
  height: 13px;
}
.fu-events strong {
  font-size: 11px;
  line-height: 1.7;
}
.fu-events p {
  font-size: 11px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 7px;
}
.fu-events small {
  font-size: 9px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 5px;
}
.fu-muted {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}
.fu-linked {
  margin: 22px 0 0;
  background: var(--accent-soft);
  border-radius: 13px;
  padding: 17px 20px;
  font-size: 11px;
}
.fu-linked strong {
  display: flex;
  gap: 8px;
  align-items: center;
}
.fu-linked .icon {
  width: 15px;
  height: 15px;
}
.fu-linked p {
  font-size: 10px;
  margin-top: 9px;
  line-height: 1.8;
}
.fu-action .fu-dialog-head {
  padding: 23px 25px;
}
.fu-action .fu-dialog-head h2 {
  font-size: 18px;
}
.fu-action-body {
  padding: 23px 25px;
}
.fu-action-body > p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 23px;
}
.fu-dialog-footer {
  border-top: 1px solid var(--line);
  padding: 19px 25px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.fu-form-error {
  background: var(--danger-soft);
  color: var(--danger);
  padding: 13px 16px;
  line-height: 1.8;
  font-size: 11px;
  border-radius: 10px;
  margin-top: 17px;
}
.fu-scheduling {
  display: grid;
  grid-template-columns: 1fr;
  gap: 17px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  padding: 17px;
  border-radius: 13px;
}
.fu-scheduling .fu-muted {
  margin-top: 9px;
}
.fu-workspace [hidden],
.fu-detail [hidden],
.fu-action [hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  .fu-context {
    flex-wrap: wrap;
  }
  .fu-context > a {
    margin-left: 62px;
  }
  .fu-metrics {
    gap: 12px;
  }
  .fu-metric {
    padding: 20px 17px;
  }
  .fu-metric > span {
    font-size: 9px;
    line-height: 1.6;
  }
}
@media (max-width: 700px) {
  .fu-workspace .page-heading {
    gap: 15px;
    align-items: flex-start;
    flex-direction: column;
  }
  .fu-workspace h1 {
    font-size: 25px;
    line-height: 1.3;
  }
  .fu-workspace .page-heading > .button {
    padding: 9px 15px;
    font-size: 10px;
  }
  .fu-context {
    padding: 20px;
    gap: 13px;
  }
  .fu-context > span {
    width: 37px;
    height: 37px;
  }
  .fu-context > div {
    min-width: 180px;
  }
  .fu-context strong {
    font-size: 13px;
    line-height: 1.5;
  }
  .fu-context p {
    font-size: 10px;
  }
  .fu-context > a {
    margin-left: 50px;
    font-size: 9px;
  }
  .fu-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
  }
  .fu-metric {
    padding: 18px;
  }
  .fu-metric strong {
    font-size: 30px;
  }
  .fu-metric > span {
    align-items: flex-start;
    gap: 6px;
  }
  .fu-metric > span .icon {
    flex: none;
    margin-top: 2px;
  }
  .fu-metric small {
    font-size: 8px;
  }
  .fu-cases .card-head {
    padding: 20px 18px;
    align-items: flex-start;
    gap: 12px;
  }
  .fu-cases .card-head h2 {
    font-size: 15px;
  }
  .fu-cases .card-head p {
    font-size: 9px;
  }
  .fu-filters {
    padding: 0 18px 18px;
    gap: 9px;
  }
  .fu-kind-tabs {
    width: 100%;
  }
  .fu-kind-tabs button {
    flex: 1;
  }
  .fu-search {
    width: 100%;
    flex: none;
    min-width: 0;
  }
  .fu-filters > label:not(.fu-search) {
    flex: 1;
    min-width: 130px;
  }
  .fu-filters select {
    width: 100%;
    max-width: none;
    font-size: 9px;
  }
  .fu-panel-footer {
    padding: 16px 18px;
    font-size: 8px;
  }
  .fu-empty {
    padding: 36px 20px;
  }
  .fu-empty h3 {
    font-size: 13px;
  }
  .fu-empty p {
    font-size: 10px;
  }
  .fu-empty .button {
    font-size: 9px;
    white-space: normal;
  }
  .fu-error {
    padding: 18px;
    gap: 13px;
    flex-wrap: wrap;
  }
  .fu-detail,
  .fu-action {
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 17px;
  }
  .fu-dialog-head {
    padding: 20px 18px;
    gap: 12px;
  }
  .fu-dialog-head h2 {
    font-size: 18px;
  }
  .fu-dialog-head .eyebrow {
    font-size: 7px;
  }
  .fu-detail-body {
    padding: 20px 18px;
  }
  .fu-request {
    flex-wrap: wrap;
    gap: 13px;
  }
  .fu-request h3 {
    font-size: 19px;
  }
  .fu-request p {
    font-size: 9px;
  }
  .fu-date-grid {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 13px;
    margin: 20px 0;
  }
  .fu-date-grid > div {
    display: grid;
    grid-template-columns: 105px 1fr;
    gap: 8px;
    align-items: baseline;
  }
  .fu-date-grid strong {
    font-size: 10px;
    margin: 0;
  }
  .fu-date-grid span {
    font-size: 9px;
  }
  .fu-detail-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }
  .fu-detail-actions .button {
    font-size: 10px;
  }
  .fu-detail form {
    padding: 17px;
  }
  .fu-form-grid {
    grid-template-columns: 1fr;
  }
  .fu-field input,
  .fu-field select,
  .fu-field textarea {
    font-size: 12px;
  }
  .fu-save-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }
  .fu-save-row .button {
    font-size: 10px;
  }
  .fu-detail form > h3,
  .fu-history h3 {
    font-size: 12px;
  }
  .fu-events p {
    font-size: 10px;
  }
  .fu-action .fu-dialog-head {
    padding: 20px 18px;
  }
  .fu-action .fu-dialog-head h2 {
    font-size: 17px;
  }
  .fu-action-body {
    padding: 20px 18px;
  }
  .fu-dialog-footer {
    padding: 17px 18px;
  }
  .fu-dialog-footer .button {
    font-size: 10px;
    padding: 11px 15px;
  }
}
@media (max-width: 700px) {
  .fu-table {
    min-width: 0;
    width: 100%;
    display: block;
  }
  .fu-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .fu-table tbody {
    display: block;
  }
  .fu-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    position: relative;
    padding: 22px 18px;
    border-top: 1px solid var(--line);
  }
  .fu-table td {
    display: block;
    padding: 0 !important;
    border: 0 !important;
    min-width: 0;
  }
  .fu-table td:nth-child(1) {
    grid-column: 1/-1;
    padding-right: 26px !important;
  }
  .fu-table td:nth-child(2),
  .fu-table td:nth-child(5) {
    grid-column: 1/-1;
  }
  .fu-table td:nth-child(6) {
    position: absolute;
    right: 12px;
    top: 17px;
  }
  .fu-table td:nth-child(3):before,
  .fu-table td:nth-child(4):before,
  .fu-table td:nth-child(5):before {
    display: block;
    font-size: 8px;
    color: var(--muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.6;
  }
  .fu-table td:nth-child(3):before {
    content: 'Contato e prazo';
  }
  .fu-table td:nth-child(4):before {
    content: 'Etapa e responsável';
  }
  .fu-table td:nth-child(5):before {
    content: 'Próxima ação';
  }
  .fu-patient {
    max-width: 100%;
    min-width: 0;
  }
  .fu-patient strong {
    overflow-wrap: anywhere;
  }
  .fu-table td > strong,
  .fu-next-action {
    max-width: none;
  }
  .fu-next-action {
    min-width: 0;
  }
  .fu-table td:nth-child(3) > strong {
    font-size: 10px;
  }
  .fu-table td > small {
    font-size: 8px;
  }
  .fu-table .fu-status {
    font-size: 8px;
    white-space: normal;
  }
}
.fu-heading-actions {
  flex-wrap: wrap;
}
.fu-demo-button {
  font-size: 10px;
}
.fu-demo-note {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: -5px 0 19px;
}
.fu-demo-note > p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}
@media (max-width: 700px) {
  .fu-heading-actions {
    gap: 8px;
  }
  .fu-demo-button {
    font-size: 9px;
    min-height: 37px;
    padding: 10px 13px;
  }
  .fu-demo-note {
    gap: 7px;
    margin: 0 0 17px;
  }
  .fu-demo-note > p {
    font-size: 9px;
  }
}
/* Exam requests: what the request is in the catalog and how the negotiated value stands against the table price. */
.fu-service {
  margin-top: 8px;
  font-size: 13px;
}
.fu-service[data-fu-service='external'] {
  color: #8b682c;
}
.fu-adjust {
  margin: 0;
  font-size: 12px;
  color: var(--muted, #617d7b);
}
/* The shared rule that hides secondary heading buttons on medium screens removed "Atualizar"; keep it, with its text. */
.fu-workspace .heading-actions .secondary {
  display: inline-flex;
}
@media (max-width: 760px) {
  .fu-workspace .heading-actions {
    flex-wrap: wrap;
  }
  .fu-workspace .heading-actions .button {
    font-size: 10px;
    width: auto;
    height: auto;
    min-height: 36px;
    padding: 9px 14px;
  }
}

/* What waits for someone to take it: every follow-up is born with no one in charge. */
.fu-unowned {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--warn-soft);
  font-size: 11px;
  line-height: 1.7;
}
.fu-unowned > span .icon {
  width: 18px;
  height: 18px;
}
.fu-unowned > div {
  flex: 1 1 260px;
  min-width: 0;
}
.fu-unowned p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}
.fu-noowner {
  color: var(--warn);
  font-weight: 700;
}
.fu-take {
  margin-top: 6px;
}
.fu-hint {
  margin: 0;
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
}
.fu-field small {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.6;
}
/* The next days with a shift, offered when the day asked for has none or is full. */
.fu-next-days {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.fu-next-days > span {
  font-size: 11px;
  color: var(--muted);
  margin-right: 2px;
}
/* The tab of the results of exams: how many are open, and the situation of each one. */
.fu-kind-tabs button b {
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--surface);
  font-size: 9px;
  font-weight: 700;
}
.fu-result-awaiting {
  background: var(--warn-soft);
  color: var(--warn);
}
.fu-result-late {
  background: var(--danger-soft);
  color: var(--danger);
}
.fu-result-arrived {
  background: var(--surface-3);
  color: var(--accent-ink);
}
.fu-result-delivered {
  background: var(--success-soft);
  color: var(--success);
}
.fu-results td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
