/* Protected customer-document controls and customer-workspace mobile layout. */
.customer-document-box [hidden]{display:none!important}
@media screen {
body.portal-shell #console #customer-profile-page:has(.customer-photo-header) .profile-page-avatar{display:none}
body.portal-shell #console #customer-profile-page .customer-document-box{min-width:0;box-sizing:border-box}
body.portal-shell #console #customer-profile-page .customer-document-title{display:block;font-size:13px;color:#344765}
body.portal-shell #console #customer-profile-page .customer-document-choose{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:100%;min-height:96px!important;height:auto!important;padding:10px!important;border:1px dashed #a9b8df;border-radius:10px;background:#f7f9ff;color:#524b9b;white-space:normal;cursor:pointer}
body.portal-shell #console #customer-profile-page .customer-document-choose:disabled{opacity:1;cursor:default}
body.portal-shell #console #customer-profile-page .customer-document-choose:focus-visible{outline:3px solid #7566ce;outline-offset:2px}
body.portal-shell #console #customer-profile-page .customer-document-choose img{display:block;max-width:100%;height:76px;object-fit:contain;border-radius:6px}
body.portal-shell #console #customer-profile-page .customer-document-icon{font-size:24px;line-height:1}
body.portal-shell #console #customer-profile-page .customer-document-caption{font-size:12px;line-height:1.35}
body.portal-shell #console #customer-profile-page .customer-document-name{display:block;overflow-wrap:anywhere;font-size:12px;line-height:1.5;color:#344765}
body.portal-shell #console #customer-profile-page .customer-document-help{display:block;font-size:11px;color:#65748d;line-height:1.5}
body.portal-shell #console #customer-profile-page .customer-document-actions{display:flex;flex-wrap:wrap;gap:7px}
body.portal-shell #console #customer-profile-page .customer-document-actions button{min-height:36px!important;height:auto!important;flex:1;white-space:normal;padding:7px!important}
body.portal-shell #console #customer-profile-page .customer-document-download{display:block;font-size:12px;overflow-wrap:anywhere;color:#4e50ad;text-decoration:underline;text-underline-offset:3px}
body.portal-shell #console #customer-profile-page .customer-document-status{margin:0;font-size:11px;line-height:1.5;overflow-wrap:anywhere;color:#475f80}
body.portal-shell #console #customer-profile-page .profile-document-grid>div.customer-document-tile{display:flex;flex-direction:column;gap:8px;padding:12px;align-items:stretch}
body.portal-shell #console #customer-profile-page .customer-photo-header{flex:0 0 100px;width:100px;display:flex;flex-direction:column;gap:6px}
body.portal-shell #console #customer-profile-page .customer-photo-header .customer-document-choose{min-height:100px!important;padding:7px!important;background:#efedff;border-style:solid}
body.portal-shell #console #customer-profile-page .customer-photo-header .customer-document-choose img{width:82px;height:82px;object-fit:cover}
body.portal-shell #console #customer-profile-page .customer-photo-header :is(.customer-document-title,.customer-document-name,.customer-document-help,.customer-document-download){display:none}
body.portal-shell #console #customer-profile-page .customer-photo-header .customer-document-actions button{font-size:11px!important;padding:5px!important;min-width:0}
body.portal-shell #console #customer-profile-page .subscriber-profile-shell>header>div:has(>#subscriber-profile-name){min-width:0;flex:1 1 220px}
body.portal-shell #console #customer-profile-page #subscriber-profile-reference{overflow-wrap:anywhere}
body.portal-shell #console #customer-profile-page .customer-xml-note{grid-column:1/-1;display:grid;gap:6px;font-size:12px;overflow-wrap:anywhere;background:#f7f9ff;border:1px solid #d7dff1;border-radius:9px;padding:12px}
@media(max-width:800px){
 body.portal-shell #console #customer-profile-page .profile-pane{grid-template-columns:minmax(0,1fr)}
 body.portal-shell #console #customer-profile-page .profile-section-tabs{max-width:100%;min-width:0;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
 body.portal-shell #console #customer-profile-page :is(.subscriber-profile-content,.saved-profile-card,.saved-profile-body,.subscriber-detail-card,.subscriber-profile-section,.subscriber-invoice-card){min-width:0;max-width:100%;box-sizing:border-box}
 body.portal-shell #console #customer-profile-page .profile-document-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.portal-shell :is(#subscriber-renew-dialog,#subscriber-edit-dialog){width:100%;max-width:100%;max-height:none;box-sizing:border-box}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form){min-width:0;max-width:100%}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) :is(.renewal-workspace,.renewal-panel,.master-grid,.manual-payment-box,.manual-payment-grid){min-width:0;max-width:100%;box-sizing:border-box}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .renewal-workspace{grid-template-columns:minmax(0,1fr);gap:12px;padding:12px}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .master-grid.two{grid-template-columns:minmax(0,1fr);padding:14px;gap:14px}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .renewal-panel-heading{gap:8px;align-items:start;padding:12px;flex-wrap:wrap}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .renewal-panel-heading>div{min-width:0;align-items:start}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .renewal-panel-heading>div>span{flex-shrink:0}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .renewal-breakdown>div{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:10px;align-items:start}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .renewal-breakdown dd{min-width:0;text-align:right;overflow-wrap:anywhere}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .renewal-rule{margin:0 12px 12px}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .manual-payment-grid{grid-template-columns:minmax(0,1fr);gap:14px}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) :is(input,select,textarea){width:100%;min-width:0;max-width:100%;box-sizing:border-box}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .manual-received{align-items:flex-start;line-height:1.5}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .manual-received input{flex:0 0 18px;width:18px;height:18px;margin-top:2px}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form)>footer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px;position:static}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form)>footer>button{min-width:0;min-height:44px!important;height:auto!important;white-space:normal;padding:10px!important}
 body.portal-shell #console #customer-profile-page .subscriber-invoice-footer>div{display:flex;flex-wrap:wrap;gap:10px;min-width:0}
 body.portal-shell #console #customer-profile-page .pi-payment-form{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;flex:1 1 100%;width:100%;max-width:100%;min-width:0;box-sizing:border-box}
 body.portal-shell #console #customer-profile-page .pi-payment-form :is(input,select,button,.manual-payment-box){width:100%;min-width:0;max-width:100%;box-sizing:border-box}
 body.portal-shell #console #customer-profile-page .pi-payment-form button{min-height:44px!important;height:auto!important;white-space:normal}
 body.portal-shell #console #customer-profile-page .pi-payment-form .manual-received{align-items:start;line-height:1.5}
 body.portal-shell #console #customer-profile-page .pi-payment-form .manual-received input{flex:0 0 18px;width:18px;height:18px;margin-top:2px}
}
@media(max-width:650px){
 body.portal-shell #console #customer-profile-page .subscriber-profile-shell>header{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px;align-items:start}
 body.portal-shell #console #customer-profile-page .profile-page-back{grid-column:1/-1;justify-self:start}
 body.portal-shell #console #customer-profile-page .customer-photo-header{grid-column:1;grid-row:2}
 body.portal-shell #console #customer-profile-page .subscriber-profile-shell>header>div:has(>#subscriber-profile-name){grid-column:2;grid-row:2;align-self:center}
 body.portal-shell #console #customer-profile-page .subscriber-profile-header-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:8px;margin:0}
 body.portal-shell #console #customer-profile-page .subscriber-profile-header-actions button{height:auto!important;min-height:40px!important;white-space:normal;padding:9px 8px!important;min-width:0}
 body.portal-shell #console #customer-profile-page .subscriber-profile-summary{gap:8px}
 body.portal-shell #console #customer-profile-page .subscriber-profile-summary>div{padding:12px;min-width:0}
 body.portal-shell #console #customer-profile-page .subscriber-invoice-toggle{display:grid;grid-template-columns:24px minmax(0,1fr) 18px;gap:8px;align-items:start;white-space:normal;padding:12px;min-width:0;max-width:100%}
 body.portal-shell #console #customer-profile-page .invoice-step-number{grid-column:1;grid-row:1}
 body.portal-shell #console #customer-profile-page .invoice-step-summary{grid-column:2;grid-row:1;min-width:0;overflow-wrap:anywhere}
 body.portal-shell #console #customer-profile-page .invoice-step-chevron{grid-column:3;grid-row:1}
 body.portal-shell #console #customer-profile-page .invoice-step-total{grid-column:2;grid-row:2;overflow-wrap:anywhere}
 body.portal-shell #console #customer-profile-page .subscriber-invoice-toggle>.tag{grid-column:2;grid-row:3;justify-self:start}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .renewal-date-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .renewal-date-strip>div{min-width:0;padding:12px;gap:5px}
 body.portal-shell :is(#subscriber-renew-form,#subscriber-edit-form) .renewal-date-strip b{overflow-wrap:anywhere;line-height:1.5}
}
@media(max-width:420px){
 body.portal-shell #console #customer-profile-page .subscriber-detail-list>div{grid-template-columns:minmax(0,1fr);gap:4px}
 body.portal-shell #console #customer-profile-page .subscriber-detail-list dd{text-align:left}
 body.portal-shell #console #customer-profile-page .profile-document-grid{grid-template-columns:minmax(0,1fr)}
 body.portal-shell #console #customer-profile-page #subscriber-profile-name{font-size:18px;overflow-wrap:anywhere}
}
}
@media print{.customer-photo-header,.customer-document-choose,.customer-document-actions,.customer-document-help,.customer-document-status{display:none!important}}
