:root{
  --blue:#064cb3;
  --blue2:#0a67d8;
  --navy:#071447;
  --ink:#111a37;
  --muted:#5f6d88;
  --line:#dbe7f6;
  --soft:#f3f8ff;
  --white:#fff;
  --green:#14a36f;
  --shadow:0 28px 90px rgba(6,35,94,.14);
  --radius:28px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;background:#fff;color:var(--ink);overflow-x:hidden}
a{text-decoration:none;color:inherit}img{max-width:100%;display:block}.container{width:min(1460px,calc(100% - 72px));margin-inline:auto}
body:before{content:"";position:fixed;inset:0;z-index:-3;background:radial-gradient(circle at 86% 12%,rgba(6,76,179,.13),transparent 34%),radial-gradient(circle at 10% 70%,rgba(10,103,216,.08),transparent 32%),linear-gradient(180deg,#fff 0%,#f7fbff 54%,#fff 100%)}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.86);backdrop-filter:blur(18px);border-bottom:1px solid rgba(219,231,246,.78)}
.topline{height:32px;background:linear-gradient(90deg,#06194f,#064cb3);color:#dceaff;display:flex;align-items:center;justify-content:center;gap:20px;font-size:.73rem;letter-spacing:.14em;text-transform:uppercase;font-weight:800}.topline span{opacity:.9}
.nav{height:82px;display:flex;align-items:center;gap:24px}.brand{display:flex;align-items:center;gap:12px;min-width:max-content}.brand-mark{width:56px;height:56px;border-radius:18px;background:#fff;box-shadow:0 12px 28px rgba(6,76,179,.12);display:grid;place-items:center;border:1px solid var(--line)}.brand-mark img{width:46px;max-height:42px;object-fit:contain}.brand-name{line-height:1.05}.brand-name strong{display:block;color:var(--navy);font-size:1rem;font-weight:950;text-transform:uppercase;letter-spacing:.02em}.brand-name small{display:block;color:var(--blue);font-size:.68rem;font-weight:900;letter-spacing:.14em;text-transform:uppercase;margin-top:4px}
.nav-links{display:flex;gap:6px;align-items:center;margin-left:auto}.nav-links a{padding:11px 14px;border-radius:999px;color:#2c395a;font-size:.92rem;font-weight:850}.nav-links a:hover,.nav-links a.active{background:#edf5ff;color:var(--blue)}.nav-cta{background:var(--blue);color:#fff;padding:14px 20px;border-radius:999px;font-weight:950;box-shadow:0 16px 36px rgba(6,76,179,.25)}.nav-toggle{display:none;border:0;background:#edf5ff;border-radius:14px;padding:11px 13px;color:var(--blue);font-weight:950}
.hero{padding:78px 0 86px;position:relative;overflow:hidden}.hero:before{content:"";position:absolute;inset:auto -12% -22% auto;width:760px;height:760px;border-radius:50%;background:rgba(6,76,179,.06);z-index:-1}.hero-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:74px;align-items:center}.eyebrow,.kicker{display:inline-flex;align-items:center;gap:12px;color:var(--blue);font-size:.78rem;font-weight:950;letter-spacing:.15em;text-transform:uppercase}.eyebrow:before,.kicker:before{content:"";width:54px;height:3px;border-radius:999px;background:var(--blue)}.kicker.light{color:#a7cfff}.kicker.light:before{background:#a7cfff}
h1{font-size:clamp(3.4rem,6vw,6.35rem);line-height:.92;letter-spacing:-.075em;color:var(--navy);margin:22px 0 26px}h2{font-size:clamp(2.15rem,4vw,4.2rem);line-height:1.02;letter-spacing:-.06em;color:var(--navy);margin:12px 0 18px}h3{margin:0 0 10px;color:var(--navy)}p{color:var(--muted);line-height:1.75;font-size:1rem}.lead{font-size:1.2rem;max-width:620px;color:#4f5d78}.hero-copy p{font-size:1.15rem;max-width:760px}.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin:30px 0 24px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;border-radius:999px;padding:15px 22px;font-weight:950;border:1px solid transparent;transition:.2s ease;cursor:pointer}.btn.primary{background:var(--blue);color:#fff;box-shadow:0 16px 35px rgba(6,76,179,.22)}.btn.primary:hover{background:#073887;transform:translateY(-2px)}.btn.ghost{background:#fff;color:var(--blue);border-color:#cfe0f7;box-shadow:0 14px 34px rgba(6,35,94,.07)}.btn.ghost:hover{border-color:var(--blue);transform:translateY(-2px)}.hero-tags{display:flex;flex-wrap:wrap;gap:10px}.hero-tags span{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:9px 13px;font-size:.86rem;font-weight:850;color:#45536f}.hero-tags span:before{content:"";width:7px;height:7px;background:var(--blue);border-radius:50%;opacity:.75}
.process-visual{background:#fff;border:1px solid var(--line);border-radius:34px;box-shadow:var(--shadow);padding:0;overflow:hidden;position:relative}.hero-grid > .process-visual{min-width:0}.process-visual:before{content:"";position:absolute;right:-170px;top:-170px;width:390px;height:390px;border-radius:50%;background:rgba(6,76,179,.08)}.process-head{background:linear-gradient(135deg,#062769,#064cb3);padding:28px 30px;color:#fff;position:relative}.process-head h3{font-size:1.75rem;margin:0 0 6px;color:#fff;letter-spacing:-.03em}.process-head p{margin:0;color:#cfe0ff}.process-title{text-align:center;padding:26px 26px 22px;border-bottom:1px solid var(--line);position:relative}.process-title h3{font-size:1.65rem;margin:0 0 6px}.process-title p{margin:0;color:#5f6d88}.process-steps{display:grid;grid-template-columns:repeat(7,1fr);gap:0;padding:34px 26px 28px;position:relative}.process-steps:after{content:"";position:absolute;left:60px;right:60px;bottom:36px;height:2px;background:#bcd5f8;z-index:0}.process-card{position:relative;z-index:1;min-height:276px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:0 14px 16px;text-align:center;box-shadow:0 12px 34px rgba(6,35,94,.08);display:flex;flex-direction:column;align-items:center}.step-num{width:42px;height:42px;border-radius:50%;background:var(--blue);color:#fff;display:grid;place-items:center;font-weight:950;margin:-21px 0 18px}.step-icon{width:58px;height:58px;border-radius:18px;background:#eff6ff;color:var(--blue);display:grid;place-items:center;font-size:1.65rem;margin-bottom:14px}.process-card h4{font-size:.96rem;line-height:1.25;margin:0 0 10px;color:var(--navy)}.process-card p{font-size:.78rem;line-height:1.45;margin:0;color:#5f6d88}.process-dot{position:absolute;bottom:-19px;width:13px;height:13px;border-radius:50%;background:var(--blue);box-shadow:0 0 0 6px #fff;z-index:2}.trust-panel{margin:0 26px 30px;background:linear-gradient(135deg,#eef6ff,#fff);border:1px solid var(--line);border-radius:22px;padding:22px 24px;display:grid;grid-template-columns:1fr auto;gap:22px;align-items:center}.trust-panel strong{font-size:1.15rem;color:var(--navy);display:block;margin-bottom:4px}.trust-panel p{margin:0;font-size:.92rem}.trust-icons{display:flex;gap:18px}.trust-icons span{min-width:82px;text-align:center;color:var(--blue);font-weight:900;font-size:.78rem}.trust-icons b{display:grid;place-items:center;margin:0 auto 7px;width:40px;height:40px;border-radius:50%;background:#fff;border:1px solid var(--line);font-size:1.25rem}
.section{padding:90px 0}.section.alt{background:linear-gradient(180deg,#f6faff,#fff)}.section-title{max-width:800px}.section-title.center{text-align:center;margin:0 auto 38px}.section-title p{font-size:1.08rem}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.card{background:#fff;border:1px solid var(--line);border-radius:26px;padding:26px;box-shadow:0 18px 50px rgba(6,35,94,.08)}.card .icon{width:52px;height:52px;border-radius:18px;background:#edf5ff;color:var(--blue);display:grid;place-items:center;font-size:1.45rem;margin-bottom:18px}.card p{margin-bottom:0}.proof-strip{display:grid;grid-template-columns:repeat(5,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:28px;overflow:hidden;box-shadow:var(--shadow)}.proof-strip article{background:#fff;padding:26px;text-align:center}.proof-strip strong{display:block;color:var(--blue);font-size:1.35rem;margin-bottom:8px}.proof-strip p{font-size:.88rem;margin:0}.split{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:center}.blue-panel{background:linear-gradient(135deg,#062769,#064cb3);border-radius:34px;padding:38px;color:#fff;box-shadow:var(--shadow)}.blue-panel h2,.blue-panel h3{color:#fff}.blue-panel p{color:#d8e8ff}.check-list{display:grid;gap:12px;margin-top:22px}.check-list span{display:flex;gap:10px;align-items:flex-start;color:#fff;font-weight:800}.check-list span:before{content:"✓";color:#fff;background:rgba(255,255,255,.16);width:24px;height:24px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto}.category-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}.category{background:#fff;border:1px solid var(--line);border-radius:24px;padding:22px;min-height:150px;box-shadow:0 16px 42px rgba(6,35,94,.08);transition:.2s}.category:hover{transform:translateY(-4px)}.category span{width:46px;height:46px;background:#edf5ff;border-radius:16px;color:var(--blue);display:grid;place-items:center;font-weight:950;margin-bottom:16px}.category h3{font-size:1rem;margin:0 0 8px}.category p{font-size:.87rem;margin:0}.page-hero{padding:76px 0;background:linear-gradient(135deg,#f8fbff,#eef6ff)}.page-hero-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:54px;align-items:center}.page-hero h1{font-size:clamp(3rem,5vw,5rem)}.page-panel{background:linear-gradient(135deg,#062769,#064cb3);color:#fff;border-radius:34px;padding:36px;min-height:230px;display:flex;flex-direction:column;justify-content:flex-end;box-shadow:var(--shadow)}.page-panel strong{font-size:2.25rem;letter-spacing:-.04em}.page-panel span{color:#d8e8ff;margin-top:8px}.process-list{display:grid;gap:16px}.process-row{display:grid;grid-template-columns:70px 1fr;gap:18px;background:#fff;border:1px solid var(--line);border-radius:24px;padding:20px;box-shadow:0 16px 42px rgba(6,35,94,.07)}.process-row b{width:54px;height:54px;border-radius:18px;background:#edf5ff;color:var(--blue);display:grid;place-items:center}.contact-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:30px;align-items:start}.form{background:#fff;border:1px solid var(--line);border-radius:30px;padding:28px;box-shadow:var(--shadow);display:grid;grid-template-columns:1fr 1fr;gap:14px}.field{display:grid;gap:7px}.field.full{grid-column:1/-1}.field label{font-weight:900;color:var(--navy)}input,select,textarea{border:1px solid var(--line);border-radius:15px;padding:14px 15px;font:inherit;background:#fbfdff}textarea{min-height:140px;resize:vertical}.form .btn{grid-column:1/-1}.contact-panel{background:#fff;border:1px solid var(--line);border-radius:30px;padding:28px;box-shadow:var(--shadow);position:sticky;top:130px}.contact-panel dl{display:grid;grid-template-columns:110px 1fr;gap:10px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:18px 0}.contact-panel dt{font-weight:850;color:#5f6d88}.contact-panel dd{margin:0;font-weight:900;color:var(--navy)}.footer{background:#051946;color:#fff;margin-top:70px}.footer-cta{padding:46px 0;border-bottom:1px solid rgba(255,255,255,.12);display:flex;justify-content:space-between;align-items:center;gap:24px}.footer-cta h2{color:#fff;font-size:clamp(2rem,3vw,3rem);margin:0}.footer-main{padding:46px 0;display:grid;grid-template-columns:1.4fr .8fr .8fr 1fr;gap:32px}.footer p,.footer a{color:#c2d5f4}.footer a{display:block;margin:9px 0}.footer-logo{display:flex!important;align-items:center;gap:12px;color:#fff!important;font-weight:950}.footer-logo img{width:56px;background:#fff;border-radius:18px;padding:6px}.footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding:20px 0;color:#91add6;font-size:.86rem}.reveal{opacity:0;transform:translateY(20px);transition:.65s ease}.reveal.visible{opacity:1;transform:none}
@media(max-width:1100px){.hero-grid,.page-hero-grid,.split,.contact-grid{grid-template-columns:1fr}.process-steps{grid-template-columns:repeat(2,1fr);gap:28px}.process-steps:after{display:none}.process-card{min-height:220px}.cards,.category-grid{grid-template-columns:repeat(2,1fr)}.proof-strip{grid-template-columns:repeat(2,1fr)}.footer-main{grid-template-columns:1fr 1fr}.trust-panel{grid-template-columns:1fr}.nav-links{display:none;position:fixed;top:114px;left:18px;right:18px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:24px;padding:14px;flex-direction:column}.nav-links.open{display:flex}.nav-toggle{display:inline-flex}.nav-cta{display:none}}
@media(max-width:680px){.topline{display:none}.nav{height:74px}.brand-name strong{font-size:.86rem}.brand-name small{font-size:.55rem}.hero{padding:50px 0}.container{width:min(100% - 28px,1460px)}h1{font-size:3.15rem}.hero-copy p{font-size:1rem}.process-visual{border-radius:24px}.process-steps{grid-template-columns:1fr;padding:28px 18px}.trust-panel{margin:0 18px 20px}.trust-icons{flex-wrap:wrap}.cards,.category-grid,.proof-strip,.footer-main,.form{grid-template-columns:1fr}.footer-cta{display:block}.footer-cta .btn{margin-top:18px}.page-hero{padding:56px 0}.contact-panel{position:static}}

/* Desktop hero spacing fix */
@media (min-width:1101px){
  .container{width:min(1560px,calc(100% - 64px));}
  .hero{padding:86px 0 104px;}
  .hero-grid{grid-template-columns:.82fr 1.18fr;gap:72px;align-items:center;}
  .hero-copy{min-width:0;}
  .hero-copy h1{font-size:clamp(3.2rem,5vw,5.75rem);max-width:680px;}
  .hero-copy p{max-width:720px;}
  .process-visual{width:100%;min-width:0;overflow:hidden;}
  .process-steps{grid-template-columns:repeat(7,minmax(0,1fr));padding:34px 20px 28px;}
  .process-card{min-width:0;min-height:250px;padding:0 10px 14px;}
  .process-card h4{font-size:.88rem;line-height:1.18;overflow-wrap:break-word;}
  .process-card p{font-size:.72rem;line-height:1.42;}
  .step-icon{width:52px;height:52px;font-size:1.38rem;}
  .step-num{width:40px;height:40px;margin:-20px 0 16px;}
  .process-steps:after{left:42px;right:42px;}
  .trust-panel{margin:0 20px 28px;}
  .trust-icons{gap:12px;}
  .trust-icons span{min-width:74px;font-size:.72rem;}
}

@media (min-width:1101px) and (max-width:1450px){
  .hero-grid{grid-template-columns:.9fr 1.1fr;gap:48px;}
  .hero-copy h1{font-size:clamp(3rem,4.5vw,5rem);}
  .process-steps{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;padding:34px 24px 28px;}
  .process-steps:after{display:none;}
  .process-card{min-height:205px;}
  .process-dot{display:none;}
}


/* Apparel catalogue section */
.product-category-grid .category-link{display:block;color:inherit;text-decoration:none}
.featured-category{background:linear-gradient(180deg,#fff,#f3f8ff);border-color:#cfe0f7}
.category em{display:inline-flex;margin-top:14px;color:var(--blue);font-style:normal;font-weight:950;font-size:.86rem}
.apparel-section{position:relative;overflow:hidden}.apparel-section:before{content:"";position:absolute;right:-160px;top:40px;width:420px;height:420px;border-radius:50%;background:rgba(6,76,179,.06)}
.apparel-layout{position:relative;z-index:1;display:grid;grid-template-columns:250px 1fr;gap:24px;align-items:start}.apparel-tabs{position:sticky;top:128px;background:#fff;border:1px solid var(--line);border-radius:26px;padding:12px;box-shadow:0 18px 50px rgba(6,35,94,.08);display:grid;gap:8px}.apparel-tab{border:0;background:#f1f7ff;color:#25385d;border-radius:18px;padding:15px 16px;text-align:left;font:inherit;font-weight:950;cursor:pointer;transition:.2s}.apparel-tab:hover,.apparel-tab.active{background:var(--blue);color:#fff;box-shadow:0 14px 30px rgba(6,76,179,.18)}
.apparel-panels{background:#fff;border:1px solid var(--line);border-radius:30px;box-shadow:var(--shadow);padding:28px}.apparel-panel{display:none}.apparel-panel.active{display:block}.apparel-panel-head{display:flex;justify-content:space-between;gap:22px;align-items:end;border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:22px}.apparel-panel-head h3{font-size:2rem;margin:0}.apparel-panel-head p{max-width:560px;margin:0;font-size:.98rem}.garment-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.garment-grid details{background:#fbfdff;border:1px solid var(--line);border-radius:20px;padding:0;overflow:hidden}.garment-grid summary{list-style:none;cursor:pointer;padding:17px 18px;font-weight:950;color:var(--navy);display:flex;justify-content:space-between;gap:15px;align-items:center}.garment-grid summary::-webkit-details-marker{display:none}.garment-grid summary:after{content:"+";width:28px;height:28px;border-radius:50%;background:#edf5ff;color:var(--blue);display:grid;place-items:center;flex:0 0 auto}.garment-grid details[open] summary:after{content:"−"}.garment-grid details p{border-top:1px solid var(--line);padding:15px 18px 18px;margin:0;font-size:.92rem;color:#5b6984;line-height:1.6;background:#fff}
@media(max-width:980px){.apparel-layout{grid-template-columns:1fr}.apparel-tabs{position:relative;top:0;grid-template-columns:repeat(4,1fr)}.apparel-tab{text-align:center}.apparel-panel-head{display:block}.apparel-panel-head p{max-width:none}.garment-grid{grid-template-columns:1fr}}
@media(max-width:680px){.apparel-tabs{grid-template-columns:1fr 1fr}.apparel-panels{padding:18px;border-radius:24px}.apparel-panel-head h3{font-size:1.55rem}.garment-grid summary{padding:15px}}
/* End apparel catalogue section */


/* Apparel item links and product detail pages */
.garment-grid details .item-link-list{border-top:1px solid var(--line);padding:16px 18px 18px;margin:0;background:#fff;display:flex;flex-wrap:wrap;gap:10px}
.item-chip{display:inline-flex;align-items:center;gap:8px;border:1px solid #cfe0f7;background:#f7fbff;color:var(--navy);border-radius:999px;padding:9px 12px;font-size:.86rem;font-weight:900;transition:.2s}
.item-chip:after{content:"→";color:var(--blue);font-weight:950}.item-chip:hover{background:var(--blue);color:#fff;transform:translateY(-2px);box-shadow:0 12px 26px rgba(6,76,179,.16)}.item-chip:hover:after{color:#fff}
.product-detail-hero{padding:72px 0 84px;background:linear-gradient(135deg,#f8fbff,#eef6ff);position:relative;overflow:hidden}.product-detail-hero:before{content:"";position:absolute;right:-190px;bottom:-240px;width:620px;height:620px;border-radius:50%;background:rgba(6,76,179,.07)}
.product-detail-grid{display:grid;grid-template-columns:1fr .78fr;gap:56px;align-items:center;position:relative;z-index:1}.product-detail-copy h1{font-size:clamp(3rem,5.2vw,5.8rem);line-height:.95;max-width:860px}.breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-bottom:24px;font-weight:850;color:#5f6d88}.breadcrumb a{color:var(--blue)}.breadcrumb span:before{content:"/";margin-right:9px;color:#a9b8d2}
.product-actions{display:flex;flex-wrap:wrap;gap:14px;margin:30px 0 22px}.application-tags{display:flex;flex-wrap:wrap;gap:10px}.application-tags span{border:1px solid var(--line);background:#fff;color:#45536f;border-radius:999px;padding:9px 13px;font-size:.86rem;font-weight:850}
.model-preview{background:#fff;border:1px solid var(--line);border-radius:34px;box-shadow:var(--shadow);padding:18px;position:relative;overflow:hidden}.model-preview-head{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:8px 8px 16px}.model-preview-head strong{font-size:1.05rem;color:var(--navy)}.model-preview-head span{font-size:.82rem;color:#5f6d88;font-weight:850}.model-svg{width:100%;height:auto;display:block;border-radius:26px;border:1px solid var(--line);background:#f6faff}.model-logo{position:absolute;right:32px;bottom:32px;width:64px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:7px;box-shadow:0 10px 30px rgba(6,35,94,.12)}
.product-spec-layout{display:grid;grid-template-columns:.82fr 1.18fr;gap:34px;align-items:start}.spec-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.spec-grid article{background:#fff;border:1px solid var(--line);border-radius:22px;padding:20px;box-shadow:0 14px 38px rgba(6,35,94,.07)}.spec-grid strong{display:block;color:var(--navy);font-size:.95rem;margin-bottom:8px}.spec-grid p{font-size:.9rem;line-height:1.55;margin:0;color:#5f6d88}.related-panel{background:#fff;border:1px solid var(--line);border-radius:30px;box-shadow:var(--shadow);padding:30px;display:grid;grid-template-columns:.75fr 1.25fr;gap:26px;align-items:center}.related-links{display:flex;flex-wrap:wrap;gap:10px}.related-links a{display:inline-flex;border:1px solid #cfe0f7;background:#f7fbff;color:var(--navy);border-radius:999px;padding:10px 13px;font-weight:900;font-size:.88rem}.related-links a:hover{background:var(--blue);color:#fff}
@media(max-width:1050px){.product-detail-grid,.product-spec-layout,.related-panel{grid-template-columns:1fr}.product-detail-copy h1{font-size:clamp(2.7rem,9vw,4.4rem)}.model-preview{max-width:620px;margin-inline:auto}.spec-grid{grid-template-columns:1fr}}
@media(max-width:680px){.product-detail-hero{padding:52px 0}.breadcrumb{font-size:.82rem}.product-actions .btn{width:100%}.model-preview-head{display:block}.model-logo{width:54px;right:24px;bottom:24px}.related-panel{padding:22px}.garment-grid details .item-link-list{padding:14px}.item-chip{font-size:.8rem}}
/* End apparel item links and product detail pages */

/* Real human apparel product visuals */
.model-preview{padding:14px;background:#fff;border:1px solid var(--line);border-radius:34px;box-shadow:var(--shadow);position:relative;overflow:hidden}.model-preview-head,.model-svg,.model-logo{display:none!important}.product-photo-card{position:relative;margin:0;min-height:610px;aspect-ratio:4/5;border:1px solid var(--line);border-radius:28px;overflow:hidden;background:linear-gradient(135deg,#eef6ff,#ffffff 42%,#e9f2ff);box-shadow:inset 0 0 0 1px rgba(255,255,255,.55)}.product-photo-card:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,18,70,.05) 0%,rgba(5,18,70,0) 40%,rgba(5,18,70,.74) 100%);z-index:2;pointer-events:none}.product-photo{width:100%;height:100%;object-fit:cover;object-position:center center;display:block;filter:saturate(1.02) contrast(1.02)}.photo-brand{position:absolute;left:20px;top:20px;z-index:4;display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.92);border:1px solid rgba(219,231,246,.86);border-radius:999px;padding:8px 14px 8px 8px;box-shadow:0 16px 40px rgba(6,35,94,.14);backdrop-filter:blur(12px)}.photo-brand img{width:36px;height:36px;object-fit:contain;background:#fff;border-radius:50%;padding:3px}.photo-brand span{text-transform:uppercase;letter-spacing:.08em;font-size:.78rem;font-weight:950;color:var(--navy)}.photo-watermark{position:absolute;right:22px;top:24px;z-index:3;color:rgba(255,255,255,.72);font-weight:950;letter-spacing:.16em;text-transform:uppercase;font-size:.72rem;text-shadow:0 2px 20px rgba(0,0,0,.22)}.photo-caption{position:absolute;left:20px;right:20px;bottom:20px;z-index:4;background:rgba(255,255,255,.92);border:1px solid rgba(255,255,255,.82);border-radius:22px;padding:18px 20px;box-shadow:0 20px 55px rgba(6,35,94,.2);backdrop-filter:blur(16px)}.photo-caption span{display:block;color:var(--blue);font-size:.78rem;font-weight:950;text-transform:uppercase;letter-spacing:.14em;margin-bottom:6px}.photo-caption strong{display:block;color:var(--navy);font-size:1.35rem;line-height:1.1;letter-spacing:-.03em}.photo-fallback{position:absolute;inset:0;z-index:1;display:none;place-items:center;text-align:center;padding:36px;background:radial-gradient(circle at 78% 16%,rgba(6,76,179,.14),transparent 30%),radial-gradient(circle at 5% 95%,rgba(6,76,179,.1),transparent 34%),linear-gradient(135deg,#f8fbff,#eef6ff)}.photo-fallback img{width:86px;background:#fff;border:1px solid var(--line);border-radius:24px;padding:10px;box-shadow:0 16px 42px rgba(6,35,94,.12);margin-bottom:16px}.photo-fallback strong{display:block;color:var(--navy);font-size:1.35rem;margin-bottom:8px}.photo-fallback span{display:block;color:#5f6d88;font-weight:850}.product-photo-card.image-failed .photo-fallback{display:grid}.product-photo-card.image-failed:before{display:none}.product-photo-card.image-failed .photo-watermark{color:rgba(6,76,179,.18);text-shadow:none}.product-photo-card.image-failed .photo-caption{background:#fff}.product-photo-card.image-failed{min-height:560px}@media(max-width:1050px){.product-photo-card{min-height:560px}}@media(max-width:680px){.model-preview{padding:10px;border-radius:26px}.product-photo-card{min-height:500px;border-radius:22px}.photo-brand{left:14px;top:14px}.photo-caption{left:14px;right:14px;bottom:14px;padding:15px}.photo-caption strong{font-size:1.08rem}.photo-watermark{display:none}}
/* Interactive selectable category cards */
.interactive-category-grid{align-items:stretch}
.interactive-category-grid .clickable-category{position:relative;display:flex;flex-direction:column;min-height:218px;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden;background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%);border:1px solid #cfe0f7;box-shadow:0 18px 54px rgba(6,35,94,.09);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease,background .22s ease}
.interactive-category-grid .clickable-category:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(6,76,179,.12),transparent 42%);opacity:0;transition:opacity .22s ease;pointer-events:none}
.interactive-category-grid .clickable-category:hover,.interactive-category-grid .clickable-category:focus-visible{transform:translateY(-8px);border-color:var(--blue);box-shadow:0 28px 80px rgba(6,76,179,.2);outline:none;background:#fff}
.interactive-category-grid .clickable-category:hover:before,.interactive-category-grid .clickable-category:focus-visible:before{opacity:1}
.interactive-category-grid .clickable-category h3{padding-right:46px;position:relative;z-index:1}
.interactive-category-grid .clickable-category p{position:relative;z-index:1;margin-bottom:0}
.interactive-category-grid .clickable-category>span{position:relative;z-index:1}
.card-arrow{position:absolute;top:22px;right:22px;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--blue);color:#fff;font-size:1.05rem;box-shadow:0 14px 30px rgba(6,76,179,.24);transition:transform .22s ease,background .22s ease;z-index:2}
.clickable-category:hover .card-arrow,.clickable-category:focus-visible .card-arrow{transform:translateX(4px);background:#073887}
.card-click-label{position:relative;z-index:1;display:inline-flex;width:max-content;margin:12px 0 14px;padding:7px 10px;border-radius:999px;background:#edf5ff;color:var(--blue);font-size:.68rem;font-weight:950;letter-spacing:.1em;text-transform:uppercase;border:1px solid #dbe7f6}
.category .card-action{position:relative;z-index:1;display:inline-flex;width:max-content;margin-top:auto;padding-top:18px;color:var(--blue);font-style:normal;font-weight:950;font-size:.9rem;transition:transform .22s ease;letter-spacing:0}
.clickable-category:hover .card-action,.clickable-category:focus-visible .card-action{transform:translateX(4px)}
.product-category-grid .clickable-category:first-child{background:linear-gradient(180deg,#ffffff 0%,#eef6ff 100%);border-color:#aac8f4}
@media(max-width:680px){.interactive-category-grid .clickable-category{min-height:190px}.card-arrow{width:38px;height:38px}}


/* 2026 redesign: cleaner apparel catalogue layout */
.catalogue-redesign .section-title.center{max-width:860px;margin-bottom:44px}
.catalogue-redesign .section-title.center h2{max-width:780px;margin-inline:auto}
.catalogue-redesign .section-title.center p{max-width:780px;margin-inline:auto}
.catalogue-redesign .apparel-layout{grid-template-columns:220px 1fr;gap:28px;align-items:start}
.catalogue-redesign .apparel-tabs{position:sticky;top:122px;padding:14px;border-radius:28px;background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%);border:1px solid #d7e4f5;box-shadow:0 22px 64px rgba(6,35,94,.08);gap:10px}
.catalogue-redesign .apparel-tab{position:relative;display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-radius:18px;background:#fff;border:1px solid #e0ebf8;color:#2a3a5f;font-size:.98rem;font-weight:900;box-shadow:0 8px 22px rgba(6,35,94,.04);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease,background .2s ease,color .2s ease}
.catalogue-redesign .apparel-tab:after{content:"→";font-size:.92rem;color:#8ea5c8;transition:transform .2s ease,color .2s ease}
.catalogue-redesign .apparel-tab:hover{transform:translateX(3px);border-color:#bfd6f3;box-shadow:0 16px 30px rgba(6,35,94,.08)}
.catalogue-redesign .apparel-tab.active{background:linear-gradient(135deg,#064cb3,#3456c4);border-color:transparent;color:#fff;box-shadow:0 18px 36px rgba(6,76,179,.22)}
.catalogue-redesign .apparel-tab.active:after{color:#fff;transform:translateX(3px)}
.catalogue-redesign .apparel-panels{padding:34px;border-radius:34px;background:rgba(255,255,255,.88);border:1px solid #dfe9f7;box-shadow:0 30px 90px rgba(6,35,94,.08)}
.catalogue-redesign .apparel-panel-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:22px;align-items:end;padding-bottom:24px;margin-bottom:26px;border-bottom:1px solid #e5edf8}
.catalogue-redesign .apparel-panel-head h3{font-size:2.45rem;letter-spacing:-.045em;margin:0}
.catalogue-redesign .apparel-panel-head p{max-width:520px;margin:0;padding:12px 16px;background:#f7fbff;border:1px solid #e1ebf7;border-radius:18px;font-size:.95rem;line-height:1.6}
.catalogue-redesign .garment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.catalogue-redesign .garment-card{background:#fff;border:1px solid #e3ecf8;border-radius:24px;padding:20px;box-shadow:0 18px 46px rgba(6,35,94,.06);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;position:relative;overflow:hidden}
.catalogue-redesign .garment-card:before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:linear-gradient(90deg,#064cb3,#74a7ef);opacity:.9}
.catalogue-redesign .garment-card:hover{transform:translateY(-4px);box-shadow:0 26px 56px rgba(6,35,94,.1);border-color:#c9dcf4}
.catalogue-redesign .garment-card-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px;padding-top:4px}
.catalogue-redesign .garment-card-head h4{margin:0;color:var(--navy);font-size:1.12rem;letter-spacing:-.02em}
.catalogue-redesign .garment-count{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;background:#edf5ff;color:var(--blue);border:1px solid #d7e7fb;border-radius:999px;padding:7px 11px;font-size:.74rem;font-weight:950;letter-spacing:.04em;text-transform:uppercase}
.catalogue-redesign .item-link-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.catalogue-redesign .item-link-tile{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:12px 14px;background:#f9fbff;border:1px solid #e1eaf7;border-radius:16px;color:#1f2d51;font-size:.9rem;font-weight:850;line-height:1.3;transition:transform .18s ease,background .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease}
.catalogue-redesign .item-link-tile:after{content:"→";color:var(--blue);font-size:.92rem;font-weight:950;transition:transform .18s ease,color .18s ease}
.catalogue-redesign .item-link-tile:hover{background:#eef6ff;border-color:#c8dbf4;color:var(--blue);transform:translateY(-1px);box-shadow:0 10px 22px rgba(6,76,179,.10)}
.catalogue-redesign .item-link-tile:hover:after{transform:translateX(3px)}
@media(max-width:1180px){.catalogue-redesign .apparel-layout{grid-template-columns:1fr}.catalogue-redesign .apparel-tabs{position:relative;top:0;grid-template-columns:repeat(4,minmax(0,1fr))}.catalogue-redesign .apparel-tab{justify-content:center;text-align:center}.catalogue-redesign .apparel-panel-head{grid-template-columns:1fr}.catalogue-redesign .apparel-panel-head p{max-width:none}}
@media(max-width:860px){.catalogue-redesign .garment-grid,.catalogue-redesign .item-link-grid{grid-template-columns:1fr}.catalogue-redesign .apparel-panel-head h3{font-size:2rem}}
@media(max-width:680px){.catalogue-redesign .apparel-panels{padding:20px;border-radius:24px}.catalogue-redesign .apparel-tabs{grid-template-columns:1fr 1fr}.catalogue-redesign .apparel-tab{padding:14px 15px;font-size:.92rem}.catalogue-redesign .apparel-panel-head{padding-bottom:18px;margin-bottom:20px}.catalogue-redesign .apparel-panel-head h3{font-size:1.7rem}.catalogue-redesign .garment-card{padding:16px;border-radius:20px}.catalogue-redesign .item-link-tile{padding:11px 12px;font-size:.86rem}}
/* end 2026 redesign */


/* Premium showroom redesign 2026 */
.page-hero{padding:92px 0 84px;background:linear-gradient(135deg,#ffffff 0%,#f6f9ff 52%,#eef4ff 100%)}
.page-panel{background:radial-gradient(circle at 20% 0%,rgba(255,255,255,.22),transparent 30%),linear-gradient(135deg,#06194f,#0b2d76 58%,#064cb3);border:1px solid rgba(255,255,255,.16)}
.product-category-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.product-category-grid .clickable-category{min-height:230px;border-radius:28px;padding:26px;background:linear-gradient(180deg,#fff 0%,#f9fbff 100%);border-color:#dde8f6;box-shadow:0 20px 54px rgba(6,35,94,.07)}.product-category-grid .clickable-category:hover{transform:translateY(-6px);box-shadow:0 30px 76px rgba(6,35,94,.13);border-color:#b8cff0}.product-category-grid .clickable-category>span{width:44px;height:44px;border-radius:16px;background:#f0f5ff;color:#064cb3}.product-category-grid .card-click-label{display:none}.product-category-grid .card-arrow{width:38px;height:38px;top:24px;right:24px;background:#0d1a49}.product-category-grid .category h3{font-size:1.08rem;letter-spacing:-.02em}.product-category-grid .category p{font-size:.91rem;line-height:1.65}.product-category-grid .card-action{font-size:.86rem;letter-spacing:.02em;text-transform:uppercase}
.premium-catalogue{position:relative;padding-top:110px;background:linear-gradient(180deg,#f7fbff 0%,#ffffff 45%,#f8fbff 100%)}.premium-catalogue:before{content:"";position:absolute;inset:50px auto auto 50%;transform:translateX(-50%);width:min(1180px,calc(100% - 72px));height:1px;background:linear-gradient(90deg,transparent,#c7d8ef,transparent)}.premium-catalogue .section-title.center{max-width:920px;margin-bottom:46px}.premium-catalogue .section-title.center h2{font-size:clamp(2.4rem,4.2vw,4.8rem);letter-spacing:-.065em}.premium-catalogue .section-title.center p{max-width:820px;margin-inline:auto;color:#53617f}.premium-catalogue .apparel-layout{display:grid;grid-template-columns:1fr;gap:22px;max-width:1280px;margin-inline:auto}.premium-catalogue .apparel-tabs{position:relative;top:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;background:rgba(255,255,255,.76);border:1px solid #dce7f5;border-radius:999px;padding:8px;box-shadow:0 20px 58px rgba(6,35,94,.07);backdrop-filter:blur(14px)}.premium-catalogue .apparel-tab{display:flex;align-items:center;justify-content:center;gap:10px;border-radius:999px;padding:15px 20px;background:transparent;border:0;box-shadow:none;color:#39486a;text-align:center;font-size:.96rem;letter-spacing:.01em}.premium-catalogue .apparel-tab:before{content:"";width:7px;height:7px;border-radius:50%;background:#b2c5e1}.premium-catalogue .apparel-tab:after{display:none}.premium-catalogue .apparel-tab:hover{transform:none;background:#f3f7ff;color:#064cb3}.premium-catalogue .apparel-tab.active{background:linear-gradient(135deg,#071447,#123b93);color:#fff;box-shadow:0 18px 38px rgba(7,20,71,.2)}.premium-catalogue .apparel-tab.active:before{background:#8fb8ff}.premium-catalogue .apparel-panels{position:relative;padding:38px;border-radius:36px;background:rgba(255,255,255,.92);border:1px solid #dce7f5;box-shadow:0 34px 90px rgba(6,35,94,.09);overflow:hidden}.premium-catalogue .apparel-panels:before{content:"";position:absolute;right:-180px;top:-220px;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle,rgba(6,76,179,.1),transparent 68%);pointer-events:none}.premium-catalogue .apparel-panel{position:relative;z-index:1}.premium-catalogue .apparel-panel-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px;align-items:end;margin-bottom:28px;padding-bottom:26px;border-bottom:1px solid #e5edf8}.premium-catalogue .panel-label{display:inline-flex;margin-bottom:12px;color:#064cb3;font-size:.75rem;font-weight:950;letter-spacing:.16em;text-transform:uppercase}.premium-catalogue .apparel-panel-head h3{font-size:clamp(2.35rem,4vw,4.35rem);line-height:.94;letter-spacing:-.065em;margin:0;color:#071447}.premium-catalogue .apparel-panel-head p{max-width:620px;margin:16px 0 0;color:#53617f;font-size:1rem;line-height:1.7}.premium-catalogue .panel-metrics{display:grid;grid-template-columns:repeat(3,110px);gap:10px}.premium-catalogue .panel-metrics span{background:#f7fbff;border:1px solid #e0eaf7;border-radius:22px;padding:16px 14px;text-align:center}.premium-catalogue .panel-metrics b{display:block;color:#071447;font-size:1.2rem;letter-spacing:-.03em}.premium-catalogue .panel-metrics em{display:block;margin-top:4px;color:#64728d;font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;font-style:normal;font-weight:850;line-height:1.3}.premium-catalogue .garment-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.premium-catalogue .premium-program-card{background:#fff;border:1px solid #e1eaf6;border-radius:28px;overflow:hidden;box-shadow:0 18px 50px rgba(6,35,94,.06);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;background-image:linear-gradient(180deg,#fff 0%,#fbfdff 100%)}.premium-catalogue .premium-program-card:hover{transform:translateY(-5px);box-shadow:0 28px 72px rgba(6,35,94,.11);border-color:#c3d7f0}.premium-catalogue .premium-program-card[open]{grid-column:span 2;border-color:#a9c5ec;box-shadow:0 32px 80px rgba(6,76,179,.14)}.premium-catalogue .program-summary{list-style:none;cursor:pointer;padding:22px;min-height:235px;display:flex;flex-direction:column;position:relative}.premium-catalogue .program-summary::-webkit-details-marker{display:none}.premium-catalogue .program-top{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:24px}.premium-catalogue .program-index{width:42px;height:42px;border-radius:16px;background:#f1f6ff;color:#064cb3;display:grid;place-items:center;font-size:.82rem;font-weight:950}.premium-catalogue .program-count{display:inline-flex;align-items:center;border:1px solid #deebfb;background:#f7fbff;color:#064cb3;border-radius:999px;padding:7px 10px;font-size:.68rem;font-weight:950;text-transform:uppercase;letter-spacing:.08em}.premium-catalogue .program-summary h4{font-size:1.28rem;letter-spacing:-.035em;margin:0 0 12px;color:#071447}.premium-catalogue .program-summary p{font-size:.91rem;line-height:1.62;margin:0;color:#5d6b86}.premium-catalogue .program-cta{margin-top:auto;display:flex;align-items:center;justify-content:space-between;color:#064cb3;font-size:.78rem;font-weight:950;text-transform:uppercase;letter-spacing:.1em;padding-top:22px}.premium-catalogue .program-cta:after{content:"+";width:34px;height:34px;border-radius:50%;background:#eef5ff;color:#064cb3;display:grid;place-items:center;font-size:1.1rem;transition:.2s ease}.premium-catalogue details[open] .program-cta:after{content:"−";background:#064cb3;color:#fff}.premium-catalogue .style-drawer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 22px 22px}.premium-catalogue .style-link{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:12px 14px;background:#f8fbff;border:1px solid #dfe9f7;border-radius:16px;color:#13204a;font-weight:850;font-size:.9rem;transition:.18s ease}.premium-catalogue .style-link:after{content:"→";color:#064cb3}.premium-catalogue .style-link:hover{background:#071447;color:#fff;border-color:#071447;transform:translateY(-1px);box-shadow:0 12px 26px rgba(7,20,71,.18)}.premium-catalogue .style-link:hover:after{color:#fff}
@media(max-width:1220px){.product-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.premium-catalogue .garment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.premium-catalogue .premium-program-card[open]{grid-column:span 2}.premium-catalogue .apparel-panel-head{grid-template-columns:1fr}.premium-catalogue .panel-metrics{grid-template-columns:repeat(3,minmax(0,1fr));max-width:560px}}
@media(max-width:780px){.product-category-grid{grid-template-columns:1fr}.premium-catalogue{padding-top:76px}.premium-catalogue .apparel-tabs{border-radius:28px;grid-template-columns:repeat(2,minmax(0,1fr))}.premium-catalogue .apparel-panels{padding:22px;border-radius:28px}.premium-catalogue .garment-grid{grid-template-columns:1fr}.premium-catalogue .premium-program-card[open]{grid-column:span 1}.premium-catalogue .program-summary{min-height:auto}.premium-catalogue .style-drawer{grid-template-columns:1fr}.premium-catalogue .panel-metrics{grid-template-columns:1fr}.premium-catalogue .apparel-panel-head h3{font-size:2.15rem}}
/* End premium showroom redesign 2026 */
.premium-catalogue .premium-program-card:before{display:none!important;content:none!important}

/* Clean premium card refinement */
.premium-catalogue .premium-program-card > .program-summary:after{display:none!important}
.premium-catalogue .program-top{justify-content:flex-start;margin-bottom:18px}
.premium-catalogue .program-summary{min-height:165px;justify-content:space-between}
.premium-catalogue .program-summary h4{margin:0;color:#071447;font-size:1.34rem;line-height:1.2}
.premium-catalogue .program-cta{padding-top:0;margin-top:22px}

/* Product detail navigation refinement */
.btn.next-product{background:#071447;color:#fff;border-color:#071447;box-shadow:0 16px 35px rgba(7,20,71,.18)}
.btn.next-product:hover{background:#0c2b78;border-color:#0c2b78;transform:translateY(-2px)}
.product-actions .next-product{margin-left:2px}
@media(max-width:680px){.product-actions .next-product{margin-left:0}}


/* TR Global Client Portal */
.portal-hero{padding:110px 0 36px;background:linear-gradient(180deg,#f8fbff 0%,#fff 100%);border-bottom:1px solid #e5edf8}.portal-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:34px;align-items:end}.portal-hero h1,.auth-copy h1{font-size:clamp(3rem,6vw,6.2rem);line-height:.92;letter-spacing:-.07em;margin:0;color:#071447}.portal-hero .lead,.auth-copy .lead{max-width:760px;color:#53617f;line-height:1.75}.portal-status-card{background:#fff;border:1px solid #dce7f5;border-radius:30px;padding:30px;box-shadow:0 28px 80px rgba(6,35,94,.08)}.portal-status-card span{display:block;color:#064cb3;font-weight:950;text-transform:uppercase;letter-spacing:.12em;font-size:.74rem;margin-bottom:10px}.portal-status-card strong{display:block;color:#071447;font-size:1.45rem;letter-spacing:-.03em}.portal-section{padding-top:42px}.portal-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:28px;align-items:start}.portal-sidebar{position:sticky;top:112px;background:#fff;border:1px solid #dce7f5;border-radius:30px;padding:16px;box-shadow:0 28px 80px rgba(6,35,94,.08)}.portal-user-card{display:grid;gap:5px;padding:16px;margin-bottom:12px;border-bottom:1px solid #edf3fb}.portal-avatar{width:48px;height:48px;border-radius:16px;background:#071447;color:#fff;display:grid;place-items:center;font-weight:950}.portal-user-card strong{color:#071447}.portal-user-card small{color:#64728d}.portal-sidebar a,.portal-sidebar button{width:100%;display:flex;align-items:center;justify-content:space-between;border:1px solid #e2ebf7;background:#f8fbff;color:#071447;border-radius:16px;min-height:48px;padding:0 14px;margin:8px 0;font-weight:850;text-align:left;cursor:pointer;font-family:inherit}.portal-sidebar a:hover,.portal-sidebar button:hover{background:#071447;color:#fff;border-color:#071447}.portal-content{min-width:0}.portal-toolbar{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:22px}.portal-toolbar h2{margin:0;color:#071447;font-size:2rem;letter-spacing:-.04em}.portal-toolbar p{margin:6px 0 0;color:#64728d}.portal-warning,.mini-callout{border:1px solid #dce7f5;background:#f8fbff;border-radius:22px;padding:18px 20px;margin-bottom:20px;color:#53617f}.portal-warning strong,.mini-callout strong{display:block;color:#071447;margin-bottom:5px}.mini-callout a{display:inline-block;margin-top:10px;color:#064cb3;font-weight:900}.portal-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.portal-metrics article{background:#fff;border:1px solid #dce7f5;border-radius:26px;padding:22px;box-shadow:0 18px 50px rgba(6,35,94,.06)}.portal-metrics span{display:block;color:#64728d;font-size:.78rem;font-weight:900;text-transform:uppercase;letter-spacing:.1em}.portal-metrics strong{display:block;color:#071447;font-size:2.8rem;line-height:1;margin-top:12px;letter-spacing:-.05em}.portal-grid-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.portal-card{background:#fff;border:1px solid #dce7f5;border-radius:30px;padding:24px;box-shadow:0 28px 80px rgba(6,35,94,.08)}.portal-card-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:16px}.portal-card h3,.portal-card-head h3{margin:0;color:#071447;font-size:1.35rem;letter-spacing:-.03em}.portal-card-head a,.portal-card-head span{color:#064cb3;font-weight:900}.portal-list{display:grid;gap:12px}.portal-item{border:1px solid #e2ebf7;background:#f8fbff;border-radius:18px;padding:14px 16px;display:grid;gap:5px}.portal-item strong{color:#071447}.portal-item span{color:#64728d}.portal-item em,.pill{font-style:normal;display:inline-flex;justify-self:start;background:#eef5ff;color:#064cb3;border:1px solid #dce7f5;border-radius:999px;padding:5px 9px;font-size:.74rem;font-weight:900}.portal-empty{border:1px dashed #cbd9ec;border-radius:18px;padding:22px;color:#64728d;background:#fbfdff}.portal-message{border:1px solid #e2ebf7;background:#fff;border-radius:22px;padding:18px}.portal-message strong{display:block;color:#071447}.portal-message span{display:block;color:#64728d;margin:6px 0 12px}.portal-message p{margin:0;color:#53617f;line-height:1.65}.portal-form{display:grid;gap:14px}.portal-form label,.auth-card label{display:grid;gap:8px;color:#071447;font-weight:850}.portal-form input,.portal-form select,.portal-form textarea,.auth-card input,.auth-card select{width:100%;border:1px solid #dce7f5;background:#f8fbff;border-radius:16px;min-height:52px;padding:0 14px;font:inherit;color:#071447}.portal-form textarea{min-height:130px;padding-top:14px;resize:vertical}.portal-alert{border-radius:16px;padding:12px 14px;background:#eef5ff;color:#064cb3;border:1px solid #dce7f5;margin:0}.portal-alert[data-type="error"]{background:#fff1f1;color:#9b1c1c;border-color:#ffd2d2}.portal-alert[data-type="success"]{background:#eefdf4;color:#136b35;border-color:#cbf1d9}.portal-table-wrap{overflow:auto}.portal-table{width:100%;border-collapse:collapse;min-width:720px}.portal-table th,.portal-table td{text-align:left;padding:14px;border-bottom:1px solid #e5edf8;color:#53617f}.portal-table th{color:#071447;font-size:.8rem;text-transform:uppercase;letter-spacing:.08em}.auth-section{padding:118px 0;background:linear-gradient(180deg,#f8fbff 0%,#fff 100%)}.auth-grid{display:grid;grid-template-columns:minmax(0,1fr) 460px;gap:44px;align-items:center}.auth-card{background:#fff;border:1px solid #dce7f5;border-radius:34px;padding:34px;box-shadow:0 34px 90px rgba(6,35,94,.1);display:grid;gap:16px}.auth-card h2{font-size:2rem;margin:0;color:#071447;letter-spacing:-.04em}.auth-card small{color:#64728d;line-height:1.6}.auth-proof{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.auth-proof span{background:#fff;border:1px solid #dce7f5;border-radius:999px;padding:10px 14px;color:#071447;font-weight:850}.form-actions{display:flex;gap:12px;flex-wrap:wrap}.portal-inquiry-callout{align-items:center}.admin-hero{background:linear-gradient(180deg,#f6f8ff 0%,#fff 100%)}
@media(max-width:1100px){.portal-hero-grid,.portal-layout,.auth-grid{grid-template-columns:1fr}.portal-sidebar{position:relative;top:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.portal-sidebar a,.portal-sidebar button{margin:0}.portal-user-card{grid-column:1/-1}.portal-grid-two{grid-template-columns:1fr}.portal-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.portal-hero{padding-top:86px}.portal-hero h1,.auth-copy h1{font-size:3rem}.portal-sidebar{grid-template-columns:1fr}.portal-metrics{grid-template-columns:1fr}.portal-card{padding:18px;border-radius:24px}.portal-toolbar{display:grid}.auth-section{padding:86px 0}.auth-card{padding:22px}.form-actions .btn{width:100%;justify-content:center}}
/* End TR Global Client Portal */


/* Client account access + no-flicker portal protection */
body[data-portal-page]:not([data-portal-page="login"]):not([data-portal-page="register"]):not(.portal-ready) main{opacity:0;visibility:hidden;pointer-events:none}
body.portal-ready main{opacity:1;visibility:visible;transition:opacity .18s ease}
.account-access-section{padding-top:36px;padding-bottom:36px;background:#fff}.account-access-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px;align-items:center;background:linear-gradient(135deg,#071447 0%,#233fc2 100%);border-radius:34px;padding:34px 38px;box-shadow:0 32px 90px rgba(7,20,71,.18);color:#fff}.account-access-card .kicker{color:#dce7ff}.account-access-card h2{margin:8px 0 10px;color:#fff;font-size:clamp(2rem,3vw,3.2rem);letter-spacing:-.05em}.account-access-card p{margin:0;color:#dfe7ff;max-width:700px;line-height:1.7}.account-access-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end}.account-access-card .btn.ghost{color:#fff;border-color:rgba(255,255,255,.35);background:rgba(255,255,255,.08)}.account-access-card .btn.primary{background:#fff;color:#071447;border-color:#fff}.client-login-link{white-space:nowrap}
@media(max-width:850px){.account-access-card{grid-template-columns:1fr;padding:28px}.account-access-actions{justify-content:flex-start}.hero-actions .client-login-link{width:100%;justify-content:center}}


/* Adrian assistant polish update */
.adrian-launch{min-width:190px;height:74px;padding:0 20px;box-shadow:0 24px 70px rgba(7,20,71,.36)}
.adrian-launch-icon{width:48px;height:48px}.adrian-launch-icon svg{width:28px;height:28px}.adrian-launch-copy strong{font-size:1.08rem}.adrian-launch-copy small{font-size:.76rem;letter-spacing:.08em}
.adrian-panel{width:min(460px,calc(100vw - 30px));height:640px;max-height:calc(100vh - 125px)}
.adrian-msg{font-size:1rem;line-height:1.6}.adrian-quick{gap:10px;padding:13px 16px}.adrian-quick button{font-size:.82rem;padding:9px 12px}.adrian-form input{font-size:1rem}.adrian-form button{min-width:84px}
@media(max-width:640px){.adrian-launch{min-width:172px;height:68px}.adrian-panel{height:560px;bottom:84px}.adrian-launch-copy strong{font-size:1rem}}

/* Production order manager */
.production-top-grid{display:grid;grid-template-columns:minmax(320px,420px) minmax(0,1fr);gap:22px;margin-bottom:22px}.production-item-form{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:22px}.production-item-form h3,.production-item-form .portal-card-head,.production-item-form .portal-alert,.production-item-form button{grid-column:1/-1}.production-batch-list{max-height:460px;overflow:auto;padding-right:4px}.production-batch-card{width:100%;border:1px solid #dce7f5;background:#f8fbff;border-radius:20px;padding:16px;text-align:left;display:grid;gap:8px;cursor:pointer;font-family:inherit;transition:.18s ease}.production-batch-card:hover,.production-batch-card.active{background:#071447;border-color:#071447;color:#fff;transform:translateY(-1px)}.production-batch-card span{display:flex;gap:10px;align-items:center;justify-content:space-between}.production-batch-card strong{font-size:1rem}.production-batch-card em{font-style:normal;font-weight:850;color:inherit;opacity:.9}.production-batch-card small{color:inherit;opacity:.72;line-height:1.5}.production-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:0 0 18px}.production-summary article{border:1px solid #e2ebf7;background:#f8fbff;border-radius:18px;padding:14px}.production-summary span{display:block;color:#64728d;font-size:.72rem;font-weight:950;text-transform:uppercase;letter-spacing:.08em;margin-bottom:8px}.production-summary strong{display:block;color:#071447;font-size:.95rem}.production-tracker-card{margin-top:22px}.production-table-wrap{max-height:680px}.production-table{min-width:1700px}.production-table th{position:sticky;top:0;background:#fff;z-index:2}.production-table td{vertical-align:middle}.production-table td strong{color:#071447}.stage-select{border:1px solid #dce7f5;border-radius:999px;min-height:38px;padding:0 10px;font-family:inherit;font-weight:900;cursor:pointer;background:#fff;color:#071447;min-width:130px}.stage-incomplete,.status-incomplete{background:#fff5f5!important;color:#9b1c1c!important;border-color:#ffd2d2!important}.stage-in_progress,.status-in_progress{background:#fff8e7!important;color:#8a5a00!important;border-color:#ffe4a8!important}.stage-completed,.status-completed{background:#eefdf4!important;color:#136b35!important;border-color:#cbf1d9!important}.production-status{display:inline-flex;align-items:center;justify-content:center;text-transform:capitalize;border:1px solid #dce7f5;border-radius:999px;padding:7px 10px;font-size:.74rem;font-weight:950;white-space:nowrap}.portal-form .portal-card-head{margin-bottom:0}.production-admin .portal-toolbar .btn{white-space:nowrap}
@media(max-width:1100px){.production-top-grid{grid-template-columns:1fr}.production-item-form{grid-template-columns:repeat(2,minmax(0,1fr))}.production-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.production-item-form{grid-template-columns:1fr}.production-summary{grid-template-columns:1fr}.production-table{min-width:1300px}}

.portal-sidebar a.active{background:#071447;color:#fff;border-color:#071447;box-shadow:0 12px 26px rgba(7,20,71,.15)}

/* Production portal UI cleanup */
body[data-production-page] .compact-portal-hero{padding:58px 0 28px}
body[data-production-page] .portal-hero h1{font-size:clamp(2.6rem,4.8vw,5.2rem)}
body[data-production-page] .portal-section{padding-top:28px}
body[data-production-page] .portal-layout{grid-template-columns:250px minmax(0,1fr);gap:24px;align-items:start}
body[data-production-page] .portal-sidebar{top:108px;max-height:calc(100vh - 126px);overflow:auto;border-radius:26px;padding:14px}
body[data-production-page] .portal-sidebar a,
body[data-production-page] .portal-sidebar button{min-height:46px;border-radius:14px;font-size:.9rem}
body[data-production-page] .portal-content{min-width:0}
.production-commandbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:center;margin-bottom:20px;padding:24px 26px;background:linear-gradient(135deg,#071447,#123b93);border-radius:30px;color:#fff;box-shadow:0 24px 70px rgba(7,20,71,.18)}
.production-commandbar h2{margin:6px 0 6px;color:#fff;font-size:clamp(1.9rem,2.8vw,3.1rem);letter-spacing:-.055em;line-height:1}
.production-commandbar p{margin:0;color:#dfe8ff;line-height:1.55;max-width:760px}
.production-label{display:inline-flex;color:#bcd5ff;text-transform:uppercase;letter-spacing:.14em;font-size:.72rem;font-weight:950}
.production-actions{display:flex;gap:10px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.production-commandbar .btn.ghost{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.28);color:#fff;box-shadow:none}
.production-commandbar .btn.primary{background:#fff;color:#071447;border-color:#fff;box-shadow:0 14px 34px rgba(0,0,0,.15)}
.production-main-grid{display:grid;grid-template-columns:310px minmax(0,1fr);gap:20px;align-items:start}
.production-batches-panel,.production-tracker-card{padding:20px;border-radius:28px}
.production-batches-panel{position:sticky;top:108px;max-height:calc(100vh - 126px);overflow:hidden;display:flex;flex-direction:column}
.production-batch-list{max-height:none;overflow:auto;padding-right:4px;display:grid;gap:10px}
.production-batch-card{border-radius:18px;padding:15px;background:#f9fbff;border-color:#e0eaf7;box-shadow:0 10px 24px rgba(6,35,94,.04)}
.production-batch-card span{display:grid;gap:4px;justify-content:start}.production-batch-card strong{font-size:1rem}.production-batch-card em{font-size:.82rem;color:#53617f}.production-batch-card.active em,.production-batch-card:hover em{color:inherit;opacity:.8}
.production-batch-card small{font-size:.78rem;line-height:1.45}
.production-tracker-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:start;margin-bottom:14px;padding-bottom:16px;border-bottom:1px solid #e8eff8}
.production-tracker-head h3{font-size:1.55rem;letter-spacing:-.035em;margin:0 0 4px;color:#071447}
.production-tracker-head p{margin:0;color:#64728d;line-height:1.45;font-size:.95rem}
.production-count{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;min-width:92px;min-height:66px;border:1px solid #dce7f5;border-radius:20px;background:#f8fbff;color:#53617f;font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.production-count b{display:block;color:#071447;font-size:1.45rem;line-height:1}
.production-summary{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:0 0 14px}.production-summary article{padding:13px 14px;border-radius:16px;background:#fbfdff}.production-summary span{font-size:.68rem;margin-bottom:7px}.production-summary strong{font-size:.9rem;line-height:1.25;word-break:break-word}
.production-filter-row{margin:10px 0 16px}.production-filter-row input{width:100%;min-height:50px;border:1px solid #dce7f5;background:#f8fbff;border-radius:16px;padding:0 16px;font:inherit;color:#071447;font-weight:750;outline:none}.production-filter-row input:focus{border-color:#8fb8ff;box-shadow:0 0 0 4px rgba(6,76,179,.08)}
.production-board{display:grid;gap:14px;max-height:720px;overflow:auto;padding:2px 6px 2px 2px}.production-line-card{background:#fff;border:1px solid #dce7f5;border-radius:24px;padding:18px;box-shadow:0 18px 44px rgba(6,35,94,.06)}
.production-line-top{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:16px;align-items:start;margin-bottom:14px}.production-line-id{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:8px}.production-line-id strong{display:inline-flex;background:#071447;color:#fff;border-radius:999px;padding:7px 11px;font-size:.82rem;letter-spacing:.02em}.production-line-id span{display:inline-flex;background:#eef5ff;color:#064cb3;border:1px solid #dce7f5;border-radius:999px;padding:7px 11px;font-size:.82rem;font-weight:950}.production-line-card h4{margin:0;color:#071447;font-size:1.22rem;letter-spacing:-.025em;line-height:1.22}
.production-progress-box{display:grid;gap:8px;justify-items:end}.production-progress-box span{color:#53617f;font-size:.8rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.production-progress{width:100%;height:10px;border-radius:999px;background:#edf3fb;overflow:hidden;border:1px solid #dde8f6}.production-progress i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#064cb3,#14a36f)}
.production-line-facts{display:grid;grid-template-columns:70px minmax(180px,1.35fr) minmax(140px,1fr) 95px 105px 120px;gap:10px;margin-bottom:14px}.production-line-facts span{border:1px solid #e4edf8;background:#f9fbff;border-radius:16px;padding:10px 12px;color:#425171;line-height:1.35;font-size:.9rem;min-width:0;word-break:break-word}.production-line-facts b{display:block;color:#64728d;font-size:.66rem;text-transform:uppercase;letter-spacing:.09em;margin-bottom:5px}
.production-stage-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.production-stage-card{display:grid;gap:8px;align-content:center;min-height:82px;border:1px solid #e4edf8;background:#f9fbff;border-radius:18px;padding:11px}.production-stage-card span{color:#071447;font-size:.76rem;font-weight:950;text-transform:uppercase;letter-spacing:.06em;line-height:1.25}.production-stage-card.stage-card-completed{background:#f5fff8;border-color:#cbf1d9}.production-stage-card.stage-card-in_progress{background:#fffaf0;border-color:#ffe4a8}.production-stage-card.stage-card-incomplete{background:#fff8f8;border-color:#ffdada}
.stage-select{width:100%;min-width:0;min-height:42px;border-radius:14px;padding:0 10px;font-size:.82rem}.production-status{width:100%;min-height:42px;border-radius:14px;padding:0 10px;font-size:.78rem}.stage-incomplete,.status-incomplete{background:#fff0f0!important;color:#8d1919!important;border-color:#ffc8c8!important}.stage-in_progress,.status-in_progress{background:#fff5dc!important;color:#815300!important;border-color:#ffdf95!important}.stage-completed,.status-completed{background:#eafbf0!important;color:#0f6a34!important;border-color:#bfeccc!important}
.production-create-panel{margin-top:18px;border-radius:26px;padding:0;overflow:hidden}.production-create-panel summary{list-style:none;cursor:pointer;padding:20px 22px;color:#071447;font-weight:950;font-size:1.1rem;display:flex;justify-content:space-between;align-items:center}.production-create-panel summary::-webkit-details-marker{display:none}.production-create-panel summary:after{content:'+';width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#eef5ff;color:#064cb3}.production-create-panel[open] summary:after{content:'−';background:#071447;color:#fff}.production-create-panel form{padding:0 22px 22px}.production-batch-form{grid-template-columns:repeat(3,minmax(0,1fr))}.production-batch-form .portal-alert,.production-batch-form button{grid-column:1/-1}.production-item-form{grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:0}.production-item-form .portal-alert,.production-item-form button{grid-column:1/-1}
@media(max-width:1280px){body[data-production-page] .portal-layout{grid-template-columns:1fr}.production-main-grid{grid-template-columns:1fr}.production-batches-panel{position:relative;top:auto;max-height:none}.production-batch-list{grid-template-columns:repeat(2,minmax(0,1fr))}.production-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.production-line-facts{grid-template-columns:repeat(3,minmax(0,1fr))}.production-batch-form,.production-item-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){body[data-production-page] .container{width:min(100% - 28px,1460px)}.production-commandbar{grid-template-columns:1fr;padding:20px;border-radius:24px}.production-actions{justify-content:flex-start}.production-main-grid{gap:14px}.production-batch-list{grid-template-columns:1fr}.production-summary{grid-template-columns:1fr 1fr}.production-tracker-head{grid-template-columns:1fr}.production-count{align-items:flex-start;padding-left:14px}.production-line-top{grid-template-columns:1fr}.production-progress-box{justify-items:start}.production-line-facts{grid-template-columns:1fr}.production-stage-grid{grid-template-columns:1fr}.production-batch-form,.production-item-form{grid-template-columns:1fr}.production-board{max-height:none}.production-sidebar,.portal-sidebar{max-height:none}}

/* Staff production dashboard finance lock */
.staff-hero{background:linear-gradient(180deg,#f8fbff 0%,#fff 100%)}
.staff-no-finance-banner{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:0 0 18px;padding:16px 18px;border:1px solid #d8e7f7;background:#f8fbff;border-radius:22px;color:#53617f}
.staff-no-finance-banner strong{color:#071447;font-weight:950}.staff-no-finance-banner span{font-size:.92rem;line-height:1.45}.production-line-card.no-financials .production-line-facts{grid-template-columns:80px minmax(220px,1.4fr) minmax(160px,1fr) 130px}.staff-production .production-summary article:last-child{background:#fffaf0;border-color:#ffe4a8}.staff-production .production-summary article:last-child strong{color:#8a5a00}.staff-commandbar{background:linear-gradient(135deg,#071447,#0f5f76)}
@media(max-width:980px){.staff-no-finance-banner{display:grid}.production-line-card.no-financials .production-line-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.production-line-card.no-financials .production-line-facts{grid-template-columns:1fr}}

/* Client file vault */
.file-vault-hero .portal-status-card strong{font-size:1.05rem;line-height:1.35}.file-commandbar{background:linear-gradient(135deg,#071447,#064cb3)}.file-security-banner{border-color:#dbe7f6;background:#fbfdff}.file-main-grid{grid-template-columns:310px minmax(0,1fr)}.client-file-panel{min-height:520px}.client-file-list{display:grid;gap:12px;max-height:720px;overflow:auto;padding:2px 6px 2px 2px}.client-file-card{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:15px;align-items:start;background:#fff;border:1px solid #dce7f5;border-radius:22px;padding:16px;box-shadow:0 16px 40px rgba(6,35,94,.06)}.client-file-icon{width:56px;height:56px;border-radius:18px;display:grid;place-items:center;background:#eef5ff;color:#064cb3;font-weight:950;font-size:.82rem;letter-spacing:.04em;border:1px solid #dce7f5}.client-file-main h4{margin:5px 0 8px;color:#071447;font-size:1.08rem;line-height:1.25;letter-spacing:-.02em;word-break:break-word}.client-file-topline{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.client-file-topline strong{color:#064cb3;font-size:.78rem;text-transform:uppercase;letter-spacing:.1em}.client-file-topline span{display:inline-flex;border-radius:999px;padding:5px 9px;background:#f6faff;border:1px solid #dce7f5;color:#53617f;font-size:.72rem;font-weight:900}.client-file-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.client-file-meta span{display:inline-flex;border-radius:999px;padding:6px 9px;background:#f9fbff;border:1px solid #e4edf8;color:#425171;font-size:.78rem;font-weight:850}.client-file-main p{margin:9px 0 0;font-size:.9rem;line-height:1.55;color:#64728d}.client-file-actions{display:grid;gap:9px;justify-items:end;min-width:132px}.btn.mini{min-height:38px;padding:9px 13px;font-size:.78rem;border-radius:13px}.btn.danger{background:#fff0f0;color:#8d1919;border-color:#ffc8c8;box-shadow:none}.btn.danger:hover{border-color:#d73d3d;transform:translateY(-1px)}.file-visibility-toggle,.file-visibility-field{display:flex!important;align-items:center;gap:9px;font-size:.8rem;font-weight:900;color:#53617f}.file-visibility-toggle input,.file-visibility-field input{width:16px;height:16px;accent-color:#064cb3}.client-file-form{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:0}.client-file-form .portal-alert,.client-file-form button,.client-file-form .file-input-field{grid-column:1/-1}.file-input-field input{padding:13px;background:#f8fbff}.file-visibility-field{border:1px solid #dbe7f6;border-radius:18px;padding:0 14px;background:#f8fbff;min-height:54px}.buyer-file-commandbar{background:linear-gradient(135deg,#071447,#0f5f76)}
@media(max-width:1280px){.file-main-grid{grid-template-columns:1fr}.client-file-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.client-file-card{grid-template-columns:1fr}.client-file-actions{justify-items:start}.client-file-form{grid-template-columns:1fr}.client-file-list{max-height:none}}

/* Style-by-style tracking overhaul */
.style-tracker-page .portal-layout{align-items:flex-start}
.style-workspace{display:block;width:100%;min-width:0}
.style-commandbar{display:flex;justify-content:space-between;gap:1.25rem;align-items:center;margin-bottom:1rem;padding:1.1rem 1.25rem;border:1px solid rgba(15,23,42,.1);border-radius:24px;background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(248,250,252,.92));box-shadow:0 18px 50px rgba(15,23,42,.08)}
.style-commandbar h2{margin:.15rem 0 .35rem;font-size:clamp(1.45rem,2.4vw,2.2rem);letter-spacing:-.04em;color:#0f172a}
.style-commandbar p{margin:0;color:#64748b;max-width:720px}
.style-label,.style-kicker{display:inline-flex;align-items:center;gap:.45rem;font-size:.72rem;font-weight:900;letter-spacing:.14em;text-transform:uppercase;color:#a0762c}
.style-no-money-banner{display:flex;gap:.65rem;align-items:center;justify-content:center;margin:0 0 1rem;padding:.8rem 1rem;border-radius:18px;background:#0f172a;color:#fff;box-shadow:0 14px 36px rgba(15,23,42,.14)}
.style-no-money-banner span{color:rgba(255,255,255,.74)}
.style-admin-grid{display:grid;grid-template-columns:minmax(320px,430px) minmax(280px,1fr);gap:1rem;margin-bottom:1rem}
.style-buyer-grid{display:grid;grid-template-columns:minmax(300px,410px) minmax(0,1fr);gap:1rem;align-items:start}
.style-create-card,.style-list-panel,.style-detail,.style-category-card{border:1px solid rgba(15,23,42,.1);background:rgba(255,255,255,.96);border-radius:24px;box-shadow:0 18px 55px rgba(15,23,42,.08)}
.style-create-card{padding:1.1rem}
.style-create-form,.style-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.style-create-form label,.style-edit-grid label,.style-tna-edit label{display:flex;flex-direction:column;gap:.38rem;font-size:.76rem;font-weight:850;text-transform:uppercase;letter-spacing:.08em;color:#64748b}
.style-create-form input,.style-create-form select,.style-create-form textarea,.style-edit-grid input,.style-edit-grid select,.style-edit-grid textarea,.style-search,.style-tna-edit input,.style-tna-edit select,.style-tna-edit textarea{width:100%;border:1px solid rgba(15,23,42,.14);border-radius:14px;padding:.78rem .86rem;background:#fff;color:#0f172a;font:inherit;outline:none;transition:border-color .2s,box-shadow .2s}
.style-create-form textarea,.style-edit-grid textarea,.style-tna-edit textarea{min-height:92px;resize:vertical;text-transform:none;letter-spacing:0;font-weight:500;color:#0f172a}
.style-create-form input:focus,.style-create-form select:focus,.style-create-form textarea:focus,.style-edit-grid input:focus,.style-edit-grid select:focus,.style-edit-grid textarea:focus,.style-search:focus,.style-tna-edit input:focus,.style-tna-edit select:focus,.style-tna-edit textarea:focus{border-color:#b88a3a;box-shadow:0 0 0 4px rgba(184,138,58,.13)}
.span-2{grid-column:1/-1}
.style-list-panel{padding:1.1rem;position:sticky;top:98px;max-height:calc(100vh - 120px);overflow:auto}
.style-search{margin:.4rem 0 .85rem;background:#f8fafc}
.style-list{display:grid;gap:.7rem}
.style-list-card{width:100%;text-align:left;border:1px solid rgba(15,23,42,.1);background:#fff;border-radius:18px;padding:.9rem;cursor:pointer;transition:transform .2s,border-color .2s,box-shadow .2s,background .2s;color:#0f172a}
.style-list-card:hover,.style-list-card.active{transform:translateY(-1px);border-color:rgba(184,138,58,.55);box-shadow:0 16px 34px rgba(15,23,42,.09);background:linear-gradient(135deg,#fff,#fffaf2)}
.style-list-top{display:flex;justify-content:space-between;gap:.65rem;align-items:center;margin-bottom:.35rem}
.style-list-top strong{font-size:.98rem;color:#0f172a}
.style-list-top em{font-style:normal;font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:#a0762c;background:#fff5df;border:1px solid rgba(184,138,58,.25);border-radius:999px;padding:.28rem .48rem;white-space:nowrap}
.style-list-name{display:block;font-weight:800;line-height:1.25;margin-bottom:.35rem;color:#1e293b}
.style-list-card small{display:block;color:#64748b;line-height:1.4}
.style-detail{padding:1.1rem;min-height:360px}
.style-detail-hero{display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:1.25rem;border-radius:22px;background:linear-gradient(135deg,#0f172a,#172554);color:#fff;margin-bottom:1rem;overflow:hidden;position:relative}
.style-detail-hero:after{content:"";position:absolute;right:-80px;top:-80px;width:220px;height:220px;border-radius:50%;background:rgba(184,138,58,.22)}
.style-detail-hero h2{margin:.25rem 0 .45rem;font-size:clamp(1.45rem,2.4vw,2.3rem);line-height:1.04;letter-spacing:-.045em;color:#fff}
.style-detail-hero p{margin:0;color:rgba(255,255,255,.76);max-width:760px}
.style-progress-ring{position:relative;z-index:1;width:118px;height:118px;flex:0 0 auto;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);text-align:center}
.style-progress-ring strong{display:block;font-size:1.8rem;line-height:1;color:#fff}
.style-progress-ring span{display:block;font-size:.7rem;text-transform:uppercase;letter-spacing:.12em;color:rgba(255,255,255,.72);margin-top:.2rem}
.style-meta-grid,.style-read-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;margin-bottom:1rem}
.style-meta-grid span,.style-read-grid span{display:flex;flex-direction:column;gap:.2rem;border:1px solid rgba(15,23,42,.08);border-radius:16px;background:#f8fafc;padding:.8rem;color:#0f172a;min-width:0}
.style-meta-grid b,.style-read-grid b{font-size:.68rem;text-transform:uppercase;letter-spacing:.1em;color:#64748b}
.style-status{display:inline-flex;width:max-content;align-items:center;gap:.35rem;border-radius:999px;padding:.32rem .55rem;font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.07em;background:#eef2ff;color:#3730a3}
.status-approved,.status-completed,.status-delivered,.status-ready_to_ship{background:#dcfce7;color:#166534}
.status-sent,.status-submitted,.status-planned,.status-in_progress,.status-in_production,.status-in_development{background:#fef3c7;color:#92400e}
.status-revised,.status-delayed,.status-on_hold{background:#fee2e2;color:#991b1b}
.status-pending{background:#f1f5f9;color:#475569}
.style-category-card{padding:1rem;margin-top:1rem}
.style-category-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem;border-bottom:1px solid rgba(15,23,42,.08);padding-bottom:.85rem}
.style-category-head span{display:block;font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;font-weight:900;color:#a0762c;margin-bottom:.2rem}
.style-category-head h3{margin:0;color:#0f172a;font-size:1.25rem;letter-spacing:-.025em}
.style-category-head small{color:#64748b;text-align:right;max-width:320px;line-height:1.45}
.style-sample-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem}
.style-subcard{border:1px solid rgba(15,23,42,.09);background:#fff;border-radius:18px;padding:.9rem;box-shadow:0 8px 25px rgba(15,23,42,.04)}
.style-subcard-title{display:flex;justify-content:space-between;gap:.7rem;align-items:center;margin-bottom:.75rem}
.style-subcard-title strong{font-size:1rem;color:#0f172a}
.style-subcard dl{display:grid;grid-template-columns:120px 1fr;gap:.42rem .75rem;margin:0;color:#0f172a}
.style-subcard dt{font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;font-weight:900;color:#64748b}
.style-subcard dd{margin:0;color:#1e293b}
.style-edit-card .style-edit-grid{margin-bottom:.75rem}
.style-tna-list{display:grid;gap:.75rem}
.style-tna-row{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:.75rem;align-items:start;border:1px solid rgba(15,23,42,.09);border-radius:18px;padding:.9rem;background:#fff}
.style-tna-row>div{display:flex;align-items:center;gap:.65rem;justify-content:space-between}
.style-tna-row strong{color:#0f172a}
.style-tna-row span{display:flex;flex-direction:column;gap:.16rem;color:#0f172a}
.style-tna-row b{font-size:.68rem;text-transform:uppercase;letter-spacing:.09em;color:#64748b}
.style-tna-row p{grid-column:1/-1;margin:0;color:#64748b}
.style-tna-edit{grid-template-columns:1fr repeat(4,minmax(120px,1fr));align-items:end}
.style-tna-edit .span-2{grid-column:1/-2}
.style-empty{padding:1.2rem;border:1px dashed rgba(15,23,42,.18);border-radius:18px;color:#64748b;background:#f8fafc;text-align:center}
@media (max-width:1100px){.style-admin-grid,.style-buyer-grid{grid-template-columns:1fr}.style-list-panel{position:relative;top:auto;max-height:none}.style-sample-grid,.style-meta-grid,.style-read-grid{grid-template-columns:1fr 1fr}.style-tna-row,.style-tna-edit{grid-template-columns:1fr 1fr}.style-tna-row>div,.style-tna-row p,.style-tna-edit .span-2{grid-column:1/-1}}
@media (max-width:680px){.style-commandbar,.style-category-head,.style-detail-hero{flex-direction:column;align-items:flex-start}.style-create-form,.style-edit-grid,.style-sample-grid,.style-meta-grid,.style-read-grid,.style-tna-row,.style-tna-edit{grid-template-columns:1fr}.span-2,.style-tna-edit .span-2{grid-column:auto}.style-progress-ring{width:96px;height:96px}.style-category-head small{text-align:left}.style-no-money-banner{align-items:flex-start;flex-direction:column}.style-subcard dl{grid-template-columns:1fr}}


/* =========================================================
   TR Global Style Tracking readability patch
   Keeps the style list, detail view and Time & Action rows separated
   so the admin/staff tracker is easier to read and edit.
   ========================================================= */
body[data-style-page] .portal-section{padding-top:32px}
body[data-style-page] .portal-layout{grid-template-columns:260px minmax(0,1fr);gap:30px}
body[data-style-page] .style-workspace{display:grid;gap:22px;min-width:0}
body[data-style-page] .style-commandbar{margin-bottom:0}
body[data-style-page] .style-admin-grid,
body[data-style-page] .style-buyer-grid{display:grid;grid-template-columns:1fr;gap:24px;margin-bottom:0}
body[data-style-page] .style-list-panel{position:relative;top:auto;max-height:none;overflow:visible;padding:22px;border-radius:30px}
body[data-style-page] .style-list{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;max-height:430px;overflow:auto;padding:2px 4px 4px 0}
body[data-style-page] .style-list-card{min-height:112px;padding:16px;border-radius:22px}
body[data-style-page] .style-list-top{align-items:flex-start}
body[data-style-page] .style-list-name{font-size:.95rem;line-height:1.35}
body[data-style-page] .style-detail{padding:24px;border-radius:30px;min-height:420px;overflow:visible}
body[data-style-page] .style-category-card{padding:22px;border-radius:28px;margin-top:22px}
body[data-style-page] .style-category-head{margin-bottom:18px;padding-bottom:16px}
body[data-style-page] .style-sample-grid{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:18px}
body[data-style-page] .style-subcard{padding:18px;border-radius:24px}
body[data-style-page] .style-edit-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
body[data-style-page] .style-fabric-form{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px}
body[data-style-page] .style-edit-grid .span-2,
body[data-style-page] .style-fabric-form .span-2{grid-column:1/-1}
body[data-style-page] .style-create-form{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px}
body[data-style-page] .style-create-form .span-2{grid-column:1/-1}
body[data-style-page] .style-tna-list{display:grid;gap:18px}
body[data-style-page] .style-tna-row{border-radius:24px;padding:18px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.045)}
body[data-style-page] .style-tna-row.style-tna-edit{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:16px;align-items:start}
body[data-style-page] .style-tna-row.style-tna-edit>div{grid-column:1/-1;display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,260px);gap:16px;align-items:end;justify-content:stretch;background:#f8fafc;border:1px solid rgba(15,23,42,.08);border-radius:18px;padding:16px}
body[data-style-page] .style-tna-row.style-tna-edit>div strong{font-size:1.08rem;line-height:1.3;word-break:normal;overflow-wrap:anywhere}
body[data-style-page] .style-tna-row.style-tna-edit>div label{margin:0}
body[data-style-page] .style-tna-edit .span-2{grid-column:1/-1}
body[data-style-page] .style-tna-edit textarea{min-height:98px}
body[data-style-page] .style-tna-edit button[data-save-tna]{grid-column:1/-1;justify-self:end;min-width:170px}
body[data-style-page] .style-tna-edit label,
body[data-style-page] .style-edit-grid label,
body[data-style-page] .style-create-form label{min-width:0}
body[data-style-page] .style-tna-edit input,
body[data-style-page] .style-tna-edit select,
body[data-style-page] .style-edit-grid input,
body[data-style-page] .style-edit-grid select,
body[data-style-page] .style-edit-grid textarea{min-height:50px}
body[data-style-page] .style-tna-row:not(.style-tna-edit){grid-template-columns:1fr;gap:12px}
body[data-style-page] .style-tna-row:not(.style-tna-edit)>div{justify-content:flex-start;gap:12px;flex-wrap:wrap}
body[data-style-page] .style-tna-row:not(.style-tna-edit) span{background:#f8fafc;border:1px solid rgba(15,23,42,.08);border-radius:14px;padding:12px}
@media(max-width:1280px){body[data-style-page] .portal-layout{grid-template-columns:1fr}body[data-style-page] .portal-sidebar{position:relative;top:auto}}
@media(max-width:900px){body[data-style-page] .style-tna-row.style-tna-edit{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-style-page] .style-tna-row.style-tna-edit>div{grid-template-columns:1fr}body[data-style-page] .style-list{grid-template-columns:1fr;max-height:none}body[data-style-page] .style-detail{padding:18px}}
@media(max-width:620px){body[data-style-page] .style-tna-row.style-tna-edit,
body[data-style-page] .style-edit-grid,
body[data-style-page] .style-fabric-form,
body[data-style-page] .style-create-form{grid-template-columns:1fr}body[data-style-page] .style-tna-edit button[data-save-tna]{justify-self:stretch}body[data-style-page] .style-category-card{padding:16px}}


/* Login safety: prevent silent account switching */
.current-session-box{border:1px solid #dce7f5;background:#f8fbff;border-radius:22px;padding:16px;display:grid;gap:9px;color:#071447}
.current-session-box strong{font-size:1rem;color:#071447}
.current-session-box span{font-weight:850;color:#40506f;word-break:break-word}
.current-session-box small{color:#64728d;line-height:1.5}
.current-session-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:4px}
.current-session-actions .btn{min-height:42px;padding:0 14px;font-size:.82rem}
.btn.danger{border-color:#ffd2d2!important;color:#9b1c1c!important;background:#fff5f5!important}


/* Portal safety: author styles must never override hidden role-based links */
[hidden]{display:none!important;}
.portal-sidebar a[hidden],.portal-sidebar button[hidden],.footer a[hidden]{display:none!important;}
.portal-metrics.clean-metrics{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));}


/* Style status grouping: Open / Finished / Cancelled */
.style-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 14px}
.style-tab{border:1px solid #dce7f5;background:#f8fbff;color:#071447;border-radius:999px;padding:10px 14px;font:inherit;font-weight:950;cursor:pointer;display:inline-flex;align-items:center;gap:8px;transition:transform .2s,border-color .2s,background .2s,box-shadow .2s}
.style-tab span{display:inline-grid;place-items:center;min-width:26px;height:26px;border-radius:999px;background:#fff;border:1px solid #dce7f5;color:#064cb3;font-size:.78rem}
.style-tab:hover,.style-tab.active{background:#071447;color:#fff;border-color:#071447;box-shadow:0 14px 34px rgba(6,35,94,.16);transform:translateY(-1px)}
.style-tab.active span,.style-tab:hover span{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.26);color:#fff}
.portal-card-head small{display:block;margin-top:5px;color:#64728d;font-weight:700;line-height:1.35;max-width:720px}
.style-flow-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,280px) auto;gap:14px;align-items:end;border:1px solid #dce7f5;background:#f8fbff;border-radius:22px;padding:16px;margin:0 0 16px;box-shadow:0 12px 30px rgba(6,35,94,.05)}
.style-flow-card div{display:grid;gap:4px;color:#53617f}
.style-flow-card span{font-size:.68rem;font-weight:950;text-transform:uppercase;letter-spacing:.14em;color:#a0762c}
.style-flow-card strong{color:#071447;font-size:1rem}
.style-flow-card small{color:#64728d;line-height:1.45}
.style-flow-card label{display:grid;gap:6px;font-size:.72rem;font-weight:950;text-transform:uppercase;letter-spacing:.08em;color:#64748b}
.style-flow-card select{width:100%;border:1px solid rgba(15,23,42,.14);border-radius:14px;padding:.78rem .86rem;background:#fff;color:#0f172a;font:inherit;outline:none}
.status-cancelled{background:#fee2e2;color:#991b1b}
@media(max-width:900px){.style-flow-card{grid-template-columns:1fr}.style-flow-card .btn{width:100%;justify-content:center}.style-tabs{display:grid;grid-template-columns:1fr}}


/* Admin/Staff client grouping for style tracking */
.style-client-board{border:1px solid #dce7f5;background:linear-gradient(135deg,#ffffff,#f8fbff);border-radius:24px;padding:16px;margin:14px 0 16px;box-shadow:0 14px 34px rgba(6,35,94,.06)}
.style-client-board-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:14px;border-bottom:1px solid #e7eef8;padding-bottom:12px}
.style-client-board-head span{display:block;font-size:.68rem;font-weight:950;text-transform:uppercase;letter-spacing:.14em;color:#a0762c;margin-bottom:3px}
.style-client-board-head strong{display:block;color:#071447;font-size:.98rem;line-height:1.35}
.style-client-clear{border:1px solid #dce7f5;background:#fff;border-radius:999px;padding:9px 13px;color:#064cb3;font-weight:950;cursor:pointer;white-space:nowrap}
.style-client-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;max-height:340px;overflow:auto;padding-right:4px}
.style-client-card{border:1px solid #dce7f5;background:#fff;border-radius:20px;padding:14px;text-align:left;cursor:pointer;color:#071447;box-shadow:0 10px 28px rgba(6,35,94,.04);transition:transform .2s,border-color .2s,box-shadow .2s,background .2s}
.style-client-card:hover,.style-client-card.active{transform:translateY(-1px);border-color:#b88a3a;background:linear-gradient(135deg,#fff,#fffaf2);box-shadow:0 18px 38px rgba(6,35,94,.09)}
.style-client-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:6px}
.style-client-card-top strong{font-size:1rem;line-height:1.25;color:#071447;overflow-wrap:anywhere}
.style-client-card-top em{font-style:normal;font-size:.68rem;font-weight:950;text-transform:uppercase;letter-spacing:.08em;color:#a0762c;background:#fff5df;border:1px solid rgba(184,138,58,.25);border-radius:999px;padding:5px 8px;white-space:nowrap}
.style-client-card small{display:block;color:#64748b;min-height:18px;overflow-wrap:anywhere;margin-bottom:10px}
.style-client-counts{display:flex;flex-wrap:wrap;gap:7px}
.style-client-counts b{display:inline-flex;border-radius:999px;padding:6px 8px;background:#f8fbff;border:1px solid #dce7f5;color:#334155;font-size:.72rem;font-weight:950}

.style-client-card{position:relative}
.style-client-delete{margin-top:10px;border:1px solid rgba(220,38,38,.18);background:#fff5f5;color:#b91c1c;border-radius:999px;padding:7px 12px;font-weight:950;font-size:.72rem;letter-spacing:.03em;cursor:pointer;transition:background .2s,transform .2s,border-color .2s}
.style-client-delete:hover{background:#fee2e2;border-color:rgba(220,38,38,.35);transform:translateY(-1px)}
.style-client-card .style-client-delete:focus{outline:2px solid rgba(185,28,28,.28);outline-offset:2px}
@media(max-width:700px){.style-client-board-head{align-items:flex-start;flex-direction:column}.style-client-clear{width:100%}.style-client-grid{grid-template-columns:1fr;max-height:none}}


/* Admin dashboard client management + safer delete controls */
.admin-dashboard-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));align-items:start}
.admin-management-card{margin-top:24px}
.admin-client-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:18px}
.admin-client-form .span-2{grid-column:1/-1}
.admin-client-manager{display:grid;gap:10px;max-height:420px;overflow:auto;padding-right:4px}
.admin-client-item{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center}
.admin-client-item div{display:grid;gap:4px;min-width:0}
.admin-client-item span{overflow-wrap:anywhere;color:#64728d;font-weight:700}
.style-flow-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:flex-end}
.style-flow-actions .btn{min-height:48px}
@media(max-width:760px){.admin-client-form,.admin-client-item{grid-template-columns:1fr}.admin-client-item .btn,.style-flow-actions,.style-flow-actions .btn{width:100%;justify-content:center}}


/* =========================================================
   TR Global Fabric Catalogue + Team Directory
   ========================================================= */
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:24px}.compact-metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.fabric-hero .page-panel,.team-hero .page-panel{min-height:220px;display:flex;flex-direction:column;justify-content:center}.fabric-toolbar{background:#fff;border:1px solid rgba(25,32,82,.09);border-radius:24px;padding:18px;box-shadow:0 18px 48px rgba(21,29,75,.08);margin-bottom:18px}.fabric-toolbar input{width:100%;border:1px solid rgba(25,32,82,.11);border-radius:18px;padding:16px 18px;font-weight:800;color:#171d49;background:#f8faff;margin-bottom:14px}.fabric-filter-row{display:flex;gap:10px;flex-wrap:wrap}.fabric-filter-row button{border:1px solid rgba(25,32,82,.1);background:#f8faff;color:#171d49;border-radius:999px;padding:10px 14px;font-weight:900;cursor:pointer;transition:.2s ease}.fabric-filter-row button.active,.fabric-filter-row button:hover{background:#17134e;color:#fff;box-shadow:0 12px 26px rgba(23,19,78,.18)}.fabric-results-count{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin:6px 4px 18px;color:#66708d;font-weight:800}.fabric-results-count strong{color:#334bc0;font-size:22px}.fabric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.fabric-card{background:#fff;border:1px solid rgba(25,32,82,.09);border-radius:26px;padding:22px;box-shadow:0 18px 50px rgba(16,24,60,.07);display:flex;flex-direction:column;gap:12px;min-height:360px}.fabric-card[hidden]{display:none}.fabric-card-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.fabric-card-top span{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#f0f3ff;color:#334bc0;font-weight:1000}.fabric-card-top em{font-style:normal;border:1px solid rgba(180,128,26,.2);background:#fff8e9;color:#9b741e;border-radius:999px;padding:8px 10px;font-size:11px;text-transform:uppercase;letter-spacing:.16em;font-weight:1000;text-align:right}.fabric-card h3{font-size:24px;line-height:1.08;margin:0;color:#111543}.fabric-card p{color:#66708d;line-height:1.7;margin:0}.fabric-card dl{display:grid;gap:10px;margin:0}.fabric-card dl div{background:#f8faff;border:1px solid rgba(25,32,82,.07);border-radius:18px;padding:12px}.fabric-card dt{font-size:10px;text-transform:uppercase;letter-spacing:.16em;font-weight:1000;color:#7a8199;margin-bottom:5px}.fabric-card dd{margin:0;font-weight:800;color:#171d49;line-height:1.35}.fabric-request{margin-top:auto;color:#334bc0;font-weight:1000;text-decoration:none}.fabric-empty{background:#fff;border:1px dashed rgba(25,32,82,.18);border-radius:20px;padding:24px;text-align:center;color:#66708d;font-weight:800}.fabric-note-card,.fabric-crosslink-card,.team-edit-note{padding:34px;border-radius:30px}.team-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.team-card{background:#fff;border:1px solid rgba(25,32,82,.09);border-radius:30px;overflow:hidden;box-shadow:0 20px 52px rgba(16,24,60,.08);display:flex;flex-direction:column}.team-photo{aspect-ratio:1/1;background:#f4f6ff;overflow:hidden}.team-photo img{width:100%;height:100%;object-fit:cover;display:block}.team-body{padding:22px;display:flex;flex-direction:column;gap:10px}.team-body h3{font-size:24px;margin:0;color:#111543;line-height:1.1}.team-body strong{color:#334bc0;line-height:1.35}.team-body p{color:#66708d;line-height:1.65;margin:0}.team-body a{margin-top:auto;color:#334bc0;text-decoration:none;font-weight:1000}.team-edit-note{background:#fff;border:1px solid rgba(25,32,82,.09);box-shadow:0 18px 50px rgba(16,24,60,.07)}
@media (max-width:1100px){.fabric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-metric-grid{grid-template-columns:1fr}}
@media (max-width:700px){.fabric-grid,.team-grid{grid-template-columns:1fr}.fabric-card{min-height:auto}.hero-actions{flex-direction:column}.hero-actions .btn{width:100%;justify-content:center}}


/* Database-managed catalogue + team admin */
.managed-catalogue-section{position:relative;overflow:hidden}.managed-catalogue-toolbar{background:#fff;border:1px solid rgba(25,32,82,.09);border-radius:24px;padding:18px;box-shadow:0 18px 48px rgba(21,29,75,.08);margin-bottom:22px;display:grid;gap:14px}.managed-catalogue-toolbar input{width:100%;border:1px solid rgba(25,32,82,.11);border-radius:18px;padding:16px 18px;font-weight:800;color:#171d49;background:#f8faff}.managed-catalogue-filter{display:flex;gap:10px;flex-wrap:wrap}.managed-catalogue-filter button{border:1px solid rgba(25,32,82,.1);background:#f8faff;color:#171d49;border-radius:999px;padding:10px 14px;font-weight:900;cursor:pointer}.managed-catalogue-filter button.active,.managed-catalogue-filter button:hover{background:#17134e;color:#fff}.managed-catalogue-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.managed-catalogue-card{background:#fff;border:1px solid rgba(25,32,82,.09);border-radius:28px;box-shadow:0 20px 52px rgba(16,24,60,.08);overflow:hidden;display:flex;flex-direction:column;min-height:420px}.managed-catalogue-img{height:220px;background:linear-gradient(135deg,#eef3ff,#fff);display:grid;place-items:center;color:#334bc0;font-weight:1000;letter-spacing:.12em;text-transform:uppercase}.managed-catalogue-img img{width:100%;height:100%;object-fit:cover;display:block}.managed-catalogue-body{padding:22px;display:flex;flex-direction:column;gap:12px;flex:1}.managed-catalogue-body h3{font-size:24px;line-height:1.08;margin:0;color:#111543}.managed-catalogue-body p{margin:0;color:#66708d;line-height:1.65}.managed-meta{display:flex;gap:8px;flex-wrap:wrap}.managed-meta span{background:#f0f3ff;color:#334bc0;border:1px solid rgba(51,75,192,.11);border-radius:999px;padding:8px 10px;font-size:11px;font-weight:1000;text-transform:uppercase;letter-spacing:.08em}.managed-details{display:grid;gap:8px;margin-top:auto}.managed-details div{background:#f8faff;border:1px solid rgba(25,32,82,.07);border-radius:16px;padding:11px}.managed-details dt{font-size:10px;text-transform:uppercase;letter-spacing:.14em;font-weight:1000;color:#7a8199;margin-bottom:4px}.managed-details dd{margin:0;font-weight:850;color:#171d49;line-height:1.35}.catalogue-admin-layout{display:grid;grid-template-columns:minmax(320px,460px) minmax(0,1fr);gap:24px;align-items:start}.catalogue-admin-form{position:sticky;top:110px}.catalogue-admin-list{display:grid;gap:14px}.catalogue-admin-item{display:grid;grid-template-columns:96px minmax(0,1fr) auto;gap:16px;align-items:center;background:#fff;border:1px solid rgba(25,32,82,.09);border-radius:22px;padding:14px;box-shadow:0 14px 38px rgba(16,24,60,.06)}.catalogue-admin-thumb{width:96px;height:86px;border-radius:16px;background:#eef3ff;display:grid;place-items:center;overflow:hidden;color:#334bc0;font-weight:1000;font-size:.72rem;text-transform:uppercase;letter-spacing:.08em}.catalogue-admin-thumb img{width:100%;height:100%;object-fit:cover}.catalogue-admin-item h4{margin:0 0 6px;color:#111543;font-size:1.05rem}.catalogue-admin-item p{margin:0;color:#66708d;line-height:1.45;font-size:.9rem}.catalogue-admin-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.catalogue-status{display:inline-flex;align-items:center;border-radius:999px;padding:6px 9px;background:#eef3ff;color:#334bc0;font-weight:1000;font-size:.7rem;text-transform:uppercase;letter-spacing:.08em}.catalogue-status.inactive{background:#fff5f5;color:#9b1c1c}.admin-catalogue-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px}.admin-catalogue-links a{background:#f8fbff;border:1px solid rgba(25,32,82,.09);border-radius:20px;padding:18px;text-decoration:none;color:#111543;font-weight:1000}.admin-catalogue-links span{display:block;color:#66708d;font-weight:800;margin-top:6px;font-size:.88rem}.portal-form input[type=file]{padding:12px;background:#fff}.portal-form .form-row{grid-column:1/-1}.admin-product-subnav{display:flex;gap:12px;flex-wrap:wrap}.admin-product-subnav a{border:1px solid rgba(25,32,82,.1);background:#fff;border-radius:999px;padding:10px 14px;text-decoration:none;color:#171d49;font-weight:950}.admin-product-subnav a.active{background:#17134e;color:#fff}
@media(max-width:1050px){.managed-catalogue-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.catalogue-admin-layout{grid-template-columns:1fr}.catalogue-admin-form{position:relative;top:auto}.catalogue-admin-item{grid-template-columns:80px 1fr}.catalogue-admin-actions{grid-column:1/-1;justify-content:flex-start}.admin-catalogue-links{grid-template-columns:1fr}}
@media(max-width:700px){.managed-catalogue-grid{grid-template-columns:1fr}.managed-catalogue-img{height:190px}.catalogue-admin-item{grid-template-columns:1fr}.catalogue-admin-thumb{width:100%;height:180px}.managed-catalogue-card{min-height:auto}}

/* TR Global database management audit fixes */
.client-row-actions{display:flex;gap:8px;justify-content:flex-end;align-items:center;flex-wrap:wrap}
.portal-link-button{width:100%;border:0;background:transparent;text-align:left;display:grid;gap:4px;color:inherit;font:inherit;cursor:pointer;padding:0}
.portal-link-button strong{color:var(--navy)}
.inquiry-thread-card{margin-top:18px}.inquiry-original{background:#f8fbff;border:1px solid var(--line);border-radius:18px;padding:16px;margin-bottom:16px}.inquiry-original p{margin:.35rem 0 0}.inquiry-messages{display:grid;gap:10px;margin:14px 0}.inquiry-message{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px}.inquiry-message p{margin:.35rem 0 0;color:#5f6d88}.inquiry-reply-form{margin-top:14px}.style-main-edit-card{border-color:rgba(51,75,192,.18)}
@media(max-width:760px){.client-row-actions{justify-content:flex-start}.client-row-actions .btn{width:100%;justify-content:center}}


/* Search controls for large client lists */
.style-client-search,.admin-client-search{width:100%;border:1px solid #dce7f5;border-radius:16px;background:#fff;padding:13px 15px;margin:0 0 14px;color:#071447;font-weight:850;outline:none}
.style-client-search:focus,.admin-client-search:focus{border-color:#334bc0;box-shadow:0 0 0 4px rgba(51,75,192,.08)}


/* User role management */
.users-management-card .portal-card-head small{display:block;color:#64728d;font-weight:800;margin-top:6px;line-height:1.45}.portal-user-toolbar{margin-bottom:16px}.user-role-table{min-width:980px}.role-select{border:1px solid #dce7f5;background:#f8fbff;color:#071447;border-radius:14px;min-height:42px;padding:0 12px;font-family:inherit;font-weight:900;min-width:150px}.role-select:disabled{opacity:.6;cursor:not-allowed}.role-save-cell{white-space:nowrap}.role-self-note{display:block;color:#64728d;font-size:.78rem;font-weight:850;line-height:1.35}.role-badge-buyer{background:#eef5ff;color:#064cb3}.role-badge-staff{background:#f4f0ff;color:#4532a6}.role-badge-admin{background:#eefdf4;color:#136b35}.role-badge-support{background:#fff8e7;color:#8a5a00}


/* Cleaner collapsible tracking sections */
body[data-style-page] .style-collapsible-card{padding:0;overflow:hidden}
body[data-style-page] .style-collapsible-card .style-category-summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 22px;cursor:pointer;border-bottom:1px solid transparent;background:linear-gradient(135deg,#fff,#fbfcff)}
body[data-style-page] .style-collapsible-card[open] .style-category-summary{border-bottom-color:rgba(15,23,42,.08)}
body[data-style-page] .style-collapsible-card .style-category-summary::-webkit-details-marker{display:none}
body[data-style-page] .style-category-summary span{display:block;font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;font-weight:950;color:#a0762c;margin-bottom:.2rem}
body[data-style-page] .style-category-summary h3{margin:0;color:#0f172a;font-size:1.22rem;letter-spacing:-.025em}
body[data-style-page] .style-category-summary small{display:block;color:#64748b;line-height:1.45;margin-top:.25rem}
body[data-style-page] .style-collapse-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto;white-space:nowrap}
body[data-style-page] .style-collapse-actions em{font-style:normal;border-radius:999px;background:#f8fafc;border:1px solid rgba(15,23,42,.1);padding:8px 12px;color:#475569;font-size:.76rem;font-weight:950;letter-spacing:.04em;text-transform:uppercase}
body[data-style-page] .style-collapse-actions b{display:inline-flex;align-items:center;gap:8px;border-radius:999px;background:#111827;color:#fff;padding:9px 13px;font-size:.76rem;font-weight:950;letter-spacing:.04em;text-transform:uppercase}
body[data-style-page] .style-collapse-actions b:after{content:'+';font-size:1rem;line-height:1}
body[data-style-page] .style-collapsible-card[open] .style-collapse-actions b:after{content:'−'}
body[data-style-page] .style-category-body{padding:18px 22px 22px}
body[data-style-page] .style-sample-list{display:grid;gap:18px}
body[data-style-page] .style-sample-row{border-radius:24px;padding:18px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.045)}
body[data-style-page] .style-sample-row:not(.style-tna-edit){grid-template-columns:1.1fr repeat(4,minmax(135px,1fr));gap:16px;align-items:start}
body[data-style-page] .style-sample-row:not(.style-tna-edit)>div{display:flex;align-items:center;gap:12px;justify-content:flex-start;flex-wrap:wrap}
body[data-style-page] .style-sample-row:not(.style-tna-edit) span{background:#f8fafc;border:1px solid rgba(15,23,42,.08);border-radius:14px;padding:12px}
body[data-style-page] .style-sample-row:not(.style-tna-edit) p{grid-column:1/-1;margin:0;color:#64748b}
body[data-style-page] .style-sample-row.style-tna-edit{grid-template-columns:repeat(4,minmax(180px,1fr));gap:16px;align-items:start}
body[data-style-page] .style-sample-row.style-tna-edit>div{grid-column:1/-1;display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,260px);gap:16px;align-items:end;justify-content:stretch;background:#f8fafc;border:1px solid rgba(15,23,42,.08);border-radius:18px;padding:16px}
body[data-style-page] .style-sample-row.style-tna-edit>div strong{font-size:1.08rem;line-height:1.3;overflow-wrap:anywhere}
body[data-style-page] .style-sample-row.style-tna-edit button[data-save-sample]{grid-column:1/-1;justify-self:end;min-width:170px}
body[data-style-page] .style-sample-row.style-tna-edit .span-2{grid-column:1/-1}
body[data-style-page] .style-sample-row.style-tna-edit textarea{min-height:98px}
@media(max-width:900px){body[data-style-page] .style-collapsible-card .style-category-summary{flex-direction:column;align-items:flex-start}body[data-style-page] .style-sample-row:not(.style-tna-edit),body[data-style-page] .style-sample-row.style-tna-edit{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-style-page] .style-sample-row.style-tna-edit>div{grid-template-columns:1fr}.style-collapse-actions{flex-wrap:wrap}}
@media(max-width:620px){body[data-style-page] .style-sample-row:not(.style-tna-edit),body[data-style-page] .style-sample-row.style-tna-edit{grid-template-columns:1fr}body[data-style-page] .style-sample-row.style-tna-edit button[data-save-sample]{justify-self:stretch}body[data-style-page] .style-category-body{padding:14px}}

/* Buyer tracking clean-up: keep buyer style details readable and compact. */
body[data-style-page="buyer"] .style-detail{padding:22px;border-radius:30px}
body[data-style-page="buyer"] .style-detail-hero{padding:22px;border-radius:26px;margin-bottom:18px}
body[data-style-page="buyer"] .style-meta-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}
body[data-style-page="buyer"] .style-collapsible-card{margin-top:16px}
body[data-style-page="buyer"] .style-category-summary{padding:18px 20px}
body[data-style-page="buyer"] .style-category-summary h3{font-size:1.12rem}
body[data-style-page="buyer"] .buyer-readonly-section .style-category-body{background:#fff}
body[data-style-page="buyer"] .buyer-readonly-section:not([open]){box-shadow:0 10px 28px rgba(15,23,42,.045)}
body[data-style-page="buyer"] .style-sample-row:not(.style-tna-edit),
body[data-style-page="buyer"] .style-tna-row:not(.style-tna-edit){grid-template-columns:minmax(210px,1.1fr) repeat(2,minmax(160px,1fr));gap:14px}
body[data-style-page="buyer"] .style-sample-row:not(.style-tna-edit) span,
body[data-style-page="buyer"] .style-tna-row:not(.style-tna-edit) span{min-height:58px}
body[data-style-page="buyer"] .style-read-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
body[data-style-page="buyer"] .style-read-grid span{background:#f8fafc;border:1px solid rgba(15,23,42,.08);border-radius:14px;padding:12px}
body[data-style-page="buyer"] .style-collapse-actions b{white-space:nowrap}
@media(max-width:900px){body[data-style-page="buyer"] .style-sample-row:not(.style-tna-edit),body[data-style-page="buyer"] .style-tna-row:not(.style-tna-edit){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){body[data-style-page="buyer"] .style-detail{padding:16px}body[data-style-page="buyer"] .style-sample-row:not(.style-tna-edit),body[data-style-page="buyer"] .style-tna-row:not(.style-tna-edit){grid-template-columns:1fr}}

/* Team notification settings */
.team-notification-card{margin-top:22px}.team-notification-card .muted,.users-management-card .muted{margin:4px 0 0;color:#64728d;line-height:1.5}.portal-search{width:100%;border:1px solid #dce7f5;background:#f8fbff;border-radius:16px;min-height:52px;padding:0 14px;font:inherit;color:#071447;margin-bottom:14px}.compact-form{margin-bottom:18px}.form-grid.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.team-notify-table{min-width:1080px}.team-notify-table input[type="checkbox"]{width:18px;height:18px;accent-color:#064cb3}.team-notify-table small{color:#64728d}.team-notify-table td:last-child{white-space:nowrap}.team-notify-table .btn+.btn{margin-left:6px}@media(max-width:760px){.form-grid.three{grid-template-columns:1fr}}

/* Quality Control remarks for style tracking */
.qc-remark-form{display:grid;gap:14px;margin-bottom:18px;border:1px solid rgba(15,23,42,.08);background:linear-gradient(135deg,#f8fbff,#fff);border-radius:22px;padding:16px}
.qc-form-top{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end}
.qc-remark-form label{display:flex;flex-direction:column;gap:.38rem;font-size:.76rem;font-weight:850;text-transform:uppercase;letter-spacing:.08em;color:#64748b}
.qc-remark-form input,.qc-remark-form select,.qc-remark-form textarea{width:100%;border:1px solid rgba(15,23,42,.14);border-radius:14px;padding:.78rem .86rem;background:#fff;color:#0f172a;font:inherit;outline:none;transition:border-color .2s,box-shadow .2s}
.qc-remark-form textarea{min-height:110px;resize:vertical;text-transform:none;letter-spacing:0;font-weight:500;color:#0f172a}
.qc-remark-form input:focus,.qc-remark-form select:focus,.qc-remark-form textarea:focus{border-color:#334bc0;box-shadow:0 0 0 4px rgba(51,75,192,.08)}
.qc-toggle{justify-content:center;border:1px solid rgba(15,23,42,.1);background:#fff;border-radius:16px;padding:12px;min-height:50px;flex-direction:row!important;align-items:center;gap:8px!important;text-transform:none!important;letter-spacing:0!important;color:#071447!important}
.qc-toggle input{width:18px!important;height:18px!important;accent-color:#334bc0}
.qc-form-actions{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap}.qc-form-actions small{color:#64748b;font-weight:800;line-height:1.45;max-width:560px}
.qc-remarks-list{display:grid;gap:12px}.qc-remark-card{border:1px solid rgba(15,23,42,.09);border-left:5px solid #94a3b8;background:#fff;border-radius:20px;padding:16px;box-shadow:0 10px 28px rgba(15,23,42,.045)}
.qc-priority-low{border-left-color:#94a3b8}.qc-priority-normal{border-left-color:#334bc0}.qc-priority-high{border-left-color:#b88a3a}.qc-priority-urgent{border-left-color:#dc2626}
.qc-remark-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;flex-wrap:wrap}.qc-remark-head strong{display:block;color:#0f172a;font-size:1rem}.qc-remark-head small{display:block;color:#64748b;font-weight:800;margin-top:4px}.qc-remark-head span{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.qc-remark-card p{margin:12px 0 0;color:#334155;line-height:1.55}.qc-priority,.qc-buyer-badge,.qc-internal-badge{display:inline-flex;align-items:center;border-radius:999px;padding:.32rem .55rem;font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.07em}.qc-priority{background:#f8fafc;border:1px solid rgba(15,23,42,.1);color:#475569}.qc-buyer-badge{background:#eefdf4;color:#136b35}.qc-internal-badge{background:#fff7ed;color:#9a3412}
.qc-link{display:inline-flex;margin-top:12px;color:#064cb3;text-decoration:none;font-weight:950}.qc-link:hover{text-decoration:underline}.qc-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.qc-actions .btn{padding:9px 12px;font-size:.82rem}
@media(max-width:900px){.qc-form-top{grid-template-columns:repeat(2,minmax(0,1fr))}.qc-form-actions{align-items:flex-start;flex-direction:column}.qc-form-actions .btn{width:100%;justify-content:center}}
@media(max-width:620px){.qc-form-top{grid-template-columns:1fr}.qc-remark-head{flex-direction:column}.qc-actions .btn{width:100%;justify-content:center}}

/* Direct buyer email composer */
.direct-email-card .portal-card-head .pill{white-space:nowrap}
.direct-email-form textarea{min-height:120px}
.direct-email-form input[type="file"]{padding:14px;background:#f8f9fd;border:1px dashed rgba(48,72,184,.35);border-radius:14px}
.direct-email-form small{display:block;margin-top:8px;color:#6a718f;font-size:12px;line-height:1.55}
.portal-check-row{display:flex;gap:18px;flex-wrap:wrap;align-items:center;padding:10px 0 4px}
.portal-check-row label{display:flex;gap:10px;align-items:center;font-weight:700;color:#151743}
.portal-check-row input{width:auto;min-width:auto}
.direct-email-help{margin-top:18px;padding:16px;border-radius:18px;background:#f8f9fd;border:1px solid #e5e9f5;display:grid;gap:6px;color:#343858}
.direct-email-help strong{color:#151743}
.direct-email-image-preview{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px}
.direct-email-image-preview img{width:88px;height:88px;object-fit:cover;border-radius:14px;border:1px solid #e5e9f5;background:#fff}

/* Register staff code note */
.staff-code-note{margin:0 0 12px;padding:10px 12px;border-radius:14px;background:#eef3ff;color:#3048b8;font-weight:800;}

/* Style browsing hierarchy: Client -> Year -> Season -> Origin -> Buy Group -> Styles */
body[data-style-page] .style-hierarchy{display:grid;gap:14px;width:100%}
body[data-style-page] .style-client-section,
body[data-style-page] .style-year-section,
body[data-style-page] .style-season-section,
body[data-style-page] .style-origin-section,
body[data-style-page] .style-buy-section{border:1px solid #dce7f5;background:#fff;border-radius:22px;overflow:hidden;box-shadow:0 10px 28px rgba(6,35,94,.04)}
body[data-style-page] .style-year-section,
body[data-style-page] .style-season-section,
body[data-style-page] .style-origin-section,
body[data-style-page] .style-buy-section{box-shadow:none;margin-top:10px}
body[data-style-page] .style-client-section>summary,
body[data-style-page] .style-year-section>summary,
body[data-style-page] .style-season-section>summary,
body[data-style-page] .style-origin-section>summary,
body[data-style-page] .style-buy-section>summary{list-style:none;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:13px 15px;cursor:pointer;background:linear-gradient(135deg,#f8fbff,#ffffff);color:#071447;border-bottom:1px solid #edf2f7}
body[data-style-page] .style-client-section>summary::-webkit-details-marker,
body[data-style-page] .style-year-section>summary::-webkit-details-marker,
body[data-style-page] .style-season-section>summary::-webkit-details-marker,
body[data-style-page] .style-origin-section>summary::-webkit-details-marker,
body[data-style-page] .style-buy-section>summary::-webkit-details-marker{display:none}
body[data-style-page] .style-client-section>summary span,
body[data-style-page] .style-year-section>summary span,
body[data-style-page] .style-season-section>summary span,
body[data-style-page] .style-origin-section>summary span,
body[data-style-page] .style-buy-section>summary span{font-size:.62rem;font-weight:950;text-transform:uppercase;letter-spacing:.13em;color:#a0762c;background:#fff5df;border:1px solid rgba(184,138,58,.22);border-radius:999px;padding:5px 8px;white-space:nowrap}
body[data-style-page] .style-client-section>summary strong,
body[data-style-page] .style-year-section>summary strong,
body[data-style-page] .style-season-section>summary strong,
body[data-style-page] .style-origin-section>summary strong,
body[data-style-page] .style-buy-section>summary strong{font-size:.95rem;line-height:1.25;overflow-wrap:anywhere}
body[data-style-page] .style-client-section>summary em,
body[data-style-page] .style-year-section>summary em,
body[data-style-page] .style-season-section>summary em,
body[data-style-page] .style-origin-section>summary em,
body[data-style-page] .style-buy-section>summary em{font-style:normal;font-size:.7rem;font-weight:950;color:#334155;background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;padding:5px 8px;white-space:nowrap}
body[data-style-page] .style-year-list,
body[data-style-page] .style-season-list,
body[data-style-page] .style-origin-list,
body[data-style-page] .style-buy-list{padding:10px;background:#f8fbff}
body[data-style-page] .style-buy-styles{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px;padding:12px;background:#fff}
body[data-style-page] .style-list-path{margin-top:7px;color:#a0762c!important;font-weight:850}
@media(max-width:700px){body[data-style-page] .style-client-section>summary,body[data-style-page] .style-year-section>summary,body[data-style-page] .style-season-section>summary,body[data-style-page] .style-origin-section>summary,body[data-style-page] .style-buy-section>summary{grid-template-columns:1fr;align-items:flex-start}body[data-style-page] .style-buy-styles{grid-template-columns:1fr}}


/* Admin Users cleanup + delete-user controls */
body[data-portal-page="admin-users"] .portal-section{padding-top:28px;}
body[data-portal-page="admin-users"] .portal-layout{grid-template-columns:250px minmax(0,1fr);gap:24px;align-items:start;}
body[data-portal-page="admin-users"] .portal-card.users-management-card{padding:26px;border-radius:28px;overflow:hidden;}
body[data-portal-page="admin-users"] .portal-card-head{align-items:flex-start;}
body[data-portal-page="admin-users"] .portal-card-head h3{font-size:1.6rem;}
body[data-portal-page="admin-users"] .portal-card-head span[data-count="users"]{background:#eef5ff;border:1px solid #dce7f5;border-radius:999px;padding:8px 13px;line-height:1;}
.user-management-list{display:grid;gap:12px;width:100%;}
.user-management-row{display:grid;grid-template-columns:minmax(220px,1.3fr) minmax(160px,.9fr) minmax(90px,.45fr) minmax(130px,.55fr) minmax(220px,.9fr) minmax(150px,.55fr);gap:14px;align-items:center;background:#fff;border:1px solid #e3ebf7;border-radius:20px;padding:16px 18px;box-shadow:0 12px 32px rgba(6,35,94,.045);}
.user-main-cell{display:grid;gap:5px;min-width:0;}
.user-main-cell strong{color:#071447;font-size:1rem;line-height:1.25;overflow-wrap:anywhere;}
.user-main-cell a,.user-main-cell small{color:#64728d;font-size:.9rem;overflow-wrap:anywhere;}
.user-main-cell a{font-weight:750;}
.user-meta-cell{display:grid;gap:5px;min-width:0;}
.user-meta-cell span,.user-role-cell label{font-size:.72rem;text-transform:uppercase;letter-spacing:.11em;color:#64728d;font-weight:950;}
.user-meta-cell strong{color:#071447;font-size:.93rem;line-height:1.3;text-transform:capitalize;overflow-wrap:anywhere;}
.user-role-cell{display:grid;gap:8px;min-width:0;}
.user-role-cell .role-select{width:100%;min-width:0;}
.user-actions-cell{display:flex;gap:8px;justify-content:flex-end;align-items:center;flex-wrap:wrap;}
.user-actions-cell .btn.mini{min-height:40px;padding:10px 14px;}
.btn.danger,.btn.ghost.danger{color:#a3162d;border-color:#ffd4dc;background:#fff6f7;}
.btn.danger:hover,.btn.ghost.danger:hover{background:#a3162d;border-color:#a3162d;color:#fff;}
.protected-note{background:#f8fbff;border:1px solid #e2ebf7;border-radius:14px;padding:10px 12px;color:#64728d;}
.role-badge-vendor{background:#f7f1ff;color:#5b2fb7;}
.role-badge-customer_service,.role-badge-customer_support{background:#fff8e7;color:#8a5a00;}
.role-badge-merchandiser{background:#f4f0ff;color:#4532a6;}
.role-badge-quality_control_manager{background:#eefdf4;color:#136b35;}
.role-badge-production_manager{background:#fff1f1;color:#9b1c1c;}
@media(max-width:1280px){body[data-portal-page="admin-users"] .portal-layout{grid-template-columns:1fr;}body[data-portal-page="admin-users"] .portal-sidebar{position:relative;top:auto;}.user-management-row{grid-template-columns:1fr 1fr;align-items:start;}.user-main-cell,.user-role-cell,.user-actions-cell{grid-column:1/-1}.user-actions-cell{justify-content:flex-start;}}
@media(max-width:760px){.user-management-row{grid-template-columns:1fr;padding:14px;}.user-main-cell,.user-role-cell,.user-actions-cell{grid-column:auto}.user-actions-cell .btn{width:100%;}}

/* =========================================================
   STYLE BROWSING / SIZE RATIO / QC IMAGE UPGRADE
   ========================================================= */
body[data-style-page] .style-form-section{
  grid-column:1/-1;
  min-width:0;
  margin:2px 0 4px;
  padding:18px;
  border:1px solid rgba(51,75,192,.14);
  border-radius:20px;
  background:linear-gradient(135deg,#f8fbff 0%,#ffffff 70%);
}
body[data-style-page] .style-form-section legend{
  padding:0 8px;
  color:#151743;
  font-size:.82rem;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.08em;
}
body[data-style-page] .style-form-section>p{
  margin:0 0 14px;
  color:#64748b;
  font-size:.82rem;
  font-weight:700;
  line-height:1.5;
  text-transform:none;
  letter-spacing:0;
}
body[data-style-page] .style-grouping-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
body[data-style-page] .style-grouping-grid label{
  padding:12px;
  border:1px solid #e4eaf4;
  border-radius:16px;
  background:#fff;
}
body[data-style-page] .style-ratio-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(74px,1fr));
  gap:10px;
}
body[data-style-page] .style-ratio-grid label{
  gap:7px;
  align-items:center;
  padding:11px 8px;
  border:1px solid #e4eaf4;
  border-radius:16px;
  background:#fff;
  text-align:center;
}
body[data-style-page] .style-ratio-grid label span{
  color:#151743;
  font-size:.78rem;
  font-weight:950;
  letter-spacing:.08em;
}
body[data-style-page] .style-ratio-grid input{
  text-align:center;
  padding:.72rem .45rem;
}
body[data-style-page] .style-ratio-summary{
  grid-column:span 2;
  background:linear-gradient(135deg,#f7f8ff,#fff);
  border-color:rgba(51,75,192,.15);
}

/* Cleaner hierarchy: one year card, then one compact path row per season/origin/buy. */
body[data-style-page] .style-hierarchy{display:grid;gap:16px;width:100%}
body[data-style-page] .style-client-section,
body[data-style-page] .style-year-section,
body[data-style-page] .style-path-group{
  margin:0;
  overflow:hidden;
  border:1px solid #dce7f5;
  border-radius:20px;
  background:#fff;
  box-shadow:none;
}
body[data-style-page] .style-client-hierarchy-head,
body[data-style-page] .style-year-heading{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:10px;
  padding:14px 16px;
  border-bottom:1px solid #edf2f7;
  background:linear-gradient(135deg,#f8fbff,#fff);
}
body[data-style-page] .style-client-hierarchy-head span,
body[data-style-page] .style-year-heading span{
  display:inline-flex;
  width:max-content;
  padding:5px 9px;
  border:1px solid rgba(184,138,58,.22);
  border-radius:999px;
  background:#fff5df;
  color:#9a6f22;
  font-size:.64rem;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.12em;
}
body[data-style-page] .style-client-hierarchy-head strong,
body[data-style-page] .style-year-heading strong{
  color:#071447;
  font-size:1rem;
}
body[data-style-page] .style-client-hierarchy-head em,
body[data-style-page] .style-year-heading em,
body[data-style-page] .style-path-row>em{
  font-style:normal;
  font-size:.72rem;
  font-weight:900;
  color:#475569;
  white-space:nowrap;
}
body[data-style-page] .style-year-list,
body[data-style-page] .style-path-groups{
  display:grid;
  gap:12px;
  padding:12px;
  background:#f8fbff;
}
body[data-style-page] .style-path-group{
  border-radius:17px;
}
body[data-style-page] .style-path-row{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr)) auto;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-bottom:1px solid #edf2f7;
  background:#fff;
}
body[data-style-page] .style-path-row>span{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
body[data-style-page] .style-path-row small{
  color:#9a6f22;
  font-size:.62rem;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.11em;
}
body[data-style-page] .style-path-row strong{
  overflow-wrap:anywhere;
  color:#151743;
  font-size:.88rem;
}
body[data-style-page] .style-buy-styles{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:12px;
  padding:12px;
  background:#fff;
}

/* QC image upload/download controls. */
.qc-attachment-inputs{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.qc-attachment-inputs input[type="file"]{
  padding:12px;
  border-style:dashed;
  background:#f8fbff;
}
.qc-attachment-inputs small{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-size:.72rem;
  font-weight:700;
  line-height:1.4;
  text-transform:none;
  letter-spacing:0;
}
.qc-attachment-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:14px;
  padding:13px;
  border:1px solid #e2e8f0;
  border-radius:16px;
  background:#f8fbff;
}
.qc-attachment-card>div:first-child{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.qc-attachment-card>div:first-child>span:last-child{
  min-width:0;
}
.qc-attachment-card strong,
.qc-attachment-card small{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
}
.qc-attachment-card strong{color:#151743;font-size:.84rem;white-space:nowrap}
.qc-attachment-card small{margin-top:3px;color:#64748b;font-size:.72rem;white-space:nowrap}
.qc-attachment-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  flex:0 0 42px;
  border-radius:13px;
  background:#e9edff;
  color:#3048b8;
  font-size:.65rem;
  font-weight:950;
  letter-spacing:.05em;
}
.qc-attachment-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.qc-attachment-actions .btn{
  padding:.62rem .85rem;
  font-size:.74rem;
}
.qc-external-reference{background:#fffdf8}

@media(max-width:1050px){
  body[data-style-page] .style-grouping-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-style-page] .style-ratio-grid{grid-template-columns:repeat(4,minmax(74px,1fr))}
}
@media(max-width:700px){
  body[data-style-page] .style-grouping-grid,
  body[data-style-page] .style-ratio-grid,
  .qc-attachment-inputs{grid-template-columns:1fr 1fr}
  body[data-style-page] .style-client-hierarchy-head,
  body[data-style-page] .style-year-heading,
  body[data-style-page] .style-path-row{grid-template-columns:1fr;align-items:flex-start}
  body[data-style-page] .style-ratio-summary{grid-column:auto}
  .qc-attachment-card{align-items:flex-start;flex-direction:column}
  .qc-attachment-actions{width:100%;justify-content:stretch}
  .qc-attachment-actions .btn{flex:1;justify-content:center}
}
@media(max-width:470px){
  body[data-style-page] .style-grouping-grid,
  body[data-style-page] .style-ratio-grid,
  .qc-attachment-inputs{grid-template-columns:1fr}
}


/* Compact accessories + universal style detail minimizers */
body[data-style-page] .style-category-body>.style-detail-hero:first-child{margin-top:0}
body[data-style-page] .style-category-body>.style-meta-grid:last-child{margin-bottom:0}
body[data-style-page] .style-flow-card{margin:0;box-shadow:none}
body[data-style-page] .style-flow-card>div:first-child strong{display:block;color:#071447;font-size:1rem}
body[data-style-page] .style-flow-card>div:first-child small{display:block;margin-top:5px}
body[data-style-page] .style-collapsible-card+ .style-collapsible-card{margin-top:16px}

.accessory-form{display:grid;gap:10px;margin-bottom:16px;border:1px solid rgba(15,23,42,.08);background:linear-gradient(135deg,#f8fbff,#fff);border-radius:18px;padding:14px}
.accessory-form-grid{display:grid;grid-template-columns:minmax(210px,1fr) 110px minmax(260px,1.35fr) auto;gap:10px;align-items:end}
.accessory-form label{display:flex;flex-direction:column;gap:.36rem;font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.075em;color:#64748b}
.accessory-form input,.accessory-form textarea{width:100%;border:1px solid rgba(15,23,42,.14);border-radius:13px;padding:.72rem .78rem;background:#fff;color:#0f172a;font:inherit;outline:none;transition:border-color .2s,box-shadow .2s}
.accessory-form textarea{height:48px;min-height:48px;max-height:110px;resize:vertical;text-transform:none;letter-spacing:0;font-weight:500}
.accessory-form input:focus,.accessory-form textarea:focus{border-color:#334bc0;box-shadow:0 0 0 4px rgba(51,75,192,.08)}
.accessory-form>small{color:#64748b;font-weight:750;line-height:1.45}
.accessory-add-button{min-height:48px;white-space:nowrap}
.accessory-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:stretch}
.accessory-card{display:grid;grid-template-rows:auto 1fr auto;min-width:0;border:1px solid rgba(15,23,42,.09);border-left:4px solid #b88a3a;background:#fff;border-radius:16px;padding:12px 13px;box-shadow:0 8px 22px rgba(15,23,42,.04)}
.accessory-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.accessory-head strong{min-width:0;color:#0f172a;font-size:.94rem;line-height:1.3;overflow-wrap:anywhere}
.accessory-head em{flex:0 0 auto;font-style:normal;border-radius:999px;padding:.25rem .48rem;background:#fff5df;border:1px solid rgba(184,138,58,.28);color:#a0762c;font-size:.66rem;font-weight:950;letter-spacing:.06em;text-transform:uppercase}
.accessory-card p{margin:8px 0 10px;color:#475569;line-height:1.42;font-size:.84rem;overflow-wrap:anywhere}
.accessory-card .accessory-no-notes{color:#94a3b8;font-style:italic}
.accessory-delete-button{justify-self:start;padding:.52rem .72rem;font-size:.72rem}
body[data-style-page="buyer"] .accessory-card{grid-template-rows:auto 1fr}

@media(max-width:1180px){.accessory-form-grid{grid-template-columns:minmax(200px,1fr) 100px minmax(240px,1fr)}.accessory-add-button{grid-column:1/-1;justify-self:start}.accessory-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.accessory-form-grid{grid-template-columns:1fr 110px}.accessory-notes-field{grid-column:1/-1}.accessory-add-button{grid-column:1/-1;width:100%;justify-content:center}.accessory-list{grid-template-columns:1fr}}
@media(max-width:480px){.accessory-form-grid{grid-template-columns:1fr}.accessory-order-field,.accessory-notes-field{grid-column:auto}}


/* Minimize control for the client/style browser panel */
body[data-style-page] .style-workspace-collapsible{padding:0;overflow:hidden}
body[data-style-page] .style-workspace-collapsible>.workspace-panel-summary{list-style:none;cursor:pointer;padding:18px 20px;border-bottom:1px solid transparent;background:linear-gradient(135deg,#fff,#fbfcff)}
body[data-style-page] .style-workspace-collapsible>.workspace-panel-summary::-webkit-details-marker{display:none}
body[data-style-page] .style-workspace-collapsible>.workspace-panel-summary:after{content:'Open / Minimize  +';display:inline-flex;align-items:center;border-radius:999px;background:#111827;color:#fff;padding:8px 12px;font-size:.72rem;font-weight:950;letter-spacing:.04em;text-transform:uppercase;margin-left:auto}
body[data-style-page] .style-workspace-collapsible[open]>.workspace-panel-summary{border-bottom-color:rgba(15,23,42,.08)}
body[data-style-page] .style-workspace-collapsible[open]>.workspace-panel-summary:after{content:'Open / Minimize  −'}
body[data-style-page="buyer"] .style-workspace-collapsible>.workspace-panel-summary:after{content:'View / Hide  +'}
body[data-style-page="buyer"] .style-workspace-collapsible[open]>.workspace-panel-summary:after{content:'View / Hide  −'}
body[data-style-page] .style-list-panel-body{padding:0 18px 18px}
@media(max-width:760px){body[data-style-page] .style-workspace-collapsible>.workspace-panel-summary{align-items:flex-start;gap:12px;flex-wrap:wrap}body[data-style-page] .style-workspace-collapsible>.workspace-panel-summary:after{margin-left:0}}

/* Style management upgrade: collapsible hierarchy + editable accessory images */
body[data-style-page] details.style-client-section,
body[data-style-page] details.style-year-section,
body[data-style-page] details.style-path-group{
  display:block;
}
body[data-style-page] details.style-client-section>summary,
body[data-style-page] details.style-year-section>summary,
body[data-style-page] details.style-path-group>summary{
  list-style:none;
  cursor:pointer;
  user-select:none;
}
body[data-style-page] details.style-client-section>summary::-webkit-details-marker,
body[data-style-page] details.style-year-section>summary::-webkit-details-marker,
body[data-style-page] details.style-path-group>summary::-webkit-details-marker{
  display:none;
}
body[data-style-page] details.style-client-section>.style-client-hierarchy-head,
body[data-style-page] details.style-year-section>.style-year-heading{
  grid-template-columns:auto minmax(0,1fr) auto auto;
}
body[data-style-page] details.style-path-group>.style-path-row{
  grid-template-columns:repeat(3,minmax(0,1fr)) auto auto;
}
body[data-style-page] details.style-client-section>summary>b,
body[data-style-page] details.style-year-section>summary>b,
body[data-style-page] details.style-path-group>summary>b{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border-radius:999px;
  padding:7px 10px;
  background:#111827;
  color:#fff;
  font-size:.66rem;
  font-weight:950;
  letter-spacing:.035em;
  text-transform:uppercase;
  white-space:nowrap;
}
body[data-style-page] details.style-client-section>summary>b:after,
body[data-style-page] details.style-year-section>summary>b:after,
body[data-style-page] details.style-path-group>summary>b:after{content:'+';font-size:.9rem;line-height:1}
body[data-style-page] details.style-client-section[open]>summary>b:after,
body[data-style-page] details.style-year-section[open]>summary>b:after,
body[data-style-page] details.style-path-group[open]>summary>b:after{content:'−'}
body[data-style-page] details.style-client-section:not([open])>summary,
body[data-style-page] details.style-year-section:not([open])>summary,
body[data-style-page] details.style-path-group:not([open])>summary{border-bottom-color:transparent}

.accessory-form-grid{
  grid-template-columns:minmax(185px,1fr) 90px minmax(220px,1.15fr) minmax(220px,1fr) auto;
}
.accessory-image-field input[type="file"],
.accessory-edit-image input[type="file"]{
  padding:.57rem;
  border-style:dashed;
  background:#f8fbff;
  font-size:.76rem;
}
.accessory-image-field small,
.accessory-edit-image small{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-size:.66rem;
  font-weight:700;
  line-height:1.35;
  text-transform:none;
  letter-spacing:0;
}
.accessory-card{
  grid-template-rows:auto auto auto auto;
  align-content:start;
}
.accessory-media{
  position:relative;
  display:grid;
  gap:8px;
  margin:10px 0 2px;
  min-height:132px;
  overflow:hidden;
  border:1px solid #e2e8f0;
  border-radius:13px;
  background:#f8fbff;
}
.accessory-media img{
  display:block;
  width:100%;
  height:132px;
  object-fit:cover;
  background:#eef2f7;
}
.accessory-media .btn{
  margin:0 8px 8px;
  min-height:34px;
  padding:.48rem .7rem;
  justify-content:center;
  font-size:.7rem;
}
.accessory-media-empty{
  place-items:center;
  min-height:74px;
  padding:12px;
  border-style:dashed;
  color:#94a3b8;
  font-size:.76rem;
  font-weight:800;
}
.accessory-media-unavailable{
  place-items:center;
  min-height:74px;
}
.accessory-media-unavailable:before{
  content:'Image unavailable';
  color:#94a3b8;
  font-size:.74rem;
  font-weight:800;
}
.accessory-edit-panel{
  margin-top:8px;
  border-top:1px solid #edf2f7;
  padding-top:8px;
}
.accessory-edit-panel>summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:#3048b8;
  font-size:.76rem;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.accessory-edit-panel>summary::-webkit-details-marker{display:none}
.accessory-edit-panel>summary:after{content:'+';display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:999px;background:#eef2ff;color:#3048b8}
.accessory-edit-panel[open]>summary:after{content:'−'}
.accessory-edit-panel form{
  display:grid;
  grid-template-columns:minmax(0,1fr) 86px;
  gap:9px;
  margin-top:10px;
  padding:10px;
  border-radius:13px;
  background:#f8fbff;
}
.accessory-edit-panel label{
  display:flex;
  flex-direction:column;
  gap:5px;
  color:#64748b;
  font-size:.66rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.accessory-edit-panel input,
.accessory-edit-panel textarea{
  width:100%;
  border:1px solid rgba(15,23,42,.13);
  border-radius:10px;
  padding:.65rem .7rem;
  background:#fff;
  color:#0f172a;
  font:inherit;
  text-transform:none;
  letter-spacing:0;
}
.accessory-edit-panel textarea{min-height:70px;resize:vertical}
.accessory-edit-notes,
.accessory-edit-image,
.accessory-visibility-toggle,
.accessory-edit-actions{grid-column:1/-1}
.accessory-visibility-toggle{
  flex-direction:row!important;
  align-items:center;
  gap:8px!important;
  padding:8px 10px;
  border:1px solid #e2e8f0;
  border-radius:11px;
  background:#fff;
  color:#334155!important;
  text-transform:none!important;
  letter-spacing:0!important;
}
.accessory-visibility-toggle input{width:17px;height:17px;accent-color:#334bc0}
.accessory-edit-actions{display:flex;gap:7px;flex-wrap:wrap}
.accessory-edit-actions .btn{min-height:36px;padding:.52rem .72rem;font-size:.7rem}

@media(max-width:1320px){
  .accessory-form-grid{grid-template-columns:minmax(190px,1fr) 90px minmax(230px,1.2fr)}
  .accessory-image-field{grid-column:1/3}
  .accessory-add-button{grid-column:3;align-self:end}
}
@media(max-width:900px){
  body[data-style-page] details.style-client-section>.style-client-hierarchy-head,
  body[data-style-page] details.style-year-section>.style-year-heading,
  body[data-style-page] details.style-path-group>.style-path-row{
    grid-template-columns:1fr;
    align-items:flex-start;
  }
  body[data-style-page] details.style-client-section>summary>b,
  body[data-style-page] details.style-year-section>summary>b,
  body[data-style-page] details.style-path-group>summary>b{justify-self:start}
  .accessory-form-grid{grid-template-columns:1fr 100px}
  .accessory-notes-field,.accessory-image-field,.accessory-add-button{grid-column:1/-1}
  .accessory-add-button{width:100%;justify-content:center}
}
@media(max-width:520px){
  .accessory-form-grid,.accessory-edit-panel form{grid-template-columns:1fr}
  .accessory-order-field,.accessory-notes-field,.accessory-image-field,.accessory-add-button,
  .accessory-edit-notes,.accessory-edit-image,.accessory-visibility-toggle,.accessory-edit-actions{grid-column:auto}
  .accessory-edit-actions .btn{width:100%;justify-content:center}
}

/* Integrated style summary editor + repaired create-style placement */
body[data-style-page] .style-main-column{
  display:grid;
  gap:16px;
  min-width:0;
  align-content:start;
}
body[data-style-page] .style-main-column>.style-detail{
  width:100%;
  min-width:0;
}
body[data-style-page] .style-create-panel{
  width:100%;
  min-width:0;
  overflow:hidden;
  border:1px solid rgba(15,23,42,.1);
  border-radius:24px;
  background:rgba(255,255,255,.98);
  box-shadow:0 18px 55px rgba(15,23,42,.08);
}
body[data-style-page] .style-create-panel>summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:18px 20px;
  color:#071447;
  font-size:1rem;
  font-weight:950;
  letter-spacing:-.01em;
  border-bottom:1px solid transparent;
}
body[data-style-page] .style-create-panel>summary::-webkit-details-marker{display:none}
body[data-style-page] .style-create-panel>summary:after{
  content:'+';
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  flex:0 0 auto;
  border-radius:999px;
  background:#eef2ff;
  color:#3048b8;
  font-size:1.1rem;
}
body[data-style-page] .style-create-panel[open]>summary{
  border-bottom-color:#e6ebf3;
}
body[data-style-page] .style-create-panel[open]>summary:after{content:'−'}
body[data-style-page] .style-create-panel>.style-create-form{
  grid-template-columns:repeat(2,minmax(0,1fr));
  padding:20px;
}

body[data-style-page] .style-summary-edit-form{
  display:grid;
  gap:14px;
}
body[data-style-page] .style-summary-edit-hero{
  margin-bottom:0;
}
body[data-style-page] .style-summary-fieldset{
  min-width:0;
  margin:0;
  padding:16px;
  border:1px solid #e1e8f2;
  border-radius:19px;
  background:linear-gradient(135deg,#fbfdff,#fff);
}
body[data-style-page] .style-summary-fieldset>legend{
  padding:0 8px;
  color:#172554;
  font-size:.78rem;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.08em;
}
body[data-style-page] .style-summary-fieldset>p{
  margin:0 0 12px;
  color:#64748b;
  font-size:.82rem;
  line-height:1.45;
}
body[data-style-page] .style-summary-edit-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
body[data-style-page] .style-summary-group-grid,
body[data-style-page] .style-summary-production-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
body[data-style-page] .style-summary-production-grid .style-summary-colours{
  grid-column:span 2;
}
body[data-style-page] .style-summary-edit-form label,
body[data-style-page] .style-summary-text-grid label{
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:6px;
  color:#64748b;
  font-size:.7rem;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.075em;
}
body[data-style-page] .style-summary-edit-form input,
body[data-style-page] .style-summary-edit-form select,
body[data-style-page] .style-summary-edit-form textarea{
  width:100%;
  min-width:0;
  border:1px solid rgba(15,23,42,.14);
  border-radius:13px;
  padding:.76rem .82rem;
  background:#fff;
  color:#0f172a;
  font:inherit;
  font-weight:650;
  text-transform:none;
  letter-spacing:0;
  outline:none;
  transition:border-color .2s,box-shadow .2s;
}
body[data-style-page] .style-summary-edit-form input:focus,
body[data-style-page] .style-summary-edit-form select:focus,
body[data-style-page] .style-summary-edit-form textarea:focus{
  border-color:#334bc0;
  box-shadow:0 0 0 4px rgba(51,75,192,.09);
}
body[data-style-page] .style-summary-text-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
body[data-style-page] .style-summary-text-grid textarea{
  min-height:100px;
  resize:vertical;
}
body[data-style-page] .style-summary-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
  padding-top:2px;
}
body[data-style-page] .style-summary-actions .btn{
  min-width:170px;
  justify-content:center;
}

/* Make accessory edit, image upload and deletion unmistakably visible */
.accessory-head-badges{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  flex-wrap:wrap;
}
.accessory-head-badges>span{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:.25rem .48rem;
  background:#eef2ff;
  border:1px solid #dbe3ff;
  color:#3048b8;
  font-size:.62rem;
  font-weight:950;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.accessory-edit-panel{
  margin-top:10px;
  padding-top:0;
  border-top:0;
}
.accessory-edit-panel>summary{
  min-height:38px;
  padding:8px 11px;
  border:1px solid #dbe3ff;
  border-radius:11px;
  background:#f5f7ff;
  color:#3048b8;
}
.accessory-edit-panel[open]>summary{
  border-color:#3048b8;
  background:#eef2ff;
}
.accessory-edit-panel form{
  border:1px solid #e1e8f2;
  box-shadow:0 8px 22px rgba(15,23,42,.04);
}

@media(max-width:1180px){
  body[data-style-page] .style-summary-edit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-style-page] .style-summary-group-grid,
  body[data-style-page] .style-summary-production-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-style-page] .style-summary-production-grid .style-summary-colours{grid-column:auto}
}
@media(max-width:760px){
  body[data-style-page] .style-create-panel>.style-create-form,
  body[data-style-page] .style-summary-edit-grid,
  body[data-style-page] .style-summary-group-grid,
  body[data-style-page] .style-summary-production-grid,
  body[data-style-page] .style-summary-text-grid{grid-template-columns:1fr}
  body[data-style-page] .style-summary-actions{display:grid;grid-template-columns:1fr}
  body[data-style-page] .style-summary-actions .btn{width:100%;min-width:0}
}

/* =========================================================
   Vendor collaboration portal
   ========================================================= */
.vendor-hero .portal-status-card{border-color:rgba(72,73,185,.28);background:linear-gradient(145deg,#fff,#f1f3ff)}
.vendor-sidebar a.active{background:#171747;color:#fff;border-color:#171747}
.vendor-access-note{display:flex;align-items:flex-start;gap:14px;padding:18px 20px;margin:0 0 22px;border:1px solid #dde1f1;border-radius:18px;background:#f7f8ff;color:#555b78}
.vendor-access-note strong{min-width:max-content;color:#19194c}
.vendor-access-note.compact{margin:0 0 18px;padding:14px 18px;font-size:.92rem}
.vendor-metrics article:first-child{background:linear-gradient(145deg,#171747,#4145ad);color:#fff}
.vendor-metrics article:first-child span{color:#dfe2ff}

.vendor-assignment-self{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);gap:24px;align-items:center;padding:22px;border:1px solid #dfe3f3;border-radius:20px;background:#f8f9ff}
.vendor-assignment-self h4{font-size:1.25rem;margin:4px 0 8px;color:#151543}
.vendor-assignment-self p{margin:0;color:#656b88}
.vendor-assignment-form{padding:20px;border:1px solid #dfe3f3;border-radius:20px;background:#fafbff;margin-bottom:18px}
.vendor-assignment-top{display:grid;grid-template-columns:minmax(240px,1fr) minmax(260px,1.25fr) auto;gap:14px;align-items:end}
.vendor-assignment-top label,.vendor-update-grid label{display:grid;gap:8px;font-weight:800;color:#60667f;text-transform:uppercase;letter-spacing:.08em;font-size:.78rem}
.vendor-assignment-top select,.vendor-assignment-top input,.vendor-update-grid select,.vendor-update-grid input,.vendor-update-grid textarea{width:100%;border:1px solid #dce0ee;border-radius:14px;background:#fff;padding:13px 14px;color:#17183d;font:inherit;text-transform:none;letter-spacing:normal}
.vendor-permission-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0 10px}
.vendor-permission-option{display:flex!important;align-items:center;gap:9px!important;padding:12px 13px;border:1px solid #dfe3f1;border-radius:14px;background:#fff;text-transform:none!important;letter-spacing:normal!important;font-size:.88rem!important;cursor:pointer}
.vendor-permission-option input{width:auto!important;accent-color:#4849b9}
.vendor-permission-option span{font-weight:800;color:#22234f}
.vendor-assignment-list{display:grid;gap:12px}
.vendor-assignment-card{display:grid;grid-template-columns:minmax(240px,1fr) minmax(280px,1.4fr) auto;gap:18px;align-items:center;padding:18px 20px;border:1px solid #e0e3ef;border-left:5px solid #b9923f;border-radius:18px;background:#fff}
.vendor-assignment-card.inactive{opacity:.62}
.vendor-assignment-card strong{display:block;color:#171744;font-size:1rem}
.vendor-assignment-card>div>span{display:block;color:#6d728b;font-size:.88rem;margin-top:3px}
.vendor-assignment-card p{margin:8px 0 0;color:#555b75}
.vendor-permission-tags{display:flex;flex-wrap:wrap;gap:7px}
.vendor-permission-tags span{display:inline-flex;padding:7px 10px;border-radius:999px;background:#eef0ff;color:#373a98;font-size:.74rem;font-weight:900;text-transform:uppercase;letter-spacing:.05em}

.vendor-update-form{padding:20px;border:1px solid #dfe3f3;border-radius:20px;background:#fafbff;margin-bottom:18px}
.vendor-update-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:end}
.vendor-update-message{grid-column:1 / -1}
.vendor-update-message textarea{min-height:110px;resize:vertical}
.vendor-update-visible{display:flex!important;align-items:center;gap:10px!important;text-transform:none!important;letter-spacing:normal!important;font-size:.9rem!important}
.vendor-update-visible input{width:auto!important;accent-color:#4849b9}
.vendor-update-list{display:grid;gap:14px}
.vendor-update-card{padding:20px;border:1px solid #dfe3ef;border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(33,37,88,.05)}
.vendor-update-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}
.vendor-update-head strong{display:block;color:#151543;font-size:1.02rem}
.vendor-update-head span{display:block;color:#7a7f96;font-size:.82rem;margin-top:4px}
.vendor-update-head>div:last-child{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.vendor-update-head em,.vendor-update-head b,.vendor-update-head i{font-style:normal;padding:6px 9px;border-radius:999px;background:#f2f3f9;color:#50566f;font-size:.7rem;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.vendor-update-head b{background:#ebeefe;color:#323795}
.vendor-update-head i{background:#eef8f1;color:#267247}
.vendor-update-card>p{margin:16px 0;color:#41465f;line-height:1.65}
.vendor-update-attachment{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;margin:12px 0;border:1px dashed #cfd4e7;border-radius:13px;background:#f8f9fd;color:#454a67}

.role-badge-vendor{background:#f0ecff;color:#5b35a8}
[data-vendor-type-field] small{display:block;margin-top:7px;color:#70758c;font-size:.8rem;line-height:1.4}

@media (max-width:1100px){
  .vendor-permission-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .vendor-assignment-card{grid-template-columns:1fr}
  .vendor-assignment-card .btn{justify-self:start}
  .vendor-update-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
  .vendor-access-note,.vendor-assignment-self{grid-template-columns:1fr;display:grid}
  .vendor-assignment-top,.vendor-update-grid{grid-template-columns:1fr}
  .vendor-permission-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .vendor-update-message{grid-column:auto}
  .vendor-update-head{display:grid}
  .vendor-update-head>div:last-child{justify-content:flex-start}
}
@media (max-width:480px){
  .vendor-permission-grid{grid-template-columns:1fr}
  .vendor-update-attachment{align-items:flex-start;flex-direction:column}
}

/* =========================================================
   Buyer / Vendor shared Order Summary
   ========================================================= */
.order-summary-hero .portal-status-card{background:linear-gradient(145deg,#171747,#4347b1);color:#fff;border-color:transparent}
.order-summary-page .portal-layout{align-items:start}
.order-summary-sidebar>div[data-order-nav]{display:grid;gap:8px}
.order-summary-content{min-width:0}
.order-summary-toolbar{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin:0 0 22px}
.order-summary-toolbar h2{margin:5px 0 6px;color:#171747;font-size:clamp(1.7rem,2.4vw,2.5rem)}
.order-summary-toolbar p{margin:0;color:#6c728b;max-width:760px}
.order-summary-toolbar-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.order-summary-toolbar select{min-width:270px;border:1px solid #dce0ee;border-radius:999px;background:#fff;padding:13px 44px 13px 18px;color:#171747;font:inherit;font-weight:800}
.order-summary-banner{padding:28px;border:1px solid #dfe3f1;border-radius:26px;background:linear-gradient(145deg,#fff,#f5f6ff);box-shadow:0 22px 60px rgba(29,33,79,.07)}
.order-summary-loading,.order-summary-empty{display:grid;place-items:center;gap:14px;min-height:180px;color:#656b86;text-align:center}
.order-summary-title-row{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;padding-bottom:22px;border-bottom:1px solid #e3e6f1}
.order-summary-kicker{display:inline-block;color:#9b7427;text-transform:uppercase;letter-spacing:.13em;font-weight:900;font-size:.76rem}
.order-summary-title-row h3{margin:6px 0 8px;color:#171747;font-size:clamp(1.65rem,2.6vw,2.75rem)}
.order-summary-title-row p{margin:0;color:#686e88;line-height:1.55;max-width:760px}
.order-status-pill{display:inline-flex;align-items:center;justify-content:center;min-width:max-content;padding:10px 15px;border-radius:999px;background:#eef0f7;color:#545a71;font-size:.76rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.order-status-pill.status-in_development{background:#fff4d6;color:#895f13}
.order-status-pill.status-in_production{background:#e8edff;color:#2f3d9f}
.order-status-pill.status-delivered,.order-status-pill.status-ready_to_ship{background:#eaf8ee;color:#237442}
.order-status-pill.status-cancelled{background:#fff0ef;color:#9b2922}
.order-summary-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-top:22px}
.order-summary-metrics article{padding:17px 16px;border:1px solid #e1e4ef;border-radius:17px;background:#fff;min-width:0}
.order-summary-metrics span{display:block;margin-bottom:7px;color:#777d96;font-size:.7rem;text-transform:uppercase;letter-spacing:.09em;font-weight:900}
.order-summary-metrics strong{display:block;color:#171747;font-size:1.02rem;word-break:break-word}
.order-summary-actions{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;margin-top:18px}
.order-image-warning,.order-image-ok{font-size:.86rem;font-weight:750;color:#7d5b18}
.order-image-ok{color:#32734b}
.order-summary-controls{display:flex;justify-content:space-between;align-items:flex-end;gap:22px;margin:22px 0 18px}
.order-summary-search{display:grid;gap:7px;min-width:min(520px,100%);color:#666c84;text-transform:uppercase;letter-spacing:.07em;font-size:.72rem;font-weight:900}
.order-summary-search input{width:100%;border:1px solid #dce0ec;border-radius:17px;background:#fff;padding:15px 17px;color:#171747;font:inherit;text-transform:none;letter-spacing:normal;box-shadow:0 8px 25px rgba(28,32,75,.04)}
.order-summary-view-note{max-width:620px;color:#686e88;font-size:.9rem;line-height:1.5;text-align:right}
.order-summary-view-note strong{color:#27285f}
.order-style-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.order-style-card{display:grid;grid-template-columns:minmax(250px,.78fr) minmax(0,1.22fr);overflow:hidden;border:1px solid #dfe3ef;border-radius:24px;background:#fff;box-shadow:0 18px 50px rgba(24,29,73,.07)}
.order-style-card-media{padding:18px;background:linear-gradient(160deg,#f5f6fb,#eceff8);border-right:1px solid #e1e4ef;min-width:0}
.order-style-main-image{position:relative;display:grid;place-items:center;min-height:330px;border-radius:18px;background:#fff;overflow:hidden;border:1px solid #e0e3ec}
.order-style-main-image img{display:block;width:100%;height:330px;object-fit:contain;padding:12px}
.order-style-main-image span{position:absolute;left:12px;bottom:12px;padding:7px 10px;border-radius:999px;background:rgba(23,23,71,.88);color:#fff;font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.05em;max-width:calc(100% - 24px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.order-style-thumbnails{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
.order-style-thumb{display:grid;gap:5px;padding:7px;border:1px solid #dfe3ed;border-radius:12px;background:#fff;color:#555b75;cursor:pointer;text-align:left;transition:.2s ease}
.order-style-thumb:hover,.order-style-thumb.active{border-color:#4849b9;box-shadow:0 0 0 2px rgba(72,73,185,.1)}
.order-style-thumb img{width:100%;height:72px;object-fit:contain;background:#f8f9fc;border-radius:8px}
.order-style-thumb span{font-size:.63rem;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.order-style-no-image{display:grid;place-items:center;text-align:center;gap:8px;min-height:330px;padding:28px;border:1px dashed #bfc5d9;border-radius:18px;color:#777d94;background:#fff}
.order-style-no-image strong{color:#26275a;font-size:1.05rem}
.order-style-card-body{display:flex;flex-direction:column;gap:16px;padding:22px;min-width:0}
.order-style-card-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.order-style-card-head span{display:block;color:#a27a2e;font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.order-style-card-head h3{margin:5px 0 0;color:#171747;font-size:1.24rem;line-height:1.25}
.order-style-card-head b{min-width:max-content;padding:8px 10px;border-radius:999px;background:#f3f4f8;color:#4f556c;font-size:.78rem}
.order-style-facts{display:grid;gap:10px}
.order-detail-block{padding:12px 14px;border:1px solid #e2e5ef;border-radius:14px;background:#fafbfe;min-width:0}
.order-detail-block>span{display:block;margin-bottom:5px;color:#757b92;font-size:.67rem;font-weight:900;text-transform:uppercase;letter-spacing:.07em}
.order-detail-block>div{color:#2b2d55;line-height:1.48;overflow-wrap:anywhere}
.order-color-chip{display:inline-flex;padding:5px 8px;margin:2px 4px 2px 0;border-radius:999px;background:#eef0ff;color:#383b96;font-size:.72rem;font-weight:850}
.order-style-details{border-top:1px solid #e5e7f0;padding-top:10px}
.order-style-details summary{cursor:pointer;color:#333587;font-weight:900;list-style:none}
.order-style-details summary::-webkit-details-marker{display:none}
.order-style-details summary:after{content:'+';float:right}
.order-style-details[open] summary:after{content:'−'}
.order-style-details-grid{display:grid;gap:10px;margin-top:12px}
.order-style-card-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:auto}
.order-style-card-actions .btn{font-size:.78rem;padding:10px 13px}
.order-image-manager{display:grid;gap:10px;padding:15px;border:1px solid #dfe3f2;border-radius:16px;background:#f7f8ff}
.order-image-manager>.btn{justify-self:start}
.order-image-manage-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:9px;border-top:1px solid #e0e3ef}
.order-image-manage-row>span{min-width:0;color:#4f556d;font-size:.78rem;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-image-manage-row>div{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.btn.mini{padding:8px 10px;font-size:.7rem;border-radius:999px}

@media(max-width:1380px){
  .order-style-grid{grid-template-columns:1fr}
  .order-summary-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:980px){
  .order-summary-toolbar,.order-summary-controls{display:grid;align-items:start}
  .order-summary-toolbar-actions{justify-content:flex-start}
  .order-summary-view-note{text-align:left}
  .order-style-card{grid-template-columns:1fr}
  .order-style-card-media{border-right:0;border-bottom:1px solid #e1e4ef}
  .order-style-main-image,.order-style-no-image{min-height:300px}
  .order-style-main-image img{height:300px}
}
@media(max-width:700px){
  .order-summary-banner{padding:20px}
  .order-summary-title-row{display:grid}
  .order-summary-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .order-summary-toolbar select{min-width:0;width:100%}
  .order-summary-toolbar-actions{display:grid;width:100%}
  .order-summary-toolbar-actions .btn{width:100%}
  .order-style-card-body{padding:17px}
  .order-style-card-head{display:grid}
  .order-style-main-image,.order-style-no-image{min-height:260px}
  .order-style-main-image img{height:260px}
  .order-image-manage-row{align-items:flex-start;display:grid}
  .order-image-manage-row>div{justify-content:flex-start}
}
@media(max-width:470px){
  .order-summary-metrics{grid-template-columns:1fr}
  .order-style-thumbnails{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* Buyer-first Order Summary and shared Style Tracker picture sync */
.portal-sidebar .buyer-order-summary-nav{
  background:linear-gradient(135deg,#24245f,#4b50c7);
  color:#fff;
  border-color:transparent;
  box-shadow:0 12px 28px rgba(52,54,146,.2);
}
.portal-sidebar .buyer-order-summary-nav:hover,
.portal-sidebar .buyer-order-summary-nav.active{color:#fff;transform:translateY(-1px)}
.buyer-order-summary-feature{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  margin:0 0 20px;
  padding:20px 22px;
  border-radius:22px;
  background:linear-gradient(135deg,#171747,#4348b8);
  color:#fff;
  text-decoration:none;
  box-shadow:0 20px 48px rgba(32,34,104,.18);
}
.buyer-order-summary-feature span{font-size:.72rem;font-weight:900;letter-spacing:.13em;text-transform:uppercase;color:#d9c17d}
.buyer-order-summary-feature strong{font-size:1.12rem;color:#fff}
.buyer-order-summary-feature em{font-style:normal;color:rgba(255,255,255,.8);font-weight:750;text-align:right}

body[data-style-page] .style-list-card{
  display:grid;
  grid-template-columns:86px minmax(0,1fr);
  gap:14px;
  align-items:center;
}
body[data-style-page] .style-list-card-image{
  display:grid;
  place-items:center;
  width:86px;
  height:96px;
  overflow:hidden;
  border-radius:15px;
  border:1px solid rgba(15,23,42,.1);
  background:#f4f6fb;
}
body[data-style-page] .style-list-card-image img{display:block;width:100%;height:100%;object-fit:contain;padding:5px;background:#fff}
body[data-style-page] .style-list-card-image-empty{align-content:center;gap:4px;color:#777d94;text-align:center}
body[data-style-page] .style-list-card-image-empty b{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#171747;color:#fff;font-size:.72rem}
body[data-style-page] .style-list-card-image-empty small{font-size:.64rem;color:#7a8095}
body[data-style-page] .style-list-card-content{display:block;min-width:0}

body[data-style-page] .style-summary-picture-panel{
  display:grid;
  grid-template-columns:minmax(230px,310px) minmax(0,1fr);
  gap:22px;
  align-items:center;
  margin:0 0 18px;
  padding:18px;
  border:1px solid #e0e4f0;
  border-radius:22px;
  background:linear-gradient(145deg,#fff,#f6f7fc);
}
body[data-style-page] .style-summary-picture-media{
  position:relative;
  display:grid;
  place-items:center;
  min-height:250px;
  overflow:hidden;
  border:1px solid #dde1ec;
  border-radius:18px;
  background:#fff;
}
body[data-style-page] .style-summary-picture-media img{display:block;width:100%;height:250px;object-fit:contain;padding:10px}
body[data-style-page] .style-summary-picture-media>span{
  position:absolute;
  left:11px;
  bottom:11px;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(23,23,71,.9);
  color:#fff;
  font-size:.65rem;
  font-weight:900;
  letter-spacing:.07em;
  text-transform:uppercase;
}
body[data-style-page] .style-summary-picture-empty{align-content:center;gap:8px;padding:25px;text-align:center;color:#747a91;border-style:dashed}
body[data-style-page] .style-summary-picture-empty strong{color:#28295e;font-size:1.02rem}
body[data-style-page] .style-summary-picture-copy h3{margin:6px 0 8px;color:#171747;font-size:1.35rem}
body[data-style-page] .style-summary-picture-copy p{margin:0;color:#68708b;line-height:1.55;max-width:680px}
body[data-style-page] .style-summary-picture-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:15px}

@media(max-width:820px){
  .buyer-order-summary-feature{grid-template-columns:1fr;gap:8px}
  .buyer-order-summary-feature em{text-align:left}
  body[data-style-page] .style-summary-picture-panel{grid-template-columns:1fr}
  body[data-style-page] .style-summary-picture-media{min-height:280px}
  body[data-style-page] .style-summary-picture-media img{height:280px}
}
@media(max-width:560px){
  body[data-style-page] .style-list-card{grid-template-columns:70px minmax(0,1fr);gap:10px}
  body[data-style-page] .style-list-card-image{width:70px;height:82px}
  body[data-style-page] .style-summary-picture-media{min-height:230px}
  body[data-style-page] .style-summary-picture-media img{height:230px}
}

/* =========================================================
   Style Communication Threads
   ========================================================= */
.communication-form-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid #e4e7f2}
.communication-form-heading h4{margin:4px 0 5px;color:#171744;font-size:1.08rem}
.communication-form-heading p{margin:0;color:#69708c}
.communication-rule{display:inline-flex;align-items:center;justify-content:center;padding:9px 12px;border-radius:999px;background:#eef0ff;color:#383b9d;font-size:.72rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.communication-open-button{align-self:end;min-height:50px}
.communication-active-wrap{display:grid;gap:12px}
.communication-active-label{display:flex;align-items:center;gap:9px;color:#373b90;font-size:.78rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.communication-active-label span{width:10px;height:10px;border-radius:50%;background:#4b50c5;box-shadow:0 0 0 6px rgba(75,80,197,.12)}
.communication-no-active{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border:1px dashed #cfd4e7;border-radius:18px;background:#fafbff;color:#616781}
.communication-no-active strong{color:#1a1b4a}
.communication-thread{overflow:hidden}
.communication-thread.active{border:1px solid #cdd2ef;box-shadow:0 18px 45px rgba(41,46,113,.10)}
.communication-thread.closed{margin:0;border:none;border-radius:0;box-shadow:none;background:#fff}
.communication-thread-label{display:block!important;margin:0 0 7px!important;color:#a17c2d!important;font-size:.7rem!important;font-weight:900!important;letter-spacing:.08em!important;text-transform:uppercase}
.vendor-update-head i.waiting{background:#fff4cf;color:#76550f}
.vendor-update-head i.closed{background:#eef3f0;color:#32664b}
.communication-opening-message{margin:18px 0 0;padding:18px;border-radius:16px;background:#f7f8fc;border:1px solid #e4e7f1}
.communication-opening-message>p{margin:0;color:#353b59;line-height:1.7}
.communication-reply-list{display:grid;gap:12px;margin:18px 0}
.communication-reply{position:relative;margin-left:26px;padding:17px 18px;border:1px solid #e0e4ef;border-radius:16px;background:#fff}
.communication-reply:before{content:"";position:absolute;left:-26px;top:25px;width:18px;height:1px;background:#cfd4e5}
.communication-reply-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.communication-reply-meta strong{color:#1b1c4c}
.communication-reply-meta time{margin-left:auto;color:#7c8197;font-size:.78rem}
.communication-role{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:.67rem;font-weight:900;letter-spacing:.05em;text-transform:uppercase}
.communication-role.team{background:#eceeff;color:#363a9c}
.communication-role.vendor{background:#fff4db;color:#7c5a15}
.communication-role.buyer{background:#eaf7f0;color:#246844}
.communication-reply>p{margin:13px 0 0;color:#41465f;line-height:1.65}
.communication-next-owner{margin-top:13px;padding-top:12px;border-top:1px solid #eceef5;color:#72778f;font-size:.82rem}
.communication-next-owner strong{color:#35398c}
.communication-no-replies{margin:16px 0;padding:14px 16px;border-radius:14px;background:#fafbfe;color:#7b8096;text-align:center}
.communication-reply-form{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(220px,.65fr) minmax(230px,.8fr);gap:14px;align-items:end;margin-top:18px;padding:18px;border:1px solid #dce1f0;border-radius:18px;background:#f8f9ff}
.communication-reply-form label{display:grid;gap:8px;font-weight:800;color:#60667f;text-transform:uppercase;letter-spacing:.08em;font-size:.76rem}
.communication-reply-form textarea,.communication-reply-form select,.communication-reply-form input{width:100%;border:1px solid #d9deed;border-radius:13px;background:#fff;padding:12px 13px;color:#17183d;font:inherit;text-transform:none;letter-spacing:normal}
.communication-reply-form textarea{min-height:92px;resize:vertical}
.communication-reply-form small{font-size:.7rem;color:#82879c;text-transform:none;letter-spacing:normal;font-weight:600}
.communication-reply-actions{grid-column:1 / -1;display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.communication-close{border-color:#e4c7c3!important;color:#8b2f28!important;background:#fff8f7!important}
.communication-history{display:grid;gap:10px;margin-top:24px;padding-top:22px;border-top:1px solid #e7e9f2}
.communication-history-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.communication-history-heading h4{margin:0;color:#1b1c4a}
.communication-history-heading span{padding:7px 10px;border-radius:999px;background:#f1f2f7;color:#676c82;font-size:.72rem;font-weight:900;text-transform:uppercase}
.communication-history-item{border:1px solid #e0e3ee;border-radius:16px;background:#fff;overflow:hidden}
.communication-history-item>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;cursor:pointer;list-style:none}
.communication-history-item>summary::-webkit-details-marker{display:none}
.communication-history-item>summary span{display:grid;gap:3px}
.communication-history-item>summary strong{color:#1b1c4a}
.communication-history-item>summary small{color:#7d8298}
.communication-history-item>summary em{font-style:normal;color:#555b76;font-size:.76rem;font-weight:900;text-transform:uppercase}
.communication-history-item[open]>summary{border-bottom:1px solid #e5e8f1;background:#fafbfe}
.communication-closed-note{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px;padding:14px 16px;border-radius:14px;background:#eef4f0;color:#355f49}
.communication-closed-note span{color:#6f7d74;font-size:.8rem}
.communication-closed-note p{flex-basis:100%;margin:0;color:#466454}

@media (max-width:1100px){
  .communication-reply-form{grid-template-columns:1fr 1fr}
  .communication-reply-form>label:first-of-type{grid-column:1 / -1}
}
@media (max-width:760px){
  .communication-form-heading,.communication-no-active{display:grid}
  .communication-rule{justify-self:start;white-space:normal;text-align:center}
  .communication-reply-form{grid-template-columns:1fr}
  .communication-reply-form>label:first-of-type,.communication-reply-actions{grid-column:auto}
  .communication-reply-actions{justify-content:stretch}
  .communication-reply-actions .btn{width:100%}
  .communication-reply{margin-left:0}
  .communication-reply:before{display:none}
  .communication-reply-meta time{margin-left:0;flex-basis:100%}
  .communication-history-item>summary{align-items:flex-start}
}

/* =========================================================
   STYLE COMMUNICATION CENTER
   ========================================================= */
body[data-communication-page] .portal-layout{grid-template-columns:280px minmax(0,1fr);align-items:start}
body[data-communication-page] .communication-center-page{display:grid;gap:22px}
.communication-search-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.72fr);gap:24px;align-items:end;position:relative;z-index:5}
.communication-search-panel h2{margin:5px 0 8px;color:#171747;font-size:2rem;letter-spacing:-.04em}
.communication-search-panel p{margin:0;color:#68708b;line-height:1.65;max-width:800px}
.communication-style-search-label{display:grid;gap:9px;color:#5e647e;font-size:.76rem;font-weight:900;text-transform:uppercase;letter-spacing:.09em;position:relative}
.communication-style-search-label input{width:100%;min-height:60px;border:1px solid #d9deed;border-radius:18px;background:#fff;padding:0 18px;color:#171747;font:inherit;font-size:1.05rem;text-transform:none;letter-spacing:normal;box-shadow:0 12px 30px rgba(39,43,105,.06)}
.communication-search-results{position:absolute;right:24px;top:calc(100% - 8px);width:min(620px,calc(100% - 48px));display:grid;gap:8px;padding:12px;border:1px solid #d9deed;border-radius:18px;background:#fff;box-shadow:0 24px 65px rgba(29,34,91,.16);z-index:20}
.communication-search-result{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:center;border:1px solid #e3e6f0;border-radius:14px;background:#fbfbfe;padding:13px 15px;text-align:left;cursor:pointer;color:#171747;font:inherit}
.communication-search-result:hover{border-color:#b9bfe9;background:#f3f4ff;transform:translateY(-1px)}
.communication-search-result span{display:grid;gap:3px}.communication-search-result strong{font-size:1rem}.communication-search-result b{font-size:.84rem}.communication-search-result small{color:#73798f}
.communication-search-no-result{padding:16px;color:#747a91;text-align:center}
.communication-center-empty{display:grid;justify-items:center;gap:8px;padding:46px 26px;border:1px dashed #cfd4e7;border-radius:24px;background:#fafbff;text-align:center;color:#73798f}
.communication-center-empty strong{color:#1b1c4a;font-size:1.12rem}
.communication-style-context{display:grid;grid-template-columns:minmax(260px,360px) minmax(0,1fr);gap:24px;padding:24px;border:1px solid #dce1ef;border-radius:30px;background:#fff;box-shadow:0 26px 70px rgba(31,36,94,.08)}
.communication-style-image{display:grid;place-items:center;min-height:310px;border:1px solid #e0e3ed;border-radius:22px;background:#f7f8fc;overflow:hidden}
.communication-style-image img{width:100%;height:310px;object-fit:contain;padding:12px}
.communication-style-image.empty{align-content:center;gap:8px;color:#747a91}.communication-style-image.empty strong{width:62px;height:62px;border-radius:20px;background:#171747;color:#fff;display:grid;place-items:center}.communication-style-copy{align-self:center}.communication-style-copy h2{margin:6px 0 10px;color:#171747;font-size:2rem;letter-spacing:-.04em}.communication-style-copy>p{margin:0;color:#68708b;line-height:1.65}.communication-style-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:20px 0}.communication-style-facts span{display:grid;gap:5px;padding:13px 14px;border:1px solid #e3e6ef;border-radius:14px;background:#fafbfe;color:#303650}.communication-style-facts span.wide{grid-column:span 3}.communication-style-facts b{color:#757b91;font-size:.68rem;text-transform:uppercase;letter-spacing:.09em}
.communication-center-board{padding:0;overflow:hidden}.communication-center-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 26px;border-bottom:1px solid #e5e8f1}.communication-center-head h3{margin:5px 0 5px;color:#171747;font-size:1.55rem}.communication-center-head p{margin:0;color:#73798f}.communication-center-head>div:last-child{display:flex;gap:8px;flex-wrap:wrap}.communication-center-head em{font-style:normal;padding:8px 11px;border-radius:999px;background:#f1f2f7;color:#5f657e;font-size:.72rem;font-weight:900;text-transform:uppercase}
.communication-center-open-form{margin:24px;padding:22px;border:1px solid #dfe3f3;border-radius:22px;background:#fafbff}.communication-center-open-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.communication-center-open-grid .vendor-update-message{grid-column:1/-1}.communication-center-board>.communication-active-wrap,.communication-center-board>.communication-no-active,.communication-center-board>.communication-center-empty,.communication-center-board>.communication-history{margin:24px}.communication-center-board>.communication-history{padding-top:24px}
.communication-center-reply{grid-template-columns:minmax(0,1.7fr) minmax(260px,.8fr)}
.communication-center-reply .communication-reply-actions{grid-column:1/-1}
.communication-qc-source{display:grid;gap:10px;margin-top:14px;padding:15px 16px;border:1px solid #ead9ac;border-radius:14px;background:#fffaf0;color:#494121}.communication-qc-source>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px}.communication-qc-source span{color:#987329;font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.communication-qc-source strong{color:#312b1f}.communication-qc-tags{display:flex;gap:7px;flex-wrap:wrap}.communication-qc-tags em{font-style:normal;padding:5px 8px;border-radius:999px;background:#f8edd1;color:#72551b;font-size:.68rem;font-weight:900;text-transform:uppercase}.communication-qc-source p{margin:0;color:#514a39;line-height:1.6}.communication-qc-actions{display:flex;gap:8px;flex-wrap:wrap}
.communication-router-page{min-height:100vh;display:grid;place-items:center;background:linear-gradient(180deg,#f7f8ff,#fff)}.communication-router{display:grid;justify-items:center;gap:12px;color:#171747}.communication-router img{width:86px;height:86px;object-fit:contain;border-radius:20px}.communication-router strong{font-size:1.2rem}.communication-router span{color:#72788f}
.style-communication-shortcut{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:center;padding:24px 26px;margin:0 0 22px;border:1px solid #d7dcf0;border-radius:26px;background:linear-gradient(135deg,#f8f9ff,#fff);box-shadow:0 18px 45px rgba(39,44,108,.07)}.style-communication-shortcut h3{margin:6px 0 7px;color:#171747;font-size:1.35rem}.style-communication-shortcut p{margin:0;color:#69708b;line-height:1.6}.style-communication-shortcut>div:last-child{display:grid;justify-items:end;gap:10px}.style-communication-shortcut>div:last-child>span{color:#6d7389;font-size:.76rem;font-weight:900;text-transform:uppercase;letter-spacing:.07em}

@media(max-width:1280px){body[data-communication-page] .portal-layout{grid-template-columns:1fr}body[data-communication-page] .portal-sidebar{position:relative;top:auto}.communication-center-open-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.communication-search-panel,.communication-style-context{grid-template-columns:1fr}.communication-search-results{position:static;width:100%;margin-top:14px;grid-column:1/-1}.communication-style-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.communication-style-facts span.wide{grid-column:span 2}.communication-center-head,.style-communication-shortcut{display:grid}.style-communication-shortcut>div:last-child{justify-items:start}.communication-center-reply{grid-template-columns:1fr}}
@media(max-width:620px){.communication-style-facts,.communication-center-open-grid{grid-template-columns:1fr}.communication-style-facts span.wide{grid-column:auto}.communication-style-image,.communication-style-image img{min-height:240px;height:240px}.communication-search-result{grid-template-columns:1fr}.communication-center-head,.communication-center-open-form,.communication-center-board>.communication-active-wrap,.communication-center-board>.communication-no-active,.communication-center-board>.communication-center-empty,.communication-center-board>.communication-history{margin:16px}.communication-center-head{padding:20px}.communication-style-context{padding:16px;border-radius:22px}}


/* Active Style Communication inbox */
.communication-nav-link{display:flex!important;align-items:center;justify-content:space-between;gap:12px}
.communication-nav-link b{min-width:25px;height:25px;padding:0 7px;border-radius:999px;display:grid;place-items:center;background:#4d4fc4;color:#fff;font-size:.68rem;line-height:1;font-weight:900;box-shadow:0 7px 18px rgba(77,79,196,.24)}
.communication-nav-link.active b{background:#fff;color:#3436a7}
.communication-active-inbox{padding:0;overflow:hidden;border-color:#dce1ef}
.communication-active-inbox-head{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 26px;border-bottom:1px solid #e5e8f1;background:linear-gradient(135deg,#fff,#fafaff)}
.communication-active-inbox-head h2{margin:5px 0 7px;color:#171747;font-size:1.7rem;letter-spacing:-.035em}
.communication-active-inbox-head p{margin:0;max-width:880px;color:#6d748e;line-height:1.6}
.communication-active-inbox-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.communication-active-inbox-actions>strong{padding:10px 13px;border-radius:999px;background:#eef0ff;color:#4144b3;font-size:.76rem;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.communication-active-inbox-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:20px 24px 24px;background:#fbfcff}
.communication-active-inbox-loading{grid-column:1/-1;padding:32px;border:1px dashed #d4d8e8;border-radius:18px;text-align:center;color:#727991;background:#fff}
.communication-active-inbox-empty{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:14px;padding:28px;border:1px dashed #d4d8e8;border-radius:20px;background:#fff;color:#71778f;text-align:left}
.communication-active-inbox-empty strong{display:block;margin-bottom:4px;color:#1b1c4a}.communication-active-inbox-empty p{margin:0;line-height:1.55}
.communication-inbox-check{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#edf8f1;color:#25824d;font-size:1.2rem;font-weight:900}
.communication-active-inbox-card{display:grid;grid-template-columns:92px minmax(0,1fr) auto;gap:15px;align-items:center;padding:14px;border:1px solid #dfe3ef;border-radius:20px;background:#fff;box-shadow:0 12px 28px rgba(35,40,96,.055);transition:.18s ease}
.communication-active-inbox-card:hover{transform:translateY(-2px);border-color:#babfea;box-shadow:0 16px 36px rgba(35,40,96,.09)}
.communication-active-inbox-card.selected{border-color:#5658c8;box-shadow:0 0 0 3px rgba(86,88,200,.09)}
.communication-active-thumb{width:92px;height:92px;border:1px solid #e1e4ee;border-radius:16px;display:grid;place-items:center;overflow:hidden;background:#f7f8fc}
.communication-active-thumb img{width:100%;height:100%;object-fit:contain;padding:6px}.communication-active-thumb.empty strong{width:42px;height:42px;border-radius:13px;background:#171747;color:#fff;display:grid;place-items:center}
.communication-active-card-copy{min-width:0}.communication-active-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:5px}.communication-active-card-top span{padding:5px 8px;border-radius:999px;background:#fff4cc;color:#80601b;font-size:.64rem;font-weight:900;text-transform:uppercase;letter-spacing:.07em}.communication-active-card-top time{color:#858ba0;font-size:.72rem;white-space:nowrap}
.communication-active-card-copy h3{margin:0 0 4px;color:#171747;font-size:1.05rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.communication-active-card-copy>strong{display:block;color:#3d4261;font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.communication-active-card-copy p{margin:5px 0 0;color:#777d92;font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.communication-active-open{white-space:nowrap}
@media(max-width:1100px){.communication-active-inbox-list{grid-template-columns:1fr}.communication-active-inbox-head{align-items:flex-start}.communication-active-inbox-card{grid-template-columns:82px minmax(0,1fr) auto}.communication-active-thumb{width:82px;height:82px}}
@media(max-width:720px){.communication-active-inbox-head{display:grid;padding:20px}.communication-active-inbox-actions{justify-content:space-between}.communication-active-inbox-list{padding:14px}.communication-active-inbox-card{grid-template-columns:70px minmax(0,1fr);gap:12px}.communication-active-thumb{width:70px;height:70px}.communication-active-open{grid-column:1/-1;width:100%}.communication-active-card-top{align-items:flex-start;display:grid}.communication-active-card-top time{white-space:normal}.communication-active-inbox-empty{align-items:flex-start}}

/* =========================================================
   TR GLOBAL SITE UPDATE CENTER
   ========================================================= */
.newest-updates-card{margin-top:18px;overflow:hidden}
.newest-updates-head{align-items:flex-start;gap:22px;padding-bottom:20px;border-bottom:1px solid #e8ebf5}
.newest-updates-head>div{max-width:820px}
.newest-updates-head h3{font-size:28px;margin:3px 0 7px;color:#17164c}
.newest-updates-head p{margin:0;color:#69708b;line-height:1.65}
.newest-updates-kicker{display:block;color:#9b772c;font-size:11px;font-weight:900;letter-spacing:2px;text-transform:uppercase}
.newest-updates-open{white-space:nowrap}
.site-update-list{display:grid;gap:12px;padding-top:18px}
.site-update-item{width:100%;display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:14px;align-items:start;padding:17px 18px;border:1px solid #e3e7f2;border-radius:18px;background:#fff;box-shadow:0 12px 32px rgba(24,27,77,.045);cursor:pointer;text-align:left;transition:.2s ease}
.site-update-item:hover{transform:translateY(-1px);border-color:#cfd5ef;box-shadow:0 18px 38px rgba(24,27,77,.08)}
.site-update-item.is-unread{border-color:#c8cdf7;background:linear-gradient(135deg,#fbfbff,#f3f5ff)}
.site-update-item.is-compact{padding:15px 16px}
.site-update-dot{width:9px;height:9px;border-radius:999px;background:#c8cce0;margin-top:7px;box-shadow:0 0 0 5px rgba(200,204,224,.2)}
.site-update-item.is-unread .site-update-dot{background:#4d4fc6;box-shadow:0 0 0 5px rgba(77,79,198,.12)}
.site-update-copy{min-width:0}
.site-update-topline{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.site-update-topline time{margin-left:auto;color:#8a90a7;font-size:12px;font-weight:700}
.site-update-module,.site-update-new{display:inline-flex;align-items:center;min-height:25px;padding:4px 9px;border-radius:999px;font-size:10px;font-weight:900;letter-spacing:.7px;text-transform:uppercase}
.site-update-module{background:#f2f3f8;color:#555d7a}
.site-update-new{background:#ececff;color:#3f43b2}
.site-update-copy>strong{display:block;color:#17164c;font-size:16px;line-height:1.35;margin-bottom:4px}
.site-update-context{display:block;color:#3d4267;font-size:13px;font-weight:800;margin-bottom:5px}
.site-update-copy p{margin:0 0 7px;color:#626984;font-size:14px;line-height:1.55;white-space:normal;overflow-wrap:anywhere}
.site-update-copy small{display:block;color:#9297aa;font-size:12px}
.site-update-arrow{align-self:center;color:#4d4fc6;font-size:20px;font-weight:900;padding-left:5px}
.portal-updates-nav{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;border:1px solid #e1e5f0;border-radius:17px;background:#f8f9fc;color:#151544;font:inherit;font-weight:800;text-align:left;cursor:pointer;transition:.2s ease}
.portal-updates-nav:hover{border-color:#cdd2eb;background:#fff;transform:translateX(2px)}
.portal-updates-nav em{min-width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#4d4fc6;color:#fff;font-size:11px;font-style:normal;font-weight:900;padding:0 7px}
.site-updates-overlay{position:fixed;inset:0;z-index:99998;background:rgba(12,15,39,.45);backdrop-filter:blur(5px);display:flex;justify-content:flex-end}
.site-updates-overlay[hidden]{display:none!important}
.site-updates-drawer{width:min(560px,100%);height:100%;overflow:auto;background:#f8f9fd;box-shadow:-24px 0 70px rgba(15,18,55,.25);padding:28px;animation:siteUpdatesSlide .24s ease both}
@keyframes siteUpdatesSlide{from{transform:translateX(32px);opacity:.3}to{transform:none;opacity:1}}
.site-updates-drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:4px 2px 22px;border-bottom:1px solid #dfe4f0}
.site-updates-drawer-head span{display:block;color:#4d4fc6;font-size:11px;font-weight:900;letter-spacing:1.8px;text-transform:uppercase}
.site-updates-drawer-head h2{margin:5px 0 5px;color:#16154b;font-size:32px}
.site-updates-drawer-head p{margin:0;color:#737991;line-height:1.55}
.site-updates-close{width:42px;height:42px;border:1px solid #dbe0ed;border-radius:999px;background:#fff;color:#1b1a50;font-size:28px;line-height:1;cursor:pointer}
.site-updates-drawer-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 2px}
.site-updates-drawer-actions strong{color:#3b4161;font-size:13px}
.site-updates-action-buttons{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.site-updates-drawer-actions button{border:0;background:transparent;color:#4247bd;font-weight:900;cursor:pointer;padding:7px 0}
.site-updates-drawer-actions button:disabled{cursor:wait;opacity:.55}
.site-updates-drawer-actions .site-updates-clear{color:#a12d3f}
.site-updates-drawer-list{display:grid;gap:11px;padding-bottom:40px}
body.site-updates-open{overflow:hidden}
.site-update-toast{position:fixed;right:28px;bottom:116px;z-index:99999;width:min(380px,calc(100vw - 30px));display:grid;gap:4px;padding:17px 20px;border:1px solid rgba(255,255,255,.22);border-radius:20px;background:linear-gradient(135deg,#21205d,#4d4fc6);color:#fff;text-align:left;box-shadow:0 24px 60px rgba(21,24,72,.35);cursor:pointer;opacity:0;transform:translateY(20px);pointer-events:none;transition:.25s ease}
.site-update-toast.show{opacity:1;transform:none;pointer-events:auto}
.site-update-toast span{font-size:10px;font-weight:900;letter-spacing:1.4px;text-transform:uppercase;opacity:.75}
.site-update-toast strong{font-size:16px;line-height:1.35}
.site-update-toast small{opacity:.78}
@media(max-width:900px){
  .newest-updates-head{flex-direction:column}
  .newest-updates-open{width:100%}
  .site-updates-drawer{padding:22px 18px}
}
@media(max-width:620px){
  .site-update-item{grid-template-columns:10px minmax(0,1fr);padding:15px}
  .site-update-arrow{display:none}
  .site-update-topline time{width:100%;margin-left:0}
  .site-updates-drawer-head h2{font-size:27px}
  .site-updates-drawer-actions{align-items:flex-start;flex-direction:column}
  .site-updates-action-buttons{width:100%;justify-content:space-between}
  .site-update-toast{right:15px;bottom:98px}
}


/* Account recovery system */
.auth-card-intro{margin:0;color:#64728d;line-height:1.65}
.auth-recovery-links{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-top:-4px}
.auth-recovery-links a,.auth-text-link{color:#3048b8;font-weight:900;text-decoration:none}
.auth-recovery-links a:hover,.auth-text-link:hover{text-decoration:underline}
.auth-text-link{text-align:center}
.auth-card textarea{width:100%;border:1px solid #dce7f5;background:#f8fbff;border-radius:16px;min-height:112px;padding:14px;font:inherit;color:#071447;resize:vertical}
.password-guidance{border:1px solid #dce7f5;background:#f8fbff;border-radius:18px;padding:14px;display:grid;gap:4px;color:#64728d}
.password-guidance strong{color:#071447}
.recovery-honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}
.account-recovery-card{margin-bottom:22px}
.account-recovery-toolbar{display:flex;justify-content:flex-end;gap:10px;align-items:center;margin-bottom:16px}
.account-recovery-toolbar select{border:1px solid #dce7f5;background:#f8fbff;border-radius:14px;min-height:42px;padding:0 12px;font:inherit;color:#071447;font-weight:850}
.account-recovery-list{display:grid;gap:14px}
.account-recovery-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,360px);gap:18px;border:1px solid #e2ebf7;background:#fbfdff;border-radius:22px;padding:18px}
.account-recovery-main{display:grid;gap:7px;align-content:start;color:#53617f}
.account-recovery-title{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.account-recovery-main strong{color:#071447;font-size:1.08rem}
.account-recovery-main a{color:#3048b8;font-weight:900;text-decoration:none}
.account-recovery-main p{margin:4px 0 0;line-height:1.55;white-space:pre-wrap}
.account-recovery-actions{display:grid;gap:10px}
.account-recovery-actions label{display:grid;gap:6px;color:#071447;font-size:.78rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.account-recovery-actions select,.account-recovery-actions textarea{border:1px solid #dce7f5;background:#fff;border-radius:14px;padding:10px 12px;font:inherit;color:#071447}
.account-recovery-actions textarea{min-height:72px;resize:vertical}
.recovery-status-pending{background:#fff8e7;color:#8a5a00;border-color:#ffe4a8}
.recovery-status-contacted{background:#eef5ff;color:#064cb3;border-color:#dce7f5}
.recovery-status-resolved{background:#eefdf4;color:#136b35;border-color:#cbf1d9}
.recovery-status-dismissed{background:#f3f4f7;color:#626979;border-color:#e0e3ea}
@media(max-width:900px){.account-recovery-row{grid-template-columns:1fr}}
@media(max-width:520px){.auth-recovery-links{display:grid}.account-recovery-toolbar{display:grid;justify-content:stretch}.account-recovery-toolbar select,.account-recovery-toolbar button{width:100%}}

/* =========================================================
   ADMIN ACCOUNT MANAGEMENT
   ========================================================= */
.admin-account-management-card{margin-bottom:22px}
.admin-account-management-card>.portal-card-head{align-items:center;gap:18px}
.admin-account-editor{margin-top:18px;border:1px solid #dfe8f5;background:linear-gradient(180deg,#fbfdff,#f6f8ff);border-radius:24px;padding:22px}
.admin-account-editor-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:20px}
.admin-account-editor-head h3{margin:4px 0 6px;color:#12164b;font-size:1.45rem}
.admin-account-editor-head p{margin:0;color:#66728f;line-height:1.5}
.admin-account-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.admin-account-form-grid label{display:grid;gap:7px;color:#18204e;font-size:.78rem;font-weight:950;text-transform:uppercase;letter-spacing:.06em}
.admin-account-form-grid label small{font-size:.68rem;color:#77819b;text-transform:none;letter-spacing:0;line-height:1.35}
.admin-account-form-grid input,.admin-account-form-grid select{width:100%;min-height:50px;border:1px solid #dbe5f3;border-radius:15px;background:#fff;padding:0 13px;font:inherit;color:#11164b;font-weight:750;text-transform:none;letter-spacing:0}
.admin-account-form-grid input:disabled,.admin-account-form-grid select:disabled{opacity:.58;background:#f1f3f8;cursor:not-allowed}
.admin-account-form-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;flex-wrap:wrap;margin-top:18px}
.created-login-panel{margin-top:18px;border:1px solid #cdd8fa;background:#f0f4ff;border-radius:18px;padding:16px;color:#18204e}
.created-login-panel p{margin:5px 0 10px;color:#63708f}
.created-login-panel pre{white-space:pre-wrap;word-break:break-word;background:#fff;border:1px solid #dbe5f3;border-radius:14px;padding:13px;font:700 .9rem/1.55 ui-monospace,SFMono-Regular,Menlo,monospace;color:#11164b}
.account-management-row{grid-template-columns:minmax(240px,1.35fr) minmax(170px,.85fr) minmax(170px,.8fr) minmax(135px,.6fr) minmax(310px,1.2fr)}
.user-username{display:inline-flex;width:max-content;color:#4658ba;background:#eef1ff;border-radius:999px;padding:3px 9px;font-size:.75rem;font-weight:900}
.account-management-row .user-actions-cell{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.account-management-row .user-meta-cell small{color:#77819b;font-weight:800;text-transform:capitalize}
@media(max-width:1250px){.admin-account-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.account-management-row{grid-template-columns:1fr 1fr}.account-management-row .user-main-cell,.account-management-row .user-actions-cell{grid-column:1/-1}.account-management-row .user-actions-cell{justify-content:flex-start}}
@media(max-width:700px){.admin-account-management-card>.portal-card-head,.admin-account-editor-head{display:grid}.admin-account-management-card>.portal-card-head .btn{width:100%}.admin-account-form-grid{grid-template-columns:1fr}.admin-account-form-actions{display:grid}.admin-account-form-actions .btn{width:100%}.account-management-row{grid-template-columns:1fr}.account-management-row .user-main-cell,.account-management-row .user-actions-cell{grid-column:auto}.account-management-row .user-actions-cell{display:grid}.account-management-row .user-actions-cell .btn{width:100%}}

/* Actual public catalogue sync */
.catalogue-source-intro{margin-top:18px}.catalogue-source-intro .portal-card-head{align-items:center}.catalogue-source-layout{margin-top:18px;grid-template-columns:minmax(0,1.35fr) minmax(360px,.85fr)}.catalogue-source-list-card{min-width:0}.catalogue-source-tools{display:grid;gap:12px;margin:14px 0 18px}.catalogue-source-tools input{width:100%;border:1px solid rgba(25,32,82,.11);border-radius:18px;padding:15px 17px;background:#f8faff;color:#171d49;font-weight:800}.catalogue-source-list{max-height:1050px;overflow:auto;padding-right:5px}.actual-catalogue-item{transition:.18s ease}.actual-catalogue-item:hover{border-color:rgba(51,75,192,.28);transform:translateY(-1px)}.catalogue-source-editor{position:sticky;top:105px}.catalogue-editor-empty{position:sticky;top:105px;text-align:center;padding:34px}.catalogue-editor-empty p{color:#66708d;line-height:1.65}.catalogue-editor-heading{grid-column:1/-1;display:flex;justify-content:space-between;gap:18px;align-items:center;border-bottom:1px solid rgba(25,32,82,.08);padding-bottom:16px;margin-bottom:4px}.catalogue-editor-heading h3{margin:5px 0 0}.catalogue-editor-preview{width:126px;min-height:96px;border-radius:18px;background:#eef3ff;display:grid;place-items:center;overflow:hidden;text-align:center;color:#66708d;font-size:.75rem;font-weight:850}.catalogue-editor-preview img{width:100%;height:96px;object-fit:cover}.catalogue-editor-preview span{padding:8px}.fabric-card-image{height:190px;border-radius:18px;overflow:hidden;background:#eef3ff;margin:14px 0}.fabric-card-image img{width:100%;height:100%;object-fit:cover;display:block}.catalogue-hidden-item main{min-height:55vh}
@media(max-width:1100px){.catalogue-source-layout{grid-template-columns:1fr}.catalogue-source-editor,.catalogue-editor-empty{position:relative;top:auto}.catalogue-source-list{max-height:none}}
@media(max-width:700px){.catalogue-editor-heading{align-items:flex-start;flex-direction:column}.catalogue-editor-preview{width:100%;height:190px}.catalogue-editor-preview img{height:190px}.catalogue-source-intro .portal-card-head{align-items:flex-start}}

/* =========================================================
   ZOOM APPOINTMENTS + COMMUNICATION
   ========================================================= */
.appointment-hero{background:radial-gradient(circle at 78% 26%,rgba(105,122,255,.2),transparent 34%),linear-gradient(135deg,#0b174d,#1c286d 62%,#303cac)}
.appointment-total{display:inline-flex;gap:7px;align-items:center;border:1px solid #dce5f4;background:#f8fbff;border-radius:999px;padding:9px 14px;color:#65708b;font-weight:850}.appointment-total strong{color:#11184d}
.appointment-request-card{margin-bottom:22px}.appointment-request-form textarea{min-height:130px}.appointment-request-submit{display:grid;align-content:end;gap:7px}.appointment-request-submit small{color:#707b95;line-height:1.4}
.appointment-list{display:grid;gap:20px}.appointment-card{border:1px solid #dfe7f4;background:#fff;border-radius:26px;padding:22px;box-shadow:0 16px 45px rgba(24,36,92,.07);scroll-margin-top:110px}.appointment-card.internal{border-left:5px solid #334fc3}
.appointment-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding-bottom:18px;border-bottom:1px solid #e7edf7}.appointment-card-head h3{margin:5px 0 7px;color:#10164b;font-size:1.35rem}.appointment-card-head p{margin:0;color:#68738e;line-height:1.55}.appointment-card-head a{color:#3048b8;font-weight:900;text-decoration:none}.appointment-eyebrow{font-size:.7rem;font-weight:950;text-transform:uppercase;letter-spacing:.11em;color:#5868c4}
.appointment-confirmed{margin-top:18px;border:1px solid #cad8ff;background:linear-gradient(135deg,#f5f7ff,#edf2ff);border-radius:20px;padding:18px;display:grid;gap:7px}.appointment-confirmed span{font-size:.72rem;text-transform:uppercase;letter-spacing:.09em;font-weight:950;color:#5666bf}.appointment-confirmed strong{font-size:1.15rem;color:#10164b}.appointment-confirmed small{color:#6a7591}.appointment-join{width:max-content;margin-top:8px}
.appointment-staff-note,.appointment-purpose{margin-top:18px;border:1px solid #e2e8f4;background:#fafcff;border-radius:18px;padding:16px}.appointment-staff-note strong,.appointment-purpose strong{color:#11174b}.appointment-staff-note p,.appointment-purpose p{margin:7px 0 0;color:#5f6b87;line-height:1.6}
.appointment-details-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:18px;margin-top:18px}.appointment-details-grid>div{border:1px solid #e4eaf5;border-radius:18px;padding:16px;display:grid;gap:8px;align-content:start}.appointment-details-grid span{font-size:.72rem;font-weight:950;text-transform:uppercase;letter-spacing:.08em;color:#6a7590}.appointment-details-grid strong{color:#11164b}.appointment-details-grid small{color:#73809a;line-height:1.5}.appointment-details-grid ul{list-style:none;margin:0;padding:0;display:grid;gap:9px}.appointment-details-grid li{display:grid;gap:2px}.appointment-details-grid li span{font-size:.65rem}.appointment-details-grid li strong{font-size:.88rem}
.appointment-actions{display:flex;justify-content:flex-end;margin-top:16px}
.appointment-thread{margin-top:20px;border-top:1px solid #e4eaf4;padding-top:18px}.appointment-thread-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.appointment-thread-head strong{color:#11164b}.appointment-thread-head small{color:#768099}.appointment-messages{display:grid;gap:10px;margin-top:12px}.appointment-message{max-width:82%;border-radius:18px;padding:13px 15px;background:#f1f4fa;border:1px solid #e2e8f2}.appointment-message.team{margin-left:auto;background:#eef2ff;border-color:#d7def9}.appointment-message>div{display:flex;gap:10px;justify-content:space-between;align-items:center}.appointment-message strong{font-size:.83rem;color:#11164b}.appointment-message time{font-size:.7rem;color:#7a849c}.appointment-message p{margin:7px 0 0;color:#53607d;line-height:1.55}.appointment-message-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin-top:12px}.appointment-message-form textarea{min-height:72px;border:1px solid #dce5f2;border-radius:15px;padding:12px 14px;font:inherit;resize:vertical;color:#11164b}.appointment-message-form .portal-alert{grid-column:1/-1}
.appointment-schedule-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:20px;border:1px solid #dce5f3;background:#f8fbff;border-radius:22px;padding:18px}.appointment-schedule-form label{display:grid;gap:7px;color:#17204f;font-size:.74rem;font-weight:950;text-transform:uppercase;letter-spacing:.06em}.appointment-schedule-form input,.appointment-schedule-form select,.appointment-schedule-form textarea{width:100%;border:1px solid #d7e1ef;border-radius:14px;background:#fff;padding:11px 12px;font:inherit;color:#11164b;text-transform:none;letter-spacing:0}.appointment-schedule-form input,.appointment-schedule-form select{min-height:48px}.appointment-schedule-form textarea{min-height:92px;resize:vertical}.appointment-schedule-form .span-2{grid-column:1/-1}.appointment-auto-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.appointment-auto-actions span{color:#77819a;font-size:.8rem;font-weight:800}.appointment-form-actions{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.appointment-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,260px);gap:12px;margin-bottom:20px}.appointment-filters input,.appointment-filters select{border:1px solid #dce5f2;border-radius:15px;background:#f8fbff;padding:13px 14px;font:inherit;color:#11164b;font-weight:750}.appointment-metrics{margin-bottom:20px}.appointment-status-pending{background:#fff8e4;color:#865900;border-color:#ffe2a0}.appointment-status-scheduled{background:#edf3ff;color:#2949a9;border-color:#d2ddff}.appointment-status-completed{background:#eafaf1;color:#176838;border-color:#c7ead4}.appointment-status-cancelled,.appointment-status-declined{background:#f5f1f3;color:#825064;border-color:#e8d9df}.portal-empty.compact{padding:14px}
@media(max-width:900px){.appointment-details-grid{grid-template-columns:1fr}.appointment-schedule-form{grid-template-columns:1fr}.appointment-schedule-form .span-2{grid-column:auto}.appointment-filters{grid-template-columns:1fr}.appointment-message{max-width:94%}}
@media(max-width:620px){.appointment-card{padding:17px;border-radius:21px}.appointment-card-head{display:grid}.appointment-card-head .pill{width:max-content}.appointment-message-form{grid-template-columns:1fr}.appointment-message-form .btn{width:100%}.appointment-auto-actions,.appointment-form-actions{display:grid}.appointment-auto-actions .btn,.appointment-form-actions .btn,.appointment-join{width:100%}.appointment-thread-head{align-items:flex-start;flex-direction:column}}
.portal-toolbar-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.appointment-dashboard-feature{margin-top:12px;background:linear-gradient(135deg,#151f65,#3048b8);color:#fff}.appointment-dashboard-feature span,.appointment-dashboard-feature strong,.appointment-dashboard-feature em{color:#fff}.appointment-dashboard-feature em{opacity:.82}@media(max-width:700px){.portal-toolbar-actions{display:grid;width:100%}.portal-toolbar-actions .btn{width:100%}}

/* =========================================================
   INVOICE MANAGEMENT
   Build: 20260620-style-tracking-full-width-v3
   ========================================================= */
.invoice-hero{background:radial-gradient(circle at 82% 22%,rgba(99,128,255,.22),transparent 34%),linear-gradient(135deg,#080d3d,#151d66 58%,#2839a0)}
.invoice-admin-content{display:grid;gap:20px}.invoice-toolbar{align-items:flex-end}.invoice-metrics{margin-bottom:0}.invoice-list-panel{padding:18px}.invoice-list-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,260px);gap:12px;margin-bottom:16px}.invoice-list-tools input,.invoice-list-tools select{width:100%;min-height:48px;border:1px solid #dce3f0;border-radius:15px;background:#f8faff;padding:0 14px;color:#11174b;font:inherit;font-weight:750}.invoice-list{display:grid;gap:10px}.invoice-list-card{display:grid;grid-template-columns:minmax(230px,1.35fr) minmax(160px,.65fr) auto auto;gap:18px;align-items:center;padding:16px 17px;border:1px solid #e0e5f1;border-radius:18px;background:#fff;transition:.18s ease}.invoice-list-card:hover{border-color:#bfc9ec;box-shadow:0 12px 28px rgba(31,43,105,.07);transform:translateY(-1px)}.invoice-list-main,.invoice-list-money{display:grid;gap:4px}.invoice-list-main strong,.invoice-list-money strong{color:#10164a}.invoice-list-main small,.invoice-list-money small{color:#737c94}.invoice-list-money{text-align:right}.invoice-list-money span{color:#7b839a;font-size:.68rem;font-weight:950;text-transform:uppercase;letter-spacing:.08em}.invoice-number{color:#334bb6;font-size:.72rem;font-weight:950;text-transform:uppercase;letter-spacing:.09em}.invoice-list-actions{display:flex;gap:7px}.btn.small{min-height:38px;padding:9px 13px;font-size:.78rem}
.invoice-status{display:inline-flex;align-items:center;justify-content:center;width:max-content;border:1px solid transparent;border-radius:999px;padding:7px 10px;font-size:.68rem;font-weight:950;text-transform:uppercase;letter-spacing:.07em;white-space:nowrap}.invoice-status-draft{background:#f1f2f6;color:#666c7d;border-color:#e1e3e9}.invoice-status-sent{background:#edf2ff;color:#2b47aa;border-color:#d3ddff}.invoice-status-viewed{background:#eff3ff;color:#5a47a4;border-color:#ded9fa}.invoice-status-partially_paid{background:#fff7e7;color:#8b5d08;border-color:#ffe2aa}.invoice-status-paid{background:#eaf8ef;color:#17633a;border-color:#c9e8d5}.invoice-status-overdue{background:#fff0ef;color:#9b332f;border-color:#f2cecb}.invoice-status-cancelled{background:#f6f1f3;color:#815264;border-color:#e6d9de}
.invoice-builder-shell{scroll-margin-top:100px}.invoice-builder-grid{display:grid;grid-template-columns:minmax(0,1.28fr) minmax(390px,.72fr);gap:22px;align-items:start}.invoice-editor-card{padding:0;overflow:hidden}.invoice-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px 26px;border-bottom:1px solid #e5e9f2;background:linear-gradient(135deg,#f8faff,#fff)}.invoice-editor-head span{color:#5265bd;font-size:.7rem;font-weight:950;text-transform:uppercase;letter-spacing:.1em}.invoice-editor-head h2{margin:5px 0 7px;color:#10164a;font-size:1.65rem}.invoice-editor-head p{margin:0;color:#737c93}.invoice-form-section{padding:24px 26px;border-bottom:1px solid #e7eaf2}.invoice-section-title{display:flex;gap:14px;align-items:flex-start;margin-bottom:18px}.invoice-section-title>span{width:36px;height:36px;border-radius:12px;background:#11184f;color:#fff;display:grid;place-items:center;font-size:.74rem;font-weight:950}.invoice-section-title h3{margin:0 0 4px;color:#11174b;font-size:1.15rem}.invoice-section-title p{margin:0;color:#798198;font-size:.86rem}.invoice-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.invoice-form-grid label{display:grid;gap:7px;color:#4e5773;font-size:.72rem;font-weight:950;text-transform:uppercase;letter-spacing:.06em}.invoice-form-grid label.span-2{grid-column:1/-1}.invoice-form-grid input,.invoice-form-grid select,.invoice-form-grid textarea{width:100%;min-height:48px;border:1px solid #dce3ef;border-radius:14px;background:#fbfcff;padding:11px 13px;color:#11164a;font:inherit;text-transform:none;letter-spacing:0}.invoice-form-grid textarea{min-height:98px;resize:vertical}.invoice-items-scroll{overflow:auto;border:1px solid #dfe5f0;border-radius:16px}.invoice-items-table{width:100%;min-width:1070px;border-collapse:collapse}.invoice-items-table th{background:#10164f;color:#fff;padding:11px 9px;text-align:left;font-size:.66rem;text-transform:uppercase;letter-spacing:.06em}.invoice-items-table td{padding:9px;border-top:1px solid #e3e8f1;vertical-align:top;color:#11164a;font-size:.8rem}.invoice-items-table td:not(:nth-child(2)){text-align:center}.invoice-items-table textarea,.invoice-items-table input{width:100%;border:1px solid #dce3ef;border-radius:10px;background:#fff;padding:8px;font:inherit;color:#11164a}.invoice-items-table textarea{min-height:58px;resize:vertical}.invoice-items-table td:nth-child(2)>input{margin-top:6px}.invoice-items-table td:nth-child(3) input{width:75px}.invoice-items-table td:nth-child(4) input,.invoice-items-table td:nth-child(7) input{width:105px}.invoice-line-total,.invoice-line-balance{font-weight:900;white-space:nowrap}.invoice-remove-line{width:30px;height:30px;border:0;border-radius:9px;background:#fff0ef;color:#9b332f;font-size:1.2rem;cursor:pointer}.invoice-add-line{margin-top:12px}.invoice-editor-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding:20px 26px;background:#f8faff}.invoice-upload-label{position:relative;overflow:hidden;cursor:pointer}.invoice-upload-label input{position:absolute;inset:0;opacity:0;cursor:pointer}.invoice-upload-label.disabled{opacity:.45;pointer-events:none}.invoice-editor-actions .danger{margin-left:auto}
.invoice-preview-panel{position:sticky;top:96px;display:grid;gap:10px}.invoice-preview-toolbar{display:flex;justify-content:space-between;align-items:center;padding:12px 15px;border:1px solid #dfe4f1;border-radius:15px;background:#fff;color:#68718c;font-size:.75rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.invoice-preview-toolbar strong{color:#11164a}.invoice-document{width:100%;background:#fff;border:1px solid #dce2ee;border-radius:12px;padding:22px;box-shadow:0 24px 65px rgba(24,32,87,.12);color:#12184b;overflow:hidden}.invoice-doc-header{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(180px,.5fr);gap:18px;align-items:start;padding-bottom:16px;border-bottom:2px solid #11164b}.invoice-doc-brand{display:flex;align-items:center;gap:13px}.invoice-doc-brand img{width:62px;height:62px;object-fit:contain}.invoice-doc-brand div{display:grid;gap:5px}.invoice-doc-brand strong{font-size:1.32rem;line-height:1.1}.invoice-doc-brand span{font-size:.58rem;font-weight:950;letter-spacing:.24em}.invoice-doc-contact{text-align:right;display:grid;gap:5px;color:#626a82;font-size:.62rem;line-height:1.45}.invoice-doc-title{display:flex;justify-content:space-between;align-items:center;margin:17px 0 14px}.invoice-doc-title span{background:#11164b;color:#fff;border-radius:8px;padding:10px 18px;font-size:1.1rem;font-weight:950;letter-spacing:.02em}.invoice-doc-title small{color:#4d5db1;font-weight:950}.invoice-parties{display:grid;grid-template-columns:1fr 1fr;border:1px solid #cfd6e7;border-radius:10px;overflow:hidden}.invoice-parties>div{padding:16px}.invoice-parties>div+div{border-left:1px solid #cfd6e7}.invoice-parties b{display:block;color:#4254b2;font-size:.62rem;letter-spacing:.08em;margin-bottom:12px}.invoice-parties strong{font-size:.86rem}.invoice-parties p{margin:8px 0 0;color:#5e6680;font-size:.66rem;line-height:1.7}.invoice-doc-facts{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid #d9deea;border-radius:10px;overflow:hidden;margin:12px 0}.invoice-doc-facts>div{display:grid;gap:5px;padding:10px}.invoice-doc-facts>div+div{border-left:1px solid #d9deea}.invoice-doc-facts span{font-size:.55rem;color:#6f778f;text-transform:uppercase;font-weight:950;letter-spacing:.07em}.invoice-doc-facts strong{font-size:.66rem}.invoice-doc-table-wrap{overflow:auto}.invoice-doc-table{width:100%;border-collapse:collapse;min-width:680px}.invoice-doc-table th{background:#11164b;color:#fff;padding:8px 6px;font-size:.53rem;text-transform:uppercase;letter-spacing:.04em;text-align:center}.invoice-doc-table th:nth-child(2){text-align:left}.invoice-doc-table td{border:1px solid #dbe0ec;padding:8px 6px;font-size:.57rem;text-align:center;vertical-align:top}.invoice-doc-table td:nth-child(2){text-align:left}.invoice-doc-table td strong{display:block}.invoice-doc-table td small{display:block;margin-top:4px;color:#737b91}.invoice-doc-bottom{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:14px;margin-top:12px}.invoice-words{border:1px solid #d7ddea;border-radius:9px;padding:12px;display:grid;align-content:start;gap:6px}.invoice-words span{font-size:.55rem;color:#68718b;text-transform:uppercase;font-weight:950}.invoice-words strong{font-size:.66rem}.invoice-words p{margin:4px 0 0;color:#727a90;font-size:.58rem;line-height:1.5}.invoice-totals{border:1px solid #d7ddea;border-radius:9px;overflow:hidden}.invoice-totals>div{display:flex;justify-content:space-between;gap:10px;padding:7px 9px;background:#f8faff;font-size:.62rem}.invoice-totals>div+div{border-top:1px solid #dfe4ef}.invoice-totals .grand,.invoice-totals .balance{background:#11164b;color:#fff;font-weight:950}.invoice-doc-sign{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-top:20px;padding-top:13px;border-top:1px solid #ccd4e6}.invoice-doc-sign>div{display:grid;gap:3px}.invoice-doc-sign>div:last-child{text-align:right}.invoice-doc-sign strong{font-size:.66rem}.invoice-doc-sign span{font-size:.54rem;color:#6e768d;letter-spacing:.06em}.invoice-document.compact{margin:16px 0;box-shadow:none;border-radius:14px}.invoice-document.compact .invoice-doc-brand strong{font-size:1.15rem}
.invoice-buyer-list{display:grid;gap:18px}.invoice-buyer-card{border:1px solid #dfe5f1;border-radius:24px;background:#fff;padding:22px;box-shadow:0 16px 45px rgba(25,34,91,.06);scroll-margin-top:100px}.invoice-buyer-card>header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.invoice-buyer-card h3{margin:5px 0;color:#11164a}.invoice-buyer-card p{margin:0;color:#707991}.invoice-buyer-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}.invoice-buyer-summary>div{display:grid;gap:5px;padding:13px;border:1px solid #e0e5f0;border-radius:14px;background:#f9faff}.invoice-buyer-summary span{color:#747d95;font-size:.65rem;font-weight:950;text-transform:uppercase}.invoice-buyer-summary strong{color:#11164a}.invoice-buyer-card details{border-top:1px solid #e4e8f1;padding-top:15px}.invoice-buyer-card summary{cursor:pointer;color:#334bb5;font-weight:900}.invoice-buyer-actions{display:flex;gap:9px;justify-content:flex-end;flex-wrap:wrap}
@media(max-width:1250px){.invoice-builder-grid{grid-template-columns:1fr}.invoice-preview-panel{position:relative;top:auto}.invoice-document{max-width:850px;margin:auto}.invoice-list-card{grid-template-columns:minmax(220px,1fr) minmax(150px,.6fr) auto}.invoice-list-actions{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:850px){.invoice-list-tools,.invoice-form-grid{grid-template-columns:1fr}.invoice-form-grid label.span-2{grid-column:auto}.invoice-list-card{grid-template-columns:1fr}.invoice-list-money{text-align:left}.invoice-list-actions{grid-column:auto;justify-content:flex-start}.invoice-doc-header,.invoice-doc-bottom{grid-template-columns:1fr}.invoice-doc-contact{text-align:left}.invoice-doc-facts{grid-template-columns:repeat(2,1fr)}.invoice-doc-facts>div:nth-child(3){border-left:0;border-top:1px solid #d9deea}.invoice-doc-facts>div:nth-child(4){border-top:1px solid #d9deea}.invoice-parties{grid-template-columns:1fr}.invoice-parties>div+div{border-left:0;border-top:1px solid #cfd6e7}.invoice-buyer-summary{grid-template-columns:1fr}.invoice-editor-actions{display:grid}.invoice-editor-actions .btn,.invoice-upload-label{width:100%;text-align:center}.invoice-editor-actions .danger{margin-left:0}.invoice-buyer-card>header{display:grid}}
@media(max-width:560px){.invoice-editor-head{display:grid}.invoice-form-section,.invoice-editor-head,.invoice-editor-actions{padding-left:17px;padding-right:17px}.invoice-document{padding:13px}.invoice-doc-brand img{width:46px;height:46px}.invoice-doc-brand strong{font-size:.95rem}.invoice-doc-title{display:grid;gap:8px}.invoice-doc-title span{text-align:center}.invoice-buyer-actions{display:grid}.invoice-buyer-actions .btn{width:100%}}
.invoice-dashboard-feature{margin-top:12px;background:linear-gradient(135deg,#0d144f,#243b9f);color:#fff}.invoice-dashboard-feature span,.invoice-dashboard-feature strong,.invoice-dashboard-feature em{color:#fff}.invoice-dashboard-feature em{opacity:.84}

/* ==========================================================
   Purchase Order Management
   Build: 20260620-style-tracking-full-width-v3
   ========================================================== */
.po-hero{background:radial-gradient(circle at 83% 18%,rgba(111,135,255,.22),transparent 34%),linear-gradient(135deg,#07103d,#15256c 60%,#3448b0)}
.po-admin-content{display:grid;gap:20px}.po-toolbar{align-items:flex-end}.po-list-panel{padding:18px}.po-list-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,260px);gap:12px;margin-bottom:16px}.po-list-tools input,.po-list-tools select{width:100%;min-height:48px;border:1px solid #dce3f0;border-radius:15px;background:#f8faff;padding:0 14px;color:#11174b;font:inherit;font-weight:750}.po-list{display:grid;gap:10px}.po-list-card{display:grid;grid-template-columns:minmax(250px,1.35fr) minmax(160px,.65fr) auto auto;gap:18px;align-items:center;padding:16px 17px;border:1px solid #e0e5f1;border-radius:18px;background:#fff;transition:.18s ease}.po-list-card:hover{border-color:#bfc9ec;box-shadow:0 12px 28px rgba(31,43,105,.07);transform:translateY(-1px)}.po-list-main,.po-list-money{display:grid;gap:4px}.po-list-main strong,.po-list-money strong{color:#10164a}.po-list-main small,.po-list-money small{color:#737c94}.po-list-money{text-align:right}.po-list-money span{color:#7b839a;font-size:.68rem;font-weight:950;text-transform:uppercase;letter-spacing:.08em}.po-number{color:#334bb6;font-size:.72rem;font-weight:950;text-transform:uppercase;letter-spacing:.09em}.po-list-actions{display:flex;gap:7px}.po-status{display:inline-flex;align-items:center;justify-content:center;width:max-content;border:1px solid transparent;border-radius:999px;padding:7px 10px;font-size:.66rem;font-weight:950;text-transform:uppercase;letter-spacing:.07em;white-space:nowrap}.po-status-draft{background:#f1f2f6;color:#666c7d;border-color:#e1e3e9}.po-status-sent{background:#edf2ff;color:#2b47aa;border-color:#d3ddff}.po-status-acknowledged{background:#fff7e7;color:#8b5d08;border-color:#ffe2aa}.po-status-approved{background:#eef9f2;color:#17633a;border-color:#c9e8d5}.po-status-in_production{background:#f0efff;color:#5545a4;border-color:#dcd7fb}.po-status-completed{background:#eaf8ef;color:#17633a;border-color:#c9e8d5}.po-status-cancelled{background:#fff0ef;color:#9b332f;border-color:#f2cecb}
.po-builder-shell{scroll-margin-top:100px}.po-builder-grid{display:grid;grid-template-columns:minmax(0,1.22fr) minmax(420px,.78fr);gap:22px;align-items:start}.po-editor-card{padding:0;overflow:hidden}.po-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px 26px;border-bottom:1px solid #e5e9f2;background:linear-gradient(135deg,#f8faff,#fff)}.po-editor-head span{color:#5265bd;font-size:.7rem;font-weight:950;text-transform:uppercase;letter-spacing:.1em}.po-editor-head h2{margin:5px 0 7px;color:#10164a;font-size:1.65rem}.po-editor-head p{margin:0;color:#737c93}.po-form-section{padding:24px 26px;border-bottom:1px solid #e7eaf2}.po-section-title{display:flex;gap:14px;align-items:flex-start;margin-bottom:18px}.po-section-title>span{width:36px;height:36px;border-radius:12px;background:#11184f;color:#fff;display:grid;place-items:center;font-size:.74rem;font-weight:950}.po-section-title h3{margin:0 0 4px;color:#11174b;font-size:1.15rem}.po-section-title p{margin:0;color:#798198;font-size:.86rem}.po-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.po-form-grid label{display:grid;gap:7px;color:#4e5773;font-size:.72rem;font-weight:950;text-transform:uppercase;letter-spacing:.06em}.po-form-grid label.span-2{grid-column:1/-1}.po-form-grid input,.po-form-grid select,.po-form-grid textarea{width:100%;min-height:48px;border:1px solid #dce3ef;border-radius:14px;background:#fbfcff;padding:11px 13px;color:#11164a;font:inherit;text-transform:none;letter-spacing:0}.po-form-grid textarea{min-height:92px;resize:vertical}.po-check{grid-template-columns:auto 1fr!important;align-items:center!important;justify-content:start!important;text-transform:none!important;letter-spacing:0!important;font-size:.85rem!important}.po-check input{width:18px!important;min-height:18px!important}.po-file-row{display:grid;gap:7px;text-transform:none}.po-file-row small{color:#7a8399;font-weight:600;letter-spacing:0}.po-size-manager{display:flex;gap:12px;align-items:end;margin-bottom:13px}.po-size-manager label{display:grid;gap:7px;flex:1;color:#4e5773;font-size:.72rem;font-weight:950;text-transform:uppercase;letter-spacing:.06em}.po-size-manager input{width:100%;min-height:46px;border:1px solid #dce3ef;border-radius:14px;background:#fbfcff;padding:10px 13px;color:#11164a;font:inherit}.po-variants-scroll{overflow:auto;border:1px solid #dfe5f0;border-radius:16px}.po-variants-table{width:100%;min-width:1120px;border-collapse:collapse}.po-variants-table th{background:#10164f;color:#fff;padding:10px 7px;text-align:center;font-size:.62rem;text-transform:uppercase;letter-spacing:.05em}.po-variants-table th:first-child,.po-variants-table th:nth-child(2),.po-variants-table th:nth-last-child(2){text-align:left}.po-variants-table td{padding:8px;border-top:1px solid #e3e8f1;vertical-align:middle;text-align:center;color:#11164a;font-size:.76rem}.po-variants-table input{width:70px;border:1px solid #dce3ef;border-radius:9px;background:#fff;padding:7px;font:inherit;color:#11164a}.po-variants-table td:first-child input{width:110px}.po-variants-table td:nth-child(2) input{width:90px}.po-variants-table td:nth-last-child(2) input{width:120px}.po-remove-variant{width:30px;height:30px;border:0;border-radius:9px;background:#fff0ef;color:#9b332f;font-size:1.2rem;cursor:pointer}.po-add-variant{margin-top:12px}.po-adjustments{display:flex;justify-content:flex-end;gap:12px;margin-top:13px}.po-adjustments label{display:grid;gap:6px;color:#4e5773;font-size:.7rem;font-weight:950;text-transform:uppercase}.po-adjustments input{width:150px;min-height:42px;border:1px solid #dce3ef;border-radius:12px;padding:8px 10px}.po-editor-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding:20px 26px;background:#f8faff}.po-upload-label{position:relative;overflow:hidden;cursor:pointer}.po-upload-label input{position:absolute;inset:0;opacity:0;cursor:pointer}.po-upload-label.disabled{opacity:.45;pointer-events:none}.po-editor-actions .danger{margin-left:auto}
.po-preview-panel{position:sticky;top:96px;display:grid;gap:10px}.po-preview-toolbar{display:flex;justify-content:space-between;align-items:center;padding:12px 15px;border:1px solid #dfe4f1;border-radius:15px;background:#fff;color:#68718c;font-size:.75rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.po-preview-toolbar strong{color:#11164a}.purchase-order-document{width:100%;background:#fff;border:1px solid #dce2ee;border-radius:12px;padding:20px;box-shadow:0 24px 65px rgba(24,32,87,.12);color:#12184b;overflow:hidden}.po-doc-header{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(180px,.5fr);gap:18px;align-items:start;padding-bottom:14px;border-bottom:2px solid #11164b}.po-doc-brand{display:flex;align-items:center;gap:12px}.po-doc-brand img{width:58px;height:58px;object-fit:contain}.po-doc-brand div{display:grid;gap:5px}.po-doc-brand strong{font-size:1.18rem;line-height:1.1}.po-doc-brand span{font-size:.54rem;font-weight:950;letter-spacing:.23em}.po-doc-contact{text-align:right;color:#626a82;font-size:.58rem;line-height:1.55}.po-doc-title{display:flex;justify-content:space-between;align-items:center;margin:15px 0 12px}.po-doc-title>div:first-child{display:flex;align-items:center;gap:10px}.po-doc-title span{background:#11164b;color:#fff;border-radius:8px;padding:9px 16px;font-size:1rem;font-weight:950}.po-doc-title small{color:#4254b2;font-weight:950}.po-doc-title>div:last-child{display:grid;text-align:right;gap:3px}.po-doc-title b{font-size:.52rem;color:#777f95;text-transform:uppercase}.po-doc-title strong{font-size:.7rem}.po-doc-parties{display:grid;grid-template-columns:1fr 1fr;border:1px solid #cfd6e7;border-radius:10px;overflow:hidden}.po-doc-parties>div{padding:13px}.po-doc-parties>div+div{border-left:1px solid #cfd6e7}.po-doc-parties b{display:block;color:#4254b2;font-size:.58rem;letter-spacing:.08em;margin-bottom:9px}.po-doc-parties strong{font-size:.78rem}.po-doc-parties p{margin:7px 0 0;color:#5e6680;font-size:.59rem;line-height:1.65}.po-style-panel{display:grid;grid-template-columns:minmax(0,1fr) 116px;gap:12px;margin:12px 0;border:1px solid #d8deeb;border-radius:10px;padding:11px}.po-style-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.po-style-details>div{display:grid;gap:3px;padding:7px;background:#f8faff;border-radius:8px}.po-style-details .wide{grid-column:1/-1}.po-style-details span{font-size:.49rem;color:#747c91;text-transform:uppercase;font-weight:950}.po-style-details strong{font-size:.61rem;line-height:1.35}.po-garment-image,.po-garment-placeholder{width:116px;height:116px;object-fit:contain;border-radius:9px;border:1px solid #e0e5f0;background:#fff}.po-garment-placeholder{display:grid;place-items:center;color:#9199aa;font-size:.65rem;background:#f7f8fc}.po-doc-section-heading{margin:13px 0 7px;color:#344bb4;font-size:.62rem;letter-spacing:.08em}.po-doc-table-wrap{overflow:auto}.po-doc-table{width:100%;min-width:720px;border-collapse:collapse}.po-doc-table th{background:#11164b;color:#fff;padding:7px 5px;font-size:.49rem;text-transform:uppercase;text-align:center}.po-doc-table td{border:1px solid #dbe0ec;padding:7px 5px;font-size:.52rem;text-align:center}.po-doc-table td:first-child,.po-doc-table td:nth-child(2){text-align:left}.po-doc-table tfoot td{font-weight:950;background:#f3f5fb}.po-doc-two-col{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:12px}.po-doc-two-col>section{border:1px solid #d9dfeb;border-radius:9px;overflow:hidden}.po-doc-two-col h4{margin:0;padding:8px 10px;background:#11164b;color:#fff;font-size:.53rem;letter-spacing:.06em}.po-doc-detail{display:grid;grid-template-columns:92px 1fr;border-top:1px solid #e1e5ee}.po-doc-detail span{padding:7px;background:#f7f8fc;color:#4b5678;font-size:.5rem;font-weight:950}.po-doc-detail p{margin:0;padding:7px;color:#626a81;font-size:.51rem;line-height:1.4}.po-doc-empty{padding:10px;color:#81899d;font-size:.55rem}.po-doc-notes{margin-top:11px;border:1px solid #d9dfeb;border-radius:9px;padding:10px}.po-doc-notes span{display:block;color:#4254b2;font-size:.51rem;font-weight:950;text-transform:uppercase;margin-bottom:5px}.po-doc-notes p{margin:0;color:#616a82;font-size:.53rem;line-height:1.45}.po-doc-signatures{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:13px}.po-doc-signatures>div{display:grid;gap:3px;padding:9px;border-top:1px solid #bbc5dc;background:#fafbfe}.po-doc-signatures span{font-size:.48rem;color:#747d93;text-transform:uppercase;font-weight:950}.po-doc-signatures strong{font-size:.58rem}.po-doc-signatures small{font-size:.48rem;color:#7a8296}.po-doc-footer{display:flex;justify-content:space-between;gap:15px;align-items:end;margin-top:12px;padding-top:9px;border-top:1px solid #d7ddea;color:#737c92;font-size:.47rem}.po-doc-footer strong{color:#11164b;white-space:nowrap}.purchase-order-document.compact{margin:16px 0;box-shadow:none;border-radius:14px}
.po-recipient-list{display:grid;gap:18px}.po-recipient-card{border:1px solid #dfe5f1;border-radius:24px;background:#fff;padding:22px;box-shadow:0 16px 45px rgba(25,34,91,.06);scroll-margin-top:100px}.po-recipient-card>header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.po-recipient-card h3{margin:5px 0;color:#11164a}.po-recipient-card p{margin:0;color:#707991}.po-recipient-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:18px 0}.po-recipient-summary>div{display:grid;gap:5px;padding:13px;border:1px solid #e0e5f0;border-radius:14px;background:#f9faff}.po-recipient-summary span{color:#747d95;font-size:.65rem;font-weight:950;text-transform:uppercase}.po-recipient-summary strong{color:#11164a}.po-recipient-card details{border-top:1px solid #e4e8f1;padding-top:15px}.po-recipient-card summary{cursor:pointer;color:#334bb5;font-weight:900}.po-recipient-actions{display:flex;gap:9px;justify-content:flex-end;flex-wrap:wrap}
.po-dashboard-feature{margin-top:12px;background:linear-gradient(135deg,#11164b,#314cb9);color:#fff}.po-dashboard-feature span,.po-dashboard-feature strong,.po-dashboard-feature em{color:#fff}.po-dashboard-feature em{opacity:.84}
@media(max-width:1280px){.po-builder-grid{grid-template-columns:1fr}.po-preview-panel{position:relative;top:auto}.purchase-order-document{max-width:900px;margin:auto}.po-list-card{grid-template-columns:minmax(220px,1fr) minmax(150px,.6fr) auto}.po-list-actions{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:900px){.po-list-tools,.po-form-grid{grid-template-columns:1fr}.po-form-grid label.span-2{grid-column:auto}.po-list-card{grid-template-columns:1fr}.po-list-money{text-align:left}.po-list-actions{grid-column:auto;justify-content:flex-start}.po-doc-header,.po-doc-two-col{grid-template-columns:1fr}.po-doc-contact{text-align:left}.po-doc-parties{grid-template-columns:1fr}.po-doc-parties>div+div{border-left:0;border-top:1px solid #cfd6e7}.po-style-panel{grid-template-columns:1fr}.po-garment-image,.po-garment-placeholder{width:100%;height:180px}.po-recipient-summary{grid-template-columns:repeat(2,1fr)}.po-editor-actions{display:grid}.po-editor-actions .btn,.po-upload-label{width:100%;text-align:center}.po-editor-actions .danger{margin-left:0}.po-recipient-card>header{display:grid}.po-size-manager{display:grid}.po-adjustments{justify-content:stretch}.po-adjustments label{flex:1}.po-adjustments input{width:100%}}
@media(max-width:600px){.po-editor-head{display:grid}.po-form-section,.po-editor-head,.po-editor-actions{padding-left:17px;padding-right:17px}.purchase-order-document{padding:12px}.po-doc-brand img{width:45px;height:45px}.po-doc-brand strong{font-size:.9rem}.po-doc-title{display:grid;gap:8px}.po-doc-title>div:first-child{display:grid}.po-style-details{grid-template-columns:1fr}.po-style-details .wide{grid-column:auto}.po-doc-signatures{grid-template-columns:1fr 1fr}.po-recipient-summary{grid-template-columns:1fr}.po-recipient-actions{display:grid}.po-recipient-actions .btn{width:100%}.po-doc-footer{display:grid}.po-adjustments{display:grid}}

/* 20260620 admin-only document security and style-organized file vault */
.client-file-group{display:grid;gap:10px;padding:14px;border:1px solid #dce7f5;border-radius:24px;background:#f8fbff}
.client-file-group-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 4px}
.client-file-group-head h4{margin:0;color:#071447;font-size:.88rem;text-transform:uppercase;letter-spacing:.1em}
.client-file-group-head span{display:grid;place-items:center;min-width:30px;height:30px;padding:0 9px;border-radius:999px;background:#071447;color:#fff;font-size:.75rem;font-weight:900}
.client-file-original-name{display:block;margin:-2px 0 9px;color:#8190aa;font-size:.76rem;word-break:break-all}
.client-file-group .client-file-card{box-shadow:0 10px 28px rgba(6,35,94,.045)}
@media(max-width:760px){.client-file-group{padding:10px;border-radius:18px}.client-file-group-head{padding:0 2px}}

/* ============================================================
   Style document workspace + staff-safe file management
   Build 20260620-style-tracking-full-width-v3
   ============================================================ */
.style-doc-layout{display:grid;grid-template-columns:minmax(250px,310px) minmax(0,1fr);gap:22px;align-items:start}.style-doc-style-panel{position:sticky;top:100px;max-height:calc(100vh - 130px);overflow:hidden;display:flex;flex-direction:column}.style-doc-search{width:100%;margin:0 0 14px;border:1px solid #d8dbea;border-radius:10px;padding:11px 12px;background:#fff}.style-doc-style-list{display:grid;gap:9px;overflow:auto;padding-right:4px}.style-doc-style-card{display:grid;gap:4px;width:100%;text-align:left;border:1px solid #e1e4ef;border-radius:12px;background:#fff;padding:13px 14px;cursor:pointer;color:#1c2352}.style-doc-style-card:hover,.style-doc-style-card.active{border-color:#5968bd;box-shadow:0 7px 18px rgba(30,39,99,.09);background:#f7f8ff}.style-doc-style-card strong{font-size:.94rem}.style-doc-style-card span,.style-doc-style-card small{font-size:.76rem;color:#6f748b}.style-doc-main{display:grid;gap:16px;min-width:0}.style-doc-current-style{padding:18px 20px}.style-doc-current-style span{font-size:.72rem;text-transform:uppercase;letter-spacing:.13em;color:#6e75a2}.style-doc-current-style h2{margin:5px 0 3px;font-size:1.35rem}.style-doc-current-style p{margin:0;color:#72778a}.style-doc-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.style-doc-tab{border:1px solid #dfe3ef;border-radius:12px;background:#fff;padding:13px 14px;text-align:left;display:grid;gap:4px;cursor:pointer;color:#222a5a}.style-doc-tab strong{font-size:.88rem}.style-doc-tab span{font-size:.72rem;color:#74798c;text-transform:capitalize}.style-doc-tab.active{border-color:#37499f;background:linear-gradient(135deg,#252f7e,#4e5db1);color:#fff;box-shadow:0 8px 20px rgba(37,47,126,.18)}.style-doc-tab.active span{color:#e6e9ff}.style-doc-tab:disabled{opacity:.55;cursor:not-allowed}.style-doc-editor{padding:0;overflow:hidden}.style-doc-form{display:grid}.style-doc-editor-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:20px 22px;border-bottom:1px solid #e6e8f1;background:linear-gradient(180deg,#fff,#fafbff)}.style-doc-editor-head>div:first-child span{font-size:.72rem;text-transform:uppercase;letter-spacing:.13em;color:#6e75a2}.style-doc-editor-head h3{margin:4px 0;font-size:1.45rem;color:#171f58}.style-doc-editor-head p{margin:0;color:#72778a;font-size:.82rem}.style-doc-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.style-doc-access-panel{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center;padding:14px 22px;background:#f4f6fc;border-bottom:1px solid #e1e4ef}.style-doc-access-panel label{display:flex;gap:7px;align-items:center;font-size:.79rem;color:#363d67}.style-doc-access-panel label:first-child{display:grid;gap:4px}.style-doc-access-panel select{border:1px solid #cfd4e4;border-radius:8px;padding:7px 9px;background:#fff}.style-doc-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:22px}.style-doc-field{display:grid;gap:7px}.style-doc-field.wide{grid-column:1/-1}.style-doc-field>span{font-weight:700;font-size:.82rem;color:#242b5e}.style-doc-field input,.style-doc-field textarea{width:100%;border:1px solid #d5d9e7;border-radius:10px;padding:11px 12px;background:#fff;font:inherit;color:#252a42}.style-doc-field textarea{resize:vertical;min-height:112px}.style-doc-field input:focus,.style-doc-field textarea:focus{outline:2px solid rgba(68,85,174,.18);border-color:#4d5cad}.style-doc-field input:disabled,.style-doc-field textarea:disabled{background:#f6f7fa;color:#5f6475;cursor:not-allowed}.style-doc-field small{color:#7b8092;font-size:.72rem}.style-doc-readonly-note{margin:0 22px 22px;padding:12px 14px;border:1px solid #dfe3f1;border-radius:10px;background:#f7f8fc;color:#60667d;font-size:.82rem}.file-access-controls{display:flex;flex-wrap:wrap;gap:6px}.file-access-controls .file-visibility-toggle{margin:0}.client-file-actions{min-width:170px}.style-document-shortcut{display:flex;justify-content:space-between;gap:20px;align-items:center;border:1px solid #dfe3ef;border-radius:15px;padding:18px 20px;background:linear-gradient(135deg,#f8f9ff,#fff)}.style-document-shortcut h3{margin:4px 0}.style-document-shortcut p{margin:0;color:#70768a}.style-document-shortcut .style-document-shortcut-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.vendor-portal-card-actions{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:1050px){.style-doc-layout{grid-template-columns:1fr}.style-doc-style-panel{position:static;max-height:none}.style-doc-style-list{grid-template-columns:repeat(2,minmax(0,1fr));max-height:320px}.style-doc-tabs{grid-template-columns:1fr}.style-doc-editor-head{flex-direction:column}.style-doc-actions{justify-content:flex-start}}
@media(max-width:700px){.style-doc-style-list{grid-template-columns:1fr}.style-doc-field-grid{grid-template-columns:1fr;padding:16px}.style-doc-field.wide{grid-column:auto}.style-doc-editor-head{padding:16px}.style-doc-access-panel{padding:12px 16px}.style-doc-actions .btn{width:100%}.style-document-shortcut{align-items:flex-start;flex-direction:column}.style-document-shortcut .style-document-shortcut-actions{justify-content:flex-start}}


/* Product catalogue sections awaiting approved photography */
.product-photo-card.product-photo-placeholder:before{background:linear-gradient(180deg,rgba(5,18,70,.02),rgba(5,18,70,.08))}
.product-image-coming-soon{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:42px 28px 132px;background:radial-gradient(circle at 50% 28%,rgba(6,76,179,.10),transparent 34%),linear-gradient(145deg,#f8fbff,#eef4fb);z-index:1;color:#5f6d88}
.product-image-coming-soon-label{display:inline-flex;align-items:center;justify-content:center;border:1px solid #cbd9eb;background:#fff;border-radius:999px;padding:8px 14px;margin-bottom:18px;color:#064cb3!important;font-size:.72rem!important;font-weight:950!important;text-transform:uppercase;letter-spacing:.14em}
.product-image-coming-soon strong{color:#061d4f;font-size:1.6rem;letter-spacing:-.03em;margin-bottom:10px}
.product-image-coming-soon>span:last-child{font-weight:800;max-width:320px;line-height:1.45}

.catalogue-admin-layout-spaced{margin-top:18px}

/* 2026-06-20 private style-document workflow */
.file-access-admin{display:grid;grid-template-columns:1fr 1fr;gap:8px;min-width:240px;padding:10px;border:1px solid #dce7f5;border-radius:16px;background:#f8fbff}.file-access-admin .file-review-label{grid-column:1/-1;display:grid;gap:5px;font-size:.72rem;font-weight:900;color:#53617f;text-transform:uppercase;letter-spacing:.06em}.file-access-admin select{width:100%;border:1px solid #cfdced;border-radius:10px;background:#fff;padding:8px 10px;color:#243251;font:inherit;font-size:.78rem}.file-access-admin .btn{grid-column:1/-1;width:100%}.file-visibility-toggle.is-disabled{opacity:.5}.file-review-badge[data-review-status="pending_review"]{background:#fff8e7;border-color:#f3d28d;color:#8a5b00}.file-review-badge[data-review-status="rejected"]{background:#fff0f0;border-color:#ffc8c8;color:#8d1919}.file-review-badge[data-review-status="approved"]{background:#effbf3;border-color:#bfe5ca;color:#176b35}.file-upload-review-note{grid-column:1/-1;margin:0;padding:12px 14px;border:1px solid #dbe7f6;border-radius:14px;background:#f8fbff;color:#53617f;font-size:.85rem;line-height:1.5}.vendor-review-note{border-color:#f1d49a;background:#fffaf0;color:#75510d}.vendor-sidebar a.active,.portal-sidebar a.active{font-weight:900}.client-file-actions{align-content:start}
@media(max-width:760px){.file-access-admin{min-width:0;width:100%;grid-template-columns:1fr}.file-access-admin .file-review-label,.file-access-admin .btn{grid-column:1}.client-file-actions{width:100%}}

/* Unified account navigation and responsive sidebar fix */
.portal-menu-toggle{display:none!important}
@media(min-width:1101px){
  .portal-sidebar{max-height:calc(100vh - 128px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
  .portal-sidebar::-webkit-scrollbar{width:8px}
  .portal-sidebar::-webkit-scrollbar-thumb{background:#d7e2f2;border-radius:999px}
}
@media(max-width:680px){
  .portal-sidebar{padding:12px;border-radius:24px;gap:0}
  .portal-user-card{grid-template-columns:48px minmax(0,1fr);column-gap:12px;align-items:center;padding:10px 10px 14px;margin-bottom:8px}
  .portal-user-card .portal-avatar{grid-row:1/3}
  .portal-user-card strong,.portal-user-card small{min-width:0;overflow-wrap:anywhere}
  .portal-menu-toggle{display:flex!important;min-height:58px!important;height:auto!important;padding:10px 14px!important;margin:0!important;background:#071447!important;color:#fff!important;border-color:#071447!important;border-radius:16px!important;gap:12px}
  .portal-menu-toggle>span{display:grid;gap:2px;min-width:0}
  .portal-menu-toggle small{color:#bcd0ff;font-size:.66rem;font-weight:900;text-transform:uppercase;letter-spacing:.1em}
  .portal-menu-toggle strong{color:#fff;font-size:.92rem;line-height:1.25;white-space:normal}
  .portal-menu-chevron{font-size:1.3rem;line-height:1;transition:transform .18s ease}
  .portal-sidebar.portal-menu-open .portal-menu-chevron{transform:rotate(180deg)}
  .portal-sidebar:not(.portal-menu-open)>a[data-account-nav],
  .portal-sidebar:not(.portal-menu-open)>.portal-logout,
  .portal-sidebar:not(.portal-menu-open)>[data-order-logout],
  .portal-sidebar:not(.portal-menu-open)>[data-site-updates-open]{display:none!important}
  .portal-sidebar>a[data-account-nav],
  .portal-sidebar>.portal-logout,
  .portal-sidebar>[data-order-logout],
  .portal-sidebar>[data-site-updates-open]{min-height:50px;height:auto;padding:11px 14px;line-height:1.25;margin:7px 0}
  .portal-sidebar.portal-menu-open{max-height:none;overflow:visible}
}
/* End unified account navigation fix */

/* 20260620-style-tracking-full-width-v3: unified Client Files document workflow */
.client-file-sync-note{margin:0 0 18px;padding:14px 18px;border:1px solid rgba(69,50,166,.18);border-radius:16px;background:rgba(244,240,255,.72);color:#34375f;font-size:.92rem;line-height:1.5}
.client-file-sync-note::before{content:"AUTO-SYNC";display:inline-block;margin-right:10px;padding:3px 8px;border-radius:999px;background:#4532a6;color:#fff;font-size:.68rem;font-weight:800;letter-spacing:.08em;vertical-align:1px}


/* 20260620 style browsing filter overhaul */
body[data-style-page] .style-browse-filters{margin:14px 14px 10px;padding:18px;border:1px solid #d9e1f2;border-radius:22px;background:linear-gradient(135deg,#ffffff 0%,#f7f9ff 100%);box-shadow:0 14px 34px rgba(32,45,92,.07)}
body[data-style-page] .style-browse-topline{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
body[data-style-page] .style-browse-topline>div{display:grid;gap:2px}
body[data-style-page] .style-browse-topline strong{font-size:1.05rem;color:#11184f}
body[data-style-page] .style-browse-topline small{color:#68748f}
body[data-style-page] .style-department-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:13px}
body[data-style-page] .style-department-chip{display:inline-flex;align-items:center;gap:8px;border:1px solid #d9e1f2;background:#fff;color:#17205c;border-radius:999px;padding:9px 13px;font:inherit;font-weight:800;cursor:pointer;transition:.18s ease}
body[data-style-page] .style-department-chip b{display:grid;place-items:center;min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:#eef2ff;font-size:.72rem;color:#3447b9}
body[data-style-page] .style-department-chip:hover{transform:translateY(-1px);border-color:#8d9bea}
body[data-style-page] .style-department-chip.active{background:#171951;color:#fff;border-color:#171951;box-shadow:0 8px 20px rgba(23,25,81,.18)}
body[data-style-page] .style-department-chip.active b{background:rgba(255,255,255,.16);color:#fff}
body[data-style-page] .style-structure-filter-grid{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:10px}
body[data-style-page] .style-structure-filter-grid label{display:grid;gap:5px;font-size:.72rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#697590}
body[data-style-page] .style-structure-filter-grid select{width:100%;min-height:44px;border:1px solid #d8dfef;border-radius:13px;background:#fff;padding:0 36px 0 12px;color:#151b50;font:inherit;font-weight:750;letter-spacing:0;text-transform:none}
body[data-style-page] .style-results-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0;padding:0 3px}
body[data-style-page] .style-results-heading>div{display:grid;gap:2px}
body[data-style-page] .style-results-heading strong{color:#11184f;font-size:1rem}
body[data-style-page] .style-results-heading span,body[data-style-page] .style-results-heading small{color:#73809a;font-size:.8rem}
body[data-style-page] .style-filtered-results{display:grid;gap:16px}
body[data-style-page] .style-department-result{border:1px solid #dde4f2;border-radius:20px;background:#fff;overflow:hidden}
body[data-style-page] .style-department-result>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;background:linear-gradient(90deg,#f4f6ff,#fff);border-bottom:1px solid #e3e8f3}
body[data-style-page] .style-department-result>header>div{display:flex;align-items:baseline;gap:10px}
body[data-style-page] .style-department-result>header span{font-size:.68rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase;color:#9a7627}
body[data-style-page] .style-department-result>header strong{color:#11184f;font-size:1rem}
body[data-style-page] .style-department-result>header em{font-style:normal;font-size:.76rem;font-weight:800;color:#5d6a86}
body[data-style-page] .style-result-year{border-bottom:1px solid #edf0f6}
body[data-style-page] .style-result-year:last-child{border-bottom:0}
body[data-style-page] .style-result-year>summary{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:12px;padding:12px 16px;cursor:pointer;list-style:none;background:#fbfcff}
body[data-style-page] .style-result-year>summary::-webkit-details-marker{display:none}
body[data-style-page] .style-result-year>summary span{display:flex;align-items:baseline;gap:8px}
body[data-style-page] .style-result-year>summary small{text-transform:uppercase;letter-spacing:.09em;font-size:.65rem;font-weight:900;color:#9a7627}
body[data-style-page] .style-result-year>summary strong{color:#171951}
body[data-style-page] .style-result-year>summary em{font-style:normal;color:#6f7a92;font-size:.75rem}
body[data-style-page] .style-result-year>summary b{font-size:.66rem;text-transform:uppercase;letter-spacing:.06em;background:#171951;color:#fff;border-radius:999px;padding:7px 10px}
body[data-style-page] .style-result-year .style-buy-styles{padding:14px;grid-template-columns:repeat(auto-fit,minmax(245px,1fr))}
body[data-style-page] .style-card-chips{display:flex;flex-wrap:wrap;gap:4px;margin:5px 0}
body[data-style-page] .style-card-chips i{font-style:normal;font-size:.64rem;font-weight:800;color:#4e5d80;background:#f0f3fa;border-radius:999px;padding:4px 7px}
body[data-style-page] .style-list-category{color:#9a7627!important;font-weight:800}
body[data-style-page] .style-grouping-grid{grid-template-columns:repeat(5,minmax(130px,1fr))}
@media(max-width:1100px){body[data-style-page] .style-structure-filter-grid,body[data-style-page] .style-grouping-grid{grid-template-columns:repeat(3,minmax(130px,1fr))}}
@media(max-width:700px){body[data-style-page] .style-browse-filters{margin:10px 8px;padding:14px;border-radius:18px}body[data-style-page] .style-browse-topline{align-items:flex-start;flex-direction:column}body[data-style-page] .style-structure-filter-grid,body[data-style-page] .style-grouping-grid{grid-template-columns:1fr 1fr}body[data-style-page] .style-result-year>summary{grid-template-columns:1fr auto}body[data-style-page] .style-result-year>summary b{display:none}body[data-style-page] .style-results-heading{align-items:flex-start;flex-direction:column}}
@media(max-width:460px){body[data-style-page] .style-structure-filter-grid,body[data-style-page] .style-grouping-grid{grid-template-columns:1fr}}

body[data-style-page] .style-client-board.compact{margin:14px 14px 0;padding:0;border:0;background:transparent}
body[data-style-page] .style-client-picker{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(180px,1fr) auto auto;align-items:center;gap:14px;padding:15px 17px;border:1px solid #e2d3a9;border-radius:20px;background:linear-gradient(100deg,#fffdf7,#fff);box-shadow:0 12px 28px rgba(119,88,23,.07)}
body[data-style-page] .style-client-picker>label{display:grid;gap:5px;color:#8b6822;font-size:.7rem;font-weight:900;text-transform:uppercase;letter-spacing:.1em}
body[data-style-page] .style-client-picker select{min-height:46px;border:1px solid #d9dfed;border-radius:13px;background:#fff;padding:0 38px 0 12px;color:#151b50;font:inherit;font-weight:800;text-transform:none;letter-spacing:0}
body[data-style-page] .style-client-picker-details{display:grid;gap:2px}
body[data-style-page] .style-client-picker-details strong{color:#11184f}
body[data-style-page] .style-client-picker-details small{color:#74809a;overflow:hidden;text-overflow:ellipsis}
body[data-style-page] .style-client-picker-counts{display:flex;gap:7px}
body[data-style-page] .style-client-picker-counts b{display:grid;place-items:center;min-width:55px;padding:7px 9px;border-radius:12px;background:#f1f4fb;color:#151b50;font-size:.88rem}
body[data-style-page] .style-client-picker-counts span{font-size:.57rem;text-transform:uppercase;letter-spacing:.08em;color:#74809a}
@media(max-width:950px){body[data-style-page] .style-client-picker{grid-template-columns:1fr 1fr}body[data-style-page] .style-client-picker-counts{justify-content:flex-start}}
@media(max-width:600px){body[data-style-page] .style-client-board.compact{margin:10px 8px 0}body[data-style-page] .style-client-picker{grid-template-columns:1fr;padding:13px}body[data-style-page] .style-client-picker-counts{flex-wrap:wrap}}

/* 20260620-style-tracking-full-width-v3
   Keep hierarchy results on one full-width row. The previous auto-fit grid
   treated the heading and results wrapper as separate columns, pushing all
   styles into the right side of the browser panel. */
body[data-style-page] .style-list{
  grid-template-columns:minmax(0,1fr)!important;
  width:100%;
  max-width:none;
  gap:16px;
  max-height:640px;
  overflow:auto;
  padding:2px 6px 6px 0;
}
body[data-style-page] .style-results-heading,
body[data-style-page] .style-filtered-results,
body[data-style-page] .style-department-result{
  grid-column:1/-1;
  width:100%;
  min-width:0;
  max-width:none;
}
body[data-style-page] .style-result-year .style-buy-styles{
  width:100%;
  grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
  align-items:stretch;
}
body[data-style-page] .style-result-year .style-list-card{
  width:100%;
  min-width:0;
}
body[data-style-page] .style-result-year .style-list-top{
  flex-wrap:wrap;
  row-gap:7px;
}
body[data-style-page] .style-result-year .style-list-top em{
  margin-left:auto;
  max-width:100%;
  white-space:normal;
  text-align:center;
}
@media(max-width:780px){
  body[data-style-page] .style-list{max-height:none;overflow:visible;padding-right:0}
  body[data-style-page] .style-result-year .style-buy-styles{grid-template-columns:1fr}
}



/* 20260620 compact style results and catalogue creation */
body[data-style-page] .style-list{gap:10px;max-height:720px;padding-top:0}
body[data-style-page] .style-filtered-results{gap:12px;margin-top:0}
body[data-style-page] .style-search{margin-bottom:8px}
.catalogue-source-list-card .portal-card-head{align-items:center}
.catalogue-source-list-card .portal-card-head>.btn{flex:0 0 auto}
.catalogue-source-editor label input[readonly]{background:#f2f4f9;color:#7a8398}
.managed-product-section{background:linear-gradient(180deg,#f7f9ff 0%,#fff 100%)}
.managed-product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}
.managed-product-card{border:1px solid rgba(25,32,82,.12);border-radius:24px;background:#fff;overflow:hidden;box-shadow:0 16px 38px rgba(28,39,85,.08);display:flex;flex-direction:column;min-width:0}
.managed-product-image{height:220px;background:#eef2fb;display:grid;place-items:center;overflow:hidden;color:#25306f;font-size:2rem;font-weight:900}
.managed-product-image img{width:100%;height:100%;object-fit:cover;display:block}
.managed-product-body{padding:22px;display:grid;gap:11px;height:100%}
.managed-product-body h3{margin:0;color:#11184f;font-size:1.25rem}
.managed-product-body p{margin:0;color:#66708d;line-height:1.65}
.managed-product-body small{color:#6a7590;font-weight:750}
.managed-product-body>a{margin-top:auto;color:#3049bf;font-weight:900;text-decoration:none}
.managed-product-tags{display:flex;flex-wrap:wrap;gap:6px}
.managed-product-tags span{padding:5px 8px;border-radius:999px;background:#eef2ff;color:#4d5b80;font-size:.7rem;font-weight:800}
@media(max-width:700px){.catalogue-source-list-card .portal-card-head{align-items:flex-start;flex-direction:column}.catalogue-source-list-card .portal-card-head>.btn{width:100%}.managed-product-image{height:190px}}


/* Client Files unified workspace v013 */
.file-upload-panel{margin:0 0 18px}
.file-browser-card{padding:0;overflow:hidden;border-radius:28px}
.file-browser-grid{display:grid;grid-template-columns:minmax(290px,360px) minmax(0,1fr);align-items:stretch;min-height:560px}
.file-browser-card .production-batches-panel,.file-browser-card .client-file-panel{position:relative;top:auto;max-height:none;min-height:0;margin:0;padding:22px;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:hidden}
.file-browser-card .production-batches-panel{border-right:1px solid #e5edf8}
.file-browser-card .production-batch-list{max-height:650px;overflow:auto;padding-right:5px}
.file-browser-card .client-file-list{max-height:650px}
.file-browser-card .production-tracker-head{margin-bottom:14px}
.file-browser-card .production-filter-row{margin-bottom:14px}
@media(max-width:1100px){.file-browser-grid{grid-template-columns:1fr;min-height:0}.file-browser-card .production-batches-panel{border-right:0;border-bottom:1px solid #e5edf8}.file-browser-card .production-batch-list{grid-template-columns:repeat(2,minmax(0,1fr));max-height:420px}}
@media(max-width:760px){.file-browser-card .production-batches-panel,.file-browser-card .client-file-panel{padding:16px}.file-browser-card .production-batch-list{grid-template-columns:1fr;max-height:none}.file-browser-card .client-file-list{max-height:none}}


/* Client Files single-style lookup v014 */
.file-browser-grid{grid-template-columns:minmax(340px,440px) minmax(0,1fr)}
.file-browser-card .production-batches-panel{overflow:visible}
.file-browser-card .production-batch-list.style-lookup-results{max-height:none;overflow:visible;padding:0;display:block}
.file-browser-styles .portal-card-head{margin-bottom:14px}
.file-browser-styles .portal-card-head p{margin:5px 0 0;color:#6b7590;font-size:.78rem;line-height:1.45}
.file-style-lookup-control{display:grid!important;gap:7px;margin-bottom:16px}
.file-style-lookup-control>span{font-size:.76rem;font-weight:950;text-transform:uppercase;letter-spacing:.09em;color:#8a6822}
.file-style-lookup-control .file-style-search{margin:0;min-height:54px;border-radius:17px;padding:0 16px;background:#fff;border:1px solid #cfdced;font-weight:850;color:#11184f;box-shadow:0 10px 24px rgba(6,35,94,.05)}
.file-style-lookup-control .file-style-search:focus{border-color:#3049bf;box-shadow:0 0 0 4px rgba(48,73,191,.1)}
.file-style-lookup-control>small{color:#7a849d;font-size:.72rem;line-height:1.4}
.file-style-lookup-prompt{min-height:245px;border:1px dashed #cad8eb;border-radius:22px;background:linear-gradient(180deg,#fbfdff,#f6f9ff);display:grid;place-content:center;text-align:center;gap:8px;padding:26px}
.file-style-lookup-prompt strong{color:#11184f;font-size:1.05rem}
.file-style-lookup-prompt span{color:#6f7992;font-size:.82rem;line-height:1.5}
.file-style-lookup-card{border:1px solid #d7e2f1;border-radius:24px;background:#fff;overflow:hidden;box-shadow:0 18px 42px rgba(6,35,94,.08);cursor:default}
.file-style-lookup-image{height:220px;background:#f3f6fb;display:grid;place-items:center;overflow:hidden;border-bottom:1px solid #e3eaf5}
.file-style-lookup-image img{width:100%;height:100%;object-fit:contain;display:block;padding:12px}
.file-style-lookup-image-empty{gap:5px;color:#53617f}
.file-style-lookup-image-empty strong{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;background:#11184f;color:#fff;font-size:1rem}
.file-style-lookup-image-empty span{font-size:.76rem;font-weight:850}
.file-style-lookup-copy{padding:18px;display:grid;gap:9px}
.file-style-lookup-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.file-style-lookup-top>span{font-size:.7rem;text-transform:uppercase;letter-spacing:.11em;font-weight:950;color:#8a6822}
.file-style-lookup-top>em{font-style:normal;border:1px solid #dce5f3;border-radius:999px;padding:5px 8px;background:#f5f8fd;color:#52607f;font-size:.65rem;font-weight:950;text-transform:uppercase;letter-spacing:.05em}
.file-style-lookup-copy h4{margin:0;color:#11184f;font-size:1.45rem;letter-spacing:-.025em}
.file-style-lookup-copy h5{margin:0;color:#20294f;font-size:1rem;line-height:1.35}
.file-style-lookup-chips{display:flex;flex-wrap:wrap;gap:6px}
.file-style-lookup-chips span{padding:5px 8px;border-radius:999px;background:#eef2fa;color:#596684;font-size:.67rem;font-weight:900}
.file-style-lookup-copy dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:3px 0 0}
.file-style-lookup-copy dl div{border:1px solid #e3eaf4;border-radius:13px;padding:9px;background:#fafcff;min-width:0}
.file-style-lookup-copy dt{font-size:.62rem;text-transform:uppercase;letter-spacing:.07em;color:#7a849c;font-weight:950}
.file-style-lookup-copy dd{margin:4px 0 0;color:#18204c;font-size:.76rem;font-weight:850;white-space:normal;overflow-wrap:anywhere}
@media(max-width:1100px){.file-browser-grid{grid-template-columns:1fr}.file-style-lookup-card{display:grid;grid-template-columns:minmax(180px,280px) minmax(0,1fr)}.file-style-lookup-image{height:100%;min-height:240px;border-bottom:0;border-right:1px solid #e3eaf5}}
@media(max-width:680px){.file-style-lookup-card{display:block}.file-style-lookup-image{height:210px;border-right:0;border-bottom:1px solid #e3eaf5}.file-style-lookup-copy dl{grid-template-columns:1fr 1fr}}

/* Official Team Roster v021 */
.official-team-card .team-photo{display:grid;place-items:center;background:linear-gradient(145deg,#eef1ff,#f9faff)}
.team-initials{width:112px;height:112px;border-radius:30px;display:grid;place-items:center;background:linear-gradient(135deg,#111445,#4358c4);color:#fff;font-size:34px;font-weight:1000;letter-spacing:.04em;box-shadow:0 18px 42px rgba(17,20,69,.22)}
.official-team-reference{margin-bottom:22px}
.official-team-reference-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding-top:16px}
.official-team-reference-grid article{border:1px solid rgba(25,32,82,.09);background:#f8faff;border-radius:18px;padding:16px}
.official-team-reference-grid strong{display:block;color:#111543;margin-bottom:5px}
.official-team-reference-grid span{display:block;color:#66708d;font-size:.82rem;line-height:1.45}
@media(max-width:900px){.official-team-reference-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.official-team-reference-grid{grid-template-columns:1fr}}

/* =========================================================
   TR Global Tech Pack Builder v022
   ========================================================= */
.tech-pack-hero{background:linear-gradient(135deg,#0c174f 0%,#293f9f 62%,#5067cc 100%)}
.tech-pack-admin-content{min-width:0}.tech-pack-toolbar{align-items:center}.tech-pack-toolbar .portal-toolbar-actions{display:flex;gap:10px;flex-wrap:wrap}
.tech-pack-list-panel{padding:0;overflow:hidden}.tech-pack-list-tools{display:grid;grid-template-columns:1fr 220px;gap:12px;padding:18px;border-bottom:1px solid #e4e8f1;background:#fafbfe}.tech-pack-list-tools input,.tech-pack-list-tools select{width:100%}
.tech-pack-list{display:grid}.tech-pack-list-card{display:grid;grid-template-columns:minmax(0,1fr) 150px auto auto;gap:18px;align-items:center;padding:18px;border-bottom:1px solid #e7eaf2}.tech-pack-list-card:last-child{border-bottom:0}.tech-pack-list-main span{display:block;color:#9b732a;font-size:.7rem;font-weight:950;letter-spacing:.11em;text-transform:uppercase}.tech-pack-list-main strong{display:block;color:#111445;font-size:1rem;margin:5px 0}.tech-pack-list-main small,.tech-pack-list-share small{color:#7b849d}.tech-pack-list-share{display:grid;gap:4px}.tech-pack-list-share span{color:#252b5e;font-weight:900}.tech-pack-list-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.tech-pack-status{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:7px 10px;font-size:.68rem;font-weight:950;white-space:nowrap;background:#eef1f9;color:#56617e}.tech-pack-status-sent,.tech-pack-status-internal_review{background:#eef2ff;color:#3b55bd}.tech-pack-status-buyer_approved,.tech-pack-status-vendor_acknowledged{background:#fff5dc;color:#8b6418}.tech-pack-status-approved{background:#eaf7ef;color:#20744c}.tech-pack-status-cancelled,.tech-pack-status-superseded{background:#f7ecec;color:#a14d4d}
.tech-pack-builder-shell{margin-top:24px}.tech-pack-builder-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(440px,.95fr);gap:22px;align-items:start}.tech-pack-editor-card,.tech-pack-preview-panel{padding:0;overflow:hidden}.tech-pack-editor-head,.tech-pack-preview-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding:22px 24px;border-bottom:1px solid #e5e8ef}.tech-pack-editor-head>div>span,.tech-pack-preview-head span{display:block;color:#b17e2d;font-size:.68rem;font-weight:950;text-transform:uppercase;letter-spacing:.13em}.tech-pack-editor-head h2{margin:6px 0;color:#12164b}.tech-pack-editor-head p{margin:0}.tech-pack-preview-head strong{display:block;color:#12164b;margin-top:4px}.tech-pack-preview-head em{font-style:normal;font-size:.68rem;font-weight:900;color:#5064c7;background:#eef1fb;border-radius:999px;padding:7px 10px}
.tech-pack-locked-brand{margin:20px 24px 0;display:grid;grid-template-columns:58px 1fr;gap:14px;align-items:center;padding:15px 17px;border:1px solid #dfe4ef;background:linear-gradient(135deg,#f8f9fd,#eef2ff);border-radius:18px}.tech-pack-locked-brand img{width:58px;height:58px;object-fit:contain;background:#fff;border-radius:14px;padding:5px}.tech-pack-locked-brand span{display:block;color:#9a7128;font-size:.66rem;font-weight:950;text-transform:uppercase;letter-spacing:.12em}.tech-pack-locked-brand strong{display:block;color:#12164b;margin:4px 0}.tech-pack-locked-brand small{color:#717b95;line-height:1.45}
.tech-pack-form-section{padding:24px;border-bottom:1px solid #e7eaf1}.tech-pack-section-title{display:grid;grid-template-columns:40px 1fr;gap:12px;align-items:start;margin-bottom:18px}.tech-pack-section-title>span{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#eef1fb;color:#344fbd;font-size:.72rem;font-weight:950}.tech-pack-section-title h3{margin:0;color:#15194e;font-size:1.08rem}.tech-pack-section-title p{margin:4px 0 0;font-size:.78rem;color:#79829a}.tech-pack-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.tech-pack-form-grid label{display:grid;gap:6px;color:#242a55;font-size:.75rem;font-weight:900}.tech-pack-form-grid .span-2{grid-column:1/-1}.tech-pack-form-grid textarea{min-height:88px;resize:vertical}.tech-pack-form-grid input,.tech-pack-form-grid select,.tech-pack-form-grid textarea{width:100%;border:1px solid #dce1ec;background:#fafbfe;border-radius:13px;padding:11px 12px;color:#17204f}.tech-pack-visibility{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center!important;padding:13px;border:1px solid #dde2ed;border-radius:14px;background:#fafbfe}.tech-pack-visibility input{width:auto!important}
.tech-pack-image-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.tech-pack-image-editor{display:grid;gap:8px;border:1px solid #dfe4ef;border-radius:18px;padding:13px;background:#fbfcff;color:#242a55;font-size:.75rem;font-weight:900}.tech-pack-image-editor-preview{height:180px;border:1px dashed #cbd2e2;border-radius:14px;background:#fff;display:grid;place-items:center;align-content:center;gap:5px;overflow:hidden;color:#7a849d}.tech-pack-image-editor-preview img{width:100%;height:100%;object-fit:contain}.tech-pack-image-editor-preview b{color:#4b5676}.tech-pack-image-editor-preview small{font-weight:500}.tech-pack-image-editor input[type=file]{width:100%;font-size:.72rem}.tech-pack-remove-image{justify-self:start;border:0;background:transparent;color:#a34b4b;font-weight:900;cursor:pointer;padding:0}
.tech-pack-size-tools{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:end;margin-bottom:14px}.tech-pack-size-tools label{display:grid;gap:6px;color:#242a55;font-size:.75rem;font-weight:900}.tech-pack-size-tools input{width:100%;border:1px solid #dce1ec;background:#fafbfe;border-radius:13px;padding:11px 12px}.tech-pack-size-editor{display:grid;gap:9px;overflow:auto;padding-bottom:4px}.tech-pack-size-row{display:grid;grid-template-columns:165px repeat(var(--tech-size-count,6),72px) 64px 34px;gap:7px;align-items:end;min-width:max-content}.tech-pack-size-row>input{height:42px;border:1px solid #dce1ec;border-radius:11px;padding:0 10px}.tech-pack-size-row label{display:grid;gap:4px;font-size:.62rem;text-align:center;color:#65708c}.tech-pack-size-row label input{width:72px;height:42px;text-align:center;border:1px solid #dce1ec;border-radius:11px}.tech-pack-size-row>strong{height:42px;display:grid;place-items:center;border-radius:11px;background:#111445;color:#fff}.tech-pack-size-row>button{width:34px;height:34px;border-radius:50%;border:1px solid #ead4d4;background:#fff;color:#a44444;font-size:1.1rem;cursor:pointer;margin-bottom:4px}
.tech-pack-editor-actions{display:flex;gap:9px;flex-wrap:wrap;padding:20px 24px;background:#f7f8fc}.tech-pack-upload-label{position:relative;overflow:hidden}.tech-pack-upload-label input{position:absolute;inset:0;opacity:0;cursor:pointer}.tech-pack-upload-label.disabled{opacity:.5;pointer-events:none}
.tech-pack-preview-panel{position:sticky;top:20px}.tech-pack-preview-scroll{overflow:auto;padding:16px;background:#eef1f7}.tech-pack-document{width:1120px;min-height:790px;background:#fff;color:#161b35;border:1px solid #cfd3de;font-family:Arial,sans-serif;box-shadow:0 16px 42px rgba(23,29,75,.13);font-size:10px}.tech-pack-document.compact{transform-origin:top left}.tech-pack-doc-header{display:grid;grid-template-columns:265px 1fr;min-height:92px}.tech-pack-doc-brand{display:grid;grid-template-columns:86px 1fr;align-items:center;padding:10px;border-right:1px solid #c9ced9;border-bottom:1px solid #c9ced9}.tech-pack-doc-brand img{width:76px;height:76px;object-fit:contain}.tech-pack-doc-brand strong{display:block;color:#08206c;font-size:24px;letter-spacing:.02em}.tech-pack-doc-brand span{display:block;color:#08206c;font-size:12px;font-weight:900;margin-top:3px}.tech-pack-doc-brand small{display:block;color:#33427b;font-size:7px;font-weight:900;margin-top:5px}.tech-pack-doc-info{display:grid;grid-template-columns:repeat(6,1fr);grid-template-rows:repeat(2,1fr)}.tech-pack-doc-info>div{border-right:1px solid #c9ced9;border-bottom:1px solid #c9ced9;padding:8px}.tech-pack-doc-info b{display:block;font-size:8px}.tech-pack-doc-info span{display:block;margin-top:7px;font-size:9px;font-weight:700;white-space:pre-line}
.tech-pack-doc-main{display:grid;grid-template-columns:170px 1fr 280px;min-height:500px}.tech-pack-doc-notes{display:grid;grid-template-rows:145px 145px 1fr}.tech-pack-doc-notes section,.tech-pack-doc-reference>section,.tech-pack-detail-grid section{border-right:1px solid #c9ced9;border-bottom:1px solid #c9ced9;overflow:hidden}.tech-pack-document h4{margin:0;background:#071c70;color:#fff;padding:5px 8px;font-size:8px;letter-spacing:.03em}.tech-pack-doc-notes p,.tech-pack-detail-grid p{margin:7px;font-size:8px;line-height:1.35;white-space:pre-wrap}.doc-image{display:grid;place-items:center;background:#fff;color:#a2a8b7;overflow:hidden}.doc-image img,.doc-drawing img{width:100%;height:100%;object-fit:contain}.doc-image.colorway{height:75px}.doc-image.reference{height:240px}.doc-image.detail{height:86px}.tech-pack-doc-drawings{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:305px 1fr}.doc-drawing{position:relative;border-right:1px solid #c9ced9;border-bottom:1px solid #c9ced9;display:grid;place-items:center;padding:25px 8px 8px;overflow:hidden}.doc-drawing h4{position:absolute;left:0;right:0;top:0;text-align:center;background:#fff;color:#111;font-size:9px}.doc-drawing>span{color:#9ca3b4}.tech-pack-doc-size{grid-column:1/-1;border-right:1px solid #c9ced9;border-bottom:1px solid #c9ced9;padding:8px}.tech-pack-doc-size h4{background:#fff;color:#071c70;text-align:center}.tech-pack-doc-size table{width:100%;border-collapse:collapse;margin-top:5px;font-size:8px}.tech-pack-doc-size th,.tech-pack-doc-size td{border:1px solid #c9ced9;padding:5px;text-align:center}.tech-pack-doc-size th:first-child,.tech-pack-doc-size td:first-child{text-align:left}.tech-pack-doc-size tr.total{font-weight:900}.tech-pack-doc-reference{display:grid;grid-template-rows:305px 1fr}.tech-pack-detail-grid{display:grid;grid-template-columns:1fr 1fr}.tech-pack-detail-grid section{min-height:135px}
.tech-pack-doc-specs{display:grid;grid-template-columns:repeat(8,1fr);min-height:105px}.tech-pack-doc-specs section{border-right:1px solid #c9ced9;border-bottom:1px solid #c9ced9;padding:0}.tech-pack-doc-specs h4{background:#fff;color:#071c70;text-align:center;padding:7px 4px}.tech-pack-doc-specs p{margin:8px;font-size:8px;line-height:1.35;white-space:pre-wrap}.tech-pack-doc-approvals{display:grid;grid-template-columns:1.15fr 1.3fr .65fr 1.55fr .75fr;min-height:62px}.tech-pack-doc-approvals>div{border-right:1px solid #c9ced9;border-bottom:1px solid #c9ced9;padding:10px}.tech-pack-doc-approvals b{display:block;font-size:8px}.tech-pack-doc-approvals span{display:block;margin-top:14px;border-bottom:1px solid #9298a7;min-height:14px}.tech-pack-doc-footer{display:flex;justify-content:space-between;padding:6px 9px;font-size:7px;color:#687089}.tech-pack-doc-footer strong{color:#071c70}
.tech-pack-recipient-list{display:grid;gap:18px}.tech-pack-recipient-card{border:1px solid #dfe4ef;background:#fff;border-radius:24px;overflow:hidden;box-shadow:0 15px 38px rgba(22,28,76,.06)}.tech-pack-recipient-card>header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding:22px;border-bottom:1px solid #e6e9f1}.tech-pack-recipient-card>header span:first-child{display:block;color:#a77829;font-size:.7rem;font-weight:950;text-transform:uppercase;letter-spacing:.12em}.tech-pack-recipient-card h3{margin:6px 0;color:#13174a}.tech-pack-recipient-card p{margin:0}.tech-pack-recipient-facts{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#e8ebf2}.tech-pack-recipient-facts>div{background:#fafbfe;padding:14px}.tech-pack-recipient-facts span{display:block;color:#7b849b;font-size:.68rem;text-transform:uppercase;font-weight:900}.tech-pack-recipient-facts strong{display:block;color:#1b2050;margin-top:5px}.tech-pack-recipient-card details{padding:0 22px 22px}.tech-pack-recipient-card summary{cursor:pointer;padding:17px 0;font-weight:950;color:#334fc0}.tech-pack-recipient-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
@media(max-width:1280px){.tech-pack-builder-grid{grid-template-columns:1fr}.tech-pack-preview-panel{position:static}.tech-pack-list-card{grid-template-columns:minmax(0,1fr) auto auto}.tech-pack-list-share{display:none}}
@media(max-width:800px){.tech-pack-list-tools{grid-template-columns:1fr}.tech-pack-list-card{grid-template-columns:1fr}.tech-pack-list-actions{justify-content:flex-start}.tech-pack-form-grid,.tech-pack-image-editor-grid{grid-template-columns:1fr}.tech-pack-form-grid .span-2{grid-column:auto}.tech-pack-size-tools{grid-template-columns:1fr}.tech-pack-recipient-facts{grid-template-columns:1fr 1fr}.tech-pack-doc-main{grid-template-columns:170px 670px 280px}.tech-pack-editor-actions{flex-direction:column;align-items:stretch}}

/* v023 — consolidated Style Tracking save */
.style-section-save-note{display:inline-flex;align-items:center;gap:7px;color:#6e7690;font-size:.76rem;font-weight:800;line-height:1.35}
.style-section-save-note:before{content:"✓";display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#eef1fb;color:#334fc0;font-size:.68rem;flex:0 0 auto}
.style-main-save-bar{position:sticky;bottom:18px;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:24px;margin:28px 0 8px;padding:18px 20px;border:1px solid #cfd6ec;border-radius:22px;background:rgba(255,255,255,.96);box-shadow:0 20px 50px rgba(19,24,70,.18);backdrop-filter:blur(14px)}
.style-main-save-bar>div{display:grid;gap:4px}.style-main-save-bar strong{color:#15194b;font-size:1rem}.style-main-save-bar span{color:#77819b;font-size:.78rem;font-weight:800}.style-main-save-bar .btn{min-width:210px}.style-main-save-bar .btn.has-unsaved-changes{box-shadow:0 10px 28px rgba(51,79,192,.28)}
.style-main-save-bar .btn:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
@media(max-width:700px){.style-main-save-bar{bottom:10px;align-items:stretch;flex-direction:column;padding:16px}.style-main-save-bar .btn{width:100%;min-width:0}}


/* v024: unified uploaded + website-created document lists */
.document-origin-badge{display:inline-flex;align-items:center;width:max-content;margin-top:8px;padding:5px 9px;border-radius:999px;background:#fff2d8;color:#8a651f;border:1px solid #ead29a;font-size:.68rem;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
.document-origin-badge.builder{background:#edf1ff;color:#344db5;border-color:#d8dff8}
.unified-uploaded-document{border-color:#dcc58f!important;background:linear-gradient(135deg,#fffdf7,#fffaf0)!important}
.unified-document-frame{display:block;width:100%;height:min(70vh,760px);min-height:520px;border:1px solid #dce1ee;border-radius:18px;background:#fff;margin-top:14px}
.tech-pack-recipient-card .document-origin-badge,.po-recipient-card .document-origin-badge{margin-top:10px}
@media(max-width:760px){.unified-document-frame{height:520px;min-height:420px}.document-origin-badge{white-space:normal}}

/* v025 dedicated QC inspection-report workflow */
.qc-readonly-notice{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;margin-bottom:18px;border:1px solid #dfe4f1;border-radius:20px;background:#f7f9fd;color:#4e5974}.qc-readonly-notice strong{color:#141846}.inspection-report-readonly{border-left-width:6px}.qc-style-search-panel{display:grid;grid-template-columns:1fr minmax(320px,520px);gap:24px;align-items:end}.qc-style-search-panel label{font-weight:900;color:#171a4d}.qc-style-search-panel input{margin-top:9px}.qc-search-results{grid-column:1/-1;display:grid;gap:8px}.qc-search-results button{text-align:left;border:1px solid #dfe4ef;background:#fff;border-radius:17px;padding:14px 16px;display:grid;grid-template-columns:130px 1fr auto;gap:14px;align-items:center;color:#171a4d;cursor:pointer}.qc-search-results button:hover{border-color:#4057c2;box-shadow:0 10px 24px rgba(25,31,89,.09)}.qc-search-results small{color:#78829a}.qc-selected-style{display:grid;grid-template-columns:140px 1fr;gap:22px;align-items:center;margin-top:20px}.qc-selected-style-image{height:135px;border:1px solid #e0e4ed;border-radius:20px;background:#f7f8fc;display:grid;place-items:center;overflow:hidden;color:#7c8499}.qc-selected-style-image img{width:100%;height:100%;object-fit:contain}.qc-create-report{margin-top:20px}.qc-create-report form,.qc-report-editor form{display:grid;gap:15px}.qc-report-history{display:grid;gap:18px;margin-top:22px}.qc-report-history-head{display:flex;justify-content:space-between;align-items:center;padding:0 4px}.qc-report-editor{border:1px solid #dfe3ed;border-left:7px solid #c49a49;border-radius:24px;background:#fff;box-shadow:0 16px 42px rgba(23,29,76,.07);overflow:hidden}.qc-report-editor.qc-priority-urgent{border-left-color:#b42318}.qc-report-editor.qc-priority-high{border-left-color:#d97706}.qc-report-editor-head{display:flex;justify-content:space-between;gap:20px;padding:20px 22px;background:linear-gradient(90deg,#121642,#3f51b5);color:#fff}.qc-report-editor-head span{display:block;color:#edc878;text-transform:uppercase;letter-spacing:.14em;font-size:.7rem;font-weight:950}.qc-report-editor-head strong{display:block;font-size:1.2rem;margin:5px 0}.qc-report-editor-head small{color:#d7dcf4}.qc-report-editor-head>div:last-child{display:flex;gap:8px;align-items:flex-start}.qc-report-editor-head em{background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.2);border-radius:999px;padding:7px 10px;font-style:normal;font-size:.72rem;font-weight:900}.qc-report-editor form{padding:22px}.qc-report-actions{display:flex;flex-wrap:wrap;gap:10px}.qc-image-management{padding:0 22px 22px}.qc-image-management-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.qc-image-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}.qc-image-editor{border:1px solid #e0e4ee;border-radius:18px;padding:12px;background:#fafbfe}.qc-image-preview{height:180px;border-radius:13px;background:#eef1f8;display:grid;place-items:center;overflow:hidden;margin-bottom:10px;color:#7b849a}.qc-image-preview img{width:100%;height:100%;object-fit:contain}.qc-image-editor label{font-size:.78rem;font-weight:900;color:#444e6b}.qc-image-editor input{margin-top:6px}.qc-image-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.communication-inspection-report{border:2px solid #c69232!important;border-left:8px solid #b42318!important;background:linear-gradient(135deg,#fff9ec,#fff)!important;box-shadow:0 18px 42px rgba(150,95,14,.16)!important}.communication-inspection-banner{display:flex;align-items:center;gap:10px;margin-bottom:14px}.communication-inspection-banner span{background:#b42318;color:#fff;border-radius:999px;padding:6px 10px;font-size:.66rem;font-weight:950;text-transform:uppercase;letter-spacing:.12em}.communication-inspection-banner strong{color:#7b271d;font-size:1rem;letter-spacing:.1em}.communication-inspection-heading{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.communication-inspection-heading small{display:block;color:#8a6a2c;text-transform:uppercase;letter-spacing:.1em;font-size:.66rem;font-weight:900}.communication-inspection-heading strong{display:block;color:#151948;font-size:1.25rem;margin-top:4px}.communication-inspection-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin-top:14px}.communication-inspection-image{border:1px solid #e5cf9e;border-radius:14px;background:#fff;padding:12px;text-align:left;cursor:pointer}.communication-inspection-image span{display:block;color:#a16b16;text-transform:uppercase;letter-spacing:.1em;font-size:.62rem;font-weight:950}.communication-inspection-image strong{display:block;color:#1d224f;margin-top:5px;font-size:.85rem}.communication-inspection-image>div{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.communication-inspection-image .btn{cursor:pointer}@media(max-width:900px){.qc-style-search-panel{grid-template-columns:1fr}.qc-search-results button{grid-template-columns:1fr}.qc-selected-style{grid-template-columns:1fr}.qc-selected-style-image{width:150px}.communication-inspection-heading{flex-direction:column}.qc-readonly-notice{align-items:flex-start;flex-direction:column}}

/* =========================================================
   v026 — Compact spreadsheet-style Order Summary
   ========================================================= */
.order-summary-page .container{max-width:1840px}
.order-summary-content{overflow:hidden}
.order-summary-sheet{display:grid;gap:14px;min-width:0}
.order-summary-sheet-head{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:14px 18px;border:1px solid #dfe4ef;border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(24,29,73,.05)}
.order-summary-sheet-head>div{display:grid;gap:3px}
.order-summary-sheet-head>div:last-child{text-align:right}
.order-summary-sheet-head strong{color:#171747;font-size:.95rem}
.order-summary-sheet-head span{color:#788097;font-size:.72rem;text-transform:uppercase;letter-spacing:.07em;font-weight:850}
.order-summary-table-wrap{overflow:auto;border:1px solid #d8deea;border-radius:20px;background:#fff;box-shadow:0 18px 45px rgba(24,29,73,.07);max-height:72vh}
.order-summary-table{width:100%;min-width:1580px;border-collapse:separate;border-spacing:0;font-size:.82rem;color:#2d3352}
.order-summary-table th,.order-summary-table td{padding:12px 11px;border-right:1px solid #dfe4ed;border-bottom:1px solid #dfe4ed;vertical-align:middle;text-align:left}
.order-summary-table th:last-child,.order-summary-table td:last-child{border-right:0}
.order-summary-table thead th{position:sticky;top:0;z-index:5;background:#171747;color:#fff;font-size:.67rem;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
.order-summary-table thead th:first-child{border-top-left-radius:18px}
.order-summary-table thead th:last-child{border-top-right-radius:18px}
.order-summary-table tbody tr:nth-child(even) td{background:#f8f9fc}
.order-summary-table tbody tr:hover td{background:#f0f3ff}
.order-summary-table tbody td{background:#fff}
.order-summary-table tfoot td{position:sticky;bottom:0;z-index:4;background:#eceffd;color:#171747;font-weight:950;text-transform:uppercase;letter-spacing:.05em}
.order-sheet-number{width:48px;text-align:center!important;font-weight:950;color:#7a8197}
.order-sheet-image-cell{width:165px;min-width:165px}
.order-sheet-images{display:flex;align-items:center;gap:6px;min-width:0}
.order-sheet-images a{display:block;width:46px;height:60px;border:1px solid #dce1ea;border-radius:9px;background:#fff;overflow:hidden;flex:0 0 auto}
.order-sheet-images img{width:100%;height:100%;object-fit:contain;padding:3px}
.order-sheet-images>span{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#eef1fb;color:#3848a3;font-size:.68rem;font-weight:950;flex:0 0 auto}
.order-sheet-no-image{display:inline-flex;align-items:center;justify-content:center;min-width:94px;min-height:54px;border:1px dashed #bcc4d6;border-radius:10px;color:#848a9d;background:#fafbfe;font-size:.72rem;font-weight:850}
.order-sheet-style-cell{min-width:180px}
.order-sheet-style-cell strong{display:block;color:#15184a;font-size:.94rem}
.order-sheet-style-cell span{display:block;margin-top:4px;color:#2e345a;font-weight:850;line-height:1.3}
.order-sheet-style-cell small,.order-sheet-description-cell small{display:block;margin-top:5px;color:#7b8298;font-size:.7rem;line-height:1.4}
.order-sheet-description-cell{min-width:235px;line-height:1.45}
.order-sheet-description-cell>span{display:block;color:#424862}
.order-sheet-description-cell small b{color:#5c6480}
.order-sheet-colors{display:flex;flex-wrap:wrap;gap:5px;min-width:130px;max-width:220px}
.order-sheet-colors span{display:inline-flex;padding:5px 7px;border-radius:999px;background:#eef1fb;color:#394597;font-size:.68rem;font-weight:850;line-height:1.2}
.order-sheet-ratio{display:flex;flex-wrap:wrap;gap:4px;min-width:175px;max-width:260px}
.order-sheet-ratio span{display:inline-flex;align-items:center;overflow:hidden;border:1px solid #dce2ee;border-radius:8px;background:#fff}
.order-sheet-ratio b{padding:4px 6px;background:#eef1fb;color:#303c92;font-size:.64rem}
.order-sheet-ratio em{padding:4px 6px;color:#2c3152;font-style:normal;font-size:.67rem;font-weight:900}
.order-sheet-quantity{text-align:right!important;color:#171747;font-size:.94rem;font-weight:950}
.order-sheet-actions{min-width:96px}
.order-sheet-actions a{display:inline-flex;margin:2px 3px 2px 0;padding:6px 8px;border:1px solid #d8deea;border-radius:8px;color:#334fc0;background:#fff;font-size:.67rem;font-weight:900}
.order-sheet-actions a:hover{border-color:#334fc0;background:#f1f4ff}
.order-summary-size-totals{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 18px;border:1px solid #dfe4ef;border-radius:18px;background:#fff}
.order-summary-size-totals>span{color:#6d748c;font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;font-weight:950}
.order-summary-size-totals>div{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}
.order-summary-size-totals strong{display:inline-flex;align-items:center;overflow:hidden;border:1px solid #dce2ee;border-radius:9px;background:#fafbfe}
.order-summary-size-totals b{padding:6px 8px;background:#171747;color:#fff;font-size:.68rem}
.order-summary-size-totals em{padding:6px 9px;color:#171747;font-style:normal;font-size:.72rem;font-weight:950}

@media(max-width:900px){
  .order-summary-sheet-head,.order-summary-size-totals{align-items:flex-start;flex-direction:column}
  .order-summary-sheet-head>div:last-child{text-align:left}
  .order-summary-size-totals>div{justify-content:flex-start}
  .order-summary-table-wrap{max-height:68vh}
}

@media print{
  body[data-order-summary-page] .site-header,
  body[data-order-summary-page] .portal-hero,
  body[data-order-summary-page] .portal-sidebar,
  body[data-order-summary-page] .order-summary-toolbar,
  body[data-order-summary-page] .order-summary-controls,
  body[data-order-summary-page] .footer,
  body[data-order-summary-page] [data-order-alert]{display:none!important}
  body[data-order-summary-page] .portal-section{padding:0!important}
  body[data-order-summary-page] .portal-layout{display:block!important}
  body[data-order-summary-page] .order-summary-content{width:100%!important;overflow:visible!important}
  body[data-order-summary-page] .order-summary-banner{box-shadow:none;border-radius:0;padding:14px;margin-bottom:10px}
  body[data-order-summary-page] .order-summary-table-wrap{overflow:visible;max-height:none;box-shadow:none;border-radius:0}
  body[data-order-summary-page] .order-summary-table{min-width:0;font-size:7.5pt}
  body[data-order-summary-page] .order-summary-table th,
  body[data-order-summary-page] .order-summary-table td{padding:5px 4px}
  body[data-order-summary-page] .order-summary-table thead th,
  body[data-order-summary-page] .order-summary-table tfoot td{position:static}
  body[data-order-summary-page] .order-sheet-images a{width:28px;height:38px}
  body[data-order-summary-page] .order-sheet-actions{display:none}
  body[data-order-summary-page] .order-summary-table th:last-child,
  body[data-order-summary-page] .order-summary-table td:last-child{display:none}
  body[data-order-summary-page] .order-summary-size-totals{border-radius:0;box-shadow:none;margin-top:8px}
  @page{size:A3 landscape;margin:8mm}
}


/* v027 fast unified document lists */
.document-filter-tools{display:grid;grid-template-columns:minmax(220px,1.7fr) repeat(3,minmax(150px,.7fr));gap:12px;align-items:center;margin-bottom:16px}
.document-filter-tools input,.document-filter-tools select{width:100%;min-height:48px;border:1px solid #dce2ee;border-radius:14px;background:#fff;padding:0 14px;color:#171a4d;font:inherit;font-weight:750}
.po-recipient-tools,.tech-pack-recipient-tools{padding:16px;background:#fff;border:1px solid #e1e6f0;border-radius:20px;box-shadow:0 12px 30px rgba(20,28,75,.06)}
.document-list-card details,.unified-document-frame{display:none!important}
.document-list-card .po-recipient-actions,.document-list-card .tech-pack-recipient-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
@media(max-width:1000px){.document-filter-tools{grid-template-columns:1fr 1fr}.document-filter-tools input{grid-column:1/-1}}
@media(max-width:640px){.document-filter-tools{grid-template-columns:1fr}.document-filter-tools input{grid-column:auto}}

/* v028 — lightweight, role-based account Updates Hub */
.notification-live-row{display:flex;align-items:center;gap:9px;padding:13px 2px 5px;color:#646b85;font-size:12px}
.notification-live-row small{margin-left:auto;color:#9499aa}
.notification-live-dot{width:9px;height:9px;border-radius:50%;background:#c0c4d2;box-shadow:0 0 0 5px rgba(192,196,210,.16)}
.notification-live-dot.online{background:#31a866;box-shadow:0 0 0 5px rgba(49,168,102,.13)}
.notification-filter-row{display:flex;gap:8px;padding:14px 0 3px;overflow:auto}
.notification-filter-row button{border:1px solid #dfe3ef;border-radius:999px;background:#fff;color:#555d79;padding:9px 14px;font:inherit;font-size:12px;font-weight:900;cursor:pointer;white-space:nowrap}
.notification-filter-row button.active{background:#17164c;border-color:#17164c;color:#fff}
.site-update-priority{display:inline-flex;align-items:center;min-height:25px;padding:4px 9px;border-radius:999px;background:#fff0cc;color:#8b5b00;font-size:10px;font-weight:950;letter-spacing:.7px;text-transform:uppercase}
.site-update-item.importance-critical{border-color:#efc6c6;background:linear-gradient(135deg,#fffafa,#fff4f4)}
.site-update-item.importance-critical .site-update-dot{background:#c33d45;box-shadow:0 0 0 5px rgba(195,61,69,.12)}
.site-update-item.importance-important:not(.is-unread){border-color:#e2d7b9;background:linear-gradient(135deg,#fff,#fffdf7)}
.site-update-toast.critical{background:linear-gradient(135deg,#741d29,#c13c49)}
.portal-updates-nav{position:relative}
.portal-updates-nav em:not([hidden]){animation:notificationBadgePulse 1.8s ease-in-out infinite}
@keyframes notificationBadgePulse{0%,100%{box-shadow:0 0 0 0 rgba(77,79,198,.25)}50%{box-shadow:0 0 0 7px rgba(77,79,198,0)}}
@media(max-width:700px){.notification-live-row{flex-wrap:wrap}.notification-live-row small{width:100%;margin-left:18px}.notification-filter-row button{flex:1}}


/* v029 — Tech Pack download action alignment */
.document-list-card .tech-pack-recipient-actions{
  justify-content:flex-end;
  align-items:center;
  padding:0 22px 22px;
  margin-top:22px;
}
@media(max-width:600px){
  .document-list-card .tech-pack-recipient-actions{
    display:grid;
    padding:0 16px 16px;
  }
  .document-list-card .tech-pack-recipient-actions .btn{width:100%}
}

/* v030 style-aware document builder helpers */
.document-carry-tools{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:16px;padding:16px 18px;border:1px solid #dfe4f1;border-radius:18px;background:#f8f9fd}
.document-carry-tools label{display:flex;align-items:center;gap:10px;margin:0;font-weight:800;color:#1c2256}
.document-carry-tools input[type="checkbox"]{width:18px;height:18px;accent-color:#3e55bd}
.document-style-resolution{margin:0;padding:13px 15px;border-left:4px solid #c69a49;border-radius:0 14px 14px 0;background:#fff9ec;color:#5f647a;font-size:.84rem;line-height:1.5}
@media(max-width:720px){.document-carry-tools{align-items:stretch;flex-direction:column}.document-carry-tools .btn{width:100%}}

/* v031 accessibility and audit hardening */
.skip-link{position:fixed;left:16px;top:12px;z-index:20000;transform:translateY(-160%);background:#fff;color:#11134a;border:2px solid #334fc0;border-radius:12px;padding:10px 14px;font-weight:900;box-shadow:0 10px 30px rgba(17,19,74,.2)}
.skip-link:focus{transform:translateY(0)}
:where(a,button,input,select,textarea):focus-visible{outline:3px solid #5268dc;outline-offset:3px}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* =========================================================
   v055 STYLE TRACKING FOLDER BROWSER
   Client -> Year -> Season -> Origin -> Buy Group -> Styles
   ========================================================= */
body[data-style-page] .style-folder-browser{
  display:grid;
  gap:18px;
  width:100%;
  padding:20px;
  border:1px solid #dce7f5;
  border-radius:24px;
  background:linear-gradient(145deg,#f8fbff 0%,#fff 68%);
  box-shadow:0 14px 36px rgba(6,35,94,.055);
}
body[data-style-page] .style-folder-browser-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
}
body[data-style-page] .style-folder-browser-head h3,
body[data-style-page] .style-result-heading h3{
  margin:5px 0 0;
  color:#071447;
  font-size:clamp(1.15rem,2vw,1.55rem);
  line-height:1.2;
}
body[data-style-page] .style-folder-browser-head p,
body[data-style-page] .style-result-heading p{
  margin:8px 0 0;
  max-width:760px;
  color:#64748b;
  font-size:.88rem;
  font-weight:650;
  line-height:1.55;
}
body[data-style-page] .style-folder-browser-head>b{
  flex:0 0 auto;
  padding:7px 11px;
  border:1px solid #dce7f5;
  border-radius:999px;
  background:#fff;
  color:#3048b8;
  font-size:.75rem;
  white-space:nowrap;
}
body[data-style-page] .style-folder-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
body[data-style-page] .style-folder-card{
  position:relative;
  display:grid;
  grid-template-columns:48px minmax(0,1fr) auto 18px;
  align-items:center;
  gap:12px;
  min-width:0;
  min-height:128px;
  padding:16px;
  border:1px solid #dfe8f5;
  border-radius:20px;
  background:#fff;
  color:#071447;
  text-align:left;
  cursor:pointer;
  box-shadow:0 10px 26px rgba(6,35,94,.045);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
body[data-style-page] .style-folder-card:hover,
body[data-style-page] .style-folder-card:focus-visible{
  transform:translateY(-2px);
  border-color:rgba(51,75,192,.4);
  box-shadow:0 16px 34px rgba(6,35,94,.1);
  outline:none;
}
body[data-style-page] .style-folder-icon{
  position:relative;
  display:block;
  width:46px;
  height:37px;
  border-radius:9px;
  background:linear-gradient(145deg,#3048b8,#5369d8);
  box-shadow:inset 0 -7px 0 rgba(0,0,0,.08),0 7px 15px rgba(48,72,184,.2);
}
body[data-style-page] .style-folder-icon:before{
  content:"";
  position:absolute;
  top:-7px;
  left:4px;
  width:22px;
  height:10px;
  border-radius:7px 7px 0 0;
  background:#5369d8;
}
body[data-style-page] .style-folder-icon i{
  position:absolute;
  inset:10px 8px auto;
  height:2px;
  border-radius:999px;
  background:rgba(255,255,255,.75);
  box-shadow:0 6px 0 rgba(255,255,255,.45);
}
body[data-style-page] .style-folder-content{
  display:grid;
  gap:4px;
  min-width:0;
}
body[data-style-page] .style-folder-content>small{
  color:#9a6f22;
  font-size:.62rem;
  font-weight:950;
  letter-spacing:.12em;
  text-transform:uppercase;
}
body[data-style-page] .style-folder-content>strong{
  overflow-wrap:anywhere;
  color:#071447;
  font-size:1rem;
  line-height:1.25;
}
body[data-style-page] .style-folder-content>em{
  overflow:hidden;
  color:#64748b;
  font-size:.74rem;
  font-style:normal;
  font-weight:700;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body[data-style-page] .style-folder-statuses{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin-top:3px;
}
body[data-style-page] .style-folder-statuses span{
  color:#64748b;
  font-size:.66rem;
  font-weight:800;
  text-transform:capitalize;
}
body[data-style-page] .style-folder-card>b{
  align-self:start;
  padding:5px 8px;
  border-radius:999px;
  background:#eef3ff;
  color:#3048b8;
  font-size:.68rem;
  white-space:nowrap;
}
body[data-style-page] .style-folder-arrow{
  color:#9aa7bd;
  font-size:1.65rem;
  line-height:1;
}
body[data-style-page] .style-result-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
  padding:16px 18px;
  border:1px solid #dce7f5;
  border-radius:19px;
  background:linear-gradient(135deg,#f8fbff,#fff);
}
body[data-style-page] .style-final-style-cards{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  width:100%;
}
body[data-style-page] .style-advanced-filters{
  margin-top:12px;
  border:1px solid #e1e8f3;
  border-radius:17px;
  background:#fff;
  overflow:hidden;
}
body[data-style-page] .style-advanced-filters>summary{
  padding:12px 15px;
  color:#334155;
  font-size:.8rem;
  font-weight:900;
  cursor:pointer;
  list-style-position:inside;
}
body[data-style-page] .style-advanced-filter-body{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(190px,260px);
  gap:14px;
  align-items:end;
  padding:0 15px 15px;
}
body[data-style-page] .style-category-filter{
  display:grid;
  gap:6px;
  color:#64748b;
  font-size:.68rem;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}
body[data-style-page] .style-category-filter select{
  width:100%;
  min-width:0;
}
@media(max-width:1180px){
  body[data-style-page] .style-folder-grid,
  body[data-style-page] .style-final-style-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
  body[data-style-page] .style-folder-browser{padding:14px;border-radius:20px}
  body[data-style-page] .style-folder-browser-head,
  body[data-style-page] .style-result-heading{flex-direction:column}
  body[data-style-page] .style-folder-grid,
  body[data-style-page] .style-final-style-cards,
  body[data-style-page] .style-advanced-filter-body{grid-template-columns:1fr}
  body[data-style-page] .style-folder-card{grid-template-columns:44px minmax(0,1fr) 16px;min-height:112px;padding:14px}
  body[data-style-page] .style-folder-card>b{grid-column:2;justify-self:start;align-self:auto}
  body[data-style-page] .style-folder-arrow{grid-column:3;grid-row:1/3}
}


body[data-style-page] .style-browse-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
body[data-style-page] .style-browse-actions .btn,body[data-style-page] .style-advanced-filters>summary{min-height:44px}
body[data-style-page] .style-client-board[hidden]{display:none!important}
@media(max-width:700px){
  body[data-style-page] .style-browse-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}
  body[data-style-page] .style-browse-actions .btn{width:100%;justify-content:center}
}

/* v058 internal team chat navigation badge */
.internal-chat-nav-link{display:flex!important;align-items:center;justify-content:space-between;gap:12px}
.internal-chat-nav-link b{min-width:25px;height:25px;padding:0 7px;border-radius:999px;display:grid;place-items:center;background:#d9334a;color:#fff;font-size:.68rem;line-height:1;font-weight:900;box-shadow:0 7px 18px rgba(217,51,74,.22)}
.internal-chat-nav-link.active b{background:#fff;color:#a8172e}
.internal-chat-nav-link b[hidden]{display:none!important}


/* =========================================================
   v061 STYLE TRACKING FILTER + CARD REPAIR
   Permanent clickable hierarchy filters and resilient cards.
   ========================================================= */
body[data-style-page] .style-filter-bar{
  display:grid;
  gap:14px;
  margin:14px 0;
  padding:16px;
  border:1px solid #dce7f5;
  border-radius:20px;
  background:linear-gradient(135deg,#f8fbff,#fff);
  box-shadow:0 10px 28px rgba(6,35,94,.045);
}
body[data-style-page] .style-filter-bar-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
body[data-style-page] .style-filter-bar-head>div{display:grid;gap:3px;min-width:0}
body[data-style-page] .style-filter-bar-head strong{color:#071447;font-size:1rem}
body[data-style-page] .style-filter-bar-head small{color:#64748b;font-size:.76rem;font-weight:700}
body[data-style-page] .style-filter-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(145px,1fr));
  gap:10px;
}
body[data-style-page] .style-filter-grid label{
  display:grid;
  gap:6px;
  min-width:0;
  color:#64748b;
  font-size:.66rem;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}
body[data-style-page] .style-filter-grid select{
  width:100%;
  min-width:0;
  min-height:46px;
  padding:0 36px 0 11px;
  border:1px solid #d7e0ed;
  border-radius:13px;
  background:#fff;
  color:#11184f;
  font:inherit;
  font-size:.79rem;
  font-weight:800;
  letter-spacing:0;
  text-transform:none;
  cursor:pointer;
}
body[data-style-page] .style-filter-grid select:disabled{
  cursor:not-allowed;
  background:#f1f5f9;
  color:#94a3b8;
  opacity:1;
}
body[data-style-page] .style-filter-grid select:focus-visible{
  border-color:#5268dc;
  box-shadow:0 0 0 4px rgba(82,104,220,.13);
}
body[data-style-page] .style-final-style-cards{
  grid-template-columns:repeat(auto-fit,minmax(360px,1fr));
  align-items:stretch;
}
body[data-style-page] .style-final-style-cards .style-list-card{
  display:grid;
  grid-template-columns:96px minmax(0,1fr);
  gap:15px;
  min-width:0;
  min-height:154px;
  padding:15px;
  align-items:center;
  overflow:hidden;
}
body[data-style-page] .style-final-style-cards .style-list-card-image{
  width:96px;
  height:116px;
  align-self:center;
}
body[data-style-page] .style-final-style-cards .style-list-card-content{
  display:grid;
  align-content:center;
  gap:6px;
  min-width:0;
  width:100%;
}
body[data-style-page] .style-final-style-cards .style-list-top{
  display:grid;
  grid-template-columns:minmax(0,1fr) max-content;
  gap:8px;
  align-items:start;
  min-width:0;
  margin:0;
}
body[data-style-page] .style-final-style-cards .style-list-top strong{
  min-width:0;
  color:#101747;
  font-size:1rem;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  word-break:normal;
  overflow-wrap:normal;
}
body[data-style-page] .style-final-style-cards .style-list-top em{
  max-width:128px;
  padding:5px 8px;
  line-height:1.2;
  white-space:normal;
  text-align:center;
  overflow-wrap:break-word;
}
body[data-style-page] .style-final-style-cards .style-list-name{
  display:-webkit-box;
  min-width:0;
  margin:0;
  overflow:hidden;
  color:#1e293b;
  font-size:.92rem;
  font-weight:850;
  line-height:1.32;
  overflow-wrap:break-word;
  word-break:normal;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
body[data-style-page] .style-final-style-cards .style-card-chips{margin:0}
body[data-style-page] .style-final-style-cards .style-list-meta{
  min-width:0;
  overflow:hidden;
  color:#64748b;
  font-size:.7rem;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body[data-style-page] .style-list-card-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-width:0;
}
body[data-style-page] .style-list-card-footer .style-list-category{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body[data-style-page] .style-card-open{
  display:inline-flex;
  align-items:center;
  gap:5px;
  flex:0 0 auto;
  color:#3048b8;
  font-size:.7rem;
  font-weight:950;
}
body[data-style-page] .style-list-card:hover .style-card-open b,
body[data-style-page] .style-list-card:focus-visible .style-card-open b{transform:translateX(2px)}
body[data-style-page] .style-card-open b{transition:transform .18s ease}
@media(max-width:860px){
  body[data-style-page] .style-filter-bar-head{flex-direction:column}
  body[data-style-page] .style-filter-bar-head .btn{width:100%;justify-content:center}
  body[data-style-page] .style-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-style-page] .style-final-style-cards{grid-template-columns:1fr}
}
@media(max-width:520px){
  body[data-style-page] .style-filter-bar{padding:13px;border-radius:17px}
  body[data-style-page] .style-filter-grid{grid-template-columns:1fr}
  body[data-style-page] .style-final-style-cards .style-list-card{grid-template-columns:82px minmax(0,1fr);gap:11px;min-height:142px;padding:12px}
  body[data-style-page] .style-final-style-cards .style-list-card-image{width:82px;height:102px}
  body[data-style-page] .style-final-style-cards .style-list-top{grid-template-columns:1fr}
  body[data-style-page] .style-final-style-cards .style-list-top strong{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:break-word}
  body[data-style-page] .style-final-style-cards .style-list-top em{justify-self:start;max-width:100%}
  body[data-style-page] .style-list-card-footer{align-items:flex-start;flex-direction:column;gap:5px}
}

body[data-style-page] .style-result-pagination{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:14px;
  padding:12px 14px;
  border:1px solid #dce7f5;
  border-radius:16px;
  background:#f8fbff;
}
body[data-style-page] .style-result-pagination>span{color:#64748b;font-size:.76rem;font-weight:800}
body[data-style-page] .style-result-pagination>div{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:520px){
  body[data-style-page] .style-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-style-page] .style-filter-grid label:first-child{grid-column:1/-1}
  body[data-style-page] .style-result-pagination{align-items:stretch;flex-direction:column}
  body[data-style-page] .style-result-pagination>div{display:grid;grid-template-columns:1fr 1fr}
  body[data-style-page] .style-result-pagination .btn{width:100%;justify-content:center}
}
@media(max-width:340px){body[data-style-page] .style-filter-grid{grid-template-columns:1fr}}

/* v069 Style Tracking / Purchase Order workflow */
.style-list-card .style-number-only{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0}
.style-list-card .style-number-only strong{display:block;width:100%;font-size:1rem;line-height:1.18;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;word-break:break-word;letter-spacing:.02em}
.style-list-card .style-number-only em{align-self:flex-start;max-width:100%}
.style-list-card .style-list-name{display:none!important}
.style-commercial-panel,.style-po-shortcut{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:22px;align-items:center;margin:18px 0;padding:20px;border:1px solid rgba(31,45,112,.13);border-radius:22px;background:linear-gradient(135deg,#fff,#f7f9ff);box-shadow:0 16px 38px rgba(20,31,89,.07)}
.style-commercial-panel h3,.style-po-shortcut h3{margin:4px 0 6px}.style-commercial-panel p,.style-po-shortcut p{margin:0;color:#66708f}
.style-commercial-edit{grid-template-columns:minmax(220px,1fr) minmax(120px,.35fr) minmax(180px,.5fr) minmax(210px,.65fr)}
.style-commercial-edit label{display:grid;gap:6px;font-weight:800;color:#222b60}.style-commercial-edit input,.style-commercial-edit select{width:100%;min-height:45px;border:1px solid #dce2f2;border-radius:13px;padding:10px 12px;background:#fff;color:#111a50}
.style-commercial-total,.style-commercial-read span{display:grid;gap:4px;padding:14px 16px;border-radius:16px;background:#eef1ff;color:#505a80}
.style-commercial-total strong,.style-commercial-read strong{font-size:1.2rem;color:#151957}.style-commercial-total small{color:#69718f}
.style-commercial-read{display:flex;gap:12px}.style-commercial-read span{min-width:170px}
.style-po-shortcut-actions,.style-po-modal-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.style-po-modal{position:fixed;inset:0;z-index:10050;display:grid;place-items:center;padding:20px}.style-po-modal-backdrop{position:absolute;inset:0;background:rgba(6,12,55,.62);backdrop-filter:blur(8px)}
.style-po-modal>section{position:relative;width:min(620px,100%);padding:30px;border-radius:26px;background:#fff;box-shadow:0 30px 90px rgba(0,0,0,.28)}.style-po-modal>section h2{margin:6px 0 10px;color:#151957}.style-po-modal>section p{color:#646d89;line-height:1.65}.style-po-modal-close{position:absolute;right:16px;top:14px;border:0;background:#f0f2fb;border-radius:50%;width:38px;height:38px;font-size:24px;cursor:pointer}
.po-preview-panel.po-preview-focus{outline:3px solid rgba(70,80,220,.3);outline-offset:5px}
@media(max-width:900px){.style-commercial-panel,.style-po-shortcut,.style-commercial-edit{grid-template-columns:1fr}.style-commercial-read{display:grid;grid-template-columns:1fr 1fr}.style-po-shortcut-actions,.style-po-modal-actions{justify-content:flex-start}}
@media(max-width:560px){.style-commercial-read{grid-template-columns:1fr}.style-commercial-panel,.style-po-shortcut{padding:16px;border-radius:18px}.style-po-modal>section{padding:24px 18px}.style-po-modal-actions>*{width:100%;justify-content:center}}
body[data-style-page] .style-final-style-cards .style-list-top.style-number-only{display:flex;flex-direction:column;align-items:flex-start;gap:7px}
body[data-style-page] .style-final-style-cards .style-list-top.style-number-only strong{width:100%;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;word-break:break-word!important}
body[data-style-page] .style-final-style-cards .style-list-top.style-number-only em{justify-self:auto;align-self:flex-start}
.style-commercial-create .style-create-commercial-total{display:grid;align-content:center;gap:4px;padding:12px 14px;border-radius:14px;background:#eef1ff;color:#505a80}.style-commercial-create .style-create-commercial-total strong{font-size:1.08rem;color:#151957}

/* =========================================================
   v071 role-aware notification system
   ========================================================= */
.tr-data-sync-toast{display:none!important}
.site-update-toast{display:block;padding:20px 22px 18px;cursor:default}
.site-update-toast p{margin:7px 0 0;font-size:13px;line-height:1.5;opacity:.9}
.site-update-toast small{display:block;margin-top:7px;font-size:11px;opacity:.76}
.site-update-toast-close{position:absolute;right:10px;top:9px;width:30px;height:30px;border:0;border-radius:999px;background:rgba(255,255,255,.12);color:#fff;font-size:20px;line-height:1;cursor:pointer}
.site-update-toast-actions{display:flex;gap:9px;margin-top:14px}
.site-update-toast-actions button{border:1px solid rgba(255,255,255,.34);border-radius:999px;background:#fff;color:#24255f;padding:8px 15px;font:inherit;font-size:12px;font-weight:900;cursor:pointer}
.site-update-toast-actions button.secondary{background:transparent;color:#fff}
.site-update-toast.importance-critical{background:linear-gradient(135deg,#741d29,#c13c49)}
.site-update-toast.importance-important{background:linear-gradient(135deg,#20205d,#4d4fc6)}
.portal-updates-nav span:before{content:'●';display:inline-block;margin-right:8px;color:#777be7;font-size:9px;vertical-align:2px}
.site-update-item{position:relative}
.site-update-item.is-unread{box-shadow:inset 3px 0 0 #4d4fc6}
.notification-filter-row{display:flex;gap:8px;overflow-x:auto;padding:15px 1px 2px;scrollbar-width:none}
.notification-filter-row::-webkit-scrollbar{display:none}
.notification-filter-row button{white-space:nowrap}
@media(max-width:640px){
  .site-update-toast{right:12px;bottom:92px;width:calc(100vw - 24px);padding:18px 18px 16px}
  .site-update-toast-actions button{flex:1}
}

/* =========================================================
   v071 order value + horizontal Tech Pack workspace
   ========================================================= */
.order-summary-metrics{grid-template-columns:repeat(auto-fit,minmax(165px,1fr))}
.order-summary-value-metric{background:linear-gradient(145deg,#f1f3ff,#fff)!important;border-color:#cfd7f2!important}
.order-summary-value-metric strong{color:#263c9c!important}
.order-summary-sheet-head{justify-content:flex-start}
.order-summary-sheet-head>div{min-width:170px}
.order-summary-sheet-head>div:nth-child(n+2){margin-left:auto;text-align:right}
.order-summary-table{min-width:1880px}
.order-sheet-money{min-width:135px;text-align:right!important;white-space:nowrap;color:#28356e}
.order-sheet-line-total{background:#f5f7ff!important;color:#15194b;font-size:.9rem}
.order-summary-value-strip{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 18px;border:1px solid #cfd7f2;border-radius:18px;background:linear-gradient(135deg,#f4f6ff,#fff);box-shadow:0 10px 28px rgba(24,29,73,.05)}
.order-summary-value-strip>span{color:#59627c;font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;font-weight:950}
.order-value-totals{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:7px}
.order-value-totals strong{display:inline-flex;align-items:center;overflow:hidden;border:1px solid #ccd5ef;border-radius:9px;background:#fff;white-space:nowrap}
.order-value-totals b{padding:6px 8px;background:#263c9c;color:#fff;font-size:.68rem}
.order-value-totals em{padding:6px 9px;color:#171747;font-style:normal;font-size:.72rem;font-weight:950}
.order-value-empty{color:#7b8298;font-size:.75rem;font-weight:800}
.order-summary-table tfoot .order-value-totals{justify-content:flex-start}
.order-summary-table tfoot .order-value-totals strong{border-color:#bfc9e7}

.tech-pack-builder-grid{grid-template-columns:minmax(0,1fr);gap:24px}
.tech-pack-preview-panel{position:static;order:0}
.tech-pack-editor-card{order:1}
.tech-pack-preview-scroll{max-height:78vh;overflow:auto;scrollbar-gutter:stable both-edges;padding:20px}
.tech-pack-preview-panel .tech-pack-document{margin:0 auto}

@media(max-width:900px){
  .order-summary-sheet-head>div:nth-child(n+2){margin-left:0;text-align:left}
  .order-summary-value-strip{align-items:flex-start;flex-direction:column}
  .order-value-totals{justify-content:flex-start}
  .tech-pack-preview-scroll{max-height:68vh;padding:12px}
}

@media print{
  body[data-order-summary-page] .order-summary-value-strip{box-shadow:none;border-radius:0;margin-top:8px}
  body[data-order-summary-page] .order-sheet-money{font-size:7pt}
  body[data-order-summary-page] .order-summary-table{font-size:7pt}
}

/* =========================================================
   v075 - isolated Order Summary printing
   Print only the order summary document. Portal navigation,
   mobile drawers, Lily, headers, footers and fixed UI must
   never enter the browser print layout.
   ========================================================= */
@media print{
  html{background:#fff!important;overflow:visible!important}
  body[data-order-summary-page]{
    position:static!important;
    inset:auto!important;
    top:auto!important;
    width:auto!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
    background:#fff!important;
  }
  body[data-order-summary-page] > *:not(main){display:none!important}
  body[data-order-summary-page] > main{display:block!important;width:100%!important;margin:0!important;padding:0!important;overflow:visible!important}
  body[data-order-summary-page] > main > *:not(.order-summary-page){display:none!important}
  body[data-order-summary-page] .order-summary-page{display:block!important;width:100%!important;margin:0!important;padding:0!important;background:#fff!important}
  body[data-order-summary-page] .order-summary-page > .container{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
  body[data-order-summary-page] .portal-layout{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
  body[data-order-summary-page] .portal-sidebar,
  body[data-order-summary-page] .order-summary-toolbar,
  body[data-order-summary-page] .order-summary-controls,
  body[data-order-summary-page] [data-order-alert],
  body[data-order-summary-page] .tr-mobile-nav,
  body[data-order-summary-page] .tr-mobile-drawer,
  body[data-order-summary-page] .tr-mobile-drawer-backdrop,
  body[data-order-summary-page] .tr-app-topbar,
  body[data-order-summary-page] .portal-menu-toggle,
  body[data-order-summary-page] .lily-assistant,
  body[data-order-summary-page] [data-lily-root],
  body[data-order-summary-page] [data-install-app]{display:none!important}
  body[data-order-summary-page] .portal-content,
  body[data-order-summary-page] .order-summary-content{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;overflow:visible!important}
  body[data-order-summary-page] .order-summary-banner{display:block!important;margin:0 0 7mm!important;padding:5mm!important;border:1px solid #cfd5e2!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;break-inside:avoid;page-break-inside:avoid}
  body[data-order-summary-page] .order-summary-sheet{display:block!important;width:100%!important;margin:0!important;padding:0!important;overflow:visible!important}
  body[data-order-summary-page] .order-summary-sheet-head{break-inside:avoid;page-break-inside:avoid}
  body[data-order-summary-page] .order-summary-table-wrap{display:block!important;width:100%!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;overflow:visible!important;border-radius:0!important;box-shadow:none!important}
  body[data-order-summary-page] .order-summary-table{width:100%!important;min-width:0!important;max-width:none!important;border-collapse:collapse!important;table-layout:auto!important;font-size:7pt!important}
  body[data-order-summary-page] .order-summary-table thead{display:table-header-group!important}
  body[data-order-summary-page] .order-summary-table tfoot{display:table-footer-group!important}
  body[data-order-summary-page] .order-summary-table tr{break-inside:avoid;page-break-inside:avoid}
  body[data-order-summary-page] .order-summary-table th,
  body[data-order-summary-page] .order-summary-table td{position:static!important;padding:4px 3px!important;vertical-align:top!important}
  body[data-order-summary-page] .order-summary-table th:last-child,
  body[data-order-summary-page] .order-summary-table td:last-child,
  body[data-order-summary-page] .order-sheet-actions{display:none!important}
  body[data-order-summary-page] .order-sheet-image-cell{width:29mm!important;min-width:29mm!important}
  body[data-order-summary-page] .order-sheet-images a{width:20px!important;height:28px!important}
  body[data-order-summary-page] .order-sheet-style-cell,
  body[data-order-summary-page] .order-sheet-description-cell,
  body[data-order-summary-page] .order-sheet-money,
  body[data-order-summary-page] .order-sheet-colors,
  body[data-order-summary-page] .order-sheet-ratio{min-width:0!important;max-width:none!important}
  body[data-order-summary-page] .order-summary-size-totals,
  body[data-order-summary-page] .order-summary-value-strip{margin-top:5mm!important;border-radius:0!important;box-shadow:none!important;break-inside:avoid;page-break-inside:avoid}
  @page{size:A3 landscape;margin:8mm}
}


/* =========================================================
   v079 - Order Summary readable columns and print layout
   Larger primary style image, no Delivery column, stacked
   colours, and no wrapping in key commercial fields.
   ========================================================= */
.order-summary-table{min-width:1760px}
.order-sheet-image-cell{width:128px;min-width:128px}
.order-sheet-images{align-items:flex-start}
.order-sheet-images a.order-sheet-image-link{width:82px;height:104px;border-radius:12px}
.order-sheet-images>span{width:34px;height:34px;margin-top:4px}
.order-sheet-po{min-width:106px;white-space:nowrap}
.order-sheet-vendor{min-width:112px;white-space:nowrap}
.order-sheet-origin{min-width:104px;white-space:nowrap}
.order-sheet-colours-cell{min-width:138px}
.order-sheet-colors{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:4px;min-width:116px;max-width:150px}
.order-sheet-colors span{display:block;width:100%;padding:5px 7px;border-radius:7px;white-space:nowrap}
.order-sheet-ratio-cell{min-width:184px}
.order-sheet-quantity{min-width:70px;white-space:nowrap}
.order-sheet-money{min-width:116px;white-space:nowrap}
.order-sheet-total-quantity,.order-sheet-total-value{white-space:nowrap!important}
.order-sheet-total-value .order-value-totals{flex-wrap:nowrap}
.order-summary-table tfoot td{white-space:nowrap}
.order-summary-table col.order-col-number{width:48px}
.order-summary-table col.order-col-picture{width:128px}
.order-summary-table col.order-col-style{width:190px}
.order-summary-table col.order-col-description{width:260px}
.order-summary-table col.order-col-po{width:110px}
.order-summary-table col.order-col-vendor{width:118px}
.order-summary-table col.order-col-origin{width:110px}
.order-summary-table col.order-col-colours{width:150px}
.order-summary-table col.order-col-ratio{width:190px}
.order-summary-table col.order-col-qty{width:76px}
.order-summary-table col.order-col-unit{width:122px}
.order-summary-table col.order-col-total{width:132px}
.order-summary-table col.order-col-open{width:105px}

@media print{
  body[data-order-summary-page] .order-summary-table{
    table-layout:fixed!important;
    font-size:6.7pt!important;
  }
  body[data-order-summary-page] .order-summary-table th,
  body[data-order-summary-page] .order-summary-table td{
    padding:4px 3px!important;
    line-height:1.25!important;
  }
  body[data-order-summary-page] .order-summary-table col.order-col-number{width:6mm!important}
  body[data-order-summary-page] .order-summary-table col.order-col-picture{width:27mm!important}
  body[data-order-summary-page] .order-summary-table col.order-col-style{width:38mm!important}
  body[data-order-summary-page] .order-summary-table col.order-col-description{width:55mm!important}
  body[data-order-summary-page] .order-summary-table col.order-col-po{width:25mm!important}
  body[data-order-summary-page] .order-summary-table col.order-col-vendor{width:27mm!important}
  body[data-order-summary-page] .order-summary-table col.order-col-origin{width:24mm!important}
  body[data-order-summary-page] .order-summary-table col.order-col-colours{width:31mm!important}
  body[data-order-summary-page] .order-summary-table col.order-col-ratio{width:42mm!important}
  body[data-order-summary-page] .order-summary-table col.order-col-qty{width:16mm!important}
  body[data-order-summary-page] .order-summary-table col.order-col-unit{width:23mm!important}
  body[data-order-summary-page] .order-summary-table col.order-col-total{width:29mm!important}
  body[data-order-summary-page] .order-summary-table col.order-col-open{width:0!important}
  body[data-order-summary-page] .order-sheet-image-cell{width:27mm!important;min-width:27mm!important;text-align:center!important}
  body[data-order-summary-page] .order-sheet-images{display:flex!important;justify-content:center!important;align-items:flex-start!important}
  body[data-order-summary-page] .order-sheet-images a.order-sheet-image-link{
    display:block!important;
    width:20mm!important;
    height:26mm!important;
    border-radius:1.5mm!important;
  }
  body[data-order-summary-page] .order-sheet-images>span{display:none!important}
  body[data-order-summary-page] .order-sheet-po,
  body[data-order-summary-page] .order-sheet-vendor,
  body[data-order-summary-page] .order-sheet-origin,
  body[data-order-summary-page] .order-sheet-quantity,
  body[data-order-summary-page] .order-sheet-money,
  body[data-order-summary-page] .order-sheet-total-quantity,
  body[data-order-summary-page] .order-sheet-total-value{
    min-width:0!important;
    white-space:nowrap!important;
    overflow:visible!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
  }
  body[data-order-summary-page] .order-sheet-po,
  body[data-order-summary-page] .order-sheet-vendor,
  body[data-order-summary-page] .order-sheet-origin{font-size:6.35pt!important}
  body[data-order-summary-page] .order-sheet-colors{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:1.2mm!important;
    min-width:0!important;
    max-width:none!important;
  }
  body[data-order-summary-page] .order-sheet-colors span{
    display:block!important;
    width:auto!important;
    padding:1mm 1.3mm!important;
    border-radius:1mm!important;
    white-space:nowrap!important;
    font-size:6.1pt!important;
  }
  body[data-order-summary-page] .order-sheet-ratio{
    gap:.8mm!important;
    min-width:0!important;
    max-width:none!important;
  }
  body[data-order-summary-page] .order-sheet-ratio b,
  body[data-order-summary-page] .order-sheet-ratio em{padding:.8mm 1mm!important}
  body[data-order-summary-page] .order-sheet-money{font-size:6.35pt!important;text-align:right!important}
  body[data-order-summary-page] .order-sheet-quantity{font-size:7pt!important;text-align:right!important}
  body[data-order-summary-page] .order-sheet-total-value .order-value-totals{
    display:block!important;
    white-space:nowrap!important;
  }
  body[data-order-summary-page] .order-sheet-total-value .order-value-totals strong{
    display:inline-flex!important;
    white-space:nowrap!important;
  }
}

/* v079 print-total refinement */
@media print{
  body[data-order-summary-page] .order-summary-table tfoot{display:table-row-group!important}
  body[data-order-summary-page] .order-summary-table col.order-col-total{width:34mm!important}
  body[data-order-summary-page] .order-sheet-total-value .order-value-totals{display:block!important;width:100%!important}
  body[data-order-summary-page] .order-sheet-total-value .order-value-totals strong{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:1.5mm!important;
    width:100%!important;
    max-width:100%!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    overflow:visible!important;
  }
  body[data-order-summary-page] .order-sheet-total-value .order-value-totals b{
    padding:0!important;
    background:transparent!important;
    color:#263c9c!important;
    font-size:5.8pt!important;
  }
  body[data-order-summary-page] .order-sheet-total-value .order-value-totals em{
    padding:0!important;
    font-size:6.2pt!important;
  }
}


/* v084 unified Style + Fabric information */
body[data-style-page] .style-fabric-inline{margin-top:2px;background:linear-gradient(135deg,#f8fbff,#fff)}
body[data-style-page] .style-fabric-inline-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
body[data-style-page] .style-fabric-inline-grid .span-2{grid-column:span 2}
body[data-style-page] .style-fabric-read-grid{margin:0;grid-template-columns:repeat(3,minmax(0,1fr))}
body[data-style-page] .style-inline-approval-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:12px 14px;border:1px solid #d8e6f8;border-radius:14px;background:#f4f9ff;color:#17356b}
body[data-style-page] .style-inline-approval-summary strong{font-size:.9rem}
body[data-style-page] .style-inline-approval-summary span{font-size:.76rem;color:#5c6f8d}
body[data-style-page] .style-inline-fabric-standalone{display:grid;gap:12px}
body[data-style-page] .style-inline-fabric-actions{display:flex;justify-content:flex-end;margin-top:14px}
body[data-style-page] .style-fabric-remarks textarea{min-height:92px}
@media(max-width:1000px){body[data-style-page] .style-fabric-inline-grid,body[data-style-page] .style-fabric-read-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){body[data-style-page] .style-fabric-inline-grid,body[data-style-page] .style-fabric-read-grid{grid-template-columns:1fr}body[data-style-page] .style-fabric-inline-grid .span-2{grid-column:auto}body[data-style-page] .style-inline-approval-summary{align-items:flex-start;flex-direction:column}}


/* =========================================================
   v084 Fabric Information — organized review and approval UI
   ========================================================= */
body[data-style-page] .style-fabric-panel{
  padding:0;
  overflow:hidden;
  border:1px solid #dbe5f3;
  border-radius:24px;
  background:#fff;
  box-shadow:0 18px 48px rgba(20,42,91,.07);
}
body[data-style-page] .style-fabric-panel>legend{
  margin-left:20px;
  padding:0 10px;
  color:#1b2a62;
  background:#fff;
}
body[data-style-page] .style-fabric-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:22px 24px;
  border-bottom:1px solid #e5ebf4;
  background:linear-gradient(135deg,#f8faff 0%,#eef4ff 100%);
}
body[data-style-page] .style-fabric-panel-head>div:first-child{min-width:0}
body[data-style-page] .style-fabric-panel-head h3{margin:3px 0 6px;color:#15245a;font-size:1.18rem;line-height:1.25}
body[data-style-page] .style-fabric-panel-head p{margin:0;max-width:760px;color:#63708b;font-size:.86rem;line-height:1.55}
body[data-style-page] .style-fabric-progress{
  min-width:150px;
  display:grid;
  gap:2px;
  justify-items:center;
  padding:14px 18px;
  border:1px solid #d7e2f4;
  border-radius:18px;
  background:#fff;
  color:#3047aa;
  box-shadow:0 8px 24px rgba(48,71,170,.08);
}
body[data-style-page] .style-fabric-progress strong{font-size:1.35rem;line-height:1}
body[data-style-page] .style-fabric-progress span{font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:#65718d;white-space:nowrap}
body[data-style-page] .style-fabric-progress[data-fabric-approval-status="approved"]{border-color:#b9e2c9;background:#f1fbf5;color:#18733c}
body[data-style-page] .style-fabric-progress[data-fabric-approval-status="revised"]{border-color:#f0c6c6;background:#fff6f6;color:#a33939}
body[data-style-page] .style-fabric-progress[data-fabric-approval-status="submitted"]{border-color:#f1dba4;background:#fffaf0;color:#946b12}
body[data-style-page] .style-fabric-group{padding:22px 24px;border-bottom:1px solid #e8edf5;background:#fff}
body[data-style-page] .style-fabric-group:last-of-type{border-bottom:0}
body[data-style-page] .style-fabric-group>header{display:flex;align-items:flex-start;gap:12px;margin-bottom:16px}
body[data-style-page] .style-fabric-group>header>span{display:grid;place-items:center;width:32px;height:32px;flex:0 0 auto;border-radius:10px;background:#edf2ff;color:#344fc3;font-size:.72rem;font-weight:950}
body[data-style-page] .style-fabric-group>header h4{margin:0 0 3px;color:#182554;font-size:.96rem}
body[data-style-page] .style-fabric-group>header p{margin:0;color:#74809a;font-size:.76rem;line-height:1.45}
body[data-style-page] .style-fabric-details-grid,
body[data-style-page] .style-fabric-colour-grid,
body[data-style-page] .style-fabric-approval-grid,
body[data-style-page] .style-fabric-read-grid{
  display:grid;
  gap:14px;
  min-width:0;
}
body[data-style-page] .style-fabric-details-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
body[data-style-page] .style-fabric-colour-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
body[data-style-page] .style-fabric-approval-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
body[data-style-page] .style-fabric-quality-field{grid-column:span 2}
body[data-style-page] .style-fabric-field,
body[data-style-page] .style-fabric-approval-field{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  align-content:start;
  gap:7px!important;
  min-width:0;
  margin:0!important;
  color:#596681!important;
  font-size:.7rem!important;
  font-weight:900!important;
  text-transform:none!important;
  letter-spacing:.02em!important;
}
body[data-style-page] .style-fabric-field-title{display:block;color:#465474;font-size:.72rem;font-weight:900;line-height:1.3}
body[data-style-page] .style-fabric-field input,
body[data-style-page] .style-fabric-field select,
body[data-style-page] .style-fabric-field textarea,
body[data-style-page] .style-fabric-approval-field select{
  width:100%!important;
  min-width:0!important;
  min-height:48px!important;
  margin:0!important;
  border:1px solid #d9e2ef!important;
  border-radius:13px!important;
  padding:11px 13px!important;
  background:#fbfcff!important;
  color:#15213d!important;
  font:inherit!important;
  font-size:.88rem!important;
  font-weight:650!important;
  line-height:1.35!important;
  text-transform:none!important;
  letter-spacing:0!important;
  box-shadow:none!important;
}
body[data-style-page] .style-fabric-field input:focus,
body[data-style-page] .style-fabric-field select:focus,
body[data-style-page] .style-fabric-field textarea:focus,
body[data-style-page] .style-fabric-approval-field select:focus{border-color:#5a6fd0!important;box-shadow:0 0 0 4px rgba(76,99,201,.11)!important;outline:0}
body[data-style-page] .style-fabric-approval-field{
  position:relative;
  padding:15px;
  border:1px solid #dde5f1;
  border-radius:16px;
  background:#f9fbff;
  transition:border-color .2s,background .2s,box-shadow .2s;
}
body[data-style-page] .style-fabric-approval-field:before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:4px;border-radius:999px;background:#a5afc5}
body[data-style-page] .style-fabric-approval-field small{display:block;color:#78839b;font-size:.68rem;font-weight:650;line-height:1.4;letter-spacing:0;text-transform:none}
body[data-style-page] [data-fabric-approval-status="approved"].style-fabric-approval-field{border-color:#b8e1c8;background:#f3fbf6;box-shadow:0 8px 20px rgba(28,126,70,.05)}
body[data-style-page] [data-fabric-approval-status="approved"].style-fabric-approval-field:before{background:#2a9a57}
body[data-style-page] [data-fabric-approval-status="submitted"].style-fabric-approval-field{border-color:#efd89e;background:#fffaf0}
body[data-style-page] [data-fabric-approval-status="submitted"].style-fabric-approval-field:before{background:#d49b22}
body[data-style-page] [data-fabric-approval-status="revised"].style-fabric-approval-field{border-color:#efc1c1;background:#fff6f6}
body[data-style-page] [data-fabric-approval-status="revised"].style-fabric-approval-field:before{background:#c75050}
body[data-style-page] .style-fabric-remarks textarea{min-height:118px!important;resize:vertical}
body[data-style-page] .style-fabric-remarks-read{padding:15px 16px;border:1px solid #dde5f1;border-radius:15px;background:#f9fbff;color:#263451;font-size:.86rem;line-height:1.6;white-space:pre-wrap}
body[data-style-page] .style-inline-fabric-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:16px;
  padding:18px 24px;
  border-top:1px solid #e5ebf4;
  background:#f8faff;
  margin:0;
}
body[data-style-page] .style-inline-fabric-actions>span{margin-right:auto;color:#6d7891;font-size:.74rem;font-weight:750}
body[data-style-page] .style-inline-fabric-actions .btn{min-width:220px;justify-content:center}
body[data-style-page] .style-fabric-panel>.style-section-save-note{margin:16px 24px 20px}
body[data-style-page] .style-fabric-read-item{display:grid;gap:5px;min-width:0;padding:14px;border:1px solid #dfe6f1;border-radius:15px;background:#fafcff}
body[data-style-page] .style-fabric-read-item b{color:#6e7991;font-size:.66rem;text-transform:uppercase;letter-spacing:.07em}
body[data-style-page] .style-fabric-read-item strong{color:#172445;font-size:.86rem;line-height:1.45;overflow-wrap:anywhere}
body[data-style-page] .style-fabric-read-item small{color:#7b859b;font-size:.68rem;line-height:1.4}
body[data-style-page] .style-fabric-read-item.style-fabric-wide{grid-column:span 2}
body[data-style-page] .style-fabric-read-approval{border-left:4px solid #a5afc5}
body[data-style-page] .style-fabric-read-approval[data-fabric-approval-status="approved"]{border-color:#b8e1c8;border-left-color:#2a9a57;background:#f3fbf6}
body[data-style-page] .style-fabric-read-approval[data-fabric-approval-status="submitted"]{border-color:#efd89e;border-left-color:#d49b22;background:#fffaf0}
body[data-style-page] .style-fabric-read-approval[data-fabric-approval-status="revised"]{border-color:#efc1c1;border-left-color:#c75050;background:#fff6f6}
@media(max-width:1180px){
  body[data-style-page] .style-fabric-details-grid,
  body[data-style-page] .style-fabric-colour-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-style-page] .style-fabric-approval-grid{grid-template-columns:1fr}
}
@media(max-width:700px){
  body[data-style-page] .style-fabric-panel-head{align-items:flex-start;flex-direction:column;padding:18px}
  body[data-style-page] .style-fabric-progress{width:100%;min-width:0;justify-items:start}
  body[data-style-page] .style-fabric-group{padding:18px}
  body[data-style-page] .style-fabric-details-grid,
  body[data-style-page] .style-fabric-colour-grid,
  body[data-style-page] .style-fabric-read-grid{grid-template-columns:1fr}
  body[data-style-page] .style-fabric-quality-field,
  body[data-style-page] .style-fabric-read-item.style-fabric-wide{grid-column:auto}
  body[data-style-page] .style-inline-fabric-actions{align-items:stretch;flex-direction:column;padding:16px 18px}
  body[data-style-page] .style-inline-fabric-actions>span{margin-right:0}
  body[data-style-page] .style-inline-fabric-actions .btn{width:100%;min-width:0}
}


/* v088 save confirmation and immediate email-delivery feedback */
.style-save-success{display:flex;gap:14px;align-items:flex-start;background:#eefdf4;border:1px solid #bde9cc;border-radius:18px;padding:16px 18px;margin:0 42px 20px 0}.style-save-success>span{flex:0 0 36px;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#168244;color:#fff;font-size:22px;font-weight:950}.style-save-success strong{display:block;color:#0f6633;font-size:1.08rem}.style-save-success p{margin:4px 0 0!important;color:#39704f!important;line-height:1.45!important}.style-save-toast{position:fixed;right:22px;top:22px;z-index:12000;width:min(460px,calc(100vw - 28px));display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:start;background:#fff;border:1px solid #bde9cc;border-radius:20px;padding:16px;box-shadow:0 24px 70px rgba(9,38,70,.24);transform:translateY(-18px);opacity:0;transition:transform .2s ease,opacity .2s ease}.style-save-toast.is-visible{transform:translateY(0);opacity:1}.style-save-toast[data-type="info"]{border-color:#c8d8f5}.style-save-toast-icon{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#168244;color:#fff;font-size:22px;font-weight:950}.style-save-toast[data-type="info"] .style-save-toast-icon{background:#2357a6}.style-save-toast strong{display:block;color:#0f6633;font-size:1.02rem}.style-save-toast[data-type="info"] strong{color:#173d78}.style-save-toast p{margin:4px 0 0;color:#4e6575;line-height:1.45}.style-save-toast button{border:0;background:transparent;color:#69778a;font-size:24px;line-height:1;cursor:pointer;padding:0 2px}.style-save-toast button:hover{color:#11134a}@media(max-width:600px){.style-save-toast{right:14px;top:max(14px,env(safe-area-inset-top));}.style-save-success{margin-right:36px;padding:14px}.style-save-success>span{width:32px;height:32px;flex-basis:32px}}

/* v088 canonical Buyer account identity */
.style-account-sync-note{grid-column:1/-1;margin:0;padding:10px 12px;border:1px solid #d8e5f7;border-radius:12px;background:#f6f9ff;color:#52617c;font-size:.86rem;line-height:1.45}.style-summary-edit-grid input[readonly]{background:#f4f7fb;color:#53617a;cursor:not-allowed}

/* =============================================================
   v091 Inspection Report workspace + connected record navigation
   ============================================================= */
.qc-workspace-page{min-width:0}
.qc-selected-style{grid-template-columns:128px minmax(0,1fr);padding:22px 24px;border:1px solid #dfe5f2;background:linear-gradient(135deg,#fff 0%,#f8faff 100%);box-shadow:0 18px 50px rgba(23,29,76,.07)}
.qc-selected-style-image{height:112px;border-radius:18px;background:linear-gradient(145deg,#f0f3fb,#fff);box-shadow:inset 0 0 0 1px rgba(34,49,120,.06)}
.qc-selected-style-copy{min-width:0}
.qc-selected-style-copy h2{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:6px 0 7px;color:#101443;font-size:clamp(1.55rem,2vw,2.15rem)}
.qc-selected-style-copy h2 small{font-size:.54em;font-weight:750;color:#69738e}
.qc-selected-style-copy p{margin:0;color:#59647e;font-weight:700}
.qc-style-status-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:13px}
.qc-style-status-row span,.qc-style-status-row strong{display:inline-flex;align-items:center;min-height:30px;border-radius:999px;padding:6px 10px;font-size:.7rem;font-weight:900;letter-spacing:.04em}
.qc-style-status-row span{border:1px solid #dfe4f0;background:#fff;color:#4c5876}
.qc-style-status-row strong{margin-left:auto;background:#eaf6ef;color:#17623b;border:1px solid #cbe8d7}

.qc-connected-workspace{margin-top:18px;border:1px solid #dfe5f2;border-radius:24px;background:#fff;padding:20px;box-shadow:0 15px 40px rgba(23,29,76,.055)}
.qc-connected-workspace-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin-bottom:14px}
.qc-connected-workspace-head h3{margin:5px 0 0;color:#111544;font-size:1.18rem}
.qc-connected-workspace-head>small{max-width:620px;color:#6e7891;line-height:1.55;font-weight:700;text-align:right}
.qc-workspace-link-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.qc-workspace-link{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:11px;align-items:center;min-width:0;border:1px solid #dfe5f2;border-radius:17px;padding:12px 13px;background:#fbfcff;color:#171b4e;text-decoration:none;transition:transform .18s,border-color .18s,box-shadow .18s,background .18s}
.qc-workspace-link:hover{transform:translateY(-2px);border-color:#4056c2;background:#fff;box-shadow:0 12px 25px rgba(35,47,115,.1)}
.qc-workspace-link>span{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#e9edff;color:#3047b7;font-size:.73rem;font-weight:950;letter-spacing:.08em}
.qc-workspace-link>div{min-width:0}
.qc-workspace-link strong,.qc-workspace-link small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qc-workspace-link strong{font-size:.84rem;color:#171b4e}
.qc-workspace-link small{margin-top:3px;color:#778199;font-size:.69rem;font-weight:700}
.qc-workspace-link>b{color:#334bc0;font-size:.7rem;font-weight:950;text-transform:uppercase;letter-spacing:.08em}
.qc-workspace-link.is-missing>span{background:#f5f6fa;color:#8b94a9}
.qc-workspace-link.is-missing small{color:#979fb1}

.qc-create-report{margin-top:18px;padding:0;overflow:hidden;border:1px solid #dce2ef;background:#fff;box-shadow:0 20px 55px rgba(20,27,75,.08)}
.qc-create-report-head{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:17px;align-items:center;padding:22px 24px;background:linear-gradient(115deg,#111648 0%,#253b9e 58%,#4058c3 100%);color:#fff}
.qc-report-mark{display:grid;place-items:center;width:58px;height:58px;border:1px solid rgba(255,255,255,.26);border-radius:18px;background:rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.14);font-weight:950;letter-spacing:.12em}
.qc-create-report-head .style-label{color:#f1cf7d}
.qc-create-report-head h3{margin:5px 0 4px;color:#fff;font-size:1.45rem}
.qc-create-report-head p{margin:0;max-width:820px;color:#dfe5ff;line-height:1.5;font-weight:650}
.qc-report-audience{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.qc-report-audience span{border:1px solid rgba(255,255,255,.2);border-radius:999px;background:rgba(255,255,255,.1);padding:6px 9px;color:#fff;font-size:.64rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}

.qc-inspection-form{display:grid;gap:18px;padding:24px}
.qc-inspection-grid{display:grid;grid-template-columns:minmax(220px,1.35fr) minmax(160px,.75fr) minmax(180px,.85fr);gap:14px}
.qc-field{display:flex;flex-direction:column;gap:7px;min-width:0;color:#252a59;font-weight:900}
.qc-field>span{display:flex;align-items:center;gap:7px;font-size:.76rem;text-transform:uppercase;letter-spacing:.085em;color:#4d5874}
.qc-field>span i{font-style:normal;color:#9a7b3c;font-size:.64rem}
.qc-field>small{margin-top:-2px;color:#7a849c;font-size:.72rem;line-height:1.45;font-weight:700;text-transform:none;letter-spacing:0}
.qc-field input,.qc-field select,.qc-field textarea{display:block;width:100%;min-width:0;border:1px solid #d9dfec;border-radius:14px;background:#fbfcff;color:#151944;padding:13px 14px;font:inherit;font-weight:700;outline:none;box-shadow:0 1px 0 rgba(18,25,70,.02);transition:border-color .18s,box-shadow .18s,background .18s}
.qc-field select{min-height:50px;appearance:auto}
.qc-field input{min-height:50px}
.qc-field textarea{min-height:178px;resize:vertical;line-height:1.58;font-weight:600}
.qc-field input:focus,.qc-field select:focus,.qc-field textarea:focus{border-color:#4057c2;background:#fff;box-shadow:0 0 0 4px rgba(64,87,194,.1)}
.qc-field-wide{grid-column:1/-1}
.qc-support-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:14px;align-items:stretch}
.qc-upload-field{position:relative;display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:13px;align-items:center;min-height:94px;border:1.5px dashed #b9c4df;border-radius:17px;background:#f8faff;padding:15px 16px;cursor:pointer;color:#1b2051;transition:border-color .18s,background .18s,box-shadow .18s}
.qc-upload-field:hover{border-color:#4057c2;background:#f3f6ff;box-shadow:0 10px 24px rgba(42,58,137,.08)}
.qc-upload-field input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.qc-upload-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#e7ecff;color:#3249b7;font-size:1.65rem;font-weight:400}
.qc-upload-field strong,.qc-upload-field small{display:block}
.qc-upload-field strong{font-size:.91rem}
.qc-upload-field small{margin-top:4px;color:#77829b;font-size:.71rem;line-height:1.4}
.qc-upload-field em{max-width:180px;border-radius:999px;background:#fff;padding:7px 10px;color:#58627d;font-style:normal;font-size:.67rem;font-weight:900;text-align:center;box-shadow:inset 0 0 0 1px #e1e6f1}
.qc-publish-row{display:flex;align-items:center;justify-content:space-between;gap:22px;border-top:1px solid #e6eaf2;padding-top:18px}
.qc-publish-row>div{display:grid;gap:3px}
.qc-publish-row strong{color:#171b4e;font-size:.91rem}
.qc-publish-row span{color:#768097;font-size:.75rem;font-weight:700}
.qc-publish-button{min-width:285px;min-height:52px;justify-content:center;border-radius:14px;box-shadow:0 12px 25px rgba(51,75,192,.2)}

.qc-report-history{margin-top:20px}
.qc-report-history-head{padding:4px 2px 0}
.qc-report-history-head h3{margin:5px 0 0;color:#151948;font-size:1.15rem}
.qc-report-history-head>strong{display:inline-flex;align-items:center;border-radius:999px;background:#e9edff;color:#3047b7;padding:8px 12px;font-size:.75rem}
.qc-report-editor form>label{display:flex;flex-direction:column;gap:7px;color:#4b5673;font-size:.76rem;font-weight:900;text-transform:uppercase;letter-spacing:.075em}
.qc-report-editor form input,.qc-report-editor form select,.qc-report-editor form textarea{width:100%;border:1px solid #d9dfec;border-radius:13px;background:#fbfcff;padding:12px 13px;color:#171b4e;font:inherit;text-transform:none;letter-spacing:0;outline:none}
.qc-report-editor form textarea{min-height:135px;resize:vertical;line-height:1.55;font-weight:600}
.qc-report-editor .qc-form-top{grid-template-columns:1.4fr .8fr .8fr}

.order-linked-menu{position:relative;display:inline-block;text-align:left}
.order-linked-menu summary{list-style:none;display:inline-flex;align-items:center;justify-content:center;min-width:68px;border:1px solid #d7deed;border-radius:10px;background:#fff;padding:8px 10px;color:#3047b7;font-size:.69rem;font-weight:950;cursor:pointer}
.order-linked-menu summary::-webkit-details-marker{display:none}
.order-linked-menu[open] summary{border-color:#4057c2;box-shadow:0 0 0 3px rgba(64,87,194,.08)}
.order-linked-menu>div{position:absolute;right:0;z-index:30;display:grid;gap:5px;width:190px;margin-top:7px;border:1px solid #dce2ee;border-radius:14px;background:#fff;padding:8px;box-shadow:0 18px 42px rgba(19,27,77,.18)}
.order-linked-menu a{display:flex!important;align-items:center!important;justify-content:space-between!important;border-radius:9px!important;padding:8px 9px!important;background:#f8faff!important;color:#252b62!important;font-size:.72rem!important;font-weight:850!important;text-decoration:none!important}
.order-linked-menu a:hover{background:#e9edff!important;color:#243ca9!important}
.order-linked-badges{display:flex;gap:5px;flex-wrap:wrap;margin-top:5px}
.order-linked-badges span{display:inline-flex;border-radius:999px;padding:3px 6px;background:#eef2ff;color:#3a4fae;font-size:.58rem;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.order-sheet-po a{color:#243eae;text-decoration:none}
.order-sheet-po a:hover{text-decoration:underline}
.order-summary-connection-note{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#65708a;font-weight:800;font-size:.73rem}
.order-summary-connection-note strong{color:#1f2c74}

@media(max-width:1180px){
  .qc-workspace-link-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .qc-create-report-head{grid-template-columns:58px minmax(0,1fr)}
  .qc-report-audience{grid-column:1/-1;justify-content:flex-start;padding-left:75px}
}
@media(max-width:820px){
  .qc-selected-style{grid-template-columns:92px minmax(0,1fr);padding:18px}
  .qc-selected-style-image{width:92px;height:92px}
  .qc-style-status-row strong{margin-left:0}
  .qc-connected-workspace-head{align-items:flex-start;flex-direction:column}
  .qc-connected-workspace-head>small{text-align:left}
  .qc-inspection-grid,.qc-support-grid{grid-template-columns:1fr}
  .qc-publish-row{align-items:stretch;flex-direction:column}
  .qc-publish-button{width:100%;min-width:0}
}
@media(max-width:600px){
  .qc-selected-style{grid-template-columns:1fr}
  .qc-selected-style-image{width:100%;height:150px}
  .qc-workspace-link-grid{grid-template-columns:1fr}
  .qc-create-report-head{grid-template-columns:48px minmax(0,1fr);padding:18px}
  .qc-report-mark{width:48px;height:48px;border-radius:15px}
  .qc-report-audience{padding-left:0}
  .qc-inspection-form{padding:18px}
  .qc-upload-field{grid-template-columns:44px minmax(0,1fr)}
  .qc-upload-field em{grid-column:1/-1;max-width:none}
  .qc-report-editor .qc-form-top{grid-template-columns:1fr}
  .order-linked-menu>div{position:fixed;right:16px;left:16px;bottom:16px;width:auto}
}
@media print{
  .order-linked-menu{display:none!important}
}

/* v091 exact vendor assignment controls */
.file-vendor-target{grid-column:1/-1;display:grid;gap:5px;padding:8px 9px;border:1px solid #d7e2f2;border-radius:11px;background:#fff}.file-vendor-target>span{font-size:.7rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:#53617f}.file-vendor-target select{width:100%;min-width:0}.file-vendor-target small{font-size:.68rem;line-height:1.35;color:#73809a}.file-access-admin .file-vendor-target{margin-top:2px}.file-upload-vendor-target{grid-column:1/-1;display:grid;gap:6px}.file-upload-vendor-target[hidden]{display:none!important}

/* v093 Delivery workspace */
.delivery-page .portal-content{min-width:0}.delivery-commandbar{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;margin-bottom:20px}.delivery-commandbar h2{margin:5px 0 7px}.delivery-commandbar p{margin:0;max-width:780px;color:var(--muted)}.delivery-metrics{grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:18px}.delivery-workspace-grid{display:grid;grid-template-columns:minmax(290px,360px) minmax(0,1fr);gap:20px;align-items:start}.delivery-browser,.delivery-detail-shell,.delivery-files-shell{padding:20px}.delivery-browser{position:sticky;top:108px;max-height:calc(100vh - 132px);display:flex;flex-direction:column}.delivery-filter-stack{display:grid;gap:10px;margin:15px 0}.delivery-filter-stack input,.delivery-filter-stack select{width:100%}.delivery-filter-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.delivery-style-list{display:grid;gap:10px;overflow:auto;padding-right:5px}.delivery-style-card{width:100%;text-align:left;border:1px solid #dfe3ee;border-radius:16px;background:#fff;padding:15px;display:grid;gap:6px;cursor:pointer;transition:.18s ease}.delivery-style-card:hover,.delivery-style-card.active{border-color:#1d2d76;box-shadow:0 10px 24px rgba(15,25,71,.1);transform:translateY(-1px)}.delivery-style-card.active{background:#f6f7ff}.delivery-style-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.delivery-style-card strong{font-size:.98rem;color:#14172d}.delivery-style-card small,.delivery-card-route,.delivery-card-meta{font-size:.78rem;color:#697088}.delivery-card-route{font-weight:800;color:#31385d}.delivery-status{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:7px 10px;font-size:.68rem;font-style:normal;font-weight:900;letter-spacing:.04em;text-transform:uppercase;background:#eef1f7;color:#414965;white-space:nowrap}.delivery-status.status-delivered{background:#e7f8ee;color:#167043}.delivery-status.status-delayed,.delivery-status.status-cancelled{background:#fff0ef;color:#a22a23}.delivery-status.status-in_transit,.delivery-status.status-shipped,.delivery-status.status-customs_clearance{background:#e9f2ff;color:#1556a2}.delivery-status.status-ready_to_ship,.delivery-status.status-booked{background:#fff6df;color:#8a5b00}.delivery-detail-column{display:grid;gap:20px;min-width:0}.delivery-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:18px;border-bottom:1px solid #e4e7ef;margin-bottom:20px}.delivery-detail-head h2{margin:4px 0 6px}.delivery-detail-head p{margin:0;color:var(--muted)}.delivery-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.delivery-summary-grid span{display:grid;gap:5px;padding:13px;border:1px solid #e3e6ef;border-radius:13px;background:#fafbfe}.delivery-summary-grid b{font-size:.69rem;text-transform:uppercase;letter-spacing:.06em;color:#697088}.delivery-notes{margin-top:15px;padding:16px;border-radius:14px;background:#f6f7fb}.delivery-notes p{margin:7px 0 0;line-height:1.6}.delivery-edit-form{display:grid;gap:18px}.delivery-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.delivery-form-grid label{display:grid;gap:7px;font-size:.78rem;font-weight:850;color:#303651}.delivery-form-grid .span-2{grid-column:span 2}.delivery-form-grid input,.delivery-form-grid select,.delivery-form-grid textarea{width:100%}.delivery-form-grid textarea{min-height:105px;resize:vertical}.delivery-form-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}.delivery-check{display:inline-flex!important;align-items:center;gap:7px!important;font-size:.78rem!important}.delivery-check input{width:auto!important}.delivery-files-shell h3{margin:4px 0}.delivery-upload-panel{border:1px solid #dfe3ed;border-radius:14px;margin:16px 0;background:#fafbfe}.delivery-upload-panel>summary{cursor:pointer;padding:15px 17px;font-weight:900}.delivery-upload-form{padding:0 17px 17px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end}.delivery-upload-form label{display:grid;gap:7px;font-size:.76rem;font-weight:850}.delivery-upload-form input,.delivery-upload-form select{width:100%}.delivery-upload-form .delivery-file-input{grid-column:span 2}.delivery-file-list{display:grid;gap:11px}.delivery-file-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:center;border:1px solid #e1e4ec;border-radius:15px;padding:14px;background:#fff}.delivery-file-icon{width:46px;height:46px;border-radius:13px;display:grid;place-items:center;background:#11134a;color:#fff;font-size:.7rem;font-weight:950}.delivery-file-copy{display:grid;gap:3px;min-width:0}.delivery-file-copy span{font-size:.67rem;font-weight:950;letter-spacing:.06em;text-transform:uppercase;color:#7f6226}.delivery-file-copy strong,.delivery-file-copy small,.delivery-file-copy p{overflow-wrap:anywhere}.delivery-file-copy small{color:#73798d}.delivery-file-copy p{margin:4px 0 0;color:#51586d;font-size:.82rem}.delivery-file-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.delivery-file-toggle{display:inline-flex;align-items:center;gap:5px;font-size:.7rem;font-weight:800}.delivery-file-toggle input{width:auto}.delivery-role-note{margin-bottom:18px}.delivery-role-note strong{display:block;margin-bottom:4px}
@media(max-width:1180px){.delivery-metrics{grid-template-columns:repeat(3,1fr)}.delivery-workspace-grid{grid-template-columns:310px minmax(0,1fr)}.delivery-form-grid,.delivery-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.delivery-upload-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.delivery-commandbar{display:grid}.delivery-metrics{grid-template-columns:repeat(2,1fr)}.delivery-workspace-grid{grid-template-columns:1fr}.delivery-browser{position:static;max-height:none}.delivery-style-list{max-height:410px}.delivery-file-card{grid-template-columns:auto minmax(0,1fr)}.delivery-file-actions{grid-column:1/-1;justify-content:flex-start}.delivery-upload-form{grid-template-columns:1fr}.delivery-upload-form .delivery-file-input{grid-column:auto}}
@media(max-width:620px){.delivery-metrics,.delivery-form-grid,.delivery-summary-grid,.delivery-filter-row{grid-template-columns:1fr}.delivery-form-grid .span-2{grid-column:auto}.delivery-detail-head{display:grid}.delivery-file-card{grid-template-columns:1fr}.delivery-file-icon{width:40px;height:40px}.delivery-file-actions{grid-column:auto}.delivery-file-actions .btn{flex:1 1 auto}.delivery-commandbar .btn{width:100%}}

/* v093 paired file actions and recipient Purchase Order summary */
.po-recipient-metrics{grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 18px}
.invoice-list-actions,.invoice-buyer-actions,.invoice-editor-actions,.accessory-media-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.accessory-media-actions{justify-content:center;padding-top:9px}
@media(max-width:900px){.po-recipient-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.po-recipient-metrics{grid-template-columns:1fr}.invoice-list-actions .btn,.invoice-buyer-actions .btn{flex:1 1 145px}}
