/* Search, filter and paging on the public portfolio list (templates/portfolio/list.html).
   The page's inline styles give every label a min-width and padding and every input/select
   flex:1, so the controls here reset what they need. Dark mode: .pf-surface is themed by
   theme.css; chip colours come from portfolio-style.css. */
.pff { background: #fff; border: 1px solid #e3e8ef; border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; }
.pff-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pff-search { flex: 1 1 280px; position: relative; display: flex; }
.pff-search i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #7f8c8d; pointer-events: none; }
.pff-search input { flex: 1; padding: 9px 12px 9px 34px; border: 1px solid #cfd8e3; border-radius: 6px; font-size: 14px; min-width: 0; }
.pff-sort, .pff-select { flex: 0 0 auto; padding: 9px 10px; border: 1px solid #cfd8e3; border-radius: 6px; font-size: 14px; background: #fff; }
.pff-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 6px; border: 1px solid #cfd8e3;
           background: #fff; color: #34495e; font-size: 14px; cursor: pointer; text-decoration: none; }
.pff-btn-primary { background: #3498db; border-color: #3498db; color: #fff; }
.pff-btn-primary:hover { background: #2980b9; }
.pff-panel { margin-top: 10px; }
.pff-panel > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; color: #3498db;
                       list-style: none; user-select: none; }
.pff-panel > summary::-webkit-details-marker { display: none; }
.pff-groups { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.pff-row { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.pff-group { display: flex; flex-direction: column; gap: 6px; }
.pff .pff-label { min-width: 0; padding: 0; margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase;
                  letter-spacing: .04em; color: #5b6b82; }
.pff .ps-chips { padding-top: 0; }
.pff-actions { display: flex; gap: 8px; margin-top: 14px; }

.pff-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; font-size: 14px; color: #5b6b82; }
.pff-chip { display: inline-flex; align-items: center; gap: 2px; padding: 3px 6px 3px 10px; border-radius: 999px; background: #e8f2fc;
            color: #1f6fb2; text-decoration: none; font-size: 13px; }
.pff-chip:hover { background: #d4e8fa; }
.pff-clear { font-size: 13px; }

.pff-pages { display: flex; justify-content: center; align-items: center; gap: 4px; flex-wrap: wrap; margin: 20px 0 8px; }
.pff-page { min-width: 36px; padding: 7px 10px; border-radius: 6px; border: 1px solid #cfd8e3; text-align: center;
            text-decoration: none; color: #34495e; background: #fff; font-size: 14px; }
.pff-page:hover { border-color: #3498db; }
.pff-current { background: #3498db; border-color: #3498db; color: #fff; font-weight: 600; }
.pff-gap { padding: 0 4px; color: #7f8c8d; }

[data-theme="dark"] .pff .pff-label, [data-theme="dark"] .pff-status { color: #93a7c4 !important; }
[data-theme="dark"] .pff-panel > summary { color: #4da3ff; }
[data-theme="dark"] .pff-btn:not(.pff-btn-primary), [data-theme="dark"] .pff-page:not(.pff-current) {
    background: #0f1e36; border-color: #29456a; color: #cbd5e1; }
[data-theme="dark"] .pff-chip { background: #14294a; color: #8cc4ff; }
[data-theme="dark"] .pff-chip:hover { background: #1b3560; }
[data-theme="dark"] .pff-current { background: #2f7de1; border-color: #2f7de1; }
@media (max-width: 600px) { .pff-row { flex-direction: column; gap: 12px; } .pff-sort { flex: 1 1 100%; } }
