/* Common table styles — single source of truth for every table in the app */

.zato-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: none;
    border-radius: 8px;
    background-clip: padding-box;
    overflow: hidden;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 20px;
    color: var(--zato-table-text);
    background-color: #fff;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.04),
        0 1px 2px rgba(0, 0, 0, 0.07),
        0 2px 4px rgba(0, 0, 0, 0.07),
        0 4px 8px rgba(0, 0, 0, 0.07),
        0 8px 16px rgba(0, 0, 0, 0.07);
}

.zato-table th {
    text-align: left;
    padding: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgb(17, 17, 17);
    border: none;
    background: transparent;
    box-shadow: rgb(219, 222, 212) 0px -1px 0px 0px inset;
    height: 34px;
    vertical-align: middle;
    line-height: 19px;
}

.zato-table th a {
    font-weight: 700;
    color: inherit;
    background-image: none;
    padding-bottom: 0;
}

.zato-table td {
    padding: 8px;
    border: none;
    border-bottom: 1px solid rgb(219, 222, 212);
    color: var(--zato-table-text);
    vertical-align: middle;
    line-height: 20px;
    overflow-wrap: break-word;
}

.zato-table tbody tr {
    background: transparent;
    transition: background 100ms ease;
}

.zato-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.03);
}

.zato-table tbody tr:last-child td {
    /* One variable drives both paddings so the content always stays vertically centered */
    --last-row-padding: 9px;
    padding-top: var(--last-row-padding);
    padding-bottom: var(--last-row-padding);
    border-bottom: none;
}
