/* General Styles */
.qtp-table {
    max-width: 800px;
}

.qtp-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    padding: 20px 24px;
    margin-top: 20px;
    max-width: 900px;
}

.qtp-required {
    color: #c5321f;
    margin-left: 4px;
}

.qtp-alert-box {
    margin-top: 20px;
    padding: 16px 20px;
    background: #fff8e1;
    border-left: 4px solid #ffa726;
    max-width: 900px;
    font-size: 14px;
    line-height: 1.6;
}

.qtp-alert-box strong {
    color: #e65100;
}

.qtp-alert-box.qtp-compact {
    padding: 12px 20px;
    line-height: 1.5;
}

.qtp-alert-box.qtp-compact strong {
    display: inline;
    margin-bottom: 0;
}

.qtp-alert-box.qtp-compact a {
    white-space: nowrap;
}

.qtp-credit-banner {
    margin-top: 24px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #e8f4ff, #f7fbff);
    border: 1px solid #d0e4ff;
    border-left: 4px solid #1c7ed6;
    border-radius: 12px;
    max-width: 900px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(19, 69, 120, 0.08);
}

.qtp-credit-banner.qtp-credit-warning {
    background: linear-gradient(135deg, #fff6e6, #fffdf6);
    border-color: #ffdab9;
    border-left-color: #f08c00;
}

.qtp-credit-banner strong {
    font-size: 22px;
    color: #0b5394;
}

.qtp-credit-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.qtp-credit-actions .button {
    border-radius: 6px;
    padding: 6px 16px;
}

.qtp-credit-actions .button-link {
    color: #1c7ed6;
    border: none;
    background: transparent;
    text-decoration: underline;
    padding: 0;
}

.qtp-credit-note {
    font-size: 13px;
    color: #4a6075;
    margin: 0;
}

.qtp-credit-desc {
    margin-top: 6px;
}

.qtp-submit-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qtp-test-feedback {
    font-size: 13px;
    color: #1b5e20;
    background: #e9f7ef;
    border: 1px solid #b7dfc3;
    padding: 6px 10px;
    border-radius: 6px;
}

.qtp-input-note {
    font-size: 13px;
    color: #555d66;
    margin: 4px 0 0;
}

.qtp-table input[type=text],
.qtp-table input[type=password],
.qtp-table textarea,
.qtp-table select {
    width: 100%;
}

.qtp-table td label {
    display: block;
    margin: 5px 0;
    font-weight: 600;
}

/* Password field with toggle button */
.qtp-password-field {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.qtp-password-field input {
    flex: 1;
}

.qtp-toggle-password {
    min-width: 60px;
    flex-shrink: 0;
}

/* Quick Configuration Page */
.qtp-quick-intro {
    display: block;
    padding-bottom: 4px;
}

.qtp-intro-text {
    margin-bottom: 12px;
}

.qtp-intro-text strong {
    font-size: 16px;
    margin-bottom: 8px;
    display: block;
}

.qtp-intro-text p {
    margin: 8px 0 0;
    color: #555;
}

.qtp-quick-intro .qtp-quick-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* Transactions Page */
.qtp-transactions {
    margin-top: 15px;
}

.qtp-tx-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
    flex-wrap: wrap;
}

.qtp-tx-header .description {
    margin: 0;
    flex: 1;
}

.qtp-transactions-table th.qtp-col-narrow {
    width: 80px;
}

.qtp-transactions-table th.qtp-col-medium {
    width: 120px;
}

.qtp-transactions-table .qtp-ref-truncate {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qtp-transactions-table .qtp-transaction-expand {
    position: relative !important;
    overflow: visible !important;
}

.qtp-transactions-table details {
    cursor: pointer;
}

.qtp-transactions-table details summary {
    list-style: none;
    padding: 4px 8px;
    background: #f0f0f1;
    border-radius: 4px;
    text-align: center;
    user-select: none;
}

.qtp-transactions-table details summary:hover {
    background: #dcdcde;
}

.qtp-transactions-table details summary::-webkit-details-marker {
    display: none;
}

.qtp-transactions-table details[open] summary {
    background: #dcdcde;
}

.qtp-tx-detail {
    position: absolute !important;
    right: 0 !important;
    top: 30px !important;
    z-index: 9999 !important;
    padding: 12px 16px !important;
    background: #fff !important;
    border: 2px solid #2271b1 !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    min-width: 550px !important;
    max-width: 750px !important;
}

.qtp-tx-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qtp-tx-grid > div {
    font-size: 13px;
    line-height: 1.6;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f1;
}

.qtp-tx-grid > div:last-child {
    border-bottom: none;
}

.qtp-tx-grid > div strong {
    display: block;
    margin-bottom: 6px;
    color: #1d2327;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qtp-tx-full {
    width: 100%;
}

.qtp-monospace {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    color: #2c3338;
    background: #f6f7f7;
    padding: 6px 8px;
    border-radius: 3px;
    display: block;
    word-break: break-all;
    line-height: 1.6;
    margin-top: 2px;
}
