* {
    color: rgb(213, 216, 219);
    font-family: sans-serif;
}

html {
    height: 100%;
    background-color: rgb(26, 28, 30);
}

html, body {
    padding: 0;
    margin: 0;
}

h3 {
    padding: 0;
    margin: 0;
}

body {
    display: flex;
    flex-flow: row nowrap;
    align-items: stretch;
    justify-content: stretch;
}

select, option, input {
    color: black;
}

button:hover {
  background: #4d4d4d;
  color: #e0e0e0;
  border: 2px solid #8d8d8d;
}

button {
  background: transparent;
  color: #c6c6c6;
  border: 2px solid #737373;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
}


.login {
    padding: 16px;
}

.login * {
    margin: 4px 2px;
}

.row {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
}

.column {
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    align-items: center;
}

.fill {
    height: 100%;
    width: 100%;
    margin: 0;
}

.hidden {
    display: none;
}

.file-drop-area {
    padding: 16px;
    border: dotted 2px white;
    flex: 1;
    margin: 8px;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
}

.top-bar {
    margin: 8px;
}

.table {
    display: grid;
    place-items: stretch;
    place-content: start;
    margin: 8px;
}

.table.categories {
    grid-template-columns: repeat(4, auto);
    grid-auto-rows: min-content;
}

.table.transactions {
    grid-template-columns: repeat(4, auto);
    grid-auto-rows: min-content;
}

.table.income {
    grid-template-columns: repeat(2, auto);
    grid-auto-rows: min-content;
}

.table .header {
    font-weight: bold;
}

.table .cell {
    padding: 4px;
    border: 1px solid #ffffff2f;
}

.table .cell.description {
    min-width: 300px;
}

.table .cell.surplus {
    font-style: italic;
}

.table .cell.automatic {
    color: #ffb545;
}

.table .cell.fund {
    color: rgb(123, 202, 255);
}

.table .cell.savings {
    color: rgb(126, 255, 126);
}

.table .cell.retirement {
    color: rgb(197, 97, 255);
}

.table .date.cell {
    text-align: center;
}

.table .amount.cell {
    text-align: end;
}

.table .category.cell {
    text-align: start;
}

.table .amount.cell.negative {
    background-color: rgba(255, 69, 69, 0.37);
}

.note-indicator {
    pointer-events: none;
    position: absolute;
    height: 12px;
    width: 12px;
    opacity: 0.7;
    z-index: 1;
}

.note {
    pointer-events: none;
    position: absolute;
    padding: 4px;
    border-radius: 4px;
    background-color: #414349;
    border: solid #ffffff80 2px;
    font-style: italic;
    z-index: 2;
}

.overlay {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    position: fixed;

    display: flex;
    flex-flow: column nowrap;
    justify-content: start;
    align-items: center;

    pointer-events: none;
}

.overlay > * {
    pointer-events: initial;
}

.contextMenu {
    position: absolute;
    max-height: 200px;
    overflow-y: scroll;
    display: flex;
    flex-flow: column nowrap;
    background-color: #3f3f3f;
    border-radius: 2px;
    box-shadow: 0 0 12px #00000080;
    z-index: 3;
    user-select: none;
}

.contextMenu .title {
    color: white;
    font-family: "Prompt", sans-serif;
    background-color: #7e7e7ea8;
    padding: 0 2px;
}

.contextMenu .choice {
    cursor: pointer;
    padding-left: 8px;
    padding-right: 4px;
}

.contextMenu .choice:hover,
.contextMenu .choice.active {
    background-color: #ffffff4f;
}

input.auth-token {
    flex: 1;
}
