/* Quotes is an ordinary page; the document, rather than a dialog, scrolls. */
html body #horizon-booking-demo .hq-quotes-page{
 --q-surface:color-mix(in srgb,var(--hd-soft) 85%,var(--hd-bg));--q-field:color-mix(in srgb,var(--hd-bg) 85%,var(--hd-soft));--q-selected:#503e63;--q-selected-ink:#fff;
 padding:18px 22px 26px;color:var(--hd-fg);background:var(--hd-bg);font:14px/1.45 Inter,'Segoe UI',system-ui,sans-serif;
}
#horizon-booking-demo .hq-quotes-page[hidden]{display:none}
html body #horizon-booking-demo[data-horizon-theme=hq-test] .hq-quotes-page{--q-surface:#e8e0e7;--q-field:#f3edf1}
html body #horizon-booking-demo[data-horizon-theme=evergreen] .hq-quotes-page{--q-surface:#dfe8dd;--q-field:#edf2e9}
html body #horizon-booking-demo[data-horizon-theme=midnight] .hq-quotes-page{--q-surface:#dce4ed;--q-field:#edf1f6}
html body #horizon-booking-demo[data-horizon-theme=hq-classic] .hq-quotes-page{--q-surface:#223b2b;--q-field:#172c20}
html body #horizon-booking-demo[data-horizon-theme=hq] .hq-quotes-page{--q-selected:#594057}
html body #horizon-booking-demo[data-horizon-theme=evergreen] .hq-quotes-page{--q-selected:#244c38}
html body #horizon-booking-demo[data-horizon-theme=midnight] .hq-quotes-page{--q-selected:#244963}
html body #horizon-booking-demo[data-horizon-theme=hq-classic] .hq-quotes-page{--q-selected:#28533c}
html body #horizon-booking-demo[data-horizon-theme=horizon] .hq-quotes-page{--q-selected:#bbcdeb;--q-selected-ink:#142136}
html body #horizon-booking-demo[data-horizon-theme=bubbles] .hq-quotes-page{--q-selected:#9ce5ef;--q-selected-ink:#103947}
#horizon-booking-demo .hqp-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}
#horizon-booking-demo .hqp-heading h2{font-size:22px;font-weight:650;line-height:1.2;margin:0 0 4px}
#horizon-booking-demo .hqp-heading p{font-size:12px;color:var(--hd-secondary)}
#horizon-booking-demo .hq-quotes-page .hwk-status{margin:0 0 10px;min-height:0;font-size:13px}
#horizon-booking-demo .hq-quotes-page .hwk-status:empty{display:none}
#horizon-booking-demo .hq-quotes-page .hwk-status.is-error{color:var(--hd-action);font-weight:650}
#horizon-booking-demo .hq-quotes-page .hwk-grid{grid-template-columns:minmax(0,1fr) minmax(250px,320px);gap:16px;align-items:start}
#horizon-booking-demo .hq-quotes-page :is(.hqp-editor,.hqp-library,.hwk-note,.hwk-link){min-width:0;padding:16px;border:1px solid var(--hd-line);border-radius:12px;background:var(--q-surface);box-shadow:0 2px 9px #0000000c}
#horizon-booking-demo .hq-quotes-page h3{font-size:15px;font-weight:650;margin:0 0 12px}
#horizon-booking-demo .hq-quotes-page h4{font-size:14px;font-weight:650;margin:0 0 8px}
#horizon-booking-demo .hq-quotes-page form{display:grid;gap:12px;min-width:0;margin:0}
#horizon-booking-demo .hq-quotes-page label{display:grid;gap:5px;min-width:0;font-size:12px;font-weight:550;color:var(--hd-secondary)}
html body #horizon-booking-demo .hq-quotes-page .hd-field{box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:36px;padding:8px 10px;font:14px/1.3 Inter,'Segoe UI',system-ui,sans-serif;border:1px solid var(--hd-line)!important;border-radius:7px;background:var(--q-field)!important;color:var(--hd-fg)!important;box-shadow:inset 0 1px 3px #00000008!important}
#horizon-booking-demo .hq-quotes-page textarea{resize:vertical;min-height:64px;max-height:350px}
#horizon-booking-demo .hqp-quote-fields{display:grid;grid-template-columns:minmax(0,1fr) 170px;gap:10px 14px}
#horizon-booking-demo .hqp-quote-fields>label:nth-of-type(2){grid-column:1/-1;grid-row:2}
#horizon-booking-demo .hqp-quote-fields>label:nth-of-type(3){grid-column:2;grid-row:1}
#horizon-booking-demo .hq-quotes-page .hwk-line{grid-template-columns:minmax(120px,1fr) 65px 125px 70px 66px;gap:9px;align-items:end;padding:16px;border:1px solid var(--hd-line);border-radius:12px;background:color-mix(in srgb,var(--q-field) 78%,var(--hd-action));box-shadow:0 2px 5px #00000012;min-width:0}
#horizon-booking-demo .hq-quotes-page .hwk-line+.hwk-line{margin-top:12px}
#horizon-booking-demo .hq-quotes-page .hwk-line:focus-within{border-color:var(--hd-action);box-shadow:0 0 0 2px color-mix(in srgb,var(--hd-action) 25%,transparent)}
#horizon-booking-demo .hq-quotes-page .hwk-line>label:first-child{grid-column:auto}
#horizon-booking-demo .hq-quotes-page .hwk-line>.hwk-check{grid-column:auto;min-height:36px;font-weight:400;color:var(--hd-fg)}
#horizon-booking-demo .hq-quotes-page .hwk-line>button{grid-column:auto;align-self:end;padding:8px 7px;font-size:11px}
#horizon-booking-demo .hq-quotes-page .hwk-check input{width:16px;height:16px;margin:0;flex:none;accent-color:var(--hd-action)}
#horizon-booking-demo .hq-quotes-page .hwk-catalogue-hint{font-size:11px;color:var(--hd-secondary);margin:0}
#horizon-booking-demo .hq-quotes-page .hwk-actions{gap:8px;margin:0}
#horizon-booking-demo .hq-quotes-page .hwk-actions label{flex:1;min-width:150px}
#horizon-booking-demo .hq-quotes-page :is(button,a.hd-secondary){min-height:34px;font-size:12px;line-height:1.3;padding:8px 12px}
#horizon-booking-demo .hq-quotes-page a.hd-secondary{display:inline-flex;align-items:center;text-decoration:none}
#horizon-booking-demo .hq-quotes-page form>button[type=submit]{justify-self:start;margin-top:2px}
#horizon-booking-demo .hq-quotes-page .hqp-quote-actions{margin-top:10px}
#horizon-booking-demo .hq-quotes-page .hqp-library>.hwk-actions{justify-content:space-between;margin-bottom:12px}
#horizon-booking-demo .hq-quotes-page .hqp-library h3{margin:0}
#horizon-booking-demo .hq-quotes-page .hwk-list{gap:7px;margin-top:12px;max-height:560px}
#horizon-booking-demo .hq-quotes-page .hwk-list-item{padding:10px 11px;gap:3px;border-color:var(--hd-line);background:var(--q-field)}
#horizon-booking-demo .hq-quotes-page .hwk-list-item span{font-size:11px;color:var(--hd-secondary)}
#horizon-booking-demo .hq-quotes-page .hwk-list>p{padding:16px 0;color:var(--hd-secondary);font-size:12px}
#horizon-booking-demo .hq-quotes-page .hwk-note{margin:0}
#horizon-booking-demo .hq-quotes-page .hwk-note :is(p,pre){margin:7px 0;font-size:13px}
#horizon-booking-demo .hq-quotes-page .hwk-body.hqp-issued{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#horizon-booking-demo .hq-quotes-page .hqp-issued>:is(.hwk-actions,p,.hwk-link,[data-mail-review]){grid-column:1/-1}
@media(max-width:1100px){
 #horizon-booking-demo .hq-quotes-page .hwk-grid{grid-template-columns:minmax(0,1fr) 265px}
 #horizon-booking-demo .hq-quotes-page .hwk-line{grid-template-columns:75px 125px minmax(70px,1fr) 70px;gap:9px}
 #horizon-booking-demo .hq-quotes-page .hwk-line>label:first-child{grid-column:1/-1}
 #horizon-booking-demo .hq-quotes-page .hwk-line>.hwk-check{grid-column:auto}
 #horizon-booking-demo .hq-quotes-page .hwk-line>button{grid-column:4}
}
@media(max-width:800px){
 html body #horizon-booking-demo .hq-quotes-page{padding:14px}
 #horizon-booking-demo .hq-quotes-page :is(.hwk-grid,.hwk-body.hqp-issued){grid-template-columns:minmax(0,1fr)}
 #horizon-booking-demo .hq-quotes-page .hwk-line{grid-template-columns:75px 125px minmax(70px,1fr) 70px}
 #horizon-booking-demo .hq-quotes-page .hqp-heading{align-items:flex-start}
}
@media(max-width:440px){
 #horizon-booking-demo .hqp-quote-fields{grid-template-columns:minmax(0,1fr)}
 #horizon-booking-demo .hqp-quote-fields>label:nth-of-type(n){grid-column:1;grid-row:auto}
 #horizon-booking-demo .hq-quotes-page .hwk-line{grid-template-columns:minmax(0,1fr) minmax(100px,1fr)}
 #horizon-booking-demo .hq-quotes-page .hwk-line>button{grid-column:2}
}
#horizon-booking-demo .hq-quotes-page .hwk-body.hqp-issued{align-items:start}

/* One compact directory stays available beside both draft and issued quotes. */
html body #horizon-booking-demo .hq-quotes-page .hqp-workspace{grid-template-columns:minmax(190px,.17fr) minmax(0,.83fr);column-gap:36px;row-gap:36px}
html body #horizon-booking-demo .hq-quotes-page .hqp-library{position:relative;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;align-self:stretch}
html body #horizon-booking-demo .hq-quotes-page .hqp-library::after{content:"";position:absolute;pointer-events:none;top:0;bottom:0;right:-19px;width:2px;border-radius:2px;background:var(--hd-secondary);opacity:.55}
#horizon-booking-demo .hq-quotes-page .hqp-status-filters{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px}
html body #horizon-booking-demo[data-horizon-theme] .hq-quotes-page .hqp-status-filters button{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:var(--q-field)!important;background-image:none!important;color:var(--hd-fg)!important;border:1px solid var(--hd-line)!important;border-radius:8px;box-shadow:none!important;text-shadow:none!important}
html body #horizon-booking-demo[data-horizon-theme] .hq-quotes-page .hqp-status-filters button[aria-pressed=true]{background:var(--q-selected)!important;color:var(--q-selected-ink)!important;border-color:var(--q-selected)!important;font-weight:750;box-shadow:0 0 0 2px var(--q-surface),0 0 0 3px var(--q-selected)!important}
html body #horizon-booking-demo[data-horizon-theme] .hq-quotes-page .hqp-status-filters button[aria-pressed=true]::before{content:'✓';font-weight:800}
html body #horizon-booking-demo[data-horizon-theme] .hq-quotes-page .hqp-status-filters button :is(span,strong){color:inherit!important}
html body #horizon-booking-demo[data-horizon-theme] .hq-quotes-page .hqp-status-filters button:focus-visible{outline:3px solid var(--q-selected);outline-offset:4px}
#horizon-booking-demo .hq-quotes-page .hqp-search-count{font-size:12px;color:var(--hd-secondary);margin:10px 0}
html body #horizon-booking-demo .hq-quotes-page .hqp-library .hwk-list{display:grid;gap:0;max-height:clamp(240px,48vh,420px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;border:1px solid var(--hd-line);border-radius:10px}
html body #horizon-booking-demo .hq-quotes-page .hwk-list-item{border-width:0 0 1px;border-radius:0;text-align:left;min-width:0}
#horizon-booking-demo .hq-quotes-page .hwk-list-item :is(strong,span){display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#horizon-booking-demo .hq-quotes-page :is(.hwk-list-item,.hqp-status-filters button)[aria-pressed=true]{background:var(--q-surface);box-shadow:inset 3px 0 var(--hd-action)}
#horizon-booking-demo .hq-quotes-page .hqp-job-links{display:grid;gap:10px;padding:12px;margin:0 0 16px;border:1px solid var(--hd-line);border-radius:9px;background:var(--q-field)}
#horizon-booking-demo .hq-quotes-page .hqp-job-links p{margin:0;font-size:12px;color:var(--hd-secondary)}
#horizon-booking-demo .hq-quotes-page .hqp-job-link{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px}
#horizon-booking-demo .hq-quotes-page .hqp-job-link>div:first-child{display:grid;gap:5px}
#horizon-booking-demo .hq-quotes-page .hqp-job-link span{color:var(--hd-secondary)}
@media(max-width:800px){
 html body #horizon-booking-demo .hq-quotes-page .hqp-workspace{grid-template-columns:minmax(0,1fr)}
 html body #horizon-booking-demo .hq-quotes-page .hqp-library::after{top:auto;bottom:-19px;left:0;right:0;width:auto;height:2px}
}
