.pm-portal-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.pm-portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dddddd;
}

.pm-portal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 32px;
    font-weight: 700;
}

.pm-portal-logo {
    height: 40px;
    width: auto;
}

.pm-portal-user {
    font-size: 14px;
}

.pm-portal-user a {
    text-decoration: none;
}

/*
|--------------------------------------------------------------------------
| Navigation
|--------------------------------------------------------------------------
*/

.pm-portal-menu {
    margin-bottom: 30px;
    border-bottom: 1px solid #dddddd;
}

.pm-portal-menu ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.pm-portal-menu li {
    margin: 0;
}

.pm-portal-menu a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #333333;
}

.pm-portal-menu li.active a {
    font-weight: bold;
    border-bottom: 3px solid #0073aa;
}

/*
|--------------------------------------------------------------------------
| Dashboard
|--------------------------------------------------------------------------
*/

.pm-dashboard {
    margin-top: 20px;
}

.pm-dashboard h1 {
    margin-bottom: 25px;
}

.pm-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pm-widget {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.pm-widget h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.pm-widget ul {
    margin: 0;
    padding-left: 20px;
}

.pm-widget li {
    margin-bottom: 10px;
}

.pm-widget a {
    text-decoration: none;
    font-weight: 600;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media screen and (max-width:1000px) {

    .pm-dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media screen and (max-width:700px) {

    .pm-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .pm-portal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

}

/* =====================================
   PMC Volunteer Portal Dashboard Tiles
   ===================================== */

.pm-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.pm-tile {
    display: block;
    padding: 25px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    transition: transform .25s ease, box-shadow .25s ease;
}

.pm-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}

.pm-tile h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #fff;
}

.pm-tile p {
    margin: 0;
    color: #fff;
}

.pm-calendar {
    background: #1976d2;
}

.pm-volunteer {
    background: #388e3c;
}

.pm-discussion {
    background: #f57c00;
}

.pm-documents {
    background: #7b1fa2;
}

/* =====================================
   Dashboard Action Buttons
   ===================================== */

.pm-action-button {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none !important;
    color: #ffffff !important;
    font-weight: 600;
    background: #1976d2;
    transition: all .2s ease;
}

.pm-action-button:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .20);
}

.pm-green {
    background: #2e7d32;
}

.pm-orange {
    background: #ef6c00;
}

.pm-purple {
    background: #6a1b9a;
}

/* =====================================
   Login Form
   ===================================== */

.pm-login {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .10);
}

.pm-login h2 {
    margin-top: 0;
    text-align: center;
}

.pm-login input[type=text],
.pm-login input[type=password] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
}

.pm-login .button-primary {
    width: 100%;
}

/* =====================================
   Volunteer Schedule Table
   ===================================== */

.mpc-schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.mpc-schedule-table th {
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid #dddddd;
    background: #f5f5f5;
}

.mpc-schedule-table td {
    padding: 12px;
    border-bottom: 1px solid #dddddd;
}

.mpc-schedule-table tr:nth-child(even) {
    background: #fafafa;
}

.mpc-schedule-table tr:hover {
    background: #f0f0f0;
}

/* Volunteer Schedule Column Widths */

.mpc-schedule-table th:nth-child(1),
.mpc-schedule-table td:nth-child(1) {
    width: 180px;
}

.mpc-schedule-table th:nth-child(3),
.mpc-schedule-table td:nth-child(3) {
    width: 220px;
}

.mpc-schedule-table th:nth-child(4),
.mpc-schedule-table td:nth-child(4) {
    width: 100px;
}

/* =====================================
   Compliance Modal
   ===================================== */

.pm-compliance-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.pm-compliance-box {
    background: #ffffff;
    width: 500px;
    max-width: 90%;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

/* =====================================
   Administration Buttons
   ===================================== */

.pm-action-button.pm-admin {
    background: #6c757d !important;
    color: #ffffff !important;
    border: 1px solid #5a6268;
}

.pm-action-button.pm-admin:hover {
    background: #495057 !important;
    color: #ffffff !important;
    border-color: #343a40;
}

.pm-action-button.pm-green {
    background: #2e7d32;
}

.pm-action-button.pm-orange {
    background: #ef6c00;
}

.pm-action-button.pm-purple {
    background: #6a1b9a;
}

/* =====================================
   Additional Dashboard Button Colours
   ===================================== */

.pm-yellow {
    background: #f9a825 !important;
    color: #ffffff !important;
}

.pm-yellow:hover {
    background: #f57f17 !important;
}

.pm-mauve {
    background: #8e44ad !important;
    color: #ffffff !important;
}

.pm-mauve:hover {
    background: #6c3483 !important;
}


/* ==========================================================
   Portal visual isolation — 1.0.3 stability repair
   ==========================================================
   The Portal is a standalone front-end shell. Theme and module styles must
   not be allowed to make Portal text transparent, white-on-white, hidden or
   non-interactive. These rules intentionally scope the reset to the Portal.
*/
html body.pm-portal-body {
    margin: 0 !important;
    background: #ffffff !important;
    color: #1d2327 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.pm-portal-body .pm-portal-shell,
body.pm-portal-body .pm-portal-page,
body.pm-portal-body .pm-portal-header,
body.pm-portal-body .pm-portal-title,
body.pm-portal-body .pm-portal-user,
body.pm-portal-body .pm-portal-menu,
body.pm-portal-body .pm-dashboard,
body.pm-portal-body .pm-dashboard-grid,
body.pm-portal-body .pm-widget {
    color: #1d2327 !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-indent: 0 !important;
    filter: none !important;
}

body.pm-portal-body .pm-portal-title,
body.pm-portal-body .pm-portal-user,
body.pm-portal-body .pm-portal-menu a,
body.pm-portal-body .pm-dashboard h1,
body.pm-portal-body .pm-widget h1,
body.pm-portal-body .pm-widget h2,
body.pm-portal-body .pm-widget h3,
body.pm-portal-body .pm-widget h4,
body.pm-portal-body .pm-widget p,
body.pm-portal-body .pm-widget li,
body.pm-portal-body .pm-widget strong,
body.pm-portal-body .pm-widget span:not(.mpc-notification-banner__marker):not(.mpc-notification-banner__separator),
body.pm-portal-body .pm-widget small {
    color: #1d2327 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.pm-portal-body .pm-portal-user a,
body.pm-portal-body .pm-portal-menu a,
body.pm-portal-body .pm-widget a:not(.pm-action-button):not(.mpc-portal-action-button) {
    color: #135e96 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

body.pm-portal-body .pm-portal-menu a {
    color: #1d2327 !important;
}

body.pm-portal-body .pm-widget {
    background: #ffffff !important;
}

body.pm-portal-body button,
body.pm-portal-body a,
body.pm-portal-body input,
body.pm-portal-body select,
body.pm-portal-body textarea {
    pointer-events: auto !important;
}

/* Preserve the intended white text inside the blue notification ticker. */
body.pm-portal-body .mpc-notification-banner,
body.pm-portal-body .mpc-notification-banner *,
body.pm-portal-body .mpc-notification-banner a,
body.pm-portal-body .mpc-notification-banner strong {
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
}


/* Portal Manager 1.0.6 - compact Roster Swap dashboard summary */
.pm-roster-swaps-summary-widget .pm-roster-swap-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
    border-top: 1px solid #e4e4e4;
}
.pm-roster-swaps-summary-widget .pm-roster-swap-summary-row:first-of-type {
    border-top: 0;
}
.pm-roster-swaps-summary-widget .pm-roster-swap-summary-copy {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.pm-roster-swaps-summary-widget .pm-roster-swap-summary-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 32px;
    padding: 0 10px;
    border-radius: 18px;
    background: #f0f0f0;
    font-size: 18px;
    line-height: 1;
}
.pm-roster-swaps-summary-widget .pm-roster-swap-summary-copy span {
    font-size: 18px;
}
@media (max-width: 700px) {
    .pm-roster-swaps-summary-widget .pm-roster-swap-summary-row {
        align-items: stretch;
        flex-direction: column;
    }
    .pm-roster-swaps-summary-widget .pm-action-button {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

/* 1.0.10 roster-swap proposal confirmation */
.pm-dashboard-notice{padding:13px 16px;margin:0 0 18px;border-radius:6px;border-left:5px solid #00a32a;background:#edfaef}.pm-dashboard-notice-success{color:#135e24}.pm-roster-swaps-page .mpc-rs-proposal-confirmation{margin-top:14px}

/* 1.0.11 proposal action consistency */
.pm-roster-swaps-page .mpc-rs-proposal-actions .mpc-rs-action-button{display:inline-flex;align-items:center;justify-content:center;min-width:190px;min-height:46px;padding:10px 18px;border:2px solid #cc6f22;border-radius:7px;font-weight:700;font-size:16px;line-height:1.2;text-decoration:none;box-sizing:border-box}.pm-roster-swaps-page .mpc-rs-proposal-actions .mpc-rs-action-primary{background:#cc6f22;color:#fff}.pm-roster-swaps-page .mpc-rs-proposal-actions .mpc-rs-action-secondary{background:#fff;color:#9a4c12}


/* Roster Swap compact navigation – 1.0.21 */
.pm-roster-swap-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 8px;
}
.pm-roster-swap-menu .pm-action-button.is-active {
    box-shadow: inset 0 0 0 2px rgba(0,0,0,.18);
    font-weight: 700;
}
.pm-roster-swap-instruction {
    margin: 8px 0 18px;
    padding: 10px 12px;
    background: #f6f7f7;
    border-left: 4px solid #dba617;
}


/* Portal Manager 1.0.23 - volunteer roster-swap main-menu instruction */
.pm-roster-swap-menu-instruction {
    margin: 10px 0 18px;
    padding: 10px 14px;
    background: #f7f7f7;
    border-left: 4px solid #d97706;
    font-size: 15px;
}
