.n6-landing-page {
    min-height: calc(100vh - 12rem);
}

.n6-image-link {
    width: 16px;
    height: 16px;
}

.n6-chip-remove {
    color: var(--bs-secondary-color);
    line-height: 1;
    text-decoration: none;
}
.n6-chip-remove:hover {
    color: var(--bs-danger);
}
.n6-chip-remove .material-icons,
.n6-chip-remove .material-icons-outlined {
    font-size: 1rem;
    vertical-align: middle;
}

.n6-date-picker {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}
.n6-date-picker-button .material-icons,
.n6-date-picker-button .material-icons-outlined {
    font-size: 1rem;
    vertical-align: middle;
}

.material-icons.n6-field-icon,
.material-icons-outlined.n6-field-icon {
    font-size: 1em;
    color: var(--bs-secondary-color);
    vertical-align: text-bottom;
}

/* lets a responsive grid inside a property view cell scroll horizontally instead of widening the page */
.n6-property-table > tbody > tr > td.w-100 {
    max-width: 0;
}

/* text size, header icons and password font like the consumer API (consumer-api.css) */
:root {
    --n6-result-grid-font-size: 0.8125rem;
}

.n6-result-grid {
    font-size: var(--n6-result-grid-font-size);
}

.n6-theme-toggle {
    color: var(--bs-secondary-color);
    text-decoration: none;
    line-height: 1;
}

.n6-theme-toggle:hover,
.n6-theme-toggle:focus {
    color: var(--bs-emphasis-color);
    text-decoration: none;
}

.n6-theme-toggle .material-icons,
.n6-theme-toggle .material-icons-outlined {
    font-size: 1.5rem;
    vertical-align: middle;
}

.avatar.n6-avatar-login {
    background-color: var(--bs-secondary);
}

.avatar.n6-avatar-login .material-icons,
.avatar.n6-avatar-login .material-symbols-outlined {
    font-size: 1.1rem;
}

input[type="password"] {
    font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

input[type="password"]::placeholder {
    font-family: var(--bs-body-font-family), sans-serif;
}

/* type menu in the breadcrumbs (like consumer-api.css): only the subtle icon opens the menu */
.n6-type-menu-toggle {
    color: var(--bs-secondary-color);
    text-decoration: none;
}

.n6-type-menu-toggle:hover {
    color: var(--bs-emphasis-color);
}

.n6-type-menu-toggle .material-icons,
.n6-type-menu-toggle .material-icons-outlined {
    font-size: 1.25em;
    vertical-align: middle;
}

.n6-type-menu {
    max-height: 60vh;
    overflow-y: auto;
}

.breadcrumb-item:hover a.n6-type-menu-toggle,
.breadcrumb-item:hover .n6-type-menu a.dropdown-item {
    text-decoration-line: none;
}

/* live indicator of the namespaces page: a small dot, pulsing while requests come in */
.material-icons.n6-live,
.material-icons-outlined.n6-live,
.material-icons.n6-idle,
.material-icons-outlined.n6-idle {
    font-size: 0.75rem;
    vertical-align: middle;
}

.n6-live {
    animation: n6-live-pulse 2s ease-in-out infinite;
}

@keyframes n6-live-pulse {
    50% {
        opacity: 0.35;
    }
}

@media (prefers-reduced-motion: reduce) {
    .n6-live {
        animation: none;
    }
}

/* namespace overview diagrams: fitted in a fixed area, full size and zoom in the full screen modal */
.n6-diagram-fixed {
    position: relative;
    height: 24rem;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    cursor: zoom-in;
}

.n6-diagram-click {
    position: absolute;
    inset: 0;
    z-index: 1;
    cursor: zoom-in;
}

.n6-diagram-fixed .plantuml-diagram {
    max-width: 100%;
    max-height: 100%;
}

.n6-diagram-fixed svg {
    max-width: 100%;
    max-height: 24rem;
    width: auto;
    height: auto;
}

/* help: ?all&print shows only the topics, one per page; any help page prints without navigation */
body:has(.n6-help-print) #dm-header,
.n6-help-print .n6-help-contents,
body:has(.n6-help-print) .n6-help-footer {
    display: none;
}

.n6-help-print .n6-help-topic + .n6-help-topic {
    break-before: page;
}

@media print {
    body:has(#help) #dm-header,
    .n6-help-contents,
    .n6-help-footer {
        display: none !important;
    }

    .n6-help-topic + .n6-help-topic {
        break-before: page;
    }
}
