#app .pti-page {
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: #13203a;
}

#app .pti-page .pti-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

#app .pti-page .pti-header h1 {
    margin: 0;
    font-size: 40px;
    line-height: 1.08;
    font-weight: 700;
    color: #091628;
}

#app .pti-page .pti-header p {
    margin: 8px 0 0;
    max-width: 900px;
    color: #4e5f7b;
    font-size: 20px;
    line-height: 1.4;
}

#app .pti-page .pti-header-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #63738c;
    white-space: nowrap;
    font-size: 24px;
}

#app .pti-page .pti-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

#app .pti-page .pti-summary-grid.details {
    margin-top: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

#app .pti-page .pti-summary-card {
    background: #fff;
    border: 1px solid #dbe8f7;
    border-radius: 12px;
    padding: 10px 12px;
}

#app .pti-page .pti-summary-label {
    color: #5c6f8e;
    font-size: 14px;
    line-height: 1.25;
}

#app .pti-page .pti-summary-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
}

#app .pti-page .pti-summary-value {
    font-size: 28px;
    line-height: 1.1;
    font-weight: 700;
    color: #121f37;
}

#app .pti-page .pti-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

#app .pti-page .pti-icon-badge.blue {
    color: #2b6ce0;
    background: #eaf3ff;
}

#app .pti-page .pti-icon-badge.green {
    color: #1b9d53;
    background: #e7f8ee;
}

#app .pti-page .pti-icon-badge.amber {
    color: #d98606;
    background: #fff3dd;
}

#app .pti-page .pti-icon-badge.violet {
    color: #6a56f2;
    background: #ece8ff;
}

#app .pti-page .pti-icon-badge.rose {
    color: #d64a4a;
    background: #ffe9e9;
}

#app .pti-page .pti-summary-card.owes {
    background: #fff6f6;
    border-color: #ffd8d8;
}

#app .pti-page .pti-toolbar,
#app .pti-page .pti-details-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

#app .pti-page .pti-period-wrap,
#app .pti-page .pti-tools-right {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #54637d;
    font-size: 15px;
}

#app .pti-page .pti-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

#app .pti-page .pti-date-field {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #dce6f5;
    border-radius: 10px;
    padding: 6px 10px;
}

#app .pti-page .pti-date-field label {
    margin: 0;
    color: #6b7b94;
    font-size: 13px;
    font-weight: 600;
}

#app .pti-page .pti-date-input {
    border: none;
    outline: none;
    background: transparent;
    color: #16243d;
    font-size: 14px;
    min-width: 132px;
}

#app .pti-page .pti-input-wrap {
    position: relative;
    width: min(100%, 900px);
}

#app .pti-page .pti-input-wrap.small {
    width: 440px;
}

#app .pti-page .pti-input-wrap > i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8da5;
    font-size: 20px;
}

#app .pti-page .pti-input {
    width: 100%;
    border: 1px solid #dce6f5;
    border-radius: 10px;
    background: #fff;
    padding: 10px 12px 10px 40px;
    font-size: 15px;
    color: #16243d;
}

#app .pti-page .pti-secondary-button {
    border: 1px solid #dce6f5;
    background: #fff;
    border-radius: 10px;
    padding: 9px 14px;
    color: #2f3f5f;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}

#app .pti-page .pti-table-wrap {
    overflow: auto;
    border: 1px solid #dce6f5;
    border-radius: 12px;
    background: #fff;
}

#app .pti-page .pti-table-wrap.nested {
    border: none;
    border-top: 1px solid #e5edf8;
    border-radius: 0;
}

#app .pti-page .pti-table {
    width: 100%;
    border-collapse: collapse;
}

#app .pti-page .pti-table th {
    text-align: left;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    color: #5f6f89;
    font-size: 13px;
    font-weight: 600;
}

#app .pti-page .pti-table th,
#app .pti-page .pti-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #edf2fa;
    font-size: 14px;
    line-height: 1.25;
}

#app .pti-page .pti-table td.name {
    font-weight: 500;
}

#app .pti-page .pti-table tbody tr {
    cursor: pointer;
}

#app .pti-page .pti-table tbody tr:hover,
#app .pti-page .pti-table tbody tr.is-selected {
    background: #edf6ff;
}

#app .pti-page .pti-table tbody tr:last-child td {
    border-bottom: none;
}

#app .pti-page .pti-details-card {
    border: 1px solid #dce6f5;
    background: linear-gradient(180deg, #f1f8ff 0%, #ffffff 44%);
    border-radius: 14px;
    padding: 12px;
}

#app .pti-page .pti-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#app .pti-page .pti-details-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

#app .pti-page .pti-details-title-wrap h2 {
    margin: 0;
    color: #16243e;
    font-size: 30px;
    line-height: 1.1;
}

#app .pti-page .pti-badge {
    background: #e7f0ff;
    color: #2a6de0;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 18px;
    font-weight: 600;
}

#app .pti-page .pti-close {
    border: none;
    background: transparent;
    color: #6c7c95;
    font-size: 28px;
}

#app .pti-page .pti-tabs {
    display: flex;
    gap: 12px;
}

#app .pti-page .pti-tab {
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #6a7a93;
    padding: 7px 2px;
    font-weight: 600;
    font-size: 14px;
}

#app .pti-page .pti-tab.active {
    color: #2b6ce0;
    border-bottom-color: #2b6ce0;
}

#app .pti-page .pti-status {
    display: inline-flex;
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
}

#app .pti-page .pti-status.paid {
    background: #e8f9ee;
    color: #2f8f4e;
}

#app .pti-page .pti-status.pending {
    background: #fff3dd;
    color: #c27b0e;
}

#app .pti-page .pti-status.credit {
    background: #f0f2f5;
    color: #5d6472;
}

#app .pti-page .is-negative {
    color: #ea1d2c;
    font-weight: 600;
}

#app .pti-page .is-owed {
    color: #d64a4a;
    font-weight: 600;
}

#app .pti-page .pti-placeholder {
    padding: 12px 0 4px;
    color: #64748b;
    font-size: 15px;
}

#app .pti-page .pti-invoice-section {
    margin-top: 10px;
}

#app .pti-page .pti-invoice-section h3 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #5f6f89;
    font-weight: 600;
}

#app .pti-page .pti-table-scroll-10 {
    max-height: 430px;
    overflow-y: auto;
}

@media (max-width: 1900px) {
    #app .pti-page .pti-header h1 {
        font-size: 34px;
    }

    #app .pti-page .pti-header p {
        font-size: 16px;
    }

    #app .pti-page .pti-summary-value {
        font-size: 28px;
    }

    #app .pti-page .pti-table th,
    #app .pti-page .pti-table td,
    #app .pti-page .pti-tab,
    #app .pti-page .pti-input,
    #app .pti-page .pti-secondary-button,
    #app .pti-page .pti-period-wrap,
    #app .pti-page .pti-tools-right,
    #app .pti-page .pti-header-meta {
        font-size: 14px;
    }

    #app .pti-page .pti-details-title-wrap h2 {
        font-size: 30px;
    }

    #app .pti-page .pti-summary-label {
        font-size: 13px;
    }
}

@media (max-width: 1200px) {
    #app .pti-page .pti-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #app .pti-page .pti-toolbar,
    #app .pti-page .pti-details-toolbar,
    #app .pti-page .pti-header {
        flex-direction: column;
        align-items: stretch;
    }

    #app .pti-page .pti-input-wrap,
    #app .pti-page .pti-input-wrap.small {
        width: 100%;
    }
}
