#factionOverviewPageContentContainer {
    width: 95%;
    max-width: 1500px;
    margin: 10px auto;
    padding: 20px;
    background-color: rgba(34, 34, 34, 0.85);
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border: 2px solid black;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
    height: calc(100vh - 160px);
}

.fo-header-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid black;
    flex-shrink: 0;
}

.fo-page-title {
    color: #00a8ff;
    margin: 0;
    font-size: 1.9rem;
    font-weight: bold;
    text-align: center;
    flex-grow: 1;
}

.fo-cog-button {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #00a8ff;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    padding: 5px;
}

.fo-cog-button:hover {
    transform: rotate(45deg);
    color: #00e0ff;
}

.fo-sub-tabs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid black;
    flex-shrink: 0;
}

.fo-sub-tab-button {
    padding: 10px 18px;
    border: 1px solid #007acc;
    border-radius: 5px;
    background-color: #1a1a1a;
    color: #eee;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    font-size: 0.95rem;
}

.fo-sub-tab-button:hover:not(.active) {
    background-color: #282828;
    border-color: #00a8ff;
}

.fo-sub-tab-button.active {
    background-color: #007acc;
    border-color: #00e0ff;
    color: #fff;
    box-shadow: 0 0 8px rgba(0, 168, 255, 0.5);
}

.fo-controls-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 3px solid black;
    flex-shrink: 0;
}

.fo-search-input,
.fo-date-input {
    background-color: #1a1a1a;
    border: 1px solid #007acc;
    border-radius: 4px;
    padding: 8px 12px;
    color: #eee;
    font-size: 0.95rem;
    flex-grow: 1;
    min-width: 150px;
    max-width: 250px;
}

.fo-search-input::placeholder {
    color: #aaa;
}

.fo-search-input:focus,
.fo-date-input:focus {
    border-color: #00a8ff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 168, 255, 0.5);
}

.fo-button {
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #00a8ff;
    background-color: #131314;
    color: #e3e3e3;
    white-space: nowrap;
}

.fo-button:hover {
    background-color: #007acc;
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.5);
}

.fo-date-label {
    color: #00a8ff;
    font-weight: bold;
    white-space: nowrap;
}

.fo-display-area {
    flex-grow: 1;
    min-height: 200px;
    overflow-y: auto;
    border: 1px solid #00a8ff;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.3);
}

.fo-data-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.fo-data-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #004d80;
}

.fo-data-table th,
.fo-data-table td {
    padding: 12px 15px;
    text-align: left;
    color: #eee;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid #007acc;
    font-weight: bold;
}

.fo-data-table th {
    font-weight: bold;
    color: #00e0ff;
}

.fo-data-table tbody tr:hover {
    background-color: rgba(0, 168, 255, 0.1);
}

.fo-loader {
    border: 5px solid #444;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1.2s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fo-display-area:has(.fo-balances-layout) {
    overflow-y: hidden;
}

.fo-balances-layout {
    display: flex;
    gap: 20px;
    align-items: stretch;
    margin-top: -7px;
}

.fo-balances-left-panel,
.fo-balances-right-panel {
    display: flex;
    flex-direction: column;
    border: 2px solid black;
    padding: 15px;
    background-color: #2a3d52;
    border-radius: 8px;
}

.fo-balances-left-panel {
    flex: 3;
}

.fo-balances-right-panel {
    flex: 2;
}

#foOverallFactionBalances {
    margin-bottom: 15px;
    text-align: center;
    flex-shrink: 0;
    background: #1e2a38;
    padding: 10px;
    border-radius: 5px;
}

#foOverallFactionBalances h4 {
    margin: 0 0 5px 0;
    color: #eee;
}

#foOverallFactionBalances h2 {
    color: #28a745;
    margin: 0;
}

#foMemberBalancesScroll {
    overflow-y: auto;
    flex-grow: 1;
    background: #1e2a38;
    border-radius: 5px;
    padding: 0 10px;
    max-height: 281px;
}

#foMemberBalancesScroll .fo-data-table {
    margin-top: 0;
}

#foMemberBalancesScroll .fo-data-table thead {
    background-color: #1e2a38;
}

.fo-member-fund-search-area {
    margin-bottom: 15px;
    flex-shrink: 0;
}

#foFundActivityScroll {
    overflow-y: auto;
    flex-grow: 1;
    background: #1e2a38;
    padding: 10px;
    border-radius: 5px;
    max-height: 392px;
}

#foFundActivityScroll ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#foFundActivityScroll li {
    padding: 8px;
    border-bottom: 1px solid #34495e;
    font-size: 0.9em;
}

#foFundActivityScroll li:last-child {
    border-bottom: none;
}

.fo-logistics-panels-container,
.fo-oversight-panels-container {
    display: flex;
    gap: 20px;
    padding: 15px;
    margin-top: -35px;
}

.fo-logistics-panel,
.fo-oversight-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #2a3d52;
    border: 2px solid black;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: auto;
}

.fo-panel-title {
    color: #00a8ff;
    font-size: 1.2rem;
    margin: 0 0 15px 0;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 168, 255, 0.2);
    flex-shrink: 0;
}

.fo-scrollable-panel-content {
    overflow-y: auto;
    flex-grow: 1;
    max-height: 225px;
}

.fo-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
}

.fo-kpi-box {
    background-color: #1e2a38;
    border: 1px solid #007acc;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.fo-kpi-box h5 {
    color: #00a8ff;
    font-size: 1em;
    margin: 0 0 10px 0;
}

.fo-kpi-box p {
    color: #fff;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
}

#oversightAlertsList li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease, border-left 0.3s ease;
    border-left: 3px solid transparent;
    font-weight: bold;
}

.alert-text {
    flex-grow: 1;
    padding-right: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alert-actions {
    display: flex;
    gap: 20px;
    padding-left: 15px;
    font-size: 1.1em;
	margin-right: 4px;
}

.action-btn {
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.action-btn.fa-thumbtack {
    color: #bdc3c7;
}

.action-btn.fa-check {
    color: #bdc3c7;
}

.action-btn:hover {
    transform: scale(1.3);
}

.action-btn.fa-thumbtack:hover {
    color: #e74c3c;
}

.action-btn.fa-check:hover {
    color: #2ecc71;
}

#oversightAlertsList li.pinned {
    background-color: #4a6078;
    border-left: 4px solid #e74c3c;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

#oversightAlertsList li.pinned .fa-thumbtack {
    color: #e74c3c;
}

#oversightTopUsersList li {
    font-weight: bold;
}

.fo-data-table th:nth-child(1),
.fo-data-table td:nth-child(1) {
    width: 20%;
}

.fo-data-table th:nth-child(2),
.fo-data-table td:nth-child(2) {
    width: 20%;
}

.fo-data-table th:nth-child(3),
.fo-data-table td:nth-child(3) {
    width: 40%;
}

.fo-data-table th:nth-child(4),
.fo-data-table td:nth-child(4) {
    width: 20%;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #222;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background-color: #007acc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #00a8ff;
}

@media screen and (min-width: 1201px) {
    body {
        overflow: hidden;
    }
}