/* Shared invalbrief share-sheet chrome for dashboard.html and form.html. */

.invalbrief-print-frame {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border: 0;
}
.ibs-copy-proxy {
  position: fixed;
  left: -9999px;
  top: 0;
}

.ibs-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  visibility: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}
.ibs-overlay::before {
  position: absolute;
  inset: 0;
  content: '';
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 180ms;
}
.ibs-overlay.show::before {
  opacity: 1;
}
.ibs-overlay.is-closing {
  visibility: hidden;
  transition: visibility 0s linear 200ms;
}
.ibs-sheet {
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 440px;
  padding: 1.3rem 1.4rem;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.18s;
  max-height: 90vh;
  overflow: auto;
}
.ibs-overlay.show .ibs-sheet {
  transform: none;
}
.ibs-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.ibs-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.ibs-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0;
}
/* Leerlijn-marker van de deelsheet → ruit, met dezelfde tegen-scale als
   .vms-dot in tokens.css: de layoutbox en dus de spatiëring naast de tekst
   blijven gelijk. */
.ibs-dot {
  display: inline-block;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 0;
  transform: rotate(45deg) scale(0.8);
  vertical-align: baseline;
  margin-right: 0.15rem;
}
.ibs-dot--groen {
  background: var(--vms-green);
}
.ibs-dot--gezond {
  background: var(--vms-blue);
}
.ibs-dot--techniek {
  background: var(--vms-red);
}
.ibs-dot--filosofie {
  background: var(--vms-yellow);
}
.ibs-dot--budo {
  background: var(--vms-purple);
}
.ibs-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.2rem;
  line-height: 0;
  border-radius: 0;
}
.ibs-close:hover {
  color: var(--text);
}
.ibs-close svg {
  width: 22px;
  height: 22px;
}
.ibs-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.ibs-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.7rem 0.9rem;
  min-height: 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}
.ibs-btn:hover:not(:disabled) {
  border-color: var(--vms-ink-900);
  color: var(--vms-ink-900);
}
.ibs-btn.ibs-primary {
  background: var(--vms-ink-900);
  border-color: var(--vms-ink-900);
  color: var(--vms-white);
}
.ibs-btn.ibs-primary:hover:not(:disabled) {
  background: var(--vms-ink-700);
  border-color: var(--vms-ink-700);
  color: var(--vms-white);
}
.ibs-btn:disabled,
.ibs-btn.ibs-primary:disabled {
  color: var(--vms-ink-700);
  background: var(--vms-ink-100);
  border-color: var(--vms-ink-200);
  cursor: default;
}
.ibs-btn--auto {
  width: auto;
}
.ibs-btn--copy {
  padding: 0.55rem 0.8rem;
}
.ibs-ico {
  flex: 0 0 auto;
  width: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ibs-ico svg {
  width: 18px;
  height: 18px;
}
.ibs-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0.1rem 0 0.2rem;
}
.ibs-linkrow {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.2rem;
}
.ibs-linkrow[hidden],
.ibs-share-buttons[hidden] {
  display: none;
}
.ibs-link {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.6rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--input-bg);
}
.ibs-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1rem 0 0.8rem;
}
.ibs-share-buttons {
  margin-top: 0.55rem;
}
.ibs-email {
  display: none;
  margin-top: 0.5rem;
}
.ibs-email.show {
  display: block;
}
.ibs-input {
  width: 100%;
  padding: 0.6rem 0.7rem;
  min-height: 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
  background: var(--card);
  color: var(--text);
}
.ibs-status {
  font-size: 0.82rem;
  margin-top: 0.7rem;
  min-height: 1.1em;
}
.ibs-status.err {
  color: var(--danger);
}
.ibs-status.ok {
  color: var(--success);
}
.ibs-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--input-bg);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.7rem;
  margin-top: 0.2rem;
  line-height: 1.45;
}

@media print {
  .ibs-overlay {
    display: none !important;
  }
}
