﻿.sd-section-title {
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #666;
}

.sd-files-panel {
    border-left: 1px solid #e6e6e6;
}

.sd-dropzone {
    position: relative;
    padding: 28px 16px;
    text-align: center;
    color: #666;
    background: #fafafa;
    border: 2px dashed #c8c8c8;
    border-radius: 6px;
    cursor: pointer;
}

.sd-dropzone.is-dragover {
    background: #f3f8fc;
    border-color: #337ab7;
}

.sd-dropzone-icon {
    font-size: 32px;
    color: #337ab7;
    margin-bottom: 8px;
}

.sd-dropzone-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: #444;
}

.sd-dropzone-hint,
.sd-dropzone small {
    display: block;
    color: #888;
}

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

.sd-file-error {
    margin: 8px 0 0;
    color: #cc0000;
}

.sd-file-list {
    list-style: none;
    max-height: 180px;
    margin: 12px 0 0;
    padding: 0;
    overflow-y: auto;
}

.sd-file-empty,
.sd-file-item {
    padding: 8px 10px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: #fff;
}

.sd-file-empty {
    color: #999;
    text-align: center;
}

.sd-file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.sd-file-item .fa-file-pdf-o {
    color: #cc0000;
}

.sd-file-item .fa-file-image-o {
    color: #337ab7;
}

.sd-file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sd-file-size {
    color: #888;
    font-size: 12px;
    white-space: nowrap;
}

.sd-file-remove {
    padding: 0 4px;
    color: #999;
    background: transparent;
    border: 0;
    line-height: 1;
}

.sd-file-remove:hover {
    color: #cc0000;
}

.sd-upload-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: #f3f5f7;
}

.sd-upload-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 6px;
}

.sd-upload-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sd-upload-columns {
    display: flex;
    flex: 1;
    gap: 12px;
    min-height: 0;
}

.sd-upload-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 6px;
    overflow: hidden;
}

.sd-upload-panel:first-child {
    width: 34%;
}

.sd-upload-files {
    width: 66%;
}

.sd-upload-panel-head {
    margin: 0;
    padding: 10px 14px;
    color: #667;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: #fafbfc;
    border-bottom: 1px solid #e3e6ea;
}

.sd-upload-panel-body {
    flex: 1;
}

.sd-upload-field {
    padding: 12px 14px;
    border-bottom: 1px solid #eef0f2;
}

.sd-upload-field:last-child {
    border-bottom: 0;
}

.sd-upload-field span,
.sd-upload-field strong {
    display: block;
}

.sd-upload-field span {
    margin-bottom: 3px;
    color: #8a93a0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.sd-upload-field strong {
    color: #2c333a;
    font-size: 14px;
    font-weight: 600;
    word-break: break-word;
}

.sd-upload-heading-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #337ab7;
    font-size: 16px;
    background: #eef5fb;
    border-radius: 50%;
    flex-shrink: 0;
}

.sd-upload-overlay.is-finished .sd-upload-heading-icon {
    color: #3c763d;
    background: #eef7ef;
}

.sd-upload-overlay.has-errors .sd-upload-heading-icon {
    color: #a94442;
    background: #fdf4f4;
}

.sd-upload-title {
    margin: 0;
    color: #2c333a;
    font-size: 16px;
    font-weight: 700;
}

.sd-upload-progress {
    margin: 2px 0 0;
    color: #7b8490;
    font-size: 12px;
}

.sd-upload-list {
    list-style: none;
    flex: 1;
    margin: 0;
    padding: 0;
    overflow-y: auto;
}

.sd-upload-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid #eef0f2;
}

.sd-upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #8a93a0;
    background: #f4f6f8;
    border-radius: 6px;
    flex-shrink: 0;
}

.sd-upload-info {
    min-width: 0;
    flex: 1;
}

.sd-upload-name,
.sd-upload-status {
    display: block;
}

.sd-upload-name {
    overflow: hidden;
    color: #2c333a;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sd-upload-status {
    margin-top: 2px;
    color: #7b8490;
    font-size: 12px;
    word-break: break-word;
}

.sd-upload-badge {
    padding: 3px 8px;
    color: #667;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    background: #f4f6f8;
    border-radius: 999px;
    white-space: nowrap;
}

.sd-upload-retry {
    display: none;
    flex-shrink: 0;
}

.sd-upload-item.is-error .sd-upload-retry {
    display: inline-block;
}

.sd-upload-item.is-error {
    align-items: flex-start;
}

.sd-upload-item.is-sending {
    background: #f7fbfe;
}

.sd-upload-item.is-sending .sd-upload-icon,
.sd-upload-item.is-sending .sd-upload-badge {
    color: #337ab7;
    background: #e7f1fa;
}

.sd-upload-item.is-success .sd-upload-icon,
.sd-upload-item.is-success .sd-upload-badge {
    color: #3c763d;
    background: #e8f5e8;
}

.sd-upload-item.is-error {
    background: #fffafa;
}

.sd-upload-item.is-error .sd-upload-icon,
.sd-upload-item.is-error .sd-upload-badge,
.sd-upload-item.is-error .sd-upload-status {
    color: #a94442;
}

.sd-upload-item.is-error .sd-upload-icon,
.sd-upload-item.is-error .sd-upload-badge {
    background: #fdecec;
}

.sd-upload-summary {
    display: flex;
    gap: 16px;
    margin-top: auto;
    padding: 10px 14px;
    color: #667;
    font-size: 12px;
    background: #fafbfc;
    border-top: 1px solid #e3e6ea;
}

.sd-upload-summary strong {
    color: #2c333a;
    font-size: 14px;
}

#sd-upload-close:disabled {
    cursor: not-allowed;
    opacity: .55;
}

@media (max-width: 767px) {
    .sd-upload-columns {
        flex-direction: column;
    }

    .sd-upload-panel:first-child,
    .sd-upload-files {
        width: 100%;
    }

    .sd-files-panel {
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid #e6e6e6;
        border-left: 0;
    }
}

.sd-token-error {
    text-align: center;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sd-token-error-icon {
    color: #cc0000;
    margin-bottom: 20px;
}

.sd-token-error-message {
    font-size: 24px;
    font-weight: bold;
    color: #cc0000;
}

.sd-token-error-description,
.sd-token-error-contact {
    font-size: 16px;
    color: #555;
}

