/*
 * Front-end tabbed file list styles.
 *
 * WPCA wraps all customer-area output in .cuar-css-wrapper and applies
 * broad ancestor selectors like:
 *   body.customer-area-active .cuar-css-wrapper a:not(.btn)
 * These force link color, text-decoration, and background on every <a>.
 * The <ul>/<li> also pick up default list-style from the theme/WPCA.
 *
 * To win the specificity war without resorting to !important, every
 * selector below is scoped under .cuar-css-wrapper .pfc-tabs. That
 * compound prefix outweighs WPCA's own selectors and only fires inside
 * the customer area — safe to load site-wide.
 */

/* ---- Tab nav --------------------------------------------------------- */

.cuar-css-wrapper .pfc-tabs .pfc-tab-nav {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid #ddd;
    gap: 0;
}

.cuar-css-wrapper .pfc-tabs .pfc-tab-nav-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cuar-css-wrapper .pfc-tabs a.pfc-tab-link {
    display: inline-block;
    padding: 0.65em 1.25em;
    margin-bottom: -2px;
    text-decoration: none;
    color: #555;
    background: transparent;
    border: 2px solid transparent;
    border-bottom-color: transparent;
    border-radius: 4px 4px 0 0;
    font-size: 14px;
    font-weight: 500;
    transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
}

.cuar-css-wrapper .pfc-tabs a.pfc-tab-link:hover,
.cuar-css-wrapper .pfc-tabs a.pfc-tab-link:focus {
    color: #222;
    background: #f6f7f7;
    text-decoration: none;
}

.cuar-css-wrapper .pfc-tabs a.pfc-tab-link.pfc-active {
    color: #1d2327;
    border-color: #ddd;
    border-bottom-color: #fff;
    background: #fff;
}

.cuar-css-wrapper .pfc-tabs .pfc-tab-count {
    display: inline-block;
    min-width: 1.5em;
    padding: 0.1em 0.5em;
    margin-left: 0.4em;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
    color: #666;
    background: #eee;
    border-radius: 10px;
}

.cuar-css-wrapper .pfc-tabs a.pfc-tab-link.pfc-active .pfc-tab-count {
    background: #e1ecf4;
    color: #2271b1;
}

/* ---- Tab panels ------------------------------------------------------ */

.cuar-css-wrapper .pfc-tabs .pfc-tab-panel {
    display: none;
    padding: 0.5em 0;
}

.cuar-css-wrapper .pfc-tabs .pfc-tab-panel.pfc-active {
    display: block;
}

/* ---- File list table ------------------------------------------------- */

.cuar-css-wrapper .pfc-tabs .pfc-file-list {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.cuar-css-wrapper .pfc-tabs .pfc-file-row {
    border-bottom: 1px solid #eee;
}

.cuar-css-wrapper .pfc-tabs .pfc-file-row:last-child {
    border-bottom: none;
}

.cuar-css-wrapper .pfc-tabs .pfc-file-icon {
    width: 2.5em;
    padding: 0.75em 0.5em 0.75em 0;
    text-align: center;
    color: #b32d2e;
    font-size: 18px;
    vertical-align: middle;
}

.cuar-css-wrapper .pfc-tabs .pfc-file-info {
    padding: 0.75em 0;
    vertical-align: middle;
}

.cuar-css-wrapper .pfc-tabs a.pfc-file-link {
    display: block;
    color: #2271b1;
    text-decoration: none;
    font-weight: 500;
    background: transparent;
}

.cuar-css-wrapper .pfc-tabs a.pfc-file-link:hover,
.cuar-css-wrapper .pfc-tabs a.pfc-file-link:focus {
    color: #135e96;
    text-decoration: underline;
}

.cuar-css-wrapper .pfc-tabs .pfc-file-date {
    display: block;
    margin-top: 0.15em;
    font-size: 12px;
    color: #888;
}

/* ---- Empty state ----------------------------------------------------- */

.cuar-css-wrapper .pfc-empty-state {
    text-align: center;
    padding: 3em 1em;
    color: #666;
}

/* ---- Single-category fallback (no tabs shown) ------------------------ */

.cuar-css-wrapper .pfc-tabs .pfc-panel-title {
    margin: 0.75em 0 0.5em;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

/* ---- Responsive ------------------------------------------------------ */

@media (max-width: 600px) {
    .cuar-css-wrapper .pfc-tabs a.pfc-tab-link {
        padding: 0.5em 0.75em;
        font-size: 13px;
    }
    .cuar-css-wrapper .pfc-tabs .pfc-tab-count {
        display: none;
    }
}
