html {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
  }
  
*,
*::before,
*::after {
    box-sizing: inherit;
}
  
a {
    color: inherit;
    text-decoration: none;
}
  
img {
    max-width: 100%;
}
  
body {
    margin: 0;
    font-family: 'Roboto', Verdana, sans-serif;
    min-width: 100%;
    min-height: 100%;
    background-color: #E8F1FF;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 75px;
    padding: 0 75px;
    background: #103A84;
}

.user {
    display: flex;
    cursor: pointer;
}

.logo {
    width: 50px;
}

.username {
    margin-right: 20px;
    font-size: 18px;
    font-weight: 700;
    line-height: 21px;
    color: #fff;
}

.avatar {
    width: 50px;
    height: 50px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #168cd1 url('img/avatar.png') no-repeat center center;
    background-size: 75%;
}

.main {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 50px;
}

.nav {
    position: relative;
    display: block;
    width: 50%;
    margin: 0 auto;
}

.search{
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-input {
    width: 100%;
    border: 1px solid #1f3f76;
    border-radius: 30px;
    background: #fff;
    outline: none;
    padding: 12px 20px;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
}

.search-button {
    width: 40px;
    height: 40px;
    margin-left: -40px;
    padding: 19px;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    border: none;
    background: #1f3f76 url('img/search.svg') no-repeat 40% center;
    cursor: pointer;

}

/* Выдвигающиеся списки */

.filter {
    width: 100%;
    justify-content: space-between;
    padding-right: 40px;
    /*собсно контейнер адаптива это всё что ниже, остальное пиши над коментом*/
    display: grid;
    grid-template-areas:
        "g g r r"
        "g g r r"
        "e e e e";
}

.empty{
    grid-area: e;
    height: 10px;
}

@media (max-aspect-ratio: 1),(orientation: portrait) {
    .filter {
        grid-template-areas:
            "g g g g"
            "e e e e"
            "r r r r";
    }
}/*меняет настройки grid если соотношение ширина/высота экрана=1 или в chrome ориентация портретная*/

@media (-webkit-max-width: 70%), (max-aspect-ratio: 1.5) {
    .nav{
        width: 80%;
    }
}

.filter-group {
    grid-area: g;
    display: flex;
}

.filter-role {
    grid-area: r;
    display: flex;
}

.filter-name {
    margin: 0;
    width: 90%;
    background: #1f3f76;
    padding: 10px 8px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 16px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
} 

.group,
.rol {
    width: 100%;
    background-color: #fff;
    border: 1px solid #121212;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    line-height: 1.3;
    padding: .6em;
    font-size: .9em;
}

.group-p,
.group-p1 {
    margin: 0;
    padding: 9px 8px;
    border: 1px solid #1f3f76;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    font-size: 14px;
    line-height: 16px;
    font-weight: 400;
    color: #121212;
    background: #fff url('img/arrow-down.svg') no-repeat 95% center;
    cursor: pointer;

}

.list li {
    list-style: none;
}

.group-sel-op {
    font-size: 14px;
    line-height: 16px;
    font-weight: 400;
    color: #121212;
}

.group-sel-op:focus {
    border-color: #aaa;
    box-shadow: 0 0 1px 3px rgba(59, 153, 252, .7);
    box-shadow: 0 0 0 3px -moz-mac-focusring;
    color: #222;
    outline: none;
}

.group-sel-op:hover {
    border-color: #ccc;
}

/* Таблица */

.table {
    margin: 0 auto;
    margin-top: 50px;
    width: 100%;
    background: #fff;
    border-collapse: collapse;
}

.table td{
    border-bottom: 4px solid #E8F1FF;
    padding: 10px 25px;
    font-size: 16px;
    line-height: 21px;
}

.table-names > td {
    font-weight: 700;
}

.func {
    text-align: right;
}

.table-btn {
    padding: 15px;
    border: none;
    outline: none;
    cursor: pointer;
}

.new-user {
    background: url('img/plus.svg') no-repeat center center;
    border-radius: 50%;
}

.change {
    background: url('img/pencil.svg') no-repeat center center;
    margin-right: 25px;
}

.delete {
    background: url('img/delete.svg') no-repeat center center;
}

/* Поле для добавления нового юзера */

.new-user-block {
    display: none;
    position: absolute;
    min-width: 600px;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    padding: 20px 45px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0,0,0,.4);
}

.back-form {
    display: none;
    top: 0;
    left: 0;
    position: fixed;
    z-index: 2;
    width: 100vw;
    height: 100vh;

}

.new-user-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.new-user-main > div {
    margin: 3% 0;
}

.lists{
    width: 50%;
}

.new-user-role {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.role-name {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
}

.input-role {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    border: 2px solid #1f3f76;
    transition: 0.2s all linear;
    outline: none;
    position: relative;
    cursor: pointer;
}

.input-role:checked {
    border: 6px solid #1f3f76;

}

.inputs {
    display: flex;
    flex-direction: column;
}

.new-user-p {
    margin: 0;
    padding: 10px 0;
    text-align: center;
    font-weight: 700;
    font-size: 17px;
}

.input {
    padding: 10px 15px;
    margin-top: 10px;
    border: 2px solid #1f3f76;
    border-radius: 5px;
    font-size: 14px;
}

.error {
    border-color: #F05454;
}

.new-user-btns {
    margin: 0 auto;
    padding: 10px 0;
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.new-user-btn {
    padding: 10px 25px;
    box-sizing: border-box;
    border: 2px solid #1f3f76;
    outline: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    border-radius: 5px;
    transition: 0.3s background;
}

.exit {
    background: none;
    color: #1f3f76;
}

.exit:hover {
    background-color: #F5F5F5;
}

.exit:active {
    background-color: #1f3f76;
    color: #fff;
}

.create {
    background-color: #1f3f76;
    color: #fff;
}

.create:hover {
    background: #142b53;
}

.create:active {
    background: none;
    color: #1f3f76;
}

.new-user-group {
    padding-top: 65px;
    display: flex;
}

.n-hidden {
    color: #121212;
    background-color: #fff;
    pointer-events: auto;
}

.hidden {
    color: transparent;
    background: #F5F5F5;
    pointer-events: none;
}