/***********************************************************************************************************************
    Variables
***********************************************************************************************************************/

:root {
    --color-secondary-50: #fde4ec;
    --color-secondary-100: #f9bad0;
    --color-secondary-200: #f68db2;
    --color-secondary-300: #f35e93;
    --color-secondary-400: #ef387a;
    --color-secondary-500: #ed0063;
    --color-secondary-600: #dc0060;
    --color-secondary-700: #c6005b;
    --color-secondary-800: #b10057;
    --color-secondary-900: #8c0050;

    --color-primary-50: #edfdfd;
    --color-primary-100: #c4f1f9;
    --color-primary-200: #9decf9;
    --color-primary-300: #76e4f7;
    --color-primary-400: #0bc5ea;
    --color-primary-500: #00b5d8;
    --color-primary-600: #00a3c4;
    --color-primary-700: #0987a0;
    --color-primary-800: #086f83;
    --color-primary-900: #065666;

    --color-neutral-50: #f7fafc;
    --color-neutral-100: #edf2f7;
    --color-neutral-200: #e2e8f0;
    --color-neutral-300: #cbd5e0;
    --color-neutral-400: #a0aec0;
    --color-neutral-600: #718096;
    --color-neutral-700: #4a5568;
    --color-neutral-700: #2d3748;
    --color-neutral-800: #1a202c;
    --color-neutral-900: #171923;

    /* scale for 1.2 */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.1875rem;
    --font-size-xl: 1.375rem;

    --font-weight-thin: 100;
    --font-weight-extralight: 200;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;

    --padding-sm: 0.25rem 0.5rem;
    --padding-md: 0.5rem 0.75rem;
    --padding-lg: 0.75rem;
    --padding-lg-y: 0.75rem 0;
    --padding-xl: 1rem 1.25rem;

    --margin-sm: 0.25rem 0.5rem;
    --margin-md: 0.5rem 0.75rem;
    --margin-lg: 0.75rem 1rem;
    --margin-xl: 1rem 1.25rem;

    --border-none: 0;

    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-md-left: 0.375rem 0 0 0.375rem;
    --radius-md-right: 0 0.375rem 0.375rem 0;
    --radius-lg: 0.5rem;

}

@media screen and (min-width: 800px) {
    :root {

    }
}

/***********************************************************************************************************************
    Reset
***********************************************************************************************************************/

*, *::before, *::after {
    margin: 0;
    box-sizing: border-box;
}

* {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

html {
    font-size: 16px;
    color: var(--color-neutral-700);
}

body {
    background-color: white;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

input, button, textarea, select {
    font: inherit;
}

/***********************************************************************************************************************
    Text
***********************************************************************************************************************/

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    margin-bottom: 1.5rem;
    line-height: 1.5rem;
}

h1 {
    font-size: var(--font-size-lg);
}
h2 {
    font-size: var(--font-size-lg);
}
h3 {
    font-size: var(--font-size-lg);
}
h4 {
    font-size: var(--font-size-md);
}
h5 {
    font-size: var(--font-size-md);
}
h6 {
    font-size: var(--font-size-md);
}

p, div, span, th, td {
    font-size: var(--font-size-md);
}

@media screen and (max-width: 768px) {
    p, h1, h2, h3, h4, h5, h6 {
        margin-bottom: 1rem;
    }
}

/***********************************************************************************************************************
    Links
***********************************************************************************************************************/

a {
    color: var(--color-primary-600);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary-700);
    text-decoration: underline;
}

a.icon {
    text-decoration: none;
}

/***********************************************************************************************************************
    Generic classes
***********************************************************************************************************************/

.left {
    text-align: left;
}
.center {
    text-align: center;
}
.right {
    text-align: right;
}

.text-sm {
    font-size: var(--font-size-sm);
}

/***********************************************************************************************************************
    Icons
***********************************************************************************************************************/

@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 400;
    src: url('/static/font/material-symbols-outlined.woff') format('woff');
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/***********************************************************************************************************************
    Buttons
***********************************************************************************************************************/

button {
    padding: var(--padding-md);
    border: var(--border-none);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);

    color: var(--color-neutral-50);
    background-color: var(--color-primary-600);
}

button:hover {
    cursor: pointer;

    color: var(--color-neutral-50);
    background-color: var(--color-primary-700);
}

button:disabled,
button[disabled] {
    cursor: not-allowed;
    color: var(--color-neutral-400);
    background-color: var(--color-neutral-300);
}

button.secondary {
    color: var(--color-neutral-50);
    background-color: var(--color-secondary-600);
}

button.secondary:hover {
    background-color: var(--color-secondary-700);
}


/***********************************************************************************************************************
    Tables
***********************************************************************************************************************/

table {
    border-spacing: 0;
    width: 100%;
}

tr:hover td {
    background-color: var(--color-neutral-50);
    cursor: pointer;
}

tr:hover a {
    /*color: var(--color-neutral-50);*/
}

tr:hover td:first-child {
    border-radius: var(--radius-md-left);
}

tr:hover td:last-child {
    border-radius: var(--radius-md-right);
}

td {
    font-size: var(--font-size-sm);
    padding: var(--padding-md);
    white-space: nowrap;
}

th {
    background-color: var(--color-neutral-50);
    padding: var(--padding-lg);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-align: left;
    white-space: nowrap;
}

th:first-child {
    border-radius: var(--radius-md-left);
}
th:last-child {
    border-radius: var(--radius-md-right);
}


/***********************************************************************************************************************
    Panel
***********************************************************************************************************************/

div.panel {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    width: 100%;
    max-width: 1200px;
    box-shadow: rgba(3, 3, 3, 0.1) 0 1px 2px 1px;
}

div.panel div {
    overflow: auto;
}

div.panel h2 {
    font-size: var(--font-size-lg);
}

@media screen and (max-width: 1024px) {
    div.panel {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

.panel p {
    font-size: var(--font-size-sm);
    margin-bottom: 0.5rem;
}

/***********************************************************************************************************************
    Data list
***********************************************************************************************************************/

dl {
    display: grid;
    grid-template-columns: 1fr 2fr;
}

.two-columns dl {
        display: grid;
        grid-template-columns: 1fr 1fr;
}

dt {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    padding: var(--padding-md);

    grid-column: 1;
    border-bottom: 1px solid var(--color-neutral-100);
    line-height: 26px;
}

dd {
    font-size: var(--font-size-sm);
    padding: var(--padding-md);

    grid-column: 2;
    border-bottom: 1px solid var(--color-neutral-100);
    line-height: 26px;
}

dl dt:nth-last-child(2), dl dd:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

@media screen and (max-width: 800px) {
    dl {
        display: grid;
        grid-template-columns: 1fr;
    }
    dt {
        grid-column: 1;
        font-size: var(--font-size-xs);
        border: 0;
        padding-bottom: 0;
    }
    dd {
        grid-column: 1;
    }
}

/***********************************************************************************************************************

***********************************************************************************************************************/

.primary {
    color: var(--color-primary-600);
}

/***********************************************************************************************************************
  Switches
***********************************************************************************************************************/

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--color-primary-600);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--color-primary-600);
}

input:checked + .slider:before {
  -webkit-transform: translateX(16px);
  -ms-transform: translateX(16px);
  transform: translateX(16px);
}
