.hospital-transactions {
    max-width: 2560px;
    font-size: 14px;
    padding: 20px;
}

.hospital-transactions * {
    font-size: inherit;
}

.hospital-transactions input,
.hospital-transactions select,
.hospital-transactions textarea,
.hospital-transactions button {
    font-size: 14px;
}

/* 页面标题和按钮样式 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.page-title {
    font-size: 28px;
    color: #2d3748;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-title .dashicons {
    font-size: 32px;
    color: #667eea;
    margin-bottom: 10px;
}

/* 患者搜索结果样式 */
.filter-group {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-result-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-name {
    font-weight: 500;
    color: #2d3748;
}

.search-result-info {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.page-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 14px;
    border: none;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
    font-size: 14px;
    border: 1px solid #cbd5e0;
}

.btn-secondary:hover {
    background: #cbd5e0;
    color: #2d3748;
    border-color: #a0aec0;
}

.list-filters {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.list-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.filter-row {
    display: flex;
    width: 100%;
}

.filter-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
    width: 100%;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 18%;
    margin: 8px 20px;
}

.filter-group.search-group {
    flex: 1;
    min-width: 250px;
}

.filter-group.address-filter-group {
    flex: 2;
    min-width: 400px;
}

.filter-group.date-range-group {
    min-width: 20%;
}

/* 结算方式和医保类型筛选组样式 */
.filter-group.settlement-filter-group,
.filter-group.insurance-filter-group {
    flex: 1;
    min-width: 180px;
}

.address-filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.address-filter-row select {
    flex: 1;
    min-width: 120px;
}

.address-filter-row select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.filter-group label {
    font-weight: 600;
    color: #666;
    font-size: 15px;
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
}

.all-actions {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.all-actions .btn {
    font-size: 15px;
    padding: 8px 16px;
}

.all-actions .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
    color: #6c757d;
    border-color: #e2e8f0;
}

.all-actions .btn-primary {
    font-size: 16px;
    padding: 8px 20px;
}

/* 日期范围选择器样式 */
.date-range-group {
    min-width: 20%;
}

.date-range-container {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.date-range-container input[type="date"] {
    flex: 1;
    min-width: 160px;
    font-size: 15px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.date-separator {
    color: #666;
    font-weight: 600;
    white-space: nowrap;
    padding: 0 3px;
    font-size: 14px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.bulk-actions {
    display: flex;
    gap: 10px;
}

.filter-actions .button,
.bulk-actions .button {
    padding: 8px 16px;
    font-size: 15px;
    height: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.filter-actions .button .dashicons,
.bulk-actions .button .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.transaction-stats {
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-primary .stat-icon {
    background: #e3f2fd;
    color: #1976d2;
}

.stat-success .stat-icon {
    background: #e8f5e8;
    color: #4caf50;
}

.stat-warning .stat-icon {
    background: #fff3e0;
    color: #ff9800;
}

.stat-info .stat-icon {
    background: #f3e5f5;
    color: #9c27b0;
}

.stat-secondary .stat-icon {
    background: #f0f4f8;
    color: #718096;
}

.stat-accent .stat-icon {
    background: #fef5e7;
    color: #d69e2e;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.patient-balance-summary {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.patient-balance-summary h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.balance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.balance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.balance-label {
    font-weight: 600;
    color: #666;
}

.balance-amount {
    font-weight: 700;
    color: #333;
    font-size: 16px;
}

.balance-note {
    margin-top: 10px;
    text-align: center;
    color: #6c757d;
}

.transactions-table-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    overflow-x: auto;
}

.transactions-table {
    margin: 0;
    border: none;
    width: 100%;
}

.transactions-table th,
.transactions-table td {
    padding: 12px 10px;
    vertical-align: top;
    font-size: 14px;
}

.transactions-table th {
    font-weight: 600;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    color: #333;
    text-align: left;
}

.transactions-table td {
    border-bottom: 1px solid #eee;
}

.column-select {
    width: 80px;
    min-width: 80px;
    text-align: center;
    vertical-align: middle;
    padding: 8px 4px;
}

.column-select input[type="checkbox"] {
    margin: 0 4px 0 0;
    transform: scale(1.2);
    vertical-align: middle;
}

.column-select label {
    white-space: nowrap;
    font-size: 12px;
    vertical-align: middle;
    display: inline-block;
    line-height: 1.2;
}

.column-patient {
    width: 15%;
}

.column-time {
    width: 10%;
}

.column-type {
    width: 10%;
}

.column-payment {
    width: 8%;
}

.column-amount {
    width: 10%;
}

.column-balance {
    width: 10%;
}

.column-description {
    width: 14%;
}

.column-voucher {
    width: 8%;
}

.column-operator {
    width: 8%;
}

.column-actions {
    width: 9%;
}

.transaction-row {
    transition: background-color 0.2s;
}

.transaction-row:hover {
    background-color: #f8f9fa;
}

.patient-info {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: flex-start;
    max-width: 100%;
    overflow: hidden;
}

.patient-photo {
    flex-shrink: 0;
}

.patient-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
}

.patient-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ddd;
    color: #999;
}

.patient-avatar-placeholder .dashicons {
    font-size: 20px;
}

.patient-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    overflow: hidden;
}

.patient-name {
    margin-bottom: 3px;
}

.patient-name a {
    font-weight: 700;
    color: #0073aa;
    text-decoration: none;
    display: block;
    line-height: 1.4;
    font-size: 14px;
}

.patient-name a:hover {
    color: #005177;
}

.patient-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 13px;
    color: #333;
    line-height: 1.3;
}

.patient-phone,
.patient-bed {
    font-size: 12px;
    line-height: 1.3;
    color: #555;
    font-weight: 500;
}

.transaction-time {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.time-date {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.time-hour {
    color: #666;
    font-size: 14px;
    font-weight: 600;
}

.transaction-type {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge-row {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.type-badge,
.operation-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.type-living_fee {
    background: #e3f2fd;
    color: #1976d2;
}

.type-pocket_money {
    background: #f3e5f5;
    color: #7b1fa2;
}

.operation-charge {
    background: #e8f5e8;
    color: #2e7d32;
}

.operation-deduct {
    background: #ffebee;
    color: #c62828;
}

.operation-refund {
    background: #fff3e0;
    color: #ef6c00;
}

.amount-value {
    font-weight: 700;
    font-size: 14px;
}

.amount-charge {
    color: #2e7d32;
}

.amount-deduct {
    color: #c62828;
}

.amount-refund {
    color: #ef6c00;
}

.balance-value {
    font-weight: 600;
    color: #333;
}

.balance-change-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
}

.balance-before,
.balance-after {
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.9;
}

.balance-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    min-width: 45px;
}

.balance-value-before {
    font-weight: 600;
    color: #0421e7;
    font-size: 14px;
}

.balance-value-after {
    font-weight: 600;
    color: #28a745;
    font-size: 14px;
}

.description-text {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.description-empty {
    color: #999;
    font-style: italic;
}

.voucher-empty {
    color: #999;
    font-size: 14px;
}

.voucher-info {
    display: flex;
    justify-content: center;
    align-items: center;
}

.voucher-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #0073aa;
    text-decoration: none;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 3px;
    transition: all 0.2s;
}

.voucher-link:hover {
    color: #005177;
    background: #f0f8ff;
}

.voucher-link .dashicons {
    font-size: 14px;
}

.operator-name {
    font-size: 14px;
    color: #333;
}

.operator-system {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.view-transaction {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #bbdefb;
}

.view-transaction:hover {
    background: #1976d2;
    color: #fff;
    border-color: #1976d2;
}

/* 撤销交易按钮样式 */
.revoke-transaction {
    background: #fff3e0;
    color: #f57c00;
    border-color: #ffcc02;
}

.revoke-transaction:hover:not(:disabled) {
    background: #f57c00;
    color: #fff;
    border-color: #f57c00;
}

.revoke-transaction:disabled {
    background: #f5f5f5;
    color: #999;
    border-color: #ddd;
    cursor: not-allowed;
    opacity: 0.6;
}

.revoke-transaction .dashicons {
    font-size: 14px;
    margin-right: 4px;
}

/* 撤销按钮加载状态 */
.revoke-transaction .dashicons-update-alt {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.no-transactions {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-transactions .dashicons {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-transactions p {
    font-size: 16px;
    margin: 0;
}

.tablenav {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.tablenav-pages {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pagination-info {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.displaying-num,
.page-info {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-nav {
    display: flex;
    gap: 5px;
    align-items: center;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 14px;
    min-width: 36px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(.disabled) {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.3);
}

.page-btn.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
    font-weight: 600;
}

.page-btn.disabled {
    background: #f8f9fa;
    color: #ccc;
    border-color: #e9ecef;
    cursor: not-allowed;
}

.page-dots {
    padding: 8px 4px;
    color: #666;
    font-size: 14px;
}

.page-jump {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.jump-label {
    color: #666;
    font-size: 14px;
    white-space: nowrap;
}

.page-jump-input {
    width: 60px;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-align: center;
    font-size: 14px;
}

.page-jump-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.page-jump-btn {
    padding: 4px 12px;
    background: #0073aa;
    color: #fff;
    border: 1px solid #0073aa;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.page-jump-btn:hover {
    background: #005177;
    border-color: #005177;
    transform: translateY(-1px);
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.button:hover {
    background: #f0f0f0;
    border-color: #999;
}

.button-primary {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.button-primary:hover {
    background: #005177;
    border-color: #005177;
    color: #fff;
}

.button-secondary {
    background: #f1f1f1;
    color: #333;
    border-color: #ddd;
}

.button-secondary:hover {
    background: #e1e1e1;
    border-color: #999;
}

/* 模态框样式 */
.hospital-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 20px;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-row .description {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.patient-display {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.patient-details-container {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.patient-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 24px;
    flex-shrink: 0;
}

.patient-avatar .patient-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.patient-info-details {
    flex: 1;
}

.patient-admission-time,
.patient-tags {
    margin-bottom: 8px;
}

.info-label {
    font-weight: 600;
    color: #666;
    margin-right: 8px;
}

.info-value {
    color: #333;
}

.patient-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 6px;
    margin-bottom: 4px;
}

.tag-admitted {
    background: #d4edda;
    color: #155724;
}

.tag-discharged {
    background: #f8d7da;
    color: #721c24;
}

.tag-department {
    background: #d1ecf1;
    color: #0c5460;
}

.tag-bed {
    background: #fff3cd;
    color: #856404;
}

.voucher-upload-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.voucher-preview {
    margin-top: 10px;
    text-align: center;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.form-actions .button {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.form-actions .button-primary {
    background: #0073aa;
    color: #fff;
    border: 1px solid #0073aa;
}

.form-actions .button-primary:hover {
    background: #005177;
    border-color: #005177;
}

.form-actions .button:not(.button-primary) {
    background: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
}

.form-actions .button:not(.button-primary):hover {
    background: #e1e1e1;
    border-color: #999;
}

/* 确保取消按钮与开始导出按钮尺寸一致 */
.form-actions .button {
    min-width: 120px;
    height: 40px;
    box-sizing: border-box;
    justify-content: center;
    font-size: 14px;
}

/* 导出格式选择样式 */
.export-format-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.format-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.format-option:hover {
    border-color: #0073aa;
    background: #f8f9fa;
}

.format-option input[type="radio"] {
    margin: 0;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.format-option input[type="radio"]:checked+.format-label {
    color: #0073aa;
    font-weight: 600;
}

.format-option.checked {
    border-color: #0073aa;
    background: #f0f8ff;
}

.format-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.format-label .dashicons {
    font-size: 20px;
    color: #666;
}

.format-description {
    display: block;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin-top: 5px;
}

.format-option input[type="radio"]:checked~.format-description {
    color: #0073aa;
}

/* 交易详情样式 */
.transaction-detail {
    font-size: 14px;
    line-height: 1.6;
}

.detail-row {
    display: flex;
    margin-bottom: 15px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.8;
}

.detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-row label {
    font-weight: 600;
    color: #333;
    min-width: 120px;
    margin-right: 15px;
    margin-bottom: 0;
}

.detail-row span,
.detail-row a {
    flex: 1;
    color: #666;
    line-height: 1.8;
}

.detail-row a {
    color: #0073aa;
    text-decoration: none;
}

.detail-row a:hover {
    color: #005177;
    text-decoration: underline;
}

.amount-charge {
    color: #2e7d32;
    font-weight: 600;
}

.amount-deduct {
    color: #c62828;
    font-weight: 600;
}

/* 打印样式 */
@media print {

    .list-filters,
    .page-actions,
    .actions-row,
    .column-actions,
    .action-buttons,
    .transaction-stats,
    .stats-grid,
    .patient-balance-summary {
        display: none !important;
    }

    .page-header {
        border-bottom: 1px solid #000;
        margin-bottom: 20px;
    }

    .transactions-table {
        font-size: 12px;
    }

    .transactions-table th,
    .transactions-table td {
        padding: 6px 4px;
        border: 1px solid #000;
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .transactions-table {
        font-size: 14px;
    }

    .transactions-table th,
    .transactions-table td {
        padding: 8px 6px;
    }
}

@media (max-width: 768px) {
    .list-filters {
        padding: 12px;
    }

    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        min-width: auto;
    }

    .filter-actions-row {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: flex-start;
    }

    .filter-actions-row .button {
        font-size: 14px;
        padding: 5px 10px;
        height: 32px;
    }

    .date-range-container {
        flex-direction: column;
        gap: 6px;
    }

    .date-range-container input[type="date"] {
        min-width: auto;
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .balance-grid {
        grid-template-columns: 1fr;
    }

    .transactions-table-container {
        overflow-x: auto;
    }

    .transactions-table {
        min-width: 1000px;
    }
}

/* 每页显示条数选择器样式 */
.per-page-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 0;
}

.per-page-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.per-page-select {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.per-page-select:hover {
    border-color: #0073aa;
}

.per-page-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.pagination-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .pagination-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .per-page-selector {
        margin-left: 0;
    }
}