@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');
.catalog-search-field, .product-picker { min-width: 0; }
.catalog-search-menu, .catalog-search-field--compact .catalog-search-menu,
.product-picker__menu {
  left: 0; right: 0; width: 100%; min-width: 0; max-width: 100%;
  max-height: min(320px, 40dvh); overflow-y: auto; overscroll-behavior: contain;
  touch-action: pan-y; box-sizing: border-box;
}
.catalog-search-menu > button, .product-picker__menu > button {
  min-height: 44px; white-space: normal; overflow-wrap: anywhere; text-align: left;
}
.catalog-search-menu > button span, .product-picker__menu > button span {
  min-width: 0; white-space: normal; overflow-wrap: anywhere;
}
.invoice-detail-footer--workflow { gap: 12px; flex-wrap: wrap; }
.invoice-detail-footer--workflow > div { display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }
.invoice-detail-footer--workflow > div > .button {
  min-height: 46px; max-width: 100%; white-space: normal; line-height: 1.4;
  font-size: 14px; padding: 12px 16px; justify-content: center;
}
.invoice-detail-footer--workflow > div > .button svg { flex-shrink: 0; }
@media (max-width: 900px) {
  .invoice-detail-footer--workflow > div { width: 100%; display: grid; grid-template-columns: 1fr 1.4fr; }
  .invoice-detail-footer--workflow > div > .button { width: 100%; }
}
@media (max-width: 600px) {
  .invoice-detail-footer--workflow > div { grid-template-columns: 1fr; }
  .catalog-search-control input, .product-picker__input input { font-size: 16px; }
  .invoice-detail-footer--workflow { position: static; }
}

/* Larger, clearer controls without changing page order or workflow. */
body { font-size: 16px; line-height: 1.5; }
.app-shell.modern-shell .company-sidebar nav .sidebar-link { min-height: 48px; font-size: 15px; line-height: 1.4; }
.app-shell.modern-shell .company-sidebar nav .sidebar-link--active { font-weight: 800; box-shadow: inset 4px 0 0 currentColor; }
.button, .icon-button, .invoice-row-view-button { min-height: 44px; }
.button { font-size: 15px; }
.icon-button { min-width: 44px; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; cursor: pointer; }
:where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #2456a6; outline-offset: 3px;
}
.invoice-table th { font-size: 14px; color: #37332e; }
.invoice-table td { font-size: 15px; }
.invoice-table tbody tr:hover { background: #eee7d9; }
.invoice-row-view-button { width: auto; min-width: 76px; gap: 6px; padding: 8px 10px; border: 1px solid #9b9080; border-radius: 8px; }
.invoice-row-view-button::after { content: "Abrir"; font-size: 14px; font-weight: 700; }
.pagination { font-size: 15px; gap: 12px; flex-wrap: wrap; }
.pagination .pagination-named-button { width: auto; min-width: 110px; padding: 8px 12px; }
.pagination-named-button > span { display: flex; align-items: center; gap: 6px; }
button:disabled { cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (max-width: 600px) {
  .pagination { justify-content: center; }
  .pagination > span { width: 100%; text-align: center; }
}

.app-shell.modern-shell .company-sidebar nav .sidebar-link { color: #403b35; }
.app-shell.modern-shell .company-sidebar nav .sidebar-link--active { color: #171512; background: #e7ddca; }

/* Keep the visible label inside the action, including inherited grid layouts. */
.invoice-table .invoice-loaded-cell { display: flex; align-items: center; gap: 12px; }
.invoice-table .invoice-loaded-cell .invoice-row-view-button {
  display: inline-flex; flex-direction: row; align-items: center; justify-content: center;
  flex: 0 0 auto; width: auto; min-width: 88px; height: auto; min-height: 44px;
  gap: 8px; padding: 10px 12px; line-height: 1.2; white-space: nowrap;
  color: #40372b; background: #fff; border: 1px solid #a99b86; border-radius: 8px;
  box-sizing: border-box; vertical-align: middle;
}
.invoice-table .invoice-row-view-button svg { flex: 0 0 18px; width: 18px; height: 18px; }
.invoice-table .invoice-row-view-button::after { position: static; display: inline; margin: 0; line-height: 1.2; }
.invoice-table .invoice-row-view-button:hover { background: #f1e9db; border-color: #75634a; }
.invoice-table .loaded-column { min-width: 150px; }

.modal .worldoffice-export-help { font-size: 15px; line-height: 1.6; color: #40372b; background: #f6f0e5; border-left: 4px solid #9b8056; border-radius: 6px; padding: 12px 16px; margin: 14px 0; }

/* Reference table geometry: preserve FXA's palette, icons and company header. */
.company-sidebar__brand { position: relative; }
.sidebar-structure-toggle {
  position: absolute; top: 12px; right: 8px; display: inline-flex;
  align-items: center; justify-content: center; width: 32px; height: 36px;
  border: 1px solid var(--line, #e7e0d6); border-radius: 7px;
  background: transparent; color: var(--text, #403b35); font-size: 25px; cursor: pointer;
}
.sidebar-document-group { border-block: 1px solid var(--line, #e7e0d6); padding-block: 12px; margin-block: 10px; }
.sidebar-document-group > summary {
  display: flex; align-items: center; gap: 12px; min-height: 44px;
  padding: 8px 12px; cursor: pointer; list-style: none; font-size: 14px; color: var(--text, #403b35);
}
.sidebar-document-group > summary::-webkit-details-marker { display: none; }
.sidebar-group-chevron { margin-left: auto; transition: transform .18s ease; }
.sidebar-document-group[open] .sidebar-group-chevron { transform: rotate(180deg); }
.app-shell.modern-shell .company-sidebar .sidebar-document-group .sidebar-link {
  min-height: 42px; margin-left: 12px; width: calc(100% - 12px); font-size: 14px;
}
.app-shell.modern-shell .company-sidebar .sidebar-link { transition: background .16s ease, box-shadow .16s ease; }
@media (min-width: 901px) {
  .app-shell.modern-shell:has(.sidebar--compact) { grid-template-columns: 76px minmax(0,1fr); }
  .app-shell.modern-shell .sidebar.company-sidebar.sidebar--compact { width: 76px !important; min-width: 76px; flex: 0 0 76px !important; padding-inline: 8px; }
  .sidebar--compact .company-sidebar__brand { padding: 46px 0 12px; }
  .sidebar--compact .sidebar-structure-toggle { top: 0; right: 12px; }
  .sidebar--compact .workspace-brand { font-size: 19px; padding: 0; }
  .sidebar--compact .workspace-brand small,
  .sidebar--compact .company-sidebar__business,
  .sidebar--compact .company-sidebar__nav-label,
  .sidebar--compact .sidebar-link > span,
  .sidebar--compact .company-sidebar__session button > span,
  .sidebar--compact .sidebar-document-group > summary > span { display: none !important; }
  .app-shell.modern-shell .sidebar--compact .sidebar-link,
  .app-shell.modern-shell .sidebar--compact .sidebar-document-group .sidebar-link,
  .sidebar--compact .company-sidebar__session button { width: 100%; margin-left: 0; padding-inline: 0; justify-content: center; }
  .sidebar--compact .sidebar-document-group > summary { justify-content: center; padding-inline: 0; }
}
@media (max-width: 900px) { .sidebar-structure-toggle { display: none; } }
.modal-backdrop { animation: fxa-overlay-enter .16s ease-out; }
.modal { animation: fxa-dialog-enter .2s ease-out; max-height: calc(100dvh - 32px); }
.modal__header { flex: 0 0 auto; }
.modal__body { overscroll-behavior: contain; }
@keyframes fxa-overlay-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes fxa-dialog-enter { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
.cifrato-invoices-page .cifrato-progress-card { padding: 14px 18px; }
.cifrato-invoices-page .cifrato-progress-card > header { margin-bottom: 10px; }
.cifrato-invoices-page .cifrato-progress-summary { padding: 10px 12px; }
.cifrato-invoices-page .invoice-state-shortcuts { margin-top: 10px; }
.cifrato-invoices-page .invoice-state-shortcuts button { min-height: 42px; }
.progress-disclosure > summary { display: flex; align-items: center; gap: 16px; justify-content: space-between; min-height: 44px; cursor: pointer; list-style: none; }
.progress-disclosure > summary::-webkit-details-marker { display: none; }
.progress-disclosure > summary h2 { margin: 0; font-size: 16px; }
.progress-disclosure > summary::after { content: '⌄'; font-size: 20px; transition: transform .18s ease; }
.progress-disclosure[open] > summary::after { transform: rotate(180deg); }
.progress-disclosure[open] > summary { margin-bottom: 12px; }
.cifrato-invoices-page { gap: 16px; }
.cifrato-invoices-page .cifrato-action-bar {
  position: sticky; top: 80px; z-index: 25; min-height: 76px;
  padding: 16px; gap: 16px;
}
.cifrato-invoices-page .cifrato-sync-trigger {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
}
.cifrato-invoices-page .cifrato-filter-panel {
  margin-bottom: -16px; border-bottom: 0; border-radius: 10px 10px 0 0;
  box-shadow: none;
}
.cifrato-invoices-page .cifrato-filter-panel + .invoice-list-card {
  border-top: 0; border-radius: 0 0 10px 10px; box-shadow: none;
}
.cifrato-invoices-page .invoice-list-card .table-scroll {
  margin-inline: 16px; border: 1px solid var(--invoice-corporate-line, #e7e0d6);
  border-radius: 12px 12px 0 0;
}
.cifrato-invoices-page .cifrato-filter-field--date { order: 5; }
.cifrato-invoices-page .cifrato-filter-field--reviewed { order: 4; }
.cifrato-invoices-page .cifrato-filter-panel__fields > :nth-child(1) { order: 1; }
.cifrato-invoices-page .cifrato-filter-panel__fields > :nth-child(2) { order: 2; }
.cifrato-invoices-page .cifrato-filter-field--type { order: 3; }
.cifrato-invoices-page .cifrato-excel-button { order: 6; }
.cifrato-invoices-page .cifrato-table-footer {
  position: sticky; bottom: 0; z-index: 15; min-height: 64px;
  padding: 12px 18px; background: inherit;
}
@media (max-width: 900px) {
  .cifrato-invoices-page .cifrato-action-bar { position: static; flex-wrap: wrap; }
  .cifrato-invoices-page .cifrato-table-footer { position: static; }
}
.cifrato-invoices-page .invoice-table--preparation {
  width: 100%; min-width: 1040px; table-layout: fixed; border-collapse: collapse;
}
.cifrato-invoices-page .invoice-table--preparation th,
.cifrato-invoices-page .invoice-table--preparation td {
  border-inline-end: 1px solid var(--invoice-corporate-line, #e7e0d6);
  padding: 12px; vertical-align: middle;
}
.cifrato-invoices-page .invoice-table--preparation tr > :last-child { border-inline-end: 0; }
.cifrato-invoices-page .invoice-table--preparation th:nth-child(1) { width: 44px; min-width: 44px; }
.cifrato-invoices-page .invoice-table--preparation th:nth-child(2) { width: 13%; min-width: 120px; }
.cifrato-invoices-page .invoice-table--preparation th:nth-child(3) { width: 12%; min-width: 120px; }
.cifrato-invoices-page .invoice-table--preparation th:nth-child(4) { width: 23%; min-width: 220px; }
.cifrato-invoices-page .invoice-table--preparation th:nth-child(5) { width: 14%; min-width: 140px; }
.cifrato-invoices-page .invoice-table--preparation th:nth-child(6) { width: 13%; min-width: 130px; }
.cifrato-invoices-page .invoice-table--preparation th:nth-child(7) { width: 12%; min-width: 125px; }
.cifrato-invoices-page .invoice-table--preparation th:nth-child(8) { width: 150px; min-width: 150px; }
.cifrato-invoices-page .cifrato-provider-cell strong {
  display: block; max-width: none; overflow: visible; -webkit-line-clamp: unset;
  overflow-wrap: anywhere; line-height: 1.45; font-size: 14px; font-weight: 600;
}
.cifrato-invoices-page .invoice-number-link { overflow-wrap: anywhere; }
.cifrato-invoices-page .invoice-table--preparation .amount-cell { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cifrato-invoices-page .cifrato-filter-panel__fields {
  grid-template-columns: minmax(170px,1.4fr) repeat(2,minmax(135px,1fr)) minmax(210px,1.3fr) minmax(155px,1fr) 44px;
  gap: 12px;
}
.cifrato-invoices-page .cifrato-filter-panel__fields > * { min-width: 0; }
.cifrato-invoices-page .cifrato-search-control { width: 100%; min-height: 44px; }
.cifrato-invoices-page .invoice-loaded-cell { justify-content: center; flex-wrap: wrap; }
@media (max-width: 1250px) {
  .cifrato-invoices-page .cifrato-filter-panel__fields { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .cifrato-invoices-page .cifrato-filter-panel__fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cifrato-invoices-page .cifrato-filter-field--date { grid-column: 1 / -1; }
}
@media (max-width: 440px) {
  .cifrato-invoices-page .cifrato-filter-panel__fields { grid-template-columns: minmax(0,1fr); }
}

/* Match the reference's row density without shrinking touch targets or branding. */
.cifrato-invoices-page .invoice-table--preparation tbody tr { height: auto; }
.cifrato-invoices-page .invoice-table--preparation tbody td {
  height: 64px; padding: 8px 12px; font-size: 14px; line-height: 1.35;
}
.cifrato-invoices-page .invoice-table--preparation thead th {
  height: 44px; padding: 8px 12px; font-size: 14px; font-weight: 500;
}
.cifrato-invoices-page .invoice-table--preparation .cell-primary,
.cifrato-invoices-page .invoice-table--preparation .invoice-number-link,
.cifrato-invoices-page .invoice-table--preparation .amount-cell { font-weight: 500; }
.cifrato-invoices-page .invoice-table--preparation .cifrato-provider-cell strong { font-weight: 500; }
.cifrato-invoices-page .invoice-table .invoice-loaded-cell {
  display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center;
  justify-content: center; gap: 6px; min-height: 44px;
}
.cifrato-invoices-page .invoice-table .invoice-loaded-cell .invoice-row-view-button {
  min-width: 72px; min-height: 44px; padding: 8px; gap: 5px;
}
.cifrato-invoices-page .invoice-table .invoice-delete-button {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 36px; width: 36px; min-height: 44px; padding: 0;
}
.cifrato-invoices-page .invoice-table .invoice-row-actions:not(.is-open) { display: none; }
.cifrato-invoices-page .invoice-table .invoice-row-actions.is-open {
  position: absolute; right: 8px; top: calc(100% - 8px); z-index: 5;
  width: max-content; max-width: none;
}
.cifrato-invoices-page .invoice-table .loaded-column { position: relative; }
.cifrato-invoices-page .cifrato-filter-panel__fields { padding: 16px; }
.cifrato-invoices-page .cifrato-filter-panel__search-row { padding: 10px 16px; }
@media (min-width: 1350px) {
  .cifrato-invoices-page .cifrato-filter-panel__fields {
    grid-template-columns: minmax(180px,1.4fr) minmax(170px,1fr) minmax(140px,1fr) minmax(150px,1fr) minmax(245px,1.3fr) 44px;
  }
}

/* Table parity measured from the reference; FXA colors and action icons remain. */
.app-shell.modern-shell .cifrato-invoices-page :is(.invoice-table, .cifrato-filter-panel, .table-footer, .invoice-batch-select) {
  font-family: 'Manrope', 'Segoe UI', sans-serif !important;
  font-size: 14px;
}
.app-shell.modern-shell .cifrato-invoices-page .invoice-table--preparation {
  width: 100%; min-width: 1040px !important; table-layout: fixed;
}
.app-shell.modern-shell .cifrato-invoices-page .invoice-table--preparation :is(th,td) {
  display: table-cell !important; padding: 12px !important; font-size: 14px !important;
  line-height: 1.35; font-family: inherit !important; vertical-align: middle;
}
.app-shell.modern-shell .cifrato-invoices-page .invoice-table--preparation thead th {
  padding-block: 8px !important; height: 44px !important; font-weight: 600 !important;
}
.app-shell.modern-shell .cifrato-invoices-page .invoice-table--preparation tbody td {
  height: 60px !important; font-weight: 500 !important;
}
.app-shell.modern-shell .cifrato-invoices-page .invoice-table--preparation :is(.cell-primary,.invoice-number-link,.cifrato-provider-cell strong,.sort-button) {
  font: inherit !important; font-weight: 500 !important; letter-spacing: normal !important;
}
.app-shell.modern-shell .cifrato-invoices-page .invoice-table--preparation .checkbox-cell {
  width: 44px !important; padding: 0 !important; text-align: center;
}
.app-shell.modern-shell .cifrato-invoices-page .invoice-table input[type=checkbox] { width: 16px; height: 16px; vertical-align: middle; }
.app-shell.modern-shell .cifrato-invoices-page .invoice-table--preparation th:nth-child(2) { width: 11% !important; min-width: 0 !important; }
.app-shell.modern-shell .cifrato-invoices-page .invoice-table--preparation th:nth-child(3) { width: 12% !important; min-width: 0 !important; }
.app-shell.modern-shell .cifrato-invoices-page .invoice-table--preparation th:nth-child(4) { width: 22% !important; min-width: 0 !important; }
.app-shell.modern-shell .cifrato-invoices-page .invoice-table--preparation th:nth-child(5) { width: 12% !important; min-width: 0 !important; }
.app-shell.modern-shell .cifrato-invoices-page .invoice-table--preparation th:nth-child(6) { width: 14% !important; min-width: 0 !important; }
.app-shell.modern-shell .cifrato-invoices-page .invoice-table--preparation th:nth-child(7) { width: 13% !important; min-width: 0 !important; }
.app-shell.modern-shell .cifrato-invoices-page .invoice-table--preparation th:nth-child(8) { width: 12% !important; min-width: 0 !important; }
.app-shell.modern-shell .cifrato-invoices-page .invoice-table th:nth-child(n+4) { text-align: center; }
.app-shell.modern-shell .cifrato-invoices-page .invoice-table .amount-cell { text-align: right; white-space: nowrap; }
.app-shell.modern-shell .cifrato-invoices-page .cifrato-document-type { font: inherit; font-size: 11px; padding: 2px 5px; border: 1px solid var(--line); border-radius: 4px; white-space: nowrap; }
.app-shell.modern-shell .cifrato-invoices-page .invoice-completion {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 22px; min-width: 0; padding: 2px 6px; border: 1px solid var(--line);
  border-radius: 99px; font-size: 11px; font-weight: 500; white-space: nowrap;
}
.invoice-status-content { display: inline-flex; align-items: center; gap: 4px; }
.app-shell.modern-shell .cifrato-invoices-page .invoice-ai-mark { min-width: 16px; height: 18px; }
.app-shell.modern-shell .cifrato-invoices-page .invoice-loaded-cell .invoice-row-view-button {
  min-width: 36px; width: 36px; min-height: 36px; height: 36px; padding: 8px;
  border: 0; background: transparent;
}
.app-shell.modern-shell .cifrato-invoices-page .invoice-row-view-button::after { content: none; }
.app-shell.modern-shell .cifrato-invoices-page .integration-logo--excel {
  width: 36px; height: 36px; min-height: 36px; border: 0; padding: 8px;
}
.app-shell.modern-shell .cifrato-invoices-page .integration-logo--excel img { width: 20px; height: 20px; object-fit: contain; }
.app-shell.modern-shell .cifrato-invoices-page .invoice-loaded-cell { position: relative; gap: 4px; min-height: 36px; }
.app-shell.modern-shell .cifrato-invoices-page .invoice-delete-button { width: 36px; min-height: 36px; height: 36px; flex-basis: 36px; }
.app-shell.modern-shell .cifrato-invoices-page .invoice-row-actions.is-open {
  display: inline-flex; position: absolute; right: 0; top: 0;
  max-width: none; width: max-content; height: 38px; min-height: 38px;
  border-radius: 8px; overflow: visible; padding: 2px 4px;
  box-shadow: 0 3px 12px #0002; z-index: 30;
}
.app-shell.modern-shell .cifrato-invoices-page .invoice-row-actions button,
.app-shell.modern-shell .cifrato-invoices-page .invoice-row-actions button:first-child {
  display: inline-flex; align-items: center; justify-content: center; width: 32px;
  height: 32px; min-height: 32px; flex: 0 0 32px; padding: 4px; border-radius: 4px;
}
.app-shell.modern-shell .cifrato-invoices-page .invoice-row-actions button:first-child { width: auto; min-width: 95px; flex-basis: auto; gap: 6px; }
.app-shell.modern-shell .cifrato-invoices-page .cifrato-filter-panel__fields { gap: 16px; }
.app-shell.modern-shell .cifrato-invoices-page .cifrato-filter-field > span { font-size: 14px; font-weight: 500; }
.app-shell.modern-shell .cifrato-invoices-page .cifrato-select-box select { height: 40px; min-height: 40px; font-family: inherit; font-size: 14px; }
.app-shell.modern-shell .cifrato-invoices-page .cifrato-search-control { height: 34px; min-height: 34px; }
.app-shell.modern-shell .cifrato-invoices-page .cifrato-search-control input { font-family: inherit; font-size: 14px; }
.app-shell.modern-shell .cifrato-invoices-page .cifrato-table-footer { background: white; font-size: 14px; }
.app-shell.modern-shell .cifrato-invoices-page .pagination-named-button { width: 36px; min-width: 36px; min-height: 36px; height: 36px; padding: 6px; font-size: 0; }
.app-shell.modern-shell .cifrato-invoices-page .pagination-named-button > span { font-size: 0; }
.app-shell.modern-shell .cifrato-invoices-page .pagination-named-button svg { width: 16px; height: 16px; }
@media (min-width: 901px) {
  .app-shell.modern-shell { --invoice-sidebar-width: 240px; }
  .app-shell.modern-shell:has(.sidebar--compact) { --invoice-sidebar-width: 76px; }
  .app-shell.modern-shell .cifrato-invoices-page > .invoice-list-card { padding-bottom: 72px; }
  .app-shell.modern-shell .cifrato-invoices-page .cifrato-table-footer {
    position: fixed; bottom: 0; left: calc(var(--invoice-sidebar-width) + 38px);
    right: 38px; z-index: 35; min-height: 64px; border: 1px solid var(--line);
    border-radius: 0 0 10px 10px; box-shadow: 0 -2px 8px #00000008;
  }
}

.app-shell.modern-shell .cifrato-invoices-page .date-range-trigger { font-size: 14px; }

@media (min-width: 901px) and (max-width: 1349px) {
  .app-shell.modern-shell .cifrato-invoices-page .cifrato-filter-panel__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.reports-hub{max-width:1400px;margin:0 auto;padding:12px 8px 32px;color:#30291f}.reports-hub-heading{margin-bottom:24px}.reports-hub-heading h1{font-size:27px;line-height:1.3;margin:0 0 6px}.reports-hub-heading p{margin:0 0 8px;color:#756d61;font-size:15px}.reports-hub-heading>span{font-size:13px;color:#756d61}.reports-hub-tabs{display:flex;gap:24px;overflow-x:auto;border-bottom:1px solid #ded8cc;margin-bottom:24px}.reports-hub-tabs button{background:none;border:0;border-bottom:3px solid transparent;border-radius:0;padding:14px 4px;white-space:nowrap;color:#756d61;font:inherit;cursor:pointer;min-height:46px}.reports-hub-tabs button[aria-current]{color:#30291f;border-bottom-color:#9e8560;font-weight:700}.reports-hub-cards{display:grid;gap:16px}.reports-hub-card{display:flex;align-items:center;gap:20px;background:#fff;border:1px solid #e6dfd4;border-radius:12px;padding:24px;box-shadow:0 2px 4px #30291f04}.reports-hub-icon{display:grid;place-items:center;width:48px;height:48px;background:#f5f1e9;border-radius:10px;color:#8a7350;flex-shrink:0}.reports-hub-card>div{flex:1}.reports-hub-card h2{font-size:17px;line-height:1.5;margin:0 0 6px;display:flex;align-items:center;flex-wrap:wrap;gap:12px}.reports-hub-card h2 small{font-size:11px;background:#efe5d1;color:#6a5330;border-radius:5px;padding:3px 8px;font-weight:600}.reports-hub-card p{font-size:14px;color:#756d61;line-height:1.55;margin:0;max-width:730px}.reports-hub-card .button{display:flex;align-items:center;gap:10px;min-height:46px;white-space:nowrap;font-size:14px}.reports-hub-note{font-size:13px;color:#756d61;line-height:1.6;margin:20px 0}.reports-hub-success{background:#f1ede4;border:1px solid #d6c8ae;padding:14px;border-radius:8px}.reports-hub-modal{width:min(590px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow-y:auto}.reports-hub-modal .modal__header h2{font-size:20px}.reports-hub-modal .modal__header p{margin:6px 0 0;font-size:14px;color:#756d61}.reports-hub-modal .modal__body{padding:24px}.reports-hub-dates{display:grid;grid-template-columns:1fr 1fr;gap:16px}.reports-hub-dates label,.reports-hub-company{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:600}.reports-hub-modal input:not([type=checkbox]){width:100%;min-height:46px;padding:10px 12px;border:1px solid #d8cfc2;border-radius:7px;background:white;color:#30291f;font:inherit;box-sizing:border-box}.reports-hub-company{margin-top:20px}.reports-hub-company input[readonly]{background:#f7f5f0;font-weight:400}.reports-hub-hint{font-size:13px;color:#756d61;line-height:1.6;margin:10px 0}.reports-hub-check{display:flex;align-items:center;gap:10px;font-size:14px;margin:20px 0}.reports-hub-check input{width:20px;height:20px;accent-color:#9e8560}.reports-hub-modal footer{display:flex;justify-content:flex-end;gap:12px;border-top:1px solid #e6dfd4;margin-top:24px;padding-top:20px}.reports-hub-modal footer .button{min-height:46px;display:flex;align-items:center;justify-content:center;gap:8px}.reports-hub-history{padding:24px;background:white;border:1px solid #e6dfd4;border-radius:12px}.reports-hub-history h2{font-size:18px}.reports-hub-history>p{font-size:14px;color:#756d61}.reports-hub-history article{display:flex;align-items:center;gap:16px;border-top:1px solid #eee8df;padding:18px 0}.reports-hub-history article>div{flex:1}.reports-hub-history article p{font-size:13px;color:#756d61;margin:6px 0 0}.reports-hub-history article>span{font-size:12px;color:#756d61}.reports-hub :focus-visible{outline:3px solid #aa8d60;outline-offset:3px}@media(max-width:800px){.reports-hub-card{padding:20px;gap:14px;flex-wrap:wrap}.reports-hub-card>div{min-width:180px}.reports-hub-card>.button{margin-left:62px}.reports-hub-tabs{gap:16px}}@media(max-width:480px){.reports-hub{padding:8px 0 24px}.reports-hub-card{padding:16px}.reports-hub-card>.button{width:100%;margin-left:0}.reports-hub-icon{width:38px;height:38px}.reports-hub-dates{grid-template-columns:1fr}.reports-hub-modal .modal__body{padding:18px}.reports-hub-modal footer{flex-direction:column-reverse}.reports-hub-history article{flex-wrap:wrap}}

/* FXA: white surfaces, beige accents, semantic document and completion colors. */
:root{--fxa-border:#e9e7e3;--fxa-muted:#77746f;--fxa-beige:#f5f1e9;--fxa-purple:#8d48d8;--fxa-green:#16825b}
.app-shell.modern-shell{background:#fafaf9!important;color:#302f2d;--line:#e9e7e3;--surface:#fff}
.app-shell.modern-shell .app-shell__main,.app-shell.modern-shell .main-content{background:#fafaf9!important}
.app-shell.modern-shell .company-topbar{background:#fff!important;border-bottom:1px solid var(--fxa-border)!important;box-shadow:none!important}
.app-shell.modern-shell .company-topbar__switcher>button{background:transparent!important;border:0!important;box-shadow:none!important}
.app-shell.modern-shell .company-topbar__switcher small{display:none}
.app-shell.modern-shell .company-invoice-search{background:#fff!important;box-shadow:none!important;border-color:var(--fxa-border)!important}
.app-shell.modern-shell .fxa-sidebar-minimal{background:#fff!important;border-right:1px solid var(--fxa-border);padding:0 14px!important;box-shadow:none!important;display:flex;flex-direction:column}
.app-shell.modern-shell .fxa-sidebar-minimal .company-sidebar__brand{display:flex;align-items:center;gap:12px;position:relative;padding:24px 4px!important;border-bottom:1px solid var(--fxa-border);min-height:90px;box-sizing:border-box}
.app-shell.modern-shell .fxa-sidebar-minimal .workspace-brand{font-size:25px!important;letter-spacing:-1.3px;line-height:1;font-weight:800;flex-shrink:0}
.app-shell.modern-shell .fxa-sidebar-minimal .workspace-brand span{color:#aa9471}
.app-shell.modern-shell .fxa-sidebar-minimal .company-sidebar__business{background:none!important;border:0!important;padding:0!important;box-shadow:none!important;min-width:0;flex:1}
.app-shell.modern-shell .fxa-sidebar-minimal .company-sidebar__business-copy{min-width:0;display:flex;flex-direction:column;gap:4px}
.app-shell.modern-shell .fxa-sidebar-minimal .company-sidebar__business-copy strong{font-size:12px!important;font-weight:500!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:125px}
.app-shell.modern-shell .fxa-sidebar-minimal .company-sidebar__business-copy small{font-size:11px;color:var(--fxa-muted)}
.app-shell.modern-shell .fxa-sidebar-minimal .sidebar-structure-toggle{position:static!important;flex-shrink:0;width:28px;height:30px;min-height:30px;background:none;border:0;box-shadow:none;color:#817a70;padding:4px}
.fxa-sidebar-minimal .sidebar-structure-toggle svg{transform:rotate(90deg)}
.app-shell.modern-shell .fxa-sidebar-minimal .company-sidebar__nav{padding-top:16px!important;flex:1;overflow-y:auto}
.app-shell.modern-shell .fxa-sidebar-minimal .company-sidebar__nav-label{font-size:12px!important;text-transform:none!important;letter-spacing:0!important;font-weight:400!important;padding:0 8px!important;color:#85817b;margin:12px 0}
.app-shell.modern-shell .fxa-sidebar-minimal .company-sidebar__nav-label--secondary{border-top:1px solid var(--fxa-border);padding-top:20px!important;margin-top:20px}
.app-shell.modern-shell .fxa-sidebar-minimal .sidebar-link{font-size:14px!important;font-weight:400!important;min-height:42px!important;height:auto;padding:10px!important;margin:2px 0;border:0!important;box-shadow:none!important;border-radius:6px!important;color:#66625c;background:none}
.app-shell.modern-shell .fxa-sidebar-minimal .sidebar-link:hover{background:#faf8f4!important;color:#302f2d}
.app-shell.modern-shell .fxa-sidebar-minimal .sidebar-link--active{background:#f1eee8!important;color:#302f2d!important;font-weight:500!important;box-shadow:none!important}
.fxa-sidebar-minimal .sidebar-link--active:before,.fxa-sidebar-minimal .sidebar-link--active:after{display:none!important}
.fxa-sidebar-minimal .fxa-document-trigger>svg:last-child{margin-left:auto;transition:transform .15s}
.fxa-sidebar-minimal .fxa-document-trigger[aria-expanded=true]>svg:last-child{transform:rotate(180deg)}
.app-shell.modern-shell .fxa-sidebar-minimal #fxa-document-links{padding-left:23px}
.app-shell.modern-shell .fxa-sidebar-minimal #fxa-document-links .sidebar-link>svg{display:none}
.app-shell.modern-shell .fxa-sidebar-minimal .company-sidebar__session{border-top:1px solid var(--fxa-border);padding:12px 0!important;margin-top:24px}
.app-shell.modern-shell .fxa-sidebar-minimal .company-sidebar__session button{font-size:14px;font-weight:400;min-height:42px;color:#77716a}
.app-shell.modern-shell .fxa-sidebar-minimal.sidebar--compact .company-sidebar__business{display:none!important}
.app-shell.modern-shell .fxa-sidebar-minimal.sidebar--compact .company-sidebar__brand{flex-direction:column;gap:10px;padding:20px 0!important}
.app-shell.modern-shell .fxa-sidebar-minimal.sidebar--compact #fxa-document-links{padding-left:0}
.app-shell.modern-shell .fxa-sidebar-minimal.sidebar--compact #fxa-document-links .sidebar-link>svg{display:block}
.app-shell.modern-shell :is(.data-card,.cifrato-filter-panel,.cifrato-actions-bar,.cifrato-progress-card,.support-create-card,.support-recent,.reports-hub-card,.business-list-card){background:#fff!important;border:1px solid var(--fxa-border)!important;box-shadow:none!important;border-radius:10px!important}
.app-shell.modern-shell .button{box-shadow:none!important;font-weight:500!important;border-radius:7px!important}
.app-shell.modern-shell :is(.button--primary,.button--cifrato-green){background:#ede5d7!important;border:1px solid #e4d8c5!important;color:#4d4131!important}
.app-shell.modern-shell .button--dark{background:#37332d!important;border-color:#37332d!important;color:white!important}
.app-shell.modern-shell .button--quiet{background:#fff!important;border-color:#dedbd5!important;color:#514b43!important}
.app-shell.modern-shell .cifrato-invoices-page .cifrato-document-type{background:#f6efff!important;color:#8c46cf!important;border:0!important;border-radius:4px!important;padding:3px 6px!important;font-size:11px!important}
.app-shell.modern-shell .cifrato-document-type i{display:none}
.app-shell.modern-shell .cifrato-invoices-page :is(.invoice-completion--complete,.invoice-completion--completed,.invoice-completion--ready,.invoice-completion--manual,.invoice-completion--exported,.invoice-completion--learned,.invoice-completion--ai){background:#e9faf2!important;color:#16825b!important;border:0!important}
.app-shell.modern-shell .cifrato-invoices-page :is(.invoice-completion--incomplete,.invoice-completion--suggested){background:#faf5e9!important;color:#95702c!important;border:0!important}
.app-shell.modern-shell .cifrato-invoices-page .invoice-table--preparation :is(th,thead td){background:#f8f8f7!important;border-color:var(--fxa-border)!important;font-weight:500!important}
.app-shell.modern-shell .cifrato-invoices-page .invoice-table--preparation tbody td{background:white!important;border-color:var(--fxa-border)!important}
.app-shell.modern-shell .cifrato-invoices-page .invoice-table--preparation tbody tr:hover td{background:#fafafa!important}
.app-shell.modern-shell .cifrato-invoices-page .cifrato-filter-panel{margin-bottom:0!important;border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}
.app-shell.modern-shell .cifrato-invoices-page .invoice-list-card{margin-top:0!important;border-top:0!important;border-top-left-radius:0!important;border-top-right-radius:0!important}
.app-shell.modern-shell .cifrato-invoices-page :is(.page-intro,.cifrato-page-intro) h1{font-size:24px!important;font-weight:600!important;letter-spacing:-.4px}
.app-shell.modern-shell :is(.cifrato-progress-card,.invoice-selection-toolbar){background:#fff!important}
.support-workspace-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:12px 0 24px;padding-bottom:22px;border-bottom:1px solid var(--fxa-border)}
.support-workspace-heading h1{font-size:24px;font-weight:600;margin:0 0 10px}.support-workspace-heading p:not(.eyebrow){font-size:14px;color:var(--fxa-muted);margin:0}
.support-workspace .support-page-header{justify-content:flex-end!important;margin-bottom:0!important}.support-workspace .support-page-header>div{display:none}
.support-workspace--history .support-create-card,.support-workspace--create .support-recent{display:none}
.support-workspace .support-create-card,.support-workspace .support-recent{padding:24px!important}
.support-workspace .support-create-card h2{font-size:17px!important;font-weight:500!important}
.support-workspace .support-recent>header .eyebrow{display:none}.support-workspace .support-recent>header h2{font-size:18px;font-weight:500}
.support-workspace .support-recent-list article{border:0!important;border-bottom:1px solid var(--fxa-border)!important;border-radius:0!important;background:#fff!important;padding:18px 8px!important;box-shadow:none!important}
.support-workspace .support-document-status{background:#e9faf2!important;color:#16825b!important;border:0!important}
.support-workspace :is(input,textarea,select),.invoice-sync-dialog :is(input,textarea,select){border-color:#dedbd5!important;background:#fff!important;box-shadow:none!important;border-radius:7px!important}
.support-workspace .support-totals .is-total{background:#faf8f4!important;border-top:1px solid var(--fxa-border)}
.support-workspace .support-items-row--head{background:#f8f8f7!important}
.invoice-sync-dialog{background:#fff!important;border-radius:12px!important;border:1px solid #e7e3dd!important;box-shadow:0 18px 60px #0002!important}
.invoice-sync-dialog__aside{background:#fbfaf8!important;border-right:1px solid var(--fxa-border)!important;color:#514b43!important}
.invoice-sync-dialog__aside h2{font-weight:600!important;font-size:21px!important}.invoice-sync-dialog__aside p{color:#77716a!important}
.invoice-sync-dialog__aside nav .is-active{background:#f0ebe2!important;color:#514432!important;box-shadow:none!important}
.invoice-sync-dialog__main{background:#fff!important}.invoice-sync-dialog__main>header{border-bottom:1px solid var(--fxa-border)!important;padding-bottom:18px}
.invoice-sync-dialog__main h3{font-size:21px!important;font-weight:600!important}
.invoice-sync-alert:not(.invoice-sync-alert--error),.invoice-sync-mail-note{background:#faf8f3!important;border:1px solid #eee8dc!important;color:#6d604d!important;box-shadow:none!important}
.invoice-sync-control>span:first-child,.invoice-sync-fieldset legend{font-size:14px!important;font-weight:500!important}
.invoice-sync-input{border-color:#dedbd5!important;background:#fff!important}.invoice-sync-input textarea{font-size:14px!important;line-height:1.6!important}
.invoice-sync-fieldset{border-color:#eeeae3!important;background:#fff!important}
.invoice-sync-dialog :is(footer,.invoice-sync-actions){background:#fff!important;border-top:1px solid var(--fxa-border)!important}
.reports-hub-card h2 small{background:#f5f1e9!important}.reports-hub-tabs button[aria-current]{border-color:#b19a76!important}
@media(max-width:700px){.support-workspace-heading{align-items:flex-start;flex-direction:column}.support-workspace-heading>.button{width:100%}.support-workspace .support-create-card,.support-workspace .support-recent{padding:16px!important}.invoice-sync-dialog__aside{border-right:0!important;border-bottom:1px solid var(--fxa-border)!important}.fxa-sidebar-minimal .company-sidebar__brand{padding-right:32px!important}}
@media(prefers-reduced-motion:reduce){.fxa-sidebar-minimal *{transition:none!important}}
.app-shell.modern-shell .fxa-sidebar-minimal .company-sidebar__brand{flex-direction:row!important;height:94px!important;min-height:94px!important;flex:0 0 94px!important}
.app-shell.modern-shell .fxa-sidebar-minimal .workspace-brand{display:block!important;width:auto!important;height:auto!important;min-height:0!important;padding:0!important;margin:0!important}
.app-shell.modern-shell .fxa-sidebar-minimal .company-sidebar__nav{display:block!important;min-height:0!important}
.app-shell.modern-shell .fxa-sidebar-minimal .company-sidebar__nav-label{display:block!important}
.app-shell.modern-shell .fxa-sidebar-minimal.sidebar--compact .company-sidebar__nav-label{display:none!important}
.app-shell.modern-shell .fxa-sidebar-minimal.sidebar--compact .company-sidebar__brand{flex-direction:column!important}
.app-shell.modern-shell .page-container{background:#fafafa!important}
.app-shell.modern-shell .cifrato-invoices-page{gap:16px!important}
.app-shell.modern-shell .cifrato-pending-banner{background:#fffdf9!important;border-color:#eee8dd!important;box-shadow:none!important}
.fxa-process-center{position:relative;margin-left:auto;flex-shrink:0}.fxa-process-pill{display:flex;align-items:center;justify-content:center;gap:7px;min-height:36px;border:1px solid #e7e7e4;border-radius:24px;background:white;padding:7px 12px;font:inherit;font-size:12px;white-space:nowrap;color:#55534f;cursor:pointer}.fxa-process-pill>span:first-child{color:#16825b}.fxa-process-pill.is-running>span:first-child{animation:fxa-process-spin 1.2s linear infinite;color:#947d58}.fxa-process-pill.is-error>span:first-child{color:#b54538}.fxa-process-panel{position:absolute;right:0;top:calc(100% + 12px);width:370px;max-width:calc(100vw - 28px);z-index:150;border:1px solid #e5e3dd;border-radius:12px;background:white;box-shadow:0 12px 45px #0002;text-align:left;color:#302f2d}.fxa-process-panel>header{display:flex;justify-content:space-between;align-items:center;padding:18px;border-bottom:1px solid #eee}.fxa-process-panel header strong{font-size:14px;font-weight:600}.fxa-process-panel header small{display:block!important;font-size:11px;margin-top:5px;color:#8a8680}.fxa-process-panel header button{background:none;border:0;font-size:23px;color:#777;width:32px;min-height:32px}.fxa-process-list{max-height:410px;overflow:auto}.fxa-process-empty{margin:0;padding:24px;font-size:13px;line-height:1.6;color:#7c7770}.fxa-process-entry{display:flex;align-items:flex-start;gap:12px;padding:18px;border-bottom:1px solid #eee}.fxa-process-state{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#e9faf2;color:#16825b;flex-shrink:0}.fxa-process-entry.is-running .fxa-process-state{background:#faf5ea;color:#947d58}.fxa-process-entry.is-error .fxa-process-state{background:#fff1ef;color:#b54538}.fxa-process-entry>div{min-width:0;flex:1}.fxa-process-entry strong{font-size:13px;font-weight:600}.fxa-process-entry p{font-size:12px;line-height:1.5;color:#77736b;margin:6px 0}.fxa-process-entry small{font-size:11px;color:#99938b}.fxa-process-entry a{display:block;font-size:12px;color:#6b5738;margin-top:8px;text-decoration:underline}.fxa-process-entry progress{width:100%;height:5px;accent-color:#aa9470}.fxa-process-panel>footer{font-size:11px;color:#8b857c;padding:14px 18px;line-height:1.5}.app-shell.modern-shell .company-invoice-search{flex:1;max-width:430px;margin-left:12px!important}.app-shell.modern-shell .company-topbar{gap:14px!important}@keyframes fxa-process-spin{to{transform:rotate(360deg)}}
@media(max-width:900px){.fxa-process-pill{font-size:11px;padding:6px 9px}.fxa-process-panel{position:fixed;right:14px;top:76px}.app-shell.modern-shell .company-invoice-search{display:none!important}}
@media(prefers-reduced-motion:reduce){.fxa-process-pill.is-running>span:first-child{animation:none}}
.app-shell.modern-shell .company-topbar__identity{min-width:0!important;flex:0 1 215px!important}.app-shell.modern-shell .company-invoice-search{min-width:130px!important;width:auto!important;flex:1 1 240px!important;max-width:380px!important}.app-shell.modern-shell .company-manage-button{font-size:12px!important;padding:9px!important;flex-shrink:0}.app-shell.modern-shell .company-topbar{width:100%!important;min-width:0!important;box-sizing:border-box}
.support-workspace--history .support-page-header{display:none!important}.support-history-scroll{overflow:auto;margin-top:20px}.support-history-table{width:100%;border-collapse:collapse;min-width:760px;font-size:13px}.support-history-table th{text-align:left;padding:14px 12px;background:#f8f8f7;color:#68645f;font-weight:500;border:1px solid var(--fxa-border)}.support-history-table td{padding:16px 12px;border:1px solid var(--fxa-border);vertical-align:middle}.support-history-table small{display:block;font-size:11px;color:#88817a;margin-top:6px}.support-history-table td:nth-child(5){white-space:nowrap}.support-history-table .button{font-size:12px!important;white-space:nowrap}.support-history-table .support-history-empty{padding:40px 20px;color:#8b857d;text-align:center}.support-recent>header p{font-size:13px;color:#8b857d;margin:8px 0 0}.support-history-table .support-document-status--recibido_proveedor{background:#faf3e5!important;color:#9b772d!important}
.app-shell.modern-shell .cifrato-action-bar:has(.invoice-sync-modal){z-index:2001!important}.invoice-sync-modal{z-index:2002!important}.company-topbar:has(.fxa-process-panel){z-index:1800!important}.app-shell.modern-shell .fxa-sidebar-minimal .company-sidebar__business-copy strong{white-space:normal!important;text-overflow:clip!important;line-height:1.4!important}.app-shell.modern-shell .fxa-sidebar-minimal .company-sidebar__brand{gap:8px!important}.app-shell.modern-shell .fxa-sidebar-minimal .workspace-brand{font-size:22px!important}
.app-shell.modern-shell .workspace-page-heading{padding:4px 0 12px!important;margin:0!important;min-height:0!important}.app-shell.modern-shell .workspace-page-heading .eyebrow{display:none!important}.app-shell.modern-shell .workspace-page-heading h1{font-size:24px!important;font-weight:600!important;margin:0 0 8px!important}.app-shell.modern-shell .workspace-page-heading p{font-size:14px!important}.app-shell.modern-shell .cifrato-attention-banner{background:#fffdf9!important;border:1px solid #eee8dd!important;border-left:2px solid #c8b492!important;box-shadow:none!important;padding:12px 16px!important;min-height:0!important}.app-shell.modern-shell .cifrato-attention-banner strong{font-size:14px!important}.app-shell.modern-shell .cifrato-attention-banner p{display:none!important}.app-shell.modern-shell .cifrato-attention-banner .button{min-height:36px!important;padding:8px 12px!important;font-size:12px!important;background:white!important;color:#6f5e43!important;border:1px solid #e8dfd0!important}.app-shell.modern-shell .progress-disclosure>summary{min-height:44px!important;padding:12px 16px!important}.app-shell.modern-shell .progress-disclosure>summary h2{font-size:14px!important;font-weight:500!important}.app-shell.modern-shell .cifrato-action-bar{padding:14px 16px!important;min-height:64px!important;background:white!important;box-shadow:none!important;border-color:#e9e7e3!important}
@media(min-width:1100px){.app-shell.modern-shell .cifrato-invoices-page .cifrato-filter-panel__fields{grid-template-columns:minmax(120px,1.2fr) minmax(105px,1fr) minmax(100px,1fr) minmax(105px,1fr) minmax(155px,1.3fr) 40px!important;gap:12px!important;align-items:end!important}.cifrato-filter-field--reviewed{order:4}.cifrato-filter-field--date{order:5}.cifrato-excel-button{order:6}.app-shell.modern-shell .cifrato-invoices-page .cifrato-filter-field{height:auto!important;min-height:0!important}.app-shell.modern-shell .cifrato-invoices-page .cifrato-filter-field>span{font-size:12px!important}.app-shell.modern-shell .cifrato-invoices-page .cifrato-filter-panel{padding-top:0!important}.app-shell.modern-shell .cifrato-invoices-page .date-range-trigger{font-size:12px!important;height:40px!important;min-height:40px!important;padding:8px!important}.app-shell.modern-shell .cifrato-invoices-page .cifrato-excel-button{height:40px!important;min-height:40px!important}}
@media(min-width:1100px){.app-shell.modern-shell .cifrato-invoices-page .cifrato-filter-panel__fields>*{grid-column:auto!important;grid-row:auto!important}}
@media(min-width:1100px){.app-shell.modern-shell .cifrato-invoices-page .invoice-table--preparation{min-width:860px!important;width:100%!important}.app-shell.modern-shell .cifrato-invoices-page .invoice-table--preparation :is(th,td){padding-left:10px!important;padding-right:10px!important}.app-shell.modern-shell .cifrato-invoices-page .invoice-table--preparation .cifrato-document-type{white-space:normal!important;line-height:1.4;display:inline-block}.app-shell.modern-shell .cifrato-invoices-page .invoice-table--preparation th{white-space:normal!important}}

/* Consistent account, access and overview surfaces. */
.app-shell.modern-shell .fxa-sidebar-minimal .company-sidebar__brand{height:76px!important;min-height:76px!important;flex-basis:76px!important;padding:14px 3px!important}.app-shell.modern-shell .fxa-sidebar-minimal .company-sidebar__nav{padding-top:10px!important;flex:0 1 auto!important}.app-shell.modern-shell .fxa-sidebar-minimal .sidebar-link{min-height:36px!important;height:36px!important;padding:7px 9px!important;margin:1px 0!important;line-height:20px!important;box-sizing:border-box}.app-shell.modern-shell .fxa-sidebar-minimal .company-sidebar__nav-label{margin:10px 0 7px!important;padding-left:9px!important}.app-shell.modern-shell .fxa-sidebar-minimal .company-sidebar__nav-label--secondary{padding-top:14px!important;margin-top:14px!important}.app-shell.modern-shell .fxa-sidebar-minimal .company-sidebar__session{margin-top:14px!important;padding:8px 0!important}.app-shell.modern-shell .fxa-sidebar-minimal .company-sidebar__session button{min-height:36px!important;padding:7px 9px!important}.app-shell.modern-shell .fxa-sidebar-minimal .fxa-document-group{border:0!important;margin:0!important;padding:0!important}.app-shell.modern-shell .fxa-sidebar-minimal .company-sidebar__nav{max-height:calc(100dvh - 190px)}
.fxa-process-panel--compact{width:400px!important;border-radius:8px!important;box-shadow:0 5px 20px #00000012!important}.fxa-process-panel--compact>header{padding:10px 12px!important;background:#fafafa;border-bottom:1px solid #ececea}.fxa-process-panel--compact>header strong{font-size:13px;font-weight:500}.fxa-process-panel--compact>header button{height:22px;min-height:22px;font-size:18px}.fxa-process-panel--compact .fxa-process-list{max-height:264px}.fxa-process-panel--compact .fxa-process-entry{padding:11px 12px!important;gap:10px;align-items:center}.fxa-process-panel--compact .fxa-process-state{background:transparent!important;width:16px;height:18px;font-size:15px}.fxa-process-panel--compact .fxa-process-description{flex:1;min-width:0}.fxa-process-panel--compact .fxa-process-description strong{display:block;font-size:12px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.fxa-process-panel--compact .fxa-process-description p{font-size:11px;line-height:1.4;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:3px 0 0}.fxa-process-panel--compact .fxa-process-actions{flex:0 0 auto;display:flex;align-items:center;gap:0}.fxa-process-actions>button,.fxa-process-actions>a{display:grid!important;place-items:center;width:33px;height:26px;min-height:26px!important;padding:4px!important;margin:0!important;border:0;border-left:1px solid #eee;background:white;color:#6f6b62!important;text-decoration:none!important;font-size:19px!important;cursor:pointer}.fxa-process-actions>button:disabled{opacity:.3;cursor:default}.fxa-process-actions>button:hover,.fxa-process-actions>a:hover{background:#faf8f4}.fxa-process-pill{font-size:12px!important;padding:6px 10px!important;min-height:32px!important}.reports-hub-history article>span>a{display:block;margin-top:6px;color:#79613d;text-decoration:underline}
.fxa-account-workspace{max-width:1050px;margin:4px auto 28px}.fxa-account-workspace>header h1{font-size:25px;font-weight:600;margin:0 0 8px}.fxa-account-workspace>header p{font-size:14px;color:#7b7770;margin:0 0 22px}.fxa-account-tabs{display:flex;gap:24px;border-bottom:1px solid #e9e7e3;margin-bottom:24px}.fxa-account-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;background:none;padding:12px 0;min-height:44px;font:inherit;font-size:14px;color:#8a847a}.fxa-account-tabs button[aria-current]{border-color:#ac9671;color:#39362f}.fxa-profile-summary{display:flex;align-items:center;gap:16px;padding:24px;background:white;border:1px solid #e9e7e3;border-radius:10px;margin-bottom:20px}.fxa-profile-summary>span{display:grid;place-items:center;width:48px;height:48px;background:#f4f0e8;color:#8c7753;border-radius:50%;font-size:20px}.fxa-profile-summary>div{flex:1}.fxa-profile-summary h2{font-size:18px;font-weight:500;margin:0 0 5px}.fxa-profile-summary p{margin:0;font-size:13px;color:#8a847b}.fxa-profile-summary>small{background:#f7f5f1;color:#7b6b54;border-radius:5px;padding:5px 9px}.fxa-profile-details{border:1px solid #e9e7e3;border-radius:10px;background:white;padding:24px}.fxa-profile-details h2{font-size:16px;font-weight:500;margin:0 0 20px}.fxa-profile-details dl{display:grid;grid-template-columns:1fr 1fr;margin:0;gap:0 32px}.fxa-profile-details dl>div{border-top:1px solid #eee;padding:17px 0}.fxa-profile-details dt{font-size:12px;color:#8a847b;margin-bottom:8px}.fxa-profile-details dd{margin:0;font-size:14px;color:#39362f}.fxa-account-workspace :is(.users-table,.account-system-card,.user-management-card){background:white!important;border-color:#e9e7e3!important;box-shadow:none!important}.fxa-account-workspace .users-table tr{background:white!important}
.app-shell.modern-shell .business-overview{gap:20px!important}.app-shell.modern-shell .business-heading{padding:0!important;min-height:0!important}.app-shell.modern-shell .business-heading h2{font-size:25px!important;font-weight:600!important}.app-shell.modern-shell .business-heading p{color:#817b71!important}.app-shell.modern-shell :is(.business-status-banner,.business-state-card,.business-progress-card,.business-list-card){background:#fff!important;border:1px solid #e9e7e3!important;border-radius:10px!important;box-shadow:none!important;color:#39362f!important}.app-shell.modern-shell .business-status-banner{padding:15px 20px!important}.app-shell.modern-shell .business-status-banner>span{background:#f5f1e9!important;color:#9c855e!important}.app-shell.modern-shell .business-status-banner strong{font-size:14px!important;font-weight:500!important}.app-shell.modern-shell .business-status-banner p{font-size:12px!important;color:#817b71!important}.app-shell.modern-shell .business-metric{background:#fff!important;border:1px solid #eceae5!important;box-shadow:none!important;border-radius:8px!important;color:#39362f!important;padding:20px!important}.app-shell.modern-shell .business-metric>span{background:#f7f4ee!important;color:#aa9471!important}.app-shell.modern-shell .business-metric strong{font-size:26px!important;font-weight:600!important}.app-shell.modern-shell .business-metric p,.app-shell.modern-shell .business-metric small{color:#817b71!important}.app-shell.modern-shell .business-overview :is(h3,h4){font-weight:500!important}.app-shell.modern-shell .business-list-head{background:#f8f8f7!important}.app-shell.modern-shell .business-list-row{background:#fff!important}.app-shell.modern-shell .business-avatar{background:#f5f1e9!important;color:#9c855e!important}
.access-page{background:white!important;display:grid!important;grid-template-columns:minmax(300px,1fr) minmax(420px,1fr)!important;min-height:100dvh!important}.access-story{background:#faf8f4!important;color:#3e3931!important;border-right:1px solid #eee9e0!important;padding:40px 48px!important}.access-story::before,.access-story::after{display:none!important}.access-story-content h2{font-size:46px!important;line-height:1.15!important;letter-spacing:-1px!important;font-weight:500!important;max-width:420px}.access-story-content h2 em{color:#ac9671!important;font-style:normal!important}.access-story-content>p{color:#817b71!important;font-size:16px!important;line-height:1.7!important}.access-document{display:none!important}.access-workflow{margin-top:30px!important;color:#8e8069!important}.access-monogram{color:#302d28!important;font-size:28px!important}.access-monogram>span{color:#ac9671!important}.access-brand>span:last-child{font-size:10px!important;color:#8b8172!important}.access-story-footer{color:#9a9184!important;font-size:12px!important}.access-eyebrow{color:#9a8c76!important}.access-panel{background:white!important;padding:40px!important}.access-form-wrap{width:100%!important;max-width:390px!important}.access-entry-label{color:#9a8c76!important;background:transparent!important}.access-heading h1{font-size:29px!important;font-weight:500!important;letter-spacing:-.5px!important;color:#302d28!important}.access-heading p{font-size:14px!important;color:#8a847b!important}.access-input{background:white!important;border:1px solid #ddd9d1!important;border-radius:7px!important;box-shadow:none!important;min-height:48px!important}.access-input:focus-within{border-color:#ad9877!important;box-shadow:0 0 0 3px #bba27c14!important}.access-input input{font-size:15px!important;background:transparent!important}.access-submit{background:#b09a76!important;color:white!important;border:1px solid #b09a76!important;border-radius:7px!important;min-height:48px!important;box-shadow:none!important}.access-help{background:white!important;border-top:1px solid #e9e7e3!important;border-radius:0!important;padding:20px 0!important}.access-security,.access-footer{color:#a29a8d!important;font-size:12px!important}.login-page,.login-panel{background:white!important}.login-shell{background:white!important;border:1px solid #e9e7e3!important;box-shadow:none!important}.login-brand{background:#faf8f4!important}
@media(max-width:760px){.access-page{display:block!important}.access-story{display:none!important}.access-panel{min-height:100dvh!important;padding:32px 24px!important}.fxa-profile-details dl{grid-template-columns:1fr}.fxa-profile-summary{flex-wrap:wrap}.fxa-process-panel--compact{width:calc(100vw - 28px)!important;max-width:400px!important}}
.access-submit{color:#332c21!important}.app-shell.modern-shell .business-metric strong{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;font-size:22px!important;line-height:1.35!important}.app-shell.modern-shell .business-metric{height:auto!important;min-height:130px!important}.app-shell.modern-shell .business-metric p{font-size:12px!important}.app-shell.modern-shell .business-metric small{font-size:11px!important}.fxa-account-workspace .account-system-card{display:none!important}
.app-shell.modern-shell .business-metric{display:block!important}.app-shell.modern-shell .business-metric>span{display:inline-grid!important;width:30px!important;height:30px!important;margin-bottom:12px!important}.app-shell.modern-shell .business-metric>div{width:100%!important;min-width:0!important}.app-shell.modern-shell .business-metric p{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.4!important;margin-bottom:7px!important}
/* Invoice workspace: white surfaces, quiet beige separators, readable actions. */
.modal:has(.invoice-detail-page){width:min(1180px,calc(100vw - 32px))!important;border-radius:14px!important;border:1px solid #e7e4de!important;background:#fff!important;box-shadow:0 18px 70px #0002!important}
.modal:has(.invoice-detail-page)>.modal__header{padding:20px 24px!important;border-bottom:1px solid #ece9e3!important;background:#fff!important}
.modal:has(.invoice-detail-page)>.modal__header h2{font-size:20px!important;font-weight:600!important}.modal:has(.invoice-detail-page) .modal__body{padding:20px!important;background:#fafafa!important}
.invoice-detail-page{gap:18px!important;background:#fafafa!important}.invoice-detail-page .invoice-detail-card,.invoice-detail-page .invoice-information-shell{border:1px solid #e9e6df!important;border-radius:10px!important;background:white!important;box-shadow:none!important}
.invoice-detail-page :is(.invoice-summary-title,.invoice-items-reference-header){padding:18px 20px!important;border-bottom:1px solid #eeeae3!important}.invoice-detail-page :is(h2,h3){font-size:16px!important;font-weight:600!important}.invoice-detail-page .invoice-purchase-chip{background:#f5efff!important;color:#8955cf!important;border:0!important;font-size:12px!important}
.invoice-detail-page .invoice-update-strip{background:#faf8f4!important;color:#6b604e!important;padding:12px 20px!important}.invoice-detail-page .invoice-general-details{border-color:#e9e6df!important;border-radius:8px!important;background:white!important}.invoice-detail-page .worldoffice-form-grid{gap:20px!important}.invoice-detail-page .catalog-search-control{box-shadow:none!important;min-height:44px!important;border-radius:7px!important}.invoice-detail-page .invoice-reference-table th{background:#f8f8f7!important;color:#68645f!important;font-weight:500!important;font-size:13px!important}.invoice-detail-page .invoice-reference-table td{padding:16px!important;border-color:#ecebe8!important;font-size:13px!important}.invoice-detail-page .invoice-reference-totals .is-highlight{background:#faf8f4!important}.invoice-detail-page .invoice-reference-grand-total{background:white!important;border-top:1px solid #e8e2d8!important}.invoice-detail-page .invoice-learning-notice{box-shadow:none!important;border:1px solid #e8e0f4!important;background:#fcfaff!important;border-radius:9px!important;padding:14px 18px!important}.invoice-detail-page .invoice-learning-notice strong{font-size:14px!important}.invoice-detail-page .invoice-learning-notice p{font-size:13px!important;line-height:1.6!important}.invoice-detail-page .invoice-detail-footer{background:#fff!important;border:1px solid #e9e6df!important;box-shadow:0 -3px 15px #00000005!important;border-radius:10px!important;gap:12px!important;padding:12px 16px!important}.invoice-detail-page .invoice-detail-footer .button{font-size:13px!important;min-height:44px!important;white-space:normal!important;line-height:1.4!important}.invoice-learning-confirm{display:flex;align-items:flex-start;gap:12px;padding:16px 18px;background:#fff;border:1px solid #e9e6df;border-radius:9px;color:#46413a;cursor:pointer}.invoice-learning-confirm input{width:20px;height:20px;flex-shrink:0;accent-color:#9d8967;margin:2px 0}.invoice-learning-confirm strong{display:block;font-size:14px;font-weight:500}.invoice-learning-confirm small{display:block;font-size:12px;color:#81796e;line-height:1.6;margin-top:5px}
@media(max-width:700px){.modal:has(.invoice-detail-page){width:calc(100vw - 12px)!important;max-height:calc(100dvh - 12px)!important;border-radius:10px!important}.modal:has(.invoice-detail-page)>.modal__header{padding:14px!important}.modal:has(.invoice-detail-page) .modal__body{padding:10px!important}.invoice-detail-page .worldoffice-form-grid{grid-template-columns:1fr!important}.invoice-detail-page .invoice-detail-footer{flex-wrap:wrap!important;position:sticky!important;bottom:0!important}.invoice-detail-page .invoice-detail-footer>div{display:flex!important;flex:1 1 100%!important;gap:8px!important}.invoice-detail-page .invoice-detail-footer>div>.button{flex:1!important}.invoice-detail-page .invoice-result-actions{flex-wrap:wrap!important}.invoice-detail-page .invoice-data-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.invoice-detail-page .table-scroll{overflow:auto!important}.invoice-learning-confirm{padding:14px}}
.invoice-detail-page .invoice-result-banner{background:white!important;border:1px solid #e6e4dd!important;border-left:3px solid #c2b08f!important;box-shadow:none!important;border-radius:9px!important;padding:16px 20px!important}.invoice-detail-page .invoice-result-banner.is-success{border-left-color:#6db28c!important}.invoice-detail-page .invoice-result-banner strong{font-size:16px!important}.invoice-detail-page .invoice-result-banner p{font-size:13px!important;line-height:1.6!important}.invoice-detail-page .invoice-file-code{background:#faf9f6!important;border-color:#e8e3d9!important;font-size:11px!important}
/* Expanded preparation workspace and explicit document-specific fiscal editing. */
.modal:has(.invoice-detail-page){width:calc(100vw - 24px)!important;max-width:1760px!important;max-height:calc(100dvh - 24px)!important;min-height:calc(100dvh - 24px)!important}.modal:has(.invoice-detail-page)>.modal__header{padding:16px 24px!important}.modal:has(.invoice-detail-page) .modal__body{padding:20px 24px!important}.invoice-detail-page .invoice-reference-table{min-width:1000px!important}.invoice-fiscal-editor{background:#fff;border:1px solid #e7e4df;border-radius:10px;min-width:0}.invoice-fiscal-editor>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid #ece9e3}.invoice-fiscal-editor h3{margin:0 0 8px!important;font-size:17px!important}.invoice-fiscal-editor p{font-size:13px;line-height:1.6;color:#777168;margin:6px 0}.invoice-fiscal-source{display:flex;flex-wrap:wrap;gap:12px 24px;padding:16px 24px;background:#faf9f6;font-size:13px}.invoice-fiscal-source strong,.invoice-fiscal-source small{flex-basis:100%}.invoice-fiscal-source small{color:#81796d;line-height:1.5}.invoice-fiscal-concept{padding:24px;border-bottom:1px solid #ece9e3;scroll-margin-top:100px}.invoice-fiscal-concept.is-excluded{opacity:.55}.invoice-fiscal-concept-title{display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:14px;margin-bottom:16px}.invoice-fiscal-concept-title>span{color:#81796d;font-size:12px}.invoice-fiscal-concept-title>small{color:#8a56c9;background:#f5efff;padding:4px 8px;border-radius:6px}.invoice-fiscal-editor label{display:flex;flex-direction:column;gap:8px;font-size:13px;color:#534d45;min-width:0}.invoice-fiscal-editor input,.invoice-fiscal-editor textarea,.invoice-fiscal-editor output{padding:12px;border:1px solid #dedbd4;border-radius:7px;min-height:44px;box-sizing:border-box;width:100%;font:inherit;color:#302e29;background:white}.invoice-fiscal-editor output{background:#fafafa}.invoice-fiscal-description{margin-bottom:18px}.invoice-fiscal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.invoice-fiscal-withholding,.invoice-fiscal-original{margin-top:18px;padding:14px 16px;border:1px solid #e9e6df;border-radius:7px}.invoice-fiscal-editor summary{cursor:pointer;font-size:13px;font-weight:500;min-height:30px}.invoice-fiscal-withholding .invoice-fiscal-grid{margin-top:16px}.invoice-fiscal-original span{font-size:12px;color:#81796d;line-height:1.6}.invoice-fiscal-editor>footer{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:24px;background:#fcfbf9}.invoice-fiscal-editor>footer span{display:block;font-size:12px;color:#81796d;margin-bottom:7px}.invoice-fiscal-editor>footer strong{font-size:16px;font-weight:600}.invoice-fiscal-export-note{padding:14px 24px!important;background:#fffcf5;border-top:1px solid #eee5d1;margin:0!important}.invoice-detail-page .invoice-reference-bottom{grid-template-columns:minmax(0,1fr) 360px!important}.invoice-detail-page .invoice-data-grid{gap:18px!important}
@media(min-width:1450px){.invoice-fiscal-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.invoice-fiscal-editor>footer{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:700px){.modal:has(.invoice-detail-page){width:calc(100vw - 8px)!important;min-height:calc(100dvh - 8px)!important;max-height:calc(100dvh - 8px)!important}.modal:has(.invoice-detail-page) .modal__body{padding:10px!important}.invoice-fiscal-grid,.invoice-fiscal-editor>footer{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-fiscal-editor>header{align-items:flex-start;flex-direction:column}.invoice-fiscal-editor>header,.invoice-fiscal-concept,.invoice-fiscal-source,.invoice-fiscal-editor>footer{padding:16px}.invoice-detail-page .invoice-reference-bottom{grid-template-columns:1fr!important}}
.app-shell.modern-shell .cifrato-invoices-page .invoice-completion--complete{background:#e9faf2!important;color:#16825b!important;border:0!important}.app-shell.modern-shell .cifrato-invoices-page .invoice-completion--incomplete{background:#faf5e9!important;color:#95702c!important;border:0!important}.app-shell.modern-shell .cifrato-invoices-page .invoice-completion--ai{background:transparent!important;color:#9562ca!important;border:0!important;min-width:28px!important;padding:4px!important;box-shadow:none!important}.invoice-completion--ai .invoice-ai-mark{display:inline-flex!important;align-items:center;justify-content:center;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;min-width:0!important}.invoice-completion--complete::before,.invoice-completion--complete::after,.invoice-completion--incomplete::before,.invoice-completion--incomplete::after{content:none!important}
