/* Workspace presentation only. Status values and edit-session state remain server-owned. */
:root{--layout-gap:12px}
.uiIcon{width:16px;height:16px;vertical-align:middle;margin-right:6px;flex:none}
.topbar{gap:20px;border-bottom:1px solid #dce4e3;box-shadow:none}
.topbar__actions{gap:10px;overflow:visible}
.topbar__group{padding:0;border:0;background:none}
.topbar__sync{border:0;background:none;color:#166542;font-size:12px}
.topbarMenu{position:relative;display:block;flex:none}
.topbarMenu>summary{cursor:pointer;padding:8px 10px;font-size:13px;font-weight:650;white-space:nowrap;border-radius:6px}
.topbarMenu>summary:hover,.topbarMenu[open]>summary{background:#edf3f1}
.topbarMenu__body{position:absolute;right:0;top:calc(100% + 8px);width:260px;padding:6px;background:#fff;border:1px solid #d4dedd;box-shadow:0 8px 28px #172d3226;border-radius:8px;z-index:70;display:flex;flex-direction:column;gap:3px}
.topbarMenu__body>.btn{text-align:left;justify-content:flex-start;border:0;background:none;color:#17312d;padding:10px;white-space:normal}
.topbarMenu__body>.btn:hover{background:#edf4f1}
.technicalBackup{padding:10px;font-size:12px;line-height:1.5;border-top:1px solid #e0e7e5}
.technicalBackup summary{cursor:pointer;font-weight:650}
.userBadge{border:0;background:none;padding:0}
.workspace{position:relative;gap:12px;align-items:start}
.sidebar,.paper,.statusbar,.revisionsDock{box-shadow:none;border:1px solid #dce4e3;border-radius:8px}
.sidebar__title,.rightRail__title,.revisionsDock__title{font-size:16px}
.paper{padding:24px}
.paper .label,.paper .field,.paper .fieldHelp,.paper .signatureField{font-family:inherit}
.cb:disabled{opacity:1;cursor:default}
.cb[data-dim="1"]:disabled{opacity:.22}
#markSeg .segBtn--active:disabled{opacity:1}
.section__title{font-size:14px;font-weight:650;text-decoration:none;line-height:1.5;border-bottom:1px solid #e1e9e5;padding-bottom:5px}
.section__subtitle{font-size:12px;font-weight:500;line-height:1.5}
.btn,.segBtn{font-weight:650}
.legend{flex-wrap:wrap;gap:8px 12px}
.legend__item{white-space:nowrap;font-weight:600}
.fieldHelp{font-size:11px;font-weight:400;line-height:1.45}
.headerFields{gap:10px}
.searchPanel{background:none;border:0}
.searchInput{background-image:url('../assets/ui-icons/search.svg');background-repeat:no-repeat;background-size:16px;background-position:12px center;padding-left:36px}
.listTools{background:none;border:0;padding:0}
.listTools .btn--primary{background:#fff;color:#006c38;border-color:#bfd4c8}
#btnSelectAllResults{font-weight:400;color:#46625a}
.recordList{display:block;overflow:auto;overflow-anchor:none;max-height:420px;height:420px;contain:layout style;scrollbar-gutter:stable}
.recordsTable{min-width:1060px}
.recordsTable th{height:34px}
.recordsTable .record{height:40px}
.recordsTable td{height:40px;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:6px 10px}
.recordsTable .recordStatus{flex-wrap:nowrap;gap:8px}
.recordsTable th:first-child,.recordsTable td:first-child{position:sticky;left:0;width:46px;background:#f7faf8;z-index:2}
.recordsTable th:nth-child(2),.recordsTable td:nth-child(2){position:sticky;left:46px;width:190px;background:#f7faf8;z-index:2;box-shadow:1px 0 #dce5e0}
.recordsTable th:first-child,.recordsTable th:nth-child(2){z-index:4;background:#edf3ef}
.recordsTable .record--active td:first-child,.recordsTable .record--active td:nth-child(2){background:#e1f1e7}
.recordsTable .record--active td:nth-child(2){color:#006b37}
.recordSpacer,.recordsTable .recordSpacer td{padding:0!important;border:0!important;line-height:0;box-sizing:border-box}
.recordPagination{min-height:32px}
.recordStatus__count--blue{--status-color:var(--mark-blue)}
.recordStatus__count--reserved{--status-color:var(--mark-reserved)}
.recordStatus__count--red{--status-color:var(--mark-red)}
.recordStatus__count--scan{--status-color:var(--mark-scan)}
#markSeg .segBtn[data-mark="blue"].segBtn--active{color:var(--mark-blue-text,#fff)}
#markSeg .segBtn[data-mark="reserved"].segBtn--active{color:var(--mark-reserved-text,#fff)}
#markSeg .segBtn[data-mark="red"].segBtn--active{color:var(--mark-red-text,#fff)}
.revCard{padding:14px;border-radius:6px;box-shadow:none}
.revCard__desc{font-weight:500;font-size:13px;line-height:1.6}
.revCard__top{font-size:12px;line-height:1.5;gap:10px}
.revCard__changes{font-size:12px;line-height:1.6}
.revSource{display:inline-block;padding:2px 6px;background:#edf1f5;color:#3b5165;border-radius:4px;font-size:11px;font-weight:600;margin:8px 0}
.revCard[data-source="application"]{border-left:3px solid #00813f}
.revCard[data-source="access"]{border-left:3px solid #8198ab}
.revisionIdentity{font:11px/1.6 monospace;overflow-wrap:anywhere;color:#526762;margin:6px 0}
.revisionsDock__header{flex-wrap:wrap;gap:10px}
.revisionsDock__list{max-height:none}
.panelHandle{display:none}
.appearanceDialog{width:580px}
.appearanceColors{display:grid;grid-template-columns:1fr 1fr;gap:12px 24px;margin:20px 0}
.appearanceColors label{display:flex;justify-content:space-between;align-items:center;font-size:14px;gap:10px}
.appearanceColors input{width:44px;height:32px;cursor:pointer;padding:2px;border:1px solid #c7d4cf;border-radius:4px}
.appearanceMessage{color:#9a3412;font-size:13px}
.editDialog{border-radius:8px;max-width:min(960px,calc(100vw - 28px));box-shadow:0 12px 60px #162a3233}
.editDialog h2{font-size:20px;line-height:1.4;margin:0}
.editDialog>header,.editDialog>footer{padding:18px 24px;background:#fff}
.editDialog__body{padding:24px}
.editField{font-weight:600;gap:6px;margin:0 0 18px}
.editFieldHelp{font-weight:400;color:#536861;font-size:12px;line-height:1.5}
.editField input[readonly]{color:#465c53;background:#f3f6f4}
.editDiffSection{margin:24px 0 0}
.editDiffSection h3{font-size:16px;margin:0 0 4px}
.editDiffSection>p{margin:0 0 10px;font-size:12px}
.editDiff{width:100%;table-layout:fixed;border-collapse:collapse;font-size:13px;line-height:1.6}
.editDiff th,.editDiff td{padding:10px;text-align:left;vertical-align:top;overflow-wrap:anywhere;border-bottom:1px solid #dce5e0}
.editDiff thead tr{background:#eff4f2;color:#405b50}
.editDiff tbody tr:first-child{background:transparent;color:inherit}
.editDiff tbody tr:nth-child(even){background:#fafcfb}
.reportMetadata{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:0 0 18px}
.reportMetadata dt,.editReportSummary dt{font-size:12px;color:#51695d;font-weight:500;margin-bottom:6px}
.reportMetadata dd,.editReportSummary dd{margin:0;font-weight:650;overflow-wrap:anywhere}
.reportProject dd{font-size:24px}
.reportIdentity{grid-column:1/-1;padding:16px 0;border-top:1px solid #dce5e0;border-bottom:1px solid #dce5e0}
.reportIdentity dd{font:13px/1.6 monospace;user-select:all}
.reportIdentity small{display:block;font-size:12px;color:#51695d;margin:4px 0 12px}
.reportCopyStatus{font-size:12px;margin-left:10px}
.changeReport h3{font-size:15px;margin:16px 0 8px}
.reportDescription{white-space:pre-wrap;line-height:1.7;margin:0 0 24px;overflow-wrap:anywhere}
.editReportSummary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px;padding:18px 0;border-top:1px solid #dce5e0;border-bottom:1px solid #dce5e0;margin:12px 0 24px}
.editReportSummary dd{font-size:22px;font-variant-numeric:tabular-nums}
.changeValue{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.changeStatus{display:inline-flex;align-items:center;gap:5px;font-weight:600}
.changeStatus[data-mark]::before{content:'';width:8px;height:8px;border-radius:2px;background:var(--change-color)}
.changeStatus[data-mark="blue"]{--change-color:var(--mark-blue)}
.changeStatus[data-mark="reserved"]{--change-color:var(--mark-reserved)}
.changeStatus[data-mark="red"]{--change-color:var(--mark-red)}
.changePid{font-size:12px;color:#445c54}
.reportList{max-height:55vh;overflow:auto}
.reportTable{width:100%;border-collapse:collapse;font-size:13px}
.reportTable th,.reportTable td{padding:12px 10px;text-align:left;border-bottom:1px solid #dce5e0;vertical-align:top}
.reportTable th{background:#eff4f2;position:sticky;top:0;font-size:12px}
.reportTable tbody tr{cursor:pointer}
.reportTable tbody tr:hover{background:#edf5f0}
.reportListId{display:block;font:11px/1.5 monospace;overflow-wrap:anywhere;color:#5d7168;margin-top:5px}
:is(button,summary,input,select,textarea,[tabindex]):focus-visible{outline:2px solid #007c47;outline-offset:3px}
@media screen and (min-width:1700px){
  .workspace{display:grid;margin:12px;max-width:none;width:auto;padding:0;grid-template-columns:25fr 37fr 16fr 22fr}
  .workspace .paperWrap,.workspace .paperRow,.workspace .workColumn,.workspace .supportArea{display:contents}
  .workspace .sidebar,.workspace .paper,.workspace .rightRail,.workspace .revisionsDock{grid-row:1;min-width:0;width:100%;max-width:none;position:static;margin:0;order:0;box-sizing:border-box}
  .workspace .sidebar{grid-column:1;overflow:visible;height:auto;max-height:none;padding:14px}
  .workspace #paper{grid-column:2;padding:24px 18px}
  .workspace .rightRail{grid-column:3}
  .workspace .revisionsDock{grid-column:4;padding:16px}
  .sidebar__section{display:flex;flex-direction:column;gap:14px;padding:0}
  .recordFilters{grid-template-columns:1fr 1fr;gap:8px}
  .listTools{min-width:0}
  .recordList{height:calc(100vh - 515px);min-height:280px;max-height:800px;width:100%;flex:none}
  .paper .fieldRow{grid-template-columns:130px minmax(0,1fr)}
  .paper .headerFields{width:100%;max-width:none}
  .paper .grid{column-gap:2px;margin-left:0}
  .paper .sectionTitle{font-size:14px;line-height:1.5}
  .statusbar{padding:14px;width:100%;min-width:0}
  .rightRail .seg{flex-wrap:wrap}
  .panelHandle{display:block;position:absolute;top:0;height:calc(100vh - 110px);max-height:760px;width:12px;cursor:col-resize;touch-action:none;z-index:3}
  .panelHandle::after{content:'';position:absolute;left:5px;top:40%;height:52px;width:2px;border-radius:2px;background:#b3c3bb}
  .panelHandle:hover::after,.panelHandle:focus-visible::after{background:#008143;width:3px}
}
@media screen and (min-width:1000px) and (max-width:1699px){
  .workspace .paperWrap{display:block}
  .workspace .paperRow{display:grid;grid-template-columns:minmax(560px,1fr) minmax(340px,.7fr);gap:12px}
  .workspace .workColumn,.workspace .supportArea{width:auto;min-width:0;max-height:none;position:static}
  .workspace .paper,.workspace .revisionsDock,.workspace .statusbar{width:100%;min-width:0;max-width:none}
  .workspace .paper{padding:24px}
  .paper .fieldRow{grid-template-columns:130px minmax(0,1fr)}
  .paper .grid{column-gap:4px;margin-left:0}
}
@media screen and (max-width:999px){
  .workspace{display:flex;flex-direction:column;margin:10px;padding:0}
  .workspace .sidebar{width:100%;max-height:none;padding:14px}
  .workspace .paperWrap,.workspace .paperRow,.workspace .workColumn,.workspace .supportArea{display:contents}
  .workspace .paper,.workspace .rightRail,.workspace .statusbar,.workspace .revisionsDock{width:100%;max-width:100%;min-width:0;position:static;box-sizing:border-box}
  .recordList{height:430px;max-height:430px;min-height:0}
  .recordList>.record{height:172px;box-sizing:border-box;margin:0;border-radius:0;overflow:hidden;transform:none}
  .recordList .record__meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .recordList .recordStatus{margin-top:10px}
  .recordFilters{grid-template-columns:1fr 1fr}
  .topbar__actions{flex-wrap:wrap;overflow:visible}
  .topbarMenu__body{position:fixed;top:130px;right:12px;max-width:calc(100vw - 24px)}
  .paper .fieldRow{grid-template-columns:1fr;gap:6px}
  .paper .grid{margin-left:0;column-gap:3px;grid-template-columns:repeat(5,minmax(0,1fr))}
  .paper .signature{flex-wrap:wrap}
  .paper .seg{flex-wrap:wrap}
  .paper .field,.paper .signatureField{max-width:100%;min-width:0}
  .paper .grid .item{min-width:0}
  .editDialog>header,.editDialog>footer,.editDialog__body{padding:16px}
  .reportTable{min-width:620px}
  .editReportSummary{grid-template-columns:1fr 1fr}
  .reportMetadata{grid-template-columns:1fr 1fr}
}
@media print{
  .reportProject dd{font-size:18px}
  .panelHandle,.topbarMenu{display:none!important}
  .changeReport .editDiffSection{break-inside:auto}
  .changeReport .reportMetadata,.changeReport .editReportSummary{break-inside:avoid}
}
