.avatar {
    aspect-ratio: 1;
    width: 65px;
    height: 65px;
    background-color: var(--bs-secondary-bg-subtle);
    border-radius: 50%;
}

dialog {
    padding: 0;
    border: none;
    background: transparent;
    min-width: 50%;

    &::backdrop {
        backdrop-filter: blur(0.25rem);
    }
}

blockquote::first-line {
    font-style: italic;
}

.debug *:hover {
    outline: 1px solid rgba(0, 0, 0, 0.25);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: 1rem;
}

.grid-header {
    grid-template-columns: 1fr minmax(max-content, 20rem) 1fr;
    grid-template-areas:
        "client-logo empty vendor-logo"
        "client-data position vendor-data"
    ;

    @media (max-width: 900px) {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "client-logo vendor-logo"
            "client-data vendor-data"
            "position position"
        ;

    }

    @media (max-width: 576px) {
        grid-template-columns: 1fr;
        grid-template-areas:
            "client-logo"
            "client-data"
            "vendor-logo"
            "vendor-data"
            "position"
        ;

    }
}

.client-logo {
    grid-area: client-logo;
}

.client-data {
    grid-area: client-data;
}

.position-data {
    grid-area: position;
}

.vendor-logo {
    grid-area: vendor-logo;
    justify-self: end;
    align-self: center;

    @media (max-width: 576px) {
        justify-self: start;
    }
}

.vendor-data {
    grid-area: vendor-data;
    text-align: end;

    @media (max-width: 576px) {
        text-align: start;
    }
}

thead {
    box-shadow: 0 1px 0 var(--bs-table-border-color);
}

@media (max-width: 576px) {
    .presentations {
        & thead {
            display: none;
        }

        & tbody {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        & tr {
            display: grid;
            grid-template-areas:
                "first last"
                "other other"
            ;
        }

        & td {
            display: flex;
            grid-column: other;

            &:first-child {
                grid-area: first;
            }

            &:last-child {
                grid-area: last;
            }
        }

        & td[data-header] {
            display: block;
            gap: 1rem;
            text-align: end;

            &.long {
                justify-content: unset;
                flex-direction: column;
                gap: 0.25rem;
                text-align: start;
            }

            &:before {
                content: attr(data-header);
                float: inline-start;
                margin-inline-end: 1rem;
                font-weight: bold;
                text-align: start;
            }
        }
    }
}

th.requirement {
    --_lines: 1;
    position: relative;
    --_width: calc(1.5rem + var(--_lines, 1)* .75rem);
    min-width: var(--_width);
    width: var(--_width);
    padding-inline-start: calc(var(--_lines, 1)* 0.65rem);

    &[data-last="1"] {
        padding-inline-end: calc(1rem + var(--_lines, 1)* 0.65rem);
    }

    .badge {
        position: absolute;
        bottom: 0;
        rotate: -45deg;
        transform-origin: left;
        text-align: start;
        z-index: 1;
    }

    &:hover {
        .badge {
            rotate: 0deg;
            margin-left: -50%;
            z-index: 100;
            bottom: 0.5rem;
            border-width: 1px;
            box-shadow: 1px 1px 8px -3px black;
    
            br {
                display: none;
            }
        }
    }
}

.buttons {
    display: flex;
    gap: 0.25rem;
    height: fit-content;
    width: 100%;

    @media (max-width: 576px) {
        justify-content: end;
    }

    >.btn {
        aspect-ratio: 1;
        width: 2.5rem;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;

        >.badge {
            position: absolute;
            top: unset;
            bottom: -0.25rem;
            right: -0.25rem;
        }
    }
}

.project .candidateDetails {
    --_gap: 1rem;
    gap: var(--_gap);
    column-count: 3;

    @media (max-width: 576px) {
        column-count: 1;
    }

    @media (max-width: 768px) {
        column-count: 2;
    }

    .candidateDetailsCell {
        display: inline-block;
        width: 100%;
        margin-bottom: var(--_gap);

        > :last-child {
            margin-bottom: 0;
        }
    }

    /* gap: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
    grid-auto-flow: column;

    .candidateDetailsCell {
        > :last-child {
            margin-bottom: 0;
        }
    } */
}

.blackBand {
    background-color: currentColor;
    --mask: url(/modules/Headhunter/images/anon-mask.svg);
    -webkit-mask-image: var(--mask);
    mask-image: var(--mask);
    -webkit-mask-repeat: repeat;
    mask-repeat: repeat;
    -webkit-mask-size: 4px 4px;
    mask-size: 4px 4px;
    width: 70%;
    min-width: 10em;
    height: 1em;
    display: inline-block;
}

.no-wrap-ellipsis {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow-x: hidden;
}

.vs-hidden {
    visibility: hidden;
}

.sh-modal-files--file-previewer {
    min-height: 50vh;
}

[class^="sh-modal-files"].disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: default;
}
