.jpm-brand-header{display:flex!important;justify-content:center;align-items:center;background:#fff;padding:10px;min-height:72px;border-bottom:1px solid #dce5ef;text-align:center}.jpm-brand-header img{display:block;max-width:min(240px,80vw);max-height:52px;width:auto;height:52px;object-fit:contain;margin:auto}.jpm-portal-layout,.jpm-ed-dashboard{margin:0;background:#f3f7fb}.jpm-portal-content{max-width:1200px;margin:0 auto;padding:16px;box-sizing:border-box;min-width:0}.jpm-portal-content *, .jpm-ed-container *{box-sizing:border-box}.jpm-portal-content img,.jpm-ed-container img{max-width:100%;height:auto}.jpm-portal-content input:not([type=checkbox]):not([type=radio]),.jpm-portal-content select,.jpm-portal-content textarea,.jpm-ed-container input:not([type=checkbox]):not([type=radio]),.jpm-ed-container select,.jpm-ed-container textarea{max-width:100%;min-width:0;font-size:16px}.jpm-portal-content table,.jpm-ed-container table{max-width:100%}.jpm-portal-content .jpm-table{display:block;overflow-x:auto}.jpm-portal-content .jpm-nav,.jpm-ed-container .jpm-emp-nav{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:640px){.jpm-portal-content,.jpm-ed-container{padding:10px!important;margin:10px auto!important}.jpm-portal-content .jpm-grid,.jpm-portal-content .jpm-admin-grid,.jpm-ed-container .jpm-emp-grid{grid-template-columns:minmax(0,1fr)!important}.jpm-portal-content .jpm-card,.jpm-portal-content .jpm-admin-card,.jpm-ed-container .jpm-emp-card{min-width:0;padding:12px!important;overflow-wrap:anywhere}.jpm-portal-content .jpm-btn,.jpm-portal-content .jpm-admin-link,.jpm-ed-container .jpm-emp-btn,.jpm-ed-container .jpm-emp-nav a{min-height:44px;display:inline-flex;align-items:center;justify-content:center;white-space:normal}.jpm-ed-container .jpm-emp-calendar{grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:2px!important}.jpm-ed-container .jpm-emp-day{min-width:0;padding:3px!important;font-size:10px;overflow-wrap:anywhere}.jpm-ed-container .jpm-emp-head{flex-wrap:wrap}.jpm-portal-content .jpm-admin-box{max-width:100%;margin:12px auto!important}.jpm-portal-content .jpm-admin-head{flex-wrap:wrap}.jpm-portal-content form,.jpm-ed-container form{min-width:0;max-width:100%}.jpm-portal-content table{display:block;overflow-x:auto}.jpm-ed-container .jpm-emp-kv{grid-template-columns:minmax(0,1fr)!important}}

/* Responsive public record management, scoped to the portal. */
.jpm-portal-layout .jpm-wrap{max-width:1150px;margin:20px auto;color:#16304b;line-height:1.5}
.jpm-portal-layout .jpm-wrap .jpm-hero{padding:24px;border-radius:8px;background:#153f73;color:#fff}
.jpm-portal-layout .jpm-hero h2{font-size:clamp(20px,3vw,27px);line-height:1.25;margin:0;color:#fff}
.jpm-portal-layout .jpm-hero p{margin:8px 0 0;font-size:14px;color:#e5effa}
.jpm-portal-layout .jpm-wrap .jpm-nav{gap:8px;margin:16px 0 20px}
.jpm-portal-layout .jpm-nav .jpm-btn{margin:0;font-size:14px;font-weight:600;min-height:42px;display:inline-flex;align-items:center}
.jpm-portal-layout .jpm-wrap .jpm-card{padding:20px;background:white;border:1px dashed #c6d6e7;border-radius:6px;min-width:0}
.jpm-portal-layout .jpm-card .jpm-card{margin:18px 0 24px;background:#f8fafc;border-style:solid}
.jpm-portal-layout .jpm-wrap h3{font-size:20px;line-height:1.35;margin:0 0 12px;word-break:normal}
.jpm-portal-layout .jpm-record-form{display:block;margin:16px 0 0;min-width:0}
.jpm-portal-layout .jpm-record-form label{display:block;font-size:14px;font-weight:600;margin:0 0 5px;color:#254666}
.jpm-portal-layout .jpm-record-form .jpm-field{display:block;width:100%;min-height:44px;padding:10px 12px;margin:0 0 16px;border:1px solid #c5d3e1;border-radius:6px;background:#fff;color:#16304b;font:inherit;font-size:16px;box-shadow:none}
.jpm-portal-layout .jpm-record-form .jpm-field:focus{outline:2px solid #1767b4;outline-offset:1px}
.jpm-portal-layout .jpm-record-form textarea{min-height:130px;resize:vertical}
.jpm-portal-layout .jpm-record-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
.jpm-portal-layout .jpm-record-fields>div{min-width:0}
.jpm-portal-layout .jpm-record-form input[type=file]{padding:10px;border-style:dashed}
.jpm-portal-layout .jpm-wrap .jpm-btn{font-weight:600;line-height:1.35;min-height:40px;padding:10px 14px;border-radius:6px;box-shadow:none}
.jpm-portal-layout .jpm-record-form>button{margin:4px 0 0;background:#1767b4}
.jpm-portal-layout .jpm-wrap .jpm-table{display:table;width:100%;border-collapse:collapse;background:#fff;margin:0;font-size:14px}
.jpm-portal-layout .jpm-table th{background:#eaf1f8;color:#153f73;font-weight:600}
.jpm-portal-layout .jpm-table th,.jpm-portal-layout .jpm-table td{padding:12px;vertical-align:middle;border:0;border-bottom:1px solid #e1e8f0;text-align:left;overflow-wrap:anywhere}
.jpm-portal-layout .jpm-table .jpm-avatar{width:52px!important;height:52px!important;object-fit:cover;border-radius:50%}
.jpm-portal-layout .jpm-table td:last-child .jpm-btn{margin:3px;white-space:nowrap}
.jpm-portal-layout .jpm-wrap .jpm-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.jpm-portal-layout .jpm-wrap .jpm-overview-card{margin:0;min-height:160px;padding:14px;text-decoration:none}
.jpm-portal-layout .jpm-overview-card h3{font-size:clamp(15px,2vw,20px);overflow-wrap:normal}
@media(max-width:850px){.jpm-portal-layout .jpm-wrap .jpm-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:640px){.jpm-portal-layout .jpm-wrap{margin:8px auto}.jpm-portal-layout .jpm-wrap .jpm-hero{padding:18px}.jpm-portal-layout .jpm-record-fields{grid-template-columns:minmax(0,1fr)}.jpm-portal-layout .jpm-record-form>button{width:100%;min-height:44px}.jpm-portal-layout .jpm-wrap .jpm-table{min-width:520px}.jpm-portal-layout .jpm-wrap .jpm-nav .jpm-btn{font-size:13px;min-height:44px;padding:9px 11px}.jpm-portal-layout .jpm-wrap .jpm-overview-card{min-height:150px}.jpm-portal-layout .jpm-overview-card h3{font-size:16px}}

/* Admin-only dashboard redesign */
.jpm-brand-header{position:relative}.jpm-admin-home{position:absolute;right:12px;top:50%;transform:translateY(-50%);width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:1px solid #dbe4ee;border-radius:10px;background:#f3f7fb;color:#173f72;text-decoration:none}.jpm-admin-home:hover{background:#e2edf8}.jpm-admin-home:focus-visible,.jpm-admin-tile:focus-visible{outline:3px solid #126cbb;outline-offset:3px}
.jpm-admin-box.jpm-admin-modern{max-width:1160px;margin:12px auto;padding:8px;color:#19344e}.jpm-admin-modern .jpm-admin-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 28px;border-radius:14px;background:#173f72}.jpm-admin-modern .jpm-admin-head h2{font-size:clamp(22px,3vw,32px);margin:6px 0}.jpm-admin-modern .jpm-admin-head p{margin:0;color:#e1ebf7}.jpm-admin-modern .jpm-admin-head small{letter-spacing:1px;color:#d7e8fa;font-size:11px}.jpm-admin-user img{border-radius:50%;border:2px solid white;width:48px;height:48px}.jpm-admin-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.jpm-admin-shortcuts a{background:#fff;border:1px solid #dbe4ee;padding:10px 14px;border-radius:8px;color:#173f72;text-decoration:none;font-weight:600;font-size:13px}.jpm-admin-modern h2{font-size:21px;margin:22px 0 14px;color:#19344e}.jpm-admin-modern .jpm-admin-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.jpm-admin-tile{display:flex;flex-direction:column;align-items:flex-start;gap:8px;background:white;border:1px solid #dbe4ee;border-radius:12px;padding:18px;text-decoration:none!important;color:#19344e!important;min-width:0}.jpm-admin-tile:hover{border-color:#1767b4;background:#fafdff}.jpm-section-avatar{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;background:#e8f1fc;color:#126cbb}.jpm-admin-tile:nth-child(4n+2) .jpm-section-avatar{background:#e6f4ee;color:#187b54}.jpm-admin-tile:nth-child(4n+3) .jpm-section-avatar{background:#f0eafb;color:#6943a2}.jpm-admin-tile:nth-child(4n+4) .jpm-section-avatar{background:#fff0de;color:#a66015}.jpm-admin-tile strong{font-size:16px}.jpm-tile-desc{font-size:13px;color:#526579;flex:1}.jpm-tile-action{font-size:13px;font-weight:600;color:#126cbb;display:flex;justify-content:space-between;width:100%;border-top:1px solid #e5ebf2;padding-top:12px;margin-top:6px}.jpm-admin-modern .jpm-admin-card{border:1px solid #dbe4ee;border-radius:12px;padding:22px;margin:20px 0}.jpm-admin-modern details{border:1px solid #dbe4ee;border-radius:8px;overflow:hidden;background:#f7faff}.jpm-admin-modern details summary{cursor:pointer;padding:14px 16px;color:#173f72;font-weight:600}.jpm-admin-modern details form{padding:16px;background:white;border-top:1px solid #dbe4ee}.jpm-admin-modern select,.jpm-admin-modern textarea{border:1px solid #b9c9d9;border-radius:6px;padding:10px;background:white;max-width:100%}.jpm-admin-modern #jpm-hr,.jpm-admin-modern #jpm-records,.jpm-admin-modern #jpm-admin-profile{scroll-margin-top:20px}.jpm-admin-modern table{display:block;overflow-x:auto;max-width:100%}
@media(max-width:900px){.jpm-admin-modern .jpm-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.jpm-portal-content .jpm-admin-modern .jpm-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}.jpm-admin-tile{padding:12px}.jpm-admin-tile strong{font-size:14px}.jpm-tile-desc{font-size:12px}.jpm-admin-modern .jpm-admin-head{padding:16px}.jpm-admin-home{right:8px}.jpm-brand-header img{max-width:calc(100vw - 125px)}}
