*{box-sizing:border-box}html,body{min-height:100%;margin:0;padding:0}body{color:#172033;background:#f4f6f9;font-family:Arial,Helvetica,sans-serif}button,input{font:inherit}a{color:inherit;text-decoration:none}.login-page{background:radial-gradient(circle at 20% 20%,#1d4ed81f,#0000 35%),#f4f7fb;justify-content:center;align-items:center;min-height:100vh;padding:32px;display:flex}.login-panel{background:#fff;border:1px solid #e3e8ef;border-radius:14px;width:100%;max-width:430px;padding:42px;box-shadow:0 20px 60px #10182814}.login-brand{border-bottom:1px solid #edf0f4;align-items:center;gap:14px;padding-bottom:28px;display:flex}.brand-badge{color:#fff;letter-spacing:.5px;background:#1746a2;border-radius:10px;place-items:center;width:48px;height:48px;font-size:16px;font-weight:700;display:grid}.brand-badge.small{width:40px;height:40px;font-size:13px}.login-brand h1{margin:0;font-size:20px}.login-brand p{color:#6b7280;margin:5px 0 0;font-size:13px}.login-heading{margin:30px 0 24px}.login-heading h2{margin:0 0 8px;font-size:27px}.login-heading p{color:#667085;margin:0;font-size:14px}.login-form{flex-direction:column;gap:18px;display:flex}.login-form label{flex-direction:column;gap:8px;font-size:13px;font-weight:600;display:flex}.login-form input{background:#fff;border:1px solid #d0d5dd;border-radius:8px;outline:none;width:100%;height:46px;padding:0 14px}.login-form input:focus{border-color:#1746a2;box-shadow:0 0 0 3px #1746a214}.login-form button{color:#fff;cursor:pointer;background:#1746a2;border:0;border-radius:8px;height:46px;font-weight:700}.login-form button:hover{background:#123982}.login-error{color:#b42318;background:#fff1f1;border:1px solid #ffd5d5;border-radius:8px;margin-bottom:18px;padding:11px 13px;font-size:13px}.login-footer{color:#98a2b3;text-align:center;margin-top:26px;font-size:12px}.erp-shell{min-height:100vh;display:flex}.sidebar{color:#fff;background:#111827;flex-direction:column;width:250px;display:flex;position:fixed;inset:0 auto 0 0}.sidebar-brand{border-bottom:1px solid #ffffff14;align-items:center;gap:12px;height:76px;padding:0 22px;display:flex}.sidebar-brand strong{letter-spacing:.4px;font-size:15px;display:block}.sidebar-brand span{color:#94a3b8;letter-spacing:1.1px;margin-top:3px;font-size:10px;display:block}.sidebar-nav{flex:1;padding:18px 14px}.sidebar-nav a,.sidebar-nav>span{color:#b8c1cf;border-radius:7px;margin:3px 0;padding:10px 12px;font-size:14px;display:block}.sidebar-nav a.active{color:#fff;background:#1746a2}.sidebar-nav>span{cursor:default}.nav-section{color:#64748b;letter-spacing:1px;margin:22px 12px 7px;font-size:10px;font-weight:700}.sidebar-user{border-top:1px solid #ffffff14;padding:18px 20px}.sidebar-user strong{font-size:13px;display:block}.sidebar-user>span{color:#94a3b8;margin:4px 0 12px;font-size:11px;display:block}.sidebar-user button{color:#d6dce6;cursor:pointer;background:0 0;border:1px solid #ffffff26;border-radius:6px;width:100%;height:34px;font-size:12px}.erp-main{width:calc(100% - 250px);min-height:100vh;margin-left:250px}.erp-header{background:#fff;border-bottom:1px solid #e6eaf0;justify-content:space-between;align-items:center;height:64px;padding:0 30px;display:flex}.header-label{color:#667085;letter-spacing:.5px;font-size:12px;font-weight:700}.header-user{font-size:13px;font-weight:600}.erp-content{padding:30px}.page-title{margin-bottom:24px}.page-title h1{margin:0;font-size:27px}.page-title p{color:#667085;margin:7px 0 0;font-size:14px}.stats-grid{grid-template-columns:repeat(4,1fr);gap:18px;display:grid}.stat-card{background:#fff;border:1px solid #e3e8ef;border-radius:10px;min-height:130px;padding:21px}.stat-card span{color:#667085;font-size:13px;display:block}.stat-card strong{margin:12px 0 8px;font-size:30px;display:block}.stat-card small{color:#98a2b3}.dashboard-grid{grid-template-columns:1.5fr 1fr;gap:18px;margin-top:18px;display:grid}.panel{background:#fff;border:1px solid #e3e8ef;border-radius:10px;min-height:310px}.panel-heading{border-bottom:1px solid #edf0f4;padding:20px}.panel-heading h2{margin:0;font-size:16px}.panel-heading p{color:#98a2b3;margin:5px 0 0;font-size:12px}.empty-state{text-align:center;color:#667085;padding:72px 30px}.empty-state strong{color:#344054;font-size:14px;display:block}.empty-state p{max-width:340px;margin:8px auto 0;font-size:12px;line-height:1.6}@media (max-width:1000px){.stats-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}}@media (max-width:720px){.sidebar{display:none}.erp-main{width:100%;margin-left:0}.erp-content{padding:20px}.stats-grid{grid-template-columns:1fr}.login-panel{padding:28px}}.page-title-row{justify-content:space-between;align-items:center;gap:20px;display:flex}.primary-button,.secondary-button{border-radius:7px;justify-content:center;align-items:center;min-height:40px;padding:0 16px;font-size:13px;font-weight:600;display:inline-flex}.primary-button{color:#fff;background:#1746a2}.disabled-button{opacity:.5;cursor:not-allowed}.secondary-button{color:#344054;background:#fff;border:1px solid #d0d5dd}.list-panel{background:#fff;border:1px solid #e3e8ef;border-radius:10px;overflow:hidden}.filter-bar{border-bottom:1px solid #edf0f4;gap:10px;padding:18px 20px;display:flex}.filter-bar input,.filter-bar select{background:#fff;border:1px solid #d0d5dd;border-radius:7px;outline:none;height:40px;padding:0 12px}.filter-bar input{width:320px}.filter-bar select{min-width:140px}.filter-bar input:focus,.filter-bar select:focus{border-color:#1746a2}.filter-bar button{color:#fff;cursor:pointer;background:#1746a2;border:0;border-radius:7px;height:40px;padding:0 18px;font-weight:600}.table-wrapper{width:100%;overflow-x:auto}.data-table{border-collapse:collapse;width:100%;font-size:13px}.data-table th{color:#667085;text-align:left;white-space:nowrap;background:#f8fafc;border-bottom:1px solid #e5e7eb;padding:13px 16px;font-weight:600}.data-table td{color:#344054;border-bottom:1px solid #edf0f4;padding:15px 16px}.data-table tbody tr:hover{background:#fafbfc}.table-empty{text-align:center;color:#98a2b3!important;padding:70px 20px!important}.status-badge{color:#475467;background:#f2f4f7;border-radius:999px;align-items:center;min-height:25px;padding:0 9px;font-size:11px;font-weight:600;display:inline-flex}.status-pending_purchase{color:#b54708;background:#fff7e6}.status-purchasing{color:#175cd3;background:#eff8ff}.status-quoted{color:#3538cd;background:#eef4ff}.status-won{color:#027a48;background:#ecfdf3}.status-lost,.status-cancelled{color:#b42318;background:#fef3f2}.table-action-disabled{color:#98a2b3;font-size:12px}@media (max-width:850px){.filter-bar{flex-wrap:wrap}.filter-bar input{width:100%}.page-title-row{align-items:flex-start}}.rfq-create-form{flex-direction:column;gap:18px;display:flex}.form-card{background:#fff;border:1px solid #e3e8ef;border-radius:10px;padding:22px}.form-card-title{margin-bottom:18px}.form-card-title h2{color:#101828;margin:0;font-size:18px}.form-card-title p{color:#667085;margin:6px 0 0;font-size:13px}.form-card-title-row{justify-content:space-between;align-items:center;gap:16px;display:flex}.mode-switch{flex-wrap:wrap;gap:8px;margin-bottom:18px;display:flex}.mode-button{color:#344054;cursor:pointer;background:#fff;border:1px solid #d0d5dd;border-radius:7px;min-height:38px;padding:0 14px;font-size:13px}.mode-button.active{color:#1746a2;background:#eef4ff;border-color:#1746a2;font-weight:600}.form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;display:grid}.form-field{flex-direction:column;gap:7px;min-width:0;display:flex}.form-field-full{margin-top:16px}.form-field span{color:#344054;font-size:12px;font-weight:600}.form-field input,.form-field select,.form-field textarea{color:#101828;background:#fff;border:1px solid #d0d5dd;border-radius:7px;outline:none;width:100%;padding:9px 11px}.form-field input,.form-field select{min-height:40px}.form-field textarea{resize:vertical}.form-field input:focus,.form-field select:focus,.form-field textarea:focus{border-color:#1746a2;box-shadow:0 0 0 3px #1746a214}.form-field small{color:#b54708;font-size:11px}.rfq-items-wrapper{border:1px solid #e4e7ec;border-radius:8px;width:100%;overflow-x:auto}.rfq-items-table{border-collapse:collapse;background:#fff;width:100%;min-width:1680px}.rfq-items-table th{color:#667085;text-align:left;white-space:nowrap;background:#f8fafc;border-bottom:1px solid #e4e7ec;border-right:1px solid #eef2f6;padding:10px 8px;font-size:11px;font-weight:600}.rfq-items-table td{vertical-align:middle;border-bottom:1px solid #eef2f6;border-right:1px solid #f2f4f7;padding:7px}.rfq-items-table tr:last-child td{border-bottom:0}.rfq-items-table input,.rfq-items-table select{color:#101828;background:#fff;border:1px solid #d0d5dd;border-radius:5px;outline:none;width:100%;min-width:105px;height:36px;padding:0 8px}.rfq-items-table input:focus,.rfq-items-table select:focus{border-color:#1746a2;box-shadow:0 0 0 2px #1746a212}.rfq-items-table td:first-child,.rfq-items-table th:first-child{text-align:center;width:46px;min-width:46px}.secondary-button{color:#344054;cursor:pointer;background:#fff;border:1px solid #d0d5dd;border-radius:7px;justify-content:center;align-items:center;min-height:40px;padding:0 15px;font-size:13px;font-weight:600;text-decoration:none;display:inline-flex}.secondary-button:hover{background:#f9fafb}.remove-line-button{color:#b42318;cursor:pointer;white-space:nowrap;background:0 0;border:0;font-size:12px}.remove-line-button:disabled{color:#cbd5e1;cursor:not-allowed}.form-actions{justify-content:flex-end;gap:10px;padding:2px 0 26px;display:flex}.primary-submit-button{color:#fff;cursor:pointer;background:#1746a2;border:0;border-radius:7px;min-height:40px;padding:0 22px;font-weight:600}.primary-submit-button:hover{background:#123982}.primary-submit-button:disabled{opacity:.6;cursor:wait}.form-error{color:#b42318;background:#fef3f2;border:1px solid #fecdca;border-radius:7px;padding:12px 14px;font-size:13px}@media (max-width:1200px){.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:760px){.form-card{padding:16px}.form-grid{grid-template-columns:1fr}.form-card-title-row{flex-direction:column;align-items:flex-start}}.detail-header{justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:18px;display:flex}.detail-header h1{margin:8px 0 5px;font-size:26px}.detail-header p{color:#667085;margin:0;font-size:13px}.detail-back{color:#1746a2;font-size:12px;font-weight:600}.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;display:grid}.detail-card{background:#fff;border:1px solid #e3e8ef;border-radius:10px;padding:20px}.detail-card h2{margin:0;font-size:16px}.detail-section{margin-top:18px}.detail-section-title{justify-content:space-between;align-items:center;gap:16px;margin-bottom:15px;display:flex}.detail-section-title p{color:#98a2b3;margin:5px 0 0;font-size:12px}.meta-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px;display:grid}.meta-item{flex-direction:column;gap:5px;display:flex}.meta-item-full{grid-column:1/-1}.meta-item span{color:#98a2b3;font-size:11px}.meta-item strong{color:#344054;font-size:13px;font-weight:600}.detail-table{min-width:1100px}.detail-empty{text-align:center;color:#98a2b3;background:#fafbfc;border:1px dashed #d0d5dd;border-radius:8px;padding:55px 20px}.table-action-link{color:#1746a2;font-size:12px;font-weight:600}@media (max-width:900px){.detail-grid,.meta-grid{grid-template-columns:1fr}}.table-action-link{color:#1746a2;font-size:12px;font-weight:600;text-decoration:none}.table-action-link:hover{text-decoration:underline}.status-published{color:#b54708;background:#fff7e6}.quote-entry-topbar{justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:12px;display:flex}.quote-entry-topbar h1{margin:6px 0 0;font-size:24px}.quote-back-link{color:#1746a2;font-size:12px;font-weight:600}.quote-summary{color:#667085;flex-wrap:wrap;align-items:center;gap:16px;font-size:12px;display:flex}.quote-summary strong{color:#172033}.quote-order-note{background:#fff;border:1px solid #e3e8ef;border-radius:8px;margin-bottom:14px;padding:10px 14px;font-size:12px}.quote-entry-list{flex-direction:column;gap:14px;display:flex}.quote-item-card{background:#fff;border:1px solid #dde3eb;border-radius:10px;overflow:hidden}.quote-item-header{background:#f8fafc;border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;gap:16px;padding:15px 18px;display:flex}.quote-item-title{align-items:center;gap:10px;display:flex}.quote-item-title strong{font-size:17px}.quote-line-no{color:#667085;font-size:12px;font-weight:700}.quote-brand{color:#1746a2;background:#eef4ff;border-radius:999px;padding:3px 8px;font-size:11px}.quote-item-meta{color:#667085;flex-wrap:wrap;gap:18px;margin-top:7px;font-size:11px;display:flex}.quote-item-meta strong{color:#344054}.quote-add-button{color:#fff;cursor:pointer;background:#1746a2;border:1px solid #1746a2;border-radius:7px;height:36px;padding:0 14px;font-weight:600}.quote-compare-table-wrap{width:100%;overflow-x:auto}.quote-compare-table{border-collapse:collapse;width:100%;min-width:1100px;font-size:12px}.quote-compare-table th{color:#667085;text-align:left;white-space:nowrap;background:#fff;border-bottom:1px solid #e5e7eb;padding:10px 12px}.quote-compare-table td{white-space:nowrap;border-bottom:1px solid #edf0f4;padding:11px 12px}.quote-price{color:#1746a2;font-weight:700}.quote-empty-line{color:#98a2b3;text-align:center;padding:22px;font-size:12px}.inline-quote-form{background:#fbfcfe;border-top:1px solid #dbe3ef;padding:16px 18px 18px}.inline-quote-form-title{justify-content:space-between;align-items:center;margin-bottom:13px;display:flex}.inline-quote-form-title button{color:#667085;cursor:pointer;background:0 0;border:0}.inline-supplier-row{align-items:flex-end;gap:14px;margin-bottom:12px;display:flex}.mode-switch.compact{margin:0}.supplier-field{min-width:320px}.compact-field{flex-direction:column;gap:5px;display:flex}.compact-field span{color:#475467;font-size:11px;font-weight:600}.compact-field input,.compact-field select{background:#fff;border:1px solid #d0d5dd;border-radius:6px;outline:none;min-width:110px;height:36px;padding:0 9px}.compact-field input:focus,.compact-field select:focus{border-color:#1746a2}.supplier-extra-details{background:#fff;border:1px dashed #d0d5dd;border-radius:7px;margin:8px 0 14px;padding:10px 12px}.supplier-extra-details summary{color:#1746a2;cursor:pointer;font-size:12px;font-weight:600}.supplier-extra-grid{grid-template-columns:repeat(4,1fr);gap:10px;margin-top:12px;display:grid}.inline-quote-grid{grid-template-columns:1.25fr .8fr .8fr .7fr .8fr .7fr 1.5fr auto;align-items:end;gap:9px;display:grid}.remark-field input{min-width:160px}.inline-save-cell{align-items:flex-end;display:flex}.inline-save-cell .primary-submit-button{white-space:nowrap;height:36px}@media (max-width:1200px){.inline-quote-grid{grid-template-columns:repeat(4,1fr)}.supplier-extra-grid{grid-template-columns:repeat(2,1fr)}}.inline-quote-grid{grid-template-columns:1.2fr .75fr .7fr .72fr .75fr .65fr .75fr .7fr 1.25fr auto}.inline-quote-grid .compact-field input,.inline-quote-grid .compact-field select{min-width:90px}.quote-compare-table{min-width:1250px}.inline-quote-grid{grid-template-columns:170px 90px 105px 105px 120px 105px 120px 95px minmax(160px,1fr) 100px;align-items:end;gap:8px}.inline-quote-grid .compact-field input,.inline-quote-grid .compact-field select{width:100%;min-width:0}.inline-quote-grid .compact-field span{white-space:nowrap}.inline-save-cell .primary-submit-button{width:100%;min-width:96px;padding:0 12px}.inline-supplier-row{gap:10px}.supplier-field{width:320px;min-width:0;max-width:380px}.mode-switch.compact .mode-button{padding:0 12px}.inline-quote-grid .compact-field input,.inline-quote-grid .compact-field select{height:34px;padding:0 8px;font-size:12px}.quote-actions{white-space:nowrap;gap:8px;display:flex}.quote-actions button{color:#1746a2;cursor:pointer;background:0 0;border:0;padding:0;font-size:12px}.quote-actions button.danger{color:#b42318}.lowest-price-badge{color:#027a48;background:#ecfdf3;border-radius:999px;margin-left:6px;padding:2px 6px;font-size:10px;font-weight:700;display:inline-flex}.quote-edit-row td{background:#f8fafc;padding:0!important}.quote-edit-grid{grid-template-columns:150px 85px 95px 85px 105px 90px 105px 90px minmax(150px,1fr) auto;align-items:end;gap:8px;padding:14px;display:grid}.quote-edit-grid input,.quote-edit-grid select{width:100%;min-width:0}.quote-edit-buttons{align-items:flex-end;gap:7px;display:flex}.quote-edit-buttons .primary-submit-button,.quote-edit-buttons .secondary-button{white-space:nowrap;height:36px}.rfq-item-actions{align-items:center;gap:8px;display:flex}.excel-upload-button{cursor:pointer;position:relative;overflow:hidden}.excel-upload-button input{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.excel-import-message{color:#067647;background:#ecfdf3;border:1px solid #abefc6;border-radius:7px;margin-bottom:12px;padding:9px 12px;font-size:12px}@media (max-width:900px){.rfq-item-actions{flex-wrap:wrap}}.company-autocomplete{flex-direction:column;gap:5px;width:100%;max-width:520px;display:flex;position:relative}.company-autocomplete>span{color:#475467;font-size:11px;font-weight:600}.company-autocomplete>input{background:#fff;border:1px solid #d0d5dd;border-radius:7px;outline:none;width:100%;height:38px;padding:0 11px}.company-autocomplete>input:focus{border-color:#1746a2;box-shadow:0 0 0 2px #1746a214}.company-autocomplete-menu{z-index:80;background:#fff;border:1px solid #d0d5dd;border-radius:7px;width:100%;max-height:260px;position:absolute;top:calc(100% + 4px);left:0;overflow-y:auto;box-shadow:0 10px 25px #1018281f}.company-autocomplete-option{text-align:left;cursor:pointer;background:#fff;border:0;border-bottom:1px solid #f0f2f5;flex-direction:column;gap:3px;width:100%;padding:9px 11px;display:flex}.company-autocomplete-option:last-child{border-bottom:0}.company-autocomplete-option:hover{background:#f5f8ff}.company-autocomplete-option strong{color:#172033;font-size:12px}.company-autocomplete-option small{color:#667085;font-size:10px}.company-autocomplete-info{color:#667085;padding:10px 11px;font-size:11px}.company-autocomplete-info.new-company{color:#475467;background:#fafafa}.company-match-badge{color:#067647;white-space:nowrap;background:#ecfdf3;border-radius:999px;align-items:center;height:26px;padding:0 8px;font-size:10px;font-weight:700;display:inline-flex}.smart-company-row{align-items:flex-end}.smart-company-row .company-autocomplete{width:380px}.smart-customer-search{align-items:flex-end;gap:10px;margin-bottom:16px;display:flex}.company-autocomplete-option.active,.company-autocomplete-option.active:hover{background:#eef4ff}.company-autocomplete-option.active strong{color:#1746a2}
