*{box-sizing:border-box}.materials-page{background:#f6f8f9;color:#142a38;overflow-x:hidden}.materials-page .topbar{height:68px;padding:0 2%;gap:14px}.materials-page .brand{min-width:235px}.materials-page .nav-link{font-size:11px;padding:8px 6px;white-space:nowrap}.materials-page .profile img{width:36px;height:36px;border-radius:50%;object-fit:cover}
.materials-layout{display:grid;grid-template-columns:230px minmax(500px,1fr) 330px;gap:12px;padding:9px 13px 28px;max-width:1920px;margin:auto;align-items:start}.materials-sidebar,.materials-main,.materials-right{min-width:0}
.side-heading{font-size:16px;font-weight:750;padding:14px 12px;color:#172e3b}.side-heading span{float:right}.materials-menu{background:#fff;border:1px solid #e3e9ec;border-radius:10px;padding:8px;display:grid;gap:3px}.materials-menu button{height:40px;border:0;border-radius:7px;background:#fff;text-align:left;padding:0 12px;display:flex;align-items:center;gap:12px;font-family:inherit;font-size:13px;color:#1b303d;cursor:pointer}.materials-menu button span{font-size:18px;width:20px;text-align:center}.materials-menu button:hover{background:#eff8f4}.materials-menu button.active{background:linear-gradient(100deg,#0aa66e,#078d64);color:#fff;font-weight:700}
.current-project{margin-top:12px;border:1px solid #dcefe6;background:linear-gradient(180deg,#effaf4,#fff);border-radius:11px;padding:13px}.current-project h3{font-size:14px;margin:0 0 10px;color:#087d5d}.project-mini{display:flex;gap:9px;align-items:center}.project-mini img{width:70px;height:62px;border-radius:8px;object-fit:cover}.project-mini div{display:grid;gap:3px}.project-mini b{font-size:13px}.project-mini small{font-size:11px;color:#60717b}.project-progress{height:6px;background:#e5eceb;border-radius:20px;margin-top:13px;overflow:hidden}.project-progress span{display:block;width:72%;height:100%;background:#0b9a70;border-radius:20px}.progress-caption{display:block;text-align:right;color:#53656d;font-size:11px;margin:4px 0 7px}.plain-action{display:block;width:100%;text-align:left;border:0;background:transparent;padding:8px 3px;color:#253945;font-family:inherit;font-size:12px;cursor:pointer;border-radius:6px}.plain-action:hover{background:#eaf6f0}.sidebar-disclaimer{margin-top:12px;background:#eef6ff;border-radius:9px;padding:13px;color:#486176;font-size:11px;line-height:1.55}
.materials-banner{height:126px;border-radius:10px;background:linear-gradient(90deg,#f3f8f7 0%,#e7f0ef 55%,#dce9e5 100%);position:relative;overflow:hidden;display:flex;align-items:center;padding:17px 16px;margin-bottom:9px;isolation:isolate}.materials-banner:after{content:"";position:absolute;z-index:-1;right:0;top:0;width:47%;height:100%;background:linear-gradient(90deg,transparent,#d7e7e4aa),url("assets/ai-card-material.png") center/cover no-repeat;opacity:.98}.materials-banner h1{font-size:clamp(25px,2.4vw,36px);margin:0 0 7px;color:#112e42;letter-spacing:-.7px}.materials-banner p{font-size:14px;margin:0;color:#314e59}.banner-note{position:absolute;right:24%;top:20px;font-family:Georgia,serif;font-style:italic;font-weight:600;line-height:1.4;color:#173f3b;text-shadow:0 1px 7px white;text-align:center;font-size:14px}
.material-search{height:49px;display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #e1e8eb;border-radius:9px;padding:5px 7px 5px 14px}.material-search>span{font-size:24px}.material-search input{flex:1;min-width:0;border:0;outline:0;font-family:inherit;font-size:13px}.material-search>button{height:38px;border:0;border-radius:7px;background:#078f65;color:white;padding:0 17px;font-weight:700;font-size:12px;cursor:pointer}.material-search label{height:38px;display:flex;align-items:center;gap:8px;padding:0 8px;border-left:1px solid #e8edef;font-size:15px;white-space:nowrap}.material-search label span{font-size:11px}.material-search select{border:0;background:transparent;font-family:inherit;font-size:12px;outline:0;color:#1d3542}
.category-strip{display:grid;grid-template-columns:repeat(11,minmax(0,1fr));gap:7px;margin:9px 0 10px}.category{min-width:0;height:96px;border:1px solid #e0e7ea;border-radius:8px;background:#fff;padding:5px 4px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:3px;cursor:pointer;color:#203743;font-family:inherit}.category img{width:100%;height:58px;object-fit:cover;border-radius:5px}.category span{font-size:10px;text-align:center;line-height:1.2}.category b{font-size:25px;color:#078f65;margin-top:12px}.category strong{font-size:11px}.category.active{border:1.5px solid #078f65;background:#f4fcf8;color:#07855e}.category:hover{border-color:#0ba477}
.filters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) 48px;gap:9px;align-items:end;background:#f0f3f5;border-radius:9px;padding:9px 11px;margin-bottom:14px}.filters label{font-size:10px;color:#344d58;display:grid;gap:4px;min-width:0}.filters select{height:34px;width:100%;border:1px solid #d5dfe3;border-radius:6px;background:#fff;padding:0 9px;color:#1d3542;font-family:inherit;font-size:11px;min-width:0}.view-switch{display:flex;gap:3px;align-items:center}.view-switch button{height:24px;width:22px;border:1px solid #dce5e8;border-radius:4px;background:#fff;color:#2a4a55;cursor:pointer}.view-switch button.active{background:#078f65;color:#fff}
.section-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 8px}.section-heading h2{font-size:19px;margin:0;color:#112d43}.section-heading span{font-size:10px;color:#71818a}
.product-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.product-card{border:1px solid #e0e7eb;background:#fff;border-radius:9px;overflow:hidden;min-width:0;display:flex;flex-direction:column;box-shadow:0 2px 7px #132f3b05}.product-card>img{width:100%;height:96px;object-fit:cover;background:#f0f2f3}.product-info{padding:7px 9px 8px;display:flex;flex-direction:column;gap:5px;flex:1}.product-info>b{font-size:10px;line-height:1.3;min-height:26px;color:#132d43}.product-info>strong{font-size:14px;white-space:nowrap}.product-info>strong small{font-size:10px;font-weight:500}.rating{font-size:12px;color:#f3a400}.rating small{font-size:10px;color:#7b8990}.supplier-name{font-size:10px;color:#536773;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.detail-button{height:32px;border:1px solid #0a9b70;border-radius:5px;background:#f5fcf8;color:#07865e;font-family:inherit;font-size:11px;font-weight:650;cursor:pointer;margin-top:3px}.detail-button:hover,.outline-button:hover{background:#e5f7ee}.detail-button.full{width:100%}
.product-grid.list-view{grid-template-columns:1fr}.product-grid.list-view .product-card{display:grid;grid-template-columns:125px 1fr}.product-grid.list-view .product-card>img{height:100%;min-height:115px}.product-grid.list-view .product-info{display:grid;grid-template-columns:1.4fr .8fr .7fr 1fr 120px;align-items:center;gap:7px}.product-grid.list-view .product-info>b{min-height:0}
.empty-state{background:#fff;border:1px dashed #b8c9cf;padding:30px;text-align:center;border-radius:9px;color:#667982;font-size:13px}
.lower-materials{display:grid;grid-template-columns:1.1fr .9fr;gap:9px;margin-top:11px}.card-panel,.right-card{background:#fff;border:1px solid #e1e8eb;border-radius:10px;padding:10px;min-width:0}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:9px}.panel-title h3{font-size:13px;margin:0;color:#172f3c}.panel-title a,.panel-title>span{font-size:10px;color:#1683bd;text-decoration:none;white-space:nowrap}
table{width:100%;border-collapse:collapse;font-size:10px;text-align:left}th{background:#f3f6f7;font-weight:600;color:#3d5662}th,td{padding:7px 6px;border-bottom:1px solid #e8edef}td{color:#2b414d}.status{display:inline-block;padding:4px 7px;border-radius:5px;font-size:9px;font-weight:650;white-space:nowrap}.status.done{background:#e2f7eb;color:#07844f}.status.quote{background:#fff1d9;color:#c07812}.status.pending{background:#e9eef2;color:#50616d}
.quote-table .detail-button{margin-top:8px}.compare-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.compare-items>div{display:flex;flex-direction:column;gap:4px;min-width:0}.compare-items img{width:100%;height:62px;object-fit:cover;border:1px solid #e8edef;border-radius:5px}.compare-items b{font-size:9px;line-height:1.25}.compare-items strong{font-size:10px}.compare-items small{font-size:10px;color:#ed9c00}.compare-panel .detail-button{margin-top:10px}
.supplier-bottom{margin-top:9px}.supplier-list{display:grid;gap:7px}.supplier-list>div{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:8px}.supplier-list img{width:40px;height:40px;object-fit:cover;border:1px solid #e7edef;border-radius:7px}.supplier-list b{font-size:11px}.supplier-list small{grid-column:2;font-size:9px;color:#6b7d85;margin-top:-9px}.supplier-list button,.supplier-compact button{border:1px solid #93d9bd;background:#f5fcf8;color:#07855e;border-radius:6px;padding:6px 10px;font-size:10px;cursor:pointer}
.materials-right .right-card{margin-bottom:9px}.materials-right table{font-size:10px}.materials-right th,.materials-right td{padding:8px 6px}.outline-button{width:100%;height:36px;border:1px solid #07966a;border-radius:7px;background:#fff;color:#07855e;font-size:11px;font-weight:700;margin-top:9px;cursor:pointer}
.mini-compare{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.mini-compare>div{border:1px solid #e8edef;border-radius:7px;padding:6px;display:flex;flex-direction:column;gap:4px;min-width:0}.mini-compare img{width:100%;height:68px;object-fit:cover}.mini-compare b{font-size:9px;line-height:1.2}.mini-compare strong{font-size:11px;white-space:nowrap}.mini-compare small{font-size:10px;color:#f1a000}
.supplier-compact{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:7px;padding:6px 0;border-top:1px solid #edf0f1}.supplier-compact img{width:37px;height:37px;object-fit:cover;border:1px solid #e5ecef;border-radius:7px}.supplier-compact div{display:grid;gap:4px;min-width:0}.supplier-compact b{font-size:10px}.supplier-compact small{font-size:9px;color:#718089;white-space:nowrap}
.ai-material-card{background:linear-gradient(135deg,#edf6ff,#e9f8f3);border-radius:10px;padding:13px}.ai-material-top{display:flex;align-items:flex-start;gap:8px}.ai-material-top img{width:50px;height:55px;object-fit:contain}.ai-material-top b{font-size:12px}.ai-material-top p{font-size:10px;line-height:1.5;color:#344e5c;margin:5px 0 0}.ai-material-card>button{width:100%;height:38px;border:0;border-radius:6px;background:#078f65;color:white;font-weight:700;font-family:inherit;font-size:11px;margin-top:10px;cursor:pointer}
.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#123b36;color:#fff;padding:11px 16px;border-radius:9px;box-shadow:0 8px 25px #0002;z-index:70;font-size:13px;transition:.25s}.toast.show{opacity:1;transform:translate(-50%,0)}
.modal{display:none;position:fixed;inset:0;background:#071b25a8;z-index:80;align-items:center;justify-content:center;padding:18px}.modal.open{display:flex}.modal-box{width:min(560px,96vw);max-height:88vh;overflow:auto;background:#fff;border-radius:12px;padding:20px;position:relative;box-shadow:0 20px 60px #0003}.modal-box h2{font-size:20px;margin:0 0 9px}.modal-box p{font-size:12px;line-height:1.6;color:#64747c}.modal-close{position:absolute;right:12px;top:10px;border:0;background:#f0f3f4;border-radius:50%;width:30px;height:30px;font-size:20px;cursor:pointer}
@media(max-width:1500px){.materials-layout{grid-template-columns:210px minmax(450px,1fr) 300px;gap:9px}.materials-page .brand{min-width:205px}.materials-page .nav-link{font-size:10px;padding:8px 4px}.product-grid{gap:7px}.product-card>img{height:85px}.product-info{padding:6px}.product-info>b{font-size:9px}.product-info>strong{font-size:12px}.category{height:88px}.category img{height:52px}}
@media(max-width:1150px){.materials-layout{grid-template-columns:190px minmax(0,1fr)}.materials-main{grid-column:2}.materials-right{grid-column:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.materials-right .right-card{margin:0}.materials-sidebar{grid-row:1 / span 2}.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.category-strip{grid-template-columns:repeat(6,minmax(0,1fr))}.category:nth-child(n+7){display:flex}}
@media(max-width:760px){.materials-page .topbar{height:auto;min-height:64px;flex-wrap:wrap;padding:7px 12px}.materials-page .brand{min-width:190px}.materials-page .main-nav{order:3;overflow-x:auto;width:100%;flex-basis:100%;justify-content:flex-start}.materials-page .top-actions{margin-left:auto}.materials-layout{display:flex;flex-direction:column;padding:8px;width:100%}.materials-sidebar,.materials-main,.materials-right{width:100%}.materials-menu{grid-template-columns:repeat(2,minmax(0,1fr))}.side-heading{padding:8px}.current-project,.sidebar-disclaimer{display:none}.materials-banner{height:115px}.banner-note{display:none}.material-search{height:auto;flex-wrap:wrap;padding:8px}.material-search input{min-width:50%}.material-search label{border:0;margin-left:auto}.category-strip{grid-template-columns:repeat(4,minmax(0,1fr))}.category{height:88px}.filters{grid-template-columns:repeat(2,minmax(0,1fr))}.view-switch{grid-column:span 2;justify-content:flex-end}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-card>img{height:115px}.product-info>b{font-size:11px}.product-info>strong{font-size:14px}.lower-materials{grid-template-columns:1fr}.materials-right{display:grid;grid-template-columns:1fr}.materials-right .right-card{margin:0 0 8px}}
@media(max-width:420px){.product-card>img{height:95px}.product-info{padding:6px}.product-info>b{font-size:10px}.product-info>strong{font-size:12px}.product-info .supplier-name{font-size:9px}.detail-button{font-size:10px}.category-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.material-search>button{flex:1}.material-search label{width:100%;justify-content:space-between}.material-search select{flex:1}.product-grid.list-view .product-info{grid-template-columns:1fr 1fr}}
@media print{.topbar,.materials-sidebar,.materials-right,.filters,.material-search{display:none!important}.materials-layout{display:block}.materials-main{width:100%}}
