:root {
    /* bg */
    --bg-dark: hsl(110, 10%, 90%);
    --bg: hsl(110 40% 95%);
    --bg-light: hsl(110 90% 99%);
    --gradient: linear-gradient(0deg, var(--bg) 97%, var(--bg-light));
    --gradient-hover: linear-gradient(0deg, var(--bg), var(--bg-light));
    /* text */
    --text: hsl(110 100% 3%);
    --text-muted: hsl(110 10% 26%);
    --text-super-muted: hsl(0 0% 50%);
    /* border */
    --highlight: hsl(110 100% 97%);
    --border: hsl(110 12% 48%);
    --border-muted: hsl(110 14% 60%);
    --border-card: solid 1px var(--bg);
    /* action */
    --primary: hsl(110 51% 22%);
    --secondary: hsl(290, 34%, 31%);
    /* alert */
    --danger: hsl(9 21% 41%);
    --warning: hsl(52 23% 34%);
    --success: hsl(147 19% 36%);
    --info: hsl(217 22% 41%);
    /* alert light*/
    --danger-light: hsl(9 21% 60%);
    --warning-light: hsl(52 23% 50);
    --success-light: hsl(147 19% 50%);
    --info-light: hsl(217 22% 60%);
    /* shadows */
    --shadow: 0px 2px 2px oklch(0 0 0 / 0.2), 0px 4px 4px oklch(0 0 0 / 0.1);
    --shadow-m: 0px 1px 1px oklch(0 0 0 / 0.4), 0px 2px 2px oklch(0 0 0 / 0.2), 0px 4px 4px oklch(0 0 0 / 0.1);
    --shadow-from: inset 0px 2px oklch(0 0 0 / 0.2);
    --shadow-in: inset 2px 2px oklch(0 0 0 / 0.2), inset -4px 4px oklch(0 0 0 / 0.1);
    /* type */
    --ff: "Noto Sans", sans-serif;
    --h1: 700 1.5rem/1.2em var(--ff);
    --h2: 700 1.25rem/1.2em var(--ff);
    --h3: 700 1.125rem/1.4em var(--ff);
    --h4: 700 1rem/1.6em var(--ff);
    --p: 400 1rem/1.6em var(--ff);
    --small: 400 0.75rem/1.8em var(--ff);
}

/* utility */
.flex {
    display: flex;
    align-items: center;
    gap: 1rem;
}


/* global */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--ff);
}

body {
    background: var(--bg-dark);
    color: var(--text-muted);
}

#content {
    margin: 1rem auto;
    max-width: min(95vw, 1100px);
}

header {
    background-color: var(--bg);
}

nav.head {
    background-color: var(--bg-light);
    padding: 1rem 1.25em;
    border-bottom-left-radius: 1em;
    border-bottom-right-radius: 1em;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
}
nav.head h1 {
    margin: 0;
}
nav.breadcrumbs {
    padding: 0.25em 1em;
    box-shadow: var(--shadow);
    border-bottom-left-radius: 1em;
    border-bottom-right-radius: 1em;
    /* , var(--shadow-from); */
}
nav.breadcrumbs a {
    color: var(--text);
    font: var(--small);
    padding: 0.5em;
}
nav.breadcrumbs a:hover {
    background-color: var(--primary);
    color: var(--highlight);
}

.wrapper {
    min-height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 5rem;
}
.wide {
    width: max-content;
}
.hide {
    display: none;
}
footer {
    display: flex;
    justify-content: right;
    gap: 2em;
}

h1 {
    font: var(--h1);
    margin-bottom: 1rem;
    color: var(--text); 
}

h2 {
    font: var(--h2);
    margin-bottom: 1rem;
    color: var(--text);
}

h3 {
    font: var(--h3);
    margin-bottom: 0.5rem;
    color: var(--text);
}

h4 {
    font: var(--h4);
    margin-bottom: 0.5rem;
}

p {
    font: var(--p);
    margin-bottom: 0.25rem;
}

.small,
small {
    font: var(--small);
}

.btn {
    background: var(--bg-light);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font: var(--p);
    cursor: pointer;
    box-shadow: var(--shadow);  
    border: none;
}
.btn:hover {
    background: var(--primary);
    color: var(--highlight);
}
.btn-s {
    background: var(--bg-light);
    color: var(--text);
    padding: 0rem 0.5rem;
    border-radius: 0.5rem;
    font: var(--p);
    cursor: pointer;
    box-shadow: var(--shadow);
    border: none;
}
.btn-s:hover {
    background: var(--primary);
    color: var(--highlight);
}

a {
  text-decoration: none;
  color: var(--text);
}
a:hover {
  color: var(--primary);
}
.in2rows {
    grid-row: span 2;
}
.card {
    background: var(--gradient);
    padding: 1em 2em;
    border: var(--border-card);
    border-top: 1px solid var(--highlight);
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.card-top {
    background: var(--gradient-hover);
    padding: 1rem;
    border: var(--border-card);
    border-top: 1px solid var(--highlight);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    min-width: fit-content;
}

.nomargin {
    margin: 0;
}
.nopadding {
    padding: 0;
}

.geomap {
    padding: 0.5em;
    background: var(--primary);
    border: none;
}
.geomap iframe {
    border-radius: 0.5rem;
}
.geomap span {
    display: none;
}

.seriamap {
    min-width: 195px;
    min-height: 130px;
}
.muted {
    color: var(--text-muted);
}
.primary {
    background: var(--primary);
    border: none;
    color: var(--highlight);
}
.primary:hover {
    background: var(--secondary);
    color: var(--highlight);
}
.warning {
    background: var(--warning);
    border: none;
    color: var(--highlight);
}
.warning:hover {
    background: var(--secondary);
    color: var(--highlight);
}

.danger {
    border: none;
}
.danger:hover {
    background: var(--danger);
    color: var(--highlight);
}

.gap-after {
    margin-bottom: 2em;
}
.gap-before {
    margin-top: 2em;
}

table {
    width: 100%;
    border-top-left-radius: 2em;
    border-top-right-radius: 2em;
    background-color: var(--bg);
    border-collapse: collapse;
    box-shadow: var(--shadow);
}
td p {
    margin: 0 1em;
    padding: 0.5em 1em;
}

th div {
    display: flex;
    margin: 0.5em 1em;
    padding: 0 1em;
    border-radius: 1em;
    align-items: baseline;
    justify-content: space-between;
    color: var(--text-super-muted);
}
th div h4 {
    margin: 0;
}

tbody tr {
    /* border-radius: 1em; */
    background-color: var(--bg);
    border-top: 4px dotted var(--bg-dark);
}

tbody tr:hover {
    background-color: var(--bg-light);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 2rem;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* LABELS */
.labels {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.label {
    display: flex;
    font: var(--small);
    border-radius: 1em;
    box-shadow: var(--shadow);
}

.label span {
    color: var(--text);
    padding: 0.25em 1em;
    min-width: 6em;
    background: linear-gradient(0deg, var(--bg-light) 90%, var(--highlight));
    border-radius: 1em 0 0 1em;
}

.label span.copy {
    background: linear-gradient(0deg, var(--info) 90%, var(--highlight));
    color: var(--highlight);
    font-weight: bold;
    border-radius: 0 1em 1em 0;
}

.label span.copy:has(select) {
    padding: 0;
}
.label span.copy select {
    padding: 0.25em 1em;
    background: linear-gradient(0deg, var(--info) 90%, var(--highlight));
    color: var(--highlight);
    font-weight: bold;
    border-radius: 0 1em 1em 0;
    border: none;
}
.label span.copy select option {
    color: var(--text-muted);
}

/* breadcrumbs */

ul.breadcrumbs {
    display: block;
    flex-wrap: wrap;
}

ul.breadcrumbs li {
    display: block;
}

ul.breadcrumbs li::before {
    content: "\203A";
    margin-right: 0.5em;
}
ul.breadcrumbs li.self {
    font-weight: bold;
    li {font-weight: normal;}
}

ul.breadcrumbs li li::before {
    content: "\203A";
    margin-right: 0.5em;
}
ul.breadcrumbs li li {
    margin-left: 1em;
}

.pagination {
    margin: 1em;
}
.step-links {
    display: flex;
    flex-wrap: wrap;
    /* justify-content: center; */
}
.step-links * {
    padding: 0.5em 1em;
    border-radius: 1em;
    font-family: "Noto Sans Mono";
    box-shadow: var(--shadow);
}
.step-links span {
    box-shadow: none;
}
.step-links span.current {
    box-shadow: var(--shadow);
    background: var(--primary);
    color: var(--highlight);
}
.step-links a {
    background: var(--highlight);
}
.step-links a:hover {
    background: var(--primary);
    color: var(--highlight);
}

.status::before {
    content: '';
    display: inline-block;
    width: 0.6em;
    height: 0.6em;
    background-color: var(--highlight);
    border-radius: 50%;
    /* margin-right: 0.5em; */
}
.st-NO::before {
    background: var(--danger);
}
.st-NO {
    color: var(--danger);
}
.st-FL::before {
    background: var(--success);
}
.st-FL {
    color: var(--success);
}
.st-AF::before {
    background: var(--info);
}
.st-AF {
    color: var(--info);
}
.st-PD::before {
    background: var(--warning);
}
.st-PD {
    color: var(--warning);
}

.filter-form {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    gap: 1em;
    align-items: baseline;
}
input {
    padding: 0.5em 1em;
    border: none;
    border-radius: 1em;
    box-shadow: var(--shadow-in);
    background-color: var(--bg-dark);
}

.errorlist li {
    list-style: none;
    margin-bottom: 0.5em;
    color: var(--danger);
}