.pp-layout {
    display: flex;
    min-height: 100vh;
}

.pp-sidebar {
    width: 260px;
    background: #fff;
    border-right: 1px solid #e9ecef;
    padding: 0;
    flex-shrink: 0;
}

.pp-sidebar-brand {
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #440099;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pp-sidebar-brand i {
    font-size: 1.3rem;
}

.pp-nav {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.pp-nav-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.5rem;
    color: #39364f;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.15s;
}

.pp-nav-item a:hover {
    background: rgba(68, 0, 153, 0.05);
    color: #440099;
}

.pp-nav-item.active a {
    background: rgba(68, 0, 153, 0.08);
    color: #440099;
    font-weight: 600;
    border-right: 3px solid #440099;
}

.pp-nav-item a i {
    font-size: 1.1rem;
    width: 1.25rem;
    text-align: center;
}

.pp-main {
    flex: 1;
    padding: 2rem;
    background: #f8f9fa;
    overflow-y: auto;
}

.pp-header {
    margin-bottom: 1.5rem;
}

.pp-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #39364f;
    margin-bottom: 0.25rem;
}

.pp-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.pp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
}

.pp-card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #39364f;
    margin: 0;
}

.pp-link {
    color: #440099;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.pp-link:hover {
    text-decoration: underline;
}

.pp-btn-primary {
    background: #440099;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: background 0.15s;
}

.pp-btn-primary:hover {
    background: #350077;
    color: #fff;
}

.pp-btn-primary:disabled {
    background: #9b7bc7;
    cursor: not-allowed;
}

.pp-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.pp-kpi-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pp-kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.pp-kpi-body {
    display: flex;
    flex-direction: column;
}

.pp-kpi-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pp-kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #39364f;
}

.pp-table {
    margin: 0;
}

.pp-table thead th {
    background: #f8f9fa;
    color: #6c757d;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
}

.pp-table tbody td {
    padding: 0.75rem 1rem;
    color: #39364f;
    font-size: 0.9rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f5;
}

.pp-table tbody tr:hover {
    background: rgba(68, 0, 153, 0.02);
}

.pp-status-draft { background: #6c757d; color: #fff; }
.pp-status-pending { background: #ffc107; color: #212529; }
.pp-status-approved { background: #28a745; color: #fff; }
.pp-status-rejected { background: #dc3545; color: #fff; }
.pp-status-submitted { background: #007bff; color: #fff; }
.pp-status-underreview { background: #17a2b8; color: #fff; }
.pp-status-amendmentsrequired { background: #fd7e14; color: #fff; }
.pp-status-contacted { background: #17a2b8; color: #fff; }
.pp-status-quotesent { background: #6f42c1; color: #fff; }
.pp-status-accepted { background: #28a745; color: #fff; }
.pp-status-declined { background: #dc3545; color: #fff; }
.pp-status-paid { background: #28a745; color: #fff; }
.pp-status-partiallypaid { background: #ffc107; color: #212529; }
.pp-status-refunded { background: #6c757d; color: #fff; }

.pp-status-list {
    padding: 0.75rem 1.25rem;
}

.pp-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f5;
    font-size: 0.9rem;
    color: #39364f;
}

.pp-status-item:last-child {
    border-bottom: none;
}

.pp-quick-actions {
    padding: 0.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pp-quick-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(68, 0, 153, 0.05);
    border-radius: 8px;
    color: #440099;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s;
}

.pp-quick-btn:hover {
    background: rgba(68, 0, 153, 0.1);
    color: #440099;
}

.pp-register-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 2rem;
}

.pp-register-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    padding: 2.5rem;
    max-width: 600px;
    width: 100%;
}

.pp-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 1.5rem 0;
}

.pp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.pp-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.pp-step.active .pp-step-num {
    background: #440099;
    color: #fff;
}

.pp-step span {
    font-size: 0.75rem;
    color: #6c757d;
}

.pp-step.active span {
    color: #440099;
    font-weight: 600;
}

.pp-step-line {
    width: 60px;
    height: 2px;
    background: #e9ecef;
    margin: 0 0.5rem;
    margin-bottom: 1rem;
    transition: background 0.2s;
}

.pp-step-line.active {
    background: #440099;
}

.pp-form-section {
    margin-top: 1.5rem;
}

.pp-form-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #39364f;
    margin-bottom: 1rem;
}

.pp-confirm-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.pp-confirm-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
    color: #39364f;
}

.pp-confirm-row:last-child {
    border-bottom: none;
}

.pp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.pp-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
}

.pp-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pp-gallery-actions {
    position: absolute;
    top: 4px;
    right: 4px;
    opacity: 0;
    transition: opacity 0.15s;
}

.pp-gallery-item:hover .pp-gallery-actions {
    opacity: 1;
}

.pp-ticket-row {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
}

.pp-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.pp-service-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.pp-service-card:hover {
    border-color: #440099;
    box-shadow: 0 4px 12px rgba(68, 0, 153, 0.1);
}

.pp-service-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(68, 0, 153, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: #440099;
}

.pp-service-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #39364f;
    margin-bottom: 0.5rem;
}

.pp-service-card p {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.pp-property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.pp-property-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.15s;
}

.pp-property-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pp-property-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.pp-property-img-ph {
    width: 100%;
    height: 180px;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #adb5bd;
}

.pp-property-body {
    padding: 1rem;
}

.pp-property-body h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #39364f;
    margin: 0;
}

.pp-tabs {
    display: flex;
    gap: 0.25rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 0.25rem;
}

.pp-tab {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.pp-tab:hover {
    background: #f8f9fa;
    color: #39364f;
}

.pp-tab.active {
    background: #440099;
    color: #fff;
}

@media (max-width: 991px) {
    .pp-layout {
        flex-direction: column;
    }

    .pp-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }

    .pp-nav {
        display: flex;
        overflow-x: auto;
        padding: 0.5rem;
        gap: 0.25rem;
    }

    .pp-nav-item a {
        white-space: nowrap;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    .pp-nav-item.active a {
        background: #440099;
        color: #fff;
        border-right: none;
    }

    .pp-main {
        padding: 1rem;
    }

    .pp-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pp-property-grid {
        grid-template-columns: 1fr;
    }

    .pp-service-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .pp-kpi-grid {
        grid-template-columns: 1fr;
    }

    .pp-stepper {
        flex-wrap: wrap;
    }

    .pp-register-card {
        padding: 1.5rem;
    }

    .pp-tabs {
        flex-wrap: wrap;
    }
}
