.container{
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.container .head{
    width: 100%;
    max-width: 1600px;
    height: 40px;
    background-color: #384e97;
    overflow: visible;
    z-index: 2;
    font-weight: 400;
    display: flex;
    align-items: center;
    padding: 0 7.5px;
}

.container .head ul.main-menu{
    width: 100%;
    height: 30px;
    display: inline-block;
}

.container .head ul.main-menu li{
    float: left;
    list-style: none;
    max-width: 150px;
    width: max-content;
    height: 30px;
    line-height: 30px;
    margin-right: 5px;
    background-color: #304383;
    font-size: 12px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: .6px;
    color: #ffffff;
    padding: 0 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all linear .3s;
}

.container .head ul.main-menu li:hover,
.container .head ul.main-menu li.active{
    background-color: #ffffff;
    color: #384e97;
}

.container .content{
    width: 100%;
    max-width: 1600px;
    height: calc(100% - 40px);
    background-color: #f9ffff;
    padding: 10px;
    overflow-x: hidden;
    overflow-y: auto;
}

.container .content table{
    width: 100%;
    height: auto;
    border-collapse: collapse;
}

.container .content table :is(td,th){
    border: 1px solid #dedede;
    font-weight: 400;
    font-size: 13px;
    padding: 4px 7px 3px 7px;
    text-align: left;
    letter-spacing: .7px;
}

.container .content table tr:first-child th div.th-con{
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.container .content table tr:first-child th div.th-con button{
    margin-left: 8px;
    border: 0;
    height: 30px;
    background-color: #0b5681;
    padding: 0 7.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 7px;
    margin-right: -3px;
    color: #fff;
    border-radius: 5px;
}

.container .content table tr:first-child th div.th-con button span{
    font-weight: 300;
    letter-spacing: .7px;
}

.container .content table tr:nth-child(2):has(th){
    background-color: #0b5681;
    border-color: #4e819e;
    color: #fff;
}

.container .content table td{
    color: #333;
    letter-spacing: .7px;
}

.container .content table tr{
    height: 30px;
}

.container .content table :is(td:first-child, th:first-child){
    width: 50px;
    text-align: center;
}

.container .content table :is(td:nth-child(2), th:nth-child(2)){
    width: 170px;
}

.container .content table :is(td:nth-last-child(2), th:nth-last-child(2), td:nth-last-child(3), th:nth-last-child(3)){
    width: 150px;
    text-align: center;
}

.container .content table td button{
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
}

.container .content table td button.view{
    background-color: #0b5681;
}

.container .content table td button.update{
    background-color: #ffe365;
    color: #000;
}

.container .content table td button.erase{
    background-color: #ff3e3e;
}

.container .content table tr :is(td:last-child, th:last-child),
.container .content table tr td div.td-btn{
    width: calc(32px * 3 + 2 * 5px);
    text-align: center;
}
.container .content table tr td div.td-btn{
    display: flex;
    column-gap: 5px;
}

.modal{
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .3);
    backdrop-filter: blur(2px);
    position: fixed;
    inset: 0;
    z-index: 10;
}

.hide{
    display: none !important;
}

.modal .modal-body{
    float: right;
    width: 100%;
    max-width: 700px;
    height: 100%;
    background-color: #f9ffff;
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: 40px calc(100% - 80px) 40px;
}

.modal .modal-body:has(#view_data){
    grid-template-rows: 40px calc(100% - 40px);
}

.modal .modal-body .modal-head{
    background-color: #0b5681;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.modal .modal-body .modal-head span{
    font-weight: 400;
    letter-spacing: 1px;
    font-size: 15px;
}

.modal .modal-body .modal-foot button,
.modal .modal-body .modal-head button{
    height: 30px;
    width: 30px;
    margin-right: -10px;
    border: 0;
    border-radius: 50%;
    background-color: #ed4040;
    color: #fff;
}

.modal .modal-body .modal-foot{
    background-color: #ededed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.modal .modal-body .modal-foot button{
    width: auto;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 5px;
    border-radius: 5px;
    margin: 0;
    font-weight: 400;
}

.modal .modal-body .modal-foot button i{
    font-size: 10px;
}

.modal .modal-body .modal-foot button:last-child{
    background-color: #01863d;
}

.modal .modal-body .modal-foot button span{
    font-weight: 400;
    letter-spacing: .7px;
}

.modal .modal-body .modal-content{
    padding: 15px;
    overflow-x: hidden;
    overflow-y: auto;
}

.modal .modal-content ul{
    width: 100%;
    border-radius: 10px;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 0 15px #dedede;
    border: 1px solid #dedede;
}

.modal .modal-content ul li{
    width: 100%;
    min-height: 30px;
    display: grid;
    align-items: center;
    font-size: 14px;
    word-break: break-all;
    border-bottom: 1px solid #6987998a;
    padding: 5px 0;
    margin-bottom: 3px;
    grid-template-columns: 100px auto;
    color: #444;
}

.modal .modal-content ul li:last-child{
    border: 0;
    margin-bottom: 0;
}

.modal .modal-body .modal-content form{
    width: 100%;
}

.modal .modal-body .modal-content form .form-block{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 25px max-content;
    row-gap: 4px;
    margin-bottom: 10px;
    align-items: flex-end;
}

.modal .modal-body .modal-content form .form-block label{
    font-size: 15px;
    color: #666;
    letter-spacing: .7px;
}

.modal .modal-body .modal-content form .form-block label span{
    color: #ed4040;
    margin-left: 10px;
}

.modal .modal-body .modal-content form .form-block :is(select, input, textarea){
    height: 34px;
    border: 1px solid #efefef;
    padding: 5px 7px;
    letter-spacing: .7px;
    font-weight: 300;
    outline: none;
    border-radius: 3px;
}

.modal .modal-body .modal-content form .form-block textarea{
    min-height: 80px;
    max-height: 200px;
    resize: vertical;
    overflow-y: auto;
}

button.export-excel{
    width: auto !important;
    border-radius: 5px !important;
    background-color: #304383 !important;
    padding: 0 8px;
}

#search_inp{
    margin-right: auto;
    border: 1px solid #dedede;
    border-radius: 5px;
    padding: 5px 7px;
    outline: none;
}

#clear_search{
    background-color: #304383;
}