:root {
    --height-header: 54px;
    --width-userMenu: 260px;
    --radius-block: 12px;


    /* background */
    --background-main: #DF6D61; --background-main-DT: #622F2A; 
    --background-mainShade: #c96257;  --background-mainShade-DT: #6d3e39; 
    /* --background-mainShade: color-mix(in srgb, var(--background-main) 90%, rgb(0, 0, 0));  --background-mainShade-DT: color-mix(in srgb, var(--background-main-DT) 93%, rgb(255, 255, 255));  */
    --background-body: #FFE27F; --background-body-DT: #422f13;
    --background-bodyShade: #FFD37F; --background-bodyShade-DT: #412510;

    --background-success: #0080004d; --background-success-DT: #0080004d;
    --background-error: #ff00003d; --background-error-DT: #ff00003d;



    /* color */
    --color-main: #333;
    --color-link: #b55e56; --color-link-DT: #efb6b0;
    /* --color-link: color-mix(in srgb, var(--background-main) 80%, rgb(0, 0, 0)); --color-link-DT: color-mix(in srgb, var(--background-main) 50%, rgb(255, 255, 255)); */
    
    --color-orange: #ffa500; --color-orange-DD: #b87700; --color-orange-D: #da8d00; --color-orange-L: #ffaf1b; --color-orange-LL: #ffb429;
    --color-green: #00b300; --color-green-DD: #005f00; --color-green-D: #009200; --color-green-L: #00d300; --color-green-LL: #00ff00;
    --color-red: #ff0101; --color-red-DD: #aa0000; --color-red-D: #d80000; --color-red-L: #ff1b1b; --color-red-LL: #ff3737;
    --color-blue: #42aaff; --color-blue-DD: #42aaff; --color-blue-D: #42aaff; --color-blue-L: #42aaff; --color-blue-LL: #42aaff;
    --color-pink: #ff57b6; --color-pink-DD: #ff57b6; --color-pink-D: #ff57b6; --color-pink-L: #ff57b6; --color-pink-LL: #ff57b6;
    --color-gray: #808080; --color-gray-DD: #535353; --color-gray-D: #686868; --color-gray-L: #999999; --color-gray-LL: #b8b8b8; 
    --color-white: #fff;
    --color-black: #000000;
}





/* ТЕГИ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

HTML, BODY {
    height: 100%;
    overflow: hidden;
}

BODY {
    font-family: "Nunito Sans", sans-serif;
    background: #ffb86c;
    /* background: linear-gradient(310deg, rgba(242,198,128,0.83) 0%, rgba(234,180,103,0.8) 55.00000000000001%, transparent 90%, rgba(240,149,197,0.38) 100%), linear-gradient(335deg, rgb(235,109,171) 0%, rgb(243,133,161) 50%, rgb(235,106,133) 50%, rgb(238,132,141) 70%, rgb(231,143,105) 100%);
    background: linear-gradient(70deg, #ffef61 0%, transparent, #ffdf8e 50%, rgb(255, 134, 107)00%), linear-gradient(160deg, transparent, #ffb991 35%, #ffa85c 35%, #949494 100%), radial-gradient(ellipse  at 30%  70%, #FCE97F 0%, #FFB592 100%);
    background: linear-gradient(80deg, #3c7bfa 0%, transparent, #30ffa9 100%), radial-gradient(ellipse at 10% 30%, transparent, #0affca 40%, #32b4ff 55.00000000000001%, #3c7bfa 55.00000000000001%, #07f78f 100%) 85% 95%/180% 120%, linear-gradient(150deg, #0affca 0%, #09fdbc 25%, #09fbaa 50%, #08f99d 75%, #07f78f 100%);
    background: linear-gradient(199deg, transparent 0%, rgb(75,192,196) 32%, transparent 0%, transparent 100%), linear-gradient(199deg, rgb(167,100,222) 0%, rgb(167,100,222) 32%, rgb(240,127,62) 32%, transparent 0%, transparent 100%), radial-gradient(circle farthest-corner at 81%  50%, rgb(108,217,112) 0%, rgb(108,217,112) 38%, rgb(217,206,124) 38%, rgb(217,130,124) 100%);
    background: linear-gradient(20deg, rgba(183,232,137,0.54) 0%, rgba(158,194,232,0.87) 50%, rgba(223,124,172,0.91) 80%, transparent 100%), linear-gradient(350deg, rgb(111,168,229) 0%, rgb(223,124,172) 5%, rgb(197,235,161) 60%, rgb(118,176,246) 60%, rgb(221,76,147) 100%);
    background: radial-gradient(ellipse farthest-corner at 100%  100%, rgb(111,168,229) 0%, rgb(111,168,229) 31%, rgb(62,239,171) 72%, rgb(102,197,245) 70%, rgb(77,217,242) 100%);
    background: linear-gradient(45deg, transparent 0%, transparent 46%, rgb(226,180,206) 46%, rgb(227,111,210) 100%), linear-gradient(180deg, rgb(98,149,227) 0%, rgb(81,214,205) 100%);
    background: linear-gradient(122deg, transparent 0%, transparent 59%, rgb(151,104,232) 59%, rgb(151,104,232) 100%), linear-gradient(135deg, rgb(235,199,42) 0%, rgb(255,115,0) 100%);
    background: radial-gradient(ellipse farthest-corner at 100%  0%, rgb(230,128,110) 0%, rgb(230,128,110) 48%, rgb(240,169,62) 48%, rgb(103,219,245) 87%, rgb(110,186,230) 0%, rgb(110,186,230) 100%); */
    background: linear-gradient(45deg, rgba(175,124,217,0.72) 0%, rgba(175,124,217,0.72) 30%, rgb(240,127,62) 30%, transparent 66%, transparent 100%), radial-gradient(ellipse farthest-corner at 100%  100%, rgb(230,204,110) 0%, rgb(230,204,110) 40%, rgb(240,169,62) 36%, rgb(103,219,245) 73%, rgb(103,219,245) 100%);
    color: var(--color-main);
    display: flex;
    flex-direction: column;
}

.header {
    height: 50px;
    background-color: #00000054;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
}

.main {
    flex: 1;
    min-height: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px;
}


.sidebar {
    width: 250px;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-self: flex-start;   
}


/* Адаптивность */
/* @media (max-width: 1180px) {
    .sidebar-right {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .sidebar-left {
        display: none !important;
    }
} */







































FIELDSET, HR {
    border: none;
    border-top: 1px solid var(--background-blockBorder);
}
LEGEND {
  margin: 0 auto;
  padding: 0 10px;
  color: var(--color-grayLight);
  font-size: 14px;
}


/* Ссылки */
A {
    text-decoration: none;
}
.link {
    color: var(--color-link);
    text-decoration: underline;
}
.link:hover {
    text-decoration: none;
}


/* main-content */
.main-content {
    padding-top: var(--height-header);
    min-height: auto;
}


/* footer */
.footer {
    background: #131313;
    color: white;
    padding: 50px;
    font-size: 14px;
}



.drawer {
    position: fixed;
    background: white;
    z-index: 1000;
    transition: transform 0.5s ease;
    background-color: var(--background-block);
    border-color: var(--background-blockBorder);
}
.drawer[data-side="left"] {top: 0;left: 0;height: 100%;transform: translateX(-100%);}
.drawer[data-side="right"] {top: 0;right: 0;height: 100%;transform: translateX(100%);}
.drawer[data-side="top"] {top: 0;left: 0;width: 100%;transform: translateY(-100%);}
.drawer[data-side="bottom"] {bottom: 0;left: 0;width: 100%;transform: translateY(100%);}
.drawer[data-status="active"] {transform: translate(0, 0);}






/* popup */
#popup {
    background: #00000021;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 5;
    top: var(--height-header);
}
#popupFull {
    background: #0000004d;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    backdrop-filter: blur(10px);
}
#popupFull > div:nth-child(2) {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    z-index: -100;
}





/* ACTIVE CLASSES */
.activeUserMenu {right: 0 !important;}



.popup {
    background: rgba(0,0,0,0.4);
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 10;
    transition: transform 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    backdrop-filter: blur(2px);
    padding: 40px 0;    
}
.popup > div:nth-child(1) {
    max-height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
}






/*/////////////////////////////////*/
/*////////// ТЁМНАЯ ТЕМА //////////*/
/*/////////////////////////////////*/
body.dark-theme {background: linear-gradient(45deg, transparent 0%, transparent 46%, rgb(110, 37, 78) 46%, rgb(95, 33, 53) 100%), linear-gradient(180deg, rgb(32, 61, 106) 0%, rgb(30, 95, 91) 100%); color: var(--color-white);}
body.dark-theme .link {color: var(--color-link-DT);}
body.dark-theme .header {background-color: var(--background-main-DT); border-bottom: 2px solid var(--background-body-DT);}
body.dark-theme FIELDSET, body.dark-theme HR {border-top-color: var(--background-blockBorder-DT);}
body.dark-theme .drawer {background-color: var(--background-block-DT);border-color: var(--background-blockBorder-DT);}




/*/////////////////////////////////*/
/*////////// АДАПТИВНОСТЬ //////////*/
/*/////////////////////////////////*/
@media screen and (max-width: 1024px) {

}

@media screen and (max-width: 640px) {

}

@media screen and (max-width: 480px) {
    .main-content {padding-bottom: 60px;}
    .header {gap: 4px;}
}