span.matrixtable {
    display: inline-table;
    border-width: 2px 2px;
    border-style: solid;
    border-color: black;
    text-align: center;
    vertical-align: top;
    padding: 0px 1px;
    margin: 0px 1px;
    overflow: visible;
}

span.vector {
    display: inline-table;
    background-color: white;
    padding: 0px;
    margin: 0px 1px;
    border-color: black;
    border-style: solid;
    border-width: 2px 2px 2px 0px;
    vertical-align: top;
    font-family: sans-serif;
    font-size: 12px;
    line-height: 200%;
}

span.vector div {
    display: block;
    margin: 1px;
    padding: 2px;
    background-color: white;
}

span.matrixtable .vector {
    border-style: none;
    margin-left: 5px;
    margin-right: 5px;
}

span.transpose {
    display: table;
    margin: 1px;
    background-color: white;
}

span.transpose div {
    display: table-cell;
    margin: 1px;
    padding: 2px;
    background-color: white;
}

span.matrixtable:before {
    content: " ";
    background-color: white;
    width: 85%;
    text-align: center;
    height: 2px;
    position: relative;
    top: -2px;
    z-index: 100;
    display: block;
    margin: 0px auto;
}

span.matrixtable:after {
    content: " ";
    background-color: white;
    width: 85%;
    text-align: center;
    height: 2px;
    position: relative;
    top: 2px;
    z-index: 100;
    display: block;
    margin: 0px auto;
}

span.vector:before {
    content: " ";
    background-color: white;
    width: 85%;
    height: 2px;
    position: relative;
    top: -2px;
    z-index: 100;
    display: block;
}

span.vector:after {
    content: " ";
    background-color: white;
    width: 85%;
    height: 2px;
    position: relative;
    top: 2px;
    z-index: 100;
    display: block;
}

span.matrixtable span.vector:before {
    height: 0px;
}

span.matrixtable span.vector:after {
    height: 0px;
}

span input[type="text"] {
    display: block;
    margin: 0;
    width: 50px;
    height: 24px;
    font-family: sans-serif;
    font-size: 12px;
    appearance: none;
    box-shadow: none;
    text-align: right;
}
