.periodos-method-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-height: 5rem;
    padding: 1rem;
    border: 1px solid rgba(214, 212, 216, 0.95);
    border-radius: 1rem;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.periodos-method-card:hover,
.periodos-method-card:focus-within,
.periodos-method-card.is-selected {
    border-color: #f3c4d4;
    background: #fff5f8;
}

.periodos-method-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.periodos-method-check {
    position: relative;
    flex: 0 0 auto;
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.1rem;
    border: 1px solid rgba(206, 50, 105, 0.42);
    border-radius: 999px;
    background: #fff;
}

.periodos-method-card.is-selected .periodos-method-check::after {
    position: absolute;
    inset: 0.28rem;
    border-radius: 999px;
    background: var(--ecs-color-primary);
    content: "";
}

.periodos-method-card strong {
    display: block;
    color: #17131c;
    font-size: 0.95rem;
    font-weight: 800;
}

.periodos-method-card small {
    display: block;
    margin-top: 0.25rem;
    color: #777586;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
}

.periodos-topic-pill {
    display: block;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(214, 212, 216, 0.75);
    border-radius: 0.95rem;
    background: #fff;
    color: #17131c;
    font-weight: 800;
}

.periodos-topics-config-action.is-disabled {
    opacity: 0.62;
}

.periodos-dynamic-row {
    display: grid;
    align-items: start;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid rgba(214, 212, 216, 0.75);
    border-radius: 0.95rem;
    background: #fff;
}

.periodos-rh-row {
    grid-template-columns: 2.1rem repeat(3, minmax(0, 1fr)) 2.4rem;
}

.periodos-pr-row {
    grid-template-columns: 2.1rem minmax(10rem, 0.9fr) minmax(7rem, 0.55fr) minmax(12rem, 1.55fr) 2.4rem;
}

.periodos-row-number,
.periodos-row-remove {
    display: inline-grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
}

.periodos-row-number {
    margin-top: 0.95rem;
    background: #fff5f8;
    color: var(--ecs-color-primary);
    font-size: 0.85rem;
    font-weight: 800;
}

.periodos-row-remove {
    margin-top: 0.95rem;
    border: 1px solid #f3c4d4;
    background: #fff;
    color: var(--ecs-color-primary);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.periodos-row-remove:hover,
.periodos-row-remove:focus-visible {
    background: #fff5f8;
    outline: none;
}

@media (max-width: 991.98px) {
    .periodos-rh-row,
    .periodos-pr-row {
        grid-template-columns: 1fr;
    }

    .periodos-row-number,
    .periodos-row-remove {
        margin-top: 0;
    }
}
