[contenteditable] {
    -webkit-user-modify: read-write-plaintext-only;
    user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none
}

table.editable td {
    border: 1px solid #d2d2d2;
    min-width: 100px;
    height: 32px;
    position: relative
}

table.editable td .cell-value {
    display: inline-block;
    width: 100%;
    height: 100%;
    padding: 8px 14px;
    line-height: 21px;
    text-align: left;
    vertical-align: top
}

table.editable td.table-head {
    font-weight: 700
}

table.editable td.extra {
    border-style: dashed;
    border-color: #fff;
    min-width: 32px;
    background-color: #fff
}

table.editable:hover td.extra, table.editable:hover th.extra {
    border-color: #d2d2d2;
    opacity: .5
}

.blue .table-head {
    background-color: #004394;
    color: #fff
}

.cyan .table-head {
    background-color: #009de0;
    color: #fff
}

.red .table-head {
    background-color: #e20019;
    color: #fff
}

.brown .table-head {
    background-color: #b27723;
    color: #fff
}

table.editable {
    border-collapse: collapse
}

table.editable tr:nth-child(2n) {
    background-color: #f6f8fa
}

table.editable col:hover {
    text-transform: capitalize
}

table.editable td {
    border: 1px solid #d2d2d2;
    min-width: 100px;
    height: 32px;
    position: relative;
    transition: .5s all
}

table.editable td .cell-value {
    display: inline-block;
    width: 100%;
    padding: 8px 14px;
    line-height: 21px
}

table.editable td .cell-value:focus {
    box-shadow: 0 0 0 2px #3255f1;
    outline: 0
}

table.editable td .cell-value:empty:before {
    content: "\feff"
}

table.editable td .cell-focused {
    box-shadow: 0 0 2px 2px #6981f3;
    z-index: 1000;
    position: relative
}

table.editable td .align-center {
    text-align: center
}

table.editable td .align-right {
    text-align: right
}

table.editable td.table-head {
    text-align: center;
    font-weight: 700
}

table.editable td.extra {
    border-style: dashed;
    border-color: #fff;
    min-width: 32px;
    background-color: #fff;
    transition: .3s all
}

table.editable td.delete-cell {
    border: none;
    background-color: #fff;
    min-width: 28px;
    text-align: center
}

table.editable td.delete-cell .delete-icon {
    cursor: pointer;
    color: #c3c3c3
}

table.editable td .insert-row {
    position: absolute;
    top: -10px;
    transform: translate(-50%);
    left: 50%
}

table.editable td .insert-column {
    position: absolute;
    left: -8px;
    transform: translateY(-40%);
    top: 50%
}

table.editable td .insert-icon {
    fill: #a2a2a2;
    background-color: #fff;
    border-radius: 50%;
    border: 1px solid #d2d2d2;
    cursor: pointer
}

table.editable:hover td.extra, table.editable:hover th.extra {
    border-color: #d2d2d2;
    opacity: .5;
    transition: .5s all
}

table.editable code {
    font-family: source-code-pro, Menlo, Monaco, Consolas, Courier New, monospace;
    padding: .2em .4em;
    margin: 0;
    font-size: 85%;
    background-color: #1b1f230d;
    border-radius: 3px
}

.md-table {
    padding: 12px;
    white-space: pre;
    text-align: left;
    font-family: source-code-pro, Menlo, Monaco, Consolas, Courier New, monospace;
    font-size: 14px
}
