.registry-delete {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 5px 7px;
  border-color: #a9565e;
  background: #793d42;
  color: #fff;
  font-size: 11px;
}

.registry-delete:hover {
  background: #943f47;
}

.registry-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.registry-content { width: calc(100vw - 32px); margin-left: calc(50% - 50vw + 16px); }
.registry-table th,.registry-table td { overflow-wrap: anywhere; vertical-align: top; }
.registry-table th:nth-child(1) { width: 20%; }
.registry-table th:nth-child(2) { width: 15%; }
.registry-table th:nth-child(3) { width: 14%; }
.registry-table th:nth-child(4) { width: 17%; }
.registry-table th:nth-child(5) { width: 22%; }
.registry-table th:nth-child(6) { width: 12%; }
.registry-cell-stack { display:flex; flex-direction:column; gap:5px; }
.registry-cell-stack small { display:block; color:var(--muted); }
.registry-cell-stack button { width:100%; margin:0; }
.inline-registry-table { table-layout:fixed; font-size:12px; }
.inline-registry-table th:nth-child(1) { width:16%; }
.inline-registry-table th:nth-child(2) { width:10%; }
.inline-registry-table th:nth-child(3) { width:10%; }
.inline-registry-table th:nth-child(4) { width:9%; }
.inline-registry-table th:nth-child(5),.inline-registry-table th:nth-child(6) { width:12%; }
.inline-registry-table th:nth-child(7) { width:12%; }
.inline-registry-table th:nth-child(8) { width:13%; }
.inline-registry-table th:nth-child(9) { width:8%; }
.registry-inline { box-sizing:border-box; width:100%; min-width:0; padding:7px; border:1px solid var(--line); border-radius:6px; background:var(--paper-2); color:var(--ink); font:inherit; }
.registry-inline:focus { outline:2px solid var(--blue); outline-offset:1px; }
.registry-comment-input { min-height:62px; resize:vertical; }
.inline-linked { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:5px; align-items:center; }
.inline-linked a { padding:6px; color:var(--blue); font-size:18px; text-decoration:none; }
.inline-deadline,.sent-fixed { display:flex; flex-direction:column; gap:3px; margin-top:5px; color:var(--muted); }
.sent-fixed strong { color:var(--green); }
.sent-button { width:100%; }
.inline-save-state { min-height:1em; color:var(--green); text-align:center; }
.penalty-info { display:block; padding:5px 7px; border-radius:6px; background:rgba(64,150,205,.08); line-height:1.4; }
.high-fine-row td { font-weight:700; background:rgba(190,78,65,.08); }
.high-fine-row .registry-inline { font-weight:700; }
.high-fine-row .penalty-info { color:#b33b32; background:rgba(190,78,65,.16); }
html[data-theme="dark"] .high-fine-row .penalty-info { color:#ffb8ae; }
@keyframes urgentPulse { 0%,100%{box-shadow:0 0 0 0 rgba(218,74,55,.15)} 50%{box-shadow:0 0 0 4px rgba(218,74,55,.38);background:#b84838;color:#fff} }
.urgent-company,.urgent-tab { animation:urgentPulse 1.4s ease-in-out infinite; border-color:#d65b48!important; }
@media (prefers-reduced-motion:reduce){.urgent-company,.urgent-tab{animation:none;background:#b84838!important;color:#fff!important}}
.access-user.account-editor{grid-template-columns:1.2fr 1fr 1fr 1fr auto auto;align-items:end;padding:12px 4px}.account-editor label{display:grid;gap:4px;font-size:11px;color:var(--ink-soft)}.account-editor .account-toggle{display:flex;align-items:center;gap:5px;padding-bottom:10px}.danger-text{color:#b74b45!important}@media(max-width:1050px){.access-user.account-editor{grid-template-columns:1fr 1fr 1fr}}
.returns-table { table-layout:auto; min-width:1100px; }
.returns-table th:last-child,.returns-table td:last-child { min-width:260px; white-space:normal; }
.yandex-link { display:inline-block; padding:5px 8px; border:1px solid var(--blue); border-radius:6px; color:var(--blue); text-decoration:none; font-weight:700; }
.reference-picker { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:7px; }
.reference-picker select { width:100%; min-width:0; }

.registry-table col[data-registry-col="received"],
.registry-table col[data-registry-col="sent"] {
  width: 120px;
}

.registry-table col[data-registry-col="deadline"] {
  width: 190px;
}

.deadline-status {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.deadline-status.on-time {
  background: rgba(49, 143, 102, .18);
  color: #176b4b;
}

.deadline-status.pending {
  background: rgba(218, 164, 62, .2);
  color: #805b08;
}

.deadline-status.overdue {
  background: rgba(181, 75, 65, .16);
  color: #9a3030;
}

html[data-theme="dark"] .deadline-status.on-time { color: #b7f5d7; }
html[data-theme="dark"] .deadline-status.pending { color: #ffe2a2; }
html[data-theme="dark"] .deadline-status.overdue { color: #ffd1d1; }

.registry-pdf-link {
  color: var(--blue-dark);
  text-decoration: none;
}

.registry-pdf-link:hover {
  color: var(--blue);
  text-decoration: underline;
}

.registry-links .registry-court-link {
  border-radius: 10px;
  padding: 2px 6px;
  background: rgba(49, 143, 102, .16);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.registry-links .registry-court-link:hover {
  text-decoration: underline;
}

.appeals-company-tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0 4px;
  padding: 7px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper-2);
}

.appeals-company-tabs button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  white-space: nowrap;
}

.appeals-company-tabs button.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.appeals-company-tabs b {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(255,255,255,.22);
  font-size: 10px;
  text-align: center;
}

.registry-filters .searchbar {
  grid-template-columns: auto minmax(300px,1fr) minmax(180px,.35fr) auto;
}
.leader-instruction-row{background:rgba(128,92,190,.15)!important;box-shadow:inset 5px 0 #9b79d1}.leader-instruction{display:block;border:1px solid #9b79d1;border-radius:6px;padding:7px;color:var(--ink);font-weight:700;background:rgba(155,121,209,.13)}
