table.dc-table {
    border-spacing: 0 4px;
    border-collapse: separate;
    width: 100%;
    padding: 0;
}

    table.dc-table thead > tr > th {
        color: #8291b1;
        text-align: left;
        border: none;
        font-weight: 400;
        padding: 0 8px;
        text-transform: uppercase;
        font-size: 12px;
        letter-spacing: 1px;
    }

        table.dc-table thead > tr > th.text-center {
            text-align: center;
        }

        table.dc-table thead > tr > th.text-right {
            text-align: right;
        }

        table.dc-table thead > tr > th.pr-30,
        table.dc-table tbody > tr > td.pr-30 {
            padding-right: 30px;
        }

        table.dc-table thead > tr > th:first-child,
        table.dc-table tbody > tr > td:first-child {
            padding-left: 20px;
        }

    table.dc-table tbody > tr {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease-in-out;
        background: #fff;
    }

        table.dc-table tbody > tr:hover {
            background: #fdf07c;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
        }

        table.dc-table tbody > tr > td {
            white-space: nowrap;
            color: #8b93a6;
            font-size: 12px;
            padding: 4px 8px;
            position: relative;
        }

            table.dc-table tbody > tr > td span.primary {
                display: block;
                color: #18233c;
            }

            table.dc-table tbody > tr > td span.secondary {
                font-size: 11px;
            }

            table.dc-table tbody > tr > td span.unit-type {
                position: absolute;
                transform: rotate(-90deg);
                left: 0;
                bottom: -5px;
                width: 51px;
                transform-origin: 0 0;
                background: #009688;
                color: #fff;
                padding: 2px 0;
                text-align: center;
                display: block;
                text-transform: uppercase;
                font-size: 8px;
                letter-spacing: 1px;
            }

                table.dc-table tbody > tr > td span.unit-type.metric {
                    background: #e91e63;
                }

            table.dc-table tbody > tr > td span.primary,
            table.dc-table tbody > tr > td span.secondary {
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            table.dc-table tbody > tr > td .currency {
                font-size: 85%;
                font-style: italic;
                font-weight: 300;
                padding-right: 5px;
                opacity: 0.8;
            }

            table.dc-table tbody > tr > td md-icon.info {
                font-size: 18px;
                height: 18px;
                width: 18px;
                min-height: 18px;
                min-width: 18px;
            }

            table.dc-table tbody > tr > td span.primary,
            table.dc-table tbody > tr > td span.secondary {
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            table.dc-table tbody > tr > td .badge {
                display: inline-flex;
                align-items: end;
                justify-content: space-around;
                border-radius: 3px;
                font-weight: 500;
                font-size: 11px;
                padding: 2px;
                min-width: 72px;
                line-height: 1;
                margin-top: 2px;
            }

                table.dc-table tbody > tr > td .badge.outdated {
                    background: rgb(255 152 0 / 15%);
                    color: #f44336;
                    min-width: 100px;
                }

                    table.dc-table tbody > tr > td .badge.outdated span {
                        color: #ff9800;
                    }

                table.dc-table tbody > tr > td .badge.submitted {
                    background: rgb(9 150 0 / 15%);
                    color: #135a54;
                }

                    table.dc-table tbody > tr > td .badge.submitted span {
                        color: #29744c;
                    }

table.dc-editable {
    width: calc(100% - 5px);
    margin-bottom: 1em;
    border-collapse: collapse;
    font-size: 12px;
    margin: 10px 0 15px 0px;
    text-align: right;
    position: relative;
    overflow: initial;
}

    table.dc-editable th {
        font-weight: bold;
        background-color: #eceef3;
        padding: 0.25em 0.5em;
        position: sticky;
        top: -1px;
        font-size: 0.6875rem;
        z-index: 2;
    }

    table.dc-editable th,
    table.dc-editable td {
        border: 1px solid #dbdde9;
        height: 28px;
    }

        table.dc-editable th:first-child,
        table.dc-editable td:first-child {
            width: 30px;
            text-align: center;
        }

        table.dc-editable th,
        table.dc-editable td:first-child {
            background-color: #eceef3;
        }

    table.dc-editable tr td.row-has-errors svg {
        color: #ff5722;
    }

md-tooltip.row-has-errors {
    background-color: rgba(255, 86, 34, 0.9) !important;
    color: #fff !important;
}

table.dc-editable tr td:focus {
    outline: none;
}

table.dc-editable tr td > input[type="text"],
table.dc-editable tr td > input[type="number"],
table.dc-editable tr td > select {
    padding: 0 0.5em;
    border: none;
    height: 100%;
    width: 100%;
    min-width: 50px;
    outline: none;
    margin: 0;
    border-radius: 0;
}

table.dc-editable tr.not-used td > input,
table.dc-editable tr.not-used td > select {
    text-decoration: line-through;
    color: #ff5722 !important;
}

/* Chrome, Safari, Edge, Opera */
table.dc-editable tr td > input::-webkit-outer-spin-button,
table.dc-editable tr td > input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
table.dc-editable tr td > input[type=number] {
    -moz-appearance: textfield;
    text-align: right;
}

table.dc-editable tr td > select {
    min-width: 60px;
}

table.dc-editable tr td > input,
table.dc-editable tr td > select {
    box-shadow: none !important;
}

    table.dc-editable tr td > select:disabled,
    table.dc-editable tr td > input:disabled {
        background: #dadfed;
        font-style: italic;
    }

table.dc-editable td.number {
    max-width: 100px;
}

table.dc-editable td > span {
    padding: 0.5em;
    display: block;
    white-space: nowrap;
}

table.dc-editable tr td > input:focus,
table.dc-editable tr td > select:focus,
table.dc-editable tr td > select.error,
table.dc-editable tr td > input.error {
    outline-style: solid !important;
    outline-width: 1px;
    outline-color: #000;
}

table.dc-editable tr td > select.error,
table.dc-editable tr td > input.error {
    outline-color: #f44336;
}

table.dc-editable tr td > input::placeholder {
    font-style: italic;
    color: #a8a7c7;
}

table.dc-editable tr td > select:required:invalid {
    font-style: italic;
    color: #a8a7c7;
}

table.dc-editable tr td > select > option[value=""][disabled] {
    display: none;
}

table.dc-editable td > select > option {
    font-style: initial;
    color: #000;
}

table.dc-editable td.number > input {
    text-align: right;
}

table.dc-editable th .btn-sort {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

    table.dc-editable th .btn-sort:hover svg {
        opacity: 1;
    }

table.dc-editable th.actions,
table.dc-editable td.actions {
    width: 30px;
    padding: 0;
    text-align: center;
}

    table.dc-editable td.actions button {
        width: 100%;
        background: none;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
    }

table.dc-editable .actions svg {
    width: 18px;
    height: 18px;
    color: #a8a7c7;
    border-radius: 3px;
    padding: 2px;
}

table.dc-editable td.actions button:hover {
    box-shadow: none;
}

    table.dc-editable td.actions button:hover svg {
        color: #1e4de9;
        background: rgba(30, 77, 233, 0.1);
    }

table.dc-editable td.actions button.delete:hover svg {
    color: #e91e3a;
    background: rgba(233, 32, 59, 0.1);
}

table.dc-nav {
    width: 100%;
    padding: 0;
    font-size: 12px;
    border-collapse: collapse;
    text-align: left;
    color: rgb(105 117 135);
    --dc-color: 105, 117, 135;
    --dc-primary-color: rgb(var(--dc-color));
    --dc-primary-color-light: rgba(var(--dc-color), 0.1);
}

    table.dc-nav th {
        padding: 0.75em 0 0.5em 0;
        font-size: 10px;
        font-weight: 500;
        vertical-align: top;
        color: rgb(7, 1, 20);
    }

        table.dc-nav th:first-child {
            font-size: 14px;
        }

    table.dc-nav td {
        height: 28px;
    }

        table.dc-nav td:first-child {
            border: 0 solid #e5e7eb;
            padding-left: 0.75rem;
            border-left-width: 1px;
        }

    table.dc-nav tr {
        cursor: pointer;
        outline: none;
    }

        table.dc-nav tr:hover td:first-child,
        table.dc-nav tr:focus td:first-child {
            border-color: var(--dc-primary-color);
        }

        table.dc-nav tr.selected td {
            font-weight: 500;
            background: var(--dc-primary-color-light);
        }

            table.dc-nav tr.selected td:first-child {
                border-color: var(--dc-primary-color);
                color: var(--dc-primary-color);
            }

        table.dc-nav tr td > input {
            box-shadow: none !important;
        }

        table.dc-nav tr.selected td.focused > input[type="text"] {
            padding: 0 0.5em;
            border: none;
            height: 100%;
            width: 100%;
            outline-style: solid;
            outline-width: 1px;
            outline-color: var(--dc-primary-color);
        }

        table.dc-nav tr td button {
            display: none;
        }

        table.dc-nav tr.selected td button {
            display: block;
            width: 20px;
            height: 20px;
            background: none;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            margin: 0;
            padding: 2px;
            border-radius: 3px;
            margin-right: 2px;
        }

        table.dc-nav tr.selected td svg {
            width: 100%;
            color: var(--dc-primary-color);
        }

        table.dc-nav tr.selected button:hover {
            background: var(--dc-primary-color-light);
        }
