.customer-card .co-directory-project {
  appearance:none;background:none;border:0;padding:2px 0;font:inherit;font-weight:750;
  text-align:left;cursor:pointer;color:var(--green,#164940);overflow-wrap:anywhere
}
.co-directory-project:hover{text-decoration:underline}
.customer-outbound-dialog {
  box-sizing:border-box;width:min(960px,calc(100% - 32px));max-height:calc(100% - 32px);
  padding:0;border:1px solid var(--line);border-radius:18px;color:var(--ink,#162924);
  background:#fff;box-shadow:0 20px 80px #12352e33;overflow:hidden
}
.customer-outbound-dialog[open]{display:flex;flex-direction:column}
.customer-outbound-dialog::backdrop{background:#17352f80}
.co-head,.co-body{padding:20px 24px}
.co-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;border-bottom:1px solid var(--line);background:#f7faf8}
.co-head h2{font-size:22px;line-height:1.25;margin:4px 0 0;overflow-wrap:anywhere}
.co-close{flex:none}
.co-body{overflow:auto;min-height:0;overscroll-behavior:contain}
.co-scope{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.co-scope span{font-weight:700}
.co-scope select{min-width:0;width:min(100%,360px)}
.co-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.co-metrics>div{padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#f3f7f5;display:grid;gap:4px}
.co-metrics>div:nth-child(n+3){background:#fcf8ef}
.co-metrics span,.co-policy,.co-state,.co-record small{color:var(--muted)}
.co-metrics strong{font-size:24px;line-height:1.2;font-variant-numeric:tabular-nums}
.co-policy{margin:10px 0 16px;font-size:12px}
.co-groups,.co-records{margin-top:16px}
.co-groups h3,.co-records h3{font-size:15px;margin:0 0 8px}
.co-groups ul,.co-lines{margin:0;padding:0;list-style:none}
.co-groups ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px}
.co-groups button {
  display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:42px;
  text-align:left;border:1px solid var(--line);border-radius:9px;background:#fff;
  color:inherit;padding:6px 10px;cursor:pointer;font:inherit;overflow-wrap:anywhere
}
.co-groups button>span{color:var(--muted);font-size:12px;flex:none}
.co-groups button:hover,.co-record summary:hover{background:#f3f7f5}
.co-record{border-top:1px solid var(--line)}
.co-record:last-child{border-bottom:1px solid var(--line)}
.co-record summary {
  list-style:none;cursor:pointer;display:grid;grid-template-columns:12px minmax(0,2fr) minmax(0,1fr) minmax(0,1.1fr) auto;
  gap:10px;align-items:center;min-height:48px;padding:6px;border-radius:5px
}
.co-record summary::-webkit-details-marker{display:none}
.co-chevron::before{content:'›';display:inline-block;font-size:18px;color:var(--muted)}
.co-record[open] .co-chevron::before{transform:rotate(90deg)}
.co-record .badge{justify-self:start;white-space:normal;overflow-wrap:anywhere}
.co-reference,.co-date{overflow-wrap:anywhere}
.co-record small,.co-lines small{display:block;font-size:11px}
.co-pieces{text-align:right;white-space:nowrap}
.co-detail{padding:0 8px 8px 28px;background:#f8faf9}
.co-lines li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.co-lines li:last-child{border:0}
.co-lines b{white-space:nowrap}
.co-state{padding:12px 0;margin:0}
.co-state button{margin-left:6px}
.co-controls,.co-sheet-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.co-controls .co-scope{margin:0;flex:1;min-width:0}
.co-controls .co-scope span{flex:none}
.co-open-sheet{flex:none}
.co-sheet{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.co-sheet header{border-bottom:2px solid var(--brand);padding:6px 0 12px}
.co-sheet header h2{font-size:24px;margin:3px 0 8px}
.co-sheet header p{margin:4px 0}
.co-sheet-brand{font-weight:750;color:var(--brand)}
.co-sheet-totals{display:flex;flex-wrap:wrap;gap:8px 24px;margin:12px 0 6px}
.co-sheet-totals p{margin:0}
.co-sheet-totals strong{font-size:19px;margin-left:6px}
.co-sheet table{width:100%;border-collapse:collapse;table-layout:fixed;margin:14px 0}
.co-sheet caption{text-align:left;font-size:15px;font-weight:750;margin-bottom:6px}
.co-sheet th,.co-sheet td{padding:7px 8px;border-bottom:1px solid var(--line);text-align:left}
.co-sheet thead th,.co-sheet tfoot th,.co-sheet tfoot td{background:#eff6f2;font-weight:750}
.co-sheet .co-sheet-number{text-align:right}
.co-sheet-products th:first-child{width:34%}
.co-sheet-projects th:first-child{width:52%}
.co-print-page{display:none}
@media print{
  @page customer-outbound{size:A4;margin:14mm}
  html:has(body.co-printing),body.co-printing{overflow:visible!important;background:#fff!important}
  body.co-printing>:not(.co-print-page){display:none!important}
  body.co-printing .co-print-page{display:block;page:customer-outbound}
  body.co-printing .co-print-page .co-sheet{font-size:10pt;color:#132421}
  .co-print-page .co-sheet thead{display:table-header-group}
  .co-print-page .co-sheet tfoot{display:table-row-group}
  .co-print-page .co-sheet tr,.co-print-page .co-sheet header{break-inside:avoid}
  .co-print-page .co-sheet caption{break-after:avoid}
}
@media(max-width:650px){
  .co-head,.co-body{padding:14px}
  .co-head h2{font-size:17px}
  .co-scope{align-items:flex-start;flex-direction:column;gap:4px}
  .co-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .co-groups ul{grid-template-columns:1fr}
  .co-record summary{grid-template-columns:12px minmax(0,1fr) auto;gap:4px 7px}
  .co-record .badge{grid-column:3;grid-row:2;justify-self:end;text-align:right}
  .co-date{grid-column:2;grid-row:2;font-size:11px}
  .co-pieces{grid-column:3;grid-row:1}
  .co-detail{padding-left:12px}
  .co-controls{align-items:stretch;flex-direction:column}
  .co-sheet th,.co-sheet td{padding:5px 4px;font-size:11px}
}
