/* Shared Upload Component Visual values are ported verbatim from the Money
   Transfer invoice upload design so all consumers look identical. */

.opx-upload-section {
    padding: 18px 24px;
    border-radius: 16px;
}

.opx-upload-title {
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 590;
    line-height: 32px;
    color: #262626;
    margin: 0;
}

.opx-upload-subtitle {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #262626;
    margin: -10px 0;
}

.opx-upload-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.opx-upload-header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.opx-upload-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.opx-upload-chevron {
    transition: transform 0.3s ease;
}

.opx-upload-chevron.expanded {
    transform: rotate(0deg);
}

.opx-upload-chevron.collapsed {
    transform: rotate(180deg);
}

.opx-upload-content {
    margin-top: 20px;
}

.opx-upload-content.collapsed {
    display: none;
}

.opx-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border: 1px dashed #d4d4d4;
    border-radius: 8px;
    background-color: white;
    transition: all 0.2s ease;
    gap: 8px;
}

/* Drag over state */
.opx-upload-area.dragover {
    border-color: #ffac00;
    background-color: #fff7ed;
}

.opx-upload-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 99999px;
    background-color: #fff7ed;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.opx-upload-text-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.opx-upload-text {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 590;
    line-height: 18px;
    color: #262626;
    margin: 0;
}

.opx-upload-formats {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #525252;
    margin: 0;
    text-align: center;
}

.opx-upload-btn {
    padding: 8px 12px;
    height: 24px;
    background-color: #ffac00;
    border: none;
    border-radius: 99999px;
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 590;
    line-height: 16px;
    color: #262626;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.opx-upload-btn:hover {
    background-color: #FFB300;
}

/* Uploaded-documents list container (populated by each page's renderDocuments) */
.opx-upload-doc-list {
    margin-top: 16px;
}

/* "No Files" empty state (matches the transaction draft / details page) */
.opx-upload-no-files {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    background-color: #fafafa;
    border-radius: 8px;
}

.opx-upload-no-files svg {
    width: 24px;
    height: 24px;
    color: #a3a3a3;
    stroke: #a3a3a3;
}

.opx-upload-no-files p {
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 400;
    color: #737373;
    line-height: 24px;
    margin: 0;
}

/* Uploaded-document card — shared by Beneficiary, Sender and Money Transfer.
   Ported from the Money Transfer invoice preview so all three look identical. */
.opx-upload-doc-preview {
    width: 100%;
}

.opx-upload-doc-title {
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 590;
    line-height: 24px;
    color: #262626;
    margin-bottom: 12px;
}

.opx-upload-doc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 8px;
}

.opx-upload-doc-item:last-child {
    margin-bottom: 0;
}

.opx-upload-doc-item--clickable {
    cursor: pointer;
}

.opx-upload-doc-icon {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: #d4d4d4;
    border-radius: 8px;
    flex-shrink: 0;
}

.opx-upload-doc-icon i {
    font-size: 24px;
    color: #262626;
}

.opx-upload-doc-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.opx-upload-doc-name {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 590;
    line-height: 24px;
    color: #262626;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.opx-upload-doc-size {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    color: #737373;
}

.opx-upload-doc-remove {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.opx-upload-doc-remove i {
    font-size: 24px;
    color: #262626;
}

.opx-upload-doc-remove:hover i {
    color: #dc2626;
}
