.anaf-control-center {
  --anaf-cc-ink: #172033;
  --anaf-cc-muted: #69758b;
  --anaf-cc-line: #dce4ef;
  --anaf-cc-blue: #275cce;
  --anaf-cc-green: #148061;
  --anaf-cc-amber: #b87412;
  --anaf-cc-red: #ba3d4e;
  color: var(--anaf-cc-ink);
}

/* ANAF source upload */
.anaf-ops-source-file input[type="file"] {
  width: 100%;
  min-height: 38px;
  padding: 7px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  font-size: 13px;
}

.anaf-ops-source-file small { color: #64748b; font-size: 12px; }
.anaf-ops-source-summary { display: grid; grid-template-columns: 120px 1fr; gap: 7px 12px; padding: 12px; border: 1px solid #dce4ef; border-radius: 8px; background: #f8fafc; font-size: 13px; }
.anaf-ops-source-summary span { color: #64748b; font-size: 12px; }

/* ANAF signing station management */
.anaf-stations-page {
  display: grid;
  gap: 14px;
  color: var(--ink, #10233f);
}

.anaf-stations-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line, #d9e2ef);
  border-radius: 10px;
  background: #fff;
}

.anaf-stations-head > div:first-child { min-width: 0; }
.anaf-stations-head > div:last-child { display: flex; gap: 8px; flex: 0 0 auto; }
.anaf-stations-head span { color: #315f9f; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.anaf-stations-head h1 { margin: 3px 0 4px; font-size: 24px; line-height: 1.15; }
.anaf-stations-head p { max-width: 850px; margin: 0; color: #53657d; font-size: 14px; }

.anaf-stations-safety,
.anaf-stations-error {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #f1d58d;
  border-radius: 8px;
  background: #fff9e9;
  color: #72520a;
  font-size: 13px;
}

.anaf-stations-safety strong { flex: 0 0 auto; }
.anaf-stations-error { border-color: #efb0b0; background: #fff1f1; color: #9b2222; }
.anaf-stations-safety.danger { border-color: #efb0b0; background: #fff1f1; color: #9b2222; }
.anaf-stations-safety code { margin-left: auto; color: inherit; font-size: 12px; overflow-wrap: anywhere; }

.anaf-stations-enrollment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid #91d7b0;
  border-radius: 8px;
  background: #effcf5;
}

.anaf-stations-enrollment > div:first-child { display: grid; gap: 4px; min-width: 0; }
.anaf-stations-enrollment > div:last-child { display: flex; gap: 8px; flex: 0 0 auto; }
.anaf-stations-enrollment span { color: #17643b; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.anaf-stations-enrollment strong { overflow-wrap: anywhere; font: 700 16px/1.35 ui-monospace, SFMono-Regular, Consolas, monospace; }
.anaf-stations-enrollment small { color: #456657; font-size: 12px; }

.anaf-stations-table-panel {
  overflow: hidden;
  border: 1px solid var(--line, #d9e2ef);
  border-radius: 9px;
  background: #fff;
}

.anaf-stations-table-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line, #d9e2ef);
  background: #f8fafc;
  font-size: 13px;
}

.anaf-stations-table-meta span { color: #66778d; font-size: 12px; }
.anaf-stations-table-wrap { overflow: auto; max-width: 100%; }
.anaf-stations-table { width: 100%; min-width: 1420px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.anaf-stations-table th,
.anaf-stations-table td { padding: 8px 10px; border-right: 1px solid #edf1f6; border-bottom: 1px solid #e6ebf2; vertical-align: middle; text-align: left; font-size: 12px; }
.anaf-stations-table th { position: sticky; top: 0; z-index: 2; height: 40px; background: #f2f6fb; color: #435873; font-weight: 800; white-space: nowrap; }
.anaf-stations-table tr:last-child td { border-bottom: 0; }
.anaf-stations-table td:nth-child(1) { width: 190px; }
.anaf-stations-table td:nth-child(2) { width: 190px; }
.anaf-stations-table td:nth-child(5) { width: 210px; }
.anaf-stations-table td:nth-child(7) { width: 200px; }
.anaf-stations-table td strong,
.anaf-stations-table td small { display: block; }
.anaf-stations-table td small { margin-top: 2px; color: #718096; font-size: 12px; }
.anaf-stations-table code { font-size: 12px; }
.anaf-stations-number { text-align: right !important; font-variant-numeric: tabular-nums; font-weight: 800; }
.anaf-stations-actions { position: sticky; right: 0; z-index: 1; background: #fff; box-shadow: -8px 0 12px -12px #2d405c; }

.anaf-station-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf1f6;
  color: #53657d;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.anaf-station-badge.success { background: #dcf8e8; color: #17643b; }
.anaf-station-badge.warning { background: #fff1c8; color: #76530a; }
.anaf-station-badge.danger { background: #ffe0e0; color: #9b2222; }

.anaf-routing-workspace { display: grid; min-width: 0; gap: 10px; }
.anaf-routing-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid #cdd9e9;
  border-radius: 9px;
  background: linear-gradient(135deg, #f4f8ff, #fff 64%, #f2fbf7);
}
.anaf-routing-title > div { min-width: 0; }
.anaf-routing-title span { color: #315f9f; font-size: 12px; font-weight: 800; letter-spacing: .055em; }
.anaf-routing-title h2 { margin: 3px 0 2px; color: #1c2b45; font-size: 18px; }
.anaf-routing-title p { margin: 0; color: #5d6d83; font-size: 12px; line-height: 1.45; }
.anaf-routing-title .btn { flex: 0 0 auto; }
.anaf-routing-title .btn:disabled { cursor: not-allowed; opacity: .5; }
.anaf-routing-panel { min-width: 0; }
.anaf-routing-meta > div { display: grid; gap: 2px; }
.anaf-routing-meta label { display: flex; align-items: center; gap: 7px; margin: 0; color: #52647d; font-size: 12px; font-weight: 700; }
.anaf-routing-meta select {
  min-width: 240px;
  height: 34px;
  margin: 0;
  border: 1px solid #c8d5e5;
  border-radius: 7px;
  background: #fff;
  color: #263751;
  font-size: 12px;
}
.anaf-routing-inline-error { padding: 8px 12px; border-bottom: 1px solid #efc3c3; background: #fff2f2; color: #9b2222; font-size: 12px; }
.anaf-routing-table { min-width: 1120px; }
.anaf-routing-table th,
.anaf-routing-table td { height: 43px; padding: 6px 9px; }
.anaf-routing-table tbody tr:hover td { background: #f5f8fd; }
.anaf-routing-table td:first-child { width: 225px; }
.anaf-routing-table td:nth-child(2) { width: 180px; }
.anaf-routing-table td:nth-child(3) { width: 180px; }
.anaf-routing-table td:nth-child(7) { width: 220px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anaf-routing-table td:last-child { width: 145px; }
.anaf-routing-evidence { display: block; color: #34475f; font-size: 12px; font-weight: 750; }
.anaf-routing-table code { display: block; color: #263751; font-size: 12px; font-weight: 700; }
.anaf-routing-table .btn { white-space: nowrap; }
.anaf-stations-table-wrap:focus-visible,
.anaf-routing-meta select:focus-visible,
.anaf-routing-table .btn:focus-visible,
.anaf-routing-title .btn:focus-visible { outline: 3px solid rgba(45, 101, 199, .28); outline-offset: 2px; }

.anaf-stations-empty { display: grid; gap: 4px; place-items: center; min-height: 100px; color: #64748b; font-size: 13px; }
.anaf-stations-empty.danger { color: #9b2222; }
.anaf-stations-help { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 14px 16px; border: 1px solid var(--line, #d9e2ef); border-radius: 9px; background: #fff; font-size: 13px; }
.anaf-stations-help ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding-left: 20px; }
.anaf-stations-help li { padding-left: 2px; color: #53657d; font-size: 13px; }

@media (max-width: 980px) {
  .anaf-stations-head { align-items: stretch; flex-direction: column; }
  .anaf-stations-head > div:last-child { flex-wrap: wrap; }
  .anaf-stations-enrollment { align-items: stretch; flex-direction: column; }
  .anaf-routing-title { align-items: flex-start; flex-direction: column; }
  .anaf-routing-title .btn { width: 100%; }
  .anaf-routing-meta { align-items: flex-start; flex-direction: column; }
  .anaf-routing-meta label { width: 100%; justify-content: space-between; }
  .anaf-routing-meta select { min-width: min(100%, 360px); }
  .anaf-stations-help { grid-template-columns: 1fr; }
  .anaf-stations-help ol { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .anaf-stations-help ol { grid-template-columns: 1fr; }
  .anaf-stations-safety { align-items: flex-start; flex-direction: column; }
  .anaf-stations-safety code { margin-left: 0; }
  .anaf-stations-enrollment > div:last-child { flex-wrap: wrap; }
  .anaf-routing-meta label { align-items: stretch; flex-direction: column; }
  .anaf-routing-meta select { width: 100%; min-width: 0; }
}

.anaf-cc-shell { display: grid; gap: 15px; }
.anaf-cc-billing[hidden] { display:none; }
.anaf-cc-billing { padding:20px; color:#23334e; font-size:14px; }
.anaf-cc-billing-header { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.anaf-cc-billing h2 { margin:0 0 6px; font-size:19px; color:#172d4b; }
.anaf-cc-billing p { margin:5px 0; line-height:1.5; }
.anaf-cc-billing-header p { max-width:780px; color:#66758a; font-size:13px; }
.anaf-cc-billing-actions, .anaf-cc-billing-summary, .anaf-cc-billing-selection, .anaf-cc-billing-pagination { display:flex; flex-wrap:wrap; align-items:center; gap:9px; }
.anaf-cc-billing-actions { justify-content:flex-end; flex-shrink:0; }
.anaf-cc-billing .btn { font-size:13px; min-height:35px; white-space:normal; }
.anaf-cc-billing .btn:disabled { cursor:not-allowed; opacity:.55; }
.anaf-cc-billing-summary { margin:18px 0 12px; }
.anaf-cc-billing-filter { padding:8px 13px; border:1px solid #d9e2ef; border-radius:8px; background:#f8fafc; color:#506078; font-size:13px; font-weight:600; cursor:pointer; }
.anaf-cc-billing-filter[aria-pressed="true"] { color:#174fb5; border-color:#a8c3f3; background:#edf4ff; }
.anaf-cc-billing-selection { margin-bottom:12px; font-size:13px; }
.anaf-cc-billing-selection strong { margin-left:auto; }
.anaf-cc-billing-table-scroll { overflow:auto; max-height:520px; border:1px solid #e0e7f1; border-radius:10px; }
.anaf-cc-billing-table { width:100%; border-collapse:collapse; table-layout:fixed; min-width:840px; font-size:13px; }
.anaf-cc-billing-table th { position:sticky; top:0; z-index:1; background:#f8fafc; color:#63728a; font-size:12px; font-weight:600; text-align:left; }
.anaf-cc-billing-table th, .anaf-cc-billing-table td { padding:11px 12px; border-bottom:1px solid #e9eef5; vertical-align:top; overflow-wrap:anywhere; }
.anaf-cc-billing-table tr:last-child td { border-bottom:0; }
.anaf-cc-billing-table th:first-child { width:68px; }
.anaf-cc-billing-table th:nth-child(2) { width:23%; }
.anaf-cc-billing-table th:nth-child(3) { width:35%; }
.anaf-cc-billing-table th:nth-child(5) { width:128px; }
.anaf-cc-billing-table input[type="checkbox"] { width:18px; height:18px; margin:3px 0; accent-color:#275cce; }
.anaf-cc-billing-company > strong, .anaf-cc-billing-company > span, .anaf-cc-billing-table td > small { display:block; }
.anaf-cc-billing-company > span, .anaf-cc-billing-table td > small { margin-top:4px; color:#718098; font-size:12px; }
.anaf-cc-billing-diff { display:grid; gap:7px; line-height:1.45; }
.anaf-cc-billing-change { display:grid; gap:2px; }
.anaf-cc-billing-change:has(.before) { grid-template-columns:minmax(85px,.8fr) minmax(0,1fr) minmax(0,1.2fr); gap:4px 10px; }
.anaf-cc-billing-change > strong { color:#526179; font-size:12px; font-weight:600; }
.anaf-cc-billing-change .before { color:#768096; }
.anaf-cc-billing-change .after { color:#1e3d5c; }
.anaf-cc-billing-diff details { border-top:1px solid #edf1f6; padding-top:6px; }
.anaf-cc-billing summary { cursor:pointer; color:#476586; font-size:12px; line-height:1.5; }
.anaf-cc-billing-affected { margin-top:7px; }
.anaf-cc-billing-affected span { display:block; color:#6e7c8f; padding:3px 0; font-size:12px; }
.anaf-cc-billing-status { display:inline-block; border-radius:6px; padding:4px 7px; background:#fff3de; color:#925b0d; font-size:12px; }
.anaf-cc-billing-status.ready { background:#eef5ff; color:#285ba2; }
.anaf-cc-billing-status.active { background:#eef9f3; color:#1a734e; }
.anaf-cc-billing-footer { display:flex; flex-wrap:wrap; align-items:center; gap:10px 15px; margin-top:14px; padding:13px 15px; border:1px solid #dbe5f3; border-radius:10px; background:#f8fbff; }
.anaf-cc-billing-footer > div, .anaf-cc-billing-footer > p { flex:1 1 420px; }
.anaf-cc-billing-footer p { color:#61728b; font-size:13px; }
.anaf-cc-billing-footer > div > strong { font-size:14px; }
.anaf-cc-billing-pagination { justify-content:flex-end; margin-top:10px; font-size:13px; }
.anaf-cc-billing-notice { padding:10px 12px; border-radius:8px; background:#fff8e9; color:#906014; font-size:13px; }
.anaf-cc-billing-notice.danger { background:#fff0f1; color:#9f3547; }
.anaf-cc-billing-notice.success { background:#edf9f3; color:#176c4f; }
.anaf-cc-billing-notice.neutral { background:#f2f6fc; color:#54718d; }
.anaf-cc-billing-help { padding:14px 0; color:#738097; font-size:13px; }
.anaf-cc-billing progress { width:100%; height:7px; accent-color:#275cce; }
.anaf-cc-billing-results { padding:10px 0; }
.anaf-cc-billing-results summary { font-size:13px; }
.anaf-cc-billing-results ul { max-height:240px; overflow:auto; padding-left:20px; font-size:13px; }
.anaf-cc-billing-results li { padding:4px 0; }
@media(max-width:900px) {
  .anaf-cc-billing-header { flex-direction:column; }
  .anaf-cc-billing-actions { justify-content:flex-start; flex-wrap:wrap; }
}
@media(max-width:620px) {
  .anaf-cc-billing { padding:14px 12px; }
  .anaf-cc-billing h2 { font-size:18px; }
  .anaf-cc-billing-table { display:block; min-width:0; }
  .anaf-cc-billing-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .anaf-cc-billing-table tbody { display:block; }
  .anaf-cc-billing-table tr { display:grid; grid-template-columns:24px minmax(0,1fr); gap:8px; padding:13px 10px; border-bottom:1px solid #e1e8f2; }
  .anaf-cc-billing-table tr:last-child { border-bottom:0; }
  .anaf-cc-billing-table td { display:block; grid-column:2; padding:0; border:0; }
  .anaf-cc-billing-table td:first-child { grid-column:1; grid-row:1 / span 4; }
  .anaf-cc-billing-selection strong { width:100%; margin-left:0; }
  .anaf-cc-billing-change:has(.before) { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .anaf-cc-billing-change:has(.before) > strong { grid-column:1 / -1; }
  .anaf-cc-billing-footer { padding:12px; }
  .anaf-cc-billing-footer > .btn { flex:1 1 100%; }
}
.anaf-cc-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 138px;
  padding: 25px 28px;
  border: 1px solid #cfdcf0;
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 12%, rgba(71, 118, 220, .18), transparent 31%),
    linear-gradient(135deg, #f3f7ff, #fff 59%, #f0fbf7);
  box-shadow: 0 14px 34px rgba(38, 67, 116, .07);
}
.anaf-cc-hero h1 { margin: 7px 0 5px; font-size: clamp(25px, 3vw, 34px); color: #15213a; }
.anaf-cc-hero p { max-width: 720px; margin: 0; color: var(--anaf-cc-muted); line-height: 1.5; }
.anaf-cc-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 10px;
  border: 1px solid #cad9f5;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #3159ad;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.anaf-cc-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.anaf-cc-kpi {
  position: relative;
  display: grid;
  min-height: 104px;
  gap: 5px;
  overflow: hidden;
  padding: 14px 15px;
  border: 1px solid var(--anaf-cc-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(27, 43, 72, .045);
}
.anaf-cc-kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--anaf-kpi-tone, #4775d5); }
.anaf-cc-kpi span { color: #5c687d; font-size: 11px; font-weight: 650; }
.anaf-cc-kpi strong { color: #1d2a43; font-size: 25px; line-height: 1; font-variant-numeric: tabular-nums; }
.anaf-cc-kpi small { align-self: end; color: #7b8799; font-size: 10px; line-height: 1.35; }
.anaf-cc-kpi.indigo { --anaf-kpi-tone: #7157c9; }
.anaf-cc-kpi.cyan { --anaf-kpi-tone: #1498aa; }
.anaf-cc-kpi.violet { --anaf-kpi-tone: #9b4eb6; }
.anaf-cc-kpi.green { --anaf-kpi-tone: #1b8a69; }
.anaf-cc-kpi.amber { --anaf-kpi-tone: #ce8316; border-color: #ecd5ac; background: #fffaf1; }

.anaf-cc-panel { border: 1px solid var(--anaf-cc-line); border-radius: 13px; background: #fff; box-shadow: 0 10px 27px rgba(28, 45, 75, .045); }
.anaf-cc-search-panel { padding: 14px 16px; }
.anaf-cc-search { display: grid; grid-template-columns: minmax(270px, 1.65fr) minmax(150px, .75fr) minmax(150px, .75fr) minmax(170px, .85fr) auto; gap: 10px; align-items: end; }
.anaf-cc-search label { min-width: 0; margin: 0; }
.anaf-cc-search label > span { display: block; margin-bottom: 5px; color: #4d5c74; font-size: 10px; font-weight: 700; }
.anaf-cc-search input, .anaf-cc-search select { height: 40px; border-color: #d3deec; background: #fbfcfe; font-size: 12px; }
.anaf-cc-query input { border-color: #aac1eb; background: #fff; box-shadow: 0 6px 14px rgba(44, 91, 184, .05); }
.anaf-cc-search-actions { display: flex; gap: 7px; }
.anaf-cc-search-actions .btn { min-height: 40px; white-space: nowrap; }

.anaf-cc-results { min-width: 0; overflow: hidden; }
.anaf-cc-results-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 17px 18px 14px; border-bottom: 1px solid #e7ecf3; }
.anaf-cc-results-head h2 { margin: 0 0 4px; color: #1d2a43; font-size: 18px; }
.anaf-cc-results-head p { margin: 0; color: var(--anaf-cc-muted); font-size: 11px; }
.anaf-cc-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }

.anaf-cc-reconciliation { overflow: hidden; }
.anaf-cc-reconciliation.hidden { display: none; }
.anaf-cc-reconcile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid #e4eaf2;
  background: linear-gradient(135deg, #f8fbff, #fff);
}
.anaf-cc-reconcile-head h2 { margin: 0 0 4px; color: #1d2a43; font-size: 16px; }
.anaf-cc-reconcile-head p { margin: 0; color: var(--anaf-cc-muted); font-size: 10px; line-height: 1.45; }
.anaf-cc-reconcile-head .btn { flex: 0 0 auto; }
.anaf-cc-reconcile-content { display: grid; gap: 13px; padding: 16px 18px 18px; }
.anaf-cc-reconcile-empty { padding: 13px 14px; border: 1px dashed #cbd8e9; border-radius: 10px; background: #f8fbff; color: #65748a; font-size: 10px; line-height: 1.5; }
.anaf-cc-reconcile-message { margin: 13px 18px 0; padding: 10px 12px; border: 1px solid; border-radius: 9px; font-size: 10px; line-height: 1.45; }
.anaf-cc-reconcile-message.danger { border-color: #ecc6cc; background: #fff4f5; color: #a43747; }
.anaf-cc-reconcile-message.success { border-color: #bfe1d5; background: #eff9f5; color: #177659; }
.anaf-cc-reconcile-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 15px; color: #748095; font-size: 9px; }
.anaf-cc-reconcile-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.anaf-cc-reconcile-summary > div { display: grid; min-height: 82px; align-content: center; gap: 4px; padding: 10px 11px; border: 1px solid #dce5f0; border-radius: 10px; background: #fafcfe; }
.anaf-cc-reconcile-summary > div.warning { border-color: #ead4a9; background: #fff9ed; }
.anaf-cc-reconcile-summary > div.success { border-color: #c8e3da; background: #f2faf7; }
.anaf-cc-reconcile-summary span { color: #66748a; font-size: 9px; font-weight: 650; }
.anaf-cc-reconcile-summary strong { color: #253550; font-size: 19px; font-variant-numeric: tabular-nums; }
.anaf-cc-reconcile-summary small { color: #798598; font-size: 8px; line-height: 1.35; }
.anaf-cc-reconcile-safety { display: grid; gap: 4px; padding: 11px 12px; border: 1px solid; border-radius: 10px; }
.anaf-cc-reconcile-safety strong { font-size: 10px; }
.anaf-cc-reconcile-safety span { font-size: 9px; line-height: 1.5; }
.anaf-cc-reconcile-safety.success { border-color: #bfe1d5; background: #eff9f5; color: #177659; }
.anaf-cc-reconcile-safety.danger { border-color: #e5adb6; background: #fff1f3; color: #9c293d; }
.anaf-cc-reconcile-details { border: 1px solid #dce4ef; border-radius: 10px; background: #fff; }
.anaf-cc-reconcile-details summary { padding: 10px 12px; cursor: pointer; color: #40506a; font-size: 10px; font-weight: 700; }
.anaf-cc-reconcile-details[open] summary { border-bottom: 1px solid #e8edf3; }
.anaf-cc-reconcile-issues { display: grid; gap: 0; max-height: 310px; overflow: auto; margin: 0; padding: 0; list-style: none; }
.anaf-cc-reconcile-issues li { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(220px, 1.2fr); gap: 12px; padding: 9px 12px; border-bottom: 1px solid #edf1f5; }
.anaf-cc-reconcile-issues li:last-child { border-bottom: 0; }
.anaf-cc-reconcile-issues li > div { display: grid; gap: 2px; }
.anaf-cc-reconcile-issues strong { color: #3a4962; font-size: 9px; }
.anaf-cc-reconcile-issues span, .anaf-cc-reconcile-issues small { color: #788599; font-size: 8px; line-height: 1.4; overflow-wrap: anywhere; }
.anaf-cc-reconcile-more { margin: 0; padding: 8px 12px; border-top: 1px solid #edf1f5; color: #778398; font-size: 8px; }
.anaf-cc-reconcile-confirm { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px 15px; padding: 12px; border: 1px solid #cbd9ed; border-radius: 10px; background: #f7faff; }
.anaf-cc-reconcile-confirm label { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: #46566f; font-size: 9px; line-height: 1.45; }
.anaf-cc-reconcile-confirm label.danger { color: #9c293d; }
.anaf-cc-reconcile-confirm input { width: 15px; height: 15px; flex: 0 0 auto; margin: 0; accent-color: #275cce; }
.anaf-cc-reconcile-confirm .btn { grid-column: 2; grid-row: 1 / span 2; min-width: 180px; }
.anaf-cc-reconcile-confirm small { grid-column: 1 / -1; color: #708096; font-size: 8px; }
.anaf-cc-reconcile-confirm small.danger { color: #a43747; }
.anaf-cc-reconcile-confirm .btn:disabled, .anaf-cc-reconcile-head .btn:disabled { cursor: not-allowed; opacity: .52; }
.anaf-cc-reconcile-readonly { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid #dce4ef; border-radius: 9px; background: #f8fafc; }
.anaf-cc-reconcile-readonly strong { color: #44536b; font-size: 9px; }
.anaf-cc-reconcile-readonly span { color: #768297; font-size: 9px; }

.anaf-cc-badge, .anaf-cc-service, .anaf-cc-source, .anaf-cc-owner, .anaf-cc-more {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 999px;
  white-space: nowrap;
}
.anaf-cc-badge { gap: 6px; min-height: 25px; padding: 4px 8px; border: 1px solid #d9e0ea; background: #f7f8fa; color: #5e6879; font-size: 9px; font-weight: 650; }
.anaf-cc-badge i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: currentColor; opacity: .78; }
.anaf-cc-badge.success { border-color: #bfe1d5; background: #eff9f5; color: #177659; }
.anaf-cc-badge.warning { border-color: #ead4a9; background: #fff8e9; color: #9a6212; }
.anaf-cc-badge.danger { border-color: #ecc7cd; background: #fff3f4; color: #a83747; }
.anaf-cc-badge.neutral { border-color: #dce2ea; background: #f7f8fa; color: #687386; }

.anaf-cc-table-scroll { width: 100%; overflow: auto; }
.anaf-cc-table { width: 100%; min-width: 1120px; border-collapse: collapse; }
.anaf-cc-table th { padding: 10px 12px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; color: #69758a; font-size: 9px; font-weight: 750; letter-spacing: .045em; text-align: left; text-transform: uppercase; }
.anaf-cc-table td { padding: 12px; border-bottom: 1px solid #edf0f4; color: #3c4960; font-size: 11px; vertical-align: top; }
.anaf-cc-table tbody tr:hover { background: #fbfdff; }
.anaf-cc-table tbody tr:last-child td { border-bottom: 0; }
.anaf-cc-table th:nth-child(1) { width: 22%; }
.anaf-cc-table th:nth-child(2) { width: 15%; }
.anaf-cc-table th:nth-child(3) { width: 14%; }
.anaf-cc-table th:nth-child(4) { width: 13%; }
.anaf-cc-table th:nth-child(5) { width: 22%; }
.anaf-cc-table th:nth-child(6) { width: 14%; }

.anaf-cc-company-cell { display: grid; align-content: start; gap: 4px; }
.anaf-cc-company-cell > strong { overflow-wrap: anywhere; color: #24314a; font-size: 12px; font-weight: 650; line-height: 1.35; }
.anaf-cc-company-cell > span:not(.anaf-cc-badge) { color: #768297; font-size: 10px; }
.anaf-cc-company-cell > .anaf-cc-badge { width: max-content; margin-top: 3px; }
.anaf-cc-chip-list, .anaf-cc-owner-list, .anaf-cc-integrations { display: flex; flex-wrap: wrap; gap: 5px; align-items: flex-start; }
.anaf-cc-integrations { display: grid; justify-items: start; }
.anaf-cc-service { gap: 5px; min-height: 25px; padding: 4px 8px; border: 1px solid #d1dcf0; background: #f2f6fd; color: #3e5e9c; font-size: 9px; font-weight: 650; }
.anaf-cc-service.registered_office { border-color: #c2e3e5; background: #effafa; color: #26777e; }
.anaf-cc-service.consulting { border-color: #dfd0eb; background: #faf4fd; color: #76508c; }
.anaf-cc-service small, .anaf-cc-source small, .anaf-cc-owner small { padding-left: 5px; border-left: 1px solid currentColor; color: inherit; font-size: 8px; opacity: .72; }
.anaf-cc-source { gap: 5px; min-height: 24px; padding: 4px 7px; border: 1px solid #e0e5ec; background: #fafbfc; color: #667287; font-size: 9px; }
.anaf-cc-owner { gap: 5px; min-height: 24px; padding: 4px 7px; border: 1px solid #dce3ec; background: #f8fafc; color: #4e5d73; font-size: 9px; }
.anaf-cc-owner.primary { border-color: #c7d7f2; background: #f1f6ff; color: #315b9d; }
.anaf-cc-owner.unmapped { border-color: #ead4a9; background: #fff8e9; color: #9a6212; }
.anaf-cc-more { min-height: 24px; padding: 4px 7px; background: #eef1f5; color: #657084; font-size: 9px; font-weight: 700; }
.anaf-cc-empty-inline { color: #8993a3; font-size: 10px; font-style: italic; }
.anaf-cc-empty-inline.warning { color: #a66b17; }
.anaf-cc-date { color: #717d90 !important; font-size: 10px !important; line-height: 1.4; }

.anaf-cc-notice { display: flex; align-items: center; gap: 10px; margin: 12px 16px 0; padding: 10px 12px; border: 1px solid #e8d2a8; border-radius: 9px; background: #fff9ec; color: #8e5d18; }
.anaf-cc-notice.danger { border-color: #ecc6cc; background: #fff4f5; color: #a43747; }
.anaf-cc-notice strong { font-size: 11px; }
.anaf-cc-notice span { min-width: 0; flex: 1; font-size: 10px; }
.anaf-cc-empty, .anaf-cc-loading { display: grid; justify-items: center; gap: 5px; min-height: 150px; place-content: center; color: #788498; text-align: center; }
.anaf-cc-empty strong { color: #47556d; font-size: 13px; }
.anaf-cc-empty span, .anaf-cc-loading span { font-size: 10px; }
.anaf-cc-loading i { width: 24px; height: 24px; border: 3px solid #dce6f6; border-top-color: #3467ca; border-radius: 50%; animation: anafCcSpin .75s linear infinite; }
@keyframes anafCcSpin { to { transform: rotate(360deg); } }

.anaf-cc-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 53px; padding: 10px 16px; border-top: 1px solid #e7ecf2; background: #fafbfc; color: #657186; font-size: 10px; }
.anaf-cc-pagination-actions { display: flex; align-items: center; gap: 9px; }
.anaf-cc-pagination-actions span { min-width: 110px; text-align: center; }
.anaf-cc-pagination .btn:disabled, .anaf-cc-hero .btn:disabled { cursor: not-allowed; opacity: .5; }

.anaf-decl-hero-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.anaf-decl-local-banner {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 7px 13px;
  padding: 12px 15px;
  border: 1px solid #bcd9d0;
  border-radius: 11px;
  background: #f0faf7;
  color: #236650;
}
.anaf-decl-local-banner strong { font-size: 11px; }
.anaf-decl-local-banner span { color: #4c7569; font-size: 10px; line-height: 1.45; }
.anaf-decl-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.anaf-decl-table { min-width: 1260px; }
.anaf-decl-table th:nth-child(1) { width: 18%; }
.anaf-decl-table th:nth-child(2) { width: 9%; }
.anaf-decl-table th:nth-child(3) { width: 9%; }
.anaf-decl-table th:nth-child(4) { width: 9%; }
.anaf-decl-table th:nth-child(5) { width: 18%; }
.anaf-decl-table th:nth-child(6) { width: 12%; }
.anaf-decl-block { display: block; margin-top: 3px; color: #7b8798; font-size: 9px; }

.anaf-decl-overlay {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  overflow: auto;
  padding: clamp(18px, 5vh, 48px) 18px;
  place-items: start center;
  background: rgba(18, 29, 48, .62);
  backdrop-filter: blur(3px);
}
.anaf-decl-overlay.hidden { display: none; }
.anaf-decl-dialog {
  width: min(720px, 100%);
  max-height: calc(100vh - clamp(36px, 10vh, 96px));
  overflow: auto;
  border: 1px solid #d4deeb;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(13, 27, 52, .28);
}
.anaf-decl-dialog > header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #e3e9f1;
  background: rgba(255, 255, 255, .97);
}
.anaf-decl-dialog > header h2 { margin: 4px 0 0; color: #1b2942; font-size: 20px; }
.anaf-decl-dialog-warning { margin: 16px 20px 0; padding: 10px 12px; border: 1px solid #ead4a9; border-radius: 9px; background: #fff8e9; color: #8b5b17; font-size: 10px; line-height: 1.45; }
.anaf-decl-upload-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 18px 20px 20px; }
.anaf-decl-upload-form label { min-width: 0; margin: 0; }
.anaf-decl-upload-form label > span { display: block; margin-bottom: 6px; color: #46556d; font-size: 10px; font-weight: 700; }
.anaf-decl-upload-form input, .anaf-decl-upload-form select { width: 100%; min-height: 41px; border-color: #d3deec; background: #fbfcfe; font-size: 12px; }
.anaf-decl-upload-form input[type="file"] { min-height: 46px; padding: 8px; background: #fff; }
.anaf-decl-upload-form small { display: block; margin-top: 5px; color: #788499; font-size: 9px; line-height: 1.4; }
.anaf-decl-file-field, .anaf-decl-form-error, .anaf-decl-upload-form > footer { grid-column: 1 / -1; }
.anaf-decl-file-field { padding: 12px; border: 1px dashed #b7c9e4; border-radius: 10px; background: #f7faff; }
.anaf-decl-form-error { min-height: 18px; color: #a83747; font-size: 10px; font-weight: 650; }
.anaf-decl-upload-form > footer { display: flex; justify-content: flex-end; gap: 8px; padding-top: 3px; }
.anaf-decl-upload-form button:disabled { cursor: wait; opacity: .62; }

.anaf-decl-detail-dialog { width: min(920px, 100%); }
.anaf-decl-detail-dialog [data-anaf-decl-detail-body] { padding: 20px; }
.anaf-decl-detail-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.anaf-decl-detail-summary > div { display: grid; align-content: start; gap: 5px; min-height: 94px; padding: 13px 14px; border: 1px solid #e0e6ee; border-radius: 10px; background: #fafbfd; }
.anaf-decl-detail-summary > div > span:first-child { color: #788397; font-size: 9px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.anaf-decl-detail-summary strong { overflow-wrap: anywhere; color: #26344d; font-size: 12px; }
.anaf-decl-detail-summary small { color: #748095; font-size: 9px; line-height: 1.4; }
.anaf-decl-detail-summary .anaf-cc-badge { width: max-content; }
.anaf-decl-detail-section { margin-top: 20px; }
.anaf-decl-detail-section h3 { margin: 0 0 4px; color: #26344d; font-size: 14px; }
.anaf-decl-detail-section > p { margin: 0 0 10px; color: #748095; font-size: 10px; line-height: 1.45; }
.anaf-decl-artifact-card { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(260px, 1.4fr) auto; align-items: center; gap: 12px; padding: 13px; border: 1px solid #dce5f0; border-radius: 10px; background: #f8fbff; }
.anaf-decl-artifact-card > div { display: grid; gap: 4px; min-width: 0; }
.anaf-decl-artifact-card strong { overflow-wrap: anywhere; color: #2b3a53; font-size: 11px; }
.anaf-decl-artifact-card span { color: #748095; font-size: 9px; }
.anaf-decl-artifact-card code { min-width: 0; overflow-wrap: anywhere; color: #52627a; font-size: 9px; line-height: 1.5; }
.anaf-decl-timeline { display: grid; gap: 0; margin: 10px 0 0; padding: 0; list-style: none; }
.anaf-decl-timeline li { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; min-height: 50px; }
.anaf-decl-timeline li::before { content: ""; position: absolute; top: 16px; bottom: -3px; left: 6px; width: 1px; background: #cfdae9; }
.anaf-decl-timeline li:last-child::before { display: none; }
.anaf-decl-timeline li > i { position: relative; z-index: 1; width: 13px; height: 13px; margin-top: 2px; border: 3px solid #e9f0fc; border-radius: 50%; background: #386bc8; }
.anaf-decl-timeline li > div { display: grid; align-content: start; gap: 4px; padding-bottom: 12px; }
.anaf-decl-timeline strong { color: #35445d; font-size: 10px; }
.anaf-decl-timeline span { color: #7a8698; font-size: 9px; }

.anaf-decl-validation-card { border: 1px solid #dce5f2; border-radius: 12px; padding: 12px 14px; background: #f8fbff; display: grid; gap: 7px; margin-top: 9px; }
.anaf-decl-validation-card > div { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.anaf-decl-validation-card p, .anaf-decl-validation-card small { margin: 0; color: #748095; }
.anaf-decl-inbox-card { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; padding: 12px; border: 1px solid #cfe0f5; border-radius: 12px; background: #f5f9ff; }
.anaf-decl-inbox-card > div { display: grid; align-content: start; gap: 5px; min-width: 0; }
.anaf-decl-inbox-card > div > span:first-child { color: #788397; font-size: 9px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.anaf-decl-inbox-card strong, .anaf-decl-inbox-card small { overflow-wrap: anywhere; }
.anaf-decl-inbox-card strong { color: #26344d; font-size: 10px; }
.anaf-decl-inbox-card small { color: #748095; font-size: 9px; }
.anaf-decl-inbox-card .anaf-cc-badge { width: max-content; }
.anaf-cc-kpi.neutral { --anaf-kpi-tone: #8792a3; background: #f9fafb; }
.anaf-cc-kpi.cyan { --anaf-kpi-tone: #168aa0; }
.anaf-cc-badge.blue { border-color: #c9d9f4; background: #f0f5ff; color: #315fae; }

.anaf-decl-stage-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(145px, 1fr));
  gap: 8px;
  overflow-x: auto;
  padding: 2px 1px 5px;
  scrollbar-width: thin;
}
.anaf-decl-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  min-width: 145px;
  min-height: 72px;
  padding: 11px 12px;
  border: 1px solid #dbe3ee;
  border-radius: 11px;
  background: #fff;
  color: #536078;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.anaf-decl-stage:hover { border-color: #aac2ea; background: #fbfdff; transform: translateY(-1px); }
.anaf-decl-stage:focus-visible { outline: 3px solid rgba(48, 105, 207, .24); outline-offset: 2px; }
.anaf-decl-stage.active { border-color: #82a9e6; background: linear-gradient(145deg, #f7faff, #eaf2ff); box-shadow: inset 0 -3px 0 #316bd0; color: #214f9f; }
.anaf-decl-stage span { overflow: hidden; align-self: center; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.anaf-decl-stage strong { align-self: center; color: #21344f; font-size: 17px; font-variant-numeric: tabular-nums; }
.anaf-decl-stage small { grid-column: 1 / -1; color: #7a8698; font-size: 8px; line-height: 1.35; }
.anaf-decl-agent-disclosure { border: 1px solid #dbe5f2; border-radius: 16px; background: linear-gradient(135deg, #f8fbff, #f4f7ff); overflow: hidden; }
.anaf-decl-agent-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; cursor: pointer; list-style: none; }
.anaf-decl-agent-disclosure > summary::-webkit-details-marker { display: none; }
.anaf-decl-agent-disclosure > summary span:first-child { display: grid; gap: 3px; }
.anaf-decl-agent-disclosure > summary small { color: #748095; font-weight: 500; }
.anaf-decl-agent-disclosure-action { color: #2458d6; font-weight: 750; }
.anaf-decl-agent-disclosure[open] .anaf-decl-agent-disclosure-action::before { content: "Închide · "; }
.anaf-decl-agent-disclosure[open] > #anafWorkstationAgentRoot { padding: 0 14px 14px; }
.anaf-decl-readonly-chip { flex: 0 0 auto; padding: 5px 8px; border: 1px solid #c9ded7; border-radius: 999px; background: #f1faf7; color: #25715a; font-size: 8px; font-weight: 750; text-transform: uppercase; }

.anaf-decl-artifact-actions { display: flex !important; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; }
.anaf-decl-pdf-preview { margin-top: 10px; overflow: hidden; border: 1px solid #cdd9e8; border-radius: 12px; background: #eef2f7; }
.anaf-decl-pdf-preview.hidden { display: none; }
.anaf-decl-preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid #d8e1ec; background: #f8fafc; }
.anaf-decl-preview-bar strong { color: #2e3e58; font-size: 10px; }
.anaf-decl-preview-bar span { color: #738095; font-size: 9px; text-align: right; }
.anaf-decl-pdf-preview object { display: block; width: 100%; height: min(58vh, 620px); border: 0; background: #fff; }
.anaf-decl-preview-placeholder { margin-top: 9px; padding: 14px; border: 1px dashed #cbd7e7; border-radius: 10px; background: #f8fafc; color: #748095; font-size: 9px; text-align: center; }

.anaf-decl-metadata-form { padding: 15px; border: 1px solid #cad9ec; border-radius: 12px; background: linear-gradient(145deg, #fff, #f7faff); }
.anaf-decl-metadata-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.anaf-decl-metadata-head h3 { margin: 0 0 4px; color: #26344d; font-size: 14px; }
.anaf-decl-metadata-head p { margin: 0; color: #748095; font-size: 9px; line-height: 1.45; }
.anaf-decl-metadata-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.anaf-decl-metadata-grid > div { display: grid; min-width: 0; gap: 5px; padding: 10px 11px; border: 1px solid #dce5f1; border-radius: 9px; background: #fff; }
.anaf-decl-metadata-grid > div > span { color: #66748a; font-size: 8px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.anaf-decl-metadata-grid > div > strong { overflow-wrap: anywhere; color: #283851; font-size: 11px; }
.anaf-decl-review-history { display: grid; gap: 3px; margin-top: 10px; padding: 10px 11px; border: 1px solid #d9e4f1; border-radius: 9px; background: #f8fbff; }
.anaf-decl-review-history strong { color: #33445f; font-size: 10px; }
.anaf-decl-review-history span, .anaf-decl-review-history p { margin: 0; color: #748095; font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }
.anaf-decl-review-note { display: grid; gap: 5px; margin: 10px 0 0; }
.anaf-decl-review-note > span { color: #536078; font-size: 9px; font-weight: 700; }
.anaf-decl-review-note textarea { width: 100%; min-height: 66px; resize: vertical; border: 1px solid #cfdaea; border-radius: 9px; padding: 9px 10px; background: #fff; color: #2e3c54; font: inherit; font-size: 10px; }
.anaf-decl-review-note textarea:disabled { cursor: wait; opacity: .66; }
.anaf-decl-review-note textarea[readonly] { background: #f7f8fa; color: #526176; }
.anaf-decl-metadata-error { min-height: 18px; padding-top: 5px; color: #aa3547; font-size: 9px; font-weight: 650; }
.anaf-decl-metadata-error.conflict { margin: 7px 0; padding: 9px 10px; border: 1px solid #e8b8bf; border-radius: 8px; background: #fff3f5; }
.anaf-decl-metadata-form footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid #e3e9f1; }
.anaf-decl-metadata-form footer span { color: #69768a; font-size: 9px; }
.anaf-decl-metadata-form footer > div { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.anaf-decl-metadata-form footer .btn:disabled { cursor: wait; opacity: .58; }
.anaf-decl-action-disabled { display: inline-flex; max-width: 300px; padding: 7px 9px; border: 1px solid #dce3eb; border-radius: 8px; background: #f7f8fa; color: #6e798b !important; line-height: 1.35; }
.anaf-decl-connection { display: flex; align-items: flex-start; gap: 11px; padding: 12px 13px; border: 1px solid #d6e2ef; border-radius: 11px; background: #f8fbff; }
.anaf-decl-connection.online { border-color: #b9e1d2; background: #f1faf7; }
.anaf-decl-connection.stale { border-color: #ead3a4; background: #fff9ec; }
.anaf-decl-connection.offline { background: #f7f8fa; }
.anaf-decl-connection > div { display: grid; gap: 4px; min-width: 0; }
.anaf-decl-connection strong { color: #33445d; font-size: 10px; }
.anaf-decl-connection small { color: #748095; font-size: 9px; line-height: 1.45; }
.anaf-decl-archive-card { display: grid; gap: 9px; padding: 13px 14px; border: 1px solid #bfe0d4; border-radius: 12px; background: #f1faf7; }
.anaf-decl-archive-card > div { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.anaf-decl-archive-card strong { color: #285343; font-size: 10px; overflow-wrap: anywhere; }
.anaf-decl-archive-card small { margin-left: auto; color: #668176; font-size: 9px; }
.anaf-decl-archive-card code { overflow-wrap: anywhere; color: #3f6255; font-size: 9px; }
.anaf-decl-archive-card p { margin: 0; color: #577468; font-size: 9px; line-height: 1.45; }
.anaf-decl-unavailable-panel { display: grid; gap: 4px; margin: 12px 14px 0; padding: 12px 13px; border: 1px solid #d8dee7; border-radius: 10px; background: #f7f8fa; color: #596579; }
.anaf-decl-unavailable-panel strong { font-size: 10px; }
.anaf-decl-unavailable-panel span { font-size: 9px; line-height: 1.45; }
.anaf-workstation-panel { margin-top: 18px; }
.anaf-workstation-head, .anaf-workstation-card-main, .anaf-workstation-list-head, .anaf-workstation-card footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.anaf-workstation-head h2, .anaf-workstation-head p, .anaf-workstation-list-head h3 { margin: 0; }
.anaf-workstation-head p { color: #748095; margin-top: 5px; }
.anaf-workstation-grid { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(300px, 1fr); gap: 18px; margin: 18px 0 24px; }
.anaf-workstation-enroll, .anaf-workstation-enrollment-result { border: 1px solid #dce5f2; border-radius: 16px; padding: 17px; background: #fff; }
.anaf-workstation-enroll { display: grid; gap: 14px; }
.anaf-workstation-enroll h3, .anaf-workstation-enrollment-result h3, .anaf-workstation-enrollment-result p { margin: 0; }
.anaf-workstation-enroll label { display: grid; gap: 6px; }
.anaf-workstation-enroll select, .anaf-workstation-enroll input { width: 100%; border: 1px solid #cbd7e8; border-radius: 10px; padding: 10px 11px; background: #fff; }
.anaf-workstation-enroll fieldset { border: 1px solid #dce5f2; border-radius: 12px; padding: 12px; }
.anaf-workstation-company-list { display: grid; gap: 7px; max-height: 220px; overflow: auto; margin-top: 8px; }
.anaf-workstation-company-list label { display: flex; align-items: flex-start; gap: 9px; padding: 8px; border-radius: 9px; background: #f7f9fc; }
.anaf-workstation-company-list input { width: auto; margin-top: 3px; }
.anaf-workstation-company-list small { display: block; color: #748095; }
.anaf-workstation-enrollment-result { display: grid; align-content: start; gap: 12px; background: #f0fdf8; border-color: #94e2c2; }
.anaf-workstation-enrollment-result code { display: block; padding: 12px; border-radius: 10px; background: #102a43; color: #fff; overflow-wrap: anywhere; }
.anaf-workstation-list-head { align-items: center; margin-bottom: 10px; }
.anaf-workstation-list { display: grid; gap: 11px; }
.anaf-workstation-card { border: 1px solid #dce5f2; border-radius: 14px; padding: 14px 16px; background: #fff; }
.anaf-workstation-card.revoked { opacity: .72; background: #f8fafc; }
.anaf-workstation-card h4, .anaf-workstation-card p { margin: 5px 0 0; }
.anaf-workstation-card p, .anaf-workstation-card-main > div:last-child span, .anaf-workstation-card footer code { color: #748095; }
.anaf-workstation-card-main > div:last-child { text-align: right; }
.anaf-workstation-card-main > div:last-child span, .anaf-workstation-card-main > div:last-child strong, .anaf-workstation-card-main > div:last-child small { display: block; }
.anaf-workstation-card-main > div:last-child small { margin-top: 3px; color: #8791a1; font-size: 8px; }
.anaf-workstation-card[data-connection-state="ONLINE"] { border-color: #bfe0d4; }
.anaf-workstation-card[data-connection-state="STALE"] { border-color: #e8d2a6; background: #fffdf8; }
.anaf-workstation-scopes { display: flex; gap: 7px; flex-wrap: wrap; margin: 12px 0; }
.anaf-workstation-scopes span { padding: 5px 9px; border-radius: 999px; background: #edf3fb; font-size: .8rem; }
.anaf-workstation-card footer { align-items: center; border-top: 1px solid #edf1f6; padding-top: 11px; }

.anaf-fiscal-workspace { display: grid; gap: 15px; color: var(--anaf-cc-ink); }
.anaf-fiscal-hero { min-height: 144px; }
.anaf-fiscal-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.anaf-fiscal-trust-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border: 1px solid; border-radius: 12px; }
.anaf-fiscal-trust-banner > div { display: grid; gap: 3px; }
.anaf-fiscal-trust-banner strong { font-size: 10px; letter-spacing: .035em; }
.anaf-fiscal-trust-banner span { font-size: 9px; line-height: 1.45; }
.anaf-fiscal-trust-banner code { padding: 4px 7px; border-radius: 7px; background: rgba(255, 255, 255, .72); font-size: 8px; }
.anaf-fiscal-trust-banner.trusted { border-color: #b8dfd1; background: #effaf6; color: #1c7458; }
.anaf-fiscal-trust-banner.untrusted { border-color: #e6cf9f; background: #fff8e9; color: #8b5a14; }
.anaf-fiscal-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.anaf-fiscal-company { overflow: hidden; font-size: 14px !important; line-height: 1.25 !important; text-overflow: ellipsis; white-space: nowrap; }
.anaf-fiscal-loading { min-height: 240px; border: 1px solid #dce4ef; border-radius: 13px; background: #fff; }
.anaf-fiscal-panel { overflow: hidden; }
.anaf-fiscal-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 16px 17px; border-bottom: 1px solid #e6ebf2; }
.anaf-fiscal-panel-head h2 { margin: 0 0 4px; color: #263550; font-size: 16px; }
.anaf-fiscal-panel-head p { margin: 0; color: #728095; font-size: 9px; line-height: 1.45; }
.anaf-fiscal-vector-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; padding: 15px; }
.anaf-fiscal-vector-card { display: grid; align-content: start; gap: 8px; min-height: 126px; padding: 13px; border: 1px solid #dce5f1; border-radius: 11px; background: #f9fbfe; }
.anaf-fiscal-vector-card > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.anaf-fiscal-vector-card strong { color: #253650; font-size: 16px; }
.anaf-fiscal-vector-card p { margin: 0; color: #506078; font-size: 10px; font-weight: 700; }
.anaf-fiscal-vector-card small { color: #768398; font-size: 9px; line-height: 1.45; }
.anaf-fiscal-table { min-width: 840px; }
.anaf-fiscal-table td strong, .anaf-fiscal-table td small { display: block; }
.anaf-fiscal-table td small { margin-top: 3px; color: #7a8698; font-size: 8px; }
.anaf-fiscal-boundary { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid #d9e0ea; border-radius: 11px; background: #f8fafc; }
.anaf-fiscal-boundary strong { flex: 0 0 auto; color: #4d5b70; font-size: 9px; text-transform: uppercase; }
.anaf-fiscal-boundary span { color: #6f7c8f; font-size: 9px; line-height: 1.5; }

.anaf-module-chrome {
  display: grid;
  gap: 13px;
  margin-bottom: 15px;
  padding: 15px 17px 13px;
  border: 1px solid #cfdbec;
  border-radius: 14px;
  background:
    radial-gradient(circle at 96% 0, rgba(43, 101, 215, .12), transparent 34%),
    linear-gradient(135deg, #fff, #f6f9fe 70%);
  box-shadow: 0 12px 30px rgba(29, 54, 96, .055);
}
.anaf-module-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.anaf-module-mark {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #2c6cde, #194aab);
  box-shadow: 0 8px 17px rgba(37, 91, 198, .2);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}
.anaf-module-brand > div { display: grid; min-width: 0; gap: 2px; }
.anaf-module-brand strong { color: #1a2943; font-size: 14px; letter-spacing: -.1px; }
.anaf-module-brand small { overflow: hidden; color: #708096; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.anaf-module-safety {
  margin-left: auto;
  padding: 5px 9px;
  border: 1px solid #c6ded6;
  border-radius: 999px;
  background: #f0faf6;
  color: #237259;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.anaf-module-tabs { display: flex; align-items: stretch; gap: 5px; overflow-x: auto; padding-top: 11px; border-top: 1px solid #e4eaf3; scrollbar-width: thin; }
.anaf-module-tab {
  display: inline-flex;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #55657c;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.anaf-module-tab:hover { border-color: #cfdaeb; background: #fff; color: #254f9f; }
.anaf-module-tab.active { border-color: #aac2eb; background: #eaf2ff; color: #214faa; box-shadow: inset 0 -2px 0 #356fd5; }
.anaf-module-tab.preparing { gap: 5px; border-color: #e2e7ee; background: #f8f9fb; color: #8993a3; cursor: default; }
.anaf-module-tab.preparing small { padding: 2px 5px; border-radius: 999px; background: #eceff4; color: #7b8594; font-size: 7px; font-weight: 750; letter-spacing: .025em; text-transform: uppercase; }

.anaf-integrations-page { display: grid; gap: 15px; }
.anaf-integrations-page .anaf-module-chrome { margin-bottom: 0; }
.anaf-integrations-hero { min-height: 128px; }
.anaf-integration-security-note {
  max-width: 260px;
  padding: 10px 12px;
  border: 1px solid #c9dfd7;
  border-radius: 10px;
  background: rgba(242, 251, 247, .9);
  color: #28715b;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
}
.anaf-integration-matrix { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.anaf-integration-channel { display: grid; align-content: start; gap: 8px; min-height: 142px; padding: 13px; border: 1px solid #dce4ef; border-radius: 12px; background: #fff; box-shadow: 0 8px 20px rgba(28, 45, 75, .035); }
.anaf-integration-channel > div { display: grid; justify-items: start; gap: 7px; }
.anaf-integration-channel h2 { margin: 0; color: #263550; font-size: 14px; }
.anaf-integration-channel p { margin: 0; color: #6f7c90; font-size: 12px; line-height: 1.55; }
.anaf-integration-channel.is-active { border-color: #bcded2; background: #f7fcfa; }
.anaf-integration-channel.is-preserved { border-color: #cad9f0; background: #f8faff; }
.anaf-integration-channel.is-preparing { border-color: #ead7ae; background: #fffaf1; }
.anaf-integration-channel.is-frozen { background: #f7f8fa; }
.anaf-integration-state { display: inline-flex; padding: 3px 7px; border-radius: 999px; font-size: 10px; font-weight: 750; text-transform: uppercase; }
.anaf-integration-state.active { background: #dff5ec; color: #197257; }
.anaf-integration-state.preserved { background: #e7effd; color: #315ba7; }
.anaf-integration-state.preparing { background: #fff0cf; color: #96600e; }
.anaf-integration-state.frozen { background: #e8ebef; color: #697386; }
.anaf-oauth-stack .integration-card { padding: 16px; border-radius: 13px; }

@media (max-width: 1280px) {
  .anaf-cc-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .anaf-decl-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .anaf-cc-search { grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(145px, 1fr)); }
  .anaf-cc-search-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .anaf-integration-matrix { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .anaf-decl-stage-nav { grid-template-columns: repeat(6, minmax(150px, 1fr)); }
  .anaf-decl-metadata-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anaf-fiscal-vector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .anaf-cc-hero, .anaf-cc-results-head, .anaf-cc-reconcile-head { align-items: stretch; flex-direction: column; }
  .anaf-cc-hero { padding: 20px; }
  .anaf-cc-hero .btn { align-self: flex-start; }
  .anaf-cc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anaf-cc-search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anaf-cc-query { grid-column: 1 / -1; }
  .anaf-cc-legend { justify-content: flex-start; }
  .anaf-cc-reconcile-head .btn { align-self: flex-start; }
  .anaf-cc-reconcile-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anaf-decl-hero-actions { justify-content: flex-start; }
  .anaf-decl-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anaf-decl-local-banner { grid-template-columns: 1fr; }
  .anaf-decl-artifact-card { grid-template-columns: 1fr auto; }
  .anaf-decl-artifact-card code { grid-column: 1 / -1; }
  .anaf-decl-inbox-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anaf-decl-stage-nav { display: flex; }
  .anaf-decl-stage { flex: 0 0 160px; }
  .anaf-decl-preview-bar, .anaf-decl-metadata-head { align-items: flex-start; flex-direction: column; }
  .anaf-decl-preview-bar span { text-align: left; }
  .anaf-decl-connection { flex-direction: column; }
  .anaf-workstation-grid { grid-template-columns: 1fr; }
  .anaf-workstation-head, .anaf-workstation-card-main { flex-direction: column; }
  .anaf-workstation-card-main > div:last-child { text-align: left; }
  .anaf-module-brand { align-items: flex-start; flex-wrap: wrap; }
  .anaf-module-safety { margin-left: 0; }
  .anaf-integration-matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anaf-fiscal-actions { justify-content: flex-start; }
  .anaf-fiscal-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .anaf-cc-kpis, .anaf-cc-search { grid-template-columns: 1fr; }
  .anaf-cc-query, .anaf-cc-search-actions { grid-column: auto; }
  .anaf-cc-search-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .anaf-cc-pagination { align-items: stretch; flex-direction: column; }
  .anaf-cc-pagination-actions { justify-content: space-between; }
  .anaf-cc-reconcile-content, .anaf-cc-reconcile-head { padding-right: 13px; padding-left: 13px; }
  .anaf-cc-reconcile-summary, .anaf-cc-reconcile-confirm { grid-template-columns: 1fr; }
  .anaf-cc-reconcile-issues li { grid-template-columns: 1fr; gap: 4px; }
  .anaf-cc-reconcile-confirm .btn, .anaf-cc-reconcile-confirm small { grid-column: auto; grid-row: auto; }
  .anaf-decl-hero-actions, .anaf-decl-kpis, .anaf-decl-upload-form, .anaf-decl-detail-summary { grid-template-columns: 1fr; }
  .anaf-decl-hero-actions { display: grid; }
  .anaf-decl-file-field, .anaf-decl-form-error, .anaf-decl-upload-form > footer { grid-column: auto; }
  .anaf-decl-upload-form > footer { display: grid; grid-template-columns: 1fr 1fr; }
  .anaf-decl-overlay { padding: 0; place-items: stretch; }
  .anaf-decl-dialog { width: 100%; max-height: 100vh; min-height: 100vh; border: 0; border-radius: 0; }
  .anaf-decl-dialog > header, .anaf-decl-upload-form, .anaf-decl-detail-dialog [data-anaf-decl-detail-body] { padding-right: 15px; padding-left: 15px; }
  .anaf-decl-dialog-warning { margin-right: 15px; margin-left: 15px; }
  .anaf-decl-artifact-card { grid-template-columns: 1fr; }
  .anaf-decl-artifact-card code { grid-column: auto; }
  .anaf-decl-inbox-card { grid-template-columns: 1fr; }
  .anaf-decl-metadata-grid { grid-template-columns: 1fr; }
  .anaf-decl-metadata-form footer { align-items: stretch; flex-direction: column; }
  .anaf-decl-metadata-form footer > div { display: grid; grid-template-columns: 1fr; }
  .anaf-decl-metadata-form footer .btn { width: 100%; }
  .anaf-decl-archive-card > div { align-items: flex-start; flex-direction: column; }
  .anaf-decl-archive-card small { margin-left: 0; }
  .anaf-decl-pdf-preview object { height: 52vh; }
  .anaf-module-chrome { padding: 13px 12px 11px; }
  .anaf-module-brand small { white-space: normal; }
  .anaf-module-safety { width: 100%; text-align: center; }
  .anaf-module-tab { padding: 7px 9px; }
  .anaf-integration-matrix { grid-template-columns: 1fr; }
  .anaf-integration-channel { min-height: 0; }
  .anaf-fiscal-actions { display: grid; grid-template-columns: 1fr; }
  .anaf-fiscal-kpis, .anaf-fiscal-vector-grid { grid-template-columns: 1fr; }
  .anaf-fiscal-panel-head, .anaf-fiscal-trust-banner, .anaf-fiscal-boundary { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .anaf-cc-loading i { animation: none; }
  .anaf-cc-pagination [data-anaf-cc-page] { scroll-behavior: auto; }
}

/* ANAF operational register: compact, spreadsheet-first workspace. */
.anaf-operational-register {
  --anaf-ops-ink: #172033;
  --anaf-ops-muted: #647187;
  --anaf-ops-line: #d9e2ef;
  --anaf-ops-row: #f8faff;
  --anaf-ops-blue: #275dce;
  --anaf-ops-select-width: 42px;
  --anaf-ops-collaborator-width: 145px;
  --anaf-ops-company-width: 230px;
  --anaf-ops-cell-height: 43px;
  --anaf-ops-cell-padding-y: 6px;
  --anaf-ops-cell-padding-x: 9px;
  min-width: 0;
  color: var(--anaf-ops-ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}
.anaf-operational-register[data-anaf-ops-density="comfortable"] {
  --anaf-ops-collaborator-width: 165px;
  --anaf-ops-company-width: 260px;
  --anaf-ops-cell-height: 52px;
  --anaf-ops-cell-padding-y: 9px;
  --anaf-ops-cell-padding-x: 11px;
}
.anaf-ops-shell { display: grid; min-width: 0; gap: 10px; }
.anaf-ops-header {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 16px;
  border: 1px solid #cfdaea;
  border-radius: 11px;
  background: linear-gradient(120deg, #f7faff, #fff 65%, #f3fbf8);
  box-shadow: 0 7px 20px rgba(31, 57, 100, .05);
}
.anaf-ops-header h1 { margin: 2px 0 0; color: #16233c; font-size: 22px; line-height: 1.1; }
.anaf-ops-header p { margin: 3px 0 0; color: var(--anaf-ops-muted); font-size: 12px; }
.anaf-ops-eyebrow { color: #315eae; font-size: 12px; font-weight: 750; letter-spacing: .035em; text-transform: uppercase; }
.anaf-ops-header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; }
.anaf-ops-local-boundary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid #c9dfd7;
  border-radius: 999px;
  background: #f1faf7;
  color: #226d57;
  font-size: 12px;
  font-weight: 700;
}
.anaf-ops-local-boundary i { width: 7px; height: 7px; border-radius: 50%; background: #1a8b68; }
.anaf-ops-local-boundary > span { display: grid; gap: 1px; }
.anaf-ops-local-boundary strong { font-size: 12px; line-height: 1.15; }
.anaf-ops-local-boundary small { max-width: 310px; overflow: hidden; font-family: "Cascadia Mono", Consolas, monospace; font-size: 12px; font-weight: 500; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.anaf-ops-local-boundary.danger { border-color: #e4b6bd; background: #fff1f3; color: #9e3042; }
.anaf-ops-local-boundary.danger i { background: currentColor; }
.anaf-ops-local-boundary.origin-bound { border-color: #e5cf9f; background: #fff8e9; color: #8b5a10; }
.anaf-ops-local-boundary.origin-bound i { background: currentColor; }

.anaf-ops-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.anaf-ops-kpis article {
  position: relative;
  display: grid;
  min-height: 68px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 12px;
  overflow: hidden;
  padding: 9px 12px 9px 15px;
  border: 1px solid var(--anaf-ops-line);
  border-radius: 9px;
  background: #fff;
}
.anaf-ops-kpis article::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #3670d5; }
.anaf-ops-kpis article.amber::before { background: #c67b13; }
.anaf-ops-kpis article.violet::before { background: #7758c6; }
.anaf-ops-kpis article.green::before { background: #178263; }
.anaf-ops-kpis article > span { color: #526078; font-size: 12px; font-weight: 700; }
.anaf-ops-kpis article > strong { grid-row: 1 / span 2; grid-column: 2; color: #1b2942; font-size: 23px; font-variant-numeric: tabular-nums; }
.anaf-ops-kpis article > small { color: #7a8698; font-size: 12px; }

.anaf-ops-collaborators { min-width: 0; padding: 7px 9px 0; border: 1px solid var(--anaf-ops-line); border-radius: 9px; background: #fff; }
.anaf-ops-collaborators .portfolio-tabs { display: flex; min-height: 38px; gap: 6px; overflow-x: auto; }
.anaf-ops-collaborators .portfolio-tab { flex: 0 0 auto; min-height: 32px; font-size: 12px; }
.anaf-ops-collaborators .portfolio-tab span { font-size: 12px; }
.anaf-ops-no-collaborator { display: block; padding: 8px; color: var(--anaf-ops-muted); font-size: 12px; }

.anaf-ops-toolbar { padding: 9px 10px; border: 1px solid var(--anaf-ops-line); border-radius: 9px; background: #fff; }
.anaf-ops-toolbar form { display: grid; grid-template-columns: minmax(210px, 1.4fr) repeat(7, minmax(118px, .7fr)) auto; align-items: end; gap: 7px; }
.anaf-ops-toolbar label { min-width: 0; margin: 0; }
.anaf-ops-toolbar label > span { display: block; margin: 0 0 3px; color: #526078; font-size: 12px; font-weight: 700; }
.anaf-ops-toolbar input, .anaf-ops-toolbar select {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 5px 8px;
  border: 1px solid #d0dbea;
  border-radius: 7px;
  background: #fbfcfe;
  color: #25334c;
  font: inherit;
  font-size: 12px;
}
.anaf-ops-toolbar input:focus, .anaf-ops-toolbar select:focus { border-color: #7ba0e3; outline: 2px solid rgba(52, 105, 204, .13); }
.anaf-ops-search input { border-color: #a9bee4; background: #fff; }
.anaf-ops-filter-actions { display: flex; gap: 6px; }
.anaf-ops-filter-actions .btn { min-height: 34px; padding: 6px 10px; font-size: 12px; white-space: nowrap; }

.anaf-ops-bulk {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 11px;
  border: 1px solid #a9c1ed;
  border-radius: 9px;
  background: #edf4ff;
  box-shadow: 0 7px 18px rgba(41, 87, 173, .08);
}
.anaf-ops-bulk.hidden { display: none; }
.anaf-ops-bulk > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.anaf-ops-bulk strong, .anaf-ops-bulk button, .anaf-ops-bulk-readonly { font-size: 12px; }
.anaf-ops-bulk > div:first-child > button { border: 0; background: transparent; color: #315ca8; font-weight: 700; cursor: pointer; }

.anaf-ops-preflight { display: grid; gap: 10px; padding: 11px 13px; border: 1px solid #b7c9e6; border-radius: 9px; background: #f8fbff; }
.anaf-ops-preflight.hidden { display: none; }
.anaf-ops-preflight > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.anaf-ops-preflight > header > div { display: grid; gap: 2px; }
.anaf-ops-preflight > header span { color: #64738a; font-size: 12px; }
.anaf-ops-preflight > header strong { color: #223553; font-size: 14px; }
.anaf-ops-preflight-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 150px)); gap: 7px; }
.anaf-ops-preflight-counts > div { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border: 1px solid; border-radius: 8px; }
.anaf-ops-preflight-counts .success { border-color: #bcdfd3; background: #eff9f5; color: #176e55; }
.anaf-ops-preflight-counts .warning { border-color: #ead2a6; background: #fff8eb; color: #8f5b0e; }
.anaf-ops-preflight-counts span { font-size: 12px; }
.anaf-ops-preflight-counts strong { font-size: 18px; }
.anaf-ops-preflight details { border: 1px solid #d8e1ec; border-radius: 8px; background: #fff; }
.anaf-ops-preflight summary { padding: 8px 10px; color: #44546d; font-size: 12px; font-weight: 700; cursor: pointer; }
.anaf-ops-preflight ul { max-height: 170px; overflow: auto; margin: 0; padding: 0; list-style: none; }
.anaf-ops-preflight li { display: grid; grid-template-columns: minmax(140px, .6fr) minmax(220px, 1.4fr); gap: 10px; padding: 7px 10px; border-top: 1px solid #e7ecf2; }
.anaf-ops-preflight li strong, .anaf-ops-preflight li span { font-size: 12px; }
.anaf-ops-preflight li span { color: #6b778a; }
.anaf-ops-preflight footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 14px; }
.anaf-ops-preflight footer label { display: flex; align-items: center; gap: 7px; margin: 0; color: #43526a; font-size: 12px; }
.anaf-ops-preflight footer input { width: 16px; height: 16px; accent-color: var(--anaf-ops-blue); }
.anaf-ops-preflight footer small { grid-column: 1 / -1; color: #748196; font-size: 12px; }

.anaf-ops-grid-panel { min-width: 0; overflow: visible; border: 1px solid #cfd9e7; border-radius: 10px; background: #fff; box-shadow: 0 9px 25px rgba(29, 48, 80, .05); }
.anaf-ops-grid-head { position: relative; z-index: 20; display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 11px; border-bottom: 1px solid #dce4ee; background: #f9fbfe; }
.anaf-ops-grid-head > div:first-child { display: flex; align-items: baseline; gap: 9px; }
.anaf-ops-grid-head strong { color: #25344d; font-size: 14px; }
.anaf-ops-grid-head span { color: #6d798b; font-size: 12px; }
.anaf-ops-grid-head-actions { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 8px; }
#anafOperationsPreferences { display: flex; align-items: center; gap: 7px; }
.anaf-ops-density { display: inline-flex; align-items: center; gap: 3px; padding: 2px; border: 1px solid #d5deea; border-radius: 7px; background: #fff; }
.anaf-ops-density > span { padding: 0 4px; font-size: 12px; font-weight: 700; }
.anaf-ops-density button,
.anaf-ops-column-picker > summary,
.anaf-ops-column-menu button {
  min-height: 28px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #46566f;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.anaf-ops-density button { padding: 3px 7px; }
.anaf-ops-density button[aria-pressed="true"] { border-color: #a9c2eb; background: #eaf2ff; color: #2253aa; }
.anaf-ops-column-picker { position: relative; }
.anaf-ops-column-picker > summary { display: flex; min-width: 78px; align-items: center; justify-content: center; padding: 4px 9px; border-color: #ccd7e5; background: #fff; list-style: none; }
.anaf-ops-column-picker > summary::-webkit-details-marker { display: none; }
.anaf-ops-column-picker[open] > summary { border-color: #91afe0; background: #edf4ff; color: #2355aa; }
.anaf-ops-column-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 7px);
  right: 0;
  width: min(390px, calc(100vw - 38px));
  overflow: hidden;
  border: 1px solid #c9d5e5;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(21, 39, 69, .2);
}
.anaf-ops-column-menu > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 11px; border-bottom: 1px solid #e0e6ef; background: #f8faff; }
.anaf-ops-column-menu > header > div { display: grid; gap: 2px; }
.anaf-ops-column-menu > header strong { font-size: 13px; }
.anaf-ops-column-menu > header span { font-size: 12px; }
.anaf-ops-column-menu > header button { padding: 4px 7px; border-color: #cbd7e6; background: #fff; color: #315ba5; }
.anaf-ops-column-menu ol { max-height: min(58vh, 470px); overflow: auto; margin: 0; padding: 0; list-style: none; }
.anaf-ops-column-menu li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 45px; padding: 6px 10px; border-bottom: 1px solid #edf1f5; }
.anaf-ops-column-menu li:last-child { border-bottom: 0; }
.anaf-ops-column-menu input { width: 16px; height: 16px; margin: 0; accent-color: var(--anaf-ops-blue); }
.anaf-ops-column-menu input:disabled { opacity: .72; }
.anaf-ops-column-menu label { display: grid; min-width: 0; gap: 1px; margin: 0; cursor: pointer; }
.anaf-ops-column-menu label strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.anaf-ops-column-menu label small { color: #758196; font-size: 12px; }
.anaf-ops-column-order { display: flex; gap: 3px; }
.anaf-ops-column-order button { display: grid; width: 28px; min-height: 27px; place-items: center; padding: 0; border-color: #d1dae7; background: #fff; }
.anaf-ops-column-order button:disabled { cursor: not-allowed; opacity: .35; }
.anaf-ops-column-menu > p { margin: 0; padding: 7px 10px; border-top: 1px solid #e0e6ef; background: #fafbfd; color: #66758b; font-size: 12px; }
.anaf-ops-notice { display: inline-flex; padding: 5px 8px; border: 1px solid; border-radius: 7px; font-size: 12px; }
.anaf-ops-notice.danger { border-color: #e7bdc3; background: #fff3f5; color: #9d3042; }
.anaf-ops-table-wrap { position: relative; max-height: min(65vh, 690px); overflow: auto; background: #fff; scrollbar-width: thin; }
.anaf-ops-table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; color: #29364d; font-size: 12px; }
.anaf-ops-table th, .anaf-ops-table td { height: var(--anaf-ops-cell-height); padding: var(--anaf-ops-cell-padding-y) var(--anaf-ops-cell-padding-x); border-right: 1px solid #e7ecf2; border-bottom: 1px solid #e7ecf2; background: #fff; text-align: left; vertical-align: middle; white-space: nowrap; }
.anaf-ops-table th { position: sticky; z-index: 6; top: 0; height: 38px; padding-top: 4px; padding-bottom: 4px; border-bottom-color: #c8d4e4; background: #eef3f9; color: #3d4d66; font-size: 12px; font-weight: 750; }
.anaf-ops-table tbody tr:hover td { background: #f4f8ff; }
.anaf-ops-table tbody tr.selected td { background: #edf4ff; }
.anaf-ops-table th:first-child, .anaf-ops-table td:first-child { border-left: 0; }
.anaf-ops-table td strong, .anaf-ops-table td small { display: block; }
.anaf-ops-table td small { margin-top: 2px; color: #768297; font-size: 12px; }
.anaf-ops-table input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--anaf-ops-blue); }
.anaf-ops-sort { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 5px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: 12px; font-weight: inherit; cursor: pointer; }
.anaf-ops-sort span { color: #8390a4; font-size: 12px; }
.anaf-ops-sort.active { color: #2352a9; }
.anaf-ops-sort:focus-visible,
.anaf-ops-view:focus-visible,
.anaf-ops-row-actions summary:focus-visible,
.anaf-ops-drawer-tabs button:focus-visible,
.anaf-ops-density button:focus-visible,
.anaf-ops-column-picker > summary:focus-visible,
.anaf-ops-column-menu button:focus-visible,
.anaf-ops-column-menu input:focus-visible { outline: 3px solid rgba(45, 101, 199, .28); outline-offset: 2px; }
.anaf-ops-sticky-select { position: sticky !important; z-index: 8 !important; left: 0; width: var(--anaf-ops-select-width); min-width: var(--anaf-ops-select-width); max-width: var(--anaf-ops-select-width); text-align: center !important; }
.anaf-ops-sticky-collaborator { position: sticky !important; z-index: 7 !important; left: var(--anaf-ops-select-width); width: var(--anaf-ops-collaborator-width); min-width: var(--anaf-ops-collaborator-width); max-width: var(--anaf-ops-collaborator-width); overflow: hidden; text-overflow: ellipsis; }
.anaf-ops-sticky-company { position: sticky !important; z-index: 7 !important; left: calc(var(--anaf-ops-select-width) + var(--anaf-ops-collaborator-width)); width: var(--anaf-ops-company-width); min-width: var(--anaf-ops-company-width); max-width: var(--anaf-ops-company-width); overflow: hidden; text-overflow: ellipsis; box-shadow: 5px 0 8px rgba(35, 55, 88, .05); }
.anaf-ops-table thead .anaf-ops-sticky-select, .anaf-ops-table thead .anaf-ops-sticky-collaborator, .anaf-ops-table thead .anaf-ops-sticky-company { z-index: 12 !important; background: #eaf0f8; }
.anaf-ops-sticky-actions { position: sticky !important; z-index: 8 !important; right: 0; width: 96px; min-width: 96px; max-width: 96px; box-shadow: -5px 0 8px rgba(35, 55, 88, .05); }
.anaf-ops-table thead .anaf-ops-sticky-actions { z-index: 12 !important; background: #eaf0f8; }
.anaf-ops-collaborator { display: block; overflow: hidden; color: #42536f; font-size: 12px; font-weight: 700; text-overflow: ellipsis; }
.anaf-ops-form-type { color: #234f9e; font-size: 13px; }
.anaf-ops-mono, .anaf-ops-index code { font-family: "Cascadia Mono", Consolas, monospace; font-size: 12px; font-variant-numeric: tabular-nums; }
.anaf-ops-index code { padding: 3px 5px; border-radius: 5px; background: #edf3ff; color: #274d96; }
.anaf-ops-date, .anaf-ops-updated { color: #5f6c80; font-variant-numeric: tabular-nums; }
.anaf-ops-updated { white-space: normal !important; }
.anaf-ops-empty-value { color: #9aa4b3; }
.anaf-ops-status { display: inline-flex; min-height: 24px; align-items: center; gap: 5px; padding: 3px 7px; border: 1px solid transparent; border-radius: 999px; font-size: 12px; font-weight: 700; }
.anaf-ops-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.anaf-ops-status.neutral { border-color: #d8dee7; background: #f3f5f8; color: #667184; }
.anaf-ops-status.blue { border-color: #c5d6f4; background: #edf4ff; color: #2857ac; }
.anaf-ops-status.success { border-color: #bee0d4; background: #ecf8f4; color: #147457; }
.anaf-ops-status.warning { border-color: #ead4aa; background: #fff7e8; color: #93600f; }
.anaf-ops-status.danger { border-color: #e8bec5; background: #fff1f3; color: #a33245; }
.anaf-ops-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.anaf-ops-view { padding: 3px 5px; border: 0; background: transparent; color: #2859ae; font-size: 12px; font-weight: 700; cursor: pointer; }
.anaf-ops-row-actions details { position: relative; }
.anaf-ops-row-actions summary { display: grid; width: 28px; height: 26px; place-items: center; border: 1px solid #d2dbea; border-radius: 6px; background: #fff; color: #43526a; cursor: pointer; list-style: none; }
.anaf-ops-row-actions summary::-webkit-details-marker { display: none; }
.anaf-ops-row-actions details > div { position: absolute; z-index: 30; top: 30px; right: 0; display: grid; min-width: 190px; padding: 5px; border: 1px solid #ccd7e5; border-radius: 8px; background: #fff; box-shadow: 0 12px 28px rgba(25, 43, 73, .16); }
.anaf-ops-row-actions details button { padding: 7px 8px; border: 0; border-radius: 5px; background: transparent; color: #35445d; font-size: 12px; text-align: left; cursor: pointer; }
.anaf-ops-row-actions details button:hover { background: #edf4ff; color: #2354a8; }
.anaf-ops-empty, .anaf-ops-loading { display: flex; min-height: 120px; align-items: center; justify-content: center; gap: 8px; color: #6d798b; font-size: 12px; }
.anaf-ops-empty { flex-direction: column; }
.anaf-ops-empty strong { color: #46546a; font-size: 14px; }
.anaf-ops-empty.danger strong { color: #9b3041; }
.anaf-ops-loading i { width: 17px; height: 17px; border: 2px solid #c9d7ed; border-top-color: #3266c8; border-radius: 50%; animation: anaf-ops-spin .8s linear infinite; }
@keyframes anaf-ops-spin { to { transform: rotate(360deg); } }
.anaf-ops-pagination { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 10px; border-top: 1px solid #dce4ee; background: #fafbfd; }
.anaf-ops-pagination > div { display: flex; align-items: center; gap: 7px; color: #647187; font-size: 12px; }
.anaf-ops-pagination label { display: flex; align-items: center; gap: 5px; margin: 0; font-size: 12px; }
.anaf-ops-pagination select { height: 30px; border: 1px solid #d0d9e6; border-radius: 6px; background: #fff; font-size: 12px; }

.anaf-ops-drawer-overlay { position: fixed; z-index: 900; inset: 0; display: flex; justify-content: flex-end; background: rgba(18, 30, 51, .33); backdrop-filter: blur(2px); }
.anaf-ops-drawer-overlay.hidden { display: none; }
.anaf-ops-drawer { display: grid; width: min(720px, 94vw); height: 100%; grid-template-rows: auto 1fr; overflow: hidden; border-left: 1px solid #c9d5e5; background: #fff; box-shadow: -18px 0 42px rgba(18, 33, 58, .17); }
.anaf-ops-drawer > header { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid #dce4ef; background: #f8faff; }
.anaf-ops-drawer > header > div { display: grid; gap: 2px; }
.anaf-ops-drawer > header span { color: #64748a; font-size: 12px; text-transform: uppercase; }
.anaf-ops-drawer > header h2 { margin: 0; color: #1d2b44; font-size: 19px; }
#anafOperationsDrawerBody { min-height: 0; overflow: auto; }
.anaf-ops-drawer-tabs { position: sticky; z-index: 2; top: 0; display: flex; gap: 3px; overflow-x: auto; padding: 8px 12px 0; border-bottom: 1px solid #dfe6ef; background: #fff; }
.anaf-ops-drawer-tabs button { flex: 0 0 auto; min-height: 35px; padding: 7px 9px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #5d6a7d; font-size: 12px; font-weight: 700; cursor: pointer; }
.anaf-ops-drawer-tabs button.active { border-bottom-color: #2d65c7; color: #2856aa; }
.anaf-ops-drawer-panel { padding: 14px 16px 24px; }
.anaf-ops-summary-list { display: grid; margin: 0; border: 1px solid #dce4ee; border-radius: 9px; }
.anaf-ops-summary-list > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 9px 11px; border-bottom: 1px solid #e5eaf1; }
.anaf-ops-summary-list > div:last-child { border-bottom: 0; }
.anaf-ops-summary-list dt { color: #69768a; font-size: 12px; font-weight: 700; }
.anaf-ops-summary-list dd { margin: 0; color: #2f3d54; font-size: 13px; font-weight: 700; }
.anaf-ops-summary-list dd small { display: block; margin-top: 2px; color: #778397; font-size: 12px; font-weight: 400; }
.anaf-ops-signing-profile { display: block; max-width: 190px; margin-top: 4px; color: #5e6f86; font-size: 12px; line-height: 1.25; white-space: normal; }
.anaf-ops-profile-summary { display: grid; gap: 3px; margin-top: 10px; padding: 9px 11px; border: 1px solid #cfdced; border-radius: 8px; background: #f7faff; color: #33445d; }
.anaf-ops-profile-summary strong, .anaf-ops-profile-summary span, .anaf-ops-profile-summary small { font-size: 12px; }
.anaf-ops-profile-summary small { color: #697991; }
.anaf-ops-axis-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.anaf-ops-axis-grid > div { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid #dce4ef; border-radius: 8px; }
.anaf-ops-axis-grid > div > span { color: #607087; font-size: 12px; font-weight: 700; }
.anaf-ops-artifacts, .anaf-ops-validation-list { display: grid; gap: 8px; }
.anaf-ops-artifacts article { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid #dae3ee; border-radius: 8px; }
.anaf-ops-artifacts article > div:first-child { display: grid; gap: 2px; }
.anaf-ops-artifacts strong, .anaf-ops-artifacts span { font-size: 12px; }
.anaf-ops-artifacts span { color: #738095; }
.anaf-ops-artifacts code { overflow: hidden; color: #69768a; font-size: 12px; text-overflow: ellipsis; }
.anaf-ops-artifacts article > div:last-child { display: flex; gap: 5px; }
.anaf-ops-validation-list article { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; padding: 10px; border: 1px solid #dae3ee; border-radius: 8px; }
.anaf-ops-validation-list article > div { display: grid; gap: 3px; }
.anaf-ops-validation-list strong, .anaf-ops-validation-list span, .anaf-ops-validation-list small { font-size: 12px; }
.anaf-ops-validation-list span, .anaf-ops-validation-list small { color: #6d798c; }
.anaf-ops-submission-detail { display: grid; gap: 8px; }
.anaf-ops-submission-detail > div { display: flex; min-height: 49px; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border: 1px solid #dce4ee; border-radius: 8px; }
.anaf-ops-submission-detail > div > span { color: #637187; font-size: 12px; font-weight: 700; }
.anaf-ops-submission-detail > div > strong { color: #2b3a53; font-family: "Cascadia Mono", Consolas, monospace; font-size: 12px; }
.anaf-ops-submission-detail p { margin: 2px 0 0; padding: 9px 10px; border: 1px solid #c9d9ef; border-radius: 8px; background: #f4f8ff; color: #4e607a; font-size: 12px; line-height: 1.5; }
.anaf-ops-audit { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.anaf-ops-audit li { display: grid; grid-template-columns: 12px 1fr; gap: 8px; min-height: 52px; }
.anaf-ops-audit li > i { position: relative; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #3d72d1; }
.anaf-ops-audit li > i::after { content: ""; position: absolute; top: 9px; bottom: -39px; left: 3px; width: 1px; background: #ccd8e8; }
.anaf-ops-audit li:last-child > i::after { display: none; }
.anaf-ops-audit li > div { display: grid; align-content: start; gap: 2px; }
.anaf-ops-audit strong, .anaf-ops-audit span { font-size: 12px; }
.anaf-ops-audit span { color: #748095; }
.anaf-ops-drawer-empty { display: flex; min-height: 160px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: #6d798c; font-size: 12px; text-align: center; }
.anaf-ops-drawer-empty strong { color: #46556d; font-size: 14px; }
.anaf-ops-drawer-empty.danger strong { color: #9f3244; }

@media (max-width: 1450px) {
  .anaf-ops-toolbar form { grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(125px, 1fr)); }
  .anaf-ops-filter-actions { grid-column: -2 / -1; }
}
@media (max-width: 980px) {
  .anaf-ops-header { align-items: flex-start; flex-direction: column; }
  .anaf-ops-header-actions { width: 100%; justify-content: space-between; }
  .anaf-ops-grid-head { align-items: flex-start; flex-direction: column; }
  .anaf-ops-grid-head-actions { width: 100%; flex-wrap: wrap; justify-content: space-between; }
  .anaf-ops-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anaf-ops-toolbar form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anaf-ops-search { grid-column: 1 / -1; }
  .anaf-ops-filter-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .anaf-ops-bulk { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
  .anaf-ops-header-actions { align-items: stretch; flex-direction: column; }
  .anaf-ops-local-boundary { justify-content: center; }
  .anaf-ops-kpis, .anaf-ops-toolbar form, .anaf-ops-axis-grid { grid-template-columns: 1fr; }
  .anaf-ops-search, .anaf-ops-filter-actions { grid-column: auto; }
  .anaf-ops-filter-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .anaf-ops-grid-head-actions, #anafOperationsPreferences { align-items: stretch; flex-direction: column; }
  #anafOperationsPreferences { width: 100%; }
  .anaf-ops-density { justify-content: space-between; }
  .anaf-ops-column-picker > summary { width: 100%; }
  .anaf-ops-column-menu { right: auto; left: 0; width: min(390px, calc(100vw - 30px)); }
  .anaf-ops-preflight footer { grid-template-columns: 1fr; }
  .anaf-ops-preflight footer small { grid-column: auto; }
  .anaf-ops-pagination { align-items: flex-start; flex-direction: column; }
  .anaf-ops-pagination > div:last-child { width: 100%; flex-wrap: wrap; }
  .anaf-ops-drawer { width: 100vw; }
  .anaf-ops-summary-list > div, .anaf-ops-artifacts article { grid-template-columns: 1fr; }
  .anaf-ops-sticky-collaborator,
  .anaf-ops-sticky-company { position: static !important; z-index: auto !important; left: auto !important; box-shadow: none; }
  .anaf-ops-table thead .anaf-ops-sticky-collaborator,
  .anaf-ops-table thead .anaf-ops-sticky-company { background: #eef3f9; }
  .anaf-ops-sticky-select { width: 40px; min-width: 40px; max-width: 40px; }
  .anaf-ops-sticky-actions { width: 84px; min-width: 84px; max-width: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .anaf-ops-loading i { animation: none; }
}

.anaf-public-review { overflow: hidden; }
.anaf-public-review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 18px; border-bottom: 1px solid #e5eaf1; background: linear-gradient(135deg, #f8fbff, #fff); }
.anaf-public-review-head h2 { margin: 4px 0; color: #1d2a43; font-size: 18px; }
.anaf-public-review-head p { max-width: 750px; margin: 0; color: #69778c; font-size: 11px; line-height: 1.5; }
.anaf-public-review-controls { display: flex; flex: 0 0 auto; align-items: flex-end; gap: 8px; }
.anaf-public-review-controls label { display: grid; gap: 4px; color: #66748a; font-size: 9px; font-weight: 700; }
.anaf-public-review-controls select { min-width: 155px; min-height: 36px; border: 1px solid #cfd9e7; border-radius: 8px; background: #fff; color: #35445c; font: inherit; font-size: 11px; }
.anaf-public-review-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 14px 18px 0; }
.anaf-public-review-summary span { display: flex; align-items: baseline; gap: 6px; padding: 10px 11px; border: 1px solid #dce5f0; border-radius: 9px; background: #fafcfe; color: #6b788c; font-size: 9px; }
.anaf-public-review-summary strong { color: #253550; font-size: 17px; font-variant-numeric: tabular-nums; }
.anaf-public-review-list { display: grid; gap: 12px; padding: 14px 18px 18px; }
.anaf-public-review-card { display: grid; gap: 11px; padding: 14px; border: 1px solid #dce4ef; border-radius: 11px; background: #fff; }
.anaf-public-review-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.anaf-public-review-card > header > div { display: grid; gap: 2px; }
.anaf-public-review-card h3 { margin: 0; overflow-wrap: anywhere; color: #273650; font-size: 13px; }
.anaf-public-review-card header span:not(.anaf-cc-badge) { color: #748096; font-size: 9px; }
.anaf-public-review-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 15px; color: #778397; font-size: 9px; }
.anaf-public-review-diff { overflow: auto; border: 1px solid #e1e7ef; border-radius: 9px; }
.anaf-public-review-diff table { width: 100%; min-width: 620px; border-collapse: collapse; }
.anaf-public-review-diff th, .anaf-public-review-diff td { padding: 9px 10px; border-bottom: 1px solid #edf1f5; color: #48566d; font-size: 10px; line-height: 1.4; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.anaf-public-review-diff thead th { background: #f8fafc; color: #69768a; font-size: 8px; letter-spacing: .04em; text-transform: uppercase; }
.anaf-public-review-diff tbody th { width: 20%; background: #fcfdff; color: #5d6b80; }
.anaf-public-review-diff tbody td:nth-child(2) { width: 40%; color: #7a5260; text-decoration-color: #d9aeb7; }
.anaf-public-review-diff tbody td:nth-child(3) { width: 40%; background: #f5fbf8; color: #17694f; font-weight: 650; }
.anaf-public-review-diff tr:last-child > * { border-bottom: 0; }
.anaf-public-review-targets { display: grid; grid-template-columns: minmax(190px, .7fr) minmax(220px, 1fr) minmax(220px, 1fr); gap: 7px; padding: 10px 11px; border: 1px solid #cbd9ed; border-radius: 9px; background: #f7faff; }
.anaf-public-review-targets strong, .anaf-public-review-targets span { color: #51617a; font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }
.anaf-public-review-targets strong { color: #304766; }
.anaf-public-review-guard { display: grid; gap: 3px; padding: 9px 10px; border: 1px solid; border-radius: 9px; }
.anaf-public-review-guard strong, .anaf-public-review-guard span { font-size: 9px; line-height: 1.4; }
.anaf-public-review-guard.attention { border-color: #e8c98d; background: #fff8e9; color: #8f5a0f; }
.anaf-public-review-guard.clear { border-color: #bfdfd4; background: #eff9f5; color: #176e54; }
.anaf-public-review-blockers { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.anaf-public-review-blockers li + li { margin-top: 5px; }
.anaf-public-review-audit { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 10px; padding: 9px 10px; border-left: 3px solid #9fb1ca; background: #f8fafc; }
.anaf-public-review-audit strong, .anaf-public-review-audit span, .anaf-public-review-audit small { color: #647188; font-size: 9px; line-height: 1.45; }
.anaf-public-review-audit small { grid-column: 1 / -1; overflow-wrap: anywhere; }
.anaf-public-review-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.anaf-public-review-disabled { flex: 1 1 320px; color: #9a6212; font-size: 9px; line-height: 1.45; }
.anaf-public-review-confirm { display: grid; gap: 9px; padding: 12px; border: 1px solid #cbd9ed; border-radius: 10px; background: #f7faff; }
.anaf-public-review-confirm.reject { border-color: #e5c4ca; background: #fff7f8; }
.anaf-public-review-confirm > strong { color: #30445f; font-size: 11px; }
.anaf-public-review-confirm > p { margin: 0; color: #586981; font-size: 10px; line-height: 1.5; }
.anaf-public-review-confirm label { display: grid; gap: 4px; color: #5f6e84; font-size: 9px; font-weight: 700; }
.anaf-public-review-confirm textarea { min-height: 56px; resize: vertical; border: 1px solid #ccd7e6; border-radius: 8px; padding: 8px; color: #35445c; font: inherit; font-size: 10px; }
.anaf-public-review-confirm .anaf-public-review-recurring-opt-in { display: flex; align-items: flex-start; gap: 8px; padding: 10px; border: 1px solid #cbd9ed; border-radius: 8px; font-size: 11px; }
.anaf-public-review-recurring-opt-in input { width: auto; margin: 2px 0 0; flex: 0 0 auto; }
.anaf-public-review-recurring-opt-in small { display: block; margin-top: 5px; font-size: 10px; line-height: 1.5; font-weight: 400; }
.anaf-public-review-confirm > div:last-child { display: flex; justify-content: flex-end; gap: 8px; }
.anaf-public-review-empty { display: grid; justify-items: center; gap: 5px; min-height: 125px; padding: 18px; place-content: center; color: #7a8698; font-size: 10px; text-align: center; }
.anaf-public-review-empty strong { color: #46556d; font-size: 12px; }
.anaf-cc-notice.success { border-color: #bfe1d5; background: #eff9f5; color: #177659; }

@media (max-width: 820px) {
  .anaf-public-review-head { align-items: stretch; flex-direction: column; }
  .anaf-public-review-controls { justify-content: space-between; }
  .anaf-public-review-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anaf-public-review-targets { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .anaf-public-review-controls { align-items: stretch; flex-direction: column; }
  .anaf-public-review-controls select { width: 100%; }
  .anaf-public-review-summary { grid-template-columns: 1fr; }
  .anaf-public-review-card > header, .anaf-public-review-meta { align-items: flex-start; flex-direction: column; }
  .anaf-public-review-actions .btn, .anaf-public-review-confirm > div:last-child .btn { width: 100%; }
  .anaf-public-review-confirm > div:last-child { flex-direction: column; }
}

/* One client card owns fiscal review, contacts and operational data. */
.client-data-card { overflow:hidden; font-size:14px; }
.client-data-card h3, .client-data-card h4 { margin:0; color:#14304e; font-size:15px; }
.client-data-card-header { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:0 18px; border-bottom:1px solid #dce6f2; background:#fafcff; }
.client-data-tabs { display:flex; gap:6px; align-self:stretch; }
.client-data-tabs [role=tab] { appearance:none; padding:15px 16px 13px; border:0; border-bottom:3px solid transparent; background:transparent; color:#53667d; font:inherit; font-size:14px; font-weight:600; cursor:pointer; }
.client-data-tabs [aria-selected=true] { color:#2159c7; border-bottom-color:#2563eb; }
.client-data-tabs [role=tab]:hover { background:#edf3fc; }
.client-data-tabs [role=tab]:focus-visible, .client-data-card [role=tabpanel]:focus-visible { outline:2px solid #2563eb; outline-offset:-3px; }
.client-data-card [role=tabpanel] { padding:16px 18px; }
.client-data-card [hidden] { display:none!important; }
.client-data-panel-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.client-data-panel-heading .client-data-help { margin:4px 0 0; }
.client-data-fiscal { padding:0; }
.client-data-section { padding:14px 0 0; margin-top:12px; border-top:1px solid #dce6f2; }
.client-data-card .client-data-section .client-work-card-head { padding:0; }
.client-data-section fieldset { border:0; margin:0; padding:0; min-width:0; }
.client-data-section [data-client-section-notice] { color:#475569; font-size:13px; flex:1; }
.client-data-card .client-work-field { font-size:11px; }
.client-data-card .client-work-field input { font-size:14px; height:36px; }
.client-data-card input[data-client-section-field="telefon"], .client-data-card input[data-client-section-field="persoana"] { --ji-field-empty-bg:#fff; --ji-field-empty-border:#d6deea; }
.client-data-billing-link { border:0; background:none; padding:0; font:inherit; text-align:left; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.client-data-billing-link.active { color:#087443; }
.client-data-billing-link.attention { color:#91580a; }
.client-data-card .client-work-save-row { align-items:center; gap:12px; padding:10px 0 0; }
.client-data-card .client-work-save { min-height:34px; min-width:155px; font-size:13px; }
.client-data-card .client-work-card-head > span { font-size:12px; }
.client-data-help { margin:8px 0 10px; color:#53667d; font-size:13px; line-height:1.5; }
.client-data-fiscal-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 22px; margin:8px 0; }
.client-data-fiscal-grid > div { min-width:0; padding:7px 0; border-bottom:1px solid #edf1f7; }
.client-data-fiscal-grid .name { grid-column:span 2; }
.client-data-fiscal-grid .wide { grid-column:span 3; }
.client-data-fiscal-grid dt { color:#64748b; font-size:11px; margin:0 0 3px; }
.client-data-fiscal-grid dd { margin:0; color:#172f4b; font-size:14px; line-height:1.4; overflow-wrap:anywhere; }
.client-data-fiscal-grid .name dd { font-weight:600; }
.client-data-proof { display:flex; flex-wrap:wrap; gap:5px 20px; font-size:12px; color:#53667d; margin:8px 0 0; }
.client-data-operational { margin-top:14px; border-top:1px solid #dce6f2; padding-top:12px; }
.client-data-operational > summary { cursor:pointer; font-size:13px; font-weight:600; color:#365476; }
.client-data-operational > summary span { margin-left:12px; font-size:12px; font-weight:400; color:#64748b; }
.client-data-operational .client-data-section { margin:0; padding-top:12px; border:0; }
.client-data-operational .client-work-card-head { display:none; }
.client-data-empty { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; padding:16px 0 10px; font-size:14px; color:#64748b; }
.client-data-empty strong { color:#365476; }
.client-data-match { padding:10px 12px; border-radius:6px; background:#eff9f5; color:#176e54; font-size:14px; }
.client-data-check-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:12px 0; }
.client-data-card .btn { font-size:13px; }
.client-data-observation { margin:12px 0; border:1px solid #dce6f2; border-radius:8px; padding:10px 12px; }
.client-data-observation summary { cursor:pointer; font-size:13px; color:#365476; }
.client-data-preview { margin-top:18px; padding-top:14px; border-top:1px solid #dce6f2; }
.client-data-card .anaf-public-review-card { margin:12px 0 0; }
.client-data-card .anaf-public-review-diff { overflow:auto; }
.client-data-card .anaf-public-review-diff table { min-width:500px; }
.client-data-card .anaf-public-review-diff td { overflow-wrap:anywhere; font-size:13px; }
.client-data-card .anaf-public-review-diff th { font-size:12px; }
.client-data-card .anaf-public-review-meta, .client-data-card .anaf-public-review-guard span,
.client-data-card .anaf-public-review-guard strong, .client-data-card .anaf-public-review-targets span,
.client-data-card .anaf-public-review-confirm > p, .client-data-card .anaf-public-review-confirm label { font-size:13px; }
.client-data-history { margin-top:14px; border-top:1px solid #dce6f2; padding-top:14px; }
@media (max-width: 620px) {
  .client-data-card-header { padding:12px 12px 0; align-items:stretch; flex-direction:column; gap:8px; }
  .client-data-tabs { justify-content:space-between; gap:0; }
  .client-data-tabs [role=tab] { padding:12px 8px 10px; font-size:13px; }
  .client-data-card [role=tabpanel] { padding:14px 12px; }
  .client-data-fiscal-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .client-data-fiscal-grid .name { grid-column:span 1; }
  .client-data-fiscal-grid .wide { grid-column:span 2; }
  .client-data-check-actions .btn { flex:1 1 160px; }
  .client-data-card .client-work-card-head { flex-wrap:wrap; gap:8px; }
  .client-data-operational > summary span { display:block; margin:5px 0 0 15px; }
  .client-data-panel-heading { flex-wrap:wrap; }
}
