.mfsa-rfc-wrapper {
    width: 100%;
    margin: 24px 0;
    font-family: inherit;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.65;
}

.mfsa-rfc-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 18px;
    padding: 12px;
    background: #f7fafb;
    border: 1px solid #dbe7e6;
    border-radius: 6px;
}

.mfsa-rfc-toolbar-counts {
    flex: 0 0 auto;
    font-size: 15px;
    color: #506070;
    white-space: nowrap;
}

.mfsa-rfc-toolbar-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}

.mfsa-rfc-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.mfsa-rfc-search-wrap .dashicons {
    position: absolute;
    left: 10px;
    color: #00685e;
    pointer-events: none;
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.mfsa-rfc-search-wrap input[type="search"] {
    width: 240px;
    min-height: 40px;
    padding: 8px 10px 8px 34px;
    border: 1px solid #b7cfcc;
    border-radius: 5px;
    background: #fff;
    font: inherit;
}

.mfsa-rfc-sort-wrap select {
    min-height: 40px;
    max-width: 245px;
    padding: 8px 34px 8px 10px;
    border: 1px solid #b7cfcc;
    border-radius: 5px;
    background: #fff;
    font: inherit;
}

.mfsa-rfc-view-toggles {
    display: inline-flex;
    align-items: center;
    border: 1px solid #b7cfcc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    flex: 0 0 auto;
}

.mfsa-rfc-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 38px;
    padding: 0;
    border: 0;
    border-right: 1px solid #dbe7e6;
    border-radius: 0;
    background: #fff;
    color: #00685e;
    cursor: pointer;
}

.mfsa-rfc-view-btn:last-child {
    border-right: 0;
}

.mfsa-rfc-view-btn:hover,
.mfsa-rfc-view-btn:focus {
    background: #eef6f5;
    outline: 2px solid transparent;
}

.mfsa-rfc-view-btn.active {
    background: #00685e;
    color: #fff;
}


.mfsa-rfc-toolbar-actions {
    display: inline-flex;
    align-items: center;
    border: 1px solid #b7cfcc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    flex: 0 0 auto;
}

.mfsa-rfc-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 38px;
    padding: 0;
    border: 0;
    border-right: 1px solid #dbe7e6;
    border-radius: 0;
    background: #fff;
    color: #00685e;
    cursor: pointer;
}

.mfsa-rfc-tool-btn:last-child {
    border-right: 0;
}

.mfsa-rfc-tool-btn:hover,
.mfsa-rfc-tool-btn:focus {
    background: #eef6f5;
    outline: 2px solid transparent;
}

.mfsa-rfc-tool-btn .dashicons,
.mfsa-rfc-view-btn .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 20px;
}

.mfsa-rfc-results {
    transition: opacity 0.2s ease;
}

.mfsa-rfc-results.is-loading {
    opacity: 0.45;
}

.mfsa-rfc-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.mfsa-rfc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: #fff;
    font-size: 16px;
    line-height: 1.6;
}

.mfsa-rfc-table thead th {
    background: #00685e;
    color: #fff;
    padding: 14px 16px;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 13px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.mfsa-rfc-table thead th:last-child {
    border-right: 0;
}

.mfsa-rfc-table tbody td {
    padding: 18px 16px;
    vertical-align: middle;
    border-top: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
}

.mfsa-rfc-table tbody td:last-child {
    border-right: 0;
}

.mfsa-rfc-notice-cell {
    width: 28%;
    text-align: center;
}

.mfsa-rfc-description-cell {
    width: 52%;
}

.mfsa-rfc-date-cell {
    width: 20%;
    white-space: nowrap;
}

.mfsa-rfc-notice-link,
.mfsa-rfc-notice-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #006cb7;
    font-weight: 600;
    text-decoration: none !important;
}

.mfsa-rfc-notice-icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 18px;
    color: #00685e;
    text-decoration: none !important;
}

.mfsa-rfc-notice-label {
    min-width: 0;
}

.mfsa-rfc-notice-link .mfsa-rfc-notice-label {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mfsa-rfc-notice-link:hover,
.mfsa-rfc-notice-link:focus {
    color: #004f86;
}

.mfsa-rfc-description {
    line-height: 1.55;
    color: #334155;
}

.mfsa-rfc-description > :first-child {
    margin-top: 0;
}

.mfsa-rfc-description > :last-child {
    margin-bottom: 0;
}

.mfsa-rfc-date-cell,
.mfsa-rfc-card-footer,
.mfsa-rfc-paragraph-date {
    color: #334155;
    font-weight: 500;
}

.mfsa-rfc-date-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.mfsa-rfc-date-calendar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #b7cfcc;
    border-radius: 999px;
    background: #fff;
    color: #00685e;
    text-decoration: none !important;
    vertical-align: middle;
}

.mfsa-rfc-date-calendar-btn:hover,
.mfsa-rfc-date-calendar-btn:focus {
    background: #eef6f5;
    color: #004d46;
    text-decoration: none !important;
    outline: 2px solid transparent;
}

.mfsa-rfc-date-calendar-btn .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 18px;
    text-decoration: none !important;
}

.mfsa-rfc-card-date-label {
    font-weight: 700;
}

.mfsa-rfc-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.mfsa-rfc-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid #dbe7e6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.mfsa-rfc-card-header,
.mfsa-rfc-card-body,
.mfsa-rfc-card-footer {
    padding: 16px;
}

.mfsa-rfc-card-header {
    border-bottom: 1px solid #edf2f7;
}

.mfsa-rfc-card-kicker {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e6f4f2;
    color: #00685e;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mfsa-rfc-card-title {
    margin: 0;
    font-size: 19px;
    line-height: 1.4;
}

.mfsa-rfc-card-body {
    flex: 1 1 auto;
}

.mfsa-rfc-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f7fafb;
    border-top: 1px solid #edf2f7;
}

.mfsa-rfc-card-footer .dashicons {
    color: #00685e;
}

.mfsa-rfc-paragraph-list {
    border: 1px solid #dbe7e6;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.mfsa-rfc-paragraph-item {
    padding: 18px 20px;
    border-bottom: 1px solid #edf2f7;
}

.mfsa-rfc-paragraph-item:last-child {
    border-bottom: 0;
}

.mfsa-rfc-paragraph-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.mfsa-rfc-paragraph-date {
    margin: 10px 0 0;
}

.mfsa-rfc-pagination {
    margin-top: 18px;
    text-align: center;
}

.mfsa-rfc-page-buttons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.mfsa-rfc-page-btn,
.mfsa-rfc-page-ellipsis {
    min-width: 36px;
    min-height: 36px;
    padding: 6px 10px;
    border-radius: 5px;
    border: 1px solid #b7cfcc;
    background: #fff;
    color: #00685e;
    font-weight: 600;
    line-height: 1;
}

.mfsa-rfc-page-btn {
    cursor: pointer;
}

.mfsa-rfc-page-btn:hover,
.mfsa-rfc-page-btn:focus,
.mfsa-rfc-page-btn.active {
    background: #00685e;
    color: #fff;
}

.mfsa-rfc-page-btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.mfsa-rfc-page-ellipsis {
    border-color: transparent;
    background: transparent;
    color: #64748b;
}

.mfsa-rfc-no-results {
    padding: 28px;
    text-align: center;
    color: #64748b;
    background: #fff;
    border: 1px solid #dbe7e6;
    border-radius: 6px;
}


@media print {
    .mfsa-rfc-date-calendar-btn {
        display: none !important;
    }
    body * {
        visibility: hidden;
    }

    .mfsa-rfc-wrapper,
    .mfsa-rfc-wrapper * {
        visibility: visible;
    }

    .mfsa-rfc-wrapper {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
    }

    .mfsa-rfc-toolbar,
    .mfsa-rfc-pagination {
        display: none !important;
    }

    .mfsa-rfc-table-wrap {
        overflow: visible !important;
    }
}

@media (max-width: 900px) {
    .mfsa-rfc-toolbar {
        flex-wrap: wrap;
    }

    .mfsa-rfc-toolbar-counts,
    .mfsa-rfc-toolbar-controls {
        width: 100%;
    }

    .mfsa-rfc-toolbar-controls {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .mfsa-rfc-search-wrap input[type="search"] {
        width: min(100%, 260px);
    }

    .mfsa-rfc-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .mfsa-rfc-wrapper {
        font-size: 15px;
    }

    .mfsa-rfc-card-grid {
        grid-template-columns: 1fr;
    }

    .mfsa-rfc-table-wrap {
        border: 0;
        overflow-x: visible;
    }

    .mfsa-rfc-table,
    .mfsa-rfc-table thead,
    .mfsa-rfc-table tbody,
    .mfsa-rfc-table th,
    .mfsa-rfc-table td,
    .mfsa-rfc-table tr {
        display: block;
    }

    .mfsa-rfc-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .mfsa-rfc-table tbody tr {
        margin-bottom: 12px;
        border: 1px solid #dbe7e6;
        border-radius: 8px;
        background: #fff;
        overflow: hidden;
    }

    .mfsa-rfc-table tbody td {
        width: 100%;
        padding: 12px 14px;
        text-align: left;
        border-right: 0;
    }

    .mfsa-rfc-table tbody td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 6px;
        color: #00685e;
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .mfsa-rfc-date-cell {
        white-space: normal;
    }
}
