.content-item {
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.content-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.content-item .menu {
  cursor: default;
  border-radius: 6px;
}

.content-item .menu:hover {
  background: rgba(0, 0, 0, 0.05);
}

.main.is-screen-open {
  display: grid;
}

.screen-root {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #f6f6f6;
  pointer-events: none;
  backface-visibility: hidden;
  will-change: transform, opacity;
  transition:
    transform var(--nav-transition-duration, 0.28s) var(--nav-transition-ease, cubic-bezier(0.4, 0, 0.2, 1)),
    opacity var(--nav-transition-duration, 0.28s) var(--nav-transition-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

.screen-root.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 20;
  min-height: 100vh;
}

.screen-root.is-fullscreen:not(.is-open):not([hidden]) {
  transform: translate3d(100%, 0, 0);
  opacity: 0;
  pointer-events: none;
}

/* Lock off-screen pose on first paint — transitions disabled until class is removed. */
.screen-root.is-fullscreen.is-entering {
  transition: none !important;
  transform: translate3d(100%, 0, 0);
  opacity: 0;
  pointer-events: none;
}

.screen-root.is-open.is-fullscreen:not([hidden]) {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  pointer-events: auto;
}

.screen-root--flow {
  min-height: 0;
  height: 100%;
  padding: 0;
}

.screen-root--dashboard {
  min-height: 0;
  height: 100%;
}

.screen-root.is-fullscreen.screen-root--flow {
  min-height: 100vh;
  height: 100vh;
}

.screen-root.is-fullscreen.screen-root--dashboard {
  min-height: 100vh;
  height: 100vh;
}

.screen-fullscreen {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  padding: 0;
}

.screen-root.is-fullscreen .screen-fullscreen {
  min-height: 100vh;
}

.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 48px;
  min-height: 48px;
  background: #f6f6f6;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
  margin: 0;
  padding: 5px 31px;
  box-sizing: border-box;
  flex-shrink: 0;
  gap: 12px;
}

.screen-header-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background: #f6f6f6;
  border-bottom: 2px solid #fff;
  padding: 10px 31px 12px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.screen-header--vragenlijst {
  position: relative;
  justify-content: flex-start;
}

.screen-header--automation {
  position: relative;
  justify-content: flex-start;
}

.screen-header--vragenlijst .screen-header-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 300px);
  padding: 0;
  border-bottom: 0;
  background: transparent;
}

.screen-header--automation .screen-header-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 300px);
  padding: 0;
  border-bottom: 0;
  background: transparent;
}

.screen-header-nav--vragenlijst .vl-tabs {
  justify-content: center;
}

.screen-header-nav--automation .vl-tabs {
  justify-content: center;
}

.screen-root.is-fullscreen .screen-header {
  padding-right: 140px;
}

.screen-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 28px 24px;
}

.screen-header-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.screen-header-parent {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 21px;
  font-weight: 500;
  line-height: normal;
  color: #404040;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  flex-shrink: 0;
}

.screen-header-parent:hover {
  color: #0f70b7;
}

.screen-header-chevron {
  font-size: 8px;
  width: 8px;
  height: 8px;
  line-height: 1;
  color: #404040;
  flex-shrink: 0;
}

.screen-header-current {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: normal;
  color: #404040;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.screen-breadcrumb {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0;
  min-width: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 22px;
}

.screen-breadcrumb-parent {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.screen-breadcrumb-link {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: 300;
  line-height: 22px;
  color: #0f70b7;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}

.screen-breadcrumb-link:hover {
  text-decoration: underline;
}

.screen-breadcrumb-sep {
  display: inline-flex;
  align-items: flex-start;
  gap: 5px;
  padding-left: 12px;
  min-width: 0;
  user-select: none;
  font-weight: 300;
  line-height: 22px;
}

.screen-breadcrumb-slash {
  color: rgba(33, 37, 41, 0.75);
  font-weight: 300;
  line-height: 22px;
}

.screen-breadcrumb-current {
  color: #76838f;
  font-weight: 300;
  line-height: 22px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #0f70b7;
  cursor: pointer;
  padding: 6px 8px;
  margin-left: -8px;
  border-radius: 6px;
}

.screen-back:hover {
  background: rgba(15, 112, 183, 0.08);
}

.screen-back .ti {
  font-size: 13px;
}

.screen-title {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  color: #404040;
  line-height: 1.2;
}


.screen-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e4e7ea;
  padding-bottom: 0;
}

.screen-tab {
  border: 0;
  background: transparent;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #848f99;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.screen-tab:hover {
  color: #404040;
}

.screen-tab.is-active {
  color: #0f70b7;
  border-bottom-color: #0f70b7;
}

.screen-tab-panels {
  flex: 1;
  min-height: 0;
}

.screen-tab-panel {
  display: none;
}

.screen-tab-panel.is-active {
  display: block;
  animation: screenIn 0.2s ease both;
}

.screen-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 280px;
  background: white;
  border-radius: 8px;
  padding: 32px 24px;
}

.screen-placeholder-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #d2e4f3;
  color: #2f6f9f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}

.screen-placeholder-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 500;
  color: #404040;
}

.screen-placeholder-text {
  margin: 0;
  max-width: 360px;
  font-size: 13px;
  font-weight: 400;
  color: #848f99;
  line-height: 1.5;
}

.screen-dashboard-host {
  min-height: 320px;
}

.screen-flow-summary {
  display: grid;
  gap: 20px;
}

.screen-flow-card {
  display: flex;
  align-items: center;
  gap: 0;
  background: white;
  border-radius: 8px;
  padding: 24px;
  overflow-x: auto;
}

.screen-flow-step {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.screen-flow-step-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.screen-flow-step-icon.green {
  background: #d2f3db;
  color: #2f8a62;
}

.screen-flow-step-icon.blue {
  background: #d2e4f3;
  color: #2f6f9f;
}

.screen-flow-step-icon.orange {
  background: #fde8c8;
  color: #c47d1a;
}

.screen-flow-step-label {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 500;
  color: #848f99;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.screen-flow-step-value {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #404040;
}

.screen-flow-connector {
  flex: 1;
  min-width: 32px;
  height: 2px;
  background: #e4e7ea;
  margin: 0 8px;
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .screen-root.is-fullscreen {
    min-height: 100vh;
  }

  .screen-header {
    padding: 5px 12px;
    height: 48px;
    min-height: 48px;
    border-top: 2px solid #fff;
    border-bottom: 2px solid #fff;
  }

  .screen-root.is-fullscreen .screen-header {
    padding-right: 120px;
  }

  .screen-header--vragenlijst .screen-header-nav {
    max-width: calc(100% - 140px);
  }

  .screen-header--automation .screen-header-nav {
    max-width: calc(100% - 140px);
  }

  .screen-body {
    padding: 16px 12px;
  }

  .screen-flow-card {
    flex-direction: column;
    align-items: stretch;
  }

  .screen-flow-connector {
    width: 2px;
    height: 24px;
    min-width: 0;
    margin: 4px 0 4px 19px;
  }
}
