/* Header */

.headerProfile {
    position: absolute;
    bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 30px;
    border: 1px solid var(--em-color-lgray);
    transition: var(--em-02-seconds);
    cursor: pointer;
}
.headerProfile:hover {
    opacity: 0.5;
    border: 1px solid #a8a8a8;
}
.headerProfileContent {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 30px;
    background: rgb(175, 198, 241);
    font-family: var(--em-font);
    color: var(--em-color-white);
    font-weight: 600;
    line-height: 16px;
}
.headerMenu {
    position: fixed;
    width: 90px;
    height: 100%;
    padding: 20px;
}
.headerLogo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0 0 20px 0;
}
.headerLogo svg {
    width: 50px;
    height: 50px;
}
.headerBtn.active {
    border: none;
    background: var(--em-color-btn);
}
.headerBtn.active svg {
    stroke: var(--em-color-white);
}
.headerBtn.active:hover {
    opacity: 1;
    border: none;
}
.headerBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 30px;
    border: 1px solid var(--em-color-lgray);
    margin: 0 0 10px 0;
    transition: var(--em-02-seconds);
}
.headerBtn:hover {
    opacity: 0.5;
    border: 1px solid #a8a8a8;
}
.headerBtn svg {
    stroke: var(--em-color-gray);
    width: 24px;
    height: 24px;
}

/* Main */

main {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 10px 10px 80px;
}
.main {
    width: 100%;
    padding: 10px;
}
.block {
    background: var(--em-color-white);
    border: 1px solid var(--em-color-lgray);
    width: 100%;
    border-radius: 30px;
}
.block:nth-child(2) {
    margin: 20px 0 0 0;
}
.blockHead {
    display: flex;
    align-items: center;
    padding: 20px;
    width: 100%;
    height: 80px;
    border-bottom: 1px solid var(--em-color-lgray);
}
.blockHeadText {
    font-family: var(--em-font);
    font-weight: 600;
    font-size: 32px;
    line-height: 32px;
    padding: 0 25px 0 0;
}
.blockHeadLink {
    font-family: var(--em-font);
    color: var(--em-color-darkgray);
    display: flex;
    align-items: center;
    border-radius: 20px;
    height: 40px;
    border: 1px solid var(--em-color-lgray);
    padding: 0 20px;
    margin: 0 10px 0 0;
    transition: var(--em-02-seconds);
}
.blockHeadLink:hover {
    opacity: 0.5;
    border: 1px solid #a8a8a8;
}
.blockHeadLink.active {
    border: none;
    background: var(--em-color-btn);
    color: var(--em-color-white);
}
.blockHeadLink.active:hover {
    opacity: 1;
    border: none;
}
.blockHeadCreate {
    font-family: var(--em-font);
    display: flex;
    align-items: center;
    background: var(--em-color-btn);
    color: var(--em-color-white);
    height: 40px;
    padding: 0 20px;
    border-radius: 20px;
    margin: 0 0 0 auto;
    transition: var(--em-02-seconds);
}
.blockHeadCreate:hover {
    background: var(--em-color-btn-hover);
}
.blockHeadDelete {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffbaba;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    margin: 0 0 0 auto;
    cursor: pointer;
    transition: var(--em-02-seconds);
}
.blockHeadDelete:hover {
    background: #ffa4a4;
}
.blockHeadDelete svg {
    width: 20px;
    height: 20px;
    stroke: #ff4a4a;
}
.blockTable {
    display: flex;
    flex-direction: column;
    padding: 20px;
}
.blockTableHead {
    display: flex;
    font-family: var(--em-font);
    font-weight: 500;
    padding: 0 0 20px 0;
}
.blockTableHead div {
    display: flex;
    flex: auto;
    width: 12.5%;
}
.blockTableLink {
    display: flex;
    align-items: center;
    padding: 0 5px;
    font-family: var(--em-font);
    height: 50px;
    border-radius: 30px;
    background: var(--em-color-silver);
    margin: 0 0 5px 0;
    transition: var(--em-02-seconds);
}
.blockTableLink:hover {
    background: var(--em-color-lgray);
}
.blockTableLink .first {
    padding: 0 0 0 20px;
}
.blockTableLink img {
    object-fit: cover;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    margin: 0 10px 0 0;
}
.blockTableLink div {
    display: flex;
    align-items: center;
    flex: auto;
    width: 12.5%;
}

/* Form */

.form {
    padding: 20px 20px 10px 20px;
}
.formHeader {
    font-family: var(--em-font);
    font-size: 16px;
    color: var(--em-color-extra-accent);
    margin: 0 0 10px 0;
}
.formInput {
    font-family: var(--em-font);
    font-size: 16px;
    width: 100%;
    height: 50px;
    border-radius: 20px;
    border: 1px solid var(--em-color-lgray);
    outline: none;
    padding: 0 20px;
    margin: 0 0 10px 0;
}
.formSelect {
    font-family: var(--em-font);
    font-size: 16px;
    width: 100%;
    height: 50px;
    border: 1px solid var(--em-color-lgray);
    border-radius: 20px;
    outline: none;
    -webkit-appearance: none;
    padding: 0 20px;
    margin: 0 0 10px 0;
}
.toolbar {
    display: flex;
    margin: 0 0 10px 0;
}
.toolbar button {
    width: 50px;
    height: 50px;
    border-radius: 30px;
    border: 1px solid var(--em-color-lgray);
    background: var(--em-color-white);
    margin: 0 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--em-02-seconds);
}
.toolbar button:hover {
    opacity: 0.5;
    border: 1px solid #a8a8a8;
}
.formTextarea {
    display: flex;
    flex-direction: row;
    margin: 0 0 10px 0;
}
.formTextarea textarea {
    font-family: var(--em-font);
    width: 50%;
    border: 1px solid var(--em-color-lgray);
    background: transparent;
    padding: 20px;
    border-radius: 25px;
    outline: none;
    resize: none;
}
.formTextareaExample {
    width: 50%;
    font-family: var(--em-font);
    padding: 0 0 0 20px;
}
.formTextareaExample p {
    margin: 0 0 20px 0;
}
.formTextareaExample a {
    color: var(--em-color-accent);
}
.formTextareaExample ul {
    padding: 0 0 0 25px;
    margin: 0 0 20px 0;
}
.formTextareaExample img {
    width: 100%;
    margin: 0 0 20px 0;
    border-radius: 25px;
}
.formTextareaExample iframe {
    width: 100%;
    margin: 0 0 20px 0;
    border-radius: 25px;
}
.formTextareaExample h2 {
    margin: 0 0 20px 0;
}
.formPhoto {
    display: flex;
}
.formPreview {
    margin: 0 0 10px 0;
}
.formPhotoEdit .formPreview {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 25px;
    border: 1px solid var(--em-color-lgray);
    overflow: hidden;
    margin: 0 10px 10px 0;
}
.formPreviewDelete {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: var(--em-02-seconds);
}
.formPreviewDelete button {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
}
.formPreviewDelete svg {
    width: 40px;
    height: 40px;
    stroke: var(--em-color-white);
}
.formPreview:hover .formPreviewDelete {
    opacity: 1;
}
.formPreview img {
    display: flex;
    object-fit: cover;
    width: 120px;
    height: 120px;
    border-radius: 25px;
    border: 1px solid var(--em-color-lgray);
    margin: 0 10px 0 0;
}
.formUpload {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 120px;
    border-radius: 25px;
    border: 1px solid var(--em-color-lgray);
    margin: 0 0 10px 0;
    cursor: pointer;
}
.formUpload:hover svg {
    opacity: 0.5;
}
.formUpload span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.formUpload svg {
    width: 40px;
    height: 40px;
    stroke: var(--em-color-gray);
    transition: var(--em-02-seconds);
}
.formUpload input[type=file] {
    position: absolute;
    z-index: -1;
    opacity: 0;
    display: block;
    width: 0;
    height: 0;
}
.formButton {
    font-family: var(--em-font);
    font-size: 16px;
    height: 50px;
    border-radius: 20px;
    background: var(--em-color-btn-text) !important;
    color: var(--em-color-white) !important;
    border: none;
    outline: none;
    padding: 0 30px;
    margin: 10px 0;
    cursor: pointer;
    transition: var(--em-02-seconds);
}
.formButton:hover {
    opacity: 0.8;
}
.formPhotoEdit {
    display: flex;
    padding: 20px 20px 10px 20px;
}
.formPhotoEdit .form {
    padding: 0;
}
.authBlock {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.authHead {
    display: flex;
    justify-content: flex-start;
    font-family: var(--em-font);
    font-size: 36px;
    font-weight: 500;
    padding: 30px 30px 0 30px;
}
.authForm {
    position: relative;
    background: var(--em-color-white);
    border: 1px solid var(--em-color-lgray);
    width: 300px;
    border-radius: 40px;
    z-index: 10;
}
.authForm form {
    padding: 30px 30px 20px 30px;
}
.authForm .formButton {
    width: 100%;
}
.authBackground {
    position: absolute;
    width: 100%;
    bottom: -300px;
    left: 0;
    scale: 1.1;
}
.authBackground svg {
    width: 100%;
}
.formLogoutBlock {
    margin: 0 0 0 auto;
}
.formLogout {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffbaba;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: var(--em-02-seconds);
}
.formLogout:hover {
    background: #ffa4a4;
}
.formLogout svg {
    width: 20px;
    height: 20px;
    stroke: #ff4a4a;
}
.formDownloadBlock {
    display: flex;
    margin: 0 0 0 auto;
}
.formDownload {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--em-color-btn);
    width: 40px;
    height: 40px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: var(--em-02-seconds);
}
.formDownload:hover {
    background: var(--em-color-btn-hover);
}
.formDownload svg {
    width: 20px;
    height: 20px;
    stroke: var(--em-color-btn-text);
}
.formDownloadDate {
    border: 1px solid var(--em-color-lgray);
    padding: 0 20px;
    border-radius: 20px;
    font-family: var(--em-font);
    margin: 0 10px 0 0;
}

/* Modal */

.modal {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .3);
    backdrop-filter: blur(4px);
    z-index: 799;
    top: 0;
    left: 0;
}
.modal.active {
    display: flex;
}
.modalBackClose {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 800;
    cursor: pointer;
}
.modalContainer {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px;
    border-radius: 30px;
    width: 380px;
    background: var(--em-color-white);
    z-index: 801;
}
.modalContainer h2 {
    font-family: var(--em-font);
    font-size: 24px;
    color: var(--em-color-darkgray);
    margin: 0 0 25px 0;
}
.modalContainer a {
    color: var(--em-color-accent);
}
.modalContainer a:hover {
    text-decoration: underline;
}
.modalContainer p {
    font-family: var(--em-font);
    font-size: 16px;
    color: var(--em-color-extra-accent);
    margin: 0 0 10px 0;
}
.modalContainer input {
    font-family: var(--em-font);
    font-size: 16px;
    width: 100%;
    height: 50px;
    border-radius: 20px;
    border: 1px solid var(--em-color-lgray);
    outline: none;
    padding: 0 20px;
    margin: 0 0 10px 0;
}
.modalContainer select {
    font-family: var(--em-font);
    font-size: 16px;
    width: 100%;
    height: 50px;
    border: 1px solid var(--em-color-lgray);
    border-radius: 20px;
    outline: none;
    -webkit-appearance: none;
    padding: 0 20px;
    margin: 0 0 10px 0;
}
.modalContainer button {
    font-family: var(--em-font);
    font-size: 16px;
    width: 100%;
    height: 50px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    background: #ffbaba;
    color: #ff4a4a;
    transition: var(--em-02-seconds);
}
.modalContainer button:hover {
    background: #ffa4a4;
}
.modalClose {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--em-font);
    font-size: 16px;
    width: 100%;
    height: 50px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    background: var(--em-color-btn);
    color: white;
    transition: var(--em-02-seconds);
}
.modalClose:hover {
    background: var(--em-color-btn-hover);
}
.modalButtons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.blockTable.main {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.statBlock {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 25px;
    border: 1px solid var(--em-color-lgray);
    overflow: hidden;
    transition: var(--em-02-seconds);
}
.statBlock:hover {
    background: var(--em-color-silver);
}
.statBlockName {
    font-family: var(--em-font);
    font-weight: 500;
    padding: 25px;
}
.statBlockValue {
    position: absolute;
    bottom: 0;
    font-family: var(--em-font);
    font-weight: 600;
    padding: 25px;
    font-size: 48px;
    line-height: 48px;
}
.statBlock svg {
    position: absolute;
    top: 25px;
    right: 25px;
    height: 40px;
}
.statBlock:nth-child(1) svg {
    stroke: #637dff;
}
.statBlock:nth-child(2) svg {
    stroke: #d06bff;
}
.statBlock:nth-child(3) svg {
    stroke: #65fc6d;
}
.statBlock:nth-child(4) svg {
    stroke: #fe4d4d;
}