﻿
[v-cloak] {
    display: none;
}

.page-taxpayer-query {
    background: #f4f7fb;
    min-height: calc(100vh - 60px);
    padding: 24px;
}

.tpq-page {
    max-width: 1400px;
    margin: 0 auto;
}

.tpq-page__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.tpq-page__title {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #1d2939;
    letter-spacing: -0.5px;
}

.tpq-page__subtitle {
    margin: 8px 0 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.6;
    max-width: 860px;
}

.tpq-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.tpq-badge--success {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #d1fadf;
}

.tpq-grid {
    display: grid;
    grid-template-columns: 1.8fr 0.8fr;
    gap: 20px;
    margin-bottom: 20px;
}

.tpq-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
    border: 1px solid #eaecf0;
}

.tpq-card--main {
    padding: 28px;
    padding-top: 0px;
}

.tpq-card__header h2,
.tpq-results-card__header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1d2939;
}

.tpq-card__header p,
.tpq-results-card__header p {
    margin: 8px 0 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.5;
}

.tpq-form {
    margin-top: 24px;
}

.tpq-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #344054;
    margin-bottom: 10px;
}

.tpq-searchbar {
    display: flex;
    gap: 14px;
    align-items: center;
}

.tpq-searchbar__input-wrap {
    position: relative;
    flex: 1;
}

.tpq-searchbar__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #98a2b3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpq-input {
    width: 100%;
    height: 56px;
    border-radius: 16px;
    border: 1px solid #d0d5dd;
    padding: 0 18px 0 46px;
    font-size: 15px;
    outline: none;
    background: #f9fafb;
    transition: all .2s ease;
    color: #101828;
}

    .tpq-input:focus {
        border-color: #3b82f6;
        background: #fff;
        box-shadow: 0 0 0 4px rgba(59,130,246,.10);
    }

.tpq-btn {
    height: 56px;
    padding: 0 24px;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    transition: all .2s ease;
    white-space: nowrap;
}

.tpq-btn--primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.22);
}

    .tpq-btn--primary:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 14px 24px rgba(37, 99, 235, 0.28);
    }

.tpq-btn:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.tpq-helper {
    margin-top: 10px;
    font-size: 13px;
    color: #667085;
}

.tpq-alert {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
}

.tpq-alert--error {
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fecdca;
}



.tpq-section-title {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 700;
    color: #1d2939;
}

.tpq-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.tpq-info-box {
    display: flex;
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #eef2f6;
}

.tpq-info-box__icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpq-info-box__icon--blue {
    background: #eff6ff;
    color: #2563eb;
}

.tpq-info-box__icon--yellow {
    background: #fffbeb;
    color: #d97706;
}

.tpq-info-box__title {
    font-size: 15px;
    font-weight: 700;
    color: #1d2939;
    margin-bottom: 6px;
}

.tpq-info-box__text {
    font-size: 14px;
    line-height: 1.6;
    color: #667085;
}

.tpq-side-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tpq-summary-card {
    padding: 10px 24px;
}

.tpq-summary-card__label {
    font-size: 13px;
    color: #667085;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.tpq-summary-card__value {
    font-size: 34px;
    font-weight: 800;
    color: #1d2939;
    line-height: 1.1;
}

.tpq-summary-card__value--small {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.tpq-results-card {
    padding: 28px;
    margin-bottom: 20px;
}

.tpq-results-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tpq-table-wrap {
    overflow-x: auto;
}

.tpq-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

    .tpq-table thead th {
        text-align: left;
        font-size: 12px;
        color: #4d545e;
        font-weight: 700;
        padding: 0 16px 8px;
        text-transform: uppercase;
        letter-spacing: .6px;
    }

    .tpq-table tbody tr {
        background: #fff;
        box-shadow: 0 2px 8px rgba(16, 24, 40, 0.04);
    }

    .tpq-table tbody td {
        padding: 18px 16px;
        font-size: 14px;
        color: #344054;
        border-top: 1px solid #f2f4f7;
        border-bottom: 1px solid #f2f4f7;
    }

        .tpq-table tbody td:first-child {
            border-left: 1px solid #f2f4f7;
            border-top-left-radius: 14px;
            border-bottom-left-radius: 14px;
        }

        .tpq-table tbody td:last-child {
            border-right: 1px solid #f2f4f7;
            border-top-right-radius: 14px;
            border-bottom-right-radius: 14px;
        }

.tpq-company-cell__name {
    font-weight: 600;
    color: #101828;
}

.tpq-tag-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    word-break: break-all;
}

    .tpq-tag-link:hover {
        text-decoration: underline;
    }

.tpq-icon-btn {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: #f2f4f7;
    color: #475467;
    cursor: pointer;
    transition: all .2s ease;
}

    .tpq-icon-btn:hover {
        background: #e5edf9;
        color: #2563eb;
    }

.tpq-text-center {
    text-align: center;
}

.tpq-text-break {
    word-break: break-word;
}

.tpq-state {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #667085;
}

.tpq-state__icon {
    font-size: 42px;
    margin-bottom: 12px;
    color: #98a2b3;
}

.tpq-state__title {
    font-size: 18px;
    font-weight: 700;
    color: #1d2939;
    margin-bottom: 6px;
}

.tpq-state__text {
    font-size: 14px;
    color: #667085;
}

.tpq-loader {
    width: 42px;
    height: 42px;
    border: 4px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: tpq-spin 0.8s linear infinite;
    margin-bottom: 14px;
}

@@keyframes tpq-spin {
    to {
        transform: rotate(360deg);
    }
}

.tpq-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    background: #101828;
    color: #fff;
    padding: 14px 18px;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(0,0,0,.18);
    font-size: 14px;
    z-index: 9999;
}

.fade-enter-active, .fade-leave-active {
    transition: opacity .25s ease;
}

.fade-enter, .fade-leave-to {
    opacity: 0;
}

@@media (max-width: 1100px) {
    .tpq-grid {
        grid-template-columns: 1fr;
    }

    .tpq-side-panel {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

@@media (max-width: 768px) {
    .page-taxpayer-query {
        padding: 14px;
    }

    .tpq-page__header {
        flex-direction: column;
        align-items: stretch;
    }

    .tpq-searchbar {
        flex-direction: column;
        align-items: stretch;
    }

    .tpq-btn {
        width: 100%;
    }

    .tpq-info-grid,
    .tpq-side-panel {
        grid-template-columns: 1fr;
    }

    .tpq-card--main,
    .tpq-results-card,
    .tpq-summary-card {
        padding: 18px;
    }

    .tpq-page__title {
        font-size: 26px;
    }
}