*{box-sizing:border-box}body{margin:0;background:#f3f6fa;color:#172637;font:16px system-ui}body>header{display:none!important}body>main,main{max-width:1120px;margin:auto;padding:24px;min-width:0}#pimmChrome{background:#153147;color:white;padding:18px 24px}#pimmChrome .brand-row{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap}#pimmChrome .identity{overflow-wrap:anywhere}#pimmChrome nav{display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;gap:6px;margin:16px 0 0;padding-bottom:8px}#pimmChrome a{display:block;color:white;text-decoration:none;padding:11px 14px;border-radius:7px;white-space:nowrap;flex-shrink:0}#pimmChrome a[aria-current=page]{background:#2d657c;box-shadow:inset 0 -3px #65ded4}#pimmChrome button{font:inherit;border:1px solid #a6c3cf;color:white;background:transparent;border-radius:7px;padding:10px 14px;cursor:pointer}#pimmChrome a:focus-visible,button:focus-visible{outline:3px solid #ddaa55;outline-offset:2px}.home-card,.module-cards a{background:white;border:1px solid #d3dfe8;border-radius:12px;padding:24px}.home-card{max-width:460px;margin:36px auto}.home-card form,.home-card label{display:grid;gap:8px}.home-card form{gap:18px}input{font:inherit;padding:11px;border:1px solid #8095a6;border-radius:6px;min-width:0}.home-card button{font:inherit;padding:12px;background:#176575;color:white;border:0;border-radius:6px;cursor:pointer}.module-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px;margin-top:28px}.module-cards a{display:block;text-decoration:none;color:#153147;font-weight:650}.module-cards a:hover{border-color:#176575}.eyebrow{color:#557184;text-transform:uppercase;letter-spacing:.08em;font-size:13px}#entryError,#pimmError{color:#9b2424}#login,#logout{display:none!important}[hidden]{display:none!important}@media(max-width:600px){#pimmChrome{padding:14px 12px}body>main,main{padding:16px}.home-card{margin:16px auto}.module-cards{grid-template-columns:1fr}#pimmChrome nav{max-width:100%}}
/* Compact shared enterprise shell; module business layouts retain their own controls. */
body{font-size:14px}#pimmChrome{padding:10px 16px}#pimmChrome .brand-row{gap:10px;min-height:32px}#pimmChrome .brand-row strong{font-size:15px;letter-spacing:.025em}#pimmChrome .identity{font-size:13px;margin-left:auto}#pimmChrome .chrome-controls{display:flex;align-items:center;gap:10px}#pimmChrome .language-label{display:flex;align-items:center;gap:6px;font-size:12px;margin:0}#pimmChrome select{font:inherit;color:#172637;background:white;border:1px solid #c1d0dc;padding:5px;border-radius:4px;width:auto;margin:0}#pimmChrome button{padding:6px 10px;font-size:13px}#pimmChrome nav{margin:8px 0 0;padding-bottom:5px;gap:3px;scrollbar-width:thin}#pimmChrome .module-link{display:flex;flex-direction:column;justify-content:center;flex-shrink:0;padding:6px 9px;text-decoration:none;color:white;white-space:nowrap;font-size:13px;border-radius:4px;line-height:1.25}#pimmChrome .module-link[aria-disabled=true]{color:#becbd4;cursor:not-allowed}.module-status{display:block;font-size:10px;letter-spacing:.015em;opacity:.85}.module-card{color:#153147;background:white;border:1px solid #cbd7e0;border-radius:6px;padding:14px;text-decoration:none}.module-card[aria-disabled=true]{background:#edf1f4;color:#607181}.module-card>span{font-weight:650}.module-card .module-status{margin-top:6px;font-size:11px}.module-detail{font-weight:400;font-size:12px;line-height:1.45;margin:8px 0 0;color:#526778}.module-cards{gap:10px;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));margin-top:18px}main h1{font-size:24px;margin:0 0 10px}.translation-note{font-size:11px;color:#e4d9b8;margin:7px 0 0}.table-tools{display:flex;gap:16px;align-items:flex-end;flex-wrap:wrap;margin:16px 0}.table-tools label{display:grid;gap:5px}.table-tools input,.table-tools select{font:inherit;padding:7px;border:1px solid #99afbd;border-radius:4px;max-width:100%}.enterprise-table{overflow:auto;background:white;border:1px solid #cbd7e0}.enterprise-table table{border-collapse:collapse;width:100%;font-size:13px}.enterprise-table td,.enterprise-table th{text-align:left;padding:8px 10px;border-bottom:1px solid #dbe4ea}.enterprise-table th{background:#e7eef3}.enterprise-table td:first-child{font-size:11px;overflow-wrap:anywhere}.table-pagination{display:flex;align-items:center;gap:12px;margin-top:12px}.table-pagination button,.enterprise-table button,#employeeRecord button{font:inherit;padding:6px 10px;border:1px solid #9bb0be;border-radius:4px;background:#e6edf2;color:#17364b;cursor:pointer}.table-pagination button:disabled{opacity:.45}#employeeRecord{max-width:calc(100vw - 24px);border:1px solid #829ba9;border-radius:6px}#employeeRecord pre{white-space:pre-wrap;overflow-wrap:anywhere}.scope-note{font-size:12px;color:#536d7b}@media(max-width:600px){#pimmChrome{padding:8px 10px}#pimmChrome .brand-row{align-items:center}#pimmChrome .identity{order:3;flex-basis:100%;margin:0}#pimmChrome .chrome-controls{margin-left:auto}.language-label{font-size:0!important}#pimmChrome .module-link{font-size:12px;padding:7px 9px}.module-cards{grid-template-columns:1fr}body>main,main{padding:14px}.table-tools{align-items:stretch}.table-tools label{max-width:100%}.table-tools input{width:100%}}

#pimmChrome select{font-size:12px;min-height:30px;min-width:48px}

.user-card{display:flex!important;align-items:center;gap:6px;font-size:12px!important;padding:4px!important}.user-card img{width:28px;height:28px;border-radius:50%;object-fit:cover}.profile-photo{width:96px;height:96px;object-fit:cover;border-radius:12px}#sharedVisit{width:min(740px,calc(100vw - 24px));max-height:88vh;border:1px solid #99afbd;border-radius:8px;padding:18px;color:#172637;font:14px system-ui}#sharedVisit::backdrop{background:#172b4d66}#sharedVisit .field{display:flex;flex-direction:column;gap:5px;margin:10px 0}#sharedVisit input:not([type=checkbox]),#sharedVisit select{font:inherit;padding:7px;border:1px solid #99afbd;border-radius:4px;max-width:100%}#sharedVisitProducts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:200px;overflow:auto}.visit-product{display:flex;align-items:center;gap:6px}#sharedVisit button{font:inherit;padding:6px 10px;margin:4px;border:1px solid #9bb0be;border-radius:4px;background:#e6edf2;color:#17364b}#sharedVisitError{color:#9e2433}.personal-metrics{padding:12px;background:#f3f6fa;border:1px solid #cbd7e0}.personal-metrics input{max-width:100%}@media(max-width:600px){#sharedVisitProducts{grid-template-columns:1fr}.user-card{font-size:11px!important}#record .field input{max-width:100%}}
#sharedVisit input[type=checkbox]{width:auto!important;align-self:flex-start;flex:0 0 auto}#sharedVisit .form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#sharedVisit .combo-controls{display:flex}#sharedVisit select{width:100%}#sharedVisit label{min-width:0}#sharedVisit .combo{max-width:100%}.avatar-placeholder{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#2d657c;color:white}@media(max-width:600px){#sharedVisit .form-grid{grid-template-columns:1fr}}
/* One opt-in filter layout. Entry forms, profile cards and unmarked controls are excluded. */
.pimm-filter-panel{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));align-items:start;gap:12px;margin:12px 0;min-width:0;max-width:100%}
.pimm-filter-panel>label,.pimm-filter-panel #masterFilters>label{display:grid!important;grid-template-rows:minmax(2.5em,auto) auto;align-content:start;gap:6px;margin:0!important;min-width:0;max-width:none!important;width:auto!important;overflow-wrap:anywhere}
.pimm-filter-panel .combo{display:flex;flex-direction:column;gap:6px;min-width:0;width:100%;max-width:100%}
.pimm-filter-panel input:not([type=checkbox]),.pimm-filter-panel select{width:100%;min-width:0;max-width:100%;min-height:44px;box-sizing:border-box;margin:0;font:inherit;padding:8px;border:1px solid #99afbd;border-radius:5px}
.pimm-filter-panel input[type=checkbox]{width:24px;height:24px;min-width:24px;align-self:start;margin:10px}
.pimm-filter-panel .combo-controls{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.pimm-filter-panel button,.pimm-filter-panel .combo-controls button{font:inherit!important;min-height:44px;padding:8px 10px!important;margin:0;white-space:normal;overflow-wrap:anywhere;max-width:100%}
.pimm-filter-panel .combo-controls button{flex:1 1 70px;min-width:0}
.pimm-filter-panel>.pimm-filter-advanced{grid-column:1/-1;display:block;min-width:0;max-width:100%;margin:0}
.pimm-filter-advanced>summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:600}
.pimm-filter-advanced:not([open])>.pimm-filter-panel{display:none!important}
.pimm-filter-panel>h2,.pimm-filter-panel>small{grid-column:1/-1}
@media(max-width:480px){.pimm-filter-panel{grid-template-columns:minmax(0,1fr)}}

.pimm-suggestions{list-style:none;margin:0;padding:4px;border:1px solid #7894a5;border-radius:6px;background:white;color:#172637;max-height:250px;overflow:auto;box-shadow:0 3px 10px #17364b22}.pimm-suggestions li{margin:0}.pimm-suggestions button{display:block;width:100%;text-align:left;border:0!important;background:white!important;color:#172637;min-height:44px}.pimm-suggestions button[aria-selected=true],.pimm-suggestions button:hover{background:#d9eef3!important}.combo>small{min-height:1em}.pimm-dialog{position:relative;width:min(900px,calc(100vw - 24px));max-height:88vh;overflow:auto;border:1px solid #8aa1b1;border-radius:10px;padding:18px;color:#172637;font:14px system-ui}.pimm-dialog>h2{padding-right:52px}.pimm-dialog-close{position:sticky!important;top:0;float:right;z-index:5;width:44px;min-width:44px;height:44px;border-radius:50%!important;border:1px solid #7894a5;background:white!important;color:#17364b!important;font:26px system-ui!important;padding:0!important;margin:0 0 4px 8px!important}.pimm-dialog-close:focus-visible{outline:3px solid #c46b00}.doctor-profile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px}.doctor-profile-grid section{min-width:0;padding:12px;border:1px solid #dbe3ec;border-radius:8px}.doctor-profile-grid dl{display:grid;grid-template-columns:minmax(90px,1fr) minmax(0,2fr);gap:8px}.doctor-profile-grid dt{font-weight:600}.doctor-profile-grid dd{margin:0;overflow-wrap:anywhere}.doctor-profile-grid textarea{width:100%;min-height:100px}.pimm-dialog .pimm-filter-panel{max-width:100%}.passenger-choices{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0}.passenger-choices li{border:1px solid #9bb0be;border-radius:12px;padding:6px}.passenger-choices button{min-width:44px;min-height:44px}

#adminHost{min-width:0}#adminHost .enterprise-table{max-width:100%;margin-top:14px}#adminHost button{min-height:44px;max-width:100%;white-space:normal;margin:4px}#adminHost td{overflow-wrap:anywhere}.pimm-dialog form{display:grid;gap:12px}.pimm-dialog form>label{display:grid;gap:6px;min-width:0}.pimm-dialog form input,.pimm-dialog form select{max-width:100%;min-width:0}

.profile-business-text{white-space:pre-wrap;overflow-wrap:anywhere}

.doctor-card-header{display:flow-root}.doctor-card-header>.profile-photo{float:left;margin:0 14px 10px 0}.doctor-profile-grid>details{padding:12px;border:1px solid #dbe3ec;border-radius:8px;align-self:start}.doctor-profile-grid summary{cursor:pointer;min-height:44px;font-weight:600}.pimm-dialog section>details>summary{min-height:44px;cursor:pointer}

/* Doctor weekly schedule: conditional rows have no phantom table cells. */
.doctor-weekly{min-width:0}.doctor-weekly-row{display:grid;grid-template-columns:minmax(110px,1fr) minmax(0,4fr);gap:12px;align-items:center;border-bottom:1px solid #dbe3ec;padding:10px 0}.doctor-weekly-times{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.doctor-weekly-cell{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere}.doctor-weekly-cell small{font-weight:600}.doctor-weekly-editor-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) minmax(80px,1fr);gap:10px;min-width:0;border:1px solid #dbe3ec;border-radius:8px;padding:10px}.doctor-weekly-editor-row legend{font-weight:600;padding:0 4px}.doctor-weekly-control{display:grid;grid-template-rows:1fr auto;gap:6px;min-width:0;margin:0}.doctor-weekly-control>span{overflow-wrap:anywhere}.doctor-weekly-control input{width:100%;min-width:0;box-sizing:border-box;min-height:44px}.doctor-weekly-control input[type=checkbox]{width:24px;height:44px;justify-self:start}.doctor-weekly-control input:disabled{background:#e9edf0;color:#67737c}.doctor-weekly-editor-row :focus-visible{outline:3px solid #c46b00}
@media(max-width:600px){.doctor-weekly-row{grid-template-columns:minmax(0,1fr);gap:6px}.doctor-weekly-times{grid-template-columns:repeat(2,minmax(0,1fr))}.doctor-weekly-editor-row{grid-template-columns:repeat(2,minmax(0,1fr))}.doctor-weekly-control:last-child{grid-column:1/-1}}

.doctor-weekly-row,.doctor-weekly-editor-row{scroll-margin-top:64px}

.doctor-card-header{display:grid;grid-template-columns:minmax(0,1fr) 100px;column-gap:16px;clear:both;align-items:start}.doctor-card-header>h2,.doctor-card-header>p{grid-column:1;margin:6px 0;overflow-wrap:anywhere}.doctor-card-header>.profile-photo-frame{grid-column:2;grid-row:1/4}.profile-photo-frame{display:grid;place-items:center;width:100px;min-height:100px;padding:4px!important;border:1px solid #8aa1b1;border-radius:8px;background:#edf3f6!important;color:#17364b!important;cursor:pointer}.profile-photo-frame .profile-photo{float:none;margin:0;width:90px;height:90px;object-fit:contain}.profile-photo-preview{display:block;max-width:100%;max-height:65vh;object-fit:contain}.profile-photo-frame:focus-visible{outline:3px solid #c46b00}.profile-comments article{padding:10px 0;border-bottom:1px solid #dbe3ec}.profile-comments article p{white-space:pre-wrap;overflow-wrap:anywhere}.profile-comments textarea{width:100%;min-height:80px}@media(max-width:480px){.doctor-card-header{grid-template-columns:minmax(0,1fr) 76px;gap:10px}.profile-photo-frame{width:76px;min-height:76px}.profile-photo-frame .profile-photo{width:66px;height:66px}}

#submissionApp{min-width:0}#submissionApp section{min-width:0}#submissionApp button{font:inherit;padding:10px 14px;min-height:44px;border:1px solid #8aa1b1;border-radius:6px;background:#edf4f7;color:#17364b;cursor:pointer;margin:4px}#submissionApp button:disabled{opacity:.55;cursor:default}#submissionApp .submission-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}#submissionApp [role=tab][aria-selected=true]{background:#176575;color:white}#submissionApp .wizard-stage{padding:16px;background:white;border:1px solid #dbe3ec;border-radius:8px}#submissionApp .submission-field{display:grid;gap:6px;min-width:0;margin:10px 0}#submissionApp .submission-field>span{font-weight:600}#submissionApp .submission-product-picker{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}#submissionApp .submission-draft-line{display:flex;flex-wrap:wrap;align-items:center;gap:12px;border-bottom:1px solid #dbe3ec;padding:10px 0}#submissionApp .submission-actions{display:flex;justify-content:space-between;gap:12px;margin-top:20px}#submissionApp article{background:white;border:1px solid #dbe3ec;border-radius:8px;padding:14px;margin:12px 0;overflow-wrap:anywhere}.submission-description{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,3fr);gap:10px}.submission-description dd{margin:0;overflow-wrap:anywhere}.submission-description dt{font-weight:600}#submissionApp .submission-exclusions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}#submissionApp .submission-exclusions .submission-field{display:flex;align-items:center;gap:8px;margin:0;min-height:44px}#submissionApp .submission-exclusions input{width:24px;height:24px;min-height:24px}#submissionApp nav[aria-label]{display:flex;flex-wrap:wrap;align-items:center;gap:8px}#submissionApp .combo{min-width:0}#submissionApp .combo select,#submissionApp .combo input{width:100%}#submissionMessage{overflow-wrap:anywhere;white-space:pre-wrap}@media(max-width:600px){#submissionApp .submission-product-picker{grid-template-columns:minmax(0,1fr)}.submission-description{grid-template-columns:minmax(0,1fr)}#submissionApp .wizard-stage{padding:12px}}

.doctor-profile-grid dt{min-width:0;overflow-wrap:anywhere}

.submission-attribution-badge{display:inline-block;font-weight:600;border:1px solid #8aa1b1;border-radius:6px;padding:6px 8px;margin:6px 8px 6px 0;background:#edf4f7;color:#17364b;overflow-wrap:anywhere}#submissionAttribution{width:100%;max-width:560px;min-height:44px}#submissionAttributionHelp{color:#52667a;overflow-wrap:anywhere}

.doctor-photo-editor{grid-column:2;grid-row:1 / span 2;display:flex;flex-wrap:wrap;gap:.35rem;max-width:150px;align-self:start}.doctor-photo-editor .profile-photo-frame{width:100px;height:100px}.doctor-photo-editor p{overflow-wrap:anywhere;margin:.25rem 0}.combo-selected-value{font-weight:600;overflow-wrap:anywhere;margin:.35rem 0}.profile-comments article[data-hidden="true"]{border-left:3px solid #687a87;padding-left:.7rem}.profile-comments label{display:flex;align-items:center;gap:.5rem}#doctorPersonalEditor{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:1rem}#doctorPersonalEditor label{display:flex;flex-direction:column;gap:.35rem}@media(max-width:600px){.doctor-photo-editor{max-width:110px}.doctor-photo-editor .profile-photo-frame{width:76px;height:76px}}

.register-table-scroll{max-width:100%;overflow:auto}.register-table-scroll td{vertical-align:top;white-space:pre-line;min-width:7rem}.notification-card{padding:1rem;border:1px solid #bfd0db;border-radius:.5rem;margin:.7rem 0;overflow-wrap:anywhere}.doctor-photo-editor button{min-height:44px}

.profile-comments article{display:flex;flex-direction:column;align-items:flex-start;gap:.4rem;overflow-wrap:anywhere}.profile-comments article button{max-width:100%;white-space:normal}.profile-comments article small{display:block;max-width:100%}

.doctor-card-header:has(.doctor-photo-editor){grid-template-columns:minmax(0,1fr) 150px}.doctor-photo-editor{width:100%}.doctor-photo-editor button{max-width:100%;white-space:normal;overflow-wrap:anywhere}@media(max-width:600px){.doctor-card-header:has(.doctor-photo-editor){grid-template-columns:minmax(0,1fr) 110px}}

.notification-module{display:inline-flex;min-height:44px;align-items:center;margin:8px;padding:14px;border:1px solid #b9cbd4;border-radius:8px;text-decoration:none;gap:8px}.export-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0}.export-toolbar button{min-height:44px}

.notification-module .notification-severity-red,.notification-module .notification-severity-orange{display:inline-block;margin-inline-start:.5rem;padding:.15rem .4rem;border-radius:.3rem;font-size:.85em;white-space:normal}.notification-module .notification-severity-red{color:#991b1b;background:#fee2e2}.notification-module .notification-severity-orange{color:#854d0e;background:#fef3c7}

#notificationRoot{min-width:0;max-width:100%}#notificationRoot .notification-module{max-width:100%;min-width:0;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;flex-wrap:wrap}#notificationRoot>section{min-width:0;max-width:100%}

/* Shared compact business tables and same-screen product selection. */
.register-table-scroll{max-width:100%;overflow:auto;overscroll-behavior-inline:contain}.register-table-scroll table{border-collapse:collapse;width:max-content;min-width:100%;font-size:.875rem}.register-table-scroll th,.register-table-scroll td{padding:.45rem .6rem;text-align:left;vertical-align:top;border-bottom:1px solid #d3dfe8;max-width:22rem;white-space:pre-line}.register-table-scroll th{position:sticky;top:0;background:#edf3f7}.pimm-product-picker{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.6rem;align-items:start}.pimm-product-picker>ul{grid-column:1/-1;padding-left:1.2rem}.pimm-product-picker li{display:flex;gap:.6rem;justify-content:space-between;margin:.4rem 0}.pimm-visit-form{min-width:0}.pimm-visit-form fieldset{min-width:0}.combo input:disabled,.combo select:disabled{background:#edf0f3}.combo-controls{display:none}

/* Reusable compact checkbox groups within shared filter panels. */
.pimm-filter-panel>.pimm-filter-choices{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;grid-column:1/-1}.pimm-filter-choices>label{display:inline-flex!important;align-items:center;gap:.5rem;margin:0!important;min-height:44px}.pimm-filter-choices>label input{width:24px!important;height:24px!important;min-height:24px!important}.pimm-filter-choices>button{width:auto;justify-self:start}#mySubmissionsTable button,#approvedReceiptTable button{min-height:32px;padding:4px 8px;margin:0}@media(max-width:600px){#mySubmissionsTable button,#approvedReceiptTable button{min-height:44px}}

.profile-header,.doctor-card-header.profile-header{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:16px;align-items:start}.profile-header>.profile-identity{grid-column:1;grid-row:1;min-width:0}.profile-identity h2,.profile-identity h3,.profile-identity p{margin:6px 0;overflow-wrap:anywhere}.profile-header>.doctor-photo-editor{grid-column:2;grid-row:1}.export-toolbar>summary{cursor:pointer;font-weight:600;min-height:44px;display:flex;align-items:center}.export-toolbar[open]>button{margin:0 .5rem .5rem 0}@media(max-width:600px){.profile-header,.doctor-card-header.profile-header{grid-template-columns:minmax(0,1fr) 110px;gap:10px}}

/* Focused daily approved receipt register. Toolbar is outside the bounded table scroll. */
#approvedRegister .register-export-host{position:sticky;top:0;z-index:8;background:#f3f6fa;padding:6px 0}
#approvedRegister .export-toolbar-visible{margin:0;display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #8ca9bb;border-radius:8px;background:#fff;box-shadow:0 2px 5px #15314715}
#approvedRegister .export-toolbar-visible button{font:inherit;min-height:44px;padding:9px 18px;border-radius:5px;border:1px solid #176575;background:#176575;color:white;font-weight:600;cursor:pointer}
#approvedRegister .export-toolbar-visible button[data-export-format=pdf]{background:white;color:#176575}
#approvedRegister .export-toolbar-visible button:disabled{opacity:.55;cursor:wait}
#approvedRegister .export-toolbar-visible strong:nth-of-type(2){margin-left:auto}
#approvedRegister .export-toolbar-visible [role=status]{flex-basis:100%;font-size:13px}
#approvedRegister .export-toolbar-visible [role=status]:empty{display:none}
#approvedRegister .register-table-scroll{max-height:min(65vh,calc(100dvh - 240px));border:1px solid #bfd0db;background:white;scrollbar-gutter:stable;overscroll-behavior:contain}
#approvedReceiptTable{width:max-content;min-width:100%;table-layout:auto}
#approvedReceiptTable tr,#approvedReceiptTable td{height:auto;min-height:0}
#approvedReceiptTable td,#approvedReceiptTable th{padding:6px 9px;white-space:normal;line-height:1.35;font-size:13px;min-width:0;vertical-align:top}
#approvedReceiptTable th{top:0;z-index:2;box-shadow:0 1px #bfd0db;background:#e7eef3}
#mySubmissions .register-export-host{position:sticky;top:0;z-index:8;background:#f3f6fa;padding:6px 0}
#mySubmissions .export-toolbar-visible{margin:0;display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #8ca9bb;border-radius:8px;background:#fff}
#mySubmissions .export-toolbar-visible button{font:inherit;min-height:44px;padding:9px 18px;border-radius:5px;border:1px solid #176575;background:#176575;color:white;font-weight:600}
.receipt-matrix-scroll{max-height:min(65vh,calc(100dvh - 240px));border:1px solid #bfd0db;background:white;overflow:auto;scrollbar-gutter:stable}
table.receipt-matrix td,table.receipt-matrix th{padding:6px 9px;white-space:normal;line-height:1.35;font-size:13px;min-width:0;vertical-align:top;height:auto}
table.receipt-matrix th{position:sticky;top:0;z-index:2;background:#e7eef3}
table.receipt-matrix [data-column=receipt_date]{min-width:105px;white-space:nowrap}
table.receipt-matrix [data-column=doctor_code]{min-width:100px;white-space:nowrap}
table.receipt-matrix [data-column=doctor_name]{min-width:230px;max-width:270px}
table.receipt-matrix [data-column=city],table.receipt-matrix [data-column=region],table.receipt-matrix [data-column=object]{min-width:105px;max-width:160px}
table.receipt-matrix [data-column^=product_]{min-width:115px;max-width:140px;overflow-wrap:anywhere}
table.receipt-matrix td[data-column^=product_],table.receipt-matrix td[data-column=total_quantity]{text-align:right;white-space:nowrap}
table.receipt-matrix [data-column=receipt_id],table.receipt-matrix [data-column=reference]{min-width:285px;white-space:nowrap;font-size:12px}

.monitor-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px;align-items:start}.monitor-employee{border:1px solid #b6c9bf;border-radius:12px;padding:16px;min-width:0;background:white}.monitor-employee section{border-top:1px solid #dbe4df;padding:12px 0;overflow-wrap:anywhere}.monitor-employee summary{cursor:pointer;color:#17694f;font-weight:600}#monitorPanel{max-width:none}body:has(#monitorPanel:not([hidden])) main{max-width:1800px}

.platform-company-banner{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.7rem 1.5rem;background:#fff2cd;color:#503a00;border-bottom:2px solid #b67d00}#pimmChrome .platform-company-banner button{background:#fff;color:#503a00;border:1px solid #8b6500;padding:.5rem .8rem}

/* Explicit report-control visibility must win over filter-grid layout. */
.pimm-filter-panel label[hidden]{display:none!important}

/* Shared compact table filters: original controls, stable semantic column IDs. */
.pimm-compact-toolbar{display:flex!important;flex-wrap:wrap;align-items:flex-start;gap:8px;margin:8px 0;padding:8px;background:#f5f8fb;border:1px solid #d3dfe8;border-radius:6px}
.pimm-compact-toolbar .pimm-filter-panel,.pimm-compact-toolbar #masterFilters,.pimm-compact-expanded{display:contents!important}
.pimm-compact-expanded>summary{display:none!important}
.pimm-compact-toolbar>label{display:flex!important;flex-direction:column;gap:3px;flex:0 1 190px;grid-template-rows:none!important;min-width:0}
.pimm-compact-toolbar label[hidden],.pimm-column-filters label[hidden]{display:none!important}
.pimm-compact-toolbar input:not([type=checkbox]),.pimm-compact-toolbar select,.pimm-column-filters input:not([type=checkbox]),.pimm-column-filters select{box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:32px;height:auto;padding:4px 6px;font:inherit;font-weight:400;border:1px solid #99afbd;border-radius:4px}
.pimm-compact-toolbar button{min-height:32px;padding:5px 9px!important}
.pimm-compact-toolbar input[type=checkbox],.pimm-column-filters input[type=checkbox]{width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;margin:3px}
.pimm-compact-scroll{overflow:auto;max-width:100%;max-height:72vh;position:relative}
.pimm-compact-table{border-collapse:separate!important;border-spacing:0}
.pimm-compact-table thead.pimm-compact-head{position:sticky;top:0;z-index:5;background:#edf3f8}
.pimm-compact-table thead.pimm-compact-head th{position:static!important;background:#edf3f8}
.pimm-column-filters td{vertical-align:top!important;padding:4px!important;background:#edf3f8!important;white-space:normal!important;font-weight:400!important}
.pimm-column-control{display:flex!important;flex-direction:column;gap:3px;margin:0!important;min-width:0;max-width:100%;font-size:12px;white-space:normal!important;overflow-wrap:anywhere}
.pimm-column-control .combo{display:flex;flex-direction:column;gap:3px;min-width:0;width:100%}
.pimm-column-control>span:first-child{font-size:11px;color:#425970}
.pimm-column-control .combo-selected-value{margin:0;font-size:11px;overflow-wrap:anywhere}
.pimm-column-control small:empty{display:none}
.pimm-column-filters td{min-width:0!important;max-width:190px}
.pimm-suggestions[popover]{border:1px solid #7894a5;box-shadow:0 5px 18px #17364b44;z-index:10000;overflow:auto}
.pimm-suggestions[popover] button{white-space:normal;overflow-wrap:anywhere;font-size:14px;line-height:1.3;min-height:36px}
@media(max-width:600px){.pimm-compact-toolbar>label{flex:1 1 145px}.pimm-compact-scroll{max-height:68vh}.pimm-column-control{font-size:12px}}

.pimm-compact-toolbar .combo{gap:3px}.pimm-compact-toolbar .combo-selected-value{margin:0;font-size:11px;font-weight:400}.pimm-compact-toolbar small:empty{display:none}

.pimm-compact-toolbar label:has(>.combo[hidden]),.pimm-column-control:has(>.combo[hidden]){display:none!important}

.pimm-doctor-selection,.pimm-doctor-selection-stage{width:100%;min-width:0;grid-column:1/-1}.pimm-doctor-table-scroll{width:100%;overflow:auto;max-height:68vh}.pimm-doctor-selection-table{width:100%;min-width:950px;border-collapse:separate;border-spacing:0}.pimm-doctor-selection-table th{position:sticky;top:0;background:#edf5f5;z-index:2}.pimm-doctor-selection-table .pimm-column-filters td{vertical-align:top;background:#f7fbfb}.pimm-doctor-selection-table td,.pimm-doctor-selection-table th{padding:7px 10px;max-width:280px;overflow-wrap:anywhere}.pimm-doctor-selection-table tbody tr{cursor:pointer}.pimm-doctor-selection-table tbody tr:hover,.pimm-doctor-selection-table tbody tr[aria-selected=true]{background:#def0e8}.pimm-doctor-table-tools{display:flex;gap:12px;align-items:center;margin:8px 0}.pimm-check-filter{min-width:110px;max-width:240px}.pimm-check-filter>div{max-height:220px;overflow:auto}.pimm-check-filter label{display:flex;align-items:center;gap:6px;font-weight:normal}.pimm-check-filter input[type=checkbox]{width:20px;height:20px}.pimm-check-filter input[type=search]{width:100%;min-width:0}.pimm-check-filter[aria-disabled=true]{opacity:.6}.pimm-doctor-table-control{grid-column:1/-1;min-width:0}

@media(max-width:650px){.pimm-visit-table-entry.card{padding:10px}.pimm-visit-table-entry>.pimm-doctor-selection,.pimm-visit-table-entry>div{min-width:0;max-width:100%}.pimm-doctor-selection-table th{font-size:14px}}

/* Shared column controls: collapsed buttons; original inputs in the top layer. */
.pimm-column-filter-button{display:inline-block;max-width:100%;margin:1px 3px 1px 0;vertical-align:top}
.pimm-column-filter-button[hidden]{display:none!important}
.pimm-column-filter-button>button{font:inherit;font-size:12px;white-space:nowrap;padding:4px 7px!important;min-height:28px;max-width:190px;overflow:hidden;text-overflow:ellipsis;border:1px solid #99afbd;background:#fff;color:#16394e;border-radius:4px}
.pimm-filter-popover[popover]:not(:popover-open){display:none!important}
.pimm-filter-popover[popover]:popover-open{display:flex!important;position:fixed;inset:auto;margin:0!important;width:min(310px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:min(420px,70vh);overflow:auto;padding:12px!important;box-sizing:border-box;background:white;color:#16394e;border:1px solid #7894a5;border-radius:6px;box-shadow:0 5px 18px #17364b44;z-index:10001;gap:7px;font-size:14px}
.pimm-filter-popover .pimm-check-filter{max-width:none;width:100%}
.pimm-filter-popover .pimm-check-filter>summary{display:none}
.pimm-filter-popover input:not([type=checkbox]),.pimm-filter-popover select{box-sizing:border-box;width:100%;min-height:32px}
.pimm-column-filters td{white-space:nowrap!important}
.register-export-host:empty{display:none}
#approvedRegisterFilters{align-items:center;padding:4px;gap:6px;background:transparent;border:0}
#approvedRegisterFilters>.field{margin:0;flex:0 1 210px}
#approvedRegisterFilters>.register-export-host{flex:1 1 480px}
#approvedRegisterFilters .export-toolbar{position:static;margin:0;padding:4px;border:0;gap:8px;box-shadow:none}
#approvedRegisterFilters .export-toolbar strong{font-size:13px}

.pimm-checkbox-popover[popover]:not(:popover-open){display:none!important}.pimm-checkbox-popover[popover]:popover-open{display:block;position:fixed;inset:auto;margin:0;width:min(310px,calc(100vw - 32px));max-height:60vh;overflow:auto;background:white;border:1px solid #7894a5;border-radius:6px;padding:10px;box-shadow:0 5px 18px #17364b44}.pimm-checkbox-popover>div{max-height:260px;overflow:auto}.pimm-filter-popover .pimm-checkbox-popover{max-height:none}

/* Main business lists flow with the document. Horizontal overflow does not
   constrain vertical content. Dialogs and option menus retain their bounds. */
main :is(.pimm-compact-scroll,.register-table-scroll,.receipt-matrix-scroll,.pimm-doctor-table-scroll,.table-wrap,.hr-scroll,.enterprise-results,.table,.scroll):has(>table):not(dialog *):not([popover] *){
 height:auto!important;max-height:none!important;min-height:0!important;
 overflow-x:auto!important;overflow-y:visible!important;
 overscroll-behavior-y:auto!important;scrollbar-gutter:auto!important;
}
main:has(:is(.pimm-compact-scroll,.receipt-matrix-scroll,.pimm-doctor-table-scroll):not(dialog *):not([popover] *)){max-width:1800px}
/* A horizontal overflow container is a CSS sticky containing block. Do not
   detach/clone live heading controls to simulate viewport stickiness. */
main :is(.pimm-compact-scroll,.register-table-scroll,.receipt-matrix-scroll,.pimm-doctor-table-scroll,.table-wrap,.hr-scroll,.enterprise-results,.table,.scroll):not(dialog *):not([popover] *)>table :is(thead,th){position:static!important}
.title-row{display:flex;align-items:center;flex-wrap:nowrap;gap:10px;margin:8px 0}
.title-row>h1,.title-row>h2{margin:0;flex:0 1 auto;min-width:0}
.title-row>.help-button{margin:0;flex:0 0 auto;min-width:34px;min-height:34px;padding:4px 9px}
main>h1{margin-top:0;margin-bottom:12px}

/* One-page receipt entry; shared Doctor table remains in normal page flow. */
.receipt-entry-compact{display:block;max-width:none;margin:8px 0 12px;padding:0}
.receipt-entry-meta{display:flex;flex-wrap:wrap;gap:8px 24px;font-size:13px}
#submissionApp .receipt-entry-meta .submission-field{display:flex;gap:6px;margin:0}
.receipt-entry-meta .submission-field>span:first-child{font-weight:600}
.receipt-entry-inputs{display:grid;grid-template-columns:minmax(160px,240px) minmax(240px,480px);gap:12px;margin:8px 0}
#submissionApp .receipt-entry-inputs .submission-field{margin:0}.receipt-entry-inputs .combo{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.receipt-entry-inputs .combo small:empty,.receipt-entry-inputs .combo-selected-value:empty{display:none}
.receipt-product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:6px 16px;margin:6px 0}
.receipt-product-quantity{display:grid;grid-template-columns:minmax(0,1fr) 76px;align-items:center;gap:4px 8px;margin:0!important;font-size:13px}
.receipt-product-quantity input{width:100%;min-width:0;margin:0;padding:6px 8px;min-height:36px}
.receipt-product-quantity small{grid-column:1/-1}.receipt-quantity-error{color:#9a2424}.receipt-product-quantity input[aria-invalid=true]{border:2px solid #a32828}
.receipt-entry-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;justify-content:space-between;margin:8px 0}
#receiptEntryError:empty{display:none}#receiptEntryDoctor{font-size:14px}#receiptDoctorTable tr[aria-selected=true]{background:#d5e9e1;outline:2px solid #367b69;outline-offset:-2px}
@media(max-width:600px){.receipt-entry-inputs{grid-template-columns:1fr;gap:6px}.receipt-entry-meta{gap:4px 12px}.receipt-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px}.receipt-product-quantity{grid-template-columns:minmax(0,1fr) 54px;font-size:12px}.receipt-product-quantity input{min-height:44px;padding:4px}.receipt-entry-inputs .combo{grid-template-columns:1fr 1fr}}

#receiptCollectorNotice,#receiptSubmitReason{display:block;line-height:1.35;white-space:normal;margin:4px 0;color:#714317}#receiptCollectorNotice[hidden],#receiptSubmitReason[hidden]{display:none}#submissionApp .receipt-beneficiary-field{align-content:start}#receiptCollectorNotice{grid-column:1/-1}#receiptSubmitReason{flex:1 1 220px}#receiptEntryForm>.receipt-entry-inputs{margin-bottom:12px}

/* Shared reversible-record workspace; document scroll remains the only list Y viewport. */
.pimm-lifecycle .table-tools{gap:8px;margin:8px 0}.pimm-lifecycle .table-wrap{max-height:none;height:auto;overflow-x:auto;overflow-y:visible}.pimm-lifecycle table{width:100%;border-collapse:collapse}.pimm-lifecycle td,.pimm-lifecycle th{padding:6px 9px;line-height:1.3}.pimm-lifecycle button,.pimm-lifecycle-dialog button{font:inherit;padding:7px 12px;border:1px solid #9bb0be;border-radius:5px;background:#edf4f8;color:#17364b;cursor:pointer}.pimm-lifecycle-dialog form{display:grid;gap:12px}.pimm-lifecycle-dialog label{display:grid;gap:5px}.pimm-lifecycle-dialog textarea{font:inherit;width:100%;min-height:70px;padding:8px;border:1px solid #9bb0be;border-radius:5px}.pimm-lifecycle-dialog .lifecycle-confirm{display:flex;align-items:flex-start;gap:8px}.pimm-lifecycle-dialog .lifecycle-confirm input{width:auto;margin:3px 0}.pimm-lifecycle-dialog button[type=submit]{background:#176575;color:white}.pimm-lifecycle-dialog [role=alert]{color:#9b2424;margin:0}.pimm-lifecycle-dialog pre{overflow-wrap:anywhere}.pimm-lifecycle .enterprise-table>p{padding:0 9px}.pimm-lifecycle .table-pagination{padding:8px}.pimm-lifecycle>details{margin-top:12px}
