.biz-toolbar,
.biz-section-head,
.biz-detail-heading,
.biz-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.biz-toolbar {
  margin: 26px 0 14px;
}
.biz-toolbar > select {
  max-width: 320px;
  border: 1px solid var(--line, #dce7e3);
  padding: 11px;
  border-radius: 12px;
  background: var(--surface, #fff);
  color: inherit;
}
.biz-tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.biz-tabs button {
  background: transparent;
  border: 0;
  padding: 12px 15px;
  color: inherit;
  border-radius: 24px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.biz-tabs button[aria-pressed='true'] {
  background: #146b67;
  color: #fff;
}
.biz-demo-note,
.biz-hint {
  font-size: 12px;
  color: var(--muted, #617d7b);
  line-height: 1.7;
}
.biz-demo-note {
  margin-bottom: 20px;
}
.biz-section-head {
  margin: 18px 0;
}
.biz-section-head p {
  font-size: 13px;
  max-width: 680px;
  color: var(--muted, #617d7b);
}
.biz-section-head h3 {
  margin: 0;
}
.biz-kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.biz-column {
  background: var(--surface-3);
  border-radius: 24px;
  padding: 18px;
  min-width: 0;
}
.biz-column > h2 {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin: 4px 0 22px;
}
.biz-column > h2 span {
  font-weight: 400;
  color: var(--muted, #617d7b);
}
.biz-opportunity {
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e6efeb);
  border-radius: 22px;
  padding: 20px;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}
.biz-opportunity:last-child {
  margin-bottom: 0;
}
.biz-opportunity > small {
  font-size: 11px;
  color: var(--muted, #617d7b);
}
.biz-opportunity h3 {
  font-size: 18px;
  line-height: 1.4;
  margin: 15px 0;
}
.biz-opportunity p {
  font-size: 12px;
  line-height: 1.7;
}
.biz-next {
  border-top: 1px solid var(--line, #e1ebe6);
  padding-top: 12px;
  color: var(--muted, #617d7b);
}
.biz-contact {
  font-size: 12px;
  line-height: 1.8;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.biz-contact small,
.biz-table td small {
  display: block;
  color: var(--muted, #617d7b);
  font-size: 11px;
  margin-top: 4px;
}
.biz-badge {
  display: inline-block;
  white-space: nowrap;
  font-size: 11px;
  border-radius: 20px;
  background: #e8efec;
  color: #526d68;
  padding: 5px 10px;
}
.biz-badge.accepted,
.biz-badge.confirmed,
.biz-badge.active,
.biz-badge.done {
  background: #e1f1e7;
  color: #276d49;
}
.biz-badge.draft,
.biz-badge.negotiation {
  background: #fbefd9;
  color: #8b682c;
}
.biz-badge.cancelled {
  background: #f3e6e2;
  color: #9b5241;
}
.biz-badge.inactive {
  background: #ececec;
  color: #6b6b6b;
}
.biz-table-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line, #e0e9e4);
  border-radius: 20px;
  background: var(--surface, #fff);
}
.biz-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.biz-table th {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted, #617d7b);
  text-align: left;
  background: var(--surface-2);
}
.biz-table th,
.biz-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line, #e4ece7);
  vertical-align: middle;
  min-width: 90px;
}
.biz-table tr:last-child td {
  border-bottom: 0;
}
.biz-empty {
  text-align: center;
  color: var(--muted, #617d7b);
  padding: 32px !important;
  font-size: 13px;
}
.biz-subtitle {
  font-size: 20px;
  margin: 32px 0 16px;
}
.biz-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.biz-metrics article {
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e1ebe5);
  border-radius: 20px;
  padding: 22px;
}
.biz-metrics small {
  display: block;
  font-size: 12px;
  color: var(--muted, #617d7b);
}
.biz-metrics strong {
  display: block;
  font-size: 25px;
  font-weight: 600;
  margin-top: 10px;
  letter-spacing: -1px;
}
.biz-dialog {
  width: min(960px, calc(100vw - 32px));
  max-height: 90dvh;
  padding: 0;
  border: 1px solid var(--line, #e1eae5);
  border-radius: 28px;
  background: var(--surface, #fff);
  color: var(--ink);
  box-shadow: 0 25px 100px #173b3c33;
}
.biz-dialog::backdrop {
  background: #173b3c66;
  backdrop-filter: blur(5px);
}
.biz-form {
  display: flex;
  flex-direction: column;
  max-height: 90dvh;
}
.biz-form > header {
  padding: 26px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line, #e1eae5);
  flex-shrink: 0;
}
.biz-form > header h2 {
  font-size: 25px;
  margin: 10px 0 0;
}
.biz-dialog-body {
  padding: 24px 30px;
  overflow: auto;
  min-height: 0;
}
.biz-dialog-body h3 {
  font-size: 17px;
}
.biz-dialog-body p {
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.biz-form > footer {
  border-top: 1px solid var(--line, #e1eae5);
  padding: 20px 30px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-shrink: 0;
}
.biz-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.biz-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  min-width: 0;
}
.biz-field input,
.biz-field select,
.biz-field textarea,
.biz-lot-controls input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line, #dce7e1);
  background: var(--surface-2);
  color: inherit;
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  font-size: 13px;
  min-height: 44px;
}
.biz-field input,
.biz-field select,
.biz-lot-controls input {
  display: block;
  height: 44px;
  line-height: 20px;
}
.biz-field textarea {
  line-height: 20px;
}
.biz-field input:focus,
.biz-field select:focus,
.biz-field textarea:focus {
  outline: 2px solid #146b67;
  outline-offset: 2px;
}
.biz-full {
  grid-column: 1/-1;
}
.biz-price-row {
  display: grid;
  grid-template-columns: minmax(150px, 2fr) 1fr 1fr 1fr 30px;
  gap: 10px;
  /* Top-aligned: the reading shown under a money field must not push the other fields of the line down. */
  align-items: start;
  border-bottom: 1px solid var(--line, #e1eae5);
  padding: 14px 0;
}
.biz-price-row .biz-field {
  font-size: 10px;
}
.biz-price-row > .icon-button {
  margin-top: 24px;
}
/* Table price is read from the catalog, never typed: it looks like a value, not like a field. */
.biz-table-price output {
  display: flex;
  align-items: center;
  min-height: 42px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink, #173b3c);
}
.biz-adjust {
  grid-column: 1/-1;
  margin: 0;
  font-size: 12px;
  color: var(--muted, #617d7b);
}
.biz-adjust:empty {
  display: none;
}
.biz-adjust[data-adjust='desconto'] {
  color: #8b682c;
}
.biz-adjust[data-adjust='acrescimo'] {
  color: #276d49;
}
.biz-price-history {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  font-size: 13px;
}
.biz-price-history li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line, #e1eae5);
}
.biz-price-history small {
  display: block;
  color: var(--muted, #617d7b);
  margin-top: 2px;
}
.biz-price-row + .button {
  margin-top: 15px;
}
.biz-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin: 20px 0;
}
.biz-check input,
.biz-table input[type='checkbox'] {
  accent-color: #146b67;
  width: 18px;
  height: 18px;
}
.biz-total {
  font-size: 16px !important;
  font-weight: 700;
  padding-top: 16px;
}
.biz-actions {
  justify-content: flex-start;
  margin: 22px 0;
}
.biz-callout {
  background: var(--surface-2);
  padding: 20px;
  border-radius: 16px;
  margin: 22px 0;
}
.biz-history {
  border-bottom: 1px solid var(--line, #e1eae5);
  padding-bottom: 12px;
}
.biz-error,
.biz-page-error {
  color: #9b493d;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-line;
}
.biz-error:not(:empty) {
  padding: 12px 30px;
}
.biz-page-error:not(:empty) {
  padding: 20px;
  background: #fff1e9;
  border-radius: 14px;
}
.biz-loading {
  padding: 45px;
  color: var(--muted, #617d7b);
}
.biz-lot-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 16px;
}
.biz-lot-controls label {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.biz-lot-controls input {
  width: 85px;
}
.biz-lot-controls[hidden],
[data-beneficiary][hidden],
[data-biz-result-partner][hidden],
.biz-field[hidden] {
  display: none;
}
.biz-legacy {
  margin-top: 35px;
  border-top: 1px solid var(--line, #dce7e1);
  padding-top: 22px;
}
.biz-legacy > summary {
  font-size: 16px;
  cursor: pointer;
  padding: 10px 0;
}
.biz-legacy .page-heading {
  margin-top: 22px;
}
.biz-legacy .page-heading h1 {
  font-size: 24px;
}
@media (max-width: 1150px) {
  .biz-kanban {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .biz-kanban,
  .biz-form-grid {
    grid-template-columns: 1fr;
  }
  .biz-full {
    grid-column: auto;
  }
  .biz-dialog {
    width: calc(100vw - 16px);
    border-radius: 20px;
  }
  .biz-dialog-body,
  .biz-form > header,
  .biz-form > footer {
    padding: 18px;
  }
  .biz-form > header h2 {
    font-size: 21px;
  }
  .biz-price-row {
    grid-template-columns: 1fr 1fr;
  }
  .biz-price-row .biz-field:first-child {
    grid-column: 1/-1;
  }
  .biz-table th,
  .biz-table td {
    padding: 12px;
  }
  .biz-toolbar > select {
    max-width: 100%;
    width: 100%;
  }
  .biz-metrics strong {
    font-size: 22px;
  }
  .biz-form > footer {
    flex-wrap: wrap;
  }
  .biz-form > footer .button {
    flex: 1;
  }
  .biz-tabs button {
    padding: 10px;
    font-size: 12px;
  }
}

.biz-dialog-body > p {
  margin: 14px 0;
}
.biz-dialog-body > h3 {
  margin: 24px 0 12px;
}
.biz-opportunity .biz-contact {
  padding: 10px 0;
}
.biz-section-head > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Company directory: align controls and columns within the available content width. */
.biz-directory-view {
  container-type: inline-size;
}
.biz-directory-view .biz-toolbar {
  align-items: center;
  gap: 16px;
  margin-top: 0;
}
.biz-directory-view .biz-toolbar > select {
  height: 44px;
  width: 228px;
  max-width: 100%;
  padding: 0 14px;
  font-size: 12px;
  flex: 0 0 auto;
}
.biz-directory-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin: 24px 0 20px;
}
.biz-directory-heading > div:first-child {
  display: block;
  min-width: 0;
}
.biz-directory-heading h2 {
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
}
.biz-directory-heading p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.65;
  max-width: 580px;
}
.biz-directory-heading > div:last-child {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.biz-directory-heading .button {
  min-height: 40px;
  padding: 10px 15px;
  font-size: 11px;
}
.biz-directory {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  overflow: hidden;
}
.biz-directory-filters {
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 170px 104px;
  gap: 14px;
  align-items: end;
}
.biz-directory-filters .biz-field {
  font-size: 11px;
  font-weight: 600;
  gap: 8px;
  line-height: 16px;
  min-width: 0;
}
.biz-directory-filters input,
.biz-directory-filters select,
.biz-directory-filters > .button {
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  box-sizing: border-box;
  margin: 0;
  font-size: 12px;
  line-height: 20px;
}
.biz-directory-filters input,
.biz-directory-filters select {
  display: block;
  padding: 11px 12px;
  font-weight: 400;
}
.biz-directory-filters > .button {
  padding: 10px 14px;
  font-size: 11px;
  width: 104px;
  justify-self: end;
  white-space: nowrap;
}
.biz-search-input {
  display: flex;
  align-items: center;
  position: relative;
  height: 44px;
  min-width: 0;
}
.biz-search-input svg {
  position: absolute;
  left: 14px;
  top: 13px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}
.biz-search-input input {
  padding-left: 42px;
  width: 100%;
  min-width: 0;
}
.biz-directory-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding: 0 20px 16px;
  font-size: 11px;
  line-height: 18px;
  color: var(--muted);
}
.biz-directory-summary > span:first-child {
  color: var(--ink);
  font-weight: 600;
}
.biz-directory-swipe {
  display: none;
}
.biz-directory-scroll {
  overflow: auto;
  max-width: 100%;
  border-top: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.biz-directory-scroll:focus-visible {
  outline-offset: -3px;
}
.biz-directory-table {
  min-width: 960px;
  table-layout: fixed;
  white-space: normal;
}
.biz-directory-table th,
.biz-directory-table td {
  padding: 18px 20px;
  vertical-align: middle;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.55;
}
.biz-directory-table thead th {
  font-size: 10px;
  line-height: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--surface-2);
  padding-top: 14px;
  padding-bottom: 14px;
  font-weight: 600;
  vertical-align: middle;
}
.biz-directory-table thead th:first-child {
  width: 25%;
}
.biz-directory-table thead th:nth-child(2) {
  width: 16%;
}
.biz-directory-table thead th:nth-child(3) {
  width: 14%;
}
.biz-directory-table thead th:nth-child(4) {
  width: 27%;
}
.biz-directory-table thead th:last-child {
  width: 18%;
}
.biz-directory-table thead button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 0;
  min-height: 16px;
  line-height: 16px;
  text-align: left;
  text-transform: inherit;
  letter-spacing: inherit;
  font: inherit;
}
.biz-directory-table tbody th {
  background: transparent;
  text-align: left;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  text-transform: none;
  letter-spacing: normal;
}
.biz-directory-table tbody th strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}
.biz-directory-table tbody th small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
}
.biz-directory-table tbody tr:last-child th {
  border-bottom: 0;
}
.biz-directory-table tbody tr:hover {
  background: var(--surface-2);
}
.biz-directory-table .biz-tax-cell {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 11px;
  color: var(--muted);
}
.biz-directory-type {
  font-size: 11px;
  line-height: 18px;
  white-space: nowrap;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
}
.biz-directory-contact {
  font-size: 12px;
  line-height: 1.6;
}
.biz-directory-contact > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.biz-directory-contact strong {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 600;
}
.biz-directory-contact > div:first-child > span {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.biz-contact-channels {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.biz-no-contact {
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
}
.biz-directory-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: 152px;
}
.biz-directory-actions .button {
  display: flex;
  justify-content: center;
  min-height: 34px;
  height: 34px;
  width: 100%;
  font-size: 11px;
  line-height: 16px;
  padding: 8px 10px;
  white-space: nowrap;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  border-radius: 10px;
}
.biz-directory-actions .button:hover {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.biz-more-contacts {
  margin-top: 10px;
}
.biz-more-contacts summary {
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-ink);
}
.biz-more-contacts .biz-directory-contact {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 10px;
}
.biz-directory-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 18px;
  color: var(--muted);
}
.biz-directory-footer > div,
.biz-directory-footer label,
.biz-directory-footer nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.biz-directory-footer select {
  display: block;
  height: 34px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 9px;
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
}
.biz-directory-footer nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  line-height: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 16px;
  color: var(--ink);
}
.biz-directory-footer nav span {
  min-width: 38px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.biz-directory-empty {
  text-align: center;
  padding: 32px 16px;
}
.biz-directory-empty strong {
  font-size: 16px;
}
.biz-directory-empty p {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0 18px;
}
.biz-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@container (max-width:960px) {
  .biz-directory-view .biz-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .biz-directory-view .biz-toolbar > select {
    justify-self: start;
  }
  .biz-directory-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .biz-directory-filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 104px;
  }
  .biz-directory-search {
    grid-column: 1/-1;
  }
  .biz-directory-summary > span:nth-child(2) {
    display: none;
  }
  .biz-directory-swipe {
    display: block;
  }
}
@container (max-width:540px) {
  .biz-directory-view .biz-toolbar > select {
    width: 100%;
  }
  .biz-directory-heading {
    margin: 20px 0 16px;
  }
  .biz-directory-heading h2 {
    font-size: 17px;
  }
  .biz-directory-heading p {
    max-width: none;
  }
  .biz-directory-filters {
    padding: 16px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px 12px;
  }
  .biz-directory-filters > .button {
    grid-column: 1/-1;
  }
  .biz-directory-summary {
    padding: 0 16px 16px;
  }
  .biz-directory-footer {
    padding: 14px 16px;
  }
  .biz-directory-footer > div {
    width: 100%;
    justify-content: space-between;
  }
}

/* Company record keeps contact management inside its organization. */
.biz-company-detail > section + section {
  margin-top: 28px;
}
.biz-company-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  margin: 0;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--line);
}
.biz-company-facts > div {
  min-width: 0;
}
.biz-company-facts dt {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 5px;
}
.biz-company-facts dd {
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.biz-company-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.biz-company-section-head h3 {
  margin: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 16px;
}
.biz-company-section-head h3 span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.biz-company-detail .biz-table th {
  font-size: 10px;
}
.biz-company-detail .biz-table td {
  font-size: 12px;
  vertical-align: middle;
}
.biz-company-detail .biz-table-wrap {
  border-radius: 14px;
}
.biz-company-detail .biz-hint {
  margin-top: 12px;
}
.biz-contact-company {
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px !important;
  margin: 0 0 22px !important;
}
.biz-contact-company strong {
  display: block;
  font-size: 15px;
  line-height: 1.6;
  margin-top: 5px;
  color: var(--ink);
}
@media (max-width: 650px) {
  .biz-company-facts {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .biz-company-section-head {
    align-items: flex-start;
  }
  .biz-company-section-head .button {
    white-space: normal;
    min-height: 40px;
  }
  .biz-company-detail .biz-table {
    min-width: 560px;
  }
}

/* Private receivables (tab of the billing screen). */
.biz-period {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.biz-period label,
.biz-private-filter label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  color: var(--muted, #617d7b);
}
.biz-period input,
.biz-private-filter select {
  font: inherit;
  font-size: 12px;
  color: var(--ink, #173b3c);
  padding: 8px 12px;
  border: 1px solid var(--line, #e1ebe5);
  border-radius: 12px;
  background: var(--surface, #fff);
}
.biz-private-filter {
  margin: 14px 0 6px;
}
.biz-private-filter select {
  width: auto;
  min-width: 240px;
}
.biz-metrics article.biz-alert strong,
.biz-refund {
  color: var(--danger, #b33b45);
}
.biz-private-loading,
.biz-private-error {
  padding: 24px 0;
  font-size: 13px;
  color: var(--muted, #617d7b);
}
/* Block 10.1: what is overdue stands out; what is to receive and what is paid have their own colours. */
.biz-badge.overdue {
  background: #f6e0da;
  color: #9b3f2b;
}
.biz-badge.open {
  background: #fbefd9;
  color: #8b682c;
}
.biz-badge.paid {
  background: #e1f1e7;
  color: #276d49;
}
.biz-late {
  color: #9b3f2b;
  font-weight: 600;
}
.biz-metrics article.biz-metric-late strong {
  color: #9b3f2b;
}
.biz-inline-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted, #617d7b);
}
.biz-inline-filter select {
  font: inherit;
  font-size: 12px;
  color: var(--ink, #173b3c);
  padding: 8px 12px;
  border: 1px solid var(--line, #e1ebe5);
  border-radius: 12px;
  background: var(--surface, #fff);
  min-width: 170px;
}
/* Block 10.3: the steps after the acceptance and the lost badge. */
.biz-badge.lost {
  background: #f3e6e2;
  color: #9b5241;
}
.biz-steps {
  font-size: 12px;
  color: var(--muted, #617d7b);
}
.biz-step-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  display: grid;
  gap: 6px;
}
.biz-step-list li {
  color: var(--muted, #617d7b);
}
.biz-step-list li.done {
  color: #276d49;
  font-weight: 600;
}
/* Repasses (block 10.5): the statement of the month and the rules, one card per professional. */
.pay-filters,
.pay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin: 12px 0;
}
.pay-filters .biz-field {
  min-width: 200px;
}
.pay-professional {
  margin-top: 16px;
  padding: 16px;
}
.pay-professional > header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}
.pay-professional h3 {
  margin: 0;
}
.pay-professional header p {
  margin: 4px 0 0;
  color: var(--muted);
}
.pay-total {
  display: grid;
  justify-items: end;
  gap: 2px;
}
.pay-total strong {
  font-size: 1.25rem;
}
.pay-exception {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
}
@media (max-width: 700px) {
  .pay-exception {
    grid-template-columns: 1fr;
  }
  .pay-total {
    justify-items: start;
  }
}
.pay-note {
  margin: 10px 0 0;
  color: var(--muted);
}
.pay-performer {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.pay-total .button {
  margin-top: 6px;
}
.pay-late {
  color: var(--warn-ink, #8a5a00);
}
/* Caixa do dia (block 10.6b2): the register, the closing and the count against the expected. */
.cx-register {
  display: grid;
  gap: 2px;
}
.cx-register small {
  color: var(--muted);
}
.cx-closing {
  margin-top: 16px;
  padding: 16px;
}
.cx-closing h3 {
  margin: 0 0 8px;
}
.cx-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
}
.cx-facts dt {
  color: var(--muted);
  font-size: 0.85rem;
}
.cx-facts dd {
  margin: 2px 0 0;
  font-size: 1.15rem;
  font-weight: 600;
}
.cx-off {
  color: var(--warn-ink, #8a5a00);
}
.cx-compare {
  margin: 8px 0 0;
  font-weight: 600;
}
/* Vários caixas (block 10.6b2b): the registers with a day open lead to it; the message of what was just done. */
.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent, #1f6f63);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.cx-done {
  margin: 0 0 12px;
  font-weight: 600;
  color: #276d49;
}
/* Resumo do Financeiro (block 10.6c2): the money of the period by area; each number opens its tab. */
.sm-period {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}
.sm-blocks {
  display: grid;
  gap: 20px;
  margin-top: 12px;
}
.sm-block h3 {
  margin: 0 0 8px;
}
.sm-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.sm-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line, #dfe6e3);
  border-radius: 16px;
  background: var(--surface, #fff);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.sm-card:hover,
.sm-card:focus-visible {
  border-color: var(--accent, #1f6f63);
}
.sm-card small {
  color: var(--muted);
}
.sm-card strong {
  font-size: 1.35rem;
}
.sm-warn strong {
  color: var(--warn-ink, #8a5a00);
}
