/* DataFirefly - Product Return Manager - Front CSS */

.df-returns-container,
.df-process-container,
.df-confirmation-container,
.df-qrscan-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Steps Indicator */
.df-steps-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.df-step {
    display: flex;
    align-items: center;
    margin: 0 15px;
    opacity: 0.4;
}

.df-step.active,
.df-step.completed {
    opacity: 1;
}

.df-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ccc;
    color: #fff;
    font-weight: 700;
    margin-right: 8px;
    font-size: 14px;
}

.df-step.active .df-step-number {
    background: #2fb5d2;
}

.df-step.completed .df-step-number {
    background: #4caf50;
}

.df-step-label {
    font-size: 14px;
    font-weight: 500;
}

/* Return Info */
.df-return-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.df-return-info .material-icons {
    font-size: 20px;
}

/* Order Block */
.df-order-block {
    margin-bottom: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.df-order-header {
    background: #f7f7f7;
    padding: 12px 15px;
}

.df-order-header h3 {
    margin: 0;
    font-size: 16px;
}

.df-order-date {
    color: #999;
    font-weight: 400;
}

/* Products Table */
.df-products-table {
    margin-bottom: 0;
}

.df-products-table thead th {
    border-bottom: 2px solid #e5e5e5;
    font-size: 13px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
}

.df-product-row {
    transition: background-color 0.2s;
}

.df-product-row:hover {
    background-color: #f9f9f9;
}

.df-product-row.selected {
    background-color: #e8f5e9;
}

.df-product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
}

.df-product-image-sm {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.df-product-name {
    font-weight: 600;
    color: #333;
}

.df-product-ref {
    color: #999;
}

/* Checkbox */
.df-checkbox-container {
    display: block;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    height: 22px;
}

.df-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.df-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 3px;
    transition: all 0.2s;
}

.df-checkbox-container:hover .df-checkmark {
    border-color: #2fb5d2;
}

.df-checkbox-container input:checked ~ .df-checkmark {
    background-color: #2fb5d2;
    border-color: #2fb5d2;
}

.df-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.df-checkbox-container input:checked ~ .df-checkmark:after {
    display: block;
}

/* Quantity Selector */
.df-qty-selector {
    max-width: 80px;
}

.df-qty-select {
    text-align: center;
    max-width: 80px;
}

.df-qty-available {
    font-size: 12px;
}

/* Actions Bar */
.df-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.df-btn-continue,
.df-btn-submit {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
}

.df-btn-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.df-selected-count {
    color: #666;
    font-size: 14px;
}

/* Process Page - Reason Selector */
.df-product-reason-row {
    margin-bottom: 15px;
}

.df-product-reason-row .card-body {
    padding: 15px;
}

.df-reason-label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.df-reason-select {
    width: 100%;
}

.df-product-details {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.df-product-total {
    font-weight: 600;
    color: #333;
}

.df-product-order-ref {
    font-size: 12px;
    margin-top: 4px;
}

/* Refund Options */
.df-refund-options h3 {
    margin-bottom: 5px;
}

.df-refund-choices {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.df-refund-option {
    flex: 1;
    cursor: pointer;
}

.df-refund-option.df-single {
    max-width: 400px;
}

.df-refund-option input[type="radio"] {
    display: none;
}

.df-refund-card {
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}

.df-refund-card .material-icons {
    font-size: 36px;
    color: #999;
    display: block;
    margin-bottom: 10px;
}

.df-refund-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

.df-refund-card p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.df-refund-option input:checked + .df-refund-card {
    border-color: #2fb5d2;
    background: #f0fafc;
}

.df-refund-option input:checked + .df-refund-card .material-icons {
    color: #2fb5d2;
}

/* Summary */
.df-summary .df-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}

.df-summary-total {
    font-size: 22px;
    color: #2fb5d2;
}

/* Confirmation Page */
.df-success-message {
    text-align: center;
    padding: 30px 0;
}

.df-success-icon .material-icons {
    font-size: 64px;
    color: #4caf50;
}

.df-success-message h2 {
    margin: 15px 0 10px;
    color: #333;
}

.df-pdf-download {
    text-align: center;
    padding: 20px 0;
}

.df-pdf-download .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Status Badges */
.df-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.df-status-pending { background: #fff3e0; color: #e65100; }
.df-status-approved { background: #e3f2fd; color: #1565c0; }
.df-status-received { background: #e8eaf6; color: #283593; }
.df-status-completed { background: #e8f5e9; color: #2e7d32; }
.df-status-partial { background: #fff8e1; color: #f57f17; }
.df-status-refused { background: #fce4ec; color: #c62828; }
.df-status-cancelled { background: #f5f5f5; color: #616161; }

/* QR Scan Page */
.df-admin-badge {
    text-align: center;
    margin-bottom: 15px;
}

.df-admin-badge .badge {
    font-size: 14px;
    padding: 6px 16px;
}

.df-return-info-card {
    margin-bottom: 20px;
}

.df-admin-note {
    margin: 20px 0;
}

.df-process-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.df-process-actions .btn {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Existing Returns Table */
.df-existing-returns {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e5e5e5;
}

.df-existing-returns h3 {
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 767px) {
    .df-steps-indicator {
        flex-direction: column;
        gap: 10px;
    }

    .df-refund-choices {
        flex-direction: column;
    }

    .df-actions-bar {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .df-process-actions {
        flex-direction: column;
    }

    .df-process-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .df-col-image {
        display: none;
    }
}
