/* Prototype CRM styles, scoped to CRM pages. */

body:not(.portfolio-mode){font-family: Inter,Arial,sans-serif; color: #25272b; background: #f4f5f7; font-size: 16px; --red: #c91420; --muted: #656b75; --line: #e3e5e9;}
body:not(.portfolio-mode) *{box-sizing: border-box;}
body:not(.portfolio-mode){margin: 0;}
body:not(.portfolio-mode) button,body:not(.portfolio-mode) input,body:not(.portfolio-mode) select,body:not(.portfolio-mode) textarea{font: inherit;}
body:not(.portfolio-mode) button,body:not(.portfolio-mode) a,body:not(.portfolio-mode) select{cursor: pointer;}
body:not(.portfolio-mode) button{background: white; border: 1px solid #d9dde2; border-radius: 7px; padding: 9px 13px; color: inherit; font-size: .875rem; font-weight: 600;}
body:not(.portfolio-mode) button:hover{background: #f2f3f5; border-color: #9ba1aa;}
body:not(.portfolio-mode) button:focus-visible,body:not(.portfolio-mode) input:focus-visible,body:not(.portfolio-mode) select:focus-visible,body:not(.portfolio-mode) a:focus-visible{outline: 3px solid #276bba; outline-offset: 3px;}
body:not(.portfolio-mode) .primary{background: var(--red); color: white; border-color: var(--red);}
body:not(.portfolio-mode) .primary:hover{background: #a6101a; color: white;}
body:not(.portfolio-mode) .shell{display: grid; grid-template-columns: 228px minmax(0,1fr); min-height: 100vh;}
body:not(.portfolio-mode) .sidebar{background: #fff; border-right: 1px solid var(--line); padding: 30px 18px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;}
body:not(.portfolio-mode) .brand{font-size: 2.1rem; font-weight: 800; letter-spacing: -2px; color: #74777a; padding: 0 14px;}
body:not(.portfolio-mode) .brand b{color: #df1824;}
body:not(.portfolio-mode) .centre{margin: 26px 10px 20px; padding: 12px; background: #f5f6f8; border: 1px solid var(--line); border-radius: 8px; font-size: .875rem; font-weight: 600;}
body:not(.portfolio-mode) .centre small{display: block; color: var(--muted); font-weight: 400; margin-top: 5px;}
body:not(.portfolio-mode) .nav{display: grid; gap: 5px;}
body:not(.portfolio-mode) .nav button{text-align: left; border: none; background: none; padding: 12px 14px; color: #646971; font-weight: 500; display: flex; gap: 12px; align-items: center;}
body:not(.portfolio-mode) .nav button.active{background: #fcecee; color: #b6121c; font-weight: 700;}
body:not(.portfolio-mode) .nav svg{width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7;}
body:not(.portfolio-mode) .sidebottom{margin-top: auto; border-top: 1px solid var(--line); padding: 20px 10px 0; font-size: .875rem;}
body:not(.portfolio-mode) .avatar{display: inline-grid; place-items: center; width: 38px; height: 38px; background: #eceef2; border-radius: 50%; font-weight: 700; color: #535a64; margin-right: 9px; vertical-align: middle;}
body:not(.portfolio-mode) .sidebottom small{color: var(--muted);}
body:not(.portfolio-mode) .topbar{background: white; border-bottom: 1px solid var(--line); padding: 18px 32px; display: flex; align-items: center; justify-content: space-between; gap: 18px;}
body:not(.portfolio-mode) .search{background: #f6f7f9; border: 1px solid var(--line); border-radius: 7px; padding: 10px 14px; max-width: 390px; width: 100%; font-size: .875rem;}
body:not(.portfolio-mode) .topbar select{padding: 9px; border: 1px solid var(--line); border-radius: 7px; background: white; font-size: .875rem;}
body:not(.portfolio-mode) .demo{background: #282c34; color: #fff; padding: 9px 32px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .8rem;}
body:not(.portfolio-mode) .demo button{background: none; color: white; padding: 3px 8px; font-size: .75rem; border-color: #69707d;}
body:not(.portfolio-mode) .content{padding: 30px 32px; max-width: 1600px; margin: auto;}
body:not(.portfolio-mode) .eyebrow{font-size: .75rem; text-transform: uppercase; letter-spacing: 1.6px; font-weight: 700; color: var(--muted);}
body:not(.portfolio-mode) h1{font-size: 1.85rem; letter-spacing: -1px; margin: 7px 0 9px;}
body:not(.portfolio-mode) h2{font-size: 1.03rem; margin: 0;}
body:not(.portfolio-mode) h3{font-size: 1rem; margin: 0 0 8px;}
body:not(.portfolio-mode) .muted{color: var(--muted); font-size: .875rem; line-height: 1.6;}
body:not(.portfolio-mode) .heading{display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 26px;}
body:not(.portfolio-mode) .heading p{margin: 0;}
body:not(.portfolio-mode) .metrics{display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 24px;}
body:not(.portfolio-mode) .metric{background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 21px; text-align: left; position: relative;}
body:not(.portfolio-mode) .metric .value{font-size: 2rem; font-weight: 700; letter-spacing: -1px; display: block; margin: 12px 0 9px;}
body:not(.portfolio-mode) .metric .label{font-size: .875rem; color: #535a64;}
body:not(.portfolio-mode) .metric .sub{font-size: .8rem; color: var(--muted);}
body:not(.portfolio-mode) .metric.accent{border-top: 3px solid var(--red); padding-top: 19px;}
body:not(.portfolio-mode) .grid{display: grid; grid-template-columns: minmax(0,1.8fr) minmax(280px,1fr); gap: 22px; margin-bottom: 24px;}
body:not(.portfolio-mode) .panel{background: white; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;}
body:not(.portfolio-mode) .panelhead{padding: 21px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px;}
body:not(.portfolio-mode) .panelbody{padding: 22px;}
body:not(.portfolio-mode) .tabs{display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 20px;}
body:not(.portfolio-mode) .tabs button{background: transparent; border-color: transparent; color: var(--muted);}
body:not(.portfolio-mode) .tabs button.active{background: #fff; border-color: var(--line); color: #24272c;}
body:not(.portfolio-mode) .task{padding: 17px 22px; border-bottom: 1px solid #f0f1f3; display: flex; gap: 13px; align-items: center;}
body:not(.portfolio-mode) .task:last-child{border: 0;}
body:not(.portfolio-mode) .taskicon{width: 35px; height: 35px; display: grid; place-items: center; background: #f5f6f8; border-radius: 8px; flex-shrink: 0; color: #626975;}
body:not(.portfolio-mode) .taskmain{flex: 1; min-width: 0;}
body:not(.portfolio-mode) .taskmain strong{font-size: .875rem; display: block; margin-bottom: 5px;}
body:not(.portfolio-mode) .taskmain small{color: var(--muted); font-size: .8rem;}
body:not(.portfolio-mode) .badge{display: inline-block; padding: 5px 8px; border-radius: 5px; background: #eff1f4; color: #47505c; font-size: .75rem; font-weight: 600; white-space: nowrap;}
body:not(.portfolio-mode) .badge.urgent{background: #fff0f1; color: #aa1220;}
body:not(.portfolio-mode) .badge.good{background: #eaf1fa; color: #285684;}
body:not(.portfolio-mode) .barrow{margin-bottom: 19px;}
body:not(.portfolio-mode) .barlabel{display: flex; justify-content: space-between; font-size: .875rem; margin-bottom: 9px;}
body:not(.portfolio-mode) .track{height: 7px; border-radius: 10px; background: #eceef1; overflow: hidden;}
body:not(.portfolio-mode) .fill{background: #777f8c; height: 100%; border-radius: 10px;}
body:not(.portfolio-mode) .fill.red{background: var(--red);}
body:not(.portfolio-mode) .notice{padding: 18px; background: #f7f8fa; border-left: 3px solid #667183; border-radius: 4px; margin-top: 20px;}
body:not(.portfolio-mode) .notice p{font-size: .875rem; line-height: 1.6;}
body:not(.portfolio-mode) .tablewrap{overflow-x: auto;}
body:not(.portfolio-mode) table{width: 100%; border-collapse: collapse; font-size: .875rem; text-align: left;}
body:not(.portfolio-mode) th{background: #fafbfc; font-size: .75rem; font-weight: 600; color: #616974; padding: 14px 18px; border-bottom: 1px solid var(--line); white-space: nowrap;}
body:not(.portfolio-mode) td{padding: 17px 18px; border-bottom: 1px solid #eff0f3; vertical-align: middle;}
body:not(.portfolio-mode) td small{display: block; color: var(--muted); margin-top: 5px; font-size: .75rem;}
body:not(.portfolio-mode) tr:last-child td{border-bottom: 0;}
body:not(.portfolio-mode) .link{border: 0; background: transparent; padding: 0; text-align: left; color: #24272c; font-weight: 600;}
body:not(.portfolio-mode) .link:hover{color: var(--red); background: none;}
body:not(.portfolio-mode) .filters{display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px;}
body:not(.portfolio-mode) .filters select{background: white; border: 1px solid var(--line); border-radius: 7px; padding: 9px; font-size: .875rem;}
body:not(.portfolio-mode) .empty{padding: 38px; text-align: center; color: var(--muted);}
body:not(.portfolio-mode) .timeline{border-left: 2px solid #e6e8ed; margin: 5px 0 0 7px; padding-left: 23px;}
body:not(.portfolio-mode) .event{margin: 0 0 23px; position: relative; font-size: .875rem; line-height: 1.6;}
body:not(.portfolio-mode) .event:before{content: ''; position: absolute; left: -29px; top: 6px; border: 3px solid white; background: #8a929e; width: 9px; height: 9px; border-radius: 50%;}
body:not(.portfolio-mode) .event small{display: block; color: var(--muted); font-size: .75rem;}
body:not(.portfolio-mode) .formgrid{display: grid; grid-template-columns: 1fr 1fr; gap: 16px;}
body:not(.portfolio-mode) label{display: block; font-size: .875rem; font-weight: 600;}
body:not(.portfolio-mode) label input,body:not(.portfolio-mode) label select,body:not(.portfolio-mode) label textarea{display: block; margin-top: 7px; width: 100%; padding: 10px; border: 1px solid #cdd2d9; border-radius: 6px; background: white; font-weight: 400;}
body:not(.portfolio-mode) textarea{min-height: 95px; resize: vertical;}
body:not(.portfolio-mode) .full{grid-column: 1/-1;}
body:not(.portfolio-mode) .actions{display: flex; gap: 10px; flex-wrap: wrap;}
body:not(.portfolio-mode) .checkrow{display: flex; align-items: center; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line); gap: 12px; font-size: .875rem;}
body:not(.portfolio-mode) .checkrow label{display: flex; align-items: center; gap: 10px; font-weight: 500;}
body:not(.portfolio-mode) .checkrow input{width: 19px; height: 19px; margin: 0; accent-color: var(--red);}
body:not(.portfolio-mode) .detailtop{background: white; border: 1px solid var(--line); border-radius: 10px; padding: 23px; margin-bottom: 24px;}
body:not(.portfolio-mode) .detailtop .tags{display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px;}
body:not(.portfolio-mode) .statline{display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line);}
body:not(.portfolio-mode) .statline span{font-size: .875rem;}
body:not(.portfolio-mode) .statline small{display: block; color: var(--muted); margin-bottom: 7px;}
body:not(.portfolio-mode) .monthchart{height: 170px; display: flex; align-items: flex-end; gap: 15px; padding: 10px 0 25px;}
body:not(.portfolio-mode) .monthcol{flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 7px; font-size: .75rem; color: var(--muted);}
body:not(.portfolio-mode) .monthbar{width: 70%; background: #afb5be; border-radius: 4px 4px 0 0; min-height: 3px;}
body:not(.portfolio-mode) .monthcol:last-child .monthbar{background: var(--red);}
body:not(.portfolio-mode) dialog{border: 0; border-radius: 12px; box-shadow: 0 25px 90px #0004; width: min(620px,94vw); padding: 26px; max-height: 90vh; overflow: auto;}
body:not(.portfolio-mode) dialog::backdrop{background: #19213088;}
body:not(.portfolio-mode) dialog h2{font-size: 1.3rem; margin-bottom: 20px;}
body:not(.portfolio-mode) dialog .actions{justify-content: flex-end; margin-top: 22px;}
body:not(.portfolio-mode) #toast{position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); background: #272d36; color: white; padding: 13px 22px; border-radius: 8px; display: none; z-index: 20; font-size: .875rem;}
body:not(.portfolio-mode) .resources{display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px;}
body:not(.portfolio-mode) .resource{padding: 24px;}
body:not(.portfolio-mode) .resource .badge{margin-bottom: 18px;}
body:not(.portfolio-mode) .resource p{min-height: 42px;}
body:not(.portfolio-mode) .reportnote{margin: 18px 0; font-size: .8rem; color: var(--muted);}
@media (max-width:1050px){body:not(.portfolio-mode) .shell{grid-template-columns: 185px 1fr;}
body:not(.portfolio-mode) .content{padding: 23px 20px;}
body:not(.portfolio-mode) .sidebar{padding: 24px 10px;}
body:not(.portfolio-mode) .grid{grid-template-columns: 1fr;}
body:not(.portfolio-mode) .metrics{grid-template-columns: repeat(2,1fr);}
body:not(.portfolio-mode) .topbar{padding: 16px 20px;}
body:not(.portfolio-mode) .demo{padding: 9px 20px;}}
@media (max-width:650px){body:not(.portfolio-mode) .shell{display: block;}
body:not(.portfolio-mode) .sidebar{position: static; height: auto; padding: 12px;}
body:not(.portfolio-mode) .brand{font-size: 1.7rem;}
body:not(.portfolio-mode) .centre,body:not(.portfolio-mode) .sidebottom{display: none;}
body:not(.portfolio-mode) .nav{display: flex; overflow-x: auto; margin-top: 12px;}
body:not(.portfolio-mode) .nav button{white-space: nowrap; padding: 9px;}
body:not(.portfolio-mode) .nav svg{display: none;}
body:not(.portfolio-mode) .topbar{flex-wrap: wrap; padding: 12px;}
body:not(.portfolio-mode) .search{max-width: none;}
body:not(.portfolio-mode) .content{padding: 20px 12px;}
body:not(.portfolio-mode) .heading{align-items: flex-start; flex-wrap: wrap;}
body:not(.portfolio-mode) .metrics{gap: 10px;}
body:not(.portfolio-mode) .metric{padding: 15px;}
body:not(.portfolio-mode) .metric .value{font-size: 1.6rem;}
body:not(.portfolio-mode) .resources,body:not(.portfolio-mode) .formgrid{grid-template-columns: 1fr;}
body:not(.portfolio-mode) .full{grid-column: auto;}
body:not(.portfolio-mode) .statline{grid-template-columns: 1fr 1fr;}
body:not(.portfolio-mode) .task{padding: 15px 12px;}
body:not(.portfolio-mode) .task .badge{display: none;}
body:not(.portfolio-mode) .demo{font-size: .75rem; padding: 8px 12px;}
body:not(.portfolio-mode) h1{font-size: 1.5rem;}
body:not(.portfolio-mode) .panelhead{padding: 18px;}
body:not(.portfolio-mode) .task button{padding: 8px;}
body:not(.portfolio-mode) .topbar label{font-size: .8rem;}}
@media print{body:not(.portfolio-mode) .sidebar,body:not(.portfolio-mode) .topbar,body:not(.portfolio-mode) .demo,body:not(.portfolio-mode) .actions,body:not(.portfolio-mode) .filters,body:not(.portfolio-mode) .tabs,body:not(.portfolio-mode) button,body:not(.portfolio-mode) #toast{display: none !important;}
body:not(.portfolio-mode) .shell{display: block;}
body:not(.portfolio-mode) .content{padding: 0; max-width: none;}
body:not(.portfolio-mode) .panel{break-inside: avoid;}
body:not(.portfolio-mode){background: white;}
body:not(.portfolio-mode) .grid{display: block;}
body:not(.portfolio-mode) .panel{margin-bottom: 20px;}
body:not(.portfolio-mode) table{font-size: 10pt;}}
body:not(.portfolio-mode) .targetheadline{display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px;}
body:not(.portfolio-mode) .targetnumber{font-size: 2.35rem; font-weight: 700; letter-spacing: -1.4px; margin: 9px 0 12px;}
body:not(.portfolio-mode) .targetside{text-align: right;}
body:not(.portfolio-mode) .targetside strong{display: block; font-size: 1.2rem; margin-bottom: 5px;}
body:not(.portfolio-mode) .targetside span{display: block;}
body:not(.portfolio-mode) .commissionbox{display: flex; justify-content: space-between; align-items: center; gap: 15px; background: #f7f8fa; border: 1px solid var(--line); border-radius: 8px; padding: 18px; margin-top: 25px;}
body:not(.portfolio-mode) .commissionbox h2{font-size: 1.3rem; margin-top: 8px;}
@media (max-width:650px){body:not(.portfolio-mode) .commissionbox{align-items: flex-start; flex-direction: column;}
body:not(.portfolio-mode) .targetnumber{font-size: 1.9rem;}}
body:not(.portfolio-mode) .activitytext{white-space: pre-wrap; overflow-wrap: anywhere; margin: 10px 0;}
body:not(.portfolio-mode) .event button{margin-top: 8px;}
body:not(.portfolio-mode) .event details{margin-top: 10px;}
body:not(.portfolio-mode) .event small{display: block;}
body:not(.portfolio-mode) #iqa-form .panel{margin-top: 20px;}
body:not(.portfolio-mode) .iqa-checks{display: grid; grid-template-columns: 1fr 1fr; gap: 18px;}
body:not(.portfolio-mode) .iqa-matrix-row{display: grid; grid-template-columns: 1fr 180px 1.2fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid #ddd; align-items: center;}
body:not(.portfolio-mode) .iqa-matrix-row textarea{min-height: 65px;}
body:not(.portfolio-mode) .iqa-footer{margin-top: 24px;}
body:not(.portfolio-mode) #iqa-error{color: #a50e19; font-weight: 600;}
body:not(.portfolio-mode) .iqa-report table{width: 100%; border-collapse: collapse;}
body:not(.portfolio-mode) .iqa-report td,body:not(.portfolio-mode) .iqa-report th{border: 1px solid #ddd; padding: 10px; vertical-align: top;}
body:not(.portfolio-mode) .iqa-report h2{margin-top: 25px;}
body:not(.portfolio-mode) #iqa-print{display: none;}
@media (max-width:800px){body:not(.portfolio-mode) .iqa-matrix-row,body:not(.portfolio-mode) .iqa-checks{grid-template-columns: 1fr;}}
@media print{body:not(.portfolio-mode).printing-iqa>*{display: none !important;}
body:not(.portfolio-mode).printing-iqa>#iqa-print{display: block !important; font: 10pt Arial; color: #111;}
body:not(.portfolio-mode) .iqa-report h2{break-after: avoid;}
body:not(.portfolio-mode) .iqa-report tr,body:not(.portfolio-mode) .iqa-report .notice{break-inside: avoid;}
body:not(.portfolio-mode) .iqa-report table{table-layout: fixed;}
body:not(.portfolio-mode) .iqa-report td{overflow-wrap: anywhere;}
body:not(.portfolio-mode) .iqa-report thead{display: table-header-group;}
body:not(.portfolio-mode) @page{size: A4; margin: 15mm;}}
body:not(.portfolio-mode) #iqa-form select.needs-review{border: 2px solid #b01426; background: #fff6f6;}
body:not(.portfolio-mode) .review-hint{display: block; color: #9b1222; font-weight: 600; font-size: 12px; margin-top: 5px;}
body:not(.portfolio-mode) .unit-remove{display: inline-flex; gap: 6px; align-items: center; justify-self: start; margin-bottom: 15px;}
body:not(.portfolio-mode) #iqa-form input.needs-review{border: 2px solid #b01426; background: #fff6f6;}
body:not(.portfolio-mode) #completion-today{margin-top: 8px;}
body:not(.portfolio-mode) .iqa-date-field{min-width: 0;}
body:not(.portfolio-mode) .iqa-date-actions{display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center;}
body:not(.portfolio-mode) #iqa-form .iqa-date-actions button{margin-top: 0;}
body:not(.portfolio-mode) .iqa-date-field .review-hint{min-height: 18px;}
body:not(.portfolio-mode) .brand img{display: block; width: 172px; max-width: 100%; height: auto;}
body:not(.portfolio-mode) .filters{align-items: center;}
body:not(.portfolio-mode) .filters select{height: 40px; box-sizing: border-box; align-self: center;}
body:not(.portfolio-mode) .filters label{display: flex; flex-direction: column; gap: 6px;}
body:not(.portfolio-mode) .dashboard-greeting{display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 22px; padding: 0 0 16px; border-bottom: 1px solid var(--line); font-size: 1rem;}
body:not(.portfolio-mode) .dashboard-greeting strong{font-size: 1.2rem; color: #28313d; font-weight: 700;}
body:not(.portfolio-mode) .dashboard-greeting span{color: #616b7a;}
body:not(.portfolio-mode) .dashboard-greeting{justify-content: space-between;}
body:not(.portfolio-mode) .dashboard-greeting .last-login{margin-left: auto; text-align: right; font-size: .875rem;}
body:not(.portfolio-mode) .last-login small{font-size: .75rem; color: #677182;}
@media (max-width:650px){body:not(.portfolio-mode) .dashboard-greeting .last-login{margin-left: 0; text-align: left; width: 100%;}}
body:not(.portfolio-mode) .sales-focus-grid{grid-template-columns: minmax(0,1fr) minmax(0,1.25fr);}
body:not(.portfolio-mode) .forecast-focus{border: 1px solid #d9b9bd; border-top: 4px solid var(--red); box-shadow: 0 4px 16px rgba(35,40,50,.06);}
body:not(.portfolio-mode) .forecast-focus .panelhead{background: #fff5f5;}
body:not(.portfolio-mode) .forecast-focus .panelhead h2{font-size: 1.2rem;}
body:not(.portfolio-mode) .forecast-focus .targetnumber{font-size: clamp(2.5rem,4vw,3.5rem); font-weight: 800; color: #a6101b; letter-spacing: -1.5px; margin: 12px 0 18px;}
body:not(.portfolio-mode) .forecast-focus .eyebrow{font-weight: 600;}
@media (max-width:900px){body:not(.portfolio-mode) .sales-focus-grid{grid-template-columns: minmax(0,1fr);}
body:not(.portfolio-mode) .sales-focus-grid .forecast-focus{order: -1;}}
body:not(.portfolio-mode) .today-completed{padding: 16px 20px; border-top: 1px solid var(--line);}
body:not(.portfolio-mode) .today-completed summary{cursor: pointer; font-weight: 600;}
body:not(.portfolio-mode) .task .actions{flex-wrap: wrap; justify-content: flex-end;}
body:not(.portfolio-mode) .taskmain .link{font-size: inherit;}
body:not(.portfolio-mode) .content>.panel{margin-bottom: 22px;}
@media (max-width:650px){body:not(.portfolio-mode) .task{flex-wrap: wrap;}
body:not(.portfolio-mode) .task .actions{width: 100%; justify-content: flex-start;}}
body:not(.portfolio-mode) .metrics.sales-overview-metrics{grid-template-columns: repeat(4,minmax(0,1fr));}
@media (max-width:1000px){body:not(.portfolio-mode) .metrics.sales-overview-metrics{grid-template-columns: repeat(2,minmax(0,1fr));}}
@media (max-width:600px){body:not(.portfolio-mode) .metrics.sales-overview-metrics{grid-template-columns: minmax(0,1fr);}}
body:not(.portfolio-mode) .metrics.sales-overview-metrics{grid-template-columns: repeat(3,minmax(0,1fr));}
@media (max-width:1000px){body:not(.portfolio-mode) .metrics.sales-overview-metrics{grid-template-columns: repeat(2,minmax(0,1fr));}}
@media (max-width:600px){body:not(.portfolio-mode) .metrics.sales-overview-metrics{grid-template-columns: minmax(0,1fr);}}
body:not(.portfolio-mode) .page-back{display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 15px; border: 1px solid #cbd0d8; background: #fff; color: #303946; white-space: nowrap; box-shadow: 0 1px 2px rgba(30,40,50,.04);}
body:not(.portfolio-mode) .page-back:hover{background: #f0f2f5; border-color: #919aa7;}
body:not(.portfolio-mode) .heading>.actions{margin-left: auto; justify-content: flex-end; flex-wrap: wrap;}
body:not(.portfolio-mode) .taskmain{min-width: 0;}
body:not(.portfolio-mode) .taskmain>strong{display: block; line-height: 1.5;}
body:not(.portfolio-mode) .task-summary{display: block; margin-top: 6px; font-size: .875rem; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere;}
body:not(.portfolio-mode) .task-summary .link{padding: 0; line-height: inherit; vertical-align: baseline;}
body:not(.portfolio-mode) .task-summary span{font-weight: 400;}
body:not(.portfolio-mode) .company-context{background: #f6f7f9; border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin: 20px 0;}
body:not(.portfolio-mode) .company-context p{font-size: .875rem; line-height: 1.5; margin: 8px 0;}
body:not(.portfolio-mode) .company-assessors{list-style: none; padding: 0; margin: 20px 0;}
body:not(.portfolio-mode) .company-assessors li{display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; align-items: center; line-height: 1.5; font-size: .875rem; border-bottom: 1px solid var(--line);}
body:not(.portfolio-mode) .company-assessors span{color: var(--muted);}
body:not(.portfolio-mode) .company-history{margin-top: 20px;}
body:not(.portfolio-mode) .company-history summary{cursor: pointer; font-size: .875rem; font-weight: 600; padding: 6px 0;}
body:not(.portfolio-mode) .company-history table{min-width: 420px; font-size: .8rem;}
body:not(.portfolio-mode) .company-history th,body:not(.portfolio-mode) .company-history td{padding: 10px 8px;}
body:not(.portfolio-mode) .company-counts{margin: 18px 0; display: grid; gap: 8px; max-width: 420px;}
body:not(.portfolio-mode) .company-counts>div{display: flex; justify-content: space-between; gap: 24px; border-bottom: 1px solid #e5e7eb; padding-bottom: 8px;}
body:not(.portfolio-mode) .company-counts dt{font-weight: 500;}
body:not(.portfolio-mode) .company-counts dd{margin: 0; font-weight: 700;}
body:not(.portfolio-mode) .lead-actions{margin: 20px 0; flex-wrap: wrap;}
body:not(.portfolio-mode) .tablewrap td small{display: block; margin-top: 6px; line-height: 1.5;}
body:not(.portfolio-mode) .tablewrap td{vertical-align: top;}
body:not(.portfolio-mode) .company-live-badge{background: #e7f5ed; color: #166534;}
body:not(.portfolio-mode) .company-context .company-counts{margin-bottom: 0;}
body:not(.portfolio-mode) .company-context .company-assessors + .company-history{margin-top: 0;}
body:not(.portfolio-mode) .company-context .company-counts{max-width: none;}
body:not(.portfolio-mode) .company-assessor-summary{width: 100%; margin: 20px 0; border-collapse: collapse; font-size: .875rem; table-layout: fixed;}
body:not(.portfolio-mode) .company-assessor-summary th,body:not(.portfolio-mode) .company-assessor-summary td{padding: 10px 0; line-height: 1.5; text-align: left; border-bottom: 1px solid var(--line);}
body:not(.portfolio-mode) .company-assessor-summary th{background: transparent; color: var(--muted); font-weight: 600;}
body:not(.portfolio-mode) .company-assessor-summary th:last-child,body:not(.portfolio-mode) .company-assessor-summary td:last-child{text-align: right; width: 140px;}
body:not(.portfolio-mode) .company-assessor-summary + .company-history{margin-top: 20px;}
body:not(.portfolio-mode) .date-shortcuts{display: flex; gap: 8px; margin: 8px 0 16px;}
body:not(.portfolio-mode) .date-shortcuts button{font-size: .875rem; padding: 6px 12px;}
body:not(.portfolio-mode) .completion-date{max-width: 360px;}
body:not(.portfolio-mode) .journey-note{display: block; margin: 16px 0;}
body:not(.portfolio-mode) .journey-note textarea{width: 100%; min-height: 110px; margin-top: 8px;}
body:not(.portfolio-mode) .performance-grid{display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin: 20px 0;}
body:not(.portfolio-mode) .performance-row{margin-bottom: 18px;}
body:not(.portfolio-mode) .performance-row:last-child{margin-bottom: 0;}
body:not(.portfolio-mode) .performance-row small{display: block; margin-top: 5px; color: var(--muted);}
body:not(.portfolio-mode) .performance-row .barlabel{gap: 12px;}
body:not(.portfolio-mode) .performance-row .barlabel strong{white-space: nowrap;}
@media (max-width:800px){body:not(.portfolio-mode) .performance-grid{grid-template-columns: 1fr;}}
body:not(.portfolio-mode) .tracker-tabs{display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px;}
body:not(.portfolio-mode) .assessor-tracker{min-width: 980px;}
body:not(.portfolio-mode) .assessor-tracker td{vertical-align: top; padding-top: 18px; padding-bottom: 18px;}
body:not(.portfolio-mode) .assessor-tracker td small{display: block; margin-top: 6px; color: #666e79;}
body:not(.portfolio-mode) .assessor-tracker td:first-child{min-width: 150px;}
body:not(.portfolio-mode) .tracker-note{max-width: 290px; min-width: 200px; white-space: pre-wrap; overflow-wrap: anywhere;}
body:not(.portfolio-mode) .tracker-actions{display: flex; flex-direction: column; gap: 8px; min-width: 135px;}
body:not(.portfolio-mode) .tracker-alert{color: #a10d20; font-weight: 600;}
body:not(.portfolio-mode) .tracker-editor h3{margin: 24px 0 14px; border-bottom: 1px solid #e0e3e8; padding-bottom: 10px;}
body:not(.portfolio-mode) .tracker-editor .formgrid{gap: 18px;}
body:not(.portfolio-mode) .tracker-editor textarea{width: 100%; box-sizing: border-box; margin-top: 8px;}
body:not(.portfolio-mode) .tracker-editor .date-shortcuts{margin: 8px 0 20px;}
body:not(.portfolio-mode) .approved-queue{min-width: 850px;}
body:not(.portfolio-mode) .approved-queue td{vertical-align: top;}
body:not(.portfolio-mode) .approved-queue small{display: block; margin-top: 8px;}
body:not(.portfolio-mode) .approved-queue abbr{text-decoration: none;}
body:not(.portfolio-mode) .approved-queue .approval-notes td{background: #f7f8fa; padding: 14px 20px 20px; border-bottom: 2px solid #e1e4e9;}
body:not(.portfolio-mode) .approval-notes strong{font-size: 13px; color: #606975;}
body:not(.portfolio-mode) .approval-notes div{margin-top: 6px; white-space: pre-wrap; overflow-wrap: anywhere;}
body:not(.portfolio-mode) .approval-cards{display: grid; gap: 22px; margin-bottom: 24px;}
body:not(.portfolio-mode) .approval-card{background: #fff; border: 1px solid #d6dbe3; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 5px #19233508;}
body:not(.portfolio-mode) .approval-card-head{display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid #e3e6eb;}
body:not(.portfolio-mode) .approval-card-head h2{margin: 0; font-size: 18px;}
body:not(.portfolio-mode) .approval-card-head h2 .link{font-size: inherit; font-weight: 700; text-align: left;}
body:not(.portfolio-mode) .approval-card-details{display: grid; grid-template-columns: 1fr 1.2fr 1.5fr 1.3fr; margin: 0;}
body:not(.portfolio-mode) .approval-card-details>div{padding: 18px 22px; min-width: 0; border-right: 1px solid #e8ebef;}
body:not(.portfolio-mode) .approval-card-details>div:last-child{border-right: 0;}
body:not(.portfolio-mode) .approval-card-details dt{font-size: 12px; font-weight: 600; color: #606b7a; margin-bottom: 9px;}
body:not(.portfolio-mode) .approval-card-details dd{margin: 0; overflow-wrap: anywhere;}
body:not(.portfolio-mode) .approval-card-details small{display: block; color: #606b7a; margin-top: 7px;}
body:not(.portfolio-mode) .approval-card-details .badge{display: table; margin-top: 8px;}
body:not(.portfolio-mode) .approval-card-notes{background: #f7f8fa; border-top: 1px solid #e3e6eb; padding: 16px 22px 20px;}
body:not(.portfolio-mode) .approval-card-notes h3{font-size: 12px; color: #606b7a; margin: 0 0 8px;}
body:not(.portfolio-mode) .approval-card-notes p{margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55;}
@media (max-width:1000px){body:not(.portfolio-mode) .approval-card-details{grid-template-columns: 1fr 1fr;}
body:not(.portfolio-mode) .approval-card-details>div:nth-child(2){border-right: 0;}
body:not(.portfolio-mode) .approval-card-details>div:nth-child(-n+2){border-bottom: 1px solid #e8ebef;}}
@media (max-width:550px){body:not(.portfolio-mode) .approval-card-head{align-items: flex-start; flex-direction: column;}
body:not(.portfolio-mode) .approval-card-details>div{padding: 14px;}
body:not(.portfolio-mode) .approval-card-head,body:not(.portfolio-mode) .approval-card-notes{padding: 16px;}
body:not(.portfolio-mode) .approval-cards{gap: 18px;}}
body:not(.portfolio-mode) .submission-row{display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid #e2e5eb;}
body:not(.portfolio-mode) .submission-row small{display: block; margin-top: 6px; color: #647080;}
body:not(.portfolio-mode) .submission-section{border: 1px solid #dce1e8; border-radius: 10px; overflow: hidden; margin: 20px 0;}
body:not(.portfolio-mode) .submission-section h3{margin: 0; background: #f4f5f7; padding: 14px 18px;}
body:not(.portfolio-mode) .submission-section dl{margin: 0;}
body:not(.portfolio-mode) .submission-section dl>div{display: grid; grid-template-columns: 180px 1fr; padding: 12px 18px; border-top: 1px solid #e3e6eb; gap: 16px;}
body:not(.portfolio-mode) .submission-section dt{color: #606b7a;}
body:not(.portfolio-mode) .submission-section dd{margin: 0; white-space: pre-wrap; overflow-wrap: anywhere;}
@media (max-width:550px){body:not(.portfolio-mode) .submission-section dl>div{grid-template-columns: 1fr; gap: 6px;}
body:not(.portfolio-mode) .submission-row{align-items: flex-start; flex-direction: column;}}
body:not(.portfolio-mode) .milestone-body{padding: 18px 22px;}
body:not(.portfolio-mode) .milestone-group+.milestone-group{margin-top: 20px;}
body:not(.portfolio-mode) .milestone-group h3{font-size: 14px; color: #596372; margin: 0 0 8px;}
body:not(.portfolio-mode) .milestone-bar{display: grid; grid-template-columns: repeat(var(--steps),minmax(0,1fr)); list-style: none; padding: 0; margin: 0; gap: 3px; border-radius: 9px; overflow: hidden; background: #e1e5eb; border: 1px solid #e1e5eb;}
body:not(.portfolio-mode) .milestone{background: #f7f8fa; min-width: 0; position: relative;}
body:not(.portfolio-mode) .milestone button{display: grid; grid-template-columns: 18px minmax(0,1fr); grid-template-rows: auto auto; align-content: center; align-items: center; column-gap: 7px; row-gap: 3px; width: 100%; height: 100%; min-height: 68px; padding: 11px 12px; border: 0; border-radius: 0; background: transparent; text-align: left; line-height: 1.35; color: #586373;}
body:not(.portfolio-mode) .milestone strong{font-size: 14px; font-weight: 600;}
body:not(.portfolio-mode) .milestone small{grid-column: 2; font-size: 12px; color: inherit; font-weight: 400;}
body:not(.portfolio-mode) .milestone button>span{font-size: 16px; line-height: 1;}
body:not(.portfolio-mode) .milestone.done{background: #fcecef;}
body:not(.portfolio-mode) .milestone.done button{color: #9b1424;}
body:not(.portfolio-mode) .milestone.current{background: #cc1024;}
body:not(.portfolio-mode) .milestone.current button{color: white;}
body:not(.portfolio-mode) .milestone.started{background: #fff2d6;}
body:not(.portfolio-mode) .milestone.started button{color: #63440b;}
body:not(.portfolio-mode) .milestone.na{background: #edf0f3;}
body:not(.portfolio-mode) .milestone.na button{color: #66717e;}
body:not(.portfolio-mode) .milestone button:hover{box-shadow: inset 0 -3px 0 currentColor;}
body:not(.portfolio-mode) .milestone button:focus-visible{outline: 3px solid #1267bd; outline-offset: -3px;}
body:not(.portfolio-mode) .milestone-footer{display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px;}
body:not(.portfolio-mode) .milestone-hint{font-size: 13px; margin: 0;}
body:not(.portfolio-mode) .milestone-footer>button{font-size: 13px; padding: 6px 10px; flex-shrink: 0;}
@media (max-width:1150px){body:not(.portfolio-mode) .milestone-bar{grid-template-columns: repeat(3,minmax(0,1fr));}}
@media (max-width:550px){body:not(.portfolio-mode) .milestone-bar{grid-template-columns: repeat(2,minmax(0,1fr));}
body:not(.portfolio-mode) .milestone-body{padding: 16px;}
body:not(.portfolio-mode) .milestone-footer{align-items: flex-start; flex-direction: column; gap: 10px;}}
body:not(.portfolio-mode) .candidate-contact-line{display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; margin-bottom: 20px;}
body:not(.portfolio-mode) .candidate-contact-line a,body:not(.portfolio-mode) .candidate-contact-line .link{font-size: 14px;}
body:not(.portfolio-mode) .whatsapp-link{font-size: 12px; margin-left: 8px;}
body:not(.portfolio-mode) .support-countdown{display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; background: #f1f5fa; border-left: 4px solid #526b87; padding: 16px 18px; margin-top: 20px; border-radius: 6px;}
body:not(.portfolio-mode) .support-countdown strong{font-size: 18px;}
body:not(.portfolio-mode) .support-countdown span{color: #596372; font-size: 14px; align-self: center;}
body:not(.portfolio-mode) .support-urgent{background: #fff1dc; border-color: #a46513;}
body:not(.portfolio-mode) .assessor-record-actions{margin: 18px 0;}
body:not(.portfolio-mode) .assessor-progress-full{width: 100%;}
body:not(.portfolio-mode) .assessor-submit-footer{display: flex; justify-content: flex-end; border-top: 1px solid #dce1e8; padding: 22px 0; margin-top: 24px;}
body:not(.portfolio-mode) .company-contact-grid{display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin: 0 0 20px;}
body:not(.portfolio-mode) .company-contact-grid dt{font-size: 14px; color: #596372; margin-bottom: 8px;}
body:not(.portfolio-mode) .company-contact-grid dd{margin: 0; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere;}
@media (max-width:700px){body:not(.portfolio-mode) .company-contact-grid{grid-template-columns: 1fr;}}
body:not(.portfolio-mode) .source-chart{display: grid; gap: 16px;}
body:not(.portfolio-mode) .source-chart-row{display: grid; grid-template-columns: minmax(150px,260px) 1fr 40px; align-items: center; gap: 18px; font-size: 14px;}
body:not(.portfolio-mode) .source-chart-track{height: 16px; border-radius: 4px; background: #f0f2f5; overflow: hidden;}
body:not(.portfolio-mode) .source-chart-track>div{height: 100%; background: #ca1024; border-radius: 4px;}
body:not(.portfolio-mode) .source-chart-row strong{text-align: right;}
@media (max-width:600px){body:not(.portfolio-mode) .source-chart-row{grid-template-columns: minmax(100px,150px) 1fr 30px; gap: 10px;}}
body:not(.portfolio-mode) .milestone.na{background: #e8f4ed;}
body:not(.portfolio-mode) .milestone.na button{color: #23613f;}
body:not(.portfolio-mode) .assessor-progress-full .milestone-bar{grid-template-columns: repeat(7,minmax(0,1fr));}
body:not(.portfolio-mode) .assessor-progress-full .milestone button{padding: 12px 10px;}
body:not(.portfolio-mode) .assessor-progress-full .milestone strong{font-size: 14px;}
@media (max-width:1150px){body:not(.portfolio-mode) .assessor-progress-full .milestone-bar{display: flex; overflow-x: auto; scroll-snap-type: x proximity;}
body:not(.portfolio-mode) .assessor-progress-full .milestone{flex: 0 0 180px; scroll-snap-align: start;}}
body:not(.portfolio-mode) .assessor-progress-full .milestone-bar{grid-template-columns: repeat(8,minmax(0,1fr));}
@media (min-width:1151px) and (max-width:1400px){body:not(.portfolio-mode) .assessor-progress-full .milestone-bar{display: flex; overflow-x: auto;}
body:not(.portfolio-mode) .assessor-progress-full .milestone{flex: 0 0 165px;}}
body:not(.portfolio-mode) .assessor-vitals{display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; margin-bottom: 20px;}
body:not(.portfolio-mode) .assessor-vital{display: flex; flex-direction: column; align-items: flex-start; gap: 14px; text-align: left; padding: 22px; background: white; border: 1px solid #dfe2e8; border-radius: 12px; white-space: normal;}
body:not(.portfolio-mode) .assessor-vital strong{font-size: 36px;}
body:not(.portfolio-mode) .assessor-vital small{color: #637083; font-weight: 400;}
body:not(.portfolio-mode) .assessor-small-summary{display: flex; gap: 26px; align-items: center; flex-wrap: wrap; margin: 20px 0 26px;}
body:not(.portfolio-mode) .assessor-small-summary button{margin-left: auto;}
body:not(.portfolio-mode) .attention-note{font-size: 13px; color: #657080; margin: 8px 0 0; max-width: 850px;}
@media (max-width:1050px){body:not(.portfolio-mode) .assessor-vitals{grid-template-columns: repeat(2,minmax(0,1fr));}}
@media (max-width:600px){body:not(.portfolio-mode) .assessor-vitals{grid-template-columns: 1fr;}
body:not(.portfolio-mode) .assessor-small-summary{gap: 14px;}}
body:not(.portfolio-mode) .dashboard-greeting{align-items: flex-start; gap: 12px 24px;}
body:not(.portfolio-mode) .welcome-copy{flex: 1 1 440px; min-width: 0; max-width: 100%;}
body:not(.portfolio-mode) .welcome-title{font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere;}
body:not(.portfolio-mode) .welcome-title strong{font-size: 1.2rem;}
body:not(.portfolio-mode) .welcome-title>span{color: #444e5c;}
body:not(.portfolio-mode) .daily-fact{font-size: .875rem; line-height: 1.55; margin: 5px 0 0; color: #586373; overflow-wrap: anywhere; white-space: normal;}
body:not(.portfolio-mode) .daily-fact .fact-label{font-weight: 600; color: #465260;}
body:not(.portfolio-mode) .dashboard-greeting .last-login{flex: 0 1 auto; line-height: 1.6; padding-top: 3px;}
@media (max-width:650px){body:not(.portfolio-mode) .welcome-copy{flex-basis: 100%;}
body:not(.portfolio-mode) .dashboard-greeting{gap: 8px;}
body:not(.portfolio-mode) .dashboard-greeting .last-login{padding-top: 0;}}
body:not(.portfolio-mode) .heading.page-heading{margin-bottom: 16px; gap: 12px;}
body:not(.portfolio-mode) .heading.page-heading h1{margin: 0;}
body:not(.portfolio-mode) .company-group-toggle{display: inline-flex; align-items: center; gap: 9px; font-size: .875rem; font-weight: 600; cursor: pointer; padding: 9px 2px; margin-right: auto;}
body:not(.portfolio-mode) .company-group-toggle input{width: 18px; height: 18px; accent-color: var(--red); margin: 0;}
body:not(.portfolio-mode) .candidate-company-groups{display: grid; gap: 16px;}
body:not(.portfolio-mode) .candidate-company-group{border: 1px solid var(--line); border-radius: 10px; background: white; overflow: hidden;}
body:not(.portfolio-mode) .candidate-company-group>summary{padding: 16px 20px; cursor: pointer; background: #f8f9fb; line-height: 1.5;}
body:not(.portfolio-mode) .candidate-company-group[open]>summary{border-bottom: 1px solid var(--line);}
body:not(.portfolio-mode) .candidate-company-name{font-weight: 700; margin: 0 12px 0 5px; overflow-wrap: anywhere;}
body:not(.portfolio-mode) .candidate-company-name .link{font-size: 1rem; font-weight: 700; white-space: normal; text-align: left;}
body:not(.portfolio-mode) .company-group-count{display: inline-block; font-size: .875rem; color: #566171; white-space: nowrap;}
body:not(.portfolio-mode) .candidate-company-group table{table-layout: fixed; width: 100%; min-width: 650px;}
body:not(.portfolio-mode) .candidate-company-group td,body:not(.portfolio-mode) .candidate-company-group th{overflow-wrap: normal;word-break:normal;}
@media (max-width:650px){body:not(.portfolio-mode) .candidate-company-group>summary{padding: 12px;}
body:not(.portfolio-mode) .company-group-toggle{margin-right: 0;}}
@media print{body:not(.portfolio-mode) .company-group-toggle{display: none;}
body:not(.portfolio-mode) .candidate-company-group{break-inside: avoid;}
body:not(.portfolio-mode) .candidate-company-group::details-content{content-visibility: visible !important;}}
body:not(.portfolio-mode) .candidate-sort-button{display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; border-radius: 3px; background: transparent; color: inherit; font: inherit; font-weight: 600; text-align: left; line-height: 1.45;}
body:not(.portfolio-mode) .candidate-sort-button:hover{background: transparent; color: #25272b; text-decoration: underline;}
body:not(.portfolio-mode) .sort-arrow{font-size: .95rem; flex-shrink: 0; color: #5b6472;}
body:not(.portfolio-mode) th[aria-sort="ascending"] .candidate-sort-button,body:not(.portfolio-mode) th[aria-sort="descending"] .candidate-sort-button{color: #a6101a;}
@media print{body:not(.portfolio-mode) .candidate-sort-button{display: inline-flex !important;}}
body:not(.portfolio-mode) .table-sort-icon{flex: none; vertical-align: middle; overflow: visible;}
body:not(.portfolio-mode) .table-sort-icon path{stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .36;}
body:not(.portfolio-mode) .table-sort-icon[data-direction="ascending"] .sort-up,body:not(.portfolio-mode) .table-sort-icon[data-direction="descending"] .sort-down{opacity: 1; stroke-width: 2.2;}
body:not(.portfolio-mode) .table-sort-icon[data-direction="ascending"] .sort-down,body:not(.portfolio-mode) .table-sort-icon[data-direction="descending"] .sort-up{opacity: .17;}
body:not(.portfolio-mode) .candidate-sort-button:hover{text-decoration: none;}
body:not(.portfolio-mode) .candidate-sort-button:focus-visible{outline: 2px solid #385c90; outline-offset: 4px;}
@media print{body:not(.portfolio-mode) .table-sort-icon{display: none;}}
body:not(.portfolio-mode) .assessor-caseload .tablewrap td{padding: 12px 16px;}
body:not(.portfolio-mode) .assessor-caseload .filters{align-items: end;}
body:not(.portfolio-mode) .assessor-caseload .filters .company-group-toggle{display: flex; flex-direction: row; align-items: center; gap: 8px; padding-bottom: 9px;}
body:not(.portfolio-mode) .assessor-caseload .filters .company-group-toggle input{margin: 0;}
body:not(.portfolio-mode) .assessor-caseload table.assessment-notes-table{table-layout: fixed; width: 100%; min-width: 1080px;}
body:not(.portfolio-mode) .assessor-caseload table.assessment-notes-table.has-company{min-width: 1240px;}
body:not(.portfolio-mode) .assessment-notes-table col.assessment-name{width: 160px;}
body:not(.portfolio-mode) .assessment-notes-table col.assessment-company{width: 160px;}
body:not(.portfolio-mode) .assessment-notes-table col.assessment-support{width: 185px;}
body:not(.portfolio-mode) .assessment-notes-table col.assessment-contact{width: 140px;}
body:not(.portfolio-mode) .assessment-notes-table col.assessment-evidence{width: 135px;}
body:not(.portfolio-mode) .assessment-notes-table col.assessment-actions{width: 150px;}
body:not(.portfolio-mode) .assessor-caseload .assessment-notes-table th{width: auto; padding-left: 16px; padding-right: 16px; white-space: normal;}
body:not(.portfolio-mode) .assessor-caseload .assessment-notes-table td{min-width: 0; overflow-wrap: break-word;}
body:not(.portfolio-mode) .assessor-caseload .assessment-notes-table .tracker-note{min-width: 0; max-width: none; line-height: 1.5; overflow-wrap: anywhere;}
body:not(.portfolio-mode) .assessment-notes-table .tracker-actions{min-width: 0;}
body:not(.portfolio-mode) .assessment-notes-table .tracker-actions button{width: 100%; padding-left: 8px; padding-right: 8px;}
body:not(.portfolio-mode) .assessment-sort{display: flex; gap: 24px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #f8f9fb;}
body:not(.portfolio-mode) .assessment-sort button{font-size: .875rem;}
body:not(.portfolio-mode) .assessment-card{padding: 20px; border-bottom: 1px solid var(--line); background: white;}
body:not(.portfolio-mode) .assessment-card:last-child{border-bottom: 0;}
body:not(.portfolio-mode) .assessment-card-heading{display: flex; align-items: center; gap: 24px; margin-bottom: 18px; flex-wrap: wrap;}
body:not(.portfolio-mode) .assessment-card-heading .link{font-size: 1rem; text-align: left;}
body:not(.portfolio-mode) .assessment-card-heading small{display: block; margin-top: 5px; color: #666e79;}
body:not(.portfolio-mode) .assessment-support-summary{display: grid; gap: 5px; font-size: .875rem;}
body:not(.portfolio-mode) .assessment-support-summary>span,body:not(.portfolio-mode) .assessment-card-note span{color: #666e79; font-size: .875rem;}
body:not(.portfolio-mode) .assessment-card-actions{display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap;}
body:not(.portfolio-mode) .assessment-card-actions button{font-size: .875rem;}
body:not(.portfolio-mode) .assessment-stage-grid{display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); gap: 8px;}
body:not(.portfolio-mode) .assessment-stage{display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 9px; text-align: left; padding: 12px; min-height: 82px; background: #fafbfc; border: 1px solid #e1e5ea; font-size: .875rem; font-weight: 400; line-height: 1.35;}
body:not(.portfolio-mode) .assessment-stage strong{font-size: .875rem; color: #626b77; font-weight: 600;}
body:not(.portfolio-mode) .assessment-stage.is-complete{background: #f2f7fc; border-color: #dce6f1;}
body:not(.portfolio-mode) .assessment-stage.is-complete strong{color: #285681;}
body:not(.portfolio-mode) .assessment-stage.is-na{background: #fafafa; color: #666e79;}
body:not(.portfolio-mode) .assessment-card-note{display: grid; grid-template-columns: 125px minmax(0,1fr); gap: 20px; border-top: 1px solid #e5e8ec; margin-top: 16px; padding-top: 14px;}
body:not(.portfolio-mode) .assessment-contact{display: flex; flex-direction: column; gap: 8px; font-size: .875rem;}
body:not(.portfolio-mode) .assessment-latest p{margin: 7px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5;}
@media (max-width:650px){body:not(.portfolio-mode) .assessment-card{padding: 14px;}
body:not(.portfolio-mode) .assessment-card-actions{margin-left: 0;}
body:not(.portfolio-mode) .assessment-card-note{grid-template-columns: 1fr; gap: 12px;}
body:not(.portfolio-mode) .assessment-stage-grid{grid-template-columns: repeat(2,minmax(0,1fr));}}
@media print{body:not(.portfolio-mode) .assessment-sort,body:not(.portfolio-mode) .assessment-card-actions{display: none;}
body:not(.portfolio-mode) .assessment-card{break-inside: avoid;}
body:not(.portfolio-mode) .assessment-stage-grid{grid-template-columns: repeat(5,minmax(0,1fr));}}
body:not(.portfolio-mode) .assessment-cards{display: grid; gap: 18px; padding: 18px; background: #eef1f5;}
body:not(.portfolio-mode) .assessment-card,body:not(.portfolio-mode) .assessment-card:last-child{padding: 18px; border: 1px solid #ced5df; border-radius: 10px; box-shadow: 0 2px 3px #192b4510;}
body:not(.portfolio-mode) .assessment-card-heading{padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px solid #e5e8ee; gap: 22px;}
body:not(.portfolio-mode) .assessment-card-heading .link{display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 1.125rem; color: #172536;}
body:not(.portfolio-mode) .assessment-qualification{display: inline-block; padding: 4px 7px; border-radius: 4px; background: #eaf0f6; color: #465970; font-size: .875rem; font-weight: 600;}
body:not(.portfolio-mode) .assessment-stage-grid{gap: 8px;}
body:not(.portfolio-mode) .assessment-stage{min-height: 84px; gap: 12px; background: #fff; border-color: #dce1e8; padding: 10px;}
body:not(.portfolio-mode) .assessment-stage>span{font-weight: 600; color: #303a48;}
body:not(.portfolio-mode) .assessment-stage strong{display: inline-block; max-width: 100%; padding: 4px 7px; border-radius: 4px; background: #eff1f4; color: #59616d; font-weight: 500; line-height: 1.35;}
body:not(.portfolio-mode) .assessment-stage.is-complete{background: #fff; border-color: #dce1e8;}
body:not(.portfolio-mode) .assessment-stage.is-complete strong{background: #e3eef9; color: #234f79; font-weight: 600;}
body:not(.portfolio-mode) .assessment-stage.is-progress strong{background: #fff0d2; color: #76500c; font-weight: 600;}
body:not(.portfolio-mode) .assessment-stage.is-na strong{background: #f1f2f4; color: #626976;}
body:not(.portfolio-mode) .assessment-stage:hover{background: #f6f8fb; border-color: #8c9fb6;}
body:not(.portfolio-mode) .assessment-stage:focus-visible{outline: 2px solid #385c90; outline-offset: 2px;}
body:not(.portfolio-mode) .assessment-card-note{background: #f5f7fa; border: 1px solid #e6eaf0; border-radius: 6px; margin-top: 15px; padding: 13px 14px; gap: 18px;}
body:not(.portfolio-mode) .assessment-contact{border-right: 1px solid #dce2ea; padding-right: 14px;}
body:not(.portfolio-mode) .assessment-latest>span{font-weight: 500; color: #536174;}
body:not(.portfolio-mode) .assessment-latest p{color: #283342; margin-top: 7px;}
@media (max-width:650px){body:not(.portfolio-mode) .assessment-cards{padding: 10px; gap: 14px;}
body:not(.portfolio-mode) .assessment-card,body:not(.portfolio-mode) .assessment-card:last-child{padding: 14px;}
body:not(.portfolio-mode) .assessment-contact{border-right: 0; padding-right: 0;}
body:not(.portfolio-mode) .assessment-card-heading{gap: 14px;}}
@media print{body:not(.portfolio-mode) .assessment-cards{padding: 0; background: white; gap: 12px;}
body:not(.portfolio-mode) .assessment-card{box-shadow: none;}}
body:not(.portfolio-mode) .assessment-stage-grid{grid-template-columns: repeat(auto-fit,minmax(125px,1fr)); gap: 7px;}
body:not(.portfolio-mode) .assessment-stage{min-height: 68px; padding: 9px; gap: 7px; justify-content: flex-start;}
body:not(.portfolio-mode) .assessment-stage>span{line-height: 1.3;}
body:not(.portfolio-mode) .assessment-stage strong{margin-top: auto; padding: 3px 6px;}
@media (max-width:650px){body:not(.portfolio-mode) .assessment-stage-grid{grid-template-columns: repeat(2,minmax(0,1fr));}}
@media print{body:not(.portfolio-mode) .assessment-stage-grid{grid-template-columns: repeat(5,minmax(0,1fr));}}
body:not(.portfolio-mode) .assessment-stage-grid{grid-template-columns: repeat(6,minmax(0,1fr));}
@media (max-width:1100px){body:not(.portfolio-mode) .assessment-stage-grid{grid-template-columns: repeat(3,minmax(0,1fr));}}
@media (max-width:650px){body:not(.portfolio-mode) .assessment-stage-grid{grid-template-columns: repeat(2,minmax(0,1fr));}}
@media print{body:not(.portfolio-mode) .assessment-stage-grid{grid-template-columns: repeat(6,minmax(0,1fr));}}
body:not(.portfolio-mode) .candidate-title-summary{display: flex; align-items: center; gap: 22px; flex-wrap: wrap;}
body:not(.portfolio-mode) .candidate-live-total{display: inline-flex; align-items: center; gap: 12px; background: #fff; border: 2px solid #657286; border-radius: 7px; padding: 8px 12px; color: #243244; line-height: 1.25;}
body:not(.portfolio-mode) .candidate-live-total span{font-size: .875rem; font-weight: 600;}
body:not(.portfolio-mode) .candidate-live-total strong{font-size: 1.5rem; font-weight: 750; font-variant-numeric: tabular-nums;}
@media (max-width:650px){body:not(.portfolio-mode) .candidate-title-summary{gap: 12px;}}
body:not(.portfolio-mode) .assessor-caseload .page-heading{margin-bottom: 18px;}
body:not(.portfolio-mode) .candidate-title-summary{gap: 18px;}
body:not(.portfolio-mode) .candidate-live-total{border: 0; border-left: 1px solid #a7b0bc; border-radius: 0; padding: 3px 0 3px 18px; background: transparent; gap: 7px; color: #465365;}
body:not(.portfolio-mode) .candidate-live-total strong{font-size: 1.125rem; color: #243244;}
body:not(.portfolio-mode) .candidate-live-total span{font-size: 1rem; font-weight: 400;}
body:not(.portfolio-mode) .candidate-toolbar{background: white; border: 1px solid #cdd4de; border-radius: 10px; margin-bottom: 22px; overflow: hidden;}
body:not(.portfolio-mode) .candidate-toolbar-top{display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid #e1e5eb;}
body:not(.portfolio-mode) .candidate-toolbar .candidate-view-tabs{margin: 0; gap: 3px; padding: 3px; background: #eef1f5; border-radius: 8px;}
body:not(.portfolio-mode) .candidate-toolbar .candidate-view-tabs button{border: 0; background: transparent; color: #536073; padding: 9px 14px;}
body:not(.portfolio-mode) .candidate-toolbar .candidate-view-tabs button.primary{background: #263547; color: white; box-shadow: 0 1px 3px #15213320;}
body:not(.portfolio-mode) .candidate-toolbar .company-group-toggle{margin: 0; padding: 0; gap: 10px; display: flex; flex-direction: row; align-items: center; color: #344153;}
body:not(.portfolio-mode) .candidate-toolbar .company-group-toggle input{appearance: none; -webkit-appearance: none; display: block; position: relative; flex: 0 0 38px; width: 38px; height: 22px; padding: 0; margin: 0; border: 1px solid #7c8898; border-radius: 20px; background: #d9dfe7; cursor: pointer;}
body:not(.portfolio-mode) .candidate-toolbar .company-group-toggle input:before{content: ''; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: white; box-shadow: 0 1px 2px #0003;}
body:not(.portfolio-mode) .candidate-toolbar .company-group-toggle input:checked{background: #263547; border-color: #263547;}
body:not(.portfolio-mode) .candidate-toolbar .company-group-toggle input:checked:before{transform: translateX(16px);}
body:not(.portfolio-mode) .assessor-caseload .candidate-toolbar-filters{padding: 14px 16px; margin: 0; display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap;}
body:not(.portfolio-mode) .assessor-caseload .candidate-toolbar-filters>label{display: flex; flex-direction: column; gap: 7px; min-width: 125px; flex: 1 1 140px; font-size: .875rem; color: #566273; font-weight: 500;}
body:not(.portfolio-mode) .assessor-caseload .candidate-toolbar-filters>label:has([name="candidateAttention"]){flex: 1.6 1 220px;}
body:not(.portfolio-mode) .assessor-caseload .candidate-toolbar-filters select{margin: 0; width: 100%; height: 40px; align-self: stretch; color: #263240; border-color: #cbd2dc; padding: 8px 10px;}
body:not(.portfolio-mode) .candidate-export-actions{display: flex; align-items: center; gap: 8px; margin-left: auto;}
body:not(.portfolio-mode) .candidate-export-actions button{height: 40px; white-space: nowrap;}
@media (max-width:650px){body:not(.portfolio-mode) .candidate-title-summary{align-items: baseline; gap: 10px;}
body:not(.portfolio-mode) .candidate-live-total{padding-left: 10px;}
body:not(.portfolio-mode) .candidate-toolbar-top{padding: 12px;}
body:not(.portfolio-mode) .assessor-caseload .candidate-toolbar-filters{padding: 12px;}
body:not(.portfolio-mode) .candidate-export-actions{margin-left: 0;}
body:not(.portfolio-mode) .candidate-toolbar .company-group-toggle{min-height: 32px;}}
@media print{body:not(.portfolio-mode) .candidate-toolbar{display: none;}}
/* Connected form defaults must not offset the original toolbar alignment. */
body:not(.portfolio-mode) .assessor-caseload .candidate-toolbar-filters>label{margin:0}

#company-switcher{display:block;margin-top:12px;font-size:12px}#company-switcher select{display:block;width:100%;max-width:100%;margin-top:4px;padding:8px;border:1px solid #ccc;border-radius:5px;background:white;color:#222}

/* Match the prototype's unboxed mini-calendar controls. */
body:not(.portfolio-mode) .sidebar .mini-calendar-heading button{border:0;background:transparent;box-shadow:none;color:#243446}
body:not(.portfolio-mode) .sidebar .mini-calendar-heading button:hover{background:#e9eef5}

/* Published IQA documents retain live revisions and actions in the reference document style. */
body:not(.portfolio-mode) .iqa-prototype-report{background:white;padding:24px;margin:20px 0;border:1px solid #d4d9df;border-radius:10px}
.iqa-document-masthead{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 0 20px;margin:0 0 20px;border-bottom:3px solid #b20e25}
.iqa-document-masthead img{width:172px;max-height:80px;object-fit:contain}
.iqa-document-masthead small{font-size:11px;letter-spacing:.08em;font-weight:700}
body:not(.portfolio-mode) .iqa-document-masthead h2{font-size:26px;margin:6px 0 0}
body:not(.portfolio-mode) .iqa-prototype-report table{font-size:14px;line-height:1.45;table-layout:fixed}
body:not(.portfolio-mode) .iqa-prototype-report td,body:not(.portfolio-mode) .iqa-prototype-report th{padding:10px 13px;border:1px solid #ccd0d5;vertical-align:top;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere}
body:not(.portfolio-mode) .iqa-prototype-report th{font-size:12px;font-weight:600;line-height:1.45;background:#f2f4f7;width:50%}
body:not(.portfolio-mode) .iqa-prototype-report .iqa-document-section{background:#e9eef5;font-size:14px}
@media(max-width:600px){body:not(.portfolio-mode) .iqa-prototype-report{padding:14px}.iqa-document-masthead{align-items:flex-start;flex-direction:column}}

body:not(.portfolio-mode) .payment-parity-tabs{display:flex;gap:5px;margin:24px 12px -1px;position:relative;z-index:1;flex-wrap:wrap}
body:not(.portfolio-mode) .payment-parity-tabs button{padding:15px 20px;border:1px solid #b4beca;border-bottom:0;border-radius:12px 12px 0 0;background:#edf1f6;color:#52606f;margin:0;font-size:14px;font-weight:600}
body:not(.portfolio-mode) .payment-parity-tabs button.active{background:white;color:#243446;box-shadow:inset 0 3px #243446}
body:not(.portfolio-mode) .payment-parity-sheet{background:white;border:1px solid #8e9aa8;border-radius:12px;padding:24px;min-width:0}
body:not(.portfolio-mode) .payment-parity-sheet .tablewrap{max-width:100%;overflow-x:auto}
@media(max-width:600px){body:not(.portfolio-mode) .payment-parity-sheet{padding:14px}body:not(.portfolio-mode) .payment-parity-tabs{margin-left:0;margin-right:0}body:not(.portfolio-mode) .payment-parity-tabs button{padding:12px}}

body:not(.portfolio-mode) .assessor-caseload>.candidate-view-tabs{display:flex;gap:5px;margin:24px 12px -1px;position:relative;z-index:1;border:0;padding:0;background:transparent}
body:not(.portfolio-mode) .assessor-caseload>.candidate-view-tabs button{padding:15px 20px;border:1px solid #b4beca;border-bottom:0;border-radius:12px 12px 0 0;background:#edf1f6;color:#52606f;margin:0;font-size:14px;font-weight:600}
body:not(.portfolio-mode) .assessor-caseload>.candidate-view-tabs button.primary{background:white;color:#243446;box-shadow:inset 0 3px #243446}
body:not(.portfolio-mode) .assessor-caseload .candidate-live-total{margin-right:auto;margin-left:18px}

body:not(.portfolio-mode) .iqa-prototype-report .iqa-document-section h3{font-size:14px;font-weight:600;margin:0;line-height:1.45}

/* Candidate identity and focused daily workspace. */
#content .crm-candidate-name{display:flex;align-items:center;gap:12px;text-align:left;min-width:0}
#content .crm-candidate-avatar{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;min-width:38px;flex:0 0 38px;object-fit:cover;border-radius:50%;background:#eeeeef;color:#454549;font-size:13px;font-weight:700;overflow:hidden}
#content .crm-candidate-name>div{min-width:0}
#content .crm-candidate-name small{display:block;margin-top:4px}
#content .candidate-record-tabs{display:flex;gap:4px;flex-wrap:nowrap;overflow-x:auto;margin:20px 0 0;border-bottom:1px solid #d5d5d8;padding:0}
#content .candidate-record-tabs>button{margin:0;white-space:nowrap;border:0;border-bottom:3px solid transparent;border-radius:6px 6px 0 0;background:transparent;padding:13px 18px;color:#555}
#content .candidate-record-tabs>button[aria-selected=true]{border-bottom-color:#bd2433;color:#262629;background:#fff;font-weight:700}
#content .candidate-record-pane{padding-top:20px}
#content .candidate-record-pane[hidden]{display:none!important}
#content .candidate-overview-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:24px 0}
#content .candidate-overview-facts>div{padding:18px;border:1px solid #e0e0e2;border-radius:8px}
#content .candidate-overview-facts h3{margin-top:0}
#content .candidate-record-pane .candidate-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px}
#content .candidate-record-pane .candidate-detail-grid dd{overflow-wrap:anywhere}
#content .candidate-record-pane .candidate-disclosure{margin:0;padding:18px 0;border-bottom:1px solid #e0e0e2}
#content .candidate-add-note{margin-bottom:20px;padding:16px;background:#f7f7f8;border:1px solid #dedee0;border-radius:8px}
#content .candidate-add-note>summary{font-weight:700;cursor:pointer}
#content .candidate-add-note[open]>summary{margin-bottom:16px}
#content .candidate-record-panes .actions,#content .candidate-overview-heading>.actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#content .candidate-next-action{font-size:16px;margin:14px 0}
#content .assessor-daily-heading{padding:10px 0 22px;margin-bottom:22px;gap:16px}
#content .assessor-daily-heading h1{font-size:26px;margin:0 0 6px;color:#303034}
#content .assessor-daily-heading p{margin:0}
#content .assessor-daily-columns{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:24px;align-items:start}
#content .assessor-daily-columns>div{min-width:0}
#content .assessor-daily-dashboard .panel{margin-bottom:24px}
#content .assessor-priority-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
#content .assessor-priority-filters>button{margin:0;background:#f3f3f4;color:#48484d;border:1px solid #d8d8db;border-radius:18px;padding:7px 12px}
#content .assessor-priority-filters>button[aria-pressed=true]{background:#343438;border-color:#343438;color:white}
#content .assessor-priorities .task{padding:16px 0;gap:12px;align-items:center;min-height:0}
#content .assessor-priorities .taskmain>strong{font-size:15px}
#content .assessor-priorities .task-summary{margin:8px 0}
#content .assessor-priorities .manual-task-meta:first-of-type,#content .assessor-priorities .activitytext{display:none}
#content .assessor-daily-dashboard .actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}
#content .daily-appointment{display:grid;gap:6px;border-bottom:1px solid #e6e6e8;padding:14px 0}
#content .daily-appointment:first-child{padding-top:0}
#content .daily-appointment>strong{font-size:15px}
#content .daily-caseload-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}
#content .daily-caseload-stats>div{display:grid;gap:6px}
#content .daily-caseload-stats strong{font-size:26px;color:#303034}
#content .daily-caseload-stats span{font-size:13px;color:#626268}
#content .daily-message{width:100%;background:white;border:0;border-bottom:1px solid #e2e2e5;border-radius:0;padding:12px 0;color:#343438}
#content .assessor-daily-columns .task{gap:12px}
#content .assessor-daily-columns .panelbody>button{margin-right:12px;margin-top:12px}
#content .crm-progress-value,#content .crm-assessment-progress strong{white-space:nowrap;flex-shrink:0}
@media(max-width:1050px){#content .assessor-daily-columns{grid-template-columns:minmax(0,1fr)}#content .assessor-daily-columns>div:last-child{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}}
@media(max-width:650px){#content .assessor-daily-columns>div:last-child,#content .candidate-overview-facts,#content .candidate-record-pane .candidate-detail-grid{grid-template-columns:minmax(0,1fr)}#content .daily-caseload-stats{grid-template-columns:repeat(2,minmax(0,1fr))}#content .assessor-priorities .task{flex-wrap:wrap}#content .assessor-priorities .task>.actions{margin-left:0;width:100%}#content .candidate-overview-heading{align-items:flex-start;gap:16px}#content .candidate-overview-heading>.actions{width:100%}}
#content .overall-assessment-meter>strong{white-space:nowrap;flex:0 0 auto;min-width:3.2em}
/* Keep support readable without competing with the candidate's workflow stage. */
body:not(.portfolio-mode) table.crm-candidate-table{table-layout:fixed;width:100%;min-width:1100px}
body:not(.portfolio-mode) .crm-candidate-table th.crm-qualification-column{width:130px}
body:not(.portfolio-mode) .crm-candidate-table .crm-qualification-column .link{white-space:nowrap}
body:not(.portfolio-mode) .crm-candidate-table th.crm-stage-column{width:180px}
body:not(.portfolio-mode) .crm-candidate-table .crm-support-column{width:210px;padding-left:20px;padding-right:20px}
body:not(.portfolio-mode) .crm-candidate-table [data-crm-column="activity"]{white-space:nowrap}
body:not(.portfolio-mode) .crm-candidate-table th{white-space:nowrap}
body:not(.portfolio-mode) .crm-candidate-table th:last-child,body:not(.portfolio-mode) .crm-candidate-table td:last-child{width:120px}
body:not(.portfolio-mode) .crm-support-status{display:grid;gap:4px;line-height:1.4;text-align:left}
body:not(.portfolio-mode) .crm-support-status strong{font-size:.875rem;font-weight:600;white-space:nowrap;color:#414141}
body:not(.portfolio-mode) .crm-support-status small{margin:0!important;white-space:nowrap;color:#666;font-size:.75rem}
body:not(.portfolio-mode) .crm-support-status.is-ending strong,body:not(.portfolio-mode) .crm-support-status.is-expired strong{color:#a51d2d}
body:not(.portfolio-mode) .crm-support-status.is-ending,body:not(.portfolio-mode) .crm-support-status.is-expired{border-left:3px solid #a51d2d;padding-left:8px}
/* A consistent rhythm for grouped and ungrouped candidate lists. */
#content table.crm-candidate-table th,#content table.crm-candidate-table td{box-sizing:border-box;padding:16px 14px;text-align:left;vertical-align:middle;overflow-wrap:normal;word-break:normal}
#content table.crm-candidate-table th{padding-top:13px;padding-bottom:13px;font-size:12px;line-height:1.4}
#content table.crm-candidate-table th:first-child,#content table.crm-candidate-table td:first-child{padding-left:18px}
#content table.crm-candidate-table th:last-child,#content table.crm-candidate-table td:last-child{padding-right:18px;text-align:right;width:96px}
#content table.crm-candidate-table td:last-child button{display:inline-flex;align-items:center;justify-content:center;min-width:62px;min-height:36px;padding:8px 12px;white-space:nowrap;font-size:13px;line-height:1.3}
#content table.crm-candidate-table .crm-candidate-name>div{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}
#content table.crm-candidate-table .crm-candidate-name>div>.badge{width:fit-content;font-size:11px;padding:3px 7px;line-height:1.3}
#content table.crm-candidate-table .crm-candidate-name small{margin:0;line-height:1.35;font-size:12px}
#content table.crm-candidate-table .crm-support-column{width:190px}
#content table.crm-candidate-table .crm-support-status strong{font-size:13px}
#content table.crm-candidate-table td[data-crm-column="activity"]{font-size:13px;color:#555}

/* Candidate overview: consistent card footers and compact task actions. */
#content #workspace-panel-overview>.panel>.panelbody{padding:24px}
#content #workspace-panel-overview .candidate-next-action{margin:16px 0;line-height:1.5}
#content #workspace-panel-overview .panelbody>button{margin:0}
#content .candidate-overview-facts{gap:24px;margin:24px 0 28px;align-items:stretch}
#content .candidate-overview-facts>div{display:flex;flex-direction:column;padding:22px;min-width:0}
#content .candidate-overview-facts>div:empty{display:none}
#content .candidate-overview-facts h3{margin:0 0 18px;font-size:16px}
#content .candidate-overview-facts .candidate-detail-grid{margin:0 0 20px;row-gap:18px}
#content .candidate-overview-facts .candidate-card-actions{margin-top:auto;padding-top:4px;gap:12px}
#content .candidate-card-actions>button{margin:0;min-height:38px}
#content .candidate-overview-tasks>h3{margin:0 0 16px;font-size:16px}
#content .candidate-overview-tasks>div{border:1px solid #e0e0e2;border-radius:8px;overflow:hidden}
#content .candidate-overview-tasks .task{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,190px);gap:24px;align-items:start;padding:20px;margin:0;border-bottom:1px solid #e7e7ea}
#content .candidate-overview-tasks .task:last-child{border-bottom:0}
#content .candidate-overview-tasks .taskmain{min-width:0}
#content .candidate-overview-tasks .taskmain>strong{display:block;margin-bottom:10px}
#content .candidate-overview-tasks .task-summary{margin:0 0 10px}
#content .candidate-overview-tasks .manual-task-meta{margin:4px 0;line-height:1.45}
#content .candidate-overview-tasks .activitytext{margin:12px 0 0;line-height:1.5}
#content .candidate-overview-tasks .task>.actions{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin:0}
#content .candidate-overview-tasks .task>.actions>button{margin:0;min-height:38px;white-space:normal}
@media(max-width:650px){#content #workspace-panel-overview>.panel>.panelbody{padding:16px}#content .candidate-overview-facts>div{padding:18px}#content .candidate-overview-tasks .task{grid-template-columns:minmax(0,1fr);gap:16px;padding:16px}#content .candidate-overview-tasks .task>.actions{flex-direction:row;flex-wrap:wrap}#content .candidate-overview-tasks .task>.actions>button{flex:1 1 auto}}


/* Candidate details: distinct contact/team sections and separated actions. */
#content .candidate-personal-panel>.panelbody{padding:24px}
#content .candidate-details-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:24px;align-items:stretch}
#content .candidate-details-layout>section{min-width:0;padding:24px;border:1px solid #e0e0e2;border-radius:8px;background:#fff}
#content .candidate-details-layout h3{font-size:16px;line-height:1.4;margin:0 0 22px;color:#333}
#content .candidate-details-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
#content .candidate-details-facts>div,#content .candidate-details-facts .candidate-detail-grid{display:contents}
#content .candidate-details-facts .candidate-detail-grid>div{min-width:0;margin:0;padding:0}
#content .candidate-details-facts dt{margin:0 0 7px;color:#62666c;font-size:13px;line-height:1.4}
#content .candidate-details-facts dd{margin:0;line-height:1.5;font-weight:600;overflow-wrap:anywhere}
#content .candidate-details-people{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#content .candidate-details-people .candidate-team-person{display:flex;gap:12px;align-items:flex-start;min-width:0;margin:0;padding:18px;background:#f7f7f8;border:1px solid #e7e7e9;border-radius:8px}
#content .candidate-details-people .candidate-team-person>div:last-child{display:flex;flex-direction:column;gap:6px;min-width:0;line-height:1.45}
#content .candidate-details-people .candidate-team-person small{color:#62666c;font-size:13px}
#content .candidate-details-people .candidate-team-person a,#content .candidate-details-people .candidate-team-person span{overflow-wrap:anywhere;font-size:14px}
#content .candidate-details-people .message-avatar{width:40px;height:40px;flex:0 0 40px;border-radius:50%;object-fit:cover}
#content .candidate-team-actions{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0 0;padding:0}
#content .candidate-personal-panel>.panelbody>.candidate-disclosure{margin-top:24px;padding:20px 0 0;border-top:1px solid #e0e0e2;border-bottom:0}
#content .candidate-personal-panel>.panelbody>.candidate-disclosure>summary{padding:0;line-height:1.5}
#content .candidate-personal-panel>.panelbody>.candidate-disclosure[open]>div{padding-top:20px}
@media(max-width:1100px){#content .candidate-details-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:650px){#content .candidate-personal-panel>.panelbody{padding:16px}#content .candidate-details-layout{gap:16px}#content .candidate-details-layout>section{padding:18px}#content .candidate-details-facts,#content .candidate-details-people{grid-template-columns:minmax(0,1fr)}#content .candidate-team-actions>button{max-width:100%;white-space:normal;text-align:center}}


/* Candidate qualification documents: calm read view, editing in the options menu. */
.candidate-qualification-tab .panelhead{display:flex;align-items:center;justify-content:space-between;gap:12px}
.candidate-qualification-tab .panelhead h2{margin:0}
.candidate-qualification-tab .panelbody{padding:24px}
#content .candidate-qualification-summary .candidate-detail-grid{gap:24px 36px;margin:0}
#content .candidate-qualification-summary .candidate-detail-grid dd{margin-top:6px;overflow-wrap:anywhere}
#content .candidate-qualification-summary .candidate-support-dates{margin-top:24px;padding-top:24px;border-top:1px solid #e0e0e0}
#content .candidate-qualification-summary .candidate-support-dates .candidate-detail-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.candidate-qualification-tab .candidate-disclosure{margin-top:24px;padding-top:18px;border-top:1px solid #e0e0e0;border-bottom:0}
.candidate-qualification-tab .candidate-disclosure>summary{padding:0 0 8px}
.candidate-document-cards{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:stretch}
.candidate-document-cards>.panel{min-width:0;margin:0}
.candidate-document-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px;padding:0}
.candidate-document-row+.candidate-document-row{margin-top:20px;padding-top:20px;border-top:1px solid #e0e0e0}
.candidate-document-copy{display:grid;gap:8px;min-width:0;flex:1 1 240px;overflow-wrap:anywhere}
.candidate-document-copy small{color:#666;line-height:1.6}
.candidate-document-row .actions,.candidate-document-dialog .actions{display:flex;flex-wrap:wrap;gap:12px;margin:0}
.candidate-document-link{display:inline-flex;align-items:center;min-height:40px;padding:9px 14px;border:1px solid #ccc;border-radius:6px;background:#fff;color:#333;text-decoration:none;font-weight:600;box-sizing:border-box}
.candidate-document-link:hover{background:#f4f4f4;border-color:#777}
.candidate-document-link:focus-visible{outline:2px solid #b4152b;outline-offset:3px}
.candidate-qualification-tab .cv-section>p{line-height:1.6;margin:12px 0 20px}
.candidate-qualification-tab .cv-upload-form{margin:20px 0 12px;display:grid;gap:12px}
.candidate-qualification-tab .cv-upload-form>label{margin:0}
.candidate-qualification-tab .cv-upload-form>p:empty{display:none}
.candidate-qualification-tab .cv-upload-form>button{justify-self:start;margin:0}
.candidate-qualification-tab .cv-section>.cv-upload-form+button{margin:0}
.candidate-document-dialog form{display:grid;gap:20px}
.candidate-document-dialog form>h2,.candidate-document-dialog form>p,.candidate-document-dialog form>label{margin:0}
.candidate-document-dialog .candidate-document-row{padding:16px;background:#f7f7f7;border:1px solid #ddd;border-radius:8px}
.candidate-document-dialog form>p:empty{display:none}
@media(max-width:1100px){.candidate-document-cards{grid-template-columns:minmax(0,1fr)}}
@media(max-width:650px){.candidate-qualification-tab .panelbody{padding:18px}#content .candidate-qualification-summary .candidate-detail-grid,#content .candidate-qualification-summary .candidate-support-dates .candidate-detail-grid{grid-template-columns:minmax(0,1fr);gap:20px}.candidate-document-dialog{max-width:calc(100vw - 24px)}.candidate-document-dialog .actions{width:100%}}
#content .candidate-qualification-summary .candidate-detail-grid dt{font-size:13px;color:#666}
#content .candidate-qualification-summary .candidate-detail-grid dd{margin:6px 0 0;font-weight:600;line-height:1.5}
#content .candidate-qualification-tab .candidate-disclosure{margin-top:24px;padding:18px 0 0;border-top:1px solid #e0e0e0;border-bottom:0}
#content .candidate-qualification-tab .candidate-disclosure[open]>div{padding-top:18px}
#content .candidate-qualification-tab .cv-section{gap:12px}
#content .candidate-qualification-tab .cv-section>p{margin:0;line-height:1.6}
#content .candidate-qualification-tab .cv-upload-form{margin:8px 0 0;padding:0;border:0}
#content .candidate-qualification-tab .cv-section button.primary,dialog.candidate-document-dialog button.primary{background:#343438;border-color:#343438}
dialog.candidate-document-dialog .actions{margin:0;padding:0;gap:12px}
dialog.candidate-document-dialog .candidate-document-row>.actions{justify-content:flex-start;margin:0;padding:0}
dialog.candidate-document-dialog::backdrop{background:rgba(30,30,32,.5)}


/* Candidate application history: compact answers and a separate profiling summary. */
#content .candidate-application-panel>.panelhead{display:flex;align-items:center;justify-content:space-between;gap:12px}
#content .candidate-application-panel>.panelhead h2{margin:0}
#content .candidate-application-panel>.panelbody{padding:24px}
#content .candidate-application-panel .crm-journey-columns{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}
#content .candidate-application-panel .crm-journey-columns>section{min-width:0;padding:20px;border:1px solid #e0e0e0;border-radius:8px;background:#fff}
#content .candidate-application-panel .crm-journey-columns>section>h3{margin:0 0 16px}
#content .candidate-application-panel .crm-journey-columns>section>p{margin:10px 0;line-height:1.6}
#content .candidate-application-panel .application-answer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 32px;margin:24px 0}
#content .candidate-application-panel .application-answer-grid .record-note{padding:0;border:0;min-width:0;white-space:normal;overflow-wrap:anywhere}
#content .candidate-application-panel .application-answer-grid strong{display:block;color:#666;font-size:13px;font-weight:500}
#content .candidate-application-panel .application-answer-grid p{margin:6px 0 0;white-space:pre-wrap;line-height:1.6}
#content .candidate-application-panel>.panelbody>.record-note{padding:0 0 24px;margin:0 0 24px;border-bottom:1px solid #e0e0e0;white-space:normal}
#content .candidate-application-panel>.panelbody>.record-note p{margin:8px 0 0;line-height:1.6}
#content .candidate-application-panel .crm-journey-columns>section>strong{display:block;margin-top:20px;font-size:13px;color:#666}
#content .candidate-application-panel .crm-journey-columns h4{margin:20px 0 8px}
#content .candidate-application-panel .crm-journey-columns small{display:block;color:#666;line-height:1.6}
#content .candidate-application-panel .profiling-workflow-actions:empty{display:none}
.application-edit-dialog .application-edit-choices{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin:24px 0}
.application-edit-dialog .application-edit-choices button{margin:0;text-align:left}
@media(max-width:650px){#content .candidate-application-panel>.panelbody{padding:16px}#content .candidate-application-panel .crm-journey-columns>section{padding:16px}#content .candidate-application-panel .application-answer-grid{grid-template-columns:minmax(0,1fr);gap:18px}}

@media(min-width:1101px){#content .candidate-document-cards>.panel>.panelhead{min-height:80px;box-sizing:border-box}}

/* Keep the assessor's default dashboard in balanced rows. */
#content .assessor-daily-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:stretch}
#content .assessor-daily-columns>div:not(.panel){display:contents}
#content .assessor-daily-columns [data-dashboard-widget="common.diary"]{order:1}
#content .assessor-daily-columns [data-dashboard-widget="common.messages"]{order:2}
#content .assessor-daily-columns [data-dashboard-widget="assessor.priorities"]{order:3}
#content .assessor-daily-columns [data-dashboard-widget="assessor.induction"]{order:4}
#content .assessor-daily-columns [data-dashboard-widget="assessor.expiry"]{order:5}
#content .assessor-daily-columns>.connections-dashboard{order:6;width:auto;max-width:none;margin:0}
#content .assessor-daily-columns .assessor-priorities>.panelbody{display:flex;flex-direction:column;overflow:hidden}
#content .assessor-daily-columns .assessor-priority-list{flex:1;min-height:0;overflow:auto}
#content .assessor-daily-columns .assessor-priority-footer{flex-shrink:0;margin-top:16px;padding-top:12px}
#content .assessor-daily-columns .assessor-priority-filters{flex-shrink:0;gap:12px}
@media(max-width:900px){
 html:not(.full-desktop-view) #content .assessor-daily-columns{grid-template-columns:minmax(0,1fr)}
 html:not(.full-desktop-view) #content .assessor-daily-columns .assessor-priority-list{overflow:visible}
}
