.abr-portal-wrap,
.abr-portal-form,
.abr-portal-box {
    box-sizing: border-box;
    max-width: 1100px;
    margin: 30px 0;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #111827;
}

.abr-portal-wrap *,
.abr-portal-form *,
.abr-portal-box * {
    box-sizing: border-box;
}

.abr-portal-wrap h2,
.abr-portal-form h2 {
    margin: 0 0 20px;
    color: #2563eb;
    font-size: 34px;
    line-height: 1.2;
}

.abr-portal-wrap h3 {
    margin-top: 28px;
    margin-bottom: 12px;
    color: #111827;
}

.abr-portal-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.abr-portal-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px;
    background: #f9fafb;
}

.abr-portal-card strong {
    display: block;
    font-size: 26px;
    color: #111827;
}

.abr-portal-card span {
    color: #374151;
}

.abr-portal-form label {
    display: block;
    margin-top: 14px;
    margin-bottom: 6px;
    font-weight: 600;
}

.abr-portal-form input,
.abr-portal-form select,
.abr-portal-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
}

.abr-portal-form button {
    margin-top: 18px;
    padding: 12px 18px;
    background: #2563eb;
    color: #ffffff;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.abr-portal-table-wrap {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.abr-portal-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.abr-portal-table th,
.abr-portal-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
    color: #111827;
}

.abr-portal-table th {
    background: #f3f4f6;
    font-weight: 700;
}

.abr-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #e5e7eb;
    color: #111827;
}

.abr-status-approved {
    background: #dcfce7;
    color: #166534;
}

.abr-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.abr-status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.abr-status-edit_requested {
    background: #dbeafe;
    color: #1e40af;
}

.abr-portal-muted { color: #667085; margin-top: -8px; }
.abr-portal-warning {
    background: #fff8e5;
    border: 1px solid #f2cc60;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 10px 0 18px;
    color: #5c4300;
    font-size: 14px;
    line-height: 1.45;
}
.abr-portal-success {
    background: #e8f7ee;
    border: 1px solid #91d8aa;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 10px 0 18px;
    color: #155b2d;
    font-size: 14px;
}
.abr-portal-form small { color: #667085; font-weight: 400; }
.abr-portal-table td, .abr-portal-table th { vertical-align: top; }

.abr-portal-subbox {
    margin: 14px 0;
    padding: 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
}


.abr-report-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.abr-print-button,.abr-report-filter button{background:#2563eb;color:#fff;border:0;border-radius:8px;padding:10px 14px;cursor:pointer;font-weight:700}.abr-report-filter{display:grid;grid-template-columns:120px 1fr 120px 1fr 120px 1fr auto;gap:10px;align-items:center;margin:14px 0 22px;padding:14px;background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px}.abr-report-filter select,.abr-report-filter input{width:100%;padding:8px;border:1px solid #d1d5db;border-radius:8px}.abr-report-section{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:16px;margin-bottom:20px}.abr-monthly-report h3{margin-top:28px}@media(max-width:900px){.abr-report-filter{grid-template-columns:1fr}.abr-report-toolbar{display:block}.abr-print-button{margin-top:10px}}@media print{body{background:#fff!important}.abr-report-filter,.abr-print-button,#wpadminbar,header,nav,footer,.sidebar,.widget-area{display:none!important}.abr-portal-wrap{box-shadow:none!important;border:0!important;width:100%!important;max-width:100%!important}.abr-portal-table{font-size:11px}.abr-portal-card{break-inside:avoid}}

.abr-report-logo{margin:0 0 12px 0;}
.abr-report-logo img{max-height:70px;max-width:220px;object-fit:contain;background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:8px;}
@media print{.abr-report-logo img{border:0;max-height:65px;padding:0;}}

/* v1.0 clearer KPI cards */
.abr-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    background: #f9fafb;
    min-height: 92px;
}
.abr-card strong {
    display: block;
    font-size: 24px;
    line-height: 1.2;
    color: #0f172a;
    margin-bottom: 8px;
}
.abr-card span {
    display: block;
    font-size: 13px;
    line-height: 1.35;
    color: #475569;
}
.abr-card-pipeline { background: #eff6ff; border-color: #bfdbfe; }
.abr-card-revenue { background: #ecfdf5; border-color: #bbf7d0; }

.abr-portal-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 12px 0;
}
.abr-portal-grid-3 label { display:block; margin-bottom:6px; }
.abr-portal-grid-3 input, .abr-portal-grid-3 select, .abr-portal-grid-3 textarea { width:100%; }
@media (max-width: 900px) { .abr-portal-grid-3 { grid-template-columns: 1fr; } }

/* v1.4 manager review dashboard */
.abr-manager-review-table td { vertical-align: top; }
.abr-inline-approval-form { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:6px; }
.abr-inline-approval-form select { min-width:150px; }
.abr-inline-approval-form button { background:#2563eb; color:#fff; border:0; border-radius:6px; padding:8px 12px; font-weight:700; cursor:pointer; }
.abr-small-link { font-size:12px; text-decoration:none; color:#2563eb; font-weight:700; }

.abr-login-wrap { max-width: 720px; }
.abr-login-wrap form { background:#fff; border:1px solid #dfe3ea; border-radius:12px; padding:24px; }
.abr-login-wrap input[type=text], .abr-login-wrap input[type=password] { width:100%; max-width:420px; padding:12px; border:1px solid #dfe3ea; border-radius:8px; }
.abr-note-log { background:#fff; border:1px solid #e5e7eb; border-radius:10px; padding:14px; margin:10px 0; }
.abr-portal-notice { background:#e8fff0; border:1px solid #b7efca; padding:12px 14px; border-radius:10px; margin:12px 0; }
.abr-activity-review .abr-portal-table th { width: 230px; }


/* v1.5.1 polished portal login */
.abr-login-wrap {
    max-width: 880px !important;
    margin: 40px auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
.abr-login-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    padding: 34px;
}
.abr-login-brand {
    margin-bottom: 24px;
    border-bottom: 1px solid #eef2f7;
    padding-bottom: 18px;
}
.abr-login-brand h1 {
    margin: 0 0 8px !important;
    color: #1d4ed8 !important;
    font-size: 34px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
}
.abr-login-brand p {
    margin: 0 !important;
    color: #475569 !important;
    font-size: 15px !important;
}
.abr-login-form-card {
    max-width: 560px;
}
.abr-login-wrap form {
    background: #f8fafc !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 16px !important;
    padding: 24px !important;
    margin: 0 !important;
}
.abr-login-wrap form p {
    margin: 0 0 16px !important;
}
.abr-login-wrap label {
    display: block !important;
    font-weight: 700 !important;
    color: #1e3a8a !important;
    margin-bottom: 7px !important;
    font-size: 14px !important;
}
.abr-login-wrap input[type="text"],
.abr-login-wrap input[type="password"],
.abr-login-wrap input[type="email"] {
    width: 100% !important;
    max-width: 100% !important;
    height: 48px !important;
    padding: 10px 14px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
}
.abr-login-wrap input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0 8px 0 0 !important;
    vertical-align: middle !important;
    accent-color: #2563eb;
}
.abr-login-wrap .login-remember label {
    display: flex !important;
    align-items: center !important;
    color: #334155 !important;
    font-weight: 600 !important;
}
.abr-login-wrap .login-submit {
    margin-top: 20px !important;
}
.abr-login-wrap input[type="submit"],
.abr-login-wrap .button-primary {
    background: #2563eb !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 10px !important;
    padding: 12px 22px !important;
    min-width: 120px !important;
    height: auto !important;
    font-weight: 800 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    box-shadow: none !important;
}
.abr-login-wrap input[type="submit"]:hover,
.abr-login-wrap .button-primary:hover {
    background: #1d4ed8 !important;
}
.abr-login-help {
    margin-top: 14px;
    color: #64748b;
    font-size: 13px;
}
.abr-login-user-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
}
.abr-login-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}
.abr-button-secondary {
    background: #0f172a !important;
    color: #fff !important;
}
@media (max-width: 700px) {
    .abr-login-wrap { margin: 20px 12px !important; }
    .abr-login-card { padding: 22px; border-radius: 16px; }
    .abr-login-brand h1 { font-size: 26px !important; }
}

/* v1.5.4 portal home and navigation cleanup */
.abr-portal-home-wrap {
    max-width: 1120px;
    margin: 42px auto;
    padding: 0 18px;
}
.abr-portal-home-card {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}
.abr-portal-home-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #e5eaf2;
    padding-bottom: 22px;
    margin-bottom: 24px;
}
.abr-portal-home-header h1 {
    color: #1d4ed8 !important;
    font-size: 38px !important;
    line-height: 1.15 !important;
    margin: 0 0 8px !important;
    font-weight: 800 !important;
}
.abr-portal-home-header p {
    color: #334155 !important;
    margin: 0 !important;
    font-size: 16px !important;
}
.abr-portal-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: #ffffff !important;
    border-radius: 10px;
    padding: 11px 18px;
    text-decoration: none !important;
    font-weight: 800;
    letter-spacing: .02em;
    white-space: nowrap;
}
.abr-portal-logout:hover { background: #1e293b; }
.abr-portal-home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.abr-portal-home-tile {
    display: block;
    padding: 20px;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    background: #f8fafc;
    text-decoration: none !important;
    transition: all .15s ease;
}
.abr-portal-home-tile:hover {
    transform: translateY(-1px);
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .10);
}
.abr-portal-home-tile-missing,
.abr-portal-home-tile-missing:hover {
    cursor: default;
    border-color: #fbbf24;
    background: #fffbeb;
    box-shadow: none;
    transform: none;
}
.abr-portal-home-tile-missing .abr-portal-home-tile-title {
    color: #92400e;
}
.abr-portal-home-tile-title {
    display: block;
    color: #1d4ed8;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
}
.abr-portal-home-tile-desc {
    display: block;
    color: #475569;
    font-size: 14px;
    line-height: 1.45;
}
.abr-portal-denied p {
    margin: 0 0 14px;
}
.abr-login-required-button {
    width: auto;
    min-width: 160px;
}
.abr-portal-home-note {
    margin-top: 22px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    font-weight: 600;
}
.abr-portal-quick-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
}
.abr-portal-quick-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 9px;
    text-decoration: none !important;
    color: #1e40af;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    font-weight: 700;
    font-size: 13px;
}
.abr-portal-quick-nav a:hover { border-color: #2563eb; background: #eff6ff; }
.abr-portal-quick-nav .abr-quick-home {
    background: #2563eb;
    color: #ffffff !important;
    border-color: #2563eb;
}
.abr-portal-quick-nav .abr-quick-logout {
    margin-left: auto;
    background: #0f172a;
    color: #ffffff !important;
    border-color: #0f172a;
}
@media (max-width: 760px) {
    .abr-portal-home-card { padding: 22px; }
    .abr-portal-home-header { flex-direction: column; }
    .abr-portal-home-header h1 { font-size: 28px !important; }
    .abr-portal-home-grid { grid-template-columns: 1fr; }
    .abr-portal-quick-nav .abr-quick-logout { margin-left: 0; }
}
@media print {
    .abr-portal-quick-nav { display: none !important; }
}


/* v1.6 monthly report notes */
.abr-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 12px 14px;
    border-radius: 10px;
    margin: 0 0 16px;
    font-weight: 700;
}
.abr-report-notes-form {
    background: #f8fafc;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    padding: 18px;
    margin: 12px 0 28px;
}
.abr-notes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.abr-notes-grid label {
    display: block;
    color: #0f172a;
    font-weight: 800;
    font-size: 14px;
}
.abr-notes-grid textarea {
    width: 100%;
    min-height: 95px;
    margin-top: 8px;
    background: #fff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 14px;
    line-height: 1.45;
}
.abr-primary-button {
    margin-top: 16px;
    background: #2563eb;
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 12px 18px;
    font-weight: 800;
    cursor: pointer;
}
.abr-primary-button:hover {
    background: #1d4ed8;
}
.abr-manual-note {
    border-left: 4px solid #2563eb;
}
@media (max-width: 800px) {
    .abr-notes-grid { grid-template-columns: 1fr; }
}
@media print {
    .abr-report-notes-form, .abr-success, .abr-portal-nav, .abr-print-button { display: none !important; }
}

/* v1.6.3 stronger print/PDF layout */
@media print {
    @page { size: A4 landscape; margin: 8mm; }
    html, body {
        background: #fff !important;
        color: #111827 !important;
        margin: 0 !important;
        padding: 0 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    body * { visibility: hidden !important; }
    .abr-monthly-report, .abr-monthly-report * { visibility: visible !important; }
    .abr-monthly-report {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        border: 0 !important;
        box-shadow: none !important;
        color: #111827 !important;
        font-size: 8.2px !important;
        line-height: 1.22 !important;
    }
    .abr-report-filter,
    .abr-print-button,
    .abr-report-notes-form,
    .abr-success,
    .abr-portal-nav,
    .abr-portal-quick-nav,
    #wpadminbar,
    header,
    nav,
    footer,
    aside,
    .sidebar,
    .widget-area,
    .site-header,
    .site-footer,
    .page-header,
    .oceanwp-toolbar,
    .elementor-location-header,
    .elementor-location-footer { display: none !important; }

    .abr-report-toolbar { display: block !important; margin: 0 0 4mm !important; }
    .abr-report-toolbar h2,
    .abr-monthly-report h2 {
        font-size: 18px !important;
        line-height: 1.1 !important;
        margin: 0 0 3mm !important;
        color: #111827 !important;
    }
    .abr-monthly-report h3 {
        font-size: 12px !important;
        line-height: 1.15 !important;
        margin: 5mm 0 2mm !important;
        color: #111827 !important;
        page-break-after: avoid !important;
        break-after: avoid !important;
    }
    .abr-report-header { margin-bottom: 3mm !important; }
    .abr-report-header h3 { font-size: 15px !important; margin: 0 0 1mm !important; }
    .abr-portal-muted { font-size: 8px !important; margin: 0 0 2mm !important; color: #374151 !important; }

    .abr-report-logo img { max-height: 42px !important; max-width: 150px !important; border: 0 !important; padding: 0 !important; }

    .abr-portal-cards {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 2mm !important;
        margin: 2mm 0 4mm !important;
    }
    .abr-portal-card {
        min-height: auto !important;
        padding: 2mm !important;
        border: 1px solid #d1d5db !important;
        border-radius: 4px !important;
        background: #fff !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }
    .abr-portal-card strong { font-size: 13px !important; margin-bottom: 1mm !important; color: #111827 !important; }
    .abr-portal-card span { font-size: 7.5px !important; line-height: 1.15 !important; color: #374151 !important; }

    .abr-report-section {
        padding: 2mm !important;
        margin: 0 0 3mm !important;
        border: 1px solid #d1d5db !important;
        border-radius: 4px !important;
        font-size: 8.2px !important;
        line-height: 1.25 !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }
    .abr-report-section p { margin: 0 0 1.5mm !important; }

    .abr-portal-table-wrap {
        overflow: visible !important;
        margin: 0 0 3mm !important;
        border: 0 !important;
        border-radius: 0 !important;
        break-inside: auto !important;
    }
    table.abr-portal-table {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
        font-size: 7.1px !important;
        line-height: 1.18 !important;
        color: #111827 !important;
        page-break-inside: auto !important;
        break-inside: auto !important;
    }
    .abr-portal-table thead { display: table-header-group !important; }
    .abr-portal-table tr { page-break-inside: avoid !important; break-inside: avoid !important; }
    .abr-portal-table th,
    .abr-portal-table td {
        padding: 1.4mm 1mm !important;
        border: 1px solid #d1d5db !important;
        vertical-align: top !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
        white-space: normal !important;
    }
    .abr-portal-table th {
        background: #f3f4f6 !important;
        color: #111827 !important;
        font-size: 6.8px !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
    }
    .abr-portal-table small { font-size: 6.4px !important; line-height: 1.15 !important; }
    .abr-status {
        font-size: 6.5px !important;
        padding: 1mm 1.2mm !important;
        border-radius: 9px !important;
        display: inline-block !important;
        white-space: nowrap !important;
    }

    /* Make the widest report tables fit portrait/landscape exports better */
    .abr-monthly-report h3:nth-of-type(5) + .abr-portal-table-wrap .abr-portal-table th,
    .abr-monthly-report h3:nth-of-type(5) + .abr-portal-table-wrap .abr-portal-table td,
    .abr-monthly-report h3:nth-of-type(6) + .abr-portal-table-wrap .abr-portal-table th,
    .abr-monthly-report h3:nth-of-type(6) + .abr-portal-table-wrap .abr-portal-table td { font-size: 6.6px !important; padding: 1.1mm .7mm !important; }

    /* Avoid printing empty duplicated sections across pages too heavily */
    .abr-monthly-report h3,
    .abr-portal-table-wrap,
    .abr-report-section { break-inside: avoid-page; }
}

/* v1.6.4 monthly PDF compact tables */
.abr-monthly-report .abr-report-compact-table th,
.abr-monthly-report .abr-report-compact-table td { vertical-align: top; }
@media print {
  @page { size: A4 landscape; margin: 8mm; }
  html, body { background: #fff !important; }
  body * { visibility: hidden !important; }
  .abr-monthly-report, .abr-monthly-report * { visibility: visible !important; }
  .abr-monthly-report { position: absolute !important; left: 0 !important; top: 0 !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; box-shadow: none !important; background: #fff !important; color: #111 !important; }
  .abr-monthly-report .abr-portal-table { table-layout: fixed !important; width: 100% !important; border-collapse: collapse !important; font-size: 8.4px !important; }
  .abr-monthly-report .abr-portal-table th, .abr-monthly-report .abr-portal-table td { padding: 4px 5px !important; line-height: 1.25 !important; word-break: normal !important; overflow-wrap: break-word !important; hyphens: none !important; }
  .abr-monthly-report h2 { font-size: 18px !important; margin: 0 0 6px !important; }
  .abr-monthly-report h3 { font-size: 13px !important; margin: 10px 0 5px !important; page-break-after: avoid !important; }
  .abr-monthly-report .abr-portal-cards { display: grid !important; grid-template-columns: repeat(10, 1fr) !important; gap: 4px !important; margin: 6px 0 !important; }
  .abr-monthly-report .abr-portal-card { min-height: auto !important; padding: 6px !important; }
  .abr-monthly-report .abr-portal-card strong { font-size: 13px !important; }
  .abr-monthly-report .abr-portal-card span { font-size: 7.5px !important; }
  .abr-monthly-report .abr-report-filter, .abr-monthly-report .abr-report-toolbar, .abr-monthly-report .abr-report-notes-form, .abr-monthly-report .abr-portal-nav { display: none !important; }
  .abr-monthly-report .abr-report-section { padding: 6px !important; margin: 4px 0 !important; page-break-inside: avoid !important; }
  .abr-monthly-report .abr-portal-table-wrap { overflow: visible !important; page-break-inside: auto !important; margin-bottom: 8px !important; }
  .abr-monthly-report tr { page-break-inside: avoid !important; }
  .abr-monthly-report small { font-size: 7.5px !important; }
  .abr-monthly-report .abr-status { font-size: 7px !important; padding: 2px 4px !important; }
}

/* v1.7.1 client dashboard alignment and readability */
.abr-client-dashboard {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}
.abr-client-dashboard .abr-report-toolbar {
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 14px;
}
.abr-client-dashboard .abr-report-toolbar h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
}
.abr-client-dashboard .abr-report-filter {
    grid-template-columns: auto minmax(190px, 240px) auto minmax(190px, 240px) auto;
    justify-content: start;
    max-width: 760px;
}
.abr-client-dashboard .abr-report-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
    margin: 18px 0;
}
.abr-client-dashboard .abr-report-header h3 {
    margin: 0 0 4px;
    font-size: 24px;
}
.abr-client-dashboard .abr-report-header p {
    margin: 0;
}
.abr-client-dashboard .abr-report-logo {
    margin: 0;
}
.abr-client-dashboard .abr-report-logo img {
    width: 90px;
    height: 70px;
    object-fit: contain;
}
.abr-client-dashboard .abr-portal-cards {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    align-items: stretch;
}
.abr-client-dashboard .abr-card {
    min-height: 100px;
}
.abr-client-dashboard h3 {
    font-size: 22px;
    margin-top: 30px;
}
.abr-client-dashboard .abr-report-compact-table th,
.abr-client-dashboard .abr-report-compact-table td {
    font-size: 13px;
    line-height: 1.45;
}
.abr-client-dashboard .abr-report-compact-table th {
    white-space: nowrap;
}
.abr-client-dashboard .abr-report-compact-table td:nth-child(1) {
    white-space: nowrap;
}
.abr-client-dashboard .abr-manual-note {
    background: #f9fafb;
}
@media (max-width: 900px) {
    .abr-client-dashboard .abr-report-filter,
    .abr-client-dashboard .abr-report-header {
        grid-template-columns: 1fr;
    }
    .abr-client-dashboard .abr-report-toolbar {
        display: block;
    }
    .abr-client-dashboard .abr-print-button {
        margin-top: 12px;
    }
}
@media print {
    .abr-client-dashboard {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 10mm !important;
    }
    .abr-client-dashboard .abr-report-header {
        grid-template-columns: auto 1fr !important;
    }
    .abr-client-dashboard .abr-report-logo img {
        width: 70px !important;
        height: auto !important;
    }
    .abr-client-dashboard .abr-portal-cards {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 6px !important;
    }
    .abr-client-dashboard .abr-card {
        min-height: auto !important;
        padding: 8px !important;
    }
    .abr-client-dashboard .abr-card strong {
        font-size: 16px !important;
    }
    .abr-client-dashboard .abr-card span {
        font-size: 9px !important;
    }
    .abr-client-dashboard .abr-report-compact-table th,
    .abr-client-dashboard .abr-report-compact-table td {
        font-size: 8.5px !important;
        padding: 4px !important;
    }
}

/* v1.8 SEO form grids */
.abr-form-grid{display:grid;gap:14px;margin:8px 0 16px;}
.abr-form-grid p{margin:0;}
.abr-form-grid-4{grid-template-columns:repeat(4,minmax(0,1fr));}
.abr-form-grid-3{grid-template-columns:repeat(3,minmax(0,1fr));}
@media(max-width:900px){.abr-form-grid-4,.abr-form-grid-3{grid-template-columns:1fr;}}

.abr-comparison-table td, .abr-comparison-table th { white-space: normal; }
.abr-positive-delta { color: #047857; font-weight: 700; }
.abr-negative-delta { color: #b91c1c; font-weight: 700; }
.abr-muted-delta { color: #64748b; font-weight: 600; }
@media print {
  .abr-comparison-table td, .abr-comparison-table th { font-size: 9px !important; padding: 5px 6px !important; }
}


/* v2.0 production polish */
.abr-card strong, .abr-portal-card strong { letter-spacing: -0.01em; }
.abr-report-header h3 { margin-top: 0; }
.abr-report-section:empty { display: none; }
.abr-portal-table td, .abr-portal-table th { vertical-align: top; }
.abr-portal-muted { color: #5f6f86; }
.abr-client-dashboard .abr-card span,
.abr-monthly-report .abr-card span { line-height: 1.25; }
@media print {
  .abr-report-compact-table th,
  .abr-report-compact-table td { font-size: 8.5px !important; line-height: 1.25 !important; }
  .abr-card strong { font-size: 15px !important; }
  .abr-card span { font-size: 8px !important; }
  .abr-portal-wrap h2 { font-size: 20px !important; }
  .abr-portal-wrap h3 { font-size: 15px !important; page-break-after: avoid; }
  .abr-portal-table-wrap { page-break-inside: auto; }
  .abr-portal-table tr { page-break-inside: avoid; page-break-after: auto; }
}

/* v2.2.1 clickable proof links */
.abr-proof-link {
    color: #0b63ce !important;
    text-decoration: underline !important;
    font-weight: 700;
    word-break: break-word;
}
.abr-activity-review .abr-proof-link {
    display: inline-block;
    margin: 3px 0;
}


/* v2.4 cost approval polish */
.abr-cost-summary-cards .abr-card,
.abr-cost-summary-cards .abr-portal-card { min-height: 84px; }
.abr-cost-approval-form select,
.abr-cost-approval-form input[type="text"],
.abr-cost-approval-form textarea {
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 9px !important;
    padding: 9px 10px !important;
    margin: 0 0 8px !important;
    min-height: 40px !important;
}
.abr-cost-approval-form button {
    background: #2563eb !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 9px !important;
    padding: 10px 16px !important;
    font-weight: 800 !important;
}
.abr-cost-approval-form .abr-cost-action-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.abr-status-not-required { background:#e5e7eb; color:#374151; }
@media (max-width: 900px) {
    .abr-cost-approval-form { min-width: 220px; }
}
@media print {
    .abr-cost-approval-form { display:none !important; }
}

/* v3.0 strategic business portal */
.abr-business-portal {
    --abr-primary: #0f766e;
    --abr-secondary: #1f2937;
    --abr-accent: #f59e0b;
    color: #111827;
}
.abr-business-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 18px;
    padding: 18px 0;
    border-bottom: 1px solid #e5e7eb;
}
.abr-business-header h1 {
    margin: 0 0 4px;
    color: var(--abr-secondary);
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.12;
}
.abr-business-header p { margin: 0; color: #4b5563; }
.abr-business-logo,
.abr-report-logo {
    width: 74px;
    height: 74px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px;
}
.abr-client-switcher {
    margin: 0 0 12px;
    display: flex;
    justify-content: flex-end;
}
.abr-client-switcher select,
.abr-tab-nav select {
    min-height: 40px;
}
.abr-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}
.abr-tab-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #1f2937;
    text-decoration: none;
    font-weight: 700;
}
.abr-tab-nav a.is-active {
    background: var(--abr-primary);
    color: #fff;
}
.abr-strategic-cards {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.abr-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0;
}
.abr-chart-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}
.abr-chart-wide { grid-column: 1 / -1; }
.abr-css-chart,
.abr-month-chart {
    display: grid;
    gap: 10px;
}
.abr-chart-row {
    display: grid;
    grid-template-columns: minmax(86px, 140px) minmax(90px, 1fr) minmax(70px, auto);
    align-items: center;
    gap: 10px;
    font-size: 13px;
}
.abr-chart-row div {
    height: 12px;
    background: #eef2f7;
    border-radius: 999px;
    overflow: hidden;
}
.abr-chart-row i {
    display: block;
    height: 100%;
    background: var(--abr-primary);
    border-radius: 999px;
}
.abr-chart-cost i { background: #dc2626; }
.abr-chart-profit i { background: var(--abr-accent); }
.abr-month-row {
    display: grid;
    gap: 6px;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
}
.abr-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.abr-list-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
}
.abr-list-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    color: var(--abr-secondary);
}
.abr-list-card p { margin: 6px 0; }
.abr-quick-form {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 14px;
}
.abr-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.abr-quick-form label {
    display: grid;
    gap: 5px;
    font-weight: 700;
}
.abr-quick-form input,
.abr-quick-form select,
.abr-quick-form textarea {
    width: 100%;
    min-height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 10px;
    background: #fff;
}
.abr-button,
.abr-quick-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 0;
    border-radius: 8px;
    background: var(--abr-primary);
    color: #fff !important;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
}
.abr-button-secondary {
    background: #6b7280;
}
.abr-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.abr-mobile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}
.abr-portal-home-guidance,
.abr-next-step {
    color: #475569;
    line-height: 1.45;
}
.abr-portal-home-guidance {
    margin: -4px 0 20px;
}
.abr-next-step {
    margin: 12px 0 6px;
}
.abr-mention-help {
    margin: 6px 0 12px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.35;
}
.abr-notifications-panel {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 12px;
    margin: 12px 0 18px;
}
.abr-notifications-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 8px;
    margin-bottom: 8px;
}
.abr-notifications-head h2 {
    margin: 0;
    font-size: 17px;
    color: var(--abr-secondary);
}
.abr-notifications-head span {
    background: #eef6ff;
    color: #1d4ed8;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 800;
}
.abr-notification-list {
    display: grid;
    gap: 8px;
}
.abr-notification-item {
    border: 1px solid #eef2f7;
    border-left: 4px solid #94a3b8;
    border-radius: 8px;
    padding: 9px;
    background: #fbfdff;
}
.abr-notification-unread {
    border-left-color: var(--abr-primary);
    background: #f8fffd;
}
.abr-notification-item p {
    margin: 0 0 4px;
}
.abr-link-button {
    border: 0;
    background: transparent;
    color: var(--abr-primary);
    padding: 0;
    font-weight: 800;
    cursor: pointer;
    text-decoration: underline;
}
.abr-portal-denied {
    max-width: 720px;
    margin: 32px auto;
}
.abr-help-note {
    border-left: 4px solid var(--abr-primary);
    background: #f8fafc;
    padding: 10px 12px;
    margin: 12px 0 18px;
    color: #475569;
}
.abr-help-wrap {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    margin-left: 6px;
}
.abr-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid #94a3b8;
    border-radius: 50%;
    background: #fff;
    color: #334155;
    font-size: 12px;
    line-height: 16px;
    padding: 0;
    cursor: help;
    font-weight: 800;
}
.abr-help-tooltip {
    position: absolute;
    z-index: 20;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    width: 240px;
    max-width: 72vw;
    background: #0f172a;
    color: #fff;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 500;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}
.abr-help-wrap:hover .abr-help-tooltip,
.abr-help-wrap:focus-within .abr-help-tooltip {
    opacity: 1;
    visibility: visible;
}
.abr-report-print {
    background: #fff;
    color: #111827;
}
.abr-report-header {
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 3px solid var(--abr-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
}
.abr-report-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.abr-muted {
    color: #6b7280;
}
.abr-portal-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 18px;
    align-items: start;
}
.abr-portal-main {
    min-width: 0;
}
.abr-performance-sidebar {
    position: sticky;
    top: 18px;
    background: #ffffff;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
.abr-sidebar-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.abr-sidebar-head h2 {
    margin: 0;
    font-size: 18px;
    color: var(--abr-secondary);
}
.abr-sidebar-head span {
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}
.abr-sidebar-cards {
    display: grid;
    gap: 9px;
}
.abr-sidebar-card {
    display: grid;
    gap: 3px;
    border: 1px solid #edf0f5;
    border-left: 4px solid var(--abr-primary);
    border-radius: 8px;
    padding: 10px;
    background: #fbfcfe;
}
.abr-sidebar-card span {
    color: #526072;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.abr-sidebar-card strong {
    color: #111827;
    font-size: 20px;
    line-height: 1.15;
}
.abr-sidebar-card small {
    color: #6b7280;
}
@media (max-width: 760px) {
    .abr-business-header {
        align-items: flex-start;
    }
    .abr-business-logo {
        width: 58px;
        height: 58px;
    }
    .abr-tab-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .abr-tab-nav a {
        justify-content: center;
        text-align: center;
    }
    .abr-chart-grid,
    .abr-report-columns {
        grid-template-columns: 1fr;
    }
    .abr-chart-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .abr-card-list {
        grid-template-columns: 1fr;
    }
    .abr-client-switcher {
        justify-content: stretch;
    }
    .abr-client-switcher select {
        width: 100%;
    }
    .abr-portal-shell {
        grid-template-columns: 1fr;
    }
    .abr-performance-sidebar {
        position: static;
        order: -1;
    }
}
@media (max-width: 520px) {
    .abr-portal-wrap,
    .abr-portal-box {
        max-width: calc(100% - 16px);
        margin: 16px 8px;
        padding: 16px;
    }
    .abr-button,
    .abr-quick-form button,
    .abr-login-required-button,
    .abr-portal-logout {
        width: 100%;
        min-height: 46px;
    }
    .abr-portal-quick-nav {
        display: grid;
        grid-template-columns: 1fr;
    }
    .abr-portal-quick-nav a {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }
    .abr-tab-nav {
        grid-template-columns: 1fr;
    }
    .abr-sidebar-card strong {
        font-size: 18px;
    }
    .abr-help-tooltip {
        left: auto;
        right: 0;
        transform: none;
        width: 220px;
    }
}
@media print {
    .abr-tab-nav,
    .abr-client-switcher,
    .abr-quick-form,
    .abr-inline-actions,
    .abr-mobile-actions {
        display: none !important;
    }
    .abr-business-portal,
    .abr-report-print {
        max-width: 100% !important;
        box-shadow: none !important;
    }
    .abr-chart-panel,
    .abr-list-card {
        break-inside: avoid;
    }
}

.abr-media-plan-page .abr-portal-section {
    margin-top: 18px;
}

.abr-media-plan-form label,
.abr-media-plan-page .abr-portal-form label {
    display: grid;
    gap: 6px;
}

.abr-inline-fieldset {
    border: 1px solid #d8dee8;
    border-radius: 8px;
    padding: 14px;
    margin: 14px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.abr-inline-fieldset legend {
    padding: 0 6px;
    font-weight: 700;
    color: #243044;
}

.abr-media-plan-page .abr-list-card {
    border-left: 4px solid var(--abr-accent, #d4af37);
}

.abr-status-draft { background: #eef2f7; color: #334155; }
.abr-status-internal_review { background: #dbeafe; color: #1e40af; }
.abr-status-needs_internal_changes,
.abr-status-client_requested_revision { background: #fef3c7; color: #92400e; }
.abr-status-ready_for_client_review,
.abr-status-submitted_to_client { background: #ede9fe; color: #5b21b6; }
.abr-status-approved,
.abr-status-ready_for_execution,
.abr-status-executed { background: #dcfce7; color: #166534; }
.abr-status-archived { background: #f1f5f9; color: #64748b; }

@media (max-width: 680px) {
    .abr-inline-fieldset {
        display: grid;
        grid-template-columns: 1fr;
    }
    .abr-media-plan-page .abr-inline-actions form,
    .abr-media-plan-page .abr-inline-actions input,
    .abr-media-plan-page .abr-inline-actions button {
        width: 100%;
    }
}

.abr-help-center {
    max-width: 1180px;
}

.abr-help-header {
    margin-bottom: 18px;
}

.abr-help-search {
    display: flex;
    gap: 10px;
    margin: 16px 0;
}

.abr-help-search input[type="search"] {
    flex: 1;
    min-height: 44px;
}

.abr-help-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 20px;
}

.abr-help-nav,
.abr-help-article {
    background: #fff;
    border: 1px solid #dbe2ec;
    border-radius: 8px;
    padding: 16px;
}

.abr-help-nav {
    align-self: start;
    position: sticky;
    top: 24px;
}

.abr-help-nav h2 {
    margin: 14px 0 8px;
    font-size: 13px;
    text-transform: uppercase;
    color: #64748b;
}

.abr-help-nav a {
    display: block;
    padding: 10px;
    border-radius: 7px;
    color: #223047;
    text-decoration: none;
}

.abr-help-nav a.is-active,
.abr-help-nav a:hover {
    background: #eef4ff;
}

.abr-help-nav small {
    display: block;
    color: #64748b;
    margin-top: 3px;
}

.abr-help-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.abr-help-content h1,
.abr-help-content h2,
.abr-help-content h3 {
    color: #172033;
}

.abr-help-content p,
.abr-help-content li {
    line-height: 1.65;
}

.abr-screenshot-placeholder {
    border: 1px dashed #94a3b8;
    border-radius: 8px;
    background: #f8fafc;
    padding: 12px;
    margin: 14px 0;
}

.abr-help-create-page {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
}

@media (max-width: 760px) {
    .abr-help-search,
    .abr-help-create-page {
        display: grid;
        grid-template-columns: 1fr;
    }
    .abr-help-layout {
        grid-template-columns: 1fr;
    }
    .abr-help-nav {
        position: static;
    }
    .abr-help-actions {
        justify-content: stretch;
    }
}

/* v3.1.8 frontend alignment normalization */
.entry-content:has(.abr-portal-wrap),
.entry-content:has(.abr-portal-home-wrap),
.entry-content:has(.abr-business-portal),
.entry-content:has(.abr-help-center),
.wp-block-post-content:has(.abr-portal-wrap),
.wp-block-post-content:has(.abr-portal-home-wrap),
.wp-block-post-content:has(.abr-business-portal),
.wp-block-post-content:has(.abr-help-center) {
    width: 100%;
    max-width: none;
    overflow-x: clip;
}

.abr-portal-wrap,
.abr-portal-form,
.abr-portal-box,
.abr-portal-home-wrap,
.abr-business-portal,
.abr-report-print,
.abr-client-dashboard,
.abr-help-center {
    box-sizing: border-box;
    width: min(100%, 1200px);
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.abr-portal-wrap,
.abr-portal-form,
.abr-portal-box,
.abr-business-portal,
.abr-report-print,
.abr-client-dashboard,
.abr-help-center {
    margin-top: 24px !important;
    margin-bottom: 32px !important;
}

.abr-portal-home-wrap {
    margin-top: 24px !important;
    margin-bottom: 32px !important;
    padding-left: 16px;
    padding-right: 16px;
}

.abr-portal-wrap,
.abr-portal-box,
.abr-business-portal,
.abr-report-print,
.abr-client-dashboard,
.abr-help-center {
    padding-left: clamp(16px, 2.5vw, 28px);
    padding-right: clamp(16px, 2.5vw, 28px);
}

.abr-portal-wrap > .abr-portal-quick-nav:first-child,
.abr-business-portal > .abr-portal-quick-nav:first-child,
.abr-help-center > .abr-portal-quick-nav:first-child,
.abr-client-dashboard > .abr-portal-quick-nav:first-child,
.abr-report-print > .abr-portal-quick-nav:first-child {
    margin-top: 0 !important;
}

.abr-portal-quick-nav {
    width: 100%;
    margin: 0 0 16px !important;
    align-items: center;
}

.abr-portal-quick-nav .abr-quick-logout {
    margin-left: auto;
}

.abr-help-center {
    padding-top: 20px;
}

.abr-help-center .abr-portal-quick-nav {
    margin-bottom: 12px !important;
}

.abr-help-header {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

.abr-help-header h1 {
    margin-top: 0;
    margin-bottom: 8px;
}

.abr-help-search {
    margin-top: 10px !important;
    margin-bottom: 14px !important;
}

.abr-monthly-report .abr-report-toolbar,
.abr-monthly-report .abr-report-filter,
.abr-monthly-report .abr-report-header,
.abr-monthly-report .abr-portal-cards,
.abr-monthly-report .abr-report-section {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.abr-report-filter,
.abr-portal-table-wrap,
.abr-help-layout,
.abr-portal-shell,
.abr-card-list,
.abr-chart-grid,
.abr-report-columns,
.abr-portal-cards {
    min-width: 0;
    max-width: 100%;
}

.abr-portal-table-wrap {
    width: 100%;
}

.abr-portal-table {
    min-width: 720px;
}

@media (max-width: 760px) {
    .abr-portal-wrap,
    .abr-portal-form,
    .abr-portal-box,
    .abr-portal-home-wrap,
    .abr-business-portal,
    .abr-report-print,
    .abr-client-dashboard,
    .abr-help-center {
        width: 100% !important;
        max-width: 100% !important;
        margin: 14px auto 24px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        border-radius: 10px;
    }

    .abr-portal-home-card {
        padding: 20px !important;
    }

    .abr-portal-quick-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 12px !important;
    }

    .abr-portal-quick-nav a,
    .abr-portal-quick-nav .abr-quick-logout {
        flex: 1 1 160px;
        margin-left: 0 !important;
        min-height: 44px;
    }

    .abr-help-center {
        padding-top: 16px !important;
    }

    .abr-help-search {
        gap: 8px;
    }

    .abr-report-toolbar {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 520px) {
    .abr-portal-wrap,
    .abr-portal-form,
    .abr-portal-box,
    .abr-portal-home-wrap,
    .abr-business-portal,
    .abr-report-print,
    .abr-client-dashboard,
    .abr-help-center {
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .abr-portal-quick-nav {
        display: grid;
        grid-template-columns: 1fr;
    }

    .abr-portal-table {
        min-width: 640px;
    }
}
