/* Scoped quotation workspace: honors BI4U themes, keeps long labels readable. */
.tq{max-width:1120px;margin:0 auto;--tq-accent:var(--primary,#1689a5);overflow-wrap:anywhere}.tq h2{font-size:clamp(24px,3vw,34px);letter-spacing:-.035em;margin:18px 0 28px}.tq h3{font-size:21px;letter-spacing:-.025em;margin:8px 0}.tq-section{padding:28px;margin:20px 0;background:var(--panel,#fff);border:1px solid var(--line,#dbe4ec);border-radius:20px;box-shadow:0 6px 24px #00000005}.tq-section>span{font-size:11px;font-weight:750;letter-spacing:.16em;color:var(--muted,#63778a)}.tq-section>p{color:var(--muted,#63778a);font-size:14px;margin:8px 0 24px}.tq-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 18px}.tq label,.tq-dialog label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:550;min-width:0}.tq input,.tq select,.tq textarea,.tq-dialog input,.tq-dialog select,.tq-dialog textarea{width:100%;box-sizing:border-box;min-height:46px;border:1px solid var(--line,#cbd8e2);border-radius:9px;padding:11px 12px;font:inherit;color:var(--text,#19324b);background:var(--bg,#f7f9fc)}.tq input:focus,.tq select:focus,.tq textarea:focus{outline:2px solid var(--tq-accent);outline-offset:2px}.tq label:has(input[type=checkbox]){flex-direction:row;align-items:flex-start;padding:14px 0;font-weight:400}.tq input[type=checkbox]{width:19px;height:19px;min-height:19px;flex:none;accent-color:var(--tq-accent)}.tq fieldset{min-width:0;border:1px solid var(--line,#dbe4ec);border-radius:14px;padding:22px;margin:22px 0;background:var(--bg,#f8fafc)}.tq legend{padding:0 10px;font-size:14px;font-weight:700}.tq-wide{grid-column:span 2}.tq textarea,.tq-dialog textarea{min-height:96px;resize:vertical}.tq details{border-top:1px solid var(--line,#dbe4ec);margin:22px 0 14px;padding-top:16px}.tq details>summary{font-size:13px;cursor:pointer;font-weight:600;padding:5px 0}.tq details[open]>.tq-grid{margin-top:20px}.tq-actions{display:flex;flex-wrap:wrap;gap:10px;position:sticky;bottom:12px;padding:14px;border-radius:14px;background:var(--panel,#fff);border:1px solid var(--line,#dbe4ec);box-shadow:0 6px 28px #0002;z-index:2}.tq-actions .primary{margin-left:auto}.tq button,.tq-dialog button{margin:4px;min-height:42px;border-radius:9px}.tq-note{font-size:12px;line-height:1.6;padding:14px 16px;border-left:3px solid #c49554;background:var(--panel,#fff);border-radius:0 8px 8px 0}.tq-result,.tq-revision{padding:22px;border:1px solid var(--line,#dbe4ec);border-radius:14px;margin:16px 0;background:var(--panel,#fff)}.tq-summary{padding:26px;border:1px solid var(--tq-accent);border-radius:18px;margin:24px 0;background:var(--panel,#fff)}.tq-summary p{font-size:13px;line-height:1.7}.tq-total{display:block;padding-top:18px;margin-top:18px;border-top:1px solid var(--line,#dbe4ec);font-size:clamp(22px,3vw,30px);letter-spacing:-.025em}.tq-dialog{width:min(900px,94vw);max-height:90vh;overflow:auto;padding:24px;box-sizing:border-box;border:1px solid var(--line,#bccbd8);border-radius:18px;background:var(--panel,#fff);color:var(--text,#172b40);overflow-wrap:anywhere}.tq-dialog::backdrop{background:#001a3080;backdrop-filter:blur(3px)}.tq-dialog form{display:grid;gap:16px}.tq-templates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.tq .tq-template{position:relative;border:2px solid var(--line,#dbe4ec);border-radius:14px;padding:16px;cursor:pointer;transition:border-color .15s,box-shadow .15s}.tq-template:has(input:checked){border-color:var(--tq-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--tq-accent) 18%,transparent)}.tq .tq-template input{position:absolute;right:12px;top:12px;width:18px;height:18px;min-height:0;accent-color:var(--tq-accent)}.tq-template>small{font-size:11px;color:var(--muted,#63778a)}.tq-paper{height:225px;background:#fff;color:#15324d;margin:14px 12px 10px;padding:18px 14px;border-top:7px solid #15324d;box-shadow:0 3px 14px #0002;display:flex;flex-direction:column;gap:8px;overflow:hidden}.tq-paper img{width:72px;height:30px;object-fit:contain;object-position:left}.tq-paper b{font-size:16px;margin-top:9px}.tq-paper span,.tq-paper small{font-size:8px;line-height:1.4}.tq-paper i{height:9px;background:#edf3f8;display:block}.tq-paper strong{font-size:10px;margin-top:8px;border-top:1px solid #dde6ed;padding-top:9px}.editorial .tq-paper{border-top:2px solid #8a6035;color:#8a6035;padding-top:23px}.editorial .tq-paper i{background:#f7f1e7}.contemporary .tq-paper{border-top:0;border-left:7px solid #087e80;color:#087e80;padding-top:25px}.contemporary .tq-paper i{background:#eaf7f4}@media(max-width:760px){.tq-section{padding:18px}.tq-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.tq fieldset{padding:16px}.tq-templates{grid-template-columns:1fr}.tq .tq-template{display:grid;grid-template-columns:110px 1fr;align-items:center;gap:6px 20px}.tq-paper{grid-row:span 2;width:90px;height:125px;margin:0;padding:10px;gap:4px}.tq-paper b{font-size:11px}.tq-paper img{width:44px;height:20px}.tq-paper i{height:4px}.tq-paper small,.tq-paper span{font-size:6px}.tq-actions{position:static}.tq-actions .primary{margin-left:4px}.tq-dialog{padding:16px}}@media(max-width:480px){.tq-grid{grid-template-columns:1fr}.tq-wide{grid-column:auto}.tq-actions{flex-direction:column}.tq-section{padding:15px}.tq input,.tq select,.tq textarea{font-size:16px}}
.tq-dialog .tq-suggestion{border-left:4px solid #bd9250}.tq-suggestion>small{display:block;margin:10px 0;line-height:1.5}.tq-suggestion>strong{display:block}.tq-dialog .tq-note{font-size:13px;line-height:1.5;padding:14px;border-left:3px solid #bd9250}
