/* W10 workspace only. Backend DTOs remain the source of document state. */
.w10-page{--ink:#203f39;--muted:#74817a;--line:#e0e6df;--green:#1f5148;--mint:#e9f2ed;--ivory:#f6f7f2;--gold:#ac915e;--error:#9b4d32;color:var(--ink);background:var(--ivory);padding:0;font:13px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;height:var(--document-workspace-height,calc(100dvh - 48px));min-height:580px}
/* Document views own their heading and fill the content area next to CRM navigation. */
#appShell > .workspace:has(> :is(#w10DocumentPage.active, #w11TemplatePage.active)) {
  --document-workspace-height: 100dvh;
  padding: 0;
}
#appShell > .workspace:has(> :is(#w10DocumentPage.active, #w11TemplatePage.active)) > .topbar {
  display: none;
}
@media (min-width: 761px) {
  #appShell.sidebar-compact > .workspace > :is(#w10DocumentPage.active, #w11TemplatePage.active) > :is(.w10-heading, .w11-heading) {
    padding-inline-start: 68px;
  }
}
.w10-page.view.active{display:flex;flex-direction:column;gap:0}
.w10-entry-loading{padding:52px 26px;color:var(--muted);font-size:13px}
.w10-entry-loading-state > .w10-layout{display:none}
.w10-page *{box-sizing:border-box}.w10-page [hidden]{display:none!important}.w10-page button,.w10-page input,.w10-page select,.w10-page textarea{font:inherit;color:var(--ink)}.w10-page button{cursor:pointer;border:1px solid var(--line);background:#fff;border-radius:7px;padding:8px 12px;transition:background .15s,border-color .15s}.w10-page button:hover{background:#f3f6f1;border-color:#b9c9bf}.w10-page button:disabled{cursor:default;opacity:.55}.w10-page :focus-visible{outline:1px solid var(--kd-focus-ring, #577f73);outline-offset:2px}.w10-page input,.w10-page select,.w10-page textarea{width:100%;min-width:0;border:1px solid var(--line);border-radius:6px;padding:8px 10px;background:#fff;box-shadow:0 1px 2px #203f3903;transition:border-color .15s}.w10-page input:hover,.w10-page select:hover,.w10-page textarea:hover{border-color:#b9c9bf}.w10-page input:focus,.w10-page select:focus,.w10-page textarea:focus{border-color:var(--kd-focus-ring, #577f73);outline:1px solid var(--kd-focus-ring, #577f73);outline-offset:-1px;box-shadow:0 0 0 2px var(--kd-focus-halo, rgb(87 127 115 / 12%))}.w10-page input::placeholder,.w10-page textarea::placeholder{color:#9ba49e}.w10-page select:disabled{background:#f3f5f1;color:#64756b}.w10-page textarea{resize:vertical;min-height:66px}.w10-page label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:500;color:#697970;min-width:0}.w10-page label input,.w10-page label select,.w10-page label textarea{font-size:13px;font-weight:400}.w10-page .w10-primary{background:var(--green);border-color:var(--green);color:#fff;box-shadow:0 1px 3px #173f3820}.w10-page .w10-primary:hover{background:#2b6155;border-color:#2b6155}.w10-page .w10-text-button{background:transparent;border:0;padding:4px 0;font-size:12px;color:var(--green)}.w10-page .w10-icon-button{border:0;background:transparent;padding:3px 8px;font-size:18px;line-height:1.5;color:var(--muted)}
.w10-heading{flex:none;height:72px;padding:0 26px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:16px;background:#fafbf7}.w10-brand{display:flex;align-items:center;gap:11px}.w10-mark{width:33px;height:35px;border:1px solid #b7cabc;border-radius:9px;display:grid;place-items:center;background:linear-gradient(145deg,#fff,#e5eee5);font:20px Georgia,serif;color:var(--green)}.w10-eyebrow{font-size:9px;letter-spacing:1.8px;color:#849489;font-weight:600}.w10-heading h1{font-size:17px;font-weight:600;letter-spacing:.2px;margin:0}.w10-heading-actions{display:flex;align-items:center;gap:18px}.w10-shortcut{font-size:11px;color:#8b978e}.w10-heading [data-new]{padding:8px 15px}.w10-heading [data-library-toggle]{display:none}
.w10-layout{display:grid;grid-template-columns:228px minmax(0,1fr);flex:1;min-height:0}
.w10-page:has(.w10-inquiry-types:not([hidden])) .w10-layout{grid-template-columns:minmax(0,1fr)}
.w10-page:has(.w10-inquiry-types:not([hidden])) :is(.w10-library,[data-library-toggle],[data-new]){display:none}
.w10-library {
  --library-text: #233d38;
  --library-muted: #526058;
  --library-icon: #506d61;
  --library-gold: #896039;
  --library-border: #cbd3c7;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #d5ded2;
  background: linear-gradient(180deg, #f0eee7 0%, #e9ede5 52%, #e0eae2 100%);
  color: var(--library-text);
  padding: 18px 12px 12px;
  overflow: hidden;
}
.w10-library-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px 12px;
}
.w10-library h2 {
  font-size: 12px;
  font-weight: 600;
  margin: 0;
}
.w10-page .w10-library [data-refresh] {
  display: grid;
  place-items: center;
  width: 31px;
  height: 33px;
  color: var(--library-icon);
  font-size: 0;
}
.w10-library [data-refresh]::before,
.w10-search > span::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
}
.w10-library [data-refresh]::before {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 5v6h-6m5.5-.5A8 8 0 1 0 19 17' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.w10-page .w10-library [data-refresh]:hover {
  background: #e4ebe1;
  color: var(--library-text);
}
.w10-search {
  position: relative;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  background: rgba(255, 255, 255, .38);
  border: 1px solid var(--library-border);
  border-radius: 7px;
  padding: 0 8px;
  margin-bottom: 12px;
}
.w10-search:hover {
  border-color: #9eafa0;
}
.w10-search > span {
  display: grid;
  place-items: center;
  flex: none;
  font-size: 0;
  color: var(--library-icon);
}
.w10-search > span::before {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='5.5' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='m15 15 4 4' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.w10-page .w10-search input {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 7px 3px;
  font-size: 12px;
  color: var(--library-text);
}
.w10-page .w10-search input::placeholder {
  color: var(--library-muted);
}
.w10-page .w10-search input:focus {
  outline: none;
  box-shadow: none;
}
.w10-search:focus-within {
  border-color: var(--kd-focus-ring, #577f73);
  outline: 1px solid var(--kd-focus-ring, #577f73);
  outline-offset: -1px;
  box-shadow: 0 0 0 2px var(--kd-focus-halo, rgb(87 127 115 / 12%));
}
.w10-search kbd {
  font: 11px monospace;
  color: var(--library-muted);
  border: 1px solid var(--library-border);
  padding: 0 4px;
  border-radius: 3px;
}
.w10-filters {
  display: flex;
  gap: 8px;
  margin: 0 3px;
  border-bottom: 1px solid var(--library-border);
  flex-shrink: 0;
}
.w10-page .w10-filters button {
  flex: 1;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 3px 3px 0 0;
  background: transparent;
  padding: 6px 4px;
  font-size: 11px;
  color: var(--library-muted);
}
.w10-page .w10-filters button:hover {
  background: #e4ebe1;
  color: var(--library-text);
}
.w10-page .w10-filters button[aria-pressed="true"] {
  border-bottom-color: var(--library-text);
  color: var(--library-text);
  font-weight: 600;
}
.w10-page .w10-filters button:active {
  background: #dbe6db;
}
.w10-library [data-list] {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin: 10px -5px 0;
  padding: 0 5px;
  scrollbar-width: thin;
  scrollbar-color: #75887b transparent;
}
.w10-list-group {
  margin-bottom: 18px;
}
.w10-list-group h3 {
  font-size: 11px;
  font-weight: 500;
  color: var(--library-muted);
  display: flex;
  justify-content: space-between;
  margin: 13px 8px 7px;
}
.w10-page .w10-document-row {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  padding: 10px 9px;
  margin: 3px 0;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  color: var(--library-text);
}
.w10-page .w10-document-row:hover {
  border-color: #d4dfd3;
  background: #e4ebe1;
}
.w10-page .w10-document-row[aria-current="true"] {
  border-color: #c8d6c8;
  background: linear-gradient(90deg, #d6e4d9 0%, #e7ede4 100%);
  color: var(--library-text);
}
.w10-page .w10-document-row[aria-current="true"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 2px;
  border-radius: 2px;
  background: var(--library-gold);
  pointer-events: none;
}
.w10-page .w10-document-row[aria-current="true"]:hover {
  border-color: #aebfae;
}
.w10-page .w10-document-row:active {
  background: #d5e0d5;
}
.w10-page .w10-library button:focus-visible {
  outline-color: var(--kd-focus-ring, #577f73);
  outline-offset: 2px;
}
.w10-row-icon {
  width: 24px;
  height: 29px;
  display: grid;
  place-items: center;
  color: var(--library-icon);
  font-size: 15px;
  flex-shrink: 0;
}
.w10-row-content {
  min-width: 0;
  flex: 1;
}
.w10-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
.w10-row-top strong {
  font-weight: 500;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.w10-row-badge {
  font-size: 10px;
  color: var(--library-muted);
  flex-shrink: 0;
}
.w10-row-subtitle {
  display: block;
  color: var(--library-muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
}
.w10-list-empty {
  font-size: 12px;
  color: var(--library-muted);
  text-align: center;
  padding: 25px 0;
}

.w10-editor{min-width:0;min-height:0;display:flex;flex-direction:column;position:relative}.w10-document-bar{height:76px;flex-shrink:0;border-bottom:1px solid var(--line);padding:13px 24px;display:flex;align-items:center;justify-content:space-between;gap:15px;background:#fcfdf9}.w10-kind{display:block;color:#81938a;font-size:10px;letter-spacing:.5px}.w10-context{min-width:0}.w10-context h2{font-size:15px;font-weight:550;margin:4px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.w10-editor [data-status]{font-size:11px;color:#789082;display:flex;align-items:center;gap:6px;flex-shrink:0;max-width:40%;text-align:right}.w10-editor [data-status]::before{content:"";width:5px;height:5px;border-radius:50%;background:#8da693;flex-shrink:0}.w10-editor [data-status][data-state=pending]::before,.w10-editor [data-status][data-state=saving]::before{background:#bda26d}.w10-editor [data-status][data-state=error]{color:var(--error)}.w10-editor [data-status][data-state=error]::before{background:var(--error)}.w10-error{background:#fff2e9;border-bottom:1px solid #efd8c7;padding:10px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--error);font-size:12px;flex-shrink:0}.w10-error button{font-size:11px;padding:4px 9px;white-space:nowrap}
.w10-welcome{flex:1;overflow:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 24px 60px;background:radial-gradient(ellipse at 50% 30%,#e8f0e677,transparent 65%)}.w10-welcome-icon{font-size:32px;color:#6f8b79;border:1px solid #d4dfd2;background:#fafff7;border-radius:15px;width:60px;height:64px;display:grid;place-items:center;margin-bottom:24px;box-shadow:0 8px 24px #58795409}.w10-welcome h2{font-size:23px;font-weight:500;margin:10px 0}.w10-type-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:min(550px,100%)}.w10-page .w10-type-grid button{display:grid;grid-template-columns:1fr auto;gap:5px;padding:18px 20px;text-align:left;background:#ffffffe0;box-shadow:0 2px 5px #213f3903}.w10-type-grid button>span{grid-column:1/-1;font-size:9px;color:#b3a27d;letter-spacing:1px}.w10-type-grid strong{font-size:14px;font-weight:550}.w10-type-grid small{font-size:11px;color:#8d998f;grid-column:1;grid-row:3}.w10-type-grid b{font-size:18px;font-weight:400;grid-column:2;grid-row:2/4;color:#9eb3a4}
.w10-workspace{display:flex;flex-direction:column;min-height:0;flex:1}.w10-compose{display:grid;grid-template-columns:minmax(380px,.95fr) minmax(380px,1.05fr);flex:1;min-height:0;overflow:hidden}.w10-form{min-width:0;min-height:0;display:flex;flex-direction:column;background:#fff;border-right:1px solid var(--line)}.w10-form-body{padding:6px 24px 14px;overflow:auto;flex:1;min-height:0;scrollbar-width:thin;scrollbar-color:#d2ddd3 transparent}.w10-step{padding:20px 0;border-bottom:1px solid #edf0e9}.w10-step:last-child{border-bottom:0}.w10-step-title{display:flex;align-items:center;gap:9px;margin-bottom:18px}.w10-step-title>span{color:#a7b6a9;font:10px ui-monospace,monospace}.w10-step-title h3{margin:0;font-size:13px;font-weight:600}.w10-step-title>button{margin-left:auto}.w10-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px}.w10-span{grid-column:1/-1}.w10-disclosure{margin-top:14px;font-size:11px;color:#75867a}.w10-disclosure summary{cursor:pointer;list-style:none;display:flex;gap:8px;align-items:center;padding:5px 0}.w10-disclosure summary::before{content:"›";font-size:16px;line-height:1;transition:transform .15s}.w10-disclosure[open] summary::before{transform:rotate(90deg)}.w10-disclosure summary>span{font-size:10px;color:#a6afa5}.w10-disclosure[open]>label,.w10-disclosure[open]>.w10-form-grid{margin-top:10px}.w10-notes{margin-top:16px}.w10-freight-detail{margin-top:12px}.w10-no-items{padding:20px 14px;text-align:center;background:#f8faf5;color:#9aa695;font-size:12px;border:1px dashed #dce5d8;border-radius:7px}
.w10-item{display:grid;grid-template-columns:1fr 1fr;gap:10px;position:relative;padding:14px 0 16px;border-bottom:1px solid #e7ece3;margin-bottom:10px}.w10-item:last-child{margin-bottom:0}.w10-item-product{grid-column:1/-1;padding-right:30px}.w10-item-extra{grid-column:1/-1;font-size:11px;color:#8a998c}.w10-item-extra summary{cursor:pointer;padding:3px 0}.w10-item-extra>label{margin-top:10px}.w10-page .w10-remove{position:absolute;top:30px;right:0;border:0;background:none;color:#9cab9c;padding:1px 5px;font-size:20px}.w10-page .w10-remove:hover{color:#9b4d32;background:#fff0e8}.w10-action-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-shrink:0;background:#ffffffed;border-top:1px solid var(--line);padding:13px 22px}.w10-action-bar button{font-size:12px}.w10-action-bar .w10-primary{display:flex;align-items:center;gap:18px}
.w10-preview-pane{min-width:0;min-height:0;display:flex;flex-direction:column;background:#eef2eb}.w10-preview-toolbar{min-height:52px;padding:10px 23px;border-bottom:1px solid #e0e6db;display:flex;align-items:center;gap:10px;font-size:11px;color:#75887a;flex-shrink:0}.w10-preview-state{margin-left:auto;font-size:10px;background:#e6ebe1;padding:3px 7px;border-radius:4px;color:#8d957e}.w10-preview-state[data-state=ready]{color:#5b8069;background:#e1ece2}.w10-preview-scroll{min-height:0;overflow:auto;padding:24px;scrollbar-width:thin;scrollbar-color:#cfd9cb transparent;flex:1}.w10-preview{padding:28px 24px 22px;background:#fff;border:1px solid #e1e5db;border-radius:3px;box-shadow:0 6px 20px #2b493708;min-height:440px;overflow-wrap:anywhere;max-width:900px;margin:0 auto}.w10-preview:empty{display:none}.w10-paper-heading{display:flex;flex-direction:column;gap:8px;border-bottom:2px solid #214f43;padding-bottom:16px;margin-bottom:22px}.w10-paper-heading h2{font-size:23px;font-weight:550;margin:0;letter-spacing:1px}.w10-paper-heading span{font:9px ui-monospace,monospace;color:#8a9d90;overflow-wrap:anywhere}.w10-preview>p{font-size:11px;line-height:1.7;margin:8px 0;white-space:pre-wrap}.w10-preview>p:first-of-type{font-size:12px;font-weight:500;margin-bottom:13px}/* CRM data-table minimum width does not apply to the fitted document paper. */
.w10-preview table{min-width:0;width:100%;table-layout:fixed;border-collapse:collapse;font-size:10px;margin:26px 0 18px}.w10-preview th,.w10-preview td{padding:10px 5px;text-align:left;border-bottom:1px solid #e5eade;vertical-align:top;word-break:break-word}.w10-preview th{font-size:9px;color:#7c8d7e;font-weight:500;background:#f7faf3}.w10-preview th:first-child{width:28%}.w10-preview th:nth-last-child(-n+2),.w10-preview td:nth-last-child(-n+2){text-align:right;font-variant-numeric:tabular-nums}.w10-total{display:block;text-align:right;font-size:20px;font-weight:550;margin:22px 0 26px;padding-top:13px;border-top:1px solid #dce5d6;font-variant-numeric:tabular-nums}.w10-warning{background:#faf2e3;color:#93713d;padding:11px 12px;font-size:11px;border-left:2px solid #c5aa75;margin:20px 0}.w10-preview details{border-top:1px solid #e6ebe0;padding-top:13px;margin-top:24px;font-size:10px;color:#889787}.w10-preview details summary{cursor:pointer;color:#708873}.w10-preview details p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.w10-paper-empty{min-height:400px;display:flex;flex-direction:column;justify-content:center;align-items:center;border:1px dashed #d1ddcd;border-radius:4px;color:#a2b09e;text-align:center}.w10-paper-empty>span{font-size:36px;color:#b4c1ad}.w10-paper-empty h3{font-size:13px;font-weight:500;margin:12px 0 5px}.w10-paper-empty p{font-size:11px;margin:0}.w10-actions{display:flex;gap:8px;margin-left:auto;flex-wrap:wrap}.w10-actions button{font-size:11px;padding:6px 10px}.w10-is-snapshot .w10-compose{grid-template-columns:minmax(0,1fr)}.w10-is-snapshot .w10-preview{max-width:850px;padding:40px 48px}.w10-is-snapshot .w10-preview-state{display:none}.w10-is-snapshot .w10-preview-toolbar{padding-left:30px}.w10-is-snapshot .w10-preview-scroll{padding:30px 40px}
.w10-page dialog{width:min(460px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;border:1px solid #dae4d8;border-radius:14px;padding:24px;color:var(--ink);box-shadow:0 20px 90px #122e3a30}.w10-page dialog::backdrop{background:#183b3552;backdrop-filter:blur(3px)}.w10-dialog-heading{display:flex;justify-content:space-between;align-items:center}.w10-page dialog h2{font-size:20px;font-weight:550;margin:8px 0 17px}.w10-confirm-summary{background:#f0f5ec;border:1px solid #e1e9da;padding:12px;border-radius:7px;font-size:12px}.w10-page dialog>p{color:#8b988d;font-size:11px;line-height:1.8;margin:14px 0 18px}.w10-page .w10-check{flex-direction:row;align-items:center;gap:8px;font-size:12px;color:#587363;margin:20px 0}.w10-page .w10-check input{width:15px;height:15px;accent-color:var(--green);margin:0}.w10-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.w10-dialog-actions button{font-size:12px}.w10-dialog-error{background:#fff1e7;color:var(--error);padding:10px;border-radius:5px;font-size:12px;margin-top:12px}
.w10-mobile-tabs{display:none}#w10DocumentEntry{border:0;background:none;color:inherit;text-align:left;padding:12px 16px;font:inherit;cursor:pointer;width:100%}body:has(#w10PreviewHost) header.fixture{height:48px;padding:0 24px!important;font-size:12px}body:has(#w10PreviewHost) header.fixture button{border:0;border-radius:5px;background:#ffffff16;color:#d6e6da;padding:5px 11px;font-size:11px}body:has(#w10PreviewHost) header.fixture span{font-size:9px!important}
@media(max-width:1270px){.w10-layout{grid-template-columns:210px minmax(0,1fr)}.w10-compose{grid-template-columns:minmax(0,1fr)}.w10-mobile-tabs{display:flex;gap:4px;padding:8px 18px;border-bottom:1px solid var(--line);background:#fbfcf8;flex-shrink:0}.w10-mobile-tabs button{font-size:11px;border:0;background:transparent;padding:5px 12px}.w10-mobile-tabs [aria-pressed=true]{background:#e7f0e7;color:#315d47}.w10-page[data-pane=preview] .w10-form,.w10-page:not([data-pane=preview]) .w10-preview-pane{display:none}.w10-is-snapshot .w10-mobile-tabs{display:none}.w10-is-snapshot .w10-preview-pane{display:flex!important}.w10-form-body{padding-left:28px;padding-right:28px}.w10-form{border-right:0}.w10-preview{max-width:750px}.w10-shortcut{display:none}}
@media(max-width:700px){.w10-page{min-height:420px}.w10-heading{height:62px;padding:0 14px}.w10-heading-actions{gap:7px}.w10-heading h1{font-size:15px}.w10-mark{display:none}.w10-heading [data-library-toggle]{display:block;font-size:11px;padding:7px 8px}.w10-heading [data-new]{padding:7px 9px;font-size:11px}.w10-layout{display:block;position:relative}.w10-library{display:none;position:absolute;inset:0 auto 0 0;width:min(290px,90%);z-index:4;box-shadow:12px 0 40px #203f3920}.w10-library-open .w10-library{display:flex}.w10-editor{height:100%}.w10-document-bar{padding:11px 16px;height:68px;gap:8px}.w10-context h2{font-size:13px}.w10-editor [data-status]{font-size:9px;max-width:34%}.w10-form-body{padding:0 18px 10px}.w10-step{padding:17px 0}.w10-step-title{margin-bottom:14px}.w10-preview-scroll,.w10-is-snapshot .w10-preview-scroll{padding:16px 12px}.w10-preview,.w10-is-snapshot .w10-preview{padding:22px 17px;min-height:420px}.w10-preview-toolbar,.w10-is-snapshot .w10-preview-toolbar{padding:10px 14px;flex-wrap:wrap}.w10-actions{gap:5px}.w10-actions button{font-size:10px;padding:6px 8px}.w10-preview-toolbar>[data-preview-label]{font-size:10px}.w10-action-bar{padding:12px 18px}.w10-error{font-size:11px;padding:9px 14px}.w10-welcome{justify-content:flex-start;padding:30px 18px}.w10-welcome h2{font-size:19px}.w10-welcome-icon{margin-bottom:18px}.w10-page .w10-type-grid button{padding:15px 12px}.w10-type-grid strong{font-size:12px}.w10-type-grid small{font-size:10px}.w10-type-grid b{display:none}.w10-type-grid{gap:8px}body:has(#w10PreviewHost) header.fixture{padding:0 14px!important;gap:18px!important}}
@media(prefers-reduced-motion:reduce){.w10-page *{transition:none!important;scroll-behavior:auto!important}}

/* Optional business details stay inside the existing composer. */
.w10-business-parties{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:8px}
.w10-business-parties fieldset{display:grid;align-content:start;gap:8px;min-width:0;margin:0;padding:10px;border:1px solid var(--line);border-radius:7px}
.w10-business-parties legend{padding:0 4px;color:var(--ink);font-size:12px;font-weight:650}
.w10-contact-status{margin:0;color:#795719;font-size:11px;line-height:1.4}
.w10-business-preview,.w10-customs-preview{white-space:pre-wrap;overflow-wrap:anywhere}
.w10-customs-preview{display:block;margin-top:4px;color:#526b64}
.w10-item-extra.w10-business summary{color:#526b64}
@media(max-width:700px){.w10-business-parties{grid-template-columns:1fr}}

.w10-document-fields{margin-top:10px}
.w10-preview h3{color:var(--ink);font-size:13px;margin:14px 0 5px}

.w10-shipping-party{min-width:0;margin:12px 0;padding:10px;border:1px solid var(--line);border-radius:7px}
.w10-shipping-party legend{font-size:12px;font-weight:600}

/* Customer archive and item entry only; CRM layout and the W10 editor stay unchanged. */
.w10-customer-documents{min-width:0;background:linear-gradient(155deg,#fff 66%,#f5f8f4 100%)}
.w10-customer-documents [hidden],.w10-work-document-types.hidden{display:none!important}
.w10-archive-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.w10-customer-documents .w10-archive-heading h4{margin:0;font-size:14px;line-height:1.5}
.w10-customer-documents [data-archive-refresh]{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:6px;background:transparent;color:#627c76;font-size:19px;line-height:1}
.w10-customer-documents [data-archive-refresh]:hover{background:#edf4f0;color:#214f48}
.w10-archive-count{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:12px 0 16px;color:#647770;font-size:11px;line-height:1.7}
.w10-archive-total{width:100%;color:#536e66;font-size:12px}
.w10-archive-total strong{font-size:24px;font-weight:600;line-height:1.2;color:#193f43;font-variant-numeric:tabular-nums}
.w10-archive-states{font-variant-numeric:tabular-nums}
.w10-archive-readonly{padding:0 5px;border-radius:4px;background:#f2eee3;color:#79673d;font-size:10px}
.w10-archive-create{display:grid;gap:7px;margin-bottom:18px}
.w10-customer-documents [data-archive-kind]{height:32px;min-height:0;width:100%;padding:4px 9px;border:1px solid #dce6e1;border-radius:6px;background:#fafcf9;color:#405e55;font:inherit;font-size:12px}
.w10-customer-documents [data-archive-create]{width:100%;min-height:34px;padding:7px 10px;border:1px solid #28534c;border-radius:6px;background:linear-gradient(135deg,#214f48,#2d6157);color:#fff;font:inherit;font-size:12px;font-weight:500;box-shadow:0 1px 2px #123f4a12}
.w10-customer-documents [data-archive-create]::before{content:"＋";margin-right:6px}
.w10-customer-documents [data-archive-create]:hover{background:#285d52}
.w10-customer-documents button:disabled,.w10-customer-documents select:disabled,.w10-work-document:disabled,.w10-work-document-types button:disabled{opacity:.5;cursor:default}
.w10-archive-section{margin:0 0 6px;color:#637a72;font-size:11px;font-weight:500}
.w10-archive-list{display:grid;gap:2px;min-width:0}
.w10-archive-list article{min-width:0}
.w10-customer-documents .w10-archive-record{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:7px;width:100%;min-height:54px;margin:0;padding:8px 3px;border:0;border-radius:6px;background:transparent;text-align:left;font:inherit;transition:background 120ms ease}
.w10-customer-documents .w10-archive-record:hover{background:#edf4ef}
.w10-archive-icon{color:#64877b;font-size:17px;text-align:center}
.w10-archive-copy{display:grid;gap:3px;min-width:0}
.w10-archive-copy strong{color:#23443f;font-size:12px;font-weight:500;overflow-wrap:anywhere}
.w10-archive-copy time{color:#62736a;font-size:10px;font-variant-numeric:tabular-nums;white-space:nowrap}
.w10-archive-state{align-self:start;margin-top:1px;padding:2px 4px;border-radius:4px;background:#f3f0e7;color:#7b6b49;font-size:10px;line-height:1.4;white-space:nowrap}
.w10-archive-state.is-formal{background:#e8f1eb;color:#3e6957}
.w10-customer-documents [data-archive-expand]{display:flex;justify-content:center;align-items:center;gap:5px;width:100%;margin:8px 0 0;padding:7px;border:0;border-top:1px solid #e8eeea;border-radius:0;background:transparent;color:#506e63;font:inherit;font-size:11px}
.w10-customer-documents [data-archive-expand]::after{content:"";width:5px;height:5px;margin-top:-3px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg)}
.w10-customer-documents [data-archive-expand][aria-expanded=true]::after{margin-top:3px;transform:rotate(225deg)}
.w10-customer-documents [data-archive-expand]:hover{color:#153e34;background:#f7faf6}
.w10-customer-documents[data-expanded=true] .w10-archive-list{max-height:330px;overflow:auto;scrollbar-width:thin;scrollbar-color:#becdc4 transparent;overscroll-behavior:contain}
.w10-archive-pages{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px}
.w10-archive-pages button{border:0;background:transparent;padding:5px 3px;color:#496b60;font:inherit;font-size:11px}
.w10-archive-empty{margin:8px 0 2px;color:#7c8d84;font-size:12px}
.w10-customer-documents [data-archive-error]{margin:10px 0 0;padding:9px;border-radius:6px;background:#fff3e9;color:#8e4d32;font-size:11px;overflow-wrap:anywhere}
.w10-work-document{position:absolute;right:44px;top:0;max-width:calc(100% - 48px);min-height:34px;padding:6px 8px;border:1px solid transparent;border-radius:6px;background:transparent;color:#4b6c61;font:inherit;font-size:12px;line-height:20px}
.w10-work-document::before{content:"＋";margin-right:4px;color:#77978b}
.w10-work-document:hover,.w10-work-document[aria-expanded=true]{border-color:#d5e4db;background:#edf5ef;color:#214f44}
.w10-work-document-inline{position:static;margin:8px 0 0 auto}
.w10-work-document-types{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:min(100%,310px);margin:8px 0 0 auto;padding:10px;border:1px solid #dce6df;border-radius:8px;background:linear-gradient(135deg,#f8faf6,#edf4ef);color:#3b6154}
.w10-work-types-heading{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px;color:#62796c;font-size:11px}
.w10-work-document-types button{min-width:0;min-height:30px;padding:5px 7px;border:1px solid #dce5dd;border-radius:5px;background:#ffffffb8;color:#345b4e;font:inherit;font-size:12px;line-height:1.5}
.w10-work-document-types button:hover{border-color:#a9c1b1;background:#fff}
.w10-work-types-heading button{min-height:24px;padding:2px 4px;border:0;background:transparent;color:#6b7c72;font-size:11px}
.w10-customer-documents :focus-visible,.w10-work-document:focus-visible,.w10-work-document-types :focus-visible{outline:1px solid var(--kd-focus-ring, #577f73);outline-offset:2px}
@media(prefers-reduced-motion:reduce){.w10-customer-documents .w10-archive-record{transition:none}}

/* Navigation choices stay reachable without displacing the editor on narrow screens. */
.w10-heading-actions { gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.w10-heading [data-flow-back],.w10-heading [data-my-documents] { font-size:12px; padding:7px 9px; }
@media(max-width:760px){
 .w10-heading { height:auto; min-height:72px; padding:12px; flex-wrap:wrap; }
 .w10-heading-actions { width:100%; justify-content:flex-start; }
 .w10-heading .w10-shortcut { display:none; }
}

.w10-heading [data-main-nav] { display:none; }
@media(max-width:760px){
 .w10-heading [data-main-nav] { display:inline-block; }
 #appShell:has(#w10DocumentPage.active:not(.w10-main-nav-open)) > :is(#primarySidebar,#sidebarExpandBtn) { display:none; }
}

/* The company layout is a read-only preview beside the existing W10 editor. */
.w10-template-pin{display:block;margin-top:4px;color:#546f63;font-size:11px;overflow-wrap:anywhere}
.w10-page [data-company-layout]{min-width:0}
.w10-page [data-company-layout] > details{padding:10px 0;color:#4d6b60;font-size:12px}
.w10-office-preview{width:100%;min-width:0;overflow:auto;scrollbar-width:thin}
.w10-office-preview .w11-word-document{width:650px;box-sizing:border-box}
.w10-office-preview .w11-preview-table{table-layout:fixed}
.w10-office-preview .w11-sheet-table{margin:0}
.w10-company-message{margin:18px 0;color:#49665b}

.w10-customer-field{min-width:0}
.w10-customer-field [data-new-customer]{margin-top:3px}
.w10-item-notice:empty{display:none}
.w10-item-notice{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;font-size:12px;color:#526b64}
