body {
    margin: 0;
    font-family: var(--fontFamilyBase);
    /* The app has a light theme only, also for users whose browser prefers dark */
    background-color: #ffffff;
}

/* The header, the menu on the left and the page beside it are FluentLayout areas */
.header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 16px;
}

.nav-menu {
    padding: 8px;
    border-right: 1px solid var(--colorNeutralStroke1);
}

.body-content {
    min-width: 0;
    padding: 24px;
}

/* The wizard's own Previous/Next buttons are replaced by the actions inside each step */
.wizard-no-buttons {
    display: none;
}

/* After navigation, Blazor moves focus to the heading so screen readers announce the page. No outline for that */
h1:focus {
    outline: none;
}

/* The logo and the app name in the header, a link to the front page */
.header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.header-logo {
    height: 24px;
}

/* The signed-in user's name in the header, a link to the profile page */
.header-link {
    color: var(--colorNeutralForegroundOnBrand);
    text-decoration: none;
}

.header-link:hover {
    text-decoration: underline;
}

.profile dt {
    font-weight: 600;
}

.profile dd {
    margin: 0 0 12px 0;
}

/* The upload page */
.drop-zone {
    border: 1px dashed var(--colorNeutralStroke1);
    border-radius: 4px;
    padding: 24px;
}

.drop-zone.drag-over {
    background-color: var(--colorSubtleBackgroundHover);
}

.file-input {
    display: none;
}

.file-link {
    text-decoration: underline;
    cursor: pointer;
}

.upload-card {
    /* The padding counts inside the width, or the card is 32px wider than the page */
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 16px;
    /* The card clips what pokes out of it, such as the date picker's calendar, through its content-visibility
       and containment. Let popups show */
    content-visibility: visible;
    contain: none;
    overflow: visible;
}

.changes {
    margin: 0;
    padding-left: 20px;
}

.download {
    color: var(--colorBrandForeground1);
}

/* Folded sections, which work with and without a Blazor circuit */
details.fold {
    width: 100%;
}

details.fold > summary {
    cursor: pointer;
    font-weight: 600;
    padding: 8px 0;
}

details.fold > :not(summary) {
    padding: 4px 0 8px 16px;
}

.hash {
    font-family: monospace;
}

.issue-summary {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Maps of the polygons (D-32) */
.map-frame {
    width: 100%;
}

.map {
    width: 100%;
    height: 70vh;
    min-height: 400px;
    border: 1px solid var(--colorNeutralStroke1);
    border-radius: 4px;
}

/* The DDS packages tree */
details.tree {
    border-bottom: 1px solid var(--colorNeutralStroke1);
}

.tree-list {
    margin: 0;
    padding-left: 16px;
}

.tree-list li {
    padding: 2px 0;
}

/* The Admin page: a link with a line about what is behind it */
.admin-links dt {
    margin-top: 12px;
    font-weight: 600;
}

.admin-links dd {
    margin: 2px 0 0;
}

.access-table {
    border-collapse: collapse;
    width: 100%;
    max-width: 60rem;
}

.access-table th,
.access-table td {
    padding: 6px 12px 6px 0;
    border-bottom: 1px solid var(--colorNeutralStroke2);
    text-align: left;
}
