@media screen {
 .view-commercial .content { background:#f5f6f1; }
 .commerce-mast { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:8px 0 24px; color:#183f37; }
 .commerce-mast h1 { margin:0; font:400 clamp(38px,4vw,56px)/1.08 "Instrument Serif",Georgia,serif; letter-spacing:-.02em; }
 .commerce-page-actions { display:flex; align-items:start; justify-content:end; gap:10px; }
 .commerce-extra { position:relative; }
 .commerce-extra > summary,.commerce-row-tools > summary { color:#335649; border-radius:8px; font-size:.86rem; font-weight:600; padding:9px 11px; cursor:pointer; }
 .commerce-extra > summary { min-height:44px; display:flex; align-items:center; gap:8px; border:1px solid #c9d6c8; background:#fffefa; }
 .commerce-extra > summary::after { content:'⌄'; font-size:1em; }
 .commerce-extra > div { position:absolute; z-index:3; right:0; top:calc(100% + 5px); padding:12px; width:min(265px,calc(100vw - 48px)); border:1px solid #c6d5c5; border-radius:12px; background:#fffefa; box-shadow:0 8px 24px #173e361c; }
 .commerce-extra[open] > div,.commerce-row-tools[open] > div { display:grid; gap:7px; }
 .commerce-extra > div .button,.commerce-row-tools > div .button { width:100%; min-height:40px; justify-content:flex-start; border:1px solid #d7e1d6; background:#f7f9f4; color:#244e40; border-radius:8px; box-shadow:none; text-align:left; }
 .commerce-extra .commerce-help { padding:8px 2px; margin:0; border:0; background:none; color:#486151; }
 .commerce-register { border:1px solid #cbd8cb; border-radius:16px; background:#fff; }
 .commerce-rail { display:flex; align-items:center; justify-content:space-between; gap:16px; background:#20493e; border-radius:15px 15px 0 0; padding:15px clamp(14px,2vw,25px); }
 .commerce-switch { display:inline-flex; align-items:stretch; padding:3px; border-radius:10px; background:#10382f; }
 .commerce-switch button { cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:9px; padding:7px 16px; min-height:42px; font:inherit; font-weight:650; font-size:.95rem; border:0; border-radius:8px; background:none; color:#eef4eb; }
 .commerce-switch button[aria-selected=true] { background:#e9efdd; color:#204b3d; }
 .commerce-switch button span { min-width:20px; padding:1px 5px; border-radius:5px; background:#35574a; color:#fff; font-size:.77rem; font-variant-numeric:tabular-nums; }
 .commerce-switch button[aria-selected=true] span { color:#284c3f; background:#d2e0c5; }
 .commerce-rail .commerce-search { width:min(38%,342px); }
 .commerce-rail .commerce-search .search { width:100%; max-width:none; margin:0; }
 .commerce-rail .commerce-search input { font-size:.93rem; background:#fff; color:#203e31; border-color:#b8cab9; }
 .commerce-controls { padding:6px clamp(14px,2vw,25px); border-bottom:1px solid #dce5da; }
 .commerce-controls .commerce-filter-details { margin:0; padding:0; border:0; background:transparent; }
 .commerce-controls .commerce-filter-details > summary { display:list-item; min-height:36px; padding:9px 0; font-size:.84rem; font-weight:650; color:#3c5e4d; cursor:pointer; width:fit-content; }
 .commerce-controls .commerce-filter-details > summary span { color:#4d6557; font-weight:400; }
 .commerce-controls .commerce-filters { margin:0; padding:3px 0 12px; grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr)); }
 .commerce-controls .commerce-filters select { min-height:42px; }
 .view-commercial .commerce-controls .commerce-status-chips { display:flex; flex-wrap:wrap; gap:6px; margin:7px 0 3px; }
 .view-commercial .commerce-controls .commerce-status-chips button { min-height:36px; padding:4px 10px; gap:6px; font-size:.82rem; color:#3d584b; background:#fff; border:1px solid #d5dfd2; border-radius:7px; }
 .view-commercial .commerce-controls .commerce-status-chips button span { color:#425e4c; background:#edf2e8; border-radius:4px; }
 .view-commercial .commerce-controls .commerce-status-chips button[aria-pressed=true] { border-color:#66896e; color:#1a4630; background:#e7efdf; }
 .commerce-credit-note { margin:0; padding:12px clamp(14px,2vw,25px); background:#f8f4e8; color:#574a2c; font-size:.9rem; }
 .commerce-list .panel-header { display:flex; justify-content:space-between; align-items:center; min-height:46px; padding:8px clamp(14px,2vw,25px); background:#f6f8f2; border:0; }
 .commerce-list .panel-header h2 { margin:0; font-size:.94rem; font-weight:650; color:#3b5547; }
 .commerce-list .panel-header .link-button { color:#255e48; }
 .commerce-list .commerce-row,.quote-archives .commerce-row { display:grid; grid-template-columns:minmax(160px,1.45fr) minmax(105px,.88fr) minmax(102px,.8fr) minmax(120px,auto); align-items:start; column-gap:clamp(14px,2.1vw,32px); row-gap:9px; padding:20px clamp(14px,2vw,25px); border-top:1px solid #dce6d9; background:#fff; }
 .commerce-list .commerce-row:last-child { border-radius:0 0 15px 15px; }
 .commerce-row .commerce-row-title { gap:6px; color:#4b6356; }
 .commerce-reference { font-size:.82rem; font-weight:650; line-height:1.4; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
 .commerce-row .commerce-row-main h3 { font-size:clamp(17px,1.32vw,21px); line-height:1.25; color:#1e4033; margin:6px 0 0; }
 .commerce-row .commerce-dates,.commerce-row .commerce-amounts { margin:0; display:grid; gap:7px; min-width:0; }
 .commerce-row dl > div { min-width:0; }
 .commerce-row dl dt { color:#53695d; font-size:.76rem; line-height:1.4; }
 .commerce-row dl dd { margin:1px 0 0; font-size:.91rem; line-height:1.25; font-variant-numeric:tabular-nums; color:#283d32; overflow-wrap:anywhere; }
 .commerce-row .commerce-amounts dd { font-size:1.08rem; font-weight:700; }
 .commerce-row .commerce-balance-due dd { color:#8b4b0e; }
 .commerce-row .commerce-row-actions { grid-column:auto; display:flex; flex-direction:column; align-items:stretch; gap:2px; }
 .view-commercial .commerce-register .commerce-row .button.commerce-open,.view-commercial .quote-archives .commerce-row .button.commerce-open { min-height:41px; padding:6px 12px; border:1px solid #b7cab9; border-radius:8px; box-shadow:none; font-size:.85rem; color:#28533e; background:#f0f5e9; }
 .commerce-row .commerce-open:hover,.commerce-extra > summary:hover,.commerce-row-tools > summary:hover { background:#e3ecda; }
 .commerce-row-tools { min-width:0; }
 .commerce-row-tools > summary { font-size:.77rem; padding:6px 9px; text-align:center; color:#496253; min-height:34px; }
 .commerce-row-tools > div { padding:4px 0; }
 .commerce-row .commerce-session-links { grid-column:1/-1; flex-flow:row wrap; gap:8px 20px; border-top:1px dashed #dae4d8; padding-top:8px; }
 .commerce-row .commerce-session-link { display:flex; align-items:center; flex-wrap:wrap; gap:0 10px; }
 .commerce-row .commerce-session-link button { color:#24664c; font-weight:600; }
 .commerce-row .commerce-session-link small { margin:0; color:#53695b; font-size:.76rem; }
 .view-commercial .quote-archives { border:1px solid #cbd8cb; border-radius:12px; box-shadow:none; background:#fffefa; margin:16px 0; }
 .view-commercial .quote-archives > summary { padding:14px 17px; color:#355744; font-weight:650; }
 .view-commercial .quote-archives > .subtitle { margin:0 17px 12px; }
 .commerce-register :is(button,input,select,summary):focus-visible,.commerce-extra :is(button,summary):focus-visible,#modal .document-client-link:focus-visible { outline:3px solid #228875; outline-offset:2px; }
 #modal .modal-header:has(.document-client-link) > div { min-width:0; }
 #modal .modal-header:has(.document-client-link) :is(h2,p) { overflow-wrap:anywhere; min-width:0; max-width:100%; }
 #modal .document-client-link { display:inline-block; max-width:100%; min-height:40px; margin:0; padding:4px 0; color:#216049; font:inherit; text-align:start; overflow-wrap:anywhere; white-space:normal; background:transparent; border:0; text-decoration:underline; text-underline-offset:.2em; cursor:pointer; }
 @media (min-width:1001px) {
  .commerce-controls:has(.commerce-status-chips) { display:flex; align-items:start; justify-content:space-between; gap:16px; padding-block:9px; flex-wrap:wrap; }
  .commerce-controls:has(.commerce-status-chips) .commerce-status-chips { margin:0; }
  .commerce-controls:has(.commerce-status-chips) .commerce-filter-details:not([open]) { margin-left:auto; }
  .commerce-controls:has(.commerce-status-chips) .commerce-filter-details[open] { flex-basis:100%; }
 }
 @media (max-width:1099px) {
  .commerce-list .commerce-row,.quote-archives .commerce-row { grid-template-columns:minmax(150px,1.4fr) minmax(95px,.86fr) minmax(90px,.8fr) minmax(110px,auto); column-gap:12px; }
 }
 @media (max-width:800px) {
  .commerce-mast { flex-wrap:wrap; gap:11px; padding:5px 0 16px; }
  .commerce-mast h1 { font-size:clamp(36px,6.3vw,46px); }
  .commerce-list .commerce-row,.quote-archives .commerce-row { grid-template-columns:minmax(0,1fr) minmax(90px,.56fr); gap:9px 14px; }
  .commerce-row .commerce-dates { grid-area:2/1/auto/-1; display:flex; flex-wrap:wrap; gap:6px 18px; }
  .commerce-row .commerce-dates > div { display:flex; align-items:baseline; flex-wrap:wrap; gap:3px 6px; }
  .commerce-row .commerce-amounts { grid-area:1/2; text-align:end; }
  .commerce-row .commerce-row-actions { grid-column:1/-1; flex-direction:row; align-items:start; flex-wrap:wrap; gap:6px; }
  .commerce-row-tools > summary { min-height:40px; padding:10px; }
 }
 @media (max-width:599px) {
  .view-commercial .topbar { padding-block:6px; gap:4px; }
  .view-commercial .topbar-right { gap:4px; }
  .view-commercial .topbar-right .button { min-height:40px; padding:5px 8px; font-size:.78rem; }
  .view-commercial .ux-status { margin-bottom:8px; }
  .view-commercial .ux-welcome { margin-bottom:8px; }
  .view-commercial .ux-welcome > summary { padding-block:6px; }
  .commerce-page-actions { position:relative; width:100%; justify-content:start; flex-wrap:wrap; gap:6px; }
  .commerce-mast .commerce-page-actions >.button { min-height:43px; padding:8px 13px; }
  .commerce-rail { align-items:stretch; flex-direction:column; padding:10px; gap:8px; }
  .commerce-rail .commerce-search { width:100%; }
  .commerce-switch button { flex:1; min-height:40px; }
  .commerce-controls { padding:3px 12px; }
  .view-commercial .commerce-controls .commerce-status-chips { display:grid; grid-template-columns:auto auto auto auto; gap:3px; }
  .view-commercial .commerce-controls .commerce-status-chips button { min-height:38px; font-size:.76rem; gap:3px; padding:3px 4px; justify-content:center; }
  .view-commercial .commerce-controls .commerce-status-chips button span { padding:2px 4px; min-width:15px; }
  .commerce-list .panel-header { min-height:38px; padding:5px 13px; }
  .commerce-list .commerce-row,.quote-archives .commerce-row { padding:14px 13px; column-gap:8px; }
  .commerce-row .commerce-row-title { flex-direction:column; align-items:start; gap:4px; }
  .commerce-row .commerce-dates { gap:4px 12px; }
  .commerce-row .commerce-session-links { gap:7px; }
  .commerce-extra { position:static; }
  .commerce-extra > div { left:0; right:auto; width:min(100%,265px); }
 }
 @media (max-width:365px) {
  .view-commercial .commerce-controls .commerce-status-chips { grid-template-columns:repeat(2,minmax(0,1fr)); }
  
  .commerce-controls .commerce-filters { grid-template-columns:1fr; }
 }
}
