nav {
    background-color: #a12929;
    box-sizing: border-box;
    padding-left: 14px;
    color: #fff;
}

nav:before {
    content: '';
    display: block;;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    width: 14px;
    height: 100%;
    box-shadow: 0 0 5px #000;
    background-image: url(src/pattern.png);
    background-position: center;
    background-size: 100%;
}

nav .list {
    position: absolute;
    left: 14px;
    top: 0;
    z-index: 1;
    width: calc(100% - 14px);
    height: 100%;
    background-color: #a12929;
    box-shadow: 0 0 5px #000;
}

nav .list.hide {
    left: 110%;
}

nav .list .btn.back {
    width: 100%;
    height: 50px;
}

nav .list .items {
    /*position: absolute;*/
    left: 0;
    top: 0;
    padding-top: 5px;
    padding-bottom: 15px;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    box-sizing: border-box;
}

nav .list .description {
    display: none;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50px;
    font-size: 80%;
}

nav .list.desc .items {
    height: calc(100% - 50px);
}

nav .list.desc .desc {
    display: block;
}

nav .list.desc .description {
    display: block;
}

nav .list.sub .items  {
    top: 50px;
    height: calc(100% - 50px);
}

nav .list.sub.named .items  {
    top: 100px;
    height: calc(100% - 100px);
}

nav .list.sub.desc .items  {
    top: 50px;
    height: calc(100% - 100px);
}

nav .list.sub.desc.named .items  {
    top: 100px;
    height: calc(100% - 150px);
}

nav .item {
    display: none;
    position: relative;
    margin-left: 10px;
    padding: 10px 3px;
    padding-bottom: 15px;
    width: calc(100% - 20px);
    background-image: url(src/sep.png);
    background-position: bottom;
    background-repeat: repeat-x;
    background-size: auto 5px;
    font-size: 120%;
    color: #eee;
}

body[data-tat-type="koms"] nav .tat .item.koms {
    display: block;
}

body[data-tat-type="hosp"] nav .tat .item.hosp {
    display: block;
}

body[data-tat-type="prom"] nav .tat .item.prom {
    display: block;
}

body[data-tat-type="tran"] nav .tat .item.tran {
    display: block;
}

body[data-tat-type="deuc"] nav .tat .item.deuc {
    display: block;
}

body[data-tat-type="zahr"] nav .tat .item.zahr {
    display: block;
}

body[data-kzn-type="koms"] nav .kzn .item.koms {
    display: block;
}

body[data-kzn-type="hosp"] nav .kzn .item.hosp {
    display: block;
}

body[data-kzn-type="prom"] nav .kzn .item.prom {
    display: block;
}

body[data-kzn-type="tran"] nav .kzn .item.tran {
    display: block;
}

body[data-kzn-type="deuc"] nav .kzn .item.deuc {
    display: block;
}

body[data-kzn-type="zahr"] nav .kzn .item.zahr {
    display: block;
}

nav .item .italic {
    text-align: right;
    font-style: italic;
    font-size: 80%;
    padding-right: 10px
}

nav .item .sub {
    display: inline-block;
    text-align: left;
}

nav .item .txt {
    display: inline-block;
    text-align: left;
}

nav .item.typed {
    display: block;
    padding-left: 50px;
    box-sizing: border-box;
}

nav .item.typed:before {
    content: '';
    display: block;
    float: left;
    margin-left: -50px;
    margin-top: -12px;
    width: 50px;
    height: 50px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 30px;
}

nav .item.typed.koms:before {
    background-image: url(../src/icons/30/koms.png);
}

nav .item.typed.hosp:before {
    background-image: url(../src/icons/30/hosp.png);    
}

nav .item.typed.prom:before {
    background-image: url(../src/icons/30/prom.png);
    /*background-size: 45px;   */
}

nav .item.typed.tran:before {
    background-image: url(../src/icons/30/tran.png);
    /*background-size: 25px;*/
}

nav .item.typed.deuc:before {
    background-image: url(../src/icons/30/deuc.png);    
}

nav .item.typed.zahr:before {
    background-image: url(../src/icons/30/zahr.png);
    /*background-size: 30px; */   
}

nav .item.selected {
    color: #fff;
    text-shadow: 1px 1px 2px #000;
    background-image: none;
}

nav .item.typed.selected {
    background-image: url(src/sep.png);
}

nav .item.selected:after {
    content: '';
    display: block;
    position: absolute;
    left: -10%;
    top: 5px;
    z-index: -1;
    width: 120%;
    height: calc(100%);
    background-color: #2a2e39;
    box-shadow: 0 0 5px #000 inset;
}

nav .item.typed.selected:after {
    display: none;
}

nav .item.click {
    text-decoration: underline;
    cursor: pointer;
}

nav .list .btn.back {
    z-index: 1;
    line-height: 50px;
    font-size: 150%;
    padding-left: 50px;
    box-shadow: 0 5px 5px -5px #000;
    cursor: pointer;
    background-image: url(../src/icons/26/arrowLeft.png);
    background-position: 15px center;
    background-repeat: no-repeat;
    background-size: 26px;
}

nav .list .description {
    display: none;
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 2px 10px;
    width: 100%;
    height: 50px;
    font-style: italic;
    box-shadow: 0 -5px 5px -5px #000;
    box-sizing: border-box;
}

nav .list .listName {
    z-index: 1;
    line-height: 50px;
    font-size: 150%;
    padding-left: 10px;
    box-shadow: 0 5px 5px -5px #000;
    box-sizing: border-box;
}