/*
 * LOG IN PAGE
 */

 .login-page {
    display: flex; /* Note: the login page contents is hidden before this property is applied  */
    height: 100%;
    flex-direction: column;
    justify-content: center;
}

.login-page > div {
    padding-top: 0 !important;
    padding-bottom: 20vh;
}

.login-page h1 {
    margin-bottom: .5em;
    font-weight: 300;
    color: var(--muted-text-color);
}

.login-page .form-group {
    margin-top: 8px;
}

.login-page .alert {
    margin: 0;
    border: unset;
    padding: 8px 0 0 0;
    font-size: .85em;
    color: var(--dropdown-item-icon-destructive-color) !important;
}

/*
 * SEARCH PAGE
 */

 /* Button bar */
 .search-definition-widget .search-setting-table .search-actions-container {
    justify-content: flex-end;
    gap: 8px;
 }

.search-result-widget-content .note-path .path-bracket {
    display: inline;
}

.search-result-widget-content .note-path {
    opacity: 0.75;
    font-weight: normal;
}

/*
 * SQL CONSOLE
 */

/* Table buttons */

.sql-table-schemas-widget .sql-table-schemas button {
    --color: var(--main-text-color);
    --background: var(--card-background-color);

    display: inline-block;
    box-shadow: 2px 2px 2px var(--card-shadow-color);
    margin-top: 4px;
    vertical-align: baseline;
    border: unset;
    border-radius: 12px;
    padding: 2px 12px;
    background: var(--background) !important;
    color: var(--color) !important;
    line-height: unset;
}

.sql-table-schemas-widget .sql-table-schemas button:hover,
.sql-table-schemas-widget .sql-table-schemas button:active,
.sql-table-schemas-widget .sql-table-schemas button:focus-visible {
    --background: var(--card-background-hover-color);
    --color: var(--main-text-color);
}

/*
 * NOTE MAP
 */

.note-detail-note-map .fixnodes-type-switcher .tn-tool-button,
.note-map-widget .fixnodes-type-switcher .tn-tool-button {
    padding: unset;
}

 .note-detail-note-map .fixnodes-type-switcher .tn-tool-button.toggled {
    color: var(--tab-close-button-hover-background);
}

/*
 * EMPTY NOTE PAGE
 */

/* The container */

.note-split.empty-note div.note-detail {
    margin-inline: auto;
}

/* The search results list */
.note-detail-empty span.aa-dropdown-menu {
    margin-top: 1em;
    border: unset;
}

/* NOTE ATTACHMENTS */

.attachment-list div.links-wrapper {
    font-size: unset;
}

/*
 * OPTIONS PAGES
 */

 :root {
    --options-card-max-width: 900px;
    --options-card-padding: 17px;
    --options-title-font-size: .75rem;
    --options-title-offset: 13px;
}

.note-split.options {
    --preferred-max-content-width: var(--options-card-max-width);
}

.note-split.options .collection-properties {
    visibility: hidden;
}

/* Create a gap at the bottom of option pages */
.note-detail-content-widget-content.options::after {
    display: block;
    content: "";
    height: 1em;
}

/* Add a gap between consecutive buttons */
.note-detail-content-widget-content.options *:not(.btn-group) > button.btn + button.btn {
    margin-inline-start: 8px;
}

.note-detail-content-widget-content.options:has(.shortcuts-options-section)::after {
    height: 0;
}

body.experimental-feature-new-layout .note-detail-content-widget-content.options {
    padding-inline: 25px;
}

.options-section:not(.tn-no-card) {
    margin-bottom: 26px !important;
}

body.desktop .options-section:not(.tn-no-card) {
    max-width: var(--options-card-max-width);
}

.options-section-card {
    container-type: inline-size;
    box-shadow: var(--card-box-shadow);
    border: 1px solid var(--card-border-color);
    border-radius: 8px;
    background: var(--card-background-color);
    padding: var(--options-card-padding);
}

.note-detail-content-widget-content.options {
    --default-padding: 15px;
    padding-top: var(--default-padding);
    padding-bottom: var(--default-padding);
}

.options-section h4 {
    text-transform: uppercase;
    letter-spacing: .4pt;
    font-size: var(--options-title-font-size);
    font-weight: 600;
    color: var(--launcher-pane-text-color);
    margin-top: 0;
    margin-bottom: var(--options-title-offset);
}

.options-section:not(.tn-no-card) .options-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.options-section:not(.tn-no-card) .options-section-header h4 {
    margin: 0;
    margin-bottom: 0;
}

.options-section:not(.tn-no-card) .options-section-header .icon-action {
    margin-inline-start: auto;
}

.options-section-description {
    color: var(--muted-text-color);
    font-size: 13px;
    margin-top: 0;
    margin-bottom: 16px;
}

.options-section-card h5 {
    text-transform: uppercase;
    letter-spacing: .4pt;
    font-size: var(--options-title-font-size);
    font-weight: bold;
    margin-top: 1em !important;
    margin-bottom: unset !important;
}

.options-section-card h5:first-of-type {
    margin-top: unset !important;
}

.options-section-card hr {
    --bs-border-width: 2px;

    margin-inline-start: calc(var(--options-card-padding) * -1);
    margin-inline-end: calc(var(--options-card-padding) * -1);
    opacity: 1;
    color: var(--root-background);
}

.options-section-card p:last-of-type:not(:first-of-type),
.options-section-card .existing-anonymized-databases {
    margin-bottom: 0;
}

.options-section-card .form-group {
    margin-bottom: 1em;
}

.options-section-card .form-group:last-child {
    margin-bottom: 0;
}

.options-section-card ul {
    margin: 0;
    padding: 0;
    margin-bottom: 1em;
}

.options-section-card label:not(.tn-checkbox):not(.tn-radio) {
    margin-bottom: 6px;
}

/* Appeareance */

.main-font-size-input-group,
.tree-font-size-input-group,
.detail-font-size-input-group,
.monospace-font-size-input-group {
    width: fit-content;
}

/* Shortcuts */

.note-detail-content-widget-content:has(.shortcuts-options-section) {
    /* Allow the cards to extend on the full width of the parent */
    --options-card-max-width: 100%;

    /* Remove the top margin of the first item */
    --options-first-item-top-margin: 0;
}

/* ETAPI */

.etapi-options-section div {
    height: auto !important;
}

/* BACKUP */

.options-section-card table a {
    color: inherit;
}
