/* Employee PDS Attachment — matches nea.rms.test / screenshot */
.be-content .rms-attach-page {
    margin: -15px -15px 0 !important;
    padding: 1.25rem 1.35rem 2rem !important;
    background: #f3f5f7 !important;
    min-height: calc(100vh - 70px);
}

.be-content .rms-attach {
    --rms-attach-green: #009249;
    --rms-attach-green-dark: #007538;
    --rms-attach-green-light: #e8f5ee;
    --rms-attach-green-border: #c5e4d4;
    --rms-attach-text: #1f2937;
    --rms-attach-muted: #6b7280;
    --rms-attach-border: #e5e7eb;
    max-width: 1180px;
}

.be-content .rms-attach-card {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
    overflow: hidden;
}

.be-content .rms-attach-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 1rem;
    padding: 1.4rem 1.6rem 1.2rem !important;
    border-bottom: 1px solid #f0f2f1;
}

.be-content .rms-attach-header-main {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.85rem;
    min-width: 0;
}

.be-content .rms-attach-header-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50% !important;
    background: #009249 !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.3rem;
}

.be-content .rms-attach-title {
    margin: 0 !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    line-height: 1.3;
}

.be-content .rms-attach-subtitle {
    margin: 0.2rem 0 0 !important;
    font-size: 0.875rem !important;
    color: #6b7280 !important;
    line-height: 1.45;
}

.be-content .rms-attach-info {
    flex-shrink: 0;
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.45rem;
    max-width: 330px;
    padding: 0.65rem 0.85rem !important;
    background: #e8f5ee !important;
    border: 1px solid #c5e4d4 !important;
    border-radius: 10px !important;
    font-size: 0.78rem !important;
    color: #007538 !important;
    line-height: 1.45;
}

.be-content .rms-attach-info .mdi {
    font-size: 1.05rem;
    color: #009249 !important;
}

.be-content .rms-attach-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem;
    padding: 1.15rem 1.5rem !important;
}

.be-content .rms-attach-row {
    display: flex !important;
    align-items: center !important;
    gap: 0.85rem;
    padding: 0.95rem 1.05rem !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    background: #fff !important;
}

.be-content .rms-attach-row-num {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50% !important;
    background: #009249 !important;
    color: #fff !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.be-content .rms-attach-row-body {
    flex: 1;
    min-width: 0;
    display: grid !important;
    grid-template-columns: minmax(170px, 250px) minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem 1rem;
}

.be-content .rms-attach-row-copy {
    min-width: 0;
}

.be-content .rms-attach-row-title {
    margin: 0 !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    line-height: 1.4;
}

.be-content .rms-attach-required {
    color: #e03131 !important;
}

.be-content .rms-attach-row-error {
    margin: 0.3rem 0 0 !important;
    font-size: 0.8rem;
    color: #e03131 !important;
    line-height: 1.3;
}

.be-content .rms-attach-row-upload {
    display: flex !important;
    align-items: stretch !important;
    gap: 0.75rem;
    min-width: 0;
}

.be-content .rms-attach-upload-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.be-content .rms-attach-row-upload.has-file .rms-attach-upload-wrap {
    flex: 1 1 200px;
    max-width: 260px;
}

.be-content .rms-attach-dropzone {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.3rem;
    min-height: 76px !important;
    width: 100% !important;
    padding: 0.7rem 0.75rem !important;
    border: 1.5px dashed #009249 !important;
    border-radius: 10px !important;
    background: #f7fbf8 !important;
    color: #009249 !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    text-align: center !important;
    line-height: 1.3 !important;
    cursor: pointer;
    margin: 0 !important;
}

.be-content .rms-attach-row-upload.has-file .rms-attach-dropzone {
    min-height: 68px !important;
    font-size: 0.72rem !important;
}

.be-content .rms-attach-dropzone .mdi {
    font-size: 1.45rem !important;
    margin: 0 !important;
    color: #009249 !important;
}

.be-content .rms-attach-upload-wrap .inputfile {
    width: 0.1px !important;
    height: 0.1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    z-index: 2 !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.be-content .rms-attach-upload-wrap .inputfile + label.rms-attach-dropzone,
.be-content .rms-attach-dropzone {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.3rem;
    min-height: 76px !important;
    width: 100% !important;
    padding: 0.7rem 0.75rem !important;
    border: 1.5px dashed #009249 !important;
    border-radius: 10px !important;
    background: #f7fbf8 !important;
    color: #009249 !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    text-align: center !important;
    line-height: 1.3 !important;
    cursor: pointer;
    margin: 0 !important;
}

.be-content .rms-attach-upload-wrap .inputfile + label.rms-attach-dropzone:hover,
.be-content .rms-attach-dropzone:hover {
    background: #e8f5ee !important;
    border-color: #007538 !important;
}

.be-content .rms-attach-loading,
.be-content .rms-attach-progress {
    margin-top: 0.3rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.be-content .rms-attach-file-card {
    flex: 1 1 260px;
    min-width: 0;
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem;
    padding: 0.5rem 0.65rem !important;
    background: #f8faf9 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
}

.be-content .rms-attach-file-icon {
    flex-shrink: 0;
    width: 38px;
    height: 44px;
    border-radius: 6px;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.6rem;
    font-weight: 700;
}

.be-content .rms-attach-file-icon.is-image {
    background: #e8f5ee !important;
    color: #009249 !important;
    border: 1px solid #c5e4d4;
}

.be-content .rms-attach-file-icon.is-pdf {
    background: #fff5f5 !important;
    color: #e03131 !important;
    border: 1px solid #ffc9c9;
}

.be-content .rms-attach-file-meta {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.1rem;
    min-width: 0;
    flex: 1;
}

.be-content .rms-attach-file-name {
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.be-content .rms-attach-file-size {
    font-size: 0.74rem !important;
    color: #6b7280 !important;
}

.be-content .rms-attach-status {
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem;
    flex-shrink: 0;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #009249 !important;
    white-space: nowrap;
}

.be-content .rms-attach-delete {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0 !important;
    border: none !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #9ca3af !important;
    font-size: 1.15rem !important;
    box-shadow: none !important;
}

.be-content .rms-attach-delete:hover {
    color: #e03131 !important;
    background: #fff5f5 !important;
}

.be-content .rms-attach-secure {
    display: flex !important;
    align-items: center !important;
    gap: 0.7rem;
    margin: 0 1.5rem !important;
    padding: 0.8rem 1rem !important;
    background: #e8f5ee !important;
    border: 1px solid #c5e4d4 !important;
    border-radius: 10px !important;
}

.be-content .rms-attach-secure .mdi {
    font-size: 1.4rem !important;
    color: #009249 !important;
}

.be-content .rms-attach-secure p {
    margin: 0 !important;
    font-size: 0.84rem !important;
    color: #6b7280 !important;
}

.be-content .rms-attach-secure strong {
    color: #007538 !important;
}

.be-content .rms-attach-footer {
    display: flex !important;
    justify-content: flex-end !important;
    padding: 1.15rem 1.5rem 1.4rem !important;
}

.be-content .rms-attach-save,
.be-content button.rms-attach-save[type="submit"] {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem;
    padding: 0.65rem 1.4rem !important;
    border: none !important;
    border-radius: 8px !important;
    background: #009249 !important;
    color: #fff !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 6px rgba(0, 146, 73, 0.28) !important;
    float: none !important;
}

.be-content .rms-attach-save:hover,
.be-content button.rms-attach-save[type="submit"]:hover {
    background: #007538 !important;
    color: #fff !important;
}

@media (max-width: 991.98px) {
    .be-content .rms-attach-header {
        flex-direction: column !important;
    }

    .be-content .rms-attach-info {
        max-width: none;
        width: 100%;
    }

    .be-content .rms-attach-row-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .be-content .rms-attach-row {
        align-items: flex-start !important;
    }

    .be-content .rms-attach-row-upload,
    .be-content .rms-attach-row-upload.has-file {
        flex-direction: column !important;
    }

    .be-content .rms-attach-row-upload.has-file .rms-attach-upload-wrap {
        max-width: none;
    }
}
