.pm-portal{
    direction:rtl;
    width:100%;
    max-width:1380px;
    margin:20px auto;
    padding:0 10px;
    box-sizing:border-box;
    font-family:inherit;
    color:#1f2937;
}
.pm-portal *{box-sizing:border-box}
.pm-portal a{text-decoration:none}

.pm-portal-hero{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    padding:26px 28px;
    margin-bottom:20px;
    border-radius:18px;
    background:linear-gradient(135deg,#173b65 0%,#245a91 55%,#2d6da5 100%);
    box-shadow:0 14px 34px rgba(23,59,101,.18);
    color:#fff;
    position:relative;
    padding-left:190px;
}
.pm-hero-content{min-width:0}
.pm-hero-eyebrow,
.pm-section-kicker{
    display:inline-block;
    margin-bottom:5px;
    font-size:12px;
    font-weight:700;
    letter-spacing:.02em;
}
.pm-hero-eyebrow{color:rgba(255,255,255,.76)}
.pm-portal-hero h2{
    margin:0;
    color:#fff;
    font-size:26px;
    line-height:1.5;
    font-weight:800;
}
.pm-hero-meta{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    margin-top:9px;
}
.pm-member-name{font-weight:700;color:#fff}
.pm-member-chip{
    display:inline-flex;
    align-items:center;
    min-height:28px;
    padding:4px 10px;
    border:1px solid rgba(255,255,255,.22);
    border-radius:999px;
    background:rgba(255,255,255,.11);
    color:#fff;
    font-size:12px;
}
.pm-member-chip--muted{background:rgba(17,24,39,.22)}
.pm-logout{
    flex:0 0 auto;
    position:absolute;
    left:28px;
    bottom:26px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:8px 16px;
    border:1px solid rgba(255,255,255,.42);
    border-radius:10px;
    color:#fff!important;
    background:rgba(255,255,255,.08);
    font-weight:700;
    transition:.2s ease;
}
.pm-logout:hover{background:#fff;color:#173b65!important}

.pm-portal-card,
.pm-login-box{
    background:#fff;
    border:1px solid #e4e9ef;
    border-radius:18px;
    padding:24px;
    margin-bottom:20px;
    box-shadow:0 8px 28px rgba(15,23,42,.055);
}
.pm-section-heading{margin-bottom:18px}
.pm-section-heading--row{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
}
.pm-section-kicker{color:#2d6da5}
.pm-section-heading h2,
.pm-section-heading h3{
    margin:0;
    color:#173b65;
    font-weight:800;
    line-height:1.55;
}
.pm-section-heading h2{font-size:25px}
.pm-section-heading h3{font-size:21px}
.pm-section-heading p{
    margin:6px 0 0;
    color:#6b7280;
    font-size:13px;
    line-height:1.9;
}

.pm-info-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
}
.pm-info-item{
    min-width:0;
    min-height:76px;
    padding:13px 15px;
    border:1px solid #e7ebf0;
    border-radius:12px;
    background:#f8fafc;
}
.pm-info-label{
    display:block;
    margin-bottom:6px;
    color:#7a8492;
    font-size:11px;
    font-weight:700;
}
.pm-info-value{
    display:block;
    color:#1f2937;
    font-size:14px;
    font-weight:700;
    line-height:1.75;
    overflow-wrap:anywhere;
}

.pm-notice{
    position:relative;
    padding:13px 16px;
    margin-bottom:18px;
    border-radius:12px;
    border:1px solid transparent;
    font-size:13px;
    font-weight:700;
    line-height:1.9;
}
.pm-notice--success{
    color:#166534;
    background:#f0fdf4;
    border-color:#bbf7d0;
}
.pm-notice--error{
    color:#991b1b;
    background:#fff1f2;
    border-color:#fecdd3;
}

.pm-upload-limit{
    flex:0 0 auto;
    position:absolute;
    left:28px;
    bottom:26px;
    display:inline-flex;
    align-items:center;
    min-height:34px;
    padding:5px 11px;
    border:1px solid #dbe4ee;
    border-radius:999px;
    background:#f8fafc;
    color:#64748b;
    font-size:11px;
    white-space:nowrap;
}
.pm-payment-form{
    display:grid;
    grid-template-columns:minmax(130px,.65fr) minmax(180px,1fr) minmax(260px,1.5fr) auto;
    align-items:end;
    gap:14px;
    padding:18px;
    border:1px solid #dfe7ef;
    border-radius:14px;
    background:#f8fafc;
}
.pm-form-field{min-width:0}
.pm-form-field>label{
    display:block;
    margin-bottom:7px;
    color:#334155;
    font-size:12px;
    font-weight:800;
}
.pm-form-field input,
.pm-form-field select{
    width:100%;
    min-height:44px;
    margin:0;
    padding:9px 11px;
    border:1px solid #cfd8e3;
    border-radius:9px;
    background:#fff;
    color:#1f2937;
    font-family:inherit;
    font-size:13px;
    outline:none;
}
.pm-form-field input:focus,
.pm-form-field select:focus{
    border-color:#2d6da5;
    box-shadow:0 0 0 3px rgba(45,109,165,.1);
}
.pm-file-field input[type=file]{
    padding:6px;
    direction:rtl;
    line-height:28px;
}
.pm-file-field input[type=file]::file-selector-button{
    margin:0 0 0 8px;
    padding:5px 10px;
    border:0;
    border-radius:7px;
    background:#e8f0f8;
    color:#173b65;
    font-family:inherit;
    font-weight:700;
    cursor:pointer;
}
.pm-file-types{
    display:inline;
    margin-right:4px;
    color:#7a8492;
    font-size:10px;
    font-weight:600;
    white-space:normal;
}
.pm-form-actions{display:flex;align-items:flex-end}
.pm-primary-button{
    min-height:44px;
    padding:9px 18px;
    border:0;
    border-radius:9px;
    background:#176b5b;
    color:#fff;
    font-family:inherit;
    font-size:13px;
    font-weight:800;
    cursor:pointer;
    white-space:nowrap;
    transition:.2s ease;
}
.pm-primary-button:hover{filter:brightness(.94);transform:translateY(-1px)}

.pm-payment-history{
    margin-top:22px;
    border-top:1px solid #eef1f4;
    padding-top:20px;
}
.pm-history-heading{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:12px;
}
.pm-history-heading h4{margin:0;color:#173b65;font-size:16px;font-weight:800}
.pm-history-heading span{color:#7a8492;font-size:11px}
.pm-table-wrap{overflow:auto;border:1px solid #e5e9ee;border-radius:12px}
.pm-payment-table{width:100%;min-width:520px;border-collapse:collapse;background:#fff}
.pm-payment-table th,
.pm-payment-table td{
    padding:12px 14px;
    border-bottom:1px solid #edf0f3;
    text-align:right;
    vertical-align:middle;
    font-size:12px;
}
.pm-payment-table th{background:#f7f9fb;color:#64748b;font-weight:800}
.pm-payment-table tbody tr:last-child td{border-bottom:0}
.pm-payment-table tbody tr:hover{background:#fbfdff}
.pm-receipt-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:30px;
    padding:4px 10px;
    border-radius:7px;
    background:#eaf3fb;
    color:#1d5f95!important;
    font-weight:800;
}
.pm-muted{color:#94a3b8}
.pm-empty-state{
    padding:20px;
    border:1px dashed #cfd8e3;
    border-radius:12px;
    background:#fbfcfd;
    color:#7a8492;
    text-align:center;
    font-size:12px;
}

.pm-login-wrap{max-width:520px}
.pm-login-box{padding:28px}
.pm-login-box form p{margin:0 0 15px}
.pm-login-box label{display:block;margin-bottom:6px;color:#334155;font-size:12px;font-weight:800}
.pm-login-box input[type=text],
.pm-login-box input[type=password]{
    width:100%;
    min-height:45px;
    padding:9px 11px;
    border:1px solid #cfd8e3;
    border-radius:9px;
}
.pm-login-box input[type=submit]{
    min-height:43px;
    padding:8px 20px;
    border:0;
    border-radius:9px;
    background:#176b5b;
    color:#fff;
    font-family:inherit;
    font-weight:800;
    cursor:pointer;
}

@media(max-width:980px){
    .pm-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .pm-payment-form{grid-template-columns:1fr 1fr}
    .pm-file-field{grid-column:1/-1}
    .pm-form-actions{grid-column:1/-1}
    .pm-primary-button{width:100%}
}
@media(max-width:700px){
    .pm-portal{padding:0 8px;margin:14px auto}
    .pm-portal-hero{align-items:flex-start;flex-direction:column;padding:20px;border-radius:14px}
    .pm-portal-hero h2{font-size:22px}
    .pm-portal-hero{padding-bottom:74px}
    .pm-logout{left:17px;bottom:16px;width:auto;min-width:120px}
    .pm-portal-card,.pm-login-box{padding:17px;border-radius:14px}
    .pm-section-heading--row{flex-direction:column}
    .pm-upload-limit{white-space:normal}
}
@media(max-width:520px){
    .pm-info-grid,.pm-payment-form{grid-template-columns:1fr}
    .pm-file-field,.pm-form-actions{grid-column:auto}
    .pm-info-item{min-height:68px}
    .pm-history-heading{align-items:flex-start;flex-direction:column}
}


/* Receipt approval workflow */
.pm-form-field small{
    display:block;
    margin-top:6px;
    color:#7a8492;
    font-size:10px;
    line-height:1.7;
}
.pm-review-status-block{
    padding:16px;
    border:1px solid #f0ddb0;
    border-radius:14px;
    background:#fffbeb;
}
.pm-status-badge{
    display:inline-flex;
    align-items:center;
    min-height:28px;
    padding:4px 10px;
    border-radius:999px;
    font-size:11px;
    font-weight:800;
    white-space:nowrap;
}
.pm-status-badge--pending{background:#fff3cd;color:#8a5a00;border:1px solid #f0d98a}
.pm-status-badge--rejected{background:#fff1f2;color:#991b1b;border:1px solid #fecdd3}
.pm-review-note{margin:12px 0 0;color:#7c5a16;font-size:11px;line-height:1.9}

/* Quick service cards - v1.6.11 */
.pm-portal-hero{
    position:relative;
    overflow:hidden;
    isolation:isolate;
    min-height:160px;
    padding:30px 32px;
    background:linear-gradient(135deg,#163a63 0%,#225a91 54%,#347bb4 100%);
}
.pm-portal-hero::before,
.pm-portal-hero::after{
    content:"";
    position:absolute;
    z-index:-1;
    border-radius:999px;
    background:rgba(255,255,255,.07);
    pointer-events:none;
}
.pm-portal-hero::before{width:190px;height:190px;left:-52px;top:-92px}
.pm-portal-hero::after{width:115px;height:115px;left:98px;bottom:-68px;background:rgba(255,255,255,.055)}
.pm-portal-hero h2{font-size:29px;letter-spacing:-.02em}
.pm-hero-eyebrow{padding:4px 9px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(255,255,255,.08)}
.pm-member-name{font-size:15px}
.pm-logout{min-width:120px}

.pm-quick-services{
    margin:-4px 0 20px;
    padding:22px;
    border:1px solid #e3e9ef;
    border-radius:18px;
    background:#fff;
    box-shadow:0 8px 28px rgba(15,23,42,.055);
}
.pm-quick-services__head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:16px;
    margin-bottom:16px;
}
.pm-quick-services__head .pm-section-kicker{margin-bottom:3px;color:#2d6da5}
.pm-quick-services__head h3{
    margin:0;
    color:#173b65;
    font-size:19px;
    font-weight:800;
    line-height:1.6;
}
.pm-service-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
}
.pm-service-card{
    position:relative;
    display:flex;
    align-items:center;
    gap:11px;
    min-width:0;
    min-height:92px;
    padding:15px 14px 15px 34px;
    overflow:hidden;
    border:1px solid #e3e9ef;
    border-radius:15px;
    background:linear-gradient(180deg,#fff 0%,#fafcfe 100%);
    box-shadow:0 4px 14px rgba(15,23,42,.035);
    transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.pm-service-card:hover{
    transform:translateY(-2px);
    border-color:#c9d9e8;
    box-shadow:0 9px 22px rgba(15,23,42,.08);
}
.pm-service-icon{
    flex:0 0 48px;
    width:48px;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:14px;
    background:#edf5fb;
    color:#215f94;
}
.pm-service-icon svg{width:25px;height:25px;fill:currentColor}
.pm-service-title{
    min-width:0;
    color:#24364a;
    font-size:13px;
    font-weight:800;
    line-height:1.75;
}
.pm-service-arrow{
    position:absolute;
    left:13px;
    top:50%;
    transform:translateY(-50%);
    color:#a3afbc;
    font-size:24px;
    line-height:1;
}
.pm-service-card--loan .pm-service-icon{background:#f1f8ef;color:#397342}
.pm-service-card--insurance .pm-service-icon{background:#eef3ff;color:#405fb1}
.pm-service-card--cancel .pm-service-icon{background:#fff2f2;color:#b14a4a}

@media(max-width:980px){
    .pm-service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
    .pm-portal-hero{min-height:0;padding:22px}
    .pm-portal-hero h2{font-size:23px}
    .pm-quick-services{padding:17px;border-radius:14px}
    .pm-quick-services__head{align-items:flex-start;flex-direction:column;gap:4px}
}
@media(max-width:520px){
    .pm-service-grid{grid-template-columns:1fr}
    .pm-service-card{min-height:78px}
}


/* Dashboard responsive refinement - v1.6.12 */
@media (min-width:1200px){
    .pm-portal{max-width:1380px;padding-inline:8px}
    .pm-portal-hero{padding:30px 36px}
    .pm-quick-services,.pm-portal-card{padding:26px}
    .pm-service-grid{gap:16px}
    .pm-service-card{min-height:104px;padding:17px 16px 17px 38px}
    .pm-service-icon{flex-basis:52px;width:52px;height:52px}
    .pm-service-icon svg{width:27px;height:27px}
    .pm-service-title{font-size:14px;line-height:1.8}
    .pm-info-grid{gap:14px}
    .pm-info-item{min-height:80px;padding:14px 16px}
}

@media (min-width:981px) and (max-width:1199px){
    .pm-portal{max-width:none;width:100%;padding-inline:6px}
    .pm-service-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
    .pm-service-card{min-height:92px}
}

@media (max-width:980px){
    .pm-portal{width:100%;max-width:none;padding:0 8px;margin:14px auto}
    .pm-quick-services{padding:20px}
    .pm-service-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
    .pm-service-card{min-height:90px;padding:14px 13px 14px 34px}
}

@media (max-width:700px){
    .pm-portal{padding:0 6px;margin:10px auto}
    .pm-portal-hero{gap:14px;padding:19px 17px 72px;border-radius:14px;margin-bottom:14px}
    .pm-portal-hero h2{font-size:21px;line-height:1.55}
    .pm-hero-meta{gap:6px;margin-top:7px}
    .pm-member-name{font-size:14px}
    .pm-logout{min-height:40px}
    .pm-quick-services{margin:0 0 14px;padding:15px;border-radius:14px}
    .pm-quick-services__head{display:block;margin-bottom:12px}
    .pm-quick-services__head h3{font-size:17px}
    .pm-service-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
    .pm-service-card{min-height:86px;gap:8px;padding:12px 10px 12px 27px;border-radius:12px}
    .pm-service-icon{flex-basis:42px;width:42px;height:42px;border-radius:11px}
    .pm-service-icon svg{width:22px;height:22px}
    .pm-service-title{font-size:12px;line-height:1.65}
    .pm-service-arrow{left:9px;font-size:20px}
    .pm-portal-card{margin-bottom:14px;padding:16px;border-radius:14px}
    .pm-info-grid{gap:9px}
    .pm-info-item{min-height:66px;padding:11px 12px}
}

@media (max-width:480px){
    .pm-portal{padding:0 4px}
    .pm-portal-hero{padding:17px 14px}
    .pm-portal-hero h2{font-size:19px}
    .pm-quick-services{padding:13px}
    .pm-service-grid{grid-template-columns:1fr;gap:8px}
    .pm-service-card{min-height:74px;padding:10px 10px 10px 30px}
    .pm-service-icon{flex-basis:40px;width:40px;height:40px}
    .pm-service-title{font-size:12.5px}
    .pm-info-grid,.pm-payment-form{grid-template-columns:1fr}
    .pm-section-heading h3{font-size:18px}
    .pm-section-heading p{font-size:12px}
    .pm-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
}


/* Logout placement - v1.6.13 */
.pm-portal-hero{position:relative}
.pm-portal-hero .pm-logout{position:absolute;left:28px;right:auto;bottom:26px;margin:0}
@media (max-width:700px){
    .pm-portal-hero{padding-bottom:72px}
    .pm-portal-hero .pm-logout{left:17px;right:auto;bottom:16px;width:auto;min-width:120px}
}


/* Mashhad pilgrimage workflow - v1.6.14 */
.pm-notice--warning{
    color:#854d0e;
    background:#fffbeb;
    border-color:#fde68a;
}
.pm-status-badge--approved{
    background:#ecfdf5;
    color:#166534;
    border:1px solid #bbf7d0;
}
.pm-count-pill{
    display:inline-flex;
    align-items:center;
    min-height:30px;
    padding:4px 10px;
    border-radius:999px;
    background:#edf5fb;
    color:#245a91;
    font-size:11px;
    font-weight:800;
    white-space:nowrap;
}
.pm-rejection-text{
    display:block;
    max-width:420px;
    color:#991b1b;
    font-size:11px;
    line-height:1.9;
    white-space:normal;
}
a.pm-service-card{color:inherit!important;text-decoration:none!important}
.pm-mashhad-card{scroll-margin-top:24px}
.pm-mashhad-letter{
    margin-bottom:18px;
    padding:18px 20px;
    border:1px solid #e1e8ef;
    border-radius:14px;
    background:linear-gradient(180deg,#fbfdff 0%,#f7fafc 100%);
    text-align:right;
}
.pm-mashhad-letter__title{text-align:center;font-weight:800;color:#334155;margin-bottom:5px}
.pm-mashhad-letter__subtitle{text-align:center;font-size:18px;font-weight:900;color:#173b65;margin-bottom:16px}
.pm-mashhad-letter p{margin:5px 0;color:#475569;font-size:13px;line-height:2}
.pm-mashhad-fields{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    margin-bottom:22px;
}
.pm-mashhad-fields .pm-form-field--wide{grid-column:1/-1}
.pm-mashhad-fields input,
.pm-mashhad-table input{
    width:100%;
    min-height:42px;
    margin:0;
    padding:8px 10px;
    border:1px solid #cfd8e3;
    border-radius:9px;
    background:#fff;
    color:#1f2937;
    font:inherit;
    font-size:12px;
    outline:none;
}
.pm-mashhad-fields input:focus,
.pm-mashhad-table input:focus{
    border-color:#2d6da5;
    box-shadow:0 0 0 3px rgba(45,109,165,.1);
}
.pm-mashhad-people{margin-top:4px}
.pm-mashhad-table{
    width:100%;
    min-width:880px;
    border-collapse:collapse;
    background:#fff;
}
.pm-mashhad-table th,
.pm-mashhad-table td{
    padding:9px;
    border-bottom:1px solid #edf0f3;
    text-align:right;
    vertical-align:middle;
    font-size:11px;
}
.pm-mashhad-table th{background:#f7f9fb;color:#64748b;font-weight:800;white-space:nowrap}
.pm-mashhad-table td:first-child,.pm-mashhad-table th:first-child{width:52px;text-align:center}
.pm-mashhad-submit{margin-top:18px;justify-content:flex-start}
.pm-mashhad-history{border-right:4px solid #2d6da5}

@media(max-width:980px){
    .pm-mashhad-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
    .pm-mashhad-fields{grid-template-columns:1fr;gap:10px}
    .pm-mashhad-fields .pm-form-field--wide{grid-column:auto}
    .pm-mashhad-letter{padding:15px}
    .pm-mashhad-letter__subtitle{font-size:16px}
    .pm-mashhad-submit .pm-primary-button{width:100%}
}

.pm-mashhad-fields input[readonly]{background:#f1f5f9;color:#334155;cursor:not-allowed;font-weight:800}
.pm-auto-date-note{display:block;margin-top:5px;color:#64748b;font-size:11px}

/* Interest-free loan workflow - v1.6.16 */
.pm-loan-card{scroll-margin-top:24px}
.pm-loan-letter{
    margin-bottom:18px;
    padding:18px 20px;
    border:1px solid #dce9dc;
    border-radius:14px;
    background:linear-gradient(180deg,#fbfefb 0%,#f6fbf5 100%);
}
.pm-loan-letter__title{font-size:15px;font-weight:900;color:#285f35;margin-bottom:8px}
.pm-loan-letter--official .pm-loan-letter__title{text-align:center;font-size:17px}
.pm-loan-letter__subtitle{text-align:center;font-size:13px;font-weight:900;color:#334155;margin:0 0 10px}
.pm-loan-letter p{margin:0;color:#475569;font-size:13px;line-height:2.1}
.pm-loan-fields{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    margin-bottom:18px;
}
.pm-loan-fields input,.pm-loan-fields select,.pm-loan-fields textarea{
    width:100%;
    min-height:42px;
    margin:0;
    padding:8px 10px;
    border:1px solid #cfd8e3;
    border-radius:9px;
    background:#fff;
    color:#1f2937;
    font:inherit;
    font-size:12px;
    outline:none;
}
.pm-loan-fields input:focus,.pm-loan-fields select:focus,.pm-loan-fields textarea:focus{border-color:#397342;box-shadow:0 0 0 3px rgba(57,115,66,.1)}
.pm-loan-fields .pm-form-field--wide{grid-column:1/-1}
.pm-loan-fields textarea{resize:vertical;min-height:68px;box-sizing:border-box}
.pm-loan-fields select{box-sizing:border-box}
.pm-loan-salary-note{margin:-4px 0 16px;padding:10px 13px;border-right:3px solid #b7791f;background:#fffaf0;border-radius:8px;color:#7c4a03;font-size:12px;font-weight:800}
.pm-loan-fields input[readonly]{background:#f1f5f9;color:#334155;cursor:not-allowed;font-weight:800}
.pm-loan-declaration{
    padding:16px 18px;
    border:1px solid #e0e7df;
    border-radius:13px;
    background:#fbfcfb;
    color:#475569;
}
.pm-loan-declaration p{margin:0 0 12px;font-size:12px;line-height:2.05}
.pm-loan-completion-date{margin:4px 0 12px;padding-top:8px;border-top:1px dashed #cfd8d0;font-size:12px;color:#334155}
.pm-loan-declaration label{display:flex;align-items:flex-start;gap:8px;font-size:12px;font-weight:800;color:#285f35;cursor:pointer}
.pm-loan-declaration input[type=checkbox]{margin-top:4px;flex:0 0 auto}
.pm-loan-submit{margin-top:18px;justify-content:flex-start}
.pm-loan-history{border-right:4px solid #397342}
@media(max-width:980px){.pm-loan-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
    .pm-loan-fields{grid-template-columns:1fr;gap:10px}
    .pm-loan-letter{padding:15px}
    .pm-loan-submit .pm-primary-button{width:100%}
}

/* Supplementary insurance workflow - v1.6.17 */
.pm-insurance-card{scroll-margin-top:24px}
.pm-insurance-letter{padding:16px 18px;margin-bottom:16px;border:1px solid #d8e2ef;border-radius:14px;background:#f8fbff}
.pm-insurance-letter__title{text-align:center;font-weight:900;color:#334155;margin-bottom:4px}
.pm-insurance-letter__subtitle{text-align:center;font-size:17px;font-weight:900;color:#405fb1;line-height:1.9}
.pm-subsection-title{margin:20px 0 10px;font-size:14px;font-weight:900;color:#173b65;padding-bottom:7px;border-bottom:1px solid #dbe5ef}
.pm-insurance-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:8px}
.pm-insurance-fields .pm-form-field--wide{grid-column:1/-1}
.pm-insurance-fields input,.pm-insurance-fields select,.pm-insurance-fields textarea,.pm-insurance-table input,.pm-insurance-table select,.pm-insurance-contact-table input{width:100%;box-sizing:border-box;border:1px solid #d5dee9;border-radius:10px;background:#fff;padding:10px 11px;color:#24364b;min-height:42px}
.pm-insurance-fields textarea{resize:vertical;min-height:78px}
.pm-insurance-fields input:focus,.pm-insurance-fields select:focus,.pm-insurance-fields textarea:focus,.pm-insurance-table input:focus,.pm-insurance-table select:focus,.pm-insurance-contact-table input:focus{outline:0;border-color:#405fb1;box-shadow:0 0 0 3px rgba(64,95,177,.1)}
.pm-insurance-fields input[readonly]{background:#f1f5f9;color:#334155;cursor:not-allowed;font-weight:800}
.pm-insurance-table{min-width:1180px}
.pm-insurance-contact-table{min-width:650px}
.pm-insurance-declaration{margin-top:16px;padding:13px 15px;border:1px solid #dbe5ef;border-radius:12px;background:#f7f9ff;color:#334155;font-size:12px;font-weight:800}
.pm-insurance-declaration label{display:flex;align-items:flex-start;gap:8px;cursor:pointer}
.pm-insurance-declaration input[type=checkbox]{margin-top:4px;flex:0 0 auto}
.pm-insurance-submit{margin-top:16px;justify-content:flex-start}
.pm-insurance-history{border-right:4px solid #405fb1}
@media(max-width:1100px){.pm-insurance-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.pm-insurance-fields{grid-template-columns:1fr;gap:10px}.pm-insurance-fields .pm-form-field--wide{grid-column:auto}.pm-insurance-letter{padding:14px}.pm-insurance-letter__subtitle{font-size:15px}.pm-insurance-submit .pm-primary-button{width:100%}.pm-subsection-title{font-size:13px}}

.pm-portal .pm-required-star{color:#dc2626;font-weight:900;margin-right:3px;font-size:1.05em}.pm-portal .pm-insurance-form input:required,.pm-portal .pm-insurance-form select:required,.pm-portal .pm-insurance-form textarea:required{border-color:#cbd5e1}.pm-portal .pm-insurance-form input:required:focus,.pm-portal .pm-insurance-form select:required:focus,.pm-portal .pm-insurance-form textarea:required:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.1)}

/* Supplementary insurance cancellation workflow - v1.6.27 */
.pm-insurance-cancellation-history{border-right:4px solid #b14a4a}
.pm-insurance-cancellation-form .pm-primary-button{background:#9f3d3d}
.pm-insurance-cancellation-form .pm-primary-button:hover{background:#873131}


/* Optional member profile photo */
.pm-member-photo-panel{
    display:grid;
    grid-template-columns:150px minmax(0,1fr);
    gap:20px;
    align-items:center;
    margin-bottom:20px;
    padding:16px;
    border:1px solid #e3e9ef;
    border-radius:14px;
    background:#f8fafc;
}
.pm-member-photo-avatar{
    width:132px;
    height:154px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    border:1px dashed #b8c5d2;
    border-radius:13px;
    background:#fff;
    color:#7a8492;
    font-size:12px;
    font-weight:800;
    text-align:center;
}
.pm-member-photo-avatar--has-image{border-style:solid}
.pm-member-photo-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.pm-member-photo-content>strong{display:block;color:#173b65;font-size:15px;margin-bottom:5px}
.pm-member-photo-content>p{margin:0 0 12px;color:#6b7280;font-size:12px;line-height:1.8}
.pm-optional-label{display:inline-flex;vertical-align:middle;margin-right:5px;padding:2px 7px;border-radius:999px;background:#e9eef4;color:#64748b;font-size:10px;font-weight:700}
.pm-member-photo-form{display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:12px;align-items:end}
.pm-member-photo-form .pm-primary-button{min-width:150px}
@media(max-width:700px){
    .pm-member-photo-panel{grid-template-columns:1fr;text-align:center}
    .pm-member-photo-avatar{margin:0 auto}
    .pm-member-photo-content{text-align:right}
    .pm-member-photo-form{grid-template-columns:1fr}
    .pm-member-photo-form .pm-primary-button{width:100%}
}

/* v1.6.48 — disabled member services */
.pm-service-card--disabled{
    cursor:not-allowed;
    opacity:.62;
    filter:grayscale(.18);
    box-shadow:none;
    border-style:dashed;
}
.pm-service-card--disabled:hover{
    transform:none;
    box-shadow:none;
    border-color:#d8e0e7;
}
.pm-service-card--disabled .pm-service-title{
    display:flex;
    flex-direction:column;
    gap:2px;
}
.pm-service-disabled-label{
    display:block;
    color:#8a98a8;
    font-size:10px;
    font-weight:700;
    line-height:1.6;
}
.pm-portal .pm-admin-member-preview-notice {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 14px;
	padding: 12px 15px;
	border: 1px solid #f0c36d;
	border-right: 5px solid #d99500;
	border-radius: 10px;
	background: #fff9e8;
	color: #654600;
	font-size: 13px;
	line-height: 1.9;
}

.pm-portal .pm-admin-member-preview-notice button {
	flex: 0 0 auto;
	border: 1px solid #b77c00;
	border-radius: 7px;
	background: #fff;
	color: #725000;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
	padding: 7px 11px;
}

.pm-portal button.pm-logout {
	font: inherit;
	cursor: pointer;
}

@media (max-width: 640px) {
	.pm-portal .pm-admin-member-preview-notice {
		align-items: flex-start;
		flex-direction: column;
	}
}

/* Membership-fee dashboard summary */
.pm-membership-dashboard-card{margin:0 0 18px;padding:22px 24px;border-radius:18px;background:#fff;border:1px solid rgba(15,23,42,.10);box-shadow:0 10px 30px rgba(15,23,42,.06)}
.pm-membership-dashboard-card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.pm-membership-dashboard-card__head h3{margin:4px 0 0;font-size:20px}
.pm-membership-status-pill{display:inline-flex;align-items:center;padding:7px 11px;border-radius:999px;font-size:12px;font-weight:800;white-space:nowrap}
.pm-membership-status-pill.is-paid{background:#e8f7ee;color:#176b3a}.pm-membership-status-pill.is-pending{background:#fff6dc;color:#8a5a00}.pm-membership-status-pill.is-rejected{background:#fdecec;color:#a12828}.pm-membership-status-pill.is-due{background:#eaf2ff;color:#1f57a4}
.pm-membership-dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.pm-membership-dashboard-grid>div{padding:13px 14px;border-radius:13px;background:#f7f9fc;border:1px solid #edf0f4}.pm-membership-dashboard-grid span{display:block;font-size:11px;color:#697386;margin-bottom:5px}.pm-membership-dashboard-grid strong{font-size:15px;color:#172033}
.pm-membership-dashboard-card__foot{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:16px;padding-top:15px;border-top:1px solid #edf0f4}.pm-membership-dashboard-card__foot p{margin:0;line-height:1.9;color:#4b5563}.pm-membership-dashboard-action{white-space:nowrap;text-decoration:none!important}
@media(max-width:780px){.pm-membership-dashboard-card{padding:16px}.pm-membership-dashboard-card__head,.pm-membership-dashboard-card__foot{align-items:stretch;flex-direction:column}.pm-membership-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pm-membership-dashboard-action{text-align:center}}
@media(max-width:420px){.pm-membership-dashboard-grid{grid-template-columns:1fr}}


/* v1.8.8 — compact, tap-to-copy payment account details */
.pm-portal .pm-payment-account-box{margin:0 0 14px;padding:10px 12px;border:1px solid #dbe3ee;border-radius:10px;background:#f8fbff}
.pm-portal .pm-payment-account-box__head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.pm-portal .pm-payment-account-box__head strong{font-size:13px;color:#172033}
.pm-portal .pm-payment-account-box__head span{font-size:10px;color:#7a8494}
.pm-portal .pm-payment-account-items{display:flex;flex-wrap:wrap;gap:6px}
.pm-portal .pm-payment-account-item{min-width:0;margin:0;padding:6px 9px;border:1px solid #e3e9f1;border-radius:8px;background:#fff;color:#172033;font:inherit;line-height:1.45;text-align:right}
.pm-portal button.pm-payment-account-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:7px;cursor:pointer;appearance:none;-webkit-appearance:none}
.pm-portal .pm-payment-account-item--holder{display:flex;align-items:center;gap:7px}
.pm-portal .pm-payment-account-item span{font-size:10px;color:#758095;white-space:nowrap}
.pm-portal .pm-payment-account-item strong{font-size:12px;font-weight:800;overflow-wrap:anywhere}
.pm-portal button.pm-payment-account-item em{font-style:normal;font-size:9px;font-weight:700;color:#3868a6;background:#edf4ff;border-radius:999px;padding:2px 5px;white-space:nowrap}
.pm-portal button.pm-payment-account-item:hover{border-color:#b8c9df;background:#fbfdff}
.pm-portal button.pm-payment-account-item:focus-visible{outline:2px solid #3778c2;outline-offset:2px}
.pm-portal button.pm-payment-account-item.is-copied{border-color:#9dcdb0;background:#f2fbf5}
.pm-portal button.pm-payment-account-item.is-copied em{color:#176b3a;background:#e4f6ea}
.pm-portal .pm-payment-copy-notice{min-height:0;margin-top:0;font-size:10px;font-weight:700;color:#176b3a}
.pm-portal .pm-payment-copy-notice:not(:empty){margin-top:6px}
@media(max-width:640px){.pm-portal .pm-payment-account-box{padding:9px}.pm-portal .pm-payment-account-box__head{align-items:flex-start}.pm-portal .pm-payment-account-items{display:grid;grid-template-columns:1fr}.pm-portal .pm-payment-account-item{width:100%}.pm-portal button.pm-payment-account-item{min-height:38px}.pm-portal .pm-payment-account-item--holder{min-height:34px}}

/* Supplementary insurance paper-form alignment - v1.8.20 */
.pm-insurance-date-parts{display:grid;grid-template-columns:1fr 1.4fr 1fr;gap:8px}.pm-insurance-fields .pm-form-field--checkbox{display:flex;align-items:flex-end}.pm-insurance-fields .pm-form-field--checkbox label{min-height:42px;display:flex;align-items:center;gap:8px;padding:0 4px}.pm-insurance-fields .pm-form-field--checkbox input{width:auto;min-height:auto}.pm-insurance-table select{box-sizing:border-box;border:1px solid #d5dee9;border-radius:10px;background:#fff;padding:8px;color:#24364b;min-height:42px}.pm-insurance-table{min-width:1450px}@media(max-width:700px){.pm-insurance-date-parts{grid-template-columns:1fr}}
