:root {
    color-scheme: light;
}

.fi-topbar,
.fi-sidebar {
    display: none !important;
}

.fi-main {
    padding-left: 0 !important;
}

.fi-layout .fi-main-ctn,
.fi-layout .fi-main,
.fi-page,
.fi-page-content,
.fi-body,
.fi-layout {
    width: 100% !important;
    max-width: 100% !important;
}

.fi-main,
.fi-page,
.fi-page-content,
.fi-page-content-ctn {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.pcp-header {
    width: 100%;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

.pcp-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 64px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.pcp-header-clock {
    min-width: 220px;
    line-height: 1.1;
}

.pcp-header-clock div {
    color: #111827;
    font-size: 18px;
    font-weight: 700;
}

.pcp-header-clock span {
    color: #6b7280;
    font-size: 11px;
}

.pcp-header-nav {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pcp-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 8px;
    padding: 9px 14px;
    background: transparent;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.pcp-nav-item:hover,
.pcp-nav-item.active {
    background: #f3f4f6;
    color: #111827;
}

.pcp-account {
    position: relative;
    min-width: 220px;
    display: flex;
    justify-content: flex-end;
}

.pcp-account-button {
    border: 0;
    border-radius: 8px;
    padding: 8px 12px;
    background: transparent;
    text-align: right;
    cursor: pointer;
}

.pcp-account-button:hover {
    background: #f9fafb;
}

.pcp-account-button strong,
.pcp-account-button span {
    display: block;
}

.pcp-account-button strong {
    color: #111827;
    font-size: 14px;
    line-height: 1.2;
}

.pcp-account-button span {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.2;
}

.pcp-account-menu {
    position: absolute;
    top: 48px;
    right: 0;
    z-index: 50;
    min-width: 220px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    padding: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
}

.pcp-account-menu button {
    width: 100%;
    border: 0;
    border-radius: 6px;
    padding: 8px 10px;
    background: transparent;
    color: #374151;
    text-align: left;
    cursor: pointer;
}

.pcp-account-menu button:hover {
    background: #f3f4f6;
}

.pcp-account-version {
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 6px;
    padding: 4px 8px 8px;
    color: #6b7280;
    font-size: 11px;
}

.pcp-subnav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    border-top: 1px solid #e5e7eb;
    max-width: 1320px;
    margin: 0 auto;
    padding: 8px 24px;
}

.pcp-subnav a {
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 5px 10px;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.pcp-subnav a:hover,
.pcp-subnav a.active {
    border-color: #d1d5db;
    background: #f3f4f6;
    color: #111827;
}

.pcp-workspace {
    max-width: 1320px;
    margin: 0 auto;
    padding: 16px 24px 32px;
}

.pcp-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.pcp-toolbar h2 {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 700;
}

.pcp-toolbar p {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 13px;
}

.pcp-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.pcp-btn {
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
}

.pcp-btn-primary {
    border: 1px solid #111827;
    background: #111827;
    color: #ffffff;
}

.pcp-btn-secondary {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
}

.pcp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.pcp-kpi {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    padding: 14px 16px;
}

.pcp-kpi span {
    display: block;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
}

.pcp-kpi strong {
    display: block;
    margin-top: 6px;
    color: #111827;
    font-size: 24px;
    line-height: 1;
}

.pcp-table-shell {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.pcp-table-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px;
}

.pcp-table-toolbar input,
.pcp-table-toolbar select {
    min-height: 36px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0 12px;
    color: #374151;
    font-size: 13px;
}

.pcp-empty-state {
    padding: 42px 16px;
    color: #6b7280;
    font-size: 14px;
    text-align: center;
}

[x-cloak] {
    display: none !important;
}

@media (max-width: 900px) {
    .pcp-header-main,
    .pcp-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .pcp-header-clock,
    .pcp-account {
        min-width: 0;
    }

    .pcp-header-nav {
        justify-content: flex-start;
        overflow-x: auto;
        width: 100%;
    }

    .pcp-account {
        justify-content: flex-start;
    }

    .pcp-account-button {
        text-align: left;
    }

    .pcp-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
