/* ── Forms, Policies & Guides ── */
/* ── Search Bar ── */
.fpg-search-bar {
    background: #E4E5E4;
    padding: 18px 22px;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.fpg-search-bar input[type="text"],
.fpg-search-bar input[type="search"] {
    flex: 1 1 280px;
    padding: 8px 12px;
    border: 1px solid #bbb;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
}

.fpg-search-bar input[type="text"]:focus,
.fpg-search-bar input[type="search"]:focus {
    border-color: #00426A;
}

.fpg-search-bar .fpg-in-label {
    font-weight: 600;
    color: #555;
    flex-shrink: 0;
}

.fpg-search-bar select {
    flex: 1 1 220px;
    padding: 8px 12px;
    border: 1px solid #bbb;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    outline: none;
}

.fpg-search-bar select:focus {
    border-color: #00426A;
}

.fpg-search-btn {
    padding: 8px 24px;
    background: #00426A;
    color: #fff;
    border: none;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    flex-shrink: 0;
}

.fpg-search-btn:hover {
    background: #003354;
}

/* ── Tab Header ── */
.fpg-tab-header {
    background: #E4E5E4;
    padding: 12px 20px;
    border-bottom: 3px solid #4a8c2a;
}

.fpg-tab-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: #333;
}

.fpg-back-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: #00426A;
    text-decoration: none;
}

.fpg-back-link:hover {
    text-decoration: underline;
}

/* ── Folder Table ── */
.fpg-folder-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
    border-top: none;
}

.fpg-folder-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: middle;
}

.fpg-folder-table tr:last-child td {
    border-bottom: none;
}

.fpg-folder-table .fpg-col-name {
    text-align: left;
}

.fpg-folder-table .fpg-col-count {
    text-align: right;
    color: #555;
    font-size: 0.9rem;
    white-space: nowrap;
}

.fpg-folder-link {
    color: #00426A;
    font-weight: 600;
    text-decoration: none;
}

.fpg-folder-link:hover {
    text-decoration: underline;
}

/* ── Folder Detail ── */
.fpg-folder-title {
    color: #00426A;
    font-weight: 800;
    font-size: 1.4rem;
    margin: 25px 0 15px;
}

/* ── Document Table ── */
.fpg-doc-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
}

.fpg-doc-table td {
    padding: 12px 20px;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: middle;
}

.fpg-doc-table tr:last-child td {
    border-bottom: none;
}

.fpg-doc-table tr.fpg-doc-row:hover {
    background: #f7f8f7;
}

.fpg-doc-table .fpg-col-doc-name {
    text-align: left;
}

.fpg-doc-table .fpg-col-doc-actions {
    text-align: right;
    white-space: nowrap;
}

.fpg-doc-icon {
    color: #c00;
    margin-right: 8px;
    font-size: 1.1rem;
}

.fpg-doc-link {
    color: #00426A;
    font-weight: 600;
    text-decoration: none;
}

.fpg-doc-link:hover {
    text-decoration: underline;
}

/* ── Show/Hide Details Button ── */
.fpg-toggle-details {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-family: inherit;
    color: #555;
    background: #fff;
    border: 1px solid #bbb;
    cursor: pointer;
    white-space: nowrap;
}

.fpg-toggle-details:hover {
    border-color: #00426A;
    color: #00426A;
}

.fpg-toggle-icon {
    font-weight: 700;
    font-size: 0.9rem;
}

/* ── Details Panel ── */
.fpg-doc-details-cell {
    padding: 15px 20px 15px 48px !important;
    background: #f9f9f9;
    border-bottom: 1px solid #e8e8e8 !important;
}

.fpg-detail-row {
    margin-bottom: 4px;
}

.fpg-detail-label {
    font-weight: 700;
    color: #333;
    margin-right: 8px;
}

.fpg-detail-value {
    color: #555;
}

.fpg-detail-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.fpg-empty {
    padding: 20px;
    color: #707372;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .fpg-search-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .fpg-search-bar input[type="text"],
    .fpg-search-bar input[type="search"],
    .fpg-search-bar select {
        flex: 1 1 auto;
        width: 100%;
    }

    .fpg-search-bar .fpg-in-label {
        display: none;
    }

    .fpg-folder-table td,
    .fpg-doc-table td {
        padding: 10px 12px;
    }

    .fpg-doc-table .fpg-col-doc-name,
    .fpg-doc-table .fpg-col-doc-actions {
        display: block;
        text-align: left;
    }

    .fpg-doc-table .fpg-col-doc-actions {
        padding-top: 0;
    }

    .fpg-detail-meta {
        flex-direction: column;
    }

    .fpg-doc-details-cell {
        padding-left: 20px !important;
    }
}
