:root {
    --color-dark: #3a3a3a;
    --color-light: #faf6f1;
	--radius: 20px;
	--icon-size: 80px;
}
::-moz-selection {
    color: white;
    background: #00000099;
}
::selection {
    color: white;
    background: #00000099;
}

* {
	outline: none;
}
.hidden {
	display: none !important;
}
body {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;

    margin: 0;
    padding: 0;
    height: 100dvh;
    user-select: none;
    font-family: "Alegreya Sans SC", sans-serif;
    color: var(--color-dark);
    background-color: var(--color-light);
}

a {
    color: var(--color-dark);
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}

main {
    display: flex;
    flex-direction: column;
    width: 500px;
    max-width: calc(100dvw - 50px);
    max-height: calc(100dvh - 50px);
}

#timestamp {
    margin-bottom: 10px;
}

#table {
    overflow-y: scroll;
    padding: 10px;
}

.org,
.suborg {
    overflow: hidden;
    border-radius: var(--radius);
    border: 3px solid var(--color-dark);
}
.org {
    margin-bottom: 10px;
    border-radius: var(--radius);
    border: 3px solid var(--color-dark);
}

.suborg {
    border-radius: calc(var(--radius) / 2);
    cursor: pointer;
}

.org-header,
.suborg-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px;
    padding: 5px 10px;
    color: var(--color-light);
    background-color: var(--color-dark);
}

.suborg-date {
    font-size: 80%;
}

h1 svg {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.org-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 10px;
    gap: 10px;
}
@media screen and (max-width: 500px) {
    .org-main {
        grid-template-columns: 1fr;
    }
}

.suborg-main {
    margin: 10px;
}

.org-header b,
.suborg-main b {
    margin-left: 5px;
    font-size: 150%;
}

.arrow-reverse,
.entry.out .entry-amount span {
    display: inline-block;
    -moz-transform: scaleX(-1);
	-o-transform: scaleX(-1);
	-webkit-transform: scaleX(-1);
	transform: scaleX(-1);
	-ms-filter: "FlipH";
	filter: FlipH;
	text-align: right;
}

.entry.in .entry-amount,
.suborg-in {
    color: forestgreen;
}

.entry.out .entry-amount,
.suborg-out {
    color: firebrick;
}

.suborg-entries {
    max-height: 0;
    overflow: auto;
    transition: all .5s ease-in-out;
}

.suborg.open .suborg-entries {
    max-height: 200px;
}

.entry {
    display: flex;
    justify-content: space-between;
    margin: 10px;
}

.entry-info {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.entry-date,
.entry-debit {
    text-align: right;
    font-size: 70%;
}

#footer {
    margin-top: 10px;
    text-align: center;
    opacity: .7;
}

body:not(.loading) .lds-ripple {
    display: none;
}

.lds-ripple {
    position: relative;
    width: 40px;
    height: 40px;
    margin-top: 20px;
}

.lds-ripple div {
    position: absolute;
    border: 2px solid var(--color-dark);
    opacity: 1;
    border-radius: 50%;
    animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.lds-ripple div:nth-child(2) {
    animation-delay: -0.5s;
}

@keyframes lds-ripple {
    0% {
        top: 18px;
        left: 18px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 18px;
        left: 18px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 18px;
        left: 18px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 36px;
        height: 36px;
        opacity: 0;
    }
}