/* Űrlapállományok oldal helyi alapértelmezett CSS-változói. */
:root {
  --xml-index-indent: 0px;
  --xml-files-header-height: 116px;
}

/* Sprint 7 Űrlapállományok oldal egységesítése */
.xml-files-page .panel-card {
  padding: 20px;
}

.xml-files-page .section-header {
  margin-bottom: 16px;
}

.xml-files-page .section-header h1,
.xml-files-page .section-header h2 {
  margin: 0 0 8px 0;
}

.xml-files-page .lead,
.xml-files-page .hint {
  max-width: 980px;
}

.xml-files-page .xml-file-actions-grid {
  gap: 18px 20px;
}

.xml-files-page .xml-file-action-card {
  border-radius: 14px;
  padding: 16px;
  background: #f8fafc;
  box-shadow: none;
}

.xml-files-page .xml-file-action-card h2 {
  margin: 0 0 8px 0;
  font-size: 20px;
  color: #102544;
}

.server-auto-register-panel {
  gap: 12px;
}

.server-root-box {
  border: 1px solid #d6e0ef;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 4px;
}

.server-root-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.server-root-box strong {
  color: var(--text);
  font-size: 13px;
  word-break: break-all;
}

/* Sprint 7: Urlapallomanyok muvelet ikonok es resolver popup */
.xml-files-table td:nth-child(2) strong {
  display: inline-block;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.xml-files-table td:last-child {
  min-width: 180px;
}

.xml-file-icon-action {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #d6e0ef;
  background: #fff;
  cursor: pointer;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.xml-file-icon-action:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(15, 23, 42, 0.14);
  filter: saturate(1.08);
}

.xml-file-icon-action.open-edit {
  color: #14532d;
  border-color: #86efac;
  background: linear-gradient(180deg, #ecfdf5, #dcfce7);
}

.xml-file-icon-action.open-readonly {
  color: #1d4ed8;
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #eff6ff, #dbeafe);
}

.xml-file-icon-action.close-session {
  color: #92400e;
  border-color: #fcd34d;
  background: linear-gradient(180deg, #fffbeb, #fef3c7);
}

.xml-file-icon-action.resolver-info {
  color: #3730a3;
  border-color: #c4b5fd;
  background: linear-gradient(180deg, #f5f3ff, #ede9fe);
}

.xml-file-icon-action.archive {
  color: #991b1b;
  border-color: #fecaca;
  background: linear-gradient(180deg, #fff1f2, #fee2e2);
}

.resolver-info-modal {
  position: fixed;
  inset: 0;
  z-index: 24000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.resolver-info-modal[hidden] {
  display: none !important;
}

.resolver-info-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 23, 48, 0.44);
  backdrop-filter: blur(3px);
}

.resolver-info-dialog {
  position: relative;
  width: min(920px, 96vw);
  max-height: 86vh;
  overflow: auto;
  border-radius: 20px;
  border: 1px solid #c7d7f3;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.3);
  padding: 24px;
}

.resolver-info-dialog h2 {
  margin: 0 0 18px 0;
}

.resolver-info-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #b9c9e8;
  background: #fff;
  color: #0f2e5f;
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
}

.resolver-info-content {
  display: grid;
  gap: 10px;
  margin: 0;
}

.resolver-info-row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.resolver-info-row dt {
  color: #405578;
  font-weight: 800;
}

.resolver-info-row dd {
  margin: 0;
  color: #102544;
  word-break: break-all;
}

@media (max-width: 720px) {
  .resolver-info-row {
    grid-template-columns: 1fr;
  }
}

/* Sprint 7 - Űrlapállományok lista refaktor */
.xml-files-modern-page {
  width: 100%;
}
.xml-files-registry-panel {
  padding: 18px;
}
.xml-files-toolbar {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}
.xml-files-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.xml-files-toolbar-button {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid #c8d6f0;
  background: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(25, 72, 128, .08);
}
.xml-files-toolbar-button.upload { color: #1d4ed8; background: #edf4ff; border-color: #bfd1ff; }
.xml-files-toolbar-button.refresh { color: #0f766e; background: #effcf8; border-color: #a7f3d0; }
.xml-files-toolbar-button.archive-toggle { color: #b45309; background: #fff7e6; border-color: #f8d38e; }
.xml-files-toolbar-button.archive-toggle.is-active { color: #6d28d9; background: #f4efff; border-color: #d8b4fe; }
.xml-files-toolbar-button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(25, 72, 128, .14); }
.xml-files-filterbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(170px, max-content) minmax(140px, max-content) minmax(140px, max-content);
  gap: 8px;
  align-items: center;
}
.xml-files-filterbar input,
.xml-files-filterbar select {
  min-height: 40px;
  border: 1px solid #b9c9e8;
  border-radius: 12px;
  background: #fff;
  padding: 8px 10px;
  color: #1d2d44;
}
.xml-files-table-wrap {
  width: 100%;
  max-height: calc(100vh - 270px);
  overflow: auto;
  border: 1px solid #d7e2f5;
  border-radius: 14px;
  background: #fff;
}
.xml-files-full-width-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}
.xml-files-full-width-table thead th {
  background: #edf4ff;
  border-bottom: 1px solid #cbd9f1;
  color: #0f2f5f;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
}
.xml-files-full-width-table tbody tr:nth-child(odd) { background: #ffffff; }
.xml-files-full-width-table tbody tr:nth-child(even) { background: #f8fbff; }
.xml-files-full-width-table tbody tr:hover { background: #eef6ff; }
.xml-files-full-width-table th,
.xml-files-full-width-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e9f6;
  vertical-align: middle;
}
.xml-file-name-cell { min-width: 260px; }
.xml-file-note-cell {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #374969;
}
.xml-file-actions {
  justify-content: flex-start;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.xml-file-icon-action {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  border: 1px solid #cbd9f1;
  background: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(25,72,128,.07);
}
.xml-file-icon-action.open-edit { color: #1d4ed8; background: #edf4ff; border-color: #bfd1ff; }
.xml-file-icon-action.open-readonly { color: #0f766e; background: #effcf8; border-color: #a7f3d0; }
.xml-file-icon-action.close-session { color: #6d28d9; background: #f4efff; border-color: #d8b4fe; }
.xml-file-icon-action.resolver-info { color: #0369a1; background: #eef8ff; border-color: #bae6fd; font-family: Georgia, serif; font-style: italic; }
.xml-file-icon-action.edit-note { color: #b45309; background: #fff7e6; border-color: #f8d38e; }
.xml-file-icon-action.archive { color: #991b1b; background: #fff0f0; border-color: #fecaca; }
.xml-file-icon-action:hover { transform: translateY(-1px); box-shadow: 0 7px 16px rgba(25,72,128,.12); }
.xml-files-modal,
.resolver-info-modal {
  position: fixed;
  inset: 0;
  z-index: 31000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.xml-files-modal[hidden],
.resolver-info-modal[hidden] { display: none !important; }
.xml-files-modal-backdrop,
.resolver-info-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 23, 48, .42);
  backdrop-filter: blur(3px);
}
.xml-files-modal-dialog,
.resolver-info-dialog {
  position: relative;
  z-index: 1;
  width: min(620px, 96vw);
  max-height: 88vh;
  overflow: auto;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #c7d7f3;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}
.xml-files-modal-close,
.resolver-info-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #c7d7f3;
  background: #fff;
  color: #15335f;
  cursor: pointer;
  font-weight: 900;
}
.xml-files-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
#xmlNoteText {
  width: 100%;
  resize: vertical;
  border: 1px solid #b9c9e8;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}
.resolver-info-content {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}
.resolver-info-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #e2e9f6;
}
.resolver-info-row dt {
  font-weight: 800;
  color: #163a6b;
}
.resolver-info-row dd {
  margin: 0;
  word-break: break-word;
  color: #374969;
}
@media (max-width: 980px) {
  .xml-files-toolbar { grid-template-columns: 1fr; }
  .xml-files-filterbar { grid-template-columns: 1fr; }
}

/* Sprint 7 - Űrlapállományok lapozás/rendezés és egyetlen scroll */
body[data-initial-tab="xmlFilesTab"] {
  height: 100vh;
  overflow: hidden;
}
body[data-initial-tab="xmlFilesTab"] .app-shell {
  height: calc(100vh - 116px);
  overflow: hidden;
  padding-bottom: 0;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-modern-page {
  height: 100%;
  overflow: hidden;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-registry-panel {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
}
.xml-files-filterbar {
  grid-template-columns: minmax(260px, 1fr) minmax(160px, max-content) minmax(130px, max-content) minmax(130px, max-content) max-content minmax(88px, max-content);
}
.xml-files-page-size-label {
  color: #27425f;
  font-weight: 800;
  font-size: .86rem;
  white-space: nowrap;
  justify-self: end;
}
.xml-files-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  color: #27425f;
  font-weight: 700;
}
.xml-files-pagination-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.xml-files-page-indicator {
  min-width: 72px;
  text-align: center;
  color: #0f2f5f;
}
.xml-files-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 900;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
}
.xml-files-sort-button span {
  min-width: 12px;
  color: #2563eb;
}
.xml-files-sort-button:hover {
  text-decoration: underline;
}
.xml-files-full-width-table th:nth-child(3),
.xml-files-full-width-table th:nth-child(4),
.xml-files-full-width-table td:nth-child(3),
.xml-files-full-width-table td:nth-child(4) {
  white-space: nowrap;
}

.xml-index-node {
  border: 1px solid #d8e3f3;
  border-radius: 12px;
  margin-bottom: 8px;
  background: #f9fbff;
}
.xml-index-node summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  font-weight: 700;
}
.xml-index-node-children {
  border-top: 1px solid #e5edf8;
  padding: 8px 8px 8px 16px;
  background: #fff;
}
.xml-index-node-type {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e8f2ff;
  color: #0b5cad;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
}
.xml-index-node-name {
  color: #0b5cad;
  white-space: nowrap;
}
.xml-index-node-label {
  color: #10233f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xml-index-field-full {
  margin-left: var(--xml-index-indent, 0px);
  background: #fff;
  border: 1px solid #edf2f8;
  border-radius: 10px;
  margin-bottom: 6px;
}

@media (max-width: 1100px) {
  .xml-files-filterbar { grid-template-columns: 1fr 1fr; }
  .xml-files-page-size-label { justify-self: start; }
}

/* Sprint 7 - Urlapallomanyok tabla veglegesites: fix panel, lapozo lablec, kebab menu */
body[data-initial-tab="xmlFilesTab"] .xml-files-registry-panel {
  padding: 18px 20px 14px;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-toolbar {
  flex: 0 0 auto;
  margin-bottom: 12px;
}
body[data-initial-tab="xmlFilesTab"] #xmlFileMessages {
  flex: 0 0 auto;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-table-wrap {
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 14px 14px 0 0;
  border-bottom: 0;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th,
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(1),
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(1) { width: 44px; }
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(2),
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(2) { width: 29%; }
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(3),
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(3) { width: 145px; }
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(4),
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(4) { width: 145px; }
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(5),
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(5) { width: 120px; }
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(6),
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(6) { width: 74px; }
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(7),
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(7) { width: 78px; }
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(8),
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(8) { width: 11%; }
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(9),
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(9) { width: 102px; }
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(10),
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(10) {
  width: 56px;
  text-align: center;
  overflow: visible;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-table td:last-child {
  min-width: 0;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-table td:nth-child(2) strong {
  max-width: 100%;
  display: block;
}
body[data-initial-tab="xmlFilesTab"] .xml-file-name-cell {
  min-width: 0;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-pagination {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid #d7e2f5;
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: #fff;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-pagination-actions {
  gap: 4px;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-pagination-actions .mini-button,
body[data-initial-tab="xmlFilesTab"] .xml-files-page-number {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #27364a;
  font-weight: 800;
  cursor: pointer;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-pagination-actions .mini-button:hover:not(:disabled),
body[data-initial-tab="xmlFilesTab"] .xml-files-page-number:hover {
  background: #eaf2ff;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-pagination-actions .mini-button:disabled {
  opacity: .35;
  cursor: default;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-page-number.is-active {
  background: #1476d4;
  color: #fff;
  box-shadow: 0 6px 14px rgba(20, 118, 212, .28);
}
body[data-initial-tab="xmlFilesTab"] .xml-files-page-indicator {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-page-gap {
  padding: 0 4px;
  color: #64748b;
  font-weight: 900;
}
.xml-file-action-menu {
  position: relative;
  display: inline-flex;
  justify-content: center;
}
.xml-file-kebab-button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #c7d7f3;
  background: #f8fbff;
  color: #15335f;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.xml-file-kebab-button:hover {
  background: #eaf2ff;
  box-shadow: 0 7px 16px rgba(25,72,128,.12);
}
.xml-file-menu {
  position: absolute;
  right: 0;
  top: 39px;
  z-index: 80;
  min-width: 230px;
  padding: 6px;
  border: 1px solid #c7d7f3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
  text-align: left;
}
.xml-file-menu[hidden] { display: none !important; }
.xml-file-menu-item {
  width: 100%;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #14325a;
  padding: 8px 10px;
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}
.xml-file-menu-item:hover { background: #f1f6ff; }
.xml-file-menu-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 900;
}
.xml-file-menu-item.open-edit .xml-file-menu-icon { color: #1d4ed8; background: #edf4ff; }
.xml-file-menu-item.open-readonly .xml-file-menu-icon { color: #0f766e; background: #effcf8; }
.xml-file-menu-item.close-session .xml-file-menu-icon { color: #6d28d9; background: #f4efff; }
.xml-file-menu-item.resolver-info .xml-file-menu-icon { color: #0369a1; background: #eef8ff; font-family: Georgia, serif; font-style: italic; }
.xml-file-menu-item.edit-note .xml-file-menu-icon { color: #b45309; background: #fff7e6; }
.xml-file-menu-item.archive .xml-file-menu-icon { color: #991b1b; background: #fff0f0; }
@media (max-width: 1280px) {
  body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(3),
  body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(3),
  body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(4),
  body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(4) { width: 128px; }
  body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(8),
  body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(8) { width: 80px; }
}


/* Sprint 7 v14 - Űrlapállományok lista: fix panel, látható lapozó, szerepkör UI */
body[data-initial-tab="xmlFilesTab"] {
  overflow: hidden;
}
body[data-initial-tab="xmlFilesTab"] .app-shell {
  height: calc(100vh - 118px);
  overflow: hidden;
  padding: 1rem 1.25rem;
  box-sizing: border-box;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-modern-page {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-registry-panel {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1rem 1rem 0.75rem;
  box-sizing: border-box;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-toolbar,
body[data-initial-tab="xmlFilesTab"] #xmlFileMessages,
body[data-initial-tab="xmlFilesTab"] .xml-files-pagination {
  flex: 0 0 auto;
}
body[data-initial-tab="xmlFilesTab"] #xmlFileMessages:empty {
  display: none;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #cfe0f7;
  border-radius: 0.85rem 0.85rem 0 0;
  background: #fff;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th,
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(1),
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(1) { width: 3.2rem; }
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(2),
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(2) { width: 30%; }
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(3),
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(3),
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(4),
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(4) { width: 12.5%; }
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(5),
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(5) { width: 9%; }
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(6),
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(6) { width: 5.5rem; }
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(7),
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(7) { width: 5.5rem; }
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(8),
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(8) { width: 8%; }
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(9),
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(9) { width: 7rem; }
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(10),
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(10) { width: 4.1rem; text-align: center; }
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #edf4ff;
  box-shadow: inset 0 -1px 0 #cfe0f7;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-pagination {
  min-height: 3.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid #cfe0f7;
  border-top: 0;
  border-radius: 0 0 0.85rem 0.85rem;
  background: #fff;
  box-sizing: border-box;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-pagination-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-page-indicator {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-pagination-actions .mini-button,
body[data-initial-tab="xmlFilesTab"] .xml-files-page-number {
  min-width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #1a3153;
  font-weight: 700;
  cursor: pointer;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-page-number.is-active {
  background: #1677d2;
  color: #fff;
  box-shadow: 0 6px 16px rgba(22, 119, 210, .28);
}
body[data-initial-tab="xmlFilesTab"] .xml-files-pagination-actions .mini-button:disabled {
  opacity: .35;
  cursor: not-allowed;
}
body[data-initial-tab="xmlFilesTab"] .xml-file-kebab-button {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.65rem;
  border: 1px solid #bfd1ff;
  background: #edf4ff;
  color: #123b76;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
body[data-initial-tab="xmlFilesTab"] .xml-file-action-menu {
  position: relative;
  display: inline-flex;
  justify-content: center;
}
body[data-initial-tab="xmlFilesTab"] .xml-file-menu {
  position: fixed;
  z-index: 12000;
  min-width: 15rem;
  padding: 0.35rem;
  border: 1px solid #cfe0f7;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 18px 44px rgba(24, 49, 83, .20);
}
body[data-initial-tab="xmlFilesTab"] .xml-file-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 0;
  border-radius: 0.6rem;
  padding: 0.65rem 0.75rem;
  background: transparent;
  color: #153050;
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}
body[data-initial-tab="xmlFilesTab"] .xml-file-menu-item:hover { background: #edf4ff; }
body[data-initial-tab="xmlFilesTab"] .xml-file-menu-item[disabled],
body[data-initial-tab="xmlFilesTab"] .xml-files-toolbar-button[disabled] {
  opacity: .42;
  cursor: not-allowed;
  filter: grayscale(1);
}
body[data-initial-tab="xmlFilesTab"] .xml-files-filterbar {
  min-width: 0;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-filterbar input {
  min-width: 14rem;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-sort-button {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 1200px) {
  body[data-initial-tab="xmlFilesTab"] .xml-files-toolbar { grid-template-columns: 1fr; }
  body[data-initial-tab="xmlFilesTab"] .xml-files-filterbar { grid-template-columns: minmax(12rem, 1fr) 1fr 1fr 1fr auto auto; }
}

/* Sprint 7 v15 - Urlapallomanyok: dinamikus oldal magassag a layout-stack xml-files-page xml-files-modern-page main elemre */
body[data-initial-tab="xmlFilesTab"] {
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
}
body[data-initial-tab="xmlFilesTab"] .site-header {
  flex: 0 0 auto;
}
body[data-initial-tab="xmlFilesTab"] .app-shell {
  height: calc(100dvh - var(--xml-files-header-height, 116px));
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
body[data-initial-tab="xmlFilesTab"] main.layout-stack.xml-files-page.xml-files-modern-page {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
}
body[data-initial-tab="xmlFilesTab"] main.layout-stack.xml-files-page.xml-files-modern-page > .xml-files-registry-panel {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  max-height: 100%;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-toolbar {
  flex: 0 0 auto;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-table-wrap {
  flex: 1 1 0;
  min-height: 8rem;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-pagination {
  flex: 0 0 auto;
}
@supports not (height: 100dvh) {
  body[data-initial-tab="xmlFilesTab"] {
    height: 100vh;
    min-height: 100vh;
  }
  body[data-initial-tab="xmlFilesTab"] .app-shell {
    height: calc(100vh - var(--xml-files-header-height, 116px));
  }
}



/* XML állománylista csatolmányoszlop és lenyíló részletek */
.xml-attachment-toggle-column,.xml-attachment-toggle-cell{width:30px!important;min-width:30px!important;max-width:30px!important;padding-left:2px!important;padding-right:2px!important;text-align:center}
.xml-attachment-toggle{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:0;background:transparent;box-shadow:none;font-size:15px;line-height:1;cursor:pointer}
.xml-attachment-toggle:hover,.xml-attachment-toggle:focus-visible{background:#edf4ff;border-radius:4px;outline:1px solid #8eb8ef}
.xml-attachment-detail-row>td{padding:0!important;background:#f8fafc}
.xml-attachment-detail-content{padding:8px 12px 12px 42px}
.xml-attachment-table-wrap{overflow-x:auto;border:1px solid #d8e1ec;border-radius:6px;background:#fff}
.xml-attachment-table{width:100%;border-collapse:collapse;font-size:.86rem}
.xml-attachment-table th,.xml-attachment-table td{padding:7px 9px;border-bottom:1px solid #e5ebf2;text-align:left;white-space:nowrap}
.xml-attachment-table th{background:#eef4fb;color:#244b75;font-weight:700}
.xml-attachment-table tbody tr:last-child td{border-bottom:0}
.xml-attachment-table th:first-child,.xml-attachment-table td:first-child{box-sizing:border-box;width:40px!important;min-width:40px!important;max-width:40px!important;padding-left:4px!important;padding-right:4px!important;text-align:center!important}

.xml-attachment-toggle[hidden]{display:none!important}

/* Csatolmány részletező: a fájlnév kapja a rugalmas helyet, a többi oszlop kompakt. */
.xml-attachment-table{table-layout:fixed!important}
.xml-attachment-table th:nth-child(1),.xml-attachment-table td:nth-child(1){box-sizing:border-box;width:40px!important;min-width:40px!important;max-width:40px!important;padding-left:4px!important;padding-right:4px!important;text-align:center!important}
.xml-attachment-table th:nth-child(2),.xml-attachment-table td:nth-child(2){width:auto!important;min-width:260px;padding-left:4px!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere;word-break:break-word}
.xml-attachment-table th:nth-child(3),.xml-attachment-table td:nth-child(3){width:90px;min-width:90px}
.xml-attachment-table th:nth-child(4),.xml-attachment-table td:nth-child(4){width:150px;min-width:120px}
.xml-attachment-table th:nth-child(5),.xml-attachment-table td:nth-child(5){width:185px;min-width:170px}
.xml-attachment-table th:nth-child(6),.xml-attachment-table td:nth-child(6){width:110px;min-width:100px}

/* XML file list: authoritative 11-column layout (ID, attachment, filename, dates, form, version, size, note, status, actions). */
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(1),
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(1) { width: 44px; }
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(2),
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(2) { width: 30px !important; min-width: 30px !important; max-width: 30px !important; }
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(3),
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(3) { width: 24%; }
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(4),
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(4),
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(5),
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(5) { width: 12.5%; }
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(6),
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(6) { width: 10%; }
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(7),
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(7) { width: 72px; }
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(8),
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(8) { width: 88px; }
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(9),
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(9) { width: 11%; }
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(10),
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(10) { width: 104px; text-align: center; }
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:nth-child(11),
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:nth-child(11) {
  width: 58px;
  min-width: 58px;
  max-width: 58px;
  text-align: center;
  overflow: visible;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table th:last-child,
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 3;
  background: inherit;
}
body[data-initial-tab="xmlFilesTab"] .xml-files-full-width-table thead th:last-child {
  z-index: 6;
  background: #edf4ff;
}

/* Csatolmány-részletező táblázat végleges oszlopkiosztása. */
.xml-attachment-table {
  width: 100% !important;
  table-layout: fixed !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
}

.xml-attachment-table th,
.xml-attachment-table td {
  text-align: left !important;
  vertical-align: middle;
}

/* # */
.xml-attachment-table th:nth-child(1),
.xml-attachment-table td:nth-child(1) {
  box-sizing: border-box;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  padding-left: 8px !important;
  padding-right: 4px !important;
  text-align: left !important;
  white-space: nowrap;
}

/* Fájlnév: a rendelkezésre álló szélesség legnagyobb része. */
.xml-attachment-table th:nth-child(2),
.xml-attachment-table td:nth-child(2) {
  width: 49% !important;
  min-width: 0 !important;
  padding-left: 4px !important;
  text-align: left !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Méret */
.xml-attachment-table th:nth-child(3),
.xml-attachment-table td:nth-child(3) {
  width: 8% !important;
  min-width: 72px;
  text-align: left !important;
  white-space: nowrap;
}

/* Típus */
.xml-attachment-table th:nth-child(4),
.xml-attachment-table td:nth-child(4) {
  width: 14% !important;
  min-width: 110px;
  text-align: left !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Csatolás dátuma */
.xml-attachment-table th:nth-child(5),
.xml-attachment-table td:nth-child(5) {
  width: 18% !important;
  min-width: 150px;
  text-align: left !important;
  white-space: nowrap;
}

/* Művelet */
.xml-attachment-table th:nth-child(6),
.xml-attachment-table td:nth-child(6) {
  width: 11% !important;
  min-width: 72px;
  text-align: center !important;
  white-space: nowrap;
}

/* A csatolmány ugyanazzal az inline megtekintési működéssel nyílik meg, mint az űrlapi kártyáról. */
.xml-attachment-table td:nth-child(6) a {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #bfd1ea;
  border-radius: 6px;
  background: #fff;
  color: #145da0;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.xml-attachment-table td:nth-child(6) a:hover,
.xml-attachment-table td:nth-child(6) a:focus-visible {
  border-color: #6f9fd8;
  background: #edf4ff;
  outline: none;
}

/* Resolver erőforrás-létezés jelzése */
.resolver-info-row--missing {
  border: 1px solid #dc2626;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fef2f2;
}
.resolver-info-row--missing dt,
.resolver-info-row--missing dd {
  color: #991b1b;
}
.resolver-resource-missing {
  display: block;
  margin-top: 4px;
  font-weight: 800;
  color: #b91c1c;
}

.partner-predictive{position:relative;min-width:260px}.partner-suggestions{position:absolute;z-index:100;background:#fff;border:1px solid #aebed2;box-shadow:0 8px 24px #0002;left:0;right:0;max-height:260px;overflow:auto}.partner-suggestions button{display:block;width:100%;text-align:left;padding:.55rem .7rem;border:0;background:#fff}.partner-suggestions button:hover{background:#eef5ff}.partner-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.75rem}.partner-form label{display:grid;gap:.3rem}.partner-form fieldset{margin:1rem 0;border:1px solid #cad6e5;border-radius:10px}.system-menu{position:relative}.system-menu summary{list-style:none;cursor:pointer}.system-menu summary::-webkit-details-marker{display:none}.system-menu-panel{position:absolute;z-index:200;right:0;top:100%;min-width:220px;background:#fff;border:1px solid #b8c7d9;border-radius:8px;box-shadow:0 10px 26px #0002;padding:.35rem}.system-menu-panel a{display:block;padding:.55rem .7rem;text-decoration:none;color:inherit;border-radius:5px}.system-menu-panel a:hover{background:#eef5ff}

/* 2026-07-28: az Űrlapállományok szűrősora asztali nézetben mindig egy sorban marad. */
body.nav-application-theme[data-initial-tab="xmlFilesTab"] .xml-files-toolbar{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:10px!important;overflow-x:auto!important}
body.nav-application-theme[data-initial-tab="xmlFilesTab"] .xml-files-filterbar{display:grid!important;grid-template-columns:minmax(210px,.75fr) minmax(300px,1.15fr) minmax(130px,.55fr) minmax(150px,.65fr) minmax(130px,.55fr) auto!important;gap:8px!important;min-width:1080px!important;white-space:nowrap!important}
body.nav-application-theme[data-initial-tab="xmlFilesTab"] #xmlFileSearchInput{min-width:0!important;width:100%!important}
body.nav-application-theme[data-initial-tab="xmlFilesTab"] .partner-predictive{min-width:300px!important;width:100%!important}
body.nav-application-theme[data-initial-tab="xmlFilesTab"] .partner-predictive>input{min-width:0!important;width:100%!important}
body.nav-application-theme[data-initial-tab="xmlFilesTab"] .xml-files-page-size-control{display:inline-flex!important;align-items:center!important;gap:7px!important;white-space:nowrap!important}
body.nav-application-theme[data-initial-tab="xmlFilesTab"] .xml-files-page-size-control select{width:78px!important;min-width:78px!important}
@media(max-width:1200px){body.nav-application-theme[data-initial-tab="xmlFilesTab"] .xml-files-toolbar{grid-template-columns:auto minmax(0,1fr)!important}}

.xml-partner-import-error{display:inline-block;max-width:22rem;color:var(--danger-color,#b42318);font-weight:600;white-space:normal;overflow-wrap:anywhere;}
