/*valuation*/

.summary-widget {

}

.summary-widget-row {
    display: grid;
    align-items: center;
    grid-template-columns: 3fr 2fr 3fr 1fr 3fr 2fr;
    margin: 0.75rem 0;
}

.summary-widget-row > div {
    text-align: center;
    padding: 0.75rem;
}

.summary-widget-row > div.text-input {
    text-align: center;
}

.summary-widget-row > div.text-input input {
    text-align: right;
}

.summary-widget-row > div.with-input {
    text-align: left;
}

.summary-widget-row > div.with-input input {
    text-align: right;
}

/*required label postfix*/
label.required:after {
    color:red;
    content:" *";
}

.text-align-right {
    text-align: right;
}

.subject-progress {
    position: relative;
    height: 0.75rem;
    background-color: #e9ecef;
}

.subject-progress--large {
    height: 1.75rem;
}

.subject-progress--large .subject-progress__label {
    font-size: 1rem;
}

.subject-progress-edit {
    position: relative;
}

.subject-progress-edit.is-editing [data-progress-bar] {
    visibility: hidden;
}

.subject-progress-input-wrapper {
    position: absolute;
    inset: 0;
    display: none;
}

.subject-progress-edit.is-editing .subject-progress-input-wrapper {
    display: block;
}

.subject-progress-input-wrapper .form-control {
    height: 100%;
}

.subject-progress .progress-bar {
    transition: width 0.2s ease;
}

.subject-progress .progress-bar.bg-lighter {
    background-color: #c7ccd1;
}

.subject-progress--clickable {
    cursor: pointer;
}

.subject-progress__label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1;
    pointer-events: none;
}

/* storage upload list */
.component-storage-area .dropzone {
    border: 2px dashed #b6c1cc;
    border-radius: 0.75rem;
    background: #f8fafc;
    min-height: 11rem;
    padding: 0.95rem;
}

.component-storage-area .dropzone.dz-started {
    min-height: 0;
}

.component-storage-area .dropzone .dz-message {
    margin: 1.25rem 0;
}

.component-storage-area .dropzone .dz-preview.storage-upload-preview {
    width: 100%;
    min-height: 0;
    margin: 0 0 0.55rem;
    padding: 0.65rem 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border: 1px solid #d7e1eb;
    border-radius: 0.65rem;
    background: #ffffff;
}

.component-storage-area .dropzone .dz-preview.storage-upload-preview:last-child {
    margin-bottom: 0;
}

.component-storage-area .storage-upload-preview__icon {
    flex: 0 0 2.1rem;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.55rem;
    background: #ecf1f7;
    color: #5f6b78;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.component-storage-area .storage-upload-preview__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.component-storage-area .storage-upload-preview__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.component-storage-area .storage-upload-preview__name {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.component-storage-area .storage-upload-preview__size {
    font-size: 0.8rem;
    color: #6b7280;
    white-space: nowrap;
}

.component-storage-area .storage-upload-preview__progress {
    height: 0.46rem;
    border-radius: 999px;
    overflow: hidden;
    background: #e4e9f0;
}

.component-storage-area .storage-upload-preview__progress-bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3e6be8, #52a0ff);
    transition: width 0.2s ease;
}

.component-storage-area .storage-upload-preview__error {
    display: none;
    font-size: 0.76rem;
    line-height: 1.25;
    color: #c83535;
}

.component-storage-area .dropzone .dz-preview.dz-error .storage-upload-preview__error {
    display: block;
}

.component-storage-area .dropzone .dz-preview .dz-success-mark,
.component-storage-area .dropzone .dz-preview .dz-error-mark,
.component-storage-area .dropzone .dz-preview .dz-error-message,
.component-storage-area .dropzone .dz-preview .dz-image,
.component-storage-area .dropzone .dz-preview .dz-details,
.component-storage-area .dropzone .dz-preview .dz-progress {
    display: none;
}

@media (max-width: 576px) {
    .component-storage-area .storage-upload-preview__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .component-storage-area .storage-upload-preview__name {
        white-space: normal;
        word-break: break-word;
    }
}

/* offer/template editor */
.offer-editor-sidebar {
    position: sticky;
    top: 100px;
    z-index: 10;
    max-height: calc(100vh - 115px);
    display: flex;
    flex-direction: column;
}

.offer-editor-sidebar [data-contents] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.offer-editor-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.offer-editor-sidebar__actions {
    display: grid;
    padding: 0.75rem;
}

.offer-editor-sidebar__actions .btn {
    width: 100%;
}

@media (max-width: 991.98px) {
    .offer-editor-sidebar {
        position: static;
        max-height: none;
    }

    .offer-editor-sidebar [data-contents] {
        overflow-y: visible;
    }

    .offer-editor-sidebar__actions {
        display: flex;
    }

    .offer-editor-sidebar__actions .btn {
        width: auto;
    }
}

@media (max-width: 575.98px) {
    .offer-editor-sidebar__actions .btn {
        width: 100%;
    }
}

/* profile settings nav */
.settings-nav {
    position: sticky;
    top: 100px;
    z-index: 10;
}

@media (max-width: 991.98px) {
    .settings-nav {
        position: static;
    }
}
