:root {
  --oefa-blue: #005bac;
  --oefa-blue-dark: #004f9d;
  --oefa-cyan: #25b8d8;
  --ink: #0f172a;
  --muted: #5f6b7a;
  --line: #d8e1ee;
  --soft-line: #e9eef6;
  --bg: #f4f6fb;
  --panel: #fff;
  --row: #f7f9fc;
  --row-alt: #e8ebf0;
  --green: #009b5a;
  --green-bg: #e8f9ef;
  --blue-bg: #e8f1ff;
  --yellow: #c88600;
  --yellow-bg: #fff7df;
  --red: #d04545;
  --red-bg: #ffe9e9;
  --shadow: 0 8px 26px rgba(15, 23, 42, 0.12);
  --radius: 6px;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  place-items: center;
  padding: 40px;
  background: #eef2f8;
}

.login-panel {
  grid-row: 2;
  width: min(760px, 100%);
  padding: 46px 56px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
  text-align: center;
}

.login-brand img {
  width: 150px;
  margin-bottom: 22px;
}

.login-panel h1 {
  margin: 0 0 34px;
  color: #2f3747;
  font-size: 28px;
}

.login-form {
  width: min(390px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
  text-align: left;
}

.login-form .btn {
  width: 100%;
  min-height: 42px;
  border-radius: 22px;
}

.login-help {
  width: min(390px, 100%);
  margin: 22px auto 0;
  display: grid;
  gap: 6px;
  color: #64748b;
  font-size: 13px;
  text-align: left;
}

.login-version {
  grid-row: 3;
  align-self: end;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  grid-template-rows: 42px minmax(0, 1fr);
}

.topbar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  height: 42px;
  color: white;
  background: var(--oefa-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  z-index: 4;
}

.brand {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 55px;
  overflow: hidden;
}

.brand img {
  width: 94px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.menu-button,
.top-icon {
  width: 42px;
  height: 42px;
  border: 0;
  color: white;
  background: transparent;
  display: grid;
  place-items: center;
}

.notification-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
}

.notification-button {
  position: relative;
}

.notification-button b {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  border: 2px solid #005aa8;
  border-radius: 999px;
  color: white;
  background: #d04444;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
}

.top-icon.notification-button b {
  border-color: var(--oefa-blue);
}

.notification-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: 330px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  color: #2f3747;
  background: white;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
}

.notification-menu strong {
  color: #1d55ad;
  font-size: 14px;
}

.notification-menu button {
  width: 100%;
  display: grid;
  gap: 4px;
  border: 0;
  border-radius: 8px;
  padding: 10px;
  color: #2f3747;
  background: #f7f9fd;
  text-align: left;
  cursor: pointer;
}

.notification-menu button:hover {
  background: #eef4ff;
}

.notification-menu button.read {
  opacity: 0.72;
  background: #fafbfe;
}

.notification-menu button span {
  font-size: 13px;
  font-weight: 700;
}

.notification-menu button small,
.notification-menu em {
  color: #6b7280;
  font-size: 12px;
}

.top-user {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-right: 12px;
  font-size: 11px;
  font-weight: 700;
}

.top-user small {
  display: block;
  font-weight: 400;
  text-align: right;
}

.sidebar {
  grid-row: 2;
  background: var(--panel);
  box-shadow: 4px 0 14px rgba(15, 23, 42, 0.18);
  z-index: 3;
}

.side-section {
  border-bottom: 1px solid var(--line);
}

.side-title {
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: 24px 1fr 18px;
  gap: 10px;
  align-items: start;
  padding: 18px 14px;
  border: 0;
  background: white;
  color: var(--ink);
  text-align: left;
  line-height: 1.35;
}

.side-title strong {
  font-weight: 500;
}

.side-link {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 24px 1fr 18px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--soft-line);
  color: var(--oefa-blue);
  background: white;
  text-align: left;
  font-weight: 700;
}

.side-link.active {
  background: #f3f8ff;
}

.main {
  min-width: 0;
  padding: 36px 28px 56px;
  overflow: auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.breadcrumb strong {
  color: #075be8;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 20px;
}

h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
}

h2,
h3 {
  margin: 0;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.toolbar-left,
.toolbar-right,
.chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.search {
  position: relative;
}

.search input {
  width: 310px;
  height: 32px;
  border: 1px solid #ccd7e6;
  border-radius: var(--radius);
  padding: 7px 36px 7px 10px;
  background: white;
}

.search svg {
  position: absolute;
  right: 10px;
  top: 7px;
  color: var(--oefa-blue);
}

.btn {
  min-height: 32px;
  border: 1px solid var(--oefa-blue);
  border-radius: 999px;
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--oefa-blue);
  background: white;
  font-weight: 700;
  white-space: nowrap;
}

.btn.primary {
  color: white;
  background: var(--oefa-blue);
}

.btn.danger {
  color: var(--red);
  border-color: var(--red);
}

.btn.flat {
  border-color: transparent;
  background: transparent;
}

.btn.square {
  border-radius: var(--radius);
}

.icon-btn {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--oefa-blue);
  display: inline-grid;
  place-items: center;
}

.chip,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.chip {
  gap: 6px;
  color: var(--oefa-blue);
  background: var(--blue-bg);
}

.badge.blue {
  color: var(--oefa-blue);
  background: var(--blue-bg);
}

.badge.green {
  color: var(--green);
  background: var(--green-bg);
}

.badge.yellow {
  color: var(--yellow);
  background: var(--yellow-bg);
}

.badge.red {
  color: var(--red);
  background: var(--red-bg);
}

.table-card {
  background: white;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.table-scroll {
  width: 100%;
  overflow: auto;
}

table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}

th {
  background: #e7edf6;
  color: #002f6c;
  border-bottom: 1px solid var(--oefa-blue);
  padding: 11px 10px;
  font-size: 12px;
  text-align: left;
  line-height: 1.25;
  white-space: nowrap;
}

td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--soft-line);
  font-size: 12px;
  line-height: 1.35;
  vertical-align: middle;
}

tbody tr:nth-child(even) td {
  background: white;
}

.figma-uf table {
  min-width: 0;
  table-layout: fixed;
}

.figma-uf .table-scroll {
  overflow-x: hidden;
}

.figma-uf th {
  height: 43px;
  padding: 10px 8px;
  font-size: 11px;
  white-space: normal;
}

.figma-uf td {
  height: 54px;
  padding: 9px 8px;
  font-size: 10.5px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.figma-uf .badge {
  min-width: 58px;
  padding-inline: 7px;
}

.figma-uf .actions {
  justify-content: flex-start;
  gap: 1px;
  flex-wrap: nowrap;
}

.figma-uf .icon-btn {
  width: 11px;
  height: 18px;
  padding: 0;
}

.figma-uf .icon-btn svg {
  width: 11px;
  height: 11px;
}

.strong {
  font-weight: 800;
}

.link {
  border: 0;
  padding: 0;
  color: var(--oefa-blue);
  background: transparent;
  font-weight: 700;
  text-decoration: underline;
  font-size: inherit;
}

.muted {
  color: var(--muted);
}

.actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tab {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.tab.active {
  color: var(--oefa-blue);
  background: var(--blue-bg);
}

.pagination {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 12px 14px;
}

.page-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
}

.page-dot.active {
  color: white;
  background: var(--oefa-blue);
}

.page-dot:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.wizard {
  background: white;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 40px;
  min-height: calc(100vh - 160px);
}

.stepper {
  display: grid;
  grid-template-columns: repeat(var(--steps), minmax(90px, 1fr));
  max-width: 860px;
  margin: 12px auto 32px;
}

.step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.step::before {
  content: "";
  position: absolute;
  top: 14px;
  left: -50%;
  width: 100%;
  height: 1px;
  background: #b8c5d8;
}

.step:first-child::before {
  display: none;
}

.step-number {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #93a4b9;
  background: white;
  color: var(--muted);
  font-weight: 800;
}

.step.active,
.step.done {
  color: var(--oefa-blue);
  font-weight: 700;
}

.step.active .step-number,
.step.done .step-number {
  color: white;
  background: var(--oefa-cyan);
  border-color: var(--oefa-cyan);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 18px 22px;
  max-width: 980px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(210px, 1fr));
}

.field {
  display: grid;
  gap: 7px;
  font-size: 12px;
}

.field.wide {
  grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  padding: 8px 10px;
  background: white;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field input:disabled,
.field select:disabled,
.field textarea:disabled {
  background: #f1f4f8;
  color: var(--muted);
}

.switch-row,
.radio-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
}

.switch {
  width: 46px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: #b7c3d2;
  position: relative;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
}

.switch.on {
  background: var(--oefa-cyan);
}

.switch.on::after {
  transform: translateX(22px);
}

.wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 34px;
}

.schedule-question {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto auto auto 32px;
  align-items: center;
  gap: 10px;
  max-width: 660px;
  margin-bottom: 14px;
  font-size: 12px;
}

.schedule-form {
  display: grid;
  grid-template-columns: 260px 220px 1fr;
  align-items: end;
  gap: 22px;
  margin-top: 18px;
  max-width: 880px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.subtle-panel {
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: #fbfdff;
  padding: 16px;
}

.geo-layout {
  min-height: 520px;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  border: 1px solid var(--line);
  overflow: hidden;
}

.scope-geo-section {
  display: grid;
  gap: 14px;
}

.scope-geo-section.only-checks {
  min-height: 360px;
  align-content: start;
}

.scope-geo-flags {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #2e3440;
  font-size: 14px;
}

.scope-geo-flags label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.scope-geo-flags input {
  width: 16px;
  min-height: 16px;
  accent-color: #1d55ad;
}

.scope-geo-flags label:has(input:disabled) {
  color: #9aa3b2;
}

.geo-panel {
  padding: 18px;
  background: white;
  border-right: 1px solid var(--line);
}

.geo-map {
  position: relative;
  min-height: 520px;
  background:
    linear-gradient(rgba(0, 91, 172, 0.06), rgba(0, 91, 172, 0.06)),
    url("referencias/figma/003_342x159.png") center/cover no-repeat;
}

.geo-map::after {
  content: "";
  position: absolute;
  inset: 30% 35% 32% 30%;
  border: 3px solid #20c4d8;
  background: rgba(32, 196, 216, 0.22);
}

.geo-search {
  position: absolute;
  top: 20px;
  left: 26px;
  width: min(480px, 70%);
  display: grid;
  grid-template-columns: 1fr 48px;
  z-index: 1;
}

.geo-search input {
  border: 0;
  padding: 14px;
}

.geo-search button {
  border-radius: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 23, 42, 0.42);
  z-index: 10;
}

.modal {
  width: min(860px, 96vw);
  max-height: 90vh;
  overflow: auto;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}

.modal.large {
  width: min(1080px, 97vw);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.toast {
  margin-bottom: 14px;
  border: 1px solid #b9e6f4;
  background: #f0fbff;
  color: #075d83;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-weight: 700;
}

.footer {
  position: fixed;
  left: 200px;
  right: 0;
  bottom: 0;
  min-height: 34px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: white;
  font-size: 11px;
  z-index: 2;
}

.footer strong {
  color: var(--oefa-blue);
}

.pdf-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  grid-template-rows: 84px minmax(0, 1fr) 34px;
  background: #f4f6fb;
}

.pdf-topbar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 86px auto 1fr;
  align-items: center;
  min-width: 0;
  background: #005aa8;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 35, 85, 0.25);
  z-index: 4;
}

.pdf-menu {
  width: 86px;
  height: 84px;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background: transparent;
}

.pdf-menu svg {
  width: 25px;
  height: 25px;
}

.pdf-brand {
  display: flex;
  align-items: center;
  height: 84px;
  padding-left: 26px;
}

.pdf-brand img {
  width: 139px;
  height: auto;
  display: block;
}

.pdf-user {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 18px;
  padding-right: 38px;
}

.pdf-bell {
  width: 42px;
  height: 42px;
  border: 0;
  color: white;
  background: transparent;
  display: grid;
  place-items: center;
}

.pdf-user-text {
  display: grid;
  gap: 3px;
  text-align: right;
  font-size: 13px;
}

.pdf-user-text span {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.92;
}

.pdf-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
}

.pdf-rail {
  grid-row: 2 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 27px 0 16px;
  background: white;
  box-shadow: 3px 0 14px rgba(15, 23, 42, 0.14);
  z-index: 3;
}

.pdf-rail-btn {
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #7d8795;
  background: transparent;
}

.pdf-rail-btn.active {
  color: #005aa8;
  background: #eaf3ff;
}

.pdf-rail-btn.bottom {
  margin-top: auto;
  color: #005aa8;
}

.pdf-main {
  min-width: 0;
  padding: 33px 48px 42px;
  overflow: auto;
}

.pdf-footer {
  grid-column: 2;
  display: grid;
  place-items: center;
  color: #454e5d;
  background: white;
  font-size: 11px;
}

.pdf-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: #7b8795;
  font-size: 12px;
  margin-bottom: 24px;
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 3px;
  padding: 2px 0;
  background: transparent;
  color: #365c83;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.breadcrumb-link:hover {
  color: #005aa8;
  text-decoration: underline;
}

.breadcrumb-link:focus-visible {
  outline: 2px solid #005aa8;
  outline-offset: 3px;
}

.pdf-breadcrumb svg {
  width: 18px;
  height: 18px;
  color: #005aa8;
}

.pdf-breadcrumb strong {
  font-weight: 500;
}

.pdf-breadcrumb .current {
  color: #005aa8;
  font-weight: 700;
}

.pdf-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.pdf-title-row h1 {
  color: #252f3f;
  font-size: 33px;
  font-weight: 700;
}

.source-validation-info { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 5px; border: 1px solid currentColor; border-radius: 50%; color: inherit; font-family: Georgia, serif; font-size: 11px; font-style: normal; font-weight: 700; line-height: 1; vertical-align: middle; cursor: help; }
.source-validation-info:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.pdf-row-actions .source-comments-button { background: #eaf1fc; color: #2355a5; border-radius: 6px; }
.modal.source-comments-modal { width: min(900px, calc(100vw - 40px)); max-width: calc(100vw - 40px); padding: 24px; border-radius: 14px; }
.source-comments-modal .modal-head h2 { font-size: 20px; color: #183b70; }
.source-comments-context { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 12px 0 18px; padding: 12px 14px; background: #f2f6fc; border: 1px solid #e0e8f5; border-radius: 8px; }
.source-comments-context strong { color: #3556ac; font-size: 13px; }
.source-comments-context span { color: #6c7b91; font-size: 12px; }
.source-comments-table-wrap { overflow: auto; max-height: 55vh; border: 1px solid #dbe4ef; border-radius: 8px; }
.source-comments-table { width: 100%; min-width: 0; max-width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.source-comments-table th { padding: 13px 16px; color: #fff; background: #3556ac; font-size: 12px; text-align: left; }
.source-comments-table th:last-child { width: 220px; text-align: center; position: sticky; right: 0; z-index: 2; box-sizing: border-box; }
.source-comments-table td { padding: 18px 16px; border-bottom: 1px solid #e3eaf4; vertical-align: top; }
.source-comments-table td:first-child { min-width: 0; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.source-comments-table td:last-child { text-align: center; vertical-align: middle; position: sticky; right: 0; z-index: 1; background: #fff; border-left: 1px solid #e3eaf4; }
@media (max-width: 600px) { .source-comments-table th:last-child { width: 150px; } .source-comments-table td { padding: 14px 10px; } }
.source-comment-meta { color: #78869b; font-size: 11px; margin-bottom: 8px; }
.source-comments-table p { margin: 0; color: #34455e; font-size: 13px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.source-comment-attention-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.source-comment-attention-actions .btn { padding: 7px 10px; font-size: 12px; white-space: nowrap; }
.source-comment-status { display: inline-block; padding: 6px 12px; background: #edf1f7; color: #62748d; border-radius: 18px; font-size: 12px; font-weight: 600; }
.source-comment-status.attended { color: #237350; background: #eaf6ef; }
.source-comments-modal .modal-foot { padding-top: 18px; }

.source-comments-modal { max-height: calc(100vh - 40px); overflow-y: auto; }
.source-comment-composer { padding: 18px; margin-bottom: 22px; border: 1px solid #dae5f5; border-radius: 10px; background: #f7faff; }
.source-comment-composer > label { display: block; color: #23477d; font-size: 14px; font-weight: 600; }
.source-comment-composer > p { margin: 6px 0 12px; color: #74829a; font-size: 12px; line-height: 1.6; }
.source-comment-composer textarea { display: block; box-sizing: border-box; width: 100%; min-height: 110px; max-height: 240px; padding: 12px; resize: vertical; border: 1px solid #cfdaeb; border-radius: 7px; background: #fff; color: #34455e; font-size: 13px; line-height: 1.7; }
.source-comment-composer textarea:focus { outline: none; border-color: #3556ac; box-shadow: 0 0 0 3px #3556ac19; }
.source-comment-compose-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.source-comment-compose-footer > span { color: #b42318; font-size: 12px; }
.source-comment-compose-footer .btn { white-space: nowrap; font-size: 12px; }
.source-comments-history-title { margin: 0 0 12px; color: #23477d; font-size: 14px; }
.source-comments-modal:has(.source-comment-composer) .source-comments-table-wrap { max-height: 32vh; }
.source-comments-empty { color: #7a899e; font-size: 12px; text-align: center; }

.send-review-content .complete-content { margin-bottom: 18px; }
.review-submission-options { margin: 0 0 16px; padding: 14px 16px; border: 1px solid #dbe4f2; border-radius: 9px; background: #f7faff; }
.review-submission-options legend { color: #425b81; font-size: 12px; font-weight: 600; padding: 0 6px; }
.review-submission-options label { display: flex; align-items: center; gap: 9px; margin: 7px 0; color: #34455e; font-size: 13px; cursor: pointer; }
.review-submission-options input { accent-color: #3556ac; width: 16px; height: 16px; }
.review-submission-reason { display: block; margin-bottom: 8px; color: #42516a; font-size: 12px; font-weight: 600; }
.send-review-content textarea { box-sizing: border-box; width: 100%; min-height: 100px; padding: 10px 12px; border: 1px solid #cfdaeb; border-radius: 7px; font-size: 13px; color: #34455e; line-height: 1.6; resize: vertical; }
.send-review-content textarea:focus { outline: none; border-color: #3556ac; box-shadow: 0 0 0 3px #3556ac19; }
.review-submission-error { margin: 8px 0 0; color: #b42318; font-size: 12px; }

.review-status-cell .review-dot.unreviewed { --review-dot-color: transparent; background: transparent; border: 1px solid #aab6c7; box-sizing: border-box; box-shadow: none; animation: none; }
.registered-obligations-panel .review-obligation-actions .danger-icon { color: #c5343e; }
.modal.obligation-observation-view { width: min(600px, calc(100vw - 40px)); border-radius: 14px; padding: 24px; }
.obligation-observation-view .modal-head h2 { color: #183b70; font-size: 20px; }
.obligation-observation-view .observation-reference { color: #3556ac; font-size: 12px; font-weight: 600; }
.obligation-observation-view blockquote { margin: 16px 0; padding: 16px; border-left: 3px solid #e83d44; border-radius: 6px; background: #fff5f5; color: #42516a; font-size: 13px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 50vh; overflow: auto; }

.scope-list-panel .scope-row-actions .scope-review-observe { color: #c5343e; }
.modal.scope-review-modal { width: min(660px, calc(100vw - 40px)); border-radius: 14px; padding: 24px; }
.scope-review-modal .modal-head h2 { color: #183b70; font-size: 20px; }
.scope-review-reference { margin: 14px 0 20px; padding: 12px; border-radius: 7px; background: #f2f6fc; color: #425b81; font-size: 12px; line-height: 1.6; }
.scope-review-modal > label { display: block; margin-bottom: 8px; color: #42516a; font-size: 12px; font-weight: 600; }
.scope-review-modal textarea { box-sizing: border-box; width: 100%; min-height: 130px; border: 1px solid #cfdaeb; border-radius: 7px; padding: 12px; color: #34455e; font-size: 13px; line-height: 1.7; resize: vertical; }
.scope-review-modal textarea:focus { outline: none; border-color: #3556ac; box-shadow: 0 0 0 3px #3556ac19; }
.scope-review-error { color: #b42318; font-size: 12px; }
.scope-review-observations { max-height: 50vh; overflow: auto; }
.scope-review-observations article { margin-bottom: 12px; padding: 14px; border-left: 3px solid #e83d44; background: #fff5f5; border-radius: 6px; }
.scope-review-observations time { color: #7a899e; font-size: 11px; }
.scope-review-observations p { margin: 8px 0 0; color: #42516a; font-size: 13px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }

.modal.scope-review-save-confirm { width: min(560px, calc(100vw - 40px)); border-radius: 14px; padding: 24px; }
.scope-review-save-confirm .modal-head h2 { color: #183b70; font-size: 20px; }
.scope-review-save-confirm > p { padding: 14px 0; color: #42516a; font-size: 14px; line-height: 1.75; }
.scope-review-save-confirm .modal-foot { gap: 10px; }

.pdf-row-actions .reader-comment-action { position: relative; overflow: visible; margin-right: 8px; }
.reader-comment-count { position: absolute; top: -8px; right: -10px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid #fff; border-radius: 10px; background: #005ca9; color: #fff; font-size: 10px; line-height: 1; font-weight: 700; pointer-events: none; }

.scope-complete-save-actions { display: flex; justify-content: flex-end; margin-top: 22px; padding-top: 18px; border-top: 1px solid #e5ebf4; }
.scope-complete-save-actions .btn { min-height: 42px; padding: 10px 18px; font-size: 13px; font-weight: 600; }
.scope-complete-save-actions button:disabled { opacity: .45; cursor: not-allowed; }

.review-validation-date { display: flex; flex-direction: column; align-items: center; gap: 3px; margin-top: 9px; color: #74829a; font-size: 10px; line-height: 1.4; font-weight: 400; white-space: nowrap; }
.review-status-cell { vertical-align: middle; }

.source-module {
  background: transparent;
}

.source-section-tabs {
  display: flex;
  align-items: flex-end;
  gap: 64px;
  min-height: 48px;
  padding: 0 42px;
  border-bottom: 1px solid #a9c0df;
  margin: -8px -48px 24px;
}

.source-section-tabs button {
  min-height: 48px;
  min-width: 230px;
  border: 0;
  border-bottom: 4px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #005aa8;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
}

.source-section-tabs button.active {
  border-color: #1d55ad;
  color: #004f9d;
  font-weight: 800;
}

.source-section-tabs svg {
  width: 22px;
  height: 22px;
}

.source-tab-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 4px 12px;
  border-bottom: 4px solid #005aa8;
  color: #005aa8;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 22px;
}

.source-tab-title svg {
  width: 24px;
  height: 24px;
}

.source-board,
.scope-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 26px;
  margin-bottom: 20px;
}

.source-board.siged-board {
  align-items: start;
}

.source-left {
  min-width: 0;
}

.pdf-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdf-search {
  position: relative;
  width: min(680px, 100%);
}

.pdf-search input {
  width: 100%;
  height: 42px;
  border: 1px solid #c9d4e3;
  border-radius: 6px;
  padding: 10px 46px 10px 15px;
  color: #1e293b;
  background: white;
}

.pdf-search svg {
  position: absolute;
  right: 15px;
  top: 12px;
  color: #005aa8;
}

.pdf-filter {
  width: 42px;
  height: 42px;
  border: 1px solid #c9d4e3;
  border-radius: 6px;
  color: #005aa8;
  background: white;
  display: grid;
  place-items: center;
}

.pdf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 13px 0 24px;
}

.pdf-chips span {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  color: #005aa8;
  background: #e8f2ff;
  font-size: 12px;
  font-weight: 700;
}

.pdf-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  border-bottom: 1px solid #d7e0ec;
}

.pdf-tabs button {
  min-height: 42px;
  border: 0;
  border-bottom: 4px solid transparent;
  color: #667085;
  background: transparent;
  font-weight: 700;
}

.pdf-tabs button.active {
  color: #005aa8;
  border-color: #005aa8;
}

.pdf-tabs b {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  margin-left: 8px;
  border-radius: 999px;
  color: white;
  background: #ee4d4d;
  font-size: 11px;
}

.source-actions,
.scope-actions {
  display: grid;
  gap: 10px;
  min-width: 210px;
}

.pdf-action {
  min-height: 39px;
  border: 1px solid #005aa8;
  border-radius: 999px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #005aa8;
  background: white;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.pdf-action.primary {
  color: white;
  background: #005aa8;
}

.source-table-wrap {
  overflow: auto;
  border-radius: 6px;
}

.pdf-source-table {
  min-width: 1260px;
  border-collapse: collapse;
  background: white;
}

.siged-table {
  min-width: 1180px;
}

.pdf-source-table th {
  height: 48px;
  padding: 10px 13px;
  border-right: 1px solid rgba(255, 255, 255, 0.42);
  border-bottom: 0;
  color: white;
  background: #005aa8;
  font-size: 12px;
  text-align: left;
  white-space: normal;
}

.pdf-source-table td {
  min-height: 62px;
  padding: 12px 13px;
  border-bottom: 1px solid #dbe4ef;
  color: #263445;
  background: white;
  font-size: 12px;
  vertical-align: top;
}

.pdf-source-table tbody tr:nth-child(even) td {
  background: white;
}

.pdf-source-table .uf-cell span {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-weight: 400;
}

.pdf-status {
  min-width: 72px;
  display: inline-flex;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.pdf-status.red {
  color: #d04545;
  background: #ffe8e8;
}

.pdf-status.green {
  color: #008955;
  background: #e6f8ef;
}

.pdf-status.blue {
  color: #005aa8;
  background: #e7f2ff;
}

.pdf-status.muted {
  color: #475569;
  background: #eef2f7;
}

.pdf-row-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.pdf-row-actions button {
  width: 23px;
  height: 23px;
  border: 0;
  color: #005aa8;
  background: transparent;
  display: inline-grid;
  place-items: center;
}

.pdf-row-actions button.highlight {
  border-radius: 5px;
  color: #24439c;
  background: rgba(51, 81, 170, 0.14);
}

.source-modification-menu-wrap,
.source-review-menu-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
}

.source-modification-menu,
.source-review-menu {
  position: absolute;
  top: 28px;
  right: 0;
  z-index: 6;
  display: grid;
  min-width: 158px;
  padding: 6px;
  border: 1px solid #dbe4ef;
  border-radius: 7px;
  background: white;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.source-review-menu {
  min-width: 176px;
}

.pdf-row-actions .source-modification-menu button,
.pdf-row-actions .source-review-menu button {
  width: 100%;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 9px;
  border-radius: 5px;
  color: #263445;
  font-size: 12px;
  white-space: nowrap;
}

.pdf-row-actions .source-modification-menu button:hover,
.pdf-row-actions .source-review-menu button:hover {
  color: #24439c;
  background: rgba(51, 81, 170, 0.1);
}

.pdf-row-actions svg {
  width: 15px;
  height: 15px;
}

.scope-panel {
  min-height: 430px;
  padding: 30px 32px;
  border-radius: 6px;
  background: white;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.scope-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
}

.scope-heading div {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #005aa8;
  font-size: 17px;
}

.scope-heading svg {
  width: 28px;
  height: 28px;
}

.scope-heading span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  color: #005aa8;
  background: #e8f2ff;
  font-size: 12px;
  font-weight: 700;
}

.obligations-panel {
  min-height: 640px;
  min-width: 0;
  overflow-x: hidden;
}

.obligations-heading {
  margin-bottom: 28px;
}

.obligations-heading .source-pill {
  min-height: 34px;
  padding: 0 14px;
  color: white;
  background: #1d55ad;
  font-size: 13px;
  border-radius: 18px;
}

.obligations-tools {
  margin-bottom: 28px;
}

.obligations-tools .scope-actions {
  min-width: 220px;
}

.obligations-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid #dbe4ef;
  border-radius: 6px;
  background: white;
}

.obligations-table {
  width: max-content;
  min-width: 1540px;
}

.obligations-table th,
.obligations-table td {
  text-align: center;
}

.obligations-table td:nth-child(2),
.obligations-table td:nth-child(3),
.obligations-table td:nth-child(4),
.obligations-table td:nth-child(5),
.obligations-table td:nth-child(6),
.obligations-table td:nth-child(7) {
  text-align: left;
}

.obligations-table th:nth-child(1),
.obligations-table td:nth-child(1) {
  width: 70px;
}

.obligations-table th:nth-child(2),
.obligations-table td:nth-child(2) {
  min-width: 230px;
}

.obligations-table th:nth-child(3),
.obligations-table td:nth-child(3) {
  min-width: 130px;
}

.obligations-table th:nth-child(4),
.obligations-table td:nth-child(4) {
  min-width: 150px;
}

.obligations-table th:nth-child(5),
.obligations-table td:nth-child(5) {
  min-width: 170px;
}

.obligations-table th:nth-child(6),
.obligations-table td:nth-child(6) {
  min-width: 190px;
}

.obligations-table th:nth-child(7),
.obligations-table td:nth-child(7) {
  min-width: 150px;
}

.obligations-table th:nth-child(8),
.obligations-table td:nth-child(8) {
  min-width: 100px;
}

.obligation-stage-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
}

.obligation-child-row > td {
  padding: 0 0 14px 48px;
  background: white;
}

.obligation-subtable {
  width: 100%;
  min-width: 0;
  border: 1px solid #dbe2ee;
  border-radius: 6px;
  overflow: hidden;
}

.obligation-subtable th {
  background: #b9bec7;
  color: white;
}

.obligation-subtable td {
  background: white;
}

.obligation-form-panel {
  min-height: 650px;
}

.obligation-form-grid {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(260px, 1fr) minmax(260px, 1fr);
  gap: 22px 86px;
  margin: 38px 22px 54px;
  align-items: end;
}

.obligation-form-grid .field textarea {
  min-height: 80px;
}

.obligation-form-grid .description-field textarea {
  min-height: 86px;
}

.observation-field {
  grid-column: 1 / 3;
}

.observation-field textarea {
  min-height: 96px;
}

.measure-field {
  grid-column: 3;
}

.document-field {
  grid-column: 3;
  align-self: start;
}

.document-field .pdf-action {
  width: 100%;
  border-radius: 5px;
  min-height: 38px;
}

.obligation-register-table {
  min-width: 980px;
  width: calc(100% - 220px);
  margin: 0 auto;
}

.obligation-register-table th,
.obligation-register-table td {
  text-align: center;
}

.obligation-register-table th:nth-child(1),
.obligation-register-table td:nth-child(1) {
  width: 28%;
}

.obligation-register-table th:nth-child(2),
.obligation-register-table td:nth-child(2) {
  width: 24%;
}

.obligation-register-table th:nth-child(3),
.obligation-register-table td:nth-child(3) {
  width: 9%;
}

.obligation-register-table th:nth-child(4),
.obligation-register-table td:nth-child(4) {
  width: 27%;
}

.obligation-register-table th:nth-child(5),
.obligation-register-table td:nth-child(5) {
  width: 12%;
}

.obligation-register-table .blank-document-row td {
  height: 86px;
}

.obligation-form-actions {
  display: flex;
  justify-content: flex-end;
  margin: 26px 22px 0;
}

.obligation-form-actions .btn {
  min-width: 160px;
  border-radius: 22px;
}

.scope-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  background: white;
}

.scope-table th {
  height: 48px;
  padding: 12px 16px;
  border: 0;
  color: white;
  background: #3556ac;
  text-align: left;
  font-size: 16px;
}

.normative-scope-section {
  display: grid;
  gap: 16px;
}

.normative-scope-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1fr);
  gap: 18px;
  max-width: 560px;
}

.normative-article-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5eaf2;
  border-radius: 6px;
  background: white;
}

.scope-table.normative-article-table {
  min-width: 1080px;
}

.normative-article-table th,
.normative-article-table td {
  text-align: center;
  vertical-align: middle;
}

.normative-article-table th {
  font-size: 13px;
  padding: 11px 10px;
}

.normative-article-table td {
  padding: 12px 10px;
  font-size: 13px;
}

.normative-article-table th:nth-child(1),
.normative-article-table td:nth-child(1) {
  width: 54px;
}

.normative-article-table th:nth-child(4),
.normative-article-table td:nth-child(4),
.normative-article-table th:nth-child(5),
.normative-article-table td:nth-child(5) {
  text-align: left;
}

.normative-select-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.normative-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  color: #1d55ad;
  transform: rotate(-90deg);
  cursor: pointer;
}

.normative-expand.open {
  transform: rotate(0deg);
}

.normative-child-row td {
  background: #fbfcff;
}

.normative-child-row td:nth-child(2) {
  padding-left: 22px;
}

.scope-table.normative-article-table {
  min-width: 0;
  table-layout: fixed;
}

.normative-article-table th,
.normative-article-table td {
  border-bottom: 1px solid #e7edf5;
}

.normative-article-table th:nth-child(1),
.normative-article-table td:nth-child(1) { width: 7%; }

.normative-article-table th:nth-child(2),
.normative-article-table td:nth-child(2) { width: 25%; }

.normative-article-table th:nth-child(3),
.normative-article-table td:nth-child(3) { width: 14%; }

.normative-article-table th:nth-child(4),
.normative-article-table td:nth-child(4) { width: 10%; }

.normative-article-table th:nth-child(5),
.normative-article-table td:nth-child(5) { width: 35%; }

.normative-article-table th:nth-child(6),
.normative-article-table td:nth-child(6) { width: 9%; }

.normative-article-table th {
  background: #1d55ad;
  font-size: 14px;
  text-align: center;
}

.normative-article-table td {
  padding: 14px 12px;
  color: #2f3747;
  font-size: 14px;
  line-height: 1.5;
}

.normative-article-table .normative-scope-cell,
.normative-article-table .normative-source-cell {
  text-align: left;
}

.normative-select-cell {
  gap: 6px;
}

.normative-article-table input[type="checkbox"],
.normative-subgrid input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #1d55ad;
}

.normative-subgrid-row > td {
  padding: 0 0 14px;
  background: #fff;
}

.normative-subgrid-wrap {
  width: calc(100% - 7%);
  margin-left: 7%;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.normative-subgrid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.normative-subgrid th {
  height: 34px;
  padding: 8px 10px;
  color: #fff;
  background: #b8bfca;
  font-size: 13px;
  text-align: left;
}

.normative-subgrid td {
  padding: 11px 10px;
  border: 0;
  color: #2f3747;
  background: #fff;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.normative-subgrid th:nth-child(1),
.normative-subgrid td:nth-child(1) { width: 5%; text-align: center; }

.normative-subgrid th:nth-child(2),
.normative-subgrid td:nth-child(2) { width: 26%; }

.normative-subgrid th:nth-child(3),
.normative-subgrid td:nth-child(3) { width: 15%; }

.normative-subgrid th:nth-child(4),
.normative-subgrid td:nth-child(4) { width: 17%; }

.normative-subgrid th:nth-child(5),
.normative-subgrid td:nth-child(5) { width: 24%; }

.normative-subgrid th:nth-child(6),
.normative-subgrid td:nth-child(6) { width: 13%; }

/* Keep the expand/check control inside a compact table cell. */
.normative-article-table th:first-child,
.normative-article-table td:first-child {
  width: 2.4% !important;
  min-width: 42px;
  max-width: 42px;
  padding: 0 !important;
}

.normative-article-table th:nth-child(1),
.normative-article-table td:nth-child(1) {
  width: 2.4% !important;
}

.normative-article-table th:nth-child(2),
.normative-article-table td:nth-child(2) {
  width: 29.6%;
}

.normative-article-table td.normative-select-cell {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.normative-select-cell .normative-expand,
.normative-select-cell input[type="checkbox"] {
  vertical-align: middle;
}

/* The parent scope-table rule also affects nested headers; preserve gray here. */
.scope-table .normative-subgrid th {
  color: #fff !important;
  background: #b8bfca !important;
}

.scope-sort-head {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.scope-sort-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 6px;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.scope-sort-trigger.active,
.scope-sort-trigger:hover {
  background: rgba(255, 255, 255, 0.24);
}

.scope-sort-trigger svg {
  width: 15px;
  height: 15px;
}

.scope-sort-menu {
  position: absolute;
  z-index: 15;
  top: calc(100% + 10px);
  left: 0;
  width: 270px;
  padding: 12px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 28px rgba(23, 34, 55, 0.16);
  color: #2f3747;
}

.scope-sort-menu strong,
.scope-sort-menu small {
  display: block;
}

.scope-sort-menu strong {
  margin-bottom: 8px;
  color: #1f376d;
  font-size: 13px;
}

.scope-sort-menu label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  font-size: 13px;
  font-weight: 500;
  color: #384255;
}

.scope-sort-menu input {
  width: 15px;
  height: 15px;
  accent-color: #3154ad;
}

.scope-sort-divider {
  height: 1px;
  margin: 8px 0;
  background: #e7edf6;
}

.scope-sort-menu small {
  margin-top: 8px;
  color: #687384;
  font-size: 12px;
}

.scope-table td {
  height: 64px;
  padding: 16px;
  border: 1px solid #dbe4ef;
  background: white;
  color: #404857;
  vertical-align: middle;
  font-size: 15px;
}

.scope-table.obligation-subtable th {
  background: #b9bec7;
  color: white;
}

.scope-table.obligation-subtable th,
.scope-table.obligation-subtable td {
  font-size: 14px;
}

.scope-table.obligation-subtable td {
  background: white;
}

.scope-table .scope-parent-row > td {
  border-top: 0;
  border-bottom: 0;
}

.scope-table th:first-child,
.scope-table td:first-child,
.scope-subtable th:first-child,
.scope-subtable td:first-child {
  width: 72px;
  text-align: center;
}

.scope-nro {
  width: 72px;
  white-space: nowrap;
}

.scope-nro span {
  display: inline-block;
  min-width: 20px;
  color: #2f3747;
}

.scope-toggle {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border: 0;
  display: inline-grid;
  place-items: center;
  color: #1d55ad;
  background: transparent;
  cursor: pointer;
  transform: rotate(-90deg);
}

.scope-toggle.open {
  transform: rotate(0deg);
}

.scope-toggle svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.scope-detail {
  display: grid;
  gap: 6px;
  line-height: 1.25;
}

.scope-detail-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scope-detail-head .scope-toggle {
  flex: 0 0 auto;
}

.scope-inline-nro {
  min-width: 20px;
  color: #1f2937;
  font-weight: 600;
  text-align: center;
}

.scope-detail strong {
  font-size: 16px;
  font-weight: 800;
}

.scope-detail b {
  font-weight: 800;
}

.scope-detail em {
  font-style: italic;
}

.scope-source-name {
  display: grid;
  gap: 5px;
  line-height: 1.28;
}

.scope-source-name b {
  font-weight: 800;
}

.scope-row-actions {
  justify-content: flex-start;
  gap: 10px;
}

.scope-row-actions .icon-btn {
  width: 22px;
  height: 22px;
  color: #1d55ad;
}

.review-summary {
  width: min(620px, 100%);
  margin: 8px auto 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 14px;
}

.review-counter {
  min-height: 34px;
  padding: 6px 18px;
  border: 1px solid #e1e9f2;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  box-shadow: 0 1px 5px rgba(20, 35, 65, 0.08);
}

.review-counter strong {
  font-size: 17px;
  color: #273143;
}

.review-counter small {
  color: #5c6678;
  font-size: 13px;
}

.review-dot {
  --review-dot-color: #3556ac;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  display: inline-block;
  background: var(--review-dot-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--review-dot-color) 12%, transparent);
}

.review-dot.pending {
  --review-dot-color: #f5ad22;
}

.review-dot.observed {
  --review-dot-color: #e83d44;
}

.review-dot.approved {
  --review-dot-color: #20c96b;
}

@keyframes review-dot-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--review-dot-color) 30%, transparent);
  }
  50% {
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--review-dot-color) 11%, transparent);
  }
}

.review-status-cell {
  text-align: center;
}

.review-status-cell .review-dot {
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--review-dot-color) 32%, transparent);
  animation: review-dot-pulse 1.55s ease-in-out infinite;
}

.review-obligation-actions {
  gap: 8px;
}

.review-obligation-actions .danger-icon {
  color: #e83d44;
}

.scope-child-row > td {
  padding: 0 4px 4px 0;
  border-top: 0;
  border-bottom: 1px solid #edf1f6;
}

.scope-subtable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #d9dee8;
  border-radius: 6px;
  overflow: hidden;
}

.scope-subtable th {
  height: 48px;
  padding: 12px 16px;
  color: white;
  background: #b8bdc6;
  text-align: left;
  font-size: 15px;
}

.scope-subtable td {
  min-height: 74px;
  padding: 16px;
  border: 0;
  border-right: 1px solid #edf1f6;
  background: white;
  vertical-align: middle;
}

.scope-subtable td:last-child,
.scope-subtable th:last-child {
  border-right: 0;
}

.empty-scope {
  color: #7b8795;
  text-align: center;
  font-weight: 700;
}

.modal.source-filter-modal {
  display: flex;
  flex-direction: column;
  width: min(790px, 100%);
  min-width: 0;
  max-height: calc(100dvh - 44px);
  overflow: hidden;
  padding: 0;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px #152c5538;
}

.source-filter-modal .modal-head {
  flex: none;
  justify-content: flex-start;
  gap: 12px;
  margin: 0;
  padding: 17px 25px;
  border-bottom: 1px solid #dfe8f4;
  background: #f3f7fd;
}

.source-filter-modal .modal-head h2 {
  flex: 1;
  margin: 0;
  color: #183b70;
  font-size: 21px;
  line-height: 1.25;
}

.source-filter-icon,
.source-filter-modal .modal-head .icon-btn {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #2853a0;
}

.source-filter-icon {
  background: #e2ecfc;
}

.source-filter-modal .modal-head .icon-btn:hover {
  background: #e2ecfc;
}

.source-filter-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 25px;
}

.source-filter-group {
  padding: 16px 0;
}

.source-filter-group + .source-filter-group {
  border-top: 1px solid #e4ebf4;
}

.source-filter-group h3 {
  margin: 0 0 10px;
  color: #24446e;
  font-size: 14px;
  font-weight: 700;
}

.source-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px 16px;
}

.source-filter-grid.three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.source-filter-grid + .source-filter-grid {
  margin-top: 12px;
}

.source-filter-modal .field {
  gap: 5px;
  min-width: 0;
  color: #42546e;
  font-size: 13px;
  font-weight: 600;
}

.source-filter-modal .field input:not([type="checkbox"]),
.source-filter-modal .field select,
.source-filter-modal .multi-combo summary {
  box-sizing: border-box;
  width: 100%;
  min-height: 38px;
  border: 1px solid #ccd8e7;
  border-radius: 7px;
  padding: 7px 10px;
  background: #fcfdff;
  color: #233b58;
  font: inherit;
  font-weight: 400;
}

.source-filter-modal input::placeholder {
  color: #62758d;
}

.source-filter-modal .multi-combo summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  list-style: none;
  cursor: pointer;
}

.source-filter-modal .multi-combo summary::-webkit-details-marker {
  display: none;
}

.source-filter-modal .multi-combo summary svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: #526b8c;
}

.source-filter-modal .multi-combo[open] summary svg {
  transform: rotate(180deg);
}

.source-filter-modal .multi-combo-menu {
  margin-top: 5px;
  padding: 4px;
  border: 1px solid #d8e3f0;
  border-radius: 7px;
}

.source-filter-modal .multi-combo-menu label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 4px 7px;
  border-radius: 4px;
  font-weight: 400;
  cursor: pointer;
}

.source-filter-modal .multi-combo-menu label:hover {
  background: #edf4ff;
}

.source-filter-modal .multi-combo-menu input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #3556ac;
}

.source-filter-modal :is(input, select, summary, button):focus-visible {
  outline: 2px solid #3556ac;
  outline-offset: 2px;
}

.source-filter-modal .modal-foot {
  flex: none;
  margin: 0;
  padding: 13px 25px;
  border-top: 1px solid #dfe8f4;
  background: #f8fafd;
}

.source-filter-modal .modal-foot .btn {
  min-height: 38px;
  padding: 7px 15px;
  border-radius: 8px;
}

.source-filter-modal .modal-foot .btn:not(.primary) {
  border-color: #cbd8ea;
  background: #fff;
  color: #2b4d7b;
}

.source-filter-modal .modal-foot .btn:not(.primary):hover {
  background: #edf3fc;
}

@media (max-width: 650px) {
  .source-filter-grid.three-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .source-filter-modal .modal-head,
  .source-filter-modal .modal-foot {
    padding-inline: 15px;
  }

  .source-filter-body {
    padding-inline: 15px;
  }

  .source-filter-grid,
  .source-filter-grid.three-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pdf-wizard {
  border-top: 1px solid #c5d4e6;
  padding-top: 24px;
}

.pdf-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 0 0 14px;
  color: #566171;
}

.pdf-step {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 16px;
}

button.pdf-step {
  cursor: pointer;
}

.pdf-step > span {
  width: 34px;
  height: 34px;
  border: 1px solid #b8c5d8;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #4d5968;
  background: white;
  font-weight: 700;
}

.pdf-step > span svg {
  width: 17px;
  height: 17px;
}

.pdf-step > b {
  position: relative;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
}

.pdf-step.active {
  color: #1d55ad;
}

.pdf-step.active > span {
  border-color: #1d55ad;
  color: white;
  background: #1d55ad;
}

.pdf-step.active > b::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: #1d55ad;
}

.pdf-step.done > span {
  border-color: #1d55ad;
  color: #1d55ad;
}

.pdf-step.has-observation > span {
  border-color: #d65a5a;
  color: #b63535;
  background: #fff6f6;
  box-shadow: 0 0 0 0 rgba(214, 90, 90, 0.28);
  animation: soft-observation-pulse 1.8s ease-in-out infinite;
}

.pdf-step.has-observation > b {
  color: #9d3333;
}

.pdf-step.has-observation > b small {
  min-width: 18px;
  height: 18px;
  margin-left: 7px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #c74444;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.pdf-step.has-observation > b small:hover {
  background: #9d3333;
}

@keyframes soft-observation-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(214, 90, 90, 0.22); }
  50% { box-shadow: 0 0 0 7px rgba(214, 90, 90, 0.08); }
}

.wizard-card {
  --wizard-content-width: 1220px;
  min-height: 585px;
  position: relative;
  padding: 34px 42px 96px;
  border-radius: 6px;
  background: white;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.wizard-card h2,
.wizard-uf-title {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin: 0 0 34px;
  color: #1d55ad;
  font-size: 26px;
  line-height: 1.24;
  font-weight: 800;
  max-width: 100%;
}

.wizard-card h2 svg {
  width: 24px;
  height: 24px;
  margin-top: 3px;
  stroke-width: 2.3;
}

.wizard-uf-label {
  white-space: nowrap;
  letter-spacing: 0;
}

.wizard-uf-name {
  min-width: 0;
  max-width: 900px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.wizard-uf-name strong,
.collective-name-link strong {
  font-weight: 800;
}

.wizard-uf-name span,
.collective-name-link span {
  font-weight: 400;
}

.source-pill {
  display: inline-flex;
  width: max-content;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 22px;
  padding: 0 18px;
  color: white;
  background: #3556ac;
  font-size: 15px;
  font-weight: 700;
}

.scope-wizard-header {
  display: grid;
  gap: 2px;
  margin: 0 0 28px;
}

.scope-uf-title {
  grid-template-columns: 30px minmax(0, auto);
  margin: 0;
}

.scope-source-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 36px;
  flex-wrap: wrap;
}

.scope-source-pills .source-pill {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 18px;
  font-size: 13px;
}

.scope-panel-header {
  margin-bottom: 26px;
}

.scope-panel-header .scope-uf-title {
  color: #005aa8;
  font-size: 24px;
}

.scope-panel-header .scope-uf-title svg {
  width: 25px;
  height: 25px;
}

.collective-title {
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
}

.collective-name-link {
  border: 0;
  padding: 0;
  color: #1d55ad;
  background: transparent;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0;
  text-align: left;
  cursor: pointer;
}

.collective-name-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info-link {
  width: 20px;
  height: 20px;
  border: 2px solid #1d55ad;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #1d55ad;
  background: white;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
}

.modal.associate-uf-modal {
  width: min(832px, 94vw);
  border-radius: 14px;
  padding: 28px 40px;
}

.associate-uf-modal .modal-head {
  margin: -28px -40px 28px;
  padding: 28px 40px 16px;
  border-bottom: 1px solid #e5eaf2;
}

.associate-uf-modal .modal-head h2 {
  color: #2f3747;
  font-size: 25px;
  font-weight: 800;
}

.associate-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 18px 74px;
}

.associate-form .field {
  color: #3e4655;
  font-size: 15px;
}

.associate-form .field.wide {
  grid-column: 1 / -1;
}

.associate-form input,
.associate-form select {
  min-height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 10px;
  background: white;
}

.add-associate {
  align-self: end;
}

.associate-table-wrap {
  max-width: 760px;
  margin: 28px auto 42px;
  overflow: auto;
}

.associate-table {
  min-width: 700px;
  border-collapse: collapse;
}

.associate-table th {
  height: 52px;
  border: 0;
  color: white;
  background: #1d55ad;
  font-size: 14px;
  text-align: center;
}

.associate-table td {
  height: 36px;
  border: 1px solid #edf1f6;
  background: white;
  color: #2f3747;
  font-size: 14px;
  text-align: center;
}

.import-stepper {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0 0 20px;
  margin: 0 0 22px;
  border-bottom: 1px solid #dbe4ef;
  color: #68768b;
}

.import-stepper button { display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.import-stepper button:focus-visible { outline: 2px solid #005ca9; outline-offset: 4px; border-radius: 4px; }
.import-stepper b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #edf1f6; }
.import-stepper .active { color: #005ca9; font-weight: 700; }
.import-stepper .active b { color: white; background: #005ca9; }
.import-stepper .done b { color: #005ca9; background: #e6f1fb; }
.import-obligations-content { max-height: 54vh; overflow: auto; }
.import-instructions { margin: 0 0 20px; color: #536177; line-height: 1.5; }
.import-obligation-group { margin-bottom: 20px; border: 1px solid #dbe4ef; border-radius: 8px; overflow: hidden; }
.import-obligation-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; background: #f2f6fc; }
.import-obligation-heading strong { color: #005ca9; font-size: 12px; }
.import-obligation-heading h3 { margin: 5px 0 0; font-size: 14px; }
.import-obligation-heading { cursor: pointer; list-style: none; }
.import-obligation-heading::-webkit-details-marker { display: none; }
.import-obligation-heading:focus-visible { outline: 2px solid #005ca9; outline-offset: -3px; }
.import-section-name { flex: 1; }
.import-obligation-heading .import-section-arrow { display: flex; flex: 0 0 18px; color: #005ca9; transform: rotate(-90deg); transition: transform .18s ease; }
.import-section-arrow svg { width: 18px; height: 18px; }
.import-obligation-group[open] > .import-obligation-heading .import-section-arrow { transform: rotate(0); }
.import-nested-subscopes { margin: 16px; padding-left: 16px; border-left: 3px solid #dbe4ef; }
.import-nested-subscopes > h4 { margin: 0 0 12px; color: #536177; font-size: 12px; }
.import-obligation-subscope { margin-bottom: 12px; }
.import-obligation-subscope > .import-obligation-heading { background: #f8fafd; }
.import-obligation-heading > span { font-size: 12px; white-space: nowrap; color: #536177; }
.import-obligation-table-wrap { overflow-x: auto; }
.import-obligation-table { width: 100%; min-width: 1120px; border-collapse: collapse; font-size: 13px; }
.import-obligation-table th { padding: 12px; background: #3556ac; color: white; text-align: left; }
.import-obligation-table td { padding: 12px; border-bottom: 1px solid #e3eaf3; line-height: 1.5; vertical-align: top; }
.import-obligation-table th:first-child, .import-obligation-table td:first-child { width: 40px; text-align: center; }
.import-obligation-table th:nth-child(2) { width: 220px; }
.import-obligation-table th:nth-child(3) { width: 130px; }
.import-obligation-table th:nth-child(4) { width: 140px; }
.import-obligation-table th:nth-child(5) { width: 180px; }
.import-obligation-table th:nth-child(6) { width: 180px; }
.import-obligation-table th:nth-child(7) { width: 150px; }
.import-obligation-table th:last-child { width: 90px; }
.import-scope-modal .modal-foot { flex-wrap: wrap; }
.import-selection-summary { margin-right: auto; color: #536177; font-size: 13px; }
.import-scope-modal button:disabled { opacity: .45; cursor: not-allowed; }

.associate-table-wrap.compact {
  margin-bottom: 10px;
}

.associate-table.scope-application-table th:first-child,
.associate-table.scope-application-table td:first-child {
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  padding: 8px;
  box-sizing: border-box;
}

.modal.scope-application-modal { width: min(760px, calc(100vw - 40px)); }
.scope-application-modal .associate-table-wrap { max-height: 240px; overflow: auto; margin: 16px 0; }
.scope-application-modal .scope-application-table { width: 100%; min-width: 0; }
.scope-application-modal .scope-application-table th,
.scope-application-modal .scope-application-table td { height: 34px; min-height: 0; padding: 6px 10px; font-size: 12px; }
.scope-application-modal .scope-application-table th:first-child,
.scope-application-modal .scope-application-table td:first-child { width: 36px; min-width: 36px; max-width: 36px; padding: 6px; }

.associate-uf-modal .modal-foot {
  margin: 0 -40px -28px;
  padding: 14px 40px 28px;
  border-top: 1px solid #e5eaf2;
}

.pdf-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(210px, 1fr));
  gap: 26px 72px;
  max-width: 1380px;
  margin-left: 0;
  margin-right: auto;
}

.pdf-form-grid.other-source {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .8fr);
  gap: 20px 40px;
  max-width: 1240px;
}

.other-source .other-number { grid-column: 1; }
.other-source .other-description { grid-column: 1 / 3; }
.other-source .other-attachments { grid-column: 1 / -1; }
.other-attachment-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.other-attachment-controls .other-filename { width: 260px; }
.other-source input[type="file"][hidden] { display: none; }
.other-file-help { max-width: 280px; font-size: 12px; line-height: 1.8; margin: 6px 0; text-align: center; }
.other-file-table { max-width: 550px; }
.other-file-table .pdf-simple-table table { min-width: 0; width: 100%; table-layout: fixed; }
.other-file-table .pdf-simple-table th:first-child { width: 65px; }
.other-file-table .pdf-simple-table th:last-child { width: 110px; }
.other-file-table td:nth-child(2) { overflow-wrap: anywhere; }
.other-source .required-note { grid-column: 1 / -1; margin-top: 8px; }
@media (max-width: 900px) {
  .pdf-form-grid.other-source { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .other-source .other-number, .other-source .other-description { grid-column: 1; }
  .other-attachment-controls .other-filename { width: 100%; }
}

.pdf-form-grid.intro {
  grid-template-columns: minmax(300px, 520px) minmax(300px, 520px);
}

.mandate-search-status,
.mandate-search-results {
  grid-column: 1 / -1;
}

.mandate-search-status:empty,
.mandate-search-results:empty {
  display: none;
}

.mandate-search-results {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.mandate-search-results .field {
  flex: 1 1 240px;
}

.mandate-search-results input[readonly] {
  background: #f6f7f9;
}

.mandate-source ~ .pdf-wizard-actions [data-next-source]:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.mandate-attachment {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #f8fafd;
}

.mandate-attachment h3 {
  margin: 0 0 9px;
  color: #243e64;
  font-size: 14px;
}

.mandate-attachment-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.mandate-attachment-name {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #2f4564;
  font-size: 13px;
}

.pdf-form-grid.normative-source {
  grid-template-columns: minmax(300px, 520px) minmax(260px, 360px) minmax(260px, 360px);
  gap: 24px 44px;
  max-width: 1080px;
}

.pdf-form-grid.normative-source .field:first-child {
  grid-column: 1 / 2;
}

.pdf-form-grid.normative-source .normative-name-field {
  grid-column: 1 / -1;
  max-width: 960px;
}

.pdf-form-grid .norma-readonly,
.pdf-form-grid input.norma-readonly:disabled {
  background: #f3f1ff;
  border-color: transparent;
  color: #2f3a4a;
  opacity: 1;
}

.pdf-form-grid.scope-general {
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 26px 54px;
}

.pdf-form-grid.scope-general textarea {
  min-height: 104px;
}

.pdf-form-grid.scope-general em {
  color: #8b95a5;
  font-style: italic;
}

.scope-denomination {
  grid-column: span 2;
}

.scope-activity-field {
  align-self: start;
}

.scope-general .multi-combo {
  position: relative;
}

.scope-general .multi-combo summary {
  width: 100%;
  min-height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  background: white;
  color: #2e3440;
  cursor: pointer;
}

.scope-general .multi-combo summary::-webkit-details-marker {
  display: none;
}

.scope-general .multi-combo summary svg {
  width: 16px;
  height: 16px;
}

.scope-general .multi-combo[open] summary {
  border-color: #1d55ad;
  box-shadow: 0 0 0 3px rgba(29, 85, 173, 0.12);
}

.scope-general .multi-combo[open] summary svg {
  transform: rotate(180deg);
}

.scope-general .multi-combo-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  display: grid;
  padding: 6px 0;
  border: 1px solid #e5eaf2;
  border-radius: 0 0 6px 6px;
  background: white;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.scope-general .multi-combo-menu label {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-bottom: 1px solid #eef2f7;
  color: #2e3440;
  font-size: 14px;
}

.scope-general .multi-combo-menu label:last-child {
  border-bottom: 0;
}

.scope-general .multi-combo-menu input {
  width: 16px;
  min-height: 16px;
  accent-color: #1d55ad;
}

.pdf-form-grid.consultant {
  grid-template-columns: minmax(0, 1120px);
  gap: 22px;
  max-width: 1120px;
}

.consultant-mode-block {
  display: grid;
  gap: 10px;
  justify-items: start;
  max-width: 720px;
}

.consultant-guidance {
  margin: 0;
  color: #3d4656;
  font-size: 14px;
  line-height: 1.45;
}

.consultant-details {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(380px, 1fr) auto;
  gap: 24px;
  align-items: end;
  width: 100%;
  max-width: 1120px;
}

.consultant-details .add-line {
  min-width: 176px;
}

.pdf-form-grid.files {
  max-width: 980px;
  margin: 0 auto 0 0;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.25fr) minmax(260px, 1fr);
  align-items: end;
  gap: 22px 58px;
}

.pdf-form-grid.files-siged {
  max-width: 1000px;
  grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1fr) minmax(300px, 1fr);
  gap: 22px 70px;
}

.pdf-form-grid .field {
  font-size: 16px;
  color: #2e3440;
}

.pdf-form-grid .field.wide {
  grid-column: 1 / -1;
  max-width: 990px;
}

.pdf-form-grid .field.double {
  grid-column: span 2;
}

.collective-approval-block {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  width: min(100%, var(--wizard-content-width));
  max-width: var(--wizard-content-width);
}

.collective-approval-block p {
  margin: 0 0 2px 4px;
  color: #2f3747;
  font-size: 17px;
}

.collective-approval-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 6px;
  overflow: hidden;
  background: white;
}

.collective-approval-table th {
  height: 52px;
  padding: 0 18px;
  color: white;
  background: #1d55ad;
  font-size: 15px;
  text-align: center;
}

.collective-approval-table td {
  height: 70px;
  padding: 0 18px;
  border: 1px solid #edf1f6;
  background: white;
  color: #1f2937;
  font-size: 16px;
  text-align: center;
}

.collective-approval-table th:last-child,
.collective-approval-table td:last-child {
  width: 84px;
}

.modal.collective-approval-modal {
  width: min(980px, 92vw);
  border-radius: 14px;
}

.collective-approval-form {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(300px, 1fr);
  gap: 20px 42px;
  padding: 18px 8px 24px;
}

.collective-modal-switch {
  grid-column: 1 / -1;
}

.collective-modal-switch span {
  max-width: 440px;
  min-width: 0;
  line-height: 1.4;
}

.collective-approval-form .field.wide {
  grid-column: 1 / -1;
}

.source-approval-single,
.consultant-flags {
  display: grid;
  gap: 14px;
}

.approval-input-row {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(360px, 1fr);
  gap: 24px;
  align-items: end;
}

.consultant-flags label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: #2f3747;
}

.siged-file-results {
  display: grid;
  gap: 14px;
  padding: 10px 8px 28px;
}

.siged-files-modal .pdf-simple-table {
  width: min(900px, 100%);
  max-width: 100%;
  margin: 20px auto 0;
}

.siged-files-modal .pdf-simple-table table {
  min-width: 0;
  table-layout: fixed;
}

.siged-files-modal .pdf-simple-table th:nth-child(1),
.siged-files-modal .pdf-simple-table td:nth-child(1) { width: 36%; }

.siged-files-modal .pdf-simple-table th:nth-child(2),
.siged-files-modal .pdf-simple-table td:nth-child(2) { width: 32%; }

.siged-files-modal .pdf-simple-table th:nth-child(3),
.siged-files-modal .pdf-simple-table td:nth-child(3) { width: 20%; }

.siged-files-modal .pdf-simple-table th:nth-child(4),
.siged-files-modal .pdf-simple-table td:nth-child(4) { width: 12%; }

.siged-files-modal .pdf-simple-table td:last-child,
.siged-files-modal .pdf-simple-table th:last-child {
  text-align: center;
}

.pdf-form-grid input,
.pdf-form-grid select,
.pdf-form-grid textarea,
.joined-input,
.folios {
  min-height: 43px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: white;
  font-size: 16px;
}

.pdf-form-grid input,
.pdf-form-grid select,
.pdf-form-grid textarea {
  padding: 9px 12px;
}

.pdf-form-grid input:disabled {
  background: #f6f7f9;
}

.joined-input,
.folios {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  overflow: hidden;
}

.joined-input span {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0 14px;
  color: white;
  background: #1d55ad;
}

.joined-input input,
.folios input {
  border: 0;
  border-radius: 0;
}

.folios {
  grid-template-columns: 1fr auto;
}

.folios label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 14px;
  white-space: nowrap;
}

.switch-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  font-size: 16px;
}

.switch-line.wide {
  grid-column: 1 / -1;
}

.switch-line span {
  min-width: 385px;
}

.switch-line.compact span {
  min-width: auto;
}

.switch-line .switch-row {
  min-height: 0;
}

.switch-line .switch-row span {
  display: none;
}

.switch-line .switch {
  background: #1d55ad;
}

.radio-row.wide {
  grid-column: 1 / -1;
}

.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.consult-check {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 38px;
  width: fit-content;
  max-width: 560px;
  color: #2f3747;
  font-size: 16px;
}

.consult-check input {
  width: 18px;
  height: 18px;
}

.required-note {
  grid-column: 1 / -1;
  margin: 34px 0 0 12px;
  font-size: 17px;
}

.add-line {
  align-self: end;
}

.attach-box {
  display: grid;
  justify-items: center;
  gap: 8px;
  align-self: end;
  color: #2f3a4a;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.search-input {
  min-height: 43px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: white;
  color: #94a3b8;
}

.search-input svg {
  width: 17px;
  height: 17px;
  margin-left: 10px;
}

.search-input input {
  min-height: 41px;
  border: 0;
  padding-left: 4px;
}

.siged-attachment {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #2f3a4a;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.siged-attachment a {
  min-height: 24px;
  color: #0b59bd;
  font-size: 16px;
  text-decoration: underline;
}

.modal.siged-files-modal {
  width: min(920px, 94vw);
  border-radius: 14px;
}

.siged-file-results {
  display: grid;
  gap: 14px;
  padding: 8px 0 96px;
}

.siged-file-results p {
  margin: 0;
  color: #2f3747;
  font-size: 17px;
}

.siged-result-table {
  width: 100%;
}

.siged-result-table th,
.siged-result-table td {
  height: 50px;
}

.file-preview {
  padding: 14px 8px 4px;
  color: #2f3747;
  font-size: 16px;
}

.modal.file-edit-modal {
  width: min(670px, 92vw);
  border-radius: 14px;
}

.file-edit-modal .modal-head {
  align-items: center;
}

.edit-file-form {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 20px 42px;
  padding: 12px 28px 34px;
}

.edit-file-form .field.wide,
.edit-file-form .modal-subtitle {
  grid-column: 1 / -1;
}

.modal-subtitle {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #2f3747;
  font-size: 18px;
}

.modal-subtitle span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 18px;
  padding: 0 12px;
  color: #1d55ad;
  background: #eaf2ff;
  font-size: 14px;
}

.edit-file-form input,
.edit-file-form select,
.edit-file-form .folios {
  min-height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

.edit-file-form .folios {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  overflow: hidden;
}

.edit-file-form .folios input[type="text"],
.edit-file-form .folios > input {
  min-height: 36px;
  border: 0;
  border-radius: 0;
}

.edit-file-form .folios label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 12px;
  white-space: nowrap;
}

.edit-file-form .folios label input {
  min-height: auto;
  border: 0;
}

.pdf-simple-table {
  width: min(100%, var(--wizard-content-width));
  max-width: var(--wizard-content-width);
  margin: 28px 0 0;
  overflow: auto;
  border-radius: 6px;
}

.pdf-simple-table table {
  min-width: 760px;
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.pdf-simple-table th {
  height: 52px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  color: white;
  background: #1d55ad;
  font-size: 15px;
  text-align: center;
}

.pdf-simple-table td {
  height: 56px;
  border: 1px solid #edf1f6;
  background: white;
  font-size: 15px;
  text-align: center;
}

.pdf-simple-table tbody tr:nth-child(even) td {
  background: white;
}

.schedule-pdf {
  display: grid;
  gap: 28px;
  width: min(100%, var(--wizard-content-width));
}

.schedule-communication-actions {
  display: grid;
  justify-content: end;
  justify-items: stretch;
  gap: 8px;
  margin-bottom: -12px;
}

.schedule-communication-actions .pdf-action {
  min-width: 260px;
  height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
}

.schedule-communication-actions .pdf-action svg {
  width: 15px;
  height: 15px;
}

.schedule-box {
  display: grid;
  gap: 22px;
  padding: 22px 26px 28px;
  border: 1px solid #edf1f6;
  border-radius: 10px;
}

.schedule-top-question {
  display: grid;
  grid-template-columns: minmax(300px, 420px) max-content 48px max-content;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  color: #2e3440;
  font-size: 15px;
}

.schedule-top-question.inside {
  grid-template-columns: minmax(300px, 420px) max-content 48px max-content;
  padding-bottom: 14px;
  border-bottom: 1px solid #b8c5d8;
}

.schedule-top-question b {
  font-weight: 600;
}

.schedule-row {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(170px, 0.75fr) minmax(170px, 0.75fr) minmax(140px, auto);
  align-items: end;
  gap: 24px;
}

.schedule-row.period-mode {
  grid-template-columns: minmax(230px, 1fr) auto minmax(170px, 0.75fr) minmax(170px, 0.75fr) minmax(140px, auto);
}

.schedule-row .field {
  font-size: 15px;
}

.schedule-inline-switch {
  display: grid;
  gap: 9px;
  min-height: 64px;
  color: #2e3440;
  font-size: 15px;
}

.schedule-inline-switch > span {
  min-height: 18px;
}

.schedule-inline-switch .switch-choice {
  display: inline-grid;
  grid-template-columns: max-content 48px max-content;
  align-items: center;
  justify-content: start;
  gap: 5px;
}

.schedule-row .pdf-action {
  min-width: 130px;
}

.schedule-pdf .pdf-simple-table {
  margin-top: 0;
}

.registered-communications {
  width: min(640px, var(--wizard-content-width));
  margin: 24px 0 0;
  padding: 0 16px 18px;
  border: 1px solid #edf1f6;
  border-radius: 8px;
  background: white;
}

.registered-communications-toggle {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-bottom: 1px solid transparent;
  color: #2f3747;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  text-align: left;
}

.registered-communications.expanded .registered-communications-toggle {
  border-bottom-color: #b8c5d8;
}

.registered-communications-toggle svg {
  width: 22px;
  height: 22px;
  color: #24439c;
}

.registered-communications .pdf-simple-table {
  width: 100%;
  max-width: 100%;
  margin-top: 22px;
}

.registered-communications .pdf-simple-table table {
  min-width: 0;
}

.registered-communications .pdf-simple-table th,
.registered-communications .pdf-simple-table td {
  height: 54px;
  padding: 12px;
  font-size: 14px;
  text-align: center;
}

.schedule-pdf .pdf-simple-table th:first-child,
.schedule-pdf .pdf-simple-table td:first-child {
  width: 44px;
}

.schedule-pdf .registered-communications .pdf-simple-table th:first-child,
.schedule-pdf .registered-communications .pdf-simple-table td:first-child {
  width: auto;
}

.source-modification-history-modal {
  width: min(960px, calc(100vw - 56px));
  min-height: 560px;
}

.source-modification-history {
  display: grid;
  gap: 22px;
  min-height: 410px;
  padding-top: 18px;
}

.mod-history-tabs {
  display: flex;
  gap: 58px;
  border-bottom: 1px solid #e8edf5;
}

.mod-history-tabs button {
  min-width: 220px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-bottom: 4px solid transparent;
  color: #697386;
  background: transparent;
  font-weight: 700;
}

.mod-history-tabs button.active {
  color: #24439c;
  border-bottom-color: #3351aa;
}

.mod-history-tabs svg {
  width: 19px;
  height: 19px;
}

.mod-history-table {
  min-height: 300px;
  padding: 0 8px;
  border: 1px solid #edf1f6;
  border-radius: 8px;
}

.mod-history-table .pdf-simple-table {
  margin-top: 14px;
}

.mod-history-table .pdf-simple-table table {
  min-width: 0;
}

.source-modification-history-modal .modal-foot .btn {
  min-width: 190px;
}

.schedule-pdf input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #1d55ad;
}

.schedule-pdf .icon-btn.disabled {
  color: #b7c0cc;
  cursor: default;
  opacity: 1;
}

.table-date,
.table-period {
  width: 150px;
  min-height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 10px;
  background: white;
  color: #2e3440;
  font-size: 14px;
}

.schedule-global-actions {
  display: flex;
  gap: 14px;
  margin-top: -16px;
}

.schedule-global-actions .pdf-action {
  min-height: 30px;
  border-radius: 5px;
  padding: 4px 14px;
}

.gis-empty-section {
  min-height: 330px;
}

.scope-empty-stage {
  min-height: 420px;
}

.scope-link-area,
.scope-file-area {
  width: min(100%, 1040px);
  margin: 72px auto 0 0;
}

.scope-link-area .pdf-action {
  margin-bottom: 20px;
}

.link-table {
  width: 100%;
  margin-top: 0;
}

.scope-file-area {
  margin-top: 72px;
}

.scope-file-form {
  display: grid;
  grid-template-columns: minmax(420px, 680px) 260px;
  align-items: end;
  gap: 28px 46px;
  margin: 0 0 58px;
  max-width: 986px;
}

.scope-file-form .field:first-child {
  grid-column: 1 / 2;
}

.scope-file-form .field:last-child {
  grid-column: 1 / 2;
  justify-self: start;
}

.link-scope-modal {
  width: min(860px, calc(100vw - 56px));
  max-width: calc(100vw - 56px);
  border-radius: 14px;
  overflow-x: hidden;
}

.link-scope-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
  gap: 18px 28px;
  padding: 18px 28px 30px;
}

.link-scope-form .radio-row,
.link-scope-form table,
.link-scope-table-wrap {
  grid-column: 1 / -1;
}

.link-scope-form .wide {
  grid-column: 1 / -1;
}

.link-scope-form .add-line {
  grid-column: 1 / -1;
  justify-self: start;
}

.link-scope-form .add-line .pdf-action {
  min-width: 104px;
  min-height: 34px;
  justify-content: center;
}

.link-scope-form .radio-row {
  justify-content: center;
  gap: 34px;
}

.link-scope-form .field {
  gap: 7px;
  font-size: 13px;
}

.link-scope-form .field input,
.link-scope-form .field select {
  min-height: 36px;
  font-size: 13px;
}

.link-scope-table-wrap {
  width: 100%;
  overflow-x: auto;
  padding: 0 0 2px;
}

.link-scope-result-table {
  width: 100%;
  min-width: 720px;
  margin-top: 0;
  table-layout: fixed;
}

.link-scope-result-table th,
.link-scope-result-table td {
  height: 42px;
  padding: 9px 10px;
  font-size: 13px;
  text-align: center;
}

.link-scope-result-table th:nth-child(1),
.link-scope-result-table td:nth-child(1) {
  width: 58px;
}

.link-scope-result-table th:nth-child(2),
.link-scope-result-table td:nth-child(2) {
  width: 132px;
}

.link-scope-result-table th:nth-child(3),
.link-scope-result-table td:nth-child(3) {
  width: 230px;
}

.link-scope-result-table th:nth-child(4),
.link-scope-result-table td:nth-child(4) {
  width: 176px;
}

.link-scope-result-table th:nth-child(5),
.link-scope-result-table td:nth-child(5) {
  width: 70px;
}

.link-scope-result-table th:nth-child(6),
.link-scope-result-table td:nth-child(6) {
  width: 44px;
  padding-left: 4px;
  padding-right: 4px;
}

.link-scope-result-table .scope-nro {
  justify-content: center;
}

.link-child-row > td {
  padding: 0;
  background: white;
}

.link-subtable {
  width: calc(100% - 28px);
  margin: 0 0 10px 28px;
  min-width: 560px;
  table-layout: fixed;
}

.link-subtable th {
  background: #b5bbc6;
}

.link-subtable th,
.link-subtable td {
  height: 38px;
  padding: 8px 10px;
  font-size: 13px;
  text-align: center;
}

.modal.import-scope-modal {
  width: min(980px, calc(100vw - 56px));
  max-width: calc(100vw - 56px);
  overflow-x: hidden;
}

.import-scope-form {
  padding-bottom: 30px;
  min-width: 0;
}

.link-scope-table-wrap.import-scope-table-wrap {
  box-sizing: border-box;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.import-scope-table {
  width: 100%;
  min-width: 740px;
  table-layout: fixed;
}

.import-scope-number-col { width: 72px; }
.import-scope-code-col { width: 142px; }
.import-scope-source-col { width: 34%; }
.import-scope-status-col { width: 90px; }
.import-scope-check-col { width: 48px; }

.import-scope-table thead th {
  height: 42px;
  background: #3556ac;
  color: #fff;
  font-weight: 700;
}

.import-scope-table .import-scope-group-label {
  height: 32px;
  background: #f1ebf8;
  color: #623a83;
  text-align: left;
}

.import-scope-table .import-scope-group + .import-scope-group .import-scope-group-label {
  border-top: 2px solid #c2d3eb;
  background: #edf3fb;
  color: #194e91;
}

.import-scope-table tbody td { border: 0; border-top: 1px solid var(--line); }
.import-scope-table .import-scope-row > td { height: 70px; }
.import-scope-table .import-scope-child > td { background: #f6f9fd; }
.import-scope-table .import-scope-child > td:first-child { box-shadow: inset 3px 0 #b8cdec; }
.import-scope-table .is-selected > td { background: #edf4ff; }
.import-scope-table .import-scope-row:hover > td { background: #e5effd; }

.import-scope-table th:nth-child(n + 2):nth-child(-n + 4),
.import-scope-table td.import-scope-code,
.import-scope-table td.import-scope-description,
.import-scope-table td.import-scope-source {
  text-align: left;
}

.import-scope-table .import-scope-code { color: #25457b; font-weight: 700; }
.import-scope-table .import-scope-code, .import-scope-table .import-scope-source { overflow-wrap: anywhere; }
.import-scope-description strong, .import-scope-description span { display: block; }
.import-scope-description span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.import-scope-table .import-scope-number { display: grid; grid-template-columns: 24px 1fr; align-items: center; color: var(--muted); }
.import-scope-number > .scope-toggle { grid-column: 1; grid-row: 1; margin: 0; padding: 0; }
.import-scope-number > span { grid-column: 2; grid-row: 1; }

.import-scope-source .scope-source-name { gap: 3px; }
.import-source-heading { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.import-source-type { padding: 2px 7px; border-radius: 5px; font-size: 11px; font-weight: 700; }
.import-source-type.is-iga { background: #e6efff; color: #194e91; }
.import-source-type.is-mandate { background: #eee6f8; color: #623a83; }
.import-source-document { color: var(--muted); font-size: 12px; }
.import-source-instrument { font-size: 12px; }

.import-scope-table input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #3556ac;
  margin: 0;
  vertical-align: middle;
  cursor: pointer;
}

.modal.large.document-location-modal {
  width: min(1280px, calc(100vw - 72px));
  max-width: calc(100vw - 72px);
  overflow-x: hidden;
  border-radius: 14px;
}

.document-location-form {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 28px 0 72px;
  min-width: 0;
}

.document-location-form .field {
  width: min(340px, 100%);
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 26px;
}

.document-location-grid {
  width: 100%;
  margin: 0 auto;
  border: 1px solid #edf1f6;
  border-radius: 6px;
  overflow-x: auto;
  overflow-y: hidden;
}

.document-location-head,
.document-location-row {
  display: grid;
  grid-template-columns: 72px minmax(300px, 1fr) 140px 190px 260px 120px;
  width: 100%;
  min-width: 980px;
}

.document-location-head {
  min-height: 44px;
  color: white;
  background: #3556ac;
  font-weight: 800;
}

.document-location-head span,
.document-location-row > div {
  box-sizing: border-box;
  padding: 10px 8px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.document-location-row {
  min-height: 76px;
  background: white;
  color: #2f3747;
  border-top: 1px solid #edf1f6;
}

.document-location-row > div {
  border-right: 1px solid #edf1f6;
}

.document-location-head span:last-child,
.document-location-row > div:last-child {
  border-right: 0;
}

.document-location-row > div:nth-child(2) {
  justify-content: flex-start;
}

.document-file-cell {
  display: grid;
  gap: 4px;
  width: 100%;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.25;
}

.document-file-cell strong {
  font-weight: 800;
  font-style: italic;
}

.document-file-cell em {
  font-style: italic;
}

.document-location-input {
  width: 112px;
  height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px;
  background: white;
}

.document-index-input {
  width: 170px;
}

.document-detail-select {
  width: 220px;
  height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 12px;
  color: #2f3747;
  background: white;
}

.document-location-input:disabled,
.document-detail-select:disabled {
  opacity: 0;
  pointer-events: none;
}

.comment-form textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
}

.review-observe-modal {
  width: min(1120px, 96vw);
}

.review-observe-form {
  display: grid;
  gap: 20px;
}

.review-observe-section {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #4a5261;
  font-size: 16px;
}

.review-observe-section select {
  width: 290px;
  height: 42px;
  border: 1px solid #bfc8d6;
  border-radius: 8px;
  padding: 0 12px;
  color: #2f3747;
  background: white;
  font-size: 16px;
}

.review-observe-detail {
  display: grid;
  gap: 10px;
  color: #4a5261;
  font-size: 16px;
}

.review-observe-detail textarea {
  width: 100%;
  min-height: 90px;
  border: 1px solid #bfc8d6;
  border-radius: 8px;
  padding: 12px;
  resize: vertical;
}

.review-observe-add {
  display: flex;
  justify-content: flex-end;
}

.review-observe-add .btn {
  min-width: 190px;
  color: #244da8;
  border-color: #244da8;
  background: white;
}

.review-observe-table-title {
  margin: 4px 0 -8px;
  color: #4a5261;
  font-size: 16px;
}

.review-observe-table {
  min-width: 0;
}

.review-observe-table th,
.review-observe-table td {
  text-align: center;
}

.review-observe-table th:nth-child(2),
.review-observe-table td:nth-child(2) {
  text-align: left;
}

.review-observe-table th:nth-child(1),
.review-observe-table td:nth-child(1) {
  width: 220px;
}

.review-observe-table th:nth-child(3),
.review-observe-table td:nth-child(3) {
  width: 130px;
}

.review-observe-foot {
  justify-content: center;
  gap: 22px;
  border-top: 1px solid #eef2f7;
  padding-top: 14px;
}

.review-observe-foot .btn {
  min-width: 240px;
}

.section-observations-panel {
  display: grid;
  gap: 14px;
  border: 1px solid #f2d6a3;
  border-radius: 8px;
  padding: 18px;
  color: #433423;
  background: #fff7e6;
}

.section-observations-head {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9d3333;
}

.section-observations-head svg {
  width: 24px;
  height: 24px;
}

.section-observations-head div {
  display: grid;
  gap: 2px;
}

.section-observations-head strong {
  color: #2f3747;
  font-size: 18px;
}

.section-observations-head span {
  color: #7a5b2c;
  font-size: 13px;
}

.section-observations-panel ul {
  margin: 0;
  padding-left: 22px;
  line-height: 1.6;
}

.schedule-pdf.compact-only {
  min-height: 420px;
}

.modal.register-complete-modal {
  width: min(520px, 92vw);
  border-radius: 10px;
}

.register-complete-modal .modal-head {
  justify-content: center;
  border-bottom: 1px solid #edf1f6;
}

.register-complete-modal .modal-head .icon-btn {
  display: none;
}

.register-complete-modal .modal-head h2 {
  color: #1d55ad;
  font-size: 20px;
  text-align: center;
}

.complete-content {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: center;
  gap: 24px;
  min-height: 130px;
  padding: 22px 34px;
  color: #4b5563;
}

.complete-content .field {
  margin: 0;
}

.question-mark {
  width: 64px;
  height: 64px;
  border: 3px solid #1d55ad;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #1d55ad;
  font-size: 44px;
  font-weight: 300;
}

.success-mark {
  width: 72px;
  height: 72px;
  border: 3px solid #148f7a;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #148f7a;
}

.success-mark svg {
  width: 38px;
  height: 38px;
  stroke-width: 2;
}

.register-complete-modal .modal-foot {
  justify-content: center;
  gap: 22px;
  border-top: 1px solid #edf1f6;
}

.register-complete-modal .modal-foot .btn {
  min-width: 122px;
}

.modal.register-complete-modal:has(.obligation-question-content),
.modal.register-complete-modal:has(.no-obligation-reason-content) {
  width: 430px;
}

.obligation-question-content,
.no-obligation-reason-content {
  grid-template-columns: 58px 1fr;
  gap: 18px;
  min-height: 118px;
  padding: 24px 52px;
}

.obligation-question-content p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.no-obligation-reason-content {
  padding: 24px 30px;
}

.no-obligation-reason-content .field {
  gap: 8px;
  font-size: 12px;
}

.no-obligation-reason-content .field select {
  min-height: 32px;
  font-size: 12px;
}

.obligation-question-content .question-mark,
.no-obligation-reason-content .question-mark {
  width: 54px;
  height: 54px;
  border-width: 2px;
  font-size: 36px;
}

.modal.register-complete-modal:has(.obligation-question-content) .modal-head,
.modal.register-complete-modal:has(.no-obligation-reason-content) .modal-head {
  min-height: 44px;
}

.modal.register-complete-modal:has(.obligation-question-content) .modal-head h2,
.modal.register-complete-modal:has(.no-obligation-reason-content) .modal-head h2 {
  font-size: 0;
}

.modal.register-complete-modal:has(.obligation-question-content) .modal-foot,
.modal.register-complete-modal:has(.no-obligation-reason-content) .modal-foot {
  padding: 10px 26px 18px;
}

.modal.register-complete-modal:has(.source-complete-content) {
  width: 410px;
}

.source-complete-content {
  grid-template-columns: 54px 1fr;
  gap: 18px;
  min-height: 92px;
  padding: 26px 54px;
}

.source-complete-content p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.source-complete-content .success-mark {
  width: 44px;
  height: 44px;
  border-width: 2px;
}

.source-complete-content .success-mark svg {
  width: 24px;
  height: 24px;
}

.modal.register-complete-modal:has(.source-complete-content) .modal-head h2 {
  width: 100%;
  color: #1d55ad;
  font-size: 15px;
  text-align: center;
}

.modal.register-complete-modal:has(.source-complete-content) .modal-head .icon-btn {
  display: none;
}

.modal.register-complete-modal:has(.source-complete-content) .modal-foot {
  padding: 10px 26px 16px;
}

.modal.register-complete-modal:has(.source-complete-content) .modal-foot .btn {
  min-width: 98px;
  min-height: 30px;
  padding: 7px 18px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
}

.modal.activity-communication-modal {
  width: min(760px, 92vw);
  border-radius: 10px;
}

.activity-communication-modal .modal-head h2 {
  font-size: 22px;
}

.activity-communication-form {
  display: grid;
  gap: 18px;
  padding: 18px 28px 34px;
}

.activity-field-row {
  width: 240px;
}

.activity-field-row .field {
  width: 100%;
}

.siged-search-row {
  display: grid;
  grid-template-columns: 220px auto;
  align-items: end;
  gap: 12px;
  width: auto;
}

.own-communication-row {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(260px, 1fr) auto;
  align-items: end;
  gap: 12px 18px;
}

.own-communication-row .own-description {
  min-width: 0;
}

.attach-communication {
  display: grid;
  gap: 8px;
}

.attach-communication input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.attach-communication .pdf-action {
  min-height: 38px;
  justify-content: center;
}

.attached-file-name {
  margin: -8px 0 0;
  color: #64748b;
  font-size: 13px;
}

.activity-communication-form .pdf-simple-table {
  width: 100%;
  max-width: 100%;
  margin-top: 0;
}

.activity-communication-form .pdf-simple-table table {
  min-width: 0;
}

.activity-communication-form .pdf-simple-table th,
.activity-communication-form .pdf-simple-table td {
  height: 42px;
  font-size: 13px;
}

.empty-search-result {
  min-height: 70px;
  padding: 18px;
  border: 1px dashed #d8e0eb;
  border-radius: 6px;
  color: #6b7280;
  font-size: 14px;
}

.modify-source-form {
  display: grid;
  gap: 18px;
  padding: 28px 48px 34px;
  border-top: 1px solid #edf1f6;
}

.modify-source-form p {
  margin: 0 0 2px;
  color: #3f4756;
  font-size: 16px;
}

.modify-source-form label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #2f3747;
  font-size: 16px;
}

.modify-source-form input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #3351aa;
}


.modal.document-preview-modal { width: min(1160px, calc(100vw - 40px)); max-width: calc(100vw - 40px); padding: 24px; border-radius: 14px; box-shadow: 0 20px 60px #17345626; }
.document-preview-modal .modal-head { border-bottom: 1px solid #e3eaf4; padding-bottom: 16px; }
.document-preview-modal .modal-head h2 { font-size: 20px; color: #183b70; }
.document-preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; color: #627187; font-size: 12px; }
.document-preview-toolbar > span:first-child { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #3556ac; }
.document-preview-toolbar svg { width: 18px; height: 18px; }
.document-preview-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; border: 1px solid #dce5f2; border-radius: 9px; overflow: hidden; }
.document-page-scroll { max-height: 58vh; overflow: auto; background: #e9edf4; padding: 22px; }
.document-paper { box-sizing: border-box; width: 100%; max-width: 660px; margin: 0 auto; padding: 40px; min-height: 720px; background: #fff; box-shadow: 0 3px 12px #17345618; color: #273243; font-family: Georgia, serif; font-size: 14px; line-height: 1.85; white-space: pre-wrap; user-select: text; cursor: text; }
.document-paper::selection, .document-paper *::selection { background: #b9d6ff; color: #152b4a; }
.document-paper mark { background: #fff0a8; color: inherit; }
.document-selection-panel { padding: 20px; background: #f8fafd; border-left: 1px solid #dce5f2; overflow: auto; max-height: 58vh; }
.document-selection-panel h3 { margin: 0 0 14px; font-size: 14px; color: #23477d; }
.document-selection-panel blockquote { margin: 0; padding: 12px; border-left: 3px solid #3556ac; border-radius: 4px; background: #edf3fd; color: #42516a; font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.document-selection-panel p { margin: 14px 0 0; color: #74829a; font-size: 11px; }
.document-preview-modal .modal-foot { padding-top: 18px; }
.modal.mandate-measure-preview {
  width: min(760px, calc(100vw - 44px));
}

.mandate-measure-preview .mandate-scope-reference {
  margin-bottom: 0;
}

.mandate-measure-preview .mandate-reference-summary {
  display: block;
  cursor: default;
}

.mandate-measure-preview .mandate-reference-description {
  max-height: min(50vh, 410px);
  overflow: auto;
}

.document-preview-modal button:disabled { opacity: .45; cursor: not-allowed; }
.document-fragment-badge { display: block; width: fit-content; margin: 6px auto 0; padding: 3px 7px; border-radius: 5px; background: #eaf6ef; color: #237350; font-size: 10px; font-weight: 600; }
.document-location-modal .document-location-row > div:nth-child(3) { flex-direction: column; }
@media (max-width: 800px) { .document-preview-layout { grid-template-columns: 1fr; } .document-selection-panel { max-height: 160px; border-left: 0; border-top: 1px solid #dce5f2; } .document-page-scroll { max-height: 38vh; padding: 12px; } .document-paper { padding: 24px; } .document-preview-toolbar { flex-wrap: wrap; } }

.normative-scope-wizard { min-width: 0; max-width: 100%; }
.normative-scope-wizard .wizard-card { display: flex; flex-direction: column; min-width: 0; padding-bottom: 28px; border-radius: 12px; outline: 1px solid #e1e8f3; box-shadow: 0 3px 14px #173a7010; background: #fff; }
.normative-scope-wizard .normative-scope-section { width: 100%; min-width: 0; max-width: 100%; }
.normative-scope-wizard .normative-article-table-wrap { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.normative-scope-wizard .wizard-card > .pdf-wizard-actions { position: static; left: auto; right: auto; bottom: auto; width: 100%; max-width: 100%; margin-top: 24px; padding-top: 18px; border-top: 1px solid #e5ebf4; justify-content: flex-end; box-sizing: border-box; }
.normative-grid-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.normative-grid-controls > span { border-radius: 18px; padding: 6px 10px; white-space: nowrap; background: #e5edfc; color: #3556ac; font-size: 12px; }
.normative-grid-controls .pdf-action { min-height: 36px; padding: 8px 12px; border-radius: 7px; background: #fff; font-size: 12px; white-space: nowrap; }
.normative-scope-wizard .normative-grid-intro { flex-wrap: wrap; }
.normative-scope-wizard .normative-article-table > thead > tr > th:first-child,
.normative-scope-wizard .normative-article-table > tbody > .normative-article-row > td:first-child { width: 64px !important; min-width: 64px; max-width: 64px; padding: 8px !important; box-sizing: border-box; text-align: center; }
.normative-scope-wizard .normative-select-controls { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; }
.normative-scope-wizard .normative-select-controls .normative-expand { flex: 0 0 22px; margin: 0; padding: 0; }
.normative-scope-wizard .normative-select-controls input[type="checkbox"] { flex: 0 0 16px; display: block; width: 16px; height: 16px; margin: 0; }
.normative-scope-wizard .normative-article-table > tbody > .normative-subgrid-row > td { width: auto !important; min-width: 0; max-width: none; }
.modal.normative-sync-modal { width: min(440px, calc(100vw - 40px)); border-radius: 14px; padding: 24px; box-shadow: 0 20px 60px #17345626; }
.normative-sync-modal .modal-head h2 { color: #183b70; font-size: 20px; }
.normative-sync-content { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 8px; }
.normative-sync-content h3 { margin: 18px 0 8px; color: #23477d; font-size: 17px; }
.normative-sync-content p { margin: 0; color: #627187; font-size: 13px; line-height: 1.6; }
.normative-sync-success { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #eaf6ef; color: #237350; }
.normative-sync-success svg { width: 30px; height: 30px; }
.normative-sync-modal .modal-foot { border-top: 1px solid #e5ebf4; padding-top: 16px; }
.normative-sync-modal .modal-foot .btn { min-width: 90px; }
@media (max-width: 650px) { .normative-scope-wizard .normative-scope-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 100%; } }
.normative-scope-wizard .scope-uf-title { color: #2355a5; }
.normative-scope-wizard .scope-source-pills .source-pill { background: #edf3fc; color: #425b81; border-radius: 6px; box-shadow: inset 0 0 0 1px #d6e2f4; }
.normative-scope-wizard .scope-source-pills .source-pill:first-child { color: #fff; background: #3556ac; box-shadow: none; }
.normative-scope-wizard .pdf-step { color: #718098; }
.normative-scope-wizard .pdf-step > span { border-color: #d5dfef; background: #f7f9fd; color: #62748e; }
.normative-scope-wizard .pdf-step.active { color: #2355a5; }
.normative-scope-wizard .pdf-step.active > span { color: #fff; background: #3556ac; border-color: #3556ac; box-shadow: 0 3px 8px #3556ac20; }
.normative-scope-wizard .pdf-step.active > b::after { background: #3556ac; border-radius: 3px; }
.normative-scope-wizard .normative-scope-filters .field > span { color: #42516a; font-weight: 600; }
.normative-scope-wizard .normative-scope-filters select,
.normative-scope-wizard .normative-number { border-color: #cfdaeb; border-radius: 7px; background: #f5f8fc; color: #62748e; box-shadow: 0 1px 2px #173a7006; transition: border-color .15s, box-shadow .15s; }
.normative-scope-wizard .normative-number input { border-radius: 0 7px 7px 0; background: transparent; color: #62748e; }
.normative-scope-wizard .normative-number svg { color: #7e98bd; }
.normative-scope-wizard .normative-scope-filters select:disabled { border-color: #d5dfed; background: #f1f5fa; color: #7a899e; opacity: 1; }
.normative-scope-wizard .normative-number:focus-within,
.normative-scope-wizard .normative-scope-filters select:focus { outline: none; border-color: #3556ac; box-shadow: 0 0 0 3px #3556ac19; }
.normative-scope-wizard .pdf-wizard-actions .pdf-action { border-radius: 8px; font-weight: 600; transition: background-color .15s, box-shadow .15s; }
.normative-scope-wizard .pdf-wizard-actions .pdf-action:not(.primary) { border-color: #c8d8ee; color: #3556ac; background: #f7faff; }
.normative-scope-wizard .pdf-wizard-actions .pdf-action:not(.primary):hover { background: #eaf1fc; }
.normative-scope-wizard .pdf-wizard-actions .primary { box-shadow: 0 3px 8px #005ca91a; }
.normative-scope-wizard > .pdf-stepper button:focus-visible,
.normative-scope-wizard .pdf-wizard-actions button:focus-visible { outline: 2px solid #005ca9; outline-offset: 2px; }

.standard-scope-wizard { width: 100%; max-width: 100%; min-width: 0; }
.standard-scope-wizard > .pdf-stepper { width: min(100%, 1220px); margin: 0 auto 20px; justify-content: center; flex-wrap: wrap; }
.standard-scope-wizard .wizard-card { display: flex; flex-direction: column; min-width: 0; min-height: 585px; padding-bottom: 28px; border-radius: 12px; outline: 1px solid #e1e8f3; box-shadow: 0 3px 14px #173a7010; background: #fff; }
.standard-scope-wizard .wizard-card > .scope-wizard-header,
.standard-scope-wizard .wizard-card > .scope-general,
.standard-scope-wizard .wizard-card > .scope-geo-section,
.standard-scope-wizard .wizard-card > .scope-link-area,
.standard-scope-wizard .wizard-card > .scope-file-area,
.standard-scope-wizard .wizard-card > .pdf-wizard-actions { width: min(100%, var(--wizard-content-width)); max-width: var(--wizard-content-width); min-width: 0; margin-left: auto; margin-right: auto; box-sizing: border-box; }
.standard-scope-wizard .wizard-card > .scope-wizard-header { padding-bottom: 22px; border-bottom: 1px solid #e5ebf4; margin-bottom: 28px; }
.standard-scope-wizard .wizard-card > .scope-general { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.standard-scope-wizard .wizard-card > .scope-link-area,
.standard-scope-wizard .wizard-card > .scope-file-area { margin-top: 14px; }
.standard-scope-wizard .wizard-card > .scope-geo-section { min-height: 260px; }
.standard-scope-wizard .scope-geo-flags { flex-wrap: wrap; }
.standard-scope-wizard .scope-geo-flags label { border: 1px solid #dbe4ef; border-radius: 8px; padding: 12px 14px; background: #f8fafd; color: #42516a; }
.standard-scope-wizard .scope-geo-flags label:has(input:checked) { border-color: #b9cdef; background: #edf4ff; color: #2355a5; }
.standard-scope-wizard .scope-geo-flags label:has(input:disabled) { color: #99a5b5; background: #f4f6f9; }
.standard-scope-wizard .scope-section-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid #d7e1f1; border-radius: 9px; }
.standard-scope-wizard .scope-section-table-wrap .link-table { width: 100%; min-width: 720px; margin: 0; }
.standard-scope-wizard .scope-section-table-wrap .link-table th { background: #3556ac; padding: 14px 12px; font-size: 12px; line-height: 1.5; }
.standard-scope-wizard .scope-section-table-wrap .link-table td { padding: 14px 12px; border-color: #e3eaf4; font-size: 12px; line-height: 1.5; }
.standard-scope-wizard .scope-link-area .link-table th:first-child,
.standard-scope-wizard .scope-link-area .link-table td:first-child { width: 180px; min-width: 160px; max-width: none; }
.standard-scope-wizard .scope-section-table-wrap .empty-scope { padding: 26px 16px; background: #fcfdff; color: #7a899e; font-weight: 400; }
.standard-scope-wizard .scope-section-table-wrap .icon-btn { border: 1px solid #dce6f5; border-radius: 7px; background: #fff; color: #3556ac; }
.standard-scope-wizard .scope-file-form { margin-left: auto; margin-right: auto; }
.standard-scope-wizard .scope-file-form .attach-box { border-color: #d6e2f4; border-radius: 9px; background: #f8fafd; }
.standard-scope-wizard .wizard-card > .pdf-wizard-actions { position: static; left: auto; right: auto; bottom: auto; flex-shrink: 0; margin-top: 28px; padding-top: 20px; border-top: 1px solid #e5ebf4; justify-content: flex-end; }
@media (max-width: 850px) { .standard-scope-wizard .wizard-card { padding-left: 22px; padding-right: 22px; } .standard-scope-wizard .scope-file-form { grid-template-columns: minmax(0, 1fr) 240px; gap: 28px; } }
.mandate-scope-reference {
  align-self: start;
  box-sizing: border-box;
  width: min(100%, var(--wizard-content-width));
  min-width: 0;
  margin: 0 auto 24px;
  border: 1px solid #cedbf0;
  border-radius: 9px;
  background: #f8fafd;
  color: #243954;
}

.mandate-reference-summary {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: inherit;
  list-style: none;
  cursor: pointer;
}

.mandate-reference-summary::-webkit-details-marker {
  display: none;
}

.mandate-reference-summary > svg,
.mandate-reference-chevron {
  color: #3556ac;
}

.mandate-reference-summary strong,
.mandate-reference-summary strong + span {
  display: block;
}

.mandate-reference-summary strong {
  font-size: 13px;
  color: #264e93;
}

.mandate-reference-summary strong + span {
  margin-top: 3px;
  font-size: 14px;
}

.mandate-scope-reference[open] .mandate-reference-chevron {
  transform: rotate(180deg);
}

.mandate-reference-summary:focus-visible,
.mandate-reference-description:focus-visible,
.mandate-measure-actions .icon-btn:focus-visible {
  outline: 2px solid #3556ac;
  outline-offset: 2px;
}

.mandate-reference-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid #dce6f4;
  border-bottom: 1px solid #dce6f4;
  font-size: 12px;
}

.mandate-reference-dates dt {
  color: #566b89;
}

.mandate-reference-dates dd {
  margin: 3px 0 0;
  font-weight: 600;
}

.mandate-reference-description {
  padding: 16px;
  border-radius: 0 0 9px 9px;
  background: #fff;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.mandate-scope-reference:has(.mandate-reference-accreditation) .mandate-reference-description {
  border-radius: 0;
}

.mandate-reference-accreditation {
  padding: 8px 16px 12px;
  border-top: 1px solid #dce6f4;
}

.mandate-reference-accreditation > summary {
  margin-top: 0;
  list-style: none;
}

.mandate-reference-accreditation > summary::-webkit-details-marker { display: none; }
.mandate-reference-accreditation[open] > summary { margin-bottom: 10px; }
.mandate-reference-accreditation[open] > summary svg { transform: rotate(0deg); }
.mandate-reference-accreditation .mandate-accreditations { overflow-x: auto; }
.mandate-reference-accreditation .mandate-accreditation-table { min-width: 640px; background: #fff; }
.mandate-reference-accreditation .mandate-accreditation-table :is(th, td) { border-bottom: 1px solid #dce6f4; }

@media (max-width: 760px) {
  .standard-scope-wizard .wizard-card > .mandate-scope-reference + .scope-general {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .mandate-scope-reference + .scope-general .scope-denomination {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1280px) {
  .standard-scope-wizard .wizard-card:has(> .mandate-scope-reference[open]) {
    display: grid;
    grid-template-columns: minmax(285px, .8fr) minmax(0, 1.4fr);
    column-gap: 28px;
    grid-template-rows: auto 1fr auto;
  }

  .standard-scope-wizard .wizard-card:has(> .mandate-scope-reference[open]) > :is(.scope-wizard-header, .pdf-wizard-actions) {
    grid-column: 1 / -1;
  }

  .mandate-scope-reference[open] {
    margin-bottom: 0;
  }

  .standard-scope-wizard .wizard-card > .mandate-scope-reference[open] + .scope-general {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
  }

  .mandate-scope-reference[open] + .scope-general .scope-denomination {
    grid-column: 1 / -1;
  }

  .mandate-scope-reference[open] + .scope-general .scope-activity-field {
    grid-column: auto;
  }

  .mandate-scope-reference[open] + .scope-file-area .scope-file-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

.standard-scope-wizard .scope-uf-title { color: #2355a5; }
.standard-scope-wizard .scope-source-pills .source-pill { background: #edf3fc; color: #425b81; border-radius: 6px; box-shadow: inset 0 0 0 1px #d6e2f4; }
.standard-scope-wizard .scope-source-pills .source-pill:first-child { color: #fff; background: #3556ac; box-shadow: none; }
.standard-scope-wizard .pdf-step { color: #718098; }
.standard-scope-wizard .pdf-step > span { border-color: #d5dfef; background: #f7f9fd; color: #62748e; }
.standard-scope-wizard .pdf-step.active { color: #2355a5; }
.standard-scope-wizard .pdf-step.active > span { color: #fff; background: #3556ac; border-color: #3556ac; box-shadow: 0 3px 8px #3556ac20; }
.standard-scope-wizard .pdf-step.active > b::after { background: #3556ac; border-radius: 3px; }
.standard-scope-wizard .pdf-step.done > span { color: #3556ac; background: #eaf1fc; border-color: #bbceeb; }
.standard-scope-wizard .pdf-form-grid .field > span,
.standard-scope-wizard .schedule-inline-switch > span { color: #42516a; font-weight: 600; }
.standard-scope-wizard .pdf-form-grid .field > span em { color: #8995a7; font-weight: 400; }
.standard-scope-wizard .wizard-card input:not([type="checkbox"]):not([type="radio"]),
.standard-scope-wizard .wizard-card select,
.standard-scope-wizard .wizard-card textarea,
.standard-scope-wizard .scope-general .multi-combo summary { border-color: #cfdaeb; border-radius: 7px; background-color: #fcfdff; color: #243954; box-shadow: 0 1px 2px #173a7006; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.standard-scope-wizard .wizard-card input:not([type="checkbox"]):not([type="radio"]):hover:not(:disabled),
.standard-scope-wizard .wizard-card select:hover:not(:disabled),
.standard-scope-wizard .wizard-card textarea:hover:not(:disabled),
.standard-scope-wizard .multi-combo summary:hover { border-color: #9fb8dc; background-color: #fff; }
.standard-scope-wizard .wizard-card input:not([type="checkbox"]):not([type="radio"]):focus,
.standard-scope-wizard .wizard-card select:focus,
.standard-scope-wizard .wizard-card textarea:focus,
.standard-scope-wizard .multi-combo summary:focus-visible { outline: none; border-color: #3556ac; background-color: #fff; box-shadow: 0 0 0 3px #3556ac19; }
.standard-scope-wizard .wizard-card input:disabled,
.standard-scope-wizard .wizard-card select:disabled,
.standard-scope-wizard .wizard-card textarea:disabled { color: #7a899e; background-color: #edf1f7; border-color: #dce3ee; box-shadow: none; }
.standard-scope-wizard .scope-general .multi-combo[open] summary { border-color: #3556ac; background: #fff; }
.standard-scope-wizard .scope-general .multi-combo-menu { border-color: #d6e2f4; border-radius: 8px; box-shadow: 0 8px 24px #17345619; }
.standard-scope-wizard .scope-general .multi-combo-menu label:hover { background: #edf4ff; color: #2355a5; }
.standard-scope-wizard input[type="checkbox"] { accent-color: #3556ac; }
.standard-scope-wizard .switch.on { background: #3556ac; box-shadow: 0 2px 5px #3556ac20; }
.standard-scope-wizard .pdf-wizard-actions .pdf-action { border-radius: 8px; font-weight: 600; transition: background-color .15s, box-shadow .15s; }
.standard-scope-wizard .pdf-wizard-actions .pdf-action:not(.primary) { border-color: #c8d8ee; color: #3556ac; background: #f7faff; }
.standard-scope-wizard .pdf-wizard-actions .pdf-action:not(.primary):hover { background: #eaf1fc; }
.standard-scope-wizard .pdf-wizard-actions .primary { box-shadow: 0 3px 8px #005ca91a; }
.standard-scope-wizard button:focus-visible { outline: 2px solid #005ca9; outline-offset: 2px; }

.modal.associate-uf-modal:has(.associate-form) { border: 1px solid #e0e7f2; box-shadow: 0 20px 60px #17345626; }
.associate-uf-modal:has(.associate-form) .modal-head { border-bottom-color: #e3eaf4; }
.associate-uf-modal:has(.associate-form) .modal-head h2 { color: #183b70; font-size: 22px; font-weight: 700; }
.associate-uf-modal .associate-form { padding: 18px; border: 1px solid #e1e9f5; border-radius: 10px; background: #f8fafd; }
.associate-uf-modal .associate-form .field { gap: 8px; color: #42516a; font-size: 12px; }
.associate-uf-modal .associate-form .field > span { font-weight: 600; line-height: 1.5; }
.associate-uf-modal .associate-form input,
.associate-uf-modal .associate-form select { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #cfdaeb; border-radius: 7px; background: #fff; color: #243954; font-size: 13px; box-shadow: 0 1px 2px #173a7005; transition: border-color .15s, box-shadow .15s; }
.associate-uf-modal .associate-form input:hover:not(:disabled),
.associate-uf-modal .associate-form select:hover:not(:disabled) { border-color: #9fb8dc; }
.associate-uf-modal .associate-form input:focus,
.associate-uf-modal .associate-form select:focus { outline: none; border-color: #3556ac; box-shadow: 0 0 0 3px #3556ac19; }
.associate-uf-modal .associate-form input:disabled,
.associate-uf-modal .associate-form select:disabled { background: #edf1f7; border-color: #dce3ee; color: #7a899e; box-shadow: none; }
.associate-uf-modal .associate-form .add-associate .pdf-action { min-height: 42px; border: 1px solid #b8cdef; border-radius: 7px; background: #edf4ff; color: #2355a5; font-size: 12px; font-weight: 600; }
.associate-uf-modal .associate-form .add-associate .pdf-action:hover { border-color: #8baada; background: #e1ecfd; }
.associate-uf-modal:has(.associate-form) .associate-table-wrap { margin: 22px 0 26px; max-width: 100%; border: 1px solid #d7e1f1; border-radius: 9px; }
.associate-uf-modal:has(.associate-form) .associate-table { width: 100%; }
.associate-selection-caption { caption-side: top; padding: 13px 14px; background: #f2f6fc; text-align: left; color: #23477d; font-size: 12px; font-weight: 600; }
.associate-selection-caption span { float: right; margin-left: 12px; padding: 2px 7px; border-radius: 5px; background: #e4ecfb; color: #3556ac; font-size: 10px; }
.associate-uf-modal:has(.associate-form) .associate-table th { height: 42px; padding: 11px 10px; background: #3556ac; font-size: 11px; line-height: 1.4; }
.associate-uf-modal:has(.associate-form) .associate-table td { padding: 13px 10px; font-size: 12px; line-height: 1.5; border-color: #e3eaf4; }
.associate-uf-modal:has(.associate-form) .associate-table tbody tr:hover td { background: #f4f8fe; }
.associate-uf-modal:has(.associate-form) .associate-table .empty-scope { height: 74px; color: #7a899e; font-size: 12px; font-weight: 400; background: #fcfdff; }
.associate-uf-modal:has(.associate-form) .associate-table .icon-btn { width: 30px; height: 30px; padding: 6px; border: 1px solid #dce6f5; border-radius: 7px; background: #fff; color: #3556ac; }
.associate-uf-modal:has(.associate-form) .associate-table .icon-btn:hover { color: #b42318; border-color: #f4ceca; background: #fff0ee; }
.associate-uf-modal:has(.associate-form) .modal-foot { padding-top: 18px; border-top-color: #e3eaf4; gap: 10px; }
.associate-uf-modal:has(.associate-form) .modal-foot .btn { min-height: 40px; padding: 9px 18px; font-size: 12px; font-weight: 600; }
.associate-uf-modal:has(.associate-form) button:focus-visible { outline: 2px solid #005ca9; outline-offset: 2px; }

.modal.large.document-location-modal { width: min(1160px, calc(100vw - 48px)); max-width: calc(100vw - 48px); border: 1px solid #e0e7f2; border-radius: 14px; box-shadow: 0 20px 60px #17345626; }
.document-location-modal .modal-head { padding-bottom: 18px; border-bottom: 1px solid #e5ebf4; }
.document-location-modal .modal-head h2 { color: #183b70; font-size: 21px; }
.document-location-modal .document-location-form { width: 100%; padding: 18px 0 24px; }
.document-location-intro { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 14px 16px; background: #f3f7fd; border: 1px solid #e1e9f5; border-radius: 9px; }
.document-intro-icon { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 8px; background: #e3edfc; color: #3556ac; }
.document-intro-icon svg { width: 20px; height: 20px; }
.document-location-intro strong { color: #23477d; font-size: 13px; }
.document-location-intro p { margin: 5px 0 0; color: #627187; font-size: 12px; line-height: 1.5; }
.document-selection-count { margin-left: auto; padding: 5px 9px; border-radius: 18px; color: #3556ac; background: #e4ecfb; white-space: nowrap; font-size: 11px; font-weight: 600; }
.document-location-modal .document-location-grid { border: 1px solid #d7e1f1; border-radius: 9px; }
.document-location-modal .document-location-head,
.document-location-modal .document-location-row { grid-template-columns: 48px minmax(240px, 1fr) 130px 160px 250px 76px; min-width: 1000px; }
.document-location-modal .document-location-head span { min-height: 46px; padding: 12px 10px; background: #3556ac; font-size: 12px; font-weight: 600; }
.document-location-modal .document-location-row { border-top-color: #e1e8f3; min-height: 88px; }
.document-location-modal .document-location-row > div { padding: 14px 10px; border-right-color: #e6ecf5; background: transparent; font-size: 12px; }
.document-location-modal .document-location-row.is-selected { background: #f1f6ff; box-shadow: inset 3px 0 #3556ac; }
.document-location-modal .document-location-row:hover { background: #f7faff; }
.document-location-modal .document-file-cell { gap: 5px; line-height: 1.5; }
.document-location-modal .document-file-cell strong { color: #244e8c; font-style: normal; font-weight: 600; font-size: 13px; }
.document-location-modal .document-file-cell em { color: #627187; font-style: normal; }
.document-location-modal .document-file-cell > span { width: fit-content; padding: 2px 7px; background: #edf1f7; color: #68768b; border-radius: 4px; font-size: 10px; }
.document-location-modal .document-location-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: #3556ac; cursor: pointer; }
.document-location-modal .document-location-input,
.document-location-modal .document-detail-select { width: 100%; min-width: 0; height: 40px; border: 1px solid #ccd9ed; border-radius: 7px; padding: 8px 10px; background: #fff; color: #243954; font-size: 12px; transition: border-color .15s, box-shadow .15s; }
.document-location-modal .document-location-input:focus,
.document-location-modal .document-detail-select:focus { outline: none; border-color: #3556ac; box-shadow: 0 0 0 3px #3556ac19; }
.document-location-modal .document-location-input[readonly] {
  background: #f3f5f9;
}

.document-location-empty {
  margin: 0;
  padding: 16px;
  color: #52637a;
}

.document-location-modal .document-location-input:disabled,
.document-location-modal .document-detail-select:disabled { opacity: 1; background: #f3f5f9; color: #98a4b5; border-color: #e2e8f1; cursor: not-allowed; }
.document-location-modal .icon-btn { width: 30px; height: 30px; padding: 6px; border: 1px solid #dce6f5; border-radius: 7px; background: #fff; color: #3556ac; }
.document-location-modal .icon-btn:hover { background: #e7effc; border-color: #b8cbed; }
.document-location-modal .modal-foot { padding-top: 18px; border-top: 1px solid #e5ebf4; gap: 10px; }
.document-location-footnote { margin-right: auto; color: #76849a; font-size: 11px; }
.document-location-modal .modal-foot .btn { min-height: 40px; padding: 9px 18px; font-size: 12px; font-weight: 600; }
.document-location-modal button:focus-visible { outline: 2px solid #005ca9; outline-offset: 2px; }
@media (max-width: 700px) { .document-location-intro { flex-wrap: wrap; } .document-selection-count { margin-left: 48px; } .document-location-footnote { width: 100%; } .document-location-modal .modal-foot { flex-wrap: wrap; } }

.scope-panel.obligation-form-panel { min-height: 0; padding: 26px; border: 1px solid #e1e8f3; border-radius: 12px; box-shadow: 0 3px 14px #173a7010; }
.obligation-form-panel .obligations-heading { margin-bottom: 0; padding: 0 0 22px; border-bottom: 1px solid #e5ebf4; }
.obligation-form-panel .scope-uf-title { margin-bottom: 12px; font-size: 21px; line-height: 1.45; }
.obligation-form-panel .scope-source-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.obligation-form-panel .obligations-heading .source-pill { min-height: 28px; max-width: 100%; padding: 5px 10px; border: 1px solid #d6e2f4; border-radius: 6px; background: #f1f5fc; color: #425b81; font-size: 11px; white-space: normal; line-height: 1.5; }
.obligation-form-panel .obligations-heading .source-pill:first-child { color: #fff; background: #3556ac; border-color: #3556ac; font-weight: 700; }
.obligation-form-panel .obligation-form-grid { padding: 22px; background: #f8fafd; border: 1px solid #e3eaf4; border-radius: 10px; }
.obligation-form-panel .obligation-form-grid .field { gap: 8px; font-size: 12px; color: #42516a; }
.obligation-form-panel .obligation-form-grid .field > span { font-weight: 600; line-height: 1.5; }
.obligation-form-panel .obligation-form-grid select,
.obligation-form-panel .obligation-form-grid textarea { width: 100%; border: 1px solid #cfdaeb; border-radius: 7px; background-color: #fff; color: #243954; padding: 10px 12px; font-size: 13px; line-height: 1.5; box-shadow: 0 1px 2px #173a7005; transition: border-color .15s, box-shadow .15s; }
.obligation-form-panel .obligation-form-grid select { min-height: 42px; }
.obligation-form-panel .obligation-form-grid textarea { resize: vertical; }
.obligation-form-panel .obligation-form-grid select:hover,
.obligation-form-panel .obligation-form-grid textarea:hover { border-color: #9fb8dc; }
.obligation-form-panel .obligation-form-grid select:focus,
.obligation-form-panel .obligation-form-grid textarea:focus { outline: none; border-color: #3556ac; box-shadow: 0 0 0 3px #3556ac19; }
.obligation-form-panel .obligation-form-grid select:disabled,
.obligation-form-panel .obligation-form-grid textarea:disabled { color: #6f7e93; background: #edf1f7; box-shadow: none; }
.obligation-form-panel .document-field .pdf-action { min-height: 42px; border: 1px dashed #8baada; border-radius: 7px; background: #edf4ff; color: #2355a5; font-size: 12px; font-weight: 600; }
.obligation-form-panel .document-field .pdf-action:hover:not(:disabled) { background: #e1ecfd; border-style: solid; }
.obligation-form-sources { width: 100%; overflow-x: auto; border: 1px solid #dbe4ef; border-radius: 9px; }
.obligation-form-sources .obligation-register-table { width: 100%; min-width: 900px; margin: 0; }
.obligation-form-sources .obligation-register-table th { padding: 14px 12px; background: #3556ac; font-size: 12px; }
.obligation-form-sources .obligation-register-table td { padding: 16px 14px; font-size: 12px; line-height: 1.6; border-bottom: 1px solid #e3eaf4; vertical-align: middle; }
.obligation-form-sources .obligation-register-table em { font-style: normal; color: #5f6f85; }
.obligation-form-sources .obligation-register-table strong { color: #244e8c; }
.obligation-form-sources .blank-document-row td { height: 92px; background: #fcfdff; }
.obligation-form-sources .icon-btn { width: 30px; height: 30px; padding: 6px; border: 1px solid #dce6f5; border-radius: 7px; background: #fff; color: #3556ac; }
.obligation-form-sources .icon-btn:hover { background: #eaf1fc; border-color: #b8cbed; }
.obligation-form-panel .obligation-form-actions { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid #e5ebf4; }
.obligation-form-panel .obligation-form-actions .btn { min-height: 42px; min-width: 160px; padding: 10px 24px; font-size: 13px; font-weight: 600; }
.obligation-form-panel .obligation-form-actions .btn.primary { box-shadow: 0 3px 8px #005ca91a; }
.obligation-form-panel button:focus-visible { outline: 2px solid #005ca9; outline-offset: 2px; }

.obligations-list-title p { margin: 7px 0 0; color: #68768b; font-size: 13px; }
.registered-obligations-panel { min-height: 0; border: 1px solid #e1e8f3; border-radius: 12px; padding: 24px; box-shadow: 0 3px 14px #173a7010; }
.registered-obligations-panel .obligations-heading { margin-bottom: 0; padding: 0 0 20px; border-bottom: 1px solid #e5ebf4; }
.registered-obligations-panel .scope-uf-title { font-size: 21px; line-height: 1.45; margin-bottom: 12px; }
.registered-obligations-panel .scope-source-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.registered-obligations-panel .obligations-heading .source-pill { min-height: 28px; max-width: 100%; padding: 5px 10px; font-size: 11px; border: 1px solid #d6e2f4; border-radius: 6px; background: #f1f5fc; color: #425b81; white-space: normal; line-height: 1.5; }
.registered-obligations-panel .obligations-heading .source-pill:first-child { background: #3556ac; border-color: #3556ac; color: #fff; font-weight: 700; }
.registered-obligations-panel .obligations-tools { margin-top: 18px; }
.registered-obligations-panel .obligations-tools { padding: 14px 16px; margin-bottom: 18px; border: 1px solid #e3eaf4; border-radius: 9px; background: #f8fafd; align-items: center; gap: 16px; }
.registered-obligations-panel .obligations-tools .pdf-search { max-width: 620px; width: 100%; }
.registered-obligations-panel .obligations-tools .scope-actions { min-width: 0; }
.registered-obligations-panel .obligations-tools .pdf-action { padding: 9px 14px; font-size: 12px; }
.registered-obligations-panel .obligations-table-wrap { border-radius: 9px; border-color: #d7e1f1; }
.registered-obligations-panel .obligations-table { width: 100%; min-width: 1400px; }
.registered-obligations-panel .obligations-table > thead > tr > th { padding: 14px 12px; font-size: 12px; background: #3556ac; }
.registered-obligations-panel .obligations-table > tbody > .registered-obligation-row > td { padding: 18px 14px; line-height: 1.6; font-size: 12px; vertical-align: top; border-bottom: 1px solid #e3eaf4; }
.registered-obligations-panel .registered-obligation-row:hover > td { background: #f7faff; }
.registered-obligations-panel td b { color: #536177; font-weight: 600; }
.registered-obligations-panel td em { font-style: normal; color: #42516a; }
.registered-obligations-panel .obligation-stage-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.registered-obligations-panel .obligation-stage-list li { background: #edf3fc; color: #3556ac; border: 1px solid #dbe5f5; border-radius: 5px; padding: 3px 8px; font-size: 11px; }
.obligation-state-label { display: inline-flex; align-items: center; gap: 6px; border-radius: 20px; padding: 5px 9px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.obligation-state-label > span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.obligation-state-label.current { color: #237350; background: #eaf6ef; }
.obligation-state-label.not-current { color: #67748a; background: #edf0f5; }
.registered-obligations-panel td > .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; }
.registered-obligations-panel .actions .icon-btn { width: 30px; height: 30px; min-width: 30px; padding: 6px; border: 1px solid #dce6f5; border-radius: 7px; background: #fff; color: #3556ac; }
.registered-obligations-panel .actions .icon-btn:hover { background: #eaf1fc; border-color: #b8cbed; }
.registered-obligations-panel .actions .icon-btn[title="Eliminar"]:hover { background: #fff0ee; color: #b42318; border-color: #f4ceca; }
.registered-obligations-panel button:focus-visible { outline: 2px solid #005ca9; outline-offset: 2px; }
.registered-obligations-panel .obligation-child-row > td { padding: 16px 18px 20px; background: #f5f8fd; }
.registered-obligations-panel .obligation-subtable { border: 1px solid #d7e1f1; border-left: 3px solid #3556ac; border-radius: 7px; overflow: hidden; }
.registered-obligations-panel .obligation-subtable caption { padding: 12px 14px; background: #edf3fc; color: #23477d; font-size: 12px; font-weight: 600; text-align: left; }
.registered-obligations-panel .obligation-subtable caption span { margin-left: 10px; color: #68768b; font-weight: 400; }
.registered-obligations-panel .obligation-subtable th { background: #e6edf8 !important; color: #23477d !important; font-size: 11px; padding: 11px 12px; }
.registered-obligations-panel .obligation-subtable td { padding: 16px 12px; font-size: 12px; line-height: 1.6; }
@media (max-width: 900px) { .registered-obligations-panel { padding: 16px; } .registered-obligations-panel .obligations-tools { grid-template-columns: 1fr; } }

.scope-list-title p { margin: 7px 0 0; color: #68768b; font-size: 13px; }
.scope-list-panel { border: 1px solid #e3eaf4; border-radius: 12px; padding: 24px; box-shadow: 0 3px 14px #173a7010; }
.scope-list-panel .scope-panel-header { padding: 0 0 20px; border-bottom: 1px solid #e5ebf4; margin-bottom: 0; }
.scope-list-panel .scope-uf-title { font-size: 21px; line-height: 1.45; margin-bottom: 12px; }
.scope-list-panel .scope-source-pills { gap: 7px; margin-top: 10px; }
.scope-list-panel .source-pill { font-size: 11px; padding: 6px 10px; }
.scope-list-panel .scope-tools { margin-top: 18px; }
.scope-list-panel .scope-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 16px; margin-bottom: 20px; border: 1px solid #e3eaf4; border-radius: 9px; background: #f8fafd; }
.scope-list-panel .scope-list-toolbar { flex: 1 1 330px; min-width: 0; }
.scope-list-panel .scope-list-toolbar .pdf-search { width: auto; flex: 1; min-width: 150px; }
.scope-list-panel .scope-actions { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.scope-list-panel .scope-actions .pdf-action { min-width: 0; font-size: 12px; padding: 9px 13px; }
.scope-list-panel > .scope-table { border: 1px solid #dbe4ef; border-radius: 8px; border-collapse: separate; border-spacing: 0; width: 100%; }
.scope-list-panel > .scope-table > thead > tr > th { background: #3556ac; padding: 14px 12px; font-size: 12px; letter-spacing: .01em; }
.scope-list-panel > .scope-table > tbody > .scope-parent-row > td { padding: 18px 14px; border-bottom: 1px solid #e1e8f2; vertical-align: middle; }
.scope-list-panel > .scope-table:not(.scope-move-table) > tbody > .scope-parent-row:hover > td { background: #f8faff; }
.scope-list-panel .scope-detail { gap: 6px; font-size: 12px; line-height: 1.55; }
.scope-list-panel .scope-detail em { font-style: normal; color: #42516a; }
.scope-list-panel .scope-detail b { color: #536177; font-weight: 600; }
.scope-list-panel .scope-source-name { gap: 6px; font-size: 12px; line-height: 1.55; }
.scope-list-panel .scope-source-name b { color: #536177; font-weight: 600; }
.scope-list-panel .scope-row-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; }
.scope-list-panel .scope-row-actions .icon-btn { width: 30px; height: 30px; min-width: 30px; padding: 6px; border: 1px solid #dce6f5; border-radius: 7px; background: #fff; color: #3556ac; }
.scope-list-panel .scope-row-actions .icon-btn:hover { background: #eaf1fc; border-color: #b8cbed; }
.scope-list-panel .scope-row-actions .icon-btn:focus-visible { outline: 2px solid #005ca9; outline-offset: 2px; }
.scope-list-panel .scope-row-actions .icon-btn[title="Eliminar"]:hover { color: #b42318; background: #fff0ee; border-color: #f4ceca; }
.scope-state-label { display: inline-flex; align-items: center; gap: 6px; border-radius: 20px; padding: 5px 9px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.scope-state-label > span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.scope-state-label.active { color: #237350; background: #eaf6ef; }
.scope-state-label.inactive { color: #67748a; background: #edf0f5; }
.scope-list-panel .scope-child-row > td { background: #f5f8fd; padding-bottom: 16px; }
.scope-list-panel .scope-subtable { border: 1px solid #d7e1f1; border-left: 3px solid #3556ac; border-radius: 7px; overflow: hidden; }
.scope-list-panel .scope-subtable caption { text-align: left; caption-side: top; padding: 12px 14px; color: #23477d; font-weight: 600; font-size: 12px; background: #edf3fc; }
.scope-list-panel .scope-subtable caption span { margin-left: 10px; color: #68768b; font-weight: 400; }
.scope-list-panel .scope-subtable th { background: #e6edf8 !important; color: #23477d !important; font-size: 11px; padding: 11px 12px; }
.scope-list-panel .scope-subtable td { padding: 16px 12px; font-size: 12px; vertical-align: middle; }
.mandate-measures-table-wrap {
  overflow-x: auto;
}

.scope-table.mandate-measures-table {
  width: 100%;
  min-width: 920px;
  margin: 0;
}

.scope-table.mandate-measures-table td {
  vertical-align: top;
}

.scope-table.mandate-measures-table .mandate-description {
  min-width: 360px;
  width: 53%;
  text-align: left;
}

.mandate-description p {
  margin: 0;
  white-space: pre-line;
  line-height: 1.6;
}

.mandate-measures-table .mandate-measure-group:has(.mandate-accreditation-toggle[aria-expanded="true"]) .mandate-measure-row > td {
  border-bottom: 0;
  background: #f5f8fd;
}

.scope-table.mandate-measures-table .mandate-accreditation-row > td {
  width: auto;
  height: auto;
  padding: 0 16px 16px 32px;
  border-top: 0;
  background: #f5f8fd;
  text-align: left;
}

.mandate-accreditations {
  border-left: 3px solid #a6bedf;
}

.mandate-accreditation-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 4px 8px;
  border: 1px solid #d7e1f1;
  border-radius: 6px;
  background: #edf3fb;
  color: #23477d;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.mandate-accreditation-toggle svg {
  width: 15px;
  height: 15px;
  transform: rotate(-90deg);
}

.mandate-accreditation-toggle[aria-expanded="true"] svg { transform: rotate(0deg); }

.mandate-accreditation-toggle:focus-visible {
  outline: 2px solid var(--oefa-blue);
  outline-offset: 2px;
}

.mandate-accreditation-table {
  width: 100%;
  border-collapse: collapse;
}

:is(.mandate-measures-table, .mandate-reference-accreditation) .mandate-accreditation-table th {
  padding: 9px 10px;
  background: #e6edf8;
  color: #23477d;
  font-size: 12px;
}

:is(.mandate-measures-table, .mandate-reference-accreditation) .mandate-accreditation-table td {
  height: auto;
  padding: 9px 10px;
  font-size: 13px;
  text-align: center;
  vertical-align: middle;
}

.mandate-accreditation-table :is(th, td):nth-child(2) {
  width: 48%;
  text-align: left;
}

.mandate-measure-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.mandate-measure-actions .icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 7px;
  border: 1px solid #cddbf0;
  border-radius: 7px;
  background: #fff;
  color: #3556ac;
}

.mandate-measure-actions .icon-btn:hover:not(:disabled) {
  background: #eaf1fc;
  border-color: #a8bee0;
}

.mandate-measure-actions .icon-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.scope-list-panel .scope-uf-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
@media (max-width: 1000px) {
  .scope-list-panel { padding: 16px; overflow-x: auto; }
  .scope-list-panel > .scope-table { min-width: 900px; }
  .scope-list-panel .scope-actions { margin-left: 0; }
}

.normative-grid-intro { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; background: #f5f8fd; border-bottom: 1px solid #dbe4ef; }
.normative-grid-intro strong { color: #183b70; font-size: 14px; }
.normative-grid-intro p { margin: 5px 0 0; color: #627187; font-size: 12px; }
.normative-grid-intro > span { border-radius: 18px; padding: 6px 10px; white-space: nowrap; background: #e5edfc; color: #3556ac; font-size: 12px; }
.normative-scope-section .normative-article-table-wrap { border: 1px solid #dbe4ef; border-radius: 10px; overflow-x: auto; }
.normative-scope-section .normative-article-table { margin: 0; }
.normative-scope-section .normative-article-row > td { padding-top: 16px; padding-bottom: 16px; border-bottom: 1px solid #dbe4ef; vertical-align: middle; }
.normative-scope-section .normative-article-row.is-selected > td { background: #f2f7ff; }
.normative-scope-section .normative-subgrid-row > td { padding: 14px 18px 20px !important; background: #f5f8fd; }
.normative-scope-section .normative-subgrid-wrap { width: calc(100% - 26px); margin-left: 26px; border: 1px solid #cfdaed; border-left: 3px solid #3556ac; border-radius: 8px; overflow-x: auto; }
.normative-obligation-caption { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; background: #fff; color: #183b70; font-size: 12px; }
.normative-obligation-caption span { color: #627187; }
.normative-scope-section .scope-table .normative-subgrid th { background: #e7eef9 !important; color: #23477d !important; height: 40px; padding: 10px 12px; border-bottom: 1px solid #cfdaed; }
.normative-scope-section .normative-subgrid { min-width: 850px; }
.normative-scope-section .normative-subgrid td { padding: 14px 12px; vertical-align: top; border-bottom: 1px solid #e4eaf4; font-size: 12px; }
.normative-scope-section .normative-subgrid th:first-child,
.normative-scope-section .normative-subgrid td:first-child { width: 40px !important; min-width: 40px; padding: 12px 8px !important; }
.normative-stage-options { display: flex; flex-direction: column; gap: 7px; }
.normative-stage-choice { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid #dbe4ef; border-radius: 6px; color: #42516a; cursor: pointer; background: #fff; }
.normative-stage-choice:has(input:checked) { background: #edf4ff; border-color: #b9cef0; color: #1d55ad; }
.normative-stage-choice input { flex: 0 0 16px; margin: 0; }
.normative-stage-error { display: block; margin-top: 7px; color: #b42318; font-size: 11px; }

.modification-panel { border: 1px solid #dbe4ef; border-radius: 10px; padding: 16px; background: #fff; min-width: 0; }
.modification-panel-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.modification-panel-heading h3 { margin: 0 0 5px; padding: 0; border: 0; color: #183b70; font-size: 15px; }
.modification-panel-heading p { margin: 0; color: #627187; font-size: 12px; line-height: 1.5; }
.modification-step { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border-radius: 50%; color: #fff; background: #005ca9; font-weight: 700; }
.modification-search { background: #f7f9fd; }
.modification-panel .modify-source-filters { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(170px, .9fr); gap: 14px; margin-bottom: 16px; }
.modification-panel.modify-source-selected { padding: 16px; border-color: #b9ccef; border-top: 3px solid #3556ac; }
.modification-panel .modification-panel-heading h3 { margin: 0 0 5px; padding: 0; border: 0; }
.modification-count { margin-left: auto; white-space: nowrap; border-radius: 20px; padding: 5px 10px; background: #e8effb; color: #3556ac; font-size: 12px; }
.modification-summary, .modification-empty { margin: 12px 0 0; color: #536177; font-size: 12px; }
.modification-remove { color: #b42318; }
.modification-remove:hover { background: #fff0ee; }
.modification-panel .modify-source-add-row { margin-top: 12px; }
.modify-source-detail-form button:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 900px) { .modification-panel .modify-source-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.modify-source-detail-form {
  display: grid;
  gap: 18px;
  padding: 22px 26px 14px;
  border-top: 1px solid #edf1f6;
  max-height: 65vh;
  overflow-y: auto;
}

.modify-source-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(180px, 220px) minmax(210px, auto);
  align-items: end;
  gap: 18px 24px;
}

.modify-source-detail-form .field {
  color: #2e3440;
  font-size: 14px;
}

.modify-source-detail-form .field input,
.modify-source-detail-form .field select {
  min-height: 36px;
  font-size: 14px;
}

.modify-source-filters .field select:disabled,
.modify-source-filters .field input:disabled {
  color: #8a94a6;
  background: #f7f9fc;
}

.other-uf-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px;
  color: #2f3747;
  font-size: 14px;
  line-height: 1.35;
}

.other-uf-check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.modify-source-detail-form .pdf-simple-table {
  width: 100%;
  max-width: 100%;
  margin-top: 0;
}

.modify-source-detail-form .pdf-simple-table table {
  min-width: 0;
}

.modify-source-detail-form .pdf-simple-table th {
  height: 42px;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 600;
}

.modify-source-detail-form .pdf-simple-table td {
  height: 44px;
  padding: 9px 10px;
  font-size: 13px;
}

.modify-source-add-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
}

.modify-source-add-row .pdf-action {
  min-width: 180px;
  justify-content: center;
}

.modify-source-selected {
  display: grid;
  gap: 14px;
  padding: 18px 22px 24px;
  border: 1px solid #edf1f6;
  border-radius: 8px;
}

.modify-source-selected h3 {
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid #b8c5d8;
  color: #2f3747;
  font-size: 15px;
  font-weight: 600;
}

.pdf-wizard-actions {
  position: absolute;
  left: 42px;
  right: auto;
  bottom: 34px;
  width: min(var(--wizard-content-width), calc(100% - 84px));
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.pdf-wizard-actions .pdf-action {
  min-width: 140px;
  min-height: 51px;
  font-size: 16px;
}

.reviewer-wizard-actions {
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 34px;
  width: min(var(--wizard-content-width), calc(100% - 84px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.reviewer-wizard-actions .pdf-action {
  min-width: 168px;
  min-height: 43px;
  justify-content: center;
  gap: 8px;
}

.reviewer-wizard-actions .pdf-action:first-child {
  background: #fff;
  border-color: #1d55ad;
  color: #1d55ad;
}

.reviewer-decision-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pdf-action.danger,
.btn.danger {
  background: #e73945;
  border-color: #e73945;
  color: #fff;
}

.reviewer-decision-actions .pdf-action.primary,
.reviewer-decision-actions .pdf-action.danger {
  background: #fff;
}

.reviewer-decision-actions .pdf-action.primary {
  color: #1b8f55;
  border-color: #1b8f55;
}

.reviewer-decision-actions .pdf-action.danger {
  color: #c74444;
  border-color: #c74444;
}

.reviewer-decision-actions .pdf-action.primary:hover {
  color: #fff;
  background: #1b8f55;
  border-color: #1b8f55;
}

.reviewer-decision-actions .pdf-action.danger:hover {
  color: #fff;
  background: #c74444;
  border-color: #c74444;
}

/* Homologacion visual del prototipo */
body,
button,
input,
select,
textarea {
  font-family: Arial, Helvetica, sans-serif;
}

:where(.field, .source-filter-modal .field, .associate-form .field, .link-scope-form .field, .modify-source-detail-form .field) {
  color: #2f3747;
  font-size: 13px;
  line-height: 1.35;
}

:where(.field input, .field select, .field textarea,
.source-filter-modal .field input, .source-filter-modal .field select,
.associate-form input, .associate-form select,
.link-scope-form .field input, .link-scope-form .field select,
.modify-source-detail-form .field input, .modify-source-detail-form .field select,
.scope-general .multi-combo summary,
.document-location-input,
.document-detail-select,
.table-date,
.table-period,
.review-observe-section select,
.review-observe-detail textarea) {
  border-color: #cbd5e1;
  border-radius: 6px;
  color: #2f3747;
  font-size: 14px;
}

:where(.field input, .field select,
.source-filter-modal .field input, .source-filter-modal .field select,
.associate-form input, .associate-form select,
.link-scope-form .field input, .link-scope-form .field select,
.modify-source-detail-form .field input, .modify-source-detail-form .field select,
.scope-general .multi-combo summary) {
  min-height: 38px;
}

:where(.btn, .pdf-action) {
  min-height: 34px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

:where(.pdf-source-table,
.scope-table,
.scope-subtable,
.pdf-simple-table table,
.associate-table,
.link-scope-result-table,
.link-subtable,
.document-location-grid,
.obligation-register-table) {
  border-color: #dbe4ef;
  border-radius: 6px;
}

:where(.pdf-source-table th,
.scope-table th,
.pdf-simple-table th,
.associate-table th,
.link-scope-result-table th,
.obligation-register-table th,
.document-location-head span) {
  min-height: 44px;
  padding: 10px 12px;
  border-bottom: 0;
  color: #fff;
  background: #3556ac;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

:where(.pdf-source-table td,
.scope-table td,
.pdf-simple-table td,
.associate-table td,
.link-scope-result-table td,
.obligation-register-table td,
.document-location-row > div) {
  padding: 11px 12px;
  border-color: #dbe4ef;
  color: #2f3747;
  background: #fff;
  font-size: 13px;
  line-height: 1.4;
  vertical-align: middle;
}

:where(.scope-subtable th,
.scope-table.obligation-subtable th,
.link-subtable th) {
  min-height: 42px;
  padding: 9px 12px;
  color: #fff;
  background: #b8bdc6;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

:where(.scope-subtable td,
.scope-table.obligation-subtable td,
.link-subtable td) {
  padding: 10px 12px;
  color: #2f3747;
  font-size: 13px;
  line-height: 1.4;
}

.pdf-source-table th,
.pdf-source-table td,
.scope-table th,
.scope-table td {
  white-space: normal;
}

.pdf-row-actions button,
.scope-row-actions .icon-btn,
.review-obligation-actions .icon-btn,
.document-location-row .icon-btn {
  color: #1d55ad;
}

.table-card,
.source-table-wrap,
.scope-table-wrap,
.obligations-table-wrap,
.pdf-simple-table,
.associate-table-wrap,
.link-scope-table-wrap {
  scrollbar-color: #9aa3af #eef2f7;
  scrollbar-width: thin;
}

.pdf-source-table th,
.scope-table th,
.obligations-table th,
.pdf-simple-table th,
.associate-table th,
.link-scope-result-table th,
.obligation-register-table th,
.document-location-head span {
  min-height: 44px;
  padding: 10px 12px;
  border-bottom: 0;
  color: #fff;
  background: #3556ac;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.pdf-source-table td,
.scope-table td,
.obligations-table td,
.pdf-simple-table td,
.associate-table td,
.link-scope-result-table td,
.obligation-register-table td,
.document-location-row > div {
  padding: 11px 12px;
  border-color: #dbe4ef;
  color: #2f3747;
  background: #fff;
  font-size: 13px;
  line-height: 1.4;
  vertical-align: middle;
}

.scope-subtable th,
.scope-table.obligation-subtable th,
.link-subtable th,
.obligation-subtable th {
  min-height: 42px;
  padding: 9px 12px;
  color: #fff;
  background: #b8bdc6;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.scope-subtable td,
.scope-table.obligation-subtable td,
.link-subtable td,
.obligation-subtable td {
  padding: 10px 12px;
  color: #2f3747;
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 920px) {
  .shell {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .topbar {
    grid-template-columns: 64px 1fr auto;
  }

  .brand {
    padding: 0 12px;
    font-size: 0;
  }

  .brand::after {
    content: "O";
    font-size: 24px;
  }

  .side-title strong,
  .side-link span,
  .side-title span {
    display: none;
  }

  .main {
    padding: 22px 14px 54px;
  }

  .footer {
    left: 64px;
  }

  .pdf-shell {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: 70px minmax(0, 1fr) 34px;
  }

  .pdf-topbar {
    grid-template-columns: 64px auto 1fr;
  }

  .pdf-menu {
    width: 64px;
    height: 70px;
  }

  .pdf-brand {
    height: 70px;
    padding-left: 10px;
  }

  .pdf-brand img {
    width: 92px;
  }

  .pdf-user {
    gap: 8px;
    padding-right: 10px;
  }

  .pdf-user-text {
    display: none;
  }

  .pdf-avatar {
    width: 36px;
    height: 36px;
  }

  .pdf-main {
    padding: 24px 16px 40px;
  }

  .pdf-title-row h1 {
    font-size: 25px;
  }

  .source-board,
  .scope-tools {
    grid-template-columns: 1fr;
  }

  .source-actions,
  .scope-actions {
    min-width: 0;
  }

  .pdf-stepper {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .pdf-step > b {
    min-height: 36px;
  }

  .wizard-card {
    padding: 24px 18px 98px;
  }

  .wizard-card h2 {
    grid-template-columns: 24px minmax(0, 1fr);
    font-size: 20px;
  }

  .wizard-uf-label,
  .wizard-uf-name {
    grid-column: 2;
  }

  .wizard-uf-name {
    max-width: none;
  }

  .pdf-form-grid,
  .pdf-form-grid.intro,
  .schedule-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pdf-form-grid .field.double {
    grid-column: auto;
  }

  .consultant-details {
    grid-template-columns: 1fr;
  }

  .switch-line {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .switch-line span {
    min-width: 100%;
  }

  .page-head,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .form-grid,
  .form-grid.two,
  .schedule-form,
  .schedule-question,
  .geo-layout {
    grid-template-columns: 1fr;
  }

  .stepper {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .step::before {
    display: none;
  }
}

.scope-table td.scope-nro {
  white-space: nowrap;
  padding-left: 8px;
  padding-right: 8px;
}
.scope-nro > .scope-toggle,
.scope-nro > span { vertical-align: middle; }
.scope-order-number {
  display: inline-block;
  min-width: 20px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #005aa8;
  font: inherit;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
}
.scope-order-number:hover { text-decoration: underline; }
.scope-order-number:focus-visible { outline: 2px solid #005aa8; outline-offset: 3px; border-radius: 3px; }
.modal:has([data-scope-order-form]) { width: min(480px, calc(100vw - 32px)); padding: 24px; border-radius: 20px; }
.modal:has([data-scope-order-form]) .modal-head { justify-content: flex-start; margin-bottom: 20px; border-bottom: 0; }
.modal:has([data-scope-order-form]) .modal-head h2 { text-align: left; font-size: 20px; color: #263c49; font-weight: 600; }
.scope-order-field { display: block; font-size: 14px; margin-bottom: 8px; color: #354657; }
#scope-order-input { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid #bacbdc; border-radius: 6px; font: inherit; }
#scope-order-input:focus { outline: 2px solid #c4e4f8; border-color: #2988be; }
#scope-order-input[aria-invalid="true"] { border-color: #bc3030; }
.scope-order-error { min-height: 18px; margin: 6px 0; color: #b42323; font-size: 13px; text-align: left; }
.modal:has([data-scope-order-form]) .modal-foot { justify-content: flex-end; margin-top: 14px; padding-top: 0; border-top: 0; gap: 12px; }
.modal:has([data-scope-order-form]) .btn { min-width: auto; border-radius: 6px; }
.modal:has([data-scope-order-form]) .btn.primary { background: #3556ac; border-color: #3556ac; }
.modal:has([data-scope-order-form]) .btn:not(.primary) { border-color: transparent; color: #344454; background: transparent; }

.scope-list-toolbar .pdf-search { min-width: 0; }
.scope-list-toolbar .pdf-filter { flex-shrink: 0; }
.scope-list-toolbar .scope-move-trigger {
  flex: 0 0 auto;
  min-height: 32px;
  height: 32px;
  padding: 5px 10px;
  gap: 5px;
  font-size: 12px;
}
.scope-move-trigger svg { width: 14px; height: 14px; }

.scope-move-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 16px;
  margin: 6px 0 14px;
  border: 1px solid #d4e3e9;
  border-radius: 12px;
  background: #f5fafc;
}
.scope-move-banner > .pdf-action { flex-shrink: 0; background: white; }
.scope-move-guidance { text-align: left; color: #50616c; font-size: 12px; }
.scope-move-guidance strong { color: #24557c; font-size: 14px; }
.scope-move-guidance p { margin: 5px 0 8px; }
.scope-move-guidance .scope-move-detail { margin: 8px 0 0; font-size: 11px; }
.scope-move-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.scope-move-legend span { border-radius: 20px; padding: 4px 10px; color: white; font-weight: 700; font-size: 11px; }
.scope-move-legend .before { background: #087f62; }
.scope-move-legend .inside { background: #6d4ac7; }
.scope-move-legend .after { background: #bb6800; }
.scope-move-table [data-scope-move-row] { cursor: grab; touch-action: none; user-select: none; }
.scope-move-table [data-scope-move-row]:active { cursor: grabbing; }
.scope-move-table [data-scope-move-row] > td { transition: background-color .12s; }
.scope-move-table .scope-dragging > td { opacity: .45; }
.scope-move-handle { display: inline-flex; justify-content: center; align-items: center; width: 38px; height: 38px; border: 1px solid #c8d9e4; border-radius: 7px; color: #356486; background: #f4f9fc; font-size: 25px; user-select: none; }
.scope-move-table .scope-drop-before > td { box-shadow: inset 0 3px #087f62; background: #eefbf6; }
.scope-move-table .scope-drop-after > td { box-shadow: inset 0 -3px #bb6800; background: #fff8ec; }
.scope-move-table .scope-drop-inside > td { background: #f0eafb; box-shadow: inset 0 2px #6d4ac7, inset 0 -2px #6d4ac7; }
.scope-move-table .scope-drop-invalid > td { background: #fff0f0; }
.scope-move-tooltip { position: fixed; z-index: 10000; pointer-events: none; max-width: min(390px, calc(100vw - 24px)); padding: 11px 14px; border-radius: 8px; background: #087f62; color: white; font-size: 13px; font-weight: 600; line-height: 1.5; box-shadow: 0 4px 18px #16334430; }
.scope-move-tooltip[data-position="inside"] { background: #6d4ac7; }
.scope-move-tooltip[data-position="after"] { background: #a95d00; }
.scope-move-tooltip[data-position="invalid"] { background: #a33232; }
.scope-move-confirm { padding: 6px 0 12px; line-height: 1.6; }
.scope-move-confirm > p:first-child { font-weight: 600; color: #254a67; }
.scope-move-confirm-detail { color: #5c6d7a; font-size: 13px; }
.scope-move-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 700px) { .scope-move-banner { align-items: flex-start; flex-direction: column; gap: 16px; } }

@media (min-width: 921px) and (max-width: 1200px) {
  .main {
    padding-left: 22px;
    padding-right: 22px;
  }
}
