.mpg-payslip-open { overflow: hidden; }
.mpg-payslip-overlay[hidden], .mpg-payslip-overlay:not([open]) { display: none !important; }
.mpg-payslip-overlay { position: fixed; inset: 0; width:100%; height:100%; max-width:none; max-height:none; box-sizing:border-box; margin:0; border:0; background: rgba(9,20,42,.72); display:flex; justify-content:center; align-items:center; padding:20px; }
.mpg-payslip-overlay::backdrop { background:transparent; }
.mpg-payslip-dialog { box-sizing:border-box; display:flex; flex-direction:column; width:min(95vw,960px); max-height:95vh; min-height:230px; background:#fff; border-radius:8px; box-shadow:0 20px 65px rgba(0,0,0,.35); color:#18233c; overflow:hidden; }
.mpg-payslip-head { display:flex; justify-content:space-between; align-items:center; padding:14px 20px; border-bottom:1px solid #e1e5ed; }
.mpg-payslip-head h2 {font:700 21px Georgia,serif; margin:0;}
.mpg-payslip-close { font-size:25px; color:#15203a; border:0; background:transparent; cursor:pointer; padding:4px 10px; }
.mpg-payslip-info {font-size:13px; margin:0; padding:11px 20px; color:#34435c; overflow-wrap:anywhere;}
.mpg-payslip-content {flex:1; min-height:130px; overflow:auto; padding:0 18px 12px; display:flex; align-items:center; justify-content:center;}
.mpg-payslip-frame {width:100%; height:65vh; min-height:340px; border:1px solid #dce1e9; background:white;}
.mpg-payslip-image {max-width:100%;max-height:65vh;object-fit:contain;}
.mpg-payslip-actions {border-top:1px solid #e1e5ed; display:flex;justify-content:flex-end;gap:10px; padding:13px 20px;}
.mpg-payslip-actions a,.mpg-payslip-actions button {box-sizing:border-box; display:inline-flex;align-items:center;justify-content:center; padding:9px 18px;border:1px solid #1e2946;border-radius:3px;background:#1e2946;color:#fff;text-decoration:none;cursor:pointer;font-size:14px;}
.mpg-payslip-actions a[hidden] {display:none;}
.payment-month-view[data-payslip-payment-id] {background:transparent;border:0; padding:0; color:inherit; text-decoration:underline;cursor:pointer;font:inherit;}
.payment-month-view[data-payslip-payment-id]:focus-visible {outline:2px solid #a8741a;outline-offset:3px;}
@media (max-width:650px){.mpg-payslip-overlay{padding:7px;}.mpg-payslip-frame{min-height:320px;height:63vh;}.mpg-payslip-head h2{font-size:18px;}} .mpg-dm-history { margin: 18px 0 0; padding: 14px 16px; border: 1px solid rgba(128,140,160,.35); border-radius: 8px; color: inherit; }
.mpg-dm-history-title { margin: 0 0 2px; font-size: 15px; font-weight: 700; color: inherit; }
.mpg-dm-history-note { margin: 0 0 10px; font-size: 12px; opacity: .75; }
.mpg-dm-history-list { list-style: none; margin: 0; padding: 0; }
.mpg-dm-history-item { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(128,140,160,.22); }
.mpg-dm-history-item:first-child { border-top: 0; }
.mpg-dm-history-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.mpg-dm-history-meta { font-size: 12px; opacity: .75; white-space: nowrap; }
.mpg-dm-history-view { flex: 0 0 auto; background: transparent; border: 1px solid currentColor; border-radius: 4px; padding: 5px 12px; color: inherit; font: inherit; font-size: 12px; cursor: pointer; }
.mpg-dm-history-view:focus-visible { outline: 2px solid #a8741a; outline-offset: 2px; }
@media (max-width: 560px) { .mpg-dm-history-item { flex-wrap: wrap; } .mpg-dm-history-meta { white-space: normal; } }