@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto--VariableFont_wdth.ttf') format('ttf'),
}

* {
    padding: 0px;
    margin: 0px;
    font-family: 'Roboto', sans-serif;
}

input:focus {
    outline: none;
}

body {
    overflow-x: hidden;
    overflow-y: hidden;
}

#Rib {
    --mainColor: #525252;
    --mainColor2: #BDBDBD;
    --mainColor3: #4D4D4D;
    --txtColor: #fff;
    --txtColor2: #000;
    --txtColor3: #C3C3C3;
    --btnAccent: #60BD82;
    --pad1: 6px;
    --pad2: 8px;
    --brdrRad: 5px;
    --brdrRad2: 3px;
    --selClr: #ffffff3b;
    --shadow: 4px 4px 4px 0px rgba(6, 11, 15, 0.4);
    background-color: var(--mainColor);
    height: 170px;
    padding-left: var(--pad2);
    padding-right: var(--pad2);
    padding-top: var(--pad1);
    padding-bottom: var(--pad1);
    font-size: 80%;
}

#upperPan {
    height: 29px;
    display: grid;
    grid-template-columns: 1fr auto;
    color: var(--txtColor);
}

.accnt {
    background-color: var(--btnAccent);
    color: var(--txtColor2);
}

#upperPan>#scndPan .btn>svg {
    fill: var(--txtColor2);
}

#midPan {
    height: 100px;
    background-color: var(--mainColor2);
    padding-top: var(--pad1);
    padding-bottom: var(--pad1);
    border-radius: var(--brdrRad);
    box-shadow: var(--shadow);
}

.stack_w {
    display: flex;
    flex-direction: row;
}

.stack_H {
    display: flex;
    flex-direction: column;
}

.blk {
    padding: 5px;
    border: 1px solid black;
    border-radius: 5px;
    margin: 10px;
}


#upperPan>#naviPan {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    position: relative;
}

#upperPan>#naviPan>* {
    flex-basis: auto;
    margin-left: calc(var(--pad1) * 2);
    margin-right: calc(var(--pad1) * 2);
    margin-bottom: 0;
    padding-top: var(--pad1);
    position: relative;
    cursor: pointer;
}

#upperPan>#naviPan>.select:hover:before {
    width: calc(100% + var(--pad1) * 2);
    left: calc(var(--pad1) * -1);
    opacity: 1;
}

#upperPan>#naviPan>*:hover::before {
    content: "";
    width: 100%;
    height: 2px;
    background-color: var(--mainColor2);
    position: absolute;
    left: 0px;
    bottom: var(--pad1);
    border-radius: var(--brdrRad);
    opacity: .6;

}

#upperPan>#naviPan>.select {
    font-weight: bold;
}

#upperPan>#naviPan>.select::before {
    content: "";
    width: 100%;
    height: 2px;
    background-color: var(--btnAccent);
    position: absolute;
    left: 0px;
    bottom: var(--pad1);
    border-radius: var(--brdrRad);
}


#scndPan {
    margin-right: var(--pad1);

}

#dwnPanel {
    display: grid;
    grid-template-columns: max-content 10px 30px 1fr;
    column-gap: var(--pad1);
    justify-items: stretch;
}

#dwnPanel .lst {
    width: 100%;
}

#dwnPanel .lst>input {
    width: calc(100% - var(--pad1) * 2);
}

#dwnPanel>.btn {
    margin-top: calc(var(--pad1) - 2px);
    margin-left: var(--pad1);
    color: var(--txtColor3);
}

#dwnPanel input,
#dwnPanel textarea {
    background-color: var(--mainColor);
    color: var(--txtColor);
    border-radius: var(--brdrRad);
    border: 1px solid var(--txtColor3);
    margin-top: var(--pad1);
    padding-left: var(--pad1);
    padding-right: var(--pad1);
    padding-top: calc(var(--pad1) / 2);
    padding-bottom: calc(var(--pad1) / 2);
    resize: vertical;
    /* width: 100%; */
}

#dwnPanel .inpWP>.drpBtn {
    width: 22px;
    height: 22px;
}

#dwnPanel .inpWP>.drpBtn:hover::before {
    width: 22px;

}

#dwnPanel .arrow {
    margin-top: 6px;
}

.rsz {
    cursor: e-resize;
}

.rsz * {
    color: var(--txtColor3);
    fill: var(--txtColor3) !important;
}

.inpWP {
    position: relative;
    width: fit-content;
}

.inpWP:nth-child(0) {
    width: 100%;
}

.inpWP>.drpBtn {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 28px;
    height: 28px;
    padding-top: var(--pad1);
}

.inpWP>.drpBtn:hover::before {
    content: "";
    position: absolute;
    top: calc(var(--pad1) + 1px);
    width: 27px;
    height: calc(100% - var(--pad1));
    background-color: var(--selClr);
    border-radius: 0px var(--brdrRad) var(--brdrRad) 0px;
}

.inpWP>.drpBtn>.arrow {
    margin-top: 10px;
    margin-left: 10px;
}

.arrow.gr {
    border-color: var(--txtColor3);
}

.arrow {
    border-left: 1px solid black;
    border-bottom: 1px solid black;
    border-radius: 1px;
    width: 5px;
    height: 5px;
    rotate: -45deg;
    display: block;
    margin-top: 10px;
}

.btn {
    display: flex;
    border-radius: var(--brdrRad);
    flex-direction: row;
    column-gap: var(--pad1);
    /* padding: var(--pad1); */
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.btn:hover::after {
    width: 100%;
    height: 100%;
    display: block;
    content: "";
    background-color: var(--selClr);
    position: absolute;
    top: 0px;
    border-radius: var(--brdrRad);
}

.btn>.plt {
    display: none;
    top: 100%;
    width: max-content;
    /* display: flex; */
    flex-direction: column;
    position: absolute;
    background-color: var(--mainColor2);
    border-radius: var(--brdrRad);
    box-shadow: var(--shadow);
    border: 1px solid var(--mainColor);
}

.btn>.plt>.btn {
    border-radius: 0px;
    justify-content: flex-start;
}

.btn.rt>.plt {
    right: 0px;
}

.btn.rt>.plt>.btn::after {
    right: 0px;
}

.btn>span {
    display: inline-flex;
    align-items: center;
}