/* Előterjesztés-link a napirendi pontban (#1061) */

.agenda-doc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 4px 0;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  color: #f8f8f8;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.agenda-doc:hover,
.agenda-doc:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.agenda-doc svg:last-child:not(:first-child) {
  opacity: 0.7;
}

/* felszólalás nélküli pont linkkel: lenyitva a gomb és az „Ugrás a napirend elejére” */
.agenda-item.agenda-doc-only .agenda-content .poll-button {
  width: 100%;
}

/* felugró ablak */
.doc-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
}

.doc-modal[hidden] {
  display: none;
}

.doc-modal-panel {
  display: flex;
  flex-direction: column;
  width: min(1200px, 100%);
  height: min(92vh, 1000px);
  overflow: hidden;
  background: #1b1d20;
  border: 1px solid #333;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.doc-modal-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid #333;
  color: #f8f8f8;
}

.doc-modal-title {
  flex: 1;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.doc-modal-new {
  color: #ccc;
  font-size: 14px;
  text-decoration: underline;
  white-space: nowrap;
}

.doc-modal-new:hover {
  color: #fff;
}

.doc-modal-close {
  padding: 0 4px;
  background: none;
  border: 0;
  color: #f8f8f8;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.doc-modal-frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #525659;
}

html.doc-modal-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .doc-modal {
    padding: 0;
  }

  .doc-modal-panel {
    height: 100%;
    border: 0;
    border-radius: 0;
  }
}
