/* 
https://patorjk.com/software/taag/#p=display&h=0&f=DiamFont&t=FOOTER 
*/

:root {
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

    --clr-bergus-cyan: hsl(182, 52%, 53%);
    --clr-bergus-cyan-dark: hsl(182, 52%, 43%);
    --clr-bergus-cyan-light: hsl(183, 67%, 81%);
    --clr-bergus-cyan-xlight: hsl(183, 67%, 91%);
    
    --color-background: #f0f0f0;
    --color-text: darkslategray;
    
    --color-primary: var(--clr-bergus-cyan-dark);
    --color-primary-800: var(--clr-bergus-cyan);
    --color-link:var(--color-primary);
    --color-link-hover:var(--color-primary-800);
    --color-nav-background: var(--color-background);
    --color-nav-border:#ccc;

    --color-table-header: var(--color-text);
    --color-table-header-text: var(--color-background);
    --color-table-rows: hsl(211, 100%, 95%);
    --color-table-rows-odd: hsl(211, 100%, 98%);
    --color-table-rows-hover: #0002;

    --color-dialog-backdrop:  rgba(0, 0, 0, 0.75);

    --color-graphrow1: hsl(211, 100%, 95%);
    --color-graphrow2: hsl(211, 100%, 98%);
    --color-graphcurve:var(--clr-bergus-cyan);

    --clr-bergus-footerblue: rgb(23, 84, 99);
    --h-footer: 5em;
    --fs-footer-header: 1.3em;
    --fs-footer-text: 0.8em;

}

@media (prefers-color-scheme: dark) {
    :root {
        /* --color-background: hsl(182, 52%, 10%);
        --color-text: #ddd;
        --color-primary: hsl(211, 100%, 30%);
        --color-primary-800: hsl(211, 100%, 35%);
        --color-link:var(--clr-bergus-cyan-dark);
        --color-link-hover:var(--clr-bergus-cyan);
        --color-nav-background: var(--color-background);
        --color-nav-border: var(--color-text);
        --color-table-header: var(--color-text);
        --color-table-header-text: var(--color-background);
        --color-table-rows: hsl(211, 100%, 15%);
        --color-table-rows-odd: hsl(211, 100%, 10%);
        --color-table-rows-hover: #fff2;
        --color-dialog-backdrop:  rgba(255, 255, 255, 0.50);
        --color-graphrow1: hsl(211, 100%, 15%);
        --color-graphrow2: hsl(211, 100%, 10%);
        --color-graphcurve:var(--clr-bergus-cyan) */
    }
}

  *, *::before, *::after {
      margin: 0;
      padding: 0;
      border: 0;
      box-sizing: border-box;
  }
  
  html {
    height:100%;
    scroll-behavior: smooth;
    font-size: 16px;
    margin:0;
  }  

body {
    font-family: var(--font-body);
    color: var(--color-text);
    height:100%;
    margin: 0;
    padding: 0;
    background-color: var(--color-background);
}

h1,h2,h3,h4,h5,h6 {
    color: var(--color-text);
}

h1 {
    font-size: 2em;
    display: flex;
    align-items: center;
}

h1 a {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    text-decoration: none; /* Remove underline */
    color: inherit; /* Inherit text color from h1 */
}

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

a:not(.button):hover {
    text-decoration: underline;
}

/* Flex container to wrap the content and footer */
.bodycontainer {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main content should take up available space */
main {
    flex: 1;
    padding:0 3rem;
}



#beta {
    width:120px;
    height:auto;
    position:absolute;
    top:4rem;
    right:1rem;
}

.h1icon {
    height: 1em; 
    width: auto; 
    margin-right:1rem;
}

/*--------------------------------------------------------------------------------------------------

▗▖  ▗▖ ▗▄▖ ▗▖  ▗▖
▐▛▚▖▐▌▐▌ ▐▌▐▌  ▐▌
▐▌ ▝▜▌▐▛▀▜▌▐▌  ▐▌
▐▌  ▐▌▐▌ ▐▌ ▝▚▞▘ 
                     
--------------------------------------------------------------------------------------------------*/

nav {
    display:flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    margin-bottom:1rem;
    background-color: var(--color-nav-background);
    border-bottom: 1px solid var(--color-nav-border);
    /* box-shadow: 0 4px 4px -1px rgba(0, 0, 0, 0.3); */
    /* position: fixed;  */
    /* top: 0; */
    /* left: 0; */
    /* right: 0; */
    height: 3.5rem;
    z-index: 1000;
}

nav a {
    height:100%;
}

nav a img {
    display:inline-block;
    height:100%;
}

#navtitle {
    display: flex;
    align-items: center; 
    height:100%;
    font-size: 2rem;
    font-weight: bold;
    padding:0;
    margin:0;
}


/*--------------------------------------------------------------------------------------------------

 ▗▄▄▖ ▗▄▖ ▗▄▄▖ ▗▄▄▄▖ ▗▄▖ ▗▄▄▖ ▗▖   ▗▄▄▄▖
▐▌   ▐▌ ▐▌▐▌ ▐▌  █  ▐▌ ▐▌▐▌ ▐▌▐▌   ▐▌   
 ▝▀▚▖▐▌ ▐▌▐▛▀▚▖  █  ▐▛▀▜▌▐▛▀▚▖▐▌   ▐▛▀▀▘
▗▄▄▞▘▝▚▄▞▘▐▌ ▐▌  █  ▐▌ ▐▌▐▙▄▞▘▐▙▄▄▖▐▙▄▄▖

--------------------------------------------------------------------------------------------------*/

.sortable {
    cursor:pointer;
}

.sortable::before {
    content:" ";
    padding-right:0.25rem;
}

.sortable[data-dir="U"]::before {
    content: "↑";
}
 
.sortable[data-dir="D"]::before {
    content: "↓";
}
 
.sortable[data-dir="N"]::before {
    content: "⇅";
    /* content: "↕"; */
}

.number {
    /* font-family: system-ui; */
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
  }

  .modifiable {
    cursor:copy; /* Indicate that the text is copyable */
  }

  .wait-cursor * {
    cursor: wait !important;
  }

hr {
    margin: 0.75rem 0;
    border: 0;
    border-top: 1px dashed #ccc;
}

/*--------------------------------------------------------------------------------------------------

▗▄▄▄▖ ▗▄▄▖ 
▐▌ ▐▌ ▐▌ ▐▌
▐▌ ▐▌ ▐▛▚▖
▐▙▄▟▙▖▐▌ ▐▌

--------------------------------------------------------------------------------------------------*/
             
               
  #qrframeOuter {
    width:min-content;
    /* margin:auto auto; */
}

  #qrframeInner {
    width:min-content;
    padding:35px;
    margin:0 auto 2rem auto;
    border: 3px solid #0004;
    border-radius: 0.75rem;
    background-color: white;
}

#qr {
    width:192px;
    height:192px;
    background-image: url('/assets/img/bankid192.png');
}

/*--------------------------------------------------------------------------------------------------

▗▄▄▖ ▗▖ ▗▖▗▄▄▄▖▗▄▄▄▖ ▗▄▖ ▗▖  ▗▖
▐▌ ▐▌▐▌ ▐▌  █    █  ▐▌ ▐▌▐▛▚▖▐▌
▐▛▀▚▖▐▌ ▐▌  █    █  ▐▌ ▐▌▐▌ ▝▜▌
▐▙▄▞▘▝▚▄▞▘  █    █  ▝▚▄▞▘▐▌  ▐▌
                                                    
--------------------------------------------------------------------------------------------------*/

.button {
    display: inline-block;
    padding: 0.5rem 2rem;
    margin: 0.5rem 0;
    font-size: 1rem;
    /* font-weight: bold; */
    text-align: center;
    text-decoration: none;
    border-radius: 0.33rem;
    border-radius: 1.5rem;
    color: white;
    background-color: var(--color-link);
    /* border: 3px solid var(--color-link-hover); */
    cursor: pointer;
}

.button:hover {
    background-color: var(--color-link-hover);
    /* border: 3px solid var(--color-link-hover); */
}


.button:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    border-color: #ccc;
}

.fieldset-add-button {
    position: absolute;
    top: 0;
    right: 0.3rem;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color:var(--color-text);
}


/*--------------------------------------------------------------------------------------------------

▗▄▄▄▖ ▗▄▖ ▗▄▄▖ ▗▖  ▗▖
▐▌   ▐▌ ▐▌▐▌ ▐▌▐▛▚▞▜▌
▐▛▀▀▘▐▌ ▐▌▐▛▀▚▖▐▌  ▐▌
▐▌   ▝▚▄▞▘▐▌ ▐▌▐▌  ▐▌
                     
--------------------------------------------------------------------------------------------------*/

form label {
    display: block;
    margin: 1rem 0 0 0.1rem;
    font-size: 80%;
    color: var(--color-text);
}

form input,
input[type=search] {
    display: block;
    padding: 0.5rem;
    margin: 0.1rem 0 0.5rem 0;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
}


.search-wrapper {
    position: relative;
    display: inline-block;
}

.search-icon {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* Ensure the icon does not interfere with input focus */
    font-size: 1rem;
}

form input[type="text"]:read-only {
    background-color: #0001;
    color: #666;
    cursor: not-allowed;
}

textarea {
    display: block;
    width:40ch;
    height:20rem;
    padding: 0.5rem;
    margin: 0.1rem 0 0.5rem 0;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
}

select {
    padding: 0.5rem;
    margin: 0.1rem 0 0.5rem 0;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    background-color: white;
}

form input[type="submit"] {
    display: block;
    padding: 0.5rem 2rem;
    margin: 1.5rem 0 0.5rem 0;
}

form input[type="checkbox"] {
    display: inline-block;
    margin: 0.25rem 0.5rem 0.25rem 0;
}
form input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

fieldset {
    color: var(--color-text);
    border: 1px solid #ccc; 
    padding: 0.5rem; 
    border-radius: 0.25rem; 
    margin-top: 0.5rem; 
    width:fit-content;
}

legend {
    color: var(--color-text);
    font-size: 80%; 
    padding: 0 0.5rem; 
}

fieldset label {
    padding:0;
    margin:0;
}

.sameline {
    display:flex;
    gap:1rem;
}

/*--------------------------------------------------------------------------------------------------
                                         
▗▄▄▖  ▗▄▖  ▗▄▄▖▗▄▄▄▖▗▄▄▄▖▗▖   ▗▄▄▄▖▗▖  ▗▖
▐▌ ▐▌▐▌ ▐▌▐▌   ▐▌   ▐▌   ▐▌   ▐▌    ▝▚▞▘ 
▐▛▀▘ ▐▛▀▜▌▐▌▝▜▌▐▛▀▀▘▐▛▀▀▘▐▌   ▐▛▀▀▘  ▐▌  
▐▌   ▐▌ ▐▌▝▚▄▞▘▐▙▄▄▖▐▌   ▐▙▄▄▖▐▙▄▄▖▗▞▘▝▚▖
                                         
--------------------------------------------------------------------------------------------------*/

.flex-container {
    display: flex;
    align-items: stretch; /* Ensure all items stretch to the height of the tallest item */
    position: relative; /* Ensure the container is positioned relative for the pseudo-element */
}

.flex-item {
    padding: 1rem;
}

.flex-item:first-child {
    flex: 1; /* Make the first column narrower */
}

.flex-item:last-child {
    flex: 3; /* Make the second column wider */
}

/*--------------------------------------------------------------------------------------------------

▗▄▄▄▖▗▖ ▗▖▗▖   ▗▖        ▗▄▄▄▖ ▗▄▖ ▗▄▄▖ ▗▖   ▗▄▄▄▖
▐▌   ▐▌ ▐▌▐▌   ▐▌          █  ▐▌ ▐▌▐▌ ▐▌▐▌   ▐▌   
▐▛▀▀▘▐▌ ▐▌▐▌   ▐▌          █  ▐▛▀▜▌▐▛▀▚▖▐▌   ▐▛▀▀▘
▐▌   ▝▚▄▞▘▐▙▄▄▖▐▙▄▄▖       █  ▐▌ ▐▌▐▙▄▞▘▐▙▄▄▖▐▙▄▄▖

--------------------------------------------------------------------------------------------------*/

.full table {
    width: auto;
    min-width: 700px;
    max-width: 90%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.full table thead {
    border-bottom: 1px solid #ccc;
}


.full table tbody {
    margin-bottom:0.5rem;
}

.full table thead tr th {
    background-color: var(--color-table-header);
    color: var(--color-table-header-text);
    font-weight: 500;
    padding: 0.5rem;
    text-align: left;
    margin-bottom:0.5rem;
}

.full table thead tr th:first-child {
    border-top-left-radius: 0.75rem; 
    /* border-bottom-left-radius: 0.75rem;  */
}

.full table thead tr th:last-child {
    border-top-right-radius: 0.75rem; 
    /* border-bottom-right-radius: 0.75rem;  */
}

.full table thead tr th, 
.full table tbody tr td {
    text-align: left;
    padding:0.5rem;
}

.full table tbody .extrarow {
    display:none;
}

.full table tbody .extrarow td div {
    border-top:1px solid #0001;
}

.full table thead tr,
.full table tbody tr {
    background-color: var(--color-table-rows)
}

.full table thead tr:first-of-type {
    background-color: transparent !important;
}

.full table tbody tr:nth-child(4n+1), 
.full table tbody tr:nth-child(4n+2) {
    background-color: var(--color-table-rows-odd)
}

.full table tbody tr:hover {
    background-color: var(--color-table-rows-hover)
}

/*--------------------------------------------------------------------------------------------------

 ▗▄▖ ▗▖  ▗▖▗▄▄▄▖▗▄▄▖ ▗▖  ▗▖▗▄▄▄▖▗▄▄▄▖▗▖ ▗▖     ▗▄▄▄▖ ▗▄▖ ▗▄▄▖ ▗▖   ▗▄▄▄▖
▐▌ ▐▌▐▌  ▐▌▐▌   ▐▌ ▐▌▐▌  ▐▌  █  ▐▌   ▐▌ ▐▌       █  ▐▌ ▐▌▐▌ ▐▌▐▌   ▐▌   
▐▌ ▐▌▐▌  ▐▌▐▛▀▀▘▐▛▀▚▖▐▌  ▐▌  █  ▐▛▀▀▘▐▌ ▐▌       █  ▐▛▀▜▌▐▛▀▚▖▐▌   ▐▛▀▀▘
▝▚▄▞▘ ▝▚▞▘ ▐▙▄▄▖▐▌ ▐▌ ▝▚▞▘ ▗▄█▄▖▐▙▄▄▖▐▙█▟▌       █  ▐▌ ▐▌▐▙▄▞▘▐▙▄▄▖▐▙▄▄▖
                                                                
--------------------------------------------------------------------------------------------------*/

.overview table {
    /* width: auto; */
    /* min-width: 300px; */
    /* max-width: 550px; */
    border-collapse: collapse;
    margin: 1rem 0;
    width:100%;
}

.overview table thead {
    border-bottom: 1px solid #ccc;
}

.overview table tbody {
    margin-bottom:0.5rem;
}

.overview table thead tr th {
    background-color: var(--color-table-header);
    color: var(--color-table-header-text);
    font-weight: 500;
    padding: 0.5rem;
    text-align: left;
    margin-bottom:0.5rem;
}

.overview table thead tr th:first-child {
    border-top-left-radius: 0.75rem; 
    /* border-bottom-left-radius: 0.75rem;  */
}

.overview table thead tr th:last-child {
    border-top-right-radius: 0.75rem; 
    /* border-bottom-right-radius: 0.75rem;  */
}

.overview table thead tr th, 
.overview table tbody tr td {
    text-align: left;
    padding:0.5rem;
}

.overview table tbody .extrarow {
    display:none;
}

.overview table tbody .extrarow td div {
    border-top:1px solid #0001;
}

.overview table thead tr,
.overview table tbody tr {
    background-color: var(--color-table-rows)
}


.overview table tbody tr:nth-child(odd) {
    background-color: var(--color-table-rows-odd)
}

.overview table thead tr:first-of-type {
    background-color: transparent !important;
}

.overview table tbody tr:hover {
    background-color: var(--color-table-rows-hover);
}


.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width:100px;
}

/*--------------------------------------------------------------------------------------------------

▗▄▄▄  ▗▄▄▄▖ ▗▄▖ ▗▖    ▗▄▖  ▗▄▄▖
▐▌  █   █  ▐▌ ▐▌▐▌   ▐▌ ▐▌▐▌   
▐▌  █   █  ▐▛▀▜▌▐▌   ▐▌ ▐▌▐▌▝▜▌
▐▙▄▄▀ ▗▄█▄▖▐▌ ▐▌▐▙▄▄▖▝▚▄▞▘▝▚▄▞▘

--------------------------------------------------------------------------------------------------*/


  dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    max-width: 600px;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: var(--color-background);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.dialog-close-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color:var(--color-text);
}


dialog::backdrop {
    background: var(--color-dialog-backdrop);
    cursor:not-allowed;
}


.twocols {
    display:flex;
    gap:1rem;
}

/*--------------------------------------------------------------------------------------------------

▗▄▄▄▖▗▄▖  ▗▄▖  ▗▄▄▖▗▄▄▄▖
  █ ▐▌ ▐▌▐▌ ▐▌▐▌     █  
  █ ▐▌ ▐▌▐▛▀▜▌ ▝▀▚▖  █  
  █ ▝▚▄▞▘▐▌ ▐▌▗▄▄▞▘  █  
                        
--------------------------------------------------------------------------------------------------*/

.toast {
    max-width:20rem;
    text-align: center;
    font-size:1.4rem;
    color:#333;
    background: linear-gradient(to right, rgb(159, 225, 240), rgb(140, 202, 215));
}

.toast-success {
    color:#ddd !important;
    background: linear-gradient(to right, rgb(0, 140, 0), rgb(0, 90, 0)) !important;
}

.toast-fail {
    color:#ddd !important;
    background: linear-gradient(to right, rgb(140, 0, 12), rgb(113, 0, 10)) !important;
}


.scrolltable {
    width:100%;
}


/*--------------------------------------------------------------------------------------------------
▗▄▄▄▖ ▗▄▖  ▗▄▖ ▗▄▄▄▖▗▄▄▄▖▗▄▄▖ 
▐▌   ▐▌ ▐▌▐▌ ▐▌  █  ▐▌   ▐▌ ▐▌
▐▛▀▀▘▐▌ ▐▌▐▌ ▐▌  █  ▐▛▀▀▘▐▛▀▚▖
▐▌   ▝▚▄▞▘▝▚▄▞▘  █  ▐▙▄▄▖▐▌ ▐▌
--------------------------------------------------------------------------------------------------*/ 

footer {
    height: var(--h-footer);
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;   
    background-color: var(--clr-bergus-footerblue);
    color: var(--clr-bergus-cyan-light);
    font-size: var(--fs-footer-text);
}
    
footer p {
    margin:0 0 0.5em 0;
    font-size:1.15em;
    color: var(--clr-bergus-cyan-light);
}

footer a {
    color: var(--clr-bergus-cyan-light);
}

footer span {
    margin:0 1em;
}

footer svg {
    margin-right: 0.3em;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
}


/*--------------------------------------------------------------------------------------------------

▗▄▄▖  ▗▄▖ ▗▖   ▗▄▄▄▖ ▗▄▄▖▗▖  ▗▖
▐▌ ▐▌▐▌ ▐▌▐▌     █  ▐▌    ▝▚▞▘ 
▐▛▀▘ ▐▌ ▐▌▐▌     █  ▐▌     ▐▌  
▐▌   ▝▚▄▞▘▐▙▄▄▖▗▄█▄▖▝▚▄▄▖  ▐▌  
                               
--------------------------------------------------------------------------------------------------*/

.policy {
    margin-left:2rem;
    max-width:80ch;

}


.policy p {
    margin-bottom: 1rem;
}

.policy h1 {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

.policy h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 130%;
  }
  .policy ul {
    margin-left: 3rem;
    margin-bottom: 2rem;
  }
  .policy p, .policy li {
    font-size: 90%;
  }
  

/*-------------------------------------------------------------------------------------------------- */

/* Target <td> elements within a <tr> with class "boldrow" */
tr.boldrow td {
    font-weight: bold;
  }