/* Quotation Tracker */
.qt-export-pdf{border-color:#f2a7ad!important;background:#fff5f5!important;color:#b4232d!important}.qt-export-excel{border-color:#8bd7bb!important;background:#f0fff8!important;color:#087957!important}
.qt-page{min-width:0}.qt-summary-grid{grid-template-columns:repeat(6,minmax(135px,1fr))}.qt-dashboard-card{position:relative;min-height:126px;text-align:left;border-color:color-mix(in srgb,var(--accent) 38%,var(--line));border-bottom:4px solid var(--accent);background:color-mix(in srgb,var(--accent) 5%,#fff)}.qt-dashboard-card strong{display:block;margin-top:14px;font:800 28px Manrope;color:var(--ink)}.qt-dashboard-card label{display:block;margin-top:2px;font-weight:800}.qt-dashboard-card small{position:absolute;right:12px;top:12px;padding:4px 7px;border-radius:99px;background:color-mix(in srgb,var(--accent) 10%,#fff);color:var(--accent);font-weight:800}.qt-dashboard-card .metric-icon{background:color-mix(in srgb,var(--accent) 11%,#fff);color:var(--accent)}.qt-filter-panel{margin:15px 0;padding:14px 16px}.qt-filter-panel .search-panel-head{display:flex;justify-content:space-between;align-items:center;width:auto;margin:0 0 9px;padding:0;border:0;background:transparent}.qt-filter-panel .search-panel-head b{font-size:16px}.qt-filter-grid{display:grid;grid-template-columns:minmax(250px,1.8fr) repeat(5,minmax(130px,1fr)) auto auto;gap:10px;align-items:end}.qt-filter-grid .field{min-width:0}.qt-filter-grid input,.qt-filter-grid select{width:100%;height:40px}.qt-table-card .data-table th:first-child,.qt-table-card .data-table td:first-child{width:48px;min-width:48px}.qt-table-card .data-table td:nth-child(4){min-width:220px}.qt-table-card .data-table td:nth-child(13){width:66px;min-width:66px}.qt-status,.qt-transfer{display:inline-flex;align-items:center;padding:5px 9px;border-radius:99px;background:#edf1f3;color:#62727c;font-size:10px;font-weight:800;white-space:nowrap}.qt-status::before,.qt-transfer::before{content:"";width:6px;height:6px;margin-right:6px;border-radius:50%;background:currentColor}.qt-status.qt-issued{background:#e9f1ff;color:#2860bd}.qt-status.qt-accepted,.qt-transfer-done{background:#e5f8f2;color:#087b69}.qt-status.qt-rejected{background:#ffe9ea;color:#ad2f38}.qt-status.qt-on-hold,.qt-transfer-pending{background:#fff0dd;color:#946100}.qt-form-grid{display:grid;grid-template-columns:repeat(5,minmax(145px,1fr));gap:12px}.qt-form-grid .span-2{grid-column:span 2}.qt-form-grid .full{grid-column:1/-1}.qt-form-grid textarea{min-height:82px}.qt-inline{display:grid;grid-template-columns:1fr auto auto;gap:8px}.qt-client-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:8px;max-height:220px;overflow:auto}.qt-client-results button{display:grid;gap:3px;padding:10px;border:1px solid var(--line);border-radius:9px;background:#fff;text-align:left}.qt-client-results button:hover{border-color:var(--teal);background:#f2fbf9}.qt-client-results span,.qt-selected-client,.qt-client-matches span{color:var(--muted);font-size:10px}.qt-selected-client{padding:9px;border-radius:8px;background:#e9f8f4}.qt-client-matches{display:grid;gap:8px;margin-top:14px}.qt-client-matches article{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px;border:1px solid var(--line);border-radius:10px}.qt-client-matches article>div{display:grid;gap:3px}.qt-history-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:15px 0}.qt-history-summary b{padding:13px;border:1px solid var(--line);border-radius:9px;background:var(--paper);text-align:center}.qt-view ul{padding-left:20px}.qt-action-menu div{min-width:240px}.qt-import-results{max-height:260px;overflow:auto;margin-top:12px}.qt-import-results li{margin:5px 0;color:var(--danger)}
@media(max-width:1350px){.qt-summary-grid{grid-template-columns:repeat(3,1fr)}.qt-filter-grid{grid-template-columns:repeat(4,minmax(130px,1fr))}.qt-search{grid-column:span 2}.qt-form-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:850px){.qt-summary-grid{grid-template-columns:repeat(2,1fr)}.qt-filter-grid{grid-template-columns:repeat(2,1fr)}.qt-search{grid-column:1/-1}.qt-form-grid{grid-template-columns:repeat(2,1fr)}.qt-form-grid .span-2{grid-column:1/-1}.qt-client-results{grid-template-columns:1fr}}
@media(max-width:560px){.qt-summary-grid,.qt-filter-grid,.qt-form-grid,.qt-history-summary{grid-template-columns:1fr}.qt-search,.qt-form-grid .span-2,.qt-form-grid .full{grid-column:auto}.qt-inline{grid-template-columns:1fr}.qt-filter-grid button,.qt-inline button{width:100%}}
.qt-form-grid input:not([type="hidden"]),.qt-form-grid select,.qt-form-grid .qt-add-option,.qt-form-grid .qt-inline button{width:100%;height:42px}

/* Compact dashboard summaries while preserving responsive stacking. */
.qt-dashboard-card{min-height:100px;padding:12px 14px}.qt-dashboard-card strong{margin-top:7px;font-size:26px}.qt-dashboard-card>label{margin-top:3px}

/* Keep compact desktop ownership/status columns without changing mobile cards. */
@media (min-width:851px){
  .qt-table-card .data-table th:nth-child(8),.qt-table-card .data-table td:nth-child(8){width:88px;min-width:88px;max-width:110px}
  .qt-table-card .data-table th:nth-child(10),.qt-table-card .data-table td:nth-child(10){width:104px;min-width:104px;max-width:116px}
  .qt-filter-grid>button{width:64px;min-width:64px;min-height:40px;padding-inline:6px;justify-self:start}
}

/* Keep all quotation filters compact on wide screens without changing mobile stacking. */
@media (min-width:1351px){
  .qt-filter-grid{grid-template-columns:minmax(200px,1.25fr) minmax(96px,.62fr) minmax(100px,.65fr) minmax(120px,.78fr) minmax(118px,.72fr) minmax(118px,.72fr) 64px 64px}
}

/* Branded quotation and proposal management report. */
.qt-generate-report{background:#10233d!important;border-color:#10233d!important;color:#fff!important}
.modal-card.qt-report-modal{width:min(1400px,96vw);max-width:1400px;height:min(94vh,980px);padding:0;overflow:hidden}
.qt-report-builder{display:flex;flex-direction:column;height:100%;min-height:0;background:#f4f7f8}
.qt-report-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px 24px 14px;background:#fff;border-bottom:1px solid var(--line)}
.qt-report-modal-head h2{margin:3px 0 4px}.qt-report-modal-head .sub{margin:0;color:var(--muted)}
.qt-report-presets{display:flex;gap:7px;padding:10px 24px;background:#fff;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:thin}
.qt-report-presets button{min-width:max-content;padding:7px 11px}.qt-report-presets button.active{background:#e8f7f4;border-color:#129681;color:#087766}
.qt-report-controls{display:grid;grid-template-columns:repeat(4,minmax(145px,1fr)) minmax(270px,1.5fr) auto;gap:10px;align-items:end;padding:12px 24px;background:#fff;border-bottom:1px solid var(--line)}
.qt-report-controls .field{min-width:0}.qt-report-controls input,.qt-report-controls select{width:100%;height:40px}
.qt-report-statuses{display:flex;align-items:center;gap:8px;min-height:40px;padding:7px 9px;border:1px solid var(--line);border-radius:9px;overflow-x:auto;background:#fff;white-space:nowrap}
.qt-report-statuses label{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:700}.qt-report-statuses input{width:15px;height:15px;margin:0}
.qt-report-downloads{display:flex;justify-content:flex-end;gap:8px;padding:9px 24px;background:#eef4f4;border-bottom:1px solid var(--line)}
.qt-report-preview-wrap{flex:1;min-height:0;padding:16px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.qt-report-preview-sheet{width:min(1180px,100%);min-width:930px;margin:0 auto;padding:24px;border:1px solid #d8e1e4;border-radius:14px;background:#fff;box-shadow:0 12px 30px rgba(12,35,56,.08);color:#10233d}
.qt-report-brand{display:grid;grid-template-columns:150px 1fr 150px;align-items:center;gap:20px;padding-bottom:15px;border-bottom:3px solid #129681;text-align:center}
.qt-report-brand img{display:block;max-width:150px;max-height:55px;object-fit:contain;margin:auto}.qt-report-brand h2{margin:0;font-size:24px;letter-spacing:.04em}.qt-report-brand p{margin:4px 0 0;color:#167e80;font-size:12px;font-weight:800;letter-spacing:.08em}.qt-report-brand small{display:block;margin-top:6px;color:#647682}
.qt-report-kpis{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:16px 0}
.qt-report-kpis article{min-height:78px;padding:12px;border:1px solid #d9e4e7;border-radius:10px;background:#f8fbfb}.qt-report-kpis span{display:block;color:#667884;font-size:10px;font-weight:800;text-transform:uppercase}.qt-report-kpis strong{display:block;margin-top:9px;font-size:22px;color:#10233d}
.qt-report-category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.qt-report-category{padding:14px;border:1px solid #d9e4e7;border-radius:12px;background:#fff}.qt-report-category h3{margin:0 0 12px;font-size:15px}.qt-report-chart-row{display:flex;align-items:center;gap:16px}
.qt-report-donut{position:relative;flex:0 0 112px;width:112px;height:112px;border-radius:50%}.qt-report-donut::after{content:"";position:absolute;inset:25px;border-radius:50%;background:#fff}.qt-report-donut-total{position:absolute;inset:0;z-index:1;display:grid;place-content:center;text-align:center;font-size:10px;color:#687983}.qt-report-donut-total strong{font-size:20px;color:#10233d}
.qt-report-legend{display:grid;gap:7px;min-width:0}.qt-report-legend div{display:grid;grid-template-columns:9px 1fr auto;align-items:center;gap:6px;font-size:11px}.qt-report-legend i{width:9px;height:9px;border-radius:3px}.qt-report-legend b{font-size:12px}
.qt-report-summary{margin:14px 0;padding:12px 14px;border-left:4px solid #129681;border-radius:8px;background:#eff9f7}.qt-report-summary h3{margin:0 0 5px;font-size:14px}.qt-report-summary p{margin:0;color:#4f626e;font-size:12px;line-height:1.5}
.qt-report-table-wrap{overflow:auto}.qt-report-table{width:100%;border-collapse:collapse;font-size:11px}.qt-report-table th{padding:8px;background:#10233d;color:#fff;text-align:left}.qt-report-table td{padding:7px 8px;border-bottom:1px solid #dce5e8}.qt-report-table tbody tr:nth-child(even){background:#f7fafb}
@media(max-width:1100px){.qt-report-controls{grid-template-columns:repeat(3,1fr)}.qt-report-status-field{grid-column:span 2}.qt-report-kpis{grid-template-columns:repeat(4,1fr)}}
@media(max-width:700px){.modal-card.qt-report-modal{width:100vw;height:100dvh;max-height:none;border-radius:0}.qt-report-modal-head,.qt-report-presets,.qt-report-controls,.qt-report-downloads{padding-inline:14px}.qt-report-controls{grid-template-columns:1fr 1fr}.qt-report-status-field{grid-column:1/-1}.qt-report-downloads{justify-content:stretch}.qt-report-downloads button{flex:1}.qt-report-preview-wrap{padding:10px}.qt-report-preview-sheet{min-width:820px}.qt-report-brand{grid-template-columns:120px 1fr 120px}.qt-report-kpis{grid-template-columns:repeat(4,1fr)}}
