:root{--ink:#161616;--muted:#747474;--paper:#f7f7f7;--line:#e6e6e6;--red:#d71920;--red-hover:#b80510;--orange:#d71920}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,Helvetica,sans-serif;font-size:17px}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #d71920;outline-offset:3px}.sidebar{position:fixed;inset:0 auto 0 0;width:258px;background:#ffffff;border-right:1px solid var(--line);padding:40px 25px 0;display:flex;flex-direction:column;z-index:5}.brand{font-size:59px;letter-spacing:-4px;font-weight:800;line-height:1}.brand>span{font-size:16px;vertical-align:top;letter-spacing:0;margin-left:4px}.brand small{display:block;font-size:12px;letter-spacing:1.6px;margin-top:13px;font-weight:600}.workspace{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:7px;padding:12px 10px;margin:38px 0 33px;font-size:14px;font-weight:600}.workspace small{font-size:12px;display:block;margin-top:6px;color:var(--muted);font-weight:400}.workspace-icon{background:#efefef;padding:9px 11px;border-radius:4px}.workspace-dot{background:#d71920;width:6px;height:6px;border-radius:50%;margin-left:auto}.nav-label,.eyebrow{font-size:12px;font-weight:700;letter-spacing:1.7px}.nav-label{color:#9e9e9e;margin:0 13px 14px}nav{display:grid;gap:6px}nav a{display:flex;align-items:center;gap:13px;padding:13px 12px;color:#797979;font-size:14px;border-radius:5px}nav a>span{font-size:24px;width:20px;text-align:center}nav a.active,nav a.active:hover{background:var(--ink);color:#fff;font-weight:600}nav a:hover{background:#f5f5f5}nav b{margin-left:auto;background:#ffffff;border:1px solid var(--line);border-radius:4px;padding:2px 6px;font-size:12px}.sidebar-bottom{margin-top:auto;padding-top:40px}.help-label{font-size:14px;font-weight:600}.sidebar-bottom p{font-size:13px;line-height:1.7;color:var(--muted);max-width:170px}.sidebar-bottom>a{display:flex;justify-content:space-between;font-size:13px;font-weight:600;margin:18px 0 28px}.account{border-top:1px solid var(--line);padding:22px 0;display:flex;gap:11px;align-items:center;font-size:13px;font-weight:600}.avatar{border-radius:50%;background:#dbdbdb;font-size:12px;padding:11px}.account small{display:block;color:var(--muted);font-size:12px;margin-top:6px;font-weight:400}.shell{margin-left:258px}header{height:80px;padding:0 44px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#ffffff;font-size:13px}.header-label{font-size:12px;letter-spacing:1.5px;color:var(--muted)}.header-separator{margin:0 20px;color:#cbcbcb}.demo-pill{border:1px solid var(--line);border-radius:20px;padding:8px 12px;font-size:12px;display:flex;gap:7px;align-items:center}i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#878787}.demo-pill i{background:var(--orange)}main{max-width:1380px;margin:auto;padding:38px 44px 24px;min-height:calc(100vh - 146px)}main:focus{outline:none}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:29px}.eyebrow{color:#8c8c8c;font-size:12px}h1{font-size:40px;letter-spacing:-1.3px;margin:12px 0;font-weight:500;line-height:1.2}.title-dot{font-size:14px;color:var(--orange);vertical-align:middle;margin-left:5px}.page-heading p{font-size:14px;color:var(--muted);margin:0;line-height:1.7}.button{display:inline-flex;align-items:center;justify-content:center;gap:18px;white-space:nowrap;border:0;border-radius:4px;padding:13px 18px;font-size:13px;font-weight:600;line-height:1.3}.dark{background:var(--ink);color:#ffffff}.dark:not(:disabled):not([aria-disabled=true]):hover{background:#4a4a4a}.light{background:#ffffff;color:var(--ink)}.outline{background:transparent;border:1px solid #dbdbdb}.hero{background:#151515;color:#ffffff;border-radius:8px;position:relative;overflow:hidden;padding:34px 36px;min-height:294px;display:flex;justify-content:space-between}.hero>div:first-child{z-index:1}.hero-eyebrow{font-size:12px;letter-spacing:1.8px;color:#d0d0d0;display:flex;align-items:center;gap:8px}.hero-eyebrow span{height:5px;width:5px;background:#d71920;border-radius:50%}.hero h2{font-size:46px;letter-spacing:-1.3px;line-height:1.12;font-weight:400;margin:22px 0 13px}.hero p{color:#bdbdbd;font-size:13px;line-height:1.8;margin-bottom:21px}.hero .button{font-size:12px;padding:12px 17px}.hero-art{position:absolute;right:0;top:0;bottom:0;width:48%;background:radial-gradient(ellipse at center,#59595944,transparent 65%)}.orbit{position:absolute;width:350px;height:350px;border:1px solid #a2a2a21f;border-radius:50%;top:-20px;left:10px;transform:rotate(-30deg) scaleX(.65)}.o2{width:480px;height:480px;top:-80px;left:-45px}.art-block{position:absolute;border:1px solid #cfcfcf55;border-radius:20px;background:linear-gradient(130deg,#d7192077,#76101633);transform:rotate(-28deg) skew(8deg,8deg);box-shadow:15px 24px 25px #1f1f1f60,inset 1px 1px 0 #ff858577}.block1{width:105px;height:135px;top:56px;left:49px}.block2{width:105px;height:135px;top:85px;left:141px;background:linear-gradient(130deg,#d71920,#920f14);z-index:1}.block3{width:105px;height:135px;top:23px;left:228px;background:linear-gradient(130deg,#8e2329,#242424)}.art-label{position:absolute;bottom:40px;left:100px;background:#ffffff10;border:1px solid #ffffff22;backdrop-filter:blur(8px);padding:10px 13px;border-radius:4px;font-size:12px;transform:rotate(-5deg);z-index:2;white-space:nowrap}.art-label i{background:#d71920;margin-right:6px}.art-plus{position:absolute;right:35px;top:22px;font-size:29px;font-weight:100;color:#9c9c9c}.hero-number{position:absolute;right:20px;bottom:15px;font-size:12px;letter-spacing:1.6px;color:#929292}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin:22px 0 30px}.stat{border:1px solid var(--line);border-radius:6px;background:#ffffff;padding:20px 22px}.stat>div{display:flex;justify-content:space-between;align-items:center;color:#808080;font-size:13px}.stat-icon{font-size:24px;color:#8a8a8a}.stat>strong{display:block;font-size:41px;font-weight:400;letter-spacing:-1px;margin:10px 0}.stat>small{font-size:12px;color:var(--muted);display:flex;justify-content:space-between}.stat>small span{color:var(--ink)}.dashboard-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:22px}.panel{background:#ffffff;border:1px solid var(--line);border-radius:6px;padding:24px}.section-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:12px}.section-heading>a{font-size:12px}.panel h2{font-size:22px;font-weight:500;letter-spacing:-.5px;margin:12px 0}.panel>.muted{margin-top:-3px;font-size:13px}.muted{color:var(--muted);font-size:13px;line-height:1.6}.essential{display:flex;gap:13px;align-items:center;border-top:1px solid #efefef;padding:14px 0}.essential:last-child{padding-bottom:0}.essentials{margin-top:22px}.mini-product{width:56px;height:56px;flex-shrink:0;border-radius:5px;background:#f2f2f2;display:flex;justify-content:center;align-items:center}.product-icon{width:64px;height:64px;stroke:#7f7f7f;stroke-width:1.5}.mini-product .product-icon{width:42px;height:42px}.essential>div:nth-child(2){flex:1}.essential small,.cart-name small{font-size:12px;letter-spacing:.4px;color:#929292;display:block}.essential strong{font-size:13px;font-weight:500;display:block;margin:5px 0 6px}.stock{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:#7e7e7e;white-space:nowrap}.stock i{width:5px;height:5px}.stock.low{color:#b41a20}.stock.low i{background:#d71920}.stock.empty{color:#919191}.stock.empty i{background:#9c9c9c}.add-circle{border:1px solid #e1e1e1;background:#ffffff;color:var(--ink);border-radius:50%;width:29px;height:29px;font-size:23px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.add-circle:hover{background:var(--red)}.maintenance-card{background:#f2f2f2;border-radius:6px;padding:26px;position:relative;overflow:hidden}.maintenance-card .eyebrow{font-size:12px;color:#8b8b8b;letter-spacing:1.3px}.maintenance-symbol{font-size:48px;color:#8d8d8d;line-height:1.3;margin:22px 0 15px}.maintenance-card h2{font-size:29px;font-weight:400;letter-spacing:-.5px;line-height:1.25;margin:12px 0}.maintenance-card p{font-size:13px;line-height:1.8;color:#868686;max-width:235px}.maintenance-card>a{display:flex;justify-content:space-between;margin-top:23px;font-size:12px;font-weight:600}.maintenance-note{border-top:1px solid #dbdbdb;margin-top:21px;padding-top:15px;font-size:12px;color:#848484}.maintenance-note i{margin-right:5px;background:#d71920}.demo-note{display:flex;gap:10px;margin-top:25px;color:#9a9a9a;font-size:12px;line-height:1.7}.demo-note>span{font-size:18px}.demo-note p{margin:0}.demo-note strong{font-weight:500;color:#7c7c7c}footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:23px 44px;font-size:12px;color:#9d9d9d;gap:20px}.catalog-toolbar{display:flex;gap:15px;margin:24px 0}.search{position:relative;flex:1}.search>span{position:absolute;left:14px;top:9px;font-size:30px;color:#8c8c8c}.search input{padding-left:43px}.catalog-toolbar select{width:230px}input,textarea,select{border:1px solid #e0e0e0;border-radius:4px;padding:12px;background:#ffffff;color:var(--ink);width:100%;font-size:14px}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#a3a3a3}.catalog-meta{display:flex;justify-content:space-between;font-size:12px;color:#8d8d8d;margin:20px 0}.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.product-card{background:#ffffff;border:1px solid var(--line);border-radius:6px;overflow:hidden}.product-visual{height:180px;background:#efefef;position:relative;display:flex;align-items:center;justify-content:center}.product-visual>span{position:absolute;top:15px;left:15px;font-size:12px;border:1px solid #dbdbdb;padding:5px 7px;border-radius:3px;color:#8c8c8c}.product-visual>.product-icon{width:105px;height:105px;stroke-width:1;filter:drop-shadow(5px 10px 3px #a2a2a235)}.product-visual>small{position:absolute;right:12px;bottom:12px;font-size:12px;letter-spacing:2px;color:#a6a6a6}.product-info{padding:20px}.product-info>small{font-size:12px;color:#555555}.product-info h2{font-size:17px;min-height:34px;font-weight:500;margin:10px 0}.product-bottom{border-top:1px solid var(--line);padding-top:17px;margin-top:17px;display:flex;justify-content:space-between;align-items:center}.product-bottom strong{font-size:22px;font-weight:500}.product-bottom small{display:block;color:#989898;font-size:12px;margin-top:5px}.cart-row{display:flex;align-items:center;gap:16px;border-bottom:1px solid var(--line);padding:18px 0}.cart-name{flex:1}.cart-name strong{font-size:14px;font-weight:500;display:block;margin-bottom:8px}.quantity-label{font-size:12px;display:flex;align-items:center;gap:10px;color:#858585}.quantity-label input{width:70px}.remove{border:0;background:none;color:#939393;font-size:26px;padding:5px}.total{display:flex;justify-content:flex-end;align-items:center;gap:30px;padding:23px 0;font-size:14px}.total strong{font-size:29px;font-weight:500}.form-fields{display:grid;gap:20px;margin:22px 0}.form-fields label{display:grid;gap:9px;font-size:13px}.form-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:20px}.form-footer>span{font-size:12px;color:#949494;max-width:270px;line-height:1.7}.form-error{color:#b71c22;font-size:14px}.history-panel{margin-top:25px}.request-row{border-top:1px solid var(--line);padding:18px 0;display:flex;justify-content:space-between;align-items:start;gap:20px}.request-row strong{font-size:14px;font-weight:500}.request-row small{display:block;font-size:12px;color:var(--muted);margin-top:7px}.request-row p{font-size:13px;line-height:1.7;max-width:600px;overflow-wrap:anywhere}.neutral-badge{font-size:12px;background:#f0f0f0;padding:7px 9px;white-space:nowrap;border-radius:4px}.empty-state{text-align:center;padding:40px 20px;color:#868686;line-height:1.8;grid-column:1/-1}.empty-state small{display:block;margin-top:8px}.empty-state .button{margin-top:22px}.equipment-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.equipment-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.equipment-number{font-size:16px;color:#9a9a9a}.equipment-drawing{height:150px;display:flex;align-items:center;justify-content:center;background:#f3f3f3;margin:22px -5px;border-radius:5px}.equipment-drawing .product-icon{width:100px;height:100px;stroke-width:1}.equipment-card>small{font-size:12px;color:#939393}.equipment-card h2{line-height:1.5;font-size:19px;min-height:48px}.equipment-card dl{margin:22px 0}.equipment-card dl>div{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px}.equipment-card dt{color:#8c8c8c}.equipment-card dd{margin:0}.equipment-card .button{width:100%;font-size:12px;padding:12px 8px}.service-grid{display:grid;grid-template-columns:1.65fr 1fr;gap:24px}.service-advice{background:#f2f2f2;padding:30px;border-radius:6px;align-self:start}.service-advice h2{font-weight:400;font-size:34px;line-height:1.2;letter-spacing:-1px;margin-top:35px}.service-advice p{font-size:14px;color:#838383;line-height:1.9}.advice-rule{height:1px;background:#d8d8d8;margin:25px 0}.service-advice strong{font-size:16px;font-weight:500}.service-advice>a{font-size:13px;display:block;margin-top:25px}dialog{border:1px solid var(--line);border-radius:8px;padding:35px;max-width:550px;width:calc(100% - 32px);color:var(--ink)}dialog::backdrop{background:#27272780;backdrop-filter:blur(3px)}dialog h2{font-weight:500;font-size:30px;max-width:90%}.dialog-close{position:absolute;top:15px;right:18px;background:none;border:0;font-size:30px;color:#787878}.timeline{border-left:1px solid #dedede;margin:30px 0 30px 5px;padding-left:22px}.timeline>div{position:relative;padding-bottom:20px}.timeline>div::before{content:'';position:absolute;left:-27px;top:3px;width:8px;height:8px;background:#9a9a9a;border-radius:50%;border:1px solid white}.timeline small{font-size:12px;color:#929292}.timeline h3{font-size:16px;font-weight:500}.timeline p{font-size:14px;color:#888888;line-height:1.6}#toast{position:fixed;bottom:25px;left:calc(50% + 129px);transform:translate(-50%,20px);padding:15px 22px;background:var(--ink);color:white;border-radius:5px;box-shadow:0 8px 30px #00000022;opacity:0;pointer-events:none;transition:.2s;z-index:20;max-width:90vw;font-size:14px;line-height:1.6}#toast.visible{opacity:1;transform:translate(-50%,0)}.loading{padding:100px;text-align:center;color:var(--muted)}
@media(min-width:1500px){main{padding-top:48px}.hero{min-height:330px;padding:40px}.hero-art{right:40px}.hero h2{font-size:53px}.hero-art .block1{top:75px}.hero-art .block2{top:104px}.hero-art .block3{top:42px}.stats{margin:25px 0 35px}}
@media(max-width:1150px){.sidebar{width:220px;padding:30px 17px 0}.shell{margin-left:220px}header{padding:0 28px}main{padding:30px 28px}.hero-art{opacity:.7;right:-60px}.hero h2{font-size:41px}.hero p{max-width:250px}.product-grid,.equipment-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1.3fr 1fr}.stat{padding:18px 15px}.stats{gap:12px}.maintenance-card{padding:23px}.panel{padding:20px}.page-heading .button{font-size:12px;padding:12px}h1{font-size:36px}#toast{left:calc(50% + 110px)}}
@media(max-width:850px){.sidebar{width:185px;padding:25px 12px 0}.brand{font-size:52px}.brand small{font-size:12px;letter-spacing:1.1px}.workspace{padding:10px 6px;font-size:12px;gap:7px}.workspace small{font-size:12px}.workspace-icon{padding:8px}.shell{margin-left:185px}nav a{font-size:12px;padding:12px 9px;gap:8px}.nav-label{font-size:12px}header{padding:0 20px}.header-label{display:none}.header-separator{display:none}main{padding:25px 20px}.page-heading{align-items:start}.page-heading h1{font-size:32px}.page-heading>.button{display:none}.hero{padding:27px;min-height:290px}.hero-art{right:-150px;opacity:.4}.hero h2{font-size:41px}.dashboard-grid{grid-template-columns:1fr}.maintenance-card{display:none}.stat>div{font-size:12px}.stat>small{font-size:12px}.stat-icon{display:none}.stat>strong{font-size:34px}.service-grid{grid-template-columns:1fr}.service-advice{display:none}.catalog-toolbar{flex-direction:column}.catalog-toolbar select{width:100%}.catalog-meta{font-size:12px;gap:15px}.product-info{padding:15px}.product-info h2{font-size:14px}.product-visual{height:150px}.cart-row{gap:9px}.cart-row>.stock{display:none}.cart-name strong{font-size:13px}.cart-row .mini-product{width:40px;height:40px}.quantity-label input{width:57px;padding:10px}.form-footer{align-items:start;flex-direction:column}.request-row{flex-direction:column;gap:10px}.equipment-grid{grid-template-columns:1fr}.equipment-card h2{min-height:auto}.equipment-drawing{height:100px}footer{padding:20px;font-size:12px}#toast{left:calc(50% + 92px)}}
@media(max-width:600px){.sidebar{position:static;width:100%;padding:20px 18px 0;border:0;border-bottom:1px solid var(--line)}.brand{font-size:43px;width:max-content}.brand small{font-size:12px;margin-top:7px;letter-spacing:1.4px}.brand>span{font-size:12px}.workspace,.nav-label,.sidebar-bottom{display:none}nav{display:flex;overflow:auto;gap:3px;padding-top:20px}nav a{white-space:nowrap;font-size:12px;padding:12px 10px;border-radius:4px 4px 0 0}nav a>span{font-size:19px;width:15px}nav b{display:none}.shell{margin:0}header{height:52px;padding:0 19px;font-size:12px}.demo-pill{font-size:12px;padding:6px 8px}main{padding:25px 18px}.eyebrow{font-size:12px}h1{font-size:34px!important}.page-heading{margin-bottom:23px}.page-heading p{font-size:13px}.hero{min-height:280px;padding:25px}.hero h2{font-size:43px}.hero-art{right:-150px;width:75%;opacity:.3}.hero-eyebrow{font-size:12px}.hero-number{font-size:12px}.stats{gap:7px;margin:16px 0 22px}.stat{padding:15px 10px}.stat>div{font-size:12px;min-height:20px;line-height:1.5}.stat>strong{font-size:32px;margin:9px 0}.stat>small{font-size:12px;line-height:1.7;gap:5px}.panel{padding:20px 16px}.panel h2{font-size:19px}.essential strong{font-size:13px}.product-grid{gap:12px}.product-visual{height:135px}.product-visual>span{font-size:12px;left:8px;top:8px;padding:4px}.product-visual>.product-icon{width:80px;height:80px}.product-info{padding:13px 10px}.product-info h2{min-height:38px;font-size:14px}.product-bottom strong{font-size:19px}.product-bottom{gap:5px}.product-info .stock{font-size:12px}.catalog-meta{line-height:1.6}.catalog-meta>span:last-child{max-width:170px;text-align:right}.cart-row{gap:8px}.cart-row .mini-product{display:none}.cart-name strong{font-size:13px}.cart-name small{font-size:12px}.quantity-label{gap:5px;font-size:12px}.quantity-label input{width:52px;font-size:13px}.section-heading{align-items:start}.section-heading>.muted{font-size:12px;max-width:110px;text-align:right}.total{gap:15px;font-size:12px}.total strong{font-size:28px}.request-row p{font-size:12px}.history-panel{margin-top:20px}.neutral-badge{font-size:12px}footer{flex-direction:column;gap:10px;padding:20px 18px}#toast{left:50%;width:max-content}.demo-note{font-size:12px}dialog{padding:30px 24px}.loading{padding:60px 10px}}
.available-filter{display:flex;align-items:center;gap:8px;font-size:13px;white-space:nowrap}.available-filter input{width:auto;accent-color:#151515}.pagination{display:flex;justify-content:center;align-items:center;gap:22px;margin:25px 0;font-size:13px}.search-heading{font-size:24px;font-weight:500;margin-top:35px}.searching{opacity:.5;pointer-events:none}#catalog-error{color:#b71c22;font-size:14px;margin:12px 0}.product-info h2,.cart-name strong,.essential strong{overflow-wrap:anywhere}.product-visual>span{max-width:calc(100% - 24px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-bottom strong{font-size:19px}.pagination button:disabled{cursor:default;opacity:.4}.essential>div:nth-child(2){min-width:0}.product-info h2{min-height:50px;line-height:1.5}.catalog-toolbar select{max-width:260px}.cart-name{min-width:0}.neutral-badge{white-space:normal}.request-row>div{min-width:0}.request-row small{overflow-wrap:anywhere}@media(max-width:600px){.product-bottom strong{font-size:16px}.pagination{gap:10px}.pagination .button{padding:11px;font-size:12px}.pagination>span{font-size:12px}.catalog-toolbar select{max-width:none}.product-info h2{min-height:72px}}
.text-button{background:none;border:0;padding:0;color:inherit;font-size:12px;text-align:right}.available-filter{flex-shrink:0}@media(min-width:851px) and (max-width:1250px){.catalog-toolbar{flex-wrap:wrap}.catalog-toolbar .search{min-width:200px}.catalog-toolbar select{max-width:220px}}
[hidden]{display:none!important}.login-screen{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:42px 20px;background:#ffffff}.login-brand{font-size:60px;font-weight:800;letter-spacing:-3px;line-height:1;margin-bottom:35px}.login-brand sup{font-size:14px;letter-spacing:0;vertical-align:top}.login-brand>span{display:block;font-size:12px;letter-spacing:2px;margin-top:12px;text-align:center;font-weight:500}.login-card{width:100%;max-width:460px;padding:36px;background:#ffffff;border:1px solid var(--line);border-radius:10px;box-shadow:0 20px 70px #2d2d2d08}.login-card h1{font-size:36px;margin:17px 0 12px}.login-card>p{font-size:14px;line-height:1.8;color:var(--muted)}.login-card form{margin-top:25px}.login-card form>label{display:grid;gap:10px;font-size:14px;margin-bottom:20px}.login-card form>.button{width:100%;margin-top:8px;padding:15px}.login-help{border-top:1px solid var(--line);padding-top:20px;margin:25px 0 0;font-size:13px!important}.login-caption{font-size:12px;color:var(--muted);margin-top:25px}.access-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px}.access-grid .panel{min-width:0}.client-row{display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:1px solid var(--line);padding:20px 0}.client-row>div:first-child{min-width:0}.client-row strong{display:block;font-size:16px;font-weight:500;overflow-wrap:anywhere}.client-row small{display:block;font-size:12px;color:var(--muted);margin:8px 0 10px;overflow-wrap:anywhere}.client-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.client-actions .button{font-size:12px;padding:10px}.form-success{font-size:14px;color:#202020;line-height:1.8}.password-panel{max-width:540px}.logout{display:block;padding:0 0 20px;font-size:13px}.login-card .logout{padding:20px 0 0}.sidebar{overflow-y:auto}.sidebar-bottom{padding-top:25px}.workspace>div{min-width:0}.workspace [data-company]{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account>div{min-width:0}.account [data-company],#account-login{overflow-wrap:anywhere}.account{padding-bottom:15px}.account [data-company]{line-height:1.6}.workspace{margin-bottom:20px}.sidebar nav{gap:3px}.sidebar nav a{padding-top:10px;padding-bottom:10px}.login-card .form-fields{margin-top:0}.login-card input{padding:13px}.access-grid input{min-width:0}@media(max-width:1000px){.access-grid{grid-template-columns:1fr}.client-row{align-items:start;flex-direction:column}.client-actions{justify-content:flex-start}.sidebar-bottom .help-label,.sidebar-bottom>p,.sidebar-bottom>a{display:none}}@media(max-width:600px){.login-card{padding:27px 22px}.login-screen{justify-content:flex-start;padding-top:40px}.login-card h1{font-size:32px!important}.sidebar nav a{padding:12px 10px}.sidebar{overflow:visible}.client-actions{gap:7px}.client-actions .button{font-size:12px}.login-brand{font-size:53px;margin-bottom:27px}.access-grid{gap:20px}}

/* Identité SODM : blanc, rouge, noir. */
.dark{background:var(--red);color:#fff}.dark:not(:disabled):not([aria-disabled=true]):hover{background:#b51017}
.brand>span,.login-brand sup{color:var(--red)}nav a.active,nav a.active:hover{background:var(--ink);color:#fff}
.stat-icon,.maintenance-symbol{color:var(--red)}.eyebrow{color:#686868}
.add-circle:hover{background:var(--red);border-color:var(--red);color:#fff}
.stock{color:#565656}.stock i{background:#252525}.stock.low{color:#b51017}.stock.low i{background:var(--red)}
.hero-eyebrow{color:#d0d0d0}.hero-eyebrow span{background:var(--red)}.hero .light{background:#fff;color:#161616}
.maintenance-note i,.art-label i{background:var(--red)}.available-filter input{accent-color:var(--red)}
.form-success{color:#252525}.neutral-badge{background:#f2f2f2}.workspace-icon{color:var(--red)}
/* Recherche disponible depuis toutes les pages connectées. */
header{gap:24px;min-height:90px;height:auto;padding-top:18px;padding-bottom:18px}
.header-breadcrumb{min-width:0;line-height:1.6}.header-actions{display:flex;align-items:center;gap:20px;margin-left:auto;min-width:0}
.header-search{display:flex;align-items:center;width:clamp(220px,25vw,380px);border:1px solid #d8d8d8;border-radius:6px;background:#f7f7f7;overflow:hidden}
.header-search:focus-within{outline:2px solid var(--red);outline-offset:2px}
.header-search input{flex:1;min-width:0;width:auto;border:0;background:transparent;font-size:16px;padding:12px 14px;outline:none}
.header-search input:focus-visible{outline:none}.header-search button{border:0;background:transparent;color:var(--ink);width:46px;align-self:stretch;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.header-search button:hover{background:#ffe9ea;color:var(--red)}.header-search svg{width:21px;height:21px;stroke:currentColor;stroke-width:1.8}
.header-actions>[data-logout]{white-space:nowrap}.brand small{line-height:1.6;letter-spacing:1px;max-width:100%;white-space:normal}.brand{display:block}
.sidebar nav a{font-size:15px}.sidebar nav{gap:4px}.nav-label{font-size:12px}.workspace small{font-size:12px;line-height:1.5}.workspace{line-height:1.6}.account small{font-size:12px;line-height:1.5}
input,textarea,select{font-size:16px}.login-card>p,.login-card form>label,.form-fields label{font-size:15px}.login-help{font-size:14px!important;line-height:1.8}.login-caption{font-size:13px}
.product-info>small,.cart-name small,.essential small{font-size:12px}.product-info h2{line-height:1.5;min-height:60px}.product-bottom{gap:8px}.product-visual>span{white-space:normal;max-height:38px;line-height:1.5}
.available-filter{white-space:normal;line-height:1.6}.catalog-toolbar{flex-wrap:wrap}.catalog-toolbar .search{min-width:220px}.quantity-label{flex-shrink:0}.essential{gap:12px}.essential strong{line-height:1.5}
.hero-art{pointer-events:none}.hero>div:first-child{max-width:65%}.hero p{line-height:1.8}.request-row small{line-height:1.7}.demo-note{line-height:1.8}.stat>small{line-height:1.6}
@media(max-width:1200px){header{padding-left:24px;padding-right:24px}.header-label,.header-separator{display:none}.header-actions{gap:14px}.header-search{width:clamp(210px,27vw,340px)}.sidebar nav a{font-size:14px}}
@media(max-width:850px){header{flex-wrap:wrap;gap:14px;padding:16px 20px}.header-breadcrumb{width:100%}.header-actions{width:100%;margin-left:0;justify-content:space-between}.header-search{flex:1;width:auto}.header-actions>[data-logout]{font-size:13px}.hero>div:first-child{max-width:100%}.hero-art{opacity:.2}.catalog-toolbar .search{min-width:0}.sidebar nav a{padding-left:7px;padding-right:7px}.sidebar{width:200px}.shell{margin-left:200px}.brand small{font-size:12px}.sidebar-bottom .account{gap:7px}}
@media(max-width:600px){.sidebar{width:100%;padding-top:20px}.shell{margin-left:0}.sidebar nav a{font-size:14px;padding:13px 11px}.sidebar .brand{width:max-content;max-width:100%}.sidebar .brand small{font-size:12px}.brand{font-size:46px}.brand small{letter-spacing:.6px}.header-breadcrumb{font-size:14px}.header-actions{flex-wrap:wrap;gap:12px}.header-search{flex:none;width:100%;order:1}.header-actions>[data-logout]{margin-left:auto}.header-search input{font-size:16px}.header-search button{width:48px}.hero h2{font-size:39px;overflow-wrap:anywhere}.hero p{max-width:100%}.hero .button{font-size:14px}.hero-eyebrow{font-size:11px;letter-spacing:1px}.stat{padding:14px 9px}.stat>div{font-size:12px;line-height:1.5}.stat>small{font-size:12px;flex-wrap:wrap}.stat>strong{font-size:30px}.stats{align-items:stretch}.product-grid{grid-template-columns:1fr}.product-visual{height:155px}.product-info h2{font-size:18px;min-height:0;margin:12px 0}.product-info{padding:18px}.product-info .stock{font-size:14px}.product-bottom strong{font-size:20px}.product-visual>span{font-size:12px;line-height:1.5;max-height:40px}.product-bottom small{font-size:13px}.cart-name strong{font-size:15px}.cart-name small{font-size:12px}.quantity-label{font-size:12px;gap:6px}.quantity-label input{width:58px;font-size:16px}.form-footer{align-items:stretch}.form-footer .button{white-space:normal}.client-actions .button{font-size:12px}.section-heading{flex-wrap:wrap}.section-heading>.muted{max-width:100%;text-align:left}.essential strong{font-size:14px}.essential .stock{font-size:12px}.essential .mini-product{width:44px;height:48px}.catalog-meta{font-size:13px;gap:12px;flex-wrap:wrap}.catalog-meta>span:last-child{max-width:100%;text-align:left}.pagination{gap:12px;flex-wrap:wrap}.pagination>span{font-size:13px}.pagination .button{font-size:13px}.login-card h1{font-size:32px!important}.login-card form>label{font-size:15px}.equipment-card .button{white-space:normal;font-size:14px}.equipment-card dl>div{font-size:13px;flex-wrap:wrap}.demo-note{font-size:13px}.login-screen{padding-left:16px;padding-right:16px}.client-row small{font-size:13px}}

.sodm-logo{display:block;width:100%;height:auto;object-fit:contain;background:#fff}
.brand{width:100%;max-width:230px;font-size:inherit;line-height:normal;letter-spacing:normal}
.brand .sodm-logo{border-radius:5px}.brand small{margin-top:10px}
.login-brand{width:min(300px,100%);max-width:100%;font-size:inherit;line-height:normal;letter-spacing:normal;text-align:center}
.login-brand .sodm-logo{border-radius:8px}.login-brand>span{font-size:12px;line-height:1.6;margin-top:12px}
.selection-summary{border-top:1px solid var(--line);margin-top:18px}.selection-summary .total{flex-wrap:wrap}
.selection-price-note{font-size:14px;line-height:1.7;color:var(--muted);margin:0 0 16px}
.essential-price{display:block;margin-top:7px;font-size:14px;font-weight:600}.request-pricing{font-weight:600;line-height:1.7}
@media(max-width:600px){.sidebar .brand{width:210px;max-width:100%}.login-brand{width:min(270px,100%)}.product-bottom strong{font-size:19px}.selection-summary .total{justify-content:space-between;gap:12px}.selection-summary .total strong{font-size:25px}.selection-price-note{font-size:13px}}

.product-visual.has-photo{background:#fff;height:235px}
.product-photo{display:block;width:100%;height:100%;object-fit:contain;min-width:0;min-height:0}
.product-visual>.product-photo{padding:42px 18px 26px}
.product-visual>span,.product-visual>small{z-index:1;pointer-events:none}
.product-visual.has-photo>small{background:#fffffff0;padding:3px 5px;border-radius:3px}
.mini-product{overflow:hidden;background:#fff;border:1px solid #eee}.mini-product>.product-photo{padding:4px}
@media(max-width:600px){.product-visual.has-photo{height:245px}.product-visual>.product-photo{padding:46px 16px 25px}}

.document-button{display:block;background:none;border:0;padding:14px 0;text-align:left;color:var(--red);font:inherit;font-size:14px;text-decoration:underline;line-height:1.5}.document-row{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding:16px 0}.document-row a{min-width:0;overflow-wrap:anywhere}.document-row small{display:block;color:var(--muted);font-size:13px;margin-top:6px}.document-row button{flex-shrink:0}#document-form input[type=file]{width:100%;min-width:0}#modal-content>p{overflow-wrap:anywhere}
.crm-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:25px 0}.crm-stats .panel{padding:20px}.crm-stats p{font-size:14px;line-height:1.6;margin:9px 0}.crm-stats small{color:var(--muted);font-size:12px}.crm-scroll{overflow-x:auto;max-width:100%;margin:20px 0}.crm-table{width:100%;border-collapse:collapse;font-size:14px}.crm-table th,.crm-table td{text-align:left;padding:14px 10px;border-bottom:1px solid var(--line);vertical-align:top}.crm-table th{font-size:12px;color:var(--muted)}.crm-table small{display:block;margin-top:6px;line-height:1.5;color:var(--muted)}.crm-table td{overflow-wrap:anywhere}.crm-table .text-button{font-size:14px;text-align:left;line-height:1.5}.crm-client{margin-top:25px}.crm-actions{display:flex;gap:12px;flex-wrap:wrap}.crm-total{font-size:19px;font-weight:600;line-height:1.8}.sales-lines{min-width:660px}.sales-lines td:first-child{min-width:180px}.sales-lines input{width:95px;padding:10px}.sales-lines select{width:100px;padding:10px}.sales-lines td:nth-child(2) input{width:65px}#sales-product-results{margin-bottom:20px}#sales-product-results .document-row{gap:20px}#sales-product-results .document-row>span{min-width:0;overflow-wrap:anywhere}#saved-sales-quote{margin-top:20px}.sidebar nav{overflow-y:auto;min-height:0}.sidebar{overflow-y:auto}@media(max-width:1200px){.crm-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.crm-stats{grid-template-columns:1fr}.crm-stats .panel{padding:18px}.crm-table{min-width:600px}.crm-actions .button{width:100%}.crm-client{padding:18px}.crm-actions{width:100%}#sales-product-results .document-row{align-items:flex-start}.crm-stats p{font-size:15px}}
[data-free-sales-line],#save-sales-quote,[data-new-sales-quote]{max-width:100%;white-space:normal;line-height:1.6}

[data-create-business-client],#create-business-client-form button,.integrate-client-form button{white-space:normal;max-width:100%;line-height:1.5}#modal:has(#create-business-client-form){max-height:90vh;overflow-y:auto}.integrate-client-form{max-width:440px}.integrate-client-form button{justify-self:start}
/* Navigation compacte : tous les accès visibles sur un écran courant. */
@media(min-width:601px){
 .sidebar{padding:18px 16px 12px;overflow-y:auto}
 .sidebar .brand{width:155px;flex-shrink:0}
 .sidebar .brand small{font-size:10px;line-height:1.3;letter-spacing:.5px;margin-top:6px}
 .sidebar .workspace{display:none}
 .sidebar .nav-label{margin:13px 8px 7px;font-size:10px;flex-shrink:0}
 .sidebar nav{overflow:visible;flex-shrink:0;display:grid;gap:2px}
 .sidebar nav a{font-size:14px;line-height:20px;padding:7px 9px;min-height:36px;gap:9px;white-space:normal}
 .sidebar nav a>span{font-size:19px;flex-shrink:0}
 .sidebar-bottom{padding-top:10px;flex-shrink:0}
 .sidebar-bottom .help-label,.sidebar-bottom>p,.sidebar-bottom>a{display:none}
 .sidebar-bottom .account{padding:10px 0 8px;font-size:12px;gap:8px}
 .sidebar-bottom .account .avatar{width:28px;height:28px;flex-shrink:0}
 .sidebar-bottom .account small{font-size:11px;margin-top:3px}
 .sidebar-bottom .logout{font-size:12px;line-height:20px}
}
@media(min-width:601px) and (max-height:700px){
 .sidebar{padding-top:12px;padding-bottom:8px}
 .sidebar .brand{width:120px}
 .sidebar .brand small{display:none}
 .sidebar .nav-label{margin-top:8px;margin-bottom:5px}
 .sidebar nav{gap:1px}
 .sidebar nav a{padding-top:5px;padding-bottom:5px;min-height:31px;font-size:14px;line-height:19px}
 .sidebar-bottom{padding-top:6px}
 .sidebar-bottom .account{padding-top:6px;padding-bottom:6px}
}
@media(max-width:600px){
 .sidebar{padding:14px 14px 12px;overflow:visible}
 .sidebar .brand{width:145px}
 .sidebar .brand small{display:none}
 .sidebar nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:5px;padding-top:12px}
 .sidebar nav a{min-width:0;min-height:44px;white-space:normal;line-height:1.35;font-size:13px;padding:8px;border-radius:5px;gap:6px}
 .sidebar nav a>span{font-size:18px;flex-shrink:0}
 .sidebar nav b{display:block;font-size:11px;padding:1px 4px;min-width:18px}
}
.header-search{width:clamp(300px,32vw,500px)}.header-search select{width:96px;min-width:96px;flex:0 0 96px;padding:10px 8px;border:0;border-right:1px solid var(--line);border-radius:0;background:transparent;font-size:13px}.header-search input{flex:1;min-width:0}@media(max-width:850px){.header-actions{flex-wrap:wrap}.header-search{width:100%;flex:1 1 100%}.header-actions>[data-logout]{margin-left:auto}}

.accounts-single,.dashboard-grid{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}

.home-banner{display:block;width:100%;overflow:hidden;border-radius:8px;background:#fff}.home-banner img{display:block;width:100%;height:auto;aspect-ratio:2085/800;object-fit:contain}

.home-banner{position:relative}.home-banner .banner-catalog-link{position:absolute;right:24px;bottom:24px;display:flex;align-items:center;gap:24px;background:#fff;color:#161616;border:1px solid #16161620;box-shadow:0 3px 15px #0002}.home-banner:hover .banner-catalog-link{background:#161616;color:#fff}@media(max-width:600px){.home-banner .banner-catalog-link{position:static;margin:12px;justify-content:center;white-space:normal}}

/* Accueil : cover SODM, accès directs et demandes récentes. */
.home-workspace{display:grid;gap:30px}.home-intro{display:flex;justify-content:space-between;align-items:center;gap:30px;padding:8px 0 30px;border-bottom:1px solid var(--line)}.home-intro .eyebrow{color:var(--muted);font-size:11px;letter-spacing:1.3px;overflow-wrap:anywhere}.home-intro h1{font-size:42px;line-height:1.15;margin:14px 0;letter-spacing:-1.6px}.home-intro>div>p:last-child{max-width:570px;font-size:16px;line-height:1.7;color:var(--muted);margin-bottom:0}.home-primary{display:flex;align-items:center;gap:28px;flex-shrink:0;padding:17px 22px}.home-section-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}.home-section-title h2{font-size:20px;line-height:1.4;font-weight:500;margin:0;letter-spacing:-.3px}.home-section-title>span,.home-section-title>a{font-size:12px;color:var(--muted)}.home-section-title>a:hover{color:var(--red)}.home-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.home-action{display:flex;flex-direction:column;align-items:flex-start;padding:26px;border:1px solid var(--line);border-radius:8px;background:#fff;transition:border-color .15s,box-shadow .15s}.home-action:hover{border-color:#aaa;box-shadow:0 5px 20px #00000006}.home-action-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;background:#f5f5f5;border-radius:8px;margin-bottom:24px;color:var(--ink)}.home-action-icon svg{width:24px;height:24px}.home-action h3{font-size:20px;font-weight:500;line-height:1.35;margin:0 0 12px;letter-spacing:-.3px}.home-action p{font-size:14px;line-height:1.8;color:var(--muted);margin:0 0 25px}.home-action-end{display:flex;justify-content:space-between;width:100%;margin-top:auto;font-size:13px;font-weight:600}.home-action-end>span{color:var(--red);font-size:20px;line-height:1}.home-secondary-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:20px}.home-panel{padding:26px;background:#fff;border:1px solid var(--line);border-radius:8px;min-width:0}.home-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:170px;text-align:center;padding:15px}.home-empty>span{font-size:28px;color:#bdbdbd}.home-empty p{font-size:14px;line-height:1.6;color:var(--muted);margin:14px 0 5px}.home-empty small{font-size:12px;color:var(--muted);line-height:1.6}.home-followup{background:#f0f0f0;border-color:#f0f0f0}.home-followup>.eyebrow{font-size:10px;color:var(--muted)}.home-followup h2{font-size:26px;font-weight:500;line-height:1.25;margin:18px 0 14px;letter-spacing:-.5px}.home-followup p{font-size:14px;color:var(--muted);line-height:1.8}.home-followup-links{display:grid;gap:14px;margin-top:24px}.home-followup-links>a{display:flex;justify-content:space-between;gap:20px;font-size:13px;line-height:1.5}.home-followup-links>a:hover{color:var(--red)}.home-recent{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);padding:18px 0;min-width:0}.home-request-type{font-size:11px;padding:6px 8px;background:#f3f3f3;border-radius:4px;flex-shrink:0}.home-recent>div{min-width:0;flex:1}.home-recent strong{display:block;font-size:13px;font-weight:500;line-height:1.4}.home-recent small{display:block;font-size:11px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere;margin-top:5px}.home-request-state{font-size:11px;color:var(--muted);flex-shrink:0}.home-stock-note{font-size:12px;line-height:1.8;color:var(--muted);margin:0;display:flex;gap:10px}.home-stock-note>span{flex-shrink:0}.home-workspace a:focus-visible{outline:2px solid var(--red);outline-offset:4px}
@media(max-width:1150px){.home-intro{align-items:flex-start;flex-direction:column;gap:20px}.home-action{padding:22px}.home-action-grid{gap:14px}.home-action h3{font-size:18px}.home-secondary-grid{grid-template-columns:1fr}.home-primary{align-self:flex-start}}
@media(max-width:600px){.home-workspace{gap:26px}.home-intro{padding:0 0 24px}.home-intro h1{font-size:34px!important;margin-top:12px}.home-intro>div>p:last-child{font-size:15px}.home-primary{width:100%;justify-content:space-between;white-space:normal}.home-section-title>span{display:none}.home-action-grid{grid-template-columns:1fr;gap:12px}.home-action{padding:22px;position:relative}.home-action-icon{width:38px;height:38px;margin-bottom:18px}.home-action h3{font-size:21px}.home-action p{margin-bottom:20px}.home-panel{padding:20px}.home-recent{gap:8px}.home-request-state{font-size:10px}.home-section-title h2{font-size:19px}.home-followup h2{font-size:26px}}

.catalog-banner{width:100%;overflow:hidden;margin:0 0 26px;background:#fff;border-radius:8px}.catalog-banner img{display:block;width:100%;height:auto;aspect-ratio:1536/1024;object-fit:contain}

.access-log-filters{display:flex;flex-wrap:wrap;gap:14px;align-items:end}.access-log-filters label{display:grid;gap:8px;flex:1 1 150px;font-size:13px;min-width:0}.access-log-filters label:first-child{flex-basis:220px}.access-log-filters button{min-height:44px}.access-log-actions{margin-top:20px}.access-log-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:25px 0}.access-log-summary span{display:block;color:var(--muted);font-size:13px;line-height:1.6}.access-log-summary strong{display:block;font-size:32px;font-weight:500;margin-top:12px}.access-event{display:inline-block;padding:7px 9px;background:#f2f2f2;border-radius:4px;font-size:12px;line-height:1.5}.access-success{color:#27623b;background:#eff7f0}.access-failure{color:#a71820;background:#fff0f0}#access-log-results details small{max-width:260px;overflow-wrap:anywhere}#access-log-results summary{cursor:pointer;line-height:1.5}@media(max-width:600px){.access-log-summary{grid-template-columns:1fr}.access-log-filters{display:grid;grid-template-columns:1fr 1fr}.access-log-filters label:first-child,.access-log-filters label:nth-child(2),.access-log-filters button{grid-column:1/-1}.access-log-actions .button{width:100%;white-space:normal}}
.page-heading:has(a[href="#connections"]){flex-wrap:wrap}.page-heading a[href="#connections"]{white-space:normal;line-height:1.5;max-width:100%}
.access-log-filters input,.access-log-filters select{min-width:0;max-width:100%;width:100%}@media(max-width:600px){.access-log-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:380px){.access-log-filters{grid-template-columns:1fr}}

/* Administration des services et sélection des familles. */
.service-editor {margin-top:1.25rem}
.service-editor fieldset {min-width:0;border:1px solid #ddd;border-radius:8px;padding:1rem}
.permission-flags {display:grid;gap:.8rem}
.permission-flags label,.service-editor fieldset label {display:flex;align-items:flex-start;gap:.65rem;font-weight:400;overflow-wrap:anywhere}
.service-editor input[type=checkbox] {width:18px;height:18px;flex:0 0 18px;margin:2px 0;accent-color:#161616}
.service-categories {max-height:260px;overflow:auto;display:grid;gap:.7rem;margin-top:1rem}
.service-categories[hidden] {display:none}
.history-panel summary {cursor:pointer;line-height:1.6;overflow-wrap:anywhere}

.supplier-directory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.supplier-card{min-width:0}.supplier-card h2{font-size:20px;overflow-wrap:anywhere}.supplier-card .section-heading{align-items:flex-start;flex-wrap:wrap;gap:8px}
.supplier-card p,.supplier-links{overflow-wrap:anywhere}.supplier-links{display:flex;flex-wrap:wrap;gap:10px 18px;font-size:14px;line-height:1.7}.supplier-links a{text-decoration:underline}
.supplier-contacts{margin-top:18px}.supplier-contacts summary{cursor:pointer;font-weight:600}.supplier-contact{border-top:1px solid var(--line);padding:14px 0;margin-top:10px}.supplier-contact>strong,.supplier-contact>span{display:block;margin-bottom:6px}
@media(max-width:1100px){.supplier-directory-grid{grid-template-columns:1fr}}

.visit-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}.visit-toolbar label{min-width:140px}.visit-toolbar select,.visit-toolbar input{margin-top:6px}
.visit-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:24px 0}.visit-metrics .panel{padding:18px}.visit-metrics span{font-size:13px}.visit-metrics strong{display:block;font-size:28px;margin-top:8px}.visit-metrics progress{width:100%;accent-color:#161616;margin-top:10px}
.visit-legend{display:flex;gap:10px;flex-wrap:wrap;font-size:13px;margin:16px 0}.visit-key{padding:7px 10px;border-radius:4px}.visit-key.pending{background:#ffe1e1}.visit-key.done{background:#d3f4dc}.visit-key.extra{background:#fff0b3}
.visit-top-actions{margin:20px 0}.visit-week-grid{display:grid;grid-template-columns:repeat(5,minmax(210px,1fr));gap:12px;overflow-x:auto;align-items:start;padding-bottom:15px}.visit-day{min-width:0}.visit-day-heading{background:#161616;color:white;padding:15px;border-radius:6px;margin-bottom:12px}.visit-day-heading h2{font-size:16px;line-height:1.5;margin:0 0 6px;text-transform:capitalize}.visit-day-heading small,.visit-day-heading span{display:block;font-size:12px;line-height:1.6}
.visit-card{padding:15px;border-radius:6px;margin-bottom:12px;border:1px solid #d0d0d0;overflow-wrap:anywhere;color:#161616}.visit-pending{background:#ffe1e1;border-left:4px solid #a71919}.visit-done{background:#d3f4dc;border-left:4px solid #19783c}.visit-extra{background:#fff0b3;border-left:4px solid #a17600}.visit-card h3{font-size:17px;line-height:1.4;margin:12px 0 6px}.visit-card small{font-size:12px;line-height:1.6}.visit-card p{font-size:13px;line-height:1.6}.visit-card-top{font-size:11px;display:grid;gap:6px}.visit-card-top strong{font-size:12px}.visit-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}.visit-actions .button{font-size:12px;padding:9px 10px;min-height:36px}.visit-note{white-space:pre-wrap;border-top:1px solid #aaa;padding-top:8px}.visit-objective{font-weight:500}.visit-office{font-size:13px;line-height:1.6;padding:15px;margin-bottom:12px;background:#eee}.visit-reminder{padding:15px;background:#f2f2f2;margin:18px 0;line-height:1.6;font-size:14px}.visit-day-list .visit-day{margin-bottom:24px}.visit-day-list .visit-card{max-width:900px}.visit-recap{padding:15px 0;border-top:1px solid #ddd}.visit-recap summary{cursor:pointer;font-weight:600}
@media(max-width:900px){.visit-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.visit-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.visit-toolbar label{min-width:0}.visit-toolbar select,.visit-toolbar input{width:100%;min-width:0}.visit-metrics .panel{padding:12px}.visit-metrics strong{font-size:24px}.visit-week-grid{grid-template-columns:repeat(5,250px)}.visit-toolbar .button{padding:10px;font-size:12px}}

.visit-week-grid .visit-card{padding:10px}.visit-week-grid .visit-card h3{font-size:14px;margin:8px 0 5px}.visit-week-grid .visit-card p{margin:8px 0;font-size:12px}.visit-week-grid .visit-card small{font-size:11px}.visit-week-grid .visit-card-top{font-size:10px;gap:3px}.visit-week-grid .visit-card-top strong{font-size:11px}.visit-week-grid .visit-card>.text-button{font-size:12px;margin:8px 0}.visit-details summary{cursor:pointer;font-size:11px;font-weight:600;padding:4px 0}.visit-details[open]{margin-top:8px;border-top:1px solid #bbb;padding-top:8px}

.report-tools{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}.report-tools .button{font-size:13px}.report-help,.report-live{font-size:13px;line-height:1.6}.report-live{min-height:1.6em}.report-proposal{padding:18px;background:#f4f4f4;border:1px solid #ccc;border-radius:6px;margin:15px 0}.report-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.75;margin:12px 0}.client-report-history{margin-top:28px;padding-top:22px;border-top:1px solid #ddd;min-width:0}.client-report-history h3{font-size:19px}.report-history-filter{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin:16px 0}.report-history-filter label{flex:1 1 140px;min-width:0;font-size:12px}.report-history-filter input,.report-history-filter select{width:100%;margin-top:6px}.report-fold-actions{display:flex;gap:18px;margin:12px 0}.report-month{border:1px solid #ddd;border-radius:6px;margin:12px 0}.report-month>summary{padding:14px;background:#f5f5f5;font-weight:600;text-transform:capitalize;cursor:pointer}.client-report-entry{padding:14px;border-top:1px solid #ddd}.client-report-entry>summary{cursor:pointer;line-height:1.6}.report-entry-heading{display:inline-flex;flex-wrap:wrap;gap:8px 14px;align-items:center;font-size:12px}.report-summary{display:block;font-size:13px;color:#555;margin:8px 0 0 18px;overflow-wrap:anywhere}.report-status{padding:3px 7px;border-radius:4px;background:#ffe1e1}.report-status.complete{background:#d3f4dc}.report-entry-body{padding:6px 0 0 18px}.report-entry-body>small{color:#666;font-size:11px}.report-original{margin-top:15px;border-top:1px solid #ddd;padding-top:10px}.report-original>summary{cursor:pointer;font-size:12px}.report-original section{border-top:1px solid #ddd;margin-top:12px;padding-top:12px}.report-original .report-text{font-size:13px}.report-history-results .pagination{flex-wrap:wrap}
@media(max-width:600px){.report-tools .button{width:100%}.report-entry-body{padding-left:0}.report-summary{margin-left:0}.report-history-filter{display:grid;grid-template-columns:1fr}.report-fold-actions{flex-wrap:wrap}.report-proposal{padding:12px}}

.report-motives{min-width:0;border:1px solid #ddd;border-radius:6px;padding:14px;margin:12px 0}.report-motives>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.report-motives label{display:flex;gap:9px;align-items:flex-start;font-weight:400;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.report-motives input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;margin:1px 0;accent-color:#161616}.report-motive-tags{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.report-motive-tags>span{font-size:11px;padding:4px 7px;background:#eee;border-radius:4px}@media(max-width:600px){.report-motives>div{grid-template-columns:1fr}}

.report-choice-group{border:1px solid #ddd;border-radius:6px;margin:10px 0;background:#fff}.report-choice-group>summary{cursor:pointer;padding:13px;font-size:14px;font-weight:600;line-height:1.6}.report-choice-group>summary>span{font-size:12px;font-weight:400;color:#666;margin-left:10px}.report-choice-group .report-motives{border:0;margin:0 0 8px}.report-choice-group .report-motives legend{font-size:12px;font-weight:600}

.pipeline-board{display:grid;grid-template-columns:repeat(9,minmax(255px,1fr));gap:16px;overflow-x:auto;padding-bottom:20px;max-width:100%;min-width:0}.pipeline-column{min-width:0}.pipeline-column h2{font-size:18px;min-height:44px}.pipeline-column .panel{padding:16px;margin-bottom:14px;overflow-wrap:anywhere}.pipeline-column h3{font-size:18px}.report-choice-group>.form-fields{padding:12px}
@media(max-width:700px){.pipeline-board{grid-template-columns:minmax(0,1fr);overflow:visible}.pipeline-column:not(:has(article)){display:none}.pipeline-column h2{min-height:0}.pipeline-column .panel{margin-bottom:10px}}

.pipeline-column{min-height:240px;border:2px solid transparent;border-radius:8px;padding:6px;transition:background-color .15s,border-color .15s}.pipeline-column.pipeline-drop-target{border-color:#171717;background:#e9e9e9}.pipeline-card[draggable=true]{cursor:grab}.pipeline-card.pipeline-dragging{opacity:.45;cursor:grabbing}.pipeline-drag-hint{display:block;font-size:12px;color:#666;margin-bottom:10px}.pipeline-move-label{display:block;font-size:13px;margin:12px 0}.pipeline-move-label select{display:block;width:100%;margin-top:4px}.pipeline-card button,.pipeline-card select{cursor:pointer}#pipeline-content[aria-busy=true] .pipeline-card{cursor:progress}@media(pointer:coarse){.pipeline-drag-hint{display:none}}

.mobile-topbar,.mobile-menu-close,.mobile-menu-backdrop{display:none}
@media(max-width:850px){
 .mobile-topbar{position:sticky;top:0;z-index:12;display:flex;align-items:center;gap:16px;height:60px;padding:8px 16px;background:#fff;border-bottom:1px solid var(--line)}
 .mobile-topbar img{display:block;width:98px;height:41px;object-fit:contain}
 .mobile-menu-button{display:flex;flex-direction:column;justify-content:center;gap:5px;width:44px;height:44px;border:1px solid var(--line);border-radius:6px;background:#fff;padding:11px}
 .mobile-menu-button span{display:block;width:20px;height:2px;background:#161616;border-radius:2px}
 .mobile-menu-close{display:block;position:absolute;top:10px;right:12px;width:44px;height:44px;font-size:30px;line-height:1;border:0;border-radius:5px;background:#f2f2f2;color:#161616}
 #main-sidebar{position:fixed;inset:0 auto 0 0;width:min(320px,calc(100vw - 36px));height:100vh;height:100dvh;padding:24px 16px calc(16px + env(safe-area-inset-bottom,0px));border:0;border-right:1px solid var(--line);z-index:30;overflow-y:auto;overscroll-behavior:contain;transform:translateX(-105%);visibility:hidden;transition:transform .2s ease,visibility .2s;display:flex;flex-direction:column}
 #main-sidebar .brand{display:block;width:155px;margin:0 0 18px;flex-shrink:0}#main-sidebar .brand small{display:none}
 #main-sidebar .workspace{display:none}#main-sidebar .nav-label{display:block;margin:0 8px 10px;font-size:11px;flex-shrink:0}
 #main-sidebar nav{display:grid;grid-template-columns:1fr;overflow:visible;padding:0;gap:5px;flex:0 0 auto;min-height:auto;align-content:start}
 #main-sidebar nav a{min-height:44px;white-space:normal;line-height:1.35;font-size:15px;padding:10px;border-radius:5px;gap:10px}
 #main-sidebar nav a>span{font-size:20px;width:22px;flex-shrink:0}#main-sidebar nav b{display:block}
 #main-sidebar .sidebar-bottom{display:block;padding-top:16px;margin-top:auto;flex:0 0 auto}#main-sidebar .sidebar-bottom .account{padding:14px 0;font-size:13px}#main-sidebar .sidebar-bottom .logout{min-height:44px}
 .mobile-menu-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:20;background:#0007;border:0;padding:0;width:100%;height:100dvh}
 .mobile-menu-open{overflow:hidden}.mobile-menu-open #main-sidebar{transform:translateX(0);visibility:visible}
 .shell{margin-left:0}header{height:auto;min-height:64px;padding:10px 16px}.header-breadcrumb,.header-actions>[data-logout]{display:none}.header-actions{width:100%;margin:0}.header-search{width:100%;max-width:none}
}
@media(prefers-reduced-motion:reduce){#main-sidebar{transition:none}}

.report-delete-button{border:1px solid #b51017;color:#b51017;background:#fff;white-space:normal}.report-delete-button:hover{background:#fff2f2}

.promotions-reader{background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden;min-width:0}.promotions-reader iframe{display:block;width:100%;height:auto;aspect-ratio:210/297;min-height:700px;max-height:1500px;border:0}
@media(max-width:600px){.promotions-heading{flex-direction:column;align-items:stretch}.promotions-heading .button{width:100%}}

.promotion-catalogues{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:14px;margin-bottom:28px}.promotion-catalogue{padding:18px;border:1px solid var(--line);border-radius:7px;background:#fff;text-align:left;min-width:0;overflow-wrap:anywhere}.promotion-catalogue.selected{border:2px solid #161616}.promotion-catalogue>button{display:block;width:100%;text-align:left}.promotion-catalogue strong,.promotion-catalogue small{display:block}.promotion-catalogue small{color:#666;margin-top:8px;font-size:13px}.promotion-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.promotion-catalogue .promotion-actions{margin-top:18px;font-size:13px}.promotion-upload{margin-top:28px}.promotions-heading>h2{overflow-wrap:anywhere;min-width:0}.promotions-heading>.promotion-actions{flex-shrink:0}@media(max-width:850px){.promotions-heading{flex-direction:column;align-items:stretch}.promotions-heading .promotion-actions{align-items:stretch}.promotions-heading .promotion-actions .button{flex:1;white-space:normal}}

@media(max-width:850px){.promotions-reader iframe{min-height:600px}}

.promotion-flipsnack-reader iframe{aspect-ratio:auto;height:clamp(480px,70vh,750px);min-height:0;max-height:none}.promotion-pdf-reader iframe{aspect-ratio:auto;height:clamp(650px,85vh,1000px);min-height:0;max-height:none}@media(max-width:850px){.promotion-flipsnack-reader iframe{height:480px}.promotion-pdf-reader iframe{height:650px}}

.contact-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}.contact-edit-grid label{display:grid;gap:7px;min-width:0;font-size:14px}.contact-edit-grid input{width:100%;min-width:0}.contact-person{border:1px solid var(--line);border-radius:6px;margin:18px 0;padding:14px;min-width:0}.contact-change-history{margin-top:24px}.contact-change-history section{border-top:1px solid var(--line);padding:10px 0}.contact-change-history dd{margin:4px 0 14px;overflow-wrap:anywhere}.contact-change-history dt{font-weight:bold}#contact-edit-form>.button{margin-top:12px;white-space:normal}@media(max-width:600px){.contact-edit-grid{grid-template-columns:minmax(0,1fr)}}

/* Accueil plus compact ; un seul bouton catalogue, conservé dans l’introduction. */
main.dashboard-main{padding-top:20px}.home-intro{padding-top:0;padding-bottom:14px}.home-intro .eyebrow{margin-top:0}.home-workspace{row-gap:20px}.home-intro+.home-banner{margin-top:-6px}
.sales-analysis-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}.sales-analysis-toolbar label,.sales-filter-form label{display:grid;gap:8px;font-size:14px}.sales-analysis-toolbar select,.sales-filter-form select,.sales-filter-form input{padding:10px;border:1px solid #ccc;border-radius:4px;background:white;max-width:100%;min-width:0}.sales-analysis-toolbar p{font-size:14px;color:var(--muted)}.sales-analysis-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:24px}.sales-analysis-kpis article{background:#fff;border:1px solid var(--line);border-radius:6px;padding:18px;min-width:0}.sales-analysis-kpis span{display:block;color:var(--muted);font-size:13px;margin-bottom:12px}.sales-analysis-kpis strong{font-size:23px;overflow-wrap:anywhere}.sales-analysis-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.sales-analysis-panel{min-width:0}.sales-analysis-panel h2{font-size:23px}.sales-table-scroll{overflow-x:auto;max-width:100%}.sales-analysis-table{border-collapse:collapse;width:100%;font-size:14px}.sales-analysis-table th,.sales-analysis-table td{padding:13px 12px;border-bottom:1px solid var(--line);text-align:right;vertical-align:top;white-space:nowrap}.sales-analysis-table th:first-child,.sales-analysis-table td:first-child{text-align:left;white-space:normal;min-width:110px}.sales-analysis-table thead th{background:#f5f5f5;font-weight:600}.sales-analysis-table tbody th{font-weight:500}.sales-analysis-table small{display:block;margin-top:5px;color:var(--muted)}.sales-analysis-panel .muted,.sales-analysis-notes{font-size:14px;line-height:1.7}.sales-analysis-notes{margin:20px 0}.sales-filter-form{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:20px 0}.sales-filter-form label{flex:1;min-width:150px}.sales-analysis-panel .pagination{flex-wrap:wrap;gap:12px}
@media(max-width:700px){main.dashboard-main{padding-top:16px}.home-intro{padding-bottom:12px;gap:12px}.home-workspace{row-gap:18px}.sales-analysis-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-analysis-kpis strong{font-size:21px}.sales-analysis-kpis article{padding:14px}.sales-analysis-tabs .button{white-space:normal;text-align:left}.sales-analysis-panel{padding:16px}.sales-filter-form label{flex-basis:100%}.sales-analysis-toolbar p{margin:0}.sales-analysis-table th,.sales-analysis-table td{padding:12px 8px}}

/* Espacement commun : rapprocher les titres, outils et contenus dans toutes les vues. */
main,main.dashboard-main{padding-top:18px;padding-bottom:20px}
.page-heading{gap:12px;margin-bottom:16px}
.page-heading h1,.home-intro h1{margin:8px 0}
.page-heading h2{margin:0}
.page-heading .eyebrow,.home-intro .eyebrow{margin-top:0}
.panel{padding:18px}
.panel>h2:first-child,.panel>.section-heading:first-child h2{margin-top:0}
.section-heading{gap:12px;margin-bottom:10px}
.stats,.crm-stats,.access-log-summary{margin:16px 0;gap:12px}
.dashboard-grid,.service-grid,.access-grid,.home-secondary-grid{gap:16px}
.home-workspace{row-gap:16px}
.home-intro{gap:16px;padding-bottom:12px}
.home-intro+.home-banner{margin-top:0}
.home-panel,.home-action{padding:20px}
.home-section-title{margin-bottom:12px}
.home-action-icon{margin-bottom:16px}
.home-action p{margin-bottom:18px}
.catalog-banner{margin-bottom:16px}
.catalog-toolbar{margin:16px 0;gap:12px}
.promotion-catalogues{gap:10px;margin-bottom:16px}
.promotion-catalogue{padding:12px 16px}
.promotion-catalogue small{margin-top:5px}
.promotion-catalogue .promotion-actions{margin-top:10px}
.promotions-heading{margin-bottom:12px}
.promotion-upload{margin-top:18px}
.sales-analysis-toolbar,.sales-analysis-kpis,.sales-analysis-tabs{margin-bottom:16px}
.sales-analysis-kpis article{padding:14px}
.sales-analysis-kpis span{margin-bottom:8px}
.sales-filter-form,.sales-analysis-notes{margin:14px 0}
@media(max-width:700px){
 main,main.dashboard-main{padding-top:14px;padding-bottom:16px}
 .page-heading{gap:10px;margin-bottom:14px}
 .panel,.home-panel,.home-action{padding:16px}
 .home-workspace{row-gap:14px}
 .home-intro{gap:12px;padding-bottom:10px}
 .promotion-catalogue{padding:12px}
 .promotion-catalogues,.catalog-banner{margin-bottom:14px}
}

/* Accueil commercial : recherche et produits plutôt qu’une grande bannière. */
.commercial-home .home-intro{align-items:center}.commercial-home .home-intro h1{font-size:32px}.home-search-panel{padding:18px;background:white;border:1px solid var(--line);border-radius:7px}.home-search-panel form>label:first-child{font-size:17px;font-weight:600;display:block;margin-bottom:10px}.home-search-row{display:flex;gap:10px}.home-search-row input{min-width:0;flex:1;padding:13px;border:1px solid #bbb;border-radius:4px}.home-stock-filter{display:flex;align-items:center;gap:8px;margin-top:12px;font-size:14px}.home-stock-filter input{width:18px;height:18px}.home-promotion-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.home-promotion-card{display:grid;gap:8px;text-align:left;background:white;border:1px solid var(--line);border-top:3px solid var(--red);border-radius:6px;padding:14px;min-width:0;overflow-wrap:anywhere}.home-promotion-card>span{font-size:11px;color:var(--muted)}.home-promotion-card strong{font-size:15px}.home-promotion-card small{font-size:12px}.home-promotion-card:hover{border-color:var(--red)}#home-commercial-content{display:grid;gap:22px}.home-products{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.home-products .product-card{display:grid;grid-template-columns:80px minmax(0,1fr);min-width:0}.home-products .product-visual{min-height:130px;height:100%;padding:8px}.home-products .product-visual>span,.home-products .product-visual>small{display:none}.home-products .product-icon{width:64px;height:64px;max-width:100%}.home-products .product-photo{max-height:115px;object-fit:contain}.home-products .product-info{padding:12px;min-width:0}.home-products .product-info h2{font-size:15px;line-height:1.4;margin:6px 0;min-height:0;overflow-wrap:anywhere}.home-products .product-bottom{gap:8px;flex-wrap:wrap;margin-top:12px}.home-products .product-bottom strong{font-size:17px}.home-products .product-bottom small{font-size:11px}.home-products .stock{font-size:11px}.home-products .document-button{font-size:11px}.home-products .add-circle{min-width:44px;min-height:44px}.home-section-empty{background:white;border:1px solid var(--line);padding:14px;margin:0;color:var(--muted);font-size:14px;line-height:1.6;border-radius:5px}.quick-selection{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 18px;border:1px solid #ddd;border-radius:6px;background:#fff;margin-bottom:16px}.quick-selection strong{display:block;font-size:15px}.quick-selection small{display:block;font-size:12px;color:var(--muted);margin-top:6px}.commercial-home .quick-selection{margin-bottom:0}.home-curation{border:1px solid var(--line);padding:16px;background:white;border-radius:6px;font-size:14px;line-height:1.6}.home-curation summary{cursor:pointer;font-weight:600}.home-feature-options .document-row{gap:12px;flex-wrap:wrap}.home-feature-options .button{padding:10px;font-size:12px}.commercial-client-section,.commercial-create-section{margin-top:16px}.commercial-lines{display:grid;gap:10px}.commercial-line{display:grid;grid-template-columns:minmax(0,1fr) 100px 130px;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid var(--line)}.commercial-line strong{font-size:15px;overflow-wrap:anywhere}.commercial-line small{display:block;font-size:12px;margin-top:6px;color:var(--muted)}.commercial-line label{display:grid;gap:6px;font-size:13px;min-width:0}.commercial-line input{width:100%;min-width:0;padding:10px;border:1px solid #ccc;border-radius:4px}.commercial-client-option{display:block;width:100%;padding:12px;text-align:left;border:1px solid var(--line);border-radius:4px;background:white;margin:8px 0;min-height:44px}.commercial-client-option small{display:block;margin-top:5px;color:var(--muted)}.commercial-client-option:hover{border-color:var(--ink)}
@media(max-width:1150px){.home-products{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-selection{align-items:flex-start;flex-direction:column}.home-promotion-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.commercial-home .home-intro h1{font-size:28px!important}.home-search-panel{padding:14px}.home-search-row{flex-wrap:wrap}.home-search-row input{flex-basis:100%}.home-search-row button{width:100%;min-height:44px}.home-promotion-grid,.home-products{grid-template-columns:minmax(0,1fr)}.home-promotion-card{padding:12px}.quick-selection{padding:14px}.quick-selection .crm-actions{width:100%}.quick-selection .button{white-space:normal;min-height:44px;flex:1}.commercial-line{grid-template-columns:1fr 1fr;gap:10px}.commercial-line>div{grid-column:1/-1}.home-feature-options .document-row>div{display:flex;gap:8px;flex-wrap:wrap}}

#home-selection-summary:empty{display:none}.home-products .product-visual>.product-photo{padding:4px;height:120px;max-height:none}.home-products .admin-document-add{display:none}.home-product-tabs{display:flex;gap:8px;flex-wrap:wrap}.home-product-tabs+.home-product-section{margin-top:0}
@media(max-width:600px){.commercial-home .home-intro>div>p:last-child,.commercial-home .home-intro>a{display:none}.commercial-home .home-intro h1{font-size:25px!important}.home-search-row input{flex-basis:auto;width:0}.home-search-row button{width:auto;flex-shrink:0;padding:12px}.home-promotion-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-promotion-card strong{font-size:13px;line-height:1.4}.home-product-tabs .button{padding:11px;font-size:12px;min-height:44px}}

@media(max-width:600px){.shell.home-shell>header{display:none}.commercial-home .quick-selection{gap:10px}.commercial-home .quick-selection small,.commercial-home .quick-selection .crm-actions>a:nth-child(2){display:none}.commercial-home .quick-selection .button{white-space:nowrap;font-size:12px;justify-content:center}}
.commercial-home .home-intro>div>p:last-child{display:none}.home-promotion-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(min-width:701px){#home-search-form{position:relative}.home-stock-filter{position:absolute;right:0;top:0;margin:0}}

.commercial-line{grid-template-columns:minmax(0,1fr) 100px 130px 44px}.commercial-line>.remove{width:44px;height:44px}
@media(max-width:600px){.commercial-line{grid-template-columns:1fr 1fr 44px}.commercial-line>div{grid-column:1/-1}}

#catalog-selection-summary:empty{display:none}#catalog-selection-summary:not(:empty){position:sticky;top:8px;z-index:4}.home-products .product-info h2{font-size:16px}
@media(max-width:600px){.commercial-line input,.commercial-create-section input,.commercial-create-section select,.commercial-create-section textarea,.commercial-client-section input{font-size:16px}#catalog-selection-summary .quick-selection{gap:10px}#catalog-selection-summary .quick-selection small{display:none}}

#toast .toast-action{display:block;margin-top:8px;padding:10px 0;color:#fff;text-decoration:underline;font-weight:600;min-height:44px}

#toast .toast-action{pointer-events:none}#toast.visible .toast-action{pointer-events:auto}

.catalog-banner{max-width:720px;margin-left:auto;margin-right:auto}

.quote-signature-dialog{width:min(860px,94vw);max-height:94dvh;overflow:auto;padding:24px;border:1px solid #ddd;border-radius:12px}.quote-signature-dialog::backdrop{background:#0009}.signature-close{float:right;font-size:28px;border:0;background:#eee;min-width:44px;min-height:44px}.quote-signature-dialog iframe{display:block;width:100%;height:32vh;border:1px solid #ddd;margin:12px 0}.quote-signature-dialog label{display:block;margin:12px 0}.quote-signature-dialog input:not([type=checkbox]){display:block;width:100%;font-size:16px;padding:12px}.quote-signature-dialog .signature-consent{display:flex;align-items:flex-start;gap:12px}.signature-consent input{width:22px;height:22px;flex-shrink:0}.quote-signature-dialog canvas{display:block;width:100%;height:auto;aspect-ratio:5/2;border:2px dashed #888;background:white;touch-action:none;margin:12px 0}.quote-signature-dialog form>.button{margin:6px 0;min-height:44px}[data-client-signed-quotes] details{padding:10px 0;border-bottom:1px solid #ddd}[data-client-signed-quotes] summary{cursor:pointer}@media(max-width:600px){.quote-signature-dialog{padding:16px}.quote-signature-dialog h2{font-size:21px}.quote-signature-dialog form>.button{width:100%;white-space:normal}}

.pipeline-analysis summary{cursor:pointer;font-weight:700;font-size:17px}.pipeline-analysis .visit-metrics strong{display:block;font-size:20px;margin:8px 0}.pipeline-analysis table{min-width:700px}.pipeline-analysis .crm-scroll{max-width:100%}.pipeline-reminders .request-row{flex-wrap:wrap;gap:10px}.pipeline-reminders small{display:block}.pipeline-quote-link{border-bottom:1px solid #ddd;padding-bottom:12px;margin-bottom:16px}.pipeline-quote-link input[type=checkbox]{width:20px;height:20px;vertical-align:middle}.pipeline-analysis h3{margin-top:22px}@media(max-width:600px){.pipeline-reminders .request-row>div{width:100%}.pipeline-reminders button{min-height:44px}.pipeline-quote-link button{white-space:normal}}

.pipeline-overview{grid-template-columns:repeat(3,minmax(0,1fr));margin:12px 0;gap:10px}.pipeline-overview .panel{padding:12px;margin-bottom:0}.pipeline-overview strong{font-size:23px;margin-top:5px}.pipeline-overview small{font-size:12px;line-height:1.4;display:block;margin-top:5px}@media(max-width:900px){.pipeline-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.pipeline-overview strong{font-size:21px}}

/* Compact pipeline cards and synchronized top scrollbar. */
.pipeline-board{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:225px;gap:10px;align-items:start;overflow-x:auto;padding-bottom:12px;overscroll-behavior-x:contain}.pipeline-column{padding:4px;min-height:180px}.pipeline-column h2{font-size:15px;line-height:1.3;min-height:38px;margin:8px 0 12px}.pipeline-column .pipeline-card{padding:12px;margin-bottom:10px;font-size:13px;line-height:1.35}.pipeline-card-heading{display:flex;align-items:flex-start;gap:6px}.pipeline-column .pipeline-card h3{font-size:15px;line-height:1.3;margin:0 0 5px;flex:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.pipeline-card .pipeline-drag-hint{font-size:16px;margin:0;line-height:20px;flex-shrink:0}.pipeline-card-owner{display:block;font-size:11px;color:#747474;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pipeline-card p{margin:7px 0;font-size:12px;line-height:1.35}.pipeline-card-families{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pipeline-card-value{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px;margin:8px 0}.pipeline-card-value>strong{font-size:17px}.pipeline-card-value>span{font-size:11px}.pipeline-card-facts{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:7px 0;border-top:1px solid #eee;border-bottom:1px solid #eee}.pipeline-card-facts span{display:block;font-size:10px;color:#747474}.pipeline-card-facts strong{font-size:12px;font-weight:600}.pipeline-card .pipeline-move-label{font-size:11px;margin:8px 0 6px}.pipeline-card .pipeline-move-label select{font-size:12px;min-height:32px;padding:5px 7px;margin-top:3px}.pipeline-card>.button{font-size:12px;padding:7px 10px;min-height:32px;width:100%}.pipeline-navigation{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:8px;padding:8px 0;background:var(--paper);margin-bottom:4px}.pipeline-navigation>button{border:1px solid #ccc;border-radius:5px;min-width:36px;min-height:36px;background:#fff;font-size:20px}.pipeline-top-scroll{flex:1;min-width:0;height:22px;overflow-x:scroll;overflow-y:hidden;scrollbar-color:#777 #e2e2e2;scrollbar-width:auto}.pipeline-top-scroll>div{height:1px}.pipeline-top-scroll::-webkit-scrollbar{height:14px}.pipeline-top-scroll::-webkit-scrollbar-track{background:#e2e2e2;border-radius:8px}.pipeline-top-scroll::-webkit-scrollbar-thumb{background:#777;border-radius:8px;border:2px solid #e2e2e2}@media(max-width:700px){.pipeline-board{grid-template-columns:none;grid-auto-columns:min(80vw,250px);overflow-x:auto}.pipeline-column:not(:has(article)){display:block}.pipeline-column h2{min-height:38px}.pipeline-card .pipeline-move-label select,.pipeline-card>.button{min-height:44px;font-size:14px}.pipeline-navigation>button{min-width:44px;min-height:44px}.pipeline-top-scroll{height:28px}}
#modal:has(#pipeline-form){width:min(1080px,calc(100vw - 32px));max-width:1080px;padding:28px;max-height:94dvh}#pipeline-form>.form-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px;align-items:start}#pipeline-form>.form-fields>label{min-width:0;margin:0}#pipeline-form>.form-fields>fieldset,#pipeline-form>.form-fields>p,#pipeline-form>.form-fields>details,#pipeline-form>.form-fields>label:has(textarea){grid-column:1/-1}#pipeline-form .report-motives>div{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 18px}#pipeline-form .report-motives{margin:0;padding:16px}#pipeline-form .report-motives label{font-size:14px}#pipeline-form .pipeline-quote-link{padding-bottom:18px;margin-bottom:20px}#pipeline-form .pipeline-quote-link>label{display:block;margin:10px 0}#pipeline-form>.button{margin-top:20px;min-height:44px}@media(max-width:700px){#modal:has(#pipeline-form){width:calc(100vw - 20px);padding:20px 16px;max-height:94dvh}#pipeline-form>.form-fields{grid-template-columns:minmax(0,1fr);gap:14px}#pipeline-form .report-motives>div{grid-template-columns:minmax(0,1fr)}#pipeline-form .report-motives{padding:12px}#pipeline-form input,#pipeline-form select,#pipeline-form textarea{font-size:16px}}
#modal:has(#visit-report-form){width:min(1080px,calc(100vw - 32px));max-width:1080px;padding:28px;max-height:94dvh}#visit-report-form .report-motives>div{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 20px}#visit-report-form .report-motives label{font-size:14px}#visit-report-form .report-tools{display:flex;flex-wrap:wrap;gap:10px}#visit-report-form textarea[name=note]{min-height:170px}@media(min-width:701px) and (max-width:950px){#visit-report-form .report-motives>div{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){#modal:has(#visit-report-form){width:calc(100vw - 20px);padding:20px 16px;max-height:94dvh}#visit-report-form .report-motives>div{grid-template-columns:minmax(0,1fr)}#visit-report-form input,#visit-report-form select,#visit-report-form textarea{font-size:16px}#visit-report-form .report-tools>.button{white-space:normal;min-height:44px}}

#modal:has(#visit-quote-form){width:min(900px,calc(100vw - 32px));max-width:900px;max-height:94dvh}.visit-quote-catalogue{padding-bottom:16px;border-bottom:1px solid #ddd;margin-bottom:20px}.visit-quote-search-row{display:flex;gap:10px;margin:8px 0}.visit-quote-search-row input{flex:1;min-width:0}.visit-quote-products{max-height:320px;overflow:auto;border:1px solid #ddd;border-radius:6px}.visit-quote-product{display:flex;align-items:center;gap:12px;padding:12px;border-bottom:1px solid #eee}.visit-quote-product>div{flex:1;min-width:0}.visit-quote-product strong{font-size:14px;overflow-wrap:anywhere}.visit-quote-product small{display:block;font-size:12px;color:#666;margin-top:6px}.visit-quote-product button{flex-shrink:0;min-height:44px}#visit-quote-selection{overflow-wrap:anywhere}@media(max-width:600px){#modal:has(#visit-quote-form){width:calc(100vw - 20px);padding:20px 16px}.visit-quote-search-row{flex-wrap:wrap}.visit-quote-search-row input{width:100%;flex-basis:100%;font-size:16px}.visit-quote-product{flex-wrap:wrap}.visit-quote-product>div{flex-basis:100%}.visit-quote-products{max-height:40vh}}

#modal:has(.product-details){width:min(850px,calc(100vw - 32px));max-width:850px}.product-details li{margin:10px 0;line-height:1.5}.product-details>p{overflow-wrap:anywhere}.product-details .button{white-space:normal}.product-details-source{margin-top:22px;padding-top:12px;border-top:1px solid #ddd}.product-details-source p{font-size:13px;line-height:1.6;color:#666}.product-details-reserve{padding:12px;background:#fff4d6;border-radius:5px}@media(max-width:600px){#modal:has(.product-details){width:calc(100vw - 20px);padding:20px 16px}.product-details h2{font-size:22px}}

.visit-quote-line-section{margin:24px 0}.visit-quote-line{padding:14px;border:1px solid #ddd;border-radius:6px;margin:12px 0}.visit-quote-line-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.visit-quote-line>p{font-size:14px;margin:8px 0 14px}.visit-quote-line-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.visit-quote-line label{font-size:14px;min-width:0}.visit-quote-line input,.visit-quote-line select,.visit-quote-line textarea{display:block;width:100%;font-size:16px;margin-top:6px}.visit-quote-free-fields{display:grid;grid-template-columns:1fr 2fr;gap:12px;margin:12px 0}.visit-quote-line .text-button{min-height:44px}@media(max-width:600px){.visit-quote-line-fields{grid-template-columns:1fr 1fr}.visit-quote-free-fields{grid-template-columns:1fr}}

.quote-pipeline-option{border:1px solid #ddd;border-radius:6px;padding:14px;margin:20px 0;min-width:0}.quote-pipeline-option>label:first-child{display:flex;align-items:flex-start;gap:10px;font-weight:600}.quote-pipeline-option input[type=checkbox]{width:20px;height:20px;flex-shrink:0;margin:0}.quote-pipeline-option p{font-size:13px;line-height:1.5}.quote-pipeline-option [data-pipeline-owner]{font-size:14px}.quote-pipeline-option select{display:block;width:100%;margin:8px 0}.quote-pipeline-option small{display:block;line-height:1.5}#pipeline-form>.form-fields>.quote-pipeline-option{grid-column:1/-1}
.report-other-opportunity{margin:0 16px 16px;display:block}.report-other-opportunity[hidden],[data-pipeline-other][hidden]{display:none}.report-other-opportunity input{display:block;width:100%;margin-top:8px;font-size:16px}#pipeline-form [data-pipeline-other]{grid-column:1/-1}

.visit-quote-product>div{min-width:0;flex:1}.visit-quote-article summary{cursor:pointer;min-height:44px;padding:10px 0;overflow-wrap:anywhere}.visit-quote-article summary:hover{color:var(--red,#d71920)}.visit-quote-article-details{padding:12px;background:#f7f7f7;border-radius:6px;overflow-wrap:anywhere}.visit-quote-article-details img{display:block;max-width:100%;width:180px;height:160px;object-fit:contain}.visit-quote-article-details h4{margin:0 0 10px}.visit-quote-article-details p{margin:10px 0}

#main-sidebar .brand{width:210px;max-width:100%}#main-sidebar .brand small{display:block;font-size:8px;letter-spacing:0;line-height:1.4;white-space:nowrap;margin-top:6px}@media(min-width:601px) and (max-width:850px){#main-sidebar .brand small{font-size:6px}}

#modal:has(.visit-client-card){width:min(1080px,calc(100vw - 32px));max-width:1080px;max-height:94dvh;padding:28px}.visit-client-card p{overflow-wrap:anywhere}.visit-client-card .visit-actions{flex-wrap:wrap}@media(max-width:700px){#modal:has(.visit-client-card){width:calc(100vw - 20px);padding:20px 16px}.visit-client-card .button{white-space:normal}}

.report-pipeline-choice{display:flex;align-items:center;gap:10px;margin-top:20px;font-weight:600}.report-pipeline-choice input{width:20px;height:20px;flex-shrink:0}

.pipeline-delete{color:#b71c1c;border-color:#b71c1c;white-space:normal}

#visit-report-form textarea[name=note]{min-height:110px;resize:vertical}.report-tools-group .report-tools{margin:0}.report-tools-group .report-help{margin:8px 0 0}.report-tools-group .report-live{margin:8px 0 0}.report-tools-group .report-live:empty{min-height:0;margin:0}.report-tools-group .report-ai-preview:empty{display:none}

#commercial-quote-history .request-row{display:grid;grid-template-columns:minmax(0,1fr) 220px 64px;align-items:center;gap:16px}#commercial-quote-history .request-row>div{overflow-wrap:anywhere}#commercial-quote-history .request-row>[data-sign-quote],#commercial-quote-history .request-row>a{width:100%;justify-self:stretch}@media(max-width:600px){#commercial-quote-history .request-row{grid-template-columns:minmax(0,1fr) 64px;gap:12px}#commercial-quote-history .request-row>div{grid-column:1/-1}#commercial-quote-history .request-row>[data-sign-quote]{white-space:normal}}

.quote-delete-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}.quote-delete-toolbar label{display:flex;align-items:center;gap:8px;font-size:14px}.quote-delete-toolbar input,.quote-select input{width:18px;height:18px}.quote-delete-toolbar .form-error{flex-basis:100%;margin:0}.quote-delete-toolbar .form-error:empty{display:none}.quote-select{display:inline-flex;align-items:center;padding:8px 8px 8px 0;vertical-align:middle}.quote-delete-button{color:#b71c1c;border-color:#b71c1c}#commercial-quote-history .request-row:has([data-quote-delete]){grid-template-columns:minmax(0,1fr) 220px 64px 100px}@media(max-width:700px){#commercial-quote-history .request-row:has([data-quote-delete]){grid-template-columns:minmax(0,1fr) 64px}#commercial-quote-history .request-row:has([data-quote-delete])>div{grid-column:1/-1}#commercial-quote-history .request-row>[data-quote-delete]{grid-column:1/-1;justify-self:end}#commercial-quote-history .request-row>[data-sign-quote]{white-space:normal}.quote-delete-toolbar .button{white-space:normal}}

.product-promotion{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:8px 0;line-height:1.5;font-size:13px}.product-promotion>strong{font-size:13px}.product-promotion>small{flex-basis:100%;font-size:12px;color:#666}.promotion-active>strong{color:#e30613}.promotion-active>small{color:#e30613}.promotion-inactive{color:#666}.product-promotion del{color:#777;font-size:13px}.product-promotion>small{overflow-wrap:anywhere}

.catalog-toolbar:has([data-catalog-reset]){flex-wrap:wrap}.catalog-reset{flex-shrink:0;min-height:44px}@media(max-width:600px){.catalog-reset{align-self:flex-start}}

.barcode-dialog{width:min(560px,calc(100vw - 28px));max-width:560px;max-height:90dvh;box-sizing:border-box;padding:28px;overflow-y:auto;border:0;border-radius:10px}.barcode-dialog::backdrop{background:rgb(0 0 0 / .55)}.barcode-dialog video{display:block;width:100%;max-height:300px;object-fit:cover;background:#111;border-radius:6px;margin-bottom:12px}.barcode-dialog video[hidden]{display:none}.barcode-form{display:flex;align-items:end;gap:10px;margin-top:16px}.barcode-form label{flex:1;min-width:0}.barcode-form input{width:100%;box-sizing:border-box}.barcode-dialog [data-scan-results] article{border-top:1px solid #ddd;padding:16px 0}.product-details dl{display:grid;grid-template-columns:minmax(100px,1fr) 2fr;gap:8px 16px}.product-details dd{margin:0;overflow-wrap:anywhere}.product-details dt{font-weight:600}@media(max-width:480px){.barcode-dialog{padding:22px 16px}.barcode-form{flex-wrap:wrap}.barcode-form label{flex-basis:100%}}

.commercial-line{grid-template-columns:minmax(0,1fr) 90px 120px 100px 44px}.commercial-line input{box-sizing:border-box}.commercial-client-section+.panel{margin-top:16px}@media(max-width:900px){.commercial-line{grid-template-columns:repeat(3,minmax(0,1fr)) 44px}.commercial-line>div{grid-column:1/-1}}@media(max-width:480px){.commercial-line{grid-template-columns:repeat(2,minmax(0,1fr)) 44px}.commercial-line>label:nth-of-type(3){grid-column:1/3}.commercial-line>.remove{grid-column:3;grid-row:3}}

.product-facts{display:grid;gap:7px;margin:10px 0 12px;min-width:0}.product-facts>.stock{justify-self:start;max-width:100%;white-space:normal;line-height:1.5}.product-facts-details{display:flex;flex-wrap:wrap;gap:4px 14px;min-width:0;line-height:1.5}.product-facts-details small{display:block;margin:0;min-width:0;overflow-wrap:anywhere}

.quote-line-promo{display:block;color:var(--red);font-size:12px;line-height:1.5;margin:6px 0;overflow-wrap:anywhere}.quote-line-promo strong{font-size:inherit}.commercial-line input[readonly],.visit-quote-line input[readonly]{background:#f3f3f3;color:#666;cursor:not-allowed}

/* Dense opportunity overview; forecasts remain available on demand. */
.pipeline-column .pipeline-card{padding:9px;margin-bottom:7px;line-height:1.2}
.pipeline-column .pipeline-card h3{font-size:14px;-webkit-line-clamp:1;margin-bottom:3px}
.pipeline-card p{margin:4px 0;font-size:11px}
.pipeline-card-value{margin:5px 0}.pipeline-card-value>strong{font-size:15px}
.pipeline-card-extra{margin:4px 0;font-size:11px}.pipeline-card-extra summary{cursor:pointer;color:#666}
.pipeline-card .pipeline-move-label{margin:5px 0}.pipeline-card .pipeline-move-label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.pipeline-card .pipeline-move-label select{margin:0;min-height:28px;padding:3px 6px}
.pipeline-card>.button{min-height:28px;padding:4px 7px;font-size:11px}
@media(pointer:coarse){.pipeline-card .pipeline-move-label select,.pipeline-card>.button{min-height:44px}}

/* Explicit promotion marker in quote lines, including narrow screens. */
.quote-line-promo{display:flex!important;align-items:center;flex-wrap:wrap;gap:6px 9px;color:#e30613!important;font-size:13px!important;margin-top:8px!important}
.quote-line-promo .quote-promo-badge{display:inline-block;background:#e30613;color:#fff;border-radius:4px;padding:3px 8px;font-size:12px;font-weight:700;letter-spacing:.04em;line-height:1.4}
.quote-line-promo>span{display:inline;color:#e30613}

.commercial-article-tools{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin:16px 0}.commercial-article-tools>label{flex:1;min-width:200px}.commercial-article-tools input{display:block;width:100%;margin-top:6px}.commercial-article-result{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #eee}.commercial-article-result>div{min-width:0;overflow-wrap:anywhere}.commercial-article-result small{display:block;color:#666;margin-top:4px}.commercial-article-result>button{flex-shrink:0}@media(max-width:600px){.commercial-article-tools>label{flex-basis:100%}.commercial-article-result{align-items:flex-start;flex-direction:column}}

/* Compact prepared-quote list with aligned actions. */
#commercial-quote-history .request-row{padding:7px 0;gap:8px;grid-template-columns:minmax(0,1fr) 200px 48px}
#commercial-quote-history .request-row:has([data-quote-delete]){grid-template-columns:minmax(0,1fr) 200px 48px 86px}
#commercial-quote-history .request-row small{margin-top:2px;line-height:1.3;font-size:11px}
#commercial-quote-history .request-row>.button{min-height:32px;padding:6px 9px;font-size:12px}
#commercial-quote-history .quote-select{padding:2px 6px 2px 0}
#commercial-quote-history .quote-select input{margin:0}
@media(max-width:700px){
 #commercial-quote-history .request-row,#commercial-quote-history .request-row:has([data-quote-delete]){grid-template-columns:minmax(0,1fr) 48px auto;gap:6px;padding:8px 0}
 #commercial-quote-history .request-row>div{grid-column:1/-1}
 #commercial-quote-history .request-row>.button{min-height:44px;padding:6px 8px}
 #commercial-quote-history .request-row>[data-quote-delete]{grid-column:auto;justify-self:stretch}
}

.product-details-photo{display:block;max-width:100%;width:260px;height:200px;object-fit:contain;margin:12px 0}

.product-description{max-width:85ch;margin:12px 0 20px;overflow-wrap:anywhere;font-size:15px;line-height:1.65}
.product-description p{margin:0 0 10px;line-height:inherit}
.product-description h4{font-size:14px;line-height:1.4;font-weight:700;margin:18px 0 6px;color:var(--ink)}
.product-description ul{margin:6px 0 12px;padding-left:22px}.product-description li{margin:4px 0}
.product-details .product-details-photo{width:auto;height:auto;max-width:100%;max-height:180px;margin:12px 0;object-fit:contain}
@media(max-width:600px){.product-description{font-size:14px;line-height:1.55}}

.product-photo-upload{padding:12px;border:1px solid var(--line);border-radius:6px;margin:12px 0;font-size:14px}.product-photo-upload label,.product-photo-upload small{display:block;margin-bottom:8px}.product-photo-upload input{display:block;margin-top:6px;max-width:100%}.product-photo-upload [data-photo-preview]{max-width:100%;width:auto;height:auto;max-height:160px;margin:8px 0}.product-photo-upload [data-photo-preview][hidden]{display:none}.product-photo-upload p:empty{display:none}

.product-prices{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 14px;min-width:0;line-height:1.4}
.product-prices strong{white-space:nowrap}.product-prices .product-price-ttc{color:#16723d;font-size:16px;font-weight:700}
.product-bottom>.product-prices{flex:1}.product-bottom>.add-circle{flex-shrink:0}
.product-details>.product-prices{margin:10px 0 14px}.product-details>.product-prices .product-price-ht{font-size:20px}.product-details>.product-prices .product-price-ttc{font-size:18px}
@media(max-width:600px){.product-bottom .product-price-ht{font-size:18px}.product-bottom .product-price-ttc{font-size:15px}.product-prices{gap:6px 10px}}

/* Dense catalogue cards; retain the separate compact home layout. */
:is(#product-grid,.compact-products){grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:12px;align-items:start}
:is(#product-grid,.compact-products) .product-visual,:is(#product-grid,.compact-products) .product-visual.has-photo{height:135px}
:is(#product-grid,.compact-products) .product-visual>span{top:7px;left:8px;max-width:calc(100% - 16px);padding:2px 5px;font-size:10px;line-height:1.25;max-height:30px}
:is(#product-grid,.compact-products) .product-visual>.product-photo{padding:34px 10px 7px}
:is(#product-grid,.compact-products) .product-visual>.product-icon{width:70px;height:70px}
:is(#product-grid,.compact-products) .product-info{padding:10px 12px}
:is(#product-grid,.compact-products) .product-info>small{font-size:11px;line-height:1.3}
:is(#product-grid,.compact-products) .product-info h2{font-size:15px;line-height:1.3;min-height:0;margin:6px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
:is(#product-grid,.compact-products) .product-facts{gap:3px;margin:6px 0}
:is(#product-grid,.compact-products) .product-facts>.stock{font-size:12px;line-height:1.3}
:is(#product-grid,.compact-products) .product-facts-details{gap:2px 8px;line-height:1.3;font-size:11px}
:is(#product-grid,.compact-products) .product-facts-details small{font-size:11px}
:is(#product-grid,.compact-products) .product-promotion{margin:5px 0;gap:2px 6px;line-height:1.3;font-size:12px}
:is(#product-grid,.compact-products) .product-promotion>strong,:is(#product-grid,.compact-products) .product-promotion del{font-size:12px}
:is(#product-grid,.compact-products) .product-promotion>small{font-size:11px}
:is(#product-grid,.compact-products) .document-button{font-size:12px;line-height:1.3;padding:5px 0}
:is(#product-grid,.compact-products) .product-bottom{margin-top:8px;padding-top:8px;gap:6px}
:is(#product-grid,.compact-products) .product-price-ht{font-size:17px}
:is(#product-grid,.compact-products) .product-price-ttc{font-size:14px}
:is(#product-grid,.compact-products) .product-prices{gap:3px 8px}
:is(#product-grid,.compact-products) .add-circle{width:32px;height:32px;font-size:25px}
@media(pointer:coarse){:is(#product-grid,.compact-products) .document-button{min-height:44px;display:flex;align-items:center}:is(#product-grid,.compact-products) .add-circle{width:44px;height:44px}}
@media(max-width:600px){:is(#product-grid,.compact-products){grid-template-columns:1fr;gap:10px}:is(#product-grid,.compact-products) .product-visual,:is(#product-grid,.compact-products) .product-visual.has-photo{height:125px}}

/* Reversible simplified catalogue presentation. */
.catalog-meta{flex-wrap:wrap;gap:10px}
.catalog-view-switch{display:flex;gap:4px;flex-wrap:wrap}
.catalog-view-switch button{border:1px solid var(--line);border-radius:5px;background:#fff;color:#555;font-size:12px;padding:7px 10px;min-height:34px}
.catalog-view-switch button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:#fff}
.product-card-open{display:none}
:is(#product-grid,.compact-products)[data-presentation=visual] .product-card{position:relative;transition:box-shadow .15s,border-color .15s}
:is(#product-grid,.compact-products)[data-presentation=visual] .product-card:hover{border-color:#aaa;box-shadow:0 3px 12px #00000010}
:is(#product-grid,.compact-products)[data-presentation=visual] .product-card-open{display:block;position:absolute;inset:0;z-index:1;width:100%;height:100%;padding:0;border:0;background:transparent;border-radius:5px;cursor:pointer}
:is(#product-grid,.compact-products)[data-presentation=visual] .product-card-open:focus-visible{outline-offset:-3px}
:is(#product-grid,.compact-products)[data-presentation=visual] .product-visual,:is(#product-grid,.compact-products)[data-presentation=visual] .product-visual.has-photo{height:220px;background:#fff}
:is(#product-grid,.compact-products)[data-presentation=visual] .product-visual>.product-photo{padding:12px;height:100%;max-height:none}
:is(#product-grid,.compact-products)[data-presentation=visual] .product-visual>.product-icon{width:100px;height:100px}
:is(#product-grid,.compact-products)[data-presentation=visual] .product-supplier-ref,:is(#product-grid,.compact-products)[data-presentation=visual] .product-visual>span,:is(#product-grid,.compact-products)[data-presentation=visual] .product-visual>small,:is(#product-grid,.compact-products)[data-presentation=visual] .product-facts,:is(#product-grid,.compact-products)[data-presentation=visual] .product-promotion,:is(#product-grid,.compact-products)[data-presentation=visual] .document-button{display:none}
:is(#product-grid,.compact-products)[data-presentation=visual] .product-info{padding:10px 14px 14px}
:is(#product-grid,.compact-products)[data-presentation=visual] .product-info>small{font-size:12px;font-weight:600;color:#555}
:is(#product-grid,.compact-products)[data-presentation=visual] .product-info h2{min-height:39px;margin:7px 0 10px}
:is(#product-grid,.compact-products)[data-presentation=visual] .product-bottom{border:0;padding-top:0;margin-top:0}
:is(#product-grid,.compact-products)[data-presentation=visual] .product-prices{gap:4px 12px}
.product-details-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:10px 0}
.product-details-actions .document-button{padding:7px 0}
@media(pointer:coarse){.catalog-view-switch button{min-height:44px}}
@media(max-width:600px){:is(#product-grid,.compact-products)[data-presentation=visual] .product-visual,:is(#product-grid,.compact-products)[data-presentation=visual] .product-visual.has-photo{height:210px}.catalog-meta>.catalog-view-switch{max-width:none;text-align:left}}

:is(#product-grid,.compact-products) .add-circle{color:var(--red);border-color:var(--red);font-weight:800}
:is(#product-grid,.compact-products)[data-presentation=visual] .add-circle{display:inline-flex;position:relative;z-index:2;align-items:center;justify-content:center;width:40px;height:40px;background:#fff;font-size:30px;line-height:1}
:is(#product-grid,.compact-products) .add-circle:hover{background:#fff1f1}
@media(pointer:coarse){:is(#product-grid,.compact-products)[data-presentation=visual] .add-circle{width:44px;height:44px}}

/* Scroll article content while keeping the close control in view. */
#modal[open]:has(.product-details){display:flex;flex-direction:column;padding:0;overflow:hidden;max-height:94dvh}
#modal[open]:has(.product-details)>#modal-content{overflow-y:auto;min-height:0;padding:50px 28px 24px;overscroll-behavior:contain;scroll-padding-top:52px}
#modal[open]:has(.product-details)::before{content:"";position:absolute;top:0;left:0;right:0;height:50px;background:#fff;z-index:4;pointer-events:none;border-radius:8px 8px 0 0}
#modal[open]:has(.product-details)>.dialog-close{position:absolute;top:5px;right:10px;z-index:5;display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;line-height:1;background:#fff;border:1px solid var(--line);border-radius:50%;color:#555;font-size:28px}
#modal[open]:has(.product-details)>.dialog-close:hover{background:#f3f3f3;color:var(--ink)}
.product-details-footer{display:flex;justify-content:flex-end;border-top:1px solid var(--line);margin-top:18px;padding-top:12px}
.product-details-footer button{min-height:44px;min-width:100px}
@media(max-width:600px){#modal[open]:has(.product-details)>#modal-content{padding:52px 16px 16px}#modal[open]:has(.product-details)>.dialog-close{width:44px;height:44px;top:3px;right:6px}.product-details-footer button{width:100%}}

.product-details [data-direction-figures]{margin:18px 0}



.product-details .product-features-title,.visit-quote-article-details .product-features-title{font-family:inherit;font-size:13px;font-weight:600;line-height:1.3;margin:16px 0 8px}

.product-figures-menu>summary{list-style:none;cursor:pointer;margin-bottom:0}
.product-figures-menu>summary::-webkit-details-marker{display:none}
.product-figures-menu>summary::after{content:"▾";font-size:inherit}
.product-figures-menu[open]>summary::after{content:"▴"}
.product-figures-menu>summary:focus-visible{outline:3px solid var(--red);outline-offset:3px}
.product-figures-content{padding-top:12px}

/* Fiche complète après lecture du Gencod. */
.barcode-dialog [data-scan-close]{position:sticky;top:0;z-index:3;display:block;margin-left:auto;background:#fff;border:1px solid #ddd;border-radius:50%;width:40px;height:40px;color:#333}
.barcode-dialog [hidden]{display:none!important}
.scan-product-title{font-size:22px;margin:12px 0}.scan-product-photo{display:block;width:100%;height:220px;object-fit:contain;margin:16px 0}.scan-sheet-links{display:flex;flex-wrap:wrap;gap:8px}.scan-product-add{display:flex;align-items:end;gap:12px;border-top:1px solid #ddd;margin-top:20px;padding-top:16px}.scan-product-add label{flex:1;min-width:0}.scan-product-add input{display:block;width:100%;box-sizing:border-box;margin-top:6px;min-height:44px}.barcode-dialog [data-scan-select]{display:block;margin-top:10px}.barcode-dialog .product-details dl{grid-template-columns:minmax(100px,1fr) 1.3fr;font-size:14px}.barcode-dialog .product-details{overflow-wrap:anywhere}@media(max-width:360px){.scan-product-add{flex-wrap:wrap}.scan-product-add label{flex-basis:100%}}

.quote-pdf-options{border:1px solid #ddd;border-radius:6px;padding:12px;margin:16px 0;display:flex;flex-wrap:wrap;gap:12px 20px}.quote-pdf-options label{display:flex;align-items:center;gap:8px;font-size:14px}.quote-pdf-options input{width:auto;margin:0}

/* Signature : utiliser toute la surface disponible pour lire et signer. */
.quote-signature-dialog{width:calc(100vw - 16px);max-width:none;height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);padding:20px 24px;margin:auto}
.quote-signature-dialog h2{margin:8px 48px 12px 0}.quote-signature-dialog .signature-close{position:sticky;top:0;z-index:5;border-radius:50%;background:#fff;border:1px solid #ddd}
.signature-workspace{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);gap:24px;align-items:start;margin-top:12px}
.quote-signature-dialog .signature-workspace iframe{height:calc(100dvh - 220px);min-height:360px;margin:0}
.signature-workspace form{min-width:0}.signature-workspace form>label:first-child{margin-top:0}
@media(max-width:800px){.quote-signature-dialog{width:calc(100vw - 8px);height:calc(100dvh - 8px);max-height:calc(100dvh - 8px);padding:12px}.signature-workspace{grid-template-columns:minmax(0,1fr);gap:16px}.quote-signature-dialog .signature-workspace iframe{height:55dvh;min-height:260px}.quote-signature-dialog canvas{max-height:none}}

.quote-pdf-options{background:#fff8f8;border:1px solid #e9b8bb;border-left:4px solid var(--red);padding:16px}.quote-pdf-options legend{font-weight:700;color:var(--red);padding:0 6px}.quote-pdf-options-help{flex-basis:100%;margin:0;font-size:14px}.quote-pdf-options label{font-weight:600;cursor:pointer}.quote-pdf-options input{width:20px;height:20px;accent-color:var(--red);flex-shrink:0}

.quote-email-help{display:block;flex-basis:100%;font-size:13px;line-height:1.5;color:var(--muted)}

.commercial-article-filters{display:flex;flex-wrap:wrap;align-items:end;gap:10px;flex-basis:100%}.commercial-article-filters>label{flex:1;min-width:160px;font-size:13px}.commercial-article-filters select{display:block;width:100%;margin-top:5px}.commercial-article-filters .commercial-stock-filter{display:flex;align-items:center;gap:8px;flex:0 1 auto;min-height:44px}.commercial-stock-filter input{width:18px;height:18px;margin:0}.commercial-result-nav,.commercial-result-nav>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.commercial-result-nav{margin:12px 0;font-size:13px}.commercial-result-nav button{padding:8px 12px;min-width:40px}.commercial-article-result .commercial-article-thumb{width:64px;height:64px;object-fit:contain;flex-shrink:0}.commercial-no-photo{display:flex;align-items:center;justify-content:center;color:#999;background:#fafafa;font-size:32px}.commercial-article-description{flex:1}.commercial-result-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.commercial-promo-state{font-size:12px;white-space:nowrap;color:#666}.commercial-promo-state.is-promo{background:var(--red);color:#fff;font-weight:700;padding:4px 8px;border-radius:4px}@media(max-width:600px){.commercial-article-result{display:grid;grid-template-columns:52px minmax(0,1fr);gap:10px}.commercial-article-result .commercial-article-thumb{width:52px;height:52px}.commercial-article-result>button{grid-column:2;justify-self:start}.commercial-result-heading{align-items:start;gap:6px}.commercial-result-heading strong{font-size:13px}.commercial-result-nav{flex-wrap:wrap}.commercial-article-filters>label{min-width:130px}}

/* Essai réversible : articles en ligne, deux blocs par rangée. */
:is(#product-grid,.compact-products)[data-presentation=line]{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
:is(#product-grid,.compact-products)[data-presentation=line] .product-card{display:flex;align-items:center;position:relative;min-width:0;padding:10px;gap:12px}
:is(#product-grid,.compact-products)[data-presentation=line] .product-card:hover{border-color:#aaa;box-shadow:0 3px 12px #00000010}
:is(#product-grid,.compact-products)[data-presentation=line] .product-card-open{display:block;position:absolute;inset:0;z-index:1;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:pointer;border-radius:5px}
:is(#product-grid,.compact-products)[data-presentation=line] .product-card-open:focus-visible{outline-offset:-3px}
:is(#product-grid,.compact-products)[data-presentation=line] .product-visual{height:88px;width:88px;flex:0 0 88px;background:#fff;margin:0}
:is(#product-grid,.compact-products)[data-presentation=line] .product-visual>.product-photo{padding:3px}
:is(#product-grid,.compact-products)[data-presentation=line] .product-visual>.product-icon{width:48px;height:48px}
:is(#product-grid,.compact-products)[data-presentation=line] .product-info{min-width:0;flex:1;padding:0}
:is(#product-grid,.compact-products)[data-presentation=line] .product-info>small{font-size:12px;color:#444;font-weight:600}
:is(#product-grid,.compact-products)[data-presentation=line] .product-info h2{font-size:14px;line-height:1.35;margin:4px 0;min-height:0}
:is(#product-grid,.compact-products)[data-presentation=line] .product-supplier-ref,:is(#product-grid,.compact-products)[data-presentation=line] .product-visual>span,:is(#product-grid,.compact-products)[data-presentation=line] .product-visual>small,:is(#product-grid,.compact-products)[data-presentation=line] .product-facts-details,:is(#product-grid,.compact-products)[data-presentation=line] .product-promotion,:is(#product-grid,.compact-products)[data-presentation=line] .document-button,:is(#product-grid,.compact-products)[data-presentation=line] .product-price-ht{display:none}
.line-price-fallback{display:none}:is(#product-grid,.compact-products)[data-presentation=line] .line-price-fallback{display:block;font-size:14px;font-weight:600;color:#555}
:is(#product-grid,.compact-products)[data-presentation=line] .product-facts{margin:4px 0}
:is(#product-grid,.compact-products)[data-presentation=line] .product-bottom{border:0;margin:4px 0 0;padding:0;gap:8px}
:is(#product-grid,.compact-products)[data-presentation=line] .product-price-ttc{font-size:17px}
:is(#product-grid,.compact-products)[data-presentation=line] .add-circle{position:relative;z-index:2;flex-shrink:0;background:#fff;display:inline-flex;align-items:center;justify-content:center}
.catalog-view-switch{flex-wrap:wrap}
@media(max-width:600px){:is(#product-grid,.compact-products)[data-presentation=line]{grid-template-columns:1fr}:is(#product-grid,.compact-products)[data-presentation=line] .product-visual{width:72px;height:72px;flex-basis:72px}.catalog-meta{flex-wrap:wrap;gap:10px}}

:is(#product-grid,.compact-products)[data-presentation=line] .product-price-ht{display:block;font-size:16px}
:is(#product-grid,.compact-products)[data-presentation=line] .product-prices{flex-wrap:wrap;gap:4px 10px}
:is(#product-grid,.compact-products)[data-presentation=line] .product-promotion.promotion-active{display:flex;flex-wrap:wrap;gap:3px 8px;margin:5px 0;font-size:12px}
:is(#product-grid,.compact-products)[data-presentation=line] .promotion-active>strong{background:#e30613;color:#fff;border-radius:4px;padding:3px 6px;font-size:12px}
:is(#product-grid,.compact-products)[data-presentation=line] .promotion-active>small{flex-basis:100%;font-size:11px}

.product-edit-dialog{width:min(1100px,calc(100vw - 20px));max-width:none;max-height:calc(100dvh - 20px);overflow:auto;padding:24px}.product-edit-close{position:sticky;top:0;float:right;z-index:2;background:#fff;border:1px solid #ddd;border-radius:50%;width:44px;height:44px;font-size:26px}.product-edit-dialog fieldset{border:1px solid #ddd;border-radius:6px;padding:16px;margin:16px 0}.product-edit-dialog legend{font-weight:700;color:var(--red);padding:0 6px}.product-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product-edit-dialog label{display:block;font-size:14px;margin:6px 0}.product-edit-dialog input:not([type=checkbox]),.product-edit-dialog textarea,.product-edit-dialog select{display:block;width:100%;margin-top:5px;font-size:16px;min-height:42px}.product-edit-dialog output{display:block;padding:12px 0;font-weight:700}.product-edit-dialog .product-edit-check{display:flex;align-items:center;gap:8px}.product-edit-actions{position:sticky;bottom:0;background:white;border-top:1px solid #ddd;padding:12px 0;display:flex;justify-content:flex-end;gap:10px}@media(max-width:600px){.product-edit-grid{grid-template-columns:1fr}.product-edit-dialog{padding:16px}.product-edit-actions{flex-wrap:wrap}}

.product-details .price-edit-shortcut{padding:5px 10px;margin-left:6px;font-size:12px}

.product-gallery{margin:16px 0;min-width:0;max-width:100%}.product-gallery-photo{display:block;width:100%;height:300px;object-fit:contain;background:#fff;touch-action:pan-y}.product-gallery-nav{display:flex;justify-content:center;align-items:center;gap:16px;margin:8px 0;font-size:14px}.product-gallery-nav button{min-width:44px;min-height:44px;padding:8px 14px}.product-gallery-thumbs{display:flex;gap:8px;overflow-x:auto;max-width:100%;padding:4px 2px 8px}.product-gallery-thumbs button{flex:0 0 68px;width:68px;height:68px;border:1px solid #ddd;border-radius:5px;padding:4px;background:#fff}.product-gallery-thumbs button[aria-pressed=true]{border:2px solid var(--red)}.product-gallery-thumbs img{width:100%;height:100%;object-fit:contain}@media(max-width:600px){.product-gallery-photo{height:240px}.product-gallery-thumbs button{flex-basis:56px;width:56px;height:56px}}

.product-gallery-title{font-size:16px;margin:0 0 8px}.product-gallery .product-gallery-nav{justify-content:space-between;padding:8px 10px;border:1px solid #ddd;border-radius:6px;background:#fafafa}.product-gallery [data-gallery-count]{font-weight:700}

#modal:has(#contact-edit-form[data-kind=supplier]){width:min(1100px,calc(100vw - 32px));max-width:1100px;max-height:94dvh;padding:28px}
@media(max-width:600px){#modal:has(#contact-edit-form[data-kind=supplier]){width:calc(100vw - 16px);padding:20px 16px}}

.product-media-links{margin:16px 0}.product-media-links .button{margin:4px 6px 4px 0}.discount-policy{display:block;font-size:12px;color:var(--red);margin-top:4px}
@media(max-width:700px){.commercial-home .home-intro>div{display:none}}

@media(max-width:600px){.commercial-home .home-intro{display:none}}
.product-details .product-details-reference{margin:6px 0 12px;color:#555;font-size:13px}

.commercial-home .home-intro .home-motto{font-size:24px;font-weight:600;line-height:1.35;letter-spacing:-.4px;margin:0;max-width:900px}
.home-video-promo{margin-top:28px}.home-video-card{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);overflow:hidden;border-radius:8px;background:#101010;color:#171717;text-decoration:none;box-shadow:0 4px 18px #0000000d}.home-video-preview{position:relative;display:grid;place-items:center;aspect-ratio:16/9;min-height:100%;background:#080808;overflow:hidden}.home-video-preview img{position:absolute;width:100%;height:100%;object-fit:cover}.home-video-play{position:relative;z-index:1;display:grid;place-items:center;width:74px;height:52px;padding-left:3px;border-radius:14px;background:#d7192d;color:#fff;font-size:26px;box-shadow:0 2px 14px #0005;transition:background .15s,transform .15s}.home-video-caption{position:absolute;bottom:16px;left:20px;color:#fff;font-size:11px;font-weight:600;letter-spacing:1.4px;text-shadow:0 1px 4px #000}.home-video-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:30px;background:#ed8b2f;gap:16px}.home-video-eyebrow{font-size:11px;font-weight:600;letter-spacing:1.5px}.home-video-copy h2{font-size:28px;font-weight:600;line-height:1.2;letter-spacing:-.5px;margin:0}.home-video-copy p{font-size:15px;line-height:1.6;margin:0;max-width:430px}.home-video-copy .button{margin-top:6px}.home-video-card:hover .home-video-play{background:#b41425;transform:scale(1.05)}.home-video-card:hover .button{background:#b41425}.home-video-card:focus-visible{outline:3px solid #d7192d;outline-offset:4px}
@media(max-width:700px){.home-video-card{grid-template-columns:minmax(0,1fr)}.home-video-copy{padding:22px;gap:12px}.home-video-copy h2{font-size:25px}.home-video-preview{min-height:0}.home-video-promo{margin-top:20px}}
@media(prefers-reduced-motion:reduce){.home-video-play{transition:none}.home-video-card:hover .home-video-play{transform:none}}
.catalog-carousel{width:100%;margin:0 0 14px;border:1px solid var(--line);border-radius:7px;overflow:hidden;background:#fff}.catalog-carousel-slides{position:relative;aspect-ratio:1672/653;touch-action:pan-y}.catalog-carousel-slides>[data-catalog-slide]{position:absolute;inset:0}.catalog-carousel-slides>[hidden]{display:none}.catalog-carousel-slides img{display:block;width:100%;height:100%;object-fit:contain}.catalog-carousel-controls{display:flex;align-items:center;justify-content:center;gap:12px;padding:3px 8px;border-top:1px solid var(--line)}.catalog-carousel-controls>button{min-width:34px;min-height:30px;background:transparent;color:var(--ink);border:0;border-radius:4px;font-size:24px;line-height:1;cursor:pointer}.catalog-carousel-controls>button:hover{background:#f0f0f0}.catalog-carousel-controls [data-carousel-pause]{font-size:12px;min-width:60px}.catalog-carousel-dots{display:flex;gap:8px}.catalog-carousel-dots button{width:24px;height:30px;padding:0;border:0;background:transparent;position:relative;cursor:pointer}.catalog-carousel-dots button::after{content:'';position:absolute;top:10px;left:7px;width:10px;height:10px;border-radius:50%;background:#bbb}.catalog-carousel-dots button[aria-pressed=true]::after{background:var(--red)}
@media(max-width:700px){.catalog-carousel-controls>button,.catalog-carousel-dots button{min-height:40px}.catalog-carousel-dots button::after{top:15px}.catalog-carousel{margin-bottom:12px}}
.nav-pipeline-icon{display:block;width:20px;height:20px;margin:auto}
.nav-contact-group>summary{display:flex;align-items:center;gap:12px;list-style:none;color:var(--muted);padding:12px 16px;border-radius:5px;cursor:pointer;font-size:14px}.nav-contact-group>summary::-webkit-details-marker{display:none}.nav-contact-group>summary>span:first-child{width:20px;flex-shrink:0}.nav-contact-group svg{display:block;width:20px;height:20px}.nav-contact-chevron{margin-left:auto;font-size:18px}.nav-contact-group[open] .nav-contact-chevron{transform:rotate(180deg)}.nav-contact-group>summary:hover,.nav-contact-group>summary.active{background:#f0f0f0;color:var(--ink)}.nav-contact-group>div>a{padding-left:48px;font-size:13px}.nav-contact-group>summary:focus-visible{outline:3px solid var(--red);outline-offset:2px}
.internal-contacts-toolbar{display:flex;gap:12px;margin:0 0 14px}.internal-contacts-toolbar .search{flex:1;min-width:0}.internal-contacts-toolbar select{min-width:230px}.internal-contacts-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.internal-contact-card{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid var(--line);border-radius:7px;padding:20px}.internal-contact-card header{display:flex;align-items:center;justify-content:space-between;gap:10px}.internal-contact-service{font-size:11px;font-weight:600;color:var(--red)}.internal-contact-card h2{font-size:19px;margin:16px 0 5px;line-height:1.3}.internal-contact-role{font-size:11px;color:var(--muted);margin:0 0 16px;letter-spacing:.3px}.internal-contact-card dl{display:grid;grid-template-columns:100px minmax(0,1fr);gap:10px;font-size:13px;margin:0 0 16px}.internal-contact-card dt{color:var(--muted)}.internal-contact-card dd{margin:0;overflow-wrap:anywhere}.internal-contact-card dd a:hover{text-decoration:underline}.internal-contact-note{font-size:12px;line-height:1.5;color:var(--muted);border-top:1px solid var(--line);padding-top:12px;margin-top:0}.internal-contact-card footer{display:flex;gap:8px;margin-top:auto;flex-wrap:wrap}.internal-contact-dialog{width:min(850px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--line);border-radius:8px}.internal-contact-dialog::backdrop{background:#0007}.internal-contact-dialog-header{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:center;background:#fff;border-bottom:1px solid var(--line);padding:16px 22px}.internal-contact-dialog-header h2{font-size:21px;margin:0}.internal-contact-dialog-header button{font-size:26px}.internal-contact-dialog form{padding:22px}.internal-contact-dialog .crm-actions{margin-top:18px}
@media(max-width:1100px){.internal-contacts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.internal-contacts-grid{grid-template-columns:minmax(0,1fr)}.internal-contacts-toolbar{flex-direction:column}.internal-contact-card{padding:18px}.internal-contact-dialog form{padding:18px}.internal-contact-dialog .form-fields{grid-template-columns:1fr}.nav-contact-group>summary{font-size:15px;min-height:48px}.nav-contact-group>div>a{min-height:44px}}
.remote-quote-dialog{width:min(1000px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--line);border-radius:8px}.remote-quote-dialog::backdrop{background:#0007}.remote-quote-body{padding:22px}.remote-quote-link{margin-top:24px;border-top:1px solid var(--line);padding-top:18px}.remote-quote-link dl{display:grid;grid-template-columns:180px minmax(0,1fr);gap:10px;font-size:13px}.remote-quote-link dd{margin:0}.remote-quote-link .muted,.remote-quote-dialog .muted{font-size:13px;line-height:1.6}#remote-quote-link{font-size:13px}.remote-quote-dialog .crm-actions{flex-wrap:wrap}@media(max-width:600px){.remote-quote-body{padding:18px}.remote-quote-link dl{grid-template-columns:1fr;gap:5px}.remote-quote-link dd{margin-bottom:10px}}
#commercial-quote-history .request-row:has([data-remote-sign-quote]){grid-template-columns:minmax(0,1fr) 190px 155px 48px}#commercial-quote-history .request-row:has([data-remote-sign-quote]):has([data-quote-delete]){grid-template-columns:minmax(0,1fr) 190px 155px 48px 86px}#commercial-quote-history [data-remote-sign-quote]{width:100%;white-space:normal}
@media(max-width:1000px){#commercial-quote-history .request-row:has([data-remote-sign-quote]),#commercial-quote-history .request-row:has([data-remote-sign-quote]):has([data-quote-delete]){grid-template-columns:minmax(0,1fr) minmax(0,1fr) 48px}#commercial-quote-history .request-row:has([data-remote-sign-quote])>div{grid-column:1/-1}#commercial-quote-history .request-row:has([data-remote-sign-quote])>[data-quote-delete]{grid-column:1/-1;justify-self:end}#commercial-quote-history .request-row:has([data-remote-sign-quote])>.button{min-height:44px}}

/* Fullscreen PDF reader: controls stay outside the scrolling document on iOS. */
dialog.pdf-viewer{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100%;height:100dvh;max-height:none;padding:0;border:0;border-radius:0;background:#e9e9eb;color:#161616;overflow:hidden}
dialog.pdf-viewer[open]{display:flex;flex-direction:column}
.pdf-viewer-toolbar{flex:none;display:flex;align-items:center;justify-content:flex-end;gap:2px;flex-wrap:nowrap;height:auto;min-height:48px;padding:2px max(6px,env(safe-area-inset-right)) 2px max(10px,env(safe-area-inset-left));padding-top:max(2px,env(safe-area-inset-top));background:#fff;border-bottom:1px solid #ddd;z-index:1}
.pdf-viewer-toolbar button{flex:none;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:11px;border:0;border-radius:5px;background:transparent;color:var(--ink);cursor:pointer}
.pdf-viewer-toolbar button[hidden]{display:none}
.pdf-viewer-toolbar svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.pdf-viewer-toolbar button:focus-visible{outline:2px solid var(--red);outline-offset:-3px}
.pdf-viewer-toolbar button:hover{background:#f1f1f1;color:var(--red)}
.pdf-viewer-pages{flex:1;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:12px 12px max(12px,env(safe-area-inset-bottom));text-align:center}
.pdf-viewer-page{min-height:320px;margin:0 auto 12px;background:white;max-width:1200px}
.pdf-viewer-page canvas{display:block;max-width:100%;height:auto;margin:auto}

/* Shared sheets: only the contents scroll, never the close/navigation controls. */
#modal[open],#modal[open]:has(.product-details){display:flex;flex-direction:column;padding:0;overflow:hidden;max-height:94vh;max-height:calc(100dvh - 24px)}
#modal[open]>#modal-content,#modal[open]:has(.product-details)>#modal-content{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:54px 28px 24px;scroll-padding-top:12px}
#modal[open]::before{content:"";position:absolute;top:0;left:0;right:0;height:48px;background:#fff;z-index:4;pointer-events:none;border-radius:8px 8px 0 0}
#modal[open]>.dialog-close,#modal[open]:has(.product-details)>.dialog-close{position:absolute;top:4px;right:8px;z-index:5;width:44px;height:44px;display:flex;align-items:center;justify-content:center;padding:0;line-height:1;border:1px solid var(--line);border-radius:50%;background:white;color:var(--ink);font-size:28px}
#modal>.modal-navigation{flex:none;display:flex;justify-content:flex-end;gap:10px;padding:12px 20px max(12px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line)}
#modal>.modal-navigation button{min-height:44px;min-width:96px}
@media(max-width:600px){#modal[open]>#modal-content,#modal[open]:has(.product-details)>#modal-content{padding:54px 16px 16px}#modal>.modal-navigation{padding-left:16px;padding-right:16px}}

/* Explicit colours prevent iOS from applying its default blue to catalogue buttons. */
.promotion-catalogue[data-promotion-select],.promotion-catalogue [data-promotion-select],.promotion-catalogue .promotion-actions a,.promotion-catalogue .promotion-actions button{color:var(--red)}
.article-inactive{display:inline-flex;color:var(--red);font-size:12px;font-weight:700;padding:6px 8px;border:1px solid var(--line);border-radius:4px;background:#fff}

.product-line-family{display:none}
:is(#product-grid,.compact-products)[data-presentation=line] .product-info>small{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;overflow-wrap:anywhere}
:is(#product-grid,.compact-products)[data-presentation=line] .product-line-family{display:block;min-width:0;max-width:60%;margin-left:auto;text-align:right;font-size:11px;font-weight:500;line-height:1.35;color:#666}

.home-product-tabs{gap:6px;align-items:center}
.home-product-tabs .button{min-height:44px;padding:10px 14px;font-size:12px;line-height:1.3}

/* Real catalogue previews, with one accessible click target over the visual. */
.home-catalogue-preview{position:relative;min-width:0;aspect-ratio:4/3;max-height:340px;overflow:hidden;border:1px solid var(--line);border-top:3px solid var(--red);border-radius:7px;background:#fff}
.home-catalogue-preview iframe{display:block;width:100%;height:100%;border:0;pointer-events:none}
.home-catalogue-preview-open{position:absolute;inset:0;display:flex;align-items:flex-end;width:100%;height:100%;padding:0;border:0;background:transparent;text-align:left;color:var(--ink);cursor:pointer}
.home-catalogue-preview-open>span{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:10px 12px;background:#fffffff2;border-top:1px solid var(--line);font-size:12px;font-weight:600}
.home-catalogue-preview-open:hover>span{color:var(--red);background:#fff}
.home-catalogue-preview-open:focus-visible{outline-offset:-4px}
@media(max-width:600px){.home-promotion-grid:has(.home-catalogue-preview){grid-template-columns:minmax(0,1fr)}.home-catalogue-preview{max-height:none;aspect-ratio:4/3}}
.header-search select{width:142px;min-width:0;flex:0 0 142px;max-width:45%}

.home-promotion-grid:has(.home-catalogue-preview){grid-template-columns:repeat(2,minmax(0,450px));justify-content:center;gap:100px}
.home-catalogue-preview{width:100%}
@media(max-width:600px){.home-promotion-grid:has(.home-catalogue-preview){grid-template-columns:minmax(0,450px);gap:14px}}

.compact-original-price{display:none}
:is(#product-grid,.compact-products)[data-presentation=visual] .product-prices:has(.compact-original-price){position:relative;transform:translateY(6px)}
:is(#product-grid,.compact-products)[data-presentation=visual] .compact-original-price{display:block;position:absolute;bottom:calc(100% + 1px);left:0;white-space:nowrap;font-size:11px;font-weight:400;line-height:12px;color:#777}

.home-promotion-pagination{margin-top:20px}

.brand-banner{margin-top:40px;padding:26px 20px 18px;background:#fff;border:1px solid var(--line);border-radius:8px;min-width:0;overflow:hidden}
.brand-banner h2{text-align:center;font-size:23px;font-weight:600;margin:0 0 28px}
.brand-banner h2::after{content:"";display:block;width:72px;height:2px;background:var(--red);margin:12px auto 0}
.brand-banner-viewport{width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.brand-banner-viewport::-webkit-scrollbar{display:none}
.brand-banner-track{display:flex;width:max-content}
.brand-banner-group{display:flex;gap:22px;padding:2px 22px 6px 2px;flex-shrink:0}
.brand-logo{width:138px;height:112px;flex:0 0 138px;display:flex;align-items:center;justify-content:center;padding:13px;border:1px solid #ddd;background:#fff;box-shadow:2px 2px 0 #ddd}
.brand-logo img{width:100%;height:100%;object-fit:contain;display:block}
.brand-logo-dark{background:#303238;border-color:#303238}
.brand-banner-controls{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:16px}
.brand-banner-controls[hidden]{display:none}
.brand-banner-controls button{min-width:44px;height:44px;padding:6px 12px;border:1px solid var(--line);border-radius:4px;background:#fff;color:#555;font-size:22px}
.brand-banner-controls [data-brand-pause]{font-size:12px}
.brand-banner-controls button:hover{color:var(--red);border-color:var(--red)}
.brand-banner-error:empty{display:none}
@media(max-width:600px){.brand-banner{padding:22px 12px 14px;margin-top:28px}.brand-logo{width:120px;height:100px;flex-basis:120px}.brand-banner h2{font-size:21px;margin-bottom:20px}}

.remote-mail-notice{padding:12px 14px;margin:0 0 16px;border:1px solid;border-radius:6px;font-weight:600;line-height:1.5}.remote-mail-notice.success{color:#176438;background:#edf8f0;border-color:#b8dfc5}.remote-mail-notice.pending{color:#725100;background:#fff8e4;border-color:#ebd495}.remote-mail-notice.error{color:#a21e25;background:#fff0f0;border-color:#efc0c3}

.commercial-browse{padding:18px;border:1px solid #ddd;border-radius:8px;background:#fafafa}.commercial-browse h3,.commercial-selected h3{margin:0;font-size:18px}.commercial-browse>p{margin:8px 0 0;font-size:13px}.commercial-selected{margin-top:28px;padding:20px;border:1px solid #e3c3c5;border-top:4px solid var(--red);border-radius:8px;background:#fff}.commercial-selected-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.commercial-line-count{padding:5px 10px;border-radius:20px;color:var(--red);background:#fff0f1;font-size:13px;font-weight:700}.commercial-selected-help{font-size:13px;color:#666;margin:10px 0 16px}.commercial-selected .commercial-line{padding:16px 0;border-top:1px solid #e5e5e5}.commercial-selected #commercial-total{border-top:1px solid #ddd;padding-top:16px;margin-bottom:0;font-weight:700}.commercial-selected-empty{padding:20px;border:1px dashed #d7d7d7;border-radius:6px;text-align:center;color:#666}.commercial-already-added{display:inline-block;color:#22633c;font-size:12px;font-weight:700;margin-top:6px}@media(max-width:600px){.commercial-browse,.commercial-selected{padding:14px}.commercial-selected{margin-top:22px}.commercial-selected-heading h3{font-size:17px}}

/* Compact product sheet: identity, actions, facts, then optional photo tools. */
#modal[open]:has(.product-details)>#modal-content{padding:20px 24px 18px;scroll-padding-top:16px}
#modal[open]:has(.product-details)::before{display:none}
.product-sheet-heading{padding:0 44px 14px 0;border-bottom:1px solid var(--line)}
.product-sheet-heading h2{font-size:24px;line-height:1.25;font-weight:600;margin:0 0 8px;overflow-wrap:anywhere}
.product-sheet-heading .product-details-reference{display:inline-block;font-size:12px;color:#666;margin:0 0 10px;padding:4px 8px;background:#f2f2f2;border-radius:4px}
.product-sheet-heading .product-prices{margin:0;gap:12px}
.product-sheet-heading .product-price-ht{font-size:21px;font-weight:700}.product-sheet-heading .product-price-ttc{font-size:18px}
.product-details-actions{gap:8px;margin:12px 0 16px}.product-details-actions .button{padding:10px 14px;font-size:13px;min-height:40px}.product-details-actions .document-button{font-size:13px;padding:9px 12px;border:1px solid #e2e2e2;border-radius:4px;text-decoration:none}
.product-details .product-sheet-facts{grid-template-columns:minmax(100px,1fr) minmax(0,1.4fr) minmax(90px,1fr) minmax(0,1.4fr);gap:12px 14px;padding:16px;background:#f7f7f7;border:1px solid #eee;border-radius:8px;font-size:13px;line-height:1.5;margin:16px 0}
.product-sheet-facts dt{color:#666;font-weight:500}.product-sheet-facts dd{color:#202020;font-weight:600}
.product-sheet-photo-tools{border:1px solid #e4e4e4;border-radius:6px;margin:14px 0;font-size:13px}.product-sheet-photo-tools summary{padding:12px 14px;cursor:pointer;font-weight:600}.product-sheet-photo-tools .product-photo-upload{border:0;border-top:1px solid #eee;margin:0;border-radius:0}.product-sheet-photo-tools .product-photo-upload input[type=file]{padding:8px}.product-sheet-photo-tools .product-photo-upload button{padding:9px 12px;font-size:13px}
@media(max-width:600px){#modal[open]:has(.product-details)>#modal-content{padding:18px 14px 14px}.product-sheet-heading{padding-right:40px}.product-sheet-heading h2{font-size:20px}.product-details .product-sheet-facts{grid-template-columns:minmax(110px,1fr) minmax(0,1.5fr);gap:9px 12px;padding:12px}.product-details-actions .button{min-height:44px}.product-sheet-heading .product-price-ht{font-size:19px}.product-sheet-heading .product-price-ttc{font-size:17px}}

.product-sheet-heading h2{white-space:nowrap;overflow:visible;text-overflow:clip;min-width:0}
.product-details [data-direction-figures]{margin:14px 0}
.product-details .product-figures-menu{border:1px solid #e3e3e3;border-radius:8px;overflow:hidden;background:#fafafa}
.product-details .product-figures-menu>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f5f5f5;color:#222;border:0;border-radius:0;padding:12px 14px;font-size:14px;font-weight:600;min-height:44px}
.product-details .product-figures-menu[open]>summary{border-bottom:1px solid #e3e3e3}
.product-details .product-figures-content{padding:14px 16px}
.product-details .product-figures-content dl{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,1fr) minmax(110px,1.2fr) minmax(0,1fr);gap:12px 14px;margin:0;font-size:13px;line-height:1.5;align-items:center}
.product-details .product-figures-content dt{font-weight:500;color:#666}.product-details .product-figures-content dd{font-weight:600;margin:0}
.product-details .product-figures-content .price-edit-shortcut{font-size:11px;padding:4px 8px;margin:4px 0;min-height:30px}
.product-details .product-figures-content>.muted{font-size:11px;line-height:1.5;margin:12px 0 0;padding-top:10px;border-top:1px solid #e3e3e3}
@media(max-width:600px){.product-details .product-figures-content{padding:12px}.product-details .product-figures-content dl{grid-template-columns:minmax(130px,1.3fr) minmax(0,1fr);gap:10px 12px}.product-details .product-figures-content .price-edit-shortcut{min-height:44px}}

.rental-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 22px}.rental-tabs [aria-pressed=true]{background:#171717;color:white;border-color:#171717}.rental-tabs button{font-size:13px;padding:11px 14px}.rental-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}.rental-fields label{display:block;font-size:13px;color:#555;min-width:0}.rental-fields input,.rental-fields select,.rental-fields textarea,.rental-search input{display:block;width:100%;margin-top:6px;box-sizing:border-box}.rental-fields textarea{resize:vertical}.rental-fields .check-label{display:flex;align-items:center;gap:8px}.rental-fields input[type=checkbox]{width:20px}.rental-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 0;border-bottom:1px solid #e6e6e6}.rental-card h3{margin:10px 0 6px;font-size:17px}.rental-card p{font-size:14px;margin:7px 0}.rental-card small{color:#666}.rental-card>div{min-width:0;overflow-wrap:anywhere}.rental-card .button{margin:4px 0}.rental-card[hidden]{display:none}.rental-status{display:inline-block;padding:5px 9px;background:#fff0f1;color:var(--red);font-size:12px;font-weight:700;border-radius:20px}.rental-editor{margin:24px 0;padding:20px;background:#fafafa;border:1px solid #e4e4e4;border-radius:8px}.rental-editor .button{margin-top:16px}#rental-content fieldset{margin:20px 0;padding:18px;border:1px solid #ddd;border-radius:7px}#rental-content legend{font-size:16px;font-weight:600;padding:0 8px}#rental-content [data-rental-error]{color:var(--red);line-height:1.5}#rental-content summary{cursor:pointer;font-weight:600;padding:12px 0}.rental-detail-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding:20px;background:#f7f7f7;border-radius:8px;margin:20px 0}.rental-detail-summary small,.rental-detail-summary strong,.rental-detail-summary span{display:block;margin:5px 0;overflow-wrap:anywhere}.rental-detail-summary small{color:#777;font-size:12px}.rental-detail-summary span{font-size:13px}.rental-facts{display:grid;grid-template-columns:1fr 2fr;gap:10px 20px;font-size:13px}.rental-facts dt{color:#777}.rental-facts dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.rental-signature canvas{display:block;width:100%;height:auto;aspect-ratio:10/3;background:white;border:1px dashed #888;touch-action:none;margin-top:8px}.rental-photo-box{border-bottom:1px solid #e5e5e5;padding:8px 0;margin:14px 0}.rental-photo-grid{display:flex;flex-wrap:wrap;gap:10px}.rental-photo-grid img{width:110px;height:90px;object-fit:cover;border-radius:5px}.rental-status-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:20px 0}.rental-status-form select{display:block;margin-top:6px}.rental-document-links{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.rental-total{font-size:21px;font-weight:700;color:#216841;padding:16px;background:#f0f8f2;border-radius:6px}#rental-content .check-label{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.6}#rental-content .check-label input{flex-shrink:0;width:20px;height:20px}#rental-content details{margin-top:12px}
@media(max-width:650px){.rental-fields,.rental-detail-summary{grid-template-columns:minmax(0,1fr)}.rental-card{align-items:flex-start;flex-direction:column;gap:8px}.rental-card>button{width:100%}.rental-editor{padding:14px}#rental-content fieldset{padding:12px}.rental-fields input,.rental-fields select,.rental-fields textarea{font-size:16px}.rental-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.rental-tabs button{padding:10px;font-size:12px}.rental-facts{grid-template-columns:1fr 1.5fr}.rental-detail-summary{padding:14px;gap:8px}}

.rental-client-picker{background:#f7f7f7;border:1px solid #e4e4e4;border-radius:8px;padding:16px;margin:20px 0}.rental-client-picker h3{margin:0 0 12px;font-size:16px}.rental-client-search{display:flex;gap:10px;align-items:end}.rental-client-search label{flex:1;min-width:0;font-size:13px}.rental-client-search input{display:block;width:100%;margin-top:6px}.rental-client-choice{display:block;width:100%;text-align:left;border:1px solid #ddd;background:#fff;border-radius:5px;padding:12px;margin-top:8px;color:#222;cursor:pointer}.rental-client-choice span{display:block;font-size:12px;color:#666;margin-top:4px}.rental-client-choice:hover{border-color:var(--red)}@media(max-width:600px){.rental-client-search{flex-wrap:wrap}.rental-client-search label{flex-basis:100%}.rental-client-search input{font-size:16px}}
.rental-choice-field [data-rental-other][hidden]{display:none}.rental-choice-field [data-rental-other]{margin-top:8px;background:#fffdf7}

.client-master-info{margin:16px 0;padding:16px;background:#f7f7f7;border:1px solid #e7e7e7;border-radius:7px}.client-master-info dl{display:grid;grid-template-columns:1fr 2fr;gap:9px 14px;margin:0;font-size:13px}.client-master-info dt{color:#666}.client-master-info dd{margin:0;font-weight:600;overflow-wrap:anywhere}.client-master-info details{margin-top:14px}.client-master-info summary{cursor:pointer;margin-bottom:10px;font-size:13px}
.rental-equipment-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}.rental-equipment-photo{min-width:0;padding:10px;background:#f7f7f7;border:1px solid #e4e4e4;border-radius:7px}.rental-equipment-photo>strong{display:block;font-size:12px;margin-bottom:8px}.rental-equipment-photo img,.rental-equipment-photo-empty{display:flex;width:100%;height:130px;object-fit:contain;background:white;align-items:center;justify-content:center;color:#888;font-size:12px}.rental-equipment-photo input{display:block;width:100%;min-width:0;margin-top:6px;font-size:12px}.rental-equipment-photo label{display:block;margin-top:10px;font-size:12px}@media(max-width:600px){.rental-equipment-photos{grid-template-columns:minmax(0,1fr)}.rental-equipment-photo img,.rental-equipment-photo-empty{height:160px}.rental-equipment-photo input{font-size:16px}}
.client-actions:has([data-resend-invitation]){flex-wrap:wrap;justify-content:flex-end}.client-actions [data-invitation-status]{flex-basis:100%;order:10;color:#555;font-size:12px;line-height:1.5;text-align:right}.client-actions [data-invitation-status]:empty{display:none}@media(max-width:600px){.client-actions [data-invitation-status]{text-align:left}}
.rental-camera-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0}.rental-camera-tools [data-rental-camera-input][hidden]{display:none}.rental-camera-tools small{flex-basis:100%;font-size:12px;color:#666}.rental-camera-previews{display:flex;gap:8px;flex-wrap:wrap;flex-basis:100%}.rental-camera-previews img{width:100px;height:80px;object-fit:cover;border-radius:5px;border:1px solid #ddd}
.rental-workflow{padding:18px;margin:18px 0;background:#f7f7f7;border:1px solid #e4e4e4;border-radius:8px}.rental-workflow ol{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;list-style:none;padding:0;margin:0 0 14px}.rental-workflow li{display:flex;align-items:center;gap:8px;color:#777;font-size:12px}.rental-workflow li>span{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;border:1px solid #ccc;width:26px;height:26px;flex-shrink:0;background:#fff}.rental-workflow li.current{color:var(--red);font-weight:700}.rental-workflow li.current>span{background:var(--red);color:#fff;border-color:var(--red)}.rental-workflow li.done{color:#207438}.rental-workflow p{font-size:13px;line-height:1.6}.rental-tab-count{display:inline-block;min-width:20px;padding:2px 5px;border-radius:10px;background:rgba(128,128,128,.15);font-size:11px;margin-left:4px}.rental-late{display:inline-block;color:#a96100;background:#fff2d9;padding:4px 8px;font-size:11px;border-radius:4px;margin-left:7px}@media(max-width:600px){.rental-workflow{padding:14px}.rental-workflow ol{grid-template-columns:repeat(2,minmax(0,1fr))}}

.rental-status-review{background:#fee2e2;color:var(--red);border:1px solid var(--red)}.rental-status-closed{background:#dcfce7;color:#166534;border:1px solid #86efac}
.permission-groups{display:grid;gap:12px;margin:20px 0}.permission-group{border:1px solid var(--line);border-radius:8px;padding:12px 16px;background:#fafafa}.permission-group summary{cursor:pointer;padding:8px 0}.permission-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,240px);align-items:center;gap:14px;border-top:1px solid var(--line);padding:10px 0;font-size:13px}.permission-row small{display:block;color:var(--muted);margin-top:4px}.permission-row select{font-size:13px}.permission-state{font-size:12px;font-weight:600;color:#166534}.permission-state.denied{color:#b91c1c}.permission-note{background:#f5f5f5;border-left:3px solid var(--red);padding:14px;font-size:13px;line-height:1.6}.permission-summary{display:flex;gap:10px;flex-wrap:wrap;margin:15px 0}.permission-summary span{background:#f4f4f4;border-radius:6px;padding:10px;font-size:13px}.permission-admin{margin:24px 0}.permission-admin li{margin:10px 0;font-size:13px;line-height:1.6}dialog:has(#assign-service-form){max-width:1000px}@media(max-width:600px){.permission-row{grid-template-columns:1fr;gap:6px}.permission-group{padding:10px}.permission-row select{width:100%}}

.client-delete-button{color:#b91c1c;border-color:#e8b3b3}.client-delete-button:hover{background:#fff0f0}

@media(max-width:850px){.rental-page-heading{flex-direction:column;align-items:stretch}.rental-page-heading>.button:not([hidden]){display:inline-flex;width:100%;white-space:normal;text-align:center;font-size:14px;padding:14px 16px;min-height:48px}}

/* Consistent dark SODM red for action buttons on pointer hover. */
button,.button,nav a,#contact-nav>summary{transition:background-color .16s ease,color .16s ease,border-color .16s ease,box-shadow .16s ease}
@media(hover:hover){
 button:enabled:hover,.button:not(:disabled):not([aria-disabled=true]):hover{filter:none;box-shadow:0 0 0 2px rgb(184 5 16 / .16)}
 :is(.button,.text-button,.document-button,.add-circle,.remove,.dialog-close,.signature-close):not(:disabled):not([aria-disabled=true]):hover{background-color:var(--red-hover);color:#fff;border-color:var(--red-hover)}
 nav a:hover,#contact-nav>summary:hover{background-color:var(--red-hover);color:#fff;box-shadow:0 0 0 2px rgb(184 5 16 / .16)}
 .product-card:has(.product-card-open:hover){border-color:var(--red-hover);box-shadow:0 2px 10px rgb(184 5 16 / .12)}
}
@media(prefers-reduced-motion:reduce){button,.button,nav a,#contact-nav>summary{transition:none}}

.popular-products{background:#fff;border:1px solid var(--line);border-radius:8px;padding:24px;margin-top:24px;min-width:0}.popular-products h2{font-size:20px;margin:0 0 6px}.popular-products .section-heading{align-items:center}.popular-products .muted{margin:0}.popular-controls{display:flex;gap:8px;align-items:center;flex-shrink:0}.popular-controls .button{padding:6px 12px;min-width:36px;font-size:23px;color:#d71920}.popular-controls .text-button{font-size:12px}.popular-track{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 54px)/4);gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;padding:4px 3px 12px;overscroll-behavior-inline:contain}.popular-card{display:flex;flex-direction:column;gap:12px;min-width:0;background:#fff;border:1px solid #dedede;border-radius:4px;padding:14px;text-align:left;scroll-snap-align:start;color:var(--ink)}.popular-visual{height:190px;width:100%;display:flex;align-items:center;justify-content:center}.popular-visual img{width:100%;height:100%;object-fit:contain}.popular-visual .product-icon{width:85px;height:85px}.popular-ref{font-size:13px;color:#d71920;font-weight:700;overflow-wrap:anywhere}.popular-card strong{font-size:15px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:44px}.popular-empty{padding:20px 0}@media(max-width:1100px){.popular-track{grid-auto-columns:calc((100% - 36px)/3)}}@media(max-width:700px){.popular-track{grid-auto-columns:calc((100% - 18px)/2)}.popular-products{padding:18px}.popular-visual{height:160px}.popular-products .section-heading{align-items:flex-start;flex-wrap:wrap}}@media(max-width:450px){.popular-track{grid-auto-columns:82%}.popular-visual{height:180px}}

/* Fleet prices remain legible on narrow screens. */
.rental-tariffs{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}
.rental-tariffs>span{display:grid;gap:4px;background:#f6f7f8;border:1px solid #e2e4e7;border-radius:8px;padding:10px 16px;min-width:110px}
.rental-tariffs strong{color:var(--red)}
.rental-equipment-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.rental-machine-results{display:grid;gap:6px;max-height:300px;overflow-y:auto;overscroll-behavior:contain;margin-top:8px}
.rental-machine-results:empty{display:none}
.rental-machine-results .rental-client-choice{width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere}
.rental-machine-results .rental-client-choice:disabled{opacity:.65;cursor:not-allowed}

/* Location retains logo red accents and the shared darker button hover. */
body:has(.rental-space){--red:#e30613;--orange:var(--red)}
body:has(.rental-space) :is(button,a,input,select,textarea):focus-visible{outline-color:var(--red)}
body:has(.rental-space) :is(input,select,textarea){accent-color:var(--red)}
body:has(.rental-space) .form-error{color:var(--red)}
@media(hover:hover){
 body:has(.rental-space) button:enabled:hover,body:has(.rental-space) .button:not(:disabled):not([aria-disabled=true]):hover{filter:none;box-shadow:0 0 0 2px rgb(184 5 16 / .16)}
 body:has(.rental-space) :is(.button,.text-button,.document-button,.add-circle,.remove,.dialog-close,.signature-close):not(:disabled):not([aria-disabled=true]):hover{background-color:var(--red-hover);border-color:var(--red-hover);color:#fff}
}

.rental-dispute-reason{white-space:pre-wrap;overflow-wrap:anywhere}
.rental-disputes figure{margin:0}
.rental-disputes figcaption{font-size:12px;margin-top:6px;color:#666}
.rental-disputes label{font-size:13px;display:block}
.rental-disputes textarea{display:block;margin:8px 0 16px}
.rental-disputes [hidden]{display:none}

/* Readable rental contract forms and dossier values. */
.rental-space .rental-fields :is(label,input,textarea,select),.rental-space .rental-facts dd{font-weight:600}
.rental-space .rental-facts dt{font-weight:600;color:#4b5563}
.rental-space :is(.rental-detail-summary span,.rental-dispute-reason){font-weight:600;line-height:1.65}
.rental-space .panel h2{font-weight:600}
.quote-edit-dialog{width:min(1100px,96vw);max-width:1100px;max-height:92vh;overflow-y:auto;padding:28px}
.quote-edit-dialog h2{padding-right:35px}
.quote-edit-dialog label{display:block;font-size:13px;min-width:0}
.quote-edit-dialog input,.quote-edit-dialog select,.quote-edit-dialog textarea{margin-top:6px}
.quote-edit-line{display:grid;grid-template-columns:minmax(170px,2fr) repeat(4,minmax(85px,1fr)) auto;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}
.quote-edit-line>div{min-width:0;overflow-wrap:anywhere}.quote-edit-line small{display:block;color:var(--muted);font-size:12px;margin-top:5px}
.quote-edit-dialog .crm-actions{flex-wrap:wrap;margin:16px 0}
@media(max-width:700px){.quote-edit-dialog{padding:18px}.quote-edit-line{grid-template-columns:repeat(2,minmax(0,1fr))}.quote-edit-line>div{grid-column:1/-1}.quote-edit-line input,.quote-edit-line select{font-size:16px}.quote-edit-dialog .button{white-space:normal}}
.quote-catalog-toggle{display:flex!important;align-items:center;gap:7px;font-size:12px;margin-top:8px;white-space:normal}
.quote-catalog-toggle input[type=checkbox]{width:18px;height:18px;flex-shrink:0;margin:0}
/* Prepared quotes: stable card layout, grouped actions and a secondary delete action. */
#commercial-quote-history .quote-delete-toolbar{justify-content:space-between;gap:12px;padding:12px 14px;margin:16px 0;background:#f6f7f8;border:1px solid var(--line);border-radius:8px}
#commercial-quote-history .quote-delete-toolbar label{font-size:13px;flex-wrap:wrap}
#commercial-quote-history .quote-delete-toolbar .button{min-height:40px;font-size:12px}
.quote-history-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,430px);gap:20px;align-items:center;padding:18px;margin:12px 0;border:1px solid var(--line);border-radius:9px;background:#fff}
.quote-history-info,.quote-history-controls{min-width:0}
.quote-history-reference{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:13px}
#commercial-quote-history .quote-history-card .quote-select{padding:0;margin-right:2px;flex-shrink:0}
.quote-history-card h3{font-size:16px;line-height:1.4;margin:10px 0;overflow-wrap:anywhere;font-weight:600}
.quote-history-status{background:#f4f4f4;border-radius:20px;padding:4px 9px;font-size:11px;color:#666;white-space:nowrap}
.quote-history-status.is-signed{color:#166534;background:#eaf7ee}
.quote-history-meta{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.quote-history-meta>strong{font-size:18px}.quote-history-meta small{font-size:11px;color:var(--muted);font-weight:400}.quote-history-meta time{color:var(--muted);font-size:12px}
.quote-history-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.quote-history-actions .button{width:100%;min-height:42px;padding:10px 12px;font-size:12px;white-space:normal;text-align:center;line-height:1.4}
.quote-history-actions .button[hidden]{display:none}
.quote-history-delete{display:flex;justify-content:flex-end;margin-top:8px}
.quote-history-delete .button{min-height:32px;padding:5px 10px;font-size:12px;white-space:nowrap}
.quote-history-card:has([data-quote-select]:checked){border-color:var(--red);box-shadow:0 0 0 1px var(--red)}
@media(max-width:850px){.quote-history-card{grid-template-columns:minmax(0,1fr);gap:16px;padding:16px}.quote-history-actions .button{min-height:44px}#commercial-quote-history .quote-delete-toolbar{align-items:stretch}#commercial-quote-history .quote-delete-toolbar label{min-height:32px}}
@media(max-width:400px){.quote-history-card{padding:12px}.quote-history-actions{gap:7px}.quote-history-actions .button{padding:10px 7px}}
#commercial-quote-history [data-quote-delete-selected]{gap:4px}

/* Physical stock thresholds in article details, including scanned articles. */
.product-details dd.product-stock-low{color:#e30613}
.product-details dd.product-stock-high{color:#28783c}

.product-stock-legend{display:flex;align-items:center;gap:10px;margin:18px 0;font-size:14px;line-height:1.5;font-weight:600}
.product-stock-square{display:inline-block;flex:0 0 13px;width:13px;height:13px;border-radius:2px}
.product-stock-square.product-stock-low{background:#e30613}
.product-stock-square.product-stock-high{background:#28783c}

/* Shared article heading: full designation first, reference and prices below. */
#modal .product-sheet-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px 20px;height:auto;min-height:0;padding:0 44px 14px 0}
#modal .product-sheet-heading h2{grid-column:1/-1;width:100%;margin:0;font-size:24px}
#modal .product-sheet-heading .product-details-reference{grid-column:1;justify-self:start;margin:0;white-space:nowrap}
#modal .product-sheet-heading .product-prices{grid-column:2;grid-row:2;justify-self:end}
#modal .product-sheet-heading>.product-promotion{grid-column:1/-1}
.product-sheet-information{padding:16px;background:#f7f7f7;border:1px solid #eee;border-radius:8px;margin:16px 0}
.product-details .product-sheet-information .product-sheet-facts{padding:0;margin:0;border:0;background:transparent}
.product-sheet-facts .product-stock-cell{grid-column:3/-1;align-self:start;margin:0}
.product-sheet-information .product-stock-legend{justify-content:flex-start;text-align:left;margin:0;font-size:13px}
@media(max-width:600px){.product-sheet-facts .product-stock-cell{grid-column:1/-1}}
@media(max-width:600px){#modal .product-sheet-heading{gap:8px 12px;padding-right:32px}#modal .product-sheet-heading h2{font-size:20px}.product-sheet-information{padding:12px}}

/* Keep the reference attached below the designation in every article sheet. */
.product-sheet-identity{display:block;min-width:0;width:100%}
#modal .product-sheet-heading>.product-sheet-identity{grid-column:1/-1}
.product-details .product-sheet-identity .product-details-reference{display:table;width:auto;max-width:100%;margin:6px 0 0;white-space:nowrap;font-size:14px;line-height:1.5;color:#666;padding:6px 10px;background:#f2f2f2;border-radius:4px}
.product-sheet-identity>.scan-product-title{margin-bottom:0}

/* Catalogue image alone, without the embedded reader's grey surround. */
.home-promotion-grid:has(.home-catalogue-cover){grid-template-columns:minmax(0,450px);justify-content:center}
.home-catalogue-cover{display:block;width:100%;padding:0;border:0;background:transparent;border-radius:0;overflow:hidden;cursor:pointer}
.home-catalogue-cover img{display:block;width:100%;height:auto}
@media(hover:hover){.home-catalogue-cover:enabled:hover{background:transparent;box-shadow:0 0 0 2px var(--red-hover)}}

/* Supplier logos are placeholders, kept intact rather than cropped as product photos. */
img.brand-placeholder{object-fit:contain;background:#fff;padding:10px}

img.brand-placeholder[data-brand-dark=true]{background:#252525}

.back-to-top{position:fixed;right:calc(20px + env(safe-area-inset-right));bottom:calc(20px + env(safe-area-inset-bottom));z-index:30;display:grid;place-items:center;width:48px;height:48px;min-height:48px;padding:0;border:0;border-radius:5px;background:#161616;color:#fff;box-shadow:0 3px 12px #0003}
.back-to-top svg{width:26px;height:26px;pointer-events:none}
.back-to-top[hidden],.mobile-menu-open .back-to-top,body:has(dialog[open]) .back-to-top{display:none}
body:has(.pwa-install:not([hidden])) .back-to-top{bottom:calc(78px + env(safe-area-inset-bottom))}
@media(max-width:600px){.back-to-top{right:calc(14px + env(safe-area-inset-right));bottom:calc(14px + env(safe-area-inset-bottom))}}

/* Internal, non-modal team discussion panel. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.team-chat-launcher{position:fixed;right:calc(20px + env(safe-area-inset-right));bottom:calc(84px + env(safe-area-inset-bottom));z-index:35;display:flex;align-items:center;gap:9px;min-height:48px;padding:11px 16px;border:0;border-radius:24px;background:#e30613;color:#fff;box-shadow:0 3px 14px #0003;font-size:14px;font-weight:600}
.team-chat-launcher svg{width:24px;height:24px}.team-chat-badge{display:grid;place-items:center;min-width:22px;height:22px;padding:0 5px;border-radius:12px;background:#fff;color:#b80510;font-size:12px}.team-chat-badge[hidden]{display:none}
body:has(.team-chat-launcher) .back-to-top{bottom:calc(20px + env(safe-area-inset-bottom))}
body:has(.pwa-install:not([hidden])) .team-chat-launcher{bottom:calc(142px + env(safe-area-inset-bottom))}
body:has(.pwa-install:not([hidden])):has(.team-chat-launcher) .back-to-top{bottom:calc(78px + env(safe-area-inset-bottom))}
.team-chat-window{position:fixed;right:calc(20px + env(safe-area-inset-right));bottom:calc(144px + env(safe-area-inset-bottom));z-index:36;width:min(420px,calc(100vw - 32px));height:min(680px,calc(100dvh - 164px));display:flex;flex-direction:column;min-height:0;background:#fff;border:1px solid #ddd;border-radius:12px;box-shadow:0 8px 35px #0003;overflow:hidden;font-size:14px;line-height:1.45;text-align:left}
.team-chat-window[hidden]{display:none}.team-chat-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#161616;color:#fff;padding:13px 16px;border-bottom:3px solid #e30613}.team-chat-heading strong{font-size:17px}.team-chat-heading small{display:block;font-size:11px;margin-top:3px;color:#ddd}.team-chat-heading .text-button{color:#fff;font-size:26px;min-width:44px;min-height:44px;padding:0}
.team-chat-presence{padding:8px 14px;background:#f7f7f7;border-bottom:1px solid #eee;font-size:12px;max-height:140px;overflow:auto;flex-shrink:0}.team-chat-presence summary{cursor:pointer;min-height:28px;align-content:center}.team-chat-presence>small{display:block;color:#666;font-size:10px}.team-chat-presence [data-chat-people]{display:flex;flex-wrap:wrap;gap:6px 12px;margin:6px 0}.team-chat-presence [data-chat-people]>span{display:flex;gap:5px;align-items:center}.team-chat-presence i{background:#28783c;flex-shrink:0}
.team-chat-content{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}.team-chat-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;border-bottom:1px solid #eee;flex-shrink:0}.team-chat-toolbar strong{overflow-wrap:anywhere;min-width:0;font-size:14px}.team-chat-toolbar .text-button{white-space:nowrap;font-size:12px;min-height:36px}.team-chat-toolbar .button{font-size:12px;padding:8px 10px;min-height:36px;flex-shrink:0}.team-chat-search{display:flex;gap:6px;padding:10px 14px}.team-chat-search input{min-width:0;width:100%;padding:8px;border:1px solid #ccc;border-radius:5px;font-size:14px}.team-chat-search .button{font-size:12px;padding:8px}
.team-chat-threads{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 10px}.team-chat-topic{display:block;width:100%;padding:12px 10px;text-align:left;background:#fff;border:0;border-bottom:1px solid #eee;border-radius:4px;color:#222}.team-chat-topic>span,.team-chat-topic time{display:block;font-size:11px;color:#666;margin:4px 0 0}.team-chat-topic .team-chat-topic-title{display:flex;justify-content:space-between;gap:8px;align-items:start;font-size:14px;color:#222;overflow-wrap:anywhere}.team-chat-topic.has-unread .team-chat-topic-title{font-weight:700}.team-chat-topic b{background:#e30613;color:#fff;border-radius:10px;padding:0 6px;font-size:11px}.team-chat-topic:hover{background:#faf1f2}
.team-chat-pages,.team-chat-thread-state,.team-chat-history-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 14px;font-size:11px;flex-shrink:0}.team-chat-pages .text-button,.team-chat-thread-state .text-button,.team-chat-history-controls .text-button{font-size:11px;padding:6px;min-height:32px}.team-chat-pages{border-top:1px solid #eee}.team-chat-history-controls:empty{display:none}
.team-chat-messages{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:10px 14px;background:#f8f8f8}.team-chat-message{border:1px solid #e6e6e6;border-radius:8px;background:white;padding:10px;margin:0 20px 10px 0;overflow-wrap:anywhere}.team-chat-message.is-mine{margin-left:20px;margin-right:0;background:#fff2f3;border-color:#f1d5d8}.team-chat-message-meta{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;font-size:10px;color:#666}.team-chat-message-meta strong{font-size:12px;color:#222}.team-chat-message p{font-size:14px;line-height:1.5;white-space:pre-wrap;margin:6px 0}.team-chat-message.is-hidden p{font-style:italic;color:#777;font-size:12px}.team-chat-message .team-chat-article{color:#b80510;font-size:12px;white-space:normal;text-align:left;line-height:1.4;max-width:100%;overflow-wrap:anywhere;padding:5px 0}.team-chat-moderate{display:block;font-size:10px;color:#777;padding:5px 0}
.team-chat-compose{display:grid;gap:12px;padding:14px;overflow:auto}.team-chat-compose label{display:grid;gap:5px;font-size:12px;font-weight:600}.team-chat-compose input,.team-chat-compose textarea,.team-chat-reply textarea{padding:10px;border:1px solid #ccc;border-radius:5px;min-width:0;width:100%;font-size:14px;line-height:1.5;resize:vertical}.team-chat-compose .button,.team-chat-reply .button{background:#e30613;color:white;border-color:#e30613;font-size:13px;padding:10px 14px;min-height:42px}.team-chat-reply{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;padding:10px 14px;border-top:1px solid #eee}.team-chat-reply[hidden]{display:none}.team-chat-reply textarea{flex:1;max-height:130px;min-height:60px}.team-chat-reply>[data-chat-product]{flex-basis:100%}.team-chat-reply>[data-chat-product]:empty{display:none}.team-chat-product{display:flex;align-items:center;gap:4px 8px;flex-wrap:wrap;padding:8px;border:1px solid #e4e4e4;border-radius:5px;background:#fafafa;font-size:11px;overflow-wrap:anywhere}.team-chat-product span{flex:1;min-width:0}.team-chat-product .text-button{font-size:18px;padding:2px 6px}
.team-chat-error,.team-chat-connection{margin:0;padding:5px 14px;font-size:12px;color:#b80510;flex-shrink:0}.team-chat-error:empty,.team-chat-connection:empty{display:none}.team-chat-privacy{font-size:10px;color:#666;padding:7px 14px;margin:0;border-top:1px solid #eee;flex-shrink:0}
body:has(.pwa-install:not([hidden])) .team-chat-window{bottom:calc(202px + env(safe-area-inset-bottom));height:min(620px,calc(100dvh - 222px))}
.mobile-menu-open #team-chat{display:none}
@media(max-width:600px){.team-chat-launcher{right:calc(14px + env(safe-area-inset-right));bottom:calc(78px + env(safe-area-inset-bottom))}.team-chat-window{right:12px;bottom:calc(138px + env(safe-area-inset-bottom));width:calc(100vw - 24px);height:min(660px,calc(100dvh - 158px))}.team-chat-compose input,.team-chat-compose textarea,.team-chat-reply textarea,.team-chat-search input{font-size:16px}.team-chat-toolbar .button,.team-chat-toolbar .text-button,.team-chat-pages .text-button{min-height:40px}}

/* Editorial announcements and one-time important updates. */
.news-editor-note{padding:14px 18px;border-left:3px solid #e30613;background:#fff;font-size:14px;line-height:1.6;border-radius:4px;margin:0 0 18px}.news-card{margin-bottom:18px}.news-card-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px}.news-card-top time{margin-left:auto;color:#777}.news-status{border-radius:12px;padding:4px 10px;font-size:11px;font-weight:600;background:#eee}.news-status.is-draft{background:#fff1d9;color:#805800}.news-status.is-published{background:#eaf6ed;color:#28783c}.news-status.is-archived{background:#eee;color:#666}.news-important{color:#b80510;font-size:11px}.news-card h2{font-size:22px;margin:14px 0 10px;line-height:1.3;overflow-wrap:anywhere}.news-summary{white-space:pre-wrap;font-size:14px;line-height:1.7;margin:0 0 18px;max-width:900px}.news-card .crm-actions{flex-wrap:wrap}.news-card .button{font-size:13px;min-height:42px}.news-editor{margin-bottom:22px;border-top:3px solid #e30613}.news-editor form{display:grid;gap:16px}.news-editor label{display:grid;gap:7px;font-size:14px}.news-editor .check-label{display:flex;align-items:flex-start;gap:9px;line-height:1.6}.news-editor .check-label input{width:18px;height:18px;flex-shrink:0;margin-top:2px}.news-editor input,.news-editor textarea,.news-editor select{max-width:100%;width:100%;padding:11px;border:1px solid #ccc;border-radius:5px}.news-editor textarea{resize:vertical;line-height:1.6}.news-editor .muted{font-size:12px;line-height:1.6}.news-copy-fallback{display:block;width:100%;min-height:180px;padding:14px;line-height:1.6;border:1px solid #ccc;margin-top:14px}
.site-news-dialog{width:min(720px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #ddd;border-radius:12px;overflow:hidden;background:#fff;color:#161616;box-shadow:0 15px 60px #0003}.site-news-dialog[open]{display:flex;flex-direction:column}.site-news-dialog::backdrop{background:#0008}.news-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:22px 24px 18px;border-top:4px solid #e30613;border-bottom:1px solid #eee;flex-shrink:0}.news-dialog-heading span{display:block;color:#b80510;font-weight:600;font-size:12px;letter-spacing:.4px;margin-bottom:8px}.news-dialog-heading h2{font-size:25px;line-height:1.3;margin:0;overflow-wrap:anywhere}.news-dialog-heading .text-button{flex-shrink:0;min-width:44px;min-height:44px;padding:0;font-size:27px;line-height:1}.news-dialog-content{padding:8px 24px 22px;overflow:auto;overscroll-behavior:contain;min-height:0}.news-dialog-content>.muted{font-size:12px;margin:10px 0 20px}.news-body{font-size:16px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}.news-dialog-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding:16px 24px;border-top:1px solid #eee;flex-shrink:0}.news-dialog-actions .button{font-size:13px;min-height:44px;padding:10px 14px}.site-news-dialog>[data-news-dialog-error]{padding:0 24px;font-size:13px;margin:0 0 10px}.site-news-dialog>[data-news-dialog-error]:empty{display:none}
@media(max-width:600px){.news-dialog-heading{padding:16px 16px 14px}.news-dialog-heading h2{font-size:21px}.news-dialog-content{padding:6px 16px 18px}.news-body{font-size:15px}.news-dialog-actions{padding:12px 16px;gap:8px}.news-dialog-actions .button{flex:1;white-space:normal}.news-editor input,.news-editor textarea,.news-editor select{font-size:16px}.news-card h2{font-size:20px}.news-card-top time{margin-left:0}.news-card .button{min-height:44px}}
.team-chat-for-you{font-style:normal;font-size:10px;font-weight:600;color:#b80510;white-space:nowrap}.team-chat-quote-context{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 10px;padding:8px 14px;background:#fff5f6;border-bottom:1px solid #f1d5d8;font-size:12px}.team-chat-quote-context .text-button{font-size:12px;color:#b80510;white-space:normal}.team-chat-quote small{display:block;flex-basis:100%;font-size:11px;color:#666;line-height:1.5}.quote-history-actions [data-chat-share-quote]{grid-column:1/-1}
.team-chat-quote-context{overflow-wrap:anywhere}.team-chat-quote-context strong{min-width:0;max-width:100%}

.activity-client-row{cursor:pointer}.activity-client-row:hover{background:#fff1f2}.activity-client-link{display:block;width:100%;border:0;padding:0;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer}.activity-client-link:hover{background:transparent;color:#b80510}.activity-client-link:focus-visible{outline:2px solid #b80510;outline-offset:4px}.activity-client-link small{display:block}

.catalog-filter{position:relative;flex:1 1 200px;min-width:0;max-width:260px}.catalog-filter>label{display:block;font-size:12px;margin:0 0 5px}.catalog-filter-field{position:relative}.catalog-filter-field input{width:100%;padding-right:34px;min-height:44px}.catalog-filter-field input::-webkit-search-cancel-button{display:none}.catalog-filter-field button{position:absolute;right:3px;top:3px;bottom:3px;width:30px;border:0;background:transparent;color:#666;font-size:20px;padding:0}.catalog-filter-options{position:absolute;top:100%;left:0;right:0;min-width:100%;max-height:280px;overflow:auto;background:#fff;border:1px solid #ccc;border-radius:4px;box-shadow:0 8px 20px #0002;z-index:30}.catalog-filter-options [role=option]{padding:12px;font-size:14px;cursor:pointer;overflow-wrap:anywhere}.catalog-filter-options [role=option]:hover,.catalog-filter-options [role=option].active{background:#fbecee;color:#b80510}.catalog-filter-options [aria-selected=true]{font-weight:600}.catalog-filter-options p{padding:0 12px;font-size:13px}.catalog-toolbar{align-items:center}@media(max-width:850px){.catalog-filter{width:100%;max-width:none;flex:auto}}

/* Client lists: highlight the complete row while keeping names readable. */
#crm-results .crm-table tbody tr:has([data-client]):is(:hover,:focus-within)>td,
.activity-client-row:is(:hover,:focus-within)>td{background:#e9e9e9;color:#151515}
#crm-results .crm-table [data-client]:is(:hover,:focus-visible,:active),
.activity-client-row .activity-client-link:is(:hover,:focus-visible,:active){background:transparent;color:inherit;border-color:transparent;box-shadow:none;filter:none}
#crm-results .crm-table [data-client]:focus-visible,
.activity-client-row .activity-client-link:focus-visible{outline:2px solid #777;outline-offset:3px}
.activity-client-row:hover{background:#e9e9e9}

.rental-park-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}.rental-park-filters label{display:flex;flex-direction:column;gap:6px;font-size:13px;min-width:0}.rental-park-filters input,.rental-park-filters select{width:100%;min-width:0;min-height:44px}.rental-park-query{grid-column:1/-1}.rental-park-filters>button{align-self:end;min-height:44px}.rental-equipment-actions small{max-width:180px}@media(max-width:850px){.rental-park-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:540px){.rental-park-filters{grid-template-columns:1fr}}

.rental-identity-next{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px;margin:18px 0;border:1px solid #e30613;border-left:4px solid #e30613;border-radius:6px;background:#fff5f5}.rental-identity-next p{margin:8px 0 0}.rental-identity-next button{flex-shrink:0;max-width:100%;white-space:normal}.rental-identity-box{scroll-margin-top:24px}.rental-identity-highlight>summary{animation:rental-identity-pulse 1s ease-in-out 3;background:#fff0f0;border-radius:4px;padding:12px;outline:2px solid #e30613;outline-offset:2px}@keyframes rental-identity-pulse{50%{background:#f9d4d7;box-shadow:0 0 0 4px #e3061320}}@media(prefers-reduced-motion:reduce){.rental-identity-highlight>summary{animation:none}}@media(max-width:700px){.rental-identity-next{flex-direction:column;align-items:stretch}}

.rental-departure-box{scroll-margin-top:24px}

#rental-sign-form,.rental-remote{scroll-margin-top:24px}.rental-signature-highlight>h3{animation:rental-identity-pulse 1s ease-in-out 3;background:#fff0f0;border-radius:4px;padding:12px;outline:2px solid #e30613;outline-offset:2px}@media(prefers-reduced-motion:reduce){.rental-signature-highlight>h3{animation:none}}

@media(max-width:850px){
 .team-chat-launcher{width:44px;height:44px;min-height:44px;min-width:44px;padding:10px;border-radius:50%;justify-content:center;gap:0}
 .team-chat-launcher>span:not([data-chat-badge]){display:none}
 .team-chat-launcher>.team-chat-badge{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;padding:0 4px;font-size:10px}
}

@media(max-width:850px){
 .team-chat-window{font-size:16px;line-height:1.55;color:#202124}
 .team-chat-heading strong{font-size:18px;line-height:1.4}
 .team-chat-heading small{font-size:13px;line-height:1.5;color:#eee}
 .team-chat-presence{font-size:14px;line-height:1.5}
 .team-chat-presence>small{font-size:12px;color:#4b5563}
 .team-chat-toolbar strong{font-size:16px;line-height:1.45}
 .team-chat-toolbar .button,.team-chat-toolbar .text-button,.team-chat-search .button{font-size:14px;font-weight:600;color:#202124;min-height:44px}
 .team-chat-search input{font-size:16px;line-height:1.5;min-height:44px;color:#202124}
 .team-chat-window input::placeholder,.team-chat-window textarea::placeholder{color:#636b74;opacity:1}
 .team-chat-topic{padding:14px 12px}
 .team-chat-topic .team-chat-topic-title{font-size:16px;font-weight:600;line-height:1.5;color:#202124}
 .team-chat-topic>span:not(.team-chat-topic-title),.team-chat-topic time{font-size:14px;line-height:1.5;color:#4b5563;margin-top:6px}
 .team-chat-pages,.team-chat-thread-state,.team-chat-history-controls{font-size:14px;color:#30343b}
 .team-chat-pages .text-button,.team-chat-thread-state .text-button,.team-chat-history-controls .text-button{font-size:14px;color:#30343b;min-height:44px}
 .team-chat-pages .text-button:disabled{color:#767676;opacity:1}
 .team-chat-message-meta{font-size:13px;line-height:1.5;color:#4b5563}
 .team-chat-message-meta strong{font-size:14px;color:#202124}
 .team-chat-message p{font-size:16px;line-height:1.6;color:#202124}
 .team-chat-message.is-hidden p{font-size:14px;color:#555}
 .team-chat-message .team-chat-article,.team-chat-product{font-size:14px;line-height:1.5}
 .team-chat-moderate{font-size:13px;color:#555;min-height:44px}
 .team-chat-compose label{font-size:14px;line-height:1.5}
 .team-chat-compose input,.team-chat-compose textarea,.team-chat-reply textarea{font-size:16px;color:#202124}
 .team-chat-compose .button,.team-chat-reply .button{font-size:15px;min-height:44px}
 .team-chat-error,.team-chat-connection{font-size:14px;line-height:1.5}
 .team-chat-privacy{font-size:12px;line-height:1.5;color:#4b5563}
}
