/**
 * Returns System Styles
 * Includes: Returns List, Return Detail, Request Return Flow
 */

/* ===================================
   RETURNS LIST PAGE
   =================================== */

.account-main-content {
    padding: 0px;
    background: transparent;
}
.section-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #000;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #E6E6E8;
}
.returns-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.returns-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.btn-request-return {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #F7B32B;
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-request-return:hover {
    background: #E5A526;
    transform: translateY(-2px);
}

.btn-request-return svg {
    width: 20px;
    height: 20px;
}

.returns-table-container {
    background: white;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    overflow: hidden;
}

.returns-table {
    width: 100%;
    border-collapse: collapse;
}

.returns-table thead {
    background: rgb(196 196 196 / 16%);
}

.returns-table thead th {
    padding: 16px;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.returns-table tbody tr {
    border-bottom: 1px solid #E9ECEF;
    cursor: pointer;
    transition: background 0.2s ease;
}

.returns-table tbody tr:hover {
    background: rgb(196 196 196 / 16%);
}

.returns-table tbody td {
    padding: 16px;
    font-size: 16px;
    font-weight: 500;
    color: #000;
}

.rma-number {
    font-weight: 500;
    color: #000;
}

.rma-items .items-preview {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rma-items .item-line {
    font-size: 16px;
    color: #000;
    font-weight: 500;
}

.rma-items .more-items {
    font-style: italic;
    color: #999;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-closed {
    background: #D4EDDA;
    color: #155724;
}

.status-processing {
    background: #D1ECF1;
    color: #0C5460;
}

.status-pending {
    background: #F8D7DA;
    color: #721C24;
}

.status-default {
    background: #E9ECEF;
    color: #495057;
}

/* ===================================
   RETURN DETAIL PAGE
   =================================== */

.return-detail-header {
    margin-bottom: 24px;
    display: flex;
    padding-bottom: 10px;
    border-bottom: 1px solid #E6E6E8;
    align-items: center;
    gap: 10px;
}

.return-detail-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #000;
    margin: 0;
}
.return-flex {
    display: flex;
    gap: 30px;
}
/* Info Cards */
.info-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid #E6E6E8;
    width: 50%;
}

.info-row {
    display: flex;
    gap: 20px;
    padding: 8px 0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    font-size: 16px;
    font-weight: 400;
    color: #000;
    width: 30%;
}

.info-row .value {
    font-size: 16px;
    color: #000;
    font-weight: 600;
    width: 70%;

}

/* Replacement Section */
.replacement-section {
    background: white;
    border-radius: 12px;
    padding: 20px 0px;
    margin-bottom: 20px;
}

.replacement-section h4 {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin: 0 0 12px 0;
}

.replacement-section .form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #C8C8C8;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 12px;
    max-width: 380px;
}

.btn-text-danger {
    background: none;
    border: none;
    color: #DC1200;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    display: block;
}

.btn-text-danger:hover {
    color: #C82333;
    text-decoration: underline;
}

/* Return Items Table */
.return-items-section {
    background: white;
    border-radius: 12px;
    padding: 20px 0px;
    margin-bottom: 0px;
    overflow-x: auto;
}

.return-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.return-items-table thead {
    background: rgb(196 196 196 / 16%);
}

.return-items-table thead th {
    padding: 12px 8px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    white-space: nowrap;
}
.return-items-table thead th:first-child,
.tracking-table thead th:first-child {
    border-top-left-radius: 12px;
}
.return-items-table thead th:last-child,
.tracking-table thead th:last-child {
    border-top-right-radius: 12px;
}

.return-items-table tbody td {
    padding: 12px 8px;
    border-bottom: 1px solid #E9ECEF;
    color: #000;
    font-size: 14px;
    font-weight: 500;
}
.status-panding {
    color: #E0A507;
    display: flex;
    align-items: center;
}

/* Tracking Section */
.tracking-section {
    background: white;
    border-radius: 12px;
    padding: 20px 0px;
    margin-bottom: 0px;
}

.tracking-section h4 {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin: 0 0 16px 0;
}

.tracking-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.tracking-table thead {
    background: rgb(196 196 196 / 16%);
}

.tracking-table thead th {
    padding: 12px 8px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
}

.tracking-table tbody td {
    padding: 12px 8px;
    border-bottom: 1px solid #E9ECEF;
    color: #000;
    font-size: 14px;
    font-weight: 500;
}

.tracking-table .no-tracking td {
    text-align: left;
    color: #000;
    font-style: italic;
    padding: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Notes/History Section */
.notes-section {
    background: white;
    border-radius: 12px;
    padding: 20px 0px;
}

.notes-section h4 {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin: 0 0 16px 0;
}

.post-comment-form {
    margin-bottom: 24px;
}

.post-comment-form label {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    margin-bottom: 8px;
}

.post-comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #CED4DA;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 12px;
}

.comment-item {
    background: #F6F6F6;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 12px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-header strong {
    font-size: 14px;
    color: #000;
}

.comment-date {
    font-size: 16px;
    color: #000;
}

.comment-text {
    font-size: 14px;
    color: #000;
    line-height: 1.5;
}
.comment-text ul {
    padding-left: 15px;
    padding-top: 8px;
}

.no-comments {
    text-align: center;
    color: #000;
    font-style: italic;
    padding: 20px;
}

/* ===================================
   REQUEST RETURN PAGE
   =================================== */

.request-return-header {
    margin-bottom: 24px;
    display: flex;
    border-bottom: 1px solid #E6E6E8;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
}

.request-return-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

/* Steps Indicator */
.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 32px 0;
    padding: 24px;
    background: white;
    border-radius: 12px;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #E9ECEF;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #F7B32B;
    color: #000;
}

.step.active .step-label {
    color: #000;
}

.step.completed .step-number {
    background: #28A745;
    color: white;
}

.step-arrow {
    font-size: 24px;
    color: #CED4DA;
}

/* Return Steps */
.return-step h3 {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin: 0 0 16px 0;
}
.return-flex-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 20px;
}

.return-flex-header .search-input {
    border-radius: 200px;
    padding-left: 50px;
}
.order-search {
    position: relative;
}
.order-search .search-icon {
    position: absolute;
    left: 15px;
    top: 15px;
}
.return-step > p {
    font-size: 16px;
    color: #000;
    margin-bottom: 12px;
}


.help-text strong {
    color: #000;
}

.help-text a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
}

.help-text a:hover {
    text-decoration: underline;
}

/* Order Search */
.order-search {
    margin-bottom: 24px;
}

.search-input {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    border: 1px solid #CED4DA;
    border-radius: 8px;
    font-size: 14px;
}

/* Orders Table */
.orders-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table thead {
    background: rgb(196 196 196 / 16%);
}

.orders-table thead th {
    padding: 16px;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
}

.orders-table tbody tr {
    border-bottom: 1px solid #E9ECEF;
    cursor: pointer;
    transition: background 0.2s ease;
}

.orders-table tbody tr:hover {
    background: rgb(196 196 196 / 16%);
}

.orders-table tbody td {
    padding: 16px;
    font-size: 16px;
    color: #000;
    font-weight: 500;
}

.order-total {
    font-weight: 600;
    color: #28A745;
}

/* Return Items Select Table */
.return-items-table-container {
    background: white;
    border-radius: 12px;
    padding: 20px 0px;
    overflow-x: auto;
    margin-bottom: 24px;
}

.return-items-select-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.return-items-select-table thead {
    background: rgb(196 196 196 / 16%);
}

.return-items-select-table thead th {
    padding: 12px 8px;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    white-space: nowrap;
}
.return-items-select-table thead th:first-child {
    border-top-left-radius: 12px;
}
.return-items-select-table thead th:last-child {
    border-top-right-radius: 12px;
}

.return-items-select-table tbody td {
    padding: 12px 8px;
    border-bottom: 1px solid #E9ECEF;
    color: #000;
    font-weight: 500;
    font-size: 16px;
}

.item-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.return-qty-input {
    width: 80px !important;
    padding: 8px 12px !important;
    border: 1px solid #CED4DA;
    border-radius: 4px !important;
    font-size: 16px;
    line-height: 21px !important;
}

.return-qty-input:disabled {
    background: #E9ECEF;
    cursor: not-allowed;
}

.return-reason-select {
    width: 180px;
    padding: 8px 12px;
    border: 1px solid #CED4DA;
    border-radius: 4px;
    font-size: 16px;
}

.return-reason-select:disabled {
    background: #E9ECEF;
    cursor: not-allowed;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: end;
    align-items: center;
    padding-top: 24px;
}

/* ===================================
   BUTTONS
   =================================== */
.btn-back {
    background: none;
    border: none;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    margin-bottom: 0px;
}

.btn-back:hover {
    color: #0056B3;
    text-decoration: underline;
}

.btn-back svg {
    width: 32px;
    height: 32px;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #E9ECEF;
    border-top-color: #F7B32B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p {
    font-size: 14px;
    color: #000;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    color: #CED4DA;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin: 0 0 8px 0;
}

.empty-state p {
    font-size: 14px;
    color: #000;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1024px) {
    .return-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .customer-info-section {
        order: -1;
    }
}

@media (max-width: 768px) {
    .returns-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .steps-indicator {
        flex-direction: column;
        gap: 12px;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .step-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}