﻿.article-owner-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 14px;
}

    .article-owner-actions form {
        margin: 0;
    }

    .article-owner-actions .btn {
        min-width: 72px;
        border-radius: 9px;
        font-weight: 800;
    }

.article-edit-data {
    display: none !important;
}
/* =========================================================
   Scrollable Add/Edit Article modals
   ========================================================= */

.article-scrollable-dialog {
    width: calc(100% - 1rem);
    max-width: 850px;
    height: calc(100vh - 1rem);
    height: calc(100dvh - 1rem);
    max-height: calc(100vh - 1rem);
    max-height: calc(100dvh - 1rem);
    margin: 0.5rem auto;
}

    .article-scrollable-dialog .article-modal-form {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: 100%;
        overflow: hidden;
        border-radius: 18px;
    }

    .article-scrollable-dialog .modal-header {
        flex: 0 0 auto;
    }

    .article-scrollable-dialog .modal-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        padding-bottom: 35px;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        touch-action: pan-y;
    }

    .article-scrollable-dialog .modal-footer {
        flex: 0 0 auto;
        position: relative;
        z-index: 2;
        background: #ffffff;
        border-top: 1px solid #e5e7eb;
    }

    /* Visible scrollbar on desktop */
    .article-scrollable-dialog .modal-body::-webkit-scrollbar {
        width: 8px;
    }

    .article-scrollable-dialog .modal-body::-webkit-scrollbar-track {
        background: #f1f5f9;
    }

    .article-scrollable-dialog .modal-body::-webkit-scrollbar-thumb {
        background: #b7c3b0;
        border-radius: 999px;
    }

        .article-scrollable-dialog .modal-body::-webkit-scrollbar-thumb:hover {
            background: #8ca47f;
        }

/* Mobile layout */
@media (max-width: 767.98px) {
    .article-scrollable-dialog {
        width: calc(100% - 0.5rem);
        height: calc(100vh - 0.5rem);
        height: calc(100dvh - 0.5rem);
        max-height: calc(100vh - 0.5rem);
        max-height: calc(100dvh - 0.5rem);
        margin: 0.25rem auto;
    }

        .article-scrollable-dialog .article-modal-form {
            border-radius: 14px;
        }

        .article-scrollable-dialog .modal-header {
            padding: 13px 15px;
        }

        .article-scrollable-dialog .modal-body {
            padding: 15px;
            padding-bottom: 45px;
        }

        .article-scrollable-dialog .modal-footer {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            padding: 11px 15px;
        }

            .article-scrollable-dialog .modal-footer .btn {
                width: 100%;
                margin: 0;
            }
}