/* POS Settlement & Payments Styles */

/* Professional financial screen styling */
.settlement-workspace {
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header (Sticky) */
.settlement-header {
    background-color: white;
    padding: 20px 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-info h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.context-label {
    font-size: 14px;
    color: #6c757d;
    padding: 4px 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.header-totals {
    text-align: right;
}

.total-row {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 8px;
    font-size: 16px;
}

.total-row.balance {
    font-size: 20px;
    padding-top: 8px;
    border-top: 2px solid #dee2e6;
}

.amount-due {
    color: #dc3545;
    font-weight: 700;
}

.amount-paid {
    color: #28a745;
    font-weight: 700;
}

/* Main Content */
.settlement-body {
    flex: 1;
    padding: 20px 30px;
    overflow-y: auto;
}

.settlement-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Payment Panel */
.payment-panel {
    padding: 20px;
}

.payment-panel h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
}

.payment-methods {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-form {
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.form-field {
    margin-bottom: 15px;
}

/* Breakdown Panel */
.breakdown-panel {
    padding: 20px;
}

.breakdown-panel h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
}

.breakdown-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
}

.breakdown-row.discount {
    color: #28a745;
}

/* Payments Grid */
.payments-grid-card {
    margin-top: 20px;
    padding: 20px;
}

.payments-grid-card h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

/* Action Bar (Sticky Bottom) */
.settlement-actions {
    background-color: white;
    border-top: 2px solid #dee2e6;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    bottom: 0;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.actions-left,
.actions-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Dialog Overlay */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.dialog-content {
    min-width: 400px;
    max-width: 500px;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .settlement-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .header-totals {
        text-align: left;
    }

    .settlement-panels {
        grid-template-columns: 1fr;
    }

    .payment-methods {
        flex-direction: column;
    }

    .settlement-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .actions-left,
    .actions-right {
        width: 100%;
        justify-content: stretch;
    }
}
