/* Кнопка «Сохранить заказ» в форме редактирования и в модалке черновика */
#save-order {
    background: #71C70A;
    width: 100%;
    border-radius: 28px;
    height: 48px;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 0.03em;
    transition: 0.2s;
    border: 1px solid #fff;
}

#save-order:hover {
    opacity: 0.9;
}

/* Кнопка «Передать заказ клиенту» */
.publish-to-client-btn {
    display: inline-block;
    padding: 8px 16px;
    line-height: 1.25;
    border-radius: 16px;
    border: 1px solid #c5d0c7;
    background: #f5f8f6;
    color: #4a5f52;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    box-sizing: border-box;
}
.publish-to-client-btn:hover {
    background: #e8f0eb;
    border-color: #71C70A;
    color: #2d4a34;
}
.publish-to-client-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Только уведомление о статусе (без сохранения заказа) */
.notify-status-btn {
    display: block;
    width: 100%;
    padding: 6px 12px;
    line-height: 1.35;
    border-radius: 28px;
    border: 1px solid #7cb88a;
    background: #fafcfb;
    color: #4a8f5c;
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    box-sizing: border-box;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    margin: 10px 0 14px;
}

.notify-status-btn:hover {
    background: #f4f9f6;
    border-color: #5cb878;
    color: #3d7d4f;
}

/* Блок вложений к письму подтверждения — под кнопками */
.ob-confirm-attachments {
    position: relative;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e9e7;
}

.ob-confirm-attachments__label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 13px;
    color: #4a5f52;
}

.ob-confirm-attachments__zone {
    display: block;
    position: relative;
    min-height: 80px;
    padding: 16px 20px;
    border: 2px dashed #c5d0c7;
    border-radius: 12px;
    background: #fafbfa;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
}

.ob-confirm-attachments__zone:hover {
    border-color: #71C70A;
    background: #f5f8f6;
}

/* Полностью скрываем нативный input — клик по label откроет выбор файлов */
.ob-confirm-attachments__input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.ob-confirm-attachments__hint {
    display: block;
    font-size: 13px;
    color: #7a8a7f;
    pointer-events: none;
}

.ob-confirm-attachments__list {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #4a5f52;
    min-height: 1.2em;
}

.ob-confirm-attachments__list:not([data-empty]) {
    color: #2d4a34;
}

.ob-confirm-attachments__existing {
    margin-bottom: 12px;
}

.ob-confirm-attachments__existing-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #4a5f52;
    margin-bottom: 6px;
}

.ob-confirm-attachments__existing-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ob-confirm-attachments__existing-list li {
    margin-bottom: 4px;
}

.ob-confirm-attachments__existing-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ob-confirm-attachments__existing-item .ob-confirm-attachments__download {
    flex: 1;
    min-width: 0;
}

.ob-confirm-attachments__delete {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid #c5d0c7;
    border-radius: 50%;
    background: #f5f8f6;
    color: #7a8a7f;
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.ob-confirm-attachments__delete:hover {
    border-color: #e57373;
    color: #e57373;
    background: #ffebee;
}

.ob-confirm-attachments__delete:focus {
    outline: none;
}

.ob-confirm-attachments__delete:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ob-confirm-attachments__download {
    font-size: 13px;
    color: #71C70A;
    text-decoration: none;
}

.ob-confirm-attachments__download:hover {
    text-decoration: underline;
}

/* Вложения клиента при оформлении заказа (форма редактирования в админке) */
.ob-order-cart-file-link {
    font-weight: 600;
    color: #71C70A;
    text-decoration: none;
}

.ob-order-cart-file-link:hover {
    text-decoration: underline;
}

.ob-order-cart-file-empty {
    color: #888;
    font-size: 13px;
}

/* Состав заказа в модалке редактирования — выше цен, с прокруткой */
#lightcase-case.modal-admin-order .ob-composite--order-edit {
    margin: 16px 0 8px;
    max-height: min(52vh, 480px);
    overflow: auto;
    border: 1px solid #e4ecee;
    border-radius: 8px;
    background: #fafbfb;
}

#lightcase-case.modal-admin-order .ob-composite--order-edit .ob-com-title {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0;
    padding: 12px 14px 10px;
    background: #f0f3f2;
    border-bottom: 1px solid #e4ecee;
    font-size: 17px;
}

#lightcase-case.modal-admin-order .ob-composite--order-edit .ob-table thead th {
    position: sticky;
    top: 48px;
    z-index: 1;
    background: #e8ebe9;
    box-shadow: 0 1px 0 #e4ecee;
}

#lightcase-case.modal-admin-order .ob-composite--order-edit td.ob-tableName {
    max-width: 220px;
}

.ob-composite-empty {
    margin: 0;
    padding: 16px 14px;
    color: #666;
    font-size: 13px;
}

