/* Fastpage list pages (links, projects, QR codes, pixels, data...): modern rows. Loaded from views/wrapper.php. */

.custom-row {
    background: var(--white, #fff);
    border: 1px solid var(--fp-border, #e9eae7);
    border-radius: 12px;
    padding: 1.1rem 1.4rem;
    box-shadow: none;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.custom-row:hover {
    border-color: var(--fp-border, #e9eae7);
    background: var(--fp-hover, #fafaf9);
    box-shadow: none;
}

.custom-row-inactive {
    background: var(--white, #fff);
    opacity: .6;
}

.custom-row .fa-stack {
    width: 2.5em;
    height: 2.5em;
}

.custom-row .badge-light {
    border-radius: 6px;
    padding: .35rem .65rem;
    font-weight: 600;
}

.custom-row .btn-link {
    border-radius: 10px;
}

.custom-row .btn-link:hover {
    background: #f0f1ee;
}

.custom-row a.text-muted {
    font-size: .85rem;
}

@media (prefers-reduced-motion: reduce) {
    .custom-row, .custom-row:hover {
        transition: none;
        transform: none;
    }
}

/* Tools row: the pages that left the side menu (partials/fp_tools_menu.php) */
.fp-tools-nav-label {
    display: block;
    margin-bottom: .5rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gray-500, #64748b);
}

.fp-tools-nav .account-header-navbar {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0 .5rem;
}

.fp-tools-nav .nav-link {
    padding: .5rem 1rem;
}

/* Listings share one calm surface, rather than a stack of floating cards. */
.fp-list-search {
    margin: 0 0 20px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--fp-border, #e9eae7);
    border-radius: 12px;
}
.fp-list-search > label {
    display: block;
    margin-bottom: 8px;
    color: #464943;
    font-size: .8125rem;
    font-weight: 500;
}
.fp-list-search-controls {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}
.fp-list-search-icon {
    position: absolute;
    inset-inline-start: 14px;
    color: #747773;
    pointer-events: none;
}
.fp-list-search-controls input[type="search"] {
    flex: 1;
    min-width: 0;
    padding-inline-start: 40px;
    background: #fafaf9;
}
.fp-list-search-controls .custom-select { width: auto; max-width: 180px; }
.fp-list-search-status {
    margin: 0;
    color: #646761;
    font-size: .8125rem;
}
.fp-list-search-status:not(:empty) { margin-top: 8px; }
.fp-list-search.is-loading .fp-list-search-icon { opacity: .4; }
.fp-list-results[aria-busy="true"] { opacity: .65; }
.fp-list-results > .custom-row {
    margin-bottom: 0 !important;
    padding: 20px 24px;
    border-bottom: 0;
    border-radius: 0;
    background: #fff;
}
.fp-list-results > .custom-row:first-child { border-radius: 12px 12px 0 0; }
.fp-list-results > .custom-row:has(+ :not(.custom-row)),
.fp-list-results > .custom-row:last-child {
    border-bottom: 1px solid var(--fp-border, #e9eae7);
    border-radius: 0 0 12px 12px;
}
.fp-list-results > .custom-row:only-child { border-radius: 12px; }
.fp-list-results > .custom-row:hover { background: #fafaf9; }
.fp-list-results .custom-row a.font-weight-bold {
    color: #222321;
    font-size: .9375rem;
    font-weight: 600 !important;
}
.fp-list-results .custom-row .fa-stack .fa-circle { color: #f0f1ee !important; }
.fp-list-results .custom-row .fa-stack .fa-inverse { color: #464943; }
.fp-list-results .custom-row .badge { font-variant-numeric: tabular-nums; }
.fp-list-results > .mt-3 > .card {
    border: 0;
    background: transparent;
}
.fp-list-results > .mt-3 > .card > .card-body { padding: 12px 0; }
.fp-list-results .table-custom-container { border-radius: 12px; border-color: #e9eae7; }
.fp-list-results .table-custom td,
.fp-list-results .table-custom th { padding: 16px 20px; }

@media (max-width: 575.98px) {
    .fp-list-search { padding: 16px; }
    .fp-list-search-controls { flex-wrap: wrap; gap: 8px; }
    .fp-list-search-controls input[type="search"] { flex-basis: 100%; }
    .fp-list-search-icon { top: 12px; }
    .fp-list-search-controls .custom-select { flex: 1; max-width: none; }
    .fp-list-results > .custom-row { padding: 16px; }
}
