/* THIS FILE IS COPIED FROM THE COMMON LIBRARY AS OF 2025-09-30 11:14:35 GMT. DO NOT EDIT THIS FILE. EDIT THE ORIGINAL IN THE COMMON LIBRARY INSTEAD. */
@font-face {
    font-family: 'Archivo Narrow';
    src: url('../assets/fonts/ArchivoNarrow-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900; /* Supports Thin to Black weights */
    font-style: normal;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
  
    font-family: var(--primary-font-family);
    font-weight: var(--primary-font-weight);
    font-style: var(--primary-font-style);
    
    color: black;
    background-color: #fff;
    padding: 0;
    line-height: 1;
    
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures the body is at least the height of the viewport */
    
    margin: 0; /* Removes default margin for consistent layout */

}


header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    color: #fff;
    text-align: left;
    padding: 1rem 2.5rem 1rem 2.5rem;
    line-height: 1;
    z-index: 3;
}
@media (max-width: 768px) {
    header {
        padding: 8px 24px 8px 24px;
        text-align: center;
    }
}
header > img {
    max-height: 48px;
    max-width: calc(100% - 16px);
}
@media (max-width: 768px) {
    header > img {
        max-height: 32px;
    }
}
header > img[onclick] {
    cursor: pointer;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1em;
    overflow: auto;
    z-index: 0;
}
@media (max-width: 768px) {
    main {
        padding: 8px;
    }
}

footer {
    padding: 1em;
    z-index: 2;
}
@media (max-width: 768px) {
    footer {
        padding: 8px;
    }
}

h1, h2, h3 {
    color: var(--primary-color-dark);
    line-height: 1;
}

select, option, input, textarea, agile-select {
    font-family: var(--primary-font-family);
    font-weight: var(--primary-font-weight);
    font-style: var(--primary-font-style);
}

svg {
    vertical-align: bottom;
}

/* Lists */
ul {
    list-style: none;
    padding-left: 2em; /* space for bullet and text */
    font: inherit;
}
ul li {
    position: relative;
    font: inherit;
    color: inherit;
}
ul li ~ li {
    margin-top: 0.2em;
}
ul li::before {
    content: "⬢";
    position: absolute;
    left: -2em;
    top: 0.35em; /* adjust vertical positioning */
    color: var(--primary-color);
    font: inherit;
    font-size: 65%; /* 25% smaller */
    transform: rotate(30deg);
    transform-origin: center center; /* rotate around the center */
    display: inline-block;
    margin-right: 0.5em;
    line-height: 1;
}
ul ul > li::before {
    content: "⬡";
    font-weight: 900;
}

#agile-overlay {
    position: fixed; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.7);
    transition: 0.3s;
    opacity: 0;
    visibility: hidden;
    user-select: none;
    cursor: wait;
}
#agile-overlay.show {
    opacity: 1;
    visibility: visible;
}
#agile-spinner {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%) rotate(0deg);
    transform-origin: center;
    width: 80px; 
    height: 80px; 
    font-size: 80px; 
    font-family: 'Segoe UI Symbol', 'Lucida Sans Unicode', Arial, Helvetica, sans-serif; 
    color: white; 
    animation: hexagonspin 4s ease-in-out infinite;
    
}


/* Notify */
#agile-notify {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0,0,0,0.5);
    min-height: 1px;
    max-width: 50vw;
    max-height: 50vh;
    min-width: 1px;
    padding: 8px;
    color: white;
    border-radius: 8px 0 0 0;
    overflow: auto;
}
#agile-notify:empty {
    padding: 0;
}
#agile-notify .agile-notify-message {
    user-select: none;
    padding: 8px;
}
#agile-notify .agile-notify-close-button-wrapper {
    cursor: pointer;
    transition: 0.3s;
    user-select: none;
}
#agile-notify .agile-notify-close-button-wrapper:hover {
    color: var(--primary-color);
}


.bring-to-front {
    z-index: 2;
}

.context-menu {
    max-width: 400px;
    max-height: 400px;
    overflow: auto;
    position: absolute;
    min-height: 20px;
    background: white;
    border-radius: 8px;
    padding: 8px;
    box-sizing: border-box;
    text-align: left;
    border: solid 2px var(--primary-color);
}
.context-menu-item {
    white-space: nowrap;
    cursor: pointer;
    border-radius: 8px;
    padding: 2px 8px 4px 8px;
    line-height: 1;
}
.context-menu-item:hover {
    background: var(--primary-color);
    color: white;
    
}



/*
 *  Default button styling
 */
.button {
    color: gray;
    user-select: none;
    cursor: hand;
    transition: 0.3s;
    
}
.button:hover {
    color: var(--primary-color);
}



table :is(td, th).highlight {
    background: lightgray;
}