/* Frontend styles for Monthly Newsletter table - modern corporate look */
.ak-mnw-frontend-wrapper {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #f5f7fb, #ffffff);
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.ak-mnw-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.ak-mnw-heading {
    font-size: 1.6rem;
    margin: 0;
    color: #111827;
}

.ak-mnw-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: #6b7280;
}

.ak-mnw-search-bar {
    margin-bottom: 16px;
}

.ak-mnw-search-bar input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    outline: none;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.ak-mnw-search-bar input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
    background-color: #ffffff;
}

.ak-mnw-table-wrapper {
    overflow-x: auto;
}

.ak-mnw-table-frontend {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.95rem;
}

.ak-mnw-table-frontend thead {
    background: #0f172a;
    color: #f9fafb;
}

.ak-mnw-table-frontend th,
.ak-mnw-table-frontend td {
    padding: 12px 14px;
    text-align: left;
}

.ak-mnw-table-frontend tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.ak-mnw-table-frontend tbody tr:hover {
    background-color: #eef2ff;
}

.ak-mnw-table-frontend th {
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.ak-mnw-file-link {
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed transparent;
}

.ak-mnw-file-link:hover {
    border-bottom-color: currentColor;
}

/* Responsive: convert table to cards on small screens */
@media (max-width: 640px) {
    .ak-mnw-table-frontend thead {
        display: none;
    }

    .ak-mnw-table-frontend,
    .ak-mnw-table-frontend tbody,
    .ak-mnw-table-frontend tr,
    .ak-mnw-table-frontend td {
        display: block;
        width: 100%;
    }

    .ak-mnw-table-frontend tr {
        margin-bottom: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        overflow: hidden;
        background: #ffffff;
    }

    .ak-mnw-table-frontend td {
        padding: 10px 12px;
        position: relative;
    }

    .ak-mnw-table-frontend td::before {
        content: attr(data-title);
        font-weight: 600;
        display: block;
        margin-bottom: 4px;
        color: #6b7280;
        text-transform: uppercase;
        font-size: 0.75rem;
        letter-spacing: 0.04em;
    }
}
