/**
 * добавлять классы отсюда для единообразной стилизации компонентов
 */

body {
    --primary-color: #00a9e0; /*#FFCC00;#CA3A27;#3d60a3;*/ 
    --secondary-color: #00a9e0;/*#FFCC00;*/
    --background-color: #ffff;
    --accent-color:  #ff9435;;
    --bar-color: #8fd4f5;
    --black-color: #00060c;
    --action-color: #00BCD4;
}

.primary-color-button {
    color: #fff;
    text-shadow: none;
    background: var(--primary-color);
    background: #00a9e0;
}
@media(max-width: 768px){
    ::-webkit-scrollbar {
        -webkit-appearance: none;
    }
    
    ::-webkit-scrollbar:vertical {
        width: 12px;
    }
    
    ::-webkit-scrollbar:horizontal {
        height: 12px;
    }
    
    ::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, .5);
        border-radius: 10px;
        border: 2px solid #ffffff;
    }
    
    ::-webkit-scrollbar-track {
        border-radius: 10px;  
        background-color: #ffffff; 
    }
}

@media(max-width: 768px) and (max-height: 812px){
    .table-wrapper{
        /* max-height: calc(100vh - 410px); */
        margin-bottom: 8px;
    }
}
@media(max-width: 320px) and (max-height: 568px){
    .table-wrapper{
        max-height: inherit;
    }
}

.secondary-color-button {
    color: white;
    text-shadow: none;
    background: var(--secondary-color);
    background: #00a9e0;
}

.accent-color-button {
    /* color: var(--background-color) !important; */
    text-shadow: none;
    border: 0 !important;
    background: var(--accent-color); 
    background: #ff9435;
    color: #fff;
    transition: ease-out .3s;
}
.accent-color-button:hover{
    background: #ca650b !important;
    transition: ease-out .3s;
}
.white-button {
    color: var(--secondary-color);
    text-shadow: none;
    background: white !important;
}
/**убирает границу и скругление с кнопок*/
.flat-button {
    border: 0;
    border-radius: 0;
}
/**инпут с чёрной рамкой без скруглений*/
.flat-input {
    border: 1px solid black;
    border-radius: 0 !important;
    width: 100px;
}
/**применять к заголовкам страниц*/
.page-title {
    text-align: center;
    color: var(--primary-color);/*primary*/
    margin-bottom: 20px;
    font-weight: initial;
}
/**добавляет полупрозрачній фон для лучшей читаемости белого на светлом*/
.ghost-background {
    background: rgba(240, 248, 255, 0.8);
    color: var(--primary-color);
    padding: 10px;
}
/** добавляет стиль свёрстанным руками таблицам */
/* ... */

/** добавляет скролл внутри таблицы, если она не помещается по горизонтали на странице */
.table-wrapper{
    width: 100%;
    overflow: auto;
}

/** добавлять к ссылкам, внутри которых изображение */
.image-link{
    padding: 0;
}

/** добавлять к элементам, которые отрисовываются слева от input'ов, чтобы выровнять их по-web2py'евски */
.allign-as-web2py-input{
    padding: 4px 6px;
    margin: 0 0 10px;
}

/* style for buttons bottom control  pobut*/
.button-rows {
    display: flex;
    width: 690px;
    margin: 0 auto;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.button-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
}
.button-row a {
    border-radius: 4px;
    height: 30px;
    width: 220px;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* margin-right: 10px; */
}
.button-row a:last-child{
    margin-right: 0;
}
.button-row:last-child {
    margin-bottom: 0;
}
@media (max-width: 998px){
    .container-for-btn .button-rows{
      margin-top: 0;
      margin-bottom: 10px;
    }
  }
@media (max-width: 855px){
    .button-row {
        flex-direction: row;
    }
}
@media (max-width: 760px){
    .container-for-btn .button-rows {
        width: 100%;
        flex-direction: column;
        margin-bottom: 0;
    }
    .button-row {
        flex-direction: column;
        margin-bottom: 0;
        width: 280px;
    }
    .button-row a{
        margin-right: 0;
        margin-bottom: 10px;
        height: 40px;
        width: 100%;
    }
}
@media (max-width: 280px){
    .button-row {
        width: 100%;
    }
}
/* end style for buttons bottom control */

/* style for bottoms control  yr*/
.nuv-but-legal-top{
   width: 700px;
   margin: 0 auto;
   display: flex;
   justify-content: center;
   flex-wrap: wrap;
   margin-bottom: 20px;
}
.nuv-but-legal-top .btn{
    width: 220px;
    font-size: 14px;
    border-radius: 4px;
    margin-right: 10px;
}
.nuv-but-legal-top .btn:last-child{
    margin-right: 0;
    margin-bottom: 0;
}
.nuv-but-legal-bottom{
    display: flex;
    justify-content: center;
    width: 800px;
    margin: 0 auto;
    margin-bottom: 20px;
}
.nuv-but-legal-bottom .column-item{
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin: 0 auto;
    align-items: center;
}
.navigation_links .btn{
    font-size: 14px;
    border-radius: 4px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 880px){
    .nuv-but-legal-bottom,
    .nuv-but-legal-top{
        width: 100%;
    }
    .nuv-but-legal-bottom{
        flex-direction: column;
    }
    .nuv-but-legal-top{
        width: 100%;
    }
    .nuv-but-legal-top .btn{
        margin-bottom: 10px;
        height: 40px;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}
@media (max-width: 475px){
    .nuv-but-legal-top .btn{
        margin-right: 0;
    }
}
/* end  style for bottoms control  yr*/

.buttons_legal_post{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 800px;
    margin: 0 auto;
}
.buttons_legal_post .btn{
    width: 250px;
    margin-bottom: 10px;
}
.buttons_legal_post .btn:last-child{
    margin-bottom: 0;
}
@media(max-width: 900px){
    .buttons_legal_post{
        width: 100%;
    }
}
@media(max-width: 850px){
    .buttons_legal_post{
        width: 100%;
        align-items: center;
        justify-content: space-around;
        margin-bottom: 10px;
    }
    .buttons_legal_post .btn{
        width: 280px;
    }
    .buttons_legal_post .btn:last-child {
        margin-bottom: 10px;
    }
}