:root{--bg:#f5f7fb;--card:#fff;--line:#dbe3ef;--text:#132238;--muted:#64748b;--primary:#0f4c81;--primary2:#0b679e;--accent:#d8891c;--danger:#c0392b;--success:#157347;--soft:#eef5ff}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0;font-family:Arial,sans-serif}.app{max-width:1600px;padding:18px;padding-left:max(18px, env(safe-area-inset-left));padding-right:max(18px, env(safe-area-inset-right));padding-bottom:max(18px, env(safe-area-inset-bottom));margin:0 auto}.hero{background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;border-radius:22px;margin-bottom:16px;padding:18px}.hero-inner{align-items:center;gap:16px;display:flex}.hero-logo{object-fit:contain;background:#fff;border-radius:16px;width:84px;height:84px;padding:6px;display:none}.hero h1{margin:0 0 6px}.hero p{color:#e8f1fb;margin:0}.tabs{-webkit-overflow-scrolling:touch;scrollbar-width:thin;flex-wrap:wrap;gap:10px;margin-bottom:16px;padding-bottom:4px;display:flex;overflow-x:auto}.tab{color:var(--primary);cursor:pointer;white-space:nowrap;background:#eaf0f7;border:none;border-radius:999px;flex-shrink:0;padding:11px 15px;font-weight:700}.tab.active{background:var(--primary);color:#fff}.panel{display:none}.panel.active{display:block}.card{background:var(--card);border:1px solid var(--line);border-radius:16px;margin-bottom:16px;padding:16px;box-shadow:0 2px 8px #0000000a}.group-card{border:2px solid #ebf1fa}.group-items-footer{border-top:1px solid #0f4c811f;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:10px;margin-top:12px;padding-top:12px}.group-items-footer .bulk-items-add{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.group-items-footer .bulk-items-add input[type=number]{width:88px;min-width:72px;padding:8px 10px}.group-footer-divider{background:#0f4c812e;align-self:stretch;width:1px;min-height:36px;margin:0 4px}.row{grid-template-columns:repeat(auto-fill,minmax(min(150px,100%),1fr));align-items:end;gap:8px 10px;display:grid}.field{min-width:0}.span-4,.span-6,.span-8,.span-12,.field--full{grid-column:1/-1}label{color:var(--muted);margin-bottom:6px;font-size:13px;font-weight:700;display:block}input,select,textarea{border:1px solid var(--line);background:#fff;border-radius:10px;width:100%;padding:10px;font-size:14px}textarea{resize:vertical;min-height:90px}button{cursor:pointer;background:var(--primary);color:#fff;border:none;border-radius:10px;padding:10px 14px;font-weight:700}.secondary{color:var(--primary);background:#eaf0f7}.danger{background:var(--danger)}.success{background:var(--success)}.warn{background:var(--accent);color:#222}.toolbar{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.section-title{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;display:flex}.section-title h2,.section-title h3,.section-title h4{margin:0}.summary{grid-template-columns:repeat(4,1fr);gap:12px;display:grid}.summary-compact{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.summary-compact .box{border-radius:10px;min-height:0;padding:8px 10px}.summary-compact .box .t{color:var(--muted);font-size:11px;line-height:1.35}.summary-compact .box .v{word-break:break-word;margin-top:4px;font-size:17px;line-height:1.2}.card-compact{margin-bottom:12px;padding:12px 14px}.group-card{margin-bottom:10px;padding:10px 12px}.group-card .section-title{margin-bottom:6px}.group-card .row{grid-template-columns:repeat(auto-fill,minmax(min(118px,100%),1fr));gap:6px 8px;margin-bottom:4px}.group-card .field{min-width:0}.group-card .field.field--wide{grid-column:span 2}.group-card .field.field--full{grid-column:1/-1}.group-card .field.field--position{min-width:0}.group-card .field label{white-space:nowrap;text-overflow:ellipsis;margin-bottom:2px;font-size:11px;line-height:1.2;overflow:hidden}.group-card .field input,.group-card .field select{border-radius:7px;min-height:32px;padding:5px 6px;font-size:12px}.group-card .note{margin:6px 0;padding:6px 8px;font-size:12px;line-height:1.45}.group-card .small{font-size:10px}.box{background:var(--soft);border-radius:12px;padding:14px}.box .t{color:var(--muted);font-size:13px}.box .v{margin-top:8px;font-size:24px;font-weight:700}.note{color:#765500;background:#fff8e9;border:1px solid #f1ddb0;border-radius:12px;padding:12px;line-height:1.8}.small{color:var(--muted);font-size:12px}.hidden{display:none!important}.save-project-footer{z-index:40;margin-top:16px;margin-left:calc(-1 * max(18px, env(safe-area-inset-left)));margin-right:calc(-1 * max(18px, env(safe-area-inset-right)));padding:12px max(18px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));background:linear-gradient(to top, var(--bg) 82%, transparent);position:sticky;bottom:0}.save-project-footer-inner{border:2px solid var(--primary);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px 16px;margin-bottom:0;display:flex;box-shadow:0 -4px 20px #0f4c811f}.save-project-footer-info{flex:200px;min-width:0}.save-project-footer-title{font-size:15px;display:block}.save-project-footer-hint{word-break:break-word;margin:4px 0 0;line-height:1.5}.save-project-footer-actions{flex-wrap:wrap;flex:280px;justify-content:flex-end;margin:0}.save-project-footer-actions button{white-space:normal;text-align:center;flex:auto;min-width:min(100%,180px);line-height:1.35}.btn-label-short{display:none}#quoteEditor:has(#saveProjectFooter:not(.hidden)){padding-bottom:4px}.app-modal{z-index:99999;justify-content:center;align-items:center;padding:18px;display:flex;position:fixed;inset:0}.app-modal-backdrop{background:#0f233c73;position:absolute;inset:0}.app-modal-card{z-index:1;width:min(480px,100%);max-height:90vh;margin:0;position:relative;overflow-y:auto}.history-actions{white-space:nowrap;flex-wrap:wrap;gap:6px;display:flex}.history-actions button{padding:8px 10px;font-size:13px}.status-badge{color:var(--primary);white-space:nowrap;background:#eef5ff;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:700;display:inline-block}.app-toast{color:#fff;z-index:100000;pointer-events:none;border-radius:12px;padding:11px 22px;font-size:14px;font-weight:700;transition:opacity .25s,transform .25s;position:fixed;bottom:22px;left:50%;transform:translate(-50%);box-shadow:0 6px 24px #0000002e}.app-toast--success{background:var(--success)}.app-toast--warn{background:var(--accent);color:#222}.app-toast--error{background:var(--danger)}.app-toast--hide{opacity:0;transform:translate(-50%)translateY(12px)}.req-missing{background:#fff7f7!important;border:2px solid #dc2626!important}.scroll{-webkit-overflow-scrolling:touch;max-width:100%;overflow:auto visible}.scroll table{min-width:min(100%,720px)}.group-card .scroll table{table-layout:fixed;width:100%;min-width:100%}.group-card .scroll table th,.group-card .scroll table td{vertical-align:middle;padding:8px 4px;overflow:hidden}.group-card .scroll table input,.group-card .scroll table select,.group-card .scroll table .joint-cell-btn,.group-card .scroll table button:not(.danger){text-align:center;box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:8px 4px;font-size:12px}.item-qty-note-cell,.item-qty-cover-cell{flex-direction:row;align-items:stretch;gap:4px;min-width:0;padding:6px 4px;display:flex}.item-qty-note-cell>input,.item-qty-note-cell>select,.item-qty-note-cell>button,.item-qty-cover-cell>input,.item-qty-cover-cell>select,.item-qty-cover-cell>button{flex:1 1 0;width:auto;min-width:0;max-width:none}.item-sliding-door-btn{white-space:normal;padding:7px 4px;font-size:11px;line-height:1.2}.group-card .scroll table .joint-cell-btn{min-height:52px}.group-card .scroll table .joint-cell-td{min-width:0}.group-card .scroll table button.danger{width:100%;min-width:0;padding:8px 4px;font-size:12px}@media screen and (width<=1024px){.group-card .scroll{-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scrollbar-width:thin;max-width:100%;overflow:auto visible}.group-card .scroll table{table-layout:fixed;width:920px;min-width:920px;max-width:none}}#quotesHistoryTable{min-width:920px}#quotesHistoryTable .history-grand-total{color:#0f4c81;white-space:nowrap;margin-inline-start:8px;font-size:12px;font-weight:800;display:inline-block}.delivery-urgency--red td{background:#fee2e2!important}.delivery-urgency--blue td{background:#e0f2fe!important}.delivery-urgency--green td{background:#dcfce7!important}.delivery-legend{border-radius:999px;padding:2px 8px;font-size:11px;font-weight:700;display:inline-block}.delivery-legend--red{color:#991b1b;background:#fee2e2}.delivery-legend--blue{color:#075985;background:#e0f2fe}.delivery-legend--green{color:#166534;background:#dcfce7}.extras-table-wrap{-webkit-overflow-scrolling:touch;overflow-x:auto}.extras-table-wrap table{min-width:min(100%,920px)}.extra-measure{flex-wrap:wrap;justify-content:center;align-items:center;gap:6px 8px;min-width:0;max-width:100%;display:flex}.extra-measure .extra-lw{flex:72px;min-width:64px;max-width:120px}.extra-measure .extra-lw input{width:100%;min-width:0;padding:8px 6px;font-size:13px}.extra-measure .extra-x{color:var(--muted);flex:none;padding:0 2px;font-weight:700;line-height:1}.extra-measure .extra-area-inline{color:var(--muted);white-space:nowrap;flex:0 auto;font-size:11px;line-height:1.2}.extra-measure .extra-lm{flex:100px;min-width:80px;max-width:140px}.extra-measure .extra-lm input{width:100%;min-width:0;padding:8px 6px;font-size:13px}@media (width<=900px){.extras-table-wrap table{min-width:780px}}table{border-collapse:collapse;width:100%;margin-top:10px}th,td{text-align:center;vertical-align:middle;border-bottom:1px solid #edf1f7;padding:8px}thead th{background:#f1f5fb}.group-total{background:#f7fbff;font-weight:700}.inline-actions{flex-wrap:wrap;gap:8px;display:flex}.bulk-items-add{flex-wrap:wrap;align-items:center;gap:6px;display:inline-flex}.bulk-items-label{color:var(--muted);white-space:nowrap;font-size:12px;font-weight:700}.bulk-items-add input{text-align:center;width:76px;min-width:64px;padding:8px 6px}.admin-locked{max-width:420px;margin:0 auto}.quote-page,.workshop-sheet{background:#fff;border:2px solid #c7d7ee;border-radius:18px;margin-bottom:14px;padding:18px}.quote-head{text-align:center;background:linear-gradient(135deg,#f3f8ff,#e9f4ff);border:1px solid #cfe0f6;border-radius:14px;margin-bottom:16px;padding:12px 12px 18px}.quote-head img{object-fit:contain;max-width:220px;max-height:96px}.logo-text{color:var(--primary);font-size:32px;font-weight:700}.quote-meta{background:#f8fbff;border:2px solid #c7d7ee;border-radius:16px;grid-template-columns:repeat(6,1fr);align-items:start;gap:10px;margin-bottom:12px;padding:14px;display:grid}.quote-meta .meta-item{line-height:1.6}.quote-section{background:#fff;border:2px solid #c7d7ee;border-radius:16px;margin-bottom:12px;padding:14px}.quote-section h3{color:#0f4c81;background:#edf5ff;border-radius:10px;margin:0 0 10px;padding:8px 10px;font-size:17px}.quote-section h3.quote-section-heading{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.quote-section .quote-section-name{font-weight:800}.quote-section .quote-section-meta{color:#475569;font-size:14px;font-weight:600}.quote-footer{break-inside:avoid;page-break-inside:avoid;background:#f8fbff;border:2px solid #c7d7ee;border-radius:16px;margin-top:12px;padding:14px}.quote-page table{border:2px solid #9fb7d6;border-radius:10px;overflow:hidden}.quote-page thead th{color:#0f4c81;background:#eaf3ff;border-bottom:2px solid #9fb7d6}.quote-page th,.quote-page td{border:1px solid #9fb7d6}.quote-page td{border-bottom:1px solid #9fb7d6}.quote-page .group-total{color:#0f4c81;background:#eef6ff}.workshop-grid3{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.workshop-grid2{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.joint-picker-field label{margin-bottom:8px;font-weight:700;display:block}.req-tag{color:#c0392b;font-size:12px;font-weight:700}.joint-picker-grid{background:#f8fbff;border:1px solid #d6e4f5;border-radius:12px;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px;max-height:280px;padding:8px;display:grid;overflow:auto}.joint-option{cursor:pointer;font:inherit;color:#132238;background:#fff;border:2px solid #c7d7ee;border-radius:10px;flex-direction:column;align-items:center;gap:4px;padding:6px 4px;display:flex}.joint-option img{object-fit:contain;background:#fff;width:64px;height:64px}.joint-option span{text-align:center;font-size:11px;font-weight:700;line-height:1.2}.joint-option.selected{background:#eaf3ff;border-color:#0f4c81;box-shadow:0 0 0 2px #0f4c8126}.joint-option:hover{border-color:#0f4c81}.joint-cell-td{vertical-align:middle;min-width:100px}.joint-cell-btn{cursor:pointer;width:100%;font:inherit;color:#132238;background:#f8fbff;border:2px dashed #c7d7ee;border-radius:10px;flex-direction:column;align-items:center;gap:4px;padding:6px 4px;display:flex}.joint-cell-btn--empty{background:#fff8f8;border-color:#e8b4b8}.joint-cell-thumb{object-fit:contain;width:48px;height:48px}.joint-cell-btn span{text-align:center;font-size:11px;font-weight:700;line-height:1.2}.joint-draw-cell{vertical-align:middle!important;padding:4px!important}.joint-workshop-img{object-fit:contain;width:72px;height:72px;margin:0 auto;display:block}.compact-card{border:1px solid #e5e7eb;border-radius:12px;padding:10px}.compact-card h4{text-align:center;margin:0 0 8px;font-size:16px}.tight-table{margin-top:0;font-size:12px}.tight-table th,.tight-table td{padding:6px}.workshop-sheet h3{text-align:center;margin:0 0 10px}.workshop-sheet--page-break,.workshop-sheet--own-page{margin-top:14px}.workshop-sheet .compact-card h4{color:#0f4c81;font-size:18px;font-weight:800}.workshop-sheet .tight-table{border-collapse:collapse;color:#0a1628;border:2px solid #0f4c81;border-radius:8px;width:100%;font-size:16px;font-weight:700;overflow:hidden}.workshop-sheet .tight-table thead th{color:#0f4c81;text-align:center;background:#eaf3ff;font-size:16px;font-weight:800;border:1px solid #6b8cae!important;padding:10px 8px!important}.workshop-sheet .tight-table tbody td{text-align:center;vertical-align:middle;border:1px solid #8aa6c4!important;padding:10px 8px!important}.kashfa-draw-cell{padding:4px!important}.kashfa-icon{color:#1e293b;width:36px;height:24px;margin:0 auto;display:block}.workshop-sheet .quote-meta{font-size:15px;font-weight:600}.workshop-meta{background:#f8fbff;border:2px solid #c7d7ee;border-radius:16px;margin-bottom:12px;padding:14px}.workshop-meta-bar{color:#132238;border-bottom:1px solid #d8e3f0;flex-wrap:wrap;gap:10px 24px;margin-bottom:12px;padding-bottom:12px;font-size:15px;font-weight:700;display:flex}.workshop-meta-bar-item{white-space:nowrap}.workshop-meta-specs{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px 14px;margin-bottom:12px;display:grid}.workshop-meta-spec{background:#fff;border:1px solid #dbe5f2;border-radius:10px;flex-direction:column;gap:4px;min-height:100%;padding:10px 12px;display:flex}.workshop-meta-label{color:#64748b;text-transform:none;font-size:11px;font-weight:700}.workshop-meta-value{color:#132238;word-break:break-word;font-size:14px;font-weight:700;line-height:1.45}.workshop-meta-groups{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px;display:grid}.workshop-meta-group-card{background:#fff;border:1px solid #dbe5f2;border-radius:10px;padding:10px 12px}.workshop-meta-group-title{color:#0f4c81;margin-bottom:6px;font-size:12px;font-weight:800}.workshop-meta-group-body{color:#334155;word-break:break-word;font-size:13px;font-weight:600;line-height:1.55}.workshop-sheet .group-dim-totals{display:none!important}.workshop-client-meta{flex-direction:column;gap:4px;line-height:1.5;display:flex}.quote-summary-heading,.quote-summary-sheet h3,.quote-summary-sheet .quote-summary-heading{text-align:center;color:#0f4c81;margin:0 0 14px;font-size:20px}.quote-summary-box{background:#fff;border:2px solid #c7d7ee;border-radius:14px;width:100%;max-width:100%;margin:0;padding:16px 20px;line-height:1.6}.quote-summary-table-wrap{-webkit-overflow-scrolling:touch;overflow-x:auto}.quote-summary-table{border-collapse:collapse;table-layout:fixed;background:#fff;width:100%;font-size:14px}.quote-summary-table thead th{color:#1e3a8a;text-align:center;background:#dbeafe;border:1px solid #93c5fd;padding:11px 8px;font-size:13px;font-weight:800;line-height:1.4}.quote-summary-table tbody td{vertical-align:middle;color:#132238;border:1px solid #d5e0ef;padding:9px 8px}.quote-summary-table tbody tr:nth-child(2n):not(.quote-summary-total-row):not(.quote-summary-final-row):not(.quote-summary-add-disc-row){background:#f8fafc}.quote-summary-name-cell{text-align:right;word-break:break-word;font-weight:700}.quote-summary-table .num{text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:700}.quote-summary-table .quote-summary-total-cell,.quote-summary-table .quote-summary-ppm{font-size:13px;line-height:1.45}.quote-summary-table .quote-summary-total-cell .quote-price-struck,.quote-summary-table .quote-summary-ppm .quote-price-struck{margin-bottom:2px;display:inline-block}.quote-summary-table .quote-summary-total-cell .quote-ppm-approved,.quote-summary-table .quote-summary-ppm .quote-ppm-approved{display:block}.quote-summary-dash{color:#94a3b8;font-weight:600}.quote-ppm-approved{color:#1d4ed8;font-weight:800}.quote-summary-total-row td{border-top:2px solid #93c5fd;font-size:14px;font-weight:800;background:#eff6ff!important}.quote-summary-grand-row td{background:#e0f2fe!important}.quote-summary-add-disc-row td{color:#b42318;font-weight:800;background:#fff8f8!important}.quote-summary-disc-input{text-align:center;background:#fff;border:1px solid #e8b4b4;border-radius:8px;width:100%;min-width:72px;min-height:38px;padding:6px 8px;font-size:14px;font-weight:800}.quote-summary-add-disc-row .quote-summary-disc-val{color:#b42318;font-weight:800}.quote-summary-final-row td{font-size:15px;font-weight:800;color:#1e3a8a!important;background:#e0f2fe!important;border-color:#93c5fd!important}.quote-summary-final-row .num{font-size:16px;color:#1e3a8a!important}.quote-summary-extra-row .quote-summary-name-cell{color:#475569}.quote-summary-struck .quote-summary-val s{color:#b42318;font-weight:700;text-decoration:none}.quote-summary-struck .quote-price-struck{margin-inline-end:0}.quote-summary-add-discount{text-align:left;margin:6px 0 2px}.quote-add-discount-btn{min-height:auto;padding:6px 12px;font-size:13px}.quote-summary-line{color:#132238;justify-content:space-between;align-items:baseline;gap:14px;font-size:16px;font-weight:700;display:flex}.quote-summary-name{text-align:right;flex:1}.quote-summary-val{color:#0f4c81;white-space:nowrap;text-align:left;font-weight:800}.quote-summary-discount .quote-summary-val{color:var(--danger)}.quote-summary-msr-disc{color:#475569;padding-right:12px;font-size:13px}.quote-summary-msr-disc .quote-summary-name{font-weight:600}.quote-summary-sep{color:#64748b;margin:0 6px;font-weight:600}.quote-price-struck{margin-inline-end:4px;padding:3px 5px;line-height:1.1;display:inline-block;position:relative}.quote-price-struck s{color:#b42318;font-weight:700;text-decoration:none}.quote-price-struck:before,.quote-price-struck:after{content:"";pointer-events:none;border-top:2px solid #dc6b6b;height:0;position:absolute;top:50%;left:6%;right:6%}.quote-price-struck:before{transform:translateY(-50%)rotate(-22deg)}.quote-price-struck:after{transform:translateY(-50%)rotate(22deg)}.quote-summary-disc-input-wrap{justify-content:center;align-items:center;gap:2px;display:inline-flex}.quote-summary-disc-minus{color:#b42318;font-size:15px;font-weight:800;line-height:1}.quote-summary-neg{color:#b42318;font-weight:800}.quote-summary-add-disc-total .quote-summary-disc-input{width:88px;min-width:72px}.quote-category-total{margin-top:4px}.quote-summary-grand-categories{border-top:2px solid #c7d7ee;margin-top:12px;padding-top:10px;font-size:18px;font-weight:800}.quote-summary-grand-categories .quote-summary-val{color:#132238}.quote-summary-subtotal-line{font-size:17px}.group-dim-totals{color:#1e3a5f;background:#f3f7fb;border:1px solid #d8e3f0;border-radius:10px;flex-wrap:wrap;gap:10px 24px;margin-top:10px;padding:10px 12px;font-size:14px;font-weight:700;display:flex}.quote-group-footer{background:#eef3f9;border:1px solid #c7d7ee;border-radius:10px;margin-top:10px;padding:10px 12px;font-size:15px;line-height:1.85}.quote-group-footer-msr{color:#475569;margin-top:4px;font-size:14px}.quote-summary-discount-row{justify-content:space-between;align-items:center;gap:14px;margin:10px 0 4px;font-weight:700;display:flex}.quote-discount-input{text-align:center;border:2px solid #c7d7ee;border-radius:10px;width:130px;max-width:45%;min-height:44px;padding:8px 12px;font-size:16px;font-weight:800}.quote-summary-total{color:#132238;justify-content:space-between;align-items:baseline;gap:14px;margin-top:6px;font-size:24px;font-weight:800;display:flex}.quote-summary-total .quote-summary-val{color:#132238}.quote-summary-divider{border:none;border-top:2px solid #c7d7ee;margin:12px 0}.quote-summary-subhead{color:var(--primary);text-align:right;margin:14px 0 8px;font-size:13px;font-weight:800}.quote-summary-subhead:first-child{margin-top:0}.quote-summary-extra .quote-summary-name{color:#475569}.quote-page .quote-summary-box{width:100%;max-width:100%}.glass-summary-table{color:#0a1628;border:2px solid #0f4c81;border-radius:12px;font-size:15px;font-weight:700;overflow:hidden}.glass-summary-table thead th{color:#fff;background:#0f4c81;font-size:15px;font-weight:800;border:1px solid #0a3d6b!important;padding:10px 8px!important}.glass-summary-table tbody td{vertical-align:middle!important;border:1px solid #8aa6c4!important;padding:10px 8px!important}.glass-summary-table .glass-dims-col{text-align:center;min-width:200px}.glass-dim-pair{background:linear-gradient(#f5f9ff,#eef4fc);border:2px solid #0f4c81;border-radius:10px;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;margin-bottom:8px;padding:10px 14px;display:flex;box-shadow:inset 0 1px #fffc}.glass-dim-pair:last-child{margin-bottom:0}.glass-dim-pair .glass-dim-l,.glass-dim-pair .glass-dim-r{color:#030910;letter-spacing:.02em;font-size:17px;font-weight:800}.glass-dim-pair .glass-dim-x{color:#0f4c81;font-size:15px;font-weight:900}.print-quote,.print-workshop{display:none}@media screen and (width<=1100px){.row{grid-template-columns:repeat(auto-fill,minmax(min(140px,100%),1fr))}.group-card .row{grid-template-columns:repeat(auto-fill,minmax(min(108px,100%),1fr))}.summary{grid-template-columns:repeat(2,1fr)}.summary-compact{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.quote-meta{grid-template-columns:repeat(3,1fr)}.workshop-grid3{grid-template-columns:repeat(2,minmax(0,1fr))}.workshop-grid2{grid-template-columns:1fr}.save-project-footer-actions{flex:100%;justify-content:stretch}.save-project-footer-actions button{flex:calc(50% - 5px);min-width:0}}@media screen and (width<=768px){.app{padding:12px;padding-left:max(12px, env(safe-area-inset-left));padding-right:max(12px, env(safe-area-inset-right))}.hero{border-radius:16px;margin-bottom:12px;padding:14px}.hero-inner{text-align:right;flex-direction:column;align-items:flex-start;gap:10px}.hero h1{font-size:1.35rem}.hero p{font-size:.9rem}.hero-logo{width:64px;height:64px}.card{border-radius:14px;margin-bottom:12px;padding:12px}.tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-bottom:0;display:grid;overflow:visible}.tab{white-space:normal;text-align:center;width:100%;min-height:44px;padding:12px 10px;font-size:13px;line-height:1.35}.field,.span-4,.span-6,.span-8,.span-12{min-width:0}.row,.group-card .row{grid-template-columns:repeat(auto-fill,minmax(min(130px,100%),1fr))}.group-card .field.field--wide{grid-column:span 1}.summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.summary-compact{grid-template-columns:repeat(2,minmax(0,1fr))}.summary-compact .box .t{font-size:10px}.summary-compact .box .v{font-size:15px}.box{padding:10px}.box .v{margin-top:4px;font-size:1.15rem}.quote-meta{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px}.workshop-grid3,.workshop-grid2{grid-template-columns:1fr}.section-title{flex-direction:column;align-items:stretch}.section-title .toolbar{width:100%}.toolbar{gap:6px}.toolbar button,.inline-actions button{flex:calc(50% - 3px);min-width:0;min-height:36px;padding:7px 10px;font-size:12px}.group-items-footer{gap:6px;margin-top:8px;padding-top:8px}.group-items-footer button{flex:calc(50% - 3px);min-height:32px;padding:6px 9px;font-size:12px}.group-items-footer .bulk-items-add{flex:100%;gap:6px}.group-items-footer .bulk-items-add button{flex:0 auto;min-height:32px}.group-items-footer .bulk-items-add input[type=number]{width:72px;min-width:60px;min-height:32px;padding:5px 8px;font-size:14px}.group-footer-divider{display:none}.group-card .section-title .toolbar button{flex:100%}.group-card .section-title .toolbar .bulk-items-add{flex:100%;justify-content:flex-start}.group-card .section-title .toolbar .bulk-items-add button{flex:auto;min-width:0}.group-card .section-title .toolbar .bulk-items-add input{flex:0 0 76px;min-height:44px}input,select,textarea{min-height:44px;padding:10px 12px;font-size:16px}textarea{min-height:88px}button:not(.joint-cell-btn):not(.tab){min-height:36px;padding:7px 10px;font-size:12px}th,td{padding:8px 6px;font-size:13px}.workshop-sheet{border-radius:14px;padding:12px}.workshop-sheet .tight-table{font-size:14px}.workshop-sheet .tight-table thead th{font-size:14px;padding:8px 6px!important}.workshop-sheet .tight-table tbody td{padding:8px 6px!important}.glass-summary-table .glass-dims-col{min-width:0}.glass-dim-pair{gap:6px;padding:8px 10px}.glass-dim-pair .glass-dim-l,.glass-dim-pair .glass-dim-r{font-size:15px}.quote-summary-box{max-width:100%;padding:10px}.quote-summary-table-wrap{-webkit-overflow-scrolling:touch;margin:0;overflow-x:auto}.quote-summary-table{table-layout:fixed;width:100%;min-width:520px;font-size:11px;display:table}.quote-summary-table thead{display:table-header-group}.quote-summary-table tbody{display:table-row-group}.quote-summary-table tbody tr{background:0 0;border:none;border-radius:0;margin:0;display:table-row;overflow:visible}.quote-summary-table tbody td{white-space:normal;text-align:center;vertical-align:middle;border:1px solid #d5e0ef;padding:7px 5px;display:table-cell}.quote-summary-table tbody td:before{display:none}.quote-summary-table thead th{padding:8px 4px;font-size:10px;line-height:1.3}.quote-summary-table .quote-summary-name-cell{color:#132238;text-align:right;word-break:break-word;background:0 0;border-bottom:1px solid #d5e0ef;padding:7px 6px;font-size:11px;font-weight:700;display:table-cell}.quote-summary-table .num{white-space:normal;text-align:center;word-break:break-word;font-size:11px}.quote-summary-table .quote-summary-total-cell,.quote-summary-table .quote-summary-ppm{font-size:10px;line-height:1.45}.quote-summary-table .quote-summary-total-cell .quote-price-struck,.quote-summary-table .quote-summary-ppm .quote-price-struck{margin-bottom:2px;font-size:10px;display:inline-block}.quote-summary-table .quote-summary-total-cell .quote-ppm-approved,.quote-summary-table .quote-summary-ppm .quote-ppm-approved{font-size:11px;display:block}.quote-summary-disc-input-wrap{justify-content:center}.quote-summary-add-disc-total .quote-summary-disc-input{width:64px;min-width:0;max-width:100%;min-height:32px;padding:4px 6px;font-size:14px}.quote-summary-final-row td,.quote-summary-final-row .num{font-size:11px}.quote-summary-line{flex-wrap:wrap;font-size:14px}.quote-summary-val{white-space:normal}.quote-summary-total{font-size:20px}.app-toast{left:12px;right:12px;bottom:max(16px, env(safe-area-inset-bottom));text-align:center;transform:none}.app:has(#saveProjectFooter:not(.hidden)) .app-toast{bottom:max(58px, calc(12px + env(safe-area-inset-bottom)))}.app-toast--hide{transform:translateY(12px)}.save-project-footer{margin-left:calc(-1 * max(12px, env(safe-area-inset-left)));margin-right:calc(-1 * max(12px, env(safe-area-inset-right)));padding:6px max(12px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));margin-top:10px}.save-project-footer-inner{border-width:1px;border-radius:12px;flex-flow:row;align-items:center;gap:8px;padding:8px 10px}.save-project-footer-info{text-align:right;flex:auto;min-width:0}.save-project-footer-title{font-size:12px;line-height:1.3}.save-project-footer-hint{display:none}.save-project-footer-actions{flex-direction:row;flex:none;gap:6px;width:auto}.save-project-footer-actions button{flex:none;width:auto;min-width:0;min-height:36px;padding:7px 10px;font-size:12px}.btn-label-full{display:none}.btn-label-short{display:inline}.admin-locked{max-width:100%}}@media screen and (width<=480px){.summary,.quote-meta,.tabs{grid-template-columns:1fr}.toolbar:not(.group-items-footer) button{flex:100%}.group-items-footer button{flex:calc(50% - 3px);min-height:30px;padding:5px 8px;font-size:11px}.group-items-footer .bulk-items-add button{flex:0 auto}.hero h1{font-size:1.2rem}.save-project-footer-inner{gap:6px;padding:7px 8px}.save-project-footer-title{font-size:11px}.save-project-footer-actions button{min-height:34px;padding:6px 8px;font-size:11px}}@media print{body{background:#fff}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}.app{max-width:none;margin:0;padding:0}.hero,.tabs,.panel,.no-print,.save-project-footer,.print-quote,.print-workshop{display:none!important}body.print-quote-mode .print-quote,body.print-workshop-mode .print-workshop{visibility:visible!important;display:block!important}.quote-page,.workshop-sheet{box-shadow:none;border:1px solid #d6e4f5;margin:0 0 10px;padding:12px}.workshop-sheet{page-break-inside:avoid;break-inside:avoid-page}.workshop-sheet--page-break,.workshop-sheet--own-page{page-break-before:always;break-before:page}body.print-workshop-mode .print-workshop .workshop-grid3{align-items:start;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;display:grid!important}body.print-workshop-mode .print-workshop .workshop-grid2{align-items:start;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;display:grid!important}body.print-workshop-mode .print-workshop .compact-card{break-inside:avoid;min-width:0}body.print-workshop-mode .print-workshop .workshop-sheet .compact-card h4{font-size:17px}body.print-workshop-mode .print-workshop .workshop-sheet .tight-table{font-size:14px;border:2px solid #000!important}body.print-workshop-mode .print-workshop .workshop-sheet .tight-table thead th{-webkit-print-color-adjust:exact;print-color-adjust:exact;font-size:14px;color:#000!important;background:#e8e8e8!important;border:1px solid #000!important;padding:7px 5px!important}body.print-workshop-mode .print-workshop .workshop-sheet .tight-table tbody td{border:1px solid #000!important;padding:7px 5px!important}body.print-workshop-mode .print-workshop .kashfa-icon{color:#000!important}body.print-workshop-mode .print-workshop .glass-summary-table{font-size:12px}body.print-workshop-mode .print-workshop .glass-summary-table thead th{font-size:12px;padding:8px 5px!important}body.print-workshop-mode .print-workshop .glass-summary-table tbody td{padding:6px 5px!important}body.print-workshop-mode .print-workshop .glass-dim-pair{border-width:1.5px;margin-bottom:5px;padding:7px 10px}body.print-workshop-mode .print-workshop .glass-dim-pair .glass-dim-l,body.print-workshop-mode .print-workshop .glass-dim-pair .glass-dim-r{font-size:13px}body.print-workshop-mode .print-workshop .glass-dim-pair .glass-dim-x{font-size:12px}body.print-quote-mode .print-quote .quote-summary-box{page-break-inside:avoid;background:#fff;border:2px solid #000;width:100%;max-width:100%;padding:10px}body.print-quote-mode .print-quote .quote-summary-table thead th{-webkit-print-color-adjust:exact;print-color-adjust:exact;padding:7px 4px;font-size:11px;color:#1e3a8a!important;background:#dbeafe!important;border:1px solid #93c5fd!important}body.print-quote-mode .print-quote .quote-summary-table tbody td{padding:6px 4px;font-size:11px;border:1px solid #000!important}body.print-quote-mode .print-quote .quote-summary-total-row td{-webkit-print-color-adjust:exact;print-color-adjust:exact;background:#eff6ff!important;border-top:2px solid #93c5fd!important}body.print-quote-mode .print-quote .quote-summary-final-row td{-webkit-print-color-adjust:exact;print-color-adjust:exact;color:#1e3a8a!important;background:#e0f2fe!important;border-color:#93c5fd!important}body.print-quote-mode .print-quote .quote-summary-final-row .num{color:#1e3a8a!important}body.print-quote-mode .print-quote .quote-group-footer{page-break-inside:avoid;background:#f5f5f5;border:1px solid #000;font-size:13px}body.print-quote-mode .print-quote .quote-price-struck s{color:#b42318;text-decoration:none}body.print-quote-mode .print-quote .quote-price-struck:before,body.print-quote-mode .print-quote .quote-price-struck:after{border-top-color:#dc6b6b}body.print-quote-mode .print-quote .quote-summary-neg{color:#b42318!important}body.print-quote-mode .print-quote .quote-page{margin-bottom:0}body.print-quote-mode .print-quote .quote-footer{margin-top:12px}@page{margin:10mm}}
