:root {
    --pmac-navy: #244f8f;
    --pmac-navy-deep: #17345f;
    --pmac-blue: #20a5d3;
    --pmac-red: #e52f3c;
    --pmac-ink: #1d2733;
    --pmac-muted: #6f7a86;
    --pmac-bg: #f4f7fb;
    --pmac-border: #dfe6ee;
    --pmac-success: #1e8b57;
    --pmac-warning: #b7791f;
    --pmac-danger: #b8323c;
    --pmac-radius: 14px;
    --pmac-shadow: 0 12px 30px rgba(23, 52, 95, .08);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    font-family: "Maven Pro", sans-serif;
    background: var(--pmac-bg);
    color: var(--pmac-ink);
    font-weight: 500;
}
a { color: var(--pmac-navy); }

.pmac-shell { min-height: 100vh; }
.pmac-sidebar {
    position: fixed;
    z-index: 1040;
    inset: 0 auto 0 0;
    width: 272px;
    background: linear-gradient(180deg, var(--pmac-navy-deep) 0%, #102846 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease;
}
.pmac-brand {
    min-height: 126px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border-bottom: 1px solid rgba(255,255,255,.11);
}
.pmac-brand-card {
    width: 100%;
    border-radius: 12px;
    background: #fff;
    padding: 11px 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}
.pmac-brand-card img { display: block; width: 100%; height: 78px; object-fit: contain; }
.pmac-nav { padding: 18px 14px; overflow-y: auto; }
.pmac-nav-label {
    margin: 16px 12px 8px;
    color: rgba(255,255,255,.5);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.pmac-nav a, .pmac-nav .nav-static {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 44px;
    padding: 10px 12px;
    margin: 4px 0;
    border-radius: 10px;
    color: rgba(255,255,255,.86);
    text-decoration: none;
    font-weight: 650;
    transition: .18s ease;
}
.pmac-nav a:hover, .pmac-nav a.active {
    background: rgba(255,255,255,.12);
    color: #fff;
    transform: translateX(2px);
}
.pmac-nav .nav-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--pmac-blue); flex: 0 0 auto;
}
.pmac-nav a.active .nav-dot { background: #fff; box-shadow: 0 0 0 4px rgba(32,165,211,.24); }
.pmac-nav .coming-soon { opacity: .58; cursor: default; }
.pmac-nav .nav-static { color: rgba(255,255,255,.86); }
.pmac-sidebar-footer {
    margin-top: auto;
    padding: 18px;
    border-top: 1px solid rgba(255,255,255,.11);
    font-size: .78rem;
    color: rgba(255,255,255,.56);
}

.pmac-main { margin-left: 272px; min-height: 100vh; }
.pmac-topbar {
    height: 76px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--pmac-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1020;
    padding: 0 28px;
    backdrop-filter: blur(8px);
}
.pmac-page-title { font-size: 1.18rem; font-weight: 800; margin: 0; }
.pmac-user-chip { display: flex; align-items: center; gap: 11px; }
.pmac-avatar {
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    background: #e8f4fa; color: var(--pmac-navy); font-weight: 850;
}
.pmac-user-meta { line-height: 1.15; }
.pmac-user-meta strong { display: block; font-size: .9rem; }
.pmac-user-meta span { color: var(--pmac-muted); font-size: .75rem; }
.pmac-content { padding: 28px; }
.pmac-container { max-width: 1480px; margin: 0 auto; }

.pmac-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.pmac-page-head h1 { margin: 0 0 5px; font-size: clamp(1.55rem, 2.6vw, 2.15rem); font-weight: 850; }
.pmac-page-head p { margin: 0; color: var(--pmac-muted); }

.pmac-grid { display: grid; gap: 18px; }
.pmac-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 22px; }
.pmac-kpi {
    background: #fff;
    border: 1px solid var(--pmac-border);
    border-radius: var(--pmac-radius);
    box-shadow: var(--pmac-shadow);
    padding: 20px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    min-height: 132px;
    transition: transform .18s ease, box-shadow .18s ease;
}
.pmac-kpi:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(23,52,95,.12); color: inherit; }
.pmac-kpi::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--pmac-blue); }
.pmac-kpi.red::before { background: var(--pmac-red); }
.pmac-kpi.navy::before { background: var(--pmac-navy); }
.pmac-kpi.green::before { background: var(--pmac-success); }
.pmac-kpi.gold::before { background: #d6a02e; }
.pmac-kpi-label { color: var(--pmac-muted); font-size: .82rem; font-weight: 750; }
.pmac-kpi-value { margin: 8px 0 2px; font-size: 2rem; line-height: 1; font-weight: 900; color: var(--pmac-ink); }
.pmac-kpi-note { color: var(--pmac-muted); font-size: .75rem; }

.pmac-two-col { grid-template-columns: minmax(0, 1.55fr) minmax(330px, .85fr); }
.pmac-card {
    background: #fff;
    border: 1px solid var(--pmac-border);
    border-radius: var(--pmac-radius);
    box-shadow: var(--pmac-shadow);
    overflow: hidden;
}
.pmac-card-head { padding: 18px 20px; border-bottom: 1px solid var(--pmac-border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pmac-card-head h2 { margin: 0; font-size: 1.04rem; font-weight: 850; }
.pmac-card-body { padding: 20px; }
.pmac-card-body.flush { padding: 0; }

.pmac-table-wrap { width: 100%; overflow-x: auto; }
.pmac-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.pmac-table th { text-align: left; padding: 12px 16px; background: #f8fafc; border-bottom: 1px solid var(--pmac-border); color: var(--pmac-muted); font-size: .74rem; letter-spacing: .03em; text-transform: uppercase; }
.pmac-table td { padding: 14px 16px; border-bottom: 1px solid #edf1f5; vertical-align: middle; }
.pmac-table tbody tr:hover { background: #fbfdff; }
.pmac-table tbody tr:last-child td { border-bottom: 0; }

.pmac-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; font-size: .72rem; font-weight: 800; background: #edf2f7; color: #4a5568; white-space: nowrap; }
.pmac-badge.approved, .pmac-badge.paid, .pmac-badge.active { background: #e5f6ec; color: #17653f; }
.pmac-badge.approval_pending, .pmac-badge.invoice_requested, .pmac-badge.invoice_sent { background: #fff4dc; color: #8a5a05; }
.pmac-badge.submitted, .pmac-badge.pending { background: #e7f3fa; color: #1d6585; }
.pmac-badge.declined, .pmac-badge.failed, .pmac-badge.disabled, .pmac-badge.overdue { background: #fdebee; color: #9b2630; }

.pmac-btn {
    appearance: none; border: 0; border-radius: 10px; padding: 10px 15px; min-height: 40px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--pmac-navy); color: #fff; text-decoration: none; font-weight: 800; cursor: pointer;
    transition: .18s ease;
}
.pmac-btn:hover { background: var(--pmac-navy-deep); color: #fff; transform: translateY(-1px); }
.pmac-btn.secondary { background: #eaf0f6; color: var(--pmac-navy-deep); }
.pmac-btn.secondary:hover { background: #dde8f2; color: var(--pmac-navy-deep); }
.pmac-btn.danger { background: var(--pmac-danger); }
.pmac-btn.small { min-height: 34px; padding: 7px 11px; font-size: .78rem; }
.pmac-btn.linklike { background: transparent; color: var(--pmac-navy); padding-left: 0; padding-right: 0; }

.pmac-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.pmac-form-group { margin-bottom: 16px; }
.pmac-form-group.full { grid-column: 1 / -1; }
.pmac-label { display: block; margin: 0 0 7px; font-weight: 800; font-size: .82rem; }
.pmac-input, .pmac-select, .pmac-textarea {
    width: 100%; border: 1px solid #cfd9e4; border-radius: 10px; background: #fff; color: var(--pmac-ink);
    padding: 10px 12px; min-height: 42px; outline: none; font: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.pmac-textarea { min-height: 110px; resize: vertical; }
.pmac-input:focus, .pmac-select:focus, .pmac-textarea:focus { border-color: var(--pmac-blue); box-shadow: 0 0 0 3px rgba(32,165,211,.13); }
.pmac-help { display: block; color: var(--pmac-muted); font-size: .76rem; margin-top: 6px; }
.pmac-error { color: var(--pmac-danger); font-size: .76rem; margin-top: 5px; }

.pmac-flash { border-radius: 12px; padding: 12px 15px; margin-bottom: 18px; font-weight: 700; transition: opacity .35s ease, transform .35s ease; }
.pmac-flash.success { background: #e7f7ee; color: #17653f; border: 1px solid #c7ecd7; }
.pmac-flash.error { background: #fdebed; color: #8e2530; border: 1px solid #f7cbd0; }
.pmac-flash.info { background: #e8f4fb; color: #1c6382; border: 1px solid #cae6f3; }
.pmac-flash-hide { opacity: 0; transform: translateY(-5px); }

.pmac-action-list { display: grid; gap: 10px; }
.pmac-action-item { display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid var(--pmac-border); border-radius: 11px; padding: 13px 14px; text-decoration: none; color: inherit; }
.pmac-action-item:hover { background: #fbfdff; color: inherit; }
.pmac-action-item strong { display: block; font-size: .88rem; }
.pmac-action-item span { display: block; color: var(--pmac-muted); font-size: .75rem; margin-top: 2px; }
.pmac-action-count { min-width: 36px; height: 36px; border-radius: 50%; display: grid !important; place-items: center; color: #fff !important; background: var(--pmac-red); font-weight: 900; margin: 0 !important; }

.pmac-empty { text-align: center; padding: 34px 18px; color: var(--pmac-muted); }
.pmac-empty strong { color: var(--pmac-ink); display: block; margin-bottom: 4px; }
.pmac-meta-list { display: grid; grid-template-columns: 180px 1fr; gap: 10px 18px; margin: 0; }
.pmac-meta-list dt { color: var(--pmac-muted); font-weight: 750; }
.pmac-meta-list dd { margin: 0; font-weight: 650; }

.pmac-login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(380px, .82fr) minmax(520px, 1.18fr);
    background: #fff;
}
.pmac-login-panel { display: flex; align-items: center; justify-content: center; padding: 42px; }
.pmac-login-card { width: min(460px, 100%); }
.pmac-login-logo { width: min(390px, 100%); height: 145px; object-fit: contain; object-position: left center; margin-bottom: 22px; }
.pmac-login-card h1 { margin: 0 0 8px; font-size: 2rem; font-weight: 900; }
.pmac-login-card > p { color: var(--pmac-muted); margin: 0 0 26px; }
.pmac-login-visual {
    background: linear-gradient(145deg, var(--pmac-navy-deep), var(--pmac-navy) 60%, #2869aa);
    color: #fff;
    padding: 68px;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
}
.pmac-login-visual::before, .pmac-login-visual::after { content: ''; position: absolute; border-radius: 50%; background: rgba(32,165,211,.24); }
.pmac-login-visual::before { width: 420px; height: 420px; top: -120px; right: -110px; }
.pmac-login-visual::after { width: 220px; height: 220px; bottom: 70px; left: -80px; background: rgba(229,47,60,.18); }
.pmac-login-copy { position: relative; z-index: 1; max-width: 620px; }
.pmac-login-copy .eyebrow { color: #aeeaff; font-size: .78rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.pmac-login-copy h2 { margin: 10px 0 12px; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.04; font-weight: 900; }
.pmac-login-copy p { margin: 0; max-width: 540px; color: rgba(255,255,255,.78); font-size: 1.03rem; }

.pmac-mobile-toggle { display: none; border: 0; background: transparent; font-size: 1.35rem; color: var(--pmac-navy-deep); }
.pmac-sidebar-overlay { display: none; }

@media (max-width: 1180px) {
    .pmac-kpis { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .pmac-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .pmac-sidebar { transform: translateX(-100%); }
    body.sidebar-open .pmac-sidebar { transform: translateX(0); }
    .pmac-main { margin-left: 0; }
    .pmac-mobile-toggle { display: inline-flex; }
    body.sidebar-open .pmac-sidebar-overlay { display: block; position: fixed; inset: 0; background: rgba(10,27,48,.48); z-index: 1030; }
    .pmac-login-page { grid-template-columns: 1fr; }
    .pmac-login-visual { display: none; }
}
@media (max-width: 700px) {
    .pmac-content { padding: 20px 15px; }
    .pmac-topbar { padding: 0 15px; }
    .pmac-user-meta { display: none; }
    .pmac-page-head { flex-direction: column; }
    .pmac-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .pmac-form-grid { grid-template-columns: 1fr; }
    .pmac-form-group.full { grid-column: auto; }
    .pmac-meta-list { grid-template-columns: 1fr; gap: 3px; }
    .pmac-meta-list dd { margin-bottom: 10px; }
    .pmac-login-panel { padding: 28px 20px; }
}
@media (max-width: 430px) {
    .pmac-kpis { grid-template-columns: 1fr; }
}

/* PMAC Applications Module v1.0 */
.pmac-app-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 22px; }
.pmac-mini-kpi {
    position: relative; overflow: hidden; min-height: 112px; padding: 17px 18px;
    background: #fff; border: 1px solid var(--pmac-border); border-radius: var(--pmac-radius);
    box-shadow: var(--pmac-shadow); color: inherit; text-decoration: none; transition: .18s ease;
}
.pmac-mini-kpi:hover { transform: translateY(-2px); color: inherit; box-shadow: 0 16px 34px rgba(23,52,95,.12); }
.pmac-mini-kpi::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--pmac-blue); }
.pmac-mini-kpi.red::before { background: var(--pmac-red); }
.pmac-mini-kpi.gold::before { background: #d6a02e; }
.pmac-mini-kpi.navy::before { background: var(--pmac-navy); }
.pmac-mini-kpi.blue::before { background: var(--pmac-blue); }
.pmac-mini-kpi.green::before { background: var(--pmac-success); }
.pmac-mini-kpi span { display: block; color: var(--pmac-muted); font-size: .77rem; font-weight: 800; }
.pmac-mini-kpi strong { display: block; margin: 7px 0 2px; font-size: 1.8rem; line-height: 1; font-weight: 900; }
.pmac-mini-kpi small { color: var(--pmac-muted); font-size: .72rem; }
.pmac-form-grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.pmac-muted-text { color: var(--pmac-muted); }
.pmac-page-count { color: var(--pmac-muted); font-size: .78rem; font-weight: 750; }
.pmac-app-table { min-width: 1080px; }
.pmac-type-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-size: .72rem; font-weight: 850; background: #edf2f7; color: #425466; }
.pmac-type-pill.member { background: #e8f4fb; color: #1c6382; }
.pmac-type-pill.vendor { background: #f1ebfb; color: #65439a; }
.pmac-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 15px 18px; border-top: 1px solid var(--pmac-border); color: var(--pmac-muted); font-size: .8rem; font-weight: 750; }
.pmac-pagination > :last-child { justify-self: end; }
.pmac-application-head { align-items: center; }
.pmac-back-link { font-size: .82rem; font-weight: 750; text-decoration: none; }
.pmac-head-statuses { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.pmac-application-layout { grid-template-columns: minmax(0, 1.4fr) minmax(330px, .72fr); }
.pmac-meta-tight { grid-template-columns: 125px minmax(0, 1fr); }
.pmac-detail-list dd { overflow-wrap: anywhere; }
.pmac-action-form { margin: 0; }
.pmac-divider { border: 0; border-top: 1px solid var(--pmac-border); margin: 20px 0; opacity: 1; }
.pmac-money-input { display: grid; grid-template-columns: 38px 1fr; align-items: stretch; }
.pmac-money-input > span { display: grid; place-items: center; background: #f3f6f9; border: 1px solid #cfd9e4; border-right: 0; border-radius: 10px 0 0 10px; font-weight: 850; color: var(--pmac-muted); }
.pmac-money-input .pmac-input { border-radius: 0 10px 10px 0; }
.pmac-approval-box { border: 1px solid var(--pmac-border); border-radius: 11px; padding: 12px 13px; }
.pmac-approval-box strong, .pmac-approval-box span { display: block; }
.pmac-approval-box strong { font-size: .85rem; }
.pmac-approval-box span { margin-top: 3px; color: var(--pmac-muted); font-size: .75rem; }
.pmac-approval-box.ready { background: #eef9f3; border-color: #c9ecd8; }
.pmac-approval-box.ready strong { color: #17653f; }
.pmac-approval-box.blocked { background: #fff8e8; border-color: #f1ddb1; }
.pmac-approval-box.blocked strong { color: #8a5a05; }
.pmac-btn-success { background: var(--pmac-success); }
.pmac-btn-success:hover { background: #176f46; }
.pmac-btn:disabled { opacity: .48; cursor: not-allowed; transform: none !important; }
.pmac-danger-zone { border: 1px solid #f3c9ce; background: #fff8f9; border-radius: 11px; padding: 11px 12px; }
.pmac-danger-zone summary { cursor: pointer; color: var(--pmac-danger); font-size: .82rem; font-weight: 850; }
.pmac-note-list { display: grid; gap: 11px; }
.pmac-note { border: 1px solid var(--pmac-border); border-radius: 11px; padding: 13px 14px; background: #fbfdff; }
.pmac-note-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.pmac-note-meta strong { font-size: .82rem; }
.pmac-note-meta span { color: var(--pmac-muted); font-size: .72rem; }
.pmac-empty.compact { padding: 18px 10px; }
.pmac-section-subtitle { margin: 20px 0 10px; font-size: .84rem; font-weight: 850; }
.pmac-timeline { display: grid; gap: 0; }
.pmac-timeline-item { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 9px; padding-bottom: 15px; }
.pmac-timeline-item:not(:last-child)::before { content: ''; position: absolute; left: 6px; top: 12px; bottom: -1px; width: 1px; background: var(--pmac-border); }
.pmac-timeline-dot { width: 13px; height: 13px; margin-top: 3px; border-radius: 50%; background: var(--pmac-blue); border: 3px solid #dff3fb; position: relative; z-index: 1; }
.pmac-timeline-item strong { display: block; font-size: .8rem; }
.pmac-timeline-item small { display: block; margin-top: 2px; color: var(--pmac-muted); font-size: .7rem; }
.pmac-badge.payment_required, .pmac-badge.not_started { background: #eef1f5; color: #596675; }
.pmac-badge.cancelled, .pmac-badge.archived, .pmac-badge.refunded, .pmac-badge.partially_refunded { background: #f0edf4; color: #655a72; }

@media (max-width: 1280px) {
    .pmac-app-kpis { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .pmac-form-grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 1180px) {
    .pmac-application-layout { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .pmac-app-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .pmac-form-grid-4 { grid-template-columns: 1fr; }
    .pmac-head-statuses { justify-content: flex-start; }
    .pmac-pagination { grid-template-columns: 1fr; text-align: center; }
    .pmac-pagination > * { justify-self: center !important; }
}
@media (max-width: 430px) {
    .pmac-app-kpis { grid-template-columns: 1fr; }
}

/* PMAC Events Module v1.0 */
.pmac-event-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 22px; }
.pmac-event-table { min-width: 980px; }
.pmac-event-filter-card { overflow: visible; }
.pmac-badge.published { background: #e5f6ec; color: #17653f; }
.pmac-badge.draft { background: #fff4dc; color: #8a5a05; }
.pmac-badge.archived { background: #f0edf4; color: #655a72; }
.pmac-event-form-layout { grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); }
.pmac-event-editor { min-height: 330px; font-family: "Maven Pro", sans-serif; font-size: .95rem; }
.ql-toolbar.ql-snow { border-color: #cfd9e4 !important; border-radius: 10px 10px 0 0; }
.ql-container.ql-snow { border-color: #cfd9e4 !important; border-radius: 0 0 10px 10px; }
.ql-editor { min-height: 290px; }
.pmac-check-row { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border: 1px solid var(--pmac-border); border-radius: 10px; background: #fbfdff; cursor: pointer; }
.pmac-check-row input { margin-top: 4px; }
.pmac-check-row strong, .pmac-check-row small { display: block; }
.pmac-check-row small { color: var(--pmac-muted); margin-top: 2px; }
.pmac-check-row.compact { padding: 8px 10px; margin-bottom: 12px; }
.pmac-drop-zone { border: 2px dashed #b9c7d6; border-radius: 13px; background: #f8fbfd; min-height: 130px; padding: 24px; display: grid; place-items: center; text-align: center; cursor: pointer; transition: .18s ease; }
.pmac-drop-zone strong { display: block; }
.pmac-drop-zone span { display: block; margin-top: -20px; color: var(--pmac-muted); font-size: .78rem; }
.pmac-drop-zone:hover, .pmac-drop-zone.is-dragover { border-color: var(--pmac-blue); background: #eef8fc; }
.pmac-event-media-list { display: grid; gap: 12px; margin-top: 14px; }
.pmac-event-media-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 15px; padding: 13px; border: 1px solid var(--pmac-border); border-radius: 12px; background: #fbfdff; }
.pmac-event-media-row.new { background: #fff; }
.pmac-event-media-thumb { min-height: 105px; border-radius: 9px; overflow: hidden; background: #eef2f6; border: 1px solid var(--pmac-border); }
.pmac-event-media-thumb img { width: 100%; height: 120px; display: block; object-fit: cover; }
.pmac-event-media-fields { min-width: 0; }
.pmac-event-category-layout { grid-template-columns: minmax(280px, .42fr) minmax(0, 1.1fr); align-items: start; }
.pmac-event-category-list { display: grid; }
.pmac-event-category-row { padding: 14px 16px; border-bottom: 1px solid var(--pmac-border); }
.pmac-event-category-row:last-child { border-bottom: 0; }
.pmac-event-category-form { display: grid; grid-template-columns: minmax(180px, 1fr) 100px 150px auto; gap: 12px; align-items: end; }
.pmac-event-category-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-bottom: 1px; }

@media (max-width: 1180px) {
    .pmac-event-form-layout, .pmac-event-category-layout { grid-template-columns: 1fr; }
    .pmac-event-category-form { grid-template-columns: minmax(180px, 1fr) 100px 150px auto; }
}
@media (max-width: 900px) {
    .pmac-event-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .pmac-event-category-form { grid-template-columns: 1fr 100px 150px; }
    .pmac-event-category-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 700px) {
    .pmac-event-media-row { grid-template-columns: 1fr; }
    .pmac-event-media-thumb img { height: 190px; }
    .pmac-event-category-form { grid-template-columns: 1fr; }
    .pmac-event-category-actions { grid-column: auto; }
}
@media (max-width: 430px) {
    .pmac-event-kpis { grid-template-columns: 1fr; }
}

/* =========================================================
   PMAC Events - KPI spacing fix
   Keep cards evenly spaced even when all counts are zero
   ========================================================= */

.pmac-event-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    margin: 0 0 22px;
}

.pmac-event-kpis .pmac-mini-kpi {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 112px;
    padding: 17px 18px;
    background: #fff;
    border: 1px solid var(--pmac-border);
    border-radius: var(--pmac-radius);
    box-shadow: var(--pmac-shadow);
    color: inherit;
    text-decoration: none;
}

.pmac-event-kpis .pmac-mini-kpi span,
.pmac-event-kpis .pmac-mini-kpi strong,
.pmac-event-kpis .pmac-mini-kpi small {
    display: block;
}

.pmac-event-kpis .pmac-mini-kpi strong {
    margin: 7px 0 3px;
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 900;
}

@media (max-width: 1100px) {
    .pmac-event-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .pmac-event-kpis {
        grid-template-columns: 1fr;
    }
}

/* PMAC logged-in admin logo */
.pmac-sidebar-brand,
.pmac-brand,
.sidebar-brand {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.pmac-sidebar-brand img,
.pmac-brand img,
.sidebar-brand img,
.pmac-sidebar-logo {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
    margin: 0 auto;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    object-fit: contain;
}

/* PMAC admin sidebar logo - transparent container */
.pmac-brand-card {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 14px 18px !important;
}

.pmac-brand-card img {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
    margin: 0 auto;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* =========================================================
   PMAC Members & Directory - KPI Cards
   ========================================================= */

.pmac-member-kpis,
.pmac-members-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    margin: 0 0 22px;
}

.pmac-member-kpis .pmac-mini-kpi,
.pmac-members-kpis .pmac-mini-kpi {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 132px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--pmac-border);
    border-radius: var(--pmac-radius);
    box-shadow: var(--pmac-shadow);
    color: inherit;
    text-decoration: none;
}

.pmac-member-kpis .pmac-mini-kpi span,
.pmac-member-kpis .pmac-mini-kpi strong,
.pmac-member-kpis .pmac-mini-kpi small,
.pmac-members-kpis .pmac-mini-kpi span,
.pmac-members-kpis .pmac-mini-kpi strong,
.pmac-members-kpis .pmac-mini-kpi small {
    display: block;
}

.pmac-member-kpis .pmac-mini-kpi span,
.pmac-members-kpis .pmac-mini-kpi span {
    margin-bottom: 7px;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.25;
}

.pmac-member-kpis .pmac-mini-kpi strong,
.pmac-members-kpis .pmac-mini-kpi strong {
    margin: 0 0 8px;
    font-size: 2rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.03em;
}

.pmac-member-kpis .pmac-mini-kpi small,
.pmac-members-kpis .pmac-mini-kpi small {
    font-size: .82rem;
    line-height: 1.4;
    opacity: .72;
}

/* Tablet */
@media (max-width: 1200px) {
    .pmac-member-kpis,
    .pmac-members-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Smaller screens */
@media (max-width: 800px) {
    .pmac-member-kpis,
    .pmac-members-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 520px) {
    .pmac-member-kpis,
    .pmac-members-kpis {
        grid-template-columns: 1fr;
    }
}

/* PMAC CMS NATIVE SIDEBAR V1 */
.pmac-cms-native-pages{margin:18px 0 10px;padding:0 10px}.pmac-cms-native-label{margin:0 0 8px;color:#8fa9cc;font-size:10px;font-weight:800;letter-spacing:.16em}.pmac-cms-native-pages>a,.pmac-cms-native-sub a{display:block;color:#fff;text-decoration:none}.pmac-cms-native-pages>a{padding:8px;font-size:13px;font-weight:700}.pmac-cms-native-dot{display:inline-block;width:7px;height:7px;margin-right:8px;border-radius:50%;background:#45b5df}.pmac-cms-native-sub{margin:2px 0 0 15px;padding-left:11px;border-left:1px solid rgba(255,255,255,.16)}.pmac-cms-native-sub a{padding:5px 7px;color:rgba(255,255,255,.82);font-size:11px;font-weight:600}.pmac-cms-native-pages a:hover{color:#fff;background:rgba(255,255,255,.08);border-radius:5px}

/* PMAC POPDOWN IMAGE ADMIN V28 START */
.pmac-popdown-image-admin{display:grid;gap:18px}.pmac-popdown-image-preview-wrap{display:flex;align-items:center;justify-content:center;min-height:180px;max-width:640px;background:#f3f6fa;border:1px solid #dbe3ee;overflow:hidden}.pmac-popdown-image-preview-wrap img{display:block;width:100%;max-height:320px;object-fit:cover}.pmac-popdown-image-preview-wrap.is-empty{border-style:dashed}.pmac-popdown-image-empty{padding:46px 20px;color:#6b7a90;text-align:center}.pmac-popdown-image-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.pmac-popdown-image-status{font-size:13px;color:#56704f}.pmac-popdown-image-status.is-error{color:#b42318}@media(max-width:575.98px){.pmac-popdown-image-actions{align-items:stretch;flex-direction:column}.pmac-popdown-image-actions .pmac-btn{width:100%}}
/* PMAC POPDOWN IMAGE ADMIN V28 END */

/* PMAC ADMIN AUTH MODERNIZATION V1 START */

/* =========================================================
   ADMIN LOGIN / PASSWORD RESET
   ========================================================= */

.pmac-login-page {
    min-height: 100vh;
    background: #f3f6fa;
}

/*
 * Left authentication panel
 */
.pmac-login-panel {
    position: relative;
    padding: 56px;
    background:
        linear-gradient(
            145deg,
            #f7f9fc 0%,
            #eef3f8 100%
        );
}

/*
 * Modern authentication card
 */
.pmac-login-card {
    position: relative;
    overflow: hidden;

    width: min(500px, 100%);

    padding: 38px 40px 40px;

    border: 1px solid #d9e3ed;
    border-radius: 18px;

    background: #ffffff;

    box-shadow:
        0 20px 55px rgba(23, 52, 95, .10);
}

.pmac-login-card::before {
    content: "";
    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 4px;

    background: #20a5d3;
}


/* Logo */

.pmac-login-logo {
    display: block;

    width: min(320px, 100%);
    height: 118px;

    margin: 0 0 25px;

    object-fit: contain;
    object-position: left center;
}


/* Heading */

.pmac-login-card h1 {
    margin: 0 0 8px;

    color: #162d4f;

    font-size: clamp(1.9rem, 3vw, 2.35rem);
    font-weight: 900;
    line-height: 1.08;
}

.pmac-login-card > p {
    max-width: 420px;

    margin: 0 0 28px;

    color: #68778a;

    font-size: .95rem;
    line-height: 1.55;
}


/* Form */

.pmac-login-card form {
    display: grid;
    gap: 17px;
}

.pmac-login-card .pmac-form-group {
    margin: 0;
}

.pmac-login-card .pmac-label {
    margin-bottom: 7px;

    color: #263d5c;

    font-size: .78rem;
    font-weight: 800;
}


/* Inputs */

.pmac-login-card .pmac-input {
    width: 100%;
    min-height: 50px;

    padding: 11px 14px;

    border: 1px solid #cbd7e4;
    border-radius: 10px;

    background: #ffffff;
    color: #172d4e;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background-color .18s ease;
}

.pmac-login-card .pmac-input:hover {
    border-color: #adc1d5;
}

.pmac-login-card .pmac-input:focus {
    outline: none;

    border-color: #20a5d3;

    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(32, 165, 211, .11);
}


/* Primary button */

.pmac-login-card .pmac-btn,
.pmac-login-card .pmac-btn.w-100 {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100% !important;
    min-height: 50px;

    margin: 2px 0 0;
    padding: 12px 20px;

    border: 0;
    border-radius: 10px;

    background: #315b9a;

    color: #ffffff;

    font-size: .88rem;
    font-weight: 800;
    letter-spacing: .01em;

    box-shadow:
        0 7px 18px rgba(49, 91, 154, .18);

    transition:
        transform .18s ease,
        background-color .18s ease,
        box-shadow .18s ease;
}

.pmac-login-card .pmac-btn:hover,
.pmac-login-card .pmac-btn:focus-visible {
    transform: translateY(-1px);

    background: #244a83;

    color: #ffffff;

    box-shadow:
        0 11px 24px rgba(49, 91, 154, .24);
}


/* =========================================================
   FORGOT PASSWORD / BACK TO SIGN IN
   ========================================================= */

.pmac-login-card form .mt-3.text-center {
    margin-top: 2px !important;
    text-align: left !important;
}

.pmac-login-card form .mt-3.text-center a {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    width: 100%;
    min-height: 46px;

    padding: 11px 14px;

    border: 1px solid #d9e3ed;
    border-radius: 10px;

    background: #f7f9fc;

    color: #315b9a;

    font-size: .82rem;
    font-weight: 750;

    text-decoration: none;

    transition:
        transform .18s ease,
        background-color .18s ease,
        border-color .18s ease,
        color .18s ease,
        box-shadow .18s ease;
}

.pmac-login-card form .mt-3.text-center a::after {
    content: "→";

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border-radius: 50%;

    background: #e5f3f9;
    color: #1389b3;

    font-size: 15px;
    font-weight: 800;

    transition:
        transform .18s ease,
        background-color .18s ease,
        color .18s ease;
}

.pmac-login-card form .mt-3.text-center a:hover,
.pmac-login-card form .mt-3.text-center a:focus-visible {
    transform: translateY(-1px);

    border-color: #20395f;

    background: #20395f;

    color: #ffffff;

    box-shadow:
        0 8px 20px rgba(32, 57, 95, .13);
}

.pmac-login-card form .mt-3.text-center a:hover::after,
.pmac-login-card form .mt-3.text-center a:focus-visible::after {
    transform: translateX(2px);

    background: rgba(255,255,255,.14);
    color: #ffffff;
}


/*
 * Back to sign-in gets a left arrow.
 */
.pmac-login-card
form
.mt-3.text-center
a[href$="/login"] {
    justify-content: flex-start;
}

.pmac-login-card
form
.mt-3.text-center
a[href$="/login"]::before {
    content: "←";

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border-radius: 50%;

    background: #e5f3f9;
    color: #1389b3;

    font-size: 15px;
    font-weight: 800;

    transition:
        transform .18s ease,
        background-color .18s ease,
        color .18s ease;
}

.pmac-login-card
form
.mt-3.text-center
a[href$="/login"]::after {
    display: none;
}

.pmac-login-card
form
.mt-3.text-center
a[href$="/login"]:hover::before,
.pmac-login-card
form
.mt-3.text-center
a[href$="/login"]:focus-visible::before {
    transform: translateX(-2px);

    background: rgba(255,255,255,.14);
    color: #ffffff;
}


/* =========================================================
   RIGHT SIDE VISUAL
   ========================================================= */

.pmac-login-visual {
    background:
        radial-gradient(
            circle at 8% 85%,
            rgba(229,47,60,.18) 0,
            rgba(229,47,60,.18) 110px,
            transparent 111px
        ),
        radial-gradient(
            circle at 92% 4%,
            rgba(32,165,211,.16) 0,
            rgba(32,165,211,.16) 210px,
            transparent 211px
        ),
        linear-gradient(
            145deg,
            #142d53 0%,
            #1d4479 58%,
            #2d66a9 100%
        );
}

.pmac-login-copy {
    max-width: 650px;
}

.pmac-login-copy .eyebrow {
    margin-bottom: 12px;

    color: #9fe5fb;

    font-size: .77rem;
    font-weight: 850;
    letter-spacing: .14em;
}

.pmac-login-copy h2 {
    max-width: 610px;

    margin: 0 0 14px;

    font-size: clamp(2.3rem, 4vw, 3.8rem);
    line-height: 1.02;
}

.pmac-login-copy p {
    max-width: 560px;

    color: rgba(255,255,255,.80);

    line-height: 1.5;
}


/* =========================================================
   FLASH MESSAGES
   ========================================================= */

.pmac-login-card .pmac-flash {
    margin: 0 0 20px;

    border-radius: 10px;

    font-size: .82rem;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1180px) {

    .pmac-login-page {
        grid-template-columns:
            minmax(420px, .95fr)
            minmax(480px, 1.05fr);
    }

    .pmac-login-panel {
        padding: 40px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .pmac-login-page {
        grid-template-columns: 1fr;
    }

    .pmac-login-visual {
        display: none;
    }

    .pmac-login-panel {
        min-height: 100vh;

        padding: 42px 20px;

        background:
            linear-gradient(
                180deg,
                #f6f9fc 0%,
                #edf3f8 100%
            );
    }

    .pmac-login-card {
        width: min(520px, 100%);
    }

}

@media (max-width: 560px) {

    .pmac-login-panel {
        padding: 26px 15px;
    }

    .pmac-login-card {
        padding: 30px 22px;

        border-radius: 14px;
    }

    .pmac-login-logo {
        width: min(275px, 100%);
        height: 105px;

        margin-bottom: 20px;
    }

    .pmac-login-card h1 {
        font-size: 1.85rem;
    }

}

/* PMAC ADMIN AUTH MODERNIZATION V1 END */
