/* The portal's frame, as the "doppia stjórnborð" design lays it out. Colours, type,
   spacing and corners come from the design system (tokens.css, bundle.css). */

html, body { margin: 0; background: var(--surface); color: var(--text); font-family: var(--font-sans); }
a { color: var(--link); }
a:hover { color: var(--text); }

.adm-frame { display: flex; flex-wrap: wrap; min-height: 100vh; }
.adm-rail { flex: 0 0 240px; min-height: 100vh; box-sizing: border-box; display: flex; flex-direction: column; border-right: 1px solid var(--border); background: var(--surface); }
.adm-brand { padding: 24px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.adm-brand-sub { margin: 0; color: var(--text); }
.adm-main { flex: 999 1 560px; min-width: 0; box-sizing: border-box; padding: 40px 40px 64px; }
.adm-content { max-width: 1120px; display: flex; flex-direction: column; }

/* The design system's sidebar, without its company tile and its own border. */
.adm-side { border-right: 0; height: auto; flex: 1 1 auto; width: 100%; }
.adm-side-head { cursor: default; margin: 0; }
.adm-side-foot { display: flex; flex-direction: column; gap: 4px; }
.adm-who { margin: 0; padding: 8px 12px 4px; }
.adm-signout { width: 100%; border: 0; background: transparent; cursor: pointer; text-align: left; font: inherit; }

/* Slide-overs and dialogs cover the window, not the page's height. */
.dp-slide-layer, .dp-dialog-layer { position: fixed; z-index: 10; }
.dp-dialog-layer { z-index: 20; }

.adm-filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.adm-search { flex: 1 1 320px; max-width: 420px; }
.adm-listfoot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.adm-stack { display: flex; flex-direction: column; gap: 16px; }
.adm-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px 24px; }
.adm-facts-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.adm-fact { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.adm-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; }
.adm-panel-foot { display: flex; justify-content: flex-end; padding-top: 12px; }
.adm-row-actions { display: inline-flex; gap: 4px; justify-content: flex-end; }

/* Sign-in and set-password pages. */
.adm-gate { min-height: 100vh; box-sizing: border-box; padding: 64px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; }
.adm-gate-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.adm-gate-form { width: 100%; max-width: 400px; box-sizing: border-box; padding: 32px; display: flex; flex-direction: column; gap: 20px; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.adm-gate-form h1 { margin: 0; }
.adm-gate-form .dp-btn { width: 100%; }
.adm-gate-note { margin: 0; max-width: 400px; text-align: center; }

@media (max-width: 760px) {
  .adm-rail { flex: 1 1 100%; min-height: 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .adm-main { padding: 24px 16px 48px; }
  .adm-panels { grid-template-columns: minmax(0, 1fr); }
  .adm-facts-2 { grid-template-columns: minmax(0, 1fr); }
}
