.teamwantreturn-buttons {
    margin-top: 20px;
}

.twr-return-card {
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    overflow: hidden;
}

.twr-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: #f8f8f8;
    border-bottom: 1px solid #dcdcdc;
}

.twr-header-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    border-radius: 4px;
    color: #fff;
}

.twr-header-text h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.twr-header-text p {
    margin: 0;
    font-size: 13px;
    color: #777;
}

.twr-card-actions {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    flex-wrap: wrap;
}

.twr-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    color: #333;
}

.twr-action-btn:hover {
    background: #333;
    color: #fff;
}

.twr-action-btn:hover .twr-btn-icon {
    color: #fff;
}

.twr-return-btn {
    border-color: #333;
    color: #333;
}

.twr-return-btn:hover {
    background: #333;
}

.twr-complaint-btn {
    border-color: #f39c12;
    color: #f39c12;
}

.twr-complaint-btn:hover {
    background: #f39c12;
    color: #fff;
}

.twr-cancel-btn {
    border-color: #d9534f;
    color: #d9534f;
}

.twr-cancel-btn:hover {
    background: #d9534f;
    color: #fff;
}

.twr-btn-icon {
    display: flex;
    align-items: center;
    color: inherit;
}

.twr-returns-list-card {
    margin-top: 20px;
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    overflow: hidden;
}

.twr-list-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #f8f8f8;
    border-bottom: 1px solid #dcdcdc;
}

.twr-list-header svg {
    color: #333;
}

.twr-list-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.twr-list-body {
    padding: 0;
}

.twr-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.twr-table thead {
    background: #f8f8f8;
}

.twr-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #777;
    border-bottom: 1px solid #dcdcdc;
}

.twr-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #eee;
}

.twr-table tbody tr:last-child td {
    border-bottom: none;
}

.twr-table tbody tr:hover {
    background: #fafafa;
}

.twr-id {
    font-weight: 600;
    color: #333;
}

.twr-type-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.twr-type-return {
    background: #e8f4fd;
    color: #2c5e77;
}

.twr-type-complaint {
    background: #fef5e7;
    color: #9a7d0a;
}

.twr-type-cancel {
    background: #fdebe9;
    color: #a83232;
}

.twr-status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    color: #333;
}

.twr-status-wait {
    background: #d6eaf8;
    color: #1f618d !important;
}

.twr-status-confirmed {
    background: #d5f5e3;
    color: #1e8449 !important;
}

.twr-status-rejected {
    background: #fadbd8;
    color: #c0392b !important;
}

.twr-date {
    color: #777;
    font-size: 13px;
}

.twr-return-address-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    background: #fdfdfd;
}

.twr-return-address-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
}

.twr-address-info-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: #333;
}

.twr-address-info-content {
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}

.twr-address-info-content strong {
    color: #333;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.twr-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #333;
    border-bottom: none;
}

.twr-modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.twr-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    color: #fff;
}

.twr-modal-header .modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.twr-modal-header .close {
    color: #fff;
    opacity: 0.8;
    font-size: 24px;
    margin-left: 0;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    order: -1;
}

.twr-modal-header .close:hover {
    opacity: 1;
}

.twr-modal-body {
    padding: 20px;
}

.twr-alert-info {
    background: #e8f4fd;
    border: 1px solid #b3d7f2;
    color: #2c5e77;
    padding: 12px 14px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.twr-alert-warning {
    background: #fef5e7;
    border: 1px solid #fad7a0;
    color: #9a7d0a;
    padding: 12px 14px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.twr-products-list {
    margin-bottom: 20px;
}

.twr-products-list .table {
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    overflow: hidden;
    margin: 0;
}

.twr-products-list .table thead {
    background: #f8f8f8;
}

.twr-products-list .table th {
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #777;
    border-bottom: 1px solid #dcdcdc;
}

.twr-products-list .table td {
    padding: 10px 14px;
    font-size: 13px;
    vertical-align: middle;
}

.twr-products-list .table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.twr-products-list .table select {
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
}

.twr-form-group {
    margin-bottom: 16px;
}

.twr-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.twr-select,
.twr-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.twr-select:focus,
.twr-textarea:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(51,51,51,0.1);
}

.twr-textarea {
    resize: vertical;
    min-height: 80px;
}

.twr-file-upload .twr-file-input-wrapper {
    position: relative;
}

.twr-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.twr-file-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    border: 2px dashed #ccc;
    border-radius: 4px;
    background: #fafafa;
    color: #777;
    transition: all 0.2s;
}

.twr-file-dropzone svg {
    color: #999;
}

.twr-file-dropzone span {
    font-size: 13px;
}

.twr-file-input-wrapper:hover .twr-file-dropzone {
    border-color: #333;
    background: #f5f5f5;
}

.twr-file-input-wrapper:hover .twr-file-dropzone svg {
    color: #333;
}

.twr-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #999;
}

.twr-return-address {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: #f8f8f8;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    margin-top: 16px;
}

.twr-address-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    border-radius: 4px;
    color: #fff;
}

.twr-address-content {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.twr-modal-footer {
    padding: 16px 20px;
    background: #f8f8f8;
    border-top: 1px solid #dcdcdc;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.twr-btn-cancel {
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #ccc;
    color: #333;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.twr-btn-cancel:hover {
    background: #f5f5f5;
    border-color: #999;
}

.twr-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #333;
    border: 1px solid #333;
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.twr-btn-submit:hover {
    background: #444;
    border-color: #444;
}

.twr-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.icon-spin {
    animation: twr-spin 1s linear infinite;
}

@keyframes twr-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .twr-card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .twr-card-actions {
        flex-direction: column;
    }
    
    .twr-action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .twr-table {
        display: block;
        overflow-x: auto;
    }
    
    .twr-modal-dialog {
        margin: 10px;
    }
}

.twr-no-options-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
}

.twr-no-options-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #777;
    border-radius: 4px;
    color: #fff;
}

.twr-no-options-text h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.twr-no-options-text p {
    margin: 0;
    font-size: 13px;
    color: #777;
}

.twr-success-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.twr-success-icon {
    margin-bottom: 0;
    text-align: center;
}

.twr-success-message {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin: 12px 0;
    text-align: center;
}

.twr-success-address {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: #f8f8f8;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    margin-top: 16px;
    width: 100%;
}

.twr-success-address .twr-address-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    border-radius: 4px;
    color: #fff;
}

.twr-success-address .twr-address-icon svg {
    width: 14px;
    height: 14px;
}

.twr-success-address .twr-address-content {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.twr-success-address .twr-address-content strong {
    display: inline;
    margin-right: 4px;
}

.twr-success-address .twr-address-content span {
    display: inline;
}
/* Conversation / Messages */
.twr-messages-row {
    background: #fdfdfd;
}

.twr-messages-container {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.twr-messages-title {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: #777;
    letter-spacing: 0.5px;
}

.twr-messages-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.twr-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.twr-message-customer {
    align-self: flex-end;
    background: #333;
    color: #fff;
    border-bottom-right-radius: 2px;
}

.twr-message-employee {
    align-self: flex-start;
    background: #f1f1f1;
    color: #333;
    border-bottom-left-radius: 2px;
}

.twr-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    font-size: 11px;
    opacity: 0.8;
}

.twr-message-author {
    font-weight: 600;
}

.twr-message-content {
    word-break: break-word;
}

.twr-message-form {
    margin-top: 16px;
}

.twr-message-input-wrapper {
    display: flex;
    gap: 10px;
}

.twr-message-input {
    flex-grow: 1;
    min-height: 40px;
    max-height: 120px;
    padding: 10px 14px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.2s;
}

.twr-message-input:focus {
    outline: none;
    border-color: #333;
}

.twr-message-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.twr-message-submit:hover {
    background: #000;
}

.twr-no-messages {
    margin: 0;
    font-size: 13px;
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 10px 0;
}

/* Details View */
.twr-details-row {
    background: #fdfdfd;
}

.twr-details-container {
    padding: 20px;
}

.twr-details-title {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: #777;
    letter-spacing: 0.5px;
}

.twr-toggle-details {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 4px 10px;
    background: transparent;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.twr-toggle-details:hover {
    background: #f8f8f8;
    border-color: #333;
}

.twr-icon-arrow {
    transition: transform 0.2s;
}

.twr-products-summary .table {
    margin-bottom: 0;
    background: #fff;
    border: 1px solid #eee;
}

.twr-products-summary .table th {
    background: #fcfcfc;
    border-bottom: 1px solid #eee;
}
