/* Interaction layer: requests never change the viewport or expose the page beneath a CRM operation. */
html{scroll-behavior:auto;overflow-anchor:none}body{overflow-anchor:none}#portal-app{min-height:100vh}
.request-loader{position:fixed;inset:0;z-index:1000;background:rgba(241,245,244,.94);display:grid;place-items:center;padding:24px;cursor:wait;overscroll-behavior:contain;touch-action:none}
.request-card{width:min(100%,420px);background:#fff;border:1px solid #dfe8e3;border-radius:10px;padding:36px;text-align:center;box-shadow:0 12px 60px #244b3a12}
.request-card img{width:44px;height:44px;margin-bottom:18px}.request-card h2{font-size:20px;margin:0 0 10px}.request-card p{font-size:14px;color:#75857d;margin-bottom:25px}.request-card>span{display:block;font-size:12px;color:#839189;margin-top:14px}
.request-message{position:fixed;z-index:1100;bottom:24px;right:24px;max-width:min(530px,calc(100vw - 32px));display:flex;align-items:start;gap:15px;padding:17px 20px;background:#f0f8f3;border:1px solid #cbded2;box-shadow:0 8px 35px #183f2a20;border-radius:8px;color:#315f45;font-size:14px;line-height:1.6}.request-message.error{background:#fff4ee;border-color:#e3c2b4;color:#90492f}.request-message button{background:none;border:0;color:inherit;font-size:23px;line-height:1;flex-shrink:0;padding:0 2px}
.confirm-dialog{border:1px solid #dbe6df;border-radius:10px;padding:28px;max-width:470px;width:calc(100% - 32px);color:var(--ink);box-shadow:0 15px 70px #213f3325}.confirm-dialog::backdrop{background:#273c3566}.confirm-dialog h2{font-size:20px}.confirm-dialog p{font-size:14px;color:#6d7d74}.confirm-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:25px}
.crm-placeholder{padding:45px;min-height:250px}.audit-table .role-badge{display:flex;width:fit-content;align-items:center;gap:6px;margin:3px 0;padding:4px 9px;min-height:27px;border:1px solid #dfe7e2;border-radius:7px;background:#f4f7f5;color:#50655a;font-size:12px;font-weight:500;line-height:1.45;white-space:nowrap}.role-badge .icon{width:14px;height:14px;flex-shrink:0;color:#759386}.audit-table .cell-subtitle{max-width:360px;overflow-wrap:anywhere}.audit-table th a .icon{width:13px;height:13px}.audit-table tbody tr[data-href]{cursor:pointer}.audit-table td:first-child{min-width:230px}.audit-table .task-ratio{white-space:nowrap}.stat-card>.icon:last-child{position:absolute;right:13px;bottom:14px;width:14px;height:14px;color:#a4b3ac}.stat-card>.stat-icon{margin-left:auto}.stat-card.selected{border-color:#8bb5a4;background:#f9fcfa}
.status-badge{display:inline-flex!important;align-items:center;gap:6px;font-size:12px!important;line-height:1.5;padding:5px 9px;border-radius:5px;font-weight:600;white-space:nowrap;width:fit-content}.status-badge>span{width:5px;height:5px;border-radius:50%;background:currentColor}
.task-progress{display:block;width:64px;height:4px;margin-top:7px;border:0;background:#e9efeb;border-radius:4px;overflow:hidden;accent-color:#78a58e}.task-progress::-webkit-progress-bar{background:#e9efeb}.task-progress::-webkit-progress-value{background:#78a58e}
.summary-item>strong{display:flex;align-items:center;gap:8px;font-size:14px;color:#445d4f;line-height:1.6}.summary-item>strong .icon{width:17px;height:17px}.summary-item>.status-badge{margin-top:5px}.detail-content>[role=tabpanel]>.portal-card{border:0;border-radius:0;margin:0}.detail-content .portal-table th,.detail-content .portal-table td{padding:16px 22px}.detail-content .portal-table{white-space:normal}.detail-content .portal-table small{font-size:12px}.detail-content .padded{padding:24px}.detail-content .card-title{padding:22px 24px}.detail-content .card-title h2{font-size:16px}.detail-main>[data-overview-extra]>.portal-columns{grid-template-columns:1fr;gap:0}.detail-main>[data-overview-extra] .portal-card{margin-bottom:22px}.detail-main>[data-overview-extra] .portal-card:last-child{margin-bottom:0}
.next-step .section-body .button{margin-top:10px;white-space:normal}.next-step form{margin:0}.detail-aside .card-title{padding:18px 20px}.detail-aside .card-title h2,.detail-aside h2{font-size:16px}.detail-aside .audit-person{padding:17px 20px}.detail-aside .reward-card{padding:20px;background:#f2f7f3;border-color:#dfe9e1}.detail-aside .reward-card p{font-size:13px;margin:0}.detail-aside .portal-card{margin-bottom:20px}.audit-facts dd{overflow-wrap:anywhere}.audit-facts dt{font-size:12px}.audit-facts dd{font-size:14px}.audit-facts{gap:24px}.detail-content .settings-section{margin-bottom:0}.audit-form-footer .button{white-space:normal}.audit-upload{background:#fafcfb}.audit-document{padding:22px 24px}.audit-document>div{min-width:0}.audit-document strong{overflow-wrap:anywhere}.checklist-table select{max-width:100%}.detail-content .audit-form-footer{padding:20px 24px}.tabs .tab-link>span{background:#eef3f0;font-size:11px;padding:1px 6px;border-radius:4px}.filter-bar .search-field{min-width:190px;flex:1.4}.audits-panel .filter-bar{gap:12px}.audits-panel .filter-bar .field{min-width:130px;flex:1}.audits-panel .filter-bar .field:first-of-type{flex:1}.audits-panel .filter-bar .field select{font-size:13px}.audits-panel .filter-bar .search-field input{height:43px}.filter-bar label.field>span.sr-only{position:absolute}
@media(max-width:1150px){.stats-grid{gap:12px}.stat-card{padding:18px 14px;gap:8px}.stat-card .stat-icon{width:32px;height:32px}.stat-caption{font-size:11px}.detail-heading{flex-wrap:wrap}.detail-content .portal-table th,.detail-content .portal-table td{padding:15px}.detail-content .tabs{gap:20px}}
@media(max-width:700px){.request-message{right:16px;bottom:16px}.request-card{padding:28px}.detail-heading .heading-actions{flex-wrap:wrap}.audits-panel .filter-bar{padding:18px}.audits-panel .filter-bar .field{min-width:100%;width:100%}.audits-panel .filter-bar .search-field{min-width:100%}.detail-content .padded{padding:20px}.detail-content .checklist-table td:nth-child(2){min-width:200px}.summary-grid{gap:20px}.summary-item>strong{font-size:13px}.status-badge{font-size:11px!important}.detail-aside{display:block}.audit-facts{grid-template-columns:1fr}.audit-facts .wide{grid-column:auto}.detail-content .tabs{padding:0 18px;gap:19px}.tab-link{font-size:12px}.stat-caption{max-width:110px}.audit-form-footer{padding:18px!important}}
@media print{.request-loader,.request-message,.confirm-dialog{display:none!important}}
.audit-state-100000000{background:#eaf4ef;color:#4e8067}.audit-state-100000001{background:#edf0fa;color:#6e79a4}.audit-state-918650001{background:#fff0e8;color:#b77351}.actual-date-field{max-width:285px}.portal-upload-box{margin-top:24px}.portal-upload-box .upload-version-fields{width:100%}.portal-upload-box .field{margin-bottom:16px}.portal-upload-box .fields{gap:16px}.portal-upload-box>.upload-feedback{flex-basis:100%;font-size:13px;overflow-wrap:anywhere}.portal-upload-box .upload-hint{font-size:12px}.file-row .document-download{margin:0}.checklist-row .task-content{min-width:0}.checklist-row label strong{font-size:14px;font-weight:600;line-height:1.6;display:block}.checklist-row .check-result{flex-shrink:0}.summary-item .audit-state-100000000{color:#4e8067}.summary-item .audit-state-100000001{color:#6e79a4}.summary-item .audit-state-918650001{color:#b77351}.summary-item .audit-state-918650002{color:#5e6d78}.detail-content .section-head h2{font-size:17px}.detail-content .section-head p{font-size:13px;margin-bottom:0}.detail-content .inline-actions{display:flex;gap:15px;justify-content:space-between;align-items:center}.next-step .section-body>p{font-size:14px}.list-footnote{line-height:1.7}.file-name{overflow-wrap:anywhere}
@media(max-width:700px){.checklist-row{flex-wrap:wrap;gap:12px}.checklist-row .task-content{flex:1 1 calc(100% - 40px)}.checklist-row .check-result{width:100%;max-width:none}.detail-content .inline-actions{flex-wrap:wrap}.detail-content .inline-actions .button{margin-left:auto}.portal-upload-box .fields{grid-template-columns:1fr;gap:0}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-card .stat-icon{width:29px;height:29px}.stat-label{font-size:12px}}
.profile-nav button.active{background:#eef5f1;color:var(--green);font-weight:600}.profile-save{display:flex;justify-content:flex-end;margin:0 0 24px}.profile-card .small-text{font-size:12px;line-height:1.8;padding:16px 0 0;margin-bottom:0;border-top:1px solid var(--line)}.profile-layout>.panel{min-width:0}.profile-layout .section-body>.field{max-width:420px}
@media(max-width:700px){.checklist .check-result{width:calc(100% - 31px);max-width:calc(100% - 31px);margin-left:31px}}

/* Small UI details and on-demand address maps. */
.request-meter{position:relative}.request-track{height:7px;overflow:hidden;border-radius:20px;background:#e7efeb}.request-track>span{display:block;width:0;height:100%;border-radius:inherit;background:#418472;transition:width .15s linear}.request-meter.indeterminate .request-track>span{width:38%;animation:crm-wait 1.35s ease-in-out infinite}
@keyframes crm-wait{0%{transform:translateX(-110%)}100%{transform:translateX(370%)}}
.team-symbol{width:38px;height:38px;border-radius:11px}.team-symbol .icon{width:22px;height:22px;stroke-width:1.7}.team-shield{background:#f0f1f8;color:#7b7da1}.team-lead{background:#eaf4ef;color:#51866b}.team-auditor{background:#edf3f7;color:#6f8fa3}.team-technical{background:#f7f2e9;color:#a68a58}.team-unregistered{background:#f5f6f5;color:#a4afa8;border:1px dashed #d3dcd6}.nav-link>.icon{width:21px;height:21px;stroke-width:1.7}.profile-avatar{position:relative}.profile-avatar-symbol{position:absolute;right:-5px;bottom:-3px;width:27px;height:27px;border-radius:9px;background:#fff;color:#588674;border:2px solid #e5eee8;display:grid;place-items:center}.profile-avatar-symbol .icon{width:18px;height:18px}
.address-actions{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:8px}.address-link{display:inline-flex;align-items:center;gap:5px;padding:2px 0;border:0;background:none;color:var(--green);font:inherit;font-size:12px;font-weight:500;cursor:pointer;line-height:1.6}.address-link .icon{width:15px;height:15px}.address-link:hover{text-decoration:underline}
.map-dialog{width:min(860px,calc(100vw - 32px));max-width:860px;max-height:calc(100dvh - 32px);padding:0;border:1px solid #dce6df;border-radius:12px;box-shadow:0 20px 90px #203e3330;color:var(--ink);overflow:auto;overscroll-behavior:contain}.map-dialog::backdrop{background:#233b3270}.map-dialog-heading{display:flex;align-items:flex-start;gap:20px;justify-content:space-between;padding:23px 26px 20px}.map-dialog h2{font-size:20px;margin:0 0 6px}.map-dialog p{font-size:13px;line-height:1.6;color:#75867b;margin:0;overflow-wrap:anywhere}.map-dialog-heading>.icon-button{flex-shrink:0}.map-canvas{height:min(52dvh,460px);min-height:200px;background:#eff3f0}.map-canvas iframe{display:block;width:100%;height:100%;border:0}.map-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 26px}.map-dialog-footer>span{font-size:12px;color:#89968d}.map-dialog .button{margin:0}
@media(max-width:600px){.map-dialog-heading{padding:20px}.map-dialog-footer{padding:16px 20px;flex-wrap:wrap}.map-dialog-footer>.button{font-size:12px}.map-dialog h2{font-size:18px}}
@media(prefers-reduced-motion:reduce){.request-meter.indeterminate .request-track>span{animation:none;transform:translateX(80%)}.request-track>span{transition:none}}
@media print{.map-dialog,.address-actions{display:none!important}}
