*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,"Noto Sans SC",sans-serif;background:linear-gradient(135deg,#f8fafc,#fff7ed);color:#0f172a}a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}.app{display:grid;grid-template-columns:260px 1fr;min-height:100vh}aside{background:#0f172a;color:#fff;padding:22px;position:sticky;top:0;height:100vh}.brand{display:flex;gap:12px;align-items:center;margin-bottom:28px}.logo{width:46px;height:46px;border-radius:16px;background:linear-gradient(135deg,#fbbf24,#fff7ed);display:grid;place-items:center;color:#0f172a;font-weight:900;font-size:22px}.brand h1{font-size:17px;margin:0;line-height:1.2}.brand p{font-size:12px;margin:3px 0 0;color:#cbd5e1}nav{display:grid;gap:8px}.navbtn{border:0;background:transparent;color:#cbd5e1;padding:13px 14px;border-radius:16px;text-align:left;cursor:pointer;font-weight:800;display:block}.navbtn.active,.navbtn:hover{background:#fff;color:#0f172a}.side-note{position:absolute;left:22px;right:22px;bottom:22px;background:rgba(255,255,255,.08);padding:16px;border-radius:18px;color:#cbd5e1;font-size:13px;line-height:1.6}.side-note a{color:#fde68a}main{padding:24px;max-width:1450px;width:100%;margin:auto}.topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}.topbar h2{font-size:28px;margin:0}.topbar p{margin:4px 0 0;color:#64748b}.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.btn{border:0;background:#0f172a;color:#fff;padding:11px 15px;border-radius:15px;font-weight:900;cursor:pointer;box-shadow:0 10px 20px rgba(15,23,42,.12);display:inline-block}.btn.secondary{background:#fff;color:#0f172a;border:1px solid #e2e8f0;box-shadow:none}.btn.gold{background:#f59e0b;color:#111827}.btn.full{width:100%;margin-top:14px}.grid{display:grid;gap:18px}.stats{grid-template-columns:repeat(4,1fr)}.card{background:rgba(255,255,255,.94);border:1px solid #e2e8f0;border-radius:24px;box-shadow:0 20px 45px rgba(15,23,42,.08);margin-bottom:18px}.card.pad{padding:20px}.stat{display:flex;align-items:center;gap:14px}.ico{width:48px;height:48px;border-radius:17px;display:grid;place-items:center;background:#fef3c7;font-size:23px}.stat small,.muted{color:#64748b}.stat strong{display:block;font-size:25px;margin-top:3px}.layout{grid-template-columns:1.1fr .9fr;margin-top:18px}.hero{background:linear-gradient(135deg,#0f172a,#1e293b);color:#fff;border-radius:30px;padding:28px;min-height:260px;display:flex;flex-direction:column;justify-content:space-between}.hero h3{font-size:34px;line-height:1.12;margin:14px 0}.hero p{color:#cbd5e1;line-height:1.7;margin:0;max-width:720px}.pill,.badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:7px 11px;background:#f1f5f9;color:#334155;font-size:12px;font-weight:900}.hero .pill{background:rgba(251,191,36,.16);color:#fde68a}.badge.danger{background:#fee2e2;color:#991b1b}.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}.input,textarea,select{border:1px solid #e2e8f0;background:#fff;border-radius:15px;padding:12px 14px;outline:none;width:100%}.input:focus,textarea:focus,select:focus{box-shadow:0 0 0 4px rgba(15,23,42,.08)}label{font-weight:800;font-size:14px;color:#334155}label input,label textarea,label select{margin-top:7px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:720px}th,td{text-align:left;padding:14px;border-bottom:1px solid #e2e8f0;vertical-align:top}th{font-size:12px;text-transform:uppercase;color:#64748b;background:#f8fafc}tr:last-child td{border-bottom:0}.status{font-size:12px;font-weight:900;padding:6px 10px;border-radius:999px;background:#e0f2fe;color:#075985;white-space:nowrap}.products{grid-template-columns:repeat(3,1fr)}.product{padding:16px}.product .emoji{font-size:40px;width:62px;height:62px;border-radius:20px;background:#f8fafc;display:grid;place-items:center}.product h4{margin:12px 0 6px;font-size:16px}.product p{margin:0;color:#64748b;font-size:14px;line-height:1.5}.product .row{display:flex;justify-content:space-between;align-items:center;margin-top:14px}.price{font-weight:900;font-size:20px}.formgrid{grid-template-columns:repeat(2,1fr)}.list-row{display:flex;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid #e2e8f0}.list-row:last-child{border-bottom:0}.alert{background:#fee2e2;color:#991b1b;border-radius:16px;padding:13px;margin-bottom:14px;font-weight:800}.alert.success{background:#dcfce7;color:#166534}.login-body{min-height:100vh;display:grid;place-items:center;padding:18px;background:linear-gradient(135deg,#0f172a,#334155)}.login-card{width:min(420px,100%);background:#fff;padding:28px;border-radius:30px;box-shadow:0 25px 70px rgba(0,0,0,.25)}.login-card h1{margin:14px 0 4px}.login-card p{color:#64748b;margin-top:0}.login-card label{display:block;margin-top:12px}.quote-doc{background:#fff}.doc-head{display:flex;justify-content:space-between;gap:24px}.doc-head h1{margin-top:0}.doc-head p{color:#64748b;line-height:1.6}.doc-title{text-align:right}.total-box{margin-left:auto;margin-top:18px;max-width:320px}.total-box div{display:flex;justify-content:space-between;padding:8px 0}.total-box .grand{font-size:22px;border-top:2px solid #0f172a}.sign-row{display:flex;justify-content:space-between;gap:30px;margin-top:45px}.mobile-top{display:none}@media print{aside,.topbar,.no-print,.mobile-top{display:none!important}.app{display:block}main{padding:0}.card{box-shadow:none;border:0}.quote-doc{border:0}.doc-head{display:flex}body{background:#fff}}@media(max-width:1050px){.app{grid-template-columns:1fr}aside{display:none}.mobile-top{display:flex;position:sticky;top:0;z-index:50;background:#0f172a;color:#fff;padding:14px;align-items:center;justify-content:space-between}.mobile-top a{color:#fde68a}main{padding:16px}.stats{grid-template-columns:repeat(2,1fr)}.layout{grid-template-columns:1fr}.products{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.topbar{display:block}.actions{margin-top:12px}.stats,.products,.formgrid{grid-template-columns:1fr}.hero h3{font-size:27px}.doc-head,.sign-row{display:block}.doc-title{text-align:left}table{font-size:13px}}

.thumb{width:100px;height:80px;object-fit:cover;border-radius:14px;border:1px solid #e2e8f0}
.product-img{width:100%;height:150px;object-fit:cover;border-radius:18px;background:#f8fafc;border:1px solid #e2e8f0}
.mini-upload{margin-top:8px}.mini-upload input{font-size:12px;max-width:160px}
@media(max-width:1050px){.stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.stats{grid-template-columns:1fr}.mini-upload input{max-width:100%}}

.kanban{display:grid;grid-template-columns:repeat(4,minmax(260px,1fr));gap:16px;align-items:start;overflow:auto;padding-bottom:16px}
.kanban-col{background:#f8fafc;border:1px solid #e2e8f0;border-radius:24px;padding:14px;min-height:260px}
.kanban-col h3{font-size:15px;margin:0 0 12px;display:flex;justify-content:space-between;align-items:center}
.kanban-col h3 span{background:#0f172a;color:#fff;border-radius:999px;padding:4px 9px;font-size:12px}
.kanban-card{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:14px;margin-bottom:12px;box-shadow:0 10px 25px rgba(15,23,42,.06)}
.kanban-card p{color:#64748b;line-height:1.5;margin:8px 0}
.mini-meta{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#334155;margin-bottom:10px}
.doc-logo{max-width:130px;max-height:80px;object-fit:contain;margin-bottom:10px}
.company-block h1{margin-bottom:4px}
.quote-doc{max-width:980px;margin:auto;padding:34px!important}
.quote-doc table{min-width:0}
.quote-doc th{background:#0f172a;color:#fff}
.quote-doc hr{border:0;border-top:1px solid #cbd5e1;margin:22px 0}
@media(max-width:1200px){.kanban{grid-template-columns:repeat(2,minmax(260px,1fr))}}
@media(max-width:650px){.kanban{grid-template-columns:1fr}.quote-doc{padding:18px!important}}
@media print{.quote-doc{max-width:none;padding:0!important}.doc-logo{max-width:120px}.quote-doc th{background:#0f172a!important;color:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}}


/* V3.1 Professional top-right account card */
.user-top-card{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:14px;
  margin-bottom:18px;
  padding:12px;
  background:rgba(255,255,255,.88);
  border:1px solid #e2e8f0;
  border-radius:22px;
  box-shadow:0 16px 35px rgba(15,23,42,.07);
  backdrop-filter:blur(14px);
}
.user-top-left{
  display:flex;
  align-items:center;
  gap:11px;
  padding-right:14px;
  border-right:1px solid #e2e8f0;
}
.user-avatar{
  width:42px;
  height:42px;
  border-radius:15px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#0f172a,#334155);
  color:#fbbf24;
  font-weight:950;
  letter-spacing:.5px;
}
.user-name{
  font-weight:950;
  color:#0f172a;
  line-height:1.2;
}
.user-role{
  margin-top:3px;
  color:#64748b;
  font-size:12px;
  font-weight:800;
}
.user-company{
  min-width:260px;
  padding:0 14px;
}
.user-company span{
  display:block;
  color:#94a3b8;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:3px;
}
.user-company strong{
  display:block;
  color:#0f172a;
  font-size:14px;
  line-height:1.25;
}
.logout-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 17px;
  border-radius:15px;
  background:#0f172a;
  color:#fff;
  font-weight:950;
  box-shadow:0 10px 20px rgba(15,23,42,.14);
}
.logout-chip:hover{
  background:#1e293b;
}
@media(max-width:1050px){
  .user-top-card{
    justify-content:space-between;
    align-items:flex-start;
    flex-wrap:wrap;
    margin-top:4px;
  }
  .user-top-left{
    border-right:0;
    padding-right:0;
  }
  .user-company{
    order:3;
    width:100%;
    min-width:0;
    padding:10px 0 0;
    border-top:1px solid #e2e8f0;
  }
}
@media(max-width:650px){
  .user-top-card{
    border-radius:18px;
    padding:10px;
  }
  .user-avatar{
    width:38px;
    height:38px;
    border-radius:13px;
  }
  .logout-chip{
    min-height:38px;
    padding:0 13px;
  }
  .user-name{
    font-size:14px;
  }
}


/* V3.2 remove side note: account info only shows in top-right card */
.side-note{display:none!important}


/* V3.3 horizontal top account bar */
.user-top-card-horizontal{
  flex-wrap:nowrap!important;
  justify-content:flex-end!important;
  align-items:center!important;
  gap:12px!important;
  overflow-x:auto;
}
.user-top-card-horizontal .user-inline-item{
  display:flex;
  align-items:center;
  gap:7px;
  white-space:nowrap;
  padding:0 2px;
}
.user-top-card-horizontal .user-inline-item span{
  color:#94a3b8;
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.user-top-card-horizontal .user-inline-item strong{
  color:#0f172a;
  font-size:14px;
  font-weight:950;
}
.user-top-card-horizontal .user-inline-company{
  min-width:0;
  max-width:420px;
}
.user-top-card-horizontal .user-inline-company strong{
  overflow:hidden;
  text-overflow:ellipsis;
}
.user-inline-separator{
  width:1px;
  height:28px;
  background:#e2e8f0;
  flex:0 0 auto;
}
.user-top-card-horizontal .logout-chip{
  flex:0 0 auto;
}
@media(max-width:1050px){
  .user-top-card-horizontal{
    justify-content:flex-start!important;
    flex-wrap:nowrap!important;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
  .user-top-card-horizontal .user-inline-company{
    max-width:none;
  }
}
@media(max-width:650px){
  .user-top-card-horizontal{
    padding:9px!important;
    gap:9px!important;
  }
  .user-top-card-horizontal .user-inline-item span{
    font-size:10px;
  }
  .user-top-card-horizontal .user-inline-item strong{
    font-size:13px;
  }
  .user-inline-separator{
    height:24px;
  }
}


/* V3.5 Complete company profile page */
.company-preview{
  display:flex;
  gap:18px;
  align-items:flex-start;
  padding:18px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:22px;
}
.company-preview h2{
  margin:0 0 8px;
}
.doc-footer-note{
  margin-top:18px;
  padding-top:12px;
  border-top:1px solid #e2e8f0;
  color:#64748b;
  font-size:13px;
}
@media(max-width:650px){
  .company-preview{display:block}
}


/* V3.6 clean one-line top account bar */
.user-top-clean{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:12px!important;
  flex-wrap:nowrap!important;
  padding:10px 12px!important;
  overflow-x:auto;
  white-space:nowrap;
}
.top-company-name{
  font-size:14px;
  font-weight:950;
  letter-spacing:.03em;
  color:#0f172a;
  max-width:520px;
  overflow:hidden;
  text-overflow:ellipsis;
}
.logout-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 15px;
  border-radius:999px;
  background:#0f172a;
  color:#fff;
  font-size:13px;
  font-weight:950;
  box-shadow:0 8px 18px rgba(15,23,42,.14);
  flex:0 0 auto;
}
.logout-button:hover{
  background:#1e293b;
}
.top-user-name{
  font-size:14px;
  font-weight:950;
  color:#0f172a;
  padding-left:8px;
  border-left:1px solid #e2e8f0;
}
.top-user-role{
  font-size:14px;
  font-weight:900;
  color:#64748b;
}
@media(max-width:1050px){
  .user-top-clean{
    justify-content:flex-start!important;
    -webkit-overflow-scrolling:touch;
  }
  .top-company-name{
    max-width:none;
  }
}
@media(max-width:650px){
  .user-top-clean{
    gap:9px!important;
    padding:9px!important;
  }
  .top-company-name,.top-user-name,.top-user-role{
    font-size:13px;
  }
  .logout-button{
    min-height:32px;
    padding:0 12px;
    font-size:12px;
  }
}


/* V3.7 final top bar: company and Logout in the same row, Logout at far right */
.user-top-final{
  display:grid!important;
  grid-template-columns:minmax(220px,1fr) auto auto!important;
  align-items:center!important;
  gap:14px!important;
  width:100%;
  overflow:visible!important;
}
.user-top-final .top-company-name{
  justify-self:start;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
}
.top-user-info{
  display:inline-flex;
  align-items:center;
  gap:10px;
  justify-self:end;
  white-space:nowrap;
  padding:0 12px;
  border-left:1px solid #e2e8f0;
  border-right:1px solid #e2e8f0;
}
.top-user-info .top-user-name{
  border-left:0!important;
  padding-left:0!important;
}
.logout-button-final{
  justify-self:end;
  border:0;
  min-width:92px;
  min-height:38px;
  border-radius:12px;
  background:#0f172a;
  color:#fff!important;
  font-weight:950;
  text-align:center;
}
.logout-button-final:hover{
  background:#334155;
  transform:translateY(-1px);
}
@media(max-width:850px){
  .user-top-final{
    grid-template-columns:1fr auto!important;
    grid-template-areas:
      "company logout"
      "user user";
    gap:10px!important;
  }
  .user-top-final .top-company-name{grid-area:company}
  .user-top-final .top-user-info{
    grid-area:user;
    justify-self:start;
    border-left:0;
    border-right:0;
    padding:0;
  }
  .user-top-final .logout-button-final{grid-area:logout}
}
@media(max-width:520px){
  .user-top-final .top-company-name{
    font-size:12px;
  }
  .logout-button-final{
    min-width:78px;
    min-height:34px;
  }
}


/* V3.8 true Logout button */
.logout-form{
  margin:0;
  padding:0;
  justify-self:end;
}
.logout-form .logout-button-final,
button.logout-button-final{
  appearance:none;
  -webkit-appearance:none;
  border:0!important;
  cursor:pointer;
  font:inherit;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.user-top-final .logout-form{
  justify-self:end;
}
@media(max-width:850px){
  .user-top-final .logout-form{
    grid-area:logout;
  }
}


/* V3.8.1 remove all visible Logout links; use buttons */
.mobile-logout-form,.inline-logout-form{
  margin:0;
  padding:0;
}
.mobile-logout-button{
  border:0;
  border-radius:12px;
  background:#fbbf24;
  color:#0f172a;
  font-weight:950;
  padding:8px 13px;
  cursor:pointer;
  font:inherit;
}
.mobile-logout-button:hover{
  background:#f59e0b;
}


/* V3.9 final professional account topbar */
.topbar-account{
  display:grid!important;
  grid-template-columns:minmax(220px,1fr) auto!important;
  align-items:center!important;
  gap:16px!important;
  width:100%!important;
  padding:12px 14px!important;
  background:rgba(255,255,255,.92)!important;
  border:1px solid #e2e8f0!important;
  border-radius:22px!important;
  box-shadow:0 16px 35px rgba(15,23,42,.07)!important;
}
.topbar-company{
  justify-self:start;
  min-width:0;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:15px;
  font-weight:950;
  letter-spacing:.035em;
  color:#0f172a;
}
.topbar-right{
  justify-self:end;
  display:flex;
  align-items:center;
  gap:14px;
  white-space:nowrap;
}
.topbar-user{
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 14px;
  min-height:38px;
  border-left:1px solid #e2e8f0;
  border-right:1px solid #e2e8f0;
  color:#334155;
  font-weight:900;
}
.topbar-user span:first-child{
  color:#0f172a;
  font-weight:950;
}
.topbar-user span:last-child{
  color:#64748b;
}
.logout-form{
  margin:0!important;
  padding:0!important;
  line-height:1!important;
}
.logout-action-button{
  background:#dc2626!important;
  color:#fff!important;
  border:0!important;
  min-height:40px!important;
  padding:0 18px!important;
  border-radius:15px!important;
  font-size:14px!important;
  font-weight:950!important;
  box-shadow:0 10px 20px rgba(220,38,38,.22)!important;
  cursor:pointer!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.logout-action-button:hover{
  background:#b91c1c!important;
  transform:translateY(-1px);
}
.logout-action-button:active{
  transform:translateY(0);
}
@media(max-width:850px){
  .topbar-account{
    grid-template-columns:1fr auto!important;
    gap:10px!important;
  }
  .topbar-user{
    display:none;
  }
  .logout-action-button{
    min-height:38px!important;
    padding:0 15px!important;
  }
}
@media(max-width:520px){
  .topbar-company{
    font-size:12px;
  }
  .logout-action-button{
    min-height:34px!important;
    padding:0 12px!important;
    border-radius:12px!important;
    font-size:12px!important;
  }
}


/* V3.9 final professional account topbar - definitive override */
.topbar-account{
  display:grid!important;
  grid-template-columns:minmax(220px,1fr) auto!important;
  align-items:center!important;
  gap:16px!important;
  width:100%!important;
  padding:12px 14px!important;
  background:rgba(255,255,255,.92)!important;
  border:1px solid #e2e8f0!important;
  border-radius:22px!important;
  box-shadow:0 16px 35px rgba(15,23,42,.07)!important;
  margin-bottom:18px!important;
}
.topbar-company{
  justify-self:start;
  min-width:0;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:15px;
  font-weight:950;
  letter-spacing:.035em;
  color:#0f172a;
}
.topbar-right{
  justify-self:end;
  display:flex;
  align-items:center;
  gap:14px;
  white-space:nowrap;
}
.topbar-user{
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 14px;
  min-height:38px;
  border-left:1px solid #e2e8f0;
  border-right:1px solid #e2e8f0;
  color:#334155;
  font-weight:900;
}
.topbar-user span:first-child{
  color:#0f172a;
  font-weight:950;
}
.topbar-user span:last-child{
  color:#64748b;
}
.logout-action-button{
  background:#dc2626!important;
  color:#fff!important;
  border:0!important;
  min-height:40px!important;
  padding:0 18px!important;
  border-radius:15px!important;
  font-size:14px!important;
  font-weight:950!important;
  box-shadow:0 10px 20px rgba(220,38,38,.22)!important;
  cursor:pointer!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.logout-action-button:hover{
  background:#b91c1c!important;
  transform:translateY(-1px);
}
@media(max-width:850px){
  .topbar-account{
    grid-template-columns:1fr auto!important;
    gap:10px!important;
  }
  .topbar-user{
    display:none!important;
  }
  .logout-action-button{
    min-height:38px!important;
    padding:0 15px!important;
  }
}
@media(max-width:520px){
  .topbar-company{
    font-size:12px!important;
  }
  .logout-action-button{
    min-height:34px!important;
    padding:0 12px!important;
    border-radius:12px!important;
    font-size:12px!important;
  }
}


/* V3.10 mobile navigation fix */
.mobile-nav-panel{
  display:none;
}
@media(max-width:1050px){
  .mobile-top{
    display:flex!important;
    position:sticky;
    top:0;
    z-index:80;
    background:#0f172a;
    color:#fff;
    padding:12px 14px;
    align-items:center;
    justify-content:space-between;
  }
  .mobile-nav-panel{
    display:flex;
    gap:8px;
    overflow-x:auto;
    padding:10px 12px;
    background:#fff;
    border-bottom:1px solid #e2e8f0;
    position:sticky;
    top:48px;
    z-index:79;
    -webkit-overflow-scrolling:touch;
  }
  .mobile-navbtn{
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:38px;
    padding:0 13px;
    border-radius:13px;
    background:#f1f5f9;
    color:#334155;
    font-size:13px;
    font-weight:900;
    white-space:nowrap;
  }
  .mobile-navbtn.active{
    background:#0f172a;
    color:#fff;
  }
  .mobile-navbtn:hover{
    background:#e2e8f0;
  }
  .mobile-navbtn.active:hover{
    background:#0f172a;
  }
}
@media(min-width:1051px){
  .mobile-nav-panel{
    display:none!important;
  }
}


/* V3.22 System Settings page */
.system-preview-box{
  display:flex;
  align-items:center;
  gap:14px;
  padding:18px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:22px;
}
.system-preview-box h2{
  margin:0 0 4px;
}


/* V3.23 favicon settings */
.favicon-preview-box{
  min-height:48px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:15px;
  margin-top:7px;
}
.favicon-preview{
  width:28px;
  height:28px;
  object-fit:contain;
  border-radius:6px;
  background:#fff;
  border:1px solid #e2e8f0;
}
.favicon-preview-large{
  width:42px;
  height:42px;
  object-fit:contain;
  border-radius:10px;
  background:#fff;
  border:1px solid #e2e8f0;
}


/* V3.27 Supplier purchase file upload */
.purchase-upload-box{
  margin-top:16px;
  padding:16px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:20px;
}
.purchase-upload-box h4{
  margin:0 0 6px;
}
.purchase-file-upload-form{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-bottom:16px;
}
.purchase-file-upload-form .input{
  flex:1 1 320px;
}
.purchase-file-grid{
  display:grid;
  gap:10px;
}
.purchase-file-card{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  padding:13px;
  border:1px solid #e2e8f0;
  border-radius:16px;
  background:#f8fafc;
}
@media(max-width:650px){
  .purchase-file-card{
    display:block;
  }
  .purchase-file-card .actions{
    margin-top:10px;
  }
}


/* V3.28 Order Center */
.order-center-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:0 0 18px;
}
.order-center-tabs a{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:0 14px;
  border-radius:14px;
  background:#f1f5f9;
  color:#334155;
  font-weight:900;
}
.order-center-tabs a:hover{
  background:#e2e8f0;
}
.order-center-section{
  scroll-margin-top:90px;
  margin-bottom:28px;
}
.section-title-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:14px;
  margin:18px 0 12px;
}
.section-title-row h3{
  margin:0;
  font-size:22px;
}
.section-title-row p{
  margin:4px 0 0;
}
@media(max-width:650px){
  .section-title-row{
    display:block;
  }
  .section-title-row .btn{
    margin-top:10px;
  }
}


/* V3.29 Professional Order Center */
.order-center-hero{
  display:grid;
  grid-template-columns:minmax(320px,1fr) auto;
  gap:20px;
  align-items:center;
  padding:26px;
  background:linear-gradient(135deg,#0f172a 0%,#1e293b 58%,#334155 100%);
  color:#fff;
  border:0;
  box-shadow:0 24px 50px rgba(15,23,42,.24);
}
.order-center-hero h2{margin:4px 0 8px;font-size:34px;line-height:1.08}
.order-center-hero p{margin:0;color:#cbd5e1;max-width:720px;line-height:1.7}
.hero-kicker{display:inline-flex;align-items:center;min-height:28px;padding:0 11px;border-radius:999px;background:rgba(251,191,36,.16);color:#fde68a;font-size:12px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
.order-center-hero-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}
.order-center-hero-actions .btn{box-shadow:none}
.order-center-hero-actions .btn.secondary{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.18);color:#fff}
.order-center-hero-actions .btn.secondary:hover{background:rgba(255,255,255,.18)}
.order-center-hero-actions .btn.gold{background:#f59e0b;color:#111827}
.order-center-chip-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.oc-chip{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.12);color:#fff;font-size:12px;font-weight:900}
.oc-stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:18px 0 16px}
.oc-stat-card{display:flex;gap:14px;align-items:center;padding:18px;background:rgba(255,255,255,.95);border:1px solid #e2e8f0;border-radius:22px;box-shadow:0 18px 40px rgba(15,23,42,.08)}
.oc-stat-icon{width:52px;height:52px;border-radius:18px;display:grid;place-items:center;background:#f8fafc;font-size:24px}
.oc-stat-label{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#64748b;font-weight:900}
.oc-stat-value{font-size:28px;line-height:1.05;font-weight:950;color:#0f172a;margin-top:2px}
.oc-stat-sub{margin-top:4px;color:#64748b;font-size:13px;font-weight:700}
.order-center-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0 22px;padding:8px;border-radius:22px;background:rgba(255,255,255,.8);border:1px solid #e2e8f0;backdrop-filter:blur(10px);position:sticky;top:16px;z-index:25}
.order-center-tabs a{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:0 16px;border-radius:16px;background:#fff;color:#334155;font-weight:900;border:1px solid #e2e8f0;box-shadow:0 8px 14px rgba(15,23,42,.04)}
.order-center-tabs a:hover{background:#0f172a;color:#fff;border-color:#0f172a}
.order-center-section{scroll-margin-top:96px;margin-bottom:26px}
.oc-panel{padding:20px;border:1px solid #e2e8f0;border-radius:28px;background:rgba(255,255,255,.72);box-shadow:0 18px 40px rgba(15,23,42,.06)}
.section-title-row{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin:0 0 14px}
.oc-section-headline{display:flex;flex-direction:column;gap:8px}
.oc-section-headline h3{margin:0;font-size:24px;line-height:1.1}
.oc-section-badge{display:inline-flex;align-items:center;width:max-content;min-height:28px;padding:0 11px;border-radius:999px;background:#eef2ff;color:#4338ca;font-size:12px;font-weight:900;letter-spacing:.05em;text-transform:uppercase}
.order-center-section > .card{border-radius:22px;box-shadow:0 16px 34px rgba(15,23,42,.06)}
.order-center-section .card + .card{margin-top:16px}
.order-center-section .table-wrap{border:1px solid #e2e8f0;border-radius:18px;overflow:auto}
.order-center-section table{min-width:760px;background:#fff}
.order-center-section th{background:#f8fafc;font-size:11px;letter-spacing:.06em}
.order-center-section td{background:#fff}
.order-center-section .actions .btn{padding:9px 13px;border-radius:13px}
.order-center-section .actions .btn.secondary{background:#f8fafc}
.order-center-section h4{margin:16px 0 10px;font-size:16px}
.mini-upload input[type=file]{max-width:170px;font-size:12px}
@media(max-width:1100px){
  .oc-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .order-center-hero{grid-template-columns:1fr}
  .order-center-hero-actions{justify-content:flex-start}
}
@media(max-width:750px){
  .order-center-hero{padding:20px}
  .order-center-hero h2{font-size:28px}
  .oc-stats-grid{grid-template-columns:1fr}
  .order-center-tabs{top:8px;padding:6px}
  .order-center-tabs a{min-height:38px;padding:0 12px;font-size:13px}
  .oc-panel{padding:14px;border-radius:22px}
  .section-title-row{display:block}
  .section-title-row .btn{margin-top:10px}
}


/* V3.30 Enterprise ERP Order Center */
main{max-width:1520px}
.order-center-hero{
  grid-template-columns:minmax(320px,1fr) auto;
  padding:24px 26px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
  color:#0f172a;
  border:1px solid #dbe4ee;
  box-shadow:0 14px 34px rgba(15,23,42,.08);
}
.order-center-hero h2{font-size:32px;line-height:1.08;color:#0f172a}
.order-center-hero p{color:#475569;max-width:800px}
.hero-kicker{
  background:#e0ecff;
  color:#1d4ed8;
  border:1px solid #bfdbfe;
}
.order-center-hero-actions{align-items:center}
.order-center-hero-actions .btn{min-height:42px;border-radius:12px;padding:0 16px;box-shadow:none}
.order-center-hero-actions .btn{background:#0f172a;color:#fff}
.order-center-hero-actions .btn.gold{background:#1d4ed8;color:#fff}
.order-center-hero-actions .btn.secondary{background:#fff;color:#0f172a;border:1px solid #cbd5e1}
.order-center-chip-row{gap:8px}
.oc-chip{background:#f8fafc;border:1px solid #dbe4ee;color:#334155}
.oc-stats-grid{gap:14px;margin:16px 0 12px}
.oc-stat-card{
  padding:18px;
  border-radius:18px;
  background:#fff;
  border:1px solid #dbe4ee;
  box-shadow:0 8px 24px rgba(15,23,42,.05);
}
.oc-stat-icon{background:#eff6ff;color:#1d4ed8;border:1px solid #dbeafe}
.oc-stat-label{color:#64748b}
.oc-stat-value{font-size:30px}
.oc-stat-sub{font-size:12px;color:#64748b}
.oc-erp-strip{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  padding:0;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(15,23,42,.04);
  background:#fff;
}
.oc-erp-strip-item{padding:14px 18px;border-right:1px solid #e2e8f0;display:flex;justify-content:space-between;gap:10px;align-items:center}
.oc-erp-strip-item:last-child{border-right:0}
.oc-erp-strip-label{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#64748b;font-weight:900}
.oc-erp-strip-item b{font-size:14px;color:#0f172a}
.order-center-tabs{
  position:sticky;
  top:12px;
  z-index:24;
  gap:8px;
  margin:14px 0 20px;
  padding:8px;
  border-radius:18px;
  background:rgba(248,250,252,.94);
  border:1px solid #dbe4ee;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}
.order-center-tabs a{
  min-height:40px;
  border-radius:12px;
  background:transparent;
  border:1px solid transparent;
  box-shadow:none;
  color:#334155;
}
.order-center-tabs a:hover{background:#0f172a;color:#fff;border-color:#0f172a}
.oc-panel{
  padding:18px;
  border-radius:22px;
  background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
  border:1px solid #dbe4ee;
  box-shadow:0 10px 26px rgba(15,23,42,.05);
}
.oc-section-badge{background:#eff6ff;color:#1d4ed8;border:1px solid #dbeafe}
.oc-section-headline h3{font-size:25px}
.section-title-row{margin:2px 0 14px}
.order-center-section > .card{border-radius:18px;border:1px solid #e2e8f0;box-shadow:0 8px 24px rgba(15,23,42,.04)}
.order-center-section .card.pad{padding:18px}
.order-center-section .table-wrap{border-radius:16px;border:1px solid #e2e8f0}
.order-center-section table{min-width:860px}
.order-center-section th{background:#f8fafc;color:#475569;font-size:11px;border-bottom:1px solid #e2e8f0}
.order-center-section td{padding:13px 14px}
.order-center-section tr:hover td{background:#fafcff}
.order-center-section .actions{gap:6px}
.order-center-section .actions .btn,
.order-center-section .actions .btn.secondary,
.order-center-section .actions .btn.gold{
  min-height:34px;
  padding:0 12px;
  border-radius:10px;
  font-size:12px;
  font-weight:900;
}
.order-center-section .actions .btn.secondary{background:#fff;border:1px solid #dbe4ee;color:#334155}
.order-center-section .status{background:#eff6ff;color:#1d4ed8}
.order-center-section .badge{background:#f8fafc;color:#334155;border:1px solid #e2e8f0}
.order-center-section .badge.danger{background:#fff1f2;color:#be123c;border-color:#fecdd3}
.mini-upload input[type=file]{padding:8px;border:1px dashed #cbd5e1;border-radius:10px;background:#fff}
@media(max-width:1100px){
  .oc-erp-strip{grid-template-columns:1fr}
  .oc-erp-strip-item{border-right:0;border-bottom:1px solid #e2e8f0}
  .oc-erp-strip-item:last-child{border-bottom:0}
}
@media(max-width:760px){
  .order-center-hero{padding:20px}
  .order-center-hero h2{font-size:28px}
  .order-center-tabs{top:6px}
  .order-center-tabs a{font-size:12px;padding:0 10px}
  .oc-panel{padding:14px}
}


/* V3.31 remove Order Center hero wording */
.order-center-hero-main-empty{
  display:none!important;
}
.order-center-hero{
  grid-template-columns:1fr!important;
  justify-items:end;
  padding:18px!important;
}
.order-center-hero-actions{
  width:100%;
  justify-content:flex-end!important;
}
@media(max-width:760px){
  .order-center-hero{
    justify-items:stretch;
  }
  .order-center-hero-actions{
    justify-content:flex-start!important;
  }
}


/* V3.32 Order Center stats layout */
.oc-stat-card-line{
  padding:16px 18px!important;
}
.oc-stat-line{
  display:flex;
  align-items:flex-start;
  gap:12px;
}
.oc-stat-line-icon{
  width:46px;
  height:46px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:#eff6ff;
  color:#1d4ed8;
  border:1px solid #dbeafe;
  font-size:22px;
  flex:0 0 auto;
}
.oc-stat-line-text{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.oc-stat-line-main{
  color:#0f172a;
  font-size:16px;
  line-height:1.25;
  font-weight:950;
}
.oc-stat-line-sub{
  color:#64748b;
  font-size:13px;
  line-height:1.35;
  font-weight:800;
}
@media(max-width:760px){
  .oc-stat-card-line{
    padding:14px!important;
  }
  .oc-stat-line-main{
    font-size:14px;
  }
  .oc-stat-line-sub{
    font-size:12px;
  }
}


/* V3.33 Business Center */
.business-center-hero{
  display:grid;
  grid-template-columns:minmax(320px,1fr) auto;
  gap:20px;
  align-items:center;
  padding:24px 26px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
  border:1px solid #dbe4ee;
  border-radius:24px;
  box-shadow:0 14px 34px rgba(15,23,42,.08);
}
.business-center-hero h2{font-size:32px;margin:4px 0 8px;line-height:1.08;color:#0f172a}
.business-center-hero p{margin:0;color:#475569;max-width:780px;line-height:1.7}
.business-center-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.business-center-actions .btn{min-height:42px;border-radius:12px;padding:0 16px}
.business-center-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:16px 0 20px;
  padding:8px;
  border-radius:18px;
  background:rgba(248,250,252,.94);
  border:1px solid #dbe4ee;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
  position:sticky;
  top:12px;
  z-index:24;
}
.business-center-tabs a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:0 16px;
  border-radius:12px;
  background:#fff;
  border:1px solid #dbe4ee;
  color:#334155;
  font-weight:900;
}
.business-center-tabs a:hover{background:#0f172a;color:#fff;border-color:#0f172a}
.business-section{scroll-margin-top:96px;margin-bottom:26px}
.business-panel{
  padding:18px;
  border:1px solid #dbe4ee;
  border-radius:22px;
  background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
  box-shadow:0 10px 26px rgba(15,23,42,.05);
}
.bc-section-headline{display:flex;flex-direction:column;gap:8px}
.bc-section-headline h3{margin:0;font-size:25px;line-height:1.1}
.bc-section-badge{
  display:inline-flex;
  align-items:center;
  width:max-content;
  min-height:28px;
  padding:0 11px;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8;
  border:1px solid #dbeafe;
  font-size:12px;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.bc-section-badge.purchase{background:#fffbeb;color:#b45309;border-color:#fde68a}
.business-section > .card{border-radius:18px;border:1px solid #e2e8f0;box-shadow:0 8px 24px rgba(15,23,42,.04)}
.business-section .table-wrap{border:1px solid #e2e8f0;border-radius:16px;overflow:auto}
.business-section table{background:#fff}
.business-section tr:hover td{background:#fafcff}
@media(max-width:900px){
  .business-center-hero{grid-template-columns:1fr}
  .business-center-actions{justify-content:flex-start}
}
@media(max-width:650px){
  .business-center-hero{padding:20px}
  .business-center-hero h2{font-size:28px}
  .business-panel{padding:14px}
}


/* V3.34 Business Center clean header */
.business-center-hero,
.business-center-tabs{
  display:none!important;
}
.business-section:first-of-type{
  margin-top:0!important;
}
.bc-section-badge:empty{
  display:none!important;
}


/* V3.35 Business Center quotation search */
.quotation-search-card{
  margin-bottom:12px!important;
  padding:14px!important;
  border-radius:18px!important;
}
.quotation-search-toolbar{
  margin-bottom:0!important;
  display:grid;
  grid-template-columns:minmax(260px,1fr) auto auto;
  align-items:center;
  gap:10px;
}
.quotation-search-toolbar .btn{
  min-height:44px;
  border-radius:14px;
}
@media(max-width:700px){
  .quotation-search-toolbar{
    grid-template-columns:1fr;
  }
  .quotation-search-toolbar .btn{
    width:100%;
    text-align:center;
  }
}


/* V3.36 quotation search and table in one frame */
.quotation-list-card{
  padding:16px!important;
}
.quotation-list-card .quotation-search-toolbar{
  padding-bottom:14px;
  margin-bottom:14px!important;
  border-bottom:1px solid #e2e8f0;
}
.quotation-table-wrap{
  margin-top:0;
}


/* V3.37 remove top Order Center action frame */
.order-center-hero{
  display:none!important;
}
.oc-stats-grid{
  margin-top:0!important;
}


/* V3.38 Users password panel */
.user-password-panel{
  border:1px solid #bfdbfe!important;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%)!important;
}
.topbar.mini{
  margin-bottom:14px;
}
.topbar.mini h3{
  margin:0;
  font-size:20px;
}
.topbar.mini p{
  margin:4px 0 0;
}


/* V3.40 Product WhatsApp share */
.product-share-panel{
  border:1px solid #bbf7d0!important;
  background:linear-gradient(180deg,#ffffff 0%,#f7fff9 100%)!important;
}
.product-share-panel .topbar.mini{
  margin-bottom:14px;
}
.product-share-panel .topbar.mini h3{
  margin:0;
  font-size:20px;
}
.product-share-panel .topbar.mini p{
  margin:4px 0 0;
}


/* V3.41 Product Catalog and Public Product Page */
.catalog-search-card{
  margin-bottom:18px!important;
}
.catalog-toolbar{
  display:grid;
  grid-template-columns:minmax(260px,1fr) minmax(190px,260px) auto auto;
  gap:10px;
  margin-bottom:0!important;
}
.catalog-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.catalog-card{
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.catalog-img-wrap{
  width:100%;
  aspect-ratio:4/3;
  background:#f8fafc;
  display:grid;
  place-items:center;
  border-bottom:1px solid #e2e8f0;
}
.catalog-img-wrap img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.catalog-img-placeholder{
  font-size:58px;
}
.catalog-body{
  padding:18px;
}
.catalog-meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.catalog-meta span{
  display:inline-flex;
  min-height:26px;
  align-items:center;
  padding:0 9px;
  border-radius:999px;
  background:#f1f5f9;
  color:#475569;
  font-size:12px;
  font-weight:900;
}
.catalog-body h3{
  margin:0 0 8px;
  font-size:18px;
  line-height:1.25;
}
.catalog-body p{
  min-height:44px;
  margin:0 0 12px;
  color:#64748b;
  line-height:1.55;
}
.catalog-price{
  font-size:22px;
  font-weight:950;
  margin-bottom:12px;
}
.catalog-link-box{
  display:flex;
  gap:8px;
  margin-bottom:12px;
}
.catalog-link-input{
  font-size:12px;
}
.catalog-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.catalog-actions .btn{
  padding:9px 12px;
  border-radius:12px;
  font-size:12px;
}

.public-product-body{
  background:linear-gradient(135deg,#f8fafc,#fff7ed);
  min-height:100vh;
}
.public-product-page{
  width:min(1120px,100%);
  margin:auto;
  padding:26px;
}
.public-company-bar{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:18px;
  padding:16px 18px;
  background:rgba(255,255,255,.94);
  border:1px solid #e2e8f0;
  border-radius:22px;
  box-shadow:0 16px 34px rgba(15,23,42,.07);
}
.public-company-bar img{
  max-width:78px;
  max-height:52px;
  object-fit:contain;
}
.public-company-bar b{
  display:block;
  font-size:18px;
}
.public-company-bar span{
  display:block;
  color:#64748b;
  margin-top:3px;
}
.public-product-card{
  display:grid;
  grid-template-columns:minmax(280px,45%) 1fr;
  gap:28px;
  padding:24px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:30px;
  box-shadow:0 22px 55px rgba(15,23,42,.1);
}
.public-product-image{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:24px;
  overflow:hidden;
  display:grid;
  place-items:center;
  min-height:380px;
}
.public-product-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.public-product-placeholder{
  font-size:88px;
}
.public-product-info h1{
  margin:12px 0;
  font-size:36px;
  line-height:1.12;
}
.public-product-badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.public-product-badges span{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 11px;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:12px;
  font-weight:900;
}
.public-product-price{
  font-size:32px;
  font-weight:950;
  color:#0f172a;
  margin:8px 0 18px;
}
.public-product-section{
  margin-top:18px;
}
.public-product-section h3{
  margin:0 0 8px;
  font-size:17px;
}
.public-product-section p{
  margin:0;
  color:#475569;
  line-height:1.75;
}
.public-product-specs{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.public-product-specs div{
  padding:13px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:16px;
}
.public-product-specs span{
  display:block;
  color:#64748b;
  font-size:12px;
  font-weight:900;
  margin-bottom:4px;
}
.public-product-specs b{
  font-size:14px;
}
.public-product-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:22px;
}
.public-copy-input{
  position:absolute;
  left:-9999px;
}
.public-footer-note{
  text-align:center;
  color:#64748b;
  margin-top:18px;
}
@media(max-width:1100px){
  .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .catalog-toolbar{grid-template-columns:1fr}
  .catalog-grid{grid-template-columns:1fr}
  .catalog-link-box{display:block}
  .catalog-link-box .btn{margin-top:8px}
  .public-product-page{padding:14px}
  .public-product-card{grid-template-columns:1fr;padding:16px;border-radius:24px}
  .public-product-image{min-height:280px}
  .public-product-info h1{font-size:28px}
  .public-product-price{font-size:26px}
  .public-product-specs{grid-template-columns:1fr}
}


/* V3.44 Dashboard recent cards same row */
.dashboard-recent-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  align-items:start;
  margin-top:18px;
}
.dashboard-recent-grid > .card{
  height:100%;
  margin-bottom:0!important;
}
.dashboard-recent-grid .table-wrap{
  max-width:100%;
}
@media(max-width:1100px){
  .dashboard-recent-grid{
    grid-template-columns:1fr;
  }
}

/* V3.45 Optimized Production Kanban */
.kanban-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:16px}
.kanban-summary-card{display:flex;align-items:center;gap:12px;padding:16px;background:#fff;border:1px solid #e2e8f0;border-radius:20px;box-shadow:0 12px 28px rgba(15,23,42,.06)}
.kanban-summary-card span{width:44px;height:44px;border-radius:15px;display:grid;place-items:center;background:#eff6ff;font-size:22px}
.kanban-summary-card small{display:block;color:#64748b;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}
.kanban-summary-card b{display:block;font-size:25px;line-height:1.05;margin-top:3px}
.kanban-summary-card.danger span{background:#fee2e2}.kanban-summary-card.warning span{background:#fef3c7}
.kanban-filter-card{padding:14px!important;margin-bottom:16px!important}
.kanban-filter-form{display:grid;grid-template-columns:minmax(260px,1fr) minmax(200px,260px) minmax(150px,190px) auto auto;gap:10px;align-items:center}
.kanban-board{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(310px,360px);gap:16px;overflow-x:auto;padding-bottom:16px;scroll-snap-type:x proximity}
.kanban-column{scroll-snap-align:start;background:rgba(255,255,255,.72);border:1px solid #dbe4ee;border-radius:24px;min-height:520px;display:flex;flex-direction:column;box-shadow:0 14px 30px rgba(15,23,42,.05)}
.kanban-column-head{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px;background:linear-gradient(180deg,#fff,#f8fafc);border-bottom:1px solid #e2e8f0;border-radius:24px 24px 0 0}
.kanban-column-head>div{display:flex;flex-direction:column;gap:2px}.kanban-column-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:13px;background:#f1f5f9;margin-bottom:5px}
.kanban-column-head b{font-size:15px;color:#0f172a}.kanban-column-head small{color:#64748b;font-size:11px;font-weight:800}
.kanban-count{min-width:34px;height:34px;display:grid;place-items:center;border-radius:999px;background:#0f172a;color:#fff;font-weight:950}
.kanban-card-list{display:grid;gap:12px;padding:14px}.kanban-empty{min-height:90px;display:grid;place-items:center;border:1px dashed #cbd5e1;border-radius:18px;color:#94a3b8;font-weight:900}
.kanban-order-card{background:#fff;border:1px solid #e2e8f0;border-left:5px solid #94a3b8;border-radius:20px;padding:14px;box-shadow:0 12px 24px rgba(15,23,42,.06)}
.kanban-order-card.priority-high{border-left-color:#f59e0b}.kanban-order-card.priority-urgent{border-left-color:#dc2626}
.kanban-order-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.kanban-order-top b{display:block;font-size:15px;color:#0f172a}.kanban-order-top span{color:#64748b;font-size:12px;font-weight:800}
.kanban-priority{display:inline-flex;align-items:center;min-height:26px;padding:0 9px;border-radius:999px;background:#f1f5f9;color:#334155!important;font-size:11px!important;font-weight:950!important}
.kanban-priority.high{background:#fef3c7;color:#92400e!important}.kanban-priority.urgent{background:#fee2e2;color:#991b1b!important}
.kanban-summary{margin:12px 0;color:#334155;line-height:1.45;font-weight:750}.kanban-card-meta{display:grid;gap:7px;margin:10px 0}
.kanban-card-meta span{display:inline-flex;width:max-content;max-width:100%;min-height:27px;align-items:center;padding:0 9px;border-radius:999px;background:#f8fafc;color:#475569;font-size:12px;font-weight:900}
.kanban-due.danger{background:#fee2e2!important;color:#991b1b!important}.kanban-due.warning{background:#fef3c7!important;color:#92400e!important}
.kanban-note{padding:10px;margin-top:10px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;color:#64748b;font-size:12px;line-height:1.5}
.kanban-card-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.kanban-card-actions .btn{min-height:32px;padding:0 10px;border-radius:11px;font-size:12px;box-shadow:none}.kanban-card-actions .btn.secondary{background:#fff}
@media(max-width:1200px){.kanban-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.kanban-filter-form{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.kanban-summary-grid{grid-template-columns:1fr}.kanban-filter-form{grid-template-columns:1fr}.kanban-board{grid-auto-columns:minmax(285px,86vw)}}
@media print{.kanban-filter-card,.kanban-card-actions{display:none!important}.kanban-board{display:block;overflow:visible}.kanban-column{break-inside:avoid;margin-bottom:16px}}


/* V3.46 Enterprise Production Kanban UI */
.kanban-enterprise-header{
  display:grid;
  grid-template-columns:minmax(320px,1fr) auto;
  gap:20px;
  align-items:center;
  padding:24px 26px;
  border-radius:26px;
  background:linear-gradient(135deg,#0f172a 0%,#1e293b 52%,#334155 100%);
  color:#fff;
  border:0;
  box-shadow:0 24px 54px rgba(15,23,42,.26);
  margin-bottom:16px;
}
.kanban-kicker{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 11px;
  border-radius:999px;
  background:rgba(251,191,36,.16);
  color:#fde68a;
  border:1px solid rgba(251,191,36,.22);
  font-size:12px;
  font-weight:950;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.kanban-enterprise-header h2{
  margin:8px 0 8px;
  font-size:34px;
  line-height:1.08;
}
.kanban-enterprise-header p{
  margin:0;
  color:#cbd5e1;
  line-height:1.7;
  max-width:800px;
}
.kanban-header-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.kanban-header-actions .btn{
  min-height:42px;
  padding:0 16px;
  border-radius:13px;
  box-shadow:none;
}
.kanban-header-actions .btn.secondary{
  background:rgba(255,255,255,.12);
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
}
.kanban-summary-grid{
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
}
.kanban-summary-card{
  border-radius:18px;
  border:1px solid #dbe4ee;
  box-shadow:0 10px 26px rgba(15,23,42,.06);
  background:linear-gradient(180deg,#ffffff,#fbfdff);
}
.kanban-summary-card span{
  border:1px solid #dbeafe;
}
.kanban-workflow-strip{
  display:grid;
  grid-template-columns:auto 1fr auto 1fr auto 1fr auto 1fr auto;
  align-items:center;
  gap:10px;
  padding:14px 16px;
  margin:0 0 16px;
  background:#fff;
  border:1px solid #dbe4ee;
  border-radius:22px;
  box-shadow:0 10px 26px rgba(15,23,42,.05);
}
.workflow-step{
  display:flex;
  align-items:center;
  gap:9px;
  white-space:nowrap;
}
.workflow-step span{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#0f172a;
  color:#fff;
  font-weight:950;
  font-size:12px;
}
.workflow-step b{
  color:#0f172a;
  font-size:13px;
}
.workflow-step small{
  color:#64748b;
  font-size:12px;
  font-weight:800;
}
.workflow-line{
  height:2px;
  background:linear-gradient(90deg,#cbd5e1,#e2e8f0);
}
.kanban-filter-card{
  border-radius:20px;
  border:1px solid #dbe4ee;
  box-shadow:0 10px 26px rgba(15,23,42,.05);
  background:#fff;
}
.kanban-filter-form .input,
.kanban-filter-form select{
  border-radius:13px;
  background:#f8fafc;
}
.kanban-filter-form .btn{
  min-height:44px;
  border-radius:13px;
}
.kanban-stage-tabs{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:8px;
  margin:0 0 14px;
  background:rgba(255,255,255,.9);
  border:1px solid #dbe4ee;
  border-radius:18px;
  box-shadow:0 10px 24px rgba(15,23,42,.04);
  position:sticky;
  top:12px;
  z-index:20;
}
.kanban-stage-tabs a{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:0 12px;
  border-radius:12px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  color:#334155;
  font-size:12px;
  font-weight:900;
}
.kanban-stage-tabs a:hover{
  background:#0f172a;
  color:#fff;
  border-color:#0f172a;
}
.kanban-board{
  grid-auto-columns:minmax(330px, 380px);
  gap:18px;
  padding:2px 2px 18px;
}
.kanban-column{
  background:#f8fafc;
  border:1px solid #dbe4ee;
  border-radius:24px;
  box-shadow:0 12px 28px rgba(15,23,42,.06);
}
.kanban-column-head{
  background:linear-gradient(180deg,#ffffff,#f8fafc);
  padding:16px;
}
.kanban-column-head b{
  font-size:16px;
}
.kanban-column-icon{
  border:1px solid #e2e8f0;
  background:#fff;
}
.kanban-count{
  background:#0f172a;
  box-shadow:0 8px 18px rgba(15,23,42,.16);
}
.kanban-order-card{
  border-radius:18px;
  border:1px solid #dbe4ee;
  background:linear-gradient(180deg,#fff,#fbfdff);
  box-shadow:0 10px 24px rgba(15,23,42,.06);
  transition:transform .15s ease, box-shadow .15s ease;
}
.kanban-order-card:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 34px rgba(15,23,42,.1);
}
.kanban-order-card.priority-normal{
  border-left-color:#64748b;
}
.kanban-order-card.priority-high{
  background:linear-gradient(180deg,#fff,#fffbeb);
}
.kanban-order-card.priority-urgent{
  background:linear-gradient(180deg,#fff,#fff1f2);
}
.kanban-summary{
  color:#1e293b;
  font-size:14px;
}
.kanban-card-meta{
  grid-template-columns:1fr;
}
.kanban-card-meta span{
  width:100%;
  justify-content:space-between;
  border:1px solid #e2e8f0;
}
.kanban-note{
  background:#fff;
  border-style:dashed;
}
.kanban-card-actions{
  padding-top:10px;
  border-top:1px solid #eef2f7;
}
.kanban-card-actions .btn{
  min-height:34px;
  border-radius:10px;
}
.kanban-card-actions .btn:not(.secondary){
  background:#1d4ed8;
}
@media(max-width:1200px){
  .kanban-enterprise-header{
    grid-template-columns:1fr;
  }
  .kanban-header-actions{
    justify-content:flex-start;
  }
  .kanban-workflow-strip{
    grid-template-columns:1fr;
  }
  .workflow-line{
    display:none;
  }
}
@media(max-width:760px){
  .kanban-enterprise-header{
    padding:20px;
  }
  .kanban-enterprise-header h2{
    font-size:28px;
  }
  .kanban-board{
    grid-auto-columns:minmax(292px,88vw);
  }
  .kanban-stage-tabs{
    top:6px;
  }
}


/* V3.47 Simplified Production Kanban */
.kanban-enterprise-header,
.kanban-workflow-strip,
.kanban-stage-tabs{
  display:none!important;
}
.kanban-simple-topbar{
  align-items:flex-end;
}
.kanban-simple-topbar h2{
  font-size:30px;
}
.kanban-summary-grid-simple{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.kanban-summary-grid-simple .kanban-summary-card{
  padding:15px 16px;
}
.kanban-filter-card{
  padding:12px!important;
}
.kanban-board{
  grid-auto-columns:minmax(300px,350px)!important;
  gap:14px!important;
}
.kanban-column{
  min-height:460px!important;
  border-radius:20px!important;
}
.kanban-column-head{
  padding:13px!important;
  border-radius:20px 20px 0 0!important;
}
.kanban-column-icon{
  display:none!important;
}
.kanban-column-head b{
  font-size:15px!important;
}
.kanban-card-list{
  padding:12px!important;
}
.kanban-order-card{
  padding:13px!important;
  border-radius:16px!important;
}
.kanban-summary{
  margin:10px 0!important;
  font-size:13px!important;
}
.kanban-card-meta{
  margin:8px 0!important;
}
.kanban-card-meta span{
  width:max-content!important;
}
.kanban-note{
  display:none!important;
}
.kanban-card-actions{
  margin-top:10px!important;
  padding-top:9px!important;
}
.kanban-card-actions .btn{
  min-height:31px!important;
  padding:0 9px!important;
}
@media(max-width:900px){
  .kanban-summary-grid-simple{
    grid-template-columns:1fr!important;
  }
}


/* V3.48 Kanban one-frame layout */
.kanban-master-frame{
  padding:20px!important;
  border-radius:26px!important;
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%)!important;
  border:1px solid #dbe4ee!important;
  box-shadow:0 18px 42px rgba(15,23,42,.08)!important;
}
.kanban-master-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  padding-bottom:16px;
  margin-bottom:16px;
  border-bottom:1px solid #e2e8f0;
}
.kanban-master-head h3{
  margin:0;
  font-size:24px;
  line-height:1.15;
  color:#0f172a;
}
.kanban-master-head p{
  margin:5px 0 0;
  color:#64748b;
}
.kanban-master-frame .kanban-summary-grid{
  margin-bottom:16px!important;
}
.kanban-master-frame .kanban-filter-card{
  margin-bottom:18px!important;
  box-shadow:none!important;
  border-radius:18px!important;
  background:#fff!important;
}
.kanban-master-frame .kanban-board{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  grid-auto-flow:row!important;
  grid-auto-columns:unset!important;
  overflow:visible!important;
  gap:14px!important;
  padding:0!important;
}
.kanban-master-frame .kanban-column{
  min-height:190px!important;
  border-radius:20px!important;
  box-shadow:none!important;
  background:#fff!important;
  border:1px solid #e2e8f0!important;
}
.kanban-master-frame .kanban-column-head{
  position:static!important;
  border-radius:20px 20px 0 0!important;
  padding:13px 14px!important;
  display:grid!important;
  grid-template-columns:1fr auto!important;
  align-items:center!important;
  background:#f8fafc!important;
}
.kanban-master-frame .kanban-column-head > div{
  display:block!important;
}
.kanban-master-frame .kanban-column-icon{
  display:inline-grid!important;
  width:30px!important;
  height:30px!important;
  margin:0 7px 0 0!important;
  vertical-align:middle;
}
.kanban-master-frame .kanban-column-head b{
  display:inline!important;
  font-size:14px!important;
  vertical-align:middle;
}
.kanban-master-frame .kanban-column-head small{
  display:block!important;
  margin-top:4px!important;
  font-size:11px!important;
  color:#64748b!important;
  padding-left:39px;
}
.kanban-master-frame .kanban-count{
  min-width:30px!important;
  height:30px!important;
  font-size:13px!important;
}
.kanban-master-frame .kanban-card-list{
  padding:12px!important;
  min-height:100px;
}
.kanban-master-frame .kanban-empty{
  min-height:78px!important;
  border-radius:16px!important;
  background:#f8fafc!important;
}
@media(max-width:1300px){
  .kanban-master-frame .kanban-board{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media(max-width:950px){
  .kanban-master-frame .kanban-board{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:620px){
  .kanban-master-frame{
    padding:14px!important;
  }
  .kanban-master-head{
    display:block;
  }
  .kanban-master-frame .kanban-board{
    grid-template-columns:1fr!important;
  }
}


/* V3.49 Clean Professional Kanban Grid */
.kanban-page-title{
  align-items:flex-end;
}
.kanban-pro-frame{
  padding:22px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
  border:1px solid #dbe4ee;
  border-radius:28px;
  box-shadow:0 20px 48px rgba(15,23,42,.09);
}
.kanban-pro-head{
  padding-bottom:16px;
  margin-bottom:16px;
  border-bottom:1px solid #e2e8f0;
}
.kanban-pro-head h3{
  margin:0;
  font-size:24px;
  line-height:1.15;
}
.kanban-pro-head p{
  margin:5px 0 0;
  color:#64748b;
}
.kanban-pro-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-bottom:16px;
}
.kanban-pro-stat{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:82px;
  padding:16px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:20px;
  box-shadow:0 10px 24px rgba(15,23,42,.045);
}
.kanban-pro-stat-icon{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:#eff6ff;
  font-size:22px;
}
.kanban-pro-stat.urgent .kanban-pro-stat-icon{background:#fee2e2}
.kanban-pro-stat.overdue .kanban-pro-stat-icon{background:#fef3c7}
.kanban-pro-stat span{
  display:block;
  color:#64748b;
  font-size:12px;
  font-weight:950;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.kanban-pro-stat b{
  display:block;
  margin-top:2px;
  font-size:28px;
  line-height:1;
}
.kanban-pro-filter{
  display:grid;
  grid-template-columns:minmax(260px,1fr) minmax(210px,280px) minmax(150px,200px) auto auto;
  gap:10px;
  padding:14px;
  margin-bottom:18px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:20px;
}
.kanban-pro-filter .input{
  border-radius:14px;
  background:#f8fafc;
}
.kanban-pro-filter .btn{
  min-height:44px;
  border-radius:14px;
}
.kanban-pro-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.kanban-pro-column{
  min-height:190px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 10px 24px rgba(15,23,42,.045);
}
.kanban-pro-column-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:13px 14px;
  background:#f8fafc;
  border-bottom:1px solid #e2e8f0;
}
.kanban-pro-column-title{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.kanban-pro-icon{
  width:34px;
  height:34px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:#fff;
  border:1px solid #e2e8f0;
}
.kanban-pro-column-title b{
  display:block;
  font-size:14px;
  line-height:1.15;
}
.kanban-pro-column-title small{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-size:11px;
  font-weight:850;
  white-space:nowrap;
}
.kanban-pro-count{
  min-width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#0f172a;
  color:#fff;
  font-weight:950;
  font-size:13px;
}
.kanban-pro-list{
  padding:12px;
  display:grid;
  gap:10px;
  min-height:108px;
}
.kanban-pro-empty{
  min-height:82px;
  display:grid;
  place-items:center;
  color:#94a3b8;
  background:#f8fafc;
  border:1px dashed #cbd5e1;
  border-radius:16px;
  font-weight:900;
}
.kanban-pro-order{
  padding:12px;
  border:1px solid #e2e8f0;
  border-left:5px solid #64748b;
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 18px rgba(15,23,42,.04);
}
.kanban-pro-order.priority-high{
  border-left-color:#f59e0b;
  background:#fffbeb;
}
.kanban-pro-order.priority-urgent{
  border-left-color:#dc2626;
  background:#fff1f2;
}
.kanban-pro-order-top{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
}
.kanban-pro-order-top b{
  display:block;
  font-size:14px;
}
.kanban-pro-order-top span{
  display:block;
  margin-top:2px;
  color:#64748b;
  font-size:12px;
  font-weight:850;
}
.kanban-pro-order-top em{
  font-style:normal;
  font-size:10px;
  font-weight:950;
  padding:5px 8px;
  border-radius:999px;
  background:#f1f5f9;
  color:#334155;
}
.kanban-pro-order-top em.high{
  background:#fef3c7;
  color:#92400e;
}
.kanban-pro-order-top em.urgent{
  background:#fee2e2;
  color:#991b1b;
}
.kanban-pro-order p{
  margin:10px 0;
  color:#334155;
  font-size:13px;
  line-height:1.45;
  font-weight:780;
}
.kanban-pro-due{
  display:inline-flex;
  align-items:center;
  min-height:27px;
  padding:0 9px;
  border-radius:999px;
  background:#f8fafc;
  color:#475569;
  border:1px solid #e2e8f0;
  font-size:12px;
  font-weight:900;
}
.kanban-pro-due.danger{
  background:#fee2e2;
  color:#991b1b;
  border-color:#fecaca;
}
.kanban-pro-due.warning{
  background:#fef3c7;
  color:#92400e;
  border-color:#fde68a;
}
.kanban-pro-actions{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  padding-top:10px;
  margin-top:10px;
  border-top:1px solid #eef2f7;
}
.kanban-pro-actions .btn{
  min-height:31px;
  padding:0 10px;
  border-radius:10px;
  font-size:12px;
  box-shadow:none;
}
@media(max-width:1350px){
  .kanban-pro-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media(max-width:1050px){
  .kanban-pro-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .kanban-pro-filter{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:700px){
  .kanban-pro-frame{
    padding:14px;
  }
  .kanban-pro-stats,
  .kanban-pro-grid,
  .kanban-pro-filter{
    grid-template-columns:1fr;
  }
}
@media print{
  .kanban-pro-filter,
  .kanban-pro-actions{
    display:none!important;
  }
}


/* V3.50 Rebuilt Professional Production Board - isolated K50 classes */
.k50-page-head{
  display:grid;
  grid-template-columns:minmax(320px,1fr) auto;
  gap:18px;
  align-items:end;
  margin-bottom:18px;
}
.k50-eyebrow{
  display:inline-flex;
  min-height:28px;
  align-items:center;
  padding:0 11px;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8;
  border:1px solid #dbeafe;
  font-size:12px;
  font-weight:950;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.k50-page-head h2{
  margin:8px 0 5px;
  font-size:31px;
  line-height:1.12;
}
.k50-page-head p{
  margin:0;
  color:#64748b;
  line-height:1.65;
}
.k50-head-actions{
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.k50-shell{
  padding:20px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
  border:1px solid #dbe4ee;
  border-radius:28px;
  box-shadow:0 22px 52px rgba(15,23,42,.1);
}
.k50-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-bottom:16px;
}
.k50-summary-card{
  display:flex;
  align-items:center;
  gap:13px;
  min-height:86px;
  padding:17px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:22px;
  box-shadow:0 12px 26px rgba(15,23,42,.055);
}
.k50-summary-card > span{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:17px;
  background:#eff6ff;
  border:1px solid #dbeafe;
  font-size:23px;
}
.k50-summary-card.k50-danger > span{
  background:#fee2e2;
  border-color:#fecaca;
}
.k50-summary-card.k50-warning > span{
  background:#fef3c7;
  border-color:#fde68a;
}
.k50-summary-card small{
  display:block;
  color:#64748b;
  font-size:12px;
  font-weight:950;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.k50-summary-card b{
  display:block;
  margin-top:3px;
  font-size:29px;
  line-height:1;
}
.k50-filter{
  display:grid;
  grid-template-columns:minmax(260px,1fr) minmax(220px,280px) minmax(160px,210px) auto auto;
  gap:10px;
  align-items:center;
  padding:14px;
  margin-bottom:18px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:22px;
  box-shadow:0 10px 24px rgba(15,23,42,.045);
}
.k50-filter .input{
  background:#f8fafc;
  border-radius:14px;
}
.k50-filter .btn{
  min-height:44px;
  border-radius:14px;
}
.k50-board{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.k50-stage{
  min-height:198px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 12px 26px rgba(15,23,42,.055);
}
.k50-stage-head{
  min-height:70px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:14px;
  background:#f8fafc;
  border-bottom:1px solid #e2e8f0;
}
.k50-stage-title{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.k50-stage-title > span{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:14px;
  background:#fff;
  border:1px solid #e2e8f0;
  font-size:18px;
}
.k50-stage-title b{
  display:block;
  font-size:14px;
  line-height:1.15;
  color:#0f172a;
}
.k50-stage-title small{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-size:11px;
  font-weight:850;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.k50-stage-head em{
  min-width:32px;
  height:32px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:999px;
  background:#0f172a;
  color:#fff;
  font-style:normal;
  font-size:13px;
  font-weight:950;
}
.k50-stage-body{
  min-height:116px;
  display:grid;
  gap:10px;
  padding:12px;
}
.k50-empty{
  min-height:88px;
  display:grid;
  place-items:center;
  color:#94a3b8;
  background:#f8fafc;
  border:1px dashed #cbd5e1;
  border-radius:17px;
  font-weight:900;
}
.k50-order{
  padding:13px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-left:5px solid #64748b;
  border-radius:17px;
  box-shadow:0 8px 18px rgba(15,23,42,.045);
}
.k50-order.k50-priority-high{
  border-left-color:#f59e0b;
  background:#fffbeb;
}
.k50-order.k50-priority-urgent{
  border-left-color:#dc2626;
  background:#fff1f2;
}
.k50-order-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.k50-order-top strong{
  display:block;
  color:#0f172a;
  font-size:14px;
  line-height:1.2;
}
.k50-order-top span{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-size:12px;
  font-weight:850;
}
.k50-order-top i{
  padding:5px 8px;
  border-radius:999px;
  background:#f1f5f9;
  color:#334155;
  font-size:10px;
  line-height:1;
  font-weight:950;
  font-style:normal;
}
.k50-order p{
  margin:10px 0;
  color:#334155;
  font-size:13px;
  line-height:1.45;
  font-weight:780;
}
.k50-due{
  display:inline-flex;
  align-items:center;
  min-height:27px;
  padding:0 9px;
  border-radius:999px;
  background:#f8fafc;
  color:#475569;
  border:1px solid #e2e8f0;
  font-size:12px;
  font-weight:900;
}
.k50-due-danger{
  background:#fee2e2;
  color:#991b1b;
  border-color:#fecaca;
}
.k50-due-warning{
  background:#fef3c7;
  color:#92400e;
  border-color:#fde68a;
}
.k50-actions{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  padding-top:10px;
  margin-top:10px;
  border-top:1px solid #eef2f7;
}
.k50-actions .btn{
  min-height:31px;
  padding:0 10px;
  border-radius:10px;
  font-size:12px;
  box-shadow:none;
}
@media(max-width:1380px){
  .k50-board{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media(max-width:1080px){
  .k50-page-head{
    grid-template-columns:1fr;
  }
  .k50-head-actions{
    justify-content:flex-start;
  }
  .k50-board{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .k50-filter{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:720px){
  .k50-shell{
    padding:14px;
    border-radius:22px;
  }
  .k50-summary,
  .k50-board,
  .k50-filter{
    grid-template-columns:1fr;
  }
  .k50-page-head h2{
    font-size:27px;
  }
}
@media print{
  .k50-filter,
  .k50-actions,
  .k50-head-actions{
    display:none!important;
  }
}


/* V3.51 Production Board List View */
.k51-page-head{
  align-items:flex-end;
}
.k51-panel{
  padding:20px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
  border:1px solid #dbe4ee;
  border-radius:28px;
  box-shadow:0 22px 52px rgba(15,23,42,.09);
}
.k51-panel-head{
  padding-bottom:16px;
  margin-bottom:16px;
  border-bottom:1px solid #e2e8f0;
}
.k51-panel-head h3{
  margin:0;
  font-size:24px;
  line-height:1.15;
}
.k51-panel-head p{
  margin:5px 0 0;
  color:#64748b;
}
.k51-filter{
  display:grid;
  grid-template-columns:minmax(260px,1fr) minmax(220px,280px) minmax(160px,210px) auto auto;
  gap:10px;
  align-items:center;
  padding:14px;
  margin-bottom:18px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:22px;
  box-shadow:0 10px 24px rgba(15,23,42,.045);
}
.k51-filter .input{
  background:#f8fafc;
  border-radius:14px;
}
.k51-filter .btn{
  min-height:44px;
  border-radius:14px;
}
.k51-list{
  display:grid;
  gap:10px;
}
.k51-list-row{
  display:grid;
  grid-template-columns:minmax(260px,1fr) 90px minmax(140px,220px);
  gap:14px;
  align-items:center;
  min-height:68px;
  padding:14px 16px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:18px;
  box-shadow:0 8px 18px rgba(15,23,42,.04);
}
.k51-summary-row{
  background:#ffffff;
}
.k51-summary-row.urgent{
  background:#fff7f7;
  border-color:#fecaca;
}
.k51-summary-row.overdue{
  background:#fffbeb;
  border-color:#fde68a;
}
.k51-main{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.k51-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:15px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  font-size:22px;
}
.k51-main b{
  display:block;
  color:#0f172a;
  font-size:16px;
  line-height:1.2;
}
.k51-main small{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-size:12px;
  font-weight:850;
}
.k51-count{
  justify-self:start;
  min-width:42px;
  height:34px;
  display:inline-grid;
  place-items:center;
  padding:0 12px;
  border-radius:999px;
  background:#0f172a;
  color:#fff;
  font-size:15px;
  font-weight:950;
}
.k51-note{
  color:#64748b;
  font-weight:900;
  font-size:13px;
}
.k51-status-block{
  display:grid;
  gap:8px;
}
.k51-status-row{
  margin-top:2px;
}
.k51-orders{
  display:grid;
  gap:8px;
  margin:0 0 2px 54px;
}
.k51-order{
  display:grid;
  grid-template-columns:minmax(260px,1fr) minmax(200px,280px) auto;
  gap:12px;
  align-items:center;
  padding:12px 14px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-left:5px solid #64748b;
  border-radius:16px;
  box-shadow:0 6px 14px rgba(15,23,42,.035);
}
.k51-order.priority-high{
  border-left-color:#f59e0b;
  background:#fffbeb;
}
.k51-order.priority-urgent{
  border-left-color:#dc2626;
  background:#fff1f2;
}
.k51-order-info b{
  display:block;
  color:#0f172a;
  font-size:14px;
}
.k51-order-info span{
  display:block;
  margin-top:2px;
  color:#64748b;
  font-size:12px;
  font-weight:850;
}
.k51-order-info p{
  margin:5px 0 0;
  color:#334155;
  font-size:13px;
  line-height:1.4;
  font-weight:760;
}
.k51-order-tags{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.k51-order-tags em{
  display:inline-flex;
  align-items:center;
  min-height:27px;
  padding:0 9px;
  border-radius:999px;
  background:#f1f5f9;
  color:#334155;
  font-size:11px;
  font-weight:950;
  font-style:normal;
}
.k51-order-tags em.high{
  background:#fef3c7;
  color:#92400e;
}
.k51-order-tags em.urgent{
  background:#fee2e2;
  color:#991b1b;
}
.k51-due{
  display:inline-flex;
  align-items:center;
  min-height:27px;
  padding:0 9px;
  border-radius:999px;
  background:#f8fafc;
  color:#475569;
  border:1px solid #e2e8f0;
  font-size:12px;
  font-weight:900;
}
.k51-due.danger{
  background:#fee2e2;
  color:#991b1b;
  border-color:#fecaca;
}
.k51-due.warning{
  background:#fef3c7;
  color:#92400e;
  border-color:#fde68a;
}
.k51-order-actions{
  display:flex;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:7px;
}
.k51-order-actions .btn{
  min-height:31px;
  padding:0 10px;
  border-radius:10px;
  font-size:12px;
  box-shadow:none;
}
@media(max-width:1050px){
  .k51-filter{
    grid-template-columns:1fr 1fr;
  }
  .k51-list-row{
    grid-template-columns:1fr auto;
  }
  .k51-note{
    grid-column:1 / -1;
    padding-left:54px;
  }
  .k51-order{
    grid-template-columns:1fr;
  }
  .k51-order-actions{
    justify-content:flex-start;
  }
}
@media(max-width:700px){
  .k51-panel{
    padding:14px;
    border-radius:22px;
  }
  .k51-filter{
    grid-template-columns:1fr;
  }
  .k51-list-row{
    grid-template-columns:1fr;
  }
  .k51-count{
    justify-self:start;
    margin-left:54px;
  }
  .k51-note{
    padding-left:54px;
  }
  .k51-orders{
    margin-left:0;
  }
}
@media print{
  .k51-filter,
  .k51-order-actions{
    display:none!important;
  }
}


/* V3.52 ERP-style Production List */
.k52-page-head{
  margin-bottom:18px!important;
}
.k52-panel{
  padding:0!important;
  overflow:hidden;
  background:#ffffff!important;
  border:1px solid #dbe4ee!important;
  box-shadow:0 22px 55px rgba(15,23,42,.10)!important;
}
.k52-panel-head{
  padding:22px 24px 18px!important;
  margin:0!important;
  background:linear-gradient(135deg,#0f172a 0%,#1e293b 65%,#334155 100%);
  color:#fff;
  border-bottom:0!important;
}
.k52-label{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 11px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);
  color:#dbeafe;
  font-size:12px;
  font-weight:950;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.k52-panel-head h3{
  margin:10px 0 6px!important;
  color:#fff!important;
  font-size:26px!important;
}
.k52-panel-head p{
  color:#cbd5e1!important;
  max-width:850px;
}
.k52-panel .k51-filter{
  margin:18px 20px!important;
  background:#f8fafc!important;
  box-shadow:none!important;
}
.k52-summary-strip{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  padding:0 20px 18px;
}
.k52-summary-strip .k51-list-row{
  grid-template-columns:1fr auto!important;
  min-height:86px!important;
  margin:0!important;
  border-radius:20px!important;
}
.k52-summary-strip .k51-note{
  grid-column:1 / -1;
  padding-left:54px;
  margin-top:-8px;
}
.k52-status-table{
  margin:0 20px 22px;
  border:1px solid #e2e8f0;
  border-radius:22px;
  overflow:hidden;
  background:#fff;
}
.k52-table-head{
  display:grid;
  grid-template-columns:minmax(260px,1fr) 90px minmax(140px,220px);
  gap:14px;
  padding:12px 16px;
  background:#f8fafc;
  border-bottom:1px solid #e2e8f0;
  color:#64748b;
  font-size:12px;
  font-weight:950;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.k52-status-table .k51-status-block{
  gap:0!important;
  border-bottom:1px solid #eef2f7;
}
.k52-status-table .k51-status-block:last-child{
  border-bottom:0;
}
.k52-status-table .k51-list-row{
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  min-height:72px!important;
  background:#fff!important;
}
.k52-status-table .k51-list-row:hover{
  background:#fbfdff!important;
}
.k52-stage-no{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:999px;
  background:#e0ecff;
  color:#1d4ed8;
  font-size:12px;
  font-weight:950;
}
.k52-status-table .k51-icon{
  width:40px!important;
  height:40px!important;
}
.k52-status-table .k51-count{
  background:#0f172a;
}
.k52-status-table .k51-note{
  display:inline-flex;
  align-items:center;
  width:max-content;
  min-height:30px;
  padding:0 11px;
  border-radius:999px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  color:#64748b;
  font-size:12px;
}
.k52-status-table .k51-status-row:has(+ .k51-orders) .k51-note{
  background:#eff6ff;
  color:#1d4ed8;
  border-color:#bfdbfe;
}
.k52-status-table .k51-orders{
  margin:0 16px 14px 70px!important;
  padding:12px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:18px;
}
.k52-status-table .k51-order{
  background:#fff!important;
}
.k52-status-table .k51-order + .k51-order{
  margin-top:8px;
}
@media(max-width:1050px){
  .k52-summary-strip{
    grid-template-columns:1fr;
  }
  .k52-table-head{
    display:none;
  }
  .k52-status-table .k51-list-row{
    grid-template-columns:1fr auto!important;
  }
  .k52-status-table .k51-note{
    grid-column:1 / -1;
    margin-left:88px;
  }
}
@media(max-width:700px){
  .k52-panel-head{
    padding:18px!important;
  }
  .k52-panel .k51-filter,
  .k52-status-table{
    margin-left:14px!important;
    margin-right:14px!important;
  }
  .k52-summary-strip{
    padding-left:14px;
    padding-right:14px;
  }
  .k52-status-table .k51-orders{
    margin-left:12px!important;
    margin-right:12px!important;
  }
  .k52-status-table .k51-note{
    margin-left:0;
  }
}


/* V3.53 production stages in one decorated frame */
.k53-stage-frame{
  margin:0 20px 22px;
  padding:18px;
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.08), transparent 34%),
    linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
  border:1px solid #dbe4ee;
  border-radius:26px;
  box-shadow:0 16px 38px rgba(15,23,42,.075);
}
.k53-stage-frame-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
  padding:4px 4px 16px;
  margin-bottom:14px;
  border-bottom:1px solid #e2e8f0;
}
.k53-stage-frame-head span{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 11px;
  border-radius:999px;
  background:#eff6ff;
  border:1px solid #dbeafe;
  color:#1d4ed8;
  font-size:12px;
  font-weight:950;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.k53-stage-frame-head h4{
  margin:9px 0 5px;
  color:#0f172a;
  font-size:23px;
  line-height:1.12;
}
.k53-stage-frame-head p{
  margin:0;
  color:#64748b;
}
.k53-stage-frame-head strong{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:0 14px;
  border-radius:999px;
  background:#0f172a;
  color:#fff;
  font-size:13px;
  font-weight:950;
}
.k53-stage-frame .k52-status-table{
  margin:0!important;
  border-radius:22px!important;
  box-shadow:0 10px 26px rgba(15,23,42,.045);
}
.k53-stage-frame .k52-table-head{
  background:#eef2ff!important;
  color:#334155!important;
}
.k53-stage-frame .k51-status-block:nth-child(even) .k51-list-row{
  background:#fcfdff!important;
}
.k53-stage-frame .k51-status-block:nth-child(odd) .k51-list-row{
  background:#ffffff!important;
}
.k53-stage-frame .k52-stage-no{
  background:#0f172a!important;
  color:#fff!important;
}
.k53-stage-frame .k51-icon{
  background:#ffffff!important;
  box-shadow:0 7px 14px rgba(15,23,42,.05);
}
.k53-stage-frame .k51-count{
  box-shadow:0 8px 18px rgba(15,23,42,.12);
}
.k53-stage-frame .k51-note{
  background:#ffffff!important;
}
.k53-stage-frame .k51-status-row:hover{
  background:#f8fbff!important;
}
@media(max-width:700px){
  .k53-stage-frame{
    margin-left:14px;
    margin-right:14px;
    padding:14px;
    border-radius:22px;
  }
  .k53-stage-frame-head{
    display:block;
  }
  .k53-stage-frame-head strong{
    margin-top:12px;
  }
}


/* V3.54 Dashboard-style Production Stages */
.k54-page-head{
  align-items:flex-end;
}
.k54-shell{
  padding:20px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
  border:1px solid #dbe4ee;
  border-radius:28px;
  box-shadow:0 22px 55px rgba(15,23,42,.10);
}
.k54-headband{
  padding-bottom:16px;
  margin-bottom:16px;
  border-bottom:1px solid #e2e8f0;
}
.k54-chip{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 11px;
  border-radius:999px;
  background:#eff6ff;
  border:1px solid #dbeafe;
  color:#1d4ed8;
  font-size:12px;
  font-weight:950;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.k54-headband h3{
  margin:10px 0 6px;
  font-size:25px;
  line-height:1.15;
}
.k54-headband p{
  margin:0;
  color:#64748b;
}
.k54-summary-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-bottom:18px;
}
.k54-summary-card{
  display:flex;
  align-items:center;
  gap:14px;
  min-height:112px;
  padding:18px 20px;
  background:#fff;
  border:1px solid #dbe4ee;
  border-radius:24px;
  box-shadow:0 12px 30px rgba(15,23,42,.06);
}
.k54-summary-icon{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:18px;
  background:#f7e8b3;
  color:#9a6700;
  font-size:24px;
  flex:0 0 auto;
}
.k54-summary-content span{
  display:block;
  color:#64748b;
  font-size:13px;
  font-weight:850;
}
.k54-summary-content b{
  display:block;
  margin-top:2px;
  color:#0f172a;
  font-size:26px;
  line-height:1;
}
.k54-summary-content small{
  display:block;
  margin-top:5px;
  color:#64748b;
  font-size:12px;
  font-weight:800;
}
.k54-filter{
  display:grid;
  grid-template-columns:minmax(260px,1fr) minmax(220px,280px) minmax(160px,210px) auto auto;
  gap:10px;
  align-items:center;
  padding:14px;
  margin-bottom:20px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:22px;
  box-shadow:0 10px 24px rgba(15,23,42,.045);
}
.k54-filter .input{
  background:#f8fafc;
  border-radius:14px;
}
.k54-filter .btn{
  min-height:44px;
  border-radius:14px;
}
.k54-stage-frame{
  padding:18px;
  background:
    radial-gradient(circle at top right, rgba(245,158,11,.08), transparent 25%),
    linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
  border:1px solid #dbe4ee;
  border-radius:26px;
  box-shadow:0 16px 38px rgba(15,23,42,.06);
}
.k54-stage-frame-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:14px;
  padding-bottom:16px;
  margin-bottom:16px;
  border-bottom:1px solid #e2e8f0;
}
.k54-stage-frame-head h4{
  margin:9px 0 5px;
  font-size:24px;
  line-height:1.15;
}
.k54-stage-frame-head p{
  margin:0;
  color:#64748b;
}
.k54-stage-frame-head strong{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 14px;
  border-radius:999px;
  background:#0f172a;
  color:#fff;
  font-size:13px;
  font-weight:950;
}
.k54-stage-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}
.k54-stage-card{
  display:grid;
  grid-template-columns:56px minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  min-height:118px;
  padding:18px;
  background:#fff;
  border:1px solid #dbe4ee;
  border-radius:24px;
  box-shadow:0 12px 28px rgba(15,23,42,.055);
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  color:inherit;
  text-decoration:none;
}
.k54-stage-card:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 36px rgba(15,23,42,.08);
  border-color:#cbd5e1;
}
.k54-stage-card.active{
  border-color:#bfdbfe;
  background:linear-gradient(180deg,#ffffff,#f8fbff);
}
.k54-stage-icon{
  width:56px;
  height:56px;
  display:grid;
  place-items:center;
  border-radius:20px;
  background:#f7e8b3;
  color:#9a6700;
  font-size:27px;
  flex:0 0 auto;
}
.k54-stage-meta{
  min-width:0;
}
.k54-stage-no{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 8px;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:11px;
  font-weight:950;
  letter-spacing:.06em;
  margin-bottom:8px;
}
.k54-stage-meta h5{
  margin:0;
  color:#0f172a;
  font-size:15px;
  line-height:1.22;
}
.k54-stage-meta small{
  display:block;
  margin-top:4px;
  color:#64748b;
  font-size:12px;
  font-weight:800;
}
.k54-stage-right{
  text-align:right;
}
.k54-stage-right b{
  display:block;
  color:#0f172a;
  font-size:28px;
  line-height:1;
}
.k54-stage-right span{
  display:block;
  margin-top:6px;
  color:#64748b;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}
.k54-detail-wrap{
  margin-top:20px;
  padding:18px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:24px;
  box-shadow:0 12px 26px rgba(15,23,42,.045);
}
.k54-detail-head{
  padding-bottom:14px;
  margin-bottom:14px;
  border-bottom:1px solid #e2e8f0;
}
.k54-detail-head h4{
  margin:0;
  font-size:21px;
}
.k54-detail-head p{
  margin:5px 0 0;
  color:#64748b;
}
.k54-detail-block{
  padding:16px 0;
  border-bottom:1px solid #eef2f7;
}
.k54-detail-block:last-child{
  border-bottom:0;
  padding-bottom:0;
}
.k54-detail-block:first-child{
  padding-top:0;
}
.k54-detail-block-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
}
.k54-detail-title{
  display:flex;
  align-items:center;
  gap:10px;
}
.k54-detail-title > span{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:15px;
  background:#f7e8b3;
  color:#9a6700;
  font-size:20px;
}
.k54-detail-title b{
  display:block;
  font-size:15px;
}
.k54-detail-title small{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-size:12px;
  font-weight:800;
}
.k54-detail-block-head em{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 12px;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8;
  font-style:normal;
  font-size:12px;
  font-weight:900;
}
.k54-order-list{
  display:grid;
  gap:10px;
}
.k54-order-card{
  display:grid;
  grid-template-columns:minmax(280px,1fr) minmax(180px,240px) auto;
  gap:12px;
  align-items:center;
  padding:13px 14px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-left:5px solid #64748b;
  border-radius:18px;
  box-shadow:0 8px 18px rgba(15,23,42,.035);
}
.k54-order-card.priority-high{
  border-left-color:#f59e0b;
  background:#fffbeb;
}
.k54-order-card.priority-urgent{
  border-left-color:#dc2626;
  background:#fff1f2;
}
.k54-order-main b{
  display:block;
  font-size:14px;
}
.k54-order-main span{
  display:block;
  margin-top:2px;
  color:#64748b;
  font-size:12px;
  font-weight:850;
}
.k54-order-main p{
  margin:5px 0 0;
  color:#334155;
  font-size:13px;
  line-height:1.42;
  font-weight:760;
}
.k54-order-side{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.k54-order-side em{
  display:inline-flex;
  align-items:center;
  min-height:27px;
  padding:0 9px;
  border-radius:999px;
  background:#f1f5f9;
  color:#334155;
  font-size:11px;
  font-weight:950;
  font-style:normal;
}
.k54-order-side em.high{
  background:#fef3c7;
  color:#92400e;
}
.k54-order-side em.urgent{
  background:#fee2e2;
  color:#991b1b;
}
.k54-due{
  display:inline-flex;
  align-items:center;
  min-height:27px;
  padding:0 9px;
  border-radius:999px;
  background:#f8fafc;
  color:#475569;
  border:1px solid #e2e8f0;
  font-size:12px;
  font-weight:900;
}
.k54-due.danger{
  background:#fee2e2;
  color:#991b1b;
  border-color:#fecaca;
}
.k54-due.warning{
  background:#fef3c7;
  color:#92400e;
  border-color:#fde68a;
}
.k54-order-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:7px;
}
.k54-order-actions .btn{
  min-height:31px;
  padding:0 10px;
  border-radius:10px;
  font-size:12px;
  box-shadow:none;
}
@media(max-width:1380px){
  .k54-stage-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media(max-width:1080px){
  .k54-summary-grid{
    grid-template-columns:1fr;
  }
  .k54-stage-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .k54-filter{
    grid-template-columns:1fr 1fr;
  }
  .k54-order-card{
    grid-template-columns:1fr;
  }
  .k54-order-actions{
    justify-content:flex-start;
  }
}
@media(max-width:720px){
  .k54-shell{
    padding:14px;
    border-radius:22px;
  }
  .k54-stage-frame,
  .k54-detail-wrap{
    padding:14px;
    border-radius:20px;
  }
  .k54-stage-frame-head{
    display:block;
  }
  .k54-stage-frame-head strong{
    margin-top:12px;
  }
  .k54-stage-grid,
  .k54-filter{
    grid-template-columns:1fr;
  }
  .k54-stage-card{
    grid-template-columns:56px 1fr;
  }
  .k54-stage-right{
    grid-column:2;
    text-align:left;
  }
}
@media print{
  .k54-filter,
  .k54-order-actions{
    display:none!important;
  }
}


/* V3.55 Owner Activity Audit Log */
.owner-audit-section{
  margin-top:22px;
  padding:20px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
  border:1px solid #dbe4ee;
  border-radius:28px;
  box-shadow:0 18px 42px rgba(15,23,42,.08);
}
.owner-audit-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  padding-bottom:16px;
  margin-bottom:16px;
  border-bottom:1px solid #e2e8f0;
}
.owner-audit-head h3{
  margin:0;
  font-size:24px;
}
.owner-audit-head p{
  margin:5px 0 0;
  color:#64748b;
}
.owner-audit-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-bottom:14px;
}
.owner-audit-stat{
  display:flex;
  align-items:center;
  gap:12px;
  padding:16px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:20px;
}
.owner-audit-stat span{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:#eff6ff;
  font-size:21px;
}
.owner-audit-stat.danger span{
  background:#fee2e2;
}
.owner-audit-stat b{
  display:block;
  color:#0f172a;
  font-size:25px;
  line-height:1;
}
.owner-audit-stat small{
  display:block;
  margin-top:4px;
  color:#64748b;
  font-weight:850;
}
.owner-role-strip{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:14px;
}
.owner-role-strip span{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:0 11px;
  border-radius:999px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  color:#334155;
  font-size:12px;
  font-weight:850;
}
.owner-role-strip b{
  margin-left:4px;
}
.owner-audit-table-wrap{
  overflow:auto;
  border:1px solid #e2e8f0;
  border-radius:18px;
  background:#fff;
}
.owner-audit-table{
  width:100%;
  min-width:850px;
}
.owner-audit-table th{
  background:#f8fafc;
  color:#475569;
  font-size:11px;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.owner-audit-table td,
.owner-audit-table th{
  padding:12px 14px;
  border-bottom:1px solid #eef2f7;
}
.owner-audit-table tr:last-child td{
  border-bottom:0;
}
.owner-audit-table span{
  color:#64748b;
  font-size:12px;
}
.audit-action{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  background:#f1f5f9;
  color:#334155;
  font-size:12px;
  font-weight:900;
}
.audit-create{
  background:#dcfce7;
  color:#166534;
}
.audit-update,
.audit-status,
.audit-password,
.audit-upload,
.audit-convert{
  background:#dbeafe;
  color:#1e40af;
}
.audit-delete{
  background:#fee2e2;
  color:#991b1b;
}
.audit-login,
.audit-logout{
  background:#fef3c7;
  color:#92400e;
}
.activity-filter-card{
  margin-bottom:16px!important;
}
.activity-filter-form{
  display:grid;
  grid-template-columns:minmax(240px,1fr) 170px minmax(150px,210px) minmax(150px,210px) auto auto;
  gap:10px;
  align-items:center;
}
.activity-filter-form .input{
  border-radius:14px;
  background:#f8fafc;
}
.activity-filter-form .btn{
  min-height:44px;
  border-radius:14px;
}
@media(max-width:1100px){
  .owner-audit-stats{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .activity-filter-form{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:700px){
  .owner-audit-head{
    display:block;
  }
  .owner-audit-head .btn{
    margin-top:12px;
  }
  .owner-audit-stats,
  .activity-filter-form{
    grid-template-columns:1fr;
  }
}


/* V3.58 Owner Audit layout aligned with recent order cards */
.owner-audit-card{
  margin-top:18px!important;
  padding:18px!important;
  background:#fff!important;
  border:1px solid #e2e8f0!important;
  border-radius:22px!important;
  box-shadow:0 8px 24px rgba(15,23,42,.04)!important;
}
.owner-audit-card .recent-style-head{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:14px!important;
  padding-bottom:12px!important;
  margin-bottom:14px!important;
  border-bottom:1px solid #e2e8f0!important;
}
.owner-audit-card .recent-style-head h3{
  margin:0!important;
  font-size:20px!important;
  line-height:1.2!important;
  color:#0f172a!important;
}
.owner-audit-card .recent-style-head p{
  margin:4px 0 0!important;
  color:#64748b!important;
  font-size:13px!important;
}
.owner-audit-card .recent-style-head .btn{
  min-height:38px!important;
  padding:0 13px!important;
  border-radius:13px!important;
}
.owner-audit-card .owner-audit-stats{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  margin-bottom:12px!important;
}
.owner-audit-card .owner-audit-stat{
  padding:12px!important;
  border-radius:16px!important;
  box-shadow:none!important;
  background:#f8fafc!important;
  border:1px solid #e2e8f0!important;
}
.owner-audit-card .owner-audit-stat span{
  width:36px!important;
  height:36px!important;
  border-radius:13px!important;
  font-size:18px!important;
}
.owner-audit-card .owner-audit-stat b{
  font-size:20px!important;
}
.owner-audit-card .owner-audit-stat small{
  font-size:12px!important;
}
.owner-audit-card .owner-role-strip{
  margin-bottom:12px!important;
}
.owner-audit-card .owner-role-strip span{
  min-height:30px!important;
  border-radius:999px!important;
  font-size:12px!important;
  background:#fff!important;
}
.owner-audit-card .owner-audit-table-wrap{
  border-radius:16px!important;
  box-shadow:none!important;
}
.owner-audit-card .owner-audit-table th{
  background:#f8fafc!important;
}
.owner-audit-card .owner-audit-table td,
.owner-audit-card .owner-audit-table th{
  padding:10px 12px!important;
}
@media(max-width:1100px){
  .owner-audit-card .owner-audit-stats{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:700px){
  .owner-audit-card .recent-style-head{
    display:block!important;
  }
  .owner-audit-card .recent-style-head .btn{
    margin-top:10px!important;
  }
  .owner-audit-card .owner-audit-stats{
    grid-template-columns:1fr!important;
  }
}


/* V3.59 REAL Owner Audit inline with recent cards */
.owner-audit-inline-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:18px!important;
  align-items:start!important;
}
.owner-audit-inline-card{
  margin-top:0!important;
  height:100%!important;
  display:flex!important;
  flex-direction:column!important;
  padding:18px!important;
  background:#fff!important;
  border:1px solid #e2e8f0!important;
  border-radius:22px!important;
  box-shadow:0 8px 24px rgba(15,23,42,.04)!important;
}
.owner-audit-inline-card .owner-audit-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:10px!important;
  padding-bottom:12px!important;
  margin-bottom:12px!important;
  border-bottom:1px solid #e2e8f0!important;
}
.owner-audit-inline-card .owner-audit-head h3{
  margin:0!important;
  font-size:18px!important;
  line-height:1.2!important;
}
.owner-audit-inline-card .owner-audit-head p{
  margin:4px 0 0!important;
  font-size:12px!important;
  line-height:1.4!important;
  color:#64748b!important;
}
.owner-audit-inline-card .owner-audit-head .btn{
  flex:0 0 auto!important;
  min-height:34px!important;
  padding:0 10px!important;
  border-radius:12px!important;
  font-size:12px!important;
}
.owner-audit-inline-card .owner-audit-stats{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
  margin-bottom:10px!important;
}
.owner-audit-inline-card .owner-audit-stat{
  padding:10px!important;
  border-radius:14px!important;
  background:#f8fafc!important;
  border:1px solid #e2e8f0!important;
}
.owner-audit-inline-card .owner-audit-stat span{
  width:32px!important;
  height:32px!important;
  border-radius:11px!important;
  font-size:16px!important;
}
.owner-audit-inline-card .owner-audit-stat b{
  font-size:18px!important;
}
.owner-audit-inline-card .owner-audit-stat small{
  font-size:11px!important;
  line-height:1.2!important;
}
.owner-audit-inline-card .owner-role-strip{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  margin-bottom:10px!important;
}
.owner-audit-inline-card .owner-role-strip span{
  min-height:26px!important;
  padding:0 8px!important;
  font-size:11px!important;
  background:#fff!important;
}
.owner-audit-inline-card .owner-audit-table-wrap{
  flex:1 1 auto!important;
  max-height:360px!important;
  overflow:auto!important;
  border-radius:14px!important;
}
.owner-audit-inline-card .owner-audit-table{
  min-width:620px!important;
}
.owner-audit-inline-card .owner-audit-table th:nth-child(4),
.owner-audit-inline-card .owner-audit-table td:nth-child(4){
  display:none!important;
}
.owner-audit-inline-card .owner-audit-table td,
.owner-audit-inline-card .owner-audit-table th{
  padding:9px 10px!important;
  font-size:12px!important;
}
.owner-audit-inline-card .audit-action{
  min-height:24px!important;
  padding:0 8px!important;
  font-size:11px!important;
}
@media(max-width:1350px){
  .owner-audit-inline-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:850px){
  .owner-audit-inline-grid{
    grid-template-columns:1fr!important;
  }
  .owner-audit-inline-card .owner-audit-head{
    display:block!important;
  }
  .owner-audit-inline-card .owner-audit-head .btn{
    margin-top:10px!important;
  }
}


/* V3.60 Recent quotations + recent orders in one professional frame */
.owner-audit-inline-grid{
  grid-template-columns:2fr 1fr!important;
}
.recent-business-frame{
  margin:0!important;
  padding:18px!important;
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%)!important;
  border:1px solid #dbe4ee!important;
  border-radius:24px!important;
  box-shadow:0 12px 32px rgba(15,23,42,.06)!important;
}
.recent-business-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  padding-bottom:12px;
  margin-bottom:14px;
  border-bottom:1px solid #e2e8f0;
}
.recent-business-head h3{
  margin:0;
  font-size:21px;
  line-height:1.2;
  color:#0f172a;
}
.recent-business-head p{
  margin:5px 0 0;
  color:#64748b;
  font-size:13px;
}
.recent-business-inner{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.recent-business-inner > .card{
  margin:0!important;
  padding:0!important;
  border:1px solid #e2e8f0!important;
  border-radius:18px!important;
  box-shadow:none!important;
  overflow:hidden;
  background:#fff!important;
}
.recent-business-inner > .card > h3,
.recent-business-inner > .card > .topbar,
.recent-business-inner > .card > .section-title-row{
  padding:14px 14px 0!important;
}
.recent-business-inner > .card h3{
  font-size:18px!important;
  margin:0 0 10px!important;
}
.recent-business-inner .table-wrap{
  border:0!important;
  border-radius:0!important;
}
.recent-business-inner table{
  min-width:520px!important;
}
.recent-business-inner th{
  background:#f8fafc!important;
}
.recent-business-inner td,
.recent-business-inner th{
  padding:10px 12px!important;
}
@media(max-width:1350px){
  .owner-audit-inline-grid{
    grid-template-columns:1fr!important;
  }
}
@media(max-width:900px){
  .recent-business-inner{
    grid-template-columns:1fr!important;
  }
}


/* V3.65 Audit delete / clear controls */
.btn.danger,
button.btn.danger{
  background:#dc2626!important;
  color:#fff!important;
  border-color:#dc2626!important;
}
.btn.danger:hover,
button.btn.danger:hover{
  background:#b91c1c!important;
  border-color:#b91c1c!important;
}
.audit-delete-btn{
  min-height:30px!important;
  padding:0 10px!important;
  border-radius:10px!important;
  font-size:12px!important;
}
.owner-audit-inline-card .btn.danger{
  min-height:34px!important;
  padding:0 11px!important;
  border-radius:12px!important;
  font-size:12px!important;
}


/* V3.67 Product multi-images and video */
.product-form-card{
  margin-bottom:18px!important;
}
.form-section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:14px;
  padding-bottom:14px;
  margin-bottom:16px;
  border-bottom:1px solid #e2e8f0;
}
.form-section-head h3{
  margin:0;
  font-size:22px;
}
.product-form-grid .full{
  grid-column:1/-1;
}
.hint{
  display:block;
  margin-top:5px;
  color:#64748b;
  font-size:12px;
}
.product-media-manager{
  margin-top:20px;
  padding-top:18px;
  border-top:1px solid #e2e8f0;
}
.product-media-manager h3{
  margin:0 0 12px;
}
.product-image-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.product-image-tile{
  overflow:hidden;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:18px;
  box-shadow:0 8px 18px rgba(15,23,42,.04);
}
.product-image-tile img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  display:block;
  background:#f8fafc;
}
.product-image-info{
  padding:10px;
}
.product-image-info b{
  display:block;
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.product-image-info span{
  display:block;
  color:#64748b;
  font-size:12px;
  margin-top:3px;
}
.product-image-info .btn{
  margin-top:8px;
  min-height:32px;
  border-radius:10px;
  font-size:12px;
}
.product-video-preview{
  margin-top:18px;
}
.product-video-preview iframe{
  width:100%;
  max-width:760px;
  aspect-ratio:16/9;
  border:0;
  border-radius:18px;
  background:#0f172a;
}
.product-search-card{
  margin-bottom:18px!important;
}
.product-search-toolbar{
  display:grid;
  grid-template-columns:minmax(260px,1fr) auto auto;
  gap:10px;
  margin-bottom:0!important;
}
.product-search-toolbar .btn{
  min-height:44px;
  border-radius:14px;
}
.product-card-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.product-list-card{
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.product-thumb{
  position:relative;
  width:100%;
  aspect-ratio:4/3;
  background:#f8fafc;
  border-bottom:1px solid #e2e8f0;
  display:grid;
  place-items:center;
}
.product-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.product-thumb-placeholder{
  font-size:60px;
}
.image-count-badge{
  position:absolute;
  right:12px;
  top:12px;
  min-height:28px;
  display:inline-flex;
  align-items:center;
  padding:0 10px;
  border-radius:999px;
  background:rgba(15,23,42,.88);
  color:#fff;
  font-size:12px;
  font-weight:900;
}
.product-list-body{
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1;
}
.product-meta{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.product-meta span{
  min-height:26px;
  display:inline-flex;
  align-items:center;
  padding:0 9px;
  border-radius:999px;
  background:#f1f5f9;
  color:#475569;
  font-size:12px;
  font-weight:900;
}
.product-list-body h3{
  margin:0;
  font-size:18px;
  line-height:1.25;
}
.product-list-body p{
  min-height:42px;
  margin:0;
  color:#64748b;
  line-height:1.5;
}
.product-price-row{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.product-price-row div{
  padding:10px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:14px;
}
.product-price-row small{
  display:block;
  color:#64748b;
  font-size:11px;
  font-weight:850;
}
.product-price-row b{
  display:block;
  margin-top:3px;
  font-size:14px;
}
.product-video-link{
  padding:9px 11px;
  border-radius:14px;
  background:#eff6ff;
  border:1px solid #dbeafe;
  color:#1d4ed8;
  font-weight:900;
  font-size:13px;
}
.product-video-link a{
  color:#1d4ed8;
}
.product-list-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:auto;
}
.product-list-actions .btn{
  min-height:34px;
  border-radius:11px;
  font-size:12px;
  box-shadow:none;
}
.catalog-video-link{
  margin-bottom:12px;
  padding:9px 11px;
  border-radius:14px;
  background:#eff6ff;
  border:1px solid #dbeafe;
  color:#1d4ed8;
  font-weight:900;
  font-size:13px;
}
.public-product-gallery{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:12px;
}
.public-product-gallery img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:14px;
  border:1px solid #e2e8f0;
}
.public-product-video iframe{
  width:100%;
  aspect-ratio:16/9;
  border:0;
  border-radius:18px;
  background:#0f172a;
}
@media(max-width:1200px){
  .product-card-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .product-image-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media(max-width:760px){
  .product-card-grid,
  .product-image-grid,
  .product-search-toolbar{
    grid-template-columns:1fr;
  }
  .product-price-row{
    grid-template-columns:1fr;
  }
  .public-product-gallery{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}


/* V3.69 Products professional design restore */
.v369-products-page{
  margin-top:0;
}
.v369-products-page .product-search-card{
  margin-bottom:18px!important;
  padding:18px!important;
  background:#fff!important;
  border:1px solid #dbe4ee!important;
  border-radius:24px!important;
  box-shadow:0 14px 34px rgba(15,23,42,.055)!important;
}
.v369-products-page .product-search-toolbar{
  display:grid!important;
  grid-template-columns:minmax(260px,1fr) auto auto!important;
  gap:10px!important;
  align-items:center!important;
  margin:0!important;
}
.v369-products-page .product-search-toolbar .input{
  min-height:46px!important;
  border-radius:15px!important;
  background:#fff!important;
}
.v369-products-page .product-search-toolbar .btn{
  min-height:44px!important;
  border-radius:14px!important;
}
.v369-product-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}
.v369-product-card{
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height:100%;
  background:#fff;
  border:1px solid #dbe4ee;
  border-radius:26px;
  box-shadow:0 16px 38px rgba(15,23,42,.075);
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.v369-product-card:hover{
  transform:translateY(-2px);
  box-shadow:0 22px 48px rgba(15,23,42,.105);
  border-color:#cbd5e1;
}
.v369-product-image{
  position:relative;
  width:100%;
  aspect-ratio:4/3;
  background:linear-gradient(135deg,#f8fafc,#eef2ff);
  display:grid;
  place-items:center;
  border-bottom:1px solid #e2e8f0;
}
.v369-product-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.v369-product-placeholder{
  display:grid;
  place-items:center;
  gap:6px;
  color:#64748b;
}
.v369-product-placeholder span{
  font-size:58px;
  line-height:1;
}
.v369-product-placeholder small{
  font-size:12px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.v369-image-badge,
.v369-video-badge{
  position:absolute;
  top:12px;
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 11px;
  border-radius:999px;
  color:#fff;
  font-size:12px;
  font-weight:950;
  box-shadow:0 8px 18px rgba(15,23,42,.18);
}
.v369-image-badge{
  right:12px;
  background:rgba(15,23,42,.88);
}
.v369-video-badge{
  left:12px;
  background:rgba(37,99,235,.92);
}
.v369-product-content{
  display:flex;
  flex-direction:column;
  gap:12px;
  flex:1;
  padding:18px;
}
.v369-product-tags{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.v369-product-tags span{
  display:inline-flex;
  align-items:center;
  min-height:27px;
  padding:0 10px;
  border-radius:999px;
  background:#f1f5f9;
  color:#475569;
  font-size:12px;
  font-weight:900;
}
.v369-product-content h3{
  margin:0;
  color:#0f172a;
  font-size:19px;
  line-height:1.25;
}
.v369-product-desc{
  min-height:44px;
  margin:0;
  color:#64748b;
  font-size:14px;
  line-height:1.55;
}
.v369-product-info-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
}
.v369-product-info-grid div{
  padding:11px 10px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:16px;
}
.v369-product-info-grid small{
  display:block;
  color:#64748b;
  font-size:11px;
  font-weight:900;
}
.v369-product-info-grid b{
  display:block;
  margin-top:4px;
  color:#0f172a;
  font-size:14px;
  line-height:1.2;
}
.v369-video-link{
  display:flex;
  align-items:center;
  min-height:38px;
  padding:0 12px;
  border-radius:15px;
  background:#eff6ff;
  border:1px solid #dbeafe;
  color:#1d4ed8;
  font-weight:900;
  font-size:13px;
  text-decoration:none;
}
.v369-product-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:auto;
  padding-top:4px;
}
.v369-product-actions .btn{
  min-height:36px!important;
  padding:0 12px!important;
  border-radius:12px!important;
  font-size:12px!important;
  box-shadow:none!important;
}
.v369-product-actions .danger-text{
  color:#dc2626!important;
}
.v369-products-page .product-form-card{
  margin-bottom:18px!important;
  padding:20px!important;
  border-radius:24px!important;
}
.v369-products-page .product-image-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
}
.v369-products-page .product-image-tile{
  border-radius:18px!important;
  overflow:hidden!important;
}
@media(max-width:1280px){
  .v369-product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:760px){
  .v369-product-grid,
  .v369-products-page .product-search-toolbar{
    grid-template-columns:1fr!important;
  }
  .v369-product-info-grid{
    grid-template-columns:1fr;
  }
  .v369-products-page .product-image-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}


/* V3.70 Products table restore - stable backend design */
.v370-products-table-card{
  margin-top:18px!important;
  padding:20px!important;
  background:#fff!important;
  border:1px solid #dbe4ee!important;
  border-radius:26px!important;
  box-shadow:0 16px 38px rgba(15,23,42,.065)!important;
}
.v370-products-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  padding-bottom:14px;
  margin-bottom:14px;
  border-bottom:1px solid #e2e8f0;
}
.v370-products-head h3{
  margin:0;
  font-size:22px;
  color:#0f172a;
}
.v370-products-head p{
  margin:5px 0 0;
  color:#64748b;
  font-size:13px;
}
.v370-products-head span{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  background:#0f172a;
  color:#fff;
  font-size:12px;
  font-weight:950;
}
.v370-product-table-wrap{
  border:1px solid #e2e8f0!important;
  border-radius:20px!important;
  overflow:auto!important;
  background:#fff!important;
}
.v370-products-table{
  min-width:1050px;
  width:100%;
}
.v370-products-table th{
  background:#f8fafc!important;
  color:#475569!important;
  font-size:12px!important;
  font-weight:950!important;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.v370-products-table td,
.v370-products-table th{
  padding:14px!important;
  vertical-align:middle!important;
  border-bottom:1px solid #eef2f7!important;
}
.v370-products-table tr:last-child td{
  border-bottom:0!important;
}
.v370-img-cell{
  width:110px;
}
.v370-thumb{
  position:relative;
  width:86px;
  height:86px;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#f8fafc,#eef2ff);
  border:1px solid #e2e8f0;
  border-radius:18px;
}
.v370-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.v370-no-img{
  font-size:34px;
  line-height:1;
}
.v370-thumb span{
  position:absolute;
  right:5px;
  bottom:5px;
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:0 7px;
  border-radius:999px;
  background:rgba(15,23,42,.88);
  color:#fff;
  font-size:10px;
  font-weight:950;
}
.v370-product-main{
  min-width:260px;
}
.v370-product-main b{
  display:block;
  font-size:15px;
  color:#0f172a;
}
.v370-product-main p{
  margin:5px 0 0;
  max-width:360px;
  color:#64748b;
  font-size:13px;
  line-height:1.45;
}
.v370-tag{
  display:inline-flex;
  align-items:center;
  min-height:27px;
  padding:0 9px;
  border-radius:999px;
  background:#f1f5f9;
  color:#475569;
  font-size:12px;
  font-weight:900;
}
.v370-video-btn{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:0 10px;
  border-radius:12px;
  background:#eff6ff;
  border:1px solid #dbeafe;
  color:#1d4ed8;
  font-size:12px;
  font-weight:900;
  text-decoration:none;
}
.v370-actions{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  min-width:220px;
}
.v370-actions .btn{
  min-height:32px!important;
  padding:0 10px!important;
  border-radius:10px!important;
  font-size:12px!important;
  box-shadow:none!important;
}
.v370-actions .danger-text{
  color:#dc2626!important;
}
.topbar .actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}
@media(max-width:760px){
  .v370-products-table-card{
    padding:14px!important;
  }
  .v370-products-head{
    display:block;
  }
  .v370-products-head span{
    margin-top:10px;
  }
}


/* V3.71 Products table rows fix */
.v371-products-table-card{
  margin-top:18px!important;
  padding:20px!important;
  background:#fff!important;
  border:1px solid #dbe4ee!important;
  border-radius:26px!important;
  box-shadow:0 16px 38px rgba(15,23,42,.065)!important;
}
.v371-products-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  padding-bottom:14px;
  margin-bottom:14px;
  border-bottom:1px solid #e2e8f0;
}
.v371-products-head h3{
  margin:0;
  font-size:22px;
  color:#0f172a;
}
.v371-products-head p{
  margin:5px 0 0;
  color:#64748b;
  font-size:13px;
}
.v371-products-head span{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  background:#0f172a;
  color:#fff;
  font-size:12px;
  font-weight:950;
}
.v371-product-table-wrap{
  border:1px solid #e2e8f0!important;
  border-radius:20px!important;
  overflow:auto!important;
  background:#fff!important;
}
.v371-products-table{
  min-width:1080px;
  width:100%;
  border-collapse:collapse;
}
.v371-products-table th{
  background:#f8fafc!important;
  color:#475569!important;
  font-size:12px!important;
  font-weight:950!important;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.v371-products-table td,
.v371-products-table th{
  padding:14px!important;
  vertical-align:middle!important;
  border-bottom:1px solid #eef2f7!important;
  text-align:left;
}
.v371-products-table tr:last-child td{
  border-bottom:0!important;
}
.v371-img-cell{
  width:110px;
}
.v371-thumb{
  position:relative;
  width:86px;
  height:86px;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#f8fafc,#eef2ff);
  border:1px solid #e2e8f0;
  border-radius:18px;
}
.v371-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.v371-no-img{
  font-size:34px;
  line-height:1;
}
.v371-thumb span{
  position:absolute;
  right:5px;
  bottom:5px;
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:0 7px;
  border-radius:999px;
  background:rgba(15,23,42,.88);
  color:#fff;
  font-size:10px;
  font-weight:950;
}
.v371-product-main{
  min-width:280px;
}
.v371-product-main b{
  display:block;
  font-size:15px;
  color:#0f172a;
}
.v371-product-main p{
  margin:5px 0 0;
  max-width:420px;
  color:#64748b;
  font-size:13px;
  line-height:1.45;
}
.v371-product-main small{
  display:block;
  margin-top:6px;
  color:#475569;
  font-size:12px;
  font-weight:850;
}
.v371-tag{
  display:inline-flex;
  align-items:center;
  min-height:27px;
  padding:0 9px;
  border-radius:999px;
  background:#f1f5f9;
  color:#475569;
  font-size:12px;
  font-weight:900;
}
.v371-video-btn{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:0 10px;
  border-radius:12px;
  background:#eff6ff;
  border:1px solid #dbeafe;
  color:#1d4ed8;
  font-size:12px;
  font-weight:900;
  text-decoration:none;
}
.v371-actions{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  min-width:220px;
}
.v371-actions .btn{
  min-height:32px!important;
  padding:0 10px!important;
  border-radius:10px!important;
  font-size:12px!important;
  box-shadow:none!important;
}
.v371-actions .danger-text{
  color:#dc2626!important;
}
@media(max-width:760px){
  .v371-products-table-card{
    padding:14px!important;
  }
  .v371-products-head{
    display:block;
  }
  .v371-products-head span{
    margin-top:10px;
  }
}


/* V3.72 Products full rebuild */
.v72-search-card,
.v72-products-card,
.v72-product-form-card{
  margin-bottom:18px!important;
  padding:20px!important;
  background:#fff!important;
  border:1px solid #dbe4ee!important;
  border-radius:26px!important;
  box-shadow:0 16px 38px rgba(15,23,42,.065)!important;
}
.v72-search-form{
  display:grid;
  grid-template-columns:minmax(260px,1fr) auto auto;
  gap:10px;
}
.v72-search-form .input{
  min-height:46px!important;
  border-radius:15px!important;
}
.v72-search-form .btn{
  min-height:44px!important;
  border-radius:14px!important;
}
.v72-section-head,
.v72-products-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  padding-bottom:14px;
  margin-bottom:14px;
  border-bottom:1px solid #e2e8f0;
}
.v72-section-head h3,
.v72-products-head h3{
  margin:0;
  font-size:22px;
  color:#0f172a;
}
.v72-section-head p,
.v72-products-head p{
  margin:5px 0 0;
  color:#64748b;
  font-size:13px;
}
.v72-products-head span{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  background:#0f172a;
  color:#fff;
  font-size:12px;
  font-weight:950;
}
.v72-product-form .full{
  grid-column:1/-1;
}
.v72-media-manager{
  margin-top:20px;
  padding-top:18px;
  border-top:1px solid #e2e8f0;
}
.v72-image-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.v72-image-tile{
  overflow:hidden;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:18px;
}
.v72-image-tile img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  display:block;
}
.v72-image-tile div{
  padding:10px;
}
.v72-image-tile b{
  display:block;
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.v72-image-tile span{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-size:12px;
}
.v72-image-tile .btn{
  margin-top:8px;
  min-height:32px;
  border-radius:10px;
  font-size:12px;
}
.v72-video-preview iframe{
  width:100%;
  max-width:760px;
  aspect-ratio:16/9;
  border:0;
  border-radius:18px;
  background:#0f172a;
}
.v72-products-table-wrap{
  border:1px solid #e2e8f0!important;
  border-radius:20px!important;
  overflow:auto!important;
  background:#fff!important;
}
.v72-products-table{
  min-width:1080px;
  width:100%;
  border-collapse:collapse;
}
.v72-products-table th{
  background:#f8fafc!important;
  color:#475569!important;
  font-size:12px!important;
  font-weight:950!important;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.v72-products-table td,
.v72-products-table th{
  padding:14px!important;
  vertical-align:middle!important;
  border-bottom:1px solid #eef2f7!important;
  text-align:left;
}
.v72-products-table tr:last-child td{
  border-bottom:0!important;
}
.v72-img-cell{
  width:110px;
}
.v72-thumb{
  position:relative;
  width:86px;
  height:86px;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#f8fafc,#eef2ff);
  border:1px solid #e2e8f0;
  border-radius:18px;
}
.v72-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.v72-no-img{
  font-size:34px;
  line-height:1;
}
.v72-thumb span{
  position:absolute;
  right:5px;
  bottom:5px;
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:0 7px;
  border-radius:999px;
  background:rgba(15,23,42,.88);
  color:#fff;
  font-size:10px;
  font-weight:950;
}
.v72-product-main{
  min-width:280px;
}
.v72-product-main b{
  display:block;
  font-size:15px;
  color:#0f172a;
}
.v72-product-main p{
  margin:5px 0 0;
  max-width:420px;
  color:#64748b;
  font-size:13px;
  line-height:1.45;
}
.v72-product-main small{
  display:block;
  margin-top:6px;
  color:#475569;
  font-size:12px;
  font-weight:850;
}
.v72-tag{
  display:inline-flex;
  align-items:center;
  min-height:27px;
  padding:0 9px;
  border-radius:999px;
  background:#f1f5f9;
  color:#475569;
  font-size:12px;
  font-weight:900;
}
.v72-video-btn{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:0 10px;
  border-radius:12px;
  background:#eff6ff;
  border:1px solid #dbeafe;
  color:#1d4ed8;
  font-size:12px;
  font-weight:900;
  text-decoration:none;
}
.v72-actions{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  min-width:220px;
}
.v72-actions .btn{
  min-height:32px!important;
  padding:0 10px!important;
  border-radius:10px!important;
  font-size:12px!important;
  box-shadow:none!important;
}
.v72-actions .danger-text{
  color:#dc2626!important;
}
.topbar .actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}
@media(max-width:760px){
  .v72-search-form{
    grid-template-columns:1fr;
  }
  .v72-section-head,
  .v72-products-head{
    display:block;
  }
  .v72-products-head span{
    margin-top:10px;
  }
  .v72-image-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}


/* V3.73 Product image + margin fix */
.v72-thumb.image-missing::after,
.v72-image-tile.image-missing::after{
  content:"图片路径失效";
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  color:#dc2626;
  font-size:12px;
  font-weight:900;
  text-align:center;
  padding:8px;
  background:#fff1f2;
}
.v73-margin{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:950;
  background:#dcfce7;
  color:#166534;
}
.v73-margin.medium{
  background:#fef3c7;
  color:#92400e;
}
.v73-margin.low{
  background:#fee2e2;
  color:#991b1b;
}


/* V3.74 image proxy and margin hard fix */
.v72-thumb.image-missing{
  background:#fff1f2!important;
}
.v72-thumb.image-missing::before{
  content:"⚠️";
  display:block;
  font-size:22px;
  line-height:1;
}
.v72-thumb.image-missing::after{
  content:"图片失效";
  position:absolute;
  left:4px;
  right:4px;
  bottom:6px;
  display:block;
  color:#991b1b;
  font-size:11px;
  font-weight:950;
  text-align:center;
  background:transparent!important;
}
