.kfm-op-portal {
    --kfm-border: #d8dadd;
    --kfm-ink: #1d2327;
    --kfm-muted: #50575e;
    --kfm-action: #17643a;
    background: transparent;
    border: 0;
    color: var(--kfm-ink);
    font-size: 14px;
    line-height: 1.35;
    width: 100%;
}

.kfm-op-portal *,
.kfm-op-portal *::before,
.kfm-op-portal *::after {
    box-sizing: border-box;
}

.kfm-op-portal__table-wrap {
    overflow-x: auto;
    width: 100%;
}

.kfm-op-portal__table {
    border: 1px solid var(--kfm-border);
    border-collapse: collapse;
    color: var(--kfm-ink);
    font-size: inherit;
    line-height: inherit;
    margin: 0;
    table-layout: fixed;
    width: 100%;
}

.kfm-op-portal__table th,
.kfm-op-portal__table td {
    border: 1px solid var(--kfm-border);
    overflow-wrap: break-word;
    padding: 5px 7px;
    text-align: left;
    vertical-align: top;
}

.kfm-op-portal__table th {
    background: #ececec;
    color: #111;
    font-size: 13px;
    font-weight: 700;
}

.kfm-op-portal__table th:first-child {
    width: 13%;
}

.kfm-op-portal__table th:nth-child(2) {
    width: 26%;
}

.kfm-op-portal__table th:nth-child(3) {
    width: 42%;
}

.kfm-op-portal__table th:nth-child(4) {
    width: 19%;
}

.kfm-op-portal__date {
    white-space: nowrap;
}

.kfm-op-portal__deadline-date {
    white-space: nowrap;
}

.kfm-op-portal__deadline-date--late,
.kfm-op-portal__payment-due {
    color: #c20f16 !important;
    font-weight: 700;
}

.kfm-op-portal__payment-due {
    text-decoration: none;
}

.kfm-op-portal__payment-due:hover,
.kfm-op-portal__payment-due:focus {
    color: #8f0b10 !important;
    text-decoration: underline;
}

.kfm-op-portal__payment-result--paid {
    color: #16833d;
    font-weight: 700;
}

.kfm-op-portal__unavailable {
    color: var(--kfm-muted);
}

.kfm-op-portal__refresh {
    color: var(--kfm-muted);
    margin: 16px 0 0;
    padding: 0;
}

.kfm-op-portal__refresh a {
    color: var(--kfm-action);
    font-weight: 600;
}

.kfm-op-portal__empty,
.kfm-op-portal--message {
    border: 1px solid var(--kfm-border);
    padding: 16px;
}

.kfm-op-portal--message h2 {
    color: var(--kfm-ink);
    font-size: 20px;
    line-height: 1.25;
    margin: 0;
}

.kfm-op-portal--message p {
    color: var(--kfm-muted);
    margin: 8px 0 14px;
}

.kfm-op-portal__pay-link {
    background: var(--kfm-action);
    border: 1px solid var(--kfm-action);
    border-radius: 4px;
    color: #fff !important;
    display: inline-block;
    font-weight: 700;
    padding: 7px 10px;
    text-decoration: none !important;
}

.kfm-op-social-links {
    --kfm-border: #d8dadd;
    --kfm-ink: #1d2327;
    --kfm-muted: #50575e;
    color: var(--kfm-ink);
    font-size: 14px;
    line-height: 1.4;
    width: 100%;
}

.kfm-op-social-links * {
    box-sizing: border-box;
}

.kfm-op-social-links__icons {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 52px;
}

.kfm-op-social-links__icons a,
.kfm-op-social-links__pending-icon {
    display: inline-flex;
    text-decoration: none;
}

.kfm-op-social-links__icons img {
    display: block;
    height: 52px;
    object-fit: contain;
    width: 52px;
}

.kfm-op-social-links__item {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 110px;
    text-align: center;
}

.kfm-op-social-links__item.is-unapproved img {
    filter: grayscale(1);
    opacity: .5;
}

.kfm-op-social-links__review-state {
    color: #8a5a00;
    font-size: 12px;
    line-height: 1.25;
}

.kfm-op-social-links__review-state.is-rejected {
    color: #b32d2e;
}

.kfm-op-social-links__empty,
.kfm-op-social-links__status,
.kfm-op-social-links__help {
    color: var(--kfm-muted);
}

.kfm-op-social-links__notice,
.kfm-op-social-links__error {
    border-left: 4px solid #16833d;
    padding: 8px 10px;
}

.kfm-op-social-links__error {
    border-left-color: #c20f16;
}

.kfm-op-social-links__editor {
    border-top: 1px solid var(--kfm-border);
    margin-top: 14px;
    padding-top: 12px;
}

.kfm-op-social-links__editor summary {
    cursor: pointer;
    font-weight: 700;
}

.kfm-op-social-links__editor form {
    margin-top: 12px;
    max-width: 680px;
}

.kfm-op-social-links__editor input[type="url"] {
    border: 1px solid #8c8f94;
    border-radius: 4px;
    max-width: 100%;
    padding: 8px;
    width: 100%;
}

.kfm-op-social-links__submit {
    appearance: none;
    background: #17643a !important;
    border: 1px solid #17643a !important;
    border-radius: 4px;
    color: #fff !important;
    cursor: pointer;
    display: inline-block;
    font: inherit;
    font-weight: 700;
    min-height: 40px;
    padding: 8px 14px;
    text-decoration: none !important;
}

.kfm-op-social-links__submit:hover,
.kfm-op-social-links__submit:focus {
    background: #0f4d2c !important;
    border-color: #0f4d2c !important;
    color: #fff !important;
}

.kfm-op-social-links__submit:focus-visible {
    outline: 3px solid #9cc7ad;
    outline-offset: 2px;
}

.kfm-op-social-links__submit[disabled] {
    cursor: wait;
    opacity: .72;
}

.kfm-op-social-links__submit-status {
    color: var(--kfm-muted);
    margin: 8px 0 0;
}

.kfm-op-directory {
    --kfm-directory-border: #d8dadd;
    --kfm-directory-icon: 46px;
    color: #1d2327;
    max-width: 100%;
}

.kfm-op-directory * {
    box-sizing: border-box;
}

.kfm-op-directory__controls {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin: 0 0 12px;
}

.kfm-op-directory__search,
.kfm-op-directory__entries {
    border: 1px solid #8c8f94;
    border-radius: 4px;
    padding: 7px 9px;
}

.kfm-op-directory__search {
    min-width: 240px;
}

.kfm-op-directory__table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.kfm-op-directory__table {
    border-collapse: collapse;
    min-width: 680px;
    width: 100%;
}

.kfm-op-directory__table th,
.kfm-op-directory__table td {
    border: 1px solid var(--kfm-directory-border);
    padding: 8px;
    text-align: center;
    vertical-align: middle;
}

.kfm-op-directory__table th {
    background: #ececec;
    font-size: 13px;
}

.kfm-op-directory__table th:first-child,
.kfm-op-directory__table td:first-child {
    min-width: 180px;
    text-align: left;
}

.kfm-op-directory__table th[data-sort] {
    cursor: pointer;
}

.kfm-op-directory__icon-link {
    display: inline-flex;
}

.kfm-op-directory__icon-link img {
    display: block;
    height: var(--kfm-directory-icon);
    object-fit: contain;
    width: var(--kfm-directory-icon);
}

.kfm-op-directory__pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    margin-top: 12px;
}

.kfm-op-directory__page {
    background: #fff;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    cursor: pointer;
    min-height: 34px;
    min-width: 34px;
    padding: 5px 8px;
}

.kfm-op-directory__page[disabled] {
    cursor: default;
    opacity: .5;
}

.kfm-op-directory__page.is-active {
    background: #1d2327;
    color: #fff;
    font-weight: 700;
}

@media (max-width: 720px) {
    .kfm-op-portal {
        font-size: 12px;
    }

    .kfm-op-portal__table th,
    .kfm-op-portal__table td {
        padding: 4px;
    }

    .kfm-op-portal__table th {
        font-size: 12px;
    }

    .kfm-op-portal__refresh {
        font-size: 13px;
    }

    .kfm-op-directory {
        --kfm-directory-icon: 40px;
    }

    .kfm-op-directory__controls {
        align-items: stretch;
        flex-direction: column;
    }

    .kfm-op-directory__search {
        min-width: 0;
        width: 100%;
    }
}
