th, td {
    white-space: nowrap;
}

td svg {
    width: 1.5rem;
    height: auto;
}

tr.has-difference td {
    font-weight: bold;
}

tr.no-difference td {
    background-color: var(--pico-color-red-50);
    color: var(--pico-color-red-500);
}

.recruitment-summary-table {
    font-size: 1.15em;
}

.recruitment-summary-table th.group-header--first  { background-color: var(--pico-color-azure-100); }
.recruitment-summary-table th.group-header--second { background-color: var(--pico-color-azure-150); }
.recruitment-summary-table th.group-header--offer  { background-color: var(--pico-color-azure-200); }

.recruitment-summary-table th.group-end,
.recruitment-summary-table td.group-end {
    border-right: 2px solid var(--pico-color-grey-300);
}

.recruitment-summary-cell__main {
    font-weight: 600;
}

button.recruitment-summary-cell__main--clickable {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    width: auto;
    color: var(--pico-primary);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

button.recruitment-summary-cell__main--clickable:hover,
button.recruitment-summary-cell__main--clickable:focus {
    background: transparent;
    color: var(--pico-primary-hover);
    text-decoration: underline;
}

.recruitment-summary-breakdown__modal article {
    max-width: min(960px, 92vw);
    width: 100%;
}

.recruitment-summary-breakdown__title {
    margin-bottom: 0.75rem;
}

.recruitment-summary-breakdown__count {
    color: var(--pico-color-grey-600);
    margin-left: 0.5rem;
    font-size: 0.75em;
    font-weight: normal;
}

.recruitment-summary-breakdown__table-wrapper {
    max-height: 70vh;
    overflow-y: auto;
}

.recruitment-summary-cell__breakdown {
    list-style: none;
    margin: 0.25rem 0 0;
    padding: 0;
    font-size: 0.75em;
    color: var(--pico-color-grey-600);
    line-height: 1.3;
}

.recruitment-summary-cell__breakdown li {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.recruitment-summary-cell__breakdown-meeting-target {
    color: var(--pico-color-grey-500);
}

.recruitment-summary-table__note {
    margin: 0 0 0.5rem;
    text-align: right;
    font-size: 1.1em;
    color: var(--pico-color-grey-600);
}

tfoot .recruitment-summary-cell__breakdown-label {
    font-weight: normal;
}

@media print {
    .overflow-auto {
        overflow: visible;
    }

    table {
        width: 100%;
        font-size: 0.78em;
    }

    th, td {
        white-space: normal;
        word-break: break-word;
        overflow-wrap: break-word;
    }
}
