div {
    --body_background_color: #ffffff;
    --auth_form_bgcolor: rgba(0,0,0,0.8);
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("/styles/fonts/Roboto-Light.ttf");
}

@font-face {
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 300;
    font-display: swap;
    src: url("/styles/fonts/Roboto-LightItalic.ttf");
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/styles/fonts/Roboto-Medium.ttf");
}

@font-face {
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url("/styles/fonts/Roboto-MediumItalic.ttf");
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 14pt;
}

body {
    background-color: var(--body_background_color);
}

div.auth-wrapper, div.reg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--auth_form_bgcolor);
    display: flex;
    align-items: center;
    justify-content: center;
}

div.auth-form, div.reg-form {
    max-width: 150mm;
    background-color: var(--body_background_color);
    padding: 1em;
    border-radius: 0.25em;
    box-shadow: 0 0 0.5em rgba(255,255,100,0.7);
}

div.auth-form label, div.reg-form label {
    display: block;
    font-size: 0.75em;
    font-weight: 500;
    padding-left: 1.5em;
}

div.auth-form span, div.reg-form span {
    display: block;
    padding-bottom: 1em;
    position: relative;
}

div.auth-form input, div.reg-form input {
    padding: 0.5em 1em;
    font-size: inherit;
    border: 1px #cccccc solid;
    border-radius: 2em;
    outline: none;
    transition: background-color 0.25s;
}

div.auth-form button, div.reg-form button {
    display: block;
    margin: 0 auto;
    padding: 0.5em;
    font-weight: 500;
    text-transform: uppercase;
    ьшт-width: 50%;
    background-color: var(--body_background_color);
    border: 1px #aaaaaa solid;
    border-radius: 2em;
    outline: none;
    transition: background-color 0.25s;
    cursor: pointer;
}

div.auth-form input:focus, div.auth-form button:focus, div.auth-form button:hover, div.reg-form input:focus, div.reg-form button:focus, div.reg-form button:hover {
    background-color: #aaffaa;
    border-color: #008800;
}

div.reg-form h2 {
    text-align: center;
    padding-bottom: 1em;
}

i.show-hide-pass {
    display: block;
    position: absolute;
    width: 2em;
    height: 2em;
    top: 0.15em;
    right: 0.5em;
    background-image: url("icons/eyes.png");
    background-size: cover;
    background-position: center bottom;
}

div.menu {
    position: fixed;
}

div.select-date {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3em;
    z-index: 2;
    background-color: var(--body_background_color);
    display: flex;
    align-items: center;
    justify-content: center;
}

div.select-date input {
    text-align: center;
}

div.bills {
    margin-top: 3em;
}

div.bills table {
    margin: 0 auto;
    border-collapse: collapse;
}

div.bills td, div.bills th {
    padding: 0.5em 1em;
    border: 1px #337733 solid;
}

div.bills thead th {
    text-align: center;
    font-weight: 500;
}

div.bills tfoot th {
    text-align: right;
    font-weight: 500;
}

div.bills tbody tr:hover {
    background-color: #aaffaa;
}

div.bill-info {
    padding: 1.5em 0.5em;
    margin-top: 3.5em;
}

div.bill-info p {
    padding: 0.15em 0;
}

div.bill-info p > span {
    font-weight: 500;
}

.editable, .editable-select {
    color: #008800;
}

div.bill-table table {
    border-collapse: collapse;
    margin: 0 auto;
}

div.bill-table td, div.bill-table th {
    padding: 0.25em 0.5em;
    border: 1px black solid;
}

td.num {
    text-align: right;
    position: relative;
}

div.bill-table table tfoot tr th:first-of-type {
    border-left-color: transparent;
    border-top-color: transparent;
    border-bottom-color: transparent;
}

div.bill-table table tfoot tr th {
    text-align: right;
    font-weight: 500;
}

div.bill-table input {
    width: 96%;
    border: none;
    color: #000000;
    outline: none;
    padding: 0.25em;
}
div.bill-table input:focus {
    box-shadow: 0 0 0.25em rgba(0,0,0,0.75);
}

div.bill-operations {
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 3em;
    padding: 0 1em;
    box-sizing: border-box;
    border-bottom: 2px #337733 solid;
    background-color: var(--body_background_color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

div.bill-operations button, div.accept-window button, div.delete-window button {
    padding: 0.5em 1.5em;
    border-width: 1px;
    border-style: solid;
    border-radius: 2em;
    font-weight: 500;
    font-size: 0.8em;
    /*text-transform: uppercase;*/
}

button.cancel-button {
    background-color: red;
    color: white;
    border-color: #770000;
}

button.accept-button {
    background-color: green;
    color: #FFFFFF;
    border-color: #337733;
}

button.back-button {
    background-color: #CCCCCC;
    border-color: #999999;
}

div.change-client {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 12;
    overflow-y: auto;
    display: none;
}

div.change-client > div {
    margin: 0 auto;
    width: fit-content;
}

p.client-item {
    margin: 0.5em 0;
    padding: 0.5em 1em;
    border: 1px #CCCCCC solid;
    border-radius: 2em;
    color: #FFFFFF;
    transition: background-color 0.25s;
}

p.selected {
    padding-left: 3em !important;
    position: relative;
    background-color: rgba(200,255,200,0.3) !important;
}

p.selected:after {
    content: '';
    display: block;
    position: absolute;
    width: 1.25em;
    height: 100%;
    top: 0;
    left: 1em;
    background-image: url("icons/check-mark.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

p.client-item:hover {
    background-color: rgba(255,255,255,0.3);
}

div.accept-window, div.delete-window {
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

div.accept-window > div, div.delete-window > div {
    width: fit-content;
    padding: 1em;
    background-color: #CCCCCC;
    border-radius: 1em;
}

div.accept-window h2, div.delete-window h2 {
    text-align: center;
    font-weight: 500;
    font-size: 0.8em;
}

div.accept-window p, dev.delete-window p {
    margin-top: 1em;
    text-align: center;
}

p.accept-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 15em;
    padding-top: 1em;
}

main {
    display: flex;
    flex-direction: column;
    width: fit-content;
    margin: 2em auto;
    align-items: center;
}

main > a {
    display: block;
    width: fit-content;
    padding: 0.5em 1em;
    border: 1px solid #aaaaaa;
    border-radius: 1em;
    text-decoration: none;
    margin-bottom: 1em;
    color: #000000;
    transition: all 250ms;
}

main > a:hover {
    background-color: #ccffcc;
    font-weight: bold;
}

h1 {
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 1em;
}