.batteries .battery{
    width:150px;
    height:230px;
    background-color: white;
    padding:5px;
    border-radius: 10px;
    border:solid 1px gray;
    margin:20px 6px;
    float:left;
    position: relative;
}
.batteries .battery.empty{
    border-style: dashed;
}
.batteries .battery.empty .hat{
    border-style: dashed;
}
.batteries .battery .hat{
    width:50px;
    height:20px;
    background-color: white;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    border:solid 1px gray;
    border-bottom: none !important;
    position: absolute;
    top:-21px;
    left:calc(50% - 25px);
}
.batteries .battery table{
    font-size:14px;
    text-align: left;
    width: 100%;
}
.batteries .battery table td{
    height:32px;
    position:relative;
    vertical-align: bottom;
    padding-bottom:5px;
    border-bottom:solid 1px rgba(0,0,0,0.1);
}
.batteries .battery table .td_label{
    position: absolute;
    top:3px;
    left:2px;
    width:100px;
}
.batteries .battery table td:first-child{
    font-size:10px;
    color:gray;
}
.batteries .battery .buttons{
    width:100%;
    height:30px;
    position: absolute;
    bottom: 0px;
    left: 0px;
    border-radius: 10px;
    overflow: hidden;
}
.batteries .battery .buttons .button{
    width:25%;
    height:100%;
    text-align:center;
    line-height:37px;
    float:left;
}
.batteries .battery.empty > a{
    display:block;
    width:100%;
    height:100%;
}
.batteries .battery .buttons .button a{
    display:block;
    width:100%;
    height:100%;
}
.batteries .battery .buttons .button:hover{
    background-image: radial-gradient(rgba(0,0,0,0.1) 0%, white 80%);
}
.batteries .battery .buttons .button img, .batteries .battery .buttons .button svg{
    max-width: 50%;
    max-height:50%;   
}
.batteries .battery.empty img, .batteries .battery.empty svg{
    max-width:50px;
    max-height:50px;
    margin-top:50%;
}