/* Invoice Modal Specific Styles */
.client-details-container {
    background-color: white;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.detail-section {
    margin-bottom: 20px;
}

.detail-header {
    font-weight: bold;
    font-size: 1rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 6px;
    margin-bottom: 12px;
    color: #495057;
}

/* Compact Merchant Information Section */
.merchant-info-compact {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
}

.merchant-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.merchant-info-item {
    display: flex;
    flex-direction: column;
    padding: 8px;
    background-color: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.merchant-info-label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.8rem;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.merchant-info-value {
    font-weight: 500;
    color: #212529;
    font-size: 0.9rem;
    line-height: 1.3;
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-live {
    background-color: #d4edda;
    color: #155724;
}

.status-left, .status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.detail-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.detail-label {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    line-height: 1.3;
    display: block;
    clear: both;
}

.detail-value {
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: #495057;
    font-size: 0.9rem;
}

/* Currency formatting */
.currency {
    font-family: monospace;
    font-weight: 500;
}

/* Fee breakdown styling */
.fee-breakdown-horizontal {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    max-width: 500px;
    margin: 0 auto;
}

.fee-row {
    border-bottom: 1px solid #dee2e6;
    padding: 3px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.fee-row:last-child {
    border-bottom: none;
}

.fee-row .currency {
    text-align: right;
    min-width: 80px;
}

.fee-row .service-name {
    flex: 1;
    margin-right: 10px;
}

.fee-row .service-details {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 2px;
}

/* Responsive adjustments for invoice modal */
@media (max-width: 768px) {
    .client-details-container {
        padding: 10px;
    }
    
    .detail-section {
        margin-bottom: 15px;
    }
    
    .detail-header {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .merchant-info-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .merchant-info-item {
        padding: 6px;
    }
    
    .merchant-info-label {
        font-size: 0.75rem;
    }
    
    .merchant-info-value {
        font-size: 0.85rem;
    }
    
    .detail-row {
        flex-direction: column;
        margin-bottom: 0.75rem;
    }
    
    .detail-label {
        width: 100%;
        margin-bottom: 0.2rem;
        font-size: 0.85rem;
    }
    
    .detail-value {
        width: 100%;
        margin-bottom: 0.4rem;
        font-size: 0.85rem;
    }
    
    .fee-breakdown-horizontal {
        padding: 8px;
        max-width: 100%;
    }
    
    .fee-row {
        padding: 3px 0;
        font-size: 0.85rem;
    }
    
    .fee-row .currency {
        min-width: 70px;
        font-size: 0.8rem;
    }
    
    .fee-row .service-name {
        font-size: 0.8rem;
    }
    
    .fee-row .service-details {
        font-size: 0.7rem;
    }
    
    /* Modal adjustments for mobile */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-body {
        padding: 0.75rem;
    }
    
    .modal-header {
        padding: 0.75rem 1rem;
    }
    
    .modal-footer {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 576px) {
    .merchant-info-compact {
        padding: 8px;
    }
    
    .merchant-info-item {
        padding: 4px;
    }
    
    .merchant-info-label {
        font-size: 0.7rem;
    }
    
    .merchant-info-value {
        font-size: 0.8rem;
    }
    
    .status-badge {
        font-size: 0.7rem;
        padding: 1px 6px;
    }
    
    /* Extra small screen adjustments */
    .modal-dialog {
        margin: 0.25rem;
        max-width: calc(100% - 0.5rem);
    }
    
    .modal-body {
        padding: 0.5rem;
    }
    
    .modal-header {
        padding: 0.5rem 0.75rem;
    }
    
    .modal-footer {
        padding: 0.5rem 0.75rem;
    }
    
    .client-details-container {
        padding: 8px;
    }
    
    .fee-breakdown-horizontal {
        padding: 6px;
    }
    
    .fee-row {
        padding: 2px 0;
        font-size: 0.8rem;
    }
    
    .fee-row .currency {
        min-width: 60px;
        font-size: 0.75rem;
    }
    
    .fee-row .service-name {
        font-size: 0.75rem;
    }
    
    .fee-row .service-details {
        font-size: 0.65rem;
    }
} 