:root {
    --main-font-family: "Inter", BlinkMacSystemFont,-apple-system,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
    --list-hover-colour: #335c85;
}

* {
    font-family: var(--main-font-family);
}

a {
    text-decoration: none;
    color: inherit;
}

body {
    margin: 0;
    padding: 0;
    background-color: #242424;
    color: white;
    font-family: var(--main-font-family);
    font-size: 12pt;
}

body[aria-hidden='true'] {
    overflow: hidden;
}

input, textarea, select {    
    margin-top: 0.25rem;
    margin-bottom: 0;
    padding: 4px 8px;
    font-family: var(--main-font-family);
    font-size: 1em;
    color: #e0e0e0;
    background-color: #404040;
    outline: none;
    border: solid 1px #484848;
}

input[type="checkbox"] {
    border-width: 0px;
    transform: scale(1.5);
    filter: invert(100%) hue-rotate(23deg) brightness(2);    
    margin-right: 8px;
    cursor: pointer;
}

textarea:focus, input:focus {
    border-color: #c0c0c0;
    /* box-shadow: 0 0 4px #9ecaed; */
}

input[type="checkbox"] + label {
    cursor: pointer;
}

textarea::-webkit-scrollbar {
    width: 0.5em;
}
 
textarea::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px #505050;
}
 
textarea::-webkit-scrollbar-thumb {
    background-color: #707070;
    outline: 1px solid #808080;
}

textarea::-webkit-scrollbar-thumb {
    color: #505050;
}


.label {
    color: #a0a0a0;
    margin-top: 0px;
    margin-bottom: 2px;
    font-size: 0.9rem;
    font-weight: normal;
}

.label:not(:first-child) {
    margin-top: 6px;
    margin-bottom: 0px;
}

/* div {
    color: white;
} */

h1, h2, h3, h4, h5 {
    margin-top: 0;
    margin-bottom: 0.25rem;
}

form .label:not(:first-child) {
    margin-top: 8px;
}

p:not(:first-child) {
    margin-top: 0;
    min-height: 1.25rem;
    margin-bottom: 1rem;
}

/* Autochoice lists */
[data-list] {
    margin-block-start: 0;
}

[data-list] + select {
    margin-left: -13px;
    margin-top: -2px;
    margin-bottom: 8px;
}

button {
	padding: 6px 18px;
	/* margin: 0px 10px 10px 0px;	 */
    margin: 4px;
	border-radius: 0.2em;
	color: #FFF;
	text-decoration: none;
	cursor: pointer;
	background-color: #3498db;
	border: none;
	border-top: 1px solid #1478bb;
	border-bottom: 4px solid #1478bb;
	text-shadow: 0px 1px #0960b9;
    font-size: 0.75em;
}

button:active
{
	transform: translate(0px,3px);
    -webkit-transform: translate(0px,3px);
    border-bottom: 4px solid #2980b9;
	outline: none;
}

button[disabled]:active {
	transform: translate(0px,0px);
    -webkit-transform: translate(0px,0px);
	outline: none;
}

button:focus { outline: none; }

button.is-danger {
    background-color: #ff3434;
	border-top: 1px solid #a03434;
	border-bottom: 4px solid #a03434;
    text-shadow: 0px 1px #a03434;
}

button.is-subtle {
    background-color: #808080;
	border-top: 1px solid #404040;
	border-bottom: 4px solid #404040;
    color: #e0e0e0;
    text-shadow: 0px 1px #303030;
}

button:disabled {
    color: #808080;
	text-shadow: 0px 1px #202020;
    background-color: #404040;
	border-top: 1px solid #505050;
	border-bottom: 4px solid #303030;
    cursor: not-allowed;
    outline: none;
}

hr {
    border: none;
    margin: 1em 0px;
    padding: 0;
    border-top: 1px solid #505050;
}

table {
    text-align: left;
    border-collapse: collapse;
    width: 100%;
}

tr {
    border-bottom: dotted 1px #404040;
}

th {
    font-size: 0.9em;
    color: #a0a0a0;
    border-bottom: solid 2px #505050;
    padding: 8px 0px;
}

td {
    font-size: 1em;
    color: white;
    padding: 6px 0px;
}

td:first-child {
    padding-left: 6px;
}

td:last-child {
    padding-right: 6px;
}

.is-hidden {
    display: none !important;
}

.is-invisible {
    visibility: hidden !important;
}

.filler {
    display: inline-block;
    width: 6rem;
}

.header {
    display: flex;
    background-color: inherit;
    align-items: center;
    padding: 12px 24px;
}

.navigation {
    position: relative;
    padding: 12px 24px;
}

.main {
    position: relative;
    padding: 12px 24px;
    overflow-y: auto;
    min-height: 60vh;
}

div::-webkit-scrollbar {
    width: 0.5em;
}
 
div::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px #505050;
}
 
div::-webkit-scrollbar-thumb {
    background-color: #707070;
    outline: 1px solid #808080;
}

/*.main::-web.....*/
div::-webkit-scrollbar-thumb {
    color: #505050;
}

.actions {
    position: relative;
    border-left: solid 1px #404040;
    padding: 18px 24px;
}

.footer {
    position: relative;
    border-top: solid 1px #404040;
    padding: 18px 24px;
}

.footer > img {
    height: 28px;
    vertical-align:sub;
}

.footer #statusMessage {
    margin-left: 2em;
    font-size: x-large;
    display: inline-block;
}

.is-busy {
    background-image: 
        repeating-linear-gradient(
            -45deg, 
            #202020, 
            #202020 1rem,
            #282828 1rem,
            #282828 2rem
        );
    background-size: 200% 200%;
    animation: barberpole 8s linear infinite;
}

@keyframes barberpole {
    0% { background-position: 100% 100%;}
    100% {
        background-position: 0% 0%;
    }
}


[aria-busy="true"] {
    cursor: progress;
}

[aria-busy="true"]:not(input):not(select):not(textarea)::before {
    display: inline-block;
    width: 0.75em;
    height: 0.75em;
    border: 0.1875em solid white;
    border-radius: 1em;
    border-right-color: transparent;
    vertical-align: text-bottom;
    vertical-align: -.125em;
    animation: spinner 0.75s linear infinite;
    content: '';
    opacity: 1;
}

[aria-busy="true"]:not(input):not(select):not(textarea):not(:empty)::before {
    margin-right: 8px;
}

[aria-busy="true"]:not(input):not(select):not(textarea):empty {
    text-align: center;
}

button[aria-busy="true"],
input[type="submit"][aria-busy="true"],
input[type="button"][aria-busy="true"],
input[type="reset"][aria-busy="true"],
a[aria-busy="true"] {
    pointer-events: none;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}


.container {
    display: grid;
    height: calc(100vh - 12px);
    grid-template-rows: auto auto 1fr auto ;
    gap: 0px;
    background-color: inherit;
}

.sidebar {
    position: relative;
    padding: 12px 24px;
    background-color: #303030;
    border-right: solid 1px #404040;
}

/* .header .company {
    width: 100%;
    float: left;
}

.header .tools {
    width: 100%;
    float: left;
    text-align: right;
} */


/* Grid sizes based on screen size */
@media screen and (min-width: 720px) {
    .container {
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: auto auto 1fr auto;
    }
    .sidebar { grid-column: 1 / span 3; grid-row-start: 1; grid-row-end: 4; }
    .header { grid-column: 4 / span 9; }
    .navigation { grid-column: 4 / span 9; }
    .main { grid-column: 4 / span 7; }
    .actions { grid-row: 3; grid-column: 11 / span 2;}
    .footer { grid-column: 1 / span 12; }
}

@media screen and (min-width: 1020px) {
    .sidebar { grid-column: 1 / span 2; grid-row-start: 1; grid-row-end: 4; }
    .header { grid-column: 3 / span 10; }
    .navigation { grid-column: 3 / span 10; }
    .main { grid-column: 3 / span 8; }
    .actions { grid-row: 3; grid-column: 11 / span 2;}
    .footer { grid-column: 1 / span 12; }
}
