@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.ql-article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0;
    margin: 0;
    width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ql-article-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ql-article-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.ql-article-card.is-selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3) !important;
}

.ql-article-card.is-selected:hover {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3) !important;
    transform: none;
}

.ql-article-card.is-coming-soon {
    background: #f8fafc;
    border-color: #e5e7eb;
    opacity: 0.75;
}

.ql-article-card.is-coming-soon:hover {
    box-shadow: none;
    transform: none;
}

.ql-article-card.is-coming-soon .ql-card-title {
    color: #64748b;
}

.ql-article-card.is-coming-soon .ql-card-excerpt {
    color: #94a3b8;
}

.ql-coming-soon-badge {
    display: inline-block;
    background: #f59e0b;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-left: 8px;
}

.ql-owner-badge {
    display: inline-block;
    background: #059669;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-left: 8px;
}

.ql-card-header {
    display: flex;
    flex-direction: column;
    padding: 14px 18px;
    min-height: 122px;
    background:
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.02),
            rgba(255, 255, 255, 0.02) 10px,
            rgba(255, 255, 255, 0.04) 10px,
            rgba(255, 255, 255, 0.04) 20px
        ),
        linear-gradient(135deg, #1e293b 0%, #334155 100%);
    flex-shrink: 0;
}

.ql-card-header-top {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.ql-card-header .ql-card-title {
    color: #ffffff;
    margin: 20px 0 0;
    font-size: 14px;
    line-height: 1.25;
}

.ql-card-header .ql-card-category {
    background: var(--site-primary-color);
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
    flex-shrink: 0;
}

.ql-card-header .ql-card-category a {
    text-decoration: none !important;
    color: #ffffff;
}

.ql-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ql-card-title {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: #0f172a;
}

.ql-card-excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}

.ql-card-excerpt a {
    color: inherit;
    text-decoration: underline;
}

.ql-card-footer {
    padding: 16px 20px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    gap: 10px;
    align-items: center;
    background: #fafafa;
}

/* ============================================================
   BANNER VIEW — image-first card layout (distinct from article)
   ============================================================ */

.ql-banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 0;
    margin: 0;
    width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ql-banner-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ql-banner-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.ql-banner-card.is-selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3) !important;
}

.ql-banner-card.is-selected:hover {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3) !important;
    transform: none;
}

.ql-banner-card.is-coming-soon {
    background: #f8fafc;
    border-color: #e5e7eb;
    opacity: 0.75;
}

.ql-banner-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f1f5f9;
    overflow: hidden;
    flex-shrink: 0;
}

.ql-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ql-banner-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-block;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 4px;
    z-index: 2;
}

.ql-banner-body {
    padding: 18px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ql-banner-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
}

.ql-banner-excerpt {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #475569;
    flex-grow: 1;
}

.ql-banner-footer {
    padding: 14px 20px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    gap: 10px;
    align-items: center;
    background: #fafafa;
}

.ql-bulk-bar--banner {
    background: #fefce8;
    border-color: #fde68a;
}

.ql-bulk-bar--banner .ql-filter-label {
    color: #92400e;
}

.ql-bulk-bar--banner .ql-filter-select {
    background: #ffffff;
}

@media (max-width: 768px) {
    .ql-banner-grid {
        grid-template-columns: 1fr;
    }

    .ql-bulk-bar--banner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        flex-wrap: wrap;
    }

    .ql-bulk-bar--banner .ql-filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .ql-bulk-bar--banner .ql-filter-select {
        width: 100%;
    }
}

.ql-btn-preview {
    padding: 8px 16px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.ql-btn-preview:hover {
    background: #f9fafb !important;
    border-color: #9ca3af !important;
    color: #111827 !important;
}

.ql-btn-edit {
    padding: 8px !important;
    width: 35px !important;
    height: 35px !important;
    color: #0f172a !important;
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.ql-btn-edit.ql-show {
    display: inline-flex !important;
}

.ql-btn-edit:hover {
    background: #f0fdf4 !important;
    border-color: #4ade80 !important;
    color: #15803d !important;
}

.ql-btn-delete {
    padding: 8px !important;
    width: 35px !important;
    height: 35px !important;
    color: #b91c1c !important;
    background: #ffffff !important;
    border: 1px solid #fca5a5 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.ql-btn-delete.ql-show {
    display: inline-flex !important;
}

.ql-btn-delete:hover {
    background: #fef2f2 !important;
    border-color: #ef4444 !important;
    color: #991b1b !important;
}


.ql-btn-select {
    flex: 1 !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    background: #2563eb !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

.ql-btn-select:hover:not(:disabled) {
    background: #1d4ed8 !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
}

.ql-btn-select:disabled {
    background: #9ca3af !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.ql-btn-text {
    display: inline-block !important;
    font-size:12px;
}

.ql-btn-spinner {
    display: none !important;
}


.ql-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.ql-filter-label {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}

.ql-filter-select {
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    min-width: 200px;
}

.ql-filter-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.ql-marketplace-header {
    margin-bottom: 32px;
}

.ql-header-titles h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
}

.ql-header-titles p {
    margin: 0;
    font-size: 15px;
    color: #64748b;
    line-height: 1.5;
}

.ql-bulk-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.ql-bulk-bar--stuck {
    position: fixed;
}

.ql-bulk-bar br,
.ql-bulk-date br {
    display: none;
}

.ql-bulk-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 7px 15px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ql-bulk-date {
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.ql-bulk-date-label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.ql-publish-date-input {
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ql-publish-date-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.ql-btn-bulk {
    padding: 10px 22px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    background: #0f172a !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    flex-shrink: 0;
    white-space: nowrap;
}

.ql-btn-bulk:hover:not(:disabled) {
    background: #1e293b !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25) !important;
}

.ql-btn-bulk:disabled {
    background: #cbd5e1 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.ql-btn-auto-select {
    padding: 10px 22px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    background: #2563eb !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    flex-shrink: 0;
    white-space: nowrap;
}

.ql-btn-auto-select:hover:not(:disabled) {
    background: #1d4ed8 !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
}

.ql-btn-auto-select:disabled {
    background: #9ca3ab !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

/* ===== Auto Select Modal ===== */
.ql-auto-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 24px 0;
}

.ql-auto-spinner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2563eb;
    animation: ql-auto-bounce 0.6s ease-in-out both infinite;
}

.ql-auto-spinner-dot:nth-child(1) { animation-delay: -0.3s; }
.ql-auto-spinner-dot:nth-child(2) { animation-delay: -0.15s; }
.ql-auto-spinner-dot:nth-child(3) { animation-delay: 0s; }

@keyframes ql-auto-bounce {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1.2); opacity: 1; }
}

.ql-auto-loading-text {
    text-align: center;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.ql-auto-success {
    text-align: center;
    margin: 16px 0;
}

.ql-auto-success-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.ql-auto-success-text {
    font-size: 15px;
    color: #0f172a;
    line-height: 1.5;
}

.ql-auto-selected-list {
    list-style: none;
    padding: 12px 0 0;
    margin: 0;
    max-height: 240px;
    overflow-y: auto;
    border-top: 1px solid #e2e8f0;
}

.ql-auto-selected-list li {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #334155;
}

.ql-auto-selected-list li:last-child {
    border-bottom: none;
}

.ql-publish-selected-list {
    list-style: none;
    padding: 12px 0 0;
    margin: 0;
    max-height: 240px;
    overflow-y: auto;
    border-top: 1px solid #e2e8f0;
}

.ql-publish-selected-list li {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #334155;
}

.ql-publish-selected-list li:last-child {
    border-bottom: none;
}

.ql-auto-selected-list li[draggable="true"] {
    cursor: grab;
    background: #f8fafc;
    border-radius: 6px;
    margin: 0 -12px;
    padding-left: 20px;
}

.ql-auto-selected-list li[draggable="true"]:active {
    cursor: grabbing;
}

.ql-publish-selected-list li[draggable="true"] {
    cursor: grab;
    background: #f8fafc;
    border-radius: 6px;
    margin: 0 -12px;
    padding-left: 20px;
}

.ql-publish-selected-list li[draggable="true"]:active {
    cursor: grabbing;
}

.ql-sortable-dragging {
    opacity: 0.6;
    background: #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ql-sortable-grip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 24px;
    margin-right: 8px;
    color: #94a3b8;
    font-size: 14px;
    letter-spacing: -2px;
    line-height: 1;
    cursor: grab;
    user-select: none;
    flex-shrink: 0;
}

[draggable="true"]:hover .ql-sortable-grip {
    color: #64748b;
}

.ql-auto-selected-list li[draggable="true"],
.ql-publish-selected-list li[draggable="true"] {
    display: flex;
    align-items: center;
}

.ql-msg-body.ql-auto-body {
    text-align: center;
}

.ql-article-full {
    display: none !important;
}

.ql-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.ql-modal-content {
    background: #ffffff;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.ql-modal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.ql-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 20;
    width: 40px;
    height: 40px;
    background: var(--site-primary-color);
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 22px;
    color: #FFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.ql-modal-close:hover {
    background: #f9fafb;
    color: #111827;
    border-color: #9ca3af;
}

.ql-preview-header {
    padding: 24px 32px 0;
}

.ql-preview-header h2 {
    margin: 0 0 6px 0;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

.ql-preview-meta {
    display: inline-block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 20px;
}

.ql-modal-scroll {
    overflow-y: auto;
    flex: 1;
}

.ql-preview-body {
    padding: 28px 32px 32px;
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
}

.ql-preview-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.ql-preview-body h1,
.ql-preview-body h2,
.ql-preview-body h3,
.ql-preview-body h4,
.ql-preview-body h5,
.ql-preview-body h6 {
    color: #0f172a;
    margin-top: 24px;
    margin-bottom: 12px;
}

.ql-preview-body p {
    margin-bottom: 16px;
}

.ql-preview-body a {
    color: #2563eb;
    text-decoration: underline;
}

.ql-preview-body blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 16px;
    margin-left: 0;
    color: #6b7280;
    font-style: italic;
}

.ql-preview-body ul,
.ql-preview-body ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.ql-preview-body code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

.ql-preview-body pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .ql-article-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ql-marketplace-header {
        margin-bottom: 20px;
    }

    .ql-header-titles h2 {
        font-size: 22px;
    }

    .ql-bulk-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        flex-wrap: wrap;
    }

    .ql-bulk-count {
        align-self: flex-start;
    }

    .ql-bulk-date {
        flex: 1;
        min-width: 0;
        flex-wrap: wrap;
    }

    .ql-btn-bulk {
        width: 100% !important;
    }

    .ql-filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .ql-filter-select {
        width: 100%;
    }

    .ql-modal-overlay {
        padding: 20px 12px;
        align-items: flex-start;
    }

    .ql-preview-header {
        padding: 20px 20px 0;
    }

    .ql-preview-body {
        padding: 20px 20px 24px;
    }
}

.frm_pagination_cont ul.frm_pagination {
    justify-content: center;
}

.page-item a {
    text-decoration: none;
}

.ql-msg-overlay {
    z-index: 100000;
}

.ql-msg-content {
    max-width: 460px;
    padding: 0;
}

.ql-msg-header {
    padding: 18px 24px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.ql-msg-body {
    padding: 22px 24px;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    white-space: pre-wrap;
    word-break: break-word;
}

.ql-msg-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.ql-msg-btn {
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.ql-msg-ok,
.ql-msg-confirm {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

.ql-msg-ok:hover,
.ql-msg-confirm:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}

.ql-msg-cancel {
    background: #ffffff !important;
    color: #374151 !important;
    border-color: #d1d5db !important;
}

.ql-msg-cancel:hover {
    background: #f9fafb !important;
    border-color: #9ca3af !important;
}

.ql-msg-delete {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
}

.ql-msg-delete:hover {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
}

.ql-publish-body {
    padding: 22px 24px;
}

.ql-publish-note {
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
    margin: 0 0 18px 0;
}

.ql-publish-note strong {
    color: #0f172a;
}

.ql-publish-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ql-publish-date-label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ql-publish-body .ql-publish-date-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ql-publish-body .ql-publish-date-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.ql-msg-confirm:disabled {
    background: #cbd5e1 !important;
    border-color: #cbd5e1 !important;
    cursor: not-allowed !important;
}


.ql-month-group { 
    margin-bottom: 36px;
}
.ql-month-group.collapsed .ql-article-row {
    display: none;
}
.ql-month-header td {
    position: relative;
    cursor: pointer;
}
.ql-month-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    margin-right: 10px !important;
    padding: 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.ql-month-toggle:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}
.ql-month-toggle-icon {
    pointer-events: none;
}
.ql-month-badge {
    display: inline-block;
    background: #0f172a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.ql-table-wrap {
    overflow-x: auto;
    margin-top: 24px;
}

.ql-selected-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.ql-selected-table thead {
    background: #f8fafc;
}

.ql-selected-table th {
    text-align: left;
    padding: 14px 18px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1px solid #e5e7eb;
}

.ql-selected-table td {
    padding: 16px 18px;
    font-size: 14px;
    color: #0f172a;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.ql-selected-table tbody:last-child tr:last-child td {
    border-bottom: none;
}

.ql-month-header td {
    background: #f8fafc;
    padding: 12px 18px;
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
    border-bottom: 1px solid #e5e7eb;
}

.ql-article-row:hover {
    background: #f8fafc;
}

.ql-article-title {
    font-weight: 600;
    color: #0f172a;
}

.ql-article-site {
    font-weight: 500;
}

.ql-article-remote {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.ql-article-status {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .ql-table-wrap {
        margin-left: -16px;
        margin-right: -16px;
    }

    .ql-selected-table th,
    .ql-selected-table td {
        padding: 12px 14px;
        font-size: 13px;
    }
}

/* ===== Edit-in-Modal (reuses the shared .ql-modal-* preview styling) ===== */
#ql-edit-modal {
    z-index: 100001;
}

.ql-edit-iframe {
    width: 100%;
    height: 80vh;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .ql-edit-iframe {
        height: 70vh;
    }
}