/* 报价 / 合同视觉优化，只作用于报价中心的标签页。
   不使用全局 .tabs，避免覆盖基础配置等普通页面的居中活动线。 */
#content>.card:has(#quoteCenterBody),#content>.card:has(.quote-center-tabs){box-shadow:none;background:transparent}
#content .quote-center-tabs .tabs{gap:22px;padding:0 8px!important;border-bottom:1px solid #e5e7eb}
#content .quote-center-tabs .tabs .tab{position:relative;padding:13px 8px 12px;border:0;color:#64748b;font-weight:600}
#content .quote-center-tabs .tabs .tab.active{color:#1d4ed8;border:0}
#content .quote-center-tabs .tabs .tab.active:after{content:'';position:absolute;left:8px;right:8px;bottom:-1px;height:3px;border-radius:3px;background:linear-gradient(90deg,#2563eb,#60a5fa)}
#quoteCenterBody>.card{border:1px solid #e5e7eb;border-radius:14px;padding:20px;background:#fff;box-shadow:0 6px 20px rgba(15,23,42,.05)}
#quoteCenterBody .table-toolbar{padding-bottom:16px;margin-bottom:0;border-bottom:1px solid #eef2f7}
#quoteCenterBody .table-toolbar input{min-width:250px;height:38px;border-radius:8px;border-color:#dbe4f0;background:#f8fafc}
#quoteCenterBody .table-toolbar .btn.primary,#quoteSheetModal .btn.primary,#viewQuoteSheetModal .btn.primary,#viewContractModal .btn.primary{margin:0;border:0;border-radius:8px;padding:9px 14px;background:linear-gradient(135deg,#1d4ed8,#2563eb);color:#fff;font-weight:600;box-shadow:0 4px 10px rgba(37,99,235,.2)}
#quoteCenterBody .table-toolbar .btn.primary:hover,#quoteSheetModal .btn.primary:hover,#viewQuoteSheetModal .btn.primary:hover,#viewContractModal .btn.primary:hover{transform:translateY(-1px);filter:brightness(1.05)}
#quoteCenterBody table{overflow:hidden;border:1px solid #e8eef6;border-radius:10px}
#quoteCenterBody th{padding:13px 12px;background:#f8fafc;color:#334155;font-size:12px}
#quoteCenterBody td{padding:13px 12px;color:#475569}
#quoteCenterBody tbody tr:hover{background:#f8fbff}
#quoteCenterBody .btn{border-radius:6px;padding:6px 10px;margin:0 4px 0 0}
#quoteSheetModal .modal{width:1040px!important;max-width:96vw;padding:0!important;border-radius:14px;overflow:hidden;background:#fff}
#quoteSheetModal .modal>h3{margin:0!important;padding:19px 24px;background:linear-gradient(135deg,#eff6ff,#f8fbff);color:#123b70;font-size:19px;border-bottom:1px solid #dbeafe}
#quoteSheetModal .quote-link-panel{margin:18px 24px!important}
#quoteSheetModal .form-group{margin:0 24px 18px!important}
#quoteSheetModal h4{margin:22px 24px 10px!important;padding-left:10px;border-left:3px solid #2563eb;color:#1e3a5f;font-size:16px}
#quoteSheetModal table{margin:0 24px!important;width:calc(100% - 48px)!important;border:1px solid #e8eef6;border-radius:8px;overflow:hidden}
#quoteSheetModal table th{background:#f7faff;color:#475569;padding:11px 8px!important;font-weight:600}
#quoteSheetModal table td{border-color:#edf2f7;padding:10px 8px!important}
#quoteSheetModal table input,#quoteSheetModal table select{border:1px solid #dbe4f0!important;border-radius:5px;padding:5px!important;background:#fff}
#quoteSheetModal>div>div[style*="text-align:right"]{padding:16px 24px 20px!important;margin:16px 0 0!important;background:#fff;border-top:1px solid #e8eef6}
#viewQuoteSheetModal .modal,#viewContractModal .modal{border-radius:14px!important;box-shadow:0 20px 54px rgba(15,23,42,.22)}
#viewQuoteSheetModal .modal{padding:30px!important;background:#fff}
#viewQuoteSheetModal h3{letter-spacing:2px;color:#163d75!important;font-size:22px!important}
#viewContractModal .contract-print-hide:first-child{padding:14px 22px!important;background:#f8fafc!important;border-bottom:1px solid #e5e7eb!important;color:#334155!important}
#viewContractModal .contract-print-hide label{padding:6px 8px;border-radius:6px;background:#fff;border:1px solid #e2e8f0;font-size:12px}
#contractPrintArea{padding:34px 52px!important;color:#243b53!important}
#contractPrintArea h2{font-family:"Microsoft YaHei","PingFang SC",sans-serif!important;color:#123b70!important;letter-spacing:8px!important;font-weight:700!important}
#contractPrintArea h3{color:#173d73!important;border-bottom-color:#2563eb!important;font-family:"Microsoft YaHei","PingFang SC",sans-serif!important}
#contractPrintArea table{border-color:#cbd5e1!important;border-radius:0}
#contractPrintArea th{background:#f1f5f9!important;color:#334155!important}
#contractPrintArea td,#contractPrintArea th{border-color:#cbd5e1!important}
#viewContractModal .quote-source-note{margin:0 0 18px!important;padding:11px 14px!important;border:1px solid #bfdbfe!important;background:#eff6ff!important;border-radius:8px!important;color:#1d4ed8!important}
#viewContractModal .contract-print-hide[style*="position:sticky"]{padding:14px 24px!important;background:#fff!important;border-top:1px solid #e5e7eb!important}
@media(max-width:767px){#quoteCenterBody>.card{padding:14px;border-radius:10px}#quoteCenterBody .table-toolbar input{min-width:0;width:100%}#quoteSheetModal .modal{max-width:100vw!important;border-radius:0}#quoteSheetModal .modal>h3{padding:16px 18px;font-size:17px}#quoteSheetModal .quote-link-panel{margin:14px 16px!important}#quoteSheetModal .form-group{margin-left:16px!important;margin-right:16px!important}#quoteSheetModal h4{margin-left:16px!important;margin-right:16px!important}#quoteSheetModal table{width:calc(100% - 32px)!important;margin-left:16px!important;margin-right:16px!important}#contractPrintArea{padding:24px 18px!important}#contractPrintArea h2{font-size:20px!important;letter-spacing:3px!important}}
@media print{#viewContractModal .quote-source-note,.quote-source-note{display:none!important;visibility:hidden!important}#viewContractModal .contract-print-hide{display:none!important;visibility:hidden!important}#contractPrintArea{padding:0!important;color:#000!important}#contractPrintArea h2{color:#000!important;letter-spacing:4px!important}#contractPrintArea h3{color:#000!important;border-bottom-color:#000!important}#contractPrintArea th{background:#f5f5f5!important;color:#000!important}}
/* 报价编辑弹窗：内容过长时只滚动弹窗内部，操作栏始终可用。 */
#quoteSheetModal{padding:22px 0;align-items:center}
#quoteSheetModal .modal{max-height:calc(100vh - 44px)!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;scrollbar-gutter:stable;scroll-behavior:smooth}
#quoteSheetModal .modal::-webkit-scrollbar{width:9px}
#quoteSheetModal .modal::-webkit-scrollbar-track{background:#f1f5f9}
#quoteSheetModal .modal::-webkit-scrollbar-thumb{background:#b9c8dc;border-radius:8px;border:2px solid #f1f5f9}
#quoteSheetModal .modal::-webkit-scrollbar-thumb:hover{background:#8fa5c1}
#quoteSheetModal .modal>div:last-child{position:sticky;bottom:0;z-index:4;display:flex;justify-content:flex-end;align-items:center;gap:8px;min-height:68px;padding:14px 24px!important;margin:20px 0 0!important;background:rgba(255,255,255,.97)!important;border-top:1px solid #dbe4f0;box-shadow:0 -8px 18px rgba(15,23,42,.05)}
#quoteSheetModal .modal>div:last-child .btn{margin:0!important}
@media(max-width:767px){#quoteSheetModal{padding:0;align-items:stretch}#quoteSheetModal .modal{max-height:100dvh!important;height:100dvh;border-radius:0!important}#quoteSheetModal .modal>div:last-child{min-height:64px;padding:12px 16px!important}}
